@getlatedev/node 0.2.1155 → 0.2.1156
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 +8 -2
- package/dist/index.d.ts +8 -2
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
- package/src/generated/sdk.gen.ts +1 -1
- package/src/generated/types.gen.ts +8 -2
package/dist/index.d.mts
CHANGED
|
@@ -12242,7 +12242,7 @@ type SupportRun = {
|
|
|
12242
12242
|
*/
|
|
12243
12243
|
threadId: string;
|
|
12244
12244
|
/**
|
|
12245
|
-
* queued and running are in progress. needs_human means Ana handed the question to a person instead of answering.
|
|
12245
|
+
* queued and running are in progress. needs_human means Ana handed the question to a person instead of answering; when `supportTicket` is set, a Zernio teammate has been notified and will follow up by email.
|
|
12246
12246
|
*/
|
|
12247
12247
|
status: 'queued' | 'running' | 'completed' | 'needs_human' | 'failed';
|
|
12248
12248
|
/**
|
|
@@ -12265,13 +12265,19 @@ type SupportRun = {
|
|
|
12265
12265
|
createdAt: string;
|
|
12266
12266
|
startedAt: (string) | null;
|
|
12267
12267
|
finishedAt: (string) | null;
|
|
12268
|
+
/**
|
|
12269
|
+
* Set when Ana opened a support ticket with the Zernio team. Null otherwise. A teammate follows up by email with the user whose API key started the run.
|
|
12270
|
+
*/
|
|
12271
|
+
supportTicket: {
|
|
12272
|
+
openedAt: string;
|
|
12273
|
+
} | null;
|
|
12268
12274
|
/**
|
|
12269
12275
|
* Seconds to wait before polling again. Present only while the run is queued or running.
|
|
12270
12276
|
*/
|
|
12271
12277
|
pollAfterSeconds?: number;
|
|
12272
12278
|
};
|
|
12273
12279
|
/**
|
|
12274
|
-
* queued and running are in progress. needs_human means Ana handed the question to a person instead of answering.
|
|
12280
|
+
* queued and running are in progress. needs_human means Ana handed the question to a person instead of answering; when `supportTicket` is set, a Zernio teammate has been notified and will follow up by email.
|
|
12275
12281
|
*/
|
|
12276
12282
|
type status29 = 'queued' | 'running' | 'completed' | 'needs_human' | 'failed';
|
|
12277
12283
|
/**
|
package/dist/index.d.ts
CHANGED
|
@@ -12242,7 +12242,7 @@ type SupportRun = {
|
|
|
12242
12242
|
*/
|
|
12243
12243
|
threadId: string;
|
|
12244
12244
|
/**
|
|
12245
|
-
* queued and running are in progress. needs_human means Ana handed the question to a person instead of answering.
|
|
12245
|
+
* queued and running are in progress. needs_human means Ana handed the question to a person instead of answering; when `supportTicket` is set, a Zernio teammate has been notified and will follow up by email.
|
|
12246
12246
|
*/
|
|
12247
12247
|
status: 'queued' | 'running' | 'completed' | 'needs_human' | 'failed';
|
|
12248
12248
|
/**
|
|
@@ -12265,13 +12265,19 @@ type SupportRun = {
|
|
|
12265
12265
|
createdAt: string;
|
|
12266
12266
|
startedAt: (string) | null;
|
|
12267
12267
|
finishedAt: (string) | null;
|
|
12268
|
+
/**
|
|
12269
|
+
* Set when Ana opened a support ticket with the Zernio team. Null otherwise. A teammate follows up by email with the user whose API key started the run.
|
|
12270
|
+
*/
|
|
12271
|
+
supportTicket: {
|
|
12272
|
+
openedAt: string;
|
|
12273
|
+
} | null;
|
|
12268
12274
|
/**
|
|
12269
12275
|
* Seconds to wait before polling again. Present only while the run is queued or running.
|
|
12270
12276
|
*/
|
|
12271
12277
|
pollAfterSeconds?: number;
|
|
12272
12278
|
};
|
|
12273
12279
|
/**
|
|
12274
|
-
* queued and running are in progress. needs_human means Ana handed the question to a person instead of answering.
|
|
12280
|
+
* queued and running are in progress. needs_human means Ana handed the question to a person instead of answering; when `supportTicket` is set, a Zernio teammate has been notified and will follow up by email.
|
|
12275
12281
|
*/
|
|
12276
12282
|
type status29 = 'queued' | 'running' | 'completed' | 'needs_human' | 'failed';
|
|
12277
12283
|
/**
|
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.1156",
|
|
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.1156",
|
|
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
|
@@ -9001,7 +9001,7 @@ export const addBroadcastRecipients = <ThrowOnError extends boolean = false>(opt
|
|
|
9001
9001
|
|
|
9002
9002
|
/**
|
|
9003
9003
|
* Start a support run (private beta)
|
|
9004
|
-
* Private beta: returns 403 `feature_not_available` unless enabled for your account. Asks Ana, the Zernio support agent, a question about your workspace. The run is asynchronous: this returns 202 with a `runId`, and the answer arrives through the `support.run.completed` and `support.run.failed` webhooks. `GET /v1/support/runs/{runId}` is the fallback. Pass `threadId` to continue an earlier conversation, and `context` to point Ana at a post, account or profile. Billed when the run finishes at the model cost plus 20%, never above `maxCostUsd`; failed runs are free. Requires an unrestricted API key, usage-based billing and a card on file. Limits per account: 3 active runs and $100 of runs per UTC month. Send an Idempotency-Key header to make retries safe.
|
|
9004
|
+
* Private beta: returns 403 `feature_not_available` unless enabled for your account. Asks Ana, the Zernio support agent, a question about your workspace. The run is asynchronous: this returns 202 with a `runId`, and the answer arrives through the `support.run.completed` and `support.run.failed` webhooks. `GET /v1/support/runs/{runId}` is the fallback. Pass `threadId` to continue an earlier conversation, and `context` to point Ana at a post, account or profile. Billed when the run finishes at the model cost plus 20%, never above `maxCostUsd`; failed runs are free. When Ana finds a problem on Zernio's side she opens a support ticket with the team (see `supportTicket` on the run) and the run ends as `needs_human`. Requires an unrestricted API key, usage-based billing and a card on file. Limits per account: 3 active runs and $100 of runs per UTC month. Send an Idempotency-Key header to make retries safe.
|
|
9005
9005
|
*/
|
|
9006
9006
|
export const createSupportRun = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<CreateSupportRunData, ThrowOnError>) => {
|
|
9007
9007
|
return (options?.client ?? client).post<CreateSupportRunResponse, CreateSupportRunError, ThrowOnError>({
|
|
@@ -10705,7 +10705,7 @@ export type SupportRun = {
|
|
|
10705
10705
|
*/
|
|
10706
10706
|
threadId: string;
|
|
10707
10707
|
/**
|
|
10708
|
-
* queued and running are in progress. needs_human means Ana handed the question to a person instead of answering.
|
|
10708
|
+
* queued and running are in progress. needs_human means Ana handed the question to a person instead of answering; when `supportTicket` is set, a Zernio teammate has been notified and will follow up by email.
|
|
10709
10709
|
*/
|
|
10710
10710
|
status: 'queued' | 'running' | 'completed' | 'needs_human' | 'failed';
|
|
10711
10711
|
/**
|
|
@@ -10728,6 +10728,12 @@ export type SupportRun = {
|
|
|
10728
10728
|
createdAt: string;
|
|
10729
10729
|
startedAt: (string) | null;
|
|
10730
10730
|
finishedAt: (string) | null;
|
|
10731
|
+
/**
|
|
10732
|
+
* Set when Ana opened a support ticket with the Zernio team. Null otherwise. A teammate follows up by email with the user whose API key started the run.
|
|
10733
|
+
*/
|
|
10734
|
+
supportTicket: {
|
|
10735
|
+
openedAt: string;
|
|
10736
|
+
} | null;
|
|
10731
10737
|
/**
|
|
10732
10738
|
* Seconds to wait before polling again. Present only while the run is queued or running.
|
|
10733
10739
|
*/
|
|
@@ -10735,7 +10741,7 @@ export type SupportRun = {
|
|
|
10735
10741
|
};
|
|
10736
10742
|
|
|
10737
10743
|
/**
|
|
10738
|
-
* queued and running are in progress. needs_human means Ana handed the question to a person instead of answering.
|
|
10744
|
+
* queued and running are in progress. needs_human means Ana handed the question to a person instead of answering; when `supportTicket` is set, a Zernio teammate has been notified and will follow up by email.
|
|
10739
10745
|
*/
|
|
10740
10746
|
export type status29 = 'queued' | 'running' | 'completed' | 'needs_human' | 'failed';
|
|
10741
10747
|
|