cozy-keys-lib 4.3.0 → 5.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +11 -10
- package/src/components/PasswordField.jsx +2 -2
- package/src/components/UnlockForm.jsx +1 -1
- package/src/components/VaultUnlocker.jsx +1 -1
- package/transpiled/@bitwarden/jslib/abstractions/api.service.js +3 -2
- package/transpiled/@bitwarden/jslib/abstractions/appId.service.js +3 -2
- package/transpiled/@bitwarden/jslib/abstractions/audit.service.js +3 -2
- package/transpiled/@bitwarden/jslib/abstractions/auth.service.js +3 -2
- package/transpiled/@bitwarden/jslib/abstractions/biometric.main.js +3 -2
- package/transpiled/@bitwarden/jslib/abstractions/broadcaster.service.js +3 -2
- package/transpiled/@bitwarden/jslib/abstractions/cipher.service.js +3 -2
- package/transpiled/@bitwarden/jslib/abstractions/collection.service.js +3 -2
- package/transpiled/@bitwarden/jslib/abstractions/crypto.service.js +3 -2
- package/transpiled/@bitwarden/jslib/abstractions/cryptoFunction.service.js +3 -2
- package/transpiled/@bitwarden/jslib/abstractions/environment.service.js +3 -2
- package/transpiled/@bitwarden/jslib/abstractions/event.service.js +3 -2
- package/transpiled/@bitwarden/jslib/abstractions/export.service.js +3 -2
- package/transpiled/@bitwarden/jslib/abstractions/folder.service.js +3 -2
- package/transpiled/@bitwarden/jslib/abstractions/i18n.service.js +3 -2
- package/transpiled/@bitwarden/jslib/abstractions/import.service.js +3 -2
- package/transpiled/@bitwarden/jslib/abstractions/log.service.js +3 -2
- package/transpiled/@bitwarden/jslib/abstractions/messaging.service.js +3 -2
- package/transpiled/@bitwarden/jslib/abstractions/notifications.service.js +3 -2
- package/transpiled/@bitwarden/jslib/abstractions/passwordGeneration.service.js +3 -2
- package/transpiled/@bitwarden/jslib/abstractions/platformUtils.service.js +3 -2
- package/transpiled/@bitwarden/jslib/abstractions/policy.service.js +3 -2
- package/transpiled/@bitwarden/jslib/abstractions/search.service.js +3 -2
- package/transpiled/@bitwarden/jslib/abstractions/send.service.js +3 -2
- package/transpiled/@bitwarden/jslib/abstractions/settings.service.js +3 -2
- package/transpiled/@bitwarden/jslib/abstractions/state.service.js +3 -2
- package/transpiled/@bitwarden/jslib/abstractions/storage.service.js +3 -2
- package/transpiled/@bitwarden/jslib/abstractions/sync.service.js +3 -2
- package/transpiled/@bitwarden/jslib/abstractions/system.service.js +3 -2
- package/transpiled/@bitwarden/jslib/abstractions/token.service.js +3 -2
- package/transpiled/@bitwarden/jslib/abstractions/totp.service.js +3 -2
- package/transpiled/@bitwarden/jslib/abstractions/user.service.js +3 -2
- package/transpiled/@bitwarden/jslib/abstractions/vaultTimeout.service.js +3 -2
- package/transpiled/@bitwarden/jslib/angular/components/add-edit.component.js +328 -468
- package/transpiled/@bitwarden/jslib/angular/components/attachments.component.js +316 -435
- package/transpiled/@bitwarden/jslib/angular/components/callout.component.js +3 -23
- package/transpiled/@bitwarden/jslib/angular/components/change-password.component.js +145 -216
- package/transpiled/@bitwarden/jslib/angular/components/ciphers.component.js +97 -156
- package/transpiled/@bitwarden/jslib/angular/components/collections.component.js +77 -119
- package/transpiled/@bitwarden/jslib/angular/components/environment.component.js +32 -52
- package/transpiled/@bitwarden/jslib/angular/components/export.component.js +60 -96
- package/transpiled/@bitwarden/jslib/angular/components/folder-add-edit.component.js +93 -141
- package/transpiled/@bitwarden/jslib/angular/components/groupings.component.js +77 -133
- package/transpiled/@bitwarden/jslib/angular/components/hint.component.js +36 -56
- package/transpiled/@bitwarden/jslib/angular/components/icon.component.js +19 -46
- package/transpiled/@bitwarden/jslib/angular/components/lock.component.js +273 -375
- package/transpiled/@bitwarden/jslib/angular/components/login.component.js +147 -209
- package/transpiled/@bitwarden/jslib/angular/components/modal.component.js +3 -24
- package/transpiled/@bitwarden/jslib/angular/components/password-generator-history.component.js +10 -23
- package/transpiled/@bitwarden/jslib/angular/components/password-generator.component.js +71 -115
- package/transpiled/@bitwarden/jslib/angular/components/password-history.component.js +22 -39
- package/transpiled/@bitwarden/jslib/angular/components/premium.component.js +50 -77
- package/transpiled/@bitwarden/jslib/angular/components/register.component.js +143 -194
- package/transpiled/@bitwarden/jslib/angular/components/set-password.component.js +102 -139
- package/transpiled/@bitwarden/jslib/angular/components/share.component.js +94 -142
- package/transpiled/@bitwarden/jslib/angular/components/sso.component.js +220 -299
- package/transpiled/@bitwarden/jslib/angular/components/two-factor-options.component.js +3 -15
- package/transpiled/@bitwarden/jslib/angular/components/two-factor.component.js +234 -312
- package/transpiled/@bitwarden/jslib/angular/components/view.component.js +260 -376
- package/transpiled/@bitwarden/jslib/angular/directives/a11y-title.directive.js +8 -20
- package/transpiled/@bitwarden/jslib/angular/directives/api-action.directive.js +3 -17
- package/transpiled/@bitwarden/jslib/angular/directives/autofocus.directive.js +8 -19
- package/transpiled/@bitwarden/jslib/angular/directives/blur-click.directive.js +3 -14
- package/transpiled/@bitwarden/jslib/angular/directives/box-row.directive.js +3 -20
- package/transpiled/@bitwarden/jslib/angular/directives/fallback-src.directive.js +3 -15
- package/transpiled/@bitwarden/jslib/angular/directives/input-verbatim.directive.js +8 -23
- package/transpiled/@bitwarden/jslib/angular/directives/select-copy.directive.js +5 -22
- package/transpiled/@bitwarden/jslib/angular/directives/stop-click.directive.js +3 -13
- package/transpiled/@bitwarden/jslib/angular/directives/stop-prop.directive.js +3 -13
- package/transpiled/@bitwarden/jslib/angular/directives/true-false-value.directive.js +5 -18
- package/transpiled/@bitwarden/jslib/angular/pipes/color-password.pipe.js +5 -22
- package/transpiled/@bitwarden/jslib/angular/pipes/i18n.pipe.js +3 -13
- package/transpiled/@bitwarden/jslib/angular/pipes/search-ciphers.pipe.js +3 -19
- package/transpiled/@bitwarden/jslib/angular/pipes/search.pipe.js +3 -16
- package/transpiled/@bitwarden/jslib/angular/services/auth-guard.service.js +40 -67
- package/transpiled/@bitwarden/jslib/angular/services/broadcaster.service.js +10 -15
- package/transpiled/@bitwarden/jslib/angular/services/validation.service.js +3 -16
- package/transpiled/@bitwarden/jslib/cli/baseProgram.js +31 -66
- package/transpiled/@bitwarden/jslib/cli/commands/login.command.js +441 -572
- package/transpiled/@bitwarden/jslib/cli/commands/logout.command.js +12 -25
- package/transpiled/@bitwarden/jslib/cli/commands/update.command.js +113 -179
- package/transpiled/@bitwarden/jslib/cli/models/response/listResponse.js +3 -3
- package/transpiled/@bitwarden/jslib/cli/models/response/messageResponse.js +3 -3
- package/transpiled/@bitwarden/jslib/cli/models/response/stringResponse.js +3 -3
- package/transpiled/@bitwarden/jslib/cli/models/response.js +0 -4
- package/transpiled/@bitwarden/jslib/cli/services/cliPlatformUtils.service.js +2 -9
- package/transpiled/@bitwarden/jslib/cli/services/consoleLog.service.js +0 -10
- package/transpiled/@bitwarden/jslib/electron/baseMenu.js +0 -7
- package/transpiled/@bitwarden/jslib/electron/biometric.darwin.main.js +44 -71
- package/transpiled/@bitwarden/jslib/electron/biometric.windows.main.js +115 -175
- package/transpiled/@bitwarden/jslib/electron/electronConstants.js +3 -2
- package/transpiled/@bitwarden/jslib/electron/keytarStorageListener.js +42 -66
- package/transpiled/@bitwarden/jslib/electron/services/electronLog.service.js +0 -13
- package/transpiled/@bitwarden/jslib/electron/services/electronMainMessaging.service.js +0 -4
- package/transpiled/@bitwarden/jslib/electron/services/electronPlatformUtils.service.js +26 -46
- package/transpiled/@bitwarden/jslib/electron/services/electronRendererMessaging.service.js +9 -23
- package/transpiled/@bitwarden/jslib/electron/services/electronRendererSecureStorage.service.js +32 -49
- package/transpiled/@bitwarden/jslib/electron/services/electronStorage.service.js +2 -8
- package/transpiled/@bitwarden/jslib/electron/tray.main.js +97 -145
- package/transpiled/@bitwarden/jslib/electron/updater.main.js +163 -217
- package/transpiled/@bitwarden/jslib/electron/utils.js +0 -3
- package/transpiled/@bitwarden/jslib/electron/window.main.js +237 -314
- package/transpiled/@bitwarden/jslib/enums/cipherType.js +0 -1
- package/transpiled/@bitwarden/jslib/enums/deviceType.js +0 -1
- package/transpiled/@bitwarden/jslib/enums/encryptionType.js +0 -1
- package/transpiled/@bitwarden/jslib/enums/eventType.js +2 -3
- package/transpiled/@bitwarden/jslib/enums/fieldType.js +0 -1
- package/transpiled/@bitwarden/jslib/enums/kdfType.js +0 -1
- package/transpiled/@bitwarden/jslib/enums/logLevelType.js +0 -1
- package/transpiled/@bitwarden/jslib/enums/notificationType.js +0 -1
- package/transpiled/@bitwarden/jslib/enums/organizationUserStatusType.js +0 -1
- package/transpiled/@bitwarden/jslib/enums/organizationUserType.js +0 -1
- package/transpiled/@bitwarden/jslib/enums/paymentMethodType.js +0 -1
- package/transpiled/@bitwarden/jslib/enums/planType.js +0 -1
- package/transpiled/@bitwarden/jslib/enums/policyType.js +0 -1
- package/transpiled/@bitwarden/jslib/enums/productType.js +0 -1
- package/transpiled/@bitwarden/jslib/enums/secureNoteType.js +0 -1
- package/transpiled/@bitwarden/jslib/enums/sendType.js +0 -1
- package/transpiled/@bitwarden/jslib/enums/transactionType.js +0 -1
- package/transpiled/@bitwarden/jslib/enums/twoFactorProviderType.js +0 -1
- package/transpiled/@bitwarden/jslib/enums/uriMatchType.js +0 -1
- package/transpiled/@bitwarden/jslib/importers/ascendoCsvImporter.js +5 -18
- package/transpiled/@bitwarden/jslib/importers/avastCsvImporter.js +5 -12
- package/transpiled/@bitwarden/jslib/importers/avastJsonImporter.js +5 -23
- package/transpiled/@bitwarden/jslib/importers/aviraCsvImporter.js +5 -13
- package/transpiled/@bitwarden/jslib/importers/baseImporter.js +26 -80
- package/transpiled/@bitwarden/jslib/importers/bitwardenCsvImporter.js +5 -27
- package/transpiled/@bitwarden/jslib/importers/bitwardenJsonImporter.js +9 -20
- package/transpiled/@bitwarden/jslib/importers/blackBerryCsvImporter.js +5 -15
- package/transpiled/@bitwarden/jslib/importers/blurCsvImporter.js +5 -14
- package/transpiled/@bitwarden/jslib/importers/buttercupCsvImporter.js +5 -17
- package/transpiled/@bitwarden/jslib/importers/chromeCsvImporter.js +5 -12
- package/transpiled/@bitwarden/jslib/importers/clipperzHtmlImporter.js +5 -24
- package/transpiled/@bitwarden/jslib/importers/codebookCsvImporter.js +5 -21
- package/transpiled/@bitwarden/jslib/importers/dashlaneJsonImporter.js +5 -41
- package/transpiled/@bitwarden/jslib/importers/encryptrCsvImporter.js +5 -20
- package/transpiled/@bitwarden/jslib/importers/enpassCsvImporter.js +5 -22
- package/transpiled/@bitwarden/jslib/importers/enpassJsonImporter.js +5 -28
- package/transpiled/@bitwarden/jslib/importers/firefoxCsvImporter.js +5 -13
- package/transpiled/@bitwarden/jslib/importers/fsecureFskImporter.js +5 -14
- package/transpiled/@bitwarden/jslib/importers/gnomeJsonImporter.js +5 -25
- package/transpiled/@bitwarden/jslib/importers/kasperskyTxtImporter.js +5 -35
- package/transpiled/@bitwarden/jslib/importers/keepass2XmlImporter.js +5 -29
- package/transpiled/@bitwarden/jslib/importers/keepassxCsvImporter.js +5 -17
- package/transpiled/@bitwarden/jslib/importers/keeperCsvImporter.js +5 -17
- package/transpiled/@bitwarden/jslib/importers/lastpassCsvImporter.js +9 -52
- package/transpiled/@bitwarden/jslib/importers/logMeOnceCsvImporter.js +5 -13
- package/transpiled/@bitwarden/jslib/importers/meldiumCsvImporter.js +5 -12
- package/transpiled/@bitwarden/jslib/importers/msecureCsvImporter.js +5 -20
- package/transpiled/@bitwarden/jslib/importers/mykiCsvImporter.js +5 -13
- package/transpiled/@bitwarden/jslib/importers/onepassword1PifImporter.js +9 -49
- package/transpiled/@bitwarden/jslib/importers/onepasswordWinCsvImporter.js +5 -24
- package/transpiled/@bitwarden/jslib/importers/padlockCsvImporter.js +5 -23
- package/transpiled/@bitwarden/jslib/importers/passkeepCsvImporter.js +5 -16
- package/transpiled/@bitwarden/jslib/importers/passmanJsonImporter.js +5 -22
- package/transpiled/@bitwarden/jslib/importers/passpackCsvImporter.js +5 -22
- package/transpiled/@bitwarden/jslib/importers/passwordAgentCsvImporter.js +5 -22
- package/transpiled/@bitwarden/jslib/importers/passwordBossJsonImporter.js +5 -24
- package/transpiled/@bitwarden/jslib/importers/passwordDragonXmlImporter.js +5 -25
- package/transpiled/@bitwarden/jslib/importers/passwordSafeXmlImporter.js +5 -26
- package/transpiled/@bitwarden/jslib/importers/passwordWalletTxtImporter.js +5 -20
- package/transpiled/@bitwarden/jslib/importers/rememBearCsvImporter.js +5 -24
- package/transpiled/@bitwarden/jslib/importers/roboformCsvImporter.js +5 -24
- package/transpiled/@bitwarden/jslib/importers/safeInCloudXmlImporter.js +5 -27
- package/transpiled/@bitwarden/jslib/importers/saferpassCsvImport.js +5 -12
- package/transpiled/@bitwarden/jslib/importers/secureSafeCsvImporter.js +5 -12
- package/transpiled/@bitwarden/jslib/importers/splashIdCsvImporter.js +5 -20
- package/transpiled/@bitwarden/jslib/importers/stickyPasswordXmlImporter.js +5 -25
- package/transpiled/@bitwarden/jslib/importers/truekeyCsvImporter.js +5 -17
- package/transpiled/@bitwarden/jslib/importers/upmCsvImporter.js +5 -13
- package/transpiled/@bitwarden/jslib/importers/yotiCsvImporter.js +5 -12
- package/transpiled/@bitwarden/jslib/importers/zohoVaultCsvImporter.js +5 -26
- package/transpiled/@bitwarden/jslib/misc/analytics.js +49 -85
- package/transpiled/@bitwarden/jslib/misc/nodeUtils.js +0 -4
- package/transpiled/@bitwarden/jslib/misc/sequentialize.js +0 -11
- package/transpiled/@bitwarden/jslib/misc/serviceUtils.js +0 -10
- package/transpiled/@bitwarden/jslib/misc/throttle.js +0 -13
- package/transpiled/@bitwarden/jslib/misc/u2f.js +0 -7
- package/transpiled/@bitwarden/jslib/misc/utils.js +8 -57
- package/transpiled/@bitwarden/jslib/models/api/cardApi.js +7 -10
- package/transpiled/@bitwarden/jslib/models/api/fieldApi.js +7 -10
- package/transpiled/@bitwarden/jslib/models/api/identityApi.js +7 -10
- package/transpiled/@bitwarden/jslib/models/api/loginApi.js +7 -13
- package/transpiled/@bitwarden/jslib/models/api/loginUriApi.js +7 -12
- package/transpiled/@bitwarden/jslib/models/api/secureNoteApi.js +7 -10
- package/transpiled/@bitwarden/jslib/models/api/sendFileApi.js +7 -10
- package/transpiled/@bitwarden/jslib/models/api/sendTextApi.js +7 -10
- package/transpiled/@bitwarden/jslib/models/data/attachmentData.js +3 -4
- package/transpiled/@bitwarden/jslib/models/data/cardData.js +3 -4
- package/transpiled/@bitwarden/jslib/models/data/cipherData.js +3 -12
- package/transpiled/@bitwarden/jslib/models/data/collectionData.js +3 -3
- package/transpiled/@bitwarden/jslib/models/data/eventData.js +3 -2
- package/transpiled/@bitwarden/jslib/models/data/fieldData.js +3 -4
- package/transpiled/@bitwarden/jslib/models/data/folderData.js +3 -3
- package/transpiled/@bitwarden/jslib/models/data/identityData.js +3 -4
- package/transpiled/@bitwarden/jslib/models/data/loginData.js +3 -5
- package/transpiled/@bitwarden/jslib/models/data/loginUriData.js +3 -5
- package/transpiled/@bitwarden/jslib/models/data/organizationData.js +3 -3
- package/transpiled/@bitwarden/jslib/models/data/passwordHistoryData.js +3 -4
- package/transpiled/@bitwarden/jslib/models/data/policyData.js +3 -3
- package/transpiled/@bitwarden/jslib/models/data/secureNoteData.js +3 -4
- package/transpiled/@bitwarden/jslib/models/data/sendData.js +3 -7
- package/transpiled/@bitwarden/jslib/models/data/sendFileData.js +3 -4
- package/transpiled/@bitwarden/jslib/models/data/sendTextData.js +3 -4
- package/transpiled/@bitwarden/jslib/models/domain/attachment.js +48 -75
- package/transpiled/@bitwarden/jslib/models/domain/authResult.js +3 -3
- package/transpiled/@bitwarden/jslib/models/domain/card.js +6 -12
- package/transpiled/@bitwarden/jslib/models/domain/cipher.js +98 -153
- package/transpiled/@bitwarden/jslib/models/domain/cipherString.js +45 -84
- package/transpiled/@bitwarden/jslib/models/domain/collection.js +6 -12
- package/transpiled/@bitwarden/jslib/models/domain/decryptParameters.js +3 -2
- package/transpiled/@bitwarden/jslib/models/domain/domainBase.js +40 -69
- package/transpiled/@bitwarden/jslib/models/domain/encryptedObject.js +3 -2
- package/transpiled/@bitwarden/jslib/models/domain/environmentUrls.js +3 -2
- package/transpiled/@bitwarden/jslib/models/domain/field.js +6 -13
- package/transpiled/@bitwarden/jslib/models/domain/folder.js +6 -12
- package/transpiled/@bitwarden/jslib/models/domain/generatedPasswordHistory.js +3 -3
- package/transpiled/@bitwarden/jslib/models/domain/identity.js +6 -12
- package/transpiled/@bitwarden/jslib/models/domain/importResult.js +3 -3
- package/transpiled/@bitwarden/jslib/models/domain/login.js +41 -68
- package/transpiled/@bitwarden/jslib/models/domain/loginUri.js +6 -13
- package/transpiled/@bitwarden/jslib/models/domain/masterPasswordPolicyOptions.js +7 -7
- package/transpiled/@bitwarden/jslib/models/domain/organization.js +0 -5
- package/transpiled/@bitwarden/jslib/models/domain/password.js +6 -12
- package/transpiled/@bitwarden/jslib/models/domain/passwordGeneratorPolicyOptions.js +5 -7
- package/transpiled/@bitwarden/jslib/models/domain/policy.js +7 -9
- package/transpiled/@bitwarden/jslib/models/domain/secureNote.js +5 -10
- package/transpiled/@bitwarden/jslib/models/domain/send.js +63 -101
- package/transpiled/@bitwarden/jslib/models/domain/sendAccess.js +37 -63
- package/transpiled/@bitwarden/jslib/models/domain/sendFile.js +19 -36
- package/transpiled/@bitwarden/jslib/models/domain/sendText.js +6 -13
- package/transpiled/@bitwarden/jslib/models/domain/sortedCiphersCache.js +0 -10
- package/transpiled/@bitwarden/jslib/models/domain/symmetricCryptoKey.js +3 -9
- package/transpiled/@bitwarden/jslib/models/domain/treeNode.js +3 -3
- package/transpiled/@bitwarden/jslib/models/export/card.js +0 -5
- package/transpiled/@bitwarden/jslib/models/export/cipher.js +2 -19
- package/transpiled/@bitwarden/jslib/models/export/cipherWithIds.js +8 -10
- package/transpiled/@bitwarden/jslib/models/export/collection.js +2 -8
- package/transpiled/@bitwarden/jslib/models/export/collectionWithId.js +8 -9
- package/transpiled/@bitwarden/jslib/models/export/field.js +0 -6
- package/transpiled/@bitwarden/jslib/models/export/folder.js +2 -4
- package/transpiled/@bitwarden/jslib/models/export/folderWithId.js +8 -9
- package/transpiled/@bitwarden/jslib/models/export/identity.js +0 -5
- package/transpiled/@bitwarden/jslib/models/export/login.js +0 -8
- package/transpiled/@bitwarden/jslib/models/export/loginUri.js +0 -7
- package/transpiled/@bitwarden/jslib/models/export/secureNote.js +0 -4
- package/transpiled/@bitwarden/jslib/models/request/attachmentRequest.js +3 -2
- package/transpiled/@bitwarden/jslib/models/request/bitPayInvoiceRequest.js +3 -2
- package/transpiled/@bitwarden/jslib/models/request/cipherBulkDeleteRequest.js +3 -3
- package/transpiled/@bitwarden/jslib/models/request/cipherBulkMoveRequest.js +3 -3
- package/transpiled/@bitwarden/jslib/models/request/cipherBulkRestoreRequest.js +3 -3
- package/transpiled/@bitwarden/jslib/models/request/cipherBulkShareRequest.js +3 -5
- package/transpiled/@bitwarden/jslib/models/request/cipherCollectionsRequest.js +3 -3
- package/transpiled/@bitwarden/jslib/models/request/cipherCreateRequest.js +3 -3
- package/transpiled/@bitwarden/jslib/models/request/cipherRequest.js +3 -16
- package/transpiled/@bitwarden/jslib/models/request/cipherShareRequest.js +3 -3
- package/transpiled/@bitwarden/jslib/models/request/cipherWithIdRequest.js +7 -7
- package/transpiled/@bitwarden/jslib/models/request/collectionRequest.js +3 -5
- package/transpiled/@bitwarden/jslib/models/request/deleteRecoverRequest.js +3 -2
- package/transpiled/@bitwarden/jslib/models/request/deviceRequest.js +3 -3
- package/transpiled/@bitwarden/jslib/models/request/deviceTokenRequest.js +3 -3
- package/transpiled/@bitwarden/jslib/models/request/emailRequest.js +7 -6
- package/transpiled/@bitwarden/jslib/models/request/emailTokenRequest.js +7 -6
- package/transpiled/@bitwarden/jslib/models/request/eventRequest.js +3 -2
- package/transpiled/@bitwarden/jslib/models/request/folderRequest.js +3 -3
- package/transpiled/@bitwarden/jslib/models/request/folderWithIdRequest.js +7 -7
- package/transpiled/@bitwarden/jslib/models/request/groupRequest.js +3 -3
- package/transpiled/@bitwarden/jslib/models/request/iapCheckRequest.js +3 -2
- package/transpiled/@bitwarden/jslib/models/request/importCiphersRequest.js +3 -3
- package/transpiled/@bitwarden/jslib/models/request/importDirectoryRequest.js +3 -3
- package/transpiled/@bitwarden/jslib/models/request/importDirectoryRequestGroup.js +3 -2
- package/transpiled/@bitwarden/jslib/models/request/importDirectoryRequestUser.js +3 -2
- package/transpiled/@bitwarden/jslib/models/request/importOrganizationCiphersRequest.js +3 -3
- package/transpiled/@bitwarden/jslib/models/request/kdfRequest.js +7 -6
- package/transpiled/@bitwarden/jslib/models/request/keysRequest.js +3 -3
- package/transpiled/@bitwarden/jslib/models/request/kvpRequest.js +3 -3
- package/transpiled/@bitwarden/jslib/models/request/organizationCreateRequest.js +3 -2
- package/transpiled/@bitwarden/jslib/models/request/organizationTaxInfoUpdateRequest.js +7 -6
- package/transpiled/@bitwarden/jslib/models/request/organizationUpdateRequest.js +3 -2
- package/transpiled/@bitwarden/jslib/models/request/organizationUpgradeRequest.js +3 -2
- package/transpiled/@bitwarden/jslib/models/request/organizationUserAcceptRequest.js +3 -2
- package/transpiled/@bitwarden/jslib/models/request/organizationUserConfirmRequest.js +3 -2
- package/transpiled/@bitwarden/jslib/models/request/organizationUserInviteRequest.js +3 -3
- package/transpiled/@bitwarden/jslib/models/request/organizationUserUpdateGroupsRequest.js +3 -3
- package/transpiled/@bitwarden/jslib/models/request/organizationUserUpdateRequest.js +3 -3
- package/transpiled/@bitwarden/jslib/models/request/passwordHintRequest.js +3 -3
- package/transpiled/@bitwarden/jslib/models/request/passwordHistoryRequest.js +3 -2
- package/transpiled/@bitwarden/jslib/models/request/passwordRequest.js +7 -6
- package/transpiled/@bitwarden/jslib/models/request/passwordVerificationRequest.js +3 -2
- package/transpiled/@bitwarden/jslib/models/request/paymentRequest.js +7 -6
- package/transpiled/@bitwarden/jslib/models/request/policyRequest.js +3 -2
- package/transpiled/@bitwarden/jslib/models/request/preloginRequest.js +3 -3
- package/transpiled/@bitwarden/jslib/models/request/referenceEventRequest.js +3 -2
- package/transpiled/@bitwarden/jslib/models/request/registerRequest.js +3 -3
- package/transpiled/@bitwarden/jslib/models/request/seatRequest.js +3 -2
- package/transpiled/@bitwarden/jslib/models/request/selectionReadOnlyRequest.js +3 -3
- package/transpiled/@bitwarden/jslib/models/request/sendAccessRequest.js +3 -2
- package/transpiled/@bitwarden/jslib/models/request/sendRequest.js +3 -6
- package/transpiled/@bitwarden/jslib/models/request/setPasswordRequest.js +3 -2
- package/transpiled/@bitwarden/jslib/models/request/storageRequest.js +3 -2
- package/transpiled/@bitwarden/jslib/models/request/taxInfoUpdateRequest.js +3 -2
- package/transpiled/@bitwarden/jslib/models/request/tokenRequest.js +2 -8
- package/transpiled/@bitwarden/jslib/models/request/twoFactorEmailRequest.js +7 -7
- package/transpiled/@bitwarden/jslib/models/request/twoFactorProviderRequest.js +7 -6
- package/transpiled/@bitwarden/jslib/models/request/twoFactorRecoveryRequest.js +7 -6
- package/transpiled/@bitwarden/jslib/models/request/updateDomainsRequest.js +3 -2
- package/transpiled/@bitwarden/jslib/models/request/updateKeyRequest.js +3 -3
- package/transpiled/@bitwarden/jslib/models/request/updateProfileRequest.js +3 -4
- package/transpiled/@bitwarden/jslib/models/request/updateTwoFactorAuthenticatorRequest.js +7 -6
- package/transpiled/@bitwarden/jslib/models/request/updateTwoFactorDuoRequest.js +7 -6
- package/transpiled/@bitwarden/jslib/models/request/updateTwoFactorEmailRequest.js +7 -6
- package/transpiled/@bitwarden/jslib/models/request/updateTwoFactorU2fDeleteRequest.js +7 -6
- package/transpiled/@bitwarden/jslib/models/request/updateTwoFactorU2fRequest.js +7 -6
- package/transpiled/@bitwarden/jslib/models/request/updateTwoFactorYubioOtpRequest.js +7 -6
- package/transpiled/@bitwarden/jslib/models/request/verifyBankRequest.js +3 -2
- package/transpiled/@bitwarden/jslib/models/request/verifyDeleteRecoverRequest.js +3 -3
- package/transpiled/@bitwarden/jslib/models/request/verifyEmailRequest.js +3 -3
- package/transpiled/@bitwarden/jslib/models/response/apiKeyResponse.js +7 -7
- package/transpiled/@bitwarden/jslib/models/response/attachmentResponse.js +7 -7
- package/transpiled/@bitwarden/jslib/models/response/baseResponse.js +0 -13
- package/transpiled/@bitwarden/jslib/models/response/billingResponse.js +16 -32
- package/transpiled/@bitwarden/jslib/models/response/breachAccountResponse.js +7 -7
- package/transpiled/@bitwarden/jslib/models/response/cipherResponse.js +7 -24
- package/transpiled/@bitwarden/jslib/models/response/collectionResponse.js +13 -22
- package/transpiled/@bitwarden/jslib/models/response/deviceResponse.js +7 -7
- package/transpiled/@bitwarden/jslib/models/response/domainsResponse.js +7 -10
- package/transpiled/@bitwarden/jslib/models/response/errorResponse.js +5 -23
- package/transpiled/@bitwarden/jslib/models/response/eventResponse.js +7 -7
- package/transpiled/@bitwarden/jslib/models/response/folderResponse.js +7 -7
- package/transpiled/@bitwarden/jslib/models/response/globalDomainResponse.js +7 -7
- package/transpiled/@bitwarden/jslib/models/response/groupResponse.js +10 -16
- package/transpiled/@bitwarden/jslib/models/response/identityTokenResponse.js +7 -7
- package/transpiled/@bitwarden/jslib/models/response/identityTwoFactorResponse.js +7 -10
- package/transpiled/@bitwarden/jslib/models/response/keysResponse.js +7 -7
- package/transpiled/@bitwarden/jslib/models/response/listResponse.js +7 -9
- package/transpiled/@bitwarden/jslib/models/response/notificationResponse.js +16 -31
- package/transpiled/@bitwarden/jslib/models/response/organizationResponse.js +7 -9
- package/transpiled/@bitwarden/jslib/models/response/organizationSubscriptionResponse.js +7 -11
- package/transpiled/@bitwarden/jslib/models/response/organizationUserResponse.js +13 -22
- package/transpiled/@bitwarden/jslib/models/response/passwordHistoryResponse.js +7 -7
- package/transpiled/@bitwarden/jslib/models/response/paymentResponse.js +7 -10
- package/transpiled/@bitwarden/jslib/models/response/planResponse.js +7 -7
- package/transpiled/@bitwarden/jslib/models/response/policyResponse.js +7 -7
- package/transpiled/@bitwarden/jslib/models/response/preloginResponse.js +7 -7
- package/transpiled/@bitwarden/jslib/models/response/profileOrganizationResponse.js +7 -7
- package/transpiled/@bitwarden/jslib/models/response/profileResponse.js +7 -10
- package/transpiled/@bitwarden/jslib/models/response/selectionReadOnlyResponse.js +7 -7
- package/transpiled/@bitwarden/jslib/models/response/sendAccessResponse.js +7 -12
- package/transpiled/@bitwarden/jslib/models/response/sendResponse.js +7 -12
- package/transpiled/@bitwarden/jslib/models/response/subscriptionResponse.js +16 -31
- package/transpiled/@bitwarden/jslib/models/response/syncResponse.js +7 -22
- package/transpiled/@bitwarden/jslib/models/response/taxInfoResponse.js +7 -7
- package/transpiled/@bitwarden/jslib/models/response/twoFactorAuthenticatorResponse.js +7 -7
- package/transpiled/@bitwarden/jslib/models/response/twoFactorDuoResponse.js +7 -7
- package/transpiled/@bitwarden/jslib/models/response/twoFactorEmailResponse.js +7 -7
- package/transpiled/@bitwarden/jslib/models/response/twoFactorProviderResponse.js +7 -7
- package/transpiled/@bitwarden/jslib/models/response/twoFactorRescoverResponse.js +7 -7
- package/transpiled/@bitwarden/jslib/models/response/twoFactorU2fResponse.js +13 -21
- package/transpiled/@bitwarden/jslib/models/response/twoFactorYubiKeyResponse.js +7 -7
- package/transpiled/@bitwarden/jslib/models/response/userKeyResponse.js +7 -7
- package/transpiled/@bitwarden/jslib/models/view/attachmentView.js +0 -6
- package/transpiled/@bitwarden/jslib/models/view/cardView.js +11 -17
- package/transpiled/@bitwarden/jslib/models/view/cipherView.js +0 -12
- package/transpiled/@bitwarden/jslib/models/view/collectionView.js +3 -6
- package/transpiled/@bitwarden/jslib/models/view/fieldView.js +0 -6
- package/transpiled/@bitwarden/jslib/models/view/folderView.js +3 -5
- package/transpiled/@bitwarden/jslib/models/view/identityView.js +4 -24
- package/transpiled/@bitwarden/jslib/models/view/loginUriView.js +4 -19
- package/transpiled/@bitwarden/jslib/models/view/loginView.js +0 -7
- package/transpiled/@bitwarden/jslib/models/view/passwordHistoryView.js +3 -5
- package/transpiled/@bitwarden/jslib/models/view/secureNoteView.js +0 -5
- package/transpiled/@bitwarden/jslib/models/view/sendAccessView.js +3 -5
- package/transpiled/@bitwarden/jslib/models/view/sendFileView.js +0 -6
- package/transpiled/@bitwarden/jslib/models/view/sendTextView.js +0 -5
- package/transpiled/@bitwarden/jslib/models/view/sendView.js +0 -5
- package/transpiled/@bitwarden/jslib/models/view/view.js +3 -2
- package/transpiled/@bitwarden/jslib/services/api.service.js +1348 -1867
- package/transpiled/@bitwarden/jslib/services/appId.service.js +21 -38
- package/transpiled/@bitwarden/jslib/services/audit.service.js +49 -77
- package/transpiled/@bitwarden/jslib/services/auth.service.js +241 -339
- package/transpiled/@bitwarden/jslib/services/broadcaster.service.js +0 -5
- package/transpiled/@bitwarden/jslib/services/cipher.service.js +1350 -1828
- package/transpiled/@bitwarden/jslib/services/collection.service.js +235 -324
- package/transpiled/@bitwarden/jslib/services/constants.service.js +3 -3
- package/transpiled/@bitwarden/jslib/services/container.service.js +2 -5
- package/transpiled/@bitwarden/jslib/services/crypto.service.js +1001 -1380
- package/transpiled/@bitwarden/jslib/services/environment.service.js +83 -111
- package/transpiled/@bitwarden/jslib/services/event.service.js +119 -171
- package/transpiled/@bitwarden/jslib/services/export.service.js +250 -320
- package/transpiled/@bitwarden/jslib/services/folder.service.js +264 -361
- package/transpiled/@bitwarden/jslib/services/i18n.service.js +96 -143
- package/transpiled/@bitwarden/jslib/services/import.service.js +138 -248
- package/transpiled/@bitwarden/jslib/services/lowdbStorage.service.js +0 -11
- package/transpiled/@bitwarden/jslib/services/nodeApi.service.js +5 -9
- package/transpiled/@bitwarden/jslib/services/nodeCryptoFunction.service.js +145 -206
- package/transpiled/@bitwarden/jslib/services/noopMessaging.service.js +2 -5
- package/transpiled/@bitwarden/jslib/services/notifications.service.js +260 -358
- package/transpiled/@bitwarden/jslib/services/passwordGeneration.service.js +507 -711
- package/transpiled/@bitwarden/jslib/services/policy.service.js +108 -161
- package/transpiled/@bitwarden/jslib/services/search.service.js +178 -237
- package/transpiled/@bitwarden/jslib/services/send.service.js +335 -457
- package/transpiled/@bitwarden/jslib/services/settings.service.js +72 -109
- package/transpiled/@bitwarden/jslib/services/state.service.js +0 -4
- package/transpiled/@bitwarden/jslib/services/sync.service.js +481 -653
- package/transpiled/@bitwarden/jslib/services/system.service.js +61 -103
- package/transpiled/@bitwarden/jslib/services/token.service.js +119 -192
- package/transpiled/@bitwarden/jslib/services/totp.service.js +103 -157
- package/transpiled/@bitwarden/jslib/services/user.service.js +210 -300
- package/transpiled/@bitwarden/jslib/services/vaultTimeout.service.js +212 -305
- package/transpiled/@bitwarden/jslib/services/webCryptoFunction.service.js +384 -502
- package/transpiled/CozyUtils.js +73 -102
- package/transpiled/CozyUtils.spec.js +61 -85
- package/transpiled/HtmlStorageService.js +24 -57
- package/transpiled/MemoryStorageService.js +0 -7
- package/transpiled/NodeEnvSecureStorageService.js +94 -145
- package/transpiled/NodeVaultClient.js +5 -9
- package/transpiled/StrippedWebPlatformUtilsService.js +1 -8
- package/transpiled/WebPlatformUtilsService.js +89 -127
- package/transpiled/WebVaultClient.js +880 -1337
- package/transpiled/WebVaultClient.spec.js +79 -103
- package/transpiled/__mocks__/WebVaultClient.js +0 -5
- package/transpiled/components/IconCozySecurity.js +3 -5
- package/transpiled/components/PasswordField.js +13 -19
- package/transpiled/components/UnlockForm.js +50 -68
- package/transpiled/components/UnlockForm.spec.js +71 -87
- package/transpiled/components/VaultContext.js +30 -58
- package/transpiled/components/VaultContext.spec.js +45 -52
- package/transpiled/components/VaultUnlockPlaceholder.js +3 -6
- package/transpiled/components/VaultUnlocker.js +35 -50
- package/transpiled/components/defaults.js +24 -34
- package/transpiled/components/defaults.spec.js +37 -51
- package/transpiled/components/vaultUnlockContext.js +47 -60
- package/transpiled/components/vaultUnlockContext.spec.js +62 -85
- package/transpiled/services/crypto.service.js +6 -7
- package/transpiled/stubs/node-forge.js +0 -7
|
@@ -1,14 +1,12 @@
|
|
|
1
|
-
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
2
1
|
import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
|
|
3
2
|
import _createClass from "@babel/runtime/helpers/createClass";
|
|
4
|
-
|
|
3
|
+
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
5
4
|
var __awaiter = this && this.__awaiter || function (thisArg, _arguments, P, generator) {
|
|
6
5
|
function adopt(value) {
|
|
7
6
|
return value instanceof P ? value : new P(function (resolve) {
|
|
8
7
|
resolve(value);
|
|
9
8
|
});
|
|
10
9
|
}
|
|
11
|
-
|
|
12
10
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
13
11
|
function fulfilled(value) {
|
|
14
12
|
try {
|
|
@@ -17,7 +15,6 @@ var __awaiter = this && this.__awaiter || function (thisArg, _arguments, P, gene
|
|
|
17
15
|
reject(e);
|
|
18
16
|
}
|
|
19
17
|
}
|
|
20
|
-
|
|
21
18
|
function rejected(value) {
|
|
22
19
|
try {
|
|
23
20
|
step(generator["throw"](value));
|
|
@@ -25,15 +22,12 @@ var __awaiter = this && this.__awaiter || function (thisArg, _arguments, P, gene
|
|
|
25
22
|
reject(e);
|
|
26
23
|
}
|
|
27
24
|
}
|
|
28
|
-
|
|
29
25
|
function step(result) {
|
|
30
26
|
result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);
|
|
31
27
|
}
|
|
32
|
-
|
|
33
28
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
34
29
|
});
|
|
35
30
|
};
|
|
36
|
-
|
|
37
31
|
import { DeviceType } from '../enums/deviceType';
|
|
38
32
|
import { ApiKeyResponse } from '../models/response/apiKeyResponse';
|
|
39
33
|
import { BillingResponse } from '../models/response/billingResponse';
|
|
@@ -73,9 +67,7 @@ import { UserKeyResponse } from '../models/response/userKeyResponse';
|
|
|
73
67
|
export var ApiService = /*#__PURE__*/function () {
|
|
74
68
|
function ApiService(tokenService, platformUtilsService, logoutCallback) {
|
|
75
69
|
var customUserAgent = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : null;
|
|
76
|
-
|
|
77
70
|
_classCallCheck(this, ApiService);
|
|
78
|
-
|
|
79
71
|
this.tokenService = tokenService;
|
|
80
72
|
this.platformUtilsService = platformUtilsService;
|
|
81
73
|
this.logoutCallback = logoutCallback;
|
|
@@ -89,12 +81,10 @@ export var ApiService = /*#__PURE__*/function () {
|
|
|
89
81
|
this.isWebClient = this.device === DeviceType.IEBrowser || this.device === DeviceType.ChromeBrowser || this.device === DeviceType.EdgeBrowser || this.device === DeviceType.FirefoxBrowser || this.device === DeviceType.OperaBrowser || this.device === DeviceType.SafariBrowser || this.device === DeviceType.UnknownBrowser || this.device === DeviceType.VivaldiBrowser;
|
|
90
82
|
this.isDesktopClient = this.device === DeviceType.WindowsDesktop || this.device === DeviceType.MacOsDesktop || this.device === DeviceType.LinuxDesktop;
|
|
91
83
|
}
|
|
92
|
-
|
|
93
84
|
_createClass(ApiService, [{
|
|
94
85
|
key: "setUrls",
|
|
95
86
|
value: function setUrls(urls) {
|
|
96
87
|
this.urlsSet = true;
|
|
97
|
-
|
|
98
88
|
if (urls.base != null) {
|
|
99
89
|
this.usingBaseUrl = true;
|
|
100
90
|
this.apiBaseUrl = urls.base + '/api';
|
|
@@ -102,101 +92,81 @@ export var ApiService = /*#__PURE__*/function () {
|
|
|
102
92
|
this.eventsBaseUrl = urls.base + '/events';
|
|
103
93
|
return;
|
|
104
94
|
}
|
|
105
|
-
|
|
106
95
|
this.apiBaseUrl = urls.api;
|
|
107
96
|
this.identityBaseUrl = urls.identity;
|
|
108
|
-
this.eventsBaseUrl = urls.events;
|
|
109
|
-
|
|
97
|
+
this.eventsBaseUrl = urls.events;
|
|
98
|
+
// Production
|
|
110
99
|
if (this.apiBaseUrl == null) {
|
|
111
100
|
this.apiBaseUrl = 'https://api.bitwarden.com';
|
|
112
101
|
}
|
|
113
|
-
|
|
114
102
|
if (this.identityBaseUrl == null) {
|
|
115
103
|
this.identityBaseUrl = 'https://identity.bitwarden.com';
|
|
116
104
|
}
|
|
117
|
-
|
|
118
105
|
if (this.eventsBaseUrl == null) {
|
|
119
106
|
this.eventsBaseUrl = 'https://events.bitwarden.com';
|
|
120
107
|
}
|
|
121
|
-
}
|
|
122
|
-
|
|
108
|
+
}
|
|
109
|
+
// Auth APIs
|
|
123
110
|
}, {
|
|
124
111
|
key: "postIdentityToken",
|
|
125
112
|
value: function postIdentityToken(request) {
|
|
126
113
|
var _a;
|
|
127
|
-
|
|
128
114
|
return __awaiter(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {
|
|
129
115
|
var headers, response, responseJson;
|
|
130
116
|
return _regeneratorRuntime.wrap(function _callee$(_context) {
|
|
131
|
-
while (1) {
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
_context.next =
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
break;
|
|
185
|
-
}
|
|
186
|
-
|
|
187
|
-
_context.next = 18;
|
|
188
|
-
return this.tokenService.clearTwoFactorToken(request.email);
|
|
189
|
-
|
|
190
|
-
case 18:
|
|
191
|
-
return _context.abrupt("return", new IdentityTwoFactorResponse(responseJson));
|
|
192
|
-
|
|
193
|
-
case 19:
|
|
194
|
-
return _context.abrupt("return", Promise.reject(new ErrorResponse(responseJson, response.status, true)));
|
|
195
|
-
|
|
196
|
-
case 20:
|
|
197
|
-
case "end":
|
|
198
|
-
return _context.stop();
|
|
199
|
-
}
|
|
117
|
+
while (1) switch (_context.prev = _context.next) {
|
|
118
|
+
case 0:
|
|
119
|
+
headers = new Headers({
|
|
120
|
+
'Content-Type': 'application/x-www-form-urlencoded; charset=utf-8',
|
|
121
|
+
'Accept': 'application/json',
|
|
122
|
+
'Device-Type': this.deviceType
|
|
123
|
+
});
|
|
124
|
+
if (this.customUserAgent != null) {
|
|
125
|
+
headers.set('User-Agent', this.customUserAgent);
|
|
126
|
+
}
|
|
127
|
+
_context.next = 4;
|
|
128
|
+
return this.fetch(new Request(this.identityBaseUrl + '/connect/token', {
|
|
129
|
+
body: this.qsStringify(request.toIdentityToken((_a = request.clientId) !== null && _a !== void 0 ? _a : this.platformUtilsService.identityClientId)),
|
|
130
|
+
credentials: this.getCredentials(),
|
|
131
|
+
cache: 'no-store',
|
|
132
|
+
headers: headers,
|
|
133
|
+
method: 'POST'
|
|
134
|
+
}));
|
|
135
|
+
case 4:
|
|
136
|
+
response = _context.sent;
|
|
137
|
+
responseJson = null;
|
|
138
|
+
if (!this.isJsonResponse(response)) {
|
|
139
|
+
_context.next = 10;
|
|
140
|
+
break;
|
|
141
|
+
}
|
|
142
|
+
_context.next = 9;
|
|
143
|
+
return response.json();
|
|
144
|
+
case 9:
|
|
145
|
+
responseJson = _context.sent;
|
|
146
|
+
case 10:
|
|
147
|
+
if (!(responseJson != null)) {
|
|
148
|
+
_context.next = 19;
|
|
149
|
+
break;
|
|
150
|
+
}
|
|
151
|
+
if (!(response.status === 200)) {
|
|
152
|
+
_context.next = 15;
|
|
153
|
+
break;
|
|
154
|
+
}
|
|
155
|
+
return _context.abrupt("return", new IdentityTokenResponse(responseJson));
|
|
156
|
+
case 15:
|
|
157
|
+
if (!(response.status === 400 && responseJson.TwoFactorProviders2 && Object.keys(responseJson.TwoFactorProviders2).length)) {
|
|
158
|
+
_context.next = 19;
|
|
159
|
+
break;
|
|
160
|
+
}
|
|
161
|
+
_context.next = 18;
|
|
162
|
+
return this.tokenService.clearTwoFactorToken(request.email);
|
|
163
|
+
case 18:
|
|
164
|
+
return _context.abrupt("return", new IdentityTwoFactorResponse(responseJson));
|
|
165
|
+
case 19:
|
|
166
|
+
return _context.abrupt("return", Promise.reject(new ErrorResponse(responseJson, response.status, true)));
|
|
167
|
+
case 20:
|
|
168
|
+
case "end":
|
|
169
|
+
return _context.stop();
|
|
200
170
|
}
|
|
201
171
|
}, _callee, this);
|
|
202
172
|
}));
|
|
@@ -206,51 +176,42 @@ export var ApiService = /*#__PURE__*/function () {
|
|
|
206
176
|
value: function refreshIdentityToken() {
|
|
207
177
|
return __awaiter(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime.mark(function _callee2() {
|
|
208
178
|
return _regeneratorRuntime.wrap(function _callee2$(_context2) {
|
|
209
|
-
while (1) {
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
case 8:
|
|
226
|
-
case "end":
|
|
227
|
-
return _context2.stop();
|
|
228
|
-
}
|
|
179
|
+
while (1) switch (_context2.prev = _context2.next) {
|
|
180
|
+
case 0:
|
|
181
|
+
_context2.prev = 0;
|
|
182
|
+
_context2.next = 3;
|
|
183
|
+
return this.doRefreshToken();
|
|
184
|
+
case 3:
|
|
185
|
+
_context2.next = 8;
|
|
186
|
+
break;
|
|
187
|
+
case 5:
|
|
188
|
+
_context2.prev = 5;
|
|
189
|
+
_context2.t0 = _context2["catch"](0);
|
|
190
|
+
return _context2.abrupt("return", Promise.reject(null));
|
|
191
|
+
case 8:
|
|
192
|
+
case "end":
|
|
193
|
+
return _context2.stop();
|
|
229
194
|
}
|
|
230
195
|
}, _callee2, this, [[0, 5]]);
|
|
231
196
|
}));
|
|
232
|
-
}
|
|
233
|
-
|
|
197
|
+
}
|
|
198
|
+
// Account APIs
|
|
234
199
|
}, {
|
|
235
200
|
key: "getProfile",
|
|
236
201
|
value: function getProfile() {
|
|
237
202
|
return __awaiter(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime.mark(function _callee3() {
|
|
238
203
|
var r;
|
|
239
204
|
return _regeneratorRuntime.wrap(function _callee3$(_context3) {
|
|
240
|
-
while (1) {
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
case 4:
|
|
251
|
-
case "end":
|
|
252
|
-
return _context3.stop();
|
|
253
|
-
}
|
|
205
|
+
while (1) switch (_context3.prev = _context3.next) {
|
|
206
|
+
case 0:
|
|
207
|
+
_context3.next = 2;
|
|
208
|
+
return this.send('GET', '/accounts/profile', null, true, true);
|
|
209
|
+
case 2:
|
|
210
|
+
r = _context3.sent;
|
|
211
|
+
return _context3.abrupt("return", new ProfileResponse(r));
|
|
212
|
+
case 4:
|
|
213
|
+
case "end":
|
|
214
|
+
return _context3.stop();
|
|
254
215
|
}
|
|
255
216
|
}, _callee3, this);
|
|
256
217
|
}));
|
|
@@ -261,20 +222,16 @@ export var ApiService = /*#__PURE__*/function () {
|
|
|
261
222
|
return __awaiter(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime.mark(function _callee4() {
|
|
262
223
|
var r;
|
|
263
224
|
return _regeneratorRuntime.wrap(function _callee4$(_context4) {
|
|
264
|
-
while (1) {
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
case 4:
|
|
275
|
-
case "end":
|
|
276
|
-
return _context4.stop();
|
|
277
|
-
}
|
|
225
|
+
while (1) switch (_context4.prev = _context4.next) {
|
|
226
|
+
case 0:
|
|
227
|
+
_context4.next = 2;
|
|
228
|
+
return this.send('GET', '/accounts/billing', null, true, true);
|
|
229
|
+
case 2:
|
|
230
|
+
r = _context4.sent;
|
|
231
|
+
return _context4.abrupt("return", new BillingResponse(r));
|
|
232
|
+
case 4:
|
|
233
|
+
case "end":
|
|
234
|
+
return _context4.stop();
|
|
278
235
|
}
|
|
279
236
|
}, _callee4, this);
|
|
280
237
|
}));
|
|
@@ -285,20 +242,16 @@ export var ApiService = /*#__PURE__*/function () {
|
|
|
285
242
|
return __awaiter(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime.mark(function _callee5() {
|
|
286
243
|
var r;
|
|
287
244
|
return _regeneratorRuntime.wrap(function _callee5$(_context5) {
|
|
288
|
-
while (1) {
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
case 4:
|
|
299
|
-
case "end":
|
|
300
|
-
return _context5.stop();
|
|
301
|
-
}
|
|
245
|
+
while (1) switch (_context5.prev = _context5.next) {
|
|
246
|
+
case 0:
|
|
247
|
+
_context5.next = 2;
|
|
248
|
+
return this.send('GET', '/accounts/subscription', null, true, true);
|
|
249
|
+
case 2:
|
|
250
|
+
r = _context5.sent;
|
|
251
|
+
return _context5.abrupt("return", new SubscriptionResponse(r));
|
|
252
|
+
case 4:
|
|
253
|
+
case "end":
|
|
254
|
+
return _context5.stop();
|
|
302
255
|
}
|
|
303
256
|
}, _callee5, this);
|
|
304
257
|
}));
|
|
@@ -309,20 +262,16 @@ export var ApiService = /*#__PURE__*/function () {
|
|
|
309
262
|
return __awaiter(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime.mark(function _callee6() {
|
|
310
263
|
var r;
|
|
311
264
|
return _regeneratorRuntime.wrap(function _callee6$(_context6) {
|
|
312
|
-
while (1) {
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
case 4:
|
|
323
|
-
case "end":
|
|
324
|
-
return _context6.stop();
|
|
325
|
-
}
|
|
265
|
+
while (1) switch (_context6.prev = _context6.next) {
|
|
266
|
+
case 0:
|
|
267
|
+
_context6.next = 2;
|
|
268
|
+
return this.send('GET', '/accounts/tax', null, true, true);
|
|
269
|
+
case 2:
|
|
270
|
+
r = _context6.sent;
|
|
271
|
+
return _context6.abrupt("return", new TaxInfoResponse(r));
|
|
272
|
+
case 4:
|
|
273
|
+
case "end":
|
|
274
|
+
return _context6.stop();
|
|
326
275
|
}
|
|
327
276
|
}, _callee6, this);
|
|
328
277
|
}));
|
|
@@ -333,20 +282,16 @@ export var ApiService = /*#__PURE__*/function () {
|
|
|
333
282
|
return __awaiter(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime.mark(function _callee7() {
|
|
334
283
|
var r;
|
|
335
284
|
return _regeneratorRuntime.wrap(function _callee7$(_context7) {
|
|
336
|
-
while (1) {
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
case 4:
|
|
347
|
-
case "end":
|
|
348
|
-
return _context7.stop();
|
|
349
|
-
}
|
|
285
|
+
while (1) switch (_context7.prev = _context7.next) {
|
|
286
|
+
case 0:
|
|
287
|
+
_context7.next = 2;
|
|
288
|
+
return this.send('PUT', '/accounts/profile', request, true, true);
|
|
289
|
+
case 2:
|
|
290
|
+
r = _context7.sent;
|
|
291
|
+
return _context7.abrupt("return", new ProfileResponse(r));
|
|
292
|
+
case 4:
|
|
293
|
+
case "end":
|
|
294
|
+
return _context7.stop();
|
|
350
295
|
}
|
|
351
296
|
}, _callee7, this);
|
|
352
297
|
}));
|
|
@@ -362,20 +307,16 @@ export var ApiService = /*#__PURE__*/function () {
|
|
|
362
307
|
return __awaiter(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime.mark(function _callee8() {
|
|
363
308
|
var r;
|
|
364
309
|
return _regeneratorRuntime.wrap(function _callee8$(_context8) {
|
|
365
|
-
while (1) {
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
case 4:
|
|
376
|
-
case "end":
|
|
377
|
-
return _context8.stop();
|
|
378
|
-
}
|
|
310
|
+
while (1) switch (_context8.prev = _context8.next) {
|
|
311
|
+
case 0:
|
|
312
|
+
_context8.next = 2;
|
|
313
|
+
return this.send('POST', '/accounts/prelogin', request, false, true);
|
|
314
|
+
case 2:
|
|
315
|
+
r = _context8.sent;
|
|
316
|
+
return _context8.abrupt("return", new PreloginResponse(r));
|
|
317
|
+
case 4:
|
|
318
|
+
case "end":
|
|
319
|
+
return _context8.stop();
|
|
379
320
|
}
|
|
380
321
|
}, _callee8, this);
|
|
381
322
|
}));
|
|
@@ -416,20 +357,16 @@ export var ApiService = /*#__PURE__*/function () {
|
|
|
416
357
|
return __awaiter(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime.mark(function _callee9() {
|
|
417
358
|
var r;
|
|
418
359
|
return _regeneratorRuntime.wrap(function _callee9$(_context9) {
|
|
419
|
-
while (1) {
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
case 4:
|
|
430
|
-
case "end":
|
|
431
|
-
return _context9.stop();
|
|
432
|
-
}
|
|
360
|
+
while (1) switch (_context9.prev = _context9.next) {
|
|
361
|
+
case 0:
|
|
362
|
+
_context9.next = 2;
|
|
363
|
+
return this.send('GET', '/accounts/revision-date', null, true, true);
|
|
364
|
+
case 2:
|
|
365
|
+
r = _context9.sent;
|
|
366
|
+
return _context9.abrupt("return", r);
|
|
367
|
+
case 4:
|
|
368
|
+
case "end":
|
|
369
|
+
return _context9.stop();
|
|
433
370
|
}
|
|
434
371
|
}, _callee9, this);
|
|
435
372
|
}));
|
|
@@ -450,20 +387,16 @@ export var ApiService = /*#__PURE__*/function () {
|
|
|
450
387
|
return __awaiter(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime.mark(function _callee10() {
|
|
451
388
|
var r;
|
|
452
389
|
return _regeneratorRuntime.wrap(function _callee10$(_context10) {
|
|
453
|
-
while (1) {
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
case 4:
|
|
464
|
-
case "end":
|
|
465
|
-
return _context10.stop();
|
|
466
|
-
}
|
|
390
|
+
while (1) switch (_context10.prev = _context10.next) {
|
|
391
|
+
case 0:
|
|
392
|
+
_context10.next = 2;
|
|
393
|
+
return this.send('POST', '/accounts/premium', data, true, true);
|
|
394
|
+
case 2:
|
|
395
|
+
r = _context10.sent;
|
|
396
|
+
return _context10.abrupt("return", new PaymentResponse(r));
|
|
397
|
+
case 4:
|
|
398
|
+
case "end":
|
|
399
|
+
return _context10.stop();
|
|
467
400
|
}
|
|
468
401
|
}, _callee10, this);
|
|
469
402
|
}));
|
|
@@ -473,15 +406,12 @@ export var ApiService = /*#__PURE__*/function () {
|
|
|
473
406
|
value: function postIapCheck(request) {
|
|
474
407
|
return __awaiter(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime.mark(function _callee11() {
|
|
475
408
|
return _regeneratorRuntime.wrap(function _callee11$(_context11) {
|
|
476
|
-
while (1) {
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
case "end":
|
|
483
|
-
return _context11.stop();
|
|
484
|
-
}
|
|
409
|
+
while (1) switch (_context11.prev = _context11.next) {
|
|
410
|
+
case 0:
|
|
411
|
+
return _context11.abrupt("return", this.send('POST', '/accounts/iap-check', request, true, false));
|
|
412
|
+
case 1:
|
|
413
|
+
case "end":
|
|
414
|
+
return _context11.stop();
|
|
485
415
|
}
|
|
486
416
|
}, _callee11, this);
|
|
487
417
|
}));
|
|
@@ -502,20 +432,16 @@ export var ApiService = /*#__PURE__*/function () {
|
|
|
502
432
|
return __awaiter(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime.mark(function _callee12() {
|
|
503
433
|
var r;
|
|
504
434
|
return _regeneratorRuntime.wrap(function _callee12$(_context12) {
|
|
505
|
-
while (1) {
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
case 4:
|
|
516
|
-
case "end":
|
|
517
|
-
return _context12.stop();
|
|
518
|
-
}
|
|
435
|
+
while (1) switch (_context12.prev = _context12.next) {
|
|
436
|
+
case 0:
|
|
437
|
+
_context12.next = 2;
|
|
438
|
+
return this.send('POST', '/accounts/storage', request, true, true);
|
|
439
|
+
case 2:
|
|
440
|
+
r = _context12.sent;
|
|
441
|
+
return _context12.abrupt("return", new PaymentResponse(r));
|
|
442
|
+
case 4:
|
|
443
|
+
case "end":
|
|
444
|
+
return _context12.stop();
|
|
519
445
|
}
|
|
520
446
|
}, _callee12, this);
|
|
521
447
|
}));
|
|
@@ -576,20 +502,16 @@ export var ApiService = /*#__PURE__*/function () {
|
|
|
576
502
|
return __awaiter(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime.mark(function _callee13() {
|
|
577
503
|
var r;
|
|
578
504
|
return _regeneratorRuntime.wrap(function _callee13$(_context13) {
|
|
579
|
-
while (1) {
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
case 4:
|
|
590
|
-
case "end":
|
|
591
|
-
return _context13.stop();
|
|
592
|
-
}
|
|
505
|
+
while (1) switch (_context13.prev = _context13.next) {
|
|
506
|
+
case 0:
|
|
507
|
+
_context13.next = 2;
|
|
508
|
+
return this.send('GET', '/accounts/enterprise-portal-signin-token', null, true, true);
|
|
509
|
+
case 2:
|
|
510
|
+
r = _context13.sent;
|
|
511
|
+
return _context13.abrupt("return", r);
|
|
512
|
+
case 4:
|
|
513
|
+
case "end":
|
|
514
|
+
return _context13.stop();
|
|
593
515
|
}
|
|
594
516
|
}, _callee13, this);
|
|
595
517
|
}));
|
|
@@ -599,15 +521,12 @@ export var ApiService = /*#__PURE__*/function () {
|
|
|
599
521
|
value: function deleteSsoUser(organizationId) {
|
|
600
522
|
return __awaiter(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime.mark(function _callee14() {
|
|
601
523
|
return _regeneratorRuntime.wrap(function _callee14$(_context14) {
|
|
602
|
-
while (1) {
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
case "end":
|
|
609
|
-
return _context14.stop();
|
|
610
|
-
}
|
|
524
|
+
while (1) switch (_context14.prev = _context14.next) {
|
|
525
|
+
case 0:
|
|
526
|
+
return _context14.abrupt("return", this.send('DELETE', '/accounts/sso/' + organizationId, null, true, false));
|
|
527
|
+
case 1:
|
|
528
|
+
case "end":
|
|
529
|
+
return _context14.stop();
|
|
611
530
|
}
|
|
612
531
|
}, _callee14, this);
|
|
613
532
|
}));
|
|
@@ -617,15 +536,12 @@ export var ApiService = /*#__PURE__*/function () {
|
|
|
617
536
|
value: function getSsoUserIdentifier() {
|
|
618
537
|
return __awaiter(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime.mark(function _callee15() {
|
|
619
538
|
return _regeneratorRuntime.wrap(function _callee15$(_context15) {
|
|
620
|
-
while (1) {
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
case "end":
|
|
627
|
-
return _context15.stop();
|
|
628
|
-
}
|
|
539
|
+
while (1) switch (_context15.prev = _context15.next) {
|
|
540
|
+
case 0:
|
|
541
|
+
return _context15.abrupt("return", this.send('GET', '/accounts/sso/user-identifier', null, true, true));
|
|
542
|
+
case 1:
|
|
543
|
+
case "end":
|
|
544
|
+
return _context15.stop();
|
|
629
545
|
}
|
|
630
546
|
}, _callee15, this);
|
|
631
547
|
}));
|
|
@@ -636,20 +552,16 @@ export var ApiService = /*#__PURE__*/function () {
|
|
|
636
552
|
return __awaiter(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime.mark(function _callee16() {
|
|
637
553
|
var r;
|
|
638
554
|
return _regeneratorRuntime.wrap(function _callee16$(_context16) {
|
|
639
|
-
while (1) {
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
case 4:
|
|
650
|
-
case "end":
|
|
651
|
-
return _context16.stop();
|
|
652
|
-
}
|
|
555
|
+
while (1) switch (_context16.prev = _context16.next) {
|
|
556
|
+
case 0:
|
|
557
|
+
_context16.next = 2;
|
|
558
|
+
return this.send('POST', '/accounts/api-key', request, true, true);
|
|
559
|
+
case 2:
|
|
560
|
+
r = _context16.sent;
|
|
561
|
+
return _context16.abrupt("return", new ApiKeyResponse(r));
|
|
562
|
+
case 4:
|
|
563
|
+
case "end":
|
|
564
|
+
return _context16.stop();
|
|
653
565
|
}
|
|
654
566
|
}, _callee16, this);
|
|
655
567
|
}));
|
|
@@ -660,45 +572,37 @@ export var ApiService = /*#__PURE__*/function () {
|
|
|
660
572
|
return __awaiter(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime.mark(function _callee17() {
|
|
661
573
|
var r;
|
|
662
574
|
return _regeneratorRuntime.wrap(function _callee17$(_context17) {
|
|
663
|
-
while (1) {
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
case 4:
|
|
674
|
-
case "end":
|
|
675
|
-
return _context17.stop();
|
|
676
|
-
}
|
|
575
|
+
while (1) switch (_context17.prev = _context17.next) {
|
|
576
|
+
case 0:
|
|
577
|
+
_context17.next = 2;
|
|
578
|
+
return this.send('POST', '/accounts/rotate-api-key', request, true, true);
|
|
579
|
+
case 2:
|
|
580
|
+
r = _context17.sent;
|
|
581
|
+
return _context17.abrupt("return", new ApiKeyResponse(r));
|
|
582
|
+
case 4:
|
|
583
|
+
case "end":
|
|
584
|
+
return _context17.stop();
|
|
677
585
|
}
|
|
678
586
|
}, _callee17, this);
|
|
679
587
|
}));
|
|
680
|
-
}
|
|
681
|
-
|
|
588
|
+
}
|
|
589
|
+
// Folder APIs
|
|
682
590
|
}, {
|
|
683
591
|
key: "getFolder",
|
|
684
592
|
value: function getFolder(id) {
|
|
685
593
|
return __awaiter(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime.mark(function _callee18() {
|
|
686
594
|
var r;
|
|
687
595
|
return _regeneratorRuntime.wrap(function _callee18$(_context18) {
|
|
688
|
-
while (1) {
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
case 4:
|
|
699
|
-
case "end":
|
|
700
|
-
return _context18.stop();
|
|
701
|
-
}
|
|
596
|
+
while (1) switch (_context18.prev = _context18.next) {
|
|
597
|
+
case 0:
|
|
598
|
+
_context18.next = 2;
|
|
599
|
+
return this.send('GET', '/folders/' + id, null, true, true);
|
|
600
|
+
case 2:
|
|
601
|
+
r = _context18.sent;
|
|
602
|
+
return _context18.abrupt("return", new FolderResponse(r));
|
|
603
|
+
case 4:
|
|
604
|
+
case "end":
|
|
605
|
+
return _context18.stop();
|
|
702
606
|
}
|
|
703
607
|
}, _callee18, this);
|
|
704
608
|
}));
|
|
@@ -709,20 +613,16 @@ export var ApiService = /*#__PURE__*/function () {
|
|
|
709
613
|
return __awaiter(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime.mark(function _callee19() {
|
|
710
614
|
var r;
|
|
711
615
|
return _regeneratorRuntime.wrap(function _callee19$(_context19) {
|
|
712
|
-
while (1) {
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
case 4:
|
|
723
|
-
case "end":
|
|
724
|
-
return _context19.stop();
|
|
725
|
-
}
|
|
616
|
+
while (1) switch (_context19.prev = _context19.next) {
|
|
617
|
+
case 0:
|
|
618
|
+
_context19.next = 2;
|
|
619
|
+
return this.send('POST', '/folders', request, true, true);
|
|
620
|
+
case 2:
|
|
621
|
+
r = _context19.sent;
|
|
622
|
+
return _context19.abrupt("return", new FolderResponse(r));
|
|
623
|
+
case 4:
|
|
624
|
+
case "end":
|
|
625
|
+
return _context19.stop();
|
|
726
626
|
}
|
|
727
627
|
}, _callee19, this);
|
|
728
628
|
}));
|
|
@@ -733,20 +633,16 @@ export var ApiService = /*#__PURE__*/function () {
|
|
|
733
633
|
return __awaiter(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime.mark(function _callee20() {
|
|
734
634
|
var r;
|
|
735
635
|
return _regeneratorRuntime.wrap(function _callee20$(_context20) {
|
|
736
|
-
while (1) {
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
case 4:
|
|
747
|
-
case "end":
|
|
748
|
-
return _context20.stop();
|
|
749
|
-
}
|
|
636
|
+
while (1) switch (_context20.prev = _context20.next) {
|
|
637
|
+
case 0:
|
|
638
|
+
_context20.next = 2;
|
|
639
|
+
return this.send('PUT', '/folders/' + id, request, true, true);
|
|
640
|
+
case 2:
|
|
641
|
+
r = _context20.sent;
|
|
642
|
+
return _context20.abrupt("return", new FolderResponse(r));
|
|
643
|
+
case 4:
|
|
644
|
+
case "end":
|
|
645
|
+
return _context20.stop();
|
|
750
646
|
}
|
|
751
647
|
}, _callee20, this);
|
|
752
648
|
}));
|
|
@@ -755,28 +651,24 @@ export var ApiService = /*#__PURE__*/function () {
|
|
|
755
651
|
key: "deleteFolder",
|
|
756
652
|
value: function deleteFolder(id) {
|
|
757
653
|
return this.send('DELETE', '/folders/' + id, null, true, false);
|
|
758
|
-
}
|
|
759
|
-
|
|
654
|
+
}
|
|
655
|
+
// Send APIs
|
|
760
656
|
}, {
|
|
761
657
|
key: "getSend",
|
|
762
658
|
value: function getSend(id) {
|
|
763
659
|
return __awaiter(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime.mark(function _callee21() {
|
|
764
660
|
var r;
|
|
765
661
|
return _regeneratorRuntime.wrap(function _callee21$(_context21) {
|
|
766
|
-
while (1) {
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
case 4:
|
|
777
|
-
case "end":
|
|
778
|
-
return _context21.stop();
|
|
779
|
-
}
|
|
662
|
+
while (1) switch (_context21.prev = _context21.next) {
|
|
663
|
+
case 0:
|
|
664
|
+
_context21.next = 2;
|
|
665
|
+
return this.send('GET', '/sends/' + id, null, true, true);
|
|
666
|
+
case 2:
|
|
667
|
+
r = _context21.sent;
|
|
668
|
+
return _context21.abrupt("return", new SendResponse(r));
|
|
669
|
+
case 4:
|
|
670
|
+
case "end":
|
|
671
|
+
return _context21.stop();
|
|
780
672
|
}
|
|
781
673
|
}, _callee21, this);
|
|
782
674
|
}));
|
|
@@ -787,20 +679,16 @@ export var ApiService = /*#__PURE__*/function () {
|
|
|
787
679
|
return __awaiter(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime.mark(function _callee22() {
|
|
788
680
|
var r;
|
|
789
681
|
return _regeneratorRuntime.wrap(function _callee22$(_context22) {
|
|
790
|
-
while (1) {
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
case 4:
|
|
801
|
-
case "end":
|
|
802
|
-
return _context22.stop();
|
|
803
|
-
}
|
|
682
|
+
while (1) switch (_context22.prev = _context22.next) {
|
|
683
|
+
case 0:
|
|
684
|
+
_context22.next = 2;
|
|
685
|
+
return this.send('POST', '/sends/access/' + id, request, false, true);
|
|
686
|
+
case 2:
|
|
687
|
+
r = _context22.sent;
|
|
688
|
+
return _context22.abrupt("return", new SendAccessResponse(r));
|
|
689
|
+
case 4:
|
|
690
|
+
case "end":
|
|
691
|
+
return _context22.stop();
|
|
804
692
|
}
|
|
805
693
|
}, _callee22, this);
|
|
806
694
|
}));
|
|
@@ -811,20 +699,16 @@ export var ApiService = /*#__PURE__*/function () {
|
|
|
811
699
|
return __awaiter(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime.mark(function _callee23() {
|
|
812
700
|
var r;
|
|
813
701
|
return _regeneratorRuntime.wrap(function _callee23$(_context23) {
|
|
814
|
-
while (1) {
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
case 4:
|
|
825
|
-
case "end":
|
|
826
|
-
return _context23.stop();
|
|
827
|
-
}
|
|
702
|
+
while (1) switch (_context23.prev = _context23.next) {
|
|
703
|
+
case 0:
|
|
704
|
+
_context23.next = 2;
|
|
705
|
+
return this.send('GET', '/sends', null, true, true);
|
|
706
|
+
case 2:
|
|
707
|
+
r = _context23.sent;
|
|
708
|
+
return _context23.abrupt("return", new ListResponse(r, SendResponse));
|
|
709
|
+
case 4:
|
|
710
|
+
case "end":
|
|
711
|
+
return _context23.stop();
|
|
828
712
|
}
|
|
829
713
|
}, _callee23, this);
|
|
830
714
|
}));
|
|
@@ -835,20 +719,16 @@ export var ApiService = /*#__PURE__*/function () {
|
|
|
835
719
|
return __awaiter(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime.mark(function _callee24() {
|
|
836
720
|
var r;
|
|
837
721
|
return _regeneratorRuntime.wrap(function _callee24$(_context24) {
|
|
838
|
-
while (1) {
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
case 4:
|
|
849
|
-
case "end":
|
|
850
|
-
return _context24.stop();
|
|
851
|
-
}
|
|
722
|
+
while (1) switch (_context24.prev = _context24.next) {
|
|
723
|
+
case 0:
|
|
724
|
+
_context24.next = 2;
|
|
725
|
+
return this.send('POST', '/sends', request, true, true);
|
|
726
|
+
case 2:
|
|
727
|
+
r = _context24.sent;
|
|
728
|
+
return _context24.abrupt("return", new SendResponse(r));
|
|
729
|
+
case 4:
|
|
730
|
+
case "end":
|
|
731
|
+
return _context24.stop();
|
|
852
732
|
}
|
|
853
733
|
}, _callee24, this);
|
|
854
734
|
}));
|
|
@@ -859,20 +739,16 @@ export var ApiService = /*#__PURE__*/function () {
|
|
|
859
739
|
return __awaiter(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime.mark(function _callee25() {
|
|
860
740
|
var r;
|
|
861
741
|
return _regeneratorRuntime.wrap(function _callee25$(_context25) {
|
|
862
|
-
while (1) {
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
case 4:
|
|
873
|
-
case "end":
|
|
874
|
-
return _context25.stop();
|
|
875
|
-
}
|
|
742
|
+
while (1) switch (_context25.prev = _context25.next) {
|
|
743
|
+
case 0:
|
|
744
|
+
_context25.next = 2;
|
|
745
|
+
return this.send('POST', '/sends/file', data, true, true);
|
|
746
|
+
case 2:
|
|
747
|
+
r = _context25.sent;
|
|
748
|
+
return _context25.abrupt("return", new SendResponse(r));
|
|
749
|
+
case 4:
|
|
750
|
+
case "end":
|
|
751
|
+
return _context25.stop();
|
|
876
752
|
}
|
|
877
753
|
}, _callee25, this);
|
|
878
754
|
}));
|
|
@@ -883,20 +759,16 @@ export var ApiService = /*#__PURE__*/function () {
|
|
|
883
759
|
return __awaiter(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime.mark(function _callee26() {
|
|
884
760
|
var r;
|
|
885
761
|
return _regeneratorRuntime.wrap(function _callee26$(_context26) {
|
|
886
|
-
while (1) {
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
case 4:
|
|
897
|
-
case "end":
|
|
898
|
-
return _context26.stop();
|
|
899
|
-
}
|
|
762
|
+
while (1) switch (_context26.prev = _context26.next) {
|
|
763
|
+
case 0:
|
|
764
|
+
_context26.next = 2;
|
|
765
|
+
return this.send('PUT', '/sends/' + id, request, true, true);
|
|
766
|
+
case 2:
|
|
767
|
+
r = _context26.sent;
|
|
768
|
+
return _context26.abrupt("return", new SendResponse(r));
|
|
769
|
+
case 4:
|
|
770
|
+
case "end":
|
|
771
|
+
return _context26.stop();
|
|
900
772
|
}
|
|
901
773
|
}, _callee26, this);
|
|
902
774
|
}));
|
|
@@ -907,20 +779,16 @@ export var ApiService = /*#__PURE__*/function () {
|
|
|
907
779
|
return __awaiter(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime.mark(function _callee27() {
|
|
908
780
|
var r;
|
|
909
781
|
return _regeneratorRuntime.wrap(function _callee27$(_context27) {
|
|
910
|
-
while (1) {
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
case 4:
|
|
921
|
-
case "end":
|
|
922
|
-
return _context27.stop();
|
|
923
|
-
}
|
|
782
|
+
while (1) switch (_context27.prev = _context27.next) {
|
|
783
|
+
case 0:
|
|
784
|
+
_context27.next = 2;
|
|
785
|
+
return this.send('PUT', '/sends/' + id + '/remove-password', null, true, true);
|
|
786
|
+
case 2:
|
|
787
|
+
r = _context27.sent;
|
|
788
|
+
return _context27.abrupt("return", new SendResponse(r));
|
|
789
|
+
case 4:
|
|
790
|
+
case "end":
|
|
791
|
+
return _context27.stop();
|
|
924
792
|
}
|
|
925
793
|
}, _callee27, this);
|
|
926
794
|
}));
|
|
@@ -929,28 +797,24 @@ export var ApiService = /*#__PURE__*/function () {
|
|
|
929
797
|
key: "deleteSend",
|
|
930
798
|
value: function deleteSend(id) {
|
|
931
799
|
return this.send('DELETE', '/sends/' + id, null, true, false);
|
|
932
|
-
}
|
|
933
|
-
|
|
800
|
+
}
|
|
801
|
+
// Cipher APIs
|
|
934
802
|
}, {
|
|
935
803
|
key: "getCipher",
|
|
936
804
|
value: function getCipher(id) {
|
|
937
805
|
return __awaiter(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime.mark(function _callee28() {
|
|
938
806
|
var r;
|
|
939
807
|
return _regeneratorRuntime.wrap(function _callee28$(_context28) {
|
|
940
|
-
while (1) {
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
case 4:
|
|
951
|
-
case "end":
|
|
952
|
-
return _context28.stop();
|
|
953
|
-
}
|
|
808
|
+
while (1) switch (_context28.prev = _context28.next) {
|
|
809
|
+
case 0:
|
|
810
|
+
_context28.next = 2;
|
|
811
|
+
return this.send('GET', '/ciphers/' + id, null, true, true);
|
|
812
|
+
case 2:
|
|
813
|
+
r = _context28.sent;
|
|
814
|
+
return _context28.abrupt("return", new CipherResponse(r));
|
|
815
|
+
case 4:
|
|
816
|
+
case "end":
|
|
817
|
+
return _context28.stop();
|
|
954
818
|
}
|
|
955
819
|
}, _callee28, this);
|
|
956
820
|
}));
|
|
@@ -961,20 +825,16 @@ export var ApiService = /*#__PURE__*/function () {
|
|
|
961
825
|
return __awaiter(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime.mark(function _callee29() {
|
|
962
826
|
var r;
|
|
963
827
|
return _regeneratorRuntime.wrap(function _callee29$(_context29) {
|
|
964
|
-
while (1) {
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
case 4:
|
|
975
|
-
case "end":
|
|
976
|
-
return _context29.stop();
|
|
977
|
-
}
|
|
828
|
+
while (1) switch (_context29.prev = _context29.next) {
|
|
829
|
+
case 0:
|
|
830
|
+
_context29.next = 2;
|
|
831
|
+
return this.send('GET', '/ciphers/' + id + '/admin', null, true, true);
|
|
832
|
+
case 2:
|
|
833
|
+
r = _context29.sent;
|
|
834
|
+
return _context29.abrupt("return", new CipherResponse(r));
|
|
835
|
+
case 4:
|
|
836
|
+
case "end":
|
|
837
|
+
return _context29.stop();
|
|
978
838
|
}
|
|
979
839
|
}, _callee29, this);
|
|
980
840
|
}));
|
|
@@ -985,20 +845,16 @@ export var ApiService = /*#__PURE__*/function () {
|
|
|
985
845
|
return __awaiter(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime.mark(function _callee30() {
|
|
986
846
|
var r;
|
|
987
847
|
return _regeneratorRuntime.wrap(function _callee30$(_context30) {
|
|
988
|
-
while (1) {
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
case 4:
|
|
999
|
-
case "end":
|
|
1000
|
-
return _context30.stop();
|
|
1001
|
-
}
|
|
848
|
+
while (1) switch (_context30.prev = _context30.next) {
|
|
849
|
+
case 0:
|
|
850
|
+
_context30.next = 2;
|
|
851
|
+
return this.send('GET', '/ciphers/organization-details?organizationId=' + organizationId, null, true, true);
|
|
852
|
+
case 2:
|
|
853
|
+
r = _context30.sent;
|
|
854
|
+
return _context30.abrupt("return", new ListResponse(r, CipherResponse));
|
|
855
|
+
case 4:
|
|
856
|
+
case "end":
|
|
857
|
+
return _context30.stop();
|
|
1002
858
|
}
|
|
1003
859
|
}, _callee30, this);
|
|
1004
860
|
}));
|
|
@@ -1009,20 +865,16 @@ export var ApiService = /*#__PURE__*/function () {
|
|
|
1009
865
|
return __awaiter(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime.mark(function _callee31() {
|
|
1010
866
|
var r;
|
|
1011
867
|
return _regeneratorRuntime.wrap(function _callee31$(_context31) {
|
|
1012
|
-
while (1) {
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
case 4:
|
|
1023
|
-
case "end":
|
|
1024
|
-
return _context31.stop();
|
|
1025
|
-
}
|
|
868
|
+
while (1) switch (_context31.prev = _context31.next) {
|
|
869
|
+
case 0:
|
|
870
|
+
_context31.next = 2;
|
|
871
|
+
return this.send('POST', '/ciphers', request, true, true);
|
|
872
|
+
case 2:
|
|
873
|
+
r = _context31.sent;
|
|
874
|
+
return _context31.abrupt("return", new CipherResponse(r));
|
|
875
|
+
case 4:
|
|
876
|
+
case "end":
|
|
877
|
+
return _context31.stop();
|
|
1026
878
|
}
|
|
1027
879
|
}, _callee31, this);
|
|
1028
880
|
}));
|
|
@@ -1033,20 +885,16 @@ export var ApiService = /*#__PURE__*/function () {
|
|
|
1033
885
|
return __awaiter(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime.mark(function _callee32() {
|
|
1034
886
|
var r;
|
|
1035
887
|
return _regeneratorRuntime.wrap(function _callee32$(_context32) {
|
|
1036
|
-
while (1) {
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
case 4:
|
|
1047
|
-
case "end":
|
|
1048
|
-
return _context32.stop();
|
|
1049
|
-
}
|
|
888
|
+
while (1) switch (_context32.prev = _context32.next) {
|
|
889
|
+
case 0:
|
|
890
|
+
_context32.next = 2;
|
|
891
|
+
return this.send('POST', '/ciphers/create', request, true, true);
|
|
892
|
+
case 2:
|
|
893
|
+
r = _context32.sent;
|
|
894
|
+
return _context32.abrupt("return", new CipherResponse(r));
|
|
895
|
+
case 4:
|
|
896
|
+
case "end":
|
|
897
|
+
return _context32.stop();
|
|
1050
898
|
}
|
|
1051
899
|
}, _callee32, this);
|
|
1052
900
|
}));
|
|
@@ -1057,20 +905,16 @@ export var ApiService = /*#__PURE__*/function () {
|
|
|
1057
905
|
return __awaiter(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime.mark(function _callee33() {
|
|
1058
906
|
var r;
|
|
1059
907
|
return _regeneratorRuntime.wrap(function _callee33$(_context33) {
|
|
1060
|
-
while (1) {
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
case 4:
|
|
1071
|
-
case "end":
|
|
1072
|
-
return _context33.stop();
|
|
1073
|
-
}
|
|
908
|
+
while (1) switch (_context33.prev = _context33.next) {
|
|
909
|
+
case 0:
|
|
910
|
+
_context33.next = 2;
|
|
911
|
+
return this.send('POST', '/ciphers/admin', request, true, true);
|
|
912
|
+
case 2:
|
|
913
|
+
r = _context33.sent;
|
|
914
|
+
return _context33.abrupt("return", new CipherResponse(r));
|
|
915
|
+
case 4:
|
|
916
|
+
case "end":
|
|
917
|
+
return _context33.stop();
|
|
1074
918
|
}
|
|
1075
919
|
}, _callee33, this);
|
|
1076
920
|
}));
|
|
@@ -1081,20 +925,16 @@ export var ApiService = /*#__PURE__*/function () {
|
|
|
1081
925
|
return __awaiter(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime.mark(function _callee34() {
|
|
1082
926
|
var r;
|
|
1083
927
|
return _regeneratorRuntime.wrap(function _callee34$(_context34) {
|
|
1084
|
-
while (1) {
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
case 4:
|
|
1095
|
-
case "end":
|
|
1096
|
-
return _context34.stop();
|
|
1097
|
-
}
|
|
928
|
+
while (1) switch (_context34.prev = _context34.next) {
|
|
929
|
+
case 0:
|
|
930
|
+
_context34.next = 2;
|
|
931
|
+
return this.send('PUT', '/ciphers/' + id, request, true, true);
|
|
932
|
+
case 2:
|
|
933
|
+
r = _context34.sent;
|
|
934
|
+
return _context34.abrupt("return", new CipherResponse(r));
|
|
935
|
+
case 4:
|
|
936
|
+
case "end":
|
|
937
|
+
return _context34.stop();
|
|
1098
938
|
}
|
|
1099
939
|
}, _callee34, this);
|
|
1100
940
|
}));
|
|
@@ -1105,20 +945,16 @@ export var ApiService = /*#__PURE__*/function () {
|
|
|
1105
945
|
return __awaiter(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime.mark(function _callee35() {
|
|
1106
946
|
var r;
|
|
1107
947
|
return _regeneratorRuntime.wrap(function _callee35$(_context35) {
|
|
1108
|
-
while (1) {
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
case 4:
|
|
1119
|
-
case "end":
|
|
1120
|
-
return _context35.stop();
|
|
1121
|
-
}
|
|
948
|
+
while (1) switch (_context35.prev = _context35.next) {
|
|
949
|
+
case 0:
|
|
950
|
+
_context35.next = 2;
|
|
951
|
+
return this.send('PUT', '/ciphers/' + id + '/admin', request, true, true);
|
|
952
|
+
case 2:
|
|
953
|
+
r = _context35.sent;
|
|
954
|
+
return _context35.abrupt("return", new CipherResponse(r));
|
|
955
|
+
case 4:
|
|
956
|
+
case "end":
|
|
957
|
+
return _context35.stop();
|
|
1122
958
|
}
|
|
1123
959
|
}, _callee35, this);
|
|
1124
960
|
}));
|
|
@@ -1154,20 +990,16 @@ export var ApiService = /*#__PURE__*/function () {
|
|
|
1154
990
|
return __awaiter(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime.mark(function _callee36() {
|
|
1155
991
|
var r;
|
|
1156
992
|
return _regeneratorRuntime.wrap(function _callee36$(_context36) {
|
|
1157
|
-
while (1) {
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
case 4:
|
|
1168
|
-
case "end":
|
|
1169
|
-
return _context36.stop();
|
|
1170
|
-
}
|
|
993
|
+
while (1) switch (_context36.prev = _context36.next) {
|
|
994
|
+
case 0:
|
|
995
|
+
_context36.next = 2;
|
|
996
|
+
return this.send('PUT', '/ciphers/' + id + '/share', request, true, true);
|
|
997
|
+
case 2:
|
|
998
|
+
r = _context36.sent;
|
|
999
|
+
return _context36.abrupt("return", new CipherResponse(r));
|
|
1000
|
+
case 4:
|
|
1001
|
+
case "end":
|
|
1002
|
+
return _context36.stop();
|
|
1171
1003
|
}
|
|
1172
1004
|
}, _callee36, this);
|
|
1173
1005
|
}));
|
|
@@ -1192,11 +1024,9 @@ export var ApiService = /*#__PURE__*/function () {
|
|
|
1192
1024
|
value: function postPurgeCiphers(request) {
|
|
1193
1025
|
var organizationId = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
|
|
1194
1026
|
var path = '/ciphers/purge';
|
|
1195
|
-
|
|
1196
1027
|
if (organizationId != null) {
|
|
1197
1028
|
path += '?organizationId=' + organizationId;
|
|
1198
1029
|
}
|
|
1199
|
-
|
|
1200
1030
|
return this.send('POST', path, request, true, false);
|
|
1201
1031
|
}
|
|
1202
1032
|
}, {
|
|
@@ -1243,28 +1073,24 @@ export var ApiService = /*#__PURE__*/function () {
|
|
|
1243
1073
|
key: "putRestoreManyCiphers",
|
|
1244
1074
|
value: function putRestoreManyCiphers(request) {
|
|
1245
1075
|
return this.send('PUT', '/ciphers/restore', request, true, false);
|
|
1246
|
-
}
|
|
1247
|
-
|
|
1076
|
+
}
|
|
1077
|
+
// Attachments APIs
|
|
1248
1078
|
}, {
|
|
1249
1079
|
key: "postCipherAttachment",
|
|
1250
1080
|
value: function postCipherAttachment(id, data) {
|
|
1251
1081
|
return __awaiter(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime.mark(function _callee37() {
|
|
1252
1082
|
var r;
|
|
1253
1083
|
return _regeneratorRuntime.wrap(function _callee37$(_context37) {
|
|
1254
|
-
while (1) {
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
case 4:
|
|
1265
|
-
case "end":
|
|
1266
|
-
return _context37.stop();
|
|
1267
|
-
}
|
|
1084
|
+
while (1) switch (_context37.prev = _context37.next) {
|
|
1085
|
+
case 0:
|
|
1086
|
+
_context37.next = 2;
|
|
1087
|
+
return this.send('POST', '/ciphers/' + id + '/attachment', data, true, true);
|
|
1088
|
+
case 2:
|
|
1089
|
+
r = _context37.sent;
|
|
1090
|
+
return _context37.abrupt("return", new CipherResponse(r));
|
|
1091
|
+
case 4:
|
|
1092
|
+
case "end":
|
|
1093
|
+
return _context37.stop();
|
|
1268
1094
|
}
|
|
1269
1095
|
}, _callee37, this);
|
|
1270
1096
|
}));
|
|
@@ -1275,20 +1101,16 @@ export var ApiService = /*#__PURE__*/function () {
|
|
|
1275
1101
|
return __awaiter(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime.mark(function _callee38() {
|
|
1276
1102
|
var r;
|
|
1277
1103
|
return _regeneratorRuntime.wrap(function _callee38$(_context38) {
|
|
1278
|
-
while (1) {
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
case 4:
|
|
1289
|
-
case "end":
|
|
1290
|
-
return _context38.stop();
|
|
1291
|
-
}
|
|
1104
|
+
while (1) switch (_context38.prev = _context38.next) {
|
|
1105
|
+
case 0:
|
|
1106
|
+
_context38.next = 2;
|
|
1107
|
+
return this.send('POST', '/ciphers/' + id + '/attachment-admin', data, true, true);
|
|
1108
|
+
case 2:
|
|
1109
|
+
r = _context38.sent;
|
|
1110
|
+
return _context38.abrupt("return", new CipherResponse(r));
|
|
1111
|
+
case 4:
|
|
1112
|
+
case "end":
|
|
1113
|
+
return _context38.stop();
|
|
1292
1114
|
}
|
|
1293
1115
|
}, _callee38, this);
|
|
1294
1116
|
}));
|
|
@@ -1307,28 +1129,24 @@ export var ApiService = /*#__PURE__*/function () {
|
|
|
1307
1129
|
key: "postShareCipherAttachment",
|
|
1308
1130
|
value: function postShareCipherAttachment(id, attachmentId, data, organizationId) {
|
|
1309
1131
|
return this.send('POST', '/ciphers/' + id + '/attachment/' + attachmentId + '/share?organizationId=' + organizationId, data, true, false);
|
|
1310
|
-
}
|
|
1311
|
-
|
|
1132
|
+
}
|
|
1133
|
+
// Collections APIs
|
|
1312
1134
|
}, {
|
|
1313
1135
|
key: "getCollectionDetails",
|
|
1314
1136
|
value: function getCollectionDetails(organizationId, id) {
|
|
1315
1137
|
return __awaiter(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime.mark(function _callee39() {
|
|
1316
1138
|
var r;
|
|
1317
1139
|
return _regeneratorRuntime.wrap(function _callee39$(_context39) {
|
|
1318
|
-
while (1) {
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
case 4:
|
|
1329
|
-
case "end":
|
|
1330
|
-
return _context39.stop();
|
|
1331
|
-
}
|
|
1140
|
+
while (1) switch (_context39.prev = _context39.next) {
|
|
1141
|
+
case 0:
|
|
1142
|
+
_context39.next = 2;
|
|
1143
|
+
return this.send('GET', '/organizations/' + organizationId + '/collections/' + id + '/details', null, true, true);
|
|
1144
|
+
case 2:
|
|
1145
|
+
r = _context39.sent;
|
|
1146
|
+
return _context39.abrupt("return", new CollectionGroupDetailsResponse(r));
|
|
1147
|
+
case 4:
|
|
1148
|
+
case "end":
|
|
1149
|
+
return _context39.stop();
|
|
1332
1150
|
}
|
|
1333
1151
|
}, _callee39, this);
|
|
1334
1152
|
}));
|
|
@@ -1339,20 +1157,16 @@ export var ApiService = /*#__PURE__*/function () {
|
|
|
1339
1157
|
return __awaiter(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime.mark(function _callee40() {
|
|
1340
1158
|
var r;
|
|
1341
1159
|
return _regeneratorRuntime.wrap(function _callee40$(_context40) {
|
|
1342
|
-
while (1) {
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
case 4:
|
|
1353
|
-
case "end":
|
|
1354
|
-
return _context40.stop();
|
|
1355
|
-
}
|
|
1160
|
+
while (1) switch (_context40.prev = _context40.next) {
|
|
1161
|
+
case 0:
|
|
1162
|
+
_context40.next = 2;
|
|
1163
|
+
return this.send('GET', '/collections', null, true, true);
|
|
1164
|
+
case 2:
|
|
1165
|
+
r = _context40.sent;
|
|
1166
|
+
return _context40.abrupt("return", new ListResponse(r, CollectionResponse));
|
|
1167
|
+
case 4:
|
|
1168
|
+
case "end":
|
|
1169
|
+
return _context40.stop();
|
|
1356
1170
|
}
|
|
1357
1171
|
}, _callee40, this);
|
|
1358
1172
|
}));
|
|
@@ -1363,20 +1177,16 @@ export var ApiService = /*#__PURE__*/function () {
|
|
|
1363
1177
|
return __awaiter(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime.mark(function _callee41() {
|
|
1364
1178
|
var r;
|
|
1365
1179
|
return _regeneratorRuntime.wrap(function _callee41$(_context41) {
|
|
1366
|
-
while (1) {
|
|
1367
|
-
|
|
1368
|
-
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
-
case 4:
|
|
1377
|
-
case "end":
|
|
1378
|
-
return _context41.stop();
|
|
1379
|
-
}
|
|
1180
|
+
while (1) switch (_context41.prev = _context41.next) {
|
|
1181
|
+
case 0:
|
|
1182
|
+
_context41.next = 2;
|
|
1183
|
+
return this.send('GET', '/organizations/' + organizationId + '/collections', null, true, true);
|
|
1184
|
+
case 2:
|
|
1185
|
+
r = _context41.sent;
|
|
1186
|
+
return _context41.abrupt("return", new ListResponse(r, CollectionResponse));
|
|
1187
|
+
case 4:
|
|
1188
|
+
case "end":
|
|
1189
|
+
return _context41.stop();
|
|
1380
1190
|
}
|
|
1381
1191
|
}, _callee41, this);
|
|
1382
1192
|
}));
|
|
@@ -1387,22 +1197,18 @@ export var ApiService = /*#__PURE__*/function () {
|
|
|
1387
1197
|
return __awaiter(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime.mark(function _callee42() {
|
|
1388
1198
|
var r;
|
|
1389
1199
|
return _regeneratorRuntime.wrap(function _callee42$(_context42) {
|
|
1390
|
-
while (1) {
|
|
1391
|
-
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
|
|
1397
|
-
|
|
1398
|
-
|
|
1399
|
-
|
|
1400
|
-
|
|
1401
|
-
|
|
1402
|
-
case 4:
|
|
1403
|
-
case "end":
|
|
1404
|
-
return _context42.stop();
|
|
1405
|
-
}
|
|
1200
|
+
while (1) switch (_context42.prev = _context42.next) {
|
|
1201
|
+
case 0:
|
|
1202
|
+
_context42.next = 2;
|
|
1203
|
+
return this.send('GET', '/organizations/' + organizationId + '/collections/' + id + '/users', null, true, true);
|
|
1204
|
+
case 2:
|
|
1205
|
+
r = _context42.sent;
|
|
1206
|
+
return _context42.abrupt("return", r.map(function (dr) {
|
|
1207
|
+
return new SelectionReadOnlyResponse(dr);
|
|
1208
|
+
}));
|
|
1209
|
+
case 4:
|
|
1210
|
+
case "end":
|
|
1211
|
+
return _context42.stop();
|
|
1406
1212
|
}
|
|
1407
1213
|
}, _callee42, this);
|
|
1408
1214
|
}));
|
|
@@ -1413,20 +1219,16 @@ export var ApiService = /*#__PURE__*/function () {
|
|
|
1413
1219
|
return __awaiter(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime.mark(function _callee43() {
|
|
1414
1220
|
var r;
|
|
1415
1221
|
return _regeneratorRuntime.wrap(function _callee43$(_context43) {
|
|
1416
|
-
while (1) {
|
|
1417
|
-
|
|
1418
|
-
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
|
|
1423
|
-
|
|
1424
|
-
|
|
1425
|
-
|
|
1426
|
-
case 4:
|
|
1427
|
-
case "end":
|
|
1428
|
-
return _context43.stop();
|
|
1429
|
-
}
|
|
1222
|
+
while (1) switch (_context43.prev = _context43.next) {
|
|
1223
|
+
case 0:
|
|
1224
|
+
_context43.next = 2;
|
|
1225
|
+
return this.send('POST', '/organizations/' + organizationId + '/collections', request, true, true);
|
|
1226
|
+
case 2:
|
|
1227
|
+
r = _context43.sent;
|
|
1228
|
+
return _context43.abrupt("return", new CollectionResponse(r));
|
|
1229
|
+
case 4:
|
|
1230
|
+
case "end":
|
|
1231
|
+
return _context43.stop();
|
|
1430
1232
|
}
|
|
1431
1233
|
}, _callee43, this);
|
|
1432
1234
|
}));
|
|
@@ -1437,20 +1239,16 @@ export var ApiService = /*#__PURE__*/function () {
|
|
|
1437
1239
|
return __awaiter(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime.mark(function _callee44() {
|
|
1438
1240
|
var r;
|
|
1439
1241
|
return _regeneratorRuntime.wrap(function _callee44$(_context44) {
|
|
1440
|
-
while (1) {
|
|
1441
|
-
|
|
1442
|
-
|
|
1443
|
-
|
|
1444
|
-
|
|
1445
|
-
|
|
1446
|
-
|
|
1447
|
-
|
|
1448
|
-
|
|
1449
|
-
|
|
1450
|
-
case 4:
|
|
1451
|
-
case "end":
|
|
1452
|
-
return _context44.stop();
|
|
1453
|
-
}
|
|
1242
|
+
while (1) switch (_context44.prev = _context44.next) {
|
|
1243
|
+
case 0:
|
|
1244
|
+
_context44.next = 2;
|
|
1245
|
+
return this.send('PUT', '/organizations/' + organizationId + '/collections/' + id, request, true, true);
|
|
1246
|
+
case 2:
|
|
1247
|
+
r = _context44.sent;
|
|
1248
|
+
return _context44.abrupt("return", new CollectionResponse(r));
|
|
1249
|
+
case 4:
|
|
1250
|
+
case "end":
|
|
1251
|
+
return _context44.stop();
|
|
1454
1252
|
}
|
|
1455
1253
|
}, _callee44, this);
|
|
1456
1254
|
}));
|
|
@@ -1460,16 +1258,13 @@ export var ApiService = /*#__PURE__*/function () {
|
|
|
1460
1258
|
value: function putCollectionUsers(organizationId, id, request) {
|
|
1461
1259
|
return __awaiter(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime.mark(function _callee45() {
|
|
1462
1260
|
return _regeneratorRuntime.wrap(function _callee45$(_context45) {
|
|
1463
|
-
while (1) {
|
|
1464
|
-
|
|
1465
|
-
|
|
1466
|
-
|
|
1467
|
-
|
|
1468
|
-
|
|
1469
|
-
|
|
1470
|
-
case "end":
|
|
1471
|
-
return _context45.stop();
|
|
1472
|
-
}
|
|
1261
|
+
while (1) switch (_context45.prev = _context45.next) {
|
|
1262
|
+
case 0:
|
|
1263
|
+
_context45.next = 2;
|
|
1264
|
+
return this.send('PUT', '/organizations/' + organizationId + '/collections/' + id + '/users', request, true, false);
|
|
1265
|
+
case 2:
|
|
1266
|
+
case "end":
|
|
1267
|
+
return _context45.stop();
|
|
1473
1268
|
}
|
|
1474
1269
|
}, _callee45, this);
|
|
1475
1270
|
}));
|
|
@@ -1483,28 +1278,24 @@ export var ApiService = /*#__PURE__*/function () {
|
|
|
1483
1278
|
key: "deleteCollectionUser",
|
|
1484
1279
|
value: function deleteCollectionUser(organizationId, id, organizationUserId) {
|
|
1485
1280
|
return this.send('DELETE', '/organizations/' + organizationId + '/collections/' + id + '/user/' + organizationUserId, null, true, false);
|
|
1486
|
-
}
|
|
1487
|
-
|
|
1281
|
+
}
|
|
1282
|
+
// Groups APIs
|
|
1488
1283
|
}, {
|
|
1489
1284
|
key: "getGroupDetails",
|
|
1490
1285
|
value: function getGroupDetails(organizationId, id) {
|
|
1491
1286
|
return __awaiter(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime.mark(function _callee46() {
|
|
1492
1287
|
var r;
|
|
1493
1288
|
return _regeneratorRuntime.wrap(function _callee46$(_context46) {
|
|
1494
|
-
while (1) {
|
|
1495
|
-
|
|
1496
|
-
|
|
1497
|
-
|
|
1498
|
-
|
|
1499
|
-
|
|
1500
|
-
|
|
1501
|
-
|
|
1502
|
-
|
|
1503
|
-
|
|
1504
|
-
case 4:
|
|
1505
|
-
case "end":
|
|
1506
|
-
return _context46.stop();
|
|
1507
|
-
}
|
|
1289
|
+
while (1) switch (_context46.prev = _context46.next) {
|
|
1290
|
+
case 0:
|
|
1291
|
+
_context46.next = 2;
|
|
1292
|
+
return this.send('GET', '/organizations/' + organizationId + '/groups/' + id + '/details', null, true, true);
|
|
1293
|
+
case 2:
|
|
1294
|
+
r = _context46.sent;
|
|
1295
|
+
return _context46.abrupt("return", new GroupDetailsResponse(r));
|
|
1296
|
+
case 4:
|
|
1297
|
+
case "end":
|
|
1298
|
+
return _context46.stop();
|
|
1508
1299
|
}
|
|
1509
1300
|
}, _callee46, this);
|
|
1510
1301
|
}));
|
|
@@ -1515,20 +1306,16 @@ export var ApiService = /*#__PURE__*/function () {
|
|
|
1515
1306
|
return __awaiter(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime.mark(function _callee47() {
|
|
1516
1307
|
var r;
|
|
1517
1308
|
return _regeneratorRuntime.wrap(function _callee47$(_context47) {
|
|
1518
|
-
while (1) {
|
|
1519
|
-
|
|
1520
|
-
|
|
1521
|
-
|
|
1522
|
-
|
|
1523
|
-
|
|
1524
|
-
|
|
1525
|
-
|
|
1526
|
-
|
|
1527
|
-
|
|
1528
|
-
case 4:
|
|
1529
|
-
case "end":
|
|
1530
|
-
return _context47.stop();
|
|
1531
|
-
}
|
|
1309
|
+
while (1) switch (_context47.prev = _context47.next) {
|
|
1310
|
+
case 0:
|
|
1311
|
+
_context47.next = 2;
|
|
1312
|
+
return this.send('GET', '/organizations/' + organizationId + '/groups', null, true, true);
|
|
1313
|
+
case 2:
|
|
1314
|
+
r = _context47.sent;
|
|
1315
|
+
return _context47.abrupt("return", new ListResponse(r, GroupResponse));
|
|
1316
|
+
case 4:
|
|
1317
|
+
case "end":
|
|
1318
|
+
return _context47.stop();
|
|
1532
1319
|
}
|
|
1533
1320
|
}, _callee47, this);
|
|
1534
1321
|
}));
|
|
@@ -1539,20 +1326,16 @@ export var ApiService = /*#__PURE__*/function () {
|
|
|
1539
1326
|
return __awaiter(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime.mark(function _callee48() {
|
|
1540
1327
|
var r;
|
|
1541
1328
|
return _regeneratorRuntime.wrap(function _callee48$(_context48) {
|
|
1542
|
-
while (1) {
|
|
1543
|
-
|
|
1544
|
-
|
|
1545
|
-
|
|
1546
|
-
|
|
1547
|
-
|
|
1548
|
-
|
|
1549
|
-
|
|
1550
|
-
|
|
1551
|
-
|
|
1552
|
-
case 4:
|
|
1553
|
-
case "end":
|
|
1554
|
-
return _context48.stop();
|
|
1555
|
-
}
|
|
1329
|
+
while (1) switch (_context48.prev = _context48.next) {
|
|
1330
|
+
case 0:
|
|
1331
|
+
_context48.next = 2;
|
|
1332
|
+
return this.send('GET', '/organizations/' + organizationId + '/groups/' + id + '/users', null, true, true);
|
|
1333
|
+
case 2:
|
|
1334
|
+
r = _context48.sent;
|
|
1335
|
+
return _context48.abrupt("return", r);
|
|
1336
|
+
case 4:
|
|
1337
|
+
case "end":
|
|
1338
|
+
return _context48.stop();
|
|
1556
1339
|
}
|
|
1557
1340
|
}, _callee48, this);
|
|
1558
1341
|
}));
|
|
@@ -1563,20 +1346,16 @@ export var ApiService = /*#__PURE__*/function () {
|
|
|
1563
1346
|
return __awaiter(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime.mark(function _callee49() {
|
|
1564
1347
|
var r;
|
|
1565
1348
|
return _regeneratorRuntime.wrap(function _callee49$(_context49) {
|
|
1566
|
-
while (1) {
|
|
1567
|
-
|
|
1568
|
-
|
|
1569
|
-
|
|
1570
|
-
|
|
1571
|
-
|
|
1572
|
-
|
|
1573
|
-
|
|
1574
|
-
|
|
1575
|
-
|
|
1576
|
-
case 4:
|
|
1577
|
-
case "end":
|
|
1578
|
-
return _context49.stop();
|
|
1579
|
-
}
|
|
1349
|
+
while (1) switch (_context49.prev = _context49.next) {
|
|
1350
|
+
case 0:
|
|
1351
|
+
_context49.next = 2;
|
|
1352
|
+
return this.send('POST', '/organizations/' + organizationId + '/groups', request, true, true);
|
|
1353
|
+
case 2:
|
|
1354
|
+
r = _context49.sent;
|
|
1355
|
+
return _context49.abrupt("return", new GroupResponse(r));
|
|
1356
|
+
case 4:
|
|
1357
|
+
case "end":
|
|
1358
|
+
return _context49.stop();
|
|
1580
1359
|
}
|
|
1581
1360
|
}, _callee49, this);
|
|
1582
1361
|
}));
|
|
@@ -1587,20 +1366,16 @@ export var ApiService = /*#__PURE__*/function () {
|
|
|
1587
1366
|
return __awaiter(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime.mark(function _callee50() {
|
|
1588
1367
|
var r;
|
|
1589
1368
|
return _regeneratorRuntime.wrap(function _callee50$(_context50) {
|
|
1590
|
-
while (1) {
|
|
1591
|
-
|
|
1592
|
-
|
|
1593
|
-
|
|
1594
|
-
|
|
1595
|
-
|
|
1596
|
-
|
|
1597
|
-
|
|
1598
|
-
|
|
1599
|
-
|
|
1600
|
-
case 4:
|
|
1601
|
-
case "end":
|
|
1602
|
-
return _context50.stop();
|
|
1603
|
-
}
|
|
1369
|
+
while (1) switch (_context50.prev = _context50.next) {
|
|
1370
|
+
case 0:
|
|
1371
|
+
_context50.next = 2;
|
|
1372
|
+
return this.send('PUT', '/organizations/' + organizationId + '/groups/' + id, request, true, true);
|
|
1373
|
+
case 2:
|
|
1374
|
+
r = _context50.sent;
|
|
1375
|
+
return _context50.abrupt("return", new GroupResponse(r));
|
|
1376
|
+
case 4:
|
|
1377
|
+
case "end":
|
|
1378
|
+
return _context50.stop();
|
|
1604
1379
|
}
|
|
1605
1380
|
}, _callee50, this);
|
|
1606
1381
|
}));
|
|
@@ -1610,16 +1385,13 @@ export var ApiService = /*#__PURE__*/function () {
|
|
|
1610
1385
|
value: function putGroupUsers(organizationId, id, request) {
|
|
1611
1386
|
return __awaiter(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime.mark(function _callee51() {
|
|
1612
1387
|
return _regeneratorRuntime.wrap(function _callee51$(_context51) {
|
|
1613
|
-
while (1) {
|
|
1614
|
-
|
|
1615
|
-
|
|
1616
|
-
|
|
1617
|
-
|
|
1618
|
-
|
|
1619
|
-
|
|
1620
|
-
case "end":
|
|
1621
|
-
return _context51.stop();
|
|
1622
|
-
}
|
|
1388
|
+
while (1) switch (_context51.prev = _context51.next) {
|
|
1389
|
+
case 0:
|
|
1390
|
+
_context51.next = 2;
|
|
1391
|
+
return this.send('PUT', '/organizations/' + organizationId + '/groups/' + id + '/users', request, true, false);
|
|
1392
|
+
case 2:
|
|
1393
|
+
case "end":
|
|
1394
|
+
return _context51.stop();
|
|
1623
1395
|
}
|
|
1624
1396
|
}, _callee51, this);
|
|
1625
1397
|
}));
|
|
@@ -1633,28 +1405,24 @@ export var ApiService = /*#__PURE__*/function () {
|
|
|
1633
1405
|
key: "deleteGroupUser",
|
|
1634
1406
|
value: function deleteGroupUser(organizationId, id, organizationUserId) {
|
|
1635
1407
|
return this.send('DELETE', '/organizations/' + organizationId + '/groups/' + id + '/user/' + organizationUserId, null, true, false);
|
|
1636
|
-
}
|
|
1637
|
-
|
|
1408
|
+
}
|
|
1409
|
+
// Policy APIs
|
|
1638
1410
|
}, {
|
|
1639
1411
|
key: "getPolicy",
|
|
1640
1412
|
value: function getPolicy(organizationId, type) {
|
|
1641
1413
|
return __awaiter(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime.mark(function _callee52() {
|
|
1642
1414
|
var r;
|
|
1643
1415
|
return _regeneratorRuntime.wrap(function _callee52$(_context52) {
|
|
1644
|
-
while (1) {
|
|
1645
|
-
|
|
1646
|
-
|
|
1647
|
-
|
|
1648
|
-
|
|
1649
|
-
|
|
1650
|
-
|
|
1651
|
-
|
|
1652
|
-
|
|
1653
|
-
|
|
1654
|
-
case 4:
|
|
1655
|
-
case "end":
|
|
1656
|
-
return _context52.stop();
|
|
1657
|
-
}
|
|
1416
|
+
while (1) switch (_context52.prev = _context52.next) {
|
|
1417
|
+
case 0:
|
|
1418
|
+
_context52.next = 2;
|
|
1419
|
+
return this.send('GET', '/organizations/' + organizationId + '/policies/' + type, null, true, true);
|
|
1420
|
+
case 2:
|
|
1421
|
+
r = _context52.sent;
|
|
1422
|
+
return _context52.abrupt("return", new PolicyResponse(r));
|
|
1423
|
+
case 4:
|
|
1424
|
+
case "end":
|
|
1425
|
+
return _context52.stop();
|
|
1658
1426
|
}
|
|
1659
1427
|
}, _callee52, this);
|
|
1660
1428
|
}));
|
|
@@ -1665,20 +1433,16 @@ export var ApiService = /*#__PURE__*/function () {
|
|
|
1665
1433
|
return __awaiter(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime.mark(function _callee53() {
|
|
1666
1434
|
var r;
|
|
1667
1435
|
return _regeneratorRuntime.wrap(function _callee53$(_context53) {
|
|
1668
|
-
while (1) {
|
|
1669
|
-
|
|
1670
|
-
|
|
1671
|
-
|
|
1672
|
-
|
|
1673
|
-
|
|
1674
|
-
|
|
1675
|
-
|
|
1676
|
-
|
|
1677
|
-
|
|
1678
|
-
case 4:
|
|
1679
|
-
case "end":
|
|
1680
|
-
return _context53.stop();
|
|
1681
|
-
}
|
|
1436
|
+
while (1) switch (_context53.prev = _context53.next) {
|
|
1437
|
+
case 0:
|
|
1438
|
+
_context53.next = 2;
|
|
1439
|
+
return this.send('GET', '/organizations/' + organizationId + '/policies', null, true, true);
|
|
1440
|
+
case 2:
|
|
1441
|
+
r = _context53.sent;
|
|
1442
|
+
return _context53.abrupt("return", new ListResponse(r, PolicyResponse));
|
|
1443
|
+
case 4:
|
|
1444
|
+
case "end":
|
|
1445
|
+
return _context53.stop();
|
|
1682
1446
|
}
|
|
1683
1447
|
}, _callee53, this);
|
|
1684
1448
|
}));
|
|
@@ -1689,20 +1453,16 @@ export var ApiService = /*#__PURE__*/function () {
|
|
|
1689
1453
|
return __awaiter(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime.mark(function _callee54() {
|
|
1690
1454
|
var r;
|
|
1691
1455
|
return _regeneratorRuntime.wrap(function _callee54$(_context54) {
|
|
1692
|
-
while (1) {
|
|
1693
|
-
|
|
1694
|
-
|
|
1695
|
-
|
|
1696
|
-
|
|
1697
|
-
|
|
1698
|
-
|
|
1699
|
-
|
|
1700
|
-
|
|
1701
|
-
|
|
1702
|
-
case 4:
|
|
1703
|
-
case "end":
|
|
1704
|
-
return _context54.stop();
|
|
1705
|
-
}
|
|
1456
|
+
while (1) switch (_context54.prev = _context54.next) {
|
|
1457
|
+
case 0:
|
|
1458
|
+
_context54.next = 2;
|
|
1459
|
+
return this.send('GET', '/organizations/' + organizationId + '/policies/token?' + 'token=' + encodeURIComponent(token) + '&email=' + encodeURIComponent(email) + '&organizationUserId=' + organizationUserId, null, false, true);
|
|
1460
|
+
case 2:
|
|
1461
|
+
r = _context54.sent;
|
|
1462
|
+
return _context54.abrupt("return", new ListResponse(r, PolicyResponse));
|
|
1463
|
+
case 4:
|
|
1464
|
+
case "end":
|
|
1465
|
+
return _context54.stop();
|
|
1706
1466
|
}
|
|
1707
1467
|
}, _callee54, this);
|
|
1708
1468
|
}));
|
|
@@ -1713,45 +1473,37 @@ export var ApiService = /*#__PURE__*/function () {
|
|
|
1713
1473
|
return __awaiter(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime.mark(function _callee55() {
|
|
1714
1474
|
var r;
|
|
1715
1475
|
return _regeneratorRuntime.wrap(function _callee55$(_context55) {
|
|
1716
|
-
while (1) {
|
|
1717
|
-
|
|
1718
|
-
|
|
1719
|
-
|
|
1720
|
-
|
|
1721
|
-
|
|
1722
|
-
|
|
1723
|
-
|
|
1724
|
-
|
|
1725
|
-
|
|
1726
|
-
case 4:
|
|
1727
|
-
case "end":
|
|
1728
|
-
return _context55.stop();
|
|
1729
|
-
}
|
|
1476
|
+
while (1) switch (_context55.prev = _context55.next) {
|
|
1477
|
+
case 0:
|
|
1478
|
+
_context55.next = 2;
|
|
1479
|
+
return this.send('PUT', '/organizations/' + organizationId + '/policies/' + type, request, true, true);
|
|
1480
|
+
case 2:
|
|
1481
|
+
r = _context55.sent;
|
|
1482
|
+
return _context55.abrupt("return", new PolicyResponse(r));
|
|
1483
|
+
case 4:
|
|
1484
|
+
case "end":
|
|
1485
|
+
return _context55.stop();
|
|
1730
1486
|
}
|
|
1731
1487
|
}, _callee55, this);
|
|
1732
1488
|
}));
|
|
1733
|
-
}
|
|
1734
|
-
|
|
1489
|
+
}
|
|
1490
|
+
// Organization User APIs
|
|
1735
1491
|
}, {
|
|
1736
1492
|
key: "getOrganizationUser",
|
|
1737
1493
|
value: function getOrganizationUser(organizationId, id) {
|
|
1738
1494
|
return __awaiter(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime.mark(function _callee56() {
|
|
1739
1495
|
var r;
|
|
1740
1496
|
return _regeneratorRuntime.wrap(function _callee56$(_context56) {
|
|
1741
|
-
while (1) {
|
|
1742
|
-
|
|
1743
|
-
|
|
1744
|
-
|
|
1745
|
-
|
|
1746
|
-
|
|
1747
|
-
|
|
1748
|
-
|
|
1749
|
-
|
|
1750
|
-
|
|
1751
|
-
case 4:
|
|
1752
|
-
case "end":
|
|
1753
|
-
return _context56.stop();
|
|
1754
|
-
}
|
|
1497
|
+
while (1) switch (_context56.prev = _context56.next) {
|
|
1498
|
+
case 0:
|
|
1499
|
+
_context56.next = 2;
|
|
1500
|
+
return this.send('GET', '/organizations/' + organizationId + '/users/' + id, null, true, true);
|
|
1501
|
+
case 2:
|
|
1502
|
+
r = _context56.sent;
|
|
1503
|
+
return _context56.abrupt("return", new OrganizationUserDetailsResponse(r));
|
|
1504
|
+
case 4:
|
|
1505
|
+
case "end":
|
|
1506
|
+
return _context56.stop();
|
|
1755
1507
|
}
|
|
1756
1508
|
}, _callee56, this);
|
|
1757
1509
|
}));
|
|
@@ -1762,20 +1514,16 @@ export var ApiService = /*#__PURE__*/function () {
|
|
|
1762
1514
|
return __awaiter(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime.mark(function _callee57() {
|
|
1763
1515
|
var r;
|
|
1764
1516
|
return _regeneratorRuntime.wrap(function _callee57$(_context57) {
|
|
1765
|
-
while (1) {
|
|
1766
|
-
|
|
1767
|
-
|
|
1768
|
-
|
|
1769
|
-
|
|
1770
|
-
|
|
1771
|
-
|
|
1772
|
-
|
|
1773
|
-
|
|
1774
|
-
|
|
1775
|
-
case 4:
|
|
1776
|
-
case "end":
|
|
1777
|
-
return _context57.stop();
|
|
1778
|
-
}
|
|
1517
|
+
while (1) switch (_context57.prev = _context57.next) {
|
|
1518
|
+
case 0:
|
|
1519
|
+
_context57.next = 2;
|
|
1520
|
+
return this.send('GET', '/organizations/' + organizationId + '/users/' + id + '/groups', null, true, true);
|
|
1521
|
+
case 2:
|
|
1522
|
+
r = _context57.sent;
|
|
1523
|
+
return _context57.abrupt("return", r);
|
|
1524
|
+
case 4:
|
|
1525
|
+
case "end":
|
|
1526
|
+
return _context57.stop();
|
|
1779
1527
|
}
|
|
1780
1528
|
}, _callee57, this);
|
|
1781
1529
|
}));
|
|
@@ -1786,20 +1534,16 @@ export var ApiService = /*#__PURE__*/function () {
|
|
|
1786
1534
|
return __awaiter(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime.mark(function _callee58() {
|
|
1787
1535
|
var r;
|
|
1788
1536
|
return _regeneratorRuntime.wrap(function _callee58$(_context58) {
|
|
1789
|
-
while (1) {
|
|
1790
|
-
|
|
1791
|
-
|
|
1792
|
-
|
|
1793
|
-
|
|
1794
|
-
|
|
1795
|
-
|
|
1796
|
-
|
|
1797
|
-
|
|
1798
|
-
|
|
1799
|
-
case 4:
|
|
1800
|
-
case "end":
|
|
1801
|
-
return _context58.stop();
|
|
1802
|
-
}
|
|
1537
|
+
while (1) switch (_context58.prev = _context58.next) {
|
|
1538
|
+
case 0:
|
|
1539
|
+
_context58.next = 2;
|
|
1540
|
+
return this.send('GET', '/organizations/' + organizationId + '/users', null, true, true);
|
|
1541
|
+
case 2:
|
|
1542
|
+
r = _context58.sent;
|
|
1543
|
+
return _context58.abrupt("return", new ListResponse(r, OrganizationUserUserDetailsResponse));
|
|
1544
|
+
case 4:
|
|
1545
|
+
case "end":
|
|
1546
|
+
return _context58.stop();
|
|
1803
1547
|
}
|
|
1804
1548
|
}, _callee58, this);
|
|
1805
1549
|
}));
|
|
@@ -1838,28 +1582,24 @@ export var ApiService = /*#__PURE__*/function () {
|
|
|
1838
1582
|
key: "deleteOrganizationUser",
|
|
1839
1583
|
value: function deleteOrganizationUser(organizationId, id) {
|
|
1840
1584
|
return this.send('DELETE', '/organizations/' + organizationId + '/users/' + id, null, true, false);
|
|
1841
|
-
}
|
|
1842
|
-
|
|
1585
|
+
}
|
|
1586
|
+
// Plan APIs
|
|
1843
1587
|
}, {
|
|
1844
1588
|
key: "getPlans",
|
|
1845
1589
|
value: function getPlans() {
|
|
1846
1590
|
return __awaiter(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime.mark(function _callee59() {
|
|
1847
1591
|
var r;
|
|
1848
1592
|
return _regeneratorRuntime.wrap(function _callee59$(_context59) {
|
|
1849
|
-
while (1) {
|
|
1850
|
-
|
|
1851
|
-
|
|
1852
|
-
|
|
1853
|
-
|
|
1854
|
-
|
|
1855
|
-
|
|
1856
|
-
|
|
1857
|
-
|
|
1858
|
-
|
|
1859
|
-
case 4:
|
|
1860
|
-
case "end":
|
|
1861
|
-
return _context59.stop();
|
|
1862
|
-
}
|
|
1593
|
+
while (1) switch (_context59.prev = _context59.next) {
|
|
1594
|
+
case 0:
|
|
1595
|
+
_context59.next = 2;
|
|
1596
|
+
return this.send('GET', '/plans/', null, true, true);
|
|
1597
|
+
case 2:
|
|
1598
|
+
r = _context59.sent;
|
|
1599
|
+
return _context59.abrupt("return", new ListResponse(r, PlanResponse));
|
|
1600
|
+
case 4:
|
|
1601
|
+
case "end":
|
|
1602
|
+
return _context59.stop();
|
|
1863
1603
|
}
|
|
1864
1604
|
}, _callee59, this);
|
|
1865
1605
|
}));
|
|
@@ -1869,40 +1609,33 @@ export var ApiService = /*#__PURE__*/function () {
|
|
|
1869
1609
|
value: function postImportDirectory(organizationId, request) {
|
|
1870
1610
|
return __awaiter(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime.mark(function _callee60() {
|
|
1871
1611
|
return _regeneratorRuntime.wrap(function _callee60$(_context60) {
|
|
1872
|
-
while (1) {
|
|
1873
|
-
|
|
1874
|
-
|
|
1875
|
-
|
|
1876
|
-
|
|
1877
|
-
|
|
1878
|
-
case "end":
|
|
1879
|
-
return _context60.stop();
|
|
1880
|
-
}
|
|
1612
|
+
while (1) switch (_context60.prev = _context60.next) {
|
|
1613
|
+
case 0:
|
|
1614
|
+
return _context60.abrupt("return", this.send('POST', '/organizations/' + organizationId + '/import', request, true, false));
|
|
1615
|
+
case 1:
|
|
1616
|
+
case "end":
|
|
1617
|
+
return _context60.stop();
|
|
1881
1618
|
}
|
|
1882
1619
|
}, _callee60, this);
|
|
1883
1620
|
}));
|
|
1884
|
-
}
|
|
1885
|
-
|
|
1621
|
+
}
|
|
1622
|
+
// Settings APIs
|
|
1886
1623
|
}, {
|
|
1887
1624
|
key: "getSettingsDomains",
|
|
1888
1625
|
value: function getSettingsDomains() {
|
|
1889
1626
|
return __awaiter(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime.mark(function _callee61() {
|
|
1890
1627
|
var r;
|
|
1891
1628
|
return _regeneratorRuntime.wrap(function _callee61$(_context61) {
|
|
1892
|
-
while (1) {
|
|
1893
|
-
|
|
1894
|
-
|
|
1895
|
-
|
|
1896
|
-
|
|
1897
|
-
|
|
1898
|
-
|
|
1899
|
-
|
|
1900
|
-
|
|
1901
|
-
|
|
1902
|
-
case 4:
|
|
1903
|
-
case "end":
|
|
1904
|
-
return _context61.stop();
|
|
1905
|
-
}
|
|
1629
|
+
while (1) switch (_context61.prev = _context61.next) {
|
|
1630
|
+
case 0:
|
|
1631
|
+
_context61.next = 2;
|
|
1632
|
+
return this.send('GET', '/settings/domains', null, true, true);
|
|
1633
|
+
case 2:
|
|
1634
|
+
r = _context61.sent;
|
|
1635
|
+
return _context61.abrupt("return", new DomainsResponse(r));
|
|
1636
|
+
case 4:
|
|
1637
|
+
case "end":
|
|
1638
|
+
return _context61.stop();
|
|
1906
1639
|
}
|
|
1907
1640
|
}, _callee61, this);
|
|
1908
1641
|
}));
|
|
@@ -1913,71 +1646,59 @@ export var ApiService = /*#__PURE__*/function () {
|
|
|
1913
1646
|
return __awaiter(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime.mark(function _callee62() {
|
|
1914
1647
|
var r;
|
|
1915
1648
|
return _regeneratorRuntime.wrap(function _callee62$(_context62) {
|
|
1916
|
-
while (1) {
|
|
1917
|
-
|
|
1918
|
-
|
|
1919
|
-
|
|
1920
|
-
|
|
1921
|
-
|
|
1922
|
-
|
|
1923
|
-
|
|
1924
|
-
|
|
1925
|
-
|
|
1926
|
-
case 4:
|
|
1927
|
-
case "end":
|
|
1928
|
-
return _context62.stop();
|
|
1929
|
-
}
|
|
1649
|
+
while (1) switch (_context62.prev = _context62.next) {
|
|
1650
|
+
case 0:
|
|
1651
|
+
_context62.next = 2;
|
|
1652
|
+
return this.send('PUT', '/settings/domains', request, true, true);
|
|
1653
|
+
case 2:
|
|
1654
|
+
r = _context62.sent;
|
|
1655
|
+
return _context62.abrupt("return", new DomainsResponse(r));
|
|
1656
|
+
case 4:
|
|
1657
|
+
case "end":
|
|
1658
|
+
return _context62.stop();
|
|
1930
1659
|
}
|
|
1931
1660
|
}, _callee62, this);
|
|
1932
1661
|
}));
|
|
1933
|
-
}
|
|
1934
|
-
|
|
1662
|
+
}
|
|
1663
|
+
// Sync APIs
|
|
1935
1664
|
}, {
|
|
1936
1665
|
key: "getSync",
|
|
1937
1666
|
value: function getSync() {
|
|
1938
1667
|
return __awaiter(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime.mark(function _callee63() {
|
|
1939
1668
|
var path, r;
|
|
1940
1669
|
return _regeneratorRuntime.wrap(function _callee63$(_context63) {
|
|
1941
|
-
while (1) {
|
|
1942
|
-
|
|
1943
|
-
|
|
1944
|
-
|
|
1945
|
-
|
|
1946
|
-
|
|
1947
|
-
|
|
1948
|
-
|
|
1949
|
-
|
|
1950
|
-
|
|
1951
|
-
|
|
1952
|
-
case 5:
|
|
1953
|
-
case "end":
|
|
1954
|
-
return _context63.stop();
|
|
1955
|
-
}
|
|
1670
|
+
while (1) switch (_context63.prev = _context63.next) {
|
|
1671
|
+
case 0:
|
|
1672
|
+
path = this.isDesktopClient || this.isWebClient ? '/sync?excludeDomains=true' : '/sync';
|
|
1673
|
+
_context63.next = 3;
|
|
1674
|
+
return this.send('GET', path, null, true, true);
|
|
1675
|
+
case 3:
|
|
1676
|
+
r = _context63.sent;
|
|
1677
|
+
return _context63.abrupt("return", new SyncResponse(r));
|
|
1678
|
+
case 5:
|
|
1679
|
+
case "end":
|
|
1680
|
+
return _context63.stop();
|
|
1956
1681
|
}
|
|
1957
1682
|
}, _callee63, this);
|
|
1958
1683
|
}));
|
|
1959
|
-
}
|
|
1960
|
-
|
|
1684
|
+
}
|
|
1685
|
+
// Two-factor APIs
|
|
1961
1686
|
}, {
|
|
1962
1687
|
key: "getTwoFactorProviders",
|
|
1963
1688
|
value: function getTwoFactorProviders() {
|
|
1964
1689
|
return __awaiter(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime.mark(function _callee64() {
|
|
1965
1690
|
var r;
|
|
1966
1691
|
return _regeneratorRuntime.wrap(function _callee64$(_context64) {
|
|
1967
|
-
while (1) {
|
|
1968
|
-
|
|
1969
|
-
|
|
1970
|
-
|
|
1971
|
-
|
|
1972
|
-
|
|
1973
|
-
|
|
1974
|
-
|
|
1975
|
-
|
|
1976
|
-
|
|
1977
|
-
case 4:
|
|
1978
|
-
case "end":
|
|
1979
|
-
return _context64.stop();
|
|
1980
|
-
}
|
|
1692
|
+
while (1) switch (_context64.prev = _context64.next) {
|
|
1693
|
+
case 0:
|
|
1694
|
+
_context64.next = 2;
|
|
1695
|
+
return this.send('GET', '/two-factor', null, true, true);
|
|
1696
|
+
case 2:
|
|
1697
|
+
r = _context64.sent;
|
|
1698
|
+
return _context64.abrupt("return", new ListResponse(r, TwoFactorProviderResponse));
|
|
1699
|
+
case 4:
|
|
1700
|
+
case "end":
|
|
1701
|
+
return _context64.stop();
|
|
1981
1702
|
}
|
|
1982
1703
|
}, _callee64, this);
|
|
1983
1704
|
}));
|
|
@@ -1988,20 +1709,16 @@ export var ApiService = /*#__PURE__*/function () {
|
|
|
1988
1709
|
return __awaiter(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime.mark(function _callee65() {
|
|
1989
1710
|
var r;
|
|
1990
1711
|
return _regeneratorRuntime.wrap(function _callee65$(_context65) {
|
|
1991
|
-
while (1) {
|
|
1992
|
-
|
|
1993
|
-
|
|
1994
|
-
|
|
1995
|
-
|
|
1996
|
-
|
|
1997
|
-
|
|
1998
|
-
|
|
1999
|
-
|
|
2000
|
-
|
|
2001
|
-
case 4:
|
|
2002
|
-
case "end":
|
|
2003
|
-
return _context65.stop();
|
|
2004
|
-
}
|
|
1712
|
+
while (1) switch (_context65.prev = _context65.next) {
|
|
1713
|
+
case 0:
|
|
1714
|
+
_context65.next = 2;
|
|
1715
|
+
return this.send('GET', '/organizations/' + organizationId + '/two-factor', null, true, true);
|
|
1716
|
+
case 2:
|
|
1717
|
+
r = _context65.sent;
|
|
1718
|
+
return _context65.abrupt("return", new ListResponse(r, TwoFactorProviderResponse));
|
|
1719
|
+
case 4:
|
|
1720
|
+
case "end":
|
|
1721
|
+
return _context65.stop();
|
|
2005
1722
|
}
|
|
2006
1723
|
}, _callee65, this);
|
|
2007
1724
|
}));
|
|
@@ -2012,20 +1729,16 @@ export var ApiService = /*#__PURE__*/function () {
|
|
|
2012
1729
|
return __awaiter(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime.mark(function _callee66() {
|
|
2013
1730
|
var r;
|
|
2014
1731
|
return _regeneratorRuntime.wrap(function _callee66$(_context66) {
|
|
2015
|
-
while (1) {
|
|
2016
|
-
|
|
2017
|
-
|
|
2018
|
-
|
|
2019
|
-
|
|
2020
|
-
|
|
2021
|
-
|
|
2022
|
-
|
|
2023
|
-
|
|
2024
|
-
|
|
2025
|
-
case 4:
|
|
2026
|
-
case "end":
|
|
2027
|
-
return _context66.stop();
|
|
2028
|
-
}
|
|
1732
|
+
while (1) switch (_context66.prev = _context66.next) {
|
|
1733
|
+
case 0:
|
|
1734
|
+
_context66.next = 2;
|
|
1735
|
+
return this.send('POST', '/two-factor/get-authenticator', request, true, true);
|
|
1736
|
+
case 2:
|
|
1737
|
+
r = _context66.sent;
|
|
1738
|
+
return _context66.abrupt("return", new TwoFactorAuthenticatorResponse(r));
|
|
1739
|
+
case 4:
|
|
1740
|
+
case "end":
|
|
1741
|
+
return _context66.stop();
|
|
2029
1742
|
}
|
|
2030
1743
|
}, _callee66, this);
|
|
2031
1744
|
}));
|
|
@@ -2036,20 +1749,16 @@ export var ApiService = /*#__PURE__*/function () {
|
|
|
2036
1749
|
return __awaiter(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime.mark(function _callee67() {
|
|
2037
1750
|
var r;
|
|
2038
1751
|
return _regeneratorRuntime.wrap(function _callee67$(_context67) {
|
|
2039
|
-
while (1) {
|
|
2040
|
-
|
|
2041
|
-
|
|
2042
|
-
|
|
2043
|
-
|
|
2044
|
-
|
|
2045
|
-
|
|
2046
|
-
|
|
2047
|
-
|
|
2048
|
-
|
|
2049
|
-
case 4:
|
|
2050
|
-
case "end":
|
|
2051
|
-
return _context67.stop();
|
|
2052
|
-
}
|
|
1752
|
+
while (1) switch (_context67.prev = _context67.next) {
|
|
1753
|
+
case 0:
|
|
1754
|
+
_context67.next = 2;
|
|
1755
|
+
return this.send('POST', '/two-factor/get-email', request, true, true);
|
|
1756
|
+
case 2:
|
|
1757
|
+
r = _context67.sent;
|
|
1758
|
+
return _context67.abrupt("return", new TwoFactorEmailResponse(r));
|
|
1759
|
+
case 4:
|
|
1760
|
+
case "end":
|
|
1761
|
+
return _context67.stop();
|
|
2053
1762
|
}
|
|
2054
1763
|
}, _callee67, this);
|
|
2055
1764
|
}));
|
|
@@ -2060,20 +1769,16 @@ export var ApiService = /*#__PURE__*/function () {
|
|
|
2060
1769
|
return __awaiter(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime.mark(function _callee68() {
|
|
2061
1770
|
var r;
|
|
2062
1771
|
return _regeneratorRuntime.wrap(function _callee68$(_context68) {
|
|
2063
|
-
while (1) {
|
|
2064
|
-
|
|
2065
|
-
|
|
2066
|
-
|
|
2067
|
-
|
|
2068
|
-
|
|
2069
|
-
|
|
2070
|
-
|
|
2071
|
-
|
|
2072
|
-
|
|
2073
|
-
case 4:
|
|
2074
|
-
case "end":
|
|
2075
|
-
return _context68.stop();
|
|
2076
|
-
}
|
|
1772
|
+
while (1) switch (_context68.prev = _context68.next) {
|
|
1773
|
+
case 0:
|
|
1774
|
+
_context68.next = 2;
|
|
1775
|
+
return this.send('POST', '/two-factor/get-duo', request, true, true);
|
|
1776
|
+
case 2:
|
|
1777
|
+
r = _context68.sent;
|
|
1778
|
+
return _context68.abrupt("return", new TwoFactorDuoResponse(r));
|
|
1779
|
+
case 4:
|
|
1780
|
+
case "end":
|
|
1781
|
+
return _context68.stop();
|
|
2077
1782
|
}
|
|
2078
1783
|
}, _callee68, this);
|
|
2079
1784
|
}));
|
|
@@ -2084,20 +1789,16 @@ export var ApiService = /*#__PURE__*/function () {
|
|
|
2084
1789
|
return __awaiter(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime.mark(function _callee69() {
|
|
2085
1790
|
var r;
|
|
2086
1791
|
return _regeneratorRuntime.wrap(function _callee69$(_context69) {
|
|
2087
|
-
while (1) {
|
|
2088
|
-
|
|
2089
|
-
|
|
2090
|
-
|
|
2091
|
-
|
|
2092
|
-
|
|
2093
|
-
|
|
2094
|
-
|
|
2095
|
-
|
|
2096
|
-
|
|
2097
|
-
case 4:
|
|
2098
|
-
case "end":
|
|
2099
|
-
return _context69.stop();
|
|
2100
|
-
}
|
|
1792
|
+
while (1) switch (_context69.prev = _context69.next) {
|
|
1793
|
+
case 0:
|
|
1794
|
+
_context69.next = 2;
|
|
1795
|
+
return this.send('POST', '/organizations/' + organizationId + '/two-factor/get-duo', request, true, true);
|
|
1796
|
+
case 2:
|
|
1797
|
+
r = _context69.sent;
|
|
1798
|
+
return _context69.abrupt("return", new TwoFactorDuoResponse(r));
|
|
1799
|
+
case 4:
|
|
1800
|
+
case "end":
|
|
1801
|
+
return _context69.stop();
|
|
2101
1802
|
}
|
|
2102
1803
|
}, _callee69, this);
|
|
2103
1804
|
}));
|
|
@@ -2108,20 +1809,16 @@ export var ApiService = /*#__PURE__*/function () {
|
|
|
2108
1809
|
return __awaiter(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime.mark(function _callee70() {
|
|
2109
1810
|
var r;
|
|
2110
1811
|
return _regeneratorRuntime.wrap(function _callee70$(_context70) {
|
|
2111
|
-
while (1) {
|
|
2112
|
-
|
|
2113
|
-
|
|
2114
|
-
|
|
2115
|
-
|
|
2116
|
-
|
|
2117
|
-
|
|
2118
|
-
|
|
2119
|
-
|
|
2120
|
-
|
|
2121
|
-
case 4:
|
|
2122
|
-
case "end":
|
|
2123
|
-
return _context70.stop();
|
|
2124
|
-
}
|
|
1812
|
+
while (1) switch (_context70.prev = _context70.next) {
|
|
1813
|
+
case 0:
|
|
1814
|
+
_context70.next = 2;
|
|
1815
|
+
return this.send('POST', '/two-factor/get-yubikey', request, true, true);
|
|
1816
|
+
case 2:
|
|
1817
|
+
r = _context70.sent;
|
|
1818
|
+
return _context70.abrupt("return", new TwoFactorYubiKeyResponse(r));
|
|
1819
|
+
case 4:
|
|
1820
|
+
case "end":
|
|
1821
|
+
return _context70.stop();
|
|
2125
1822
|
}
|
|
2126
1823
|
}, _callee70, this);
|
|
2127
1824
|
}));
|
|
@@ -2132,20 +1829,16 @@ export var ApiService = /*#__PURE__*/function () {
|
|
|
2132
1829
|
return __awaiter(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime.mark(function _callee71() {
|
|
2133
1830
|
var r;
|
|
2134
1831
|
return _regeneratorRuntime.wrap(function _callee71$(_context71) {
|
|
2135
|
-
while (1) {
|
|
2136
|
-
|
|
2137
|
-
|
|
2138
|
-
|
|
2139
|
-
|
|
2140
|
-
|
|
2141
|
-
|
|
2142
|
-
|
|
2143
|
-
|
|
2144
|
-
|
|
2145
|
-
case 4:
|
|
2146
|
-
case "end":
|
|
2147
|
-
return _context71.stop();
|
|
2148
|
-
}
|
|
1832
|
+
while (1) switch (_context71.prev = _context71.next) {
|
|
1833
|
+
case 0:
|
|
1834
|
+
_context71.next = 2;
|
|
1835
|
+
return this.send('POST', '/two-factor/get-u2f', request, true, true);
|
|
1836
|
+
case 2:
|
|
1837
|
+
r = _context71.sent;
|
|
1838
|
+
return _context71.abrupt("return", new TwoFactorU2fResponse(r));
|
|
1839
|
+
case 4:
|
|
1840
|
+
case "end":
|
|
1841
|
+
return _context71.stop();
|
|
2149
1842
|
}
|
|
2150
1843
|
}, _callee71, this);
|
|
2151
1844
|
}));
|
|
@@ -2156,20 +1849,16 @@ export var ApiService = /*#__PURE__*/function () {
|
|
|
2156
1849
|
return __awaiter(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime.mark(function _callee72() {
|
|
2157
1850
|
var r;
|
|
2158
1851
|
return _regeneratorRuntime.wrap(function _callee72$(_context72) {
|
|
2159
|
-
while (1) {
|
|
2160
|
-
|
|
2161
|
-
|
|
2162
|
-
|
|
2163
|
-
|
|
2164
|
-
|
|
2165
|
-
|
|
2166
|
-
|
|
2167
|
-
|
|
2168
|
-
|
|
2169
|
-
case 4:
|
|
2170
|
-
case "end":
|
|
2171
|
-
return _context72.stop();
|
|
2172
|
-
}
|
|
1852
|
+
while (1) switch (_context72.prev = _context72.next) {
|
|
1853
|
+
case 0:
|
|
1854
|
+
_context72.next = 2;
|
|
1855
|
+
return this.send('POST', '/two-factor/get-u2f-challenge', request, true, true);
|
|
1856
|
+
case 2:
|
|
1857
|
+
r = _context72.sent;
|
|
1858
|
+
return _context72.abrupt("return", new ChallengeResponse(r));
|
|
1859
|
+
case 4:
|
|
1860
|
+
case "end":
|
|
1861
|
+
return _context72.stop();
|
|
2173
1862
|
}
|
|
2174
1863
|
}, _callee72, this);
|
|
2175
1864
|
}));
|
|
@@ -2180,20 +1869,16 @@ export var ApiService = /*#__PURE__*/function () {
|
|
|
2180
1869
|
return __awaiter(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime.mark(function _callee73() {
|
|
2181
1870
|
var r;
|
|
2182
1871
|
return _regeneratorRuntime.wrap(function _callee73$(_context73) {
|
|
2183
|
-
while (1) {
|
|
2184
|
-
|
|
2185
|
-
|
|
2186
|
-
|
|
2187
|
-
|
|
2188
|
-
|
|
2189
|
-
|
|
2190
|
-
|
|
2191
|
-
|
|
2192
|
-
|
|
2193
|
-
case 4:
|
|
2194
|
-
case "end":
|
|
2195
|
-
return _context73.stop();
|
|
2196
|
-
}
|
|
1872
|
+
while (1) switch (_context73.prev = _context73.next) {
|
|
1873
|
+
case 0:
|
|
1874
|
+
_context73.next = 2;
|
|
1875
|
+
return this.send('POST', '/two-factor/get-recover', request, true, true);
|
|
1876
|
+
case 2:
|
|
1877
|
+
r = _context73.sent;
|
|
1878
|
+
return _context73.abrupt("return", new TwoFactorRecoverResponse(r));
|
|
1879
|
+
case 4:
|
|
1880
|
+
case "end":
|
|
1881
|
+
return _context73.stop();
|
|
2197
1882
|
}
|
|
2198
1883
|
}, _callee73, this);
|
|
2199
1884
|
}));
|
|
@@ -2204,20 +1889,16 @@ export var ApiService = /*#__PURE__*/function () {
|
|
|
2204
1889
|
return __awaiter(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime.mark(function _callee74() {
|
|
2205
1890
|
var r;
|
|
2206
1891
|
return _regeneratorRuntime.wrap(function _callee74$(_context74) {
|
|
2207
|
-
while (1) {
|
|
2208
|
-
|
|
2209
|
-
|
|
2210
|
-
|
|
2211
|
-
|
|
2212
|
-
|
|
2213
|
-
|
|
2214
|
-
|
|
2215
|
-
|
|
2216
|
-
|
|
2217
|
-
case 4:
|
|
2218
|
-
case "end":
|
|
2219
|
-
return _context74.stop();
|
|
2220
|
-
}
|
|
1892
|
+
while (1) switch (_context74.prev = _context74.next) {
|
|
1893
|
+
case 0:
|
|
1894
|
+
_context74.next = 2;
|
|
1895
|
+
return this.send('PUT', '/two-factor/authenticator', request, true, true);
|
|
1896
|
+
case 2:
|
|
1897
|
+
r = _context74.sent;
|
|
1898
|
+
return _context74.abrupt("return", new TwoFactorAuthenticatorResponse(r));
|
|
1899
|
+
case 4:
|
|
1900
|
+
case "end":
|
|
1901
|
+
return _context74.stop();
|
|
2221
1902
|
}
|
|
2222
1903
|
}, _callee74, this);
|
|
2223
1904
|
}));
|
|
@@ -2228,20 +1909,16 @@ export var ApiService = /*#__PURE__*/function () {
|
|
|
2228
1909
|
return __awaiter(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime.mark(function _callee75() {
|
|
2229
1910
|
var r;
|
|
2230
1911
|
return _regeneratorRuntime.wrap(function _callee75$(_context75) {
|
|
2231
|
-
while (1) {
|
|
2232
|
-
|
|
2233
|
-
|
|
2234
|
-
|
|
2235
|
-
|
|
2236
|
-
|
|
2237
|
-
|
|
2238
|
-
|
|
2239
|
-
|
|
2240
|
-
|
|
2241
|
-
case 4:
|
|
2242
|
-
case "end":
|
|
2243
|
-
return _context75.stop();
|
|
2244
|
-
}
|
|
1912
|
+
while (1) switch (_context75.prev = _context75.next) {
|
|
1913
|
+
case 0:
|
|
1914
|
+
_context75.next = 2;
|
|
1915
|
+
return this.send('PUT', '/two-factor/email', request, true, true);
|
|
1916
|
+
case 2:
|
|
1917
|
+
r = _context75.sent;
|
|
1918
|
+
return _context75.abrupt("return", new TwoFactorEmailResponse(r));
|
|
1919
|
+
case 4:
|
|
1920
|
+
case "end":
|
|
1921
|
+
return _context75.stop();
|
|
2245
1922
|
}
|
|
2246
1923
|
}, _callee75, this);
|
|
2247
1924
|
}));
|
|
@@ -2252,20 +1929,16 @@ export var ApiService = /*#__PURE__*/function () {
|
|
|
2252
1929
|
return __awaiter(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime.mark(function _callee76() {
|
|
2253
1930
|
var r;
|
|
2254
1931
|
return _regeneratorRuntime.wrap(function _callee76$(_context76) {
|
|
2255
|
-
while (1) {
|
|
2256
|
-
|
|
2257
|
-
|
|
2258
|
-
|
|
2259
|
-
|
|
2260
|
-
|
|
2261
|
-
|
|
2262
|
-
|
|
2263
|
-
|
|
2264
|
-
|
|
2265
|
-
case 4:
|
|
2266
|
-
case "end":
|
|
2267
|
-
return _context76.stop();
|
|
2268
|
-
}
|
|
1932
|
+
while (1) switch (_context76.prev = _context76.next) {
|
|
1933
|
+
case 0:
|
|
1934
|
+
_context76.next = 2;
|
|
1935
|
+
return this.send('PUT', '/two-factor/duo', request, true, true);
|
|
1936
|
+
case 2:
|
|
1937
|
+
r = _context76.sent;
|
|
1938
|
+
return _context76.abrupt("return", new TwoFactorDuoResponse(r));
|
|
1939
|
+
case 4:
|
|
1940
|
+
case "end":
|
|
1941
|
+
return _context76.stop();
|
|
2269
1942
|
}
|
|
2270
1943
|
}, _callee76, this);
|
|
2271
1944
|
}));
|
|
@@ -2276,20 +1949,16 @@ export var ApiService = /*#__PURE__*/function () {
|
|
|
2276
1949
|
return __awaiter(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime.mark(function _callee77() {
|
|
2277
1950
|
var r;
|
|
2278
1951
|
return _regeneratorRuntime.wrap(function _callee77$(_context77) {
|
|
2279
|
-
while (1) {
|
|
2280
|
-
|
|
2281
|
-
|
|
2282
|
-
|
|
2283
|
-
|
|
2284
|
-
|
|
2285
|
-
|
|
2286
|
-
|
|
2287
|
-
|
|
2288
|
-
|
|
2289
|
-
case 4:
|
|
2290
|
-
case "end":
|
|
2291
|
-
return _context77.stop();
|
|
2292
|
-
}
|
|
1952
|
+
while (1) switch (_context77.prev = _context77.next) {
|
|
1953
|
+
case 0:
|
|
1954
|
+
_context77.next = 2;
|
|
1955
|
+
return this.send('PUT', '/organizations/' + organizationId + '/two-factor/duo', request, true, true);
|
|
1956
|
+
case 2:
|
|
1957
|
+
r = _context77.sent;
|
|
1958
|
+
return _context77.abrupt("return", new TwoFactorDuoResponse(r));
|
|
1959
|
+
case 4:
|
|
1960
|
+
case "end":
|
|
1961
|
+
return _context77.stop();
|
|
2293
1962
|
}
|
|
2294
1963
|
}, _callee77, this);
|
|
2295
1964
|
}));
|
|
@@ -2300,20 +1969,16 @@ export var ApiService = /*#__PURE__*/function () {
|
|
|
2300
1969
|
return __awaiter(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime.mark(function _callee78() {
|
|
2301
1970
|
var r;
|
|
2302
1971
|
return _regeneratorRuntime.wrap(function _callee78$(_context78) {
|
|
2303
|
-
while (1) {
|
|
2304
|
-
|
|
2305
|
-
|
|
2306
|
-
|
|
2307
|
-
|
|
2308
|
-
|
|
2309
|
-
|
|
2310
|
-
|
|
2311
|
-
|
|
2312
|
-
|
|
2313
|
-
case 4:
|
|
2314
|
-
case "end":
|
|
2315
|
-
return _context78.stop();
|
|
2316
|
-
}
|
|
1972
|
+
while (1) switch (_context78.prev = _context78.next) {
|
|
1973
|
+
case 0:
|
|
1974
|
+
_context78.next = 2;
|
|
1975
|
+
return this.send('PUT', '/two-factor/yubikey', request, true, true);
|
|
1976
|
+
case 2:
|
|
1977
|
+
r = _context78.sent;
|
|
1978
|
+
return _context78.abrupt("return", new TwoFactorYubiKeyResponse(r));
|
|
1979
|
+
case 4:
|
|
1980
|
+
case "end":
|
|
1981
|
+
return _context78.stop();
|
|
2317
1982
|
}
|
|
2318
1983
|
}, _callee78, this);
|
|
2319
1984
|
}));
|
|
@@ -2324,20 +1989,16 @@ export var ApiService = /*#__PURE__*/function () {
|
|
|
2324
1989
|
return __awaiter(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime.mark(function _callee79() {
|
|
2325
1990
|
var r;
|
|
2326
1991
|
return _regeneratorRuntime.wrap(function _callee79$(_context79) {
|
|
2327
|
-
while (1) {
|
|
2328
|
-
|
|
2329
|
-
|
|
2330
|
-
|
|
2331
|
-
|
|
2332
|
-
|
|
2333
|
-
|
|
2334
|
-
|
|
2335
|
-
|
|
2336
|
-
|
|
2337
|
-
case 4:
|
|
2338
|
-
case "end":
|
|
2339
|
-
return _context79.stop();
|
|
2340
|
-
}
|
|
1992
|
+
while (1) switch (_context79.prev = _context79.next) {
|
|
1993
|
+
case 0:
|
|
1994
|
+
_context79.next = 2;
|
|
1995
|
+
return this.send('PUT', '/two-factor/u2f', request, true, true);
|
|
1996
|
+
case 2:
|
|
1997
|
+
r = _context79.sent;
|
|
1998
|
+
return _context79.abrupt("return", new TwoFactorU2fResponse(r));
|
|
1999
|
+
case 4:
|
|
2000
|
+
case "end":
|
|
2001
|
+
return _context79.stop();
|
|
2341
2002
|
}
|
|
2342
2003
|
}, _callee79, this);
|
|
2343
2004
|
}));
|
|
@@ -2348,20 +2009,16 @@ export var ApiService = /*#__PURE__*/function () {
|
|
|
2348
2009
|
return __awaiter(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime.mark(function _callee80() {
|
|
2349
2010
|
var r;
|
|
2350
2011
|
return _regeneratorRuntime.wrap(function _callee80$(_context80) {
|
|
2351
|
-
while (1) {
|
|
2352
|
-
|
|
2353
|
-
|
|
2354
|
-
|
|
2355
|
-
|
|
2356
|
-
|
|
2357
|
-
|
|
2358
|
-
|
|
2359
|
-
|
|
2360
|
-
|
|
2361
|
-
case 4:
|
|
2362
|
-
case "end":
|
|
2363
|
-
return _context80.stop();
|
|
2364
|
-
}
|
|
2012
|
+
while (1) switch (_context80.prev = _context80.next) {
|
|
2013
|
+
case 0:
|
|
2014
|
+
_context80.next = 2;
|
|
2015
|
+
return this.send('DELETE', '/two-factor/u2f', request, true, true);
|
|
2016
|
+
case 2:
|
|
2017
|
+
r = _context80.sent;
|
|
2018
|
+
return _context80.abrupt("return", new TwoFactorU2fResponse(r));
|
|
2019
|
+
case 4:
|
|
2020
|
+
case "end":
|
|
2021
|
+
return _context80.stop();
|
|
2365
2022
|
}
|
|
2366
2023
|
}, _callee80, this);
|
|
2367
2024
|
}));
|
|
@@ -2372,20 +2029,16 @@ export var ApiService = /*#__PURE__*/function () {
|
|
|
2372
2029
|
return __awaiter(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime.mark(function _callee81() {
|
|
2373
2030
|
var r;
|
|
2374
2031
|
return _regeneratorRuntime.wrap(function _callee81$(_context81) {
|
|
2375
|
-
while (1) {
|
|
2376
|
-
|
|
2377
|
-
|
|
2378
|
-
|
|
2379
|
-
|
|
2380
|
-
|
|
2381
|
-
|
|
2382
|
-
|
|
2383
|
-
|
|
2384
|
-
|
|
2385
|
-
case 4:
|
|
2386
|
-
case "end":
|
|
2387
|
-
return _context81.stop();
|
|
2388
|
-
}
|
|
2032
|
+
while (1) switch (_context81.prev = _context81.next) {
|
|
2033
|
+
case 0:
|
|
2034
|
+
_context81.next = 2;
|
|
2035
|
+
return this.send('PUT', '/two-factor/disable', request, true, true);
|
|
2036
|
+
case 2:
|
|
2037
|
+
r = _context81.sent;
|
|
2038
|
+
return _context81.abrupt("return", new TwoFactorProviderResponse(r));
|
|
2039
|
+
case 4:
|
|
2040
|
+
case "end":
|
|
2041
|
+
return _context81.stop();
|
|
2389
2042
|
}
|
|
2390
2043
|
}, _callee81, this);
|
|
2391
2044
|
}));
|
|
@@ -2396,20 +2049,16 @@ export var ApiService = /*#__PURE__*/function () {
|
|
|
2396
2049
|
return __awaiter(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime.mark(function _callee82() {
|
|
2397
2050
|
var r;
|
|
2398
2051
|
return _regeneratorRuntime.wrap(function _callee82$(_context82) {
|
|
2399
|
-
while (1) {
|
|
2400
|
-
|
|
2401
|
-
|
|
2402
|
-
|
|
2403
|
-
|
|
2404
|
-
|
|
2405
|
-
|
|
2406
|
-
|
|
2407
|
-
|
|
2408
|
-
|
|
2409
|
-
case 4:
|
|
2410
|
-
case "end":
|
|
2411
|
-
return _context82.stop();
|
|
2412
|
-
}
|
|
2052
|
+
while (1) switch (_context82.prev = _context82.next) {
|
|
2053
|
+
case 0:
|
|
2054
|
+
_context82.next = 2;
|
|
2055
|
+
return this.send('PUT', '/organizations/' + organizationId + '/two-factor/disable', request, true, true);
|
|
2056
|
+
case 2:
|
|
2057
|
+
r = _context82.sent;
|
|
2058
|
+
return _context82.abrupt("return", new TwoFactorProviderResponse(r));
|
|
2059
|
+
case 4:
|
|
2060
|
+
case "end":
|
|
2061
|
+
return _context82.stop();
|
|
2413
2062
|
}
|
|
2414
2063
|
}, _callee82, this);
|
|
2415
2064
|
}));
|
|
@@ -2428,28 +2077,24 @@ export var ApiService = /*#__PURE__*/function () {
|
|
|
2428
2077
|
key: "postTwoFactorEmail",
|
|
2429
2078
|
value: function postTwoFactorEmail(request) {
|
|
2430
2079
|
return this.send('POST', '/two-factor/send-email-login', request, false, false);
|
|
2431
|
-
}
|
|
2432
|
-
|
|
2080
|
+
}
|
|
2081
|
+
// Organization APIs
|
|
2433
2082
|
}, {
|
|
2434
2083
|
key: "getOrganization",
|
|
2435
2084
|
value: function getOrganization(id) {
|
|
2436
2085
|
return __awaiter(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime.mark(function _callee83() {
|
|
2437
2086
|
var r;
|
|
2438
2087
|
return _regeneratorRuntime.wrap(function _callee83$(_context83) {
|
|
2439
|
-
while (1) {
|
|
2440
|
-
|
|
2441
|
-
|
|
2442
|
-
|
|
2443
|
-
|
|
2444
|
-
|
|
2445
|
-
|
|
2446
|
-
|
|
2447
|
-
|
|
2448
|
-
|
|
2449
|
-
case 4:
|
|
2450
|
-
case "end":
|
|
2451
|
-
return _context83.stop();
|
|
2452
|
-
}
|
|
2088
|
+
while (1) switch (_context83.prev = _context83.next) {
|
|
2089
|
+
case 0:
|
|
2090
|
+
_context83.next = 2;
|
|
2091
|
+
return this.send('GET', '/organizations/' + id, null, true, true);
|
|
2092
|
+
case 2:
|
|
2093
|
+
r = _context83.sent;
|
|
2094
|
+
return _context83.abrupt("return", new OrganizationResponse(r));
|
|
2095
|
+
case 4:
|
|
2096
|
+
case "end":
|
|
2097
|
+
return _context83.stop();
|
|
2453
2098
|
}
|
|
2454
2099
|
}, _callee83, this);
|
|
2455
2100
|
}));
|
|
@@ -2460,20 +2105,16 @@ export var ApiService = /*#__PURE__*/function () {
|
|
|
2460
2105
|
return __awaiter(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime.mark(function _callee84() {
|
|
2461
2106
|
var r;
|
|
2462
2107
|
return _regeneratorRuntime.wrap(function _callee84$(_context84) {
|
|
2463
|
-
while (1) {
|
|
2464
|
-
|
|
2465
|
-
|
|
2466
|
-
|
|
2467
|
-
|
|
2468
|
-
|
|
2469
|
-
|
|
2470
|
-
|
|
2471
|
-
|
|
2472
|
-
|
|
2473
|
-
case 4:
|
|
2474
|
-
case "end":
|
|
2475
|
-
return _context84.stop();
|
|
2476
|
-
}
|
|
2108
|
+
while (1) switch (_context84.prev = _context84.next) {
|
|
2109
|
+
case 0:
|
|
2110
|
+
_context84.next = 2;
|
|
2111
|
+
return this.send('GET', '/organizations/' + id + '/billing', null, true, true);
|
|
2112
|
+
case 2:
|
|
2113
|
+
r = _context84.sent;
|
|
2114
|
+
return _context84.abrupt("return", new BillingResponse(r));
|
|
2115
|
+
case 4:
|
|
2116
|
+
case "end":
|
|
2117
|
+
return _context84.stop();
|
|
2477
2118
|
}
|
|
2478
2119
|
}, _callee84, this);
|
|
2479
2120
|
}));
|
|
@@ -2484,20 +2125,16 @@ export var ApiService = /*#__PURE__*/function () {
|
|
|
2484
2125
|
return __awaiter(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime.mark(function _callee85() {
|
|
2485
2126
|
var r;
|
|
2486
2127
|
return _regeneratorRuntime.wrap(function _callee85$(_context85) {
|
|
2487
|
-
while (1) {
|
|
2488
|
-
|
|
2489
|
-
|
|
2490
|
-
|
|
2491
|
-
|
|
2492
|
-
|
|
2493
|
-
|
|
2494
|
-
|
|
2495
|
-
|
|
2496
|
-
|
|
2497
|
-
case 4:
|
|
2498
|
-
case "end":
|
|
2499
|
-
return _context85.stop();
|
|
2500
|
-
}
|
|
2128
|
+
while (1) switch (_context85.prev = _context85.next) {
|
|
2129
|
+
case 0:
|
|
2130
|
+
_context85.next = 2;
|
|
2131
|
+
return this.send('GET', '/organizations/' + id + '/subscription', null, true, true);
|
|
2132
|
+
case 2:
|
|
2133
|
+
r = _context85.sent;
|
|
2134
|
+
return _context85.abrupt("return", new OrganizationSubscriptionResponse(r));
|
|
2135
|
+
case 4:
|
|
2136
|
+
case "end":
|
|
2137
|
+
return _context85.stop();
|
|
2501
2138
|
}
|
|
2502
2139
|
}, _callee85, this);
|
|
2503
2140
|
}));
|
|
@@ -2507,15 +2144,12 @@ export var ApiService = /*#__PURE__*/function () {
|
|
|
2507
2144
|
value: function getOrganizationLicense(id, installationId) {
|
|
2508
2145
|
return __awaiter(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime.mark(function _callee86() {
|
|
2509
2146
|
return _regeneratorRuntime.wrap(function _callee86$(_context86) {
|
|
2510
|
-
while (1) {
|
|
2511
|
-
|
|
2512
|
-
|
|
2513
|
-
|
|
2514
|
-
|
|
2515
|
-
|
|
2516
|
-
case "end":
|
|
2517
|
-
return _context86.stop();
|
|
2518
|
-
}
|
|
2147
|
+
while (1) switch (_context86.prev = _context86.next) {
|
|
2148
|
+
case 0:
|
|
2149
|
+
return _context86.abrupt("return", this.send('GET', '/organizations/' + id + '/license?installationId=' + installationId, null, true, true));
|
|
2150
|
+
case 1:
|
|
2151
|
+
case "end":
|
|
2152
|
+
return _context86.stop();
|
|
2519
2153
|
}
|
|
2520
2154
|
}, _callee86, this);
|
|
2521
2155
|
}));
|
|
@@ -2526,20 +2160,16 @@ export var ApiService = /*#__PURE__*/function () {
|
|
|
2526
2160
|
return __awaiter(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime.mark(function _callee87() {
|
|
2527
2161
|
var r;
|
|
2528
2162
|
return _regeneratorRuntime.wrap(function _callee87$(_context87) {
|
|
2529
|
-
while (1) {
|
|
2530
|
-
|
|
2531
|
-
|
|
2532
|
-
|
|
2533
|
-
|
|
2534
|
-
|
|
2535
|
-
|
|
2536
|
-
|
|
2537
|
-
|
|
2538
|
-
|
|
2539
|
-
case 4:
|
|
2540
|
-
case "end":
|
|
2541
|
-
return _context87.stop();
|
|
2542
|
-
}
|
|
2163
|
+
while (1) switch (_context87.prev = _context87.next) {
|
|
2164
|
+
case 0:
|
|
2165
|
+
_context87.next = 2;
|
|
2166
|
+
return this.send('GET', '/organizations/' + id + '/tax', null, true, true);
|
|
2167
|
+
case 2:
|
|
2168
|
+
r = _context87.sent;
|
|
2169
|
+
return _context87.abrupt("return", new TaxInfoResponse(r));
|
|
2170
|
+
case 4:
|
|
2171
|
+
case "end":
|
|
2172
|
+
return _context87.stop();
|
|
2543
2173
|
}
|
|
2544
2174
|
}, _callee87, this);
|
|
2545
2175
|
}));
|
|
@@ -2550,20 +2180,16 @@ export var ApiService = /*#__PURE__*/function () {
|
|
|
2550
2180
|
return __awaiter(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime.mark(function _callee88() {
|
|
2551
2181
|
var r;
|
|
2552
2182
|
return _regeneratorRuntime.wrap(function _callee88$(_context88) {
|
|
2553
|
-
while (1) {
|
|
2554
|
-
|
|
2555
|
-
|
|
2556
|
-
|
|
2557
|
-
|
|
2558
|
-
|
|
2559
|
-
|
|
2560
|
-
|
|
2561
|
-
|
|
2562
|
-
|
|
2563
|
-
case 4:
|
|
2564
|
-
case "end":
|
|
2565
|
-
return _context88.stop();
|
|
2566
|
-
}
|
|
2183
|
+
while (1) switch (_context88.prev = _context88.next) {
|
|
2184
|
+
case 0:
|
|
2185
|
+
_context88.next = 2;
|
|
2186
|
+
return this.send('POST', '/organizations', request, true, true);
|
|
2187
|
+
case 2:
|
|
2188
|
+
r = _context88.sent;
|
|
2189
|
+
return _context88.abrupt("return", new OrganizationResponse(r));
|
|
2190
|
+
case 4:
|
|
2191
|
+
case "end":
|
|
2192
|
+
return _context88.stop();
|
|
2567
2193
|
}
|
|
2568
2194
|
}, _callee88, this);
|
|
2569
2195
|
}));
|
|
@@ -2574,20 +2200,16 @@ export var ApiService = /*#__PURE__*/function () {
|
|
|
2574
2200
|
return __awaiter(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime.mark(function _callee89() {
|
|
2575
2201
|
var r;
|
|
2576
2202
|
return _regeneratorRuntime.wrap(function _callee89$(_context89) {
|
|
2577
|
-
while (1) {
|
|
2578
|
-
|
|
2579
|
-
|
|
2580
|
-
|
|
2581
|
-
|
|
2582
|
-
|
|
2583
|
-
|
|
2584
|
-
|
|
2585
|
-
|
|
2586
|
-
|
|
2587
|
-
case 4:
|
|
2588
|
-
case "end":
|
|
2589
|
-
return _context89.stop();
|
|
2590
|
-
}
|
|
2203
|
+
while (1) switch (_context89.prev = _context89.next) {
|
|
2204
|
+
case 0:
|
|
2205
|
+
_context89.next = 2;
|
|
2206
|
+
return this.send('PUT', '/organizations/' + id, request, true, true);
|
|
2207
|
+
case 2:
|
|
2208
|
+
r = _context89.sent;
|
|
2209
|
+
return _context89.abrupt("return", new OrganizationResponse(r));
|
|
2210
|
+
case 4:
|
|
2211
|
+
case "end":
|
|
2212
|
+
return _context89.stop();
|
|
2591
2213
|
}
|
|
2592
2214
|
}, _callee89, this);
|
|
2593
2215
|
}));
|
|
@@ -2597,15 +2219,12 @@ export var ApiService = /*#__PURE__*/function () {
|
|
|
2597
2219
|
value: function putOrganizationTaxInfo(id, request) {
|
|
2598
2220
|
return __awaiter(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime.mark(function _callee90() {
|
|
2599
2221
|
return _regeneratorRuntime.wrap(function _callee90$(_context90) {
|
|
2600
|
-
while (1) {
|
|
2601
|
-
|
|
2602
|
-
|
|
2603
|
-
|
|
2604
|
-
|
|
2605
|
-
|
|
2606
|
-
case "end":
|
|
2607
|
-
return _context90.stop();
|
|
2608
|
-
}
|
|
2222
|
+
while (1) switch (_context90.prev = _context90.next) {
|
|
2223
|
+
case 0:
|
|
2224
|
+
return _context90.abrupt("return", this.send('PUT', '/organizations/' + id + '/tax', request, true, false));
|
|
2225
|
+
case 1:
|
|
2226
|
+
case "end":
|
|
2227
|
+
return _context90.stop();
|
|
2609
2228
|
}
|
|
2610
2229
|
}, _callee90, this);
|
|
2611
2230
|
}));
|
|
@@ -2621,20 +2240,16 @@ export var ApiService = /*#__PURE__*/function () {
|
|
|
2621
2240
|
return __awaiter(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime.mark(function _callee91() {
|
|
2622
2241
|
var r;
|
|
2623
2242
|
return _regeneratorRuntime.wrap(function _callee91$(_context91) {
|
|
2624
|
-
while (1) {
|
|
2625
|
-
|
|
2626
|
-
|
|
2627
|
-
|
|
2628
|
-
|
|
2629
|
-
|
|
2630
|
-
|
|
2631
|
-
|
|
2632
|
-
|
|
2633
|
-
|
|
2634
|
-
case 4:
|
|
2635
|
-
case "end":
|
|
2636
|
-
return _context91.stop();
|
|
2637
|
-
}
|
|
2243
|
+
while (1) switch (_context91.prev = _context91.next) {
|
|
2244
|
+
case 0:
|
|
2245
|
+
_context91.next = 2;
|
|
2246
|
+
return this.send('POST', '/organizations/license', data, true, true);
|
|
2247
|
+
case 2:
|
|
2248
|
+
r = _context91.sent;
|
|
2249
|
+
return _context91.abrupt("return", new OrganizationResponse(r));
|
|
2250
|
+
case 4:
|
|
2251
|
+
case "end":
|
|
2252
|
+
return _context91.stop();
|
|
2638
2253
|
}
|
|
2639
2254
|
}, _callee91, this);
|
|
2640
2255
|
}));
|
|
@@ -2644,15 +2259,12 @@ export var ApiService = /*#__PURE__*/function () {
|
|
|
2644
2259
|
value: function postOrganizationLicenseUpdate(id, data) {
|
|
2645
2260
|
return __awaiter(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime.mark(function _callee92() {
|
|
2646
2261
|
return _regeneratorRuntime.wrap(function _callee92$(_context92) {
|
|
2647
|
-
while (1) {
|
|
2648
|
-
|
|
2649
|
-
|
|
2650
|
-
|
|
2651
|
-
|
|
2652
|
-
|
|
2653
|
-
case "end":
|
|
2654
|
-
return _context92.stop();
|
|
2655
|
-
}
|
|
2262
|
+
while (1) switch (_context92.prev = _context92.next) {
|
|
2263
|
+
case 0:
|
|
2264
|
+
return _context92.abrupt("return", this.send('POST', '/organizations/' + id + '/license', data, true, false));
|
|
2265
|
+
case 1:
|
|
2266
|
+
case "end":
|
|
2267
|
+
return _context92.stop();
|
|
2656
2268
|
}
|
|
2657
2269
|
}, _callee92, this);
|
|
2658
2270
|
}));
|
|
@@ -2663,20 +2275,16 @@ export var ApiService = /*#__PURE__*/function () {
|
|
|
2663
2275
|
return __awaiter(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime.mark(function _callee93() {
|
|
2664
2276
|
var r;
|
|
2665
2277
|
return _regeneratorRuntime.wrap(function _callee93$(_context93) {
|
|
2666
|
-
while (1) {
|
|
2667
|
-
|
|
2668
|
-
|
|
2669
|
-
|
|
2670
|
-
|
|
2671
|
-
|
|
2672
|
-
|
|
2673
|
-
|
|
2674
|
-
|
|
2675
|
-
|
|
2676
|
-
case 4:
|
|
2677
|
-
case "end":
|
|
2678
|
-
return _context93.stop();
|
|
2679
|
-
}
|
|
2278
|
+
while (1) switch (_context93.prev = _context93.next) {
|
|
2279
|
+
case 0:
|
|
2280
|
+
_context93.next = 2;
|
|
2281
|
+
return this.send('POST', '/organizations/' + id + '/api-key', request, true, true);
|
|
2282
|
+
case 2:
|
|
2283
|
+
r = _context93.sent;
|
|
2284
|
+
return _context93.abrupt("return", new ApiKeyResponse(r));
|
|
2285
|
+
case 4:
|
|
2286
|
+
case "end":
|
|
2287
|
+
return _context93.stop();
|
|
2680
2288
|
}
|
|
2681
2289
|
}, _callee93, this);
|
|
2682
2290
|
}));
|
|
@@ -2687,20 +2295,16 @@ export var ApiService = /*#__PURE__*/function () {
|
|
|
2687
2295
|
return __awaiter(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime.mark(function _callee94() {
|
|
2688
2296
|
var r;
|
|
2689
2297
|
return _regeneratorRuntime.wrap(function _callee94$(_context94) {
|
|
2690
|
-
while (1) {
|
|
2691
|
-
|
|
2692
|
-
|
|
2693
|
-
|
|
2694
|
-
|
|
2695
|
-
|
|
2696
|
-
|
|
2697
|
-
|
|
2698
|
-
|
|
2699
|
-
|
|
2700
|
-
case 4:
|
|
2701
|
-
case "end":
|
|
2702
|
-
return _context94.stop();
|
|
2703
|
-
}
|
|
2298
|
+
while (1) switch (_context94.prev = _context94.next) {
|
|
2299
|
+
case 0:
|
|
2300
|
+
_context94.next = 2;
|
|
2301
|
+
return this.send('POST', '/organizations/' + id + '/rotate-api-key', request, true, true);
|
|
2302
|
+
case 2:
|
|
2303
|
+
r = _context94.sent;
|
|
2304
|
+
return _context94.abrupt("return", new ApiKeyResponse(r));
|
|
2305
|
+
case 4:
|
|
2306
|
+
case "end":
|
|
2307
|
+
return _context94.stop();
|
|
2704
2308
|
}
|
|
2705
2309
|
}, _callee94, this);
|
|
2706
2310
|
}));
|
|
@@ -2711,20 +2315,16 @@ export var ApiService = /*#__PURE__*/function () {
|
|
|
2711
2315
|
return __awaiter(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime.mark(function _callee95() {
|
|
2712
2316
|
var r;
|
|
2713
2317
|
return _regeneratorRuntime.wrap(function _callee95$(_context95) {
|
|
2714
|
-
while (1) {
|
|
2715
|
-
|
|
2716
|
-
|
|
2717
|
-
|
|
2718
|
-
|
|
2719
|
-
|
|
2720
|
-
|
|
2721
|
-
|
|
2722
|
-
|
|
2723
|
-
|
|
2724
|
-
case 4:
|
|
2725
|
-
case "end":
|
|
2726
|
-
return _context95.stop();
|
|
2727
|
-
}
|
|
2318
|
+
while (1) switch (_context95.prev = _context95.next) {
|
|
2319
|
+
case 0:
|
|
2320
|
+
_context95.next = 2;
|
|
2321
|
+
return this.send('POST', '/organizations/' + id + '/upgrade', request, true, true);
|
|
2322
|
+
case 2:
|
|
2323
|
+
r = _context95.sent;
|
|
2324
|
+
return _context95.abrupt("return", new PaymentResponse(r));
|
|
2325
|
+
case 4:
|
|
2326
|
+
case "end":
|
|
2327
|
+
return _context95.stop();
|
|
2728
2328
|
}
|
|
2729
2329
|
}, _callee95, this);
|
|
2730
2330
|
}));
|
|
@@ -2735,20 +2335,16 @@ export var ApiService = /*#__PURE__*/function () {
|
|
|
2735
2335
|
return __awaiter(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime.mark(function _callee96() {
|
|
2736
2336
|
var r;
|
|
2737
2337
|
return _regeneratorRuntime.wrap(function _callee96$(_context96) {
|
|
2738
|
-
while (1) {
|
|
2739
|
-
|
|
2740
|
-
|
|
2741
|
-
|
|
2742
|
-
|
|
2743
|
-
|
|
2744
|
-
|
|
2745
|
-
|
|
2746
|
-
|
|
2747
|
-
|
|
2748
|
-
case 4:
|
|
2749
|
-
case "end":
|
|
2750
|
-
return _context96.stop();
|
|
2751
|
-
}
|
|
2338
|
+
while (1) switch (_context96.prev = _context96.next) {
|
|
2339
|
+
case 0:
|
|
2340
|
+
_context96.next = 2;
|
|
2341
|
+
return this.send('POST', '/organizations/' + id + '/seat', request, true, true);
|
|
2342
|
+
case 2:
|
|
2343
|
+
r = _context96.sent;
|
|
2344
|
+
return _context96.abrupt("return", new PaymentResponse(r));
|
|
2345
|
+
case 4:
|
|
2346
|
+
case "end":
|
|
2347
|
+
return _context96.stop();
|
|
2752
2348
|
}
|
|
2753
2349
|
}, _callee96, this);
|
|
2754
2350
|
}));
|
|
@@ -2759,20 +2355,16 @@ export var ApiService = /*#__PURE__*/function () {
|
|
|
2759
2355
|
return __awaiter(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime.mark(function _callee97() {
|
|
2760
2356
|
var r;
|
|
2761
2357
|
return _regeneratorRuntime.wrap(function _callee97$(_context97) {
|
|
2762
|
-
while (1) {
|
|
2763
|
-
|
|
2764
|
-
|
|
2765
|
-
|
|
2766
|
-
|
|
2767
|
-
|
|
2768
|
-
|
|
2769
|
-
|
|
2770
|
-
|
|
2771
|
-
|
|
2772
|
-
case 4:
|
|
2773
|
-
case "end":
|
|
2774
|
-
return _context97.stop();
|
|
2775
|
-
}
|
|
2358
|
+
while (1) switch (_context97.prev = _context97.next) {
|
|
2359
|
+
case 0:
|
|
2360
|
+
_context97.next = 2;
|
|
2361
|
+
return this.send('POST', '/organizations/' + id + '/storage', request, true, true);
|
|
2362
|
+
case 2:
|
|
2363
|
+
r = _context97.sent;
|
|
2364
|
+
return _context97.abrupt("return", new PaymentResponse(r));
|
|
2365
|
+
case 4:
|
|
2366
|
+
case "end":
|
|
2367
|
+
return _context97.stop();
|
|
2776
2368
|
}
|
|
2777
2369
|
}, _callee97, this);
|
|
2778
2370
|
}));
|
|
@@ -2801,28 +2393,24 @@ export var ApiService = /*#__PURE__*/function () {
|
|
|
2801
2393
|
key: "deleteOrganization",
|
|
2802
2394
|
value: function deleteOrganization(id, request) {
|
|
2803
2395
|
return this.send('DELETE', '/organizations/' + id, request, true, false);
|
|
2804
|
-
}
|
|
2805
|
-
|
|
2396
|
+
}
|
|
2397
|
+
// Event APIs
|
|
2806
2398
|
}, {
|
|
2807
2399
|
key: "getEvents",
|
|
2808
2400
|
value: function getEvents(start, end, token) {
|
|
2809
2401
|
return __awaiter(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime.mark(function _callee98() {
|
|
2810
2402
|
var r;
|
|
2811
2403
|
return _regeneratorRuntime.wrap(function _callee98$(_context98) {
|
|
2812
|
-
while (1) {
|
|
2813
|
-
|
|
2814
|
-
|
|
2815
|
-
|
|
2816
|
-
|
|
2817
|
-
|
|
2818
|
-
|
|
2819
|
-
|
|
2820
|
-
|
|
2821
|
-
|
|
2822
|
-
case 4:
|
|
2823
|
-
case "end":
|
|
2824
|
-
return _context98.stop();
|
|
2825
|
-
}
|
|
2404
|
+
while (1) switch (_context98.prev = _context98.next) {
|
|
2405
|
+
case 0:
|
|
2406
|
+
_context98.next = 2;
|
|
2407
|
+
return this.send('GET', this.addEventParameters('/events', start, end, token), null, true, true);
|
|
2408
|
+
case 2:
|
|
2409
|
+
r = _context98.sent;
|
|
2410
|
+
return _context98.abrupt("return", new ListResponse(r, EventResponse));
|
|
2411
|
+
case 4:
|
|
2412
|
+
case "end":
|
|
2413
|
+
return _context98.stop();
|
|
2826
2414
|
}
|
|
2827
2415
|
}, _callee98, this);
|
|
2828
2416
|
}));
|
|
@@ -2833,20 +2421,16 @@ export var ApiService = /*#__PURE__*/function () {
|
|
|
2833
2421
|
return __awaiter(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime.mark(function _callee99() {
|
|
2834
2422
|
var r;
|
|
2835
2423
|
return _regeneratorRuntime.wrap(function _callee99$(_context99) {
|
|
2836
|
-
while (1) {
|
|
2837
|
-
|
|
2838
|
-
|
|
2839
|
-
|
|
2840
|
-
|
|
2841
|
-
|
|
2842
|
-
|
|
2843
|
-
|
|
2844
|
-
|
|
2845
|
-
|
|
2846
|
-
case 4:
|
|
2847
|
-
case "end":
|
|
2848
|
-
return _context99.stop();
|
|
2849
|
-
}
|
|
2424
|
+
while (1) switch (_context99.prev = _context99.next) {
|
|
2425
|
+
case 0:
|
|
2426
|
+
_context99.next = 2;
|
|
2427
|
+
return this.send('GET', this.addEventParameters('/ciphers/' + id + '/events', start, end, token), null, true, true);
|
|
2428
|
+
case 2:
|
|
2429
|
+
r = _context99.sent;
|
|
2430
|
+
return _context99.abrupt("return", new ListResponse(r, EventResponse));
|
|
2431
|
+
case 4:
|
|
2432
|
+
case "end":
|
|
2433
|
+
return _context99.stop();
|
|
2850
2434
|
}
|
|
2851
2435
|
}, _callee99, this);
|
|
2852
2436
|
}));
|
|
@@ -2857,20 +2441,16 @@ export var ApiService = /*#__PURE__*/function () {
|
|
|
2857
2441
|
return __awaiter(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime.mark(function _callee100() {
|
|
2858
2442
|
var r;
|
|
2859
2443
|
return _regeneratorRuntime.wrap(function _callee100$(_context100) {
|
|
2860
|
-
while (1) {
|
|
2861
|
-
|
|
2862
|
-
|
|
2863
|
-
|
|
2864
|
-
|
|
2865
|
-
|
|
2866
|
-
|
|
2867
|
-
|
|
2868
|
-
|
|
2869
|
-
|
|
2870
|
-
case 4:
|
|
2871
|
-
case "end":
|
|
2872
|
-
return _context100.stop();
|
|
2873
|
-
}
|
|
2444
|
+
while (1) switch (_context100.prev = _context100.next) {
|
|
2445
|
+
case 0:
|
|
2446
|
+
_context100.next = 2;
|
|
2447
|
+
return this.send('GET', this.addEventParameters('/organizations/' + id + '/events', start, end, token), null, true, true);
|
|
2448
|
+
case 2:
|
|
2449
|
+
r = _context100.sent;
|
|
2450
|
+
return _context100.abrupt("return", new ListResponse(r, EventResponse));
|
|
2451
|
+
case 4:
|
|
2452
|
+
case "end":
|
|
2453
|
+
return _context100.stop();
|
|
2874
2454
|
}
|
|
2875
2455
|
}, _callee100, this);
|
|
2876
2456
|
}));
|
|
@@ -2881,20 +2461,16 @@ export var ApiService = /*#__PURE__*/function () {
|
|
|
2881
2461
|
return __awaiter(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime.mark(function _callee101() {
|
|
2882
2462
|
var r;
|
|
2883
2463
|
return _regeneratorRuntime.wrap(function _callee101$(_context101) {
|
|
2884
|
-
while (1) {
|
|
2885
|
-
|
|
2886
|
-
|
|
2887
|
-
|
|
2888
|
-
|
|
2889
|
-
|
|
2890
|
-
|
|
2891
|
-
|
|
2892
|
-
|
|
2893
|
-
|
|
2894
|
-
case 4:
|
|
2895
|
-
case "end":
|
|
2896
|
-
return _context101.stop();
|
|
2897
|
-
}
|
|
2464
|
+
while (1) switch (_context101.prev = _context101.next) {
|
|
2465
|
+
case 0:
|
|
2466
|
+
_context101.next = 2;
|
|
2467
|
+
return this.send('GET', this.addEventParameters('/organizations/' + organizationId + '/users/' + id + '/events', start, end, token), null, true, true);
|
|
2468
|
+
case 2:
|
|
2469
|
+
r = _context101.sent;
|
|
2470
|
+
return _context101.abrupt("return", new ListResponse(r, EventResponse));
|
|
2471
|
+
case 4:
|
|
2472
|
+
case "end":
|
|
2473
|
+
return _context101.stop();
|
|
2898
2474
|
}
|
|
2899
2475
|
}, _callee101, this);
|
|
2900
2476
|
}));
|
|
@@ -2905,124 +2481,103 @@ export var ApiService = /*#__PURE__*/function () {
|
|
|
2905
2481
|
return __awaiter(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime.mark(function _callee102() {
|
|
2906
2482
|
var authHeader, headers, response;
|
|
2907
2483
|
return _regeneratorRuntime.wrap(function _callee102$(_context102) {
|
|
2908
|
-
while (1) {
|
|
2909
|
-
|
|
2910
|
-
|
|
2911
|
-
|
|
2912
|
-
|
|
2913
|
-
|
|
2914
|
-
|
|
2915
|
-
|
|
2916
|
-
|
|
2917
|
-
|
|
2918
|
-
|
|
2919
|
-
|
|
2920
|
-
|
|
2921
|
-
|
|
2922
|
-
|
|
2923
|
-
|
|
2924
|
-
|
|
2925
|
-
|
|
2926
|
-
|
|
2927
|
-
|
|
2928
|
-
|
|
2929
|
-
|
|
2930
|
-
|
|
2931
|
-
|
|
2932
|
-
|
|
2933
|
-
|
|
2934
|
-
|
|
2935
|
-
|
|
2936
|
-
|
|
2937
|
-
|
|
2938
|
-
|
|
2939
|
-
|
|
2940
|
-
break;
|
|
2941
|
-
}
|
|
2942
|
-
|
|
2943
|
-
return _context102.abrupt("return", Promise.reject('Event post failed.'));
|
|
2944
|
-
|
|
2945
|
-
case 10:
|
|
2946
|
-
case "end":
|
|
2947
|
-
return _context102.stop();
|
|
2948
|
-
}
|
|
2484
|
+
while (1) switch (_context102.prev = _context102.next) {
|
|
2485
|
+
case 0:
|
|
2486
|
+
_context102.next = 2;
|
|
2487
|
+
return this.getActiveBearerToken();
|
|
2488
|
+
case 2:
|
|
2489
|
+
authHeader = _context102.sent;
|
|
2490
|
+
headers = new Headers({
|
|
2491
|
+
'Device-Type': this.deviceType,
|
|
2492
|
+
'Authorization': 'Bearer ' + authHeader,
|
|
2493
|
+
'Content-Type': 'application/json; charset=utf-8'
|
|
2494
|
+
});
|
|
2495
|
+
if (this.customUserAgent != null) {
|
|
2496
|
+
headers.set('User-Agent', this.customUserAgent);
|
|
2497
|
+
}
|
|
2498
|
+
_context102.next = 7;
|
|
2499
|
+
return this.fetch(new Request(this.eventsBaseUrl + '/collect', {
|
|
2500
|
+
cache: 'no-store',
|
|
2501
|
+
credentials: this.getCredentials(),
|
|
2502
|
+
method: 'POST',
|
|
2503
|
+
body: JSON.stringify(request),
|
|
2504
|
+
headers: headers
|
|
2505
|
+
}));
|
|
2506
|
+
case 7:
|
|
2507
|
+
response = _context102.sent;
|
|
2508
|
+
if (!(response.status !== 200)) {
|
|
2509
|
+
_context102.next = 10;
|
|
2510
|
+
break;
|
|
2511
|
+
}
|
|
2512
|
+
return _context102.abrupt("return", Promise.reject('Event post failed.'));
|
|
2513
|
+
case 10:
|
|
2514
|
+
case "end":
|
|
2515
|
+
return _context102.stop();
|
|
2949
2516
|
}
|
|
2950
2517
|
}, _callee102, this);
|
|
2951
2518
|
}));
|
|
2952
|
-
}
|
|
2953
|
-
|
|
2519
|
+
}
|
|
2520
|
+
// User APIs
|
|
2954
2521
|
}, {
|
|
2955
2522
|
key: "getUserPublicKey",
|
|
2956
2523
|
value: function getUserPublicKey(id) {
|
|
2957
2524
|
return __awaiter(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime.mark(function _callee103() {
|
|
2958
2525
|
var r;
|
|
2959
2526
|
return _regeneratorRuntime.wrap(function _callee103$(_context103) {
|
|
2960
|
-
while (1) {
|
|
2961
|
-
|
|
2962
|
-
|
|
2963
|
-
|
|
2964
|
-
|
|
2965
|
-
|
|
2966
|
-
|
|
2967
|
-
|
|
2968
|
-
|
|
2969
|
-
|
|
2970
|
-
case 4:
|
|
2971
|
-
case "end":
|
|
2972
|
-
return _context103.stop();
|
|
2973
|
-
}
|
|
2527
|
+
while (1) switch (_context103.prev = _context103.next) {
|
|
2528
|
+
case 0:
|
|
2529
|
+
_context103.next = 2;
|
|
2530
|
+
return this.send('GET', '/users/' + id + '/public-key', null, true, true);
|
|
2531
|
+
case 2:
|
|
2532
|
+
r = _context103.sent;
|
|
2533
|
+
return _context103.abrupt("return", new UserKeyResponse(r));
|
|
2534
|
+
case 4:
|
|
2535
|
+
case "end":
|
|
2536
|
+
return _context103.stop();
|
|
2974
2537
|
}
|
|
2975
2538
|
}, _callee103, this);
|
|
2976
2539
|
}));
|
|
2977
|
-
}
|
|
2978
|
-
|
|
2540
|
+
}
|
|
2541
|
+
// HIBP APIs
|
|
2979
2542
|
}, {
|
|
2980
2543
|
key: "getHibpBreach",
|
|
2981
2544
|
value: function getHibpBreach(username) {
|
|
2982
2545
|
return __awaiter(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime.mark(function _callee104() {
|
|
2983
2546
|
var r;
|
|
2984
2547
|
return _regeneratorRuntime.wrap(function _callee104$(_context104) {
|
|
2985
|
-
while (1) {
|
|
2986
|
-
|
|
2987
|
-
|
|
2988
|
-
|
|
2989
|
-
|
|
2990
|
-
|
|
2991
|
-
|
|
2992
|
-
|
|
2993
|
-
|
|
2994
|
-
|
|
2995
|
-
|
|
2996
|
-
|
|
2997
|
-
case 4:
|
|
2998
|
-
case "end":
|
|
2999
|
-
return _context104.stop();
|
|
3000
|
-
}
|
|
2548
|
+
while (1) switch (_context104.prev = _context104.next) {
|
|
2549
|
+
case 0:
|
|
2550
|
+
_context104.next = 2;
|
|
2551
|
+
return this.send('GET', '/hibp/breach?username=' + username, null, true, true);
|
|
2552
|
+
case 2:
|
|
2553
|
+
r = _context104.sent;
|
|
2554
|
+
return _context104.abrupt("return", r.map(function (a) {
|
|
2555
|
+
return new BreachAccountResponse(a);
|
|
2556
|
+
}));
|
|
2557
|
+
case 4:
|
|
2558
|
+
case "end":
|
|
2559
|
+
return _context104.stop();
|
|
3001
2560
|
}
|
|
3002
2561
|
}, _callee104, this);
|
|
3003
2562
|
}));
|
|
3004
|
-
}
|
|
3005
|
-
|
|
2563
|
+
}
|
|
2564
|
+
// Misc
|
|
3006
2565
|
}, {
|
|
3007
2566
|
key: "postBitPayInvoice",
|
|
3008
2567
|
value: function postBitPayInvoice(request) {
|
|
3009
2568
|
return __awaiter(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime.mark(function _callee105() {
|
|
3010
2569
|
var r;
|
|
3011
2570
|
return _regeneratorRuntime.wrap(function _callee105$(_context105) {
|
|
3012
|
-
while (1) {
|
|
3013
|
-
|
|
3014
|
-
|
|
3015
|
-
|
|
3016
|
-
|
|
3017
|
-
|
|
3018
|
-
|
|
3019
|
-
|
|
3020
|
-
|
|
3021
|
-
|
|
3022
|
-
case 4:
|
|
3023
|
-
case "end":
|
|
3024
|
-
return _context105.stop();
|
|
3025
|
-
}
|
|
2571
|
+
while (1) switch (_context105.prev = _context105.next) {
|
|
2572
|
+
case 0:
|
|
2573
|
+
_context105.next = 2;
|
|
2574
|
+
return this.send('POST', '/bitpay-invoice', request, true, true);
|
|
2575
|
+
case 2:
|
|
2576
|
+
r = _context105.sent;
|
|
2577
|
+
return _context105.abrupt("return", r);
|
|
2578
|
+
case 4:
|
|
2579
|
+
case "end":
|
|
2580
|
+
return _context105.stop();
|
|
3026
2581
|
}
|
|
3027
2582
|
}, _callee105, this);
|
|
3028
2583
|
}));
|
|
@@ -3033,59 +2588,47 @@ export var ApiService = /*#__PURE__*/function () {
|
|
|
3033
2588
|
return __awaiter(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime.mark(function _callee106() {
|
|
3034
2589
|
var r;
|
|
3035
2590
|
return _regeneratorRuntime.wrap(function _callee106$(_context106) {
|
|
3036
|
-
while (1) {
|
|
3037
|
-
|
|
3038
|
-
|
|
3039
|
-
|
|
3040
|
-
|
|
3041
|
-
|
|
3042
|
-
|
|
3043
|
-
|
|
3044
|
-
|
|
3045
|
-
|
|
3046
|
-
case 4:
|
|
3047
|
-
case "end":
|
|
3048
|
-
return _context106.stop();
|
|
3049
|
-
}
|
|
2591
|
+
while (1) switch (_context106.prev = _context106.next) {
|
|
2592
|
+
case 0:
|
|
2593
|
+
_context106.next = 2;
|
|
2594
|
+
return this.send('POST', '/setup-payment', null, true, true);
|
|
2595
|
+
case 2:
|
|
2596
|
+
r = _context106.sent;
|
|
2597
|
+
return _context106.abrupt("return", r);
|
|
2598
|
+
case 4:
|
|
2599
|
+
case "end":
|
|
2600
|
+
return _context106.stop();
|
|
3050
2601
|
}
|
|
3051
2602
|
}, _callee106, this);
|
|
3052
2603
|
}));
|
|
3053
|
-
}
|
|
3054
|
-
|
|
2604
|
+
}
|
|
2605
|
+
// Helpers
|
|
3055
2606
|
}, {
|
|
3056
2607
|
key: "getActiveBearerToken",
|
|
3057
2608
|
value: function getActiveBearerToken() {
|
|
3058
2609
|
return __awaiter(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime.mark(function _callee107() {
|
|
3059
2610
|
var accessToken, tokenResponse;
|
|
3060
2611
|
return _regeneratorRuntime.wrap(function _callee107$(_context107) {
|
|
3061
|
-
while (1) {
|
|
3062
|
-
|
|
3063
|
-
|
|
3064
|
-
|
|
3065
|
-
|
|
3066
|
-
|
|
3067
|
-
|
|
3068
|
-
|
|
3069
|
-
|
|
3070
|
-
|
|
3071
|
-
|
|
3072
|
-
|
|
3073
|
-
|
|
3074
|
-
|
|
3075
|
-
|
|
3076
|
-
|
|
3077
|
-
|
|
3078
|
-
|
|
3079
|
-
|
|
3080
|
-
|
|
3081
|
-
|
|
3082
|
-
case 8:
|
|
3083
|
-
return _context107.abrupt("return", accessToken);
|
|
3084
|
-
|
|
3085
|
-
case 9:
|
|
3086
|
-
case "end":
|
|
3087
|
-
return _context107.stop();
|
|
3088
|
-
}
|
|
2612
|
+
while (1) switch (_context107.prev = _context107.next) {
|
|
2613
|
+
case 0:
|
|
2614
|
+
_context107.next = 2;
|
|
2615
|
+
return this.tokenService.getToken();
|
|
2616
|
+
case 2:
|
|
2617
|
+
accessToken = _context107.sent;
|
|
2618
|
+
if (!this.tokenService.tokenNeedsRefresh()) {
|
|
2619
|
+
_context107.next = 8;
|
|
2620
|
+
break;
|
|
2621
|
+
}
|
|
2622
|
+
_context107.next = 6;
|
|
2623
|
+
return this.doRefreshToken();
|
|
2624
|
+
case 6:
|
|
2625
|
+
tokenResponse = _context107.sent;
|
|
2626
|
+
accessToken = tokenResponse.accessToken;
|
|
2627
|
+
case 8:
|
|
2628
|
+
return _context107.abrupt("return", accessToken);
|
|
2629
|
+
case 9:
|
|
2630
|
+
case "end":
|
|
2631
|
+
return _context107.stop();
|
|
3089
2632
|
}
|
|
3090
2633
|
}, _callee107, this);
|
|
3091
2634
|
}));
|
|
@@ -3097,7 +2640,6 @@ export var ApiService = /*#__PURE__*/function () {
|
|
|
3097
2640
|
request.headers.set('Cache-Control', 'no-store');
|
|
3098
2641
|
request.headers.set('Pragma', 'no-cache');
|
|
3099
2642
|
}
|
|
3100
|
-
|
|
3101
2643
|
return this.nativeFetch(request);
|
|
3102
2644
|
}
|
|
3103
2645
|
}, {
|
|
@@ -3111,57 +2653,45 @@ export var ApiService = /*#__PURE__*/function () {
|
|
|
3111
2653
|
return __awaiter(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime.mark(function _callee108() {
|
|
3112
2654
|
var headers, path, response, error;
|
|
3113
2655
|
return _regeneratorRuntime.wrap(function _callee108$(_context108) {
|
|
3114
|
-
while (1) {
|
|
3115
|
-
|
|
3116
|
-
|
|
3117
|
-
|
|
3118
|
-
|
|
3119
|
-
|
|
3120
|
-
|
|
3121
|
-
|
|
3122
|
-
|
|
3123
|
-
|
|
3124
|
-
|
|
3125
|
-
|
|
3126
|
-
|
|
3127
|
-
|
|
3128
|
-
|
|
3129
|
-
|
|
3130
|
-
|
|
3131
|
-
|
|
3132
|
-
|
|
3133
|
-
|
|
3134
|
-
|
|
3135
|
-
|
|
3136
|
-
|
|
3137
|
-
|
|
3138
|
-
|
|
3139
|
-
|
|
3140
|
-
|
|
3141
|
-
|
|
3142
|
-
|
|
3143
|
-
|
|
3144
|
-
|
|
3145
|
-
|
|
3146
|
-
|
|
3147
|
-
|
|
3148
|
-
|
|
3149
|
-
|
|
3150
|
-
|
|
3151
|
-
|
|
3152
|
-
|
|
3153
|
-
case 12:
|
|
3154
|
-
_context108.next = 14;
|
|
3155
|
-
return this.handleError(response, false, true);
|
|
3156
|
-
|
|
3157
|
-
case 14:
|
|
3158
|
-
error = _context108.sent;
|
|
3159
|
-
return _context108.abrupt("return", Promise.reject(error));
|
|
3160
|
-
|
|
3161
|
-
case 16:
|
|
3162
|
-
case "end":
|
|
3163
|
-
return _context108.stop();
|
|
3164
|
-
}
|
|
2656
|
+
while (1) switch (_context108.prev = _context108.next) {
|
|
2657
|
+
case 0:
|
|
2658
|
+
if (!(identifier == null || identifier === '')) {
|
|
2659
|
+
_context108.next = 2;
|
|
2660
|
+
break;
|
|
2661
|
+
}
|
|
2662
|
+
throw new Error('Organization Identifier was not provided.');
|
|
2663
|
+
case 2:
|
|
2664
|
+
headers = new Headers({
|
|
2665
|
+
'Accept': 'application/json',
|
|
2666
|
+
'Device-Type': this.deviceType
|
|
2667
|
+
});
|
|
2668
|
+
if (this.customUserAgent != null) {
|
|
2669
|
+
headers.set('User-Agent', this.customUserAgent);
|
|
2670
|
+
}
|
|
2671
|
+
path = "/account/prevalidate?domainHint=".concat(encodeURIComponent(identifier));
|
|
2672
|
+
_context108.next = 7;
|
|
2673
|
+
return this.fetch(new Request(this.identityBaseUrl + path, {
|
|
2674
|
+
cache: 'no-store',
|
|
2675
|
+
credentials: this.getCredentials(),
|
|
2676
|
+
headers: headers,
|
|
2677
|
+
method: 'GET'
|
|
2678
|
+
}));
|
|
2679
|
+
case 7:
|
|
2680
|
+
response = _context108.sent;
|
|
2681
|
+
if (!(response.status === 200)) {
|
|
2682
|
+
_context108.next = 12;
|
|
2683
|
+
break;
|
|
2684
|
+
}
|
|
2685
|
+
return _context108.abrupt("return", true);
|
|
2686
|
+
case 12:
|
|
2687
|
+
_context108.next = 14;
|
|
2688
|
+
return this.handleError(response, false, true);
|
|
2689
|
+
case 14:
|
|
2690
|
+
error = _context108.sent;
|
|
2691
|
+
return _context108.abrupt("return", Promise.reject(error));
|
|
2692
|
+
case 16:
|
|
2693
|
+
case "end":
|
|
2694
|
+
return _context108.stop();
|
|
3165
2695
|
}
|
|
3166
2696
|
}, _callee108, this);
|
|
3167
2697
|
}));
|
|
@@ -3172,90 +2702,72 @@ export var ApiService = /*#__PURE__*/function () {
|
|
|
3172
2702
|
return __awaiter(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime.mark(function _callee109() {
|
|
3173
2703
|
var headers, requestInit, authHeader, response, responseJson, error;
|
|
3174
2704
|
return _regeneratorRuntime.wrap(function _callee109$(_context109) {
|
|
3175
|
-
while (1) {
|
|
3176
|
-
|
|
3177
|
-
|
|
3178
|
-
|
|
3179
|
-
|
|
3180
|
-
|
|
3181
|
-
|
|
3182
|
-
|
|
3183
|
-
|
|
3184
|
-
|
|
3185
|
-
|
|
3186
|
-
|
|
3187
|
-
|
|
3188
|
-
|
|
3189
|
-
|
|
3190
|
-
|
|
3191
|
-
|
|
3192
|
-
|
|
3193
|
-
|
|
3194
|
-
|
|
3195
|
-
|
|
3196
|
-
|
|
3197
|
-
|
|
3198
|
-
|
|
3199
|
-
|
|
3200
|
-
|
|
3201
|
-
|
|
3202
|
-
|
|
3203
|
-
|
|
3204
|
-
case 8:
|
|
3205
|
-
if (body != null) {
|
|
3206
|
-
if (typeof body === 'string') {
|
|
2705
|
+
while (1) switch (_context109.prev = _context109.next) {
|
|
2706
|
+
case 0:
|
|
2707
|
+
headers = new Headers({
|
|
2708
|
+
'Device-Type': this.deviceType
|
|
2709
|
+
});
|
|
2710
|
+
if (this.customUserAgent != null) {
|
|
2711
|
+
headers.set('User-Agent', this.customUserAgent);
|
|
2712
|
+
}
|
|
2713
|
+
requestInit = {
|
|
2714
|
+
cache: 'no-store',
|
|
2715
|
+
credentials: this.getCredentials(),
|
|
2716
|
+
method: method
|
|
2717
|
+
};
|
|
2718
|
+
if (!authed) {
|
|
2719
|
+
_context109.next = 8;
|
|
2720
|
+
break;
|
|
2721
|
+
}
|
|
2722
|
+
_context109.next = 6;
|
|
2723
|
+
return this.getActiveBearerToken();
|
|
2724
|
+
case 6:
|
|
2725
|
+
authHeader = _context109.sent;
|
|
2726
|
+
headers.set('Authorization', 'Bearer ' + authHeader);
|
|
2727
|
+
case 8:
|
|
2728
|
+
if (body != null) {
|
|
2729
|
+
if (typeof body === 'string') {
|
|
2730
|
+
requestInit.body = body;
|
|
2731
|
+
headers.set('Content-Type', 'application/x-www-form-urlencoded; charset=utf-8');
|
|
2732
|
+
} else if (typeof body === 'object') {
|
|
2733
|
+
if (body instanceof FormData) {
|
|
3207
2734
|
requestInit.body = body;
|
|
3208
|
-
|
|
3209
|
-
|
|
3210
|
-
|
|
3211
|
-
requestInit.body = body;
|
|
3212
|
-
} else {
|
|
3213
|
-
headers.set('Content-Type', 'application/json; charset=utf-8');
|
|
3214
|
-
requestInit.body = JSON.stringify(body);
|
|
3215
|
-
}
|
|
2735
|
+
} else {
|
|
2736
|
+
headers.set('Content-Type', 'application/json; charset=utf-8');
|
|
2737
|
+
requestInit.body = JSON.stringify(body);
|
|
3216
2738
|
}
|
|
3217
2739
|
}
|
|
3218
|
-
|
|
3219
|
-
|
|
3220
|
-
|
|
3221
|
-
|
|
3222
|
-
|
|
3223
|
-
|
|
3224
|
-
|
|
3225
|
-
|
|
3226
|
-
|
|
3227
|
-
|
|
3228
|
-
|
|
3229
|
-
|
|
3230
|
-
|
|
3231
|
-
|
|
3232
|
-
|
|
3233
|
-
|
|
3234
|
-
|
|
3235
|
-
|
|
3236
|
-
|
|
3237
|
-
|
|
3238
|
-
|
|
3239
|
-
|
|
3240
|
-
|
|
3241
|
-
|
|
3242
|
-
|
|
3243
|
-
|
|
3244
|
-
|
|
3245
|
-
|
|
3246
|
-
|
|
3247
|
-
|
|
3248
|
-
|
|
3249
|
-
return this.handleError(response, false, authed);
|
|
3250
|
-
|
|
3251
|
-
case 24:
|
|
3252
|
-
error = _context109.sent;
|
|
3253
|
-
return _context109.abrupt("return", Promise.reject(error));
|
|
3254
|
-
|
|
3255
|
-
case 26:
|
|
3256
|
-
case "end":
|
|
3257
|
-
return _context109.stop();
|
|
3258
|
-
}
|
|
2740
|
+
}
|
|
2741
|
+
if (hasResponse) {
|
|
2742
|
+
headers.set('Accept', 'application/json');
|
|
2743
|
+
}
|
|
2744
|
+
requestInit.headers = headers;
|
|
2745
|
+
_context109.next = 13;
|
|
2746
|
+
return this.fetch(new Request(this.apiBaseUrl + path, requestInit));
|
|
2747
|
+
case 13:
|
|
2748
|
+
response = _context109.sent;
|
|
2749
|
+
if (!(hasResponse && response.status === 200)) {
|
|
2750
|
+
_context109.next = 21;
|
|
2751
|
+
break;
|
|
2752
|
+
}
|
|
2753
|
+
_context109.next = 17;
|
|
2754
|
+
return response.json();
|
|
2755
|
+
case 17:
|
|
2756
|
+
responseJson = _context109.sent;
|
|
2757
|
+
return _context109.abrupt("return", responseJson);
|
|
2758
|
+
case 21:
|
|
2759
|
+
if (!(response.status !== 200)) {
|
|
2760
|
+
_context109.next = 26;
|
|
2761
|
+
break;
|
|
2762
|
+
}
|
|
2763
|
+
_context109.next = 24;
|
|
2764
|
+
return this.handleError(response, false, authed);
|
|
2765
|
+
case 24:
|
|
2766
|
+
error = _context109.sent;
|
|
2767
|
+
return _context109.abrupt("return", Promise.reject(error));
|
|
2768
|
+
case 26:
|
|
2769
|
+
case "end":
|
|
2770
|
+
return _context109.stop();
|
|
3259
2771
|
}
|
|
3260
2772
|
}, _callee109, this);
|
|
3261
2773
|
}));
|
|
@@ -3266,41 +2778,31 @@ export var ApiService = /*#__PURE__*/function () {
|
|
|
3266
2778
|
return __awaiter(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime.mark(function _callee110() {
|
|
3267
2779
|
var responseJson;
|
|
3268
2780
|
return _regeneratorRuntime.wrap(function _callee110$(_context110) {
|
|
3269
|
-
while (1) {
|
|
3270
|
-
|
|
3271
|
-
|
|
3272
|
-
|
|
3273
|
-
|
|
3274
|
-
|
|
3275
|
-
|
|
3276
|
-
|
|
3277
|
-
|
|
3278
|
-
|
|
3279
|
-
|
|
3280
|
-
|
|
3281
|
-
|
|
3282
|
-
|
|
3283
|
-
|
|
3284
|
-
|
|
3285
|
-
|
|
3286
|
-
|
|
3287
|
-
|
|
3288
|
-
|
|
3289
|
-
|
|
3290
|
-
|
|
3291
|
-
|
|
3292
|
-
|
|
3293
|
-
|
|
3294
|
-
case 8:
|
|
3295
|
-
responseJson = _context110.sent;
|
|
3296
|
-
|
|
3297
|
-
case 9:
|
|
3298
|
-
return _context110.abrupt("return", new ErrorResponse(responseJson, response.status, tokenError));
|
|
3299
|
-
|
|
3300
|
-
case 10:
|
|
3301
|
-
case "end":
|
|
3302
|
-
return _context110.stop();
|
|
3303
|
-
}
|
|
2781
|
+
while (1) switch (_context110.prev = _context110.next) {
|
|
2782
|
+
case 0:
|
|
2783
|
+
if (!(authed && (tokenError && response.status === 400 || response.status === 401 || response.status === 403))) {
|
|
2784
|
+
_context110.next = 4;
|
|
2785
|
+
break;
|
|
2786
|
+
}
|
|
2787
|
+
_context110.next = 3;
|
|
2788
|
+
return this.logoutCallback(true);
|
|
2789
|
+
case 3:
|
|
2790
|
+
return _context110.abrupt("return", null);
|
|
2791
|
+
case 4:
|
|
2792
|
+
responseJson = null;
|
|
2793
|
+
if (!this.isJsonResponse(response)) {
|
|
2794
|
+
_context110.next = 9;
|
|
2795
|
+
break;
|
|
2796
|
+
}
|
|
2797
|
+
_context110.next = 8;
|
|
2798
|
+
return response.json();
|
|
2799
|
+
case 8:
|
|
2800
|
+
responseJson = _context110.sent;
|
|
2801
|
+
case 9:
|
|
2802
|
+
return _context110.abrupt("return", new ErrorResponse(responseJson, response.status, tokenError));
|
|
2803
|
+
case 10:
|
|
2804
|
+
case "end":
|
|
2805
|
+
return _context110.stop();
|
|
3304
2806
|
}
|
|
3305
2807
|
}, _callee110, this);
|
|
3306
2808
|
}));
|
|
@@ -3311,79 +2813,63 @@ export var ApiService = /*#__PURE__*/function () {
|
|
|
3311
2813
|
return __awaiter(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime.mark(function _callee111() {
|
|
3312
2814
|
var refreshToken, headers, decodedToken, response, responseJson, tokenResponse, error;
|
|
3313
2815
|
return _regeneratorRuntime.wrap(function _callee111$(_context111) {
|
|
3314
|
-
while (1) {
|
|
3315
|
-
|
|
3316
|
-
|
|
3317
|
-
|
|
3318
|
-
|
|
3319
|
-
|
|
3320
|
-
|
|
3321
|
-
|
|
3322
|
-
|
|
3323
|
-
|
|
3324
|
-
|
|
3325
|
-
|
|
3326
|
-
|
|
3327
|
-
|
|
3328
|
-
|
|
3329
|
-
|
|
3330
|
-
|
|
3331
|
-
|
|
3332
|
-
|
|
3333
|
-
|
|
3334
|
-
|
|
3335
|
-
|
|
3336
|
-
|
|
3337
|
-
|
|
3338
|
-
|
|
3339
|
-
|
|
3340
|
-
|
|
3341
|
-
|
|
3342
|
-
|
|
3343
|
-
|
|
3344
|
-
|
|
3345
|
-
|
|
3346
|
-
|
|
3347
|
-
|
|
3348
|
-
|
|
3349
|
-
|
|
3350
|
-
|
|
3351
|
-
|
|
3352
|
-
|
|
3353
|
-
|
|
3354
|
-
|
|
3355
|
-
|
|
3356
|
-
|
|
3357
|
-
|
|
3358
|
-
|
|
3359
|
-
|
|
3360
|
-
|
|
3361
|
-
|
|
3362
|
-
|
|
3363
|
-
|
|
3364
|
-
|
|
3365
|
-
|
|
3366
|
-
|
|
3367
|
-
|
|
3368
|
-
|
|
3369
|
-
|
|
3370
|
-
|
|
3371
|
-
|
|
3372
|
-
case 18:
|
|
3373
|
-
return _context111.abrupt("return", tokenResponse);
|
|
3374
|
-
|
|
3375
|
-
case 21:
|
|
3376
|
-
_context111.next = 23;
|
|
3377
|
-
return this.handleError(response, true, true);
|
|
3378
|
-
|
|
3379
|
-
case 23:
|
|
3380
|
-
error = _context111.sent;
|
|
3381
|
-
return _context111.abrupt("return", Promise.reject(error));
|
|
3382
|
-
|
|
3383
|
-
case 25:
|
|
3384
|
-
case "end":
|
|
3385
|
-
return _context111.stop();
|
|
3386
|
-
}
|
|
2816
|
+
while (1) switch (_context111.prev = _context111.next) {
|
|
2817
|
+
case 0:
|
|
2818
|
+
_context111.next = 2;
|
|
2819
|
+
return this.tokenService.getRefreshToken();
|
|
2820
|
+
case 2:
|
|
2821
|
+
refreshToken = _context111.sent;
|
|
2822
|
+
if (!(refreshToken == null || refreshToken === '')) {
|
|
2823
|
+
_context111.next = 5;
|
|
2824
|
+
break;
|
|
2825
|
+
}
|
|
2826
|
+
throw new Error();
|
|
2827
|
+
case 5:
|
|
2828
|
+
headers = new Headers({
|
|
2829
|
+
'Content-Type': 'application/x-www-form-urlencoded; charset=utf-8',
|
|
2830
|
+
'Accept': 'application/json',
|
|
2831
|
+
'Device-Type': this.deviceType
|
|
2832
|
+
});
|
|
2833
|
+
if (this.customUserAgent != null) {
|
|
2834
|
+
headers.set('User-Agent', this.customUserAgent);
|
|
2835
|
+
}
|
|
2836
|
+
decodedToken = this.tokenService.decodeToken();
|
|
2837
|
+
_context111.next = 10;
|
|
2838
|
+
return this.fetch(new Request(this.identityBaseUrl + '/connect/token', {
|
|
2839
|
+
body: this.qsStringify({
|
|
2840
|
+
grant_type: 'refresh_token',
|
|
2841
|
+
client_id: decodedToken.client_id,
|
|
2842
|
+
refresh_token: refreshToken
|
|
2843
|
+
}),
|
|
2844
|
+
cache: 'no-store',
|
|
2845
|
+
credentials: this.getCredentials(),
|
|
2846
|
+
headers: headers,
|
|
2847
|
+
method: 'POST'
|
|
2848
|
+
}));
|
|
2849
|
+
case 10:
|
|
2850
|
+
response = _context111.sent;
|
|
2851
|
+
if (!(response.status === 200)) {
|
|
2852
|
+
_context111.next = 21;
|
|
2853
|
+
break;
|
|
2854
|
+
}
|
|
2855
|
+
_context111.next = 14;
|
|
2856
|
+
return response.json();
|
|
2857
|
+
case 14:
|
|
2858
|
+
responseJson = _context111.sent;
|
|
2859
|
+
tokenResponse = new IdentityTokenResponse(responseJson);
|
|
2860
|
+
_context111.next = 18;
|
|
2861
|
+
return this.tokenService.setTokens(tokenResponse.accessToken, tokenResponse.refreshToken);
|
|
2862
|
+
case 18:
|
|
2863
|
+
return _context111.abrupt("return", tokenResponse);
|
|
2864
|
+
case 21:
|
|
2865
|
+
_context111.next = 23;
|
|
2866
|
+
return this.handleError(response, true, true);
|
|
2867
|
+
case 23:
|
|
2868
|
+
error = _context111.sent;
|
|
2869
|
+
return _context111.abrupt("return", Promise.reject(error));
|
|
2870
|
+
case 25:
|
|
2871
|
+
case "end":
|
|
2872
|
+
return _context111.stop();
|
|
3387
2873
|
}
|
|
3388
2874
|
}, _callee111, this);
|
|
3389
2875
|
}));
|
|
@@ -3401,7 +2887,6 @@ export var ApiService = /*#__PURE__*/function () {
|
|
|
3401
2887
|
if (this.device !== DeviceType.SafariExtension && (!this.isWebClient || this.usingBaseUrl)) {
|
|
3402
2888
|
return 'include';
|
|
3403
2889
|
}
|
|
3404
|
-
|
|
3405
2890
|
return undefined;
|
|
3406
2891
|
}
|
|
3407
2892
|
}, {
|
|
@@ -3410,17 +2895,14 @@ export var ApiService = /*#__PURE__*/function () {
|
|
|
3410
2895
|
if (start != null) {
|
|
3411
2896
|
base += '?start=' + start;
|
|
3412
2897
|
}
|
|
3413
|
-
|
|
3414
2898
|
if (end != null) {
|
|
3415
2899
|
base += base.indexOf('?') > -1 ? '&' : '?';
|
|
3416
2900
|
base += 'end=' + end;
|
|
3417
2901
|
}
|
|
3418
|
-
|
|
3419
2902
|
if (token != null) {
|
|
3420
2903
|
base += base.indexOf('?') > -1 ? '&' : '?';
|
|
3421
2904
|
base += 'continuationToken=' + token;
|
|
3422
2905
|
}
|
|
3423
|
-
|
|
3424
2906
|
return base;
|
|
3425
2907
|
}
|
|
3426
2908
|
}, {
|
|
@@ -3430,6 +2912,5 @@ export var ApiService = /*#__PURE__*/function () {
|
|
|
3430
2912
|
return typeHeader != null && typeHeader.indexOf('application/json') > -1;
|
|
3431
2913
|
}
|
|
3432
2914
|
}]);
|
|
3433
|
-
|
|
3434
2915
|
return ApiService;
|
|
3435
2916
|
}();
|