Skip to content

Commit

Permalink
Include build
Browse files Browse the repository at this point in the history
  • Loading branch information
robbertkl committed Mar 14, 2024
1 parent 0d1772b commit af0fbeb
Show file tree
Hide file tree
Showing 39 changed files with 1,315 additions and 5 deletions.
5 changes: 0 additions & 5 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
# Ignore compiled code
dist
homebridge-ui/public

# ------------- Defaults ------------- #

# Logs
Expand Down Expand Up @@ -87,7 +83,6 @@ web_modules/

# Nuxt.js build / generate output
.nuxt
dist

# Gatsby files
.cache/
Expand Down
28 changes: 28 additions & 0 deletions dist/bold/api/api.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
/// <reference types="node" />
import { EventEmitter } from 'node:events';
import type { BoldApiAuthentication, BoldApiCommand, BoldApiDevice, BoldApiHandshake } from './types';
export declare type BoldApiEvent = {
refresh: (newAuth: BoldApiAuthentication, oldAuth?: BoldApiAuthentication) => void;
};
export declare interface BoldApi {
on<U extends keyof BoldApiEvent>(event: U, listener: BoldApiEvent[U]): this;
off<U extends keyof BoldApiEvent>(event: U, listener: BoldApiEvent[U]): this;
emit<U extends keyof BoldApiEvent>(event: U, ...args: Parameters<BoldApiEvent[U]>): boolean;
}
export declare class BoldApi extends EventEmitter {
private auth?;
private tokenExpiry?;
constructor(auth?: Readonly<BoldApiAuthentication> | undefined);
private updateAuth;
call<ResponseType = Record<string, never>>(method: 'GET' | 'POST', endpoint: string, payload?: Record<string, string | number | boolean | null>, needsAuth?: boolean, asFormData?: boolean): Promise<ResponseType>;
requestVerificationCode(phoneNumber: string): Promise<void>;
verifyVerificationCode(phoneNumber: string, verificationCode: string): Promise<string>;
private processLegacyAuthResponse;
private processDefaultAuthResponse;
login(phoneNumber: string, password: string, verificationToken: string): Promise<BoldApiAuthentication>;
refresh(): Promise<BoldApiAuthentication>;
getEffectiveDevicePermissions(): Promise<BoldApiDevice[]>;
getHandshakes(deviceId: number): Promise<BoldApiHandshake[]>;
getActivateCommands(deviceId: number): Promise<BoldApiCommand[]>;
}
//# sourceMappingURL=api.d.ts.map
1 change: 1 addition & 0 deletions dist/bold/api/api.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

153 changes: 153 additions & 0 deletions dist/bold/api/api.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions dist/bold/api/api.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions dist/bold/api/index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export * from './api.js';
export * from './types.js';
//# sourceMappingURL=index.d.ts.map
1 change: 1 addition & 0 deletions dist/bold/api/index.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 15 additions & 0 deletions dist/bold/api/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions dist/bold/api/index.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit af0fbeb

Please sign in to comment.