@zinn-digital/sdk 0.1.1668 → 0.1.1670
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
|
@@ -32491,6 +32491,29 @@ export interface paths {
|
|
|
32491
32491
|
patch?: never;
|
|
32492
32492
|
trace?: never;
|
|
32493
32493
|
};
|
|
32494
|
+
"/v1/domains/{domainId}/dns/holder-rows/remove": {
|
|
32495
|
+
parameters: {
|
|
32496
|
+
query?: never;
|
|
32497
|
+
header?: never;
|
|
32498
|
+
path: {
|
|
32499
|
+
/** @description The domain's id. */
|
|
32500
|
+
domainId: components["parameters"]["DomainId"];
|
|
32501
|
+
};
|
|
32502
|
+
cookie?: never;
|
|
32503
|
+
};
|
|
32504
|
+
get?: never;
|
|
32505
|
+
put?: never;
|
|
32506
|
+
/**
|
|
32507
|
+
* Remove the parking-holder rows from a hostname that also points at the site.
|
|
32508
|
+
* @description s1014 DNSSTATE. A hostname publishing BOTH the parking holder's addresses and the site's own target sends some visitors to the holder page. This deletes only the holder rows at a name that, re-read from the DNS provider now, still carries a non-holder target; a name holding only holder rows (a parked name) is never touched, and the client sends no list. Answers what was removed (empty when nothing was mixed). Audited as `domain.dns.holder_rows_removed`. Requires `domains.dns.manage`.
|
|
32509
|
+
*/
|
|
32510
|
+
post: operations["removeDnsHolderRows"];
|
|
32511
|
+
delete?: never;
|
|
32512
|
+
options?: never;
|
|
32513
|
+
head?: never;
|
|
32514
|
+
patch?: never;
|
|
32515
|
+
trace?: never;
|
|
32516
|
+
};
|
|
32494
32517
|
"/v1/domains/{domainId}/dns/records": {
|
|
32495
32518
|
parameters: {
|
|
32496
32519
|
query?: never;
|
|
@@ -56567,6 +56590,46 @@ export interface paths {
|
|
|
56567
56590
|
patch?: never;
|
|
56568
56591
|
trace?: never;
|
|
56569
56592
|
};
|
|
56593
|
+
"/v1/store-connect/consents": {
|
|
56594
|
+
parameters: {
|
|
56595
|
+
query?: never;
|
|
56596
|
+
header?: never;
|
|
56597
|
+
path?: never;
|
|
56598
|
+
cookie?: never;
|
|
56599
|
+
};
|
|
56600
|
+
get?: never;
|
|
56601
|
+
put?: never;
|
|
56602
|
+
/**
|
|
56603
|
+
* The store plugin records the shopper's checkout opt-ins, per channel and purpose.
|
|
56604
|
+
* @description Store token only. A batch of 1-100 ticks (docs/1297 §8, §9), one row per phone + channel + purpose, upserted. `updates` (order updates, transactional) never puts a shopper into a Campaigns list or marketing send; `marketing` is kept for the store to use by choice. `withdrawn: true` records an un-tick or a STOP. `evidence` keeps the wording the shopper saw (at most 10 keys).
|
|
56605
|
+
*/
|
|
56606
|
+
post: operations["recordStoreConsents"];
|
|
56607
|
+
delete?: never;
|
|
56608
|
+
options?: never;
|
|
56609
|
+
head?: never;
|
|
56610
|
+
patch?: never;
|
|
56611
|
+
trace?: never;
|
|
56612
|
+
};
|
|
56613
|
+
"/v1/store-connect/events": {
|
|
56614
|
+
parameters: {
|
|
56615
|
+
query?: never;
|
|
56616
|
+
header?: never;
|
|
56617
|
+
path?: never;
|
|
56618
|
+
cookie?: never;
|
|
56619
|
+
};
|
|
56620
|
+
get?: never;
|
|
56621
|
+
put?: never;
|
|
56622
|
+
/**
|
|
56623
|
+
* The store plugin posts order events; each new one sends the shopper an update in their language.
|
|
56624
|
+
* @description Store token only (`Authorization: Bearer zou_…`). A batch of 1-100 events (docs/1297 §4.4). `id` is the plugin's idempotency key (`<site_uuid>:<integration>:<order>:<kind>:<seq>`): a known key inserts nothing and never sends twice (`duplicates`). Each new event starts one durable send that picks the language (the shopper's `locale`, then the store's first language, then English), checks the shopper's order-updates consent and every Campaigns guard (line and channel switches, good standing, STOP opt-out, spike pause, own sender, prepaid credit), and records its outcome on the event. A kind with no template is stored and skipped. 503 when the workflow service is down: the rows are kept and a retry of the same batch starts them.
|
|
56625
|
+
*/
|
|
56626
|
+
post: operations["ingestStoreEvents"];
|
|
56627
|
+
delete?: never;
|
|
56628
|
+
options?: never;
|
|
56629
|
+
head?: never;
|
|
56630
|
+
patch?: never;
|
|
56631
|
+
trace?: never;
|
|
56632
|
+
};
|
|
56570
56633
|
"/v1/store-connect/status": {
|
|
56571
56634
|
parameters: {
|
|
56572
56635
|
query?: never;
|
|
@@ -82641,6 +82704,30 @@ export interface components {
|
|
|
82641
82704
|
rto_seconds?: number | null;
|
|
82642
82705
|
size_bytes?: number | null;
|
|
82643
82706
|
};
|
|
82707
|
+
DnsHolderMixHostname: {
|
|
82708
|
+
holder_records: components["schemas"]["DnsHolderMixRecord"][];
|
|
82709
|
+
/** @example www.example.com */
|
|
82710
|
+
host: string;
|
|
82711
|
+
/** @description The record name in the zone (`@`, `www`). */
|
|
82712
|
+
name: string;
|
|
82713
|
+
site_records: components["schemas"]["DnsHolderMixRecord"][];
|
|
82714
|
+
};
|
|
82715
|
+
DnsHolderMixRecord: {
|
|
82716
|
+
/** @example A */
|
|
82717
|
+
type: string;
|
|
82718
|
+
/** @example 203.0.113.10 */
|
|
82719
|
+
value: string;
|
|
82720
|
+
};
|
|
82721
|
+
DnsHolderRowsRemoved: {
|
|
82722
|
+
/** Format: uuid */
|
|
82723
|
+
domain_id: string;
|
|
82724
|
+
/** @description The holder rows deleted at the provider. Empty when nothing was mixed. */
|
|
82725
|
+
removed: {
|
|
82726
|
+
name: string;
|
|
82727
|
+
type: string;
|
|
82728
|
+
value: string;
|
|
82729
|
+
}[];
|
|
82730
|
+
};
|
|
82644
82731
|
/** @description A DNS resource record in a domain's hosted zone. */
|
|
82645
82732
|
DnsRecord: {
|
|
82646
82733
|
drift?: components["schemas"]["DnsRecordDrift"];
|
|
@@ -105534,6 +105621,12 @@ export interface components {
|
|
|
105534
105621
|
/** @description Where a site's domain actually sends traffic, as measured (docs/823). */
|
|
105535
105622
|
SiteDomainPointing: {
|
|
105536
105623
|
diagnosis?: components["schemas"]["SiteOwnDomainDiagnosis"];
|
|
105624
|
+
/** @description Hostnames that publish the parking holder's addresses AND the site's own target, so some visitors get the holder page (s1014 DNSSTATE). Null when none. `POST /v1/domains/{domainId}/dns/holder-rows/remove` deletes the holder rows. */
|
|
105625
|
+
holder_mix?: {
|
|
105626
|
+
/** Format: uuid */
|
|
105627
|
+
domain_id: string;
|
|
105628
|
+
hostnames: components["schemas"]["DnsHolderMixHostname"][];
|
|
105629
|
+
} | null;
|
|
105537
105630
|
/** @example example.com */
|
|
105538
105631
|
hostname: string;
|
|
105539
105632
|
/**
|
|
@@ -105625,6 +105718,11 @@ export interface components {
|
|
|
105625
105718
|
value: string;
|
|
105626
105719
|
}[];
|
|
105627
105720
|
};
|
|
105721
|
+
/**
|
|
105722
|
+
* @description The customer's OWN state that keeps visitors out, measured by the serving sweep (s1014 DNSSTATE): `maintenance_mode` (a maintenance page the site itself serves) or `access_rule_denies` (a 403 the worker proved is the site's own `.htaccess` rule, for example `Deny from all` with one allowed address — the server log names the refusal AND the rule is in the file). Null when there is none. It is never our outage and never "propagating"; the remedy is the customer's, on their site.
|
|
105723
|
+
* @enum {string|null}
|
|
105724
|
+
*/
|
|
105725
|
+
site_state?: "maintenance_mode" | "access_rule_denies" | null;
|
|
105628
105726
|
/**
|
|
105629
105727
|
* @description `serving` reaches us on our nameservers. `serving_via_other_dns` is PROVEN to reach us through DNS the customer runs — never show it a nameserver instruction, that would take a live site down. `propagating` points at us and is not answering yet. `awaiting_record` has working nameservers and publishes nothing at the apex — the remedy is a record, not a nameserver change. `awaiting_pointing` does not reach us and we host a site for it. `pointed_elsewhere` answers elsewhere and we host no site there, so it is informational only. `zone_expired` means the zone we assigned was deleted and the old nameservers are dead. `unknown` means we could not measure — never green, never an accusation. `moving_in` means a partner is moving the site in (docs/808 §12): the zone stays where it is and `move` says who switches it.
|
|
105630
105728
|
* @enum {string}
|
|
@@ -111508,6 +111606,29 @@ export interface components {
|
|
|
111508
111606
|
/** @description Zinn® Campaigns is open for this org. */
|
|
111509
111607
|
campaigns_open: boolean;
|
|
111510
111608
|
};
|
|
111609
|
+
StoreConsentBatch: {
|
|
111610
|
+
consents: components["schemas"]["StoreConsentInput"][];
|
|
111611
|
+
};
|
|
111612
|
+
StoreConsentInput: {
|
|
111613
|
+
/** Format: date-time */
|
|
111614
|
+
captured_at: string;
|
|
111615
|
+
/** @enum {string} */
|
|
111616
|
+
channel: "sms" | "whatsapp";
|
|
111617
|
+
evidence?: {
|
|
111618
|
+
[key: string]: string;
|
|
111619
|
+
};
|
|
111620
|
+
/** @description E.164. */
|
|
111621
|
+
phone: string;
|
|
111622
|
+
/** @enum {string} */
|
|
111623
|
+
purpose: "updates" | "marketing";
|
|
111624
|
+
/** @description The order the tick was given on. */
|
|
111625
|
+
ref?: string;
|
|
111626
|
+
/** @default false */
|
|
111627
|
+
withdrawn: boolean;
|
|
111628
|
+
};
|
|
111629
|
+
StoreConsentsRecorded: {
|
|
111630
|
+
recorded: number;
|
|
111631
|
+
};
|
|
111511
111632
|
StoredVideo: {
|
|
111512
111633
|
/** Format: date-time */
|
|
111513
111634
|
created_at?: string | null;
|
|
@@ -111524,6 +111645,46 @@ export interface components {
|
|
|
111524
111645
|
StoredVideoList: {
|
|
111525
111646
|
videos: components["schemas"]["StoredVideo"][];
|
|
111526
111647
|
};
|
|
111648
|
+
StoreEventBatch: {
|
|
111649
|
+
events: components["schemas"]["StoreEventInput"][];
|
|
111650
|
+
};
|
|
111651
|
+
StoreEventInput: {
|
|
111652
|
+
customer?: {
|
|
111653
|
+
first_name?: string;
|
|
111654
|
+
/** @description E.164. */
|
|
111655
|
+
phone?: string;
|
|
111656
|
+
};
|
|
111657
|
+
/** @description The idempotency key. */
|
|
111658
|
+
id: string;
|
|
111659
|
+
integration?: string;
|
|
111660
|
+
/** @description order_received, payment_confirmed, on_hold, shipped, completed, ready_for_pickup, payment_failed, cancelled or refunded; any other kind is stored and skipped. */
|
|
111661
|
+
kind: string;
|
|
111662
|
+
/** @description The shopper's language (BCP 47), e.g. ar. */
|
|
111663
|
+
locale?: string;
|
|
111664
|
+
/** Format: date-time */
|
|
111665
|
+
occurred_at: string;
|
|
111666
|
+
order_number?: string;
|
|
111667
|
+
pay_url?: string;
|
|
111668
|
+
ref?: string;
|
|
111669
|
+
refund?: {
|
|
111670
|
+
currency: string;
|
|
111671
|
+
/** @description Integer minor units. */
|
|
111672
|
+
minor: number;
|
|
111673
|
+
};
|
|
111674
|
+
store_name?: string;
|
|
111675
|
+
totals?: {
|
|
111676
|
+
currency: string;
|
|
111677
|
+
/** @description Integer minor units. */
|
|
111678
|
+
minor: number;
|
|
111679
|
+
};
|
|
111680
|
+
tracking_url?: string;
|
|
111681
|
+
};
|
|
111682
|
+
StoreEventsAccepted: {
|
|
111683
|
+
/** @description Events being sent now. */
|
|
111684
|
+
accepted: number;
|
|
111685
|
+
/** @description Events already handled (never sent twice). */
|
|
111686
|
+
duplicates: number;
|
|
111687
|
+
};
|
|
111527
111688
|
StoreSupportTicket: {
|
|
111528
111689
|
/** Format: date-time */
|
|
111529
111690
|
created_at: string;
|
|
@@ -171688,6 +171849,34 @@ export interface operations {
|
|
|
171688
171849
|
503: components["responses"]["ServiceUnavailable"];
|
|
171689
171850
|
};
|
|
171690
171851
|
};
|
|
171852
|
+
removeDnsHolderRows: {
|
|
171853
|
+
parameters: {
|
|
171854
|
+
query?: never;
|
|
171855
|
+
header?: never;
|
|
171856
|
+
path: {
|
|
171857
|
+
/** @description The domain's id. */
|
|
171858
|
+
domainId: components["parameters"]["DomainId"];
|
|
171859
|
+
};
|
|
171860
|
+
cookie?: never;
|
|
171861
|
+
};
|
|
171862
|
+
requestBody?: never;
|
|
171863
|
+
responses: {
|
|
171864
|
+
/** @description The holder rows that were removed. */
|
|
171865
|
+
200: {
|
|
171866
|
+
headers: {
|
|
171867
|
+
[name: string]: unknown;
|
|
171868
|
+
};
|
|
171869
|
+
content: {
|
|
171870
|
+
"application/json": components["schemas"]["DnsHolderRowsRemoved"];
|
|
171871
|
+
};
|
|
171872
|
+
};
|
|
171873
|
+
401: components["responses"]["Unauthorized"];
|
|
171874
|
+
403: components["responses"]["Forbidden"];
|
|
171875
|
+
404: components["responses"]["NotFound"];
|
|
171876
|
+
429: components["responses"]["TooManyRequests"];
|
|
171877
|
+
503: components["responses"]["ServiceUnavailable"];
|
|
171878
|
+
};
|
|
171879
|
+
};
|
|
171691
171880
|
listDnsRecords: {
|
|
171692
171881
|
parameters: {
|
|
171693
171882
|
query?: {
|
|
@@ -210296,6 +210485,61 @@ export interface operations {
|
|
|
210296
210485
|
404: components["responses"]["NotFound"];
|
|
210297
210486
|
};
|
|
210298
210487
|
};
|
|
210488
|
+
recordStoreConsents: {
|
|
210489
|
+
parameters: {
|
|
210490
|
+
query?: never;
|
|
210491
|
+
header?: never;
|
|
210492
|
+
path?: never;
|
|
210493
|
+
cookie?: never;
|
|
210494
|
+
};
|
|
210495
|
+
requestBody: {
|
|
210496
|
+
content: {
|
|
210497
|
+
"application/json": components["schemas"]["StoreConsentBatch"];
|
|
210498
|
+
};
|
|
210499
|
+
};
|
|
210500
|
+
responses: {
|
|
210501
|
+
/** @description Recorded. */
|
|
210502
|
+
200: {
|
|
210503
|
+
headers: {
|
|
210504
|
+
[name: string]: unknown;
|
|
210505
|
+
};
|
|
210506
|
+
content: {
|
|
210507
|
+
"application/json": components["schemas"]["StoreConsentsRecorded"];
|
|
210508
|
+
};
|
|
210509
|
+
};
|
|
210510
|
+
401: components["responses"]["Unauthorized"];
|
|
210511
|
+
422: components["responses"]["UnprocessableEntity"];
|
|
210512
|
+
429: components["responses"]["TooManyRequests"];
|
|
210513
|
+
};
|
|
210514
|
+
};
|
|
210515
|
+
ingestStoreEvents: {
|
|
210516
|
+
parameters: {
|
|
210517
|
+
query?: never;
|
|
210518
|
+
header?: never;
|
|
210519
|
+
path?: never;
|
|
210520
|
+
cookie?: never;
|
|
210521
|
+
};
|
|
210522
|
+
requestBody: {
|
|
210523
|
+
content: {
|
|
210524
|
+
"application/json": components["schemas"]["StoreEventBatch"];
|
|
210525
|
+
};
|
|
210526
|
+
};
|
|
210527
|
+
responses: {
|
|
210528
|
+
/** @description Accepted; new events are being sent. */
|
|
210529
|
+
202: {
|
|
210530
|
+
headers: {
|
|
210531
|
+
[name: string]: unknown;
|
|
210532
|
+
};
|
|
210533
|
+
content: {
|
|
210534
|
+
"application/json": components["schemas"]["StoreEventsAccepted"];
|
|
210535
|
+
};
|
|
210536
|
+
};
|
|
210537
|
+
401: components["responses"]["Unauthorized"];
|
|
210538
|
+
422: components["responses"]["UnprocessableEntity"];
|
|
210539
|
+
429: components["responses"]["TooManyRequests"];
|
|
210540
|
+
503: components["responses"]["ServiceUnavailable"];
|
|
210541
|
+
};
|
|
210542
|
+
};
|
|
210299
210543
|
getStoreConnectStatus: {
|
|
210300
210544
|
parameters: {
|
|
210301
210545
|
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.1670",
|
|
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>",
|