@zinn-digital/sdk 0.1.1657 → 0.1.1658
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 +151 -2
- package/package.json +1 -1
|
@@ -16259,6 +16259,28 @@ export interface paths {
|
|
|
16259
16259
|
patch?: never;
|
|
16260
16260
|
trace?: never;
|
|
16261
16261
|
};
|
|
16262
|
+
"/v1/admin/zinn-campaigns/registrations/{registration_id}/decision": {
|
|
16263
|
+
parameters: {
|
|
16264
|
+
query?: never;
|
|
16265
|
+
header?: never;
|
|
16266
|
+
path: {
|
|
16267
|
+
registration_id: string;
|
|
16268
|
+
};
|
|
16269
|
+
cookie?: never;
|
|
16270
|
+
};
|
|
16271
|
+
get?: never;
|
|
16272
|
+
put?: never;
|
|
16273
|
+
/**
|
|
16274
|
+
* Record the carrier's answer to a customer's own-sender-name request (staff).
|
|
16275
|
+
* @description For a `sender_<country>` registration in `pending` only (`docs/1052` §3.5d). `approve: true` opens that country for that organisation alone, sending as its own requested name (a Zinn® name is refused again here); `false` rejects it, keeping `reason` for the customer. Requires `abuse.manage`. Audited (`email_marketing.sms.sender_request.decide`).
|
|
16276
|
+
*/
|
|
16277
|
+
post: operations["decideZinnCampaignsRegistration"];
|
|
16278
|
+
delete?: never;
|
|
16279
|
+
options?: never;
|
|
16280
|
+
head?: never;
|
|
16281
|
+
patch?: never;
|
|
16282
|
+
trace?: never;
|
|
16283
|
+
};
|
|
16262
16284
|
"/v1/ads/analytics/breakdown": {
|
|
16263
16285
|
parameters: {
|
|
16264
16286
|
query?: never;
|
|
@@ -34322,6 +34344,26 @@ export interface paths {
|
|
|
34322
34344
|
patch?: never;
|
|
34323
34345
|
trace?: never;
|
|
34324
34346
|
};
|
|
34347
|
+
"/v1/email-marketing/sms/sender-requests": {
|
|
34348
|
+
parameters: {
|
|
34349
|
+
query?: never;
|
|
34350
|
+
header?: never;
|
|
34351
|
+
path?: never;
|
|
34352
|
+
cookie?: never;
|
|
34353
|
+
};
|
|
34354
|
+
get?: never;
|
|
34355
|
+
put?: never;
|
|
34356
|
+
/**
|
|
34357
|
+
* Ask to register this organisation's own SMS sender name in another country.
|
|
34358
|
+
* @description Gated on `email_marketing.manage`. Countries in `sender_request_countries` (on `GET /v1/email-marketing/sms`) only deliver texts from a sender registered there first. This records the request with our team, who file it with the carrier; approvals can take a few days. When approved, that country opens for this organisation alone and its texts go out under this name, never Zinn®'s. Free: nothing is charged. One open request per country. Refusal: `CAMPAIGNS_SENDER_REQUEST_REFUSED` (400, or 409 when the country is already open or already has a request waiting; `details[].code` says why). Audited (`email_marketing.sms.sender_request.create`).
|
|
34359
|
+
*/
|
|
34360
|
+
post: operations["createEmailMarketingSmsSenderRequest"];
|
|
34361
|
+
delete?: never;
|
|
34362
|
+
options?: never;
|
|
34363
|
+
head?: never;
|
|
34364
|
+
patch?: never;
|
|
34365
|
+
trace?: never;
|
|
34366
|
+
};
|
|
34325
34367
|
"/v1/entitlements": {
|
|
34326
34368
|
parameters: {
|
|
34327
34369
|
query?: never;
|
|
@@ -84075,6 +84117,10 @@ export interface components {
|
|
|
84075
84117
|
sender_id: string;
|
|
84076
84118
|
/** @description Countries where `sender_id` is used. Others need a registered number. */
|
|
84077
84119
|
sender_id_countries: string[];
|
|
84120
|
+
/** @description Countries that open once this organisation's own sender name is registered there (`POST /v1/email-marketing/sms/sender-requests`). Approvals can take a few days. */
|
|
84121
|
+
sender_request_countries: string[];
|
|
84122
|
+
/** @description The latest request per country. */
|
|
84123
|
+
sender_requests: components["schemas"]["EmailMarketingSenderRequest"][];
|
|
84078
84124
|
/** @description The organisation's own WhatsApp Business Account is connected. */
|
|
84079
84125
|
whatsapp_connected: boolean;
|
|
84080
84126
|
whatsapp_display_phone: string;
|
|
@@ -84136,6 +84182,21 @@ export interface components {
|
|
|
84136
84182
|
/** @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. */
|
|
84137
84183
|
pool_offered?: boolean;
|
|
84138
84184
|
};
|
|
84185
|
+
/** @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. */
|
|
84186
|
+
EmailMarketingSenderRequest: {
|
|
84187
|
+
country: string;
|
|
84188
|
+
/** Format: date-time */
|
|
84189
|
+
created_at: string;
|
|
84190
|
+
/** Format: date-time */
|
|
84191
|
+
decided_at: string | null;
|
|
84192
|
+
/** Format: uuid */
|
|
84193
|
+
id: string;
|
|
84194
|
+
/** @description The carrier's reason when rejected. */
|
|
84195
|
+
reason: string;
|
|
84196
|
+
sender_id: string;
|
|
84197
|
+
/** @enum {string} */
|
|
84198
|
+
status: "pending" | "approved" | "rejected";
|
|
84199
|
+
};
|
|
84139
84200
|
EmailMarketingSms: {
|
|
84140
84201
|
credit_balance_usd_micros: number;
|
|
84141
84202
|
max_characters: number;
|
|
@@ -84147,6 +84208,8 @@ export interface components {
|
|
|
84147
84208
|
}[];
|
|
84148
84209
|
sender_id: string;
|
|
84149
84210
|
sender_id_countries: string[];
|
|
84211
|
+
sender_request_countries: string[];
|
|
84212
|
+
sender_requests: components["schemas"]["EmailMarketingSenderRequest"][];
|
|
84150
84213
|
whatsapp_connected: boolean;
|
|
84151
84214
|
whatsapp_display_phone: string;
|
|
84152
84215
|
};
|
|
@@ -116768,12 +116831,13 @@ export interface components {
|
|
|
116768
116831
|
ZinnCampaignsRegistrationAdmin: {
|
|
116769
116832
|
brand_name: string;
|
|
116770
116833
|
cost_usd_micros: number;
|
|
116834
|
+
country: string;
|
|
116771
116835
|
/** Format: date-time */
|
|
116772
116836
|
created_at: string;
|
|
116773
116837
|
/** Format: uuid */
|
|
116774
116838
|
id: string;
|
|
116775
|
-
/** @
|
|
116776
|
-
kind:
|
|
116839
|
+
/** @description `us_10dlc`, or `sender_<country>` for an own-sender-name request (§3.5d). */
|
|
116840
|
+
kind: string;
|
|
116777
116841
|
/** Format: date-time */
|
|
116778
116842
|
next_check_at: string | null;
|
|
116779
116843
|
/** Format: uuid */
|
|
@@ -116785,6 +116849,8 @@ export interface components {
|
|
|
116785
116849
|
price_usd_micros: number;
|
|
116786
116850
|
reason_code: string;
|
|
116787
116851
|
refunded_usd_micros: number;
|
|
116852
|
+
/** @description The requested own sender name (sender requests). */
|
|
116853
|
+
sender_id: string;
|
|
116788
116854
|
/** @enum {string} */
|
|
116789
116855
|
status: "submitting" | "pending" | "approved" | "rejected" | "lapsed";
|
|
116790
116856
|
test: boolean;
|
|
@@ -142885,6 +142951,39 @@ export interface operations {
|
|
|
142885
142951
|
429: components["responses"]["TooManyRequests"];
|
|
142886
142952
|
};
|
|
142887
142953
|
};
|
|
142954
|
+
decideZinnCampaignsRegistration: {
|
|
142955
|
+
parameters: {
|
|
142956
|
+
query?: never;
|
|
142957
|
+
header?: never;
|
|
142958
|
+
path: {
|
|
142959
|
+
registration_id: string;
|
|
142960
|
+
};
|
|
142961
|
+
cookie?: never;
|
|
142962
|
+
};
|
|
142963
|
+
requestBody: {
|
|
142964
|
+
content: {
|
|
142965
|
+
"application/json": {
|
|
142966
|
+
approve: boolean;
|
|
142967
|
+
reason?: string;
|
|
142968
|
+
};
|
|
142969
|
+
};
|
|
142970
|
+
};
|
|
142971
|
+
responses: {
|
|
142972
|
+
/** @description The registration after the decision. */
|
|
142973
|
+
200: {
|
|
142974
|
+
headers: {
|
|
142975
|
+
[name: string]: unknown;
|
|
142976
|
+
};
|
|
142977
|
+
content: {
|
|
142978
|
+
"application/json": components["schemas"]["ZinnCampaignsRegistrationAdmin"];
|
|
142979
|
+
};
|
|
142980
|
+
};
|
|
142981
|
+
401: components["responses"]["Unauthorized"];
|
|
142982
|
+
403: components["responses"]["Forbidden"];
|
|
142983
|
+
404: components["responses"]["NotFound"];
|
|
142984
|
+
422: components["responses"]["UnprocessableEntity"];
|
|
142985
|
+
};
|
|
142986
|
+
};
|
|
142888
142987
|
getAdsAnalyticsBreakdown: {
|
|
142889
142988
|
parameters: {
|
|
142890
142989
|
query?: {
|
|
@@ -174692,6 +174791,56 @@ export interface operations {
|
|
|
174692
174791
|
403: components["responses"]["Forbidden"];
|
|
174693
174792
|
};
|
|
174694
174793
|
};
|
|
174794
|
+
createEmailMarketingSmsSenderRequest: {
|
|
174795
|
+
parameters: {
|
|
174796
|
+
query?: {
|
|
174797
|
+
/** @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). */
|
|
174798
|
+
org_id?: components["parameters"]["OrgIdQuery"];
|
|
174799
|
+
};
|
|
174800
|
+
header?: never;
|
|
174801
|
+
path?: never;
|
|
174802
|
+
cookie?: never;
|
|
174803
|
+
};
|
|
174804
|
+
requestBody: {
|
|
174805
|
+
content: {
|
|
174806
|
+
"application/json": {
|
|
174807
|
+
country: string;
|
|
174808
|
+
sender_id: string;
|
|
174809
|
+
};
|
|
174810
|
+
};
|
|
174811
|
+
};
|
|
174812
|
+
responses: {
|
|
174813
|
+
/** @description The request, waiting for approval. */
|
|
174814
|
+
201: {
|
|
174815
|
+
headers: {
|
|
174816
|
+
[name: string]: unknown;
|
|
174817
|
+
};
|
|
174818
|
+
content: {
|
|
174819
|
+
"application/json": components["schemas"]["EmailMarketingSenderRequest"];
|
|
174820
|
+
};
|
|
174821
|
+
};
|
|
174822
|
+
/** @description The country or sender name is not allowed. */
|
|
174823
|
+
400: {
|
|
174824
|
+
headers: {
|
|
174825
|
+
[name: string]: unknown;
|
|
174826
|
+
};
|
|
174827
|
+
content: {
|
|
174828
|
+
"application/json": components["schemas"]["Error"];
|
|
174829
|
+
};
|
|
174830
|
+
};
|
|
174831
|
+
401: components["responses"]["Unauthorized"];
|
|
174832
|
+
403: components["responses"]["Forbidden"];
|
|
174833
|
+
/** @description The country is already open, or a request for it is already waiting. */
|
|
174834
|
+
409: {
|
|
174835
|
+
headers: {
|
|
174836
|
+
[name: string]: unknown;
|
|
174837
|
+
};
|
|
174838
|
+
content: {
|
|
174839
|
+
"application/json": components["schemas"]["Error"];
|
|
174840
|
+
};
|
|
174841
|
+
};
|
|
174842
|
+
};
|
|
174843
|
+
};
|
|
174695
174844
|
getEntitlementUsage: {
|
|
174696
174845
|
parameters: {
|
|
174697
174846
|
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.1658",
|
|
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>",
|