@vertesia/client 0.53.0 → 0.54.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.
Files changed (212) hide show
  1. package/LICENSE +3 -3
  2. package/package.json +5 -5
  3. package/src/ApiKeysApi.ts +1 -1
  4. package/src/EnvironmentsApi.ts +2 -2
  5. package/src/InteractionBase.ts +1 -1
  6. package/src/InteractionsApi.ts +5 -5
  7. package/src/PluginsApi.ts +28 -0
  8. package/src/ProjectsApi.ts +10 -2
  9. package/src/PromptsApi.ts +1 -1
  10. package/src/client.ts +2 -0
  11. package/src/execute.ts +5 -5
  12. package/src/store/ObjectsApi.ts +179 -86
  13. package/lib/cjs/AccountApi.js +0 -84
  14. package/lib/cjs/AccountApi.js.map +0 -1
  15. package/lib/cjs/AccountsApi.js +0 -16
  16. package/lib/cjs/AccountsApi.js.map +0 -1
  17. package/lib/cjs/AnalyticsApi.js +0 -13
  18. package/lib/cjs/AnalyticsApi.js.map +0 -1
  19. package/lib/cjs/ApiKeysApi.js +0 -63
  20. package/lib/cjs/ApiKeysApi.js.map +0 -1
  21. package/lib/cjs/CommandsApi.js +0 -19
  22. package/lib/cjs/CommandsApi.js.map +0 -1
  23. package/lib/cjs/EnvironmentsApi.js +0 -58
  24. package/lib/cjs/EnvironmentsApi.js.map +0 -1
  25. package/lib/cjs/IamApi.js +0 -51
  26. package/lib/cjs/IamApi.js.map +0 -1
  27. package/lib/cjs/InteractionBase.js +0 -44
  28. package/lib/cjs/InteractionBase.js.map +0 -1
  29. package/lib/cjs/InteractionsApi.js +0 -209
  30. package/lib/cjs/InteractionsApi.js.map +0 -1
  31. package/lib/cjs/ProjectsApi.js +0 -48
  32. package/lib/cjs/ProjectsApi.js.map +0 -1
  33. package/lib/cjs/PromptsApi.js +0 -133
  34. package/lib/cjs/PromptsApi.js.map +0 -1
  35. package/lib/cjs/RefsApi.js +0 -14
  36. package/lib/cjs/RefsApi.js.map +0 -1
  37. package/lib/cjs/RunsApi.js +0 -105
  38. package/lib/cjs/RunsApi.js.map +0 -1
  39. package/lib/cjs/StreamSource.js +0 -17
  40. package/lib/cjs/StreamSource.js.map +0 -1
  41. package/lib/cjs/TrainingApi.js +0 -54
  42. package/lib/cjs/TrainingApi.js.map +0 -1
  43. package/lib/cjs/UsersApi.js +0 -13
  44. package/lib/cjs/UsersApi.js.map +0 -1
  45. package/lib/cjs/client.js +0 -216
  46. package/lib/cjs/client.js.map +0 -1
  47. package/lib/cjs/execute.js +0 -152
  48. package/lib/cjs/execute.js.map +0 -1
  49. package/lib/cjs/index.js +0 -21
  50. package/lib/cjs/index.js.map +0 -1
  51. package/lib/cjs/nodejs/NodeStreamSource.js +0 -45
  52. package/lib/cjs/nodejs/NodeStreamSource.js.map +0 -1
  53. package/lib/cjs/nodejs/index.js +0 -18
  54. package/lib/cjs/nodejs/index.js.map +0 -1
  55. package/lib/cjs/package.json +0 -3
  56. package/lib/cjs/store/AgentsApi.js +0 -16
  57. package/lib/cjs/store/AgentsApi.js.map +0 -1
  58. package/lib/cjs/store/AnalyzeDocApi.js +0 -56
  59. package/lib/cjs/store/AnalyzeDocApi.js.map +0 -1
  60. package/lib/cjs/store/CollectionsApi.js +0 -77
  61. package/lib/cjs/store/CollectionsApi.js.map +0 -1
  62. package/lib/cjs/store/CommandsApi.js +0 -17
  63. package/lib/cjs/store/CommandsApi.js.map +0 -1
  64. package/lib/cjs/store/EmbeddingsApi.js +0 -29
  65. package/lib/cjs/store/EmbeddingsApi.js.map +0 -1
  66. package/lib/cjs/store/FilesApi.js +0 -128
  67. package/lib/cjs/store/FilesApi.js.map +0 -1
  68. package/lib/cjs/store/ObjectsApi.js +0 -189
  69. package/lib/cjs/store/ObjectsApi.js.map +0 -1
  70. package/lib/cjs/store/TypesApi.js +0 -57
  71. package/lib/cjs/store/TypesApi.js.map +0 -1
  72. package/lib/cjs/store/WorkflowsApi.js +0 -174
  73. package/lib/cjs/store/WorkflowsApi.js.map +0 -1
  74. package/lib/cjs/store/client.js +0 -55
  75. package/lib/cjs/store/client.js.map +0 -1
  76. package/lib/cjs/store/errors.js +0 -11
  77. package/lib/cjs/store/errors.js.map +0 -1
  78. package/lib/cjs/store/index.js +0 -22
  79. package/lib/cjs/store/index.js.map +0 -1
  80. package/lib/esm/AccountApi.js +0 -81
  81. package/lib/esm/AccountApi.js.map +0 -1
  82. package/lib/esm/AccountsApi.js +0 -13
  83. package/lib/esm/AccountsApi.js.map +0 -1
  84. package/lib/esm/AnalyticsApi.js +0 -10
  85. package/lib/esm/AnalyticsApi.js.map +0 -1
  86. package/lib/esm/ApiKeysApi.js +0 -59
  87. package/lib/esm/ApiKeysApi.js.map +0 -1
  88. package/lib/esm/CommandsApi.js +0 -16
  89. package/lib/esm/CommandsApi.js.map +0 -1
  90. package/lib/esm/EnvironmentsApi.js +0 -55
  91. package/lib/esm/EnvironmentsApi.js.map +0 -1
  92. package/lib/esm/IamApi.js +0 -45
  93. package/lib/esm/IamApi.js.map +0 -1
  94. package/lib/esm/InteractionBase.js +0 -40
  95. package/lib/esm/InteractionBase.js.map +0 -1
  96. package/lib/esm/InteractionsApi.js +0 -206
  97. package/lib/esm/InteractionsApi.js.map +0 -1
  98. package/lib/esm/ProjectsApi.js +0 -45
  99. package/lib/esm/ProjectsApi.js.map +0 -1
  100. package/lib/esm/PromptsApi.js +0 -130
  101. package/lib/esm/PromptsApi.js.map +0 -1
  102. package/lib/esm/RefsApi.js +0 -10
  103. package/lib/esm/RefsApi.js.map +0 -1
  104. package/lib/esm/RunsApi.js +0 -101
  105. package/lib/esm/RunsApi.js.map +0 -1
  106. package/lib/esm/StreamSource.js +0 -13
  107. package/lib/esm/StreamSource.js.map +0 -1
  108. package/lib/esm/TrainingApi.js +0 -51
  109. package/lib/esm/TrainingApi.js.map +0 -1
  110. package/lib/esm/UsersApi.js +0 -10
  111. package/lib/esm/UsersApi.js.map +0 -1
  112. package/lib/esm/client.js +0 -209
  113. package/lib/esm/client.js.map +0 -1
  114. package/lib/esm/execute.js +0 -113
  115. package/lib/esm/execute.js.map +0 -1
  116. package/lib/esm/index.js +0 -5
  117. package/lib/esm/index.js.map +0 -1
  118. package/lib/esm/nodejs/NodeStreamSource.js +0 -41
  119. package/lib/esm/nodejs/NodeStreamSource.js.map +0 -1
  120. package/lib/esm/nodejs/index.js +0 -2
  121. package/lib/esm/nodejs/index.js.map +0 -1
  122. package/lib/esm/store/AgentsApi.js +0 -12
  123. package/lib/esm/store/AgentsApi.js.map +0 -1
  124. package/lib/esm/store/AnalyzeDocApi.js +0 -52
  125. package/lib/esm/store/AnalyzeDocApi.js.map +0 -1
  126. package/lib/esm/store/CollectionsApi.js +0 -73
  127. package/lib/esm/store/CollectionsApi.js.map +0 -1
  128. package/lib/esm/store/CommandsApi.js +0 -13
  129. package/lib/esm/store/CommandsApi.js.map +0 -1
  130. package/lib/esm/store/EmbeddingsApi.js +0 -25
  131. package/lib/esm/store/EmbeddingsApi.js.map +0 -1
  132. package/lib/esm/store/FilesApi.js +0 -123
  133. package/lib/esm/store/FilesApi.js.map +0 -1
  134. package/lib/esm/store/ObjectsApi.js +0 -185
  135. package/lib/esm/store/ObjectsApi.js.map +0 -1
  136. package/lib/esm/store/TypesApi.js +0 -53
  137. package/lib/esm/store/TypesApi.js.map +0 -1
  138. package/lib/esm/store/WorkflowsApi.js +0 -168
  139. package/lib/esm/store/WorkflowsApi.js.map +0 -1
  140. package/lib/esm/store/client.js +0 -51
  141. package/lib/esm/store/client.js.map +0 -1
  142. package/lib/esm/store/errors.js +0 -7
  143. package/lib/esm/store/errors.js.map +0 -1
  144. package/lib/esm/store/index.js +0 -6
  145. package/lib/esm/store/index.js.map +0 -1
  146. package/lib/tsconfig.tsbuildinfo +0 -1
  147. package/lib/types/AccountApi.d.ts +0 -58
  148. package/lib/types/AccountApi.d.ts.map +0 -1
  149. package/lib/types/AccountsApi.d.ts +0 -7
  150. package/lib/types/AccountsApi.d.ts.map +0 -1
  151. package/lib/types/AnalyticsApi.d.ts +0 -6
  152. package/lib/types/AnalyticsApi.d.ts.map +0 -1
  153. package/lib/types/ApiKeysApi.d.ts +0 -42
  154. package/lib/types/ApiKeysApi.d.ts.map +0 -1
  155. package/lib/types/CommandsApi.d.ts +0 -10
  156. package/lib/types/CommandsApi.d.ts.map +0 -1
  157. package/lib/types/EnvironmentsApi.d.ts +0 -30
  158. package/lib/types/EnvironmentsApi.d.ts.map +0 -1
  159. package/lib/types/IamApi.d.ts +0 -39
  160. package/lib/types/IamApi.d.ts.map +0 -1
  161. package/lib/types/InteractionBase.d.ts +0 -22
  162. package/lib/types/InteractionBase.d.ts.map +0 -1
  163. package/lib/types/InteractionsApi.d.ts +0 -150
  164. package/lib/types/InteractionsApi.d.ts.map +0 -1
  165. package/lib/types/ProjectsApi.d.ts +0 -17
  166. package/lib/types/ProjectsApi.d.ts.map +0 -1
  167. package/lib/types/PromptsApi.d.ts +0 -106
  168. package/lib/types/PromptsApi.d.ts.map +0 -1
  169. package/lib/types/RefsApi.d.ts +0 -6
  170. package/lib/types/RefsApi.d.ts.map +0 -1
  171. package/lib/types/RunsApi.d.ts +0 -77
  172. package/lib/types/RunsApi.d.ts.map +0 -1
  173. package/lib/types/StreamSource.d.ts +0 -7
  174. package/lib/types/StreamSource.d.ts.map +0 -1
  175. package/lib/types/TrainingApi.d.ts +0 -27
  176. package/lib/types/TrainingApi.d.ts.map +0 -1
  177. package/lib/types/UsersApi.d.ts +0 -6
  178. package/lib/types/UsersApi.d.ts.map +0 -1
  179. package/lib/types/client.d.ts +0 -101
  180. package/lib/types/client.d.ts.map +0 -1
  181. package/lib/types/execute.d.ts +0 -36
  182. package/lib/types/execute.d.ts.map +0 -1
  183. package/lib/types/index.d.ts +0 -7
  184. package/lib/types/index.d.ts.map +0 -1
  185. package/lib/types/nodejs/NodeStreamSource.d.ts +0 -9
  186. package/lib/types/nodejs/NodeStreamSource.d.ts.map +0 -1
  187. package/lib/types/nodejs/index.d.ts +0 -1
  188. package/lib/types/nodejs/index.d.ts.map +0 -1
  189. package/lib/types/store/AgentsApi.d.ts +0 -6
  190. package/lib/types/store/AgentsApi.d.ts.map +0 -1
  191. package/lib/types/store/AnalyzeDocApi.d.ts +0 -17
  192. package/lib/types/store/AnalyzeDocApi.d.ts.map +0 -1
  193. package/lib/types/store/CollectionsApi.d.ts +0 -37
  194. package/lib/types/store/CollectionsApi.d.ts.map +0 -1
  195. package/lib/types/store/CommandsApi.d.ts +0 -10
  196. package/lib/types/store/CommandsApi.d.ts.map +0 -1
  197. package/lib/types/store/EmbeddingsApi.d.ts +0 -12
  198. package/lib/types/store/EmbeddingsApi.d.ts.map +0 -1
  199. package/lib/types/store/FilesApi.d.ts +0 -41
  200. package/lib/types/store/FilesApi.d.ts.map +0 -1
  201. package/lib/types/store/ObjectsApi.d.ts +0 -78
  202. package/lib/types/store/ObjectsApi.d.ts.map +0 -1
  203. package/lib/types/store/TypesApi.d.ts +0 -23
  204. package/lib/types/store/TypesApi.d.ts.map +0 -1
  205. package/lib/types/store/WorkflowsApi.d.ts +0 -47
  206. package/lib/types/store/WorkflowsApi.d.ts.map +0 -1
  207. package/lib/types/store/client.d.ts +0 -29
  208. package/lib/types/store/client.d.ts.map +0 -1
  209. package/lib/types/store/errors.d.ts +0 -4
  210. package/lib/types/store/errors.d.ts.map +0 -1
  211. package/lib/types/store/index.d.ts +0 -5
  212. package/lib/types/store/index.d.ts.map +0 -1
@@ -1 +0,0 @@
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,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M,OAAO,CAAC,MAAM,CAAC,CAAC,GAAG,IAAI;IAKlD,UAAU,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI;IAgBhC,SAAS;IAUT,aAAa;IAKnB;;OAEG;IACH,IAAI,SAAS,sCAEZ;IAED;;OAEG;IACH,IAAI,OAAO,oCAEV;IAED,IAAI,KAAK,2CAER;IAED;;OAEG;IACH,IAAI,KAAK,kCAER;IAED,IAAI,QAAQ,WAEX;IAED,IAAI,OAAO,CAAC,SAAS,EAAE,MAAM,GAAG,IAAI,EAMnC;IAED,IAAI,OAAO,IARY,MAAM,GAAG,IAAI,CAUnC;IAED;;;;;;OAMG;IACG,YAAY,CAAC,KAAK,CAAC,EAAE,MAAM,EAAE,SAAS,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,iBAAiB,CAAC;IASlF,QAAQ,cAAyB;IACjC,YAAY,kBAA6B;IACzC,YAAY,kBAA6B;IACzC,OAAO,aAAwB;IAC/B,IAAI,UAAqB;IACzB,OAAO,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"}
@@ -1,36 +0,0 @@
1
- import { AsyncExecutionPayload, InteractionExecutionPayload, InteractionExecutionResult } from '@vertesia/common';
2
- import { VertesiaClient } from './client.js';
3
- export declare function EventSourceProvider(): Promise<typeof EventSource>;
4
- /**
5
- *
6
- * Execute an interaction and return a promise which will be resolved with the executed run when
7
- * the run completes or fails.
8
- * If the onChunk callback is passed then the streaming of the result is enabled.
9
- * The onChunk callback with be called with the next chunk of the result as soon as it is available.
10
- * When all chunks are received the fucntion will return the resolved promise
11
- * @param id of the interaction to execute
12
- * @param payload InteractionExecutionPayload
13
- * @param onChunk callback to be called when the next chunk of the response is available
14
- */
15
- export declare function executeInteraction<P = any, R = any>(client: VertesiaClient, interactionId: string, payload?: InteractionExecutionPayload, onChunk?: (chunk: string) => void): Promise<InteractionExecutionResult<P, R>>;
16
- /**
17
- * Same as executeInteraction but uses the interaction name selector instead of the id.
18
- * A name selector is the interaction endpoint name suffuxed with an optional tag or version wich is starting with a `@` character.
19
- * The special `draft` tag is used to select the draft version of the interaction. If no tag or version is specified then the latest version is selected.
20
- * Examples of selectors:
21
- * - `ReviewContract` - select the latest version of the ReviewContract interaction
22
- * - `ReviewContract@1` - select the version 1 of the ReviewContract interaction
23
- * - `ReviewContract@draft` - select the draft version of the ReviewContract interaction
24
- * - `ReviewContract@fixed` - select the ReviewContract interaction which is tagged with 'fixed' tag.
25
- *
26
- * @param client
27
- * @param interaction
28
- * @param payload
29
- * @param onChunk
30
- * @returns
31
- */
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 +0,0 @@
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"}
@@ -1,7 +0,0 @@
1
- export * from './client.js';
2
- export * from './InteractionBase.js';
3
- export type { AsyncExecutionResult, ComputeInteractionFacetsResponse } from './InteractionsApi.js';
4
- export type { ComputePromptFacetsResponse, ListInteractionsResponse } from './PromptsApi.js';
5
- export type { ComputeRunFacetsResponse, FilterOption } from './RunsApi.js';
6
- export * from "./store/index.js";
7
- export * from "./StreamSource.js";
@@ -1 +0,0 @@
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"}
@@ -1,9 +0,0 @@
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
- }
@@ -1 +0,0 @@
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"}
@@ -1 +0,0 @@
1
- export * from "./NodeStreamSource.js";
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/nodejs/index.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAC"}
@@ -1,6 +0,0 @@
1
- import { ApiTopic, ClientBase } from "@vertesia/api-fetch-client";
2
- import { CreateAgentDeploymentRequest } from "@vertesia/common";
3
- export declare class AgentsApi extends ApiTopic {
4
- constructor(parent: ClientBase);
5
- deploy(payload: CreateAgentDeploymentRequest): Promise<void>;
6
- }
@@ -1 +0,0 @@
1
- {"version":3,"file":"AgentsApi.d.ts","sourceRoot":"","sources":["../../../src/store/AgentsApi.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;AAClE,OAAO,EAAE,4BAA4B,EAAE,MAAM,kBAAkB,CAAC;AAGhE,qBAAa,SAAU,SAAQ,QAAQ;gBAEvB,MAAM,EAAE,UAAU;IAIxB,MAAM,CAAC,OAAO,EAAE,4BAA4B,GAAG,OAAO,CAAC,IAAI,CAAC;CAMrE"}
@@ -1,17 +0,0 @@
1
- import { ApiTopic, ClientBase } from "@vertesia/api-fetch-client";
2
- import { AdaptedTable, AdaptTablesRequest, DocAnalyzerResultResponse, DocAnalyzeRunStatusResponse, DocImage, DocTableCsv, DocTableJson, ExportTableFormats, GetAdaptedTablesRequestQuery, PdfToRichtextOptions, WorkflowRunStatus } from "@vertesia/common";
3
- export declare class AnalyzeDocApi extends ApiTopic {
4
- objectId: string;
5
- constructor(parent: ClientBase, objectId: string);
6
- start(payload: PdfToRichtextOptions): Promise<DocAnalyzeRunStatusResponse>;
7
- getStatus(): Promise<DocAnalyzeRunStatusResponse>;
8
- getResults(): Promise<DocAnalyzerResultResponse>;
9
- adaptTables(payload: AdaptTablesRequest): Promise<WorkflowRunStatus>;
10
- getAdaptedTables(runId?: string, query?: GetAdaptedTablesRequestQuery): Promise<Record<number, AdaptedTable>>;
11
- getXml(): Promise<string>;
12
- getTables(format?: ExportTableFormats): Promise<DocTableCsv[] | DocTableJson[]>;
13
- getImages(): Promise<DocImage[]>;
14
- getAnnotated(): Promise<{
15
- url: string;
16
- }>;
17
- }
@@ -1 +0,0 @@
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,37 +0,0 @@
1
- import { ApiTopic, ClientBase } from "@vertesia/api-fetch-client";
2
- import { Collection, CollectionItem, CollectionSearchPayload, ComplexSearchPayload, ComputeObjectFacetPayload, ContentObjectItem, ContentObjectStatus, CreateCollectionPayload, DynamicCollection } from "@vertesia/common";
3
- import { ComputeFacetsResponse } from "./ObjectsApi.js";
4
- export declare class CollectionsApi extends ApiTopic {
5
- constructor(parent: ClientBase);
6
- /**
7
- * List collections
8
- * @param payload
9
- * @returns
10
- */
11
- list(payload?: CollectionSearchPayload): Promise<CollectionItem[]>;
12
- /**
13
- * Get the collection data without members
14
- * @param collectionId
15
- * @returns
16
- */
17
- retrieve(collectionId: string): Promise<Collection | DynamicCollection>;
18
- create(payload: CreateCollectionPayload): Promise<Collection>;
19
- update(collectionId: string, payload: Partial<CreateCollectionPayload>): Promise<{
20
- id: string;
21
- }>;
22
- addMembers(collectionId: string, members: string[]): Promise<{
23
- id: string;
24
- }>;
25
- listMembers(collectionId: string, payload: {
26
- limit?: number;
27
- offset?: number;
28
- status?: ContentObjectStatus;
29
- type?: string;
30
- }): Promise<ContentObjectItem[]>;
31
- computeFacets(collectionId: string, query: ComputeObjectFacetPayload): Promise<ComputeFacetsResponse>;
32
- searchMembers(collectionId: string, payload: ComplexSearchPayload): Promise<ContentObjectItem[]>;
33
- deleteMembers(collectionId: string, members: string[]): Promise<{
34
- id: string;
35
- }>;
36
- delete(id: string): Promise<any>;
37
- }
@@ -1 +0,0 @@
1
- {"version":3,"file":"CollectionsApi.d.ts","sourceRoot":"","sources":["../../../src/store/CollectionsApi.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;AAClE,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,uBAAuB,EAAE,oBAAoB,EAAE,yBAAyB,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,uBAAuB,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAC5N,OAAO,EAAE,qBAAqB,EAAE,MAAM,iBAAiB,CAAC;AAGxD,qBAAa,cAAe,SAAQ,QAAQ;gBAE5B,MAAM,EAAE,UAAU;IAI9B;;;;OAIG;IACH,IAAI,CAAC,OAAO,GAAE,uBAA4B,GAAG,OAAO,CAAC,cAAc,EAAE,CAAC;IAUtE;;;;OAIG;IACH,QAAQ,CAAC,YAAY,EAAE,MAAM,GAAG,OAAO,CAAC,UAAU,GAAG,iBAAiB,CAAC;IAIvE,MAAM,CAAC,OAAO,EAAE,uBAAuB,GAAG,OAAO,CAAC,UAAU,CAAC;IAM7D,MAAM,CAAC,YAAY,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,CAAC,uBAAuB,CAAC,GAAG,OAAO,CAAC;QAAE,EAAE,EAAE,MAAM,CAAA;KAAE,CAAC;IAMhG,UAAU,CAAC,YAAY,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC;QAAE,EAAE,EAAE,MAAM,CAAA;KAAE,CAAC;IAS5E,WAAW,CAAC,YAAY,EAAE,MAAM,EAAE,OAAO,EAAE;QACvC,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,MAAM,CAAC,EAAE,MAAM,CAAC;QAChB,MAAM,CAAC,EAAE,mBAAmB,CAAC;QAC7B,IAAI,CAAC,EAAE,MAAM,CAAC;KACjB,GAAG,OAAO,CAAC,iBAAiB,EAAE,CAAC;IAQhC,aAAa,CAAC,YAAY,EAAE,MAAM,EAAE,KAAK,EAAE,yBAAyB,GAAG,OAAO,CAAC,qBAAqB,CAAC;IAMrG,aAAa,CAAC,YAAY,EAAE,MAAM,EAAE,OAAO,EAAE,oBAAoB,GAAG,OAAO,CAAC,iBAAiB,EAAE,CAAC;IAIhG,aAAa,CAAC,YAAY,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC;QAAE,EAAE,EAAE,MAAM,CAAA;KAAE,CAAC;IAS/E,MAAM,CAAC,EAAE,EAAE,MAAM;CAIpB"}
@@ -1,10 +0,0 @@
1
- import { ApiTopic, ClientBase } from "@vertesia/api-fetch-client";
2
- import { EmbeddingsApi } from "./EmbeddingsApi.js";
3
- /**
4
- * @deprecated use EmbeddingsApi instead
5
- * @see EmbeddingsApi
6
- */
7
- export declare class CommandsApi extends ApiTopic {
8
- constructor(parent: ClientBase);
9
- embeddings: EmbeddingsApi;
10
- }
@@ -1 +0,0 @@
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"}
@@ -1,12 +0,0 @@
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
- }
@@ -1 +0,0 @@
1
- {"version":3,"file":"EmbeddingsApi.d.ts","sourceRoot":"","sources":["../../../src/store/EmbeddingsApi.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;AAClE,OAAO,EACH,wBAAwB,EACxB,sBAAsB,EACtB,8BAA8B,EAC9B,uBAAuB,EAC1B,MAAM,kBAAkB,CAAC;AAE1B;;GAEG;AACH,qBAAa,aAAc,SAAQ,QAAQ;gBAE3B,MAAM,EAAE,UAAU,EAAE,QAAQ,GAAE,MAA6B;IAIjE,MAAM,CAAC,IAAI,EAAE,uBAAuB,GAAG,OAAO,CAAC,wBAAwB,CAAC;IAIxE,QAAQ,CAAC,IAAI,EAAE,uBAAuB,EAAE,MAAM,EAAE,OAAO,CAAC,8BAA8B,CAAC,GAAG,OAAO,CAAC,sBAAsB,CAAC;IASzH,OAAO,CAAC,IAAI,EAAE,uBAAuB,GAAG,OAAO,CAAC,sBAAsB,CAAC;IAIvE,WAAW,CAAC,IAAI,EAAE,uBAAuB,GAAG,OAAO,CAAC,sBAAsB,CAAC;CAIpF"}
@@ -1,41 +0,0 @@
1
- import { ApiTopic, ClientBase } from "@vertesia/api-fetch-client";
2
- import { GetFileUrlResponse, GetUploadUrlPayload } from "@vertesia/common";
3
- import { StreamSource } from "../StreamSource.js";
4
- export declare const MEMORIES_PREFIX = "memories";
5
- export declare function getMemoryFilePath(name: string): string;
6
- export declare class FilesApi extends ApiTopic {
7
- constructor(parent: ClientBase);
8
- /**
9
- * get the metadata of a blob given its URI. Supported URI are:
10
- * starting with s3:// and gs://.
11
- * For s3 blobs use #region to specify the region. Ex: s3://bucket/key#us-west-2
12
- * @param uri
13
- * @returns
14
- */
15
- getMetadata(uri: string): Promise<{
16
- name: string;
17
- size: number;
18
- contentType: string;
19
- contentDisposition?: string;
20
- etag?: string;
21
- }>;
22
- /**
23
- * Get or create a bucket for the project. If the bucket already exists, it does nothing.
24
- * The bucket URI is returned.
25
- * @returns
26
- */
27
- getOrCreateBucket(): Promise<{
28
- bucket: string;
29
- }>;
30
- getUploadUrl(payload: GetUploadUrlPayload): Promise<GetFileUrlResponse>;
31
- getDownloadUrl(file: string): Promise<GetFileUrlResponse>;
32
- /**
33
- * Upload content to a file and return the full path (including bucket name) of the uploaded file
34
- * @param source
35
- * @returns
36
- */
37
- uploadFile(source: StreamSource | File): Promise<string>;
38
- downloadFile(name: string): Promise<ReadableStream<Uint8Array>>;
39
- uploadMemoryPack(source: StreamSource | File): Promise<string>;
40
- downloadMemoryPack(name: string, gunzip?: boolean): Promise<ReadableStream<Uint8Array>>;
41
- }
@@ -1 +0,0 @@
1
- {"version":3,"file":"FilesApi.d.ts","sourceRoot":"","sources":["../../../src/store/FilesApi.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;AAClE,OAAO,EAAqB,kBAAkB,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAC9F,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAElD,eAAO,MAAM,eAAe,aAAa,CAAC;AAE1C,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,MAAM,UAG7C;AAGD,qBAAa,QAAS,SAAQ,QAAQ;gBAEtB,MAAM,EAAE,UAAU;IAI9B;;;;;;OAMG;IACH,WAAW,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;QAC9B,IAAI,EAAE,MAAM,CAAC;QACb,IAAI,EAAE,MAAM,CAAC;QACb,WAAW,EAAE,MAAM,CAAC;QACpB,kBAAkB,CAAC,EACnB,MAAM,CAAC;QACP,IAAI,CAAC,EAAE,MAAM,CAAA;KAChB,CAAC;IAQF;;;;OAIG;IACH,iBAAiB,IAAI,OAAO,CAAC;QAAE,MAAM,EAAE,MAAM,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"}
@@ -1,78 +0,0 @@
1
- import { ApiTopic, ClientBase } from '@vertesia/api-fetch-client';
2
- import { ComplexSearchPayload, ComputeObjectFacetPayload, ContentObject, ContentObjectItem, ContentSource, CreateContentObjectPayload, Embedding, ExportPropertiesPayload, ExportPropertiesResponse, FindPayload, GetFileUrlResponse, GetRenditionResponse, GetUploadUrlPayload, ListWorkflowRunsResponse, ObjectSearchPayload, SupportedEmbeddingTypes } from '@vertesia/common';
3
- import { StreamSource } from '../StreamSource.js';
4
- import { AnalyzeDocApi } from './AnalyzeDocApi.js';
5
- export interface UploadContentObjectPayload extends Omit<CreateContentObjectPayload, 'content'> {
6
- content?: StreamSource | File | {
7
- source: string;
8
- name?: string;
9
- type?: string;
10
- id?: string;
11
- };
12
- }
13
- export interface ComputeFacetsResponse {
14
- type?: {
15
- _id: string;
16
- count: number;
17
- }[];
18
- location?: {
19
- _id: string;
20
- count: number;
21
- }[];
22
- status?: {
23
- _id: string;
24
- count: number;
25
- }[];
26
- total?: {
27
- count: number;
28
- }[];
29
- }
30
- export declare class ObjectsApi extends ApiTopic {
31
- constructor(parent: ClientBase);
32
- analyze(objectId: string): AnalyzeDocApi;
33
- getUploadUrl(payload: GetUploadUrlPayload): Promise<GetFileUrlResponse>;
34
- getDownloadUrl(fileUri: string): Promise<{
35
- url: string;
36
- }>;
37
- getContentSource(objectId: string): Promise<ContentSource>;
38
- list(payload?: ObjectSearchPayload): Promise<ContentObjectItem[]>;
39
- computeFacets(query: ComputeObjectFacetPayload): Promise<ComputeFacetsResponse>;
40
- listFolders(path?: string): void;
41
- find(payload: FindPayload): Promise<ContentObject[]>;
42
- search(payload: ComplexSearchPayload): Promise<ContentObjectItem[]>;
43
- retrieve(id: string, select?: string): Promise<ContentObject>;
44
- getObjectText(id: string): Promise<{
45
- text: string;
46
- }>;
47
- upload(source: StreamSource | File): Promise<{
48
- source: string;
49
- name: string;
50
- type: string;
51
- etag: string | undefined;
52
- }>;
53
- create(payload: UploadContentObjectPayload): Promise<ContentObject>;
54
- /**
55
- * Create an object which holds a reference to an external blob (i.e. not in the project bucket)
56
- * The uri should starts either with gs:// or s3://. Not other protocols are supported yet.
57
- * For the s3 blobs you must use a hash with the blob #region. Ex: s3://bucket/path/to/file#us-east-1
58
- * @param uri
59
- * @param payload
60
- * @returns
61
- */
62
- createFromExternalSource(uri: string, payload?: CreateContentObjectPayload): Promise<ContentObject>;
63
- update(id: string, payload: Partial<CreateContentObjectPayload>): Promise<ContentObject>;
64
- delete(id: string): Promise<{
65
- id: string;
66
- }>;
67
- listWorkflowRuns(documentId: string): Promise<ListWorkflowRunsResponse>;
68
- listRenditions(documentId: string): Promise<ContentObjectItem[]>;
69
- getRendition(documentId: string, options: GetRenditionParams): Promise<GetRenditionResponse>;
70
- exportProperties(payload: ExportPropertiesPayload): Promise<ExportPropertiesResponse>;
71
- setEmbedding(id: string, type: SupportedEmbeddingTypes, payload: Embedding): Promise<Record<SupportedEmbeddingTypes, Embedding>>;
72
- }
73
- interface GetRenditionParams {
74
- format: string;
75
- max_hw?: number;
76
- generate_if_missing?: boolean;
77
- }
78
- export {};
@@ -1 +0,0 @@
1
- {"version":3,"file":"ObjectsApi.d.ts","sourceRoot":"","sources":["../../../src/store/ObjectsApi.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;AAClE,OAAO,EAAE,oBAAoB,EAAE,yBAAyB,EAAE,aAAa,EAAE,iBAAiB,EAAE,aAAa,EAAE,0BAA0B,EAAE,SAAS,EAAE,uBAAuB,EAAE,wBAAwB,EAAE,WAAW,EAAqB,kBAAkB,EAAE,oBAAoB,EAAE,mBAAmB,EAAE,wBAAwB,EAAE,mBAAmB,EAAqB,uBAAuB,EAAE,MAAM,kBAAkB,CAAC;AAExZ,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAElD,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAEnD,MAAM,WAAW,0BAA2B,SAAQ,IAAI,CAAC,0BAA0B,EAAE,SAAS,CAAC;IAC3F,OAAO,CAAC,EAAE,YAAY,GAAG,IAAI,GAAG;QAG5B,MAAM,EAAE,MAAM,CAAC;QAEf,IAAI,CAAC,EAAE,MAAM,CAAC;QAEd,IAAI,CAAC,EAAE,MAAM,CAAA;QAGb,EAAE,CAAC,EAAE,MAAM,CAAA;KAEd,CAAA;CACJ;AAED,MAAM,WAAW,qBAAqB;IAClC,IAAI,CAAC,EAAE;QAAE,GAAG,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;IACxC,QAAQ,CAAC,EAAE;QAAE,GAAG,EAAE,MAA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a,CAAC;IAazE;;;;;;;OAOG;IACG,wBAAwB,CAAC,GAAG,EAAE,MAAM,EAAE,OAAO,GAAE,0BAA+B,GAAG,OAAO,CAAC,aAAa,CAAC;IAgB7G,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,CAAC,0BAA0B,CAAC,GAAG,OAAO,CAAC,aAAa,CAAC;IAMxF,MAAM,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC;QAAE,EAAE,EAAE,MAAM,CAAA;KAAE,CAAC;IAI3C,gBAAgB,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,wBAAwB,CAAC;IAMvE,cAAc,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,iBAAiB,EAAE,CAAC;IAIhE,YAAY,CAAC,UAAU,EAAE,MAAM,EAAE,OAAO,EAAE,kBAAkB,GAAG,OAAO,CAAC,oBAAoB,CAAC;IAU5F,gBAAgB,CAAC,OAAO,EAAE,uBAAuB,GAAG,OAAO,CAAC,wBAAwB,CAAC;IAMrF,YAAY,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,uBAAuB,EAAE,OAAO,EAAE,SAAS,GAAG,OAAO,CAAC,MAAM,CAAC,uBAAuB,EAAE,SAAS,CAAC,CAAC;CAMnI;AAED,UAAU,kBAAkB;IACxB,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,mBAAmB,CAAC,EAAE,OAAO,CAAC;CACjC"}
@@ -1,23 +0,0 @@
1
- import { ContentObjectType, ContentObjectTypeItem, CreateContentObjectTypePayload, FindPayload, ObjectTypeSearchPayload } from "@vertesia/common";
2
- import { ApiTopic, ClientBase } from "@vertesia/api-fetch-client";
3
- export declare class TypesApi extends ApiTopic {
4
- constructor(parent: ClientBase);
5
- /**
6
- * The options can be used to include more information in the return objects.
7
- * You can specify to also include layout information using `layout: true`.
8
- * By default the layout information is not included.
9
- * @param payload
10
- * @param options
11
- * @returns
12
- */
13
- list(payload?: ObjectTypeSearchPayload, options?: {
14
- layout?: boolean;
15
- schema?: boolean;
16
- }): Promise<ContentObjectTypeItem[]>;
17
- find(payload: FindPayload): Promise<ContentObjectType[]>;
18
- retrieve(typeId: string): Promise<ContentObjectType>;
19
- getTypeByName(typeName: string): Promise<ContentObjectType>;
20
- update(typeId: string, payload: Partial<CreateContentObjectTypePayload>): Promise<ContentObjectType>;
21
- create(payload: CreateContentObjectTypePayload): Promise<ContentObjectType>;
22
- delete(id: string): Promise<any>;
23
- }
@@ -1 +0,0 @@
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,uBAAuB,EAAE,MAAM,kBAAkB,CAAC;AACzK,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;AAGlE,qBAAa,QAAS,SAAQ,QAAQ;gBAEtB,MAAM,EAAE,UAAU;IAI9B;;;;;;;OAOG;IACH,IAAI,CAAC,OAAO,GAAE,uBAA4B,EAAE,OAAO,CAAC,EAAE;QAAE,MAAM,CAAC,EAAE,OAAO,CAAC;QAAC,MAAM,CAAC,EAAE,OAAO,CAAA;KAAE,GAAG,OAAO,CAAC,qBAAqB,EAAE,CAAC;IAgB/H,IAAI,CAAC,OAAO,EAAE,WAAW,GAAG,OAAO,CAAC,iBAAiB,EAAE,CAAC;IAMxD,QAAQ,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,iBAAiB,CAAC;IAIpD,aAAa,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,iBAAiB,CAAC;IAI3D,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,CAAC,8BAA8B,CAAC,GAAG,OAAO,CAAC,iBAAiB,CAAC;IAMpG,MAAM,CAAC,OAAO,EAAE,8BAA8B,GAAG,OAAO,CAAC,iBAAiB,CAAC;IAM3E,MAAM,CAAC,EAAE,EAAE,MAAM;CAIpB"}
@@ -1,47 +0,0 @@
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
- export declare class WorkflowsApi extends ApiTopic {
4
- constructor(parent: ClientBase);
5
- getActivityCatalog(): Promise<ActivityCatalog>;
6
- listRuns(documentId: string, eventName: string, ruleId: string): Promise<ListWorkflowRunsResponse>;
7
- searchRuns(payload: ListWorkflowRunsPayload): Promise<ListWorkflowRunsResponse>;
8
- sendSignal(workflowId: string, runId: string, signal: string, payload?: any): Promise<{
9
- message: string;
10
- }>;
11
- getRunDetails(runId: string, workflowId: string): Promise<WorkflowRunWithDetails>;
12
- terminate(workflowId: string, runId: string, reason?: string): Promise<{
13
- message: string;
14
- }>;
15
- cancel(workflowId: string, runId: string, reason?: string): Promise<{
16
- message: string;
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>;
25
- rules: WorkflowsRulesApi;
26
- definitions: WorkflowsDefinitionApi;
27
- }
28
- export declare class WorkflowsRulesApi extends ApiTopic {
29
- constructor(parent: WorkflowsApi);
30
- list(): Promise<WorkflowRuleItem[]>;
31
- retrieve(id: string): Promise<WorkflowRule>;
32
- update(id: string, payload: any): Promise<WorkflowRule>;
33
- create(payload: CreateWorkflowRulePayload): Promise<WorkflowRule>;
34
- delete(id: string): Promise<any>;
35
- execute(id: string, objectIds?: string[], vars?: Record<string, any>): Promise<({
36
- run_id: string;
37
- workflow_id: string;
38
- } | undefined)[]>;
39
- }
40
- export declare class WorkflowsDefinitionApi extends ApiTopic {
41
- constructor(parent: WorkflowsApi);
42
- list(): Promise<WorkflowDefinitionRef[]>;
43
- retrieve(id: string): Promise<DSLWorkflowDefinition>;
44
- update(id: string, payload: any): Promise<DSLWorkflowDefinition>;
45
- create(payload: DSLWorkflowSpec): Promise<DSLWorkflowDefinition>;
46
- delete(id: string): Promise<any>;
47
- }
@@ -1 +0,0 @@
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,EACH,eAAe,EACf,YAAY,EACZ,gBAAgB,EAChB,yBAAyB,EACzB,qBAAqB,EACrB,eAAe,EACf,sBAAsB,EACtB,uBAAuB,EACvB,wBAAwB,EACxB,qBAAqB,EACrB,YAAY,EACZ,gBAAgB,EAChB,sBAAsB,EACzB,MAAM,kBAAkB,CAAC;AAI1B,qBAAa,YAAa,SAAQ,QAAQ;gBAC1B,MAAM,EAAE,UAAU;IAI9B,kBAAkB,IAAI,OAAO,CAAC,eAAe,CAAC;IAI9C,QAAQ,CAAC,UAAU,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,wBAAwB,CAAC;IAIlG,UAAU,CAAC,OAAO,EAAE,uBAAuB,GAAG,OAAO,CAAC,wBAAwB,CAAC;IAI/E,UAAU,CAAC,UAAU,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,GAAG,GAAG,OAAO,CAAC;QAAE,OAAO,EAAE,MAAM,CAAA;KAAE,CAAC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C,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,GAAG,GAAG,OAAO,CAAC,YAAY,CAAC;IAMvD,MAAM,CAAC,OAAO,EAAE,yBAAyB,GAAG,OAAO,CAAC,YAAY,CAAC;IAMjE,MAAM,CAAC,EAAE,EAAE,MAAM;IAIjB,OAAO,CACH,EAAE,EAAE,MAAM,EACV,SAAS,CAAC,EAAE,MAAM,EAAE,EACpB,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAC3B,OAAO,CAAC,CAAC;QAAE,MAAM,EAAE,MAAM,CAAC;QAAC,WAAW,EAAE,MAAM,CAAA;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"}
@@ -1,29 +0,0 @@
1
- import { AbstractFetchClient } from "@vertesia/api-fetch-client";
2
- import { BulkOperationPayload, BulkOperationResult } from "@vertesia/common";
3
- import { AgentsApi } from "./AgentsApi.js";
4
- import { CommandsApi } from "./CommandsApi.js";
5
- import { EmbeddingsApi } from "./EmbeddingsApi.js";
6
- import { FilesApi } from "./FilesApi.js";
7
- import { ObjectsApi } from "./ObjectsApi.js";
8
- import { TypesApi } from "./TypesApi.js";
9
- import { WorkflowsApi } from "./WorkflowsApi.js";
10
- import { CollectionsApi } from "./CollectionsApi.js";
11
- export interface ZenoClientProps {
12
- serverUrl?: string;
13
- apikey?: string;
14
- onRequest?: (request: Request) => void;
15
- onResponse?: (response: Response) => void;
16
- }
17
- export declare class ZenoClient extends AbstractFetchClient<ZenoClient> {
18
- constructor(opts?: ZenoClientProps);
19
- withApiKey(apiKey: string | null): this;
20
- runOperation(payload: BulkOperationPayload): Promise<BulkOperationResult>;
21
- objects: ObjectsApi;
22
- types: TypesApi;
23
- workflows: WorkflowsApi;
24
- files: FilesApi;
25
- commands: CommandsApi;
26
- agents: AgentsApi;
27
- collections: CollectionsApi;
28
- embeddings: EmbeddingsApi;
29
- }
@@ -1 +0,0 @@
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;AAC7E,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAC3C,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC/C,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAEnD,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAErD,MAAM,WAAW,eAAe;IAC5B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,CAAC;IACvC,UAAU,CAAC,EAAE,CAAC,QAAQ,EAAE,QAAQ,KAAK,IAAI,CAAC;CAC7C;AASD,qBAAa,UAAW,SAAQ,mBAAmB,CAAC,UAAU,CAAC;gBAGvD,IAAI,GAAE,eAAoB;IAiB9B,UAAU,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI;IAMhC,YAAY,CAAC,OAAO,EAAE,oBAAoB,GAAG,OAAO,CAAC,mBAAmB,CAAC;IAMzE,OAAO,aAAwB;IAC/B,KAAK,WAAsB;IAC3B,SAAS,eAA0B;IACnC,KAAK,WAAsB;IAC3B,QAAQ,cAAyB;IACjC,MAAM,YAAuB;IAC7B,WAAW,iBAA4B;IACvC,UAAU,gBAA2B;CACxC"}
@@ -1,4 +0,0 @@
1
- import { RequestError } from "@vertesia/api-fetch-client";
2
- export declare class ZenoClientNotFoundError extends RequestError {
3
- constructor(req: Request, error: RequestError);
4
- }
@@ -1 +0,0 @@
1
- {"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../../src/store/errors.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAE1D,qBAAa,uBAAwB,SAAQ,YAAY;gBACzC,GAAG,EAAE,OAAO,EAAE,KAAK,EAAE,YAAY;CAGhD"}
@@ -1,5 +0,0 @@
1
- export * from "./client.js";
2
- export * from "./CommandsApi.js";
3
- export * from "./ObjectsApi.js";
4
- export * from "./TypesApi.js";
5
- export * from "./WorkflowsApi.js";
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/store/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,kBAAkB,CAAC;AACjC,cAAc,iBAAiB,CAAC;AAChC,cAAc,eAAe,CAAC;AAC9B,cAAc,mBAAmB,CAAC"}