@zinn-digital/sdk 0.1.1408 → 0.1.1410
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.
|
@@ -23075,6 +23075,8 @@ export interface paths {
|
|
|
23075
23075
|
* `state.on_byo` is `true` only when a live customer key exists for **every** provider we route to, so credits genuinely cannot be spent. The banner must stay silent in that case: selling credit to somebody whose every call runs on their own key sells them something that will never be spent. It is **not** "this org has a key" — a customer holding one Anthropic key still pays us for Google, OpenAI and xAI.
|
|
23076
23076
|
*
|
|
23077
23077
|
* Amounts are USD **micros** (1 minor unit = 10,000 micros; 1 USD = 1,000,000), because one model call costs a fraction of a cent and rounding each one up to a penny over-bills by two orders of magnitude. `packs[].price_minor` is ordinary integer minor units, because that is what the customer is charged. Requires `sites.view`.
|
|
23078
|
+
*
|
|
23079
|
+
* The AI credits an active plan includes (`inference_credits_monthly`, Zinn® AI Hosting) are granted before the balance is read, once per monthly slot of the subscription's period: one credit is 1,000 micros (USD 0.001) of usage at the price charged, so 5,000 credits are USD 5. Only an `active` subscription of an org in good standing earns a grant. The grant appears in `history` as a `grant` row whose `note` is the token `plan_credit:<credits>`, which the dashboard renders as a translated sentence.
|
|
23078
23080
|
*/
|
|
23079
23081
|
get: operations["getAiCredits"];
|
|
23080
23082
|
put?: 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.1410",
|
|
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>",
|