@zinn-digital/sdk 0.1.1682 → 0.1.1683
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/generated/schema.d.ts +335 -12
- package/package.json +1 -1
|
@@ -34187,6 +34187,26 @@ export interface paths {
|
|
|
34187
34187
|
patch?: never;
|
|
34188
34188
|
trace?: never;
|
|
34189
34189
|
};
|
|
34190
|
+
"/v1/email-marketing/sender-providers": {
|
|
34191
|
+
parameters: {
|
|
34192
|
+
query?: never;
|
|
34193
|
+
header?: never;
|
|
34194
|
+
path?: never;
|
|
34195
|
+
cookie?: never;
|
|
34196
|
+
};
|
|
34197
|
+
/**
|
|
34198
|
+
* The providers a campaign sender can connect (the connect picker).
|
|
34199
|
+
* @description Gated on `email_marketing.view`. Every enabled catalogue row that sends newsletters, in display order: API sending services and SMTP mailboxes, with the fields each needs.
|
|
34200
|
+
*/
|
|
34201
|
+
get: operations["listEmailMarketingSenderProviders"];
|
|
34202
|
+
put?: never;
|
|
34203
|
+
post?: never;
|
|
34204
|
+
delete?: never;
|
|
34205
|
+
options?: never;
|
|
34206
|
+
head?: never;
|
|
34207
|
+
patch?: never;
|
|
34208
|
+
trace?: never;
|
|
34209
|
+
};
|
|
34190
34210
|
"/v1/email-marketing/senders": {
|
|
34191
34211
|
parameters: {
|
|
34192
34212
|
query?: never;
|
|
@@ -34201,8 +34221,8 @@ export interface paths {
|
|
|
34201
34221
|
get: operations["listEmailMarketingSenders"];
|
|
34202
34222
|
put?: never;
|
|
34203
34223
|
/**
|
|
34204
|
-
* Connect a campaign sender (Zinn® sending, or
|
|
34205
|
-
* @description Gated on `email_marketing.manage`. `kind` is `pool` (Zinn® sending through our marketing pool: send `name` and `from_address` only; the response carries `dkim_record`, the TXT record the From domain publishes, and verifying checks that it is live) or `smtp` (Amazon SES, Resend and Mailgun work through their SMTP interfaces); other kinds are refused until their adapter ships. `pool` is refused (`refusal.campaigns.poolWhiteLabel`) for a white-labelled organisation, which sends through its own server only. An SMTP password goes to the secret store and is never returned. The connection starts `unverified`; call the verify endpoint to prove it. `409` when the organisation already has a connection with that name.
|
|
34224
|
+
* Connect a campaign sender (Zinn® sending, a sending service, a mailbox, or your own SMTP).
|
|
34225
|
+
* @description Gated on `email_marketing.manage`. Pick a `provider` from `listEmailMarketingSenderProviders` (SendGrid, Postmark, SES, Gmail, Microsoft 365 …) and send the fields it lists; API keys are kept in the secret store, never returned. Otherwise `kind` is `pool` (Zinn® sending through our marketing pool: send `name` and `from_address` only; the response carries `dkim_record`, the TXT record the From domain publishes, and verifying checks that it is live) or `smtp` (Amazon SES, Resend and Mailgun work through their SMTP interfaces); other kinds are refused until their adapter ships. `pool` is refused (`refusal.campaigns.poolWhiteLabel`) for a white-labelled organisation, which sends through its own server only. An SMTP password goes to the secret store and is never returned. The connection starts `unverified`; call the verify endpoint to prove it. `409` when the organisation already has a connection with that name.
|
|
34206
34226
|
*/
|
|
34207
34227
|
post: operations["createEmailMarketingSender"];
|
|
34208
34228
|
delete?: never;
|
|
@@ -34231,6 +34251,54 @@ export interface paths {
|
|
|
34231
34251
|
patch?: never;
|
|
34232
34252
|
trace?: never;
|
|
34233
34253
|
};
|
|
34254
|
+
"/v1/email-marketing/senders/{sender_id}/dns": {
|
|
34255
|
+
parameters: {
|
|
34256
|
+
query?: never;
|
|
34257
|
+
header?: never;
|
|
34258
|
+
path?: never;
|
|
34259
|
+
cookie?: never;
|
|
34260
|
+
};
|
|
34261
|
+
/**
|
|
34262
|
+
* Preview the sending records we would add to your DNS (when we host it).
|
|
34263
|
+
* @description Gated on `email_marketing.view`. When the sending domain's DNS is served by us, lists exactly what `applyEmailMarketingSenderDns` would write: the provider's SPF `include:` merged into the SPF already there (your mechanisms and `all` are kept; two SPF records become one), a DMARC record only when none exists, and, for Zinn® sending, its DKIM key. An ESP's DKIM key lives at the ESP and is never written. A zone we do not serve (or one managed by an external app) answers `writable: false` with the reason in `refusal`.
|
|
34264
|
+
*/
|
|
34265
|
+
get: operations["previewEmailMarketingSenderDns"];
|
|
34266
|
+
put?: never;
|
|
34267
|
+
/**
|
|
34268
|
+
* Add the previewed sending records to your DNS, with your consent.
|
|
34269
|
+
* @description Gated on `email_marketing.manage`. `consent` must be `true` (`refusal.campaigns.dnsConsent` otherwise). The plan is computed again at this moment, never taken from an earlier preview, then written, audit-logged (`email_marketing.sender.dns_write`) and the domain checked again, so `health` is the reading the internet gives now. A zone we do not serve is refused (`refusal.campaigns.dnsNotOurs`) and nothing is written.
|
|
34270
|
+
*/
|
|
34271
|
+
post: operations["applyEmailMarketingSenderDns"];
|
|
34272
|
+
delete?: never;
|
|
34273
|
+
options?: never;
|
|
34274
|
+
head?: never;
|
|
34275
|
+
patch?: never;
|
|
34276
|
+
trace?: never;
|
|
34277
|
+
};
|
|
34278
|
+
"/v1/email-marketing/senders/{sender_id}/health": {
|
|
34279
|
+
parameters: {
|
|
34280
|
+
query?: never;
|
|
34281
|
+
header?: never;
|
|
34282
|
+
path?: never;
|
|
34283
|
+
cookie?: never;
|
|
34284
|
+
};
|
|
34285
|
+
/**
|
|
34286
|
+
* The sending domain's DNS + reputation readings, newest first.
|
|
34287
|
+
* @description Gated on `email_marketing.view`. The newest 30 readings of the connection's sending domain.
|
|
34288
|
+
*/
|
|
34289
|
+
get: operations["listEmailMarketingSenderHealth"];
|
|
34290
|
+
put?: never;
|
|
34291
|
+
/**
|
|
34292
|
+
* Re-check the sending domain's DNS + reputation now.
|
|
34293
|
+
* @description Gated on `email_marketing.manage`. Runs the check in the request (it is interactive) and answers the reading; a reading under a minute old is returned as it is instead of asking again. A pool connection is refused (`refusal.campaigns.healthPool`): its DNS is ours.
|
|
34294
|
+
*/
|
|
34295
|
+
post: operations["checkEmailMarketingSenderHealth"];
|
|
34296
|
+
delete?: never;
|
|
34297
|
+
options?: never;
|
|
34298
|
+
head?: never;
|
|
34299
|
+
patch?: never;
|
|
34300
|
+
trace?: never;
|
|
34301
|
+
};
|
|
34234
34302
|
"/v1/email-marketing/senders/{sender_id}/verify": {
|
|
34235
34303
|
parameters: {
|
|
34236
34304
|
query?: never;
|
|
@@ -34260,8 +34328,8 @@ export interface paths {
|
|
|
34260
34328
|
};
|
|
34261
34329
|
get?: never;
|
|
34262
34330
|
/**
|
|
34263
|
-
*
|
|
34264
|
-
* @description Gated on `email_marketing.manage`. The
|
|
34331
|
+
* Set up delivery events from your e-mail provider for this connection.
|
|
34332
|
+
* @description Gated on `email_marketing.manage`. The connection's provider decides the `scheme`: `svix` (Resend, `whsec_…` signing secret) and `mailgun_hmac` (Mailgun HTTP webhook signing key) need `signing_secret`, kept in the secret store and never returned; `url_token` and `sns` (Amazon SES through SNS, which the endpoint confirms itself) need nothing: a token is minted and returned once, inside `webhook_url` as `?t=`, and calling this again replaces it. Point the provider's delivered, bounced and complained events at the returned `webhook_url`. A mailbox connection or a provider with no event webhook is refused (`refusal.campaigns.webhookNone`); a missing or malformed secret is `refusal.campaigns.webhookSecret` (`refusal.campaigns.webhookKey` for Mailgun).
|
|
34265
34333
|
*/
|
|
34266
34334
|
put: operations["setEmailMarketingSenderWebhook"];
|
|
34267
34335
|
post?: never;
|
|
@@ -58968,7 +59036,7 @@ export interface paths {
|
|
|
58968
59036
|
put?: never;
|
|
58969
59037
|
/**
|
|
58970
59038
|
* A customer's own e-mail provider's delivery events for one sending connection.
|
|
58971
|
-
* @description **Unauthenticated by design**: the
|
|
59039
|
+
* @description **Unauthenticated by design**: the connection's provider scheme is the authentication, checked with the secret stored for THIS connection: `svix` (signature over the raw body, at most five minutes old), `mailgun_hmac` (the signed timestamp + token, at most five minutes old), `url_token` and `sns` (the `t` query token minted by `setEmailMarketingSenderWebhook`; an SNS subscription confirmation is followed only to an Amazon SNS host and answers `subscribed`). `401` when it does not verify. Each of the catalogue's ESPs is parsed; only delivered, permanent bounce and complaint events count, matched to the latest send to that address through this connection in the last 14 days; a bounce or complaint suppresses the address at once. Anything else is acknowledged with `200` and ignored. Redelivery is a no-op.
|
|
58972
59040
|
*/
|
|
58973
59041
|
post: operations["receiveEmailMarketingProviderWebhook"];
|
|
58974
59042
|
delete?: never;
|
|
@@ -84443,13 +84511,21 @@ export interface components {
|
|
|
84443
84511
|
value: string;
|
|
84444
84512
|
} | null;
|
|
84445
84513
|
from_address: string;
|
|
84514
|
+
/** @description The sending domain's latest DNS + reputation reading; null for pool and before the first check. */
|
|
84515
|
+
health: components["schemas"]["EmailMarketingSenderHealth"] | null;
|
|
84446
84516
|
host: string;
|
|
84447
84517
|
/** Format: uuid */
|
|
84448
84518
|
id: string;
|
|
84449
84519
|
/** @enum {string} */
|
|
84450
|
-
kind: "pool" | "smtp" | "ses" | "resend" | "mailgun";
|
|
84520
|
+
kind: "pool" | "smtp" | "ses" | "resend" | "mailgun" | "sendgrid" | "postmark" | "sparkpost" | "brevo" | "mailjet" | "elasticemail" | "smtp2go";
|
|
84451
84521
|
name: string;
|
|
84452
84522
|
port: number;
|
|
84523
|
+
/** @description The catalogue slug; empty for a connection made before the catalogue. */
|
|
84524
|
+
provider: string;
|
|
84525
|
+
/** @description The provider's non-secret settings (`region`, `domain`, `message_stream`); never a secret. */
|
|
84526
|
+
settings: {
|
|
84527
|
+
[key: string]: string;
|
|
84528
|
+
};
|
|
84453
84529
|
/** @enum {string} */
|
|
84454
84530
|
status: "unverified" | "verifying" | "verified" | "failing";
|
|
84455
84531
|
status_detail: string;
|
|
@@ -84467,12 +84543,17 @@ export interface components {
|
|
|
84467
84543
|
/** Format: date-time */
|
|
84468
84544
|
verified_at: string | null;
|
|
84469
84545
|
};
|
|
84470
|
-
/** @description `host`, `username` and `password`
|
|
84546
|
+
/** @description Send `provider` (a `sender-providers` slug) and the fields its catalogue row lists in `fields`; the row decides `kind`, and a mailbox provider's SMTP host, port and TLS come from the row. Without `provider`, `kind` is `pool` (name and from address only) or `smtp` (`host`, `username` and `password` required). A missing or malformed field for the chosen provider is refused by name (`refusal.campaigns.providerField`). Every secret (`password`, `api_key`, `api_secret`, `access_key_id`, `secret_access_key`) goes to the secret store and is never returned; `region`, `domain` and `message_stream` are kept as the connection's `settings`. */
|
|
84471
84547
|
EmailMarketingSenderCreate: {
|
|
84548
|
+
access_key_id?: string;
|
|
84549
|
+
api_key?: string;
|
|
84550
|
+
api_secret?: string;
|
|
84551
|
+
domain?: string;
|
|
84472
84552
|
from_address: string;
|
|
84473
84553
|
host?: string;
|
|
84474
84554
|
/** @enum {string} */
|
|
84475
|
-
kind
|
|
84555
|
+
kind?: "pool" | "smtp" | "ses" | "resend" | "mailgun" | "sendgrid" | "postmark" | "sparkpost" | "brevo" | "mailjet" | "elasticemail" | "smtp2go";
|
|
84556
|
+
message_stream?: string;
|
|
84476
84557
|
name: string;
|
|
84477
84558
|
password?: string;
|
|
84478
84559
|
/**
|
|
@@ -84480,15 +84561,93 @@ export interface components {
|
|
|
84480
84561
|
* @enum {integer}
|
|
84481
84562
|
*/
|
|
84482
84563
|
port: 25 | 465 | 587 | 2525;
|
|
84564
|
+
/** @description A slug from GET /v1/email-marketing/sender-providers. */
|
|
84565
|
+
provider?: string;
|
|
84566
|
+
region?: string;
|
|
84567
|
+
secret_access_key?: string;
|
|
84483
84568
|
/** @enum {string} */
|
|
84484
84569
|
tls?: "starttls" | "implicit";
|
|
84485
84570
|
username?: string;
|
|
84486
84571
|
};
|
|
84572
|
+
EmailMarketingSenderDnsChange: {
|
|
84573
|
+
/** @enum {string} */
|
|
84574
|
+
action: "create" | "replace";
|
|
84575
|
+
/** @description What a `replace` overwrites. */
|
|
84576
|
+
current: string[];
|
|
84577
|
+
/** @description The fully qualified record name. */
|
|
84578
|
+
name: string;
|
|
84579
|
+
/** @enum {string} */
|
|
84580
|
+
type: "TXT";
|
|
84581
|
+
value: string;
|
|
84582
|
+
};
|
|
84583
|
+
EmailMarketingSenderDnsPlan: {
|
|
84584
|
+
changes: components["schemas"]["EmailMarketingSenderDnsChange"][];
|
|
84585
|
+
domain: string;
|
|
84586
|
+
/** @description Why it is not writable, as a catalogue key the dashboard renders. */
|
|
84587
|
+
refusal: {
|
|
84588
|
+
/** @example refusal.campaigns.dnsNotOurs */
|
|
84589
|
+
key: string;
|
|
84590
|
+
params: {
|
|
84591
|
+
[key: string]: string;
|
|
84592
|
+
};
|
|
84593
|
+
} | null;
|
|
84594
|
+
/** @description Whether we serve this zone's DNS and can write it. */
|
|
84595
|
+
writable: boolean;
|
|
84596
|
+
zone: string;
|
|
84597
|
+
};
|
|
84598
|
+
/** @description One DNS + reputation check of a sending domain (SPF, DKIM, DMARC, MX, PTR, BIMI, MTA-STS, TLS-RPT, DNS blocklists; docs/1052 §3.2c). `blind` means we could not ask and is never read as healthy. */
|
|
84599
|
+
EmailMarketingSenderHealth: {
|
|
84600
|
+
blocklisted_on: string[];
|
|
84601
|
+
/** Format: date-time */
|
|
84602
|
+
checked_at: string | null;
|
|
84603
|
+
domain: string;
|
|
84604
|
+
findings: {
|
|
84605
|
+
code: string;
|
|
84606
|
+
expected?: string;
|
|
84607
|
+
found?: string;
|
|
84608
|
+
name?: string;
|
|
84609
|
+
/** @enum {string} */
|
|
84610
|
+
record: "SPF" | "DKIM" | "DMARC" | "MX" | "PTR" | "BIMI" | "MTA-STS" | "TLS-RPT" | "DNSBL";
|
|
84611
|
+
/** @enum {string} */
|
|
84612
|
+
severity: "fail" | "warn" | "info";
|
|
84613
|
+
}[];
|
|
84614
|
+
provider: string;
|
|
84615
|
+
/** @enum {string} */
|
|
84616
|
+
status: "ok" | "warn" | "fail" | "blind";
|
|
84617
|
+
};
|
|
84487
84618
|
EmailMarketingSenderList: {
|
|
84488
84619
|
data: components["schemas"]["EmailMarketingSender"][];
|
|
84489
84620
|
/** @description Whether `kind: pool` (Zinn® sending) may be connected. `false` for a white-labelled organisation (a reseller and its clients), which sends through its own server only, because a pool message names our relay in its headers. */
|
|
84490
84621
|
pool_offered?: boolean;
|
|
84491
84622
|
};
|
|
84623
|
+
/** @description One sender catalogue row (docs/1052 §3.2b). */
|
|
84624
|
+
EmailMarketingSenderProvider: {
|
|
84625
|
+
auth: string[];
|
|
84626
|
+
brand_color?: string;
|
|
84627
|
+
/** @description Whether an adapter exists for at least one of its auth methods. */
|
|
84628
|
+
connectable: boolean;
|
|
84629
|
+
daily_limit?: number | null;
|
|
84630
|
+
dkim_selectors?: string[];
|
|
84631
|
+
/** @enum {string} */
|
|
84632
|
+
family: "esp_api" | "mailbox";
|
|
84633
|
+
/** @description The create fields this provider needs. */
|
|
84634
|
+
fields: string[];
|
|
84635
|
+
imap?: {
|
|
84636
|
+
[key: string]: unknown;
|
|
84637
|
+
} | null;
|
|
84638
|
+
modes: string[];
|
|
84639
|
+
name: string;
|
|
84640
|
+
regions: string[];
|
|
84641
|
+
setup_url?: string;
|
|
84642
|
+
slug: string;
|
|
84643
|
+
smtp?: {
|
|
84644
|
+
[key: string]: unknown;
|
|
84645
|
+
} | null;
|
|
84646
|
+
spf_include?: string;
|
|
84647
|
+
/** @description How delivery events arrive: `svix`, `mailgun_hmac`, `url_token` or `sns` (a webhook endpoint), `imap` (a mailbox, read for bounces), or `none`. */
|
|
84648
|
+
webhook_scheme: string;
|
|
84649
|
+
website?: string;
|
|
84650
|
+
};
|
|
84492
84651
|
/** @description A request to register this organisation's own SMS sender name in a country that needs one (`docs/1052` §3.5d). `pending` until our team has the carrier's answer, which can take a few days; `approved` opens the country for this organisation alone. */
|
|
84493
84652
|
EmailMarketingSenderRequest: {
|
|
84494
84653
|
country: string;
|
|
@@ -174869,6 +175028,33 @@ export interface operations {
|
|
|
174869
175028
|
403: components["responses"]["Forbidden"];
|
|
174870
175029
|
};
|
|
174871
175030
|
};
|
|
175031
|
+
listEmailMarketingSenderProviders: {
|
|
175032
|
+
parameters: {
|
|
175033
|
+
query?: {
|
|
175034
|
+
/** @description The organization this call acts on. Optional for a caller with exactly one direct membership; **required** for anyone with more than one — which is every reseller and every agency — because the engine refuses rather than guesses (a wrong guess here writes one tenant's gateway credentials under another tenant's Vault path). */
|
|
175035
|
+
org_id?: components["parameters"]["OrgIdQuery"];
|
|
175036
|
+
};
|
|
175037
|
+
header?: never;
|
|
175038
|
+
path?: never;
|
|
175039
|
+
cookie?: never;
|
|
175040
|
+
};
|
|
175041
|
+
requestBody?: never;
|
|
175042
|
+
responses: {
|
|
175043
|
+
/** @description The catalogue. */
|
|
175044
|
+
200: {
|
|
175045
|
+
headers: {
|
|
175046
|
+
[name: string]: unknown;
|
|
175047
|
+
};
|
|
175048
|
+
content: {
|
|
175049
|
+
"application/json": {
|
|
175050
|
+
data: components["schemas"]["EmailMarketingSenderProvider"][];
|
|
175051
|
+
};
|
|
175052
|
+
};
|
|
175053
|
+
};
|
|
175054
|
+
401: components["responses"]["Unauthorized"];
|
|
175055
|
+
403: components["responses"]["Forbidden"];
|
|
175056
|
+
};
|
|
175057
|
+
};
|
|
174872
175058
|
listEmailMarketingSenders: {
|
|
174873
175059
|
parameters: {
|
|
174874
175060
|
query?: {
|
|
@@ -174954,6 +175140,135 @@ export interface operations {
|
|
|
174954
175140
|
409: components["responses"]["Conflict"];
|
|
174955
175141
|
};
|
|
174956
175142
|
};
|
|
175143
|
+
previewEmailMarketingSenderDns: {
|
|
175144
|
+
parameters: {
|
|
175145
|
+
query?: {
|
|
175146
|
+
/** @description The organization this call acts on. Optional for a caller with exactly one direct membership; **required** for anyone with more than one — which is every reseller and every agency — because the engine refuses rather than guesses (a wrong guess here writes one tenant's gateway credentials under another tenant's Vault path). */
|
|
175147
|
+
org_id?: components["parameters"]["OrgIdQuery"];
|
|
175148
|
+
};
|
|
175149
|
+
header?: never;
|
|
175150
|
+
path: {
|
|
175151
|
+
sender_id: string;
|
|
175152
|
+
};
|
|
175153
|
+
cookie?: never;
|
|
175154
|
+
};
|
|
175155
|
+
requestBody?: never;
|
|
175156
|
+
responses: {
|
|
175157
|
+
/** @description The preview. */
|
|
175158
|
+
200: {
|
|
175159
|
+
headers: {
|
|
175160
|
+
[name: string]: unknown;
|
|
175161
|
+
};
|
|
175162
|
+
content: {
|
|
175163
|
+
"application/json": components["schemas"]["EmailMarketingSenderDnsPlan"];
|
|
175164
|
+
};
|
|
175165
|
+
};
|
|
175166
|
+
401: components["responses"]["Unauthorized"];
|
|
175167
|
+
403: components["responses"]["Forbidden"];
|
|
175168
|
+
404: components["responses"]["NotFound"];
|
|
175169
|
+
};
|
|
175170
|
+
};
|
|
175171
|
+
applyEmailMarketingSenderDns: {
|
|
175172
|
+
parameters: {
|
|
175173
|
+
query?: {
|
|
175174
|
+
/** @description The organization this call acts on. Optional for a caller with exactly one direct membership; **required** for anyone with more than one — which is every reseller and every agency — because the engine refuses rather than guesses (a wrong guess here writes one tenant's gateway credentials under another tenant's Vault path). */
|
|
175175
|
+
org_id?: components["parameters"]["OrgIdQuery"];
|
|
175176
|
+
};
|
|
175177
|
+
header?: never;
|
|
175178
|
+
path: {
|
|
175179
|
+
sender_id: string;
|
|
175180
|
+
};
|
|
175181
|
+
cookie?: never;
|
|
175182
|
+
};
|
|
175183
|
+
requestBody: {
|
|
175184
|
+
content: {
|
|
175185
|
+
"application/json": {
|
|
175186
|
+
/** @description The customer confirmed the preview. */
|
|
175187
|
+
consent: boolean;
|
|
175188
|
+
};
|
|
175189
|
+
};
|
|
175190
|
+
};
|
|
175191
|
+
responses: {
|
|
175192
|
+
/** @description Written. */
|
|
175193
|
+
200: {
|
|
175194
|
+
headers: {
|
|
175195
|
+
[name: string]: unknown;
|
|
175196
|
+
};
|
|
175197
|
+
content: {
|
|
175198
|
+
"application/json": {
|
|
175199
|
+
changes: components["schemas"]["EmailMarketingSenderDnsChange"][];
|
|
175200
|
+
domain: string;
|
|
175201
|
+
health: components["schemas"]["EmailMarketingSenderHealth"] | null;
|
|
175202
|
+
written: number;
|
|
175203
|
+
zone: string;
|
|
175204
|
+
};
|
|
175205
|
+
};
|
|
175206
|
+
};
|
|
175207
|
+
400: components["responses"]["UnprocessableEntity"];
|
|
175208
|
+
401: components["responses"]["Unauthorized"];
|
|
175209
|
+
403: components["responses"]["Forbidden"];
|
|
175210
|
+
404: components["responses"]["NotFound"];
|
|
175211
|
+
};
|
|
175212
|
+
};
|
|
175213
|
+
listEmailMarketingSenderHealth: {
|
|
175214
|
+
parameters: {
|
|
175215
|
+
query?: {
|
|
175216
|
+
/** @description The organization this call acts on. Optional for a caller with exactly one direct membership; **required** for anyone with more than one — which is every reseller and every agency — because the engine refuses rather than guesses (a wrong guess here writes one tenant's gateway credentials under another tenant's Vault path). */
|
|
175217
|
+
org_id?: components["parameters"]["OrgIdQuery"];
|
|
175218
|
+
};
|
|
175219
|
+
header?: never;
|
|
175220
|
+
path: {
|
|
175221
|
+
sender_id: string;
|
|
175222
|
+
};
|
|
175223
|
+
cookie?: never;
|
|
175224
|
+
};
|
|
175225
|
+
requestBody?: never;
|
|
175226
|
+
responses: {
|
|
175227
|
+
/** @description The readings. */
|
|
175228
|
+
200: {
|
|
175229
|
+
headers: {
|
|
175230
|
+
[name: string]: unknown;
|
|
175231
|
+
};
|
|
175232
|
+
content: {
|
|
175233
|
+
"application/json": {
|
|
175234
|
+
data: components["schemas"]["EmailMarketingSenderHealth"][];
|
|
175235
|
+
};
|
|
175236
|
+
};
|
|
175237
|
+
};
|
|
175238
|
+
401: components["responses"]["Unauthorized"];
|
|
175239
|
+
403: components["responses"]["Forbidden"];
|
|
175240
|
+
404: components["responses"]["NotFound"];
|
|
175241
|
+
};
|
|
175242
|
+
};
|
|
175243
|
+
checkEmailMarketingSenderHealth: {
|
|
175244
|
+
parameters: {
|
|
175245
|
+
query?: {
|
|
175246
|
+
/** @description The organization this call acts on. Optional for a caller with exactly one direct membership; **required** for anyone with more than one — which is every reseller and every agency — because the engine refuses rather than guesses (a wrong guess here writes one tenant's gateway credentials under another tenant's Vault path). */
|
|
175247
|
+
org_id?: components["parameters"]["OrgIdQuery"];
|
|
175248
|
+
};
|
|
175249
|
+
header?: never;
|
|
175250
|
+
path: {
|
|
175251
|
+
sender_id: string;
|
|
175252
|
+
};
|
|
175253
|
+
cookie?: never;
|
|
175254
|
+
};
|
|
175255
|
+
requestBody?: never;
|
|
175256
|
+
responses: {
|
|
175257
|
+
/** @description The current reading. */
|
|
175258
|
+
200: {
|
|
175259
|
+
headers: {
|
|
175260
|
+
[name: string]: unknown;
|
|
175261
|
+
};
|
|
175262
|
+
content: {
|
|
175263
|
+
"application/json": components["schemas"]["EmailMarketingSenderHealth"];
|
|
175264
|
+
};
|
|
175265
|
+
};
|
|
175266
|
+
400: components["responses"]["UnprocessableEntity"];
|
|
175267
|
+
401: components["responses"]["Unauthorized"];
|
|
175268
|
+
403: components["responses"]["Forbidden"];
|
|
175269
|
+
404: components["responses"]["NotFound"];
|
|
175270
|
+
};
|
|
175271
|
+
};
|
|
174957
175272
|
verifyEmailMarketingSender: {
|
|
174958
175273
|
parameters: {
|
|
174959
175274
|
query?: {
|
|
@@ -174998,7 +175313,7 @@ export interface operations {
|
|
|
174998
175313
|
requestBody: {
|
|
174999
175314
|
content: {
|
|
175000
175315
|
"application/json": {
|
|
175001
|
-
signing_secret
|
|
175316
|
+
signing_secret?: string;
|
|
175002
175317
|
};
|
|
175003
175318
|
};
|
|
175004
175319
|
};
|
|
@@ -175010,7 +175325,12 @@ export interface operations {
|
|
|
175010
175325
|
};
|
|
175011
175326
|
content: {
|
|
175012
175327
|
"application/json": {
|
|
175013
|
-
/**
|
|
175328
|
+
/** @enum {string} */
|
|
175329
|
+
scheme: "svix" | "mailgun_hmac" | "url_token" | "sns";
|
|
175330
|
+
/**
|
|
175331
|
+
* Format: uri
|
|
175332
|
+
* @description For `url_token` and `sns` this carries the minted token (`?t=`); it is shown on this response only.
|
|
175333
|
+
*/
|
|
175014
175334
|
webhook_url: string;
|
|
175015
175335
|
};
|
|
175016
175336
|
};
|
|
@@ -214585,7 +214905,10 @@ export interface operations {
|
|
|
214585
214905
|
};
|
|
214586
214906
|
receiveEmailMarketingProviderWebhook: {
|
|
214587
214907
|
parameters: {
|
|
214588
|
-
query?:
|
|
214908
|
+
query?: {
|
|
214909
|
+
/** @description The minted token, for the `url_token` and `sns` schemes. */
|
|
214910
|
+
t?: string;
|
|
214911
|
+
};
|
|
214589
214912
|
header?: never;
|
|
214590
214913
|
path: {
|
|
214591
214914
|
connection_id: string;
|
|
@@ -214609,7 +214932,7 @@ export interface operations {
|
|
|
214609
214932
|
"application/json": {
|
|
214610
214933
|
ok: boolean;
|
|
214611
214934
|
/** @enum {string} */
|
|
214612
|
-
outcome?: "recorded" | "duplicate" | "ignored";
|
|
214935
|
+
outcome?: "recorded" | "duplicate" | "ignored" | "subscribed";
|
|
214613
214936
|
};
|
|
214614
214937
|
};
|
|
214615
214938
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zinn-digital/sdk",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1683",
|
|
4
4
|
"description": "Typed TypeScript client for the Zinn Digital Platform API, generated from its OpenAPI spec.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Neil Lock \u2014 CEO, Zinn Digital\u00ae Ltd <office@zinndigital.com>",
|