@getlatedev/node 0.2.1165 → 0.2.1166
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/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
- package/src/generated/sdk.gen.ts +13 -11
- package/src/generated/types.gen.ts +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -12261,7 +12261,7 @@ type SupportRun = {
|
|
|
12261
12261
|
answer: (string) | null;
|
|
12262
12262
|
usage: SupportRunUsage;
|
|
12263
12263
|
/**
|
|
12264
|
-
* The amount
|
|
12264
|
+
* The exact amount charged for the question, in USD, never above `maxCostUsd`. 0 for a failed run.
|
|
12265
12265
|
*/
|
|
12266
12266
|
costUsd: number;
|
|
12267
12267
|
/**
|
package/dist/index.d.ts
CHANGED
|
@@ -12261,7 +12261,7 @@ type SupportRun = {
|
|
|
12261
12261
|
answer: (string) | null;
|
|
12262
12262
|
usage: SupportRunUsage;
|
|
12263
12263
|
/**
|
|
12264
|
-
* The amount
|
|
12264
|
+
* The exact amount charged for the question, in USD, never above `maxCostUsd`. 0 for a failed run.
|
|
12265
12265
|
*/
|
|
12266
12266
|
costUsd: number;
|
|
12267
12267
|
/**
|
package/dist/index.js
CHANGED
|
@@ -36,7 +36,7 @@ module.exports = __toCommonJS(index_exports);
|
|
|
36
36
|
// package.json
|
|
37
37
|
var package_default = {
|
|
38
38
|
name: "@getlatedev/node",
|
|
39
|
-
version: "0.2.
|
|
39
|
+
version: "0.2.1166",
|
|
40
40
|
description: "The official Node.js library for the Zernio API",
|
|
41
41
|
main: "dist/index.js",
|
|
42
42
|
module: "dist/index.mjs",
|
package/dist/index.mjs
CHANGED
|
@@ -5,7 +5,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
5
5
|
// package.json
|
|
6
6
|
var package_default = {
|
|
7
7
|
name: "@getlatedev/node",
|
|
8
|
-
version: "0.2.
|
|
8
|
+
version: "0.2.1166",
|
|
9
9
|
description: "The official Node.js library for the Zernio API",
|
|
10
10
|
main: "dist/index.js",
|
|
11
11
|
module: "dist/index.mjs",
|
package/package.json
CHANGED
package/src/generated/sdk.gen.ts
CHANGED
|
@@ -9041,18 +9041,20 @@ export const listSupportAnswers = <ThrowOnError extends boolean = false>(options
|
|
|
9041
9041
|
* a problem on Zernio's side she opens a support ticket with the team (see
|
|
9042
9042
|
* `supportTicket` on the run) and the run ends as `needs_human`.
|
|
9043
9043
|
*
|
|
9044
|
-
* **Pricing.**
|
|
9044
|
+
* **Pricing.** You pay per question, once it finishes. The exact amount charged is the
|
|
9045
|
+
* run's `costUsd`.
|
|
9045
9046
|
*
|
|
9046
|
-
*
|
|
9047
|
-
*
|
|
9048
|
-
*
|
|
9049
|
-
*
|
|
9047
|
+
* | Question | You pay |
|
|
9048
|
+
* | --- | --- |
|
|
9049
|
+
* | Typical question | $0.10 to $0.50 |
|
|
9050
|
+
* | Most one question can cost | Its `maxCostUsd`: $0.50 to $3, $3 by default |
|
|
9051
|
+
* | Handed to the Zernio team (`needs_human`) | Charged like an answered question |
|
|
9052
|
+
* | Failed or expired | $0 |
|
|
9053
|
+
* | All questions in a UTC month | At most $100 per account |
|
|
9050
9054
|
*
|
|
9051
|
-
*
|
|
9052
|
-
*
|
|
9053
|
-
*
|
|
9054
|
-
* failed runs are free. The run's `usage` holds the token counts and `costUsd` the amount
|
|
9055
|
-
* billed. Charges appear as "Support API" on your invoice.
|
|
9055
|
+
* Near its `maxCostUsd` a run stops investigating and answers with what it found so far,
|
|
9056
|
+
* so it never charges more than the cap; with nothing to answer yet it fails and costs
|
|
9057
|
+
* nothing. Charges appear as "Support API" on your invoice.
|
|
9056
9058
|
*
|
|
9057
9059
|
* Requires an unrestricted API key, usage-based billing and a card on file. Limits per
|
|
9058
9060
|
* account: 3 active runs and $100 of runs per UTC month. Send an Idempotency-Key header
|
|
@@ -9068,7 +9070,7 @@ export const askSupportQuestion = <ThrowOnError extends boolean = false>(options
|
|
|
9068
9070
|
|
|
9069
9071
|
/**
|
|
9070
9072
|
* Get a support answer
|
|
9071
|
-
* Returns a run started by your team, with Ana's answer once it is ready. Prefer the `support.run.completed` and `support.run.failed` webhooks; use this as the fallback, waiting `pollAfterSeconds` between polls. `costUsd` is the amount billed for the question, never above `maxCostUsd`, and 0 for a failed run (
|
|
9073
|
+
* Returns a run started by your team, with Ana's answer once it is ready. Prefer the `support.run.completed` and `support.run.failed` webhooks; use this as the fallback, waiting `pollAfterSeconds` between polls. `costUsd` is the amount billed for the question, never above `maxCostUsd`, and 0 for a failed run (pricing on Ask a support question).
|
|
9072
9074
|
*/
|
|
9073
9075
|
export const getSupportAnswer = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<GetSupportAnswerData, ThrowOnError>) => {
|
|
9074
9076
|
return (options?.client ?? client).get<GetSupportAnswerResponse, GetSupportAnswerError, ThrowOnError>({
|
|
@@ -10723,7 +10723,7 @@ export type SupportRun = {
|
|
|
10723
10723
|
answer: (string) | null;
|
|
10724
10724
|
usage: SupportRunUsage;
|
|
10725
10725
|
/**
|
|
10726
|
-
* The amount
|
|
10726
|
+
* The exact amount charged for the question, in USD, never above `maxCostUsd`. 0 for a failed run.
|
|
10727
10727
|
*/
|
|
10728
10728
|
costUsd: number;
|
|
10729
10729
|
/**
|