@zinn-digital/sdk 0.1.1677 → 0.1.1678
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 +244 -0
- package/package.json +1 -1
|
@@ -16217,6 +16217,36 @@ export interface paths {
|
|
|
16217
16217
|
patch: operations["setZinnCampaignsChannels"];
|
|
16218
16218
|
trace?: never;
|
|
16219
16219
|
};
|
|
16220
|
+
"/v1/admin/zinn-campaigns/orgs/{org_id}/deliverability": {
|
|
16221
|
+
parameters: {
|
|
16222
|
+
query?: never;
|
|
16223
|
+
header?: never;
|
|
16224
|
+
path: {
|
|
16225
|
+
org_id: string;
|
|
16226
|
+
};
|
|
16227
|
+
cookie?: never;
|
|
16228
|
+
};
|
|
16229
|
+
/**
|
|
16230
|
+
* One organisation's bounce and complaint thresholds (staff).
|
|
16231
|
+
* @description Requires `abuse.view` or `abuse.manage`.
|
|
16232
|
+
*/
|
|
16233
|
+
get: operations["getZinnCampaignsOrgDeliverability"];
|
|
16234
|
+
/**
|
|
16235
|
+
* Set an organisation's threshold overrides and lock (staff).
|
|
16236
|
+
* @description Requires `abuse.manage`. As the customer's PUT, plus `staff_locked`: while locked the customer cannot change them (the lever for a sender hurting the shared pool). Audited as `email_marketing.thresholds.staff_set`.
|
|
16237
|
+
*/
|
|
16238
|
+
put: operations["setZinnCampaignsOrgDeliverability"];
|
|
16239
|
+
post?: never;
|
|
16240
|
+
/**
|
|
16241
|
+
* Drop an organisation's overrides and lock (staff).
|
|
16242
|
+
* @description Requires `abuse.manage`. Audited as `email_marketing.thresholds.staff_reset`.
|
|
16243
|
+
*/
|
|
16244
|
+
delete: operations["resetZinnCampaignsOrgDeliverability"];
|
|
16245
|
+
options?: never;
|
|
16246
|
+
head?: never;
|
|
16247
|
+
patch?: never;
|
|
16248
|
+
trace?: never;
|
|
16249
|
+
};
|
|
16220
16250
|
"/v1/admin/zinn-campaigns/pauses/{pause_id}/resume": {
|
|
16221
16251
|
parameters: {
|
|
16222
16252
|
query?: never;
|
|
@@ -33905,6 +33935,30 @@ export interface paths {
|
|
|
33905
33935
|
patch?: never;
|
|
33906
33936
|
trace?: never;
|
|
33907
33937
|
};
|
|
33938
|
+
"/v1/email-marketing/deliverability-settings": {
|
|
33939
|
+
parameters: {
|
|
33940
|
+
query?: never;
|
|
33941
|
+
header?: never;
|
|
33942
|
+
path?: never;
|
|
33943
|
+
cookie?: never;
|
|
33944
|
+
};
|
|
33945
|
+
/**
|
|
33946
|
+
* The bounce and spam-complaint thresholds this organisation sends under.
|
|
33947
|
+
* @description Gated on `email_marketing.view`. `effective` is what the send path applies: the platform default for each field, or this organisation's override (`overridden`). By default bounces do NOT pause sending (owner 2026-11-08) and complaints pause above 0.3%. Rates are judged once a campaign has `min_sample` sends. Over a warn line staff are alerted and the send carries on.
|
|
33948
|
+
*/
|
|
33949
|
+
get: operations["getEmailMarketingDeliverabilitySettings"];
|
|
33950
|
+
/**
|
|
33951
|
+
* Set or clear this organisation's threshold overrides.
|
|
33952
|
+
* @description Gated on `email_marketing.manage`. Only the fields sent change; `null` returns a field to the platform default. A rate is basis points 1..10000; anything else is refused with `400` (`refusal.campaigns.thresholdInvalid`). While staff have locked the thresholds the change is refused with `409` (`refusal.campaigns.thresholdsLocked`). Audited as `email_marketing.thresholds.update`.
|
|
33953
|
+
*/
|
|
33954
|
+
put: operations["updateEmailMarketingDeliverabilitySettings"];
|
|
33955
|
+
post?: never;
|
|
33956
|
+
delete?: never;
|
|
33957
|
+
options?: never;
|
|
33958
|
+
head?: never;
|
|
33959
|
+
patch?: never;
|
|
33960
|
+
trace?: never;
|
|
33961
|
+
};
|
|
33908
33962
|
"/v1/email-marketing/flows": {
|
|
33909
33963
|
parameters: {
|
|
33910
33964
|
query?: never;
|
|
@@ -84079,6 +84133,33 @@ export interface components {
|
|
|
84079
84133
|
/** Format: uuid */
|
|
84080
84134
|
next_after: string | null;
|
|
84081
84135
|
};
|
|
84136
|
+
EmailMarketingDeliverabilitySettings: {
|
|
84137
|
+
effective: components["schemas"]["EmailMarketingThresholdValues"];
|
|
84138
|
+
/** @description Sends a campaign needs before any rate is judged. */
|
|
84139
|
+
min_sample: number;
|
|
84140
|
+
/** Format: uuid */
|
|
84141
|
+
org_id: string;
|
|
84142
|
+
/** @description The fields this organisation overrides; every other one follows `platform`. */
|
|
84143
|
+
overridden: ("bounce_pause_enabled" | "bounce_pause_bps" | "complaint_pause_enabled" | "complaint_pause_bps")[];
|
|
84144
|
+
platform: components["schemas"]["EmailMarketingThresholdValues"];
|
|
84145
|
+
/** @description Staff locked the thresholds; only staff can change them. */
|
|
84146
|
+
staff_locked: boolean;
|
|
84147
|
+
};
|
|
84148
|
+
/** @description As `EmailMarketingDeliverabilityWrite`, plus the staff lock. */
|
|
84149
|
+
EmailMarketingDeliverabilityStaffWrite: {
|
|
84150
|
+
bounce_pause_bps?: number | null;
|
|
84151
|
+
bounce_pause_enabled?: boolean | null;
|
|
84152
|
+
complaint_pause_bps?: number | null;
|
|
84153
|
+
complaint_pause_enabled?: boolean | null;
|
|
84154
|
+
staff_locked?: boolean;
|
|
84155
|
+
};
|
|
84156
|
+
/** @description Only the fields sent change; `null` clears an override (back to the platform default). */
|
|
84157
|
+
EmailMarketingDeliverabilityWrite: {
|
|
84158
|
+
bounce_pause_bps?: number | null;
|
|
84159
|
+
bounce_pause_enabled?: boolean | null;
|
|
84160
|
+
complaint_pause_bps?: number | null;
|
|
84161
|
+
complaint_pause_enabled?: boolean | null;
|
|
84162
|
+
};
|
|
84082
84163
|
EmailMarketingFlow: {
|
|
84083
84164
|
/** Format: date-time */
|
|
84084
84165
|
activated_at: string | null;
|
|
@@ -84422,6 +84503,18 @@ export interface components {
|
|
|
84422
84503
|
/** @enum {string} */
|
|
84423
84504
|
outcome: "accepted" | "rejected" | "deferred";
|
|
84424
84505
|
};
|
|
84506
|
+
EmailMarketingThresholdValues: {
|
|
84507
|
+
/** @description Basis points (500 = 5%). */
|
|
84508
|
+
bounce_pause_bps: number;
|
|
84509
|
+
bounce_pause_enabled: boolean;
|
|
84510
|
+
/** @description Soft guard line (staff alert */
|
|
84511
|
+
bounce_warn_bps: number;
|
|
84512
|
+
/** @description Basis points (30 = 0.3%). */
|
|
84513
|
+
complaint_pause_bps: number;
|
|
84514
|
+
complaint_pause_enabled: boolean;
|
|
84515
|
+
/** @description Soft guard line (staff alert */
|
|
84516
|
+
complaint_warn_bps: number;
|
|
84517
|
+
};
|
|
84425
84518
|
EmailMarketingUsRegistration: {
|
|
84426
84519
|
brand_name: string;
|
|
84427
84520
|
/** @enum {string} */
|
|
@@ -117098,11 +117191,15 @@ export interface components {
|
|
|
117098
117191
|
};
|
|
117099
117192
|
ZinnCampaignsChannelSettings: {
|
|
117100
117193
|
bounce_pause_bps: number;
|
|
117194
|
+
bounce_pause_enabled: boolean;
|
|
117195
|
+
bounce_warn_bps: number;
|
|
117101
117196
|
/** @description The margin row staff configured (basis points over vendor cost). */
|
|
117102
117197
|
channel_margin_bps: number;
|
|
117103
117198
|
/** @description The credit floor margin (basis points) no channel price goes under. */
|
|
117104
117199
|
readonly channel_margin_floor_bps: number;
|
|
117105
117200
|
complaint_pause_bps: number;
|
|
117201
|
+
complaint_pause_enabled: boolean;
|
|
117202
|
+
complaint_warn_bps: number;
|
|
117106
117203
|
/** @description The margin a message is CHARGED at: channel_margin_bps raised to the 3x-net credit floor (CREDIT3X). */
|
|
117107
117204
|
readonly effective_channel_margin_bps: number;
|
|
117108
117205
|
line_enabled: boolean;
|
|
@@ -143152,6 +143249,18 @@ export interface operations {
|
|
|
143152
143249
|
requestBody: {
|
|
143153
143250
|
content: {
|
|
143154
143251
|
"application/json": {
|
|
143252
|
+
/** @description Platform bounce pause line, basis points (500 = 5%). */
|
|
143253
|
+
bounce_pause_bps?: number;
|
|
143254
|
+
/** @description Platform default. Off (owner 2026-11-08) — bounces do not pause sending. */
|
|
143255
|
+
bounce_pause_enabled?: boolean;
|
|
143256
|
+
/** @description Soft guard: over it staff are alerted, never a pause (500 = 5%). */
|
|
143257
|
+
bounce_warn_bps?: number;
|
|
143258
|
+
/** @description Platform complaint pause line, basis points (30 = 0.3%, the default). */
|
|
143259
|
+
complaint_pause_bps?: number;
|
|
143260
|
+
/** @description Platform default. On. */
|
|
143261
|
+
complaint_pause_enabled?: boolean;
|
|
143262
|
+
/** @description Soft guard: over it staff are alerted, never a pause (10 = 0.1%). */
|
|
143263
|
+
complaint_warn_bps?: number;
|
|
143155
143264
|
pilot_org_ids?: string[];
|
|
143156
143265
|
/** @description Organisations staff approved to send more e-mail in a month than the review line (`review_monthly_emails`). */
|
|
143157
143266
|
review_approved_org_ids?: string[];
|
|
@@ -143184,6 +143293,83 @@ export interface operations {
|
|
|
143184
143293
|
429: components["responses"]["TooManyRequests"];
|
|
143185
143294
|
};
|
|
143186
143295
|
};
|
|
143296
|
+
getZinnCampaignsOrgDeliverability: {
|
|
143297
|
+
parameters: {
|
|
143298
|
+
query?: never;
|
|
143299
|
+
header?: never;
|
|
143300
|
+
path: {
|
|
143301
|
+
org_id: string;
|
|
143302
|
+
};
|
|
143303
|
+
cookie?: never;
|
|
143304
|
+
};
|
|
143305
|
+
requestBody?: never;
|
|
143306
|
+
responses: {
|
|
143307
|
+
/** @description The thresholds. */
|
|
143308
|
+
200: {
|
|
143309
|
+
headers: {
|
|
143310
|
+
[name: string]: unknown;
|
|
143311
|
+
};
|
|
143312
|
+
content: {
|
|
143313
|
+
"application/json": components["schemas"]["EmailMarketingDeliverabilitySettings"];
|
|
143314
|
+
};
|
|
143315
|
+
};
|
|
143316
|
+
401: components["responses"]["Unauthorized"];
|
|
143317
|
+
403: components["responses"]["Forbidden"];
|
|
143318
|
+
};
|
|
143319
|
+
};
|
|
143320
|
+
setZinnCampaignsOrgDeliverability: {
|
|
143321
|
+
parameters: {
|
|
143322
|
+
query?: never;
|
|
143323
|
+
header?: never;
|
|
143324
|
+
path: {
|
|
143325
|
+
org_id: string;
|
|
143326
|
+
};
|
|
143327
|
+
cookie?: never;
|
|
143328
|
+
};
|
|
143329
|
+
requestBody: {
|
|
143330
|
+
content: {
|
|
143331
|
+
"application/json": components["schemas"]["EmailMarketingDeliverabilityStaffWrite"];
|
|
143332
|
+
};
|
|
143333
|
+
};
|
|
143334
|
+
responses: {
|
|
143335
|
+
/** @description The thresholds after the change. */
|
|
143336
|
+
200: {
|
|
143337
|
+
headers: {
|
|
143338
|
+
[name: string]: unknown;
|
|
143339
|
+
};
|
|
143340
|
+
content: {
|
|
143341
|
+
"application/json": components["schemas"]["EmailMarketingDeliverabilitySettings"];
|
|
143342
|
+
};
|
|
143343
|
+
};
|
|
143344
|
+
400: components["responses"]["UnprocessableEntity"];
|
|
143345
|
+
401: components["responses"]["Unauthorized"];
|
|
143346
|
+
403: components["responses"]["Forbidden"];
|
|
143347
|
+
};
|
|
143348
|
+
};
|
|
143349
|
+
resetZinnCampaignsOrgDeliverability: {
|
|
143350
|
+
parameters: {
|
|
143351
|
+
query?: never;
|
|
143352
|
+
header?: never;
|
|
143353
|
+
path: {
|
|
143354
|
+
org_id: string;
|
|
143355
|
+
};
|
|
143356
|
+
cookie?: never;
|
|
143357
|
+
};
|
|
143358
|
+
requestBody?: never;
|
|
143359
|
+
responses: {
|
|
143360
|
+
/** @description The thresholds after the reset (all platform defaults). */
|
|
143361
|
+
200: {
|
|
143362
|
+
headers: {
|
|
143363
|
+
[name: string]: unknown;
|
|
143364
|
+
};
|
|
143365
|
+
content: {
|
|
143366
|
+
"application/json": components["schemas"]["EmailMarketingDeliverabilitySettings"];
|
|
143367
|
+
};
|
|
143368
|
+
};
|
|
143369
|
+
401: components["responses"]["Unauthorized"];
|
|
143370
|
+
403: components["responses"]["Forbidden"];
|
|
143371
|
+
};
|
|
143372
|
+
};
|
|
143187
143373
|
resumeZinnCampaignsPause: {
|
|
143188
143374
|
parameters: {
|
|
143189
143375
|
query?: never;
|
|
@@ -174076,6 +174262,64 @@ export interface operations {
|
|
|
174076
174262
|
503: components["responses"]["ServiceUnavailable"];
|
|
174077
174263
|
};
|
|
174078
174264
|
};
|
|
174265
|
+
getEmailMarketingDeliverabilitySettings: {
|
|
174266
|
+
parameters: {
|
|
174267
|
+
query?: {
|
|
174268
|
+
/** @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). */
|
|
174269
|
+
org_id?: components["parameters"]["OrgIdQuery"];
|
|
174270
|
+
};
|
|
174271
|
+
header?: never;
|
|
174272
|
+
path?: never;
|
|
174273
|
+
cookie?: never;
|
|
174274
|
+
};
|
|
174275
|
+
requestBody?: never;
|
|
174276
|
+
responses: {
|
|
174277
|
+
/** @description The thresholds. */
|
|
174278
|
+
200: {
|
|
174279
|
+
headers: {
|
|
174280
|
+
[name: string]: unknown;
|
|
174281
|
+
};
|
|
174282
|
+
content: {
|
|
174283
|
+
"application/json": components["schemas"]["EmailMarketingDeliverabilitySettings"];
|
|
174284
|
+
};
|
|
174285
|
+
};
|
|
174286
|
+
401: components["responses"]["Unauthorized"];
|
|
174287
|
+
403: components["responses"]["Forbidden"];
|
|
174288
|
+
404: components["responses"]["NotFound"];
|
|
174289
|
+
};
|
|
174290
|
+
};
|
|
174291
|
+
updateEmailMarketingDeliverabilitySettings: {
|
|
174292
|
+
parameters: {
|
|
174293
|
+
query?: {
|
|
174294
|
+
/** @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). */
|
|
174295
|
+
org_id?: components["parameters"]["OrgIdQuery"];
|
|
174296
|
+
};
|
|
174297
|
+
header?: never;
|
|
174298
|
+
path?: never;
|
|
174299
|
+
cookie?: never;
|
|
174300
|
+
};
|
|
174301
|
+
requestBody: {
|
|
174302
|
+
content: {
|
|
174303
|
+
"application/json": components["schemas"]["EmailMarketingDeliverabilityWrite"];
|
|
174304
|
+
};
|
|
174305
|
+
};
|
|
174306
|
+
responses: {
|
|
174307
|
+
/** @description The thresholds after the change. */
|
|
174308
|
+
200: {
|
|
174309
|
+
headers: {
|
|
174310
|
+
[name: string]: unknown;
|
|
174311
|
+
};
|
|
174312
|
+
content: {
|
|
174313
|
+
"application/json": components["schemas"]["EmailMarketingDeliverabilitySettings"];
|
|
174314
|
+
};
|
|
174315
|
+
};
|
|
174316
|
+
400: components["responses"]["UnprocessableEntity"];
|
|
174317
|
+
401: components["responses"]["Unauthorized"];
|
|
174318
|
+
403: components["responses"]["Forbidden"];
|
|
174319
|
+
404: components["responses"]["NotFound"];
|
|
174320
|
+
409: components["responses"]["Conflict"];
|
|
174321
|
+
};
|
|
174322
|
+
};
|
|
174079
174323
|
listEmailMarketingFlows: {
|
|
174080
174324
|
parameters: {
|
|
174081
174325
|
query?: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zinn-digital/sdk",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1678",
|
|
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>",
|