@zinn-digital/sdk 0.1.1430 → 0.1.1431

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.
@@ -17616,7 +17616,7 @@ export interface paths {
17616
17616
  put?: never;
17617
17617
  /**
17618
17618
  * Buy one tracking number that forwards to the customer's own number (za-160).
17619
- * @description Gated on `ads.manage`; audit action `ads.call_number_ordered` (no phone number in its metadata). The price is the voice vendor's own answer for that number, re-read now, times the platform margin; the first charge (the vendor's upfront fee plus the first month, both taken by the vendor at purchase) is taken from the org's prepaid Zinn® credit BEFORE the order and returned if the vendor refuses it. Refused (422) when call tracking is not open (`callNotOpen`), the CRM source `telnyx` is not set up (`callNoSource`), the forward-to number is not a United States number or is one of our own tracking numbers (a call loop, `callForwardToNotOffered`), the account holds its cap (`callTooMany`), the account is not in good standing (`callAccountOnHold`), the credit is short (`callNoCredit`), the number was taken (`callNumberGone`) or its price is no longer the `first_month_usd_micros` the customer was shown (`callPriceChanged`, nothing charged). An order the vendor has not finished yet leaves the number `ordering` and starts the account's number sweep at once (retried until it completes); a vendor that does not answer the order leaves it `ordering` too: it is found by its reference, or refunded.
17619
+ * @description Gated on `ads.manage`; audit action `ads.call_number_ordered` (no phone number in its metadata). The price is the voice vendor's own answer for that number, re-read now, times the platform margin; the first charge (the vendor's upfront fee plus the first month, both taken by the vendor at purchase) is taken from the org's prepaid Zinn® credit BEFORE the order and returned if the vendor refuses it. Refused (422) when call tracking is not open (`callNotOpen`), the CRM source `telnyx` is not set up (`callNoSource`), the forward-to number is not a United States number or is one of our own tracking numbers (a call loop, `callForwardToNotOffered`), the account holds its cap (`callTooMany`), the account is not in good standing (`callAccountOnHold`), the credit is short (`callNoCredit`), the only credit left is AI Hosting plan-included credit, which pays for AI Hosting only (`callPlanCreditsOnly`, 402), the number was taken (`callNumberGone`) or its price is no longer the `first_month_usd_micros` the customer was shown (`callPriceChanged`, nothing charged). An order the vendor has not finished yet leaves the number `ordering` and starts the account's number sweep at once (retried until it completes); a vendor that does not answer the order leaves it `ordering` too: it is found by its reference, or refunded.
17620
17620
  */
17621
17621
  post: operations["orderAdsCallNumber"];
17622
17622
  delete?: never;
@@ -68038,7 +68038,7 @@ export interface components {
68038
68038
  skip_params?: {
68039
68039
  [key: string]: unknown;
68040
68040
  };
68041
- /** @description Machine-readable cause, e.g. `AI_BUDGET_EXHAUSTED`, `AI_NOT_IN_GOOD_STANDING`, `not_enough_discussion`, `nothing_blocked`. */
68041
+ /** @description Machine-readable cause, e.g. `AI_BUDGET_EXHAUSTED`, `PLAN_CREDITS_AI_HOSTING_ONLY` (only AI Hosting plan-included credit is left, and it pays for AI Hosting only), `AI_NOT_IN_GOOD_STANDING`, `not_enough_discussion`, `nothing_blocked`. */
68042
68042
  skip_reason?: string | null;
68043
68043
  /** @description **Read this.** True means nothing ran and nothing was charged. A caller that treats `200` as "it worked" records a success for a call that did nothing. */
68044
68044
  skipped: boolean;
@@ -69527,6 +69527,11 @@ export interface components {
69527
69527
  last_pack_micros: number;
69528
69528
  /** @description True only when a live customer key exists for EVERY provider we route to, so credits cannot be spent at all. The banner stays silent then. Not "this org has a key": one key still leaves the other providers billing credits. */
69529
69529
  on_byo: boolean;
69530
+ /**
69531
+ * Format: int64
69532
+ * @description The part of `balance_micros` an AI Hosting plan included, in USD micros. It is spendable on AI Hosting only (inference, the AI site builder and editor, chat, AI environments); every other credit-priced feature spends the rest (bought top-up credit) and refuses `PLAN_CREDITS_AI_HOSTING_ONLY` when only plan credit is left (owner ruling 2026-11-03).
69533
+ */
69534
+ plan_credit_micros: number;
69530
69535
  /** @description How many assistant questions the current balance is worth, from the measured cost of one real question. An illustration — a long article costs several times more. */
69531
69536
  typical_calls_remaining: number;
69532
69537
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zinn-digital/sdk",
3
- "version": "0.1.1430",
3
+ "version": "0.1.1431",
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>",