@zinn-digital/sdk 0.1.1784 → 0.1.1786
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 +165 -0
- package/package.json +1 -1
|
@@ -37461,6 +37461,26 @@ export interface paths {
|
|
|
37461
37461
|
patch?: never;
|
|
37462
37462
|
trace?: never;
|
|
37463
37463
|
};
|
|
37464
|
+
"/v1/mail/services/{mailServiceId}/dns-records": {
|
|
37465
|
+
parameters: {
|
|
37466
|
+
query?: never;
|
|
37467
|
+
header?: never;
|
|
37468
|
+
path?: never;
|
|
37469
|
+
cookie?: never;
|
|
37470
|
+
};
|
|
37471
|
+
/**
|
|
37472
|
+
* Every DNS record this domain needs for email, each checked live.
|
|
37473
|
+
* @description The exact records (type, host, value, priority) the domain needs for its email provider - MX, SPF, DKIM, DMARC and the mail-app discovery records - from the same preset the provisioning publishes, so what is shown is what would be written. Each record carries a live `status` asked of the domain's OWN nameservers: `ok`, `missing`, `different` (with what was `found` instead) or `unknown` when the nameservers could not be asked (never shown as ok or missing). `dns_hosted` says whether we publish them (`ours`) or the customer adds them at their DNS provider (`external`). The support AI reads the same list. `422` for our own mail under a white label, as the connection settings are. Requires `mail.view`.
|
|
37474
|
+
*/
|
|
37475
|
+
get: operations["getMailDnsRecords"];
|
|
37476
|
+
put?: never;
|
|
37477
|
+
post?: never;
|
|
37478
|
+
delete?: never;
|
|
37479
|
+
options?: never;
|
|
37480
|
+
head?: never;
|
|
37481
|
+
patch?: never;
|
|
37482
|
+
trace?: never;
|
|
37483
|
+
};
|
|
37464
37484
|
"/v1/mail/services/{mailServiceId}/forwarders": {
|
|
37465
37485
|
parameters: {
|
|
37466
37486
|
query?: never;
|
|
@@ -60631,6 +60651,26 @@ export interface paths {
|
|
|
60631
60651
|
patch?: never;
|
|
60632
60652
|
trace?: never;
|
|
60633
60653
|
};
|
|
60654
|
+
"/v1/wallet/upcoming-charges": {
|
|
60655
|
+
parameters: {
|
|
60656
|
+
query?: never;
|
|
60657
|
+
header?: never;
|
|
60658
|
+
path?: never;
|
|
60659
|
+
cookie?: never;
|
|
60660
|
+
};
|
|
60661
|
+
/**
|
|
60662
|
+
* Charges already committed against your Zinn® credit and Credit balance.
|
|
60663
|
+
* @description ⚖️ Owner, 2026-11-13: *"show the TOTAL currently committed or recurring against the wallet (upcoming charges, with due dates)"*. Lists every recurring charge due within `horizon_days`: US SMS registration months and Zinn® Ads tracking-number months (paid from **Zinn® credit**, no card fallback: when short at the due date they are held and then stop), and engine-billed subscription renewals (paid from the **Credit balance** first, the saved card for the rest; their amount is the list price before tax and coupons, so `estimate` is true). The two balances are totalled separately and never added together; `shortfall_minor` is what each balance lacks to cover what is due. Read-only, no vendor call. Requires `billing.view`.
|
|
60664
|
+
*/
|
|
60665
|
+
get: operations["getWalletUpcomingCharges"];
|
|
60666
|
+
put?: never;
|
|
60667
|
+
post?: never;
|
|
60668
|
+
delete?: never;
|
|
60669
|
+
options?: never;
|
|
60670
|
+
head?: never;
|
|
60671
|
+
patch?: never;
|
|
60672
|
+
trace?: never;
|
|
60673
|
+
};
|
|
60634
60674
|
"/v1/webhooks/ads-checkout/{source_id}": {
|
|
60635
60675
|
parameters: {
|
|
60636
60676
|
query?: never;
|
|
@@ -87347,6 +87387,10 @@ export interface components {
|
|
|
87347
87387
|
vendor_reason: string | null;
|
|
87348
87388
|
};
|
|
87349
87389
|
EmailMarketingUsRegistrationState: {
|
|
87390
|
+
/** @description The Zinn® credit the registration is paid from, as spendable now (bought credit; plan-included AI credit cannot pay for SMS). The page shows it beside the quote, with the shortfall and a top-up, so a submit is never made into a `no_credit` refusal (WALLETBILL1113). Null when no organisation is in scope. */
|
|
87391
|
+
credit_balance_usd_micros: number | null;
|
|
87392
|
+
/** @description Dashboard path where Zinn® credit is bought. */
|
|
87393
|
+
credit_topup_path: string;
|
|
87350
87394
|
entity_types: string[];
|
|
87351
87395
|
quote: {
|
|
87352
87396
|
monthly_price_usd_micros: number;
|
|
@@ -91628,6 +91672,37 @@ export interface components {
|
|
|
91628
91672
|
*/
|
|
91629
91673
|
confirm: boolean;
|
|
91630
91674
|
};
|
|
91675
|
+
/** @description One mail DNS record a domain needs and what its own nameservers answer now. */
|
|
91676
|
+
MailDnsRecordCheck: {
|
|
91677
|
+
/** @description What the nameservers answered instead, when `status` is `different`. */
|
|
91678
|
+
found: string[];
|
|
91679
|
+
/** @description The host as a DNS panel asks for it - `@` for the domain itself. */
|
|
91680
|
+
host: string;
|
|
91681
|
+
/** @description The full record name. */
|
|
91682
|
+
name: string;
|
|
91683
|
+
priority: number | null;
|
|
91684
|
+
/** @enum {string} */
|
|
91685
|
+
purpose: "receive" | "spf" | "dkim" | "dmarc" | "discovery" | "security";
|
|
91686
|
+
/** @enum {string} */
|
|
91687
|
+
status: "ok" | "missing" | "different" | "unknown";
|
|
91688
|
+
/** @description MX, TXT, CNAME or SRV. */
|
|
91689
|
+
type: string;
|
|
91690
|
+
value: string;
|
|
91691
|
+
};
|
|
91692
|
+
/** @description Every DNS record one mail domain needs, each checked live. */
|
|
91693
|
+
MailDnsRecords: {
|
|
91694
|
+
/** @description True when every record is live; null when any could not be checked. */
|
|
91695
|
+
all_ok: boolean | null;
|
|
91696
|
+
/**
|
|
91697
|
+
* @description `ours`: we publish the records. `external`: add them at your DNS provider.
|
|
91698
|
+
* @enum {string}
|
|
91699
|
+
*/
|
|
91700
|
+
dns_hosted: "ours" | "external" | "unknown";
|
|
91701
|
+
domain: string;
|
|
91702
|
+
nameservers: string[];
|
|
91703
|
+
provider: string;
|
|
91704
|
+
records: components["schemas"]["MailDnsRecordCheck"][];
|
|
91705
|
+
};
|
|
91631
91706
|
MailDomain: {
|
|
91632
91707
|
/**
|
|
91633
91708
|
* Format: uuid
|
|
@@ -119364,6 +119439,36 @@ export interface components {
|
|
|
119364
119439
|
/** @description ⚖️ Always `false` for Zinn® credit. *"credit is not returnable ever, even on account closure etc."* — owner, 2026-08-22. Returned at the point of sale because that is where a non-refundable purchase must be disclosed. */
|
|
119365
119440
|
refundable: boolean;
|
|
119366
119441
|
};
|
|
119442
|
+
WalletUpcomingCharges: {
|
|
119443
|
+
charges: {
|
|
119444
|
+
amount_minor: number;
|
|
119445
|
+
/** @enum {string} */
|
|
119446
|
+
balance: "zinn_credit" | "wallet";
|
|
119447
|
+
/** @description When the balance is short the rest is charged to a saved card. */
|
|
119448
|
+
card_fallback: boolean;
|
|
119449
|
+
currency: string;
|
|
119450
|
+
/** Format: date-time */
|
|
119451
|
+
due_at: string;
|
|
119452
|
+
/** @description List price before tax and coupons, not the exact debit. */
|
|
119453
|
+
estimate: boolean;
|
|
119454
|
+
/** @enum {string} */
|
|
119455
|
+
kind: "sms_us_registration" | "ads_tracking_number" | "subscription_renewal";
|
|
119456
|
+
/** @description The plan name or phone number the charge is for. */
|
|
119457
|
+
subject: string;
|
|
119458
|
+
}[];
|
|
119459
|
+
horizon_days: number;
|
|
119460
|
+
totals: {
|
|
119461
|
+
wallet: components["schemas"]["WalletUpcomingTotal"];
|
|
119462
|
+
zinn_credit: components["schemas"]["WalletUpcomingTotal"];
|
|
119463
|
+
};
|
|
119464
|
+
};
|
|
119465
|
+
WalletUpcomingTotal: {
|
|
119466
|
+
balance_minor: number;
|
|
119467
|
+
count: number;
|
|
119468
|
+
currency: string;
|
|
119469
|
+
due_minor: number;
|
|
119470
|
+
shortfall_minor: number;
|
|
119471
|
+
};
|
|
119367
119472
|
/** @description One link the customer expects to exist: the page `source_url` should link to this domain. `target_url` pins the page it should point at; blank means any page on the domain. `anchor` is the text it should carry; blank means any. */
|
|
119368
119473
|
WatchedLink: {
|
|
119369
119474
|
anchor?: string;
|
|
@@ -183746,6 +183851,35 @@ export interface operations {
|
|
|
183746
183851
|
429: components["responses"]["TooManyRequests"];
|
|
183747
183852
|
};
|
|
183748
183853
|
};
|
|
183854
|
+
getMailDnsRecords: {
|
|
183855
|
+
parameters: {
|
|
183856
|
+
query?: never;
|
|
183857
|
+
header?: never;
|
|
183858
|
+
path: {
|
|
183859
|
+
/** @description Email service ID (UUIDv7). */
|
|
183860
|
+
mailServiceId: components["parameters"]["MailServiceId"];
|
|
183861
|
+
};
|
|
183862
|
+
cookie?: never;
|
|
183863
|
+
};
|
|
183864
|
+
requestBody?: never;
|
|
183865
|
+
responses: {
|
|
183866
|
+
/** @description The domain's mail records and their live state. */
|
|
183867
|
+
200: {
|
|
183868
|
+
headers: {
|
|
183869
|
+
[name: string]: unknown;
|
|
183870
|
+
};
|
|
183871
|
+
content: {
|
|
183872
|
+
"application/json": components["schemas"]["MailDnsRecords"];
|
|
183873
|
+
};
|
|
183874
|
+
};
|
|
183875
|
+
401: components["responses"]["Unauthorized"];
|
|
183876
|
+
403: components["responses"]["Forbidden"];
|
|
183877
|
+
404: components["responses"]["NotFound"];
|
|
183878
|
+
422: components["responses"]["UnprocessableEntity"];
|
|
183879
|
+
429: components["responses"]["TooManyRequests"];
|
|
183880
|
+
503: components["responses"]["ServiceUnavailable"];
|
|
183881
|
+
};
|
|
183882
|
+
};
|
|
183749
183883
|
listMailForwarders: {
|
|
183750
183884
|
parameters: {
|
|
183751
183885
|
query?: never;
|
|
@@ -220852,6 +220986,37 @@ export interface operations {
|
|
|
220852
220986
|
429: components["responses"]["TooManyRequests"];
|
|
220853
220987
|
};
|
|
220854
220988
|
};
|
|
220989
|
+
getWalletUpcomingCharges: {
|
|
220990
|
+
parameters: {
|
|
220991
|
+
query?: {
|
|
220992
|
+
/** @description ISO-4217 code of the Credit balance to compare against. */
|
|
220993
|
+
currency?: string;
|
|
220994
|
+
/** @description How many days ahead to look (1-366, default 35). */
|
|
220995
|
+
horizon_days?: number;
|
|
220996
|
+
/** @description Which of your organizations this applies to. Required only when you belong to more than one here. */
|
|
220997
|
+
org_id?: components["schemas"]["Uuid"];
|
|
220998
|
+
};
|
|
220999
|
+
header?: never;
|
|
221000
|
+
path?: never;
|
|
221001
|
+
cookie?: never;
|
|
221002
|
+
};
|
|
221003
|
+
requestBody?: never;
|
|
221004
|
+
responses: {
|
|
221005
|
+
/** @description The committed charges and the per-balance totals. */
|
|
221006
|
+
200: {
|
|
221007
|
+
headers: {
|
|
221008
|
+
[name: string]: unknown;
|
|
221009
|
+
};
|
|
221010
|
+
content: {
|
|
221011
|
+
"application/json": components["schemas"]["WalletUpcomingCharges"];
|
|
221012
|
+
};
|
|
221013
|
+
};
|
|
221014
|
+
401: components["responses"]["Unauthorized"];
|
|
221015
|
+
403: components["responses"]["Forbidden"];
|
|
221016
|
+
422: components["responses"]["UnprocessableEntity"];
|
|
221017
|
+
429: components["responses"]["TooManyRequests"];
|
|
221018
|
+
};
|
|
221019
|
+
};
|
|
220855
221020
|
receiveAdsCheckoutWebhook: {
|
|
220856
221021
|
parameters: {
|
|
220857
221022
|
query?: never;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zinn-digital/sdk",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1786",
|
|
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>",
|