Skip to content

Commit

Permalink
Project import generated by Copybara.
Browse files Browse the repository at this point in the history
FolderOrigin-RevId: /usr/src/app/bi-sdk-js
  • Loading branch information
bi-ci-bot committed May 31, 2024
1 parent 8a1dc62 commit 6f772de
Show file tree
Hide file tree
Showing 2,431 changed files with 376,770 additions and 247,276 deletions.
419 changes: 211 additions & 208 deletions coresdk/dist/bi-core.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions coresdk/dist/src/core/core.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export declare class Core {
/**
* Create a new Credential. Testing only.
*/
createCredential: (handle: string, name: string, imageUrl: string, loginUri?: string | undefined, enrollUri?: string | undefined) => Promise<Credential>;
createCredential: (handle: string, name: string, imageUrl: string, loginUri?: string, enrollUri?: string) => Promise<Credential>;
/**
* Register a new Credential on this device.
*/
Expand Down Expand Up @@ -85,7 +85,7 @@ export declare class Core {
/**
* Confidential OIDC authentication.
*/
authenticateConfidential: (authURL: string, clientId: string, redirectURI: string, scope: string, PKCECodeChallenge?: PkceCodeChallenge | undefined, nonce?: string | undefined) => Promise<AuthorizationCode>;
authenticateConfidential: (authURL: string, clientId: string, redirectURI: string, scope: string, PKCECodeChallenge?: PkceCodeChallenge, nonce?: string) => Promise<AuthorizationCode>;
/**
* Creates a PKCE code verifier and code challenge.
*/
Expand Down
2 changes: 1 addition & 1 deletion coresdk/dist/src/env.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
declare type Channel = "devel" | "rolling" | "staging" | "production";
type Channel = "devel" | "rolling" | "staging" | "production";
/**
* Environmental parameters defined at build time
*/
Expand Down
22 changes: 11 additions & 11 deletions coresdk/dist/src/messaging/coreMessage.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,35 +14,35 @@ import { ClientEnvironment } from "../types";
* Unit,
* Pending,
*/
export declare type BoolResponse = {
export type BoolResponse = {
Bool: boolean;
};
export declare type BytesResponse = {
export type BytesResponse = {
Bytes: number[];
};
export declare type DeviceGatewayUrlResponse = {
export type DeviceGatewayUrlResponse = {
DeviceGatewayUrl: string;
};
export declare type DeviceInfoResponse = {
export type DeviceInfoResponse = {
DeviceInfo: string;
};
export declare type FeatureFlagsResponse = {
export type FeatureFlagsResponse = {
FeatureFlags: Messaging.FeatureFlagResponse[];
};
export declare type FilePathResponse = {
export type FilePathResponse = {
FilePath: Messaging.HostFilePath;
};
export declare type ClientEnvironmentResponse = {
export type ClientEnvironmentResponse = {
ClientEnvironment: Messaging.ClientEnvironment;
};
export declare type PendingResponse = {
export type PendingResponse = {
Pending: string;
};
export declare type AuthNCredentialIdResponse = {
export type AuthNCredentialIdResponse = {
SelectedAuthNCredentialId: string | undefined;
};
export declare type CoreResponse = BytesResponse | DeviceGatewayUrlResponse | DeviceInfoResponse | FeatureFlagsResponse | FilePathResponse | ClientEnvironmentResponse | AuthNCredentialIdResponse | BoolResponse | "Unit";
export declare type CoreResult = {
export type CoreResponse = BytesResponse | DeviceGatewayUrlResponse | DeviceInfoResponse | FeatureFlagsResponse | FilePathResponse | ClientEnvironmentResponse | AuthNCredentialIdResponse | BoolResponse | "Unit";
export type CoreResult = {
Ok: CoreResponse;
} | {
Err: string;
Expand Down
32 changes: 16 additions & 16 deletions coresdk/dist/src/messaging/hostMessage.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,52 +53,52 @@ import { PromptDetail, FeatureFlagRequest, PathType } from "./types";
* Bool(bool),
*
*/
export declare type AskRequest = {
export type AskRequest = {
Ask: string;
};
export declare type AuthenticationPromptRequest = {
export type AuthenticationPromptRequest = {
AuthenticationPrompt: {
appName: string;
detailList: PromptDetail[];
};
};
export declare type CheckFeatureFlagsRequest = {
export type CheckFeatureFlagsRequest = {
CheckFeatureFlags: FeatureFlagRequest[];
};
export declare type ExportRequestReceivedRequest = {
export type ExportRequestReceivedRequest = {
ExportRequestReceived: Map<string, Uint8Array>;
};
export declare type ExportStartedRequest = {
export type ExportStartedRequest = {
ExportStarted: string;
};
export declare type ExportTokenTimeoutRequest = {
export type ExportTokenTimeoutRequest = {
ExportTokenTimeout: string;
};
export declare type GetDeviceGatewayUrlRequest = {
export type GetDeviceGatewayUrlRequest = {
GetDeviceGatewayUrl: undefined;
};
export declare type GetDeviceInfoRequest = {
export type GetDeviceInfoRequest = {
GetDeviceInfo: undefined;
};
export declare type GetFilePathRequest = {
export type GetFilePathRequest = {
GetFilePath: PathType;
};
export declare type ImportManifestReceivedRequest = {
export type ImportManifestReceivedRequest = {
ImportManifestReceived: string;
};
export declare type ImportReceivedSignedRequest = {
export type ImportReceivedSignedRequest = {
ImportReceivedSigned: string;
};
export declare type ImportRequestsToSignRequest = {
export type ImportRequestsToSignRequest = {
ImportRequestsToSign: string;
};
export declare type ImportStartedRequest = {
export type ImportStartedRequest = {
ImportStarted: string;
};
export declare type LogRequest = {
export type LogRequest = {
Log: string;
};
export declare type SelectAuthNCredentialRequest = {
export type SelectAuthNCredentialRequest = {
SelectAuthNCredential: Credential[];
};
export declare type HostRequest = AskRequest | AuthenticationPromptRequest | CheckFeatureFlagsRequest | ExportRequestReceivedRequest | ExportStartedRequest | ExportTokenTimeoutRequest | GetDeviceGatewayUrlRequest | GetDeviceInfoRequest | GetFilePathRequest | ImportManifestReceivedRequest | ImportReceivedSignedRequest | ImportRequestsToSignRequest | ImportStartedRequest | LogRequest | SelectAuthNCredentialRequest;
export type HostRequest = AskRequest | AuthenticationPromptRequest | CheckFeatureFlagsRequest | ExportRequestReceivedRequest | ExportStartedRequest | ExportTokenTimeoutRequest | GetDeviceGatewayUrlRequest | GetDeviceInfoRequest | GetFilePathRequest | ImportManifestReceivedRequest | ImportReceivedSignedRequest | ImportRequestsToSignRequest | ImportStartedRequest | LogRequest | SelectAuthNCredentialRequest;
2 changes: 1 addition & 1 deletion coresdk/dist/src/messaging/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ export * as CoreMessage from "./coreMessage";
export * as HostMessage from "./hostMessage";
import { CoreResponse, CoreResult } from "./coreMessage";
import { HostRequest } from "./hostMessage";
declare type Message = CoreResponse | CoreResult | HostRequest;
type Message = CoreResponse | CoreResult | HostRequest;
/**
* Returns the type the request/response type from the interface.
*/
Expand Down
8 changes: 4 additions & 4 deletions coresdk/dist/src/messaging/types.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export interface HandleBindCredentialUrlResponse {
credential: Credential;
post_binding_redirect_uri?: string;
}
export declare type HandleUrlResponse = {
export type HandleUrlResponse = {
SelfIssue: HandleSelfIssueUrlResponse;
} | {
Registration: HandleRegisterUrlResponse;
Expand All @@ -49,7 +49,7 @@ export interface HostFilePath {
path_type: PathType;
path: string;
}
export declare type CheckRetireResponse = {
export type CheckRetireResponse = {
version: number;
is_retired: boolean;
reason: string;
Expand Down Expand Up @@ -82,7 +82,7 @@ export interface ClientEnvironment {
key_storage_strategy: KeyStorageStrategy;
gdc_url: string;
}
export declare type UrlType = {
export type UrlType = {
type: "Authenticate";
} | {
type: "Bind";
Expand All @@ -106,7 +106,7 @@ interface CoreAuthenticatorConfig {
* Note that `hosted_login` is only provided for backwards compatibility,
* and has been renamed to `hosted_web`.
*/
declare type CoreAuthenticatorProfileConfig = {
type CoreAuthenticatorProfileConfig = {
type: "hosted_web";
authentication_methods: AuthenticationMethod[];
} | {
Expand Down
10 changes: 5 additions & 5 deletions coresdk/dist/src/types/credential.d.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
export declare type Version = "v0" | "v1";
export type Version = "v0" | "v1";
/** The state of a credential */
export declare type State = "Active" | "DeviceDeleted" | "Invalid" | "Revoked" | "UserDeleted" | "UserSuspended" | "Unknown";
export declare type KeyType = "subtle" | "webauthn";
export type State = "Active" | "DeviceDeleted" | "Invalid" | "Revoked" | "UserDeleted" | "UserSuspended" | "Unknown";
export type KeyType = "subtle" | "webauthn";
/**
* A credential.
*/
Expand Down Expand Up @@ -62,7 +62,7 @@ export interface BindResponse {
message?: String;
postBindRedirect?: string;
}
export declare type AuthenticateResponse = {
export type AuthenticateResponse = {
allow: {
operation?: string;
redirectURL: string;
Expand All @@ -77,7 +77,7 @@ export declare type AuthenticateResponse = {
url: string;
};
};
export declare type UrlResponse = {
export type UrlResponse = {
type: "authenticate";
authenticate: AuthenticateResponse;
} | {
Expand Down
16 changes: 8 additions & 8 deletions coresdk/dist/src/types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,23 +11,23 @@ export interface RegistrationRequest {
username: string;
displayName: string;
}
export declare type FeatureFlagRequest = "IsInternalBuild";
export declare type FeatureFlagResponse = {
export type FeatureFlagRequest = "IsInternalBuild";
export type FeatureFlagResponse = {
IsInternalBuild: boolean;
};
export interface PromptDetail {
label: string;
detail: string;
}
export declare type RegistrationStatus = "UserStatusActive" | "UserStatusSuspended" | "UserStatusDeleted";
export type RegistrationStatus = "UserStatusActive" | "UserStatusSuspended" | "UserStatusDeleted";
export declare enum PathType {
osQuery = 0
}
export interface HostFilePath {
type: PathType;
path: string;
}
export declare type CheckRetireResponse = {
export type CheckRetireResponse = {
version: number;
isRetired: boolean;
reason: string;
Expand All @@ -39,8 +39,8 @@ export interface TokenResponse {
tokenType: string;
expiresIn: number;
}
export declare type CryptoSource = "Host" | "Hal";
export declare type KeyStorageStrategy = "TeeIfAvailable" | "ForceSoftware";
export type CryptoSource = "Host" | "Hal";
export type KeyStorageStrategy = "TeeIfAvailable" | "ForceSoftware";
export interface ClientEnvironment {
cryptoSource: CryptoSource;
keyStorageStrategy: KeyStorageStrategy;
Expand All @@ -52,7 +52,7 @@ export interface ClientEnvironment {
* * `emailOtp` - email OTP
* * `credentialSelect` - the supplied callback will be invoked during prior to authentication.
*/
export declare type CredentialDescriptor = {
export type CredentialDescriptor = {
credentialId: string;
} | {
fido2Locator: "local" | {
Expand All @@ -79,7 +79,7 @@ export interface AuthenticationContext {
referer?: string;
};
}
export declare type AuthenticationMethod = {
export type AuthenticationMethod = {
type: "webauthn_passkey";
} | {
type: "software_passkey";
Expand Down
4 changes: 2 additions & 2 deletions coresdk/lib/kmc/kmc.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,8 @@ export interface InitOutput {
readonly __wbindgen_malloc: (a: number) => number;
readonly __wbindgen_realloc: (a: number, b: number, c: number) => number;
readonly __wbindgen_export_2: WebAssembly.Table;
readonly wasm_bindgen__convert__closures__invoke0_mut__h33efe377f8a10aca: (a: number, b: number) => void;
readonly wasm_bindgen__convert__closures__invoke0_mut__h2293bae59890afd1: (a: number, b: number) => void;
readonly wasm_bindgen__convert__closures__invoke0_mut__hfcbc7f02d7b2e907: (a: number, b: number) => void;
readonly _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h6d330484440061e0: (a: number, b: number) => void;
readonly wasm_bindgen__convert__closures__invoke0_mut__hd481a34b90376d27: (a: number, b: number) => void;
readonly _dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h3f3a53b263fcc69e: (a: number, b: number, c: number) => void;
readonly __wbindgen_add_to_stack_pointer: (a: number) => number;
Expand Down
Loading

0 comments on commit 6f772de

Please sign in to comment.