agentmail 0.5.24 → 0.5.26
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/dist/cjs/BaseClient.js +2 -2
- package/dist/cjs/api/resources/apiKeys/client/Client.d.ts +37 -167
- package/dist/cjs/api/resources/apiKeys/client/Client.js +65 -627
- package/dist/cjs/api/resources/apiKeys/client/requests/ListApiKeysRequest.d.ts +2 -0
- package/dist/cjs/api/resources/apiKeys/client/requests/index.d.ts +0 -5
- package/dist/cjs/api/resources/apiKeys/types/AcceptDisclosure.d.ts +6 -0
- package/dist/cjs/api/resources/apiKeys/types/ApiKey.d.ts +6 -13
- package/dist/cjs/api/resources/apiKeys/types/ApiKeyCreator.d.ts +7 -0
- package/dist/cjs/api/resources/apiKeys/types/ApiKeyMutableFields.d.ts +8 -0
- package/dist/cjs/api/resources/apiKeys/types/ApiKeyPermissions.d.ts +10 -0
- package/dist/cjs/api/resources/apiKeys/types/ApiKeyType.d.ts +5 -0
- package/dist/cjs/api/resources/apiKeys/types/ApiKeyType.js +8 -0
- package/dist/cjs/api/resources/apiKeys/types/AuthToken.d.ts +4 -0
- package/dist/cjs/api/resources/apiKeys/types/BearerApiKey.d.ts +17 -0
- package/dist/cjs/api/resources/apiKeys/types/CreateApiKeyRequest.d.ts +5 -4
- package/dist/cjs/api/resources/apiKeys/types/CreateApiKeyResponse.d.ts +2 -4
- package/dist/cjs/api/resources/apiKeys/types/CreateApiKeyResult.d.ts +5 -0
- package/dist/cjs/api/resources/apiKeys/types/CreateBearerApiKeyRequest.d.ts +3 -0
- package/dist/cjs/api/resources/apiKeys/types/CreatePublicKeyRequest.d.ts +10 -15
- package/dist/cjs/api/resources/apiKeys/types/ExpiresAt.d.ts +4 -0
- package/dist/cjs/api/resources/apiKeys/types/InboxScopeId.d.ts +4 -0
- package/dist/cjs/api/resources/apiKeys/types/ListApiKeysResponse.d.ts +4 -1
- package/dist/cjs/api/resources/apiKeys/types/PodScopeId.d.ts +4 -0
- package/dist/cjs/api/resources/apiKeys/types/PublicKeyClientId.d.ts +7 -0
- package/dist/cjs/api/resources/apiKeys/types/PublicKeyCredential.d.ts +18 -15
- package/dist/cjs/api/resources/apiKeys/types/PublicKeyStatus.d.ts +10 -0
- package/dist/cjs/api/resources/apiKeys/types/PublicKeyStatus.js +13 -0
- package/dist/cjs/api/resources/apiKeys/types/UpdateApiKeyRequest.d.ts +7 -0
- package/dist/cjs/api/resources/apiKeys/types/UpdatedAt.d.ts +4 -0
- package/dist/cjs/api/resources/apiKeys/types/UsedAt.d.ts +4 -0
- package/dist/cjs/api/resources/apiKeys/types/index.d.ts +16 -25
- package/dist/cjs/api/resources/apiKeys/types/index.js +16 -25
- package/dist/cjs/api/resources/domains/client/Client.d.ts +1 -0
- package/dist/cjs/api/resources/domains/client/Client.js +9 -0
- package/dist/cjs/api/resources/domains/types/CreateDomainRequest.d.ts +8 -0
- package/dist/cjs/api/resources/inboxes/client/Client.d.ts +19 -3
- package/dist/cjs/api/resources/inboxes/client/Client.js +98 -19
- package/dist/cjs/api/resources/inboxes/resources/apiKeys/client/Client.d.ts +20 -1
- package/dist/cjs/api/resources/inboxes/resources/apiKeys/client/Client.js +85 -1
- package/dist/cjs/api/resources/inboxes/resources/index.d.ts +0 -1
- package/dist/cjs/api/resources/inboxes/resources/index.js +1 -2
- package/dist/cjs/api/resources/inboxes/types/AuthorizeInboxRequest.d.ts +10 -0
- package/dist/cjs/api/resources/inboxes/types/index.d.ts +1 -0
- package/dist/cjs/api/resources/inboxes/types/index.js +1 -0
- package/dist/cjs/api/resources/pods/resources/apiKeys/client/Client.d.ts +19 -0
- package/dist/cjs/api/resources/pods/resources/apiKeys/client/Client.js +84 -0
- package/dist/cjs/api/resources/pods/resources/domains/client/Client.d.ts +1 -0
- package/dist/cjs/api/resources/pods/resources/domains/client/Client.js +9 -0
- package/dist/cjs/api/resources/providers/client/Client.d.ts +7 -9
- package/dist/cjs/api/resources/providers/client/Client.js +7 -15
- package/dist/cjs/api/resources/providers/types/ConnectAccepted.d.ts +9 -0
- package/dist/cjs/api/resources/providers/types/ConnectInboxId.d.ts +5 -0
- package/dist/cjs/api/resources/providers/types/ConnectProviderBody.d.ts +2 -4
- package/dist/cjs/api/resources/providers/types/MagicUrl.d.ts +4 -0
- package/dist/cjs/api/resources/providers/types/Provider.d.ts +2 -0
- package/dist/cjs/api/resources/providers/types/index.d.ts +3 -1
- package/dist/cjs/api/resources/providers/types/index.js +3 -1
- package/dist/cjs/serialization/resources/apiKeys/types/AcceptDisclosure.d.ts +7 -0
- package/dist/cjs/serialization/resources/apiKeys/types/{OrganizationPublicKeyScope.js → AcceptDisclosure.js} +2 -2
- package/dist/cjs/serialization/resources/apiKeys/types/ApiKey.d.ts +4 -16
- package/dist/cjs/serialization/resources/apiKeys/types/ApiKey.js +3 -15
- package/dist/cjs/serialization/resources/apiKeys/types/ApiKeyCreator.d.ts +10 -0
- package/dist/cjs/serialization/resources/apiKeys/types/{InboxPublicKeyScope.js → ApiKeyCreator.js} +4 -3
- package/dist/cjs/serialization/resources/apiKeys/types/ApiKeyMutableFields.d.ts +12 -0
- package/dist/cjs/serialization/resources/apiKeys/types/ApiKeyMutableFields.js +44 -0
- package/dist/cjs/serialization/resources/apiKeys/types/ApiKeyPermissions.d.ts +2 -0
- package/dist/cjs/serialization/resources/apiKeys/types/ApiKeyPermissions.js +2 -0
- package/dist/cjs/serialization/resources/apiKeys/types/ApiKeyType.d.ts +7 -0
- package/dist/cjs/serialization/resources/apiKeys/types/{BrowserAuthorizationListLimit.js → ApiKeyType.js} +2 -2
- package/dist/cjs/serialization/resources/apiKeys/types/AuthToken.d.ts +7 -0
- package/dist/cjs/serialization/resources/apiKeys/types/{BrowserEnrollmentTransactionJti.js → AuthToken.js} +2 -2
- package/dist/cjs/serialization/resources/apiKeys/types/BearerApiKey.d.ts +29 -0
- package/dist/cjs/serialization/resources/apiKeys/types/{ListBrowserCredentialsResponse.js → BearerApiKey.js} +23 -10
- package/dist/cjs/serialization/resources/apiKeys/types/CreateApiKeyRequest.d.ts +4 -7
- package/dist/cjs/serialization/resources/apiKeys/types/CreateApiKeyRequest.js +3 -6
- package/dist/cjs/serialization/resources/apiKeys/types/CreateApiKeyResponse.d.ts +4 -2
- package/dist/cjs/serialization/resources/apiKeys/types/CreateApiKeyResponse.js +4 -2
- package/dist/cjs/serialization/resources/apiKeys/types/CreateApiKeyResult.d.ts +9 -0
- package/dist/cjs/serialization/resources/apiKeys/types/{BrowserCredentialCreator.js → CreateApiKeyResult.js} +4 -6
- package/dist/cjs/serialization/resources/apiKeys/types/CreateBearerApiKeyRequest.d.ts +9 -0
- package/dist/cjs/serialization/resources/apiKeys/types/CreateBearerApiKeyRequest.js +40 -0
- package/dist/cjs/serialization/resources/apiKeys/types/CreatePublicKeyRequest.d.ts +8 -4
- package/dist/cjs/serialization/resources/apiKeys/types/CreatePublicKeyRequest.js +8 -4
- package/dist/cjs/serialization/resources/apiKeys/types/ExpiresAt.d.ts +7 -0
- package/dist/cjs/serialization/resources/apiKeys/types/{PodPublicKeyScope.js → ExpiresAt.js} +2 -4
- package/dist/cjs/serialization/resources/apiKeys/types/InboxScopeId.d.ts +7 -0
- package/dist/cjs/serialization/resources/apiKeys/types/InboxScopeId.js +39 -0
- package/dist/cjs/serialization/resources/apiKeys/types/PodScopeId.d.ts +7 -0
- package/dist/cjs/serialization/resources/apiKeys/types/PodScopeId.js +39 -0
- package/dist/cjs/serialization/resources/apiKeys/types/PublicKeyClientId.d.ts +7 -0
- package/dist/cjs/serialization/resources/apiKeys/types/PublicKeyClientId.js +39 -0
- package/dist/cjs/serialization/resources/apiKeys/types/PublicKeyCredential.d.ts +23 -8
- package/dist/cjs/serialization/resources/apiKeys/types/PublicKeyCredential.js +23 -8
- package/dist/cjs/serialization/resources/apiKeys/types/PublicKeyStatus.d.ts +7 -0
- package/dist/cjs/serialization/resources/apiKeys/types/PublicKeyStatus.js +39 -0
- package/dist/cjs/serialization/resources/apiKeys/types/UpdateApiKeyRequest.d.ts +9 -0
- package/dist/cjs/serialization/resources/apiKeys/types/{BrowserLifecycleApiKeyActor.js → UpdateApiKeyRequest.js} +3 -4
- package/dist/cjs/serialization/resources/apiKeys/types/UpdatedAt.d.ts +7 -0
- package/dist/cjs/serialization/resources/apiKeys/types/UpdatedAt.js +39 -0
- package/dist/cjs/serialization/resources/apiKeys/types/UsedAt.d.ts +7 -0
- package/dist/cjs/serialization/resources/apiKeys/types/UsedAt.js +39 -0
- package/dist/cjs/serialization/resources/apiKeys/types/index.d.ts +16 -25
- package/dist/cjs/serialization/resources/apiKeys/types/index.js +16 -25
- package/dist/cjs/serialization/resources/domains/types/CreateDomainRequest.d.ts +1 -0
- package/dist/cjs/serialization/resources/domains/types/CreateDomainRequest.js +1 -0
- package/dist/cjs/serialization/resources/inboxes/types/AuthorizeInboxRequest.d.ts +12 -0
- package/dist/cjs/serialization/resources/{apiKeys/types/BrowserLifecycleCredentialActor.js → inboxes/types/AuthorizeInboxRequest.js} +6 -4
- package/dist/cjs/serialization/resources/inboxes/types/index.d.ts +1 -0
- package/dist/cjs/serialization/resources/inboxes/types/index.js +1 -0
- package/dist/cjs/serialization/resources/providers/types/ConnectAccepted.d.ts +14 -0
- package/dist/cjs/serialization/resources/{apiKeys/types/BrowserEnrollmentAccepted.js → providers/types/ConnectAccepted.js} +8 -5
- package/dist/cjs/serialization/resources/providers/types/ConnectInboxId.d.ts +8 -0
- package/dist/cjs/serialization/resources/providers/types/ConnectInboxId.js +6 -0
- package/dist/cjs/serialization/resources/providers/types/ConnectProviderBody.d.ts +4 -3
- package/dist/cjs/serialization/resources/providers/types/ConnectProviderBody.js +4 -3
- package/dist/cjs/serialization/resources/providers/types/MagicUrl.d.ts +7 -0
- package/dist/cjs/serialization/resources/providers/types/MagicUrl.js +39 -0
- package/dist/cjs/serialization/resources/providers/types/Provider.d.ts +1 -0
- package/dist/cjs/serialization/resources/providers/types/Provider.js +1 -0
- package/dist/cjs/serialization/resources/providers/types/index.d.ts +3 -1
- package/dist/cjs/serialization/resources/providers/types/index.js +3 -1
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/BaseClient.mjs +2 -2
- package/dist/esm/api/resources/apiKeys/client/Client.d.mts +37 -167
- package/dist/esm/api/resources/apiKeys/client/Client.mjs +66 -628
- package/dist/esm/api/resources/apiKeys/client/requests/ListApiKeysRequest.d.mts +2 -0
- package/dist/esm/api/resources/apiKeys/client/requests/index.d.mts +0 -5
- package/dist/esm/api/resources/apiKeys/types/AcceptDisclosure.d.mts +6 -0
- package/dist/esm/api/resources/apiKeys/types/ApiKey.d.mts +6 -13
- package/dist/esm/api/resources/apiKeys/types/ApiKeyCreator.d.mts +7 -0
- package/dist/esm/api/resources/apiKeys/types/ApiKeyMutableFields.d.mts +8 -0
- package/dist/esm/api/resources/apiKeys/types/ApiKeyPermissions.d.mts +10 -0
- package/dist/esm/api/resources/apiKeys/types/ApiKeyType.d.mts +5 -0
- package/dist/esm/api/resources/apiKeys/types/ApiKeyType.mjs +5 -0
- package/dist/esm/api/resources/apiKeys/types/AuthToken.d.mts +4 -0
- package/dist/esm/api/resources/apiKeys/types/BearerApiKey.d.mts +17 -0
- package/dist/esm/api/resources/apiKeys/types/CreateApiKeyRequest.d.mts +5 -4
- package/dist/esm/api/resources/apiKeys/types/CreateApiKeyResponse.d.mts +2 -4
- package/dist/esm/api/resources/apiKeys/types/CreateApiKeyResult.d.mts +5 -0
- package/dist/esm/api/resources/apiKeys/types/CreateBearerApiKeyRequest.d.mts +3 -0
- package/dist/esm/api/resources/apiKeys/types/CreatePublicKeyRequest.d.mts +10 -15
- package/dist/esm/api/resources/apiKeys/types/ExpiresAt.d.mts +4 -0
- package/dist/esm/api/resources/apiKeys/types/InboxScopeId.d.mts +4 -0
- package/dist/esm/api/resources/apiKeys/types/ListApiKeysResponse.d.mts +4 -1
- package/dist/esm/api/resources/apiKeys/types/PodScopeId.d.mts +4 -0
- package/dist/esm/api/resources/apiKeys/types/PublicKeyClientId.d.mts +7 -0
- package/dist/esm/api/resources/apiKeys/types/PublicKeyCredential.d.mts +18 -15
- package/dist/esm/api/resources/apiKeys/types/PublicKeyStatus.d.mts +10 -0
- package/dist/esm/api/resources/apiKeys/types/PublicKeyStatus.mjs +10 -0
- package/dist/esm/api/resources/apiKeys/types/UpdateApiKeyRequest.d.mts +7 -0
- package/dist/esm/api/resources/apiKeys/types/UpdatedAt.d.mts +4 -0
- package/dist/esm/api/resources/apiKeys/types/UsedAt.d.mts +4 -0
- package/dist/esm/api/resources/apiKeys/types/index.d.mts +16 -25
- package/dist/esm/api/resources/apiKeys/types/index.mjs +16 -25
- package/dist/esm/api/resources/domains/client/Client.d.mts +1 -0
- package/dist/esm/api/resources/domains/client/Client.mjs +9 -0
- package/dist/esm/api/resources/domains/types/CreateDomainRequest.d.mts +8 -0
- package/dist/esm/api/resources/inboxes/client/Client.d.mts +19 -3
- package/dist/esm/api/resources/inboxes/client/Client.mjs +84 -5
- package/dist/esm/api/resources/inboxes/resources/apiKeys/client/Client.d.mts +20 -1
- package/dist/esm/api/resources/inboxes/resources/apiKeys/client/Client.mjs +85 -1
- package/dist/esm/api/resources/inboxes/resources/index.d.mts +0 -1
- package/dist/esm/api/resources/inboxes/resources/index.mjs +0 -1
- package/dist/esm/api/resources/inboxes/types/AuthorizeInboxRequest.d.mts +10 -0
- package/dist/esm/api/resources/inboxes/types/index.d.mts +1 -0
- package/dist/esm/api/resources/inboxes/types/index.mjs +1 -0
- package/dist/esm/api/resources/pods/resources/apiKeys/client/Client.d.mts +19 -0
- package/dist/esm/api/resources/pods/resources/apiKeys/client/Client.mjs +84 -0
- package/dist/esm/api/resources/pods/resources/domains/client/Client.d.mts +1 -0
- package/dist/esm/api/resources/pods/resources/domains/client/Client.mjs +9 -0
- package/dist/esm/api/resources/providers/client/Client.d.mts +7 -9
- package/dist/esm/api/resources/providers/client/Client.mjs +8 -16
- package/dist/esm/api/resources/providers/types/ConnectAccepted.d.mts +9 -0
- package/dist/esm/api/resources/providers/types/ConnectInboxId.d.mts +5 -0
- package/dist/esm/api/resources/providers/types/ConnectProviderBody.d.mts +2 -4
- package/dist/esm/api/resources/providers/types/MagicUrl.d.mts +4 -0
- package/dist/esm/api/resources/providers/types/Provider.d.mts +2 -0
- package/dist/esm/api/resources/providers/types/index.d.mts +3 -1
- package/dist/esm/api/resources/providers/types/index.mjs +3 -1
- package/dist/esm/serialization/resources/apiKeys/types/AcceptDisclosure.d.mts +7 -0
- package/dist/esm/serialization/resources/apiKeys/types/{OrganizationPublicKeyScope.mjs → AcceptDisclosure.mjs} +1 -1
- package/dist/esm/serialization/resources/apiKeys/types/ApiKey.d.mts +4 -16
- package/dist/esm/serialization/resources/apiKeys/types/ApiKey.mjs +3 -15
- package/dist/esm/serialization/resources/apiKeys/types/ApiKeyCreator.d.mts +10 -0
- package/dist/esm/serialization/resources/apiKeys/types/ApiKeyCreator.mjs +6 -0
- package/dist/esm/serialization/resources/apiKeys/types/ApiKeyMutableFields.d.mts +12 -0
- package/dist/esm/serialization/resources/apiKeys/types/ApiKeyMutableFields.mjs +8 -0
- package/dist/esm/serialization/resources/apiKeys/types/ApiKeyPermissions.d.mts +2 -0
- package/dist/esm/serialization/resources/apiKeys/types/ApiKeyPermissions.mjs +2 -0
- package/dist/esm/serialization/resources/apiKeys/types/ApiKeyType.d.mts +7 -0
- package/dist/esm/serialization/resources/apiKeys/types/{PodPublicKeyScope.mjs → ApiKeyType.mjs} +1 -3
- package/dist/esm/serialization/resources/apiKeys/types/AuthToken.d.mts +7 -0
- package/dist/esm/serialization/resources/apiKeys/types/{BrowserAuthorizationListLimit.mjs → AuthToken.mjs} +1 -1
- package/dist/esm/serialization/resources/apiKeys/types/BearerApiKey.d.mts +29 -0
- package/dist/esm/serialization/resources/apiKeys/types/BearerApiKey.mjs +25 -0
- package/dist/esm/serialization/resources/apiKeys/types/CreateApiKeyRequest.d.mts +4 -7
- package/dist/esm/serialization/resources/apiKeys/types/CreateApiKeyRequest.mjs +3 -6
- package/dist/esm/serialization/resources/apiKeys/types/CreateApiKeyResponse.d.mts +4 -2
- package/dist/esm/serialization/resources/apiKeys/types/CreateApiKeyResponse.mjs +4 -2
- package/dist/esm/serialization/resources/apiKeys/types/CreateApiKeyResult.d.mts +9 -0
- package/dist/esm/serialization/resources/apiKeys/types/CreateApiKeyResult.mjs +5 -0
- package/dist/esm/serialization/resources/apiKeys/types/CreateBearerApiKeyRequest.d.mts +9 -0
- package/dist/esm/serialization/resources/apiKeys/types/CreateBearerApiKeyRequest.mjs +4 -0
- package/dist/esm/serialization/resources/apiKeys/types/CreatePublicKeyRequest.d.mts +8 -4
- package/dist/esm/serialization/resources/apiKeys/types/CreatePublicKeyRequest.mjs +8 -4
- package/dist/esm/serialization/resources/apiKeys/types/ExpiresAt.d.mts +7 -0
- package/dist/esm/serialization/resources/apiKeys/types/{BrowserEnrollmentTransactionJti.mjs → ExpiresAt.mjs} +1 -1
- package/dist/esm/serialization/resources/apiKeys/types/InboxScopeId.d.mts +7 -0
- package/dist/esm/serialization/resources/apiKeys/types/InboxScopeId.mjs +3 -0
- package/dist/esm/serialization/resources/apiKeys/types/PodScopeId.d.mts +7 -0
- package/dist/esm/serialization/resources/apiKeys/types/PodScopeId.mjs +3 -0
- package/dist/esm/serialization/resources/apiKeys/types/PublicKeyClientId.d.mts +7 -0
- package/dist/esm/serialization/resources/apiKeys/types/PublicKeyClientId.mjs +3 -0
- package/dist/esm/serialization/resources/apiKeys/types/PublicKeyCredential.d.mts +23 -8
- package/dist/esm/serialization/resources/apiKeys/types/PublicKeyCredential.mjs +23 -8
- package/dist/esm/serialization/resources/apiKeys/types/PublicKeyStatus.d.mts +7 -0
- package/dist/esm/serialization/resources/apiKeys/types/PublicKeyStatus.mjs +3 -0
- package/dist/esm/serialization/resources/apiKeys/types/UpdateApiKeyRequest.d.mts +9 -0
- package/dist/esm/serialization/resources/apiKeys/types/UpdateApiKeyRequest.mjs +4 -0
- package/dist/esm/serialization/resources/apiKeys/types/UpdatedAt.d.mts +7 -0
- package/dist/esm/serialization/resources/apiKeys/types/UpdatedAt.mjs +3 -0
- package/dist/esm/serialization/resources/apiKeys/types/UsedAt.d.mts +7 -0
- package/dist/esm/serialization/resources/apiKeys/types/UsedAt.mjs +3 -0
- package/dist/esm/serialization/resources/apiKeys/types/index.d.mts +16 -25
- package/dist/esm/serialization/resources/apiKeys/types/index.mjs +16 -25
- package/dist/esm/serialization/resources/domains/types/CreateDomainRequest.d.mts +1 -0
- package/dist/esm/serialization/resources/domains/types/CreateDomainRequest.mjs +1 -0
- package/dist/esm/serialization/resources/inboxes/types/AuthorizeInboxRequest.d.mts +12 -0
- package/dist/esm/serialization/resources/inboxes/types/AuthorizeInboxRequest.mjs +8 -0
- package/dist/esm/serialization/resources/inboxes/types/index.d.mts +1 -0
- package/dist/esm/serialization/resources/inboxes/types/index.mjs +1 -0
- package/dist/esm/serialization/resources/providers/types/ConnectAccepted.d.mts +14 -0
- package/dist/esm/serialization/resources/providers/types/ConnectAccepted.mjs +10 -0
- package/dist/esm/serialization/resources/providers/types/ConnectInboxId.d.mts +8 -0
- package/dist/esm/serialization/resources/providers/types/ConnectInboxId.mjs +3 -0
- package/dist/esm/serialization/resources/providers/types/ConnectProviderBody.d.mts +4 -3
- package/dist/esm/serialization/resources/providers/types/ConnectProviderBody.mjs +4 -3
- package/dist/esm/serialization/resources/providers/types/MagicUrl.d.mts +7 -0
- package/dist/esm/serialization/resources/providers/types/MagicUrl.mjs +3 -0
- package/dist/esm/serialization/resources/providers/types/Provider.d.mts +1 -0
- package/dist/esm/serialization/resources/providers/types/Provider.mjs +1 -0
- package/dist/esm/serialization/resources/providers/types/index.d.mts +3 -1
- package/dist/esm/serialization/resources/providers/types/index.mjs +3 -1
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/dist/llms-full.txt +0 -1
- package/dist/llms.txt +7 -14
- package/package.json +1 -12
- package/reference.md +288 -729
- package/dist/cjs/api/resources/apiKeys/client/requests/ListBrowserConsentsRequest.d.ts +0 -12
- package/dist/cjs/api/resources/apiKeys/client/requests/ListBrowserCredentialEventsRequest.d.ts +0 -9
- package/dist/cjs/api/resources/apiKeys/client/requests/ListBrowserCredentialsRequest.d.ts +0 -9
- package/dist/cjs/api/resources/apiKeys/client/requests/ListPublicKeysRequest.d.ts +0 -10
- package/dist/cjs/api/resources/apiKeys/client/requests/RevokeAllAgentIdSignInKeysRequest.d.ts +0 -10
- package/dist/cjs/api/resources/apiKeys/types/BrowserAuthorizationListLimit.d.ts +0 -1
- package/dist/cjs/api/resources/apiKeys/types/BrowserConsent.d.ts +0 -16
- package/dist/cjs/api/resources/apiKeys/types/BrowserConsentLifecycleEvent.d.ts +0 -13
- package/dist/cjs/api/resources/apiKeys/types/BrowserConsentLifecycleEventType.d.ts +0 -7
- package/dist/cjs/api/resources/apiKeys/types/BrowserConsentLifecycleEventType.js +0 -10
- package/dist/cjs/api/resources/apiKeys/types/BrowserCredential.d.ts +0 -14
- package/dist/cjs/api/resources/apiKeys/types/BrowserCredentialCreator.d.ts +0 -7
- package/dist/cjs/api/resources/apiKeys/types/BrowserEnrollmentAccepted.d.ts +0 -11
- package/dist/cjs/api/resources/apiKeys/types/BrowserEnrollmentLifecycleEvent.d.ts +0 -12
- package/dist/cjs/api/resources/apiKeys/types/BrowserEnrollmentLifecycleEventType.d.ts +0 -7
- package/dist/cjs/api/resources/apiKeys/types/BrowserEnrollmentLifecycleEventType.js +0 -10
- package/dist/cjs/api/resources/apiKeys/types/BrowserEnrollmentTransactionJti.d.ts +0 -4
- package/dist/cjs/api/resources/apiKeys/types/BrowserLifecycleActor.d.ts +0 -10
- package/dist/cjs/api/resources/apiKeys/types/BrowserLifecycleApiKeyActor.d.ts +0 -3
- package/dist/cjs/api/resources/apiKeys/types/BrowserLifecycleCredentialActor.d.ts +0 -4
- package/dist/cjs/api/resources/apiKeys/types/BrowserLifecycleEvent.d.ts +0 -2
- package/dist/cjs/api/resources/apiKeys/types/CreateBrowserEnrollmentRequest.d.ts +0 -9
- package/dist/cjs/api/resources/apiKeys/types/InboxPublicKeyScope.d.ts +0 -7
- package/dist/cjs/api/resources/apiKeys/types/InboxPublicKeyScope.js +0 -3
- package/dist/cjs/api/resources/apiKeys/types/ListBrowserConsentsResponse.d.ts +0 -7
- package/dist/cjs/api/resources/apiKeys/types/ListBrowserConsentsResponse.js +0 -3
- package/dist/cjs/api/resources/apiKeys/types/ListBrowserCredentialsResponse.d.ts +0 -7
- package/dist/cjs/api/resources/apiKeys/types/ListBrowserCredentialsResponse.js +0 -3
- package/dist/cjs/api/resources/apiKeys/types/ListBrowserLifecycleEventsResponse.d.ts +0 -7
- package/dist/cjs/api/resources/apiKeys/types/ListBrowserLifecycleEventsResponse.js +0 -3
- package/dist/cjs/api/resources/apiKeys/types/ListPublicKeysResponse.d.ts +0 -7
- package/dist/cjs/api/resources/apiKeys/types/ListPublicKeysResponse.js +0 -3
- package/dist/cjs/api/resources/apiKeys/types/OrganizationPublicKeyScope.d.ts +0 -4
- package/dist/cjs/api/resources/apiKeys/types/OrganizationPublicKeyScope.js +0 -3
- package/dist/cjs/api/resources/apiKeys/types/PodPublicKeyScope.d.ts +0 -7
- package/dist/cjs/api/resources/apiKeys/types/PodPublicKeyScope.js +0 -3
- package/dist/cjs/api/resources/apiKeys/types/PublicKeyScope.d.ts +0 -16
- package/dist/cjs/api/resources/apiKeys/types/PublicKeyScope.js +0 -3
- package/dist/cjs/api/resources/apiKeys/types/RevokeAllAgentIdSignInKeysResponse.d.ts +0 -8
- package/dist/cjs/api/resources/apiKeys/types/RevokeAllAgentIdSignInKeysResponse.js +0 -3
- package/dist/cjs/api/resources/apiKeys/types/UpdatePublicKeyNameRequest.d.ts +0 -7
- package/dist/cjs/api/resources/apiKeys/types/UpdatePublicKeyNameRequest.js +0 -3
- package/dist/cjs/api/resources/inboxes/resources/browserCredentials/client/Client.d.ts +0 -55
- package/dist/cjs/api/resources/inboxes/resources/browserCredentials/client/Client.js +0 -175
- package/dist/cjs/api/resources/inboxes/resources/browserCredentials/client/index.d.ts +0 -1
- package/dist/cjs/api/resources/inboxes/resources/browserCredentials/client/index.js +0 -2
- package/dist/cjs/api/resources/inboxes/resources/browserCredentials/exports.d.ts +0 -2
- package/dist/cjs/api/resources/inboxes/resources/browserCredentials/exports.js +0 -21
- package/dist/cjs/api/resources/inboxes/resources/browserCredentials/index.d.ts +0 -1
- package/dist/cjs/api/resources/inboxes/resources/browserCredentials/index.js +0 -17
- package/dist/cjs/api/resources/providers/types/ConnectProviderAccepted.d.ts +0 -8
- package/dist/cjs/api/resources/providers/types/ConnectProviderAccepted.js +0 -3
- package/dist/cjs/serialization/resources/apiKeys/types/BrowserAuthorizationListLimit.d.ts +0 -7
- package/dist/cjs/serialization/resources/apiKeys/types/BrowserConsent.d.ts +0 -17
- package/dist/cjs/serialization/resources/apiKeys/types/BrowserConsent.js +0 -49
- package/dist/cjs/serialization/resources/apiKeys/types/BrowserConsentLifecycleEvent.d.ts +0 -20
- package/dist/cjs/serialization/resources/apiKeys/types/BrowserConsentLifecycleEvent.js +0 -52
- package/dist/cjs/serialization/resources/apiKeys/types/BrowserConsentLifecycleEventType.d.ts +0 -7
- package/dist/cjs/serialization/resources/apiKeys/types/BrowserConsentLifecycleEventType.js +0 -44
- package/dist/cjs/serialization/resources/apiKeys/types/BrowserCredential.d.ts +0 -17
- package/dist/cjs/serialization/resources/apiKeys/types/BrowserCredential.js +0 -49
- package/dist/cjs/serialization/resources/apiKeys/types/BrowserCredentialCreator.d.ts +0 -11
- package/dist/cjs/serialization/resources/apiKeys/types/BrowserEnrollmentAccepted.d.ts +0 -11
- package/dist/cjs/serialization/resources/apiKeys/types/BrowserEnrollmentLifecycleEvent.d.ts +0 -19
- package/dist/cjs/serialization/resources/apiKeys/types/BrowserEnrollmentLifecycleEvent.js +0 -51
- package/dist/cjs/serialization/resources/apiKeys/types/BrowserEnrollmentLifecycleEventType.d.ts +0 -7
- package/dist/cjs/serialization/resources/apiKeys/types/BrowserEnrollmentLifecycleEventType.js +0 -44
- package/dist/cjs/serialization/resources/apiKeys/types/BrowserEnrollmentTransactionJti.d.ts +0 -7
- package/dist/cjs/serialization/resources/apiKeys/types/BrowserLifecycleActor.d.ts +0 -15
- package/dist/cjs/serialization/resources/apiKeys/types/BrowserLifecycleActor.js +0 -49
- package/dist/cjs/serialization/resources/apiKeys/types/BrowserLifecycleApiKeyActor.d.ts +0 -9
- package/dist/cjs/serialization/resources/apiKeys/types/BrowserLifecycleCredentialActor.d.ts +0 -10
- package/dist/cjs/serialization/resources/apiKeys/types/BrowserLifecycleEvent.d.ts +0 -9
- package/dist/cjs/serialization/resources/apiKeys/types/BrowserLifecycleEvent.js +0 -41
- package/dist/cjs/serialization/resources/apiKeys/types/CreateBrowserEnrollmentRequest.d.ts +0 -10
- package/dist/cjs/serialization/resources/apiKeys/types/CreateBrowserEnrollmentRequest.js +0 -42
- package/dist/cjs/serialization/resources/apiKeys/types/InboxPublicKeyScope.d.ts +0 -9
- package/dist/cjs/serialization/resources/apiKeys/types/ListBrowserConsentsResponse.d.ts +0 -16
- package/dist/cjs/serialization/resources/apiKeys/types/ListBrowserConsentsResponse.js +0 -48
- package/dist/cjs/serialization/resources/apiKeys/types/ListBrowserCredentialsResponse.d.ts +0 -16
- package/dist/cjs/serialization/resources/apiKeys/types/ListBrowserLifecycleEventsResponse.d.ts +0 -16
- package/dist/cjs/serialization/resources/apiKeys/types/ListBrowserLifecycleEventsResponse.js +0 -48
- package/dist/cjs/serialization/resources/apiKeys/types/ListPublicKeysResponse.d.ts +0 -14
- package/dist/cjs/serialization/resources/apiKeys/types/ListPublicKeysResponse.js +0 -46
- package/dist/cjs/serialization/resources/apiKeys/types/OrganizationPublicKeyScope.d.ts +0 -7
- package/dist/cjs/serialization/resources/apiKeys/types/PodPublicKeyScope.d.ts +0 -9
- package/dist/cjs/serialization/resources/apiKeys/types/PublicKeyScope.d.ts +0 -19
- package/dist/cjs/serialization/resources/apiKeys/types/PublicKeyScope.js +0 -51
- package/dist/cjs/serialization/resources/apiKeys/types/RevokeAllAgentIdSignInKeysResponse.d.ts +0 -11
- package/dist/cjs/serialization/resources/apiKeys/types/RevokeAllAgentIdSignInKeysResponse.js +0 -43
- package/dist/cjs/serialization/resources/apiKeys/types/UpdatePublicKeyNameRequest.d.ts +0 -9
- package/dist/cjs/serialization/resources/apiKeys/types/UpdatePublicKeyNameRequest.js +0 -41
- package/dist/cjs/serialization/resources/providers/types/ConnectProviderAccepted.d.ts +0 -11
- package/dist/cjs/serialization/resources/providers/types/ConnectProviderAccepted.js +0 -43
- package/dist/esm/api/resources/apiKeys/client/requests/ListBrowserConsentsRequest.d.mts +0 -12
- package/dist/esm/api/resources/apiKeys/client/requests/ListBrowserCredentialEventsRequest.d.mts +0 -9
- package/dist/esm/api/resources/apiKeys/client/requests/ListBrowserCredentialsRequest.d.mts +0 -9
- package/dist/esm/api/resources/apiKeys/client/requests/ListPublicKeysRequest.d.mts +0 -10
- package/dist/esm/api/resources/apiKeys/client/requests/RevokeAllAgentIdSignInKeysRequest.d.mts +0 -10
- package/dist/esm/api/resources/apiKeys/types/BrowserAuthorizationListLimit.d.mts +0 -1
- package/dist/esm/api/resources/apiKeys/types/BrowserConsent.d.mts +0 -16
- package/dist/esm/api/resources/apiKeys/types/BrowserConsentLifecycleEvent.d.mts +0 -13
- package/dist/esm/api/resources/apiKeys/types/BrowserConsentLifecycleEventType.d.mts +0 -7
- package/dist/esm/api/resources/apiKeys/types/BrowserConsentLifecycleEventType.mjs +0 -7
- package/dist/esm/api/resources/apiKeys/types/BrowserCredential.d.mts +0 -14
- package/dist/esm/api/resources/apiKeys/types/BrowserCredentialCreator.d.mts +0 -7
- package/dist/esm/api/resources/apiKeys/types/BrowserEnrollmentAccepted.d.mts +0 -11
- package/dist/esm/api/resources/apiKeys/types/BrowserEnrollmentLifecycleEvent.d.mts +0 -12
- package/dist/esm/api/resources/apiKeys/types/BrowserEnrollmentLifecycleEventType.d.mts +0 -7
- package/dist/esm/api/resources/apiKeys/types/BrowserEnrollmentLifecycleEventType.mjs +0 -7
- package/dist/esm/api/resources/apiKeys/types/BrowserEnrollmentTransactionJti.d.mts +0 -4
- package/dist/esm/api/resources/apiKeys/types/BrowserLifecycleActor.d.mts +0 -10
- package/dist/esm/api/resources/apiKeys/types/BrowserLifecycleApiKeyActor.d.mts +0 -3
- package/dist/esm/api/resources/apiKeys/types/BrowserLifecycleCredentialActor.d.mts +0 -4
- package/dist/esm/api/resources/apiKeys/types/BrowserLifecycleEvent.d.mts +0 -2
- package/dist/esm/api/resources/apiKeys/types/CreateBrowserEnrollmentRequest.d.mts +0 -9
- package/dist/esm/api/resources/apiKeys/types/InboxPublicKeyScope.d.mts +0 -7
- package/dist/esm/api/resources/apiKeys/types/InboxPublicKeyScope.mjs +0 -2
- package/dist/esm/api/resources/apiKeys/types/ListBrowserConsentsResponse.d.mts +0 -7
- package/dist/esm/api/resources/apiKeys/types/ListBrowserConsentsResponse.mjs +0 -2
- package/dist/esm/api/resources/apiKeys/types/ListBrowserCredentialsResponse.d.mts +0 -7
- package/dist/esm/api/resources/apiKeys/types/ListBrowserCredentialsResponse.mjs +0 -2
- package/dist/esm/api/resources/apiKeys/types/ListBrowserLifecycleEventsResponse.d.mts +0 -7
- package/dist/esm/api/resources/apiKeys/types/ListBrowserLifecycleEventsResponse.mjs +0 -2
- package/dist/esm/api/resources/apiKeys/types/ListPublicKeysResponse.d.mts +0 -7
- package/dist/esm/api/resources/apiKeys/types/ListPublicKeysResponse.mjs +0 -2
- package/dist/esm/api/resources/apiKeys/types/OrganizationPublicKeyScope.d.mts +0 -4
- package/dist/esm/api/resources/apiKeys/types/OrganizationPublicKeyScope.mjs +0 -2
- package/dist/esm/api/resources/apiKeys/types/PodPublicKeyScope.d.mts +0 -7
- package/dist/esm/api/resources/apiKeys/types/PodPublicKeyScope.mjs +0 -2
- package/dist/esm/api/resources/apiKeys/types/PublicKeyScope.d.mts +0 -16
- package/dist/esm/api/resources/apiKeys/types/PublicKeyScope.mjs +0 -2
- package/dist/esm/api/resources/apiKeys/types/RevokeAllAgentIdSignInKeysResponse.d.mts +0 -8
- package/dist/esm/api/resources/apiKeys/types/RevokeAllAgentIdSignInKeysResponse.mjs +0 -2
- package/dist/esm/api/resources/apiKeys/types/UpdatePublicKeyNameRequest.d.mts +0 -7
- package/dist/esm/api/resources/apiKeys/types/UpdatePublicKeyNameRequest.mjs +0 -2
- package/dist/esm/api/resources/inboxes/resources/browserCredentials/client/Client.d.mts +0 -55
- package/dist/esm/api/resources/inboxes/resources/browserCredentials/client/Client.mjs +0 -138
- package/dist/esm/api/resources/inboxes/resources/browserCredentials/client/index.d.mts +0 -1
- package/dist/esm/api/resources/inboxes/resources/browserCredentials/client/index.mjs +0 -1
- package/dist/esm/api/resources/inboxes/resources/browserCredentials/exports.d.mts +0 -2
- package/dist/esm/api/resources/inboxes/resources/browserCredentials/exports.mjs +0 -3
- package/dist/esm/api/resources/inboxes/resources/browserCredentials/index.d.mts +0 -1
- package/dist/esm/api/resources/inboxes/resources/browserCredentials/index.mjs +0 -1
- package/dist/esm/api/resources/providers/types/ConnectProviderAccepted.d.mts +0 -8
- package/dist/esm/api/resources/providers/types/ConnectProviderAccepted.mjs +0 -2
- package/dist/esm/serialization/resources/apiKeys/types/BrowserAuthorizationListLimit.d.mts +0 -7
- package/dist/esm/serialization/resources/apiKeys/types/BrowserConsent.d.mts +0 -17
- package/dist/esm/serialization/resources/apiKeys/types/BrowserConsent.mjs +0 -13
- package/dist/esm/serialization/resources/apiKeys/types/BrowserConsentLifecycleEvent.d.mts +0 -20
- package/dist/esm/serialization/resources/apiKeys/types/BrowserConsentLifecycleEvent.mjs +0 -16
- package/dist/esm/serialization/resources/apiKeys/types/BrowserConsentLifecycleEventType.d.mts +0 -7
- package/dist/esm/serialization/resources/apiKeys/types/BrowserConsentLifecycleEventType.mjs +0 -8
- package/dist/esm/serialization/resources/apiKeys/types/BrowserCredential.d.mts +0 -17
- package/dist/esm/serialization/resources/apiKeys/types/BrowserCredential.mjs +0 -13
- package/dist/esm/serialization/resources/apiKeys/types/BrowserCredentialCreator.d.mts +0 -11
- package/dist/esm/serialization/resources/apiKeys/types/BrowserCredentialCreator.mjs +0 -7
- package/dist/esm/serialization/resources/apiKeys/types/BrowserEnrollmentAccepted.d.mts +0 -11
- package/dist/esm/serialization/resources/apiKeys/types/BrowserEnrollmentAccepted.mjs +0 -7
- package/dist/esm/serialization/resources/apiKeys/types/BrowserEnrollmentLifecycleEvent.d.mts +0 -19
- package/dist/esm/serialization/resources/apiKeys/types/BrowserEnrollmentLifecycleEvent.mjs +0 -15
- package/dist/esm/serialization/resources/apiKeys/types/BrowserEnrollmentLifecycleEventType.d.mts +0 -7
- package/dist/esm/serialization/resources/apiKeys/types/BrowserEnrollmentLifecycleEventType.mjs +0 -8
- package/dist/esm/serialization/resources/apiKeys/types/BrowserEnrollmentTransactionJti.d.mts +0 -7
- package/dist/esm/serialization/resources/apiKeys/types/BrowserLifecycleActor.d.mts +0 -15
- package/dist/esm/serialization/resources/apiKeys/types/BrowserLifecycleActor.mjs +0 -13
- package/dist/esm/serialization/resources/apiKeys/types/BrowserLifecycleApiKeyActor.d.mts +0 -9
- package/dist/esm/serialization/resources/apiKeys/types/BrowserLifecycleApiKeyActor.mjs +0 -5
- package/dist/esm/serialization/resources/apiKeys/types/BrowserLifecycleCredentialActor.d.mts +0 -10
- package/dist/esm/serialization/resources/apiKeys/types/BrowserLifecycleCredentialActor.mjs +0 -6
- package/dist/esm/serialization/resources/apiKeys/types/BrowserLifecycleEvent.d.mts +0 -9
- package/dist/esm/serialization/resources/apiKeys/types/BrowserLifecycleEvent.mjs +0 -5
- package/dist/esm/serialization/resources/apiKeys/types/CreateBrowserEnrollmentRequest.d.mts +0 -10
- package/dist/esm/serialization/resources/apiKeys/types/CreateBrowserEnrollmentRequest.mjs +0 -6
- package/dist/esm/serialization/resources/apiKeys/types/InboxPublicKeyScope.d.mts +0 -9
- package/dist/esm/serialization/resources/apiKeys/types/InboxPublicKeyScope.mjs +0 -5
- package/dist/esm/serialization/resources/apiKeys/types/ListBrowserConsentsResponse.d.mts +0 -16
- package/dist/esm/serialization/resources/apiKeys/types/ListBrowserConsentsResponse.mjs +0 -12
- package/dist/esm/serialization/resources/apiKeys/types/ListBrowserCredentialsResponse.d.mts +0 -16
- package/dist/esm/serialization/resources/apiKeys/types/ListBrowserCredentialsResponse.mjs +0 -12
- package/dist/esm/serialization/resources/apiKeys/types/ListBrowserLifecycleEventsResponse.d.mts +0 -16
- package/dist/esm/serialization/resources/apiKeys/types/ListBrowserLifecycleEventsResponse.mjs +0 -12
- package/dist/esm/serialization/resources/apiKeys/types/ListPublicKeysResponse.d.mts +0 -14
- package/dist/esm/serialization/resources/apiKeys/types/ListPublicKeysResponse.mjs +0 -10
- package/dist/esm/serialization/resources/apiKeys/types/OrganizationPublicKeyScope.d.mts +0 -7
- package/dist/esm/serialization/resources/apiKeys/types/PodPublicKeyScope.d.mts +0 -9
- package/dist/esm/serialization/resources/apiKeys/types/PublicKeyScope.d.mts +0 -19
- package/dist/esm/serialization/resources/apiKeys/types/PublicKeyScope.mjs +0 -15
- package/dist/esm/serialization/resources/apiKeys/types/RevokeAllAgentIdSignInKeysResponse.d.mts +0 -11
- package/dist/esm/serialization/resources/apiKeys/types/RevokeAllAgentIdSignInKeysResponse.mjs +0 -7
- package/dist/esm/serialization/resources/apiKeys/types/UpdatePublicKeyNameRequest.d.mts +0 -9
- package/dist/esm/serialization/resources/apiKeys/types/UpdatePublicKeyNameRequest.mjs +0 -5
- package/dist/esm/serialization/resources/providers/types/ConnectProviderAccepted.d.mts +0 -11
- package/dist/esm/serialization/resources/providers/types/ConnectProviderAccepted.mjs +0 -7
- /package/dist/cjs/api/resources/apiKeys/{client/requests/ListBrowserConsentsRequest.js → types/AcceptDisclosure.js} +0 -0
- /package/dist/cjs/api/resources/apiKeys/{client/requests/ListBrowserCredentialEventsRequest.js → types/ApiKeyCreator.js} +0 -0
- /package/dist/cjs/api/resources/apiKeys/{client/requests/ListBrowserCredentialsRequest.js → types/ApiKeyMutableFields.js} +0 -0
- /package/dist/cjs/api/resources/apiKeys/{client/requests/ListPublicKeysRequest.js → types/AuthToken.js} +0 -0
- /package/dist/cjs/api/resources/apiKeys/{client/requests/RevokeAllAgentIdSignInKeysRequest.js → types/BearerApiKey.js} +0 -0
- /package/dist/cjs/api/resources/apiKeys/types/{BrowserAuthorizationListLimit.js → CreateApiKeyResult.js} +0 -0
- /package/dist/cjs/api/resources/apiKeys/types/{BrowserConsent.js → CreateBearerApiKeyRequest.js} +0 -0
- /package/dist/cjs/api/resources/apiKeys/types/{BrowserConsentLifecycleEvent.js → ExpiresAt.js} +0 -0
- /package/dist/cjs/api/resources/apiKeys/types/{BrowserCredential.js → InboxScopeId.js} +0 -0
- /package/dist/cjs/api/resources/apiKeys/types/{BrowserCredentialCreator.js → PodScopeId.js} +0 -0
- /package/dist/cjs/api/resources/apiKeys/types/{BrowserEnrollmentAccepted.js → PublicKeyClientId.js} +0 -0
- /package/dist/cjs/api/resources/apiKeys/types/{BrowserEnrollmentLifecycleEvent.js → UpdateApiKeyRequest.js} +0 -0
- /package/dist/cjs/api/resources/apiKeys/types/{BrowserEnrollmentTransactionJti.js → UpdatedAt.js} +0 -0
- /package/dist/cjs/api/resources/apiKeys/types/{BrowserLifecycleActor.js → UsedAt.js} +0 -0
- /package/dist/cjs/api/resources/{apiKeys/types/BrowserLifecycleApiKeyActor.js → inboxes/types/AuthorizeInboxRequest.js} +0 -0
- /package/dist/cjs/api/resources/{apiKeys/types/BrowserLifecycleCredentialActor.js → providers/types/ConnectAccepted.js} +0 -0
- /package/dist/cjs/api/resources/{apiKeys/types/BrowserLifecycleEvent.js → providers/types/ConnectInboxId.js} +0 -0
- /package/dist/cjs/api/resources/{apiKeys/types/CreateBrowserEnrollmentRequest.js → providers/types/MagicUrl.js} +0 -0
- /package/dist/esm/api/resources/apiKeys/{client/requests/ListBrowserConsentsRequest.mjs → types/AcceptDisclosure.mjs} +0 -0
- /package/dist/esm/api/resources/apiKeys/{client/requests/ListBrowserCredentialEventsRequest.mjs → types/ApiKeyCreator.mjs} +0 -0
- /package/dist/esm/api/resources/apiKeys/{client/requests/ListBrowserCredentialsRequest.mjs → types/ApiKeyMutableFields.mjs} +0 -0
- /package/dist/esm/api/resources/apiKeys/{client/requests/ListPublicKeysRequest.mjs → types/AuthToken.mjs} +0 -0
- /package/dist/esm/api/resources/apiKeys/{client/requests/RevokeAllAgentIdSignInKeysRequest.mjs → types/BearerApiKey.mjs} +0 -0
- /package/dist/esm/api/resources/apiKeys/types/{BrowserAuthorizationListLimit.mjs → CreateApiKeyResult.mjs} +0 -0
- /package/dist/esm/api/resources/apiKeys/types/{BrowserConsent.mjs → CreateBearerApiKeyRequest.mjs} +0 -0
- /package/dist/esm/api/resources/apiKeys/types/{BrowserConsentLifecycleEvent.mjs → ExpiresAt.mjs} +0 -0
- /package/dist/esm/api/resources/apiKeys/types/{BrowserCredential.mjs → InboxScopeId.mjs} +0 -0
- /package/dist/esm/api/resources/apiKeys/types/{BrowserCredentialCreator.mjs → PodScopeId.mjs} +0 -0
- /package/dist/esm/api/resources/apiKeys/types/{BrowserEnrollmentAccepted.mjs → PublicKeyClientId.mjs} +0 -0
- /package/dist/esm/api/resources/apiKeys/types/{BrowserEnrollmentLifecycleEvent.mjs → UpdateApiKeyRequest.mjs} +0 -0
- /package/dist/esm/api/resources/apiKeys/types/{BrowserEnrollmentTransactionJti.mjs → UpdatedAt.mjs} +0 -0
- /package/dist/esm/api/resources/apiKeys/types/{BrowserLifecycleActor.mjs → UsedAt.mjs} +0 -0
- /package/dist/esm/api/resources/{apiKeys/types/BrowserLifecycleApiKeyActor.mjs → inboxes/types/AuthorizeInboxRequest.mjs} +0 -0
- /package/dist/esm/api/resources/{apiKeys/types/BrowserLifecycleCredentialActor.mjs → providers/types/ConnectAccepted.mjs} +0 -0
- /package/dist/esm/api/resources/{apiKeys/types/BrowserLifecycleEvent.mjs → providers/types/ConnectInboxId.mjs} +0 -0
- /package/dist/esm/api/resources/{apiKeys/types/CreateBrowserEnrollmentRequest.mjs → providers/types/MagicUrl.mjs} +0 -0
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import type * as AgentMail from "../../../../index.js";
|
|
2
|
-
/**
|
|
3
|
-
* @example
|
|
4
|
-
* {
|
|
5
|
-
* inboxId: "inbox_id"
|
|
6
|
-
* }
|
|
7
|
-
*/
|
|
8
|
-
export interface ListBrowserConsentsRequest {
|
|
9
|
-
inboxId: string;
|
|
10
|
-
limit?: AgentMail.BrowserAuthorizationListLimit;
|
|
11
|
-
pageToken?: AgentMail.PageToken;
|
|
12
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export type BrowserAuthorizationListLimit = number;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Remembered approval for one closed AgentID client and inbox.
|
|
3
|
-
*/
|
|
4
|
-
export interface BrowserConsent {
|
|
5
|
-
consentId: string;
|
|
6
|
-
inboxId: string;
|
|
7
|
-
clientType: "closed";
|
|
8
|
-
clientId: string;
|
|
9
|
-
/** Registered client URL, when one is available. */
|
|
10
|
-
clientUrl?: string;
|
|
11
|
-
/** At least one non-empty scope approved for this client. */
|
|
12
|
-
approvedScopes: string[];
|
|
13
|
-
createdAt: Date;
|
|
14
|
-
updatedAt: Date;
|
|
15
|
-
expiresAt: Date;
|
|
16
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import type * as AgentMail from "../../../index.js";
|
|
2
|
-
export interface BrowserConsentLifecycleEvent {
|
|
3
|
-
type: AgentMail.BrowserConsentLifecycleEventType;
|
|
4
|
-
traceId: string;
|
|
5
|
-
eventId: string;
|
|
6
|
-
occurredAt: Date;
|
|
7
|
-
organizationId: string;
|
|
8
|
-
podId: string;
|
|
9
|
-
actor: AgentMail.BrowserLifecycleActor;
|
|
10
|
-
consentId: string;
|
|
11
|
-
clientType: "closed";
|
|
12
|
-
clientId: string;
|
|
13
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export declare const BrowserConsentLifecycleEventType: {
|
|
2
|
-
readonly BrowserConsentCreated: "browser_consent_created";
|
|
3
|
-
readonly BrowserConsentUpdated: "browser_consent_updated";
|
|
4
|
-
readonly BrowserConsentReused: "browser_consent_reused";
|
|
5
|
-
readonly BrowserConsentRevoked: "browser_consent_revoked";
|
|
6
|
-
};
|
|
7
|
-
export type BrowserConsentLifecycleEventType = (typeof BrowserConsentLifecycleEventType)[keyof typeof BrowserConsentLifecycleEventType];
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.BrowserConsentLifecycleEventType = void 0;
|
|
5
|
-
exports.BrowserConsentLifecycleEventType = {
|
|
6
|
-
BrowserConsentCreated: "browser_consent_created",
|
|
7
|
-
BrowserConsentUpdated: "browser_consent_updated",
|
|
8
|
-
BrowserConsentReused: "browser_consent_reused",
|
|
9
|
-
BrowserConsentRevoked: "browser_consent_revoked",
|
|
10
|
-
};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import type * as AgentMail from "../../../index.js";
|
|
2
|
-
/**
|
|
3
|
-
* Owner-facing metadata for an active browser credential. Private key material never leaves the browser.
|
|
4
|
-
*/
|
|
5
|
-
export interface BrowserCredential {
|
|
6
|
-
credentialId: string;
|
|
7
|
-
publicKeyFingerprintPrefix: string;
|
|
8
|
-
organizationId: string;
|
|
9
|
-
podId: string;
|
|
10
|
-
inboxId: string;
|
|
11
|
-
createdBy: AgentMail.BrowserCredentialCreator;
|
|
12
|
-
createdAt: Date;
|
|
13
|
-
expiresAt: Date;
|
|
14
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Pending enrollment receipt. The browser completes key creation and proof
|
|
3
|
-
* on the existing AgentID page. This response contains no URL, token, or
|
|
4
|
-
* navigation instruction.
|
|
5
|
-
*/
|
|
6
|
-
export interface BrowserEnrollmentAccepted {
|
|
7
|
-
status: "pending";
|
|
8
|
-
enrollmentId: string;
|
|
9
|
-
/** Unix timestamp after which the pending enrollment cannot be activated. */
|
|
10
|
-
expiresAt: number;
|
|
11
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import type * as AgentMail from "../../../index.js";
|
|
2
|
-
export interface BrowserEnrollmentLifecycleEvent {
|
|
3
|
-
type: AgentMail.BrowserEnrollmentLifecycleEventType;
|
|
4
|
-
traceId: string;
|
|
5
|
-
eventId: string;
|
|
6
|
-
occurredAt: Date;
|
|
7
|
-
organizationId: string;
|
|
8
|
-
podId: string;
|
|
9
|
-
actor: AgentMail.BrowserLifecycleActor;
|
|
10
|
-
enrollmentId: string;
|
|
11
|
-
credentialId: string;
|
|
12
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export declare const BrowserEnrollmentLifecycleEventType: {
|
|
2
|
-
readonly BrowserEnrollmentIntentCreated: "browser_enrollment_intent_created";
|
|
3
|
-
readonly BrowserCredentialActivated: "browser_credential_activated";
|
|
4
|
-
readonly BrowserEnrollmentCancelled: "browser_enrollment_cancelled";
|
|
5
|
-
readonly BrowserCredentialDeleted: "browser_credential_deleted";
|
|
6
|
-
};
|
|
7
|
-
export type BrowserEnrollmentLifecycleEventType = (typeof BrowserEnrollmentLifecycleEventType)[keyof typeof BrowserEnrollmentLifecycleEventType];
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.BrowserEnrollmentLifecycleEventType = void 0;
|
|
5
|
-
exports.BrowserEnrollmentLifecycleEventType = {
|
|
6
|
-
BrowserEnrollmentIntentCreated: "browser_enrollment_intent_created",
|
|
7
|
-
BrowserCredentialActivated: "browser_credential_activated",
|
|
8
|
-
BrowserEnrollmentCancelled: "browser_enrollment_cancelled",
|
|
9
|
-
BrowserCredentialDeleted: "browser_credential_deleted",
|
|
10
|
-
};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type * as AgentMail from "../../../index.js";
|
|
2
|
-
export type BrowserLifecycleActor = AgentMail.BrowserLifecycleActor.ApiKey | AgentMail.BrowserLifecycleActor.BrowserCredential;
|
|
3
|
-
export declare namespace BrowserLifecycleActor {
|
|
4
|
-
interface ApiKey extends AgentMail.BrowserLifecycleApiKeyActor {
|
|
5
|
-
type: "api_key";
|
|
6
|
-
}
|
|
7
|
-
interface BrowserCredential extends AgentMail.BrowserLifecycleCredentialActor {
|
|
8
|
-
type: "browser_credential";
|
|
9
|
-
}
|
|
10
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import type * as AgentMail from "../../../index.js";
|
|
2
|
-
/**
|
|
3
|
-
* Attach a browser enrollment intent to one pending AgentID authorization
|
|
4
|
-
* transaction. The inbox is selected by the trusted path parameter, not an
|
|
5
|
-
* AgentID `login_hint`.
|
|
6
|
-
*/
|
|
7
|
-
export interface CreateBrowserEnrollmentRequest {
|
|
8
|
-
transactionJti: AgentMail.BrowserEnrollmentTransactionJti;
|
|
9
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import type * as AgentMail from "../../../index.js";
|
|
2
|
-
export interface ListBrowserCredentialsResponse {
|
|
3
|
-
count: AgentMail.Count;
|
|
4
|
-
limit: AgentMail.BrowserAuthorizationListLimit;
|
|
5
|
-
nextPageToken?: AgentMail.PageToken;
|
|
6
|
-
credentials: AgentMail.BrowserCredential[];
|
|
7
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import type * as AgentMail from "../../../index.js";
|
|
2
|
-
export interface ListBrowserLifecycleEventsResponse {
|
|
3
|
-
count: AgentMail.Count;
|
|
4
|
-
limit: AgentMail.BrowserAuthorizationListLimit;
|
|
5
|
-
nextPageToken?: AgentMail.PageToken;
|
|
6
|
-
events: AgentMail.BrowserLifecycleEvent[];
|
|
7
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import type * as AgentMail from "../../../index.js";
|
|
2
|
-
export interface ListPublicKeysResponse {
|
|
3
|
-
count: AgentMail.Count;
|
|
4
|
-
nextPageToken?: AgentMail.PageToken;
|
|
5
|
-
/** Public-key credentials only, ordered by creation time descending by default. */
|
|
6
|
-
publicKeys: AgentMail.PublicKeyCredential[];
|
|
7
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import type * as AgentMail from "../../../index.js";
|
|
2
|
-
/**
|
|
3
|
-
* The immutable scope in which a public-key credential can approve AgentID sign-in.
|
|
4
|
-
*/
|
|
5
|
-
export type PublicKeyScope = AgentMail.PublicKeyScope.Organization | AgentMail.PublicKeyScope.Pod | AgentMail.PublicKeyScope.Inbox;
|
|
6
|
-
export declare namespace PublicKeyScope {
|
|
7
|
-
interface Organization extends AgentMail.OrganizationPublicKeyScope {
|
|
8
|
-
type: "organization";
|
|
9
|
-
}
|
|
10
|
-
interface Pod extends AgentMail.PodPublicKeyScope {
|
|
11
|
-
type: "pod";
|
|
12
|
-
}
|
|
13
|
-
interface Inbox extends AgentMail.InboxPublicKeyScope {
|
|
14
|
-
type: "inbox";
|
|
15
|
-
}
|
|
16
|
-
}
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
import type { BaseClientOptions, BaseRequestOptions } from "../../../../../../BaseClient.js";
|
|
2
|
-
import { type NormalizedClientOptionsWithAuth } from "../../../../../../BaseClient.js";
|
|
3
|
-
import * as core from "../../../../../../core/index.js";
|
|
4
|
-
import * as AgentMail from "../../../../../index.js";
|
|
5
|
-
export declare namespace BrowserCredentialsClient {
|
|
6
|
-
type Options = BaseClientOptions;
|
|
7
|
-
interface RequestOptions extends BaseRequestOptions {
|
|
8
|
-
}
|
|
9
|
-
}
|
|
10
|
-
export declare class BrowserCredentialsClient {
|
|
11
|
-
protected readonly _options: NormalizedClientOptionsWithAuth<BrowserCredentialsClient.Options>;
|
|
12
|
-
constructor(options?: BrowserCredentialsClient.Options);
|
|
13
|
-
/**
|
|
14
|
-
* Attach a browser enrollment intent to the inbox. Requires
|
|
15
|
-
* `api_key_create`. Before submitting `transaction_jti`, independently
|
|
16
|
-
* verify that the browser page's final origin is exactly
|
|
17
|
-
* `https://auth.agentid.com`.
|
|
18
|
-
*
|
|
19
|
-
* This endpoint is available to every organization using US production.
|
|
20
|
-
* It is not available in EU production.
|
|
21
|
-
*
|
|
22
|
-
* Select `inbox_id` from trusted AgentMail configuration. An AgentID
|
|
23
|
-
* `login_hint` is not authoritative for selecting the inbox; when the
|
|
24
|
-
* transaction includes one, it must match the path inbox.
|
|
25
|
-
*
|
|
26
|
-
* **AgentMail API keys are sent only to `https://api.agentmail.to`; AgentID never requests them.**
|
|
27
|
-
*
|
|
28
|
-
* A new intent returns `202`; an idempotent retry for the same pending
|
|
29
|
-
* transaction, inbox, and bearer key returns `200` with the same receipt.
|
|
30
|
-
* An intent lasts at most five minutes. An activated credential lasts at
|
|
31
|
-
* most 30 days and cannot outlive its authorizing bearer API key.
|
|
32
|
-
*
|
|
33
|
-
* Creation is limited to 20 intents per bearer API key per hour, 100 per
|
|
34
|
-
* organization per hour, and five live unused intents per bearer API key.
|
|
35
|
-
* Browser activation is separately limited to 20 activations per
|
|
36
|
-
* authorizing bearer API key per UTC day. Either kind of limit can return
|
|
37
|
-
* `429`; honor the `Retry-After` header. Cancelling an enrollment releases
|
|
38
|
-
* its live-intent slot but does not reset the daily activation counter.
|
|
39
|
-
*
|
|
40
|
-
* @param {AgentMail.inboxes.InboxId} inbox_id
|
|
41
|
-
* @param {AgentMail.CreateBrowserEnrollmentRequest} request
|
|
42
|
-
* @param {BrowserCredentialsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
43
|
-
*
|
|
44
|
-
* @throws {@link AgentMail.ValidationError}
|
|
45
|
-
* @throws {@link AgentMail.NotFoundError}
|
|
46
|
-
* @throws {@link AgentMail.ConflictError}
|
|
47
|
-
*
|
|
48
|
-
* @example
|
|
49
|
-
* await client.inboxes.browserCredentials.createEnrollment("inbox_id", {
|
|
50
|
-
* transactionJti: "blackcurrant.........."
|
|
51
|
-
* })
|
|
52
|
-
*/
|
|
53
|
-
createEnrollment(inbox_id: AgentMail.inboxes.InboxId, request: AgentMail.CreateBrowserEnrollmentRequest, requestOptions?: BrowserCredentialsClient.RequestOptions): core.HttpResponsePromise<AgentMail.BrowserEnrollmentAccepted>;
|
|
54
|
-
private __createEnrollment;
|
|
55
|
-
}
|
|
@@ -1,175 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
4
|
-
if (k2 === undefined) k2 = k;
|
|
5
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
6
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
7
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
8
|
-
}
|
|
9
|
-
Object.defineProperty(o, k2, desc);
|
|
10
|
-
}) : (function(o, m, k, k2) {
|
|
11
|
-
if (k2 === undefined) k2 = k;
|
|
12
|
-
o[k2] = m[k];
|
|
13
|
-
}));
|
|
14
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
15
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
16
|
-
}) : function(o, v) {
|
|
17
|
-
o["default"] = v;
|
|
18
|
-
});
|
|
19
|
-
var __importStar = (this && this.__importStar) || (function () {
|
|
20
|
-
var ownKeys = function(o) {
|
|
21
|
-
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
22
|
-
var ar = [];
|
|
23
|
-
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
24
|
-
return ar;
|
|
25
|
-
};
|
|
26
|
-
return ownKeys(o);
|
|
27
|
-
};
|
|
28
|
-
return function (mod) {
|
|
29
|
-
if (mod && mod.__esModule) return mod;
|
|
30
|
-
var result = {};
|
|
31
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
32
|
-
__setModuleDefault(result, mod);
|
|
33
|
-
return result;
|
|
34
|
-
};
|
|
35
|
-
})();
|
|
36
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
37
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
38
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
39
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
40
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
41
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
42
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
43
|
-
});
|
|
44
|
-
};
|
|
45
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
46
|
-
exports.BrowserCredentialsClient = void 0;
|
|
47
|
-
const BaseClient_js_1 = require("../../../../../../BaseClient.js");
|
|
48
|
-
const headers_js_1 = require("../../../../../../core/headers.js");
|
|
49
|
-
const core = __importStar(require("../../../../../../core/index.js"));
|
|
50
|
-
const environments = __importStar(require("../../../../../../environments.js"));
|
|
51
|
-
const handleNonStatusCodeError_js_1 = require("../../../../../../errors/handleNonStatusCodeError.js");
|
|
52
|
-
const errors = __importStar(require("../../../../../../errors/index.js"));
|
|
53
|
-
const serializers = __importStar(require("../../../../../../serialization/index.js"));
|
|
54
|
-
const AgentMail = __importStar(require("../../../../../index.js"));
|
|
55
|
-
class BrowserCredentialsClient {
|
|
56
|
-
constructor(options = {}) {
|
|
57
|
-
this._options = (0, BaseClient_js_1.normalizeClientOptionsWithAuth)(options);
|
|
58
|
-
}
|
|
59
|
-
/**
|
|
60
|
-
* Attach a browser enrollment intent to the inbox. Requires
|
|
61
|
-
* `api_key_create`. Before submitting `transaction_jti`, independently
|
|
62
|
-
* verify that the browser page's final origin is exactly
|
|
63
|
-
* `https://auth.agentid.com`.
|
|
64
|
-
*
|
|
65
|
-
* This endpoint is available to every organization using US production.
|
|
66
|
-
* It is not available in EU production.
|
|
67
|
-
*
|
|
68
|
-
* Select `inbox_id` from trusted AgentMail configuration. An AgentID
|
|
69
|
-
* `login_hint` is not authoritative for selecting the inbox; when the
|
|
70
|
-
* transaction includes one, it must match the path inbox.
|
|
71
|
-
*
|
|
72
|
-
* **AgentMail API keys are sent only to `https://api.agentmail.to`; AgentID never requests them.**
|
|
73
|
-
*
|
|
74
|
-
* A new intent returns `202`; an idempotent retry for the same pending
|
|
75
|
-
* transaction, inbox, and bearer key returns `200` with the same receipt.
|
|
76
|
-
* An intent lasts at most five minutes. An activated credential lasts at
|
|
77
|
-
* most 30 days and cannot outlive its authorizing bearer API key.
|
|
78
|
-
*
|
|
79
|
-
* Creation is limited to 20 intents per bearer API key per hour, 100 per
|
|
80
|
-
* organization per hour, and five live unused intents per bearer API key.
|
|
81
|
-
* Browser activation is separately limited to 20 activations per
|
|
82
|
-
* authorizing bearer API key per UTC day. Either kind of limit can return
|
|
83
|
-
* `429`; honor the `Retry-After` header. Cancelling an enrollment releases
|
|
84
|
-
* its live-intent slot but does not reset the daily activation counter.
|
|
85
|
-
*
|
|
86
|
-
* @param {AgentMail.inboxes.InboxId} inbox_id
|
|
87
|
-
* @param {AgentMail.CreateBrowserEnrollmentRequest} request
|
|
88
|
-
* @param {BrowserCredentialsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
89
|
-
*
|
|
90
|
-
* @throws {@link AgentMail.ValidationError}
|
|
91
|
-
* @throws {@link AgentMail.NotFoundError}
|
|
92
|
-
* @throws {@link AgentMail.ConflictError}
|
|
93
|
-
*
|
|
94
|
-
* @example
|
|
95
|
-
* await client.inboxes.browserCredentials.createEnrollment("inbox_id", {
|
|
96
|
-
* transactionJti: "blackcurrant.........."
|
|
97
|
-
* })
|
|
98
|
-
*/
|
|
99
|
-
createEnrollment(inbox_id, request, requestOptions) {
|
|
100
|
-
return core.HttpResponsePromise.fromPromise(this.__createEnrollment(inbox_id, request, requestOptions));
|
|
101
|
-
}
|
|
102
|
-
__createEnrollment(inbox_id, request, requestOptions) {
|
|
103
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
104
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
105
|
-
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
106
|
-
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
107
|
-
const _response = yield core.fetcher({
|
|
108
|
-
url: core.url.join((_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : ((_c = (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.AgentMailEnvironment.Prod)
|
|
109
|
-
.http, `/v0/inboxes/${core.url.encodePathParam(serializers.inboxes.InboxId.jsonOrThrow(inbox_id, { omitUndefined: true }))}/browser-credentials/enrollments`),
|
|
110
|
-
method: "POST",
|
|
111
|
-
headers: _headers,
|
|
112
|
-
contentType: "application/json",
|
|
113
|
-
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
114
|
-
requestType: "json",
|
|
115
|
-
body: serializers.CreateBrowserEnrollmentRequest.jsonOrThrow(request, {
|
|
116
|
-
unrecognizedObjectKeys: "strip",
|
|
117
|
-
omitUndefined: true,
|
|
118
|
-
}),
|
|
119
|
-
timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
|
|
120
|
-
maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
|
|
121
|
-
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
122
|
-
fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
|
|
123
|
-
logging: this._options.logging,
|
|
124
|
-
});
|
|
125
|
-
if (_response.ok) {
|
|
126
|
-
return {
|
|
127
|
-
data: serializers.BrowserEnrollmentAccepted.parseOrThrow(_response.body, {
|
|
128
|
-
unrecognizedObjectKeys: "passthrough",
|
|
129
|
-
allowUnrecognizedUnionMembers: true,
|
|
130
|
-
allowUnrecognizedEnumValues: true,
|
|
131
|
-
skipValidation: true,
|
|
132
|
-
breadcrumbsPrefix: ["response"],
|
|
133
|
-
}),
|
|
134
|
-
rawResponse: _response.rawResponse,
|
|
135
|
-
};
|
|
136
|
-
}
|
|
137
|
-
if (_response.error.reason === "status-code") {
|
|
138
|
-
switch (_response.error.statusCode) {
|
|
139
|
-
case 400:
|
|
140
|
-
throw new AgentMail.ValidationError(serializers.ValidationErrorResponse.parseOrThrow(_response.error.body, {
|
|
141
|
-
unrecognizedObjectKeys: "passthrough",
|
|
142
|
-
allowUnrecognizedUnionMembers: true,
|
|
143
|
-
allowUnrecognizedEnumValues: true,
|
|
144
|
-
skipValidation: true,
|
|
145
|
-
breadcrumbsPrefix: ["response"],
|
|
146
|
-
}), _response.rawResponse);
|
|
147
|
-
case 404:
|
|
148
|
-
throw new AgentMail.NotFoundError(serializers.ErrorResponse.parseOrThrow(_response.error.body, {
|
|
149
|
-
unrecognizedObjectKeys: "passthrough",
|
|
150
|
-
allowUnrecognizedUnionMembers: true,
|
|
151
|
-
allowUnrecognizedEnumValues: true,
|
|
152
|
-
skipValidation: true,
|
|
153
|
-
breadcrumbsPrefix: ["response"],
|
|
154
|
-
}), _response.rawResponse);
|
|
155
|
-
case 409:
|
|
156
|
-
throw new AgentMail.ConflictError(serializers.ErrorResponse.parseOrThrow(_response.error.body, {
|
|
157
|
-
unrecognizedObjectKeys: "passthrough",
|
|
158
|
-
allowUnrecognizedUnionMembers: true,
|
|
159
|
-
allowUnrecognizedEnumValues: true,
|
|
160
|
-
skipValidation: true,
|
|
161
|
-
breadcrumbsPrefix: ["response"],
|
|
162
|
-
}), _response.rawResponse);
|
|
163
|
-
default:
|
|
164
|
-
throw new errors.AgentMailError({
|
|
165
|
-
statusCode: _response.error.statusCode,
|
|
166
|
-
body: _response.error.body,
|
|
167
|
-
rawResponse: _response.rawResponse,
|
|
168
|
-
});
|
|
169
|
-
}
|
|
170
|
-
}
|
|
171
|
-
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/v0/inboxes/{inbox_id}/browser-credentials/enrollments");
|
|
172
|
-
});
|
|
173
|
-
}
|
|
174
|
-
}
|
|
175
|
-
exports.BrowserCredentialsClient = BrowserCredentialsClient;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|