agentmail 0.5.20 → 0.5.21
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 +78 -0
- package/dist/cjs/api/resources/apiKeys/client/Client.js +362 -0
- package/dist/cjs/api/resources/apiKeys/client/requests/ListBrowserConsentsRequest.d.ts +12 -0
- package/dist/cjs/api/resources/apiKeys/client/requests/ListBrowserConsentsRequest.js +3 -0
- package/dist/cjs/api/resources/apiKeys/client/requests/ListBrowserCredentialEventsRequest.d.ts +9 -0
- package/dist/cjs/api/resources/apiKeys/client/requests/ListBrowserCredentialEventsRequest.js +3 -0
- package/dist/cjs/api/resources/apiKeys/client/requests/ListBrowserCredentialsRequest.d.ts +9 -0
- package/dist/cjs/api/resources/apiKeys/client/requests/ListBrowserCredentialsRequest.js +3 -0
- package/dist/cjs/api/resources/apiKeys/client/requests/index.d.ts +3 -0
- package/dist/cjs/api/resources/apiKeys/types/BrowserAuthorizationListLimit.d.ts +1 -0
- package/dist/cjs/api/resources/apiKeys/types/BrowserAuthorizationListLimit.js +3 -0
- package/dist/cjs/api/resources/apiKeys/types/BrowserConsent.d.ts +16 -0
- package/dist/cjs/api/resources/apiKeys/types/BrowserConsent.js +3 -0
- package/dist/cjs/api/resources/apiKeys/types/BrowserConsentLifecycleEvent.d.ts +13 -0
- package/dist/cjs/api/resources/apiKeys/types/BrowserConsentLifecycleEvent.js +3 -0
- package/dist/cjs/api/resources/apiKeys/types/BrowserConsentLifecycleEventType.d.ts +7 -0
- package/dist/cjs/api/resources/apiKeys/types/BrowserConsentLifecycleEventType.js +10 -0
- package/dist/cjs/api/resources/apiKeys/types/BrowserCredential.d.ts +14 -0
- package/dist/cjs/api/resources/apiKeys/types/BrowserCredential.js +3 -0
- package/dist/cjs/api/resources/apiKeys/types/BrowserCredentialCreator.d.ts +7 -0
- package/dist/cjs/api/resources/apiKeys/types/BrowserCredentialCreator.js +3 -0
- package/dist/cjs/api/resources/apiKeys/types/BrowserEnrollmentAccepted.d.ts +11 -0
- package/dist/cjs/api/resources/apiKeys/types/BrowserEnrollmentAccepted.js +3 -0
- package/dist/cjs/api/resources/apiKeys/types/BrowserEnrollmentLifecycleEvent.d.ts +12 -0
- package/dist/cjs/api/resources/apiKeys/types/BrowserEnrollmentLifecycleEvent.js +3 -0
- package/dist/cjs/api/resources/apiKeys/types/BrowserEnrollmentLifecycleEventType.d.ts +7 -0
- package/dist/cjs/api/resources/apiKeys/types/BrowserEnrollmentLifecycleEventType.js +10 -0
- package/dist/cjs/api/resources/apiKeys/types/BrowserEnrollmentTransactionJti.d.ts +4 -0
- package/dist/cjs/api/resources/apiKeys/types/BrowserEnrollmentTransactionJti.js +3 -0
- package/dist/cjs/api/resources/apiKeys/types/BrowserLifecycleActor.d.ts +10 -0
- package/dist/cjs/api/resources/apiKeys/types/BrowserLifecycleActor.js +3 -0
- package/dist/cjs/api/resources/apiKeys/types/BrowserLifecycleApiKeyActor.d.ts +3 -0
- package/dist/cjs/api/resources/apiKeys/types/BrowserLifecycleApiKeyActor.js +3 -0
- package/dist/cjs/api/resources/apiKeys/types/BrowserLifecycleCredentialActor.d.ts +4 -0
- package/dist/cjs/api/resources/apiKeys/types/BrowserLifecycleCredentialActor.js +3 -0
- package/dist/cjs/api/resources/apiKeys/types/BrowserLifecycleEvent.d.ts +2 -0
- package/dist/cjs/api/resources/apiKeys/types/BrowserLifecycleEvent.js +3 -0
- package/dist/cjs/api/resources/apiKeys/types/CreateBrowserEnrollmentRequest.d.ts +9 -0
- package/dist/cjs/api/resources/apiKeys/types/CreateBrowserEnrollmentRequest.js +3 -0
- package/dist/cjs/api/resources/apiKeys/types/ListBrowserConsentsResponse.d.ts +7 -0
- package/dist/cjs/api/resources/apiKeys/types/ListBrowserConsentsResponse.js +3 -0
- package/dist/cjs/api/resources/apiKeys/types/ListBrowserCredentialsResponse.d.ts +7 -0
- package/dist/cjs/api/resources/apiKeys/types/ListBrowserCredentialsResponse.js +3 -0
- package/dist/cjs/api/resources/apiKeys/types/ListBrowserLifecycleEventsResponse.d.ts +7 -0
- package/dist/cjs/api/resources/apiKeys/types/ListBrowserLifecycleEventsResponse.js +3 -0
- package/dist/cjs/api/resources/apiKeys/types/index.d.ts +18 -0
- package/dist/cjs/api/resources/apiKeys/types/index.js +18 -0
- package/dist/cjs/api/resources/attachments/types/SendAttachment.d.ts +9 -2
- package/dist/cjs/api/resources/domains/client/Client.d.ts +17 -0
- package/dist/cjs/api/resources/domains/client/Client.js +100 -0
- package/dist/cjs/api/resources/domains/types/Domain.d.ts +2 -0
- package/dist/cjs/api/resources/domains/types/GetSetupLinkResponse.d.ts +16 -0
- package/dist/cjs/api/resources/domains/types/GetSetupLinkResponse.js +3 -0
- package/dist/cjs/api/resources/domains/types/VerificationRecord.d.ts +2 -0
- package/dist/cjs/api/resources/domains/types/index.d.ts +1 -0
- package/dist/cjs/api/resources/domains/types/index.js +1 -0
- package/dist/cjs/api/resources/inboxes/client/Client.d.ts +3 -0
- package/dist/cjs/api/resources/inboxes/client/Client.js +19 -14
- package/dist/cjs/api/resources/inboxes/resources/apiKeys/client/Client.d.ts +3 -3
- package/dist/cjs/api/resources/inboxes/resources/apiKeys/client/Client.js +3 -3
- package/dist/cjs/api/resources/inboxes/resources/browserCredentials/client/Client.d.ts +55 -0
- package/dist/cjs/api/resources/inboxes/resources/browserCredentials/client/Client.js +175 -0
- package/dist/cjs/api/resources/inboxes/resources/browserCredentials/client/index.d.ts +1 -0
- package/dist/cjs/api/resources/inboxes/resources/browserCredentials/client/index.js +2 -0
- package/dist/cjs/api/resources/inboxes/resources/browserCredentials/exports.d.ts +2 -0
- package/dist/cjs/api/resources/inboxes/resources/browserCredentials/exports.js +21 -0
- package/dist/cjs/api/resources/inboxes/resources/browserCredentials/index.d.ts +1 -0
- package/dist/cjs/api/resources/inboxes/resources/browserCredentials/index.js +17 -0
- package/dist/cjs/api/resources/inboxes/resources/drafts/client/Client.d.ts +7 -7
- package/dist/cjs/api/resources/inboxes/resources/drafts/client/Client.js +7 -7
- package/dist/cjs/api/resources/inboxes/resources/events/client/Client.d.ts +1 -1
- package/dist/cjs/api/resources/inboxes/resources/events/client/Client.js +1 -1
- package/dist/cjs/api/resources/inboxes/resources/index.d.ts +1 -0
- package/dist/cjs/api/resources/inboxes/resources/index.js +2 -1
- package/dist/cjs/api/resources/inboxes/resources/lists/client/Client.d.ts +4 -4
- package/dist/cjs/api/resources/inboxes/resources/lists/client/Client.js +4 -4
- package/dist/cjs/api/resources/inboxes/resources/messages/client/Client.d.ts +12 -12
- package/dist/cjs/api/resources/inboxes/resources/messages/client/Client.js +12 -12
- package/dist/cjs/api/resources/inboxes/resources/metrics/client/Client.d.ts +1 -1
- package/dist/cjs/api/resources/inboxes/resources/metrics/client/Client.js +1 -1
- package/dist/cjs/api/resources/inboxes/resources/threads/client/Client.d.ts +4 -4
- package/dist/cjs/api/resources/inboxes/resources/threads/client/Client.js +4 -4
- package/dist/cjs/api/resources/inboxes/resources/webhooks/client/Client.d.ts +5 -5
- package/dist/cjs/api/resources/inboxes/resources/webhooks/client/Client.js +5 -5
- package/dist/cjs/api/resources/metrics/client/Client.d.ts +1 -1
- package/dist/cjs/api/resources/metrics/client/Client.js +1 -1
- package/dist/cjs/api/resources/pods/resources/apiKeys/client/Client.d.ts +3 -3
- package/dist/cjs/api/resources/pods/resources/apiKeys/client/Client.js +3 -3
- package/dist/cjs/api/resources/pods/resources/domains/client/Client.d.ts +7 -7
- package/dist/cjs/api/resources/pods/resources/domains/client/Client.js +7 -7
- package/dist/cjs/api/resources/pods/resources/drafts/client/Client.d.ts +3 -3
- package/dist/cjs/api/resources/pods/resources/drafts/client/Client.js +3 -3
- package/dist/cjs/api/resources/pods/resources/inboxes/client/Client.d.ts +5 -5
- package/dist/cjs/api/resources/pods/resources/inboxes/client/Client.js +5 -5
- package/dist/cjs/api/resources/pods/resources/lists/client/Client.d.ts +4 -4
- package/dist/cjs/api/resources/pods/resources/lists/client/Client.js +4 -4
- package/dist/cjs/api/resources/pods/resources/metrics/client/Client.d.ts +1 -1
- package/dist/cjs/api/resources/pods/resources/metrics/client/Client.js +1 -1
- package/dist/cjs/api/resources/pods/resources/threads/client/Client.d.ts +4 -4
- package/dist/cjs/api/resources/pods/resources/threads/client/Client.js +4 -4
- package/dist/cjs/api/resources/pods/resources/webhooks/client/Client.d.ts +5 -5
- package/dist/cjs/api/resources/pods/resources/webhooks/client/Client.js +5 -5
- package/dist/cjs/api/resources/webhooks/client/Client.d.ts +2 -2
- package/dist/cjs/api/resources/webhooks/client/Client.js +2 -2
- package/dist/cjs/serialization/resources/apiKeys/types/BrowserAuthorizationListLimit.d.ts +7 -0
- package/dist/cjs/serialization/resources/apiKeys/types/BrowserAuthorizationListLimit.js +39 -0
- package/dist/cjs/serialization/resources/apiKeys/types/BrowserConsent.d.ts +17 -0
- package/dist/cjs/serialization/resources/apiKeys/types/BrowserConsent.js +49 -0
- package/dist/cjs/serialization/resources/apiKeys/types/BrowserConsentLifecycleEvent.d.ts +20 -0
- package/dist/cjs/serialization/resources/apiKeys/types/BrowserConsentLifecycleEvent.js +52 -0
- package/dist/cjs/serialization/resources/apiKeys/types/BrowserConsentLifecycleEventType.d.ts +7 -0
- package/dist/cjs/serialization/resources/apiKeys/types/BrowserConsentLifecycleEventType.js +44 -0
- package/dist/cjs/serialization/resources/apiKeys/types/BrowserCredential.d.ts +17 -0
- package/dist/cjs/serialization/resources/apiKeys/types/BrowserCredential.js +49 -0
- package/dist/cjs/serialization/resources/apiKeys/types/BrowserCredentialCreator.d.ts +11 -0
- package/dist/cjs/serialization/resources/apiKeys/types/BrowserCredentialCreator.js +43 -0
- package/dist/cjs/serialization/resources/apiKeys/types/BrowserEnrollmentAccepted.d.ts +11 -0
- package/dist/cjs/serialization/resources/apiKeys/types/BrowserEnrollmentAccepted.js +43 -0
- package/dist/cjs/serialization/resources/apiKeys/types/BrowserEnrollmentLifecycleEvent.d.ts +19 -0
- package/dist/cjs/serialization/resources/apiKeys/types/BrowserEnrollmentLifecycleEvent.js +51 -0
- package/dist/cjs/serialization/resources/apiKeys/types/BrowserEnrollmentLifecycleEventType.d.ts +7 -0
- package/dist/cjs/serialization/resources/apiKeys/types/BrowserEnrollmentLifecycleEventType.js +44 -0
- package/dist/cjs/serialization/resources/apiKeys/types/BrowserEnrollmentTransactionJti.d.ts +7 -0
- package/dist/cjs/serialization/resources/apiKeys/types/BrowserEnrollmentTransactionJti.js +39 -0
- package/dist/cjs/serialization/resources/apiKeys/types/BrowserLifecycleActor.d.ts +15 -0
- package/dist/cjs/serialization/resources/apiKeys/types/BrowserLifecycleActor.js +49 -0
- package/dist/cjs/serialization/resources/apiKeys/types/BrowserLifecycleApiKeyActor.d.ts +9 -0
- package/dist/cjs/serialization/resources/apiKeys/types/BrowserLifecycleApiKeyActor.js +41 -0
- package/dist/cjs/serialization/resources/apiKeys/types/BrowserLifecycleCredentialActor.d.ts +10 -0
- package/dist/cjs/serialization/resources/apiKeys/types/BrowserLifecycleCredentialActor.js +42 -0
- package/dist/cjs/serialization/resources/apiKeys/types/BrowserLifecycleEvent.d.ts +9 -0
- package/dist/cjs/serialization/resources/apiKeys/types/BrowserLifecycleEvent.js +41 -0
- package/dist/cjs/serialization/resources/apiKeys/types/CreateBrowserEnrollmentRequest.d.ts +10 -0
- package/dist/cjs/serialization/resources/apiKeys/types/CreateBrowserEnrollmentRequest.js +42 -0
- package/dist/cjs/serialization/resources/apiKeys/types/ListBrowserConsentsResponse.d.ts +16 -0
- package/dist/cjs/serialization/resources/apiKeys/types/ListBrowserConsentsResponse.js +48 -0
- package/dist/cjs/serialization/resources/apiKeys/types/ListBrowserCredentialsResponse.d.ts +16 -0
- package/dist/cjs/serialization/resources/apiKeys/types/ListBrowserCredentialsResponse.js +48 -0
- package/dist/cjs/serialization/resources/apiKeys/types/ListBrowserLifecycleEventsResponse.d.ts +16 -0
- package/dist/cjs/serialization/resources/apiKeys/types/ListBrowserLifecycleEventsResponse.js +48 -0
- package/dist/cjs/serialization/resources/apiKeys/types/index.d.ts +18 -0
- package/dist/cjs/serialization/resources/apiKeys/types/index.js +18 -0
- package/dist/cjs/serialization/resources/domains/types/Domain.d.ts +1 -0
- package/dist/cjs/serialization/resources/domains/types/Domain.js +1 -0
- package/dist/cjs/serialization/resources/domains/types/GetSetupLinkResponse.d.ts +15 -0
- package/dist/cjs/serialization/resources/domains/types/GetSetupLinkResponse.js +47 -0
- package/dist/cjs/serialization/resources/domains/types/VerificationRecord.d.ts +1 -0
- package/dist/cjs/serialization/resources/domains/types/VerificationRecord.js +1 -0
- package/dist/cjs/serialization/resources/domains/types/index.d.ts +1 -0
- package/dist/cjs/serialization/resources/domains/types/index.js +1 -0
- 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 +78 -0
- package/dist/esm/api/resources/apiKeys/client/Client.mjs +362 -0
- package/dist/esm/api/resources/apiKeys/client/requests/ListBrowserConsentsRequest.d.mts +12 -0
- package/dist/esm/api/resources/apiKeys/client/requests/ListBrowserConsentsRequest.mjs +2 -0
- package/dist/esm/api/resources/apiKeys/client/requests/ListBrowserCredentialEventsRequest.d.mts +9 -0
- package/dist/esm/api/resources/apiKeys/client/requests/ListBrowserCredentialEventsRequest.mjs +2 -0
- package/dist/esm/api/resources/apiKeys/client/requests/ListBrowserCredentialsRequest.d.mts +9 -0
- package/dist/esm/api/resources/apiKeys/client/requests/ListBrowserCredentialsRequest.mjs +2 -0
- package/dist/esm/api/resources/apiKeys/client/requests/index.d.mts +3 -0
- package/dist/esm/api/resources/apiKeys/types/BrowserAuthorizationListLimit.d.mts +1 -0
- package/dist/esm/api/resources/apiKeys/types/BrowserAuthorizationListLimit.mjs +2 -0
- package/dist/esm/api/resources/apiKeys/types/BrowserConsent.d.mts +16 -0
- package/dist/esm/api/resources/apiKeys/types/BrowserConsent.mjs +2 -0
- package/dist/esm/api/resources/apiKeys/types/BrowserConsentLifecycleEvent.d.mts +13 -0
- package/dist/esm/api/resources/apiKeys/types/BrowserConsentLifecycleEvent.mjs +2 -0
- package/dist/esm/api/resources/apiKeys/types/BrowserConsentLifecycleEventType.d.mts +7 -0
- package/dist/esm/api/resources/apiKeys/types/BrowserConsentLifecycleEventType.mjs +7 -0
- package/dist/esm/api/resources/apiKeys/types/BrowserCredential.d.mts +14 -0
- package/dist/esm/api/resources/apiKeys/types/BrowserCredential.mjs +2 -0
- package/dist/esm/api/resources/apiKeys/types/BrowserCredentialCreator.d.mts +7 -0
- package/dist/esm/api/resources/apiKeys/types/BrowserCredentialCreator.mjs +2 -0
- package/dist/esm/api/resources/apiKeys/types/BrowserEnrollmentAccepted.d.mts +11 -0
- package/dist/esm/api/resources/apiKeys/types/BrowserEnrollmentAccepted.mjs +2 -0
- package/dist/esm/api/resources/apiKeys/types/BrowserEnrollmentLifecycleEvent.d.mts +12 -0
- package/dist/esm/api/resources/apiKeys/types/BrowserEnrollmentLifecycleEvent.mjs +2 -0
- package/dist/esm/api/resources/apiKeys/types/BrowserEnrollmentLifecycleEventType.d.mts +7 -0
- package/dist/esm/api/resources/apiKeys/types/BrowserEnrollmentLifecycleEventType.mjs +7 -0
- package/dist/esm/api/resources/apiKeys/types/BrowserEnrollmentTransactionJti.d.mts +4 -0
- package/dist/esm/api/resources/apiKeys/types/BrowserEnrollmentTransactionJti.mjs +2 -0
- package/dist/esm/api/resources/apiKeys/types/BrowserLifecycleActor.d.mts +10 -0
- package/dist/esm/api/resources/apiKeys/types/BrowserLifecycleActor.mjs +2 -0
- package/dist/esm/api/resources/apiKeys/types/BrowserLifecycleApiKeyActor.d.mts +3 -0
- package/dist/esm/api/resources/apiKeys/types/BrowserLifecycleApiKeyActor.mjs +2 -0
- package/dist/esm/api/resources/apiKeys/types/BrowserLifecycleCredentialActor.d.mts +4 -0
- package/dist/esm/api/resources/apiKeys/types/BrowserLifecycleCredentialActor.mjs +2 -0
- package/dist/esm/api/resources/apiKeys/types/BrowserLifecycleEvent.d.mts +2 -0
- package/dist/esm/api/resources/apiKeys/types/BrowserLifecycleEvent.mjs +2 -0
- package/dist/esm/api/resources/apiKeys/types/CreateBrowserEnrollmentRequest.d.mts +9 -0
- package/dist/esm/api/resources/apiKeys/types/CreateBrowserEnrollmentRequest.mjs +2 -0
- package/dist/esm/api/resources/apiKeys/types/ListBrowserConsentsResponse.d.mts +7 -0
- package/dist/esm/api/resources/apiKeys/types/ListBrowserConsentsResponse.mjs +2 -0
- package/dist/esm/api/resources/apiKeys/types/ListBrowserCredentialsResponse.d.mts +7 -0
- package/dist/esm/api/resources/apiKeys/types/ListBrowserCredentialsResponse.mjs +2 -0
- package/dist/esm/api/resources/apiKeys/types/ListBrowserLifecycleEventsResponse.d.mts +7 -0
- package/dist/esm/api/resources/apiKeys/types/ListBrowserLifecycleEventsResponse.mjs +2 -0
- package/dist/esm/api/resources/apiKeys/types/index.d.mts +18 -0
- package/dist/esm/api/resources/apiKeys/types/index.mjs +18 -0
- package/dist/esm/api/resources/attachments/types/SendAttachment.d.mts +9 -2
- package/dist/esm/api/resources/domains/client/Client.d.mts +17 -0
- package/dist/esm/api/resources/domains/client/Client.mjs +100 -0
- package/dist/esm/api/resources/domains/types/Domain.d.mts +2 -0
- package/dist/esm/api/resources/domains/types/GetSetupLinkResponse.d.mts +16 -0
- package/dist/esm/api/resources/domains/types/GetSetupLinkResponse.mjs +2 -0
- package/dist/esm/api/resources/domains/types/VerificationRecord.d.mts +2 -0
- package/dist/esm/api/resources/domains/types/index.d.mts +1 -0
- package/dist/esm/api/resources/domains/types/index.mjs +1 -0
- package/dist/esm/api/resources/inboxes/client/Client.d.mts +3 -0
- package/dist/esm/api/resources/inboxes/client/Client.mjs +5 -0
- package/dist/esm/api/resources/inboxes/resources/apiKeys/client/Client.d.mts +3 -3
- package/dist/esm/api/resources/inboxes/resources/apiKeys/client/Client.mjs +3 -3
- package/dist/esm/api/resources/inboxes/resources/browserCredentials/client/Client.d.mts +55 -0
- package/dist/esm/api/resources/inboxes/resources/browserCredentials/client/Client.mjs +138 -0
- package/dist/esm/api/resources/inboxes/resources/browserCredentials/client/index.d.mts +1 -0
- package/dist/esm/api/resources/inboxes/resources/browserCredentials/client/index.mjs +1 -0
- package/dist/esm/api/resources/inboxes/resources/browserCredentials/exports.d.mts +2 -0
- package/dist/esm/api/resources/inboxes/resources/browserCredentials/exports.mjs +3 -0
- package/dist/esm/api/resources/inboxes/resources/browserCredentials/index.d.mts +1 -0
- package/dist/esm/api/resources/inboxes/resources/browserCredentials/index.mjs +1 -0
- package/dist/esm/api/resources/inboxes/resources/drafts/client/Client.d.mts +7 -7
- package/dist/esm/api/resources/inboxes/resources/drafts/client/Client.mjs +7 -7
- package/dist/esm/api/resources/inboxes/resources/events/client/Client.d.mts +1 -1
- package/dist/esm/api/resources/inboxes/resources/events/client/Client.mjs +1 -1
- package/dist/esm/api/resources/inboxes/resources/index.d.mts +1 -0
- package/dist/esm/api/resources/inboxes/resources/index.mjs +1 -0
- package/dist/esm/api/resources/inboxes/resources/lists/client/Client.d.mts +4 -4
- package/dist/esm/api/resources/inboxes/resources/lists/client/Client.mjs +4 -4
- package/dist/esm/api/resources/inboxes/resources/messages/client/Client.d.mts +12 -12
- package/dist/esm/api/resources/inboxes/resources/messages/client/Client.mjs +12 -12
- package/dist/esm/api/resources/inboxes/resources/metrics/client/Client.d.mts +1 -1
- package/dist/esm/api/resources/inboxes/resources/metrics/client/Client.mjs +1 -1
- package/dist/esm/api/resources/inboxes/resources/threads/client/Client.d.mts +4 -4
- package/dist/esm/api/resources/inboxes/resources/threads/client/Client.mjs +4 -4
- package/dist/esm/api/resources/inboxes/resources/webhooks/client/Client.d.mts +5 -5
- package/dist/esm/api/resources/inboxes/resources/webhooks/client/Client.mjs +5 -5
- package/dist/esm/api/resources/metrics/client/Client.d.mts +1 -1
- package/dist/esm/api/resources/metrics/client/Client.mjs +1 -1
- package/dist/esm/api/resources/pods/resources/apiKeys/client/Client.d.mts +3 -3
- package/dist/esm/api/resources/pods/resources/apiKeys/client/Client.mjs +3 -3
- package/dist/esm/api/resources/pods/resources/domains/client/Client.d.mts +7 -7
- package/dist/esm/api/resources/pods/resources/domains/client/Client.mjs +7 -7
- package/dist/esm/api/resources/pods/resources/drafts/client/Client.d.mts +3 -3
- package/dist/esm/api/resources/pods/resources/drafts/client/Client.mjs +3 -3
- package/dist/esm/api/resources/pods/resources/inboxes/client/Client.d.mts +5 -5
- package/dist/esm/api/resources/pods/resources/inboxes/client/Client.mjs +5 -5
- package/dist/esm/api/resources/pods/resources/lists/client/Client.d.mts +4 -4
- package/dist/esm/api/resources/pods/resources/lists/client/Client.mjs +4 -4
- package/dist/esm/api/resources/pods/resources/metrics/client/Client.d.mts +1 -1
- package/dist/esm/api/resources/pods/resources/metrics/client/Client.mjs +1 -1
- package/dist/esm/api/resources/pods/resources/threads/client/Client.d.mts +4 -4
- package/dist/esm/api/resources/pods/resources/threads/client/Client.mjs +4 -4
- package/dist/esm/api/resources/pods/resources/webhooks/client/Client.d.mts +5 -5
- package/dist/esm/api/resources/pods/resources/webhooks/client/Client.mjs +5 -5
- package/dist/esm/api/resources/webhooks/client/Client.d.mts +2 -2
- package/dist/esm/api/resources/webhooks/client/Client.mjs +2 -2
- package/dist/esm/serialization/resources/apiKeys/types/BrowserAuthorizationListLimit.d.mts +7 -0
- package/dist/esm/serialization/resources/apiKeys/types/BrowserAuthorizationListLimit.mjs +3 -0
- package/dist/esm/serialization/resources/apiKeys/types/BrowserConsent.d.mts +17 -0
- package/dist/esm/serialization/resources/apiKeys/types/BrowserConsent.mjs +13 -0
- package/dist/esm/serialization/resources/apiKeys/types/BrowserConsentLifecycleEvent.d.mts +20 -0
- package/dist/esm/serialization/resources/apiKeys/types/BrowserConsentLifecycleEvent.mjs +16 -0
- package/dist/esm/serialization/resources/apiKeys/types/BrowserConsentLifecycleEventType.d.mts +7 -0
- package/dist/esm/serialization/resources/apiKeys/types/BrowserConsentLifecycleEventType.mjs +8 -0
- package/dist/esm/serialization/resources/apiKeys/types/BrowserCredential.d.mts +17 -0
- package/dist/esm/serialization/resources/apiKeys/types/BrowserCredential.mjs +13 -0
- package/dist/esm/serialization/resources/apiKeys/types/BrowserCredentialCreator.d.mts +11 -0
- package/dist/esm/serialization/resources/apiKeys/types/BrowserCredentialCreator.mjs +7 -0
- package/dist/esm/serialization/resources/apiKeys/types/BrowserEnrollmentAccepted.d.mts +11 -0
- package/dist/esm/serialization/resources/apiKeys/types/BrowserEnrollmentAccepted.mjs +7 -0
- package/dist/esm/serialization/resources/apiKeys/types/BrowserEnrollmentLifecycleEvent.d.mts +19 -0
- package/dist/esm/serialization/resources/apiKeys/types/BrowserEnrollmentLifecycleEvent.mjs +15 -0
- package/dist/esm/serialization/resources/apiKeys/types/BrowserEnrollmentLifecycleEventType.d.mts +7 -0
- package/dist/esm/serialization/resources/apiKeys/types/BrowserEnrollmentLifecycleEventType.mjs +8 -0
- package/dist/esm/serialization/resources/apiKeys/types/BrowserEnrollmentTransactionJti.d.mts +7 -0
- package/dist/esm/serialization/resources/apiKeys/types/BrowserEnrollmentTransactionJti.mjs +3 -0
- package/dist/esm/serialization/resources/apiKeys/types/BrowserLifecycleActor.d.mts +15 -0
- package/dist/esm/serialization/resources/apiKeys/types/BrowserLifecycleActor.mjs +13 -0
- package/dist/esm/serialization/resources/apiKeys/types/BrowserLifecycleApiKeyActor.d.mts +9 -0
- package/dist/esm/serialization/resources/apiKeys/types/BrowserLifecycleApiKeyActor.mjs +5 -0
- package/dist/esm/serialization/resources/apiKeys/types/BrowserLifecycleCredentialActor.d.mts +10 -0
- package/dist/esm/serialization/resources/apiKeys/types/BrowserLifecycleCredentialActor.mjs +6 -0
- package/dist/esm/serialization/resources/apiKeys/types/BrowserLifecycleEvent.d.mts +9 -0
- package/dist/esm/serialization/resources/apiKeys/types/BrowserLifecycleEvent.mjs +5 -0
- package/dist/esm/serialization/resources/apiKeys/types/CreateBrowserEnrollmentRequest.d.mts +10 -0
- package/dist/esm/serialization/resources/apiKeys/types/CreateBrowserEnrollmentRequest.mjs +6 -0
- package/dist/esm/serialization/resources/apiKeys/types/ListBrowserConsentsResponse.d.mts +16 -0
- package/dist/esm/serialization/resources/apiKeys/types/ListBrowserConsentsResponse.mjs +12 -0
- package/dist/esm/serialization/resources/apiKeys/types/ListBrowserCredentialsResponse.d.mts +16 -0
- package/dist/esm/serialization/resources/apiKeys/types/ListBrowserCredentialsResponse.mjs +12 -0
- package/dist/esm/serialization/resources/apiKeys/types/ListBrowserLifecycleEventsResponse.d.mts +16 -0
- package/dist/esm/serialization/resources/apiKeys/types/ListBrowserLifecycleEventsResponse.mjs +12 -0
- package/dist/esm/serialization/resources/apiKeys/types/index.d.mts +18 -0
- package/dist/esm/serialization/resources/apiKeys/types/index.mjs +18 -0
- package/dist/esm/serialization/resources/domains/types/Domain.d.mts +1 -0
- package/dist/esm/serialization/resources/domains/types/Domain.mjs +1 -0
- package/dist/esm/serialization/resources/domains/types/GetSetupLinkResponse.d.mts +15 -0
- package/dist/esm/serialization/resources/domains/types/GetSetupLinkResponse.mjs +11 -0
- package/dist/esm/serialization/resources/domains/types/VerificationRecord.d.mts +1 -0
- package/dist/esm/serialization/resources/domains/types/VerificationRecord.mjs +1 -0
- package/dist/esm/serialization/resources/domains/types/index.d.mts +1 -0
- package/dist/esm/serialization/resources/domains/types/index.mjs +1 -0
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/dist/llms.txt +11 -1
- package/package.json +20 -2
- package/reference.md +613 -72
|
@@ -0,0 +1,55 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,175 @@
|
|
|
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;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,21 @@
|
|
|
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 __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
15
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
16
|
+
};
|
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
exports.BrowserCredentialsClient = void 0;
|
|
19
|
+
var Client_js_1 = require("./client/Client.js");
|
|
20
|
+
Object.defineProperty(exports, "BrowserCredentialsClient", { enumerable: true, get: function () { return Client_js_1.BrowserCredentialsClient; } });
|
|
21
|
+
__exportStar(require("./client/index.js"), exports);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./client/index.js";
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./client/index.js"), exports);
|
|
@@ -15,7 +15,7 @@ export declare class DraftsClient {
|
|
|
15
15
|
/**
|
|
16
16
|
* **CLI:**
|
|
17
17
|
* ```bash
|
|
18
|
-
* agentmail inboxes
|
|
18
|
+
* agentmail inboxes drafts list --inbox-id <inbox_id>
|
|
19
19
|
* ```
|
|
20
20
|
*
|
|
21
21
|
* @param {AgentMail.inboxes.InboxId} inbox_id
|
|
@@ -32,7 +32,7 @@ export declare class DraftsClient {
|
|
|
32
32
|
/**
|
|
33
33
|
* **CLI:**
|
|
34
34
|
* ```bash
|
|
35
|
-
* agentmail inboxes
|
|
35
|
+
* agentmail inboxes drafts get --inbox-id <inbox_id> --draft-id <draft_id>
|
|
36
36
|
* ```
|
|
37
37
|
*
|
|
38
38
|
* @param {AgentMail.inboxes.InboxId} inbox_id
|
|
@@ -49,7 +49,7 @@ export declare class DraftsClient {
|
|
|
49
49
|
/**
|
|
50
50
|
* **CLI:**
|
|
51
51
|
* ```bash
|
|
52
|
-
* agentmail inboxes
|
|
52
|
+
* agentmail inboxes drafts get-attachment --inbox-id <inbox_id> --draft-id <draft_id> --attachment-id <attachment_id>
|
|
53
53
|
* ```
|
|
54
54
|
*
|
|
55
55
|
* @param {AgentMail.inboxes.InboxId} inbox_id
|
|
@@ -73,7 +73,7 @@ export declare class DraftsClient {
|
|
|
73
73
|
*
|
|
74
74
|
* **CLI:**
|
|
75
75
|
* ```bash
|
|
76
|
-
* agentmail inboxes
|
|
76
|
+
* agentmail inboxes drafts create --inbox-id <inbox_id> --to recipient@example.com --subject "Draft subject" --text "Draft body"
|
|
77
77
|
* ```
|
|
78
78
|
*
|
|
79
79
|
* @param {AgentMail.inboxes.InboxId} inbox_id
|
|
@@ -95,7 +95,7 @@ export declare class DraftsClient {
|
|
|
95
95
|
*
|
|
96
96
|
* **CLI:**
|
|
97
97
|
* ```bash
|
|
98
|
-
* agentmail inboxes
|
|
98
|
+
* agentmail inboxes drafts update --inbox-id <inbox_id> --draft-id <draft_id> --subject "Updated subject"
|
|
99
99
|
* ```
|
|
100
100
|
*
|
|
101
101
|
* @param {AgentMail.inboxes.InboxId} inbox_id
|
|
@@ -115,7 +115,7 @@ export declare class DraftsClient {
|
|
|
115
115
|
/**
|
|
116
116
|
* **CLI:**
|
|
117
117
|
* ```bash
|
|
118
|
-
* agentmail inboxes
|
|
118
|
+
* agentmail inboxes drafts delete --inbox-id <inbox_id> --draft-id <draft_id>
|
|
119
119
|
* ```
|
|
120
120
|
*
|
|
121
121
|
* @param {AgentMail.inboxes.InboxId} inbox_id
|
|
@@ -132,7 +132,7 @@ export declare class DraftsClient {
|
|
|
132
132
|
/**
|
|
133
133
|
* **CLI:**
|
|
134
134
|
* ```bash
|
|
135
|
-
* agentmail inboxes
|
|
135
|
+
* agentmail inboxes drafts send --inbox-id <inbox_id> --draft-id <draft_id>
|
|
136
136
|
* ```
|
|
137
137
|
*
|
|
138
138
|
* @param {AgentMail.inboxes.InboxId} inbox_id
|
|
@@ -60,7 +60,7 @@ class DraftsClient {
|
|
|
60
60
|
/**
|
|
61
61
|
* **CLI:**
|
|
62
62
|
* ```bash
|
|
63
|
-
* agentmail inboxes
|
|
63
|
+
* agentmail inboxes drafts list --inbox-id <inbox_id>
|
|
64
64
|
* ```
|
|
65
65
|
*
|
|
66
66
|
* @param {AgentMail.inboxes.InboxId} inbox_id
|
|
@@ -146,7 +146,7 @@ class DraftsClient {
|
|
|
146
146
|
/**
|
|
147
147
|
* **CLI:**
|
|
148
148
|
* ```bash
|
|
149
|
-
* agentmail inboxes
|
|
149
|
+
* agentmail inboxes drafts get --inbox-id <inbox_id> --draft-id <draft_id>
|
|
150
150
|
* ```
|
|
151
151
|
*
|
|
152
152
|
* @param {AgentMail.inboxes.InboxId} inbox_id
|
|
@@ -214,7 +214,7 @@ class DraftsClient {
|
|
|
214
214
|
/**
|
|
215
215
|
* **CLI:**
|
|
216
216
|
* ```bash
|
|
217
|
-
* agentmail inboxes
|
|
217
|
+
* agentmail inboxes drafts get-attachment --inbox-id <inbox_id> --draft-id <draft_id> --attachment-id <attachment_id>
|
|
218
218
|
* ```
|
|
219
219
|
*
|
|
220
220
|
* @param {AgentMail.inboxes.InboxId} inbox_id
|
|
@@ -289,7 +289,7 @@ class DraftsClient {
|
|
|
289
289
|
*
|
|
290
290
|
* **CLI:**
|
|
291
291
|
* ```bash
|
|
292
|
-
* agentmail inboxes
|
|
292
|
+
* agentmail inboxes drafts create --inbox-id <inbox_id> --to recipient@example.com --subject "Draft subject" --text "Draft body"
|
|
293
293
|
* ```
|
|
294
294
|
*
|
|
295
295
|
* @param {AgentMail.inboxes.InboxId} inbox_id
|
|
@@ -376,7 +376,7 @@ class DraftsClient {
|
|
|
376
376
|
*
|
|
377
377
|
* **CLI:**
|
|
378
378
|
* ```bash
|
|
379
|
-
* agentmail inboxes
|
|
379
|
+
* agentmail inboxes drafts update --inbox-id <inbox_id> --draft-id <draft_id> --subject "Updated subject"
|
|
380
380
|
* ```
|
|
381
381
|
*
|
|
382
382
|
* @param {AgentMail.inboxes.InboxId} inbox_id
|
|
@@ -469,7 +469,7 @@ class DraftsClient {
|
|
|
469
469
|
/**
|
|
470
470
|
* **CLI:**
|
|
471
471
|
* ```bash
|
|
472
|
-
* agentmail inboxes
|
|
472
|
+
* agentmail inboxes drafts delete --inbox-id <inbox_id> --draft-id <draft_id>
|
|
473
473
|
* ```
|
|
474
474
|
*
|
|
475
475
|
* @param {AgentMail.inboxes.InboxId} inbox_id
|
|
@@ -528,7 +528,7 @@ class DraftsClient {
|
|
|
528
528
|
/**
|
|
529
529
|
* **CLI:**
|
|
530
530
|
* ```bash
|
|
531
|
-
* agentmail inboxes
|
|
531
|
+
* agentmail inboxes drafts send --inbox-id <inbox_id> --draft-id <draft_id>
|
|
532
532
|
* ```
|
|
533
533
|
*
|
|
534
534
|
* @param {AgentMail.inboxes.InboxId} inbox_id
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export * from "./apiKeys/client/requests/index.js";
|
|
2
2
|
export * as apiKeys from "./apiKeys/index.js";
|
|
3
|
+
export * as browserCredentials from "./browserCredentials/index.js";
|
|
3
4
|
export * from "./drafts/client/requests/index.js";
|
|
4
5
|
export * as drafts from "./drafts/index.js";
|
|
5
6
|
export * from "./events/client/requests/index.js";
|
|
@@ -36,9 +36,10 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
36
36
|
};
|
|
37
37
|
})();
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.webhooks = exports.threads = exports.metrics = exports.messages = exports.lists = exports.events = exports.drafts = exports.apiKeys = void 0;
|
|
39
|
+
exports.webhooks = exports.threads = exports.metrics = exports.messages = exports.lists = exports.events = exports.drafts = exports.browserCredentials = exports.apiKeys = void 0;
|
|
40
40
|
__exportStar(require("./apiKeys/client/requests/index.js"), exports);
|
|
41
41
|
exports.apiKeys = __importStar(require("./apiKeys/index.js"));
|
|
42
|
+
exports.browserCredentials = __importStar(require("./browserCredentials/index.js"));
|
|
42
43
|
__exportStar(require("./drafts/client/requests/index.js"), exports);
|
|
43
44
|
exports.drafts = __importStar(require("./drafts/index.js"));
|
|
44
45
|
__exportStar(require("./events/client/requests/index.js"), exports);
|
|
@@ -13,7 +13,7 @@ export declare class ListsClient {
|
|
|
13
13
|
/**
|
|
14
14
|
* **CLI:**
|
|
15
15
|
* ```bash
|
|
16
|
-
* agentmail inboxes
|
|
16
|
+
* agentmail inboxes lists list --inbox-id <inbox_id> --direction <direction> --type <type>
|
|
17
17
|
* ```
|
|
18
18
|
*
|
|
19
19
|
* @param {AgentMail.inboxes.InboxId} inbox_id
|
|
@@ -30,7 +30,7 @@ export declare class ListsClient {
|
|
|
30
30
|
/**
|
|
31
31
|
* **CLI:**
|
|
32
32
|
* ```bash
|
|
33
|
-
* agentmail inboxes
|
|
33
|
+
* agentmail inboxes lists get --inbox-id <inbox_id> --direction <direction> --type <type> --entry <entry>
|
|
34
34
|
* ```
|
|
35
35
|
*
|
|
36
36
|
* @param {AgentMail.inboxes.InboxId} inbox_id
|
|
@@ -49,7 +49,7 @@ export declare class ListsClient {
|
|
|
49
49
|
/**
|
|
50
50
|
* **CLI:**
|
|
51
51
|
* ```bash
|
|
52
|
-
* agentmail inboxes
|
|
52
|
+
* agentmail inboxes lists create --inbox-id <inbox_id> --direction <direction> --type <type> --entry user@example.com
|
|
53
53
|
* ```
|
|
54
54
|
*
|
|
55
55
|
* @param {AgentMail.inboxes.InboxId} inbox_id
|
|
@@ -70,7 +70,7 @@ export declare class ListsClient {
|
|
|
70
70
|
/**
|
|
71
71
|
* **CLI:**
|
|
72
72
|
* ```bash
|
|
73
|
-
* agentmail inboxes
|
|
73
|
+
* agentmail inboxes lists delete --inbox-id <inbox_id> --direction <direction> --type <type> --entry <entry>
|
|
74
74
|
* ```
|
|
75
75
|
*
|
|
76
76
|
* @param {AgentMail.inboxes.InboxId} inbox_id
|
|
@@ -59,7 +59,7 @@ class ListsClient {
|
|
|
59
59
|
/**
|
|
60
60
|
* **CLI:**
|
|
61
61
|
* ```bash
|
|
62
|
-
* agentmail inboxes
|
|
62
|
+
* agentmail inboxes lists list --inbox-id <inbox_id> --direction <direction> --type <type>
|
|
63
63
|
* ```
|
|
64
64
|
*
|
|
65
65
|
* @param {AgentMail.inboxes.InboxId} inbox_id
|
|
@@ -121,7 +121,7 @@ class ListsClient {
|
|
|
121
121
|
/**
|
|
122
122
|
* **CLI:**
|
|
123
123
|
* ```bash
|
|
124
|
-
* agentmail inboxes
|
|
124
|
+
* agentmail inboxes lists get --inbox-id <inbox_id> --direction <direction> --type <type> --entry <entry>
|
|
125
125
|
* ```
|
|
126
126
|
*
|
|
127
127
|
* @param {AgentMail.inboxes.InboxId} inbox_id
|
|
@@ -191,7 +191,7 @@ class ListsClient {
|
|
|
191
191
|
/**
|
|
192
192
|
* **CLI:**
|
|
193
193
|
* ```bash
|
|
194
|
-
* agentmail inboxes
|
|
194
|
+
* agentmail inboxes lists create --inbox-id <inbox_id> --direction <direction> --type <type> --entry user@example.com
|
|
195
195
|
* ```
|
|
196
196
|
*
|
|
197
197
|
* @param {AgentMail.inboxes.InboxId} inbox_id
|
|
@@ -269,7 +269,7 @@ class ListsClient {
|
|
|
269
269
|
/**
|
|
270
270
|
* **CLI:**
|
|
271
271
|
* ```bash
|
|
272
|
-
* agentmail inboxes
|
|
272
|
+
* agentmail inboxes lists delete --inbox-id <inbox_id> --direction <direction> --type <type> --entry <entry>
|
|
273
273
|
* ```
|
|
274
274
|
*
|
|
275
275
|
* @param {AgentMail.inboxes.InboxId} inbox_id
|
|
@@ -21,7 +21,7 @@ export declare class MessagesClient {
|
|
|
21
21
|
*
|
|
22
22
|
* **CLI:**
|
|
23
23
|
* ```bash
|
|
24
|
-
* agentmail inboxes
|
|
24
|
+
* agentmail inboxes messages list --inbox-id <inbox_id>
|
|
25
25
|
* ```
|
|
26
26
|
*
|
|
27
27
|
* @param {AgentMail.inboxes.InboxId} inbox_id
|
|
@@ -58,7 +58,7 @@ export declare class MessagesClient {
|
|
|
58
58
|
/**
|
|
59
59
|
* **CLI:**
|
|
60
60
|
* ```bash
|
|
61
|
-
* agentmail inboxes
|
|
61
|
+
* agentmail inboxes messages get --inbox-id <inbox_id> --message-id <message_id>
|
|
62
62
|
* ```
|
|
63
63
|
*
|
|
64
64
|
* @param {AgentMail.inboxes.InboxId} inbox_id
|
|
@@ -79,7 +79,7 @@ export declare class MessagesClient {
|
|
|
79
79
|
*
|
|
80
80
|
* **CLI:**
|
|
81
81
|
* ```bash
|
|
82
|
-
* agentmail inboxes
|
|
82
|
+
* agentmail inboxes messages batch-get --inbox-id <inbox_id> --message-ids <id1> --message-ids <id2>
|
|
83
83
|
* ```
|
|
84
84
|
*
|
|
85
85
|
* @param {AgentMail.inboxes.InboxId} inbox_id
|
|
@@ -105,7 +105,7 @@ export declare class MessagesClient {
|
|
|
105
105
|
*
|
|
106
106
|
* **CLI:**
|
|
107
107
|
* ```bash
|
|
108
|
-
* agentmail inboxes
|
|
108
|
+
* agentmail inboxes messages batch-update --inbox-id <inbox_id> --message-ids <id1> --message-ids <id2> --add-labels read --remove-labels unread
|
|
109
109
|
* ```
|
|
110
110
|
*
|
|
111
111
|
* @param {AgentMail.inboxes.InboxId} inbox_id
|
|
@@ -124,7 +124,7 @@ export declare class MessagesClient {
|
|
|
124
124
|
/**
|
|
125
125
|
* **CLI:**
|
|
126
126
|
* ```bash
|
|
127
|
-
* agentmail inboxes
|
|
127
|
+
* agentmail inboxes messages get-attachment --inbox-id <inbox_id> --message-id <message_id> --attachment-id <attachment_id>
|
|
128
128
|
* ```
|
|
129
129
|
*
|
|
130
130
|
* @param {AgentMail.inboxes.InboxId} inbox_id
|
|
@@ -142,7 +142,7 @@ export declare class MessagesClient {
|
|
|
142
142
|
/**
|
|
143
143
|
* **CLI:**
|
|
144
144
|
* ```bash
|
|
145
|
-
* agentmail inboxes
|
|
145
|
+
* agentmail inboxes messages get-raw --inbox-id <inbox_id> --message-id <message_id>
|
|
146
146
|
* ```
|
|
147
147
|
*
|
|
148
148
|
* @param {AgentMail.inboxes.InboxId} inbox_id
|
|
@@ -159,7 +159,7 @@ export declare class MessagesClient {
|
|
|
159
159
|
/**
|
|
160
160
|
* **CLI:**
|
|
161
161
|
* ```bash
|
|
162
|
-
* agentmail inboxes
|
|
162
|
+
* agentmail inboxes messages update --inbox-id <inbox_id> --message-id <message_id> --add-labels read --remove-labels unread
|
|
163
163
|
* ```
|
|
164
164
|
*
|
|
165
165
|
* @param {AgentMail.inboxes.InboxId} inbox_id
|
|
@@ -180,7 +180,7 @@ export declare class MessagesClient {
|
|
|
180
180
|
*
|
|
181
181
|
* **CLI:**
|
|
182
182
|
* ```bash
|
|
183
|
-
* agentmail inboxes
|
|
183
|
+
* agentmail inboxes messages delete --inbox-id <inbox_id> --message-id <message_id>
|
|
184
184
|
* ```
|
|
185
185
|
*
|
|
186
186
|
* @param {AgentMail.inboxes.InboxId} inbox_id
|
|
@@ -197,7 +197,7 @@ export declare class MessagesClient {
|
|
|
197
197
|
/**
|
|
198
198
|
* **CLI:**
|
|
199
199
|
* ```bash
|
|
200
|
-
* agentmail inboxes
|
|
200
|
+
* agentmail inboxes messages send --inbox-id <inbox_id> --to recipient@example.com --subject "Hello" --text "Body"
|
|
201
201
|
* ```
|
|
202
202
|
*
|
|
203
203
|
* @param {AgentMail.inboxes.InboxId} inbox_id
|
|
@@ -217,7 +217,7 @@ export declare class MessagesClient {
|
|
|
217
217
|
/**
|
|
218
218
|
* **CLI:**
|
|
219
219
|
* ```bash
|
|
220
|
-
* agentmail inboxes
|
|
220
|
+
* agentmail inboxes messages reply --inbox-id <inbox_id> --message-id <message_id> --text "Reply text"
|
|
221
221
|
* ```
|
|
222
222
|
*
|
|
223
223
|
* @param {AgentMail.inboxes.InboxId} inbox_id
|
|
@@ -238,7 +238,7 @@ export declare class MessagesClient {
|
|
|
238
238
|
/**
|
|
239
239
|
* **CLI:**
|
|
240
240
|
* ```bash
|
|
241
|
-
* agentmail inboxes
|
|
241
|
+
* agentmail inboxes messages reply-all --inbox-id <inbox_id> --message-id <message_id> --text "Reply text"
|
|
242
242
|
* ```
|
|
243
243
|
*
|
|
244
244
|
* @param {AgentMail.inboxes.InboxId} inbox_id
|
|
@@ -259,7 +259,7 @@ export declare class MessagesClient {
|
|
|
259
259
|
/**
|
|
260
260
|
* **CLI:**
|
|
261
261
|
* ```bash
|
|
262
|
-
* agentmail inboxes
|
|
262
|
+
* agentmail inboxes messages forward --inbox-id <inbox_id> --message-id <message_id> --to recipient@example.com
|
|
263
263
|
* ```
|
|
264
264
|
*
|
|
265
265
|
* @param {AgentMail.inboxes.InboxId} inbox_id
|