@zinn-digital/sdk 0.1.1785 → 0.1.1787
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 +90 -0
- package/package.json +1 -1
|
@@ -60651,6 +60651,26 @@ export interface paths {
|
|
|
60651
60651
|
patch?: never;
|
|
60652
60652
|
trace?: never;
|
|
60653
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
|
+
};
|
|
60654
60674
|
"/v1/webhooks/ads-checkout/{source_id}": {
|
|
60655
60675
|
parameters: {
|
|
60656
60676
|
query?: never;
|
|
@@ -87367,6 +87387,10 @@ export interface components {
|
|
|
87367
87387
|
vendor_reason: string | null;
|
|
87368
87388
|
};
|
|
87369
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;
|
|
87370
87394
|
entity_types: string[];
|
|
87371
87395
|
quote: {
|
|
87372
87396
|
monthly_price_usd_micros: number;
|
|
@@ -106726,6 +106750,11 @@ export interface components {
|
|
|
106726
106750
|
id: components["schemas"]["Uuid"];
|
|
106727
106751
|
/** @description Row 45 (s1014, owner 2026-10-29): what the installing screen may honestly say, and whether Retry is valid - the same answer `retrySiteProvisioning` enforces. `null` unless the site is `pending`, `provisioning` or `failed`. */
|
|
106728
106752
|
install?: components["schemas"]["SiteInstallState"] | null;
|
|
106753
|
+
/**
|
|
106754
|
+
* @description Why traffic for this site's domain is held back while it is the target of a move. `none` = not held. `move_in_progress` = a move is running; the switch-over publishes the domain. `moves_ended_points_elsewhere` = every move into this site has ended and the domain still points at the old host, so we do not take its traffic; point the domain at our nameservers or start a new move.
|
|
106755
|
+
* @enum {string}
|
|
106756
|
+
*/
|
|
106757
|
+
readonly migration_hold?: "none" | "move_in_progress" | "moves_ended_points_elsewhere";
|
|
106729
106758
|
/**
|
|
106730
106759
|
* @description Human label for the site; defaults to the primary domain.
|
|
106731
106760
|
* @example Acme Marketing Site
|
|
@@ -119415,6 +119444,36 @@ export interface components {
|
|
|
119415
119444
|
/** @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. */
|
|
119416
119445
|
refundable: boolean;
|
|
119417
119446
|
};
|
|
119447
|
+
WalletUpcomingCharges: {
|
|
119448
|
+
charges: {
|
|
119449
|
+
amount_minor: number;
|
|
119450
|
+
/** @enum {string} */
|
|
119451
|
+
balance: "zinn_credit" | "wallet";
|
|
119452
|
+
/** @description When the balance is short the rest is charged to a saved card. */
|
|
119453
|
+
card_fallback: boolean;
|
|
119454
|
+
currency: string;
|
|
119455
|
+
/** Format: date-time */
|
|
119456
|
+
due_at: string;
|
|
119457
|
+
/** @description List price before tax and coupons, not the exact debit. */
|
|
119458
|
+
estimate: boolean;
|
|
119459
|
+
/** @enum {string} */
|
|
119460
|
+
kind: "sms_us_registration" | "ads_tracking_number" | "subscription_renewal";
|
|
119461
|
+
/** @description The plan name or phone number the charge is for. */
|
|
119462
|
+
subject: string;
|
|
119463
|
+
}[];
|
|
119464
|
+
horizon_days: number;
|
|
119465
|
+
totals: {
|
|
119466
|
+
wallet: components["schemas"]["WalletUpcomingTotal"];
|
|
119467
|
+
zinn_credit: components["schemas"]["WalletUpcomingTotal"];
|
|
119468
|
+
};
|
|
119469
|
+
};
|
|
119470
|
+
WalletUpcomingTotal: {
|
|
119471
|
+
balance_minor: number;
|
|
119472
|
+
count: number;
|
|
119473
|
+
currency: string;
|
|
119474
|
+
due_minor: number;
|
|
119475
|
+
shortfall_minor: number;
|
|
119476
|
+
};
|
|
119418
119477
|
/** @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. */
|
|
119419
119478
|
WatchedLink: {
|
|
119420
119479
|
anchor?: string;
|
|
@@ -220932,6 +220991,37 @@ export interface operations {
|
|
|
220932
220991
|
429: components["responses"]["TooManyRequests"];
|
|
220933
220992
|
};
|
|
220934
220993
|
};
|
|
220994
|
+
getWalletUpcomingCharges: {
|
|
220995
|
+
parameters: {
|
|
220996
|
+
query?: {
|
|
220997
|
+
/** @description ISO-4217 code of the Credit balance to compare against. */
|
|
220998
|
+
currency?: string;
|
|
220999
|
+
/** @description How many days ahead to look (1-366, default 35). */
|
|
221000
|
+
horizon_days?: number;
|
|
221001
|
+
/** @description Which of your organizations this applies to. Required only when you belong to more than one here. */
|
|
221002
|
+
org_id?: components["schemas"]["Uuid"];
|
|
221003
|
+
};
|
|
221004
|
+
header?: never;
|
|
221005
|
+
path?: never;
|
|
221006
|
+
cookie?: never;
|
|
221007
|
+
};
|
|
221008
|
+
requestBody?: never;
|
|
221009
|
+
responses: {
|
|
221010
|
+
/** @description The committed charges and the per-balance totals. */
|
|
221011
|
+
200: {
|
|
221012
|
+
headers: {
|
|
221013
|
+
[name: string]: unknown;
|
|
221014
|
+
};
|
|
221015
|
+
content: {
|
|
221016
|
+
"application/json": components["schemas"]["WalletUpcomingCharges"];
|
|
221017
|
+
};
|
|
221018
|
+
};
|
|
221019
|
+
401: components["responses"]["Unauthorized"];
|
|
221020
|
+
403: components["responses"]["Forbidden"];
|
|
221021
|
+
422: components["responses"]["UnprocessableEntity"];
|
|
221022
|
+
429: components["responses"]["TooManyRequests"];
|
|
221023
|
+
};
|
|
221024
|
+
};
|
|
220935
221025
|
receiveAdsCheckoutWebhook: {
|
|
220936
221026
|
parameters: {
|
|
220937
221027
|
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.1787",
|
|
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>",
|