hanzoai 8.5.889 → 8.5.911
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/api/email-api.d.ts +399 -0
- package/dist/api/email-api.js +589 -0
- package/dist/api/event-api.d.ts +12 -12
- package/dist/api/event-api.js +12 -12
- package/dist/api/flag-api.d.ts +125 -0
- package/dist/api/flag-api.js +193 -0
- package/dist/api/marketing-api.d.ts +89 -42
- package/dist/api/marketing-api.js +106 -40
- package/dist/api/project-api.d.ts +105 -1438
- package/dist/api/project-api.js +258 -2154
- package/dist/api/provider-api.d.ts +184 -0
- package/dist/api/provider-api.js +311 -0
- package/dist/api/referral-api.d.ts +47 -0
- package/dist/api/referral-api.js +67 -0
- package/dist/api.d.ts +1 -0
- package/dist/api.js +1 -0
- package/dist/esm/api/email-api.d.ts +398 -0
- package/dist/esm/api/email-api.js +579 -0
- package/dist/esm/api/event-api.d.ts +12 -12
- package/dist/esm/api/event-api.js +12 -12
- package/dist/esm/api/flag-api.d.ts +125 -0
- package/dist/esm/api/flag-api.js +193 -0
- package/dist/esm/api/marketing-api.d.ts +89 -42
- package/dist/esm/api/marketing-api.js +106 -40
- package/dist/esm/api/project-api.d.ts +105 -1438
- package/dist/esm/api/project-api.js +258 -2154
- package/dist/esm/api/provider-api.d.ts +184 -0
- package/dist/esm/api/provider-api.js +311 -0
- package/dist/esm/api/referral-api.d.ts +47 -0
- package/dist/esm/api/referral-api.js +67 -0
- package/dist/esm/api.d.ts +1 -0
- package/dist/esm/api.js +1 -0
- package/dist/esm/models/auto-automation-in.d.ts +13 -0
- package/dist/esm/models/auto-automation-patch.d.ts +13 -0
- package/dist/esm/models/auto-automation.d.ts +13 -0
- package/dist/esm/models/auto-outcome-trigger.d.ts +30 -0
- package/dist/esm/models/auto-outcome-trigger.js +14 -0
- package/dist/esm/models/email-classification-check.d.ts +48 -0
- package/dist/esm/models/email-classification-check.js +14 -0
- package/dist/esm/models/email-dispatch.d.ts +32 -0
- package/dist/esm/models/email-dispatch.js +14 -0
- package/dist/esm/models/email-domain-check.d.ts +30 -0
- package/dist/esm/models/email-domain-check.js +14 -0
- package/dist/esm/models/email-list-messages-result.d.ts +31 -0
- package/dist/esm/models/email-list-messages-result.js +14 -0
- package/dist/esm/models/email-message-record.d.ts +96 -0
- package/dist/esm/models/email-message-record.js +14 -0
- package/dist/esm/models/email-mxcheck.d.ts +36 -0
- package/dist/esm/models/email-mxcheck.js +14 -0
- package/dist/esm/models/email-refused.d.ts +36 -0
- package/dist/esm/models/email-refused.js +14 -0
- package/dist/esm/models/email-send-grid-status-result.d.ts +91 -0
- package/dist/esm/models/email-send-grid-status-result.js +14 -0
- package/dist/esm/models/email-send-message-input.d.ts +92 -0
- package/dist/esm/models/email-send-message-input.js +14 -0
- package/dist/esm/models/email-sesdnsrecord.d.ts +54 -0
- package/dist/esm/models/email-sesdnsrecord.js +14 -0
- package/dist/esm/models/email-sesstatus-result.d.ts +103 -0
- package/dist/esm/models/email-sesstatus-result.js +14 -0
- package/dist/esm/models/email-smtpcheck.d.ts +60 -0
- package/dist/esm/models/email-smtpcheck.js +14 -0
- package/dist/esm/models/email-suggestion.d.ts +30 -0
- package/dist/esm/models/email-suggestion.js +14 -0
- package/dist/esm/models/email-syntax-check.d.ts +42 -0
- package/dist/esm/models/email-syntax-check.js +14 -0
- package/dist/esm/models/email-verification-checks.d.ts +53 -0
- package/dist/esm/models/email-verification-checks.js +14 -0
- package/dist/esm/models/email-verification-input.d.ts +54 -0
- package/dist/esm/models/email-verification-input.js +14 -0
- package/dist/esm/models/email-verification-result.d.ts +38 -0
- package/dist/esm/models/email-verification-result.js +14 -0
- package/dist/esm/models/flag-optin-in.d.ts +24 -0
- package/dist/esm/models/flag-optin-in.js +14 -0
- package/dist/esm/models/flag-optin-out.d.ts +36 -0
- package/dist/esm/models/flag-optin-out.js +14 -0
- package/dist/esm/models/flag-org-optin-in.d.ts +24 -0
- package/dist/esm/models/flag-org-optin-in.js +14 -0
- package/dist/esm/models/flag-org-optin-out.d.ts +24 -0
- package/dist/esm/models/flag-org-optin-out.js +14 -0
- package/dist/esm/models/index.d.ts +29 -0
- package/dist/esm/models/index.js +29 -0
- package/dist/esm/models/marketing-lead-in.d.ts +1 -1
- package/dist/esm/models/marketing-mail-in.d.ts +1 -1
- package/dist/esm/models/marketing-suppression-check.d.ts +36 -0
- package/dist/esm/models/marketing-suppression-check.js +14 -0
- package/dist/esm/models/marketing-suppression.d.ts +1 -1
- package/dist/esm/models/marketing-unsubscribed.d.ts +12 -0
- package/dist/esm/models/provider-google-user-complete-in.d.ts +24 -0
- package/dist/esm/models/provider-google-user-complete-in.js +14 -0
- package/dist/esm/models/provider-google-user-connect-in.d.ts +24 -0
- package/dist/esm/models/provider-google-user-connect-in.js +14 -0
- package/dist/esm/models/provider-google-user-connect-out.d.ts +24 -0
- package/dist/esm/models/provider-google-user-connect-out.js +14 -0
- package/dist/esm/models/provider-google-user-disconnect-out.d.ts +30 -0
- package/dist/esm/models/provider-google-user-disconnect-out.js +14 -0
- package/dist/esm/models/provider-google-user-out.d.ts +54 -0
- package/dist/esm/models/provider-google-user-out.js +14 -0
- package/dist/esm/models/referral-set-code-request.d.ts +24 -0
- package/dist/esm/models/referral-set-code-request.js +14 -0
- package/dist/models/auto-automation-in.d.ts +13 -0
- package/dist/models/auto-automation-patch.d.ts +13 -0
- package/dist/models/auto-automation.d.ts +13 -0
- package/dist/models/auto-outcome-trigger.d.ts +30 -0
- package/dist/models/auto-outcome-trigger.js +15 -0
- package/dist/models/email-classification-check.d.ts +48 -0
- package/dist/models/email-classification-check.js +15 -0
- package/dist/models/email-dispatch.d.ts +32 -0
- package/dist/models/email-dispatch.js +15 -0
- package/dist/models/email-domain-check.d.ts +30 -0
- package/dist/models/email-domain-check.js +15 -0
- package/dist/models/email-list-messages-result.d.ts +31 -0
- package/dist/models/email-list-messages-result.js +15 -0
- package/dist/models/email-message-record.d.ts +96 -0
- package/dist/models/email-message-record.js +15 -0
- package/dist/models/email-mxcheck.d.ts +36 -0
- package/dist/models/email-mxcheck.js +15 -0
- package/dist/models/email-refused.d.ts +36 -0
- package/dist/models/email-refused.js +15 -0
- package/dist/models/email-send-grid-status-result.d.ts +91 -0
- package/dist/models/email-send-grid-status-result.js +15 -0
- package/dist/models/email-send-message-input.d.ts +92 -0
- package/dist/models/email-send-message-input.js +15 -0
- package/dist/models/email-sesdnsrecord.d.ts +54 -0
- package/dist/models/email-sesdnsrecord.js +15 -0
- package/dist/models/email-sesstatus-result.d.ts +103 -0
- package/dist/models/email-sesstatus-result.js +15 -0
- package/dist/models/email-smtpcheck.d.ts +60 -0
- package/dist/models/email-smtpcheck.js +15 -0
- package/dist/models/email-suggestion.d.ts +30 -0
- package/dist/models/email-suggestion.js +15 -0
- package/dist/models/email-syntax-check.d.ts +42 -0
- package/dist/models/email-syntax-check.js +15 -0
- package/dist/models/email-verification-checks.d.ts +53 -0
- package/dist/models/email-verification-checks.js +15 -0
- package/dist/models/email-verification-input.d.ts +54 -0
- package/dist/models/email-verification-input.js +15 -0
- package/dist/models/email-verification-result.d.ts +38 -0
- package/dist/models/email-verification-result.js +15 -0
- package/dist/models/flag-optin-in.d.ts +24 -0
- package/dist/models/flag-optin-in.js +15 -0
- package/dist/models/flag-optin-out.d.ts +36 -0
- package/dist/models/flag-optin-out.js +15 -0
- package/dist/models/flag-org-optin-in.d.ts +24 -0
- package/dist/models/flag-org-optin-in.js +15 -0
- package/dist/models/flag-org-optin-out.d.ts +24 -0
- package/dist/models/flag-org-optin-out.js +15 -0
- package/dist/models/index.d.ts +29 -0
- package/dist/models/index.js +29 -0
- package/dist/models/marketing-lead-in.d.ts +1 -1
- package/dist/models/marketing-mail-in.d.ts +1 -1
- package/dist/models/marketing-suppression-check.d.ts +36 -0
- package/dist/models/marketing-suppression-check.js +15 -0
- package/dist/models/marketing-suppression.d.ts +1 -1
- package/dist/models/marketing-unsubscribed.d.ts +12 -0
- package/dist/models/provider-google-user-complete-in.d.ts +24 -0
- package/dist/models/provider-google-user-complete-in.js +15 -0
- package/dist/models/provider-google-user-connect-in.d.ts +24 -0
- package/dist/models/provider-google-user-connect-in.js +15 -0
- package/dist/models/provider-google-user-connect-out.d.ts +24 -0
- package/dist/models/provider-google-user-connect-out.js +15 -0
- package/dist/models/provider-google-user-disconnect-out.d.ts +30 -0
- package/dist/models/provider-google-user-disconnect-out.js +15 -0
- package/dist/models/provider-google-user-out.d.ts +54 -0
- package/dist/models/provider-google-user-out.js +15 -0
- package/dist/models/referral-set-code-request.d.ts +24 -0
- package/dist/models/referral-set-code-request.js +15 -0
- package/package.json +1 -1
- package/src/api/email-api.ts +764 -0
- package/src/api/event-api.ts +12 -12
- package/src/api/flag-api.ts +252 -0
- package/src/api/marketing-api.ts +148 -58
- package/src/api/project-api.ts +350 -2887
- package/src/api/provider-api.ts +386 -0
- package/src/api/referral-api.ts +91 -0
- package/src/api.ts +1 -0
- package/src/models/auto-automation-in.ts +15 -0
- package/src/models/auto-automation-patch.ts +15 -0
- package/src/models/auto-automation.ts +15 -0
- package/src/models/auto-outcome-trigger.ts +36 -0
- package/src/models/email-classification-check.ts +54 -0
- package/src/models/email-dispatch.ts +42 -0
- package/src/models/email-domain-check.ts +36 -0
- package/src/models/email-list-messages-result.ts +39 -0
- package/src/models/email-message-record.ts +102 -0
- package/src/models/email-mxcheck.ts +42 -0
- package/src/models/email-refused.ts +42 -0
- package/src/models/email-send-grid-status-result.ts +99 -0
- package/src/models/email-send-message-input.ts +96 -0
- package/src/models/email-sesdnsrecord.ts +60 -0
- package/src/models/email-sesstatus-result.ts +111 -0
- package/src/models/email-smtpcheck.ts +66 -0
- package/src/models/email-suggestion.ts +36 -0
- package/src/models/email-syntax-check.ts +48 -0
- package/src/models/email-verification-checks.ts +69 -0
- package/src/models/email-verification-input.ts +60 -0
- package/src/models/email-verification-result.ts +48 -0
- package/src/models/flag-optin-in.ts +30 -0
- package/src/models/flag-optin-out.ts +42 -0
- package/src/models/flag-org-optin-in.ts +30 -0
- package/src/models/flag-org-optin-out.ts +30 -0
- package/src/models/index.ts +29 -0
- package/src/models/marketing-lead-in.ts +1 -1
- package/src/models/marketing-mail-in.ts +1 -1
- package/src/models/marketing-suppression-check.ts +42 -0
- package/src/models/marketing-suppression.ts +1 -1
- package/src/models/marketing-unsubscribed.ts +12 -0
- package/src/models/provider-google-user-complete-in.ts +30 -0
- package/src/models/provider-google-user-connect-in.ts +30 -0
- package/src/models/provider-google-user-connect-out.ts +30 -0
- package/src/models/provider-google-user-disconnect-out.ts +36 -0
- package/src/models/provider-google-user-out.ts +60 -0
- package/src/models/referral-set-code-request.ts +30 -0
|
@@ -0,0 +1,399 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Hanzo Cloud API
|
|
3
|
+
* The Hanzo Cloud API as a customer calls it: every operation under /v1/ except the operator\'s admin product, relay routes, legacy spellings and capabilities still reached by flag. Tagged by product: the first path segment after /v1/.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: v1
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { Configuration } from '../configuration';
|
|
13
|
+
import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
|
|
14
|
+
import globalAxios from 'axios';
|
|
15
|
+
import { type RequestArgs, BaseAPI } from '../base';
|
|
16
|
+
import type { EmailDispatch } from '../models';
|
|
17
|
+
import type { EmailListMessagesResult } from '../models';
|
|
18
|
+
import type { EmailMessageRecord } from '../models';
|
|
19
|
+
import type { EmailSESStatusResult } from '../models';
|
|
20
|
+
import type { EmailSendGridStatusResult } from '../models';
|
|
21
|
+
import type { EmailSendMessageInput } from '../models';
|
|
22
|
+
import type { EmailVerificationInput } from '../models';
|
|
23
|
+
import type { EmailVerificationResult } from '../models';
|
|
24
|
+
/**
|
|
25
|
+
* EmailApi - axios parameter creator
|
|
26
|
+
* @export
|
|
27
|
+
*/
|
|
28
|
+
export declare const EmailApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
29
|
+
/**
|
|
30
|
+
* Retrieves sent email messages for the authenticated organization. GET /v1/email
|
|
31
|
+
* @summary Retrieves sent email messages for the authenticated organization.
|
|
32
|
+
* @param {number} [limit] Limit is the maximum number of messages to return (default 50, max 200).
|
|
33
|
+
* @param {string} [status] Status filters messages by delivery status.
|
|
34
|
+
* @param {*} [options] Override http request option.
|
|
35
|
+
* @throws {RequiredError}
|
|
36
|
+
*/
|
|
37
|
+
getEmail: (limit?: number, status?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
38
|
+
/**
|
|
39
|
+
* Retrieves message delivery status by ID for the authenticated organization. GET /v1/email/:id
|
|
40
|
+
* @summary Retrieves message delivery status by ID for the authenticated organization.
|
|
41
|
+
* @param {string} id ID is the unique identifier of the message to retrieve.
|
|
42
|
+
* @param {*} [options] Override http request option.
|
|
43
|
+
* @throws {RequiredError}
|
|
44
|
+
*/
|
|
45
|
+
getEmailById: (id: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
46
|
+
/**
|
|
47
|
+
* Inspects the authenticated organization\'s dedicated SendGrid outreach configuration (separate from standard Twilio notify) and whitelabel DNS records. GET /v1/email/sendgrid/status
|
|
48
|
+
* @summary Inspects the authenticated organization\'s dedicated SendGrid outreach configuration (separate from standard Twilio notify) and whitelabel DNS records.
|
|
49
|
+
* @param {string} [domain] Domain is an optional sending domain to generate SendGrid whitelabel DKIM, Return-Path, and DMARC records for.
|
|
50
|
+
* @param {*} [options] Override http request option.
|
|
51
|
+
* @throws {RequiredError}
|
|
52
|
+
*/
|
|
53
|
+
getEmailSendgridStatus: (domain?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
54
|
+
/**
|
|
55
|
+
* Inspects the authenticated organization\'s Amazon SES configuration, sending limits, and Easy DKIM / MAIL FROM DNS records. GET /v1/email/ses/status
|
|
56
|
+
* @summary Inspects the authenticated organization\'s Amazon SES configuration, sending limits, and Easy DKIM / MAIL FROM DNS records.
|
|
57
|
+
* @param {string} [domain] Domain optionally specifies the sending domain to generate Easy DKIM and MAIL FROM records for.
|
|
58
|
+
* @param {*} [options] Override http request option.
|
|
59
|
+
* @throws {RequiredError}
|
|
60
|
+
*/
|
|
61
|
+
getEmailSesStatus: (domain?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
62
|
+
/**
|
|
63
|
+
* Sends commercial email from the org: one message per recipient, each carrying its own signed unsubscribe link in the footer and in List-Unsubscribe and List-Unsubscribe-Post (RFC 8058). Every recipient is first asked of the one suppression check (marketing_clearance): an address the org\'s list holds, whose company unsubscribed, or that the platform blocks is not sent to, and is answered in refused with status 422 and the reason; when every recipient is refused the request is 422. A list that cannot answer sends nothing (503). Every message, sent or refused, goes on the CRM record of the person the org holds for the address. Transactional mail — a code, a receipt — is not this route\'s: it goes by /v1/notify, which no opt-out stops. POST /v1/email
|
|
64
|
+
* @summary Sends commercial email from the org: one message per recipient, each carrying its own signed unsubscribe link in the footer and in List-Unsubscribe and List-Unsubscribe-Post (RFC 8058).
|
|
65
|
+
* @param {EmailSendMessageInput} emailSendMessageInput
|
|
66
|
+
* @param {string} [idempotencyKey] IdempotencyKey prevents duplicate message dispatches on network retries.
|
|
67
|
+
* @param {*} [options] Override http request option.
|
|
68
|
+
* @throws {RequiredError}
|
|
69
|
+
*/
|
|
70
|
+
postEmail: (emailSendMessageInput: EmailSendMessageInput, idempotencyKey?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
71
|
+
/**
|
|
72
|
+
* Evaluates an email address using explicitly selected, composable checks. A signed-in caller only: the SMTP check connects to the address\'s mail server from ours, so an anonymous caller could probe mailboxes and get our addresses blocked. Each caller may run 120 checks an hour and 20 of them SMTP probes, and the deployment 6,000 and 400; past either is 429. POST /v1/email/verify
|
|
73
|
+
* @summary Evaluates an email address using explicitly selected, composable checks.
|
|
74
|
+
* @param {EmailVerificationInput} emailVerificationInput
|
|
75
|
+
* @param {*} [options] Override http request option.
|
|
76
|
+
* @throws {RequiredError}
|
|
77
|
+
*/
|
|
78
|
+
postEmailVerify: (emailVerificationInput: EmailVerificationInput, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
79
|
+
/**
|
|
80
|
+
* Receives SendGrid\'s Signed Event Webhook: the delivery is an array of events, signed (ECDSA P-256, SHA-256) over its timestamp header followed by the body, under the public key the organization holds (the webhook-public-key credential). A delivery signed more than ten minutes from now is refused, so a captured one cannot be replayed. POST /v1/email/webhooks/sendgrid?org=<org>
|
|
81
|
+
* @summary Receives SendGrid\'s Signed Event Webhook: the delivery is an array of events, signed (ECDSA P-256, SHA-256) over its timestamp header followed by the body, under the public key the organization holds (the webhook-public-key credential).
|
|
82
|
+
* @param {*} [options] Override http request option.
|
|
83
|
+
* @throws {RequiredError}
|
|
84
|
+
*/
|
|
85
|
+
postEmailWebhooksSendgrid: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
86
|
+
/**
|
|
87
|
+
* Receives Amazon SES events as an SNS HTTPS subscription delivers them. The organization is named in the address (?org=) and holds the SNS topic its events arrive on (the sns-topic-arn credential): a message is accepted when it is signed by SNS, is from that topic, and its certificate comes from that topic\'s region. A subscription confirmation is completed the same way and records nothing. POST /v1/email/webhooks/ses?org=<org>
|
|
88
|
+
* @summary Receives Amazon SES events as an SNS HTTPS subscription delivers them.
|
|
89
|
+
* @param {*} [options] Override http request option.
|
|
90
|
+
* @throws {RequiredError}
|
|
91
|
+
*/
|
|
92
|
+
postEmailWebhooksSes: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
93
|
+
};
|
|
94
|
+
/**
|
|
95
|
+
* EmailApi - functional programming interface
|
|
96
|
+
* @export
|
|
97
|
+
*/
|
|
98
|
+
export declare const EmailApiFp: (configuration?: Configuration) => {
|
|
99
|
+
/**
|
|
100
|
+
* Retrieves sent email messages for the authenticated organization. GET /v1/email
|
|
101
|
+
* @summary Retrieves sent email messages for the authenticated organization.
|
|
102
|
+
* @param {number} [limit] Limit is the maximum number of messages to return (default 50, max 200).
|
|
103
|
+
* @param {string} [status] Status filters messages by delivery status.
|
|
104
|
+
* @param {*} [options] Override http request option.
|
|
105
|
+
* @throws {RequiredError}
|
|
106
|
+
*/
|
|
107
|
+
getEmail(limit?: number, status?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<EmailListMessagesResult>>;
|
|
108
|
+
/**
|
|
109
|
+
* Retrieves message delivery status by ID for the authenticated organization. GET /v1/email/:id
|
|
110
|
+
* @summary Retrieves message delivery status by ID for the authenticated organization.
|
|
111
|
+
* @param {string} id ID is the unique identifier of the message to retrieve.
|
|
112
|
+
* @param {*} [options] Override http request option.
|
|
113
|
+
* @throws {RequiredError}
|
|
114
|
+
*/
|
|
115
|
+
getEmailById(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<EmailMessageRecord>>;
|
|
116
|
+
/**
|
|
117
|
+
* Inspects the authenticated organization\'s dedicated SendGrid outreach configuration (separate from standard Twilio notify) and whitelabel DNS records. GET /v1/email/sendgrid/status
|
|
118
|
+
* @summary Inspects the authenticated organization\'s dedicated SendGrid outreach configuration (separate from standard Twilio notify) and whitelabel DNS records.
|
|
119
|
+
* @param {string} [domain] Domain is an optional sending domain to generate SendGrid whitelabel DKIM, Return-Path, and DMARC records for.
|
|
120
|
+
* @param {*} [options] Override http request option.
|
|
121
|
+
* @throws {RequiredError}
|
|
122
|
+
*/
|
|
123
|
+
getEmailSendgridStatus(domain?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<EmailSendGridStatusResult>>;
|
|
124
|
+
/**
|
|
125
|
+
* Inspects the authenticated organization\'s Amazon SES configuration, sending limits, and Easy DKIM / MAIL FROM DNS records. GET /v1/email/ses/status
|
|
126
|
+
* @summary Inspects the authenticated organization\'s Amazon SES configuration, sending limits, and Easy DKIM / MAIL FROM DNS records.
|
|
127
|
+
* @param {string} [domain] Domain optionally specifies the sending domain to generate Easy DKIM and MAIL FROM records for.
|
|
128
|
+
* @param {*} [options] Override http request option.
|
|
129
|
+
* @throws {RequiredError}
|
|
130
|
+
*/
|
|
131
|
+
getEmailSesStatus(domain?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<EmailSESStatusResult>>;
|
|
132
|
+
/**
|
|
133
|
+
* Sends commercial email from the org: one message per recipient, each carrying its own signed unsubscribe link in the footer and in List-Unsubscribe and List-Unsubscribe-Post (RFC 8058). Every recipient is first asked of the one suppression check (marketing_clearance): an address the org\'s list holds, whose company unsubscribed, or that the platform blocks is not sent to, and is answered in refused with status 422 and the reason; when every recipient is refused the request is 422. A list that cannot answer sends nothing (503). Every message, sent or refused, goes on the CRM record of the person the org holds for the address. Transactional mail — a code, a receipt — is not this route\'s: it goes by /v1/notify, which no opt-out stops. POST /v1/email
|
|
134
|
+
* @summary Sends commercial email from the org: one message per recipient, each carrying its own signed unsubscribe link in the footer and in List-Unsubscribe and List-Unsubscribe-Post (RFC 8058).
|
|
135
|
+
* @param {EmailSendMessageInput} emailSendMessageInput
|
|
136
|
+
* @param {string} [idempotencyKey] IdempotencyKey prevents duplicate message dispatches on network retries.
|
|
137
|
+
* @param {*} [options] Override http request option.
|
|
138
|
+
* @throws {RequiredError}
|
|
139
|
+
*/
|
|
140
|
+
postEmail(emailSendMessageInput: EmailSendMessageInput, idempotencyKey?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<EmailDispatch>>;
|
|
141
|
+
/**
|
|
142
|
+
* Evaluates an email address using explicitly selected, composable checks. A signed-in caller only: the SMTP check connects to the address\'s mail server from ours, so an anonymous caller could probe mailboxes and get our addresses blocked. Each caller may run 120 checks an hour and 20 of them SMTP probes, and the deployment 6,000 and 400; past either is 429. POST /v1/email/verify
|
|
143
|
+
* @summary Evaluates an email address using explicitly selected, composable checks.
|
|
144
|
+
* @param {EmailVerificationInput} emailVerificationInput
|
|
145
|
+
* @param {*} [options] Override http request option.
|
|
146
|
+
* @throws {RequiredError}
|
|
147
|
+
*/
|
|
148
|
+
postEmailVerify(emailVerificationInput: EmailVerificationInput, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<EmailVerificationResult>>;
|
|
149
|
+
/**
|
|
150
|
+
* Receives SendGrid\'s Signed Event Webhook: the delivery is an array of events, signed (ECDSA P-256, SHA-256) over its timestamp header followed by the body, under the public key the organization holds (the webhook-public-key credential). A delivery signed more than ten minutes from now is refused, so a captured one cannot be replayed. POST /v1/email/webhooks/sendgrid?org=<org>
|
|
151
|
+
* @summary Receives SendGrid\'s Signed Event Webhook: the delivery is an array of events, signed (ECDSA P-256, SHA-256) over its timestamp header followed by the body, under the public key the organization holds (the webhook-public-key credential).
|
|
152
|
+
* @param {*} [options] Override http request option.
|
|
153
|
+
* @throws {RequiredError}
|
|
154
|
+
*/
|
|
155
|
+
postEmailWebhooksSendgrid(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
156
|
+
/**
|
|
157
|
+
* Receives Amazon SES events as an SNS HTTPS subscription delivers them. The organization is named in the address (?org=) and holds the SNS topic its events arrive on (the sns-topic-arn credential): a message is accepted when it is signed by SNS, is from that topic, and its certificate comes from that topic\'s region. A subscription confirmation is completed the same way and records nothing. POST /v1/email/webhooks/ses?org=<org>
|
|
158
|
+
* @summary Receives Amazon SES events as an SNS HTTPS subscription delivers them.
|
|
159
|
+
* @param {*} [options] Override http request option.
|
|
160
|
+
* @throws {RequiredError}
|
|
161
|
+
*/
|
|
162
|
+
postEmailWebhooksSes(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
163
|
+
};
|
|
164
|
+
/**
|
|
165
|
+
* EmailApi - factory interface
|
|
166
|
+
* @export
|
|
167
|
+
*/
|
|
168
|
+
export declare const EmailApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
169
|
+
/**
|
|
170
|
+
* Retrieves sent email messages for the authenticated organization. GET /v1/email
|
|
171
|
+
* @summary Retrieves sent email messages for the authenticated organization.
|
|
172
|
+
* @param {EmailApiGetEmailRequest} requestParameters Request parameters.
|
|
173
|
+
* @param {*} [options] Override http request option.
|
|
174
|
+
* @throws {RequiredError}
|
|
175
|
+
*/
|
|
176
|
+
getEmail(requestParameters?: EmailApiGetEmailRequest, options?: RawAxiosRequestConfig): AxiosPromise<EmailListMessagesResult>;
|
|
177
|
+
/**
|
|
178
|
+
* Retrieves message delivery status by ID for the authenticated organization. GET /v1/email/:id
|
|
179
|
+
* @summary Retrieves message delivery status by ID for the authenticated organization.
|
|
180
|
+
* @param {EmailApiGetEmailByIdRequest} requestParameters Request parameters.
|
|
181
|
+
* @param {*} [options] Override http request option.
|
|
182
|
+
* @throws {RequiredError}
|
|
183
|
+
*/
|
|
184
|
+
getEmailById(requestParameters: EmailApiGetEmailByIdRequest, options?: RawAxiosRequestConfig): AxiosPromise<EmailMessageRecord>;
|
|
185
|
+
/**
|
|
186
|
+
* Inspects the authenticated organization\'s dedicated SendGrid outreach configuration (separate from standard Twilio notify) and whitelabel DNS records. GET /v1/email/sendgrid/status
|
|
187
|
+
* @summary Inspects the authenticated organization\'s dedicated SendGrid outreach configuration (separate from standard Twilio notify) and whitelabel DNS records.
|
|
188
|
+
* @param {EmailApiGetEmailSendgridStatusRequest} requestParameters Request parameters.
|
|
189
|
+
* @param {*} [options] Override http request option.
|
|
190
|
+
* @throws {RequiredError}
|
|
191
|
+
*/
|
|
192
|
+
getEmailSendgridStatus(requestParameters?: EmailApiGetEmailSendgridStatusRequest, options?: RawAxiosRequestConfig): AxiosPromise<EmailSendGridStatusResult>;
|
|
193
|
+
/**
|
|
194
|
+
* Inspects the authenticated organization\'s Amazon SES configuration, sending limits, and Easy DKIM / MAIL FROM DNS records. GET /v1/email/ses/status
|
|
195
|
+
* @summary Inspects the authenticated organization\'s Amazon SES configuration, sending limits, and Easy DKIM / MAIL FROM DNS records.
|
|
196
|
+
* @param {EmailApiGetEmailSesStatusRequest} requestParameters Request parameters.
|
|
197
|
+
* @param {*} [options] Override http request option.
|
|
198
|
+
* @throws {RequiredError}
|
|
199
|
+
*/
|
|
200
|
+
getEmailSesStatus(requestParameters?: EmailApiGetEmailSesStatusRequest, options?: RawAxiosRequestConfig): AxiosPromise<EmailSESStatusResult>;
|
|
201
|
+
/**
|
|
202
|
+
* Sends commercial email from the org: one message per recipient, each carrying its own signed unsubscribe link in the footer and in List-Unsubscribe and List-Unsubscribe-Post (RFC 8058). Every recipient is first asked of the one suppression check (marketing_clearance): an address the org\'s list holds, whose company unsubscribed, or that the platform blocks is not sent to, and is answered in refused with status 422 and the reason; when every recipient is refused the request is 422. A list that cannot answer sends nothing (503). Every message, sent or refused, goes on the CRM record of the person the org holds for the address. Transactional mail — a code, a receipt — is not this route\'s: it goes by /v1/notify, which no opt-out stops. POST /v1/email
|
|
203
|
+
* @summary Sends commercial email from the org: one message per recipient, each carrying its own signed unsubscribe link in the footer and in List-Unsubscribe and List-Unsubscribe-Post (RFC 8058).
|
|
204
|
+
* @param {EmailApiPostEmailRequest} requestParameters Request parameters.
|
|
205
|
+
* @param {*} [options] Override http request option.
|
|
206
|
+
* @throws {RequiredError}
|
|
207
|
+
*/
|
|
208
|
+
postEmail(requestParameters: EmailApiPostEmailRequest, options?: RawAxiosRequestConfig): AxiosPromise<EmailDispatch>;
|
|
209
|
+
/**
|
|
210
|
+
* Evaluates an email address using explicitly selected, composable checks. A signed-in caller only: the SMTP check connects to the address\'s mail server from ours, so an anonymous caller could probe mailboxes and get our addresses blocked. Each caller may run 120 checks an hour and 20 of them SMTP probes, and the deployment 6,000 and 400; past either is 429. POST /v1/email/verify
|
|
211
|
+
* @summary Evaluates an email address using explicitly selected, composable checks.
|
|
212
|
+
* @param {EmailApiPostEmailVerifyRequest} requestParameters Request parameters.
|
|
213
|
+
* @param {*} [options] Override http request option.
|
|
214
|
+
* @throws {RequiredError}
|
|
215
|
+
*/
|
|
216
|
+
postEmailVerify(requestParameters: EmailApiPostEmailVerifyRequest, options?: RawAxiosRequestConfig): AxiosPromise<EmailVerificationResult>;
|
|
217
|
+
/**
|
|
218
|
+
* Receives SendGrid\'s Signed Event Webhook: the delivery is an array of events, signed (ECDSA P-256, SHA-256) over its timestamp header followed by the body, under the public key the organization holds (the webhook-public-key credential). A delivery signed more than ten minutes from now is refused, so a captured one cannot be replayed. POST /v1/email/webhooks/sendgrid?org=<org>
|
|
219
|
+
* @summary Receives SendGrid\'s Signed Event Webhook: the delivery is an array of events, signed (ECDSA P-256, SHA-256) over its timestamp header followed by the body, under the public key the organization holds (the webhook-public-key credential).
|
|
220
|
+
* @param {*} [options] Override http request option.
|
|
221
|
+
* @throws {RequiredError}
|
|
222
|
+
*/
|
|
223
|
+
postEmailWebhooksSendgrid(options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
224
|
+
/**
|
|
225
|
+
* Receives Amazon SES events as an SNS HTTPS subscription delivers them. The organization is named in the address (?org=) and holds the SNS topic its events arrive on (the sns-topic-arn credential): a message is accepted when it is signed by SNS, is from that topic, and its certificate comes from that topic\'s region. A subscription confirmation is completed the same way and records nothing. POST /v1/email/webhooks/ses?org=<org>
|
|
226
|
+
* @summary Receives Amazon SES events as an SNS HTTPS subscription delivers them.
|
|
227
|
+
* @param {*} [options] Override http request option.
|
|
228
|
+
* @throws {RequiredError}
|
|
229
|
+
*/
|
|
230
|
+
postEmailWebhooksSes(options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
231
|
+
};
|
|
232
|
+
/**
|
|
233
|
+
* Request parameters for getEmail operation in EmailApi.
|
|
234
|
+
* @export
|
|
235
|
+
* @interface EmailApiGetEmailRequest
|
|
236
|
+
*/
|
|
237
|
+
export interface EmailApiGetEmailRequest {
|
|
238
|
+
/**
|
|
239
|
+
* Limit is the maximum number of messages to return (default 50, max 200).
|
|
240
|
+
* @type {number}
|
|
241
|
+
* @memberof EmailApiGetEmail
|
|
242
|
+
*/
|
|
243
|
+
readonly limit?: number;
|
|
244
|
+
/**
|
|
245
|
+
* Status filters messages by delivery status.
|
|
246
|
+
* @type {string}
|
|
247
|
+
* @memberof EmailApiGetEmail
|
|
248
|
+
*/
|
|
249
|
+
readonly status?: string;
|
|
250
|
+
}
|
|
251
|
+
/**
|
|
252
|
+
* Request parameters for getEmailById operation in EmailApi.
|
|
253
|
+
* @export
|
|
254
|
+
* @interface EmailApiGetEmailByIdRequest
|
|
255
|
+
*/
|
|
256
|
+
export interface EmailApiGetEmailByIdRequest {
|
|
257
|
+
/**
|
|
258
|
+
* ID is the unique identifier of the message to retrieve.
|
|
259
|
+
* @type {string}
|
|
260
|
+
* @memberof EmailApiGetEmailById
|
|
261
|
+
*/
|
|
262
|
+
readonly id: string;
|
|
263
|
+
}
|
|
264
|
+
/**
|
|
265
|
+
* Request parameters for getEmailSendgridStatus operation in EmailApi.
|
|
266
|
+
* @export
|
|
267
|
+
* @interface EmailApiGetEmailSendgridStatusRequest
|
|
268
|
+
*/
|
|
269
|
+
export interface EmailApiGetEmailSendgridStatusRequest {
|
|
270
|
+
/**
|
|
271
|
+
* Domain is an optional sending domain to generate SendGrid whitelabel DKIM, Return-Path, and DMARC records for.
|
|
272
|
+
* @type {string}
|
|
273
|
+
* @memberof EmailApiGetEmailSendgridStatus
|
|
274
|
+
*/
|
|
275
|
+
readonly domain?: string;
|
|
276
|
+
}
|
|
277
|
+
/**
|
|
278
|
+
* Request parameters for getEmailSesStatus operation in EmailApi.
|
|
279
|
+
* @export
|
|
280
|
+
* @interface EmailApiGetEmailSesStatusRequest
|
|
281
|
+
*/
|
|
282
|
+
export interface EmailApiGetEmailSesStatusRequest {
|
|
283
|
+
/**
|
|
284
|
+
* Domain optionally specifies the sending domain to generate Easy DKIM and MAIL FROM records for.
|
|
285
|
+
* @type {string}
|
|
286
|
+
* @memberof EmailApiGetEmailSesStatus
|
|
287
|
+
*/
|
|
288
|
+
readonly domain?: string;
|
|
289
|
+
}
|
|
290
|
+
/**
|
|
291
|
+
* Request parameters for postEmail operation in EmailApi.
|
|
292
|
+
* @export
|
|
293
|
+
* @interface EmailApiPostEmailRequest
|
|
294
|
+
*/
|
|
295
|
+
export interface EmailApiPostEmailRequest {
|
|
296
|
+
/**
|
|
297
|
+
*
|
|
298
|
+
* @type {EmailSendMessageInput}
|
|
299
|
+
* @memberof EmailApiPostEmail
|
|
300
|
+
*/
|
|
301
|
+
readonly emailSendMessageInput: EmailSendMessageInput;
|
|
302
|
+
/**
|
|
303
|
+
* IdempotencyKey prevents duplicate message dispatches on network retries.
|
|
304
|
+
* @type {string}
|
|
305
|
+
* @memberof EmailApiPostEmail
|
|
306
|
+
*/
|
|
307
|
+
readonly idempotencyKey?: string;
|
|
308
|
+
}
|
|
309
|
+
/**
|
|
310
|
+
* Request parameters for postEmailVerify operation in EmailApi.
|
|
311
|
+
* @export
|
|
312
|
+
* @interface EmailApiPostEmailVerifyRequest
|
|
313
|
+
*/
|
|
314
|
+
export interface EmailApiPostEmailVerifyRequest {
|
|
315
|
+
/**
|
|
316
|
+
*
|
|
317
|
+
* @type {EmailVerificationInput}
|
|
318
|
+
* @memberof EmailApiPostEmailVerify
|
|
319
|
+
*/
|
|
320
|
+
readonly emailVerificationInput: EmailVerificationInput;
|
|
321
|
+
}
|
|
322
|
+
/**
|
|
323
|
+
* EmailApi - object-oriented interface
|
|
324
|
+
* @export
|
|
325
|
+
* @class EmailApi
|
|
326
|
+
* @extends {BaseAPI}
|
|
327
|
+
*/
|
|
328
|
+
export declare class EmailApi extends BaseAPI {
|
|
329
|
+
/**
|
|
330
|
+
* Retrieves sent email messages for the authenticated organization. GET /v1/email
|
|
331
|
+
* @summary Retrieves sent email messages for the authenticated organization.
|
|
332
|
+
* @param {EmailApiGetEmailRequest} requestParameters Request parameters.
|
|
333
|
+
* @param {*} [options] Override http request option.
|
|
334
|
+
* @throws {RequiredError}
|
|
335
|
+
* @memberof EmailApi
|
|
336
|
+
*/
|
|
337
|
+
getEmail(requestParameters?: EmailApiGetEmailRequest, options?: RawAxiosRequestConfig): Promise<globalAxios.AxiosResponse<EmailListMessagesResult, any, {}>>;
|
|
338
|
+
/**
|
|
339
|
+
* Retrieves message delivery status by ID for the authenticated organization. GET /v1/email/:id
|
|
340
|
+
* @summary Retrieves message delivery status by ID for the authenticated organization.
|
|
341
|
+
* @param {EmailApiGetEmailByIdRequest} requestParameters Request parameters.
|
|
342
|
+
* @param {*} [options] Override http request option.
|
|
343
|
+
* @throws {RequiredError}
|
|
344
|
+
* @memberof EmailApi
|
|
345
|
+
*/
|
|
346
|
+
getEmailById(requestParameters: EmailApiGetEmailByIdRequest, options?: RawAxiosRequestConfig): Promise<globalAxios.AxiosResponse<EmailMessageRecord, any, {}>>;
|
|
347
|
+
/**
|
|
348
|
+
* Inspects the authenticated organization\'s dedicated SendGrid outreach configuration (separate from standard Twilio notify) and whitelabel DNS records. GET /v1/email/sendgrid/status
|
|
349
|
+
* @summary Inspects the authenticated organization\'s dedicated SendGrid outreach configuration (separate from standard Twilio notify) and whitelabel DNS records.
|
|
350
|
+
* @param {EmailApiGetEmailSendgridStatusRequest} requestParameters Request parameters.
|
|
351
|
+
* @param {*} [options] Override http request option.
|
|
352
|
+
* @throws {RequiredError}
|
|
353
|
+
* @memberof EmailApi
|
|
354
|
+
*/
|
|
355
|
+
getEmailSendgridStatus(requestParameters?: EmailApiGetEmailSendgridStatusRequest, options?: RawAxiosRequestConfig): Promise<globalAxios.AxiosResponse<EmailSendGridStatusResult, any, {}>>;
|
|
356
|
+
/**
|
|
357
|
+
* Inspects the authenticated organization\'s Amazon SES configuration, sending limits, and Easy DKIM / MAIL FROM DNS records. GET /v1/email/ses/status
|
|
358
|
+
* @summary Inspects the authenticated organization\'s Amazon SES configuration, sending limits, and Easy DKIM / MAIL FROM DNS records.
|
|
359
|
+
* @param {EmailApiGetEmailSesStatusRequest} requestParameters Request parameters.
|
|
360
|
+
* @param {*} [options] Override http request option.
|
|
361
|
+
* @throws {RequiredError}
|
|
362
|
+
* @memberof EmailApi
|
|
363
|
+
*/
|
|
364
|
+
getEmailSesStatus(requestParameters?: EmailApiGetEmailSesStatusRequest, options?: RawAxiosRequestConfig): Promise<globalAxios.AxiosResponse<EmailSESStatusResult, any, {}>>;
|
|
365
|
+
/**
|
|
366
|
+
* Sends commercial email from the org: one message per recipient, each carrying its own signed unsubscribe link in the footer and in List-Unsubscribe and List-Unsubscribe-Post (RFC 8058). Every recipient is first asked of the one suppression check (marketing_clearance): an address the org\'s list holds, whose company unsubscribed, or that the platform blocks is not sent to, and is answered in refused with status 422 and the reason; when every recipient is refused the request is 422. A list that cannot answer sends nothing (503). Every message, sent or refused, goes on the CRM record of the person the org holds for the address. Transactional mail — a code, a receipt — is not this route\'s: it goes by /v1/notify, which no opt-out stops. POST /v1/email
|
|
367
|
+
* @summary Sends commercial email from the org: one message per recipient, each carrying its own signed unsubscribe link in the footer and in List-Unsubscribe and List-Unsubscribe-Post (RFC 8058).
|
|
368
|
+
* @param {EmailApiPostEmailRequest} requestParameters Request parameters.
|
|
369
|
+
* @param {*} [options] Override http request option.
|
|
370
|
+
* @throws {RequiredError}
|
|
371
|
+
* @memberof EmailApi
|
|
372
|
+
*/
|
|
373
|
+
postEmail(requestParameters: EmailApiPostEmailRequest, options?: RawAxiosRequestConfig): Promise<globalAxios.AxiosResponse<EmailDispatch, any, {}>>;
|
|
374
|
+
/**
|
|
375
|
+
* Evaluates an email address using explicitly selected, composable checks. A signed-in caller only: the SMTP check connects to the address\'s mail server from ours, so an anonymous caller could probe mailboxes and get our addresses blocked. Each caller may run 120 checks an hour and 20 of them SMTP probes, and the deployment 6,000 and 400; past either is 429. POST /v1/email/verify
|
|
376
|
+
* @summary Evaluates an email address using explicitly selected, composable checks.
|
|
377
|
+
* @param {EmailApiPostEmailVerifyRequest} requestParameters Request parameters.
|
|
378
|
+
* @param {*} [options] Override http request option.
|
|
379
|
+
* @throws {RequiredError}
|
|
380
|
+
* @memberof EmailApi
|
|
381
|
+
*/
|
|
382
|
+
postEmailVerify(requestParameters: EmailApiPostEmailVerifyRequest, options?: RawAxiosRequestConfig): Promise<globalAxios.AxiosResponse<EmailVerificationResult, any, {}>>;
|
|
383
|
+
/**
|
|
384
|
+
* Receives SendGrid\'s Signed Event Webhook: the delivery is an array of events, signed (ECDSA P-256, SHA-256) over its timestamp header followed by the body, under the public key the organization holds (the webhook-public-key credential). A delivery signed more than ten minutes from now is refused, so a captured one cannot be replayed. POST /v1/email/webhooks/sendgrid?org=<org>
|
|
385
|
+
* @summary Receives SendGrid\'s Signed Event Webhook: the delivery is an array of events, signed (ECDSA P-256, SHA-256) over its timestamp header followed by the body, under the public key the organization holds (the webhook-public-key credential).
|
|
386
|
+
* @param {*} [options] Override http request option.
|
|
387
|
+
* @throws {RequiredError}
|
|
388
|
+
* @memberof EmailApi
|
|
389
|
+
*/
|
|
390
|
+
postEmailWebhooksSendgrid(options?: RawAxiosRequestConfig): Promise<globalAxios.AxiosResponse<void, any, {}>>;
|
|
391
|
+
/**
|
|
392
|
+
* Receives Amazon SES events as an SNS HTTPS subscription delivers them. The organization is named in the address (?org=) and holds the SNS topic its events arrive on (the sns-topic-arn credential): a message is accepted when it is signed by SNS, is from that topic, and its certificate comes from that topic\'s region. A subscription confirmation is completed the same way and records nothing. POST /v1/email/webhooks/ses?org=<org>
|
|
393
|
+
* @summary Receives Amazon SES events as an SNS HTTPS subscription delivers them.
|
|
394
|
+
* @param {*} [options] Override http request option.
|
|
395
|
+
* @throws {RequiredError}
|
|
396
|
+
* @memberof EmailApi
|
|
397
|
+
*/
|
|
398
|
+
postEmailWebhooksSes(options?: RawAxiosRequestConfig): Promise<globalAxios.AxiosResponse<void, any, {}>>;
|
|
399
|
+
}
|