@zinn-digital/sdk 0.1.1440 → 0.1.1443
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.
|
@@ -24124,7 +24124,7 @@ export interface paths {
|
|
|
24124
24124
|
* Run one chat completion on an open model, paid from Zinn® AI credits.
|
|
24125
24125
|
* @description Serverless AI inference for Zinn® AI Hosting plans (every AI Hosting plan grants `serverless_inference`). Runs in the request, on actual tokens, billed from the org's Zinn® AI credits: plan-included credits first spend here (this is an AI Hosting surface), then bought top-up credit. The platform's small daily included allowance never funds it, and a customer's own provider key is not used.
|
|
24126
24126
|
*
|
|
24127
|
-
* Gates, each before anything is sent or charged: the plan grants `serverless_inference` (else `422 FEATURE_NOT_INCLUDED`); the model is offered and priced (else `422`, `refusal.aiInference.unknownModel`); the org is in good standing (else `422 AI_NOT_IN_GOOD_STANDING`); credit is left (else `422 AI_CREDIT_REQUIRED`, `details[].can_buy`).
|
|
24127
|
+
* Gates, each before anything is sent or charged: the plan grants `serverless_inference` (else `422 FEATURE_NOT_INCLUDED`); the model is offered and priced (else `422`, `refusal.aiInference.unknownModel`); the org is in good standing (else `422 AI_NOT_IN_GOOD_STANDING`); credit is left (else `422 AI_CREDIT_REQUIRED`, `details[].can_buy`). An answer that stops at the caller's own `max_output_tokens` before it finishes (a reasoning model can spend a small cap thinking) answers `422` with `details[]` `{field: max_output_tokens, maximum}` and a `failure` of class `refused`, code `output_cap_reached` (`aiError.outputCapReached`): raise the cap and send it again. Any other failed model call answers `503` with a `failure` whose class is `our_fault` and names no supplier. Neither charges anything. At most 64 messages of 32,000 characters; `max_output_tokens` 1 to 4,096 (default 1,024). Requires `sites.create`.
|
|
24128
24128
|
*/
|
|
24129
24129
|
post: operations["createAiInferenceChat"];
|
|
24130
24130
|
delete?: never;
|
|
@@ -41695,8 +41695,8 @@ export interface paths {
|
|
|
41695
41695
|
get?: never;
|
|
41696
41696
|
put?: never;
|
|
41697
41697
|
/**
|
|
41698
|
-
* The plugin sends the site's paid orders
|
|
41699
|
-
* @description Site token only. The same outcome shape and store as the events API (`POST /v1/ads/connections/{connection_id}/outcomes`), for every connection of the site's organisation that is not disconnected, then pushed to the networks within minutes. Only `purchase` and `
|
|
41698
|
+
* The plugin sends the site's paid orders, free trials and sent forms to the outcome pipeline.
|
|
41699
|
+
* @description Site token only. The same outcome shape and store as the events API (`POST /v1/ads/connections/{connection_id}/outcomes`), for every connection of the site's organisation that is not disconnected, then pushed to the networks within minutes. Only `purchase`, `trial` and `lead` (a 422 otherwise). A `lead` is a form sent, reported from the form plugin's own server hook with the reference the browser tag sends for it (`<ref_prefix>-lead-<form plugin>-<random id>`), so the network counts it once; it carries no value, no e-mail, no referrer and no page (dropped whatever the request says: nothing a visitor typed leaves the site), and at most 300 a site per hour are stored (the rest are counted in `rate_limited`). The reference is forced into the site's own namespace (`<ref_prefix>-<order number>`, the same transaction id the browser tag sends, so the network counts a sale once), the host is the connected site's whatever `outcome_url` says, and the source is `store`. Click ids and the e-mail are stored and forwarded only when an outcome's `consent` is `GRANTED` (the order page's own consent); otherwise they are dropped, whatever the request carries. Idempotent per order: a re-sent order stores nothing new. Audit action `ads.outcomes_received` when something was stored.
|
|
41700
41700
|
*/
|
|
41701
41701
|
post: operations["sendAdsWordPressOutcomes"];
|
|
41702
41702
|
delete?: never;
|
|
@@ -65835,6 +65835,8 @@ export interface components {
|
|
|
65835
65835
|
};
|
|
65836
65836
|
AdsOutcomesIngested: {
|
|
65837
65837
|
created: number;
|
|
65838
|
+
/** @description WordPress plugin only, present when above 0: leads dropped because the site sent more than 300 in this hour (a spam run against its form). Not retried. */
|
|
65839
|
+
rate_limited?: number;
|
|
65838
65840
|
unchanged: number;
|
|
65839
65841
|
updated: number;
|
|
65840
65842
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zinn-digital/sdk",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1443",
|
|
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>",
|