@zinn-digital/sdk 0.1.1408 → 0.1.1411
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.
|
@@ -807,6 +807,8 @@ export interface paths {
|
|
|
807
807
|
* @description Requires staff + `abuse.suspend` — its own key, deliberately not `abuse.manage`. Working the queue and taking a customer's live site off the internet are different levels of trust. The suspension goes through the site lifecycle, so `site.suspended` is emitted; content is retained.
|
|
808
808
|
*
|
|
809
809
|
* The site's server is changed by a durable workflow, never inside this request (D50801): a site that is serving answers `202` at once with the `operation` to poll (`getSiteServingOperation`). The report is marked suspended, and `abuse.site.suspended` written, when the server confirms. A server, or a site that is already suspended, answers `200` with `operation: null` — nothing reaches a box.
|
|
810
|
+
*
|
|
811
|
+
* A server report whose `reporter_category` carries `incident predates our assignment of this address` answers `422`: every incident time in the notice is before the server was given the address, so it is about the previous holder (docs/65).
|
|
810
812
|
*/
|
|
811
813
|
post: operations["suspendSiteForAbuse"];
|
|
812
814
|
delete?: never;
|
|
@@ -23075,6 +23077,8 @@ export interface paths {
|
|
|
23075
23077
|
* `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
23078
|
*
|
|
23077
23079
|
* 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`.
|
|
23080
|
+
*
|
|
23081
|
+
* 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
23082
|
*/
|
|
23079
23083
|
get: operations["getAiCredits"];
|
|
23080
23084
|
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.1411",
|
|
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>",
|