@vertesia/client 0.51.0 → 0.53.0
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/lib/cjs/AccountApi.js +11 -1
- package/lib/cjs/AccountApi.js.map +1 -1
- package/lib/cjs/AccountsApi.js +3 -0
- package/lib/cjs/AccountsApi.js.map +1 -1
- package/lib/cjs/InteractionsApi.js +17 -0
- package/lib/cjs/InteractionsApi.js.map +1 -1
- package/lib/cjs/RunsApi.js +33 -8
- package/lib/cjs/RunsApi.js.map +1 -1
- package/lib/cjs/client.js +65 -10
- package/lib/cjs/client.js.map +1 -1
- package/lib/cjs/execute.js +6 -0
- package/lib/cjs/execute.js.map +1 -1
- package/lib/cjs/index.js +0 -1
- package/lib/cjs/index.js.map +1 -1
- package/lib/cjs/nodejs/NodeStreamSource.js +45 -0
- package/lib/cjs/nodejs/NodeStreamSource.js.map +1 -0
- package/lib/cjs/nodejs/index.js +18 -0
- package/lib/cjs/nodejs/index.js.map +1 -0
- package/lib/cjs/store/AnalyzeDocApi.js +25 -6
- package/lib/cjs/store/AnalyzeDocApi.js.map +1 -1
- package/lib/cjs/store/CommandsApi.js +7 -23
- package/lib/cjs/store/CommandsApi.js.map +1 -1
- package/lib/cjs/store/EmbeddingsApi.js +29 -0
- package/lib/cjs/store/EmbeddingsApi.js.map +1 -0
- package/lib/cjs/store/FilesApi.js +6 -0
- package/lib/cjs/store/FilesApi.js.map +1 -1
- package/lib/cjs/store/TypesApi.js +1 -0
- package/lib/cjs/store/TypesApi.js.map +1 -1
- package/lib/cjs/store/WorkflowsApi.js +90 -8
- package/lib/cjs/store/WorkflowsApi.js.map +1 -1
- package/lib/cjs/store/client.js +2 -0
- package/lib/cjs/store/client.js.map +1 -1
- package/lib/esm/AccountApi.js +11 -1
- package/lib/esm/AccountApi.js.map +1 -1
- package/lib/esm/AccountsApi.js +3 -0
- package/lib/esm/AccountsApi.js.map +1 -1
- package/lib/esm/InteractionsApi.js +18 -1
- package/lib/esm/InteractionsApi.js.map +1 -1
- package/lib/esm/RunsApi.js +33 -8
- package/lib/esm/RunsApi.js.map +1 -1
- package/lib/esm/client.js +65 -10
- package/lib/esm/client.js.map +1 -1
- package/lib/esm/execute.js +5 -0
- package/lib/esm/execute.js.map +1 -1
- package/lib/esm/index.js +0 -1
- package/lib/esm/index.js.map +1 -1
- package/lib/esm/nodejs/NodeStreamSource.js +41 -0
- package/lib/esm/nodejs/NodeStreamSource.js.map +1 -0
- package/lib/esm/nodejs/index.js +2 -0
- package/lib/esm/nodejs/index.js.map +1 -0
- package/lib/esm/store/AnalyzeDocApi.js +25 -6
- package/lib/esm/store/AnalyzeDocApi.js.map +1 -1
- package/lib/esm/store/CommandsApi.js +6 -21
- package/lib/esm/store/CommandsApi.js.map +1 -1
- package/lib/esm/store/EmbeddingsApi.js +25 -0
- package/lib/esm/store/EmbeddingsApi.js.map +1 -0
- package/lib/esm/store/FilesApi.js +6 -0
- package/lib/esm/store/FilesApi.js.map +1 -1
- package/lib/esm/store/TypesApi.js +1 -0
- package/lib/esm/store/TypesApi.js.map +1 -1
- package/lib/esm/store/WorkflowsApi.js +91 -9
- package/lib/esm/store/WorkflowsApi.js.map +1 -1
- package/lib/esm/store/client.js +2 -0
- package/lib/esm/store/client.js.map +1 -1
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/lib/types/AccountApi.d.ts +8 -3
- package/lib/types/AccountApi.d.ts.map +1 -1
- package/lib/types/AccountsApi.d.ts +1 -1
- package/lib/types/AccountsApi.d.ts.map +1 -1
- package/lib/types/AnalyticsApi.d.ts +0 -1
- package/lib/types/ApiKeysApi.d.ts +0 -1
- package/lib/types/CommandsApi.d.ts +0 -1
- package/lib/types/EnvironmentsApi.d.ts +0 -1
- package/lib/types/IamApi.d.ts +0 -1
- package/lib/types/InteractionBase.d.ts +0 -1
- package/lib/types/InteractionsApi.d.ts +17 -3
- package/lib/types/InteractionsApi.d.ts.map +1 -1
- package/lib/types/ProjectsApi.d.ts +0 -1
- package/lib/types/PromptsApi.d.ts +0 -1
- package/lib/types/RefsApi.d.ts +0 -1
- package/lib/types/RunsApi.d.ts +15 -2
- package/lib/types/RunsApi.d.ts.map +1 -1
- package/lib/types/StreamSource.d.ts +0 -1
- package/lib/types/TrainingApi.d.ts +0 -1
- package/lib/types/UsersApi.d.ts +0 -1
- package/lib/types/client.d.ts +20 -5
- package/lib/types/client.d.ts.map +1 -1
- package/lib/types/execute.d.ts +7 -4
- package/lib/types/execute.d.ts.map +1 -1
- package/lib/types/index.d.ts +2 -4
- package/lib/types/index.d.ts.map +1 -1
- package/lib/types/nodejs/NodeStreamSource.d.ts +9 -0
- package/lib/types/nodejs/NodeStreamSource.d.ts.map +1 -0
- package/lib/types/nodejs/index.d.ts +1 -0
- package/lib/types/nodejs/index.d.ts.map +1 -0
- package/lib/types/store/AgentsApi.d.ts +0 -1
- package/lib/types/store/AnalyzeDocApi.d.ts +4 -4
- package/lib/types/store/AnalyzeDocApi.d.ts.map +1 -1
- package/lib/types/store/CollectionsApi.d.ts +0 -1
- package/lib/types/store/CommandsApi.d.ts +5 -9
- package/lib/types/store/CommandsApi.d.ts.map +1 -1
- package/lib/types/store/EmbeddingsApi.d.ts +12 -0
- package/lib/types/store/EmbeddingsApi.d.ts.map +1 -0
- package/lib/types/store/FilesApi.d.ts +0 -1
- package/lib/types/store/FilesApi.d.ts.map +1 -1
- package/lib/types/store/ObjectsApi.d.ts +0 -1
- package/lib/types/store/TypesApi.d.ts +2 -2
- package/lib/types/store/TypesApi.d.ts.map +1 -1
- package/lib/types/store/WorkflowsApi.d.ts +16 -9
- package/lib/types/store/WorkflowsApi.d.ts.map +1 -1
- package/lib/types/store/client.d.ts +2 -1
- package/lib/types/store/client.d.ts.map +1 -1
- package/lib/types/store/errors.d.ts +0 -1
- package/lib/types/store/index.d.ts +0 -1
- package/package.json +25 -10
- package/src/AccountApi.ts +14 -2
- package/src/AccountsApi.ts +4 -0
- package/src/InteractionsApi.ts +25 -3
- package/src/RunsApi.ts +67 -30
- package/src/client.test.ts +94 -0
- package/src/client.ts +84 -13
- package/src/execute.ts +9 -3
- package/src/index.ts +2 -3
- package/src/nodejs/NodeStreamSource.ts +43 -0
- package/src/nodejs/index.ts +1 -0
- package/src/store/AnalyzeDocApi.ts +29 -9
- package/src/store/CommandsApi.ts +6 -33
- package/src/store/EmbeddingsApi.ts +39 -0
- package/src/store/FilesApi.ts +4 -0
- package/src/store/TypesApi.ts +2 -1
- package/src/store/WorkflowsApi.ts +127 -25
- package/src/store/client.ts +2 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RunsApi.d.ts","sourceRoot":"","sources":["../../src/RunsApi.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;AAClE,OAAO,
|
|
1
|
+
{"version":3,"file":"RunsApi.d.ts","sourceRoot":"","sources":["../../src/RunsApi.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;AAClE,OAAO,EACH,6BAA6B,EAC7B,sBAAsB,EACtB,YAAY,EACZ,eAAe,EACf,WAAW,EACX,gBAAgB,EAChB,iBAAiB,EACjB,sBAAsB,EACtB,gBAAgB,EAChB,kBAAkB,EAClB,kBAAkB,EACrB,MAAM,kBAAkB,CAAC;AAE1B,OAAO,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAErD,MAAM,WAAW,YAAY;IACzB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,wBAAwB;IACrC,YAAY,CAAC,EAAE;QAAE,GAAG,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;IAChD,YAAY,CAAC,EAAE;QAAE,GAAG,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CA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,GAAG,OAAO,CAAC,iBAAiB,CAAC;IAMpF;;;;QAII;IACJ,aAAa,CAAC,KAAK,EAAE,sBAAsB,GAAG,OAAO,CAAC,wBAAwB,CAAC;IAM/E,MAAM,CAAC,OAAO,EAAE,gBAAgB,GAAG,OAAO,CAAC,eAAe,EAAE,CAAC;CAKhE"}
|
package/lib/types/UsersApi.d.ts
CHANGED
package/lib/types/client.d.ts
CHANGED
|
@@ -15,15 +15,28 @@ import { RunsApi } from "./RunsApi.js";
|
|
|
15
15
|
import { ZenoClient } from "./store/client.js";
|
|
16
16
|
import TrainingApi from "./TrainingApi.js";
|
|
17
17
|
import UsersApi from "./UsersApi.js";
|
|
18
|
-
export
|
|
19
|
-
|
|
20
|
-
|
|
18
|
+
export type VertesiaClientProps = {
|
|
19
|
+
/**
|
|
20
|
+
* The site name of Vertesia.
|
|
21
|
+
*
|
|
22
|
+
* This is used to determine the API backend. It should not include the protocol. For more
|
|
23
|
+
* advanced configurations, use `serverUrl` and `storeUrl` instead.
|
|
24
|
+
*
|
|
25
|
+
* @example api.vertesia.io
|
|
26
|
+
* @example api-preview.vertesia.io
|
|
27
|
+
* @example api-staging.vertesia.io
|
|
28
|
+
* @default api.vertesia.io
|
|
29
|
+
* @since 0.52.0
|
|
30
|
+
*/
|
|
31
|
+
site?: 'api.vertesia.io' | 'api-preview.vertesia.io' | 'api-staging.vertesia.io';
|
|
32
|
+
serverUrl?: string;
|
|
33
|
+
storeUrl?: string;
|
|
21
34
|
apikey?: string;
|
|
22
35
|
projectId?: string;
|
|
23
36
|
sessionTags?: string | string[];
|
|
24
37
|
onRequest?: (request: Request) => void;
|
|
25
38
|
onResponse?: (response: Response) => void;
|
|
26
|
-
}
|
|
39
|
+
};
|
|
27
40
|
export declare class VertesiaClient extends AbstractFetchClient<VertesiaClient> {
|
|
28
41
|
/**
|
|
29
42
|
* The JWT token linked to the API KEY (sk or pk)
|
|
@@ -45,6 +58,8 @@ export declare class VertesiaClient extends AbstractFetchClient<VertesiaClient>
|
|
|
45
58
|
*/
|
|
46
59
|
withAuthCallback(authCb?: (() => Promise<string>) | null): this;
|
|
47
60
|
withApiKey(apiKey: string | null): Promise<this>;
|
|
61
|
+
getRawJWT(): Promise<string | null>;
|
|
62
|
+
getDecodedJWT(): Promise<any>;
|
|
48
63
|
/**
|
|
49
64
|
* Alias for store.workflows
|
|
50
65
|
*/
|
|
@@ -58,6 +73,7 @@ export declare class VertesiaClient extends AbstractFetchClient<VertesiaClient>
|
|
|
58
73
|
* Alias for store.types
|
|
59
74
|
*/
|
|
60
75
|
get types(): import("./index.js").TypesApi;
|
|
76
|
+
get storeUrl(): string;
|
|
61
77
|
set project(projectId: string | null);
|
|
62
78
|
get project(): string | null;
|
|
63
79
|
/**
|
|
@@ -83,4 +99,3 @@ export declare class VertesiaClient extends AbstractFetchClient<VertesiaClient>
|
|
|
83
99
|
refs: RefsApi;
|
|
84
100
|
commands: CommandsApi;
|
|
85
101
|
}
|
|
86
|
-
//# sourceMappingURL=client.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../src/client.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AACjE,OAAO,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AACrD,OAAO,UAAU,MAAM,iBAAiB,CAAC;AACzC,OAAO,WAAW,MAAM,kBAAkB,CAAC;AAC3C,OAAO,YAAY,MAAM,mBAAmB,CAAC;AAC7C,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,WAAW,MAAM,kBAAkB,CAAC;AAC3C,OAAO,eAAe,MAAM,sBAAsB,CAAC;AACnD,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AACrC,OAAO,eAAe,MAAM,sBAAsB,CAAC;AACnD,OAAO,WAAW,MAAM,kBAAkB,CAAC;AAC3C,OAAO,UAAU,MAAM,iBAAiB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aAAwB;IAC/B,QAAQ,cAAyB;IACjC,OAAO,aAAwB;IAC/B,SAAS,eAA0B;IACnC,QAAQ,cAAyB;IACjC,KAAK,WAAsB;IAC3B,GAAG,SAAoB;IACvB,IAAI,UAAqB;IACzB,QAAQ,cAAyB;CACpC"}
|
package/lib/types/execute.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { AsyncExecutionPayload, InteractionExecutionPayload, InteractionExecutionResult } from '@vertesia/common';
|
|
2
2
|
import { VertesiaClient } from './client.js';
|
|
3
3
|
export declare function EventSourceProvider(): Promise<typeof EventSource>;
|
|
4
4
|
/**
|
|
@@ -12,7 +12,7 @@ export declare function EventSourceProvider(): Promise<typeof EventSource>;
|
|
|
12
12
|
* @param payload InteractionExecutionPayload
|
|
13
13
|
* @param onChunk callback to be called when the next chunk of the response is available
|
|
14
14
|
*/
|
|
15
|
-
export declare function executeInteraction<P = any, R = any>(client: VertesiaClient, interactionId: string, payload?: InteractionExecutionPayload, onChunk?: (chunk: string) => void): Promise<
|
|
15
|
+
export declare function executeInteraction<P = any, R = any>(client: VertesiaClient, interactionId: string, payload?: InteractionExecutionPayload, onChunk?: (chunk: string) => void): Promise<InteractionExecutionResult<P, R>>;
|
|
16
16
|
/**
|
|
17
17
|
* Same as executeInteraction but uses the interaction name selector instead of the id.
|
|
18
18
|
* A name selector is the interaction endpoint name suffuxed with an optional tag or version wich is starting with a `@` character.
|
|
@@ -29,5 +29,8 @@ export declare function executeInteraction<P = any, R = any>(client: VertesiaCli
|
|
|
29
29
|
* @param onChunk
|
|
30
30
|
* @returns
|
|
31
31
|
*/
|
|
32
|
-
export declare function executeInteractionByName<P = any, R = any>(client: VertesiaClient, interaction: string, payload?: InteractionExecutionPayload, onChunk?: (chunk: string) => void): Promise<
|
|
33
|
-
|
|
32
|
+
export declare function executeInteractionByName<P = any, R = any>(client: VertesiaClient, interaction: string, payload?: InteractionExecutionPayload, onChunk?: (chunk: string) => void): Promise<InteractionExecutionResult<P, R>>;
|
|
33
|
+
export declare function executeInteractionAsync(client: VertesiaClient, payload: AsyncExecutionPayload): Promise<{
|
|
34
|
+
runId: string;
|
|
35
|
+
workflowId: string;
|
|
36
|
+
}>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"execute.d.ts","sourceRoot":"","sources":["../../src/execute.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"execute.d.ts","sourceRoot":"","sources":["../../src/execute.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAsB,2BAA2B,EAAE,0BAA0B,EAAoC,MAAM,kBAAkB,CAAC;AACxK,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAE7C,wBAAgB,mBAAmB,IAAI,OAAO,CAAC,OAAO,WAAW,CAAC,CAMjE;AACD;;;;;;;;;;GAUG;AACH,wBAAsB,kBAAkB,CAAC,CAAC,GAAG,GAAG,EAAE,CAAC,GAAG,GAAG,EAAE,MAAM,EAAE,cAAc,EAC7E,aAAa,EAAE,MAAM,EACrB,OAAO,GAAE,2BAAgC,EACzC,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,GAAG,OAAO,CAAC,0BAA0B,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAYhF;AAED;;;;;;;;;;;;;;;GAeG;AACH,wBAAsB,wBAAwB,CAAC,CAAC,GAAG,GAAG,EAAE,CAAC,GAAG,GAAG,EAAE,MAAM,EAAE,cAAc,EACnF,WAAW,EAAE,MAAM,EACnB,OAAO,GAAE,2BAAgC,EACzC,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,GAAG,OAAO,CAAC,0BAA0B,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAgBhF;AA0CD,wBAAsB,uBAAuB,CAAC,MAAM,EAAE,cAAc,EAAE,OAAO,EAAE,qBAAqB,GAAG,OAAO,CAAC;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,UAAU,EAAE,MAAM,CAAA;CAAE,CAAC,CAIpJ"}
|
package/lib/types/index.d.ts
CHANGED
|
@@ -1,9 +1,7 @@
|
|
|
1
|
+
export * from './client.js';
|
|
1
2
|
export * from './InteractionBase.js';
|
|
3
|
+
export type { AsyncExecutionResult, ComputeInteractionFacetsResponse } from './InteractionsApi.js';
|
|
2
4
|
export type { ComputePromptFacetsResponse, ListInteractionsResponse } from './PromptsApi.js';
|
|
3
|
-
export type { ComputeInteractionFacetsResponse } from './InteractionsApi.js';
|
|
4
5
|
export type { ComputeRunFacetsResponse, FilterOption } from './RunsApi.js';
|
|
5
|
-
export * from './client.js';
|
|
6
|
-
export * from './InteractionBase.js';
|
|
7
6
|
export * from "./store/index.js";
|
|
8
7
|
export * from "./StreamSource.js";
|
|
9
|
-
//# sourceMappingURL=index.d.ts.map
|
package/lib/types/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAC;AACrC,YAAY,EAAE,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,sBAAsB,CAAC;AACrC,YAAY,EAAE,oBAAoB,EAAE,gCAAgC,EAAE,MAAM,sBAAsB,CAAC;AACnG,YAAY,EAAE,2BAA2B,EAAE,wBAAwB,EAAE,MAAM,iBAAiB,CAAC;AAC7F,YAAY,EAAE,wBAAwB,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAC3E,cAAc,kBAAkB,CAAC;AACjC,cAAc,mBAAmB,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { Readable } from "node:stream";
|
|
2
|
+
import { StreamSource } from "../StreamSource.js";
|
|
3
|
+
/**
|
|
4
|
+
* A stream source that wraps a Node.js Readable stream.
|
|
5
|
+
* This class is only works in Node.js environments.
|
|
6
|
+
*/
|
|
7
|
+
export declare class NodeStreamSource extends StreamSource {
|
|
8
|
+
constructor(stream: Readable, name: string, type?: string, id?: string);
|
|
9
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NodeStreamSource.d.ts","sourceRoot":"","sources":["../../../src/nodejs/NodeStreamSource.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAE5C,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAGlD;;;GAGG;AACH,qBAAa,gBAAiB,SAAQ,YAAY;gBAClC,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,MAAM,EAAE,EAAE,CAAC,EAAE,MAAM;CAGzE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./NodeStreamSource.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/nodejs/index.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAC"}
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { ApiTopic, ClientBase } from "@vertesia/api-fetch-client";
|
|
2
|
-
import {
|
|
2
|
+
import { AdaptedTable, AdaptTablesRequest, DocAnalyzerResultResponse, DocAnalyzeRunStatusResponse, DocImage, DocTableCsv, DocTableJson, ExportTableFormats, GetAdaptedTablesRequestQuery, PdfToRichtextOptions, WorkflowRunStatus } from "@vertesia/common";
|
|
3
3
|
export declare class AnalyzeDocApi extends ApiTopic {
|
|
4
4
|
objectId: string;
|
|
5
5
|
constructor(parent: ClientBase, objectId: string);
|
|
6
6
|
start(payload: PdfToRichtextOptions): Promise<DocAnalyzeRunStatusResponse>;
|
|
7
7
|
getStatus(): Promise<DocAnalyzeRunStatusResponse>;
|
|
8
8
|
getResults(): Promise<DocAnalyzerResultResponse>;
|
|
9
|
+
adaptTables(payload: AdaptTablesRequest): Promise<WorkflowRunStatus>;
|
|
10
|
+
getAdaptedTables(runId?: string, query?: GetAdaptedTablesRequestQuery): Promise<Record<number, AdaptedTable>>;
|
|
9
11
|
getXml(): Promise<string>;
|
|
10
|
-
getTables(): Promise<DocTableCsv[] | DocTableJson[]>;
|
|
12
|
+
getTables(format?: ExportTableFormats): Promise<DocTableCsv[] | DocTableJson[]>;
|
|
11
13
|
getImages(): Promise<DocImage[]>;
|
|
12
|
-
getParts(): Promise<ContentObject[]>;
|
|
13
14
|
getAnnotated(): Promise<{
|
|
14
15
|
url: string;
|
|
15
16
|
}>;
|
|
16
17
|
}
|
|
17
|
-
//# sourceMappingURL=AnalyzeDocApi.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AnalyzeDocApi.d.ts","sourceRoot":"","sources":["../../../src/store/AnalyzeDocApi.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;AAClE,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"AnalyzeDocApi.d.ts","sourceRoot":"","sources":["../../../src/store/AnalyzeDocApi.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;AAClE,OAAO,EAAE,YAAY,EAAE,kBAAkB,EAAE,yBAAyB,EAAE,2BAA2B,EAAE,QAAQ,EAAE,WAAW,EAAE,YAAY,EAAE,kBAAkB,EAAE,4BAA4B,EAAE,oBAAoB,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAE5P,qBAAa,aAAc,SAAQ,QAAQ;IACA,QAAQ,EAAE,MAAM;gBAA3C,MAAM,EAAE,UAAU,EAAS,QAAQ,EAAE,MAAM;IAIjD,KAAK,CAAC,OAAO,EAAE,oBAAoB,GAAG,OAAO,CAAC,2BAA2B,CAAC;IAI1E,SAAS,IAAI,OAAO,CAAC,2BAA2B,CAAC;IAIjD,UAAU,IAAI,OAAO,CAAC,yBAAyB,CAAC;IAIhD,WAAW,CAAC,OAAO,EAAE,kBAAkB,GAAG,OAAO,CAAC,iBAAiB,CAAC;IAIpE,gBAAgB,CAAC,KAAK,CAAC,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,4BAA4B,GAAG,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,YAAY,CAAC,CAAC;IAiB7G,MAAM,IAAI,OAAO,CAAC,MAAM,CAAC;IAIzB,SAAS,CAAC,MAAM,CAAC,EAAE,kBAAkB,GAAG,OAAO,CAAC,WAAW,EAAE,GAAG,YAAY,EAAE,CAAC;IAQ/E,SAAS,IAAI,OAAO,CAAC,QAAQ,EAAE,CAAC;IAIhC,YAAY,IAAI,OAAO,CAAC;QAAE,GAAG,EAAE,MAAM,CAAA;KAAE,CAAC;CAGjD"}
|
|
@@ -1,14 +1,10 @@
|
|
|
1
1
|
import { ApiTopic, ClientBase } from "@vertesia/api-fetch-client";
|
|
2
|
-
import {
|
|
2
|
+
import { EmbeddingsApi } from "./EmbeddingsApi.js";
|
|
3
|
+
/**
|
|
4
|
+
* @deprecated use EmbeddingsApi instead
|
|
5
|
+
* @see EmbeddingsApi
|
|
6
|
+
*/
|
|
3
7
|
export declare class CommandsApi extends ApiTopic {
|
|
4
8
|
constructor(parent: ClientBase);
|
|
5
9
|
embeddings: EmbeddingsApi;
|
|
6
10
|
}
|
|
7
|
-
export declare class EmbeddingsApi extends ApiTopic {
|
|
8
|
-
constructor(parent: ClientBase);
|
|
9
|
-
status(type: SupportedEmbeddingTypes): Promise<EmbeddingsStatusResponse>;
|
|
10
|
-
activate(type: SupportedEmbeddingTypes, config: Partial<ProjectConfigurationEmbeddings>): Promise<GenericCommandResponse>;
|
|
11
|
-
disable(type: SupportedEmbeddingTypes): Promise<GenericCommandResponse>;
|
|
12
|
-
recalculate(type: SupportedEmbeddingTypes): Promise<GenericCommandResponse>;
|
|
13
|
-
}
|
|
14
|
-
//# sourceMappingURL=CommandsApi.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CommandsApi.d.ts","sourceRoot":"","sources":["../../../src/store/CommandsApi.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;AAClE,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"CommandsApi.d.ts","sourceRoot":"","sources":["../../../src/store/CommandsApi.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;AAClE,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAEnD;;;GAGG;AACH,qBAAa,WAAY,SAAQ,QAAQ;gBAEzB,MAAM,EAAE,UAAU;IAI9B,UAAU,gBAA0C;CACvD"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ApiTopic, ClientBase } from "@vertesia/api-fetch-client";
|
|
2
|
+
import { EmbeddingsStatusResponse, GenericCommandResponse, ProjectConfigurationEmbeddings, SupportedEmbeddingTypes } from "@vertesia/common";
|
|
3
|
+
/**
|
|
4
|
+
* @since 0.52.0
|
|
5
|
+
*/
|
|
6
|
+
export declare class EmbeddingsApi extends ApiTopic {
|
|
7
|
+
constructor(parent: ClientBase, basePath?: string);
|
|
8
|
+
status(type: SupportedEmbeddingTypes): Promise<EmbeddingsStatusResponse>;
|
|
9
|
+
activate(type: SupportedEmbeddingTypes, config: Partial<ProjectConfigurationEmbeddings>): Promise<GenericCommandResponse>;
|
|
10
|
+
disable(type: SupportedEmbeddingTypes): Promise<GenericCommandResponse>;
|
|
11
|
+
recalculate(type: SupportedEmbeddingTypes): Promise<GenericCommandResponse>;
|
|
12
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EmbeddingsApi.d.ts","sourceRoot":"","sources":["../../../src/store/EmbeddingsAp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AM,CAAA;KAAE,CAAC;IAIhD,YAAY,CAAC,OAAO,EAAE,mBAAmB,GAAG,OAAO,CAAC,kBAAkB,CAAC;IAMvE,cAAc,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,kBAAkB,CAAC;IAQzD;;;;OAIG;IACG,UAAU,CAAC,MAAM,EAAE,YAAY,GAAG,IAAI,GAAG,OAAO,CAAC,MAAM,CAAC;IA2BxD,YAAY,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,cAAc,CAAC,UAAU,CAAC,CAAC;IA4B/D,gBAAgB,CAAC,MAAM,EAAE,YAAY,GAAG,IAAI,GAAG,OAAO,CAAC,MAAM,CAAC;IAW9D,kBAAkB,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,GAAE,OAAe,GAAG,OAAO,CAAC,cAAc,CAAC,UAAU,CAAC,CAAC;CAQvG"}
|
|
@@ -11,7 +11,8 @@ export declare class TypesApi extends ApiTopic {
|
|
|
11
11
|
* @returns
|
|
12
12
|
*/
|
|
13
13
|
list(payload?: ObjectTypeSearchPayload, options?: {
|
|
14
|
-
layout
|
|
14
|
+
layout?: boolean;
|
|
15
|
+
schema?: boolean;
|
|
15
16
|
}): Promise<ContentObjectTypeItem[]>;
|
|
16
17
|
find(payload: FindPayload): Promise<ContentObjectType[]>;
|
|
17
18
|
retrieve(typeId: string): Promise<ContentObjectType>;
|
|
@@ -20,4 +21,3 @@ export declare class TypesApi extends ApiTopic {
|
|
|
20
21
|
create(payload: CreateContentObjectTypePayload): Promise<ContentObjectType>;
|
|
21
22
|
delete(id: string): Promise<any>;
|
|
22
23
|
}
|
|
23
|
-
//# sourceMappingURL=TypesApi.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TypesApi.d.ts","sourceRoot":"","sources":["../../../src/store/TypesApi.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,qBAAqB,EAAE,8BAA8B,EAAE,WAAW,EAAyB,uB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B,CAAC;IAM3E,MAAM,CAAC,EAAE,EAAE,MAAM;CAIpB"}
|
|
@@ -1,10 +1,13 @@
|
|
|
1
|
-
import { ApiTopic, ClientBase } from
|
|
2
|
-
import { ActivityCatalog, CreateWorkflowRulePayload, DSLWorkflowDefinition, DSLWorkflowSpec, ExecuteWorkflowPayload, ListWorkflowRunsPayload, ListWorkflowRunsResponse, WorkflowDefinitionRef, WorkflowRule, WorkflowRuleItem, WorkflowRunWithDetails } from
|
|
1
|
+
import { ApiTopic, ClientBase } from "@vertesia/api-fetch-client";
|
|
2
|
+
import { ActivityCatalog, AgentMessage, AgentMessageType, CreateWorkflowRulePayload, DSLWorkflowDefinition, DSLWorkflowSpec, ExecuteWorkflowPayload, ListWorkflowRunsPayload, ListWorkflowRunsResponse, WorkflowDefinitionRef, WorkflowRule, WorkflowRuleItem, WorkflowRunWithDetails } from "@vertesia/common";
|
|
3
3
|
export declare class WorkflowsApi extends ApiTopic {
|
|
4
4
|
constructor(parent: ClientBase);
|
|
5
5
|
getActivityCatalog(): Promise<ActivityCatalog>;
|
|
6
6
|
listRuns(documentId: string, eventName: string, ruleId: string): Promise<ListWorkflowRunsResponse>;
|
|
7
7
|
searchRuns(payload: ListWorkflowRunsPayload): Promise<ListWorkflowRunsResponse>;
|
|
8
|
+
sendSignal(workflowId: string, runId: string, signal: string, payload?: any): Promise<{
|
|
9
|
+
message: string;
|
|
10
|
+
}>;
|
|
8
11
|
getRunDetails(runId: string, workflowId: string): Promise<WorkflowRunWithDetails>;
|
|
9
12
|
terminate(workflowId: string, runId: string, reason?: string): Promise<{
|
|
10
13
|
message: string;
|
|
@@ -12,9 +15,13 @@ export declare class WorkflowsApi extends ApiTopic {
|
|
|
12
15
|
cancel(workflowId: string, runId: string, reason?: string): Promise<{
|
|
13
16
|
message: string;
|
|
14
17
|
}>;
|
|
15
|
-
execute(name: string, payload?: ExecuteWorkflowPayload): Promise<{
|
|
16
|
-
|
|
17
|
-
|
|
18
|
+
execute(name: string, payload?: ExecuteWorkflowPayload): Promise<({
|
|
19
|
+
run_id: string;
|
|
20
|
+
workflow_id: string;
|
|
21
|
+
} | undefined)[]>;
|
|
22
|
+
postMessage(runId: string, message: string, type?: AgentMessageType, details?: any): Promise<void>;
|
|
23
|
+
retrieveMessages(runId: string, since?: number): Promise<AgentMessage[]>;
|
|
24
|
+
streamMessages(runId: string, onMessage?: (message: AgentMessage) => void, since?: number): Promise<void>;
|
|
18
25
|
rules: WorkflowsRulesApi;
|
|
19
26
|
definitions: WorkflowsDefinitionApi;
|
|
20
27
|
}
|
|
@@ -25,9 +32,10 @@ export declare class WorkflowsRulesApi extends ApiTopic {
|
|
|
25
32
|
update(id: string, payload: any): Promise<WorkflowRule>;
|
|
26
33
|
create(payload: CreateWorkflowRulePayload): Promise<WorkflowRule>;
|
|
27
34
|
delete(id: string): Promise<any>;
|
|
28
|
-
execute(id: string, objectIds?: string[], vars?: Record<string, any>): Promise<{
|
|
29
|
-
|
|
30
|
-
|
|
35
|
+
execute(id: string, objectIds?: string[], vars?: Record<string, any>): Promise<({
|
|
36
|
+
run_id: string;
|
|
37
|
+
workflow_id: string;
|
|
38
|
+
} | undefined)[]>;
|
|
31
39
|
}
|
|
32
40
|
export declare class WorkflowsDefinitionApi extends ApiTopic {
|
|
33
41
|
constructor(parent: WorkflowsApi);
|
|
@@ -37,4 +45,3 @@ export declare class WorkflowsDefinitionApi extends ApiTopic {
|
|
|
37
45
|
create(payload: DSLWorkflowSpec): Promise<DSLWorkflowDefinition>;
|
|
38
46
|
delete(id: string): Promise<any>;
|
|
39
47
|
}
|
|
40
|
-
//# sourceMappingURL=WorkflowsApi.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WorkflowsApi.d.ts","sourceRoot":"","sources":["../../../src/store/WorkflowsApi.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;AAClE,OAAO,
|
|
1
|
+
{"version":3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AA;KAAE,GAAG,SAAS,CAAC,EAAE,CAAC;CAOtE;AAED,qBAAa,sBAAuB,SAAQ,QAAQ;gBAGpC,MAAM,EAAE,YAAY;IAIhC,IAAI,IAAI,OAAO,CAAC,qBAAqB,EAAE,CAAC;IAIxC,QAAQ,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,qBAAqB,CAAC;IAIpD,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,GAAG,GAAG,OAAO,CAAC,qBAAqB,CAAC;IAMhE,MAAM,CAAC,OAAO,EAAE,eAAe,GAAG,OAAO,CAAC,qBAAqB,CAAC;IAMhE,MAAM,CAAC,EAAE,EAAE,MAAM;CAGpB"}
|
|
@@ -2,6 +2,7 @@ import { AbstractFetchClient } from "@vertesia/api-fetch-client";
|
|
|
2
2
|
import { BulkOperationPayload, BulkOperationResult } from "@vertesia/common";
|
|
3
3
|
import { AgentsApi } from "./AgentsApi.js";
|
|
4
4
|
import { CommandsApi } from "./CommandsApi.js";
|
|
5
|
+
import { EmbeddingsApi } from "./EmbeddingsApi.js";
|
|
5
6
|
import { FilesApi } from "./FilesApi.js";
|
|
6
7
|
import { ObjectsApi } from "./ObjectsApi.js";
|
|
7
8
|
import { TypesApi } from "./TypesApi.js";
|
|
@@ -24,5 +25,5 @@ export declare class ZenoClient extends AbstractFetchClient<ZenoClient> {
|
|
|
24
25
|
commands: CommandsApi;
|
|
25
26
|
agents: AgentsApi;
|
|
26
27
|
collections: CollectionsApi;
|
|
28
|
+
embeddings: EmbeddingsApi;
|
|
27
29
|
}
|
|
28
|
-
//# sourceMappingURL=client.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../../src/store/client.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAgB,MAAM,4BAA4B,CAAC;AAC/E,OAAO,EAAE,oBAAoB,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC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sB;IAC3B,QAAQ,cAAyB;IACjC,MAAM,YAAuB;IAC7B,WAAW,iBAA4B;IACvC,UAAU,gBAA2B;CACxC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vertesia/client",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.53.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"types": "./lib/types/index.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -9,28 +9,43 @@
|
|
|
9
9
|
],
|
|
10
10
|
"devDependencies": {
|
|
11
11
|
"@types/eventsource": "^1.1.14",
|
|
12
|
-
"@types/node": "^
|
|
12
|
+
"@types/node": "^22.13.5",
|
|
13
13
|
"ts-dual-module": "^0.6.3",
|
|
14
14
|
"typescript": "^5.0.2",
|
|
15
|
-
"vitest": "^
|
|
15
|
+
"vitest": "^3.0.9"
|
|
16
16
|
},
|
|
17
17
|
"dependencies": {
|
|
18
18
|
"eventsource": "^2.0.2",
|
|
19
|
-
"@
|
|
20
|
-
"@
|
|
21
|
-
"@vertesia/common": "0.
|
|
19
|
+
"@vertesia/api-fetch-client": "0.52.0",
|
|
20
|
+
"@llumiverse/core": "0.17.0",
|
|
21
|
+
"@vertesia/common": "0.52.0"
|
|
22
22
|
},
|
|
23
23
|
"ts_dual_module": {
|
|
24
24
|
"outDir": "lib"
|
|
25
25
|
},
|
|
26
26
|
"exports": {
|
|
27
|
-
"
|
|
28
|
-
|
|
29
|
-
|
|
27
|
+
".": {
|
|
28
|
+
"types": "./lib/types/index.d.ts",
|
|
29
|
+
"import": "./lib/esm/index.js",
|
|
30
|
+
"require": "./lib/cjs/index.js"
|
|
31
|
+
},
|
|
32
|
+
"./node": {
|
|
33
|
+
"types": "./lib/types/nodejs/index.d.ts",
|
|
34
|
+
"import": "./lib/esm/nodejs/index.js",
|
|
35
|
+
"require": "./lib/cjs/nodejs/index.js"
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
"typesVersions": {
|
|
39
|
+
"*": {
|
|
40
|
+
"node": [
|
|
41
|
+
"./lib/types/nodejs/index.d.ts"
|
|
42
|
+
]
|
|
43
|
+
}
|
|
30
44
|
},
|
|
31
45
|
"scripts": {
|
|
32
46
|
"eslint": "eslint './src/**/*.{jsx,js,tsx,ts}'",
|
|
33
47
|
"build": "pnpm exec tsmod build",
|
|
34
|
-
"clean": "rimraf ./node_modules ./lib ./tsconfig.tsbuildinfo"
|
|
48
|
+
"clean": "rimraf ./node_modules ./lib ./tsconfig.tsbuildinfo",
|
|
49
|
+
"test": "vitest run"
|
|
35
50
|
}
|
|
36
51
|
}
|
package/src/AccountApi.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ApiTopic, ClientBase } from "@vertesia/api-fetch-client";
|
|
2
|
-
import { Account, InviteUserRequestPayload, InviteUserResponsePayload, OnboardingProgress, ProjectRef, TransientToken, UpdateAccountPayload, User, UserInviteTokenData } from "@vertesia/common";
|
|
2
|
+
import { Account, InviteUserRequestPayload, InviteUserResponsePayload, OnboardingProgress, ProjectRef, StripeBillingStatusResponse, TransientToken, UpdateAccountPayload, User, UserInviteTokenData } from "@vertesia/common";
|
|
3
3
|
|
|
4
4
|
export default class AccountApi extends ApiTopic {
|
|
5
5
|
|
|
@@ -42,13 +42,21 @@ export default class AccountApi extends ApiTopic {
|
|
|
42
42
|
}
|
|
43
43
|
|
|
44
44
|
/**
|
|
45
|
-
* Fetch Invites for
|
|
45
|
+
* Fetch Invites for Principal
|
|
46
46
|
* @returns UserInviteTokenData[]
|
|
47
47
|
* */
|
|
48
48
|
listInvites(): Promise<TransientToken<UserInviteTokenData>[]> {
|
|
49
49
|
return this.get('/invites');
|
|
50
50
|
}
|
|
51
51
|
|
|
52
|
+
/**
|
|
53
|
+
* Fetch Invites for Account
|
|
54
|
+
* @returns UserInviteTokenData[]
|
|
55
|
+
* */
|
|
56
|
+
listAccountInvitation(id: string): Promise<TransientToken<UserInviteTokenData>[]> {
|
|
57
|
+
return this.get(`/invites/${id}`);
|
|
58
|
+
}
|
|
59
|
+
|
|
52
60
|
/**
|
|
53
61
|
* Accept Invite for account
|
|
54
62
|
* @returns UserInviteTokenData
|
|
@@ -81,4 +89,8 @@ export default class AccountApi extends ApiTopic {
|
|
|
81
89
|
return this.get('/google-token');
|
|
82
90
|
}
|
|
83
91
|
|
|
92
|
+
getStripeBillingStatus(): Promise<StripeBillingStatusResponse> {
|
|
93
|
+
return this.get('/stripe-billing-status')
|
|
94
|
+
}
|
|
95
|
+
|
|
84
96
|
}
|
package/src/AccountsApi.ts
CHANGED
package/src/InteractionsApi.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { ComputeInteractionFacetPayload, ExecutionRun, GenerateInteractionPayload, GenerateTestDataPayload, ImprovePromptPayload, Interaction, InteractionCreatePayload, InteractionExecutionPayload, InteractionForkPayload, InteractionPublishPayload, InteractionRef, InteractionRefWithSchema, InteractionUpdatePayload, InteractionsExportPayload, InteractionSearchPayload, InteractionSearchQuery } from "@vertesia/common";
|
|
2
1
|
import { ApiTopic, ClientBase, ServerError } from "@vertesia/api-fetch-client";
|
|
2
|
+
import { AsyncExecutionPayload, ComputeInteractionFacetPayload, ExecutionRun, GenerateInteractionPayload, GenerateTestDataPayload, ImprovePromptPayload, Interaction, InteractionCreatePayload, InteractionEndpointQuery, InteractionExecutionPayload, InteractionExecutionResult, InteractionForkPayload, InteractionPublishPayload, InteractionRef, InteractionRefWithSchema, InteractionSearchPayload, InteractionSearchQuery, InteractionUpdatePayload, InteractionsExportPayload } from "@vertesia/common";
|
|
3
3
|
import { VertesiaClient } from "./client.js";
|
|
4
|
-
import { executeInteraction, executeInteractionByName } from "./execute.js";
|
|
4
|
+
import { executeInteraction, executeInteractionAsync, executeInteractionByName } from "./execute.js";
|
|
5
5
|
|
|
6
6
|
export interface ComputeInteractionFacetsResponse {
|
|
7
7
|
tags?: { _id: string, count: number }[];
|
|
@@ -9,6 +9,10 @@ export interface ComputeInteractionFacetsResponse {
|
|
|
9
9
|
total?: { count: number }[];
|
|
10
10
|
}
|
|
11
11
|
|
|
12
|
+
export interface AsyncExecutionResult {
|
|
13
|
+
runId: string, workflowId: string
|
|
14
|
+
}
|
|
15
|
+
|
|
12
16
|
export default class InteractionsApi extends ApiTopic {
|
|
13
17
|
constructor(parent: ClientBase) {
|
|
14
18
|
super(parent, "/api/v1/interactions");
|
|
@@ -27,6 +31,15 @@ export default class InteractionsApi extends ApiTopic {
|
|
|
27
31
|
}
|
|
28
32
|
});
|
|
29
33
|
}
|
|
34
|
+
/**
|
|
35
|
+
* Find interractions given a mongo match query.
|
|
36
|
+
* You can also specify if prompts schemas are included in the result
|
|
37
|
+
*/
|
|
38
|
+
listEndpoints(payload: InteractionEndpointQuery): Promise<InteractionRef[]> {
|
|
39
|
+
return this.post("/endpoints", {
|
|
40
|
+
payload
|
|
41
|
+
});
|
|
42
|
+
}
|
|
30
43
|
|
|
31
44
|
/**
|
|
32
45
|
* List all interaction versions in the project having the given endpoint name.
|
|
@@ -146,7 +159,7 @@ export default class InteractionsApi extends ApiTopic {
|
|
|
146
159
|
* @returns
|
|
147
160
|
*/
|
|
148
161
|
executeByName<P = any, R = any>(nameWithTag: string, payload: InteractionExecutionPayload = {},
|
|
149
|
-
onChunk?: (chunk: string) => void): Promise<
|
|
162
|
+
onChunk?: (chunk: string) => void): Promise<InteractionExecutionResult<P, R>> {
|
|
150
163
|
return executeInteractionByName(this.client as VertesiaClient, nameWithTag, payload, onChunk).catch(err => {
|
|
151
164
|
if (err instanceof ServerError && err.payload?.id) {
|
|
152
165
|
throw err.updateDetails({ run_id: err.payload.id });
|
|
@@ -156,6 +169,15 @@ export default class InteractionsApi extends ApiTopic {
|
|
|
156
169
|
});
|
|
157
170
|
}
|
|
158
171
|
|
|
172
|
+
/**
|
|
173
|
+
* Execute an interaction in an workflow
|
|
174
|
+
* @param payload
|
|
175
|
+
* @returns
|
|
176
|
+
*/
|
|
177
|
+
executeAsync(payload: AsyncExecutionPayload): Promise<AsyncExecutionResult> {
|
|
178
|
+
return executeInteractionAsync(this.client as VertesiaClient, payload);
|
|
179
|
+
}
|
|
180
|
+
|
|
159
181
|
publish(id: string, payload: InteractionPublishPayload): Promise<Interaction> {
|
|
160
182
|
return this.post(`/${id}/publish`, {
|
|
161
183
|
payload
|