@bitwarden/sdk-napi
Advanced tools
| import * as rust from "../../binding"; | ||
| import { LogLevel } from "../../binding"; | ||
| import { ClientSettings, ResponseForAPIKeyLoginResponse, ResponseForPasswordLoginResponse, ResponseForSecretIdentifiersResponse, ResponseForSecretResponse, ResponseForSecretsDeleteResponse } from "./schemas"; | ||
| import { ClientSettings, ResponseForAPIKeyLoginResponse, ResponseForSecretIdentifiersResponse, ResponseForSecretResponse, ResponseForSecretsDeleteResponse, ResponseForSecretsResponse } from "./schemas"; | ||
| export declare class BitwardenClient { | ||
| client: rust.BitwardenClient; | ||
| constructor(settings?: ClientSettings, loggingLevel?: LogLevel); | ||
| login(email: string, password: string): Promise<ResponseForPasswordLoginResponse>; | ||
| loginWithAccessToken(accessToken: string): Promise<ResponseForAPIKeyLoginResponse>; | ||
@@ -15,2 +14,3 @@ secrets(): SecretsClient; | ||
| get(id: string): Promise<ResponseForSecretResponse>; | ||
| getByIds(ids: string[]): Promise<ResponseForSecretsResponse>; | ||
| create(key: string, note: string, organizationId: string, value: string): Promise<ResponseForSecretResponse>; | ||
@@ -17,0 +17,0 @@ list(organizationId: string): Promise<ResponseForSecretIdentifiersResponse>; |
@@ -43,13 +43,2 @@ "use strict"; | ||
| } | ||
| login(email, password) { | ||
| return __awaiter(this, void 0, void 0, function* () { | ||
| const response = yield this.client.runCommand(schemas_1.Convert.commandToJson({ | ||
| passwordLogin: { | ||
| email: email, | ||
| password: password, | ||
| }, | ||
| })); | ||
| return schemas_1.Convert.toResponseForPasswordLoginResponse(response); | ||
| }); | ||
| } | ||
| loginWithAccessToken(accessToken) { | ||
@@ -98,2 +87,12 @@ return __awaiter(this, void 0, void 0, function* () { | ||
| } | ||
| getByIds(ids) { | ||
| return __awaiter(this, void 0, void 0, function* () { | ||
| const response = yield this.client.runCommand(schemas_1.Convert.commandToJson({ | ||
| secrets: { | ||
| getByIds: { ids }, | ||
| }, | ||
| })); | ||
| return schemas_1.Convert.toResponseForSecretsResponse(response); | ||
| }); | ||
| } | ||
| create(key, note, organizationId, value) { | ||
@@ -100,0 +99,0 @@ return __awaiter(this, void 0, void 0, function* () { |
@@ -21,7 +21,7 @@ /** | ||
| */ | ||
| apiUrl: string; | ||
| apiUrl?: string; | ||
| /** | ||
| * Device type to send to Bitwarden. Defaults to SDK | ||
| */ | ||
| deviceType: DeviceType; | ||
| deviceType?: DeviceType; | ||
| /** | ||
@@ -31,7 +31,7 @@ * The identity url of the targeted Bitwarden instance. Defaults to | ||
| */ | ||
| identityUrl: string; | ||
| identityUrl?: string; | ||
| /** | ||
| * The user_agent to sent to Bitwarden. Defaults to `Bitwarden Rust-SDK` | ||
| */ | ||
| userAgent: string; | ||
| userAgent?: string; | ||
| } | ||
@@ -74,3 +74,3 @@ /** | ||
| * | ||
| * Returns: [PasswordLoginResponse](bitwarden::auth::response::PasswordLoginResponse) | ||
| * Returns: [PasswordLoginResponse](bitwarden::auth::login::PasswordLoginResponse) | ||
| * | ||
@@ -81,3 +81,3 @@ * Login with API Key | ||
| * | ||
| * Returns: [ApiKeyLoginResponse](bitwarden::auth::response::ApiKeyLoginResponse) | ||
| * Returns: [ApiKeyLoginResponse](bitwarden::auth::login::ApiKeyLoginResponse) | ||
| * | ||
@@ -88,3 +88,3 @@ * Login with Secrets Manager Access Token | ||
| * | ||
| * Returns: [ApiKeyLoginResponse](bitwarden::auth::response::ApiKeyLoginResponse) | ||
| * Returns: [ApiKeyLoginResponse](bitwarden::auth::login::ApiKeyLoginResponse) | ||
| * | ||
@@ -113,3 +113,2 @@ * > Requires Authentication Get the API key of the currently authenticated user | ||
| projects?: ProjectsCommand; | ||
| mobile?: MobileCommand; | ||
| } | ||
@@ -148,3 +147,3 @@ /** | ||
| /** | ||
| * The user's public key | ||
| * The user's public key encoded with base64. | ||
| */ | ||
@@ -166,50 +165,28 @@ publicKey: string; | ||
| } | ||
| export interface MobileCommand { | ||
| kdf?: MobileKdfCommand; | ||
| crypto?: MobileCryptoCommand; | ||
| vault?: MobileVaultCommand; | ||
| } | ||
| /** | ||
| * Decrypts the users keys and initializes the user crypto, allowing for the | ||
| * encryption/decryption of the users vault | ||
| * Login to Bitwarden with Username and Password | ||
| */ | ||
| export interface MobileCryptoCommand { | ||
| initCrypto: InitCryptoRequest; | ||
| } | ||
| export interface InitCryptoRequest { | ||
| export interface PasswordLoginRequest { | ||
| /** | ||
| * The user's email address | ||
| * Bitwarden account email address | ||
| */ | ||
| email: string; | ||
| /** | ||
| * The user's KDF parameters, as received from the prelogin request | ||
| * Kdf from prelogin | ||
| */ | ||
| kdfParams: Kdf; | ||
| kdf: PasswordLoginKdf; | ||
| /** | ||
| * The encryption keys for all the organizations the user is a part of | ||
| * Bitwarden account master password | ||
| */ | ||
| organizationKeys: { | ||
| [key: string]: string; | ||
| }; | ||
| /** | ||
| * The user's master password | ||
| */ | ||
| password: string; | ||
| /** | ||
| * The user's encryptred private key | ||
| */ | ||
| privateKey: string; | ||
| /** | ||
| * The user's encrypted symmetric crypto key | ||
| */ | ||
| userKey: string; | ||
| twoFactor?: TwoFactorRequest | null; | ||
| } | ||
| /** | ||
| * The user's KDF parameters, as received from the prelogin request | ||
| * Kdf from prelogin | ||
| */ | ||
| export interface Kdf { | ||
| pBKDF2?: PBKDF2; | ||
| argon2id?: Argon2ID; | ||
| export interface PasswordLoginKdf { | ||
| pBKDF2?: PurplePBKDF2; | ||
| argon2id?: PurpleArgon2ID; | ||
| } | ||
| export interface Argon2ID { | ||
| export interface PurpleArgon2ID { | ||
| iterations: number; | ||
@@ -219,72 +196,33 @@ memory: number; | ||
| } | ||
| export interface PBKDF2 { | ||
| export interface PurplePBKDF2 { | ||
| iterations: number; | ||
| } | ||
| /** | ||
| * Calculates the user master password hash based on the provided password and KDF | ||
| * parametes | ||
| * | ||
| * Returns: String | ||
| */ | ||
| export interface MobileKdfCommand { | ||
| hashPassword: PasswordHashRequest; | ||
| } | ||
| export interface PasswordHashRequest { | ||
| export interface TwoFactorRequest { | ||
| /** | ||
| * The user's email address | ||
| * Two-factor provider | ||
| */ | ||
| email: string; | ||
| provider: TwoFactorProvider; | ||
| /** | ||
| * The user's KDF parameters, as received from the prelogin request | ||
| * Two-factor remember | ||
| */ | ||
| kdfParams: Kdf; | ||
| remember: boolean; | ||
| /** | ||
| * The user's master password | ||
| * Two-factor Token | ||
| */ | ||
| password: string; | ||
| token: string; | ||
| } | ||
| export interface MobileVaultCommand { | ||
| folders: MobileFoldersCommand; | ||
| } | ||
| /** | ||
| * > Requires having previously initialized the cryptography parameters Decrypts the | ||
| * provided folder | ||
| * | ||
| * Returns: [FolderDecryptResponse](bitwarden::mobile::vault::FolderDecryptResponse) | ||
| * | ||
| * > Requires having previously initialized the cryptography parameters Decrypts the | ||
| * provided folders | ||
| * | ||
| * Returns: [FolderDecryptListResponse](bitwarden::mobile::vault::FolderDecryptListResponse) | ||
| * Two-factor provider | ||
| */ | ||
| export interface MobileFoldersCommand { | ||
| decrypt?: FolderDecryptRequest; | ||
| decryptList?: FolderDecryptListRequest; | ||
| export declare enum TwoFactorProvider { | ||
| Authenticator = "Authenticator", | ||
| Duo = "Duo", | ||
| Email = "Email", | ||
| OrganizationDuo = "OrganizationDuo", | ||
| Remember = "Remember", | ||
| U2F = "U2f", | ||
| WebAuthn = "WebAuthn", | ||
| Yubikey = "Yubikey" | ||
| } | ||
| export interface FolderDecryptRequest { | ||
| folder: Folder; | ||
| } | ||
| export interface Folder { | ||
| id: string; | ||
| name: string; | ||
| revisionDate: Date; | ||
| [property: string]: any; | ||
| } | ||
| export interface FolderDecryptListRequest { | ||
| folders: Folder[]; | ||
| } | ||
| /** | ||
| * Login to Bitwarden with Username and Password | ||
| */ | ||
| export interface PasswordLoginRequest { | ||
| /** | ||
| * Bitwarden account email address | ||
| */ | ||
| email: string; | ||
| /** | ||
| * Bitwarden account master password | ||
| */ | ||
| password: string; | ||
| } | ||
| /** | ||
| * > Requires Authentication > Requires using an Access Token for login or calling Sync at | ||
@@ -366,2 +304,7 @@ * least once Retrieve a project by the provided identifier | ||
| * > Requires Authentication > Requires using an Access Token for login or calling Sync at | ||
| * least once Retrieve secrets by the provided identifiers | ||
| * | ||
| * Returns: [SecretsResponse](bitwarden::secrets_manager::secrets::SecretsResponse) | ||
| * | ||
| * > Requires Authentication > Requires using an Access Token for login or calling Sync at | ||
| * least once Creates a new secret in the provided organization using the given data | ||
@@ -391,2 +334,3 @@ * | ||
| get?: SecretGetRequest; | ||
| getByIds?: SecretsGetRequest; | ||
| create?: SecretCreateRequest; | ||
@@ -422,2 +366,8 @@ list?: SecretIdentifiersRequest; | ||
| } | ||
| export interface SecretsGetRequest { | ||
| /** | ||
| * IDs of the secrets to retrieve | ||
| */ | ||
| ids: string[]; | ||
| } | ||
| export interface SecretIdentifiersRequest { | ||
@@ -449,2 +399,451 @@ /** | ||
| } | ||
| export interface DocRef { | ||
| Cipher?: Cipher; | ||
| CipherView?: CipherView; | ||
| Collection?: Collection; | ||
| Folder?: Folder; | ||
| FolderView?: FolderView; | ||
| Send?: Send; | ||
| SendView?: SendView; | ||
| SendListView?: SendListView; | ||
| InitCryptoRequest?: InitCryptoRequest; | ||
| PasswordGeneratorRequest?: PasswordGeneratorRequest; | ||
| PassphraseGeneratorRequest?: PassphraseGeneratorRequest; | ||
| ExportFormat?: ExportFormatClass | ExportFormatEnum; | ||
| MasterPasswordPolicyOptions?: MasterPasswordPolicyOptions; | ||
| Kdf?: InitCryptoRequestKdf; | ||
| } | ||
| export interface Cipher { | ||
| attachments?: Attachment[] | null; | ||
| card?: Card | null; | ||
| collectionIds: string[]; | ||
| creationDate: Date; | ||
| deletedDate?: Date | null; | ||
| edit: boolean; | ||
| favorite: boolean; | ||
| fields?: Field[] | null; | ||
| folderId?: null | string; | ||
| id?: null | string; | ||
| identity?: Identity | null; | ||
| localData?: LocalData | null; | ||
| login?: Login | null; | ||
| name: string; | ||
| notes?: null | string; | ||
| organizationId?: null | string; | ||
| organizationUseTotp: boolean; | ||
| passwordHistory?: PasswordHistory[] | null; | ||
| reprompt: CipherRepromptType; | ||
| revisionDate: Date; | ||
| secureNote?: SecureNote | null; | ||
| type: CipherType; | ||
| viewPassword: boolean; | ||
| } | ||
| export interface Attachment { | ||
| fileName?: null | string; | ||
| id?: null | string; | ||
| key?: null | string; | ||
| size?: null | string; | ||
| /** | ||
| * Readable size, ex: "4.2 KB" or "1.43 GB" | ||
| */ | ||
| sizeName?: null | string; | ||
| url?: null | string; | ||
| } | ||
| export interface Card { | ||
| brand?: null | string; | ||
| cardholderName?: null | string; | ||
| code?: null | string; | ||
| expMonth?: null | string; | ||
| expYear?: null | string; | ||
| number?: null | string; | ||
| } | ||
| export interface Field { | ||
| linkedId?: LinkedIDType | null; | ||
| name?: null | string; | ||
| type: FieldType; | ||
| value?: null | string; | ||
| } | ||
| export declare enum LinkedIDType { | ||
| Address1 = "Address1", | ||
| Address2 = "Address2", | ||
| Address3 = "Address3", | ||
| Brand = "Brand", | ||
| CardholderName = "CardholderName", | ||
| City = "City", | ||
| Code = "Code", | ||
| Company = "Company", | ||
| Country = "Country", | ||
| Email = "Email", | ||
| ExpMonth = "ExpMonth", | ||
| ExpYear = "ExpYear", | ||
| FirstName = "FirstName", | ||
| FullName = "FullName", | ||
| LastName = "LastName", | ||
| LicenseNumber = "LicenseNumber", | ||
| MiddleName = "MiddleName", | ||
| Number = "Number", | ||
| PassportNumber = "PassportNumber", | ||
| Password = "Password", | ||
| Phone = "Phone", | ||
| PostalCode = "PostalCode", | ||
| Ssn = "Ssn", | ||
| State = "State", | ||
| Title = "Title", | ||
| Username = "Username" | ||
| } | ||
| export declare enum FieldType { | ||
| Boolean = "Boolean", | ||
| Hidden = "Hidden", | ||
| Linked = "Linked", | ||
| Text = "Text" | ||
| } | ||
| export interface Identity { | ||
| address1?: null | string; | ||
| address2?: null | string; | ||
| address3?: null | string; | ||
| city?: null | string; | ||
| company?: null | string; | ||
| country?: null | string; | ||
| email?: null | string; | ||
| firstName?: null | string; | ||
| lastName?: null | string; | ||
| licenseNumber?: null | string; | ||
| middleName?: null | string; | ||
| passportNumber?: null | string; | ||
| phone?: null | string; | ||
| postalCode?: null | string; | ||
| ssn?: null | string; | ||
| state?: null | string; | ||
| title?: null | string; | ||
| username?: null | string; | ||
| } | ||
| export interface LocalData { | ||
| lastLaunched?: number | null; | ||
| lastUsedDate?: number | null; | ||
| } | ||
| export interface Login { | ||
| autofillOnPageLoad?: boolean | null; | ||
| password?: null | string; | ||
| passwordRevisionDate?: Date | null; | ||
| totp?: null | string; | ||
| uris?: LoginURI[] | null; | ||
| username?: null | string; | ||
| } | ||
| export interface LoginURI { | ||
| match?: URIMatchType | null; | ||
| uri?: null | string; | ||
| } | ||
| export declare enum URIMatchType { | ||
| Domain = "domain", | ||
| Exact = "exact", | ||
| Host = "host", | ||
| Never = "never", | ||
| RegularExpression = "regularExpression", | ||
| StartsWith = "startsWith" | ||
| } | ||
| export interface PasswordHistory { | ||
| lastUsedDate: Date; | ||
| password: string; | ||
| } | ||
| export declare enum CipherRepromptType { | ||
| None = "None", | ||
| Password = "Password" | ||
| } | ||
| export interface SecureNote { | ||
| type: SecureNoteType; | ||
| } | ||
| export declare enum SecureNoteType { | ||
| Generic = "Generic" | ||
| } | ||
| export declare enum CipherType { | ||
| Card = "Card", | ||
| Identity = "Identity", | ||
| Login = "Login", | ||
| SecureNote = "SecureNote" | ||
| } | ||
| export interface CipherView { | ||
| attachments?: AttachmentView[] | null; | ||
| card?: CardView | null; | ||
| collectionIds: string[]; | ||
| creationDate: Date; | ||
| deletedDate?: Date | null; | ||
| edit: boolean; | ||
| favorite: boolean; | ||
| fields?: FieldView[] | null; | ||
| folderId?: null | string; | ||
| id?: null | string; | ||
| identity?: IdentityView | null; | ||
| localData?: LocalDataView | null; | ||
| login?: LoginView | null; | ||
| name: string; | ||
| notes?: null | string; | ||
| organizationId?: null | string; | ||
| organizationUseTotp: boolean; | ||
| passwordHistory?: PasswordHistoryView[] | null; | ||
| reprompt: CipherRepromptType; | ||
| revisionDate: Date; | ||
| secureNote?: SecureNoteView | null; | ||
| type: CipherType; | ||
| viewPassword: boolean; | ||
| } | ||
| export interface AttachmentView { | ||
| fileName?: null | string; | ||
| id?: null | string; | ||
| key?: null | string; | ||
| size?: null | string; | ||
| sizeName?: null | string; | ||
| url?: null | string; | ||
| } | ||
| export interface CardView { | ||
| brand?: null | string; | ||
| cardholderName?: null | string; | ||
| code?: null | string; | ||
| expMonth?: null | string; | ||
| expYear?: null | string; | ||
| number?: null | string; | ||
| } | ||
| export interface FieldView { | ||
| linkedId?: LinkedIDType | null; | ||
| name?: null | string; | ||
| type: FieldType; | ||
| value?: null | string; | ||
| } | ||
| export interface IdentityView { | ||
| address1?: null | string; | ||
| address2?: null | string; | ||
| address3?: null | string; | ||
| city?: null | string; | ||
| company?: null | string; | ||
| country?: null | string; | ||
| email?: null | string; | ||
| firstName?: null | string; | ||
| lastName?: null | string; | ||
| licenseNumber?: null | string; | ||
| middleName?: null | string; | ||
| passportNumber?: null | string; | ||
| phone?: null | string; | ||
| postalCode?: null | string; | ||
| ssn?: null | string; | ||
| state?: null | string; | ||
| title?: null | string; | ||
| username?: null | string; | ||
| } | ||
| export interface LocalDataView { | ||
| lastLaunched?: number | null; | ||
| lastUsedDate?: number | null; | ||
| } | ||
| export interface LoginView { | ||
| autofillOnPageLoad?: boolean | null; | ||
| password?: null | string; | ||
| passwordRevisionDate?: Date | null; | ||
| totp?: null | string; | ||
| uris?: LoginURIView[] | null; | ||
| username?: null | string; | ||
| } | ||
| export interface LoginURIView { | ||
| match?: URIMatchType | null; | ||
| uri?: null | string; | ||
| } | ||
| export interface PasswordHistoryView { | ||
| lastUsedDate: Date; | ||
| password: string; | ||
| } | ||
| export interface SecureNoteView { | ||
| type: SecureNoteType; | ||
| } | ||
| export interface Collection { | ||
| externalId?: null | string; | ||
| hidePasswords: boolean; | ||
| id: string; | ||
| name: string; | ||
| organizationId: string; | ||
| readOnly: boolean; | ||
| } | ||
| export interface ExportFormatClass { | ||
| EncryptedJson: EncryptedJSON; | ||
| } | ||
| export interface EncryptedJSON { | ||
| password: string; | ||
| [property: string]: any; | ||
| } | ||
| export declare enum ExportFormatEnum { | ||
| AccountEncryptedJSON = "AccountEncryptedJson", | ||
| CSV = "Csv", | ||
| JSON = "Json" | ||
| } | ||
| export interface Folder { | ||
| id: string; | ||
| name: string; | ||
| revisionDate: Date; | ||
| [property: string]: any; | ||
| } | ||
| export interface FolderView { | ||
| id: string; | ||
| name: string; | ||
| revisionDate: Date; | ||
| [property: string]: any; | ||
| } | ||
| export interface InitCryptoRequest { | ||
| /** | ||
| * The user's email address | ||
| */ | ||
| email: string; | ||
| /** | ||
| * The user's KDF parameters, as received from the prelogin request | ||
| */ | ||
| kdfParams: InitCryptoRequestKdf; | ||
| /** | ||
| * The encryption keys for all the organizations the user is a part of | ||
| */ | ||
| organizationKeys: { | ||
| [key: string]: string; | ||
| }; | ||
| /** | ||
| * The user's master password | ||
| */ | ||
| password: string; | ||
| /** | ||
| * The user's encryptred private key | ||
| */ | ||
| privateKey: string; | ||
| /** | ||
| * The user's encrypted symmetric crypto key | ||
| */ | ||
| userKey: string; | ||
| } | ||
| /** | ||
| * The user's KDF parameters, as received from the prelogin request | ||
| */ | ||
| export interface InitCryptoRequestKdf { | ||
| pBKDF2?: FluffyPBKDF2; | ||
| argon2id?: FluffyArgon2ID; | ||
| } | ||
| export interface FluffyArgon2ID { | ||
| iterations: number; | ||
| memory: number; | ||
| parallelism: number; | ||
| } | ||
| export interface FluffyPBKDF2 { | ||
| iterations: number; | ||
| } | ||
| export interface MasterPasswordPolicyOptions { | ||
| /** | ||
| * Flag to indicate if the policy should be enforced on login. If true, and the user's | ||
| * password does not meet the policy requirements, the user will be forced to update their | ||
| * password. | ||
| */ | ||
| enforce_on_login: boolean; | ||
| min_complexity: number; | ||
| min_length: number; | ||
| require_lower: boolean; | ||
| require_numbers: boolean; | ||
| require_special: boolean; | ||
| require_upper: boolean; | ||
| [property: string]: any; | ||
| } | ||
| /** | ||
| * Passphrase generator request. | ||
| * | ||
| * The default separator is `-` and default number of words is 3. | ||
| */ | ||
| export interface PassphraseGeneratorRequest { | ||
| capitalize?: boolean | null; | ||
| includeNumber?: boolean | null; | ||
| numWords?: number | null; | ||
| wordSeparator?: null | string; | ||
| } | ||
| /** | ||
| * Password generator request. If all options are false, the default is to generate a | ||
| * password with: - lowercase - uppercase - numbers | ||
| * | ||
| * The default length is 16. | ||
| */ | ||
| export interface PasswordGeneratorRequest { | ||
| avoidAmbiguous?: boolean | null; | ||
| length?: number | null; | ||
| lowercase: boolean; | ||
| minLowercase?: boolean | null; | ||
| minNumber?: boolean | null; | ||
| minSpecial?: boolean | null; | ||
| minUppercase?: boolean | null; | ||
| numbers: boolean; | ||
| special: boolean; | ||
| uppercase: boolean; | ||
| } | ||
| export interface Send { | ||
| accessCount: number; | ||
| accessId: string; | ||
| deletionDate: Date; | ||
| disabled: boolean; | ||
| expirationDate?: Date | null; | ||
| file?: SendFile | null; | ||
| hideEmail: boolean; | ||
| id: string; | ||
| key: string; | ||
| maxAccessCount?: number | null; | ||
| name: string; | ||
| notes?: null | string; | ||
| password?: null | string; | ||
| revisionDate: Date; | ||
| text?: SendText | null; | ||
| type: SendType; | ||
| } | ||
| export interface SendFile { | ||
| fileName: string; | ||
| id: string; | ||
| size: string; | ||
| /** | ||
| * Readable size, ex: "4.2 KB" or "1.43 GB" | ||
| */ | ||
| sizeName: string; | ||
| } | ||
| export interface SendText { | ||
| hidden: boolean; | ||
| text?: null | string; | ||
| } | ||
| export declare enum SendType { | ||
| File = "File", | ||
| Text = "Text" | ||
| } | ||
| export interface SendListView { | ||
| accessId: string; | ||
| deletionDate: Date; | ||
| disabled: boolean; | ||
| expirationDate?: Date | null; | ||
| id: string; | ||
| name: string; | ||
| revisionDate: Date; | ||
| type: SendType; | ||
| } | ||
| export interface SendView { | ||
| accessCount: number; | ||
| accessId: string; | ||
| deletionDate: Date; | ||
| disabled: boolean; | ||
| expirationDate?: Date | null; | ||
| file?: SendFileView | null; | ||
| hideEmail: boolean; | ||
| id: string; | ||
| key: string; | ||
| maxAccessCount?: number | null; | ||
| name: string; | ||
| notes?: null | string; | ||
| password?: null | string; | ||
| revisionDate: Date; | ||
| text?: SendTextView | null; | ||
| type: SendType; | ||
| } | ||
| export interface SendFileView { | ||
| fileName: string; | ||
| id: string; | ||
| size: string; | ||
| /** | ||
| * Readable size, ex: "4.2 KB" or "1.43 GB" | ||
| */ | ||
| sizeName: string; | ||
| } | ||
| export interface SendTextView { | ||
| hidden: boolean; | ||
| text?: null | string; | ||
| } | ||
| export interface ResponseForAPIKeyLoginResponse { | ||
@@ -525,2 +924,19 @@ /** | ||
| } | ||
| export interface ResponseForFingerprintResponse { | ||
| /** | ||
| * The response data. Populated if `success` is true. | ||
| */ | ||
| data?: FingerprintResponse | null; | ||
| /** | ||
| * A message for any error that may occur. Populated if `success` is false. | ||
| */ | ||
| errorMessage?: null | string; | ||
| /** | ||
| * Whether or not the SDK request succeeded. | ||
| */ | ||
| success: boolean; | ||
| } | ||
| export interface FingerprintResponse { | ||
| fingerprint: string; | ||
| } | ||
| export interface ResponseForPasswordLoginResponse { | ||
@@ -616,2 +1032,68 @@ /** | ||
| } | ||
| export interface ResponseForProjectResponse { | ||
| /** | ||
| * The response data. Populated if `success` is true. | ||
| */ | ||
| data?: ProjectResponse | null; | ||
| /** | ||
| * A message for any error that may occur. Populated if `success` is false. | ||
| */ | ||
| errorMessage?: null | string; | ||
| /** | ||
| * Whether or not the SDK request succeeded. | ||
| */ | ||
| success: boolean; | ||
| } | ||
| export interface ProjectResponse { | ||
| creationDate: Date; | ||
| id: string; | ||
| name: string; | ||
| organizationId: string; | ||
| revisionDate: Date; | ||
| } | ||
| export interface ResponseForProjectsDeleteResponse { | ||
| /** | ||
| * The response data. Populated if `success` is true. | ||
| */ | ||
| data?: ProjectsDeleteResponse | null; | ||
| /** | ||
| * A message for any error that may occur. Populated if `success` is false. | ||
| */ | ||
| errorMessage?: null | string; | ||
| /** | ||
| * Whether or not the SDK request succeeded. | ||
| */ | ||
| success: boolean; | ||
| } | ||
| export interface ProjectsDeleteResponse { | ||
| data: ProjectDeleteResponse[]; | ||
| } | ||
| export interface ProjectDeleteResponse { | ||
| error?: null | string; | ||
| id: string; | ||
| } | ||
| export interface ResponseForProjectsResponse { | ||
| /** | ||
| * The response data. Populated if `success` is true. | ||
| */ | ||
| data?: ProjectsResponse | null; | ||
| /** | ||
| * A message for any error that may occur. Populated if `success` is false. | ||
| */ | ||
| errorMessage?: null | string; | ||
| /** | ||
| * Whether or not the SDK request succeeded. | ||
| */ | ||
| success: boolean; | ||
| } | ||
| export interface ProjectsResponse { | ||
| data: DatumElement[]; | ||
| } | ||
| export interface DatumElement { | ||
| creationDate: Date; | ||
| id: string; | ||
| name: string; | ||
| organizationId: string; | ||
| revisionDate: Date; | ||
| } | ||
| export interface ResponseForSecretIdentifiersResponse { | ||
@@ -654,10 +1136,9 @@ /** | ||
| export interface SecretResponse { | ||
| creationDate: string; | ||
| creationDate: Date; | ||
| id: string; | ||
| key: string; | ||
| note: string; | ||
| object: string; | ||
| organizationId: string; | ||
| projectId?: null | string; | ||
| revisionDate: string; | ||
| revisionDate: Date; | ||
| value: string; | ||
@@ -686,2 +1167,89 @@ } | ||
| } | ||
| export interface ResponseForSecretsResponse { | ||
| /** | ||
| * The response data. Populated if `success` is true. | ||
| */ | ||
| data?: SecretsResponse | null; | ||
| /** | ||
| * A message for any error that may occur. Populated if `success` is false. | ||
| */ | ||
| errorMessage?: null | string; | ||
| /** | ||
| * Whether or not the SDK request succeeded. | ||
| */ | ||
| success: boolean; | ||
| } | ||
| export interface SecretsResponse { | ||
| data: DatumClass[]; | ||
| } | ||
| export interface DatumClass { | ||
| creationDate: Date; | ||
| id: string; | ||
| key: string; | ||
| note: string; | ||
| organizationId: string; | ||
| projectId?: null | string; | ||
| revisionDate: Date; | ||
| value: string; | ||
| } | ||
| export interface ResponseForSyncResponse { | ||
| /** | ||
| * The response data. Populated if `success` is true. | ||
| */ | ||
| data?: SyncResponse | null; | ||
| /** | ||
| * A message for any error that may occur. Populated if `success` is false. | ||
| */ | ||
| errorMessage?: null | string; | ||
| /** | ||
| * Whether or not the SDK request succeeded. | ||
| */ | ||
| success: boolean; | ||
| } | ||
| export interface SyncResponse { | ||
| /** | ||
| * List of ciphers accesible by the user | ||
| */ | ||
| ciphers: CipherDetailsResponse[]; | ||
| /** | ||
| * Data about the user, including their encryption keys and the organizations they are a | ||
| * part of | ||
| */ | ||
| profile: ProfileResponse; | ||
| } | ||
| export interface CipherDetailsResponse { | ||
| } | ||
| /** | ||
| * Data about the user, including their encryption keys and the organizations they are a | ||
| * part of | ||
| */ | ||
| export interface ProfileResponse { | ||
| email: string; | ||
| id: string; | ||
| name: string; | ||
| organizations: ProfileOrganizationResponse[]; | ||
| } | ||
| export interface ProfileOrganizationResponse { | ||
| id: string; | ||
| } | ||
| export interface ResponseForUserAPIKeyResponse { | ||
| /** | ||
| * The response data. Populated if `success` is true. | ||
| */ | ||
| data?: UserAPIKeyResponse | null; | ||
| /** | ||
| * A message for any error that may occur. Populated if `success` is false. | ||
| */ | ||
| errorMessage?: null | string; | ||
| /** | ||
| * Whether or not the SDK request succeeded. | ||
| */ | ||
| success: boolean; | ||
| } | ||
| export interface UserAPIKeyResponse { | ||
| /** | ||
| * The user's API key, which represents the client_secret portion of an oauth request. | ||
| */ | ||
| apiKey: string; | ||
| } | ||
| export declare class Convert { | ||
@@ -692,6 +1260,16 @@ static toClientSettings(json: string): ClientSettings; | ||
| static commandToJson(value: Command): string; | ||
| static toDocRef(json: string): DocRef; | ||
| static docRefToJson(value: DocRef): string; | ||
| static toResponseForAPIKeyLoginResponse(json: string): ResponseForAPIKeyLoginResponse; | ||
| static responseForAPIKeyLoginResponseToJson(value: ResponseForAPIKeyLoginResponse): string; | ||
| static toResponseForFingerprintResponse(json: string): ResponseForFingerprintResponse; | ||
| static responseForFingerprintResponseToJson(value: ResponseForFingerprintResponse): string; | ||
| static toResponseForPasswordLoginResponse(json: string): ResponseForPasswordLoginResponse; | ||
| static responseForPasswordLoginResponseToJson(value: ResponseForPasswordLoginResponse): string; | ||
| static toResponseForProjectResponse(json: string): ResponseForProjectResponse; | ||
| static responseForProjectResponseToJson(value: ResponseForProjectResponse): string; | ||
| static toResponseForProjectsDeleteResponse(json: string): ResponseForProjectsDeleteResponse; | ||
| static responseForProjectsDeleteResponseToJson(value: ResponseForProjectsDeleteResponse): string; | ||
| static toResponseForProjectsResponse(json: string): ResponseForProjectsResponse; | ||
| static responseForProjectsResponseToJson(value: ResponseForProjectsResponse): string; | ||
| static toResponseForSecretIdentifiersResponse(json: string): ResponseForSecretIdentifiersResponse; | ||
@@ -703,2 +1281,8 @@ static responseForSecretIdentifiersResponseToJson(value: ResponseForSecretIdentifiersResponse): string; | ||
| static responseForSecretsDeleteResponseToJson(value: ResponseForSecretsDeleteResponse): string; | ||
| static toResponseForSecretsResponse(json: string): ResponseForSecretsResponse; | ||
| static responseForSecretsResponseToJson(value: ResponseForSecretsResponse): string; | ||
| static toResponseForSyncResponse(json: string): ResponseForSyncResponse; | ||
| static responseForSyncResponseToJson(value: ResponseForSyncResponse): string; | ||
| static toResponseForUserAPIKeyResponse(json: string): ResponseForUserAPIKeyResponse; | ||
| static responseForUserAPIKeyResponseToJson(value: ResponseForUserAPIKeyResponse): string; | ||
| } |
| "use strict"; | ||
| // To parse this data: | ||
| // | ||
| // import { Convert, ClientSettings, Command, ResponseForAPIKeyLoginResponse, ResponseForPasswordLoginResponse, ResponseForSecretIdentifiersResponse, ResponseForSecretResponse, ResponseForSecretsDeleteResponse } from "./file"; | ||
| // import { Convert, ClientSettings, Command, DocRef, ResponseForAPIKeyLoginResponse, ResponseForFingerprintResponse, ResponseForPasswordLoginResponse, ResponseForProjectResponse, ResponseForProjectsDeleteResponse, ResponseForProjectsResponse, ResponseForSecretIdentifiersResponse, ResponseForSecretResponse, ResponseForSecretsDeleteResponse, ResponseForSecretsResponse, ResponseForSyncResponse, ResponseForUserAPIKeyResponse } from "./file"; | ||
| // | ||
| // const clientSettings = Convert.toClientSettings(json); | ||
| // const command = Convert.toCommand(json); | ||
| // const docRef = Convert.toDocRef(json); | ||
| // const responseForAPIKeyLoginResponse = Convert.toResponseForAPIKeyLoginResponse(json); | ||
| // const responseForFingerprintResponse = Convert.toResponseForFingerprintResponse(json); | ||
| // const responseForPasswordLoginResponse = Convert.toResponseForPasswordLoginResponse(json); | ||
| // const responseForProjectResponse = Convert.toResponseForProjectResponse(json); | ||
| // const responseForProjectsDeleteResponse = Convert.toResponseForProjectsDeleteResponse(json); | ||
| // const responseForProjectsResponse = Convert.toResponseForProjectsResponse(json); | ||
| // const responseForSecretIdentifiersResponse = Convert.toResponseForSecretIdentifiersResponse(json); | ||
| // const responseForSecretResponse = Convert.toResponseForSecretResponse(json); | ||
| // const responseForSecretsDeleteResponse = Convert.toResponseForSecretsDeleteResponse(json); | ||
| // const responseForSecretsResponse = Convert.toResponseForSecretsResponse(json); | ||
| // const responseForSyncResponse = Convert.toResponseForSyncResponse(json); | ||
| // const responseForUserAPIKeyResponse = Convert.toResponseForUserAPIKeyResponse(json); | ||
| // | ||
@@ -17,3 +25,3 @@ // These functions will throw an error if the JSON doesn't | ||
| Object.defineProperty(exports, "__esModule", { value: true }); | ||
| exports.Convert = exports.DeviceType = void 0; | ||
| exports.Convert = exports.SendType = exports.ExportFormatEnum = exports.CipherType = exports.SecureNoteType = exports.CipherRepromptType = exports.URIMatchType = exports.FieldType = exports.LinkedIDType = exports.TwoFactorProvider = exports.DeviceType = void 0; | ||
| /** | ||
@@ -47,2 +55,88 @@ * Device type to send to Bitwarden. Defaults to SDK | ||
| })(DeviceType || (exports.DeviceType = DeviceType = {})); | ||
| /** | ||
| * Two-factor provider | ||
| */ | ||
| var TwoFactorProvider; | ||
| (function (TwoFactorProvider) { | ||
| TwoFactorProvider["Authenticator"] = "Authenticator"; | ||
| TwoFactorProvider["Duo"] = "Duo"; | ||
| TwoFactorProvider["Email"] = "Email"; | ||
| TwoFactorProvider["OrganizationDuo"] = "OrganizationDuo"; | ||
| TwoFactorProvider["Remember"] = "Remember"; | ||
| TwoFactorProvider["U2F"] = "U2f"; | ||
| TwoFactorProvider["WebAuthn"] = "WebAuthn"; | ||
| TwoFactorProvider["Yubikey"] = "Yubikey"; | ||
| })(TwoFactorProvider || (exports.TwoFactorProvider = TwoFactorProvider = {})); | ||
| var LinkedIDType; | ||
| (function (LinkedIDType) { | ||
| LinkedIDType["Address1"] = "Address1"; | ||
| LinkedIDType["Address2"] = "Address2"; | ||
| LinkedIDType["Address3"] = "Address3"; | ||
| LinkedIDType["Brand"] = "Brand"; | ||
| LinkedIDType["CardholderName"] = "CardholderName"; | ||
| LinkedIDType["City"] = "City"; | ||
| LinkedIDType["Code"] = "Code"; | ||
| LinkedIDType["Company"] = "Company"; | ||
| LinkedIDType["Country"] = "Country"; | ||
| LinkedIDType["Email"] = "Email"; | ||
| LinkedIDType["ExpMonth"] = "ExpMonth"; | ||
| LinkedIDType["ExpYear"] = "ExpYear"; | ||
| LinkedIDType["FirstName"] = "FirstName"; | ||
| LinkedIDType["FullName"] = "FullName"; | ||
| LinkedIDType["LastName"] = "LastName"; | ||
| LinkedIDType["LicenseNumber"] = "LicenseNumber"; | ||
| LinkedIDType["MiddleName"] = "MiddleName"; | ||
| LinkedIDType["Number"] = "Number"; | ||
| LinkedIDType["PassportNumber"] = "PassportNumber"; | ||
| LinkedIDType["Password"] = "Password"; | ||
| LinkedIDType["Phone"] = "Phone"; | ||
| LinkedIDType["PostalCode"] = "PostalCode"; | ||
| LinkedIDType["Ssn"] = "Ssn"; | ||
| LinkedIDType["State"] = "State"; | ||
| LinkedIDType["Title"] = "Title"; | ||
| LinkedIDType["Username"] = "Username"; | ||
| })(LinkedIDType || (exports.LinkedIDType = LinkedIDType = {})); | ||
| var FieldType; | ||
| (function (FieldType) { | ||
| FieldType["Boolean"] = "Boolean"; | ||
| FieldType["Hidden"] = "Hidden"; | ||
| FieldType["Linked"] = "Linked"; | ||
| FieldType["Text"] = "Text"; | ||
| })(FieldType || (exports.FieldType = FieldType = {})); | ||
| var URIMatchType; | ||
| (function (URIMatchType) { | ||
| URIMatchType["Domain"] = "domain"; | ||
| URIMatchType["Exact"] = "exact"; | ||
| URIMatchType["Host"] = "host"; | ||
| URIMatchType["Never"] = "never"; | ||
| URIMatchType["RegularExpression"] = "regularExpression"; | ||
| URIMatchType["StartsWith"] = "startsWith"; | ||
| })(URIMatchType || (exports.URIMatchType = URIMatchType = {})); | ||
| var CipherRepromptType; | ||
| (function (CipherRepromptType) { | ||
| CipherRepromptType["None"] = "None"; | ||
| CipherRepromptType["Password"] = "Password"; | ||
| })(CipherRepromptType || (exports.CipherRepromptType = CipherRepromptType = {})); | ||
| var SecureNoteType; | ||
| (function (SecureNoteType) { | ||
| SecureNoteType["Generic"] = "Generic"; | ||
| })(SecureNoteType || (exports.SecureNoteType = SecureNoteType = {})); | ||
| var CipherType; | ||
| (function (CipherType) { | ||
| CipherType["Card"] = "Card"; | ||
| CipherType["Identity"] = "Identity"; | ||
| CipherType["Login"] = "Login"; | ||
| CipherType["SecureNote"] = "SecureNote"; | ||
| })(CipherType || (exports.CipherType = CipherType = {})); | ||
| var ExportFormatEnum; | ||
| (function (ExportFormatEnum) { | ||
| ExportFormatEnum["AccountEncryptedJSON"] = "AccountEncryptedJson"; | ||
| ExportFormatEnum["CSV"] = "Csv"; | ||
| ExportFormatEnum["JSON"] = "Json"; | ||
| })(ExportFormatEnum || (exports.ExportFormatEnum = ExportFormatEnum = {})); | ||
| var SendType; | ||
| (function (SendType) { | ||
| SendType["File"] = "File"; | ||
| SendType["Text"] = "Text"; | ||
| })(SendType || (exports.SendType = SendType = {})); | ||
| // Converts JSON strings to/from your types | ||
@@ -63,2 +157,8 @@ // and asserts the results of JSON.parse at runtime | ||
| } | ||
| static toDocRef(json) { | ||
| return cast(JSON.parse(json), r("DocRef")); | ||
| } | ||
| static docRefToJson(value) { | ||
| return JSON.stringify(uncast(value, r("DocRef")), null, 2); | ||
| } | ||
| static toResponseForAPIKeyLoginResponse(json) { | ||
@@ -70,2 +170,8 @@ return cast(JSON.parse(json), r("ResponseForAPIKeyLoginResponse")); | ||
| } | ||
| static toResponseForFingerprintResponse(json) { | ||
| return cast(JSON.parse(json), r("ResponseForFingerprintResponse")); | ||
| } | ||
| static responseForFingerprintResponseToJson(value) { | ||
| return JSON.stringify(uncast(value, r("ResponseForFingerprintResponse")), null, 2); | ||
| } | ||
| static toResponseForPasswordLoginResponse(json) { | ||
@@ -77,2 +183,20 @@ return cast(JSON.parse(json), r("ResponseForPasswordLoginResponse")); | ||
| } | ||
| static toResponseForProjectResponse(json) { | ||
| return cast(JSON.parse(json), r("ResponseForProjectResponse")); | ||
| } | ||
| static responseForProjectResponseToJson(value) { | ||
| return JSON.stringify(uncast(value, r("ResponseForProjectResponse")), null, 2); | ||
| } | ||
| static toResponseForProjectsDeleteResponse(json) { | ||
| return cast(JSON.parse(json), r("ResponseForProjectsDeleteResponse")); | ||
| } | ||
| static responseForProjectsDeleteResponseToJson(value) { | ||
| return JSON.stringify(uncast(value, r("ResponseForProjectsDeleteResponse")), null, 2); | ||
| } | ||
| static toResponseForProjectsResponse(json) { | ||
| return cast(JSON.parse(json), r("ResponseForProjectsResponse")); | ||
| } | ||
| static responseForProjectsResponseToJson(value) { | ||
| return JSON.stringify(uncast(value, r("ResponseForProjectsResponse")), null, 2); | ||
| } | ||
| static toResponseForSecretIdentifiersResponse(json) { | ||
@@ -96,2 +220,20 @@ return cast(JSON.parse(json), r("ResponseForSecretIdentifiersResponse")); | ||
| } | ||
| static toResponseForSecretsResponse(json) { | ||
| return cast(JSON.parse(json), r("ResponseForSecretsResponse")); | ||
| } | ||
| static responseForSecretsResponseToJson(value) { | ||
| return JSON.stringify(uncast(value, r("ResponseForSecretsResponse")), null, 2); | ||
| } | ||
| static toResponseForSyncResponse(json) { | ||
| return cast(JSON.parse(json), r("ResponseForSyncResponse")); | ||
| } | ||
| static responseForSyncResponseToJson(value) { | ||
| return JSON.stringify(uncast(value, r("ResponseForSyncResponse")), null, 2); | ||
| } | ||
| static toResponseForUserAPIKeyResponse(json) { | ||
| return cast(JSON.parse(json), r("ResponseForUserAPIKeyResponse")); | ||
| } | ||
| static responseForUserAPIKeyResponseToJson(value) { | ||
| return JSON.stringify(uncast(value, r("ResponseForUserAPIKeyResponse")), null, 2); | ||
| } | ||
| } | ||
@@ -246,6 +388,6 @@ exports.Convert = Convert; | ||
| "ClientSettings": o([ | ||
| { json: "apiUrl", js: "apiUrl", typ: "" }, | ||
| { json: "deviceType", js: "deviceType", typ: r("DeviceType") }, | ||
| { json: "identityUrl", js: "identityUrl", typ: "" }, | ||
| { json: "userAgent", js: "userAgent", typ: "" }, | ||
| { json: "apiUrl", js: "apiUrl", typ: u(undefined, "") }, | ||
| { json: "deviceType", js: "deviceType", typ: u(undefined, r("DeviceType")) }, | ||
| { json: "identityUrl", js: "identityUrl", typ: u(undefined, "") }, | ||
| { json: "userAgent", js: "userAgent", typ: u(undefined, "") }, | ||
| ], false), | ||
@@ -261,3 +403,2 @@ "Command": o([ | ||
| { json: "projects", js: "projects", typ: u(undefined, r("ProjectsCommand")) }, | ||
| { json: "mobile", js: "mobile", typ: u(undefined, r("MobileCommand")) }, | ||
| ], false), | ||
@@ -280,23 +421,13 @@ "AccessTokenLoginRequest": o([ | ||
| ], false), | ||
| "MobileCommand": o([ | ||
| { json: "kdf", js: "kdf", typ: u(undefined, r("MobileKdfCommand")) }, | ||
| { json: "crypto", js: "crypto", typ: u(undefined, r("MobileCryptoCommand")) }, | ||
| { json: "vault", js: "vault", typ: u(undefined, r("MobileVaultCommand")) }, | ||
| ], false), | ||
| "MobileCryptoCommand": o([ | ||
| { json: "initCrypto", js: "initCrypto", typ: r("InitCryptoRequest") }, | ||
| ], false), | ||
| "InitCryptoRequest": o([ | ||
| "PasswordLoginRequest": o([ | ||
| { json: "email", js: "email", typ: "" }, | ||
| { json: "kdfParams", js: "kdfParams", typ: r("Kdf") }, | ||
| { json: "organizationKeys", js: "organizationKeys", typ: m("") }, | ||
| { json: "kdf", js: "kdf", typ: r("PasswordLoginKdf") }, | ||
| { json: "password", js: "password", typ: "" }, | ||
| { json: "privateKey", js: "privateKey", typ: "" }, | ||
| { json: "userKey", js: "userKey", typ: "" }, | ||
| { json: "twoFactor", js: "twoFactor", typ: u(undefined, u(r("TwoFactorRequest"), null)) }, | ||
| ], false), | ||
| "Kdf": o([ | ||
| { json: "pBKDF2", js: "pBKDF2", typ: u(undefined, r("PBKDF2")) }, | ||
| { json: "argon2id", js: "argon2id", typ: u(undefined, r("Argon2ID")) }, | ||
| "PasswordLoginKdf": o([ | ||
| { json: "pBKDF2", js: "pBKDF2", typ: u(undefined, r("PurplePBKDF2")) }, | ||
| { json: "argon2id", js: "argon2id", typ: u(undefined, r("PurpleArgon2ID")) }, | ||
| ], false), | ||
| "Argon2ID": o([ | ||
| "PurpleArgon2ID": o([ | ||
| { json: "iterations", js: "iterations", typ: 0 }, | ||
@@ -306,35 +437,10 @@ { json: "memory", js: "memory", typ: 0 }, | ||
| ], false), | ||
| "PBKDF2": o([ | ||
| "PurplePBKDF2": o([ | ||
| { json: "iterations", js: "iterations", typ: 0 }, | ||
| ], false), | ||
| "MobileKdfCommand": o([ | ||
| { json: "hashPassword", js: "hashPassword", typ: r("PasswordHashRequest") }, | ||
| "TwoFactorRequest": o([ | ||
| { json: "provider", js: "provider", typ: r("TwoFactorProvider") }, | ||
| { json: "remember", js: "remember", typ: true }, | ||
| { json: "token", js: "token", typ: "" }, | ||
| ], false), | ||
| "PasswordHashRequest": o([ | ||
| { json: "email", js: "email", typ: "" }, | ||
| { json: "kdfParams", js: "kdfParams", typ: r("Kdf") }, | ||
| { json: "password", js: "password", typ: "" }, | ||
| ], false), | ||
| "MobileVaultCommand": o([ | ||
| { json: "folders", js: "folders", typ: r("MobileFoldersCommand") }, | ||
| ], false), | ||
| "MobileFoldersCommand": o([ | ||
| { json: "decrypt", js: "decrypt", typ: u(undefined, r("FolderDecryptRequest")) }, | ||
| { json: "decryptList", js: "decryptList", typ: u(undefined, r("FolderDecryptListRequest")) }, | ||
| ], false), | ||
| "FolderDecryptRequest": o([ | ||
| { json: "folder", js: "folder", typ: r("Folder") }, | ||
| ], false), | ||
| "Folder": o([ | ||
| { json: "id", js: "id", typ: "" }, | ||
| { json: "name", js: "name", typ: "" }, | ||
| { json: "revisionDate", js: "revisionDate", typ: Date }, | ||
| ], "any"), | ||
| "FolderDecryptListRequest": o([ | ||
| { json: "folders", js: "folders", typ: a(r("Folder")) }, | ||
| ], false), | ||
| "PasswordLoginRequest": o([ | ||
| { json: "email", js: "email", typ: "" }, | ||
| { json: "password", js: "password", typ: "" }, | ||
| ], false), | ||
| "ProjectsCommand": o([ | ||
@@ -367,2 +473,3 @@ { json: "get", js: "get", typ: u(undefined, r("ProjectGetRequest")) }, | ||
| { json: "get", js: "get", typ: u(undefined, r("SecretGetRequest")) }, | ||
| { json: "getByIds", js: "getByIds", typ: u(undefined, r("SecretsGetRequest")) }, | ||
| { json: "create", js: "create", typ: u(undefined, r("SecretCreateRequest")) }, | ||
@@ -386,2 +493,5 @@ { json: "list", js: "list", typ: u(undefined, r("SecretIdentifiersRequest")) }, | ||
| ], false), | ||
| "SecretsGetRequest": o([ | ||
| { json: "ids", js: "ids", typ: a("") }, | ||
| ], false), | ||
| "SecretIdentifiersRequest": o([ | ||
@@ -401,2 +511,335 @@ { json: "organizationId", js: "organizationId", typ: "" }, | ||
| ], false), | ||
| "DocRef": o([ | ||
| { json: "Cipher", js: "Cipher", typ: u(undefined, r("Cipher")) }, | ||
| { json: "CipherView", js: "CipherView", typ: u(undefined, r("CipherView")) }, | ||
| { json: "Collection", js: "Collection", typ: u(undefined, r("Collection")) }, | ||
| { json: "Folder", js: "Folder", typ: u(undefined, r("Folder")) }, | ||
| { json: "FolderView", js: "FolderView", typ: u(undefined, r("FolderView")) }, | ||
| { json: "Send", js: "Send", typ: u(undefined, r("Send")) }, | ||
| { json: "SendView", js: "SendView", typ: u(undefined, r("SendView")) }, | ||
| { json: "SendListView", js: "SendListView", typ: u(undefined, r("SendListView")) }, | ||
| { json: "InitCryptoRequest", js: "InitCryptoRequest", typ: u(undefined, r("InitCryptoRequest")) }, | ||
| { json: "PasswordGeneratorRequest", js: "PasswordGeneratorRequest", typ: u(undefined, r("PasswordGeneratorRequest")) }, | ||
| { json: "PassphraseGeneratorRequest", js: "PassphraseGeneratorRequest", typ: u(undefined, r("PassphraseGeneratorRequest")) }, | ||
| { json: "ExportFormat", js: "ExportFormat", typ: u(undefined, u(r("ExportFormatClass"), r("ExportFormatEnum"))) }, | ||
| { json: "MasterPasswordPolicyOptions", js: "MasterPasswordPolicyOptions", typ: u(undefined, r("MasterPasswordPolicyOptions")) }, | ||
| { json: "Kdf", js: "Kdf", typ: u(undefined, r("InitCryptoRequestKdf")) }, | ||
| ], false), | ||
| "Cipher": o([ | ||
| { json: "attachments", js: "attachments", typ: u(undefined, u(a(r("Attachment")), null)) }, | ||
| { json: "card", js: "card", typ: u(undefined, u(r("Card"), null)) }, | ||
| { json: "collectionIds", js: "collectionIds", typ: a("") }, | ||
| { json: "creationDate", js: "creationDate", typ: Date }, | ||
| { json: "deletedDate", js: "deletedDate", typ: u(undefined, u(Date, null)) }, | ||
| { json: "edit", js: "edit", typ: true }, | ||
| { json: "favorite", js: "favorite", typ: true }, | ||
| { json: "fields", js: "fields", typ: u(undefined, u(a(r("Field")), null)) }, | ||
| { json: "folderId", js: "folderId", typ: u(undefined, u(null, "")) }, | ||
| { json: "id", js: "id", typ: u(undefined, u(null, "")) }, | ||
| { json: "identity", js: "identity", typ: u(undefined, u(r("Identity"), null)) }, | ||
| { json: "localData", js: "localData", typ: u(undefined, u(r("LocalData"), null)) }, | ||
| { json: "login", js: "login", typ: u(undefined, u(r("Login"), null)) }, | ||
| { json: "name", js: "name", typ: "" }, | ||
| { json: "notes", js: "notes", typ: u(undefined, u(null, "")) }, | ||
| { json: "organizationId", js: "organizationId", typ: u(undefined, u(null, "")) }, | ||
| { json: "organizationUseTotp", js: "organizationUseTotp", typ: true }, | ||
| { json: "passwordHistory", js: "passwordHistory", typ: u(undefined, u(a(r("PasswordHistory")), null)) }, | ||
| { json: "reprompt", js: "reprompt", typ: r("CipherRepromptType") }, | ||
| { json: "revisionDate", js: "revisionDate", typ: Date }, | ||
| { json: "secureNote", js: "secureNote", typ: u(undefined, u(r("SecureNote"), null)) }, | ||
| { json: "type", js: "type", typ: r("CipherType") }, | ||
| { json: "viewPassword", js: "viewPassword", typ: true }, | ||
| ], false), | ||
| "Attachment": o([ | ||
| { json: "fileName", js: "fileName", typ: u(undefined, u(null, "")) }, | ||
| { json: "id", js: "id", typ: u(undefined, u(null, "")) }, | ||
| { json: "key", js: "key", typ: u(undefined, u(null, "")) }, | ||
| { json: "size", js: "size", typ: u(undefined, u(null, "")) }, | ||
| { json: "sizeName", js: "sizeName", typ: u(undefined, u(null, "")) }, | ||
| { json: "url", js: "url", typ: u(undefined, u(null, "")) }, | ||
| ], false), | ||
| "Card": o([ | ||
| { json: "brand", js: "brand", typ: u(undefined, u(null, "")) }, | ||
| { json: "cardholderName", js: "cardholderName", typ: u(undefined, u(null, "")) }, | ||
| { json: "code", js: "code", typ: u(undefined, u(null, "")) }, | ||
| { json: "expMonth", js: "expMonth", typ: u(undefined, u(null, "")) }, | ||
| { json: "expYear", js: "expYear", typ: u(undefined, u(null, "")) }, | ||
| { json: "number", js: "number", typ: u(undefined, u(null, "")) }, | ||
| ], false), | ||
| "Field": o([ | ||
| { json: "linkedId", js: "linkedId", typ: u(undefined, u(r("LinkedIDType"), null)) }, | ||
| { json: "name", js: "name", typ: u(undefined, u(null, "")) }, | ||
| { json: "type", js: "type", typ: r("FieldType") }, | ||
| { json: "value", js: "value", typ: u(undefined, u(null, "")) }, | ||
| ], false), | ||
| "Identity": o([ | ||
| { json: "address1", js: "address1", typ: u(undefined, u(null, "")) }, | ||
| { json: "address2", js: "address2", typ: u(undefined, u(null, "")) }, | ||
| { json: "address3", js: "address3", typ: u(undefined, u(null, "")) }, | ||
| { json: "city", js: "city", typ: u(undefined, u(null, "")) }, | ||
| { json: "company", js: "company", typ: u(undefined, u(null, "")) }, | ||
| { json: "country", js: "country", typ: u(undefined, u(null, "")) }, | ||
| { json: "email", js: "email", typ: u(undefined, u(null, "")) }, | ||
| { json: "firstName", js: "firstName", typ: u(undefined, u(null, "")) }, | ||
| { json: "lastName", js: "lastName", typ: u(undefined, u(null, "")) }, | ||
| { json: "licenseNumber", js: "licenseNumber", typ: u(undefined, u(null, "")) }, | ||
| { json: "middleName", js: "middleName", typ: u(undefined, u(null, "")) }, | ||
| { json: "passportNumber", js: "passportNumber", typ: u(undefined, u(null, "")) }, | ||
| { json: "phone", js: "phone", typ: u(undefined, u(null, "")) }, | ||
| { json: "postalCode", js: "postalCode", typ: u(undefined, u(null, "")) }, | ||
| { json: "ssn", js: "ssn", typ: u(undefined, u(null, "")) }, | ||
| { json: "state", js: "state", typ: u(undefined, u(null, "")) }, | ||
| { json: "title", js: "title", typ: u(undefined, u(null, "")) }, | ||
| { json: "username", js: "username", typ: u(undefined, u(null, "")) }, | ||
| ], false), | ||
| "LocalData": o([ | ||
| { json: "lastLaunched", js: "lastLaunched", typ: u(undefined, u(0, null)) }, | ||
| { json: "lastUsedDate", js: "lastUsedDate", typ: u(undefined, u(0, null)) }, | ||
| ], false), | ||
| "Login": o([ | ||
| { json: "autofillOnPageLoad", js: "autofillOnPageLoad", typ: u(undefined, u(true, null)) }, | ||
| { json: "password", js: "password", typ: u(undefined, u(null, "")) }, | ||
| { json: "passwordRevisionDate", js: "passwordRevisionDate", typ: u(undefined, u(Date, null)) }, | ||
| { json: "totp", js: "totp", typ: u(undefined, u(null, "")) }, | ||
| { json: "uris", js: "uris", typ: u(undefined, u(a(r("LoginURI")), null)) }, | ||
| { json: "username", js: "username", typ: u(undefined, u(null, "")) }, | ||
| ], false), | ||
| "LoginURI": o([ | ||
| { json: "match", js: "match", typ: u(undefined, u(r("URIMatchType"), null)) }, | ||
| { json: "uri", js: "uri", typ: u(undefined, u(null, "")) }, | ||
| ], false), | ||
| "PasswordHistory": o([ | ||
| { json: "lastUsedDate", js: "lastUsedDate", typ: Date }, | ||
| { json: "password", js: "password", typ: "" }, | ||
| ], false), | ||
| "SecureNote": o([ | ||
| { json: "type", js: "type", typ: r("SecureNoteType") }, | ||
| ], false), | ||
| "CipherView": o([ | ||
| { json: "attachments", js: "attachments", typ: u(undefined, u(a(r("AttachmentView")), null)) }, | ||
| { json: "card", js: "card", typ: u(undefined, u(r("CardView"), null)) }, | ||
| { json: "collectionIds", js: "collectionIds", typ: a("") }, | ||
| { json: "creationDate", js: "creationDate", typ: Date }, | ||
| { json: "deletedDate", js: "deletedDate", typ: u(undefined, u(Date, null)) }, | ||
| { json: "edit", js: "edit", typ: true }, | ||
| { json: "favorite", js: "favorite", typ: true }, | ||
| { json: "fields", js: "fields", typ: u(undefined, u(a(r("FieldView")), null)) }, | ||
| { json: "folderId", js: "folderId", typ: u(undefined, u(null, "")) }, | ||
| { json: "id", js: "id", typ: u(undefined, u(null, "")) }, | ||
| { json: "identity", js: "identity", typ: u(undefined, u(r("IdentityView"), null)) }, | ||
| { json: "localData", js: "localData", typ: u(undefined, u(r("LocalDataView"), null)) }, | ||
| { json: "login", js: "login", typ: u(undefined, u(r("LoginView"), null)) }, | ||
| { json: "name", js: "name", typ: "" }, | ||
| { json: "notes", js: "notes", typ: u(undefined, u(null, "")) }, | ||
| { json: "organizationId", js: "organizationId", typ: u(undefined, u(null, "")) }, | ||
| { json: "organizationUseTotp", js: "organizationUseTotp", typ: true }, | ||
| { json: "passwordHistory", js: "passwordHistory", typ: u(undefined, u(a(r("PasswordHistoryView")), null)) }, | ||
| { json: "reprompt", js: "reprompt", typ: r("CipherRepromptType") }, | ||
| { json: "revisionDate", js: "revisionDate", typ: Date }, | ||
| { json: "secureNote", js: "secureNote", typ: u(undefined, u(r("SecureNoteView"), null)) }, | ||
| { json: "type", js: "type", typ: r("CipherType") }, | ||
| { json: "viewPassword", js: "viewPassword", typ: true }, | ||
| ], false), | ||
| "AttachmentView": o([ | ||
| { json: "fileName", js: "fileName", typ: u(undefined, u(null, "")) }, | ||
| { json: "id", js: "id", typ: u(undefined, u(null, "")) }, | ||
| { json: "key", js: "key", typ: u(undefined, u(null, "")) }, | ||
| { json: "size", js: "size", typ: u(undefined, u(null, "")) }, | ||
| { json: "sizeName", js: "sizeName", typ: u(undefined, u(null, "")) }, | ||
| { json: "url", js: "url", typ: u(undefined, u(null, "")) }, | ||
| ], false), | ||
| "CardView": o([ | ||
| { json: "brand", js: "brand", typ: u(undefined, u(null, "")) }, | ||
| { json: "cardholderName", js: "cardholderName", typ: u(undefined, u(null, "")) }, | ||
| { json: "code", js: "code", typ: u(undefined, u(null, "")) }, | ||
| { json: "expMonth", js: "expMonth", typ: u(undefined, u(null, "")) }, | ||
| { json: "expYear", js: "expYear", typ: u(undefined, u(null, "")) }, | ||
| { json: "number", js: "number", typ: u(undefined, u(null, "")) }, | ||
| ], false), | ||
| "FieldView": o([ | ||
| { json: "linkedId", js: "linkedId", typ: u(undefined, u(r("LinkedIDType"), null)) }, | ||
| { json: "name", js: "name", typ: u(undefined, u(null, "")) }, | ||
| { json: "type", js: "type", typ: r("FieldType") }, | ||
| { json: "value", js: "value", typ: u(undefined, u(null, "")) }, | ||
| ], false), | ||
| "IdentityView": o([ | ||
| { json: "address1", js: "address1", typ: u(undefined, u(null, "")) }, | ||
| { json: "address2", js: "address2", typ: u(undefined, u(null, "")) }, | ||
| { json: "address3", js: "address3", typ: u(undefined, u(null, "")) }, | ||
| { json: "city", js: "city", typ: u(undefined, u(null, "")) }, | ||
| { json: "company", js: "company", typ: u(undefined, u(null, "")) }, | ||
| { json: "country", js: "country", typ: u(undefined, u(null, "")) }, | ||
| { json: "email", js: "email", typ: u(undefined, u(null, "")) }, | ||
| { json: "firstName", js: "firstName", typ: u(undefined, u(null, "")) }, | ||
| { json: "lastName", js: "lastName", typ: u(undefined, u(null, "")) }, | ||
| { json: "licenseNumber", js: "licenseNumber", typ: u(undefined, u(null, "")) }, | ||
| { json: "middleName", js: "middleName", typ: u(undefined, u(null, "")) }, | ||
| { json: "passportNumber", js: "passportNumber", typ: u(undefined, u(null, "")) }, | ||
| { json: "phone", js: "phone", typ: u(undefined, u(null, "")) }, | ||
| { json: "postalCode", js: "postalCode", typ: u(undefined, u(null, "")) }, | ||
| { json: "ssn", js: "ssn", typ: u(undefined, u(null, "")) }, | ||
| { json: "state", js: "state", typ: u(undefined, u(null, "")) }, | ||
| { json: "title", js: "title", typ: u(undefined, u(null, "")) }, | ||
| { json: "username", js: "username", typ: u(undefined, u(null, "")) }, | ||
| ], false), | ||
| "LocalDataView": o([ | ||
| { json: "lastLaunched", js: "lastLaunched", typ: u(undefined, u(0, null)) }, | ||
| { json: "lastUsedDate", js: "lastUsedDate", typ: u(undefined, u(0, null)) }, | ||
| ], false), | ||
| "LoginView": o([ | ||
| { json: "autofillOnPageLoad", js: "autofillOnPageLoad", typ: u(undefined, u(true, null)) }, | ||
| { json: "password", js: "password", typ: u(undefined, u(null, "")) }, | ||
| { json: "passwordRevisionDate", js: "passwordRevisionDate", typ: u(undefined, u(Date, null)) }, | ||
| { json: "totp", js: "totp", typ: u(undefined, u(null, "")) }, | ||
| { json: "uris", js: "uris", typ: u(undefined, u(a(r("LoginURIView")), null)) }, | ||
| { json: "username", js: "username", typ: u(undefined, u(null, "")) }, | ||
| ], false), | ||
| "LoginURIView": o([ | ||
| { json: "match", js: "match", typ: u(undefined, u(r("URIMatchType"), null)) }, | ||
| { json: "uri", js: "uri", typ: u(undefined, u(null, "")) }, | ||
| ], false), | ||
| "PasswordHistoryView": o([ | ||
| { json: "lastUsedDate", js: "lastUsedDate", typ: Date }, | ||
| { json: "password", js: "password", typ: "" }, | ||
| ], false), | ||
| "SecureNoteView": o([ | ||
| { json: "type", js: "type", typ: r("SecureNoteType") }, | ||
| ], false), | ||
| "Collection": o([ | ||
| { json: "externalId", js: "externalId", typ: u(undefined, u(null, "")) }, | ||
| { json: "hidePasswords", js: "hidePasswords", typ: true }, | ||
| { json: "id", js: "id", typ: "" }, | ||
| { json: "name", js: "name", typ: "" }, | ||
| { json: "organizationId", js: "organizationId", typ: "" }, | ||
| { json: "readOnly", js: "readOnly", typ: true }, | ||
| ], false), | ||
| "ExportFormatClass": o([ | ||
| { json: "EncryptedJson", js: "EncryptedJson", typ: r("EncryptedJSON") }, | ||
| ], false), | ||
| "EncryptedJSON": o([ | ||
| { json: "password", js: "password", typ: "" }, | ||
| ], "any"), | ||
| "Folder": o([ | ||
| { json: "id", js: "id", typ: "" }, | ||
| { json: "name", js: "name", typ: "" }, | ||
| { json: "revisionDate", js: "revisionDate", typ: Date }, | ||
| ], "any"), | ||
| "FolderView": o([ | ||
| { json: "id", js: "id", typ: "" }, | ||
| { json: "name", js: "name", typ: "" }, | ||
| { json: "revisionDate", js: "revisionDate", typ: Date }, | ||
| ], "any"), | ||
| "InitCryptoRequest": o([ | ||
| { json: "email", js: "email", typ: "" }, | ||
| { json: "kdfParams", js: "kdfParams", typ: r("InitCryptoRequestKdf") }, | ||
| { json: "organizationKeys", js: "organizationKeys", typ: m("") }, | ||
| { json: "password", js: "password", typ: "" }, | ||
| { json: "privateKey", js: "privateKey", typ: "" }, | ||
| { json: "userKey", js: "userKey", typ: "" }, | ||
| ], false), | ||
| "InitCryptoRequestKdf": o([ | ||
| { json: "pBKDF2", js: "pBKDF2", typ: u(undefined, r("FluffyPBKDF2")) }, | ||
| { json: "argon2id", js: "argon2id", typ: u(undefined, r("FluffyArgon2ID")) }, | ||
| ], false), | ||
| "FluffyArgon2ID": o([ | ||
| { json: "iterations", js: "iterations", typ: 0 }, | ||
| { json: "memory", js: "memory", typ: 0 }, | ||
| { json: "parallelism", js: "parallelism", typ: 0 }, | ||
| ], false), | ||
| "FluffyPBKDF2": o([ | ||
| { json: "iterations", js: "iterations", typ: 0 }, | ||
| ], false), | ||
| "MasterPasswordPolicyOptions": o([ | ||
| { json: "enforce_on_login", js: "enforce_on_login", typ: true }, | ||
| { json: "min_complexity", js: "min_complexity", typ: 0 }, | ||
| { json: "min_length", js: "min_length", typ: 0 }, | ||
| { json: "require_lower", js: "require_lower", typ: true }, | ||
| { json: "require_numbers", js: "require_numbers", typ: true }, | ||
| { json: "require_special", js: "require_special", typ: true }, | ||
| { json: "require_upper", js: "require_upper", typ: true }, | ||
| ], "any"), | ||
| "PassphraseGeneratorRequest": o([ | ||
| { json: "capitalize", js: "capitalize", typ: u(undefined, u(true, null)) }, | ||
| { json: "includeNumber", js: "includeNumber", typ: u(undefined, u(true, null)) }, | ||
| { json: "numWords", js: "numWords", typ: u(undefined, u(0, null)) }, | ||
| { json: "wordSeparator", js: "wordSeparator", typ: u(undefined, u(null, "")) }, | ||
| ], false), | ||
| "PasswordGeneratorRequest": o([ | ||
| { json: "avoidAmbiguous", js: "avoidAmbiguous", typ: u(undefined, u(true, null)) }, | ||
| { json: "length", js: "length", typ: u(undefined, u(0, null)) }, | ||
| { json: "lowercase", js: "lowercase", typ: true }, | ||
| { json: "minLowercase", js: "minLowercase", typ: u(undefined, u(true, null)) }, | ||
| { json: "minNumber", js: "minNumber", typ: u(undefined, u(true, null)) }, | ||
| { json: "minSpecial", js: "minSpecial", typ: u(undefined, u(true, null)) }, | ||
| { json: "minUppercase", js: "minUppercase", typ: u(undefined, u(true, null)) }, | ||
| { json: "numbers", js: "numbers", typ: true }, | ||
| { json: "special", js: "special", typ: true }, | ||
| { json: "uppercase", js: "uppercase", typ: true }, | ||
| ], false), | ||
| "Send": o([ | ||
| { json: "accessCount", js: "accessCount", typ: 0 }, | ||
| { json: "accessId", js: "accessId", typ: "" }, | ||
| { json: "deletionDate", js: "deletionDate", typ: Date }, | ||
| { json: "disabled", js: "disabled", typ: true }, | ||
| { json: "expirationDate", js: "expirationDate", typ: u(undefined, u(Date, null)) }, | ||
| { json: "file", js: "file", typ: u(undefined, u(r("SendFile"), null)) }, | ||
| { json: "hideEmail", js: "hideEmail", typ: true }, | ||
| { json: "id", js: "id", typ: "" }, | ||
| { json: "key", js: "key", typ: "" }, | ||
| { json: "maxAccessCount", js: "maxAccessCount", typ: u(undefined, u(0, null)) }, | ||
| { json: "name", js: "name", typ: "" }, | ||
| { json: "notes", js: "notes", typ: u(undefined, u(null, "")) }, | ||
| { json: "password", js: "password", typ: u(undefined, u(null, "")) }, | ||
| { json: "revisionDate", js: "revisionDate", typ: Date }, | ||
| { json: "text", js: "text", typ: u(undefined, u(r("SendText"), null)) }, | ||
| { json: "type", js: "type", typ: r("SendType") }, | ||
| ], false), | ||
| "SendFile": o([ | ||
| { json: "fileName", js: "fileName", typ: "" }, | ||
| { json: "id", js: "id", typ: "" }, | ||
| { json: "size", js: "size", typ: "" }, | ||
| { json: "sizeName", js: "sizeName", typ: "" }, | ||
| ], false), | ||
| "SendText": o([ | ||
| { json: "hidden", js: "hidden", typ: true }, | ||
| { json: "text", js: "text", typ: u(undefined, u(null, "")) }, | ||
| ], false), | ||
| "SendListView": o([ | ||
| { json: "accessId", js: "accessId", typ: "" }, | ||
| { json: "deletionDate", js: "deletionDate", typ: Date }, | ||
| { json: "disabled", js: "disabled", typ: true }, | ||
| { json: "expirationDate", js: "expirationDate", typ: u(undefined, u(Date, null)) }, | ||
| { json: "id", js: "id", typ: "" }, | ||
| { json: "name", js: "name", typ: "" }, | ||
| { json: "revisionDate", js: "revisionDate", typ: Date }, | ||
| { json: "type", js: "type", typ: r("SendType") }, | ||
| ], false), | ||
| "SendView": o([ | ||
| { json: "accessCount", js: "accessCount", typ: 0 }, | ||
| { json: "accessId", js: "accessId", typ: "" }, | ||
| { json: "deletionDate", js: "deletionDate", typ: Date }, | ||
| { json: "disabled", js: "disabled", typ: true }, | ||
| { json: "expirationDate", js: "expirationDate", typ: u(undefined, u(Date, null)) }, | ||
| { json: "file", js: "file", typ: u(undefined, u(r("SendFileView"), null)) }, | ||
| { json: "hideEmail", js: "hideEmail", typ: true }, | ||
| { json: "id", js: "id", typ: "" }, | ||
| { json: "key", js: "key", typ: "" }, | ||
| { json: "maxAccessCount", js: "maxAccessCount", typ: u(undefined, u(0, null)) }, | ||
| { json: "name", js: "name", typ: "" }, | ||
| { json: "notes", js: "notes", typ: u(undefined, u(null, "")) }, | ||
| { json: "password", js: "password", typ: u(undefined, u(null, "")) }, | ||
| { json: "revisionDate", js: "revisionDate", typ: Date }, | ||
| { json: "text", js: "text", typ: u(undefined, u(r("SendTextView"), null)) }, | ||
| { json: "type", js: "type", typ: r("SendType") }, | ||
| ], false), | ||
| "SendFileView": o([ | ||
| { json: "fileName", js: "fileName", typ: "" }, | ||
| { json: "id", js: "id", typ: "" }, | ||
| { json: "size", js: "size", typ: "" }, | ||
| { json: "sizeName", js: "sizeName", typ: "" }, | ||
| ], false), | ||
| "SendTextView": o([ | ||
| { json: "hidden", js: "hidden", typ: true }, | ||
| { json: "text", js: "text", typ: u(undefined, u(null, "")) }, | ||
| ], false), | ||
| "ResponseForAPIKeyLoginResponse": o([ | ||
@@ -435,2 +878,10 @@ { json: "data", js: "data", typ: u(undefined, u(r("APIKeyLoginResponse"), null)) }, | ||
| ], false), | ||
| "ResponseForFingerprintResponse": o([ | ||
| { json: "data", js: "data", typ: u(undefined, u(r("FingerprintResponse"), null)) }, | ||
| { json: "errorMessage", js: "errorMessage", typ: u(undefined, u(null, "")) }, | ||
| { json: "success", js: "success", typ: true }, | ||
| ], false), | ||
| "FingerprintResponse": o([ | ||
| { json: "fingerprint", js: "fingerprint", typ: "" }, | ||
| ], false), | ||
| "ResponseForPasswordLoginResponse": o([ | ||
@@ -473,2 +924,41 @@ { json: "data", js: "data", typ: u(undefined, u(r("PasswordLoginResponse"), null)) }, | ||
| ], false), | ||
| "ResponseForProjectResponse": o([ | ||
| { json: "data", js: "data", typ: u(undefined, u(r("ProjectResponse"), null)) }, | ||
| { json: "errorMessage", js: "errorMessage", typ: u(undefined, u(null, "")) }, | ||
| { json: "success", js: "success", typ: true }, | ||
| ], false), | ||
| "ProjectResponse": o([ | ||
| { json: "creationDate", js: "creationDate", typ: Date }, | ||
| { json: "id", js: "id", typ: "" }, | ||
| { json: "name", js: "name", typ: "" }, | ||
| { json: "organizationId", js: "organizationId", typ: "" }, | ||
| { json: "revisionDate", js: "revisionDate", typ: Date }, | ||
| ], false), | ||
| "ResponseForProjectsDeleteResponse": o([ | ||
| { json: "data", js: "data", typ: u(undefined, u(r("ProjectsDeleteResponse"), null)) }, | ||
| { json: "errorMessage", js: "errorMessage", typ: u(undefined, u(null, "")) }, | ||
| { json: "success", js: "success", typ: true }, | ||
| ], false), | ||
| "ProjectsDeleteResponse": o([ | ||
| { json: "data", js: "data", typ: a(r("ProjectDeleteResponse")) }, | ||
| ], false), | ||
| "ProjectDeleteResponse": o([ | ||
| { json: "error", js: "error", typ: u(undefined, u(null, "")) }, | ||
| { json: "id", js: "id", typ: "" }, | ||
| ], false), | ||
| "ResponseForProjectsResponse": o([ | ||
| { json: "data", js: "data", typ: u(undefined, u(r("ProjectsResponse"), null)) }, | ||
| { json: "errorMessage", js: "errorMessage", typ: u(undefined, u(null, "")) }, | ||
| { json: "success", js: "success", typ: true }, | ||
| ], false), | ||
| "ProjectsResponse": o([ | ||
| { json: "data", js: "data", typ: a(r("DatumElement")) }, | ||
| ], false), | ||
| "DatumElement": o([ | ||
| { json: "creationDate", js: "creationDate", typ: Date }, | ||
| { json: "id", js: "id", typ: "" }, | ||
| { json: "name", js: "name", typ: "" }, | ||
| { json: "organizationId", js: "organizationId", typ: "" }, | ||
| { json: "revisionDate", js: "revisionDate", typ: Date }, | ||
| ], false), | ||
| "ResponseForSecretIdentifiersResponse": o([ | ||
@@ -493,10 +983,9 @@ { json: "data", js: "data", typ: u(undefined, u(r("SecretIdentifiersResponse"), null)) }, | ||
| "SecretResponse": o([ | ||
| { json: "creationDate", js: "creationDate", typ: "" }, | ||
| { json: "creationDate", js: "creationDate", typ: Date }, | ||
| { json: "id", js: "id", typ: "" }, | ||
| { json: "key", js: "key", typ: "" }, | ||
| { json: "note", js: "note", typ: "" }, | ||
| { json: "object", js: "object", typ: "" }, | ||
| { json: "organizationId", js: "organizationId", typ: "" }, | ||
| { json: "projectId", js: "projectId", typ: u(undefined, u(null, "")) }, | ||
| { json: "revisionDate", js: "revisionDate", typ: "" }, | ||
| { json: "revisionDate", js: "revisionDate", typ: Date }, | ||
| { json: "value", js: "value", typ: "" }, | ||
@@ -516,2 +1005,47 @@ ], false), | ||
| ], false), | ||
| "ResponseForSecretsResponse": o([ | ||
| { json: "data", js: "data", typ: u(undefined, u(r("SecretsResponse"), null)) }, | ||
| { json: "errorMessage", js: "errorMessage", typ: u(undefined, u(null, "")) }, | ||
| { json: "success", js: "success", typ: true }, | ||
| ], false), | ||
| "SecretsResponse": o([ | ||
| { json: "data", js: "data", typ: a(r("DatumClass")) }, | ||
| ], false), | ||
| "DatumClass": o([ | ||
| { json: "creationDate", js: "creationDate", typ: Date }, | ||
| { json: "id", js: "id", typ: "" }, | ||
| { json: "key", js: "key", typ: "" }, | ||
| { json: "note", js: "note", typ: "" }, | ||
| { json: "organizationId", js: "organizationId", typ: "" }, | ||
| { json: "projectId", js: "projectId", typ: u(undefined, u(null, "")) }, | ||
| { json: "revisionDate", js: "revisionDate", typ: Date }, | ||
| { json: "value", js: "value", typ: "" }, | ||
| ], false), | ||
| "ResponseForSyncResponse": o([ | ||
| { json: "data", js: "data", typ: u(undefined, u(r("SyncResponse"), null)) }, | ||
| { json: "errorMessage", js: "errorMessage", typ: u(undefined, u(null, "")) }, | ||
| { json: "success", js: "success", typ: true }, | ||
| ], false), | ||
| "SyncResponse": o([ | ||
| { json: "ciphers", js: "ciphers", typ: a(r("CipherDetailsResponse")) }, | ||
| { json: "profile", js: "profile", typ: r("ProfileResponse") }, | ||
| ], false), | ||
| "CipherDetailsResponse": o([], false), | ||
| "ProfileResponse": o([ | ||
| { json: "email", js: "email", typ: "" }, | ||
| { json: "id", js: "id", typ: "" }, | ||
| { json: "name", js: "name", typ: "" }, | ||
| { json: "organizations", js: "organizations", typ: a(r("ProfileOrganizationResponse")) }, | ||
| ], false), | ||
| "ProfileOrganizationResponse": o([ | ||
| { json: "id", js: "id", typ: "" }, | ||
| ], false), | ||
| "ResponseForUserAPIKeyResponse": o([ | ||
| { json: "data", js: "data", typ: u(undefined, u(r("UserAPIKeyResponse"), null)) }, | ||
| { json: "errorMessage", js: "errorMessage", typ: u(undefined, u(null, "")) }, | ||
| { json: "success", js: "success", typ: true }, | ||
| ], false), | ||
| "UserAPIKeyResponse": o([ | ||
| { json: "apiKey", js: "apiKey", typ: "" }, | ||
| ], false), | ||
| "DeviceType": [ | ||
@@ -541,2 +1075,76 @@ "Android", | ||
| ], | ||
| "TwoFactorProvider": [ | ||
| "Authenticator", | ||
| "Duo", | ||
| "Email", | ||
| "OrganizationDuo", | ||
| "Remember", | ||
| "U2f", | ||
| "WebAuthn", | ||
| "Yubikey", | ||
| ], | ||
| "LinkedIDType": [ | ||
| "Address1", | ||
| "Address2", | ||
| "Address3", | ||
| "Brand", | ||
| "CardholderName", | ||
| "City", | ||
| "Code", | ||
| "Company", | ||
| "Country", | ||
| "Email", | ||
| "ExpMonth", | ||
| "ExpYear", | ||
| "FirstName", | ||
| "FullName", | ||
| "LastName", | ||
| "LicenseNumber", | ||
| "MiddleName", | ||
| "Number", | ||
| "PassportNumber", | ||
| "Password", | ||
| "Phone", | ||
| "PostalCode", | ||
| "Ssn", | ||
| "State", | ||
| "Title", | ||
| "Username", | ||
| ], | ||
| "FieldType": [ | ||
| "Boolean", | ||
| "Hidden", | ||
| "Linked", | ||
| "Text", | ||
| ], | ||
| "URIMatchType": [ | ||
| "domain", | ||
| "exact", | ||
| "host", | ||
| "never", | ||
| "regularExpression", | ||
| "startsWith", | ||
| ], | ||
| "CipherRepromptType": [ | ||
| "None", | ||
| "Password", | ||
| ], | ||
| "SecureNoteType": [ | ||
| "Generic", | ||
| ], | ||
| "CipherType": [ | ||
| "Card", | ||
| "Identity", | ||
| "Login", | ||
| "SecureNote", | ||
| ], | ||
| "ExportFormatEnum": [ | ||
| "AccountEncryptedJson", | ||
| "Csv", | ||
| "Json", | ||
| ], | ||
| "SendType": [ | ||
| "File", | ||
| "Text", | ||
| ], | ||
| }; |
+3
-3
@@ -18,3 +18,3 @@ BITWARDEN SOFTWARE DEVELOPMENT KIT LICENSE AGREEMENT | ||
| products distributed by the Company; and (ii) complies with the Company’s | ||
| acceptable use policy available at the following URL: | ||
| acceptable use policy available at the following URL: | ||
| https://bitwarden.com/terms/#acceptable_use. | ||
@@ -72,5 +72,5 @@ | ||
| Contribution License Agreement available at this URL: | ||
| https://cla-assistant.io/bitwarden/clients, or to the extent required by | ||
| https://cla-assistant.io/bitwarden/clients, or to the extent required by | ||
| applicable third party licenses, you may not copy modify, adapt, redistribute, | ||
| decompile, reverse engineer, disassemble, or create derivative works of the SDK | ||
| decompile, reverse engineer, disassemble, or create derivative works of the SDK | ||
| or any part of the SDK. | ||
@@ -77,0 +77,0 @@ |
+5
-5
| { | ||
| "name": "@bitwarden/sdk-napi", | ||
| "version": "0.3.0", | ||
| "version": "0.3.1", | ||
| "homepage": "https://github.com/bitwarden/sdk#readme", | ||
@@ -52,7 +52,7 @@ "bugs": { | ||
| "optionalDependencies": { | ||
| "@bitwarden/sdk-napi-win32-x64-msvc": "0.3.0", | ||
| "@bitwarden/sdk-napi-darwin-x64": "0.3.0", | ||
| "@bitwarden/sdk-napi-linux-x64-gnu": "0.3.0", | ||
| "@bitwarden/sdk-napi-darwin-arm64": "0.3.0" | ||
| "@bitwarden/sdk-napi-win32-x64-msvc": "0.3.1", | ||
| "@bitwarden/sdk-napi-darwin-x64": "0.3.1", | ||
| "@bitwarden/sdk-napi-linux-x64-gnu": "0.3.1", | ||
| "@bitwarden/sdk-napi-darwin-arm64": "0.3.1" | ||
| } | ||
| } |
Unidentified License
LicenseSomething that seems like a license was found, but its contents could not be matched with a known license.
Unidentified License
LicenseSomething that seems like a license was found, but its contents could not be matched with a known license.
122628
61.34%2809
73.72%