@zinn-digital/sdk 0.1.1450 → 0.1.1452
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 +13 -2
- package/package.json +1 -1
|
@@ -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`). 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
|
|
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 2,048). A reasoning model's thinking is off unless `reasoning` is `true`; opted in, the thinking counts against `max_output_tokens` and every token is billed. Requires `sites.create`.
|
|
24128
24128
|
*/
|
|
24129
24129
|
post: operations["createAiInferenceChat"];
|
|
24130
24130
|
delete?: never;
|
|
@@ -62768,6 +62768,8 @@ export interface components {
|
|
|
62768
62768
|
auto_new_countries: boolean;
|
|
62769
62769
|
/** @description za-110 (docs/1006 §69a, default on): the autopilot's push tests. A campaign on its own budget that loses at least 20% of its searches to budget (14 days, at least 30 clicks) gets a dated budget test: +25% for 14 days, judged on the end day (keep, revert or 7 more days). It follows the `budgets` mode: approve-first queues it for a person, `auto` starts it (unless "hold until a sale" or the ROAS target holds it), `off` writes nothing. A campaign is not tested again within 90 days of its last test. */
|
|
62770
62770
|
auto_push_tests: boolean;
|
|
62771
|
+
/** @description za-111 (default on): a campaign Zinn® Ads built for this account (an applied, not undone, campaign create) is raised by itself while the autopilot is on; the account's own campaigns keep `budget_raise_mode`. An explicit per-campaign choice, `off`, the spend ceiling, good standing, the geo hold-out and the 7-day guard still win. Counted from the moment it was turned on — no older flag is raised by it. */
|
|
62772
|
+
budget_raise_built: boolean;
|
|
62771
62773
|
/** @description Google campaign id → its budget-raise mode (used when the scope is `campaigns`). */
|
|
62772
62774
|
budget_raise_campaigns: {
|
|
62773
62775
|
[key: string]: components["schemas"]["AdsBudgetRaiseMode"];
|
|
@@ -63883,6 +63885,8 @@ export interface components {
|
|
|
63883
63885
|
* @enum {string}
|
|
63884
63886
|
*/
|
|
63885
63887
|
state: "raised" | "suggested" | "ceiling" | "recent" | "flagged" | "held" | "quality";
|
|
63888
|
+
/** @description za-111 — Zinn® Ads built this campaign, so it is raised by itself while the autopilot and `budget_raise_built` are on (inside the ceiling and every guard); the customer's own campaigns get the one-click suggestion. */
|
|
63889
|
+
zinn_built: boolean;
|
|
63886
63890
|
};
|
|
63887
63891
|
/** @description BUDGETMV1 (za-186) — one option of a budget-move proposal (an item of `figures.options`). Amounts are integer micros of `figures.currency`; the clicks and conversions are estimates at the campaign's own last-7-day cost per click and conversion rate. */
|
|
63888
63892
|
AdsBudgetMoveOption: {
|
|
@@ -64397,6 +64401,8 @@ export interface components {
|
|
|
64397
64401
|
auto_cap_raise?: boolean;
|
|
64398
64402
|
auto_new_countries?: boolean;
|
|
64399
64403
|
auto_push_tests?: boolean;
|
|
64404
|
+
/** @description za-111: campaigns Zinn® Ads built are raised by themselves while the autopilot is on. Turning it back on counts from that moment (nothing back-dated). */
|
|
64405
|
+
budget_raise_built?: boolean;
|
|
64400
64406
|
/** @description Google campaign id (digits) → mode, at most 500. Setting `auto` (for all or for a campaign) needs autopilot (Starter and above). */
|
|
64401
64407
|
budget_raise_campaigns?: {
|
|
64402
64408
|
[key: string]: components["schemas"]["AdsBudgetRaiseMode"];
|
|
@@ -70543,12 +70549,17 @@ export interface components {
|
|
|
70543
70549
|
data: components["schemas"]["AiImageProviderAvailability"][];
|
|
70544
70550
|
};
|
|
70545
70551
|
AiInferenceChatRequest: {
|
|
70546
|
-
/** @default
|
|
70552
|
+
/** @default 2048 */
|
|
70547
70553
|
max_output_tokens: number;
|
|
70548
70554
|
messages: components["schemas"]["AiInferenceMessage"][];
|
|
70549
70555
|
/** @description A model from `GET /v1/ai/inference/models`; empty means the default. */
|
|
70550
70556
|
model?: string;
|
|
70551
70557
|
org_id?: components["schemas"]["Uuid"];
|
|
70558
|
+
/**
|
|
70559
|
+
* @description Let a reasoning model think before it answers. Off by default, because the thinking is output tokens: opted in, it counts against `max_output_tokens` and is billed like the answer. Models that do not reason ignore it.
|
|
70560
|
+
* @default false
|
|
70561
|
+
*/
|
|
70562
|
+
reasoning: boolean;
|
|
70552
70563
|
};
|
|
70553
70564
|
AiInferenceMessage: {
|
|
70554
70565
|
content: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zinn-digital/sdk",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1452",
|
|
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>",
|