@vertesia/client 0.54.0 → 0.56.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 (216) hide show
  1. package/lib/cjs/AccountApi.js +84 -0
  2. package/lib/cjs/AccountApi.js.map +1 -0
  3. package/lib/cjs/AccountsApi.js +16 -0
  4. package/lib/cjs/AccountsApi.js.map +1 -0
  5. package/lib/cjs/AnalyticsApi.js +13 -0
  6. package/lib/cjs/AnalyticsApi.js.map +1 -0
  7. package/lib/cjs/ApiKeysApi.js +63 -0
  8. package/lib/cjs/ApiKeysApi.js.map +1 -0
  9. package/lib/cjs/CommandsApi.js +19 -0
  10. package/lib/cjs/CommandsApi.js.map +1 -0
  11. package/lib/cjs/EnvironmentsApi.js +58 -0
  12. package/lib/cjs/EnvironmentsApi.js.map +1 -0
  13. package/lib/cjs/IamApi.js +51 -0
  14. package/lib/cjs/IamApi.js.map +1 -0
  15. package/lib/cjs/InteractionBase.js +44 -0
  16. package/lib/cjs/InteractionBase.js.map +1 -0
  17. package/lib/cjs/InteractionsApi.js +209 -0
  18. package/lib/cjs/InteractionsApi.js.map +1 -0
  19. package/lib/cjs/PluginsApi.js +27 -0
  20. package/lib/cjs/PluginsApi.js.map +1 -0
  21. package/lib/cjs/ProjectsApi.js +54 -0
  22. package/lib/cjs/ProjectsApi.js.map +1 -0
  23. package/lib/cjs/PromptsApi.js +133 -0
  24. package/lib/cjs/PromptsApi.js.map +1 -0
  25. package/lib/cjs/RefsApi.js +14 -0
  26. package/lib/cjs/RefsApi.js.map +1 -0
  27. package/lib/cjs/RunsApi.js +105 -0
  28. package/lib/cjs/RunsApi.js.map +1 -0
  29. package/lib/cjs/StreamSource.js +17 -0
  30. package/lib/cjs/StreamSource.js.map +1 -0
  31. package/lib/cjs/TrainingApi.js +54 -0
  32. package/lib/cjs/TrainingApi.js.map +1 -0
  33. package/lib/cjs/UsersApi.js +13 -0
  34. package/lib/cjs/UsersApi.js.map +1 -0
  35. package/lib/cjs/client.js +218 -0
  36. package/lib/cjs/client.js.map +1 -0
  37. package/lib/cjs/execute.js +152 -0
  38. package/lib/cjs/execute.js.map +1 -0
  39. package/lib/cjs/index.js +21 -0
  40. package/lib/cjs/index.js.map +1 -0
  41. package/lib/cjs/nodejs/NodeStreamSource.js +45 -0
  42. package/lib/cjs/nodejs/NodeStreamSource.js.map +1 -0
  43. package/lib/cjs/nodejs/index.js +18 -0
  44. package/lib/cjs/nodejs/index.js.map +1 -0
  45. package/lib/cjs/package.json +3 -0
  46. package/lib/cjs/store/AgentsApi.js +16 -0
  47. package/lib/cjs/store/AgentsApi.js.map +1 -0
  48. package/lib/cjs/store/AnalyzeDocApi.js +56 -0
  49. package/lib/cjs/store/AnalyzeDocApi.js.map +1 -0
  50. package/lib/cjs/store/CollectionsApi.js +77 -0
  51. package/lib/cjs/store/CollectionsApi.js.map +1 -0
  52. package/lib/cjs/store/CommandsApi.js +17 -0
  53. package/lib/cjs/store/CommandsApi.js.map +1 -0
  54. package/lib/cjs/store/EmbeddingsApi.js +29 -0
  55. package/lib/cjs/store/EmbeddingsApi.js.map +1 -0
  56. package/lib/cjs/store/FilesApi.js +128 -0
  57. package/lib/cjs/store/FilesApi.js.map +1 -0
  58. package/lib/cjs/store/ObjectsApi.js +254 -0
  59. package/lib/cjs/store/ObjectsApi.js.map +1 -0
  60. package/lib/cjs/store/TypesApi.js +57 -0
  61. package/lib/cjs/store/TypesApi.js.map +1 -0
  62. package/lib/cjs/store/WorkflowsApi.js +179 -0
  63. package/lib/cjs/store/WorkflowsApi.js.map +1 -0
  64. package/lib/cjs/store/client.js +55 -0
  65. package/lib/cjs/store/client.js.map +1 -0
  66. package/lib/cjs/store/errors.js +11 -0
  67. package/lib/cjs/store/errors.js.map +1 -0
  68. package/lib/cjs/store/index.js +22 -0
  69. package/lib/cjs/store/index.js.map +1 -0
  70. package/lib/esm/AccountApi.js +81 -0
  71. package/lib/esm/AccountApi.js.map +1 -0
  72. package/lib/esm/AccountsApi.js +13 -0
  73. package/lib/esm/AccountsApi.js.map +1 -0
  74. package/lib/esm/AnalyticsApi.js +10 -0
  75. package/lib/esm/AnalyticsApi.js.map +1 -0
  76. package/lib/esm/ApiKeysApi.js +59 -0
  77. package/lib/esm/ApiKeysApi.js.map +1 -0
  78. package/lib/esm/CommandsApi.js +16 -0
  79. package/lib/esm/CommandsApi.js.map +1 -0
  80. package/lib/esm/EnvironmentsApi.js +55 -0
  81. package/lib/esm/EnvironmentsApi.js.map +1 -0
  82. package/lib/esm/IamApi.js +45 -0
  83. package/lib/esm/IamApi.js.map +1 -0
  84. package/lib/esm/InteractionBase.js +40 -0
  85. package/lib/esm/InteractionBase.js.map +1 -0
  86. package/lib/esm/InteractionsApi.js +206 -0
  87. package/lib/esm/InteractionsApi.js.map +1 -0
  88. package/lib/esm/PluginsApi.js +24 -0
  89. package/lib/esm/PluginsApi.js.map +1 -0
  90. package/lib/esm/ProjectsApi.js +51 -0
  91. package/lib/esm/ProjectsApi.js.map +1 -0
  92. package/lib/esm/PromptsApi.js +130 -0
  93. package/lib/esm/PromptsApi.js.map +1 -0
  94. package/lib/esm/RefsApi.js +10 -0
  95. package/lib/esm/RefsApi.js.map +1 -0
  96. package/lib/esm/RunsApi.js +101 -0
  97. package/lib/esm/RunsApi.js.map +1 -0
  98. package/lib/esm/StreamSource.js +13 -0
  99. package/lib/esm/StreamSource.js.map +1 -0
  100. package/lib/esm/TrainingApi.js +51 -0
  101. package/lib/esm/TrainingApi.js.map +1 -0
  102. package/lib/esm/UsersApi.js +10 -0
  103. package/lib/esm/UsersApi.js.map +1 -0
  104. package/lib/esm/client.js +211 -0
  105. package/lib/esm/client.js.map +1 -0
  106. package/lib/esm/execute.js +113 -0
  107. package/lib/esm/execute.js.map +1 -0
  108. package/lib/esm/index.js +5 -0
  109. package/lib/esm/index.js.map +1 -0
  110. package/lib/esm/nodejs/NodeStreamSource.js +41 -0
  111. package/lib/esm/nodejs/NodeStreamSource.js.map +1 -0
  112. package/lib/esm/nodejs/index.js +2 -0
  113. package/lib/esm/nodejs/index.js.map +1 -0
  114. package/lib/esm/store/AgentsApi.js +12 -0
  115. package/lib/esm/store/AgentsApi.js.map +1 -0
  116. package/lib/esm/store/AnalyzeDocApi.js +52 -0
  117. package/lib/esm/store/AnalyzeDocApi.js.map +1 -0
  118. package/lib/esm/store/CollectionsApi.js +73 -0
  119. package/lib/esm/store/CollectionsApi.js.map +1 -0
  120. package/lib/esm/store/CommandsApi.js +13 -0
  121. package/lib/esm/store/CommandsApi.js.map +1 -0
  122. package/lib/esm/store/EmbeddingsApi.js +25 -0
  123. package/lib/esm/store/EmbeddingsApi.js.map +1 -0
  124. package/lib/esm/store/FilesApi.js +123 -0
  125. package/lib/esm/store/FilesApi.js.map +1 -0
  126. package/lib/esm/store/ObjectsApi.js +250 -0
  127. package/lib/esm/store/ObjectsApi.js.map +1 -0
  128. package/lib/esm/store/TypesApi.js +53 -0
  129. package/lib/esm/store/TypesApi.js.map +1 -0
  130. package/lib/esm/store/WorkflowsApi.js +173 -0
  131. package/lib/esm/store/WorkflowsApi.js.map +1 -0
  132. package/lib/esm/store/client.js +51 -0
  133. package/lib/esm/store/client.js.map +1 -0
  134. package/lib/esm/store/errors.js +7 -0
  135. package/lib/esm/store/errors.js.map +1 -0
  136. package/lib/esm/store/index.js +6 -0
  137. package/lib/esm/store/index.js.map +1 -0
  138. package/lib/tsconfig.tsbuildinfo +1 -0
  139. package/lib/types/AccountApi.d.ts +58 -0
  140. package/lib/types/AccountApi.d.ts.map +1 -0
  141. package/lib/types/AccountsApi.d.ts +7 -0
  142. package/lib/types/AccountsApi.d.ts.map +1 -0
  143. package/lib/types/AnalyticsApi.d.ts +6 -0
  144. package/lib/types/AnalyticsApi.d.ts.map +1 -0
  145. package/lib/types/ApiKeysApi.d.ts +42 -0
  146. package/lib/types/ApiKeysApi.d.ts.map +1 -0
  147. package/lib/types/CommandsApi.d.ts +10 -0
  148. package/lib/types/CommandsApi.d.ts.map +1 -0
  149. package/lib/types/EnvironmentsApi.d.ts +30 -0
  150. package/lib/types/EnvironmentsApi.d.ts.map +1 -0
  151. package/lib/types/IamApi.d.ts +39 -0
  152. package/lib/types/IamApi.d.ts.map +1 -0
  153. package/lib/types/InteractionBase.d.ts +22 -0
  154. package/lib/types/InteractionBase.d.ts.map +1 -0
  155. package/lib/types/InteractionsApi.d.ts +150 -0
  156. package/lib/types/InteractionsApi.d.ts.map +1 -0
  157. package/lib/types/PluginsApi.d.ts +12 -0
  158. package/lib/types/PluginsApi.d.ts.map +1 -0
  159. package/lib/types/ProjectsApi.d.ts +21 -0
  160. package/lib/types/ProjectsApi.d.ts.map +1 -0
  161. package/lib/types/PromptsApi.d.ts +106 -0
  162. package/lib/types/PromptsApi.d.ts.map +1 -0
  163. package/lib/types/RefsApi.d.ts +6 -0
  164. package/lib/types/RefsApi.d.ts.map +1 -0
  165. package/lib/types/RunsApi.d.ts +77 -0
  166. package/lib/types/RunsApi.d.ts.map +1 -0
  167. package/lib/types/StreamSource.d.ts +7 -0
  168. package/lib/types/StreamSource.d.ts.map +1 -0
  169. package/lib/types/TrainingApi.d.ts +27 -0
  170. package/lib/types/TrainingApi.d.ts.map +1 -0
  171. package/lib/types/UsersApi.d.ts +6 -0
  172. package/lib/types/UsersApi.d.ts.map +1 -0
  173. package/lib/types/client.d.ts +103 -0
  174. package/lib/types/client.d.ts.map +1 -0
  175. package/lib/types/execute.d.ts +36 -0
  176. package/lib/types/execute.d.ts.map +1 -0
  177. package/lib/types/index.d.ts +7 -0
  178. package/lib/types/index.d.ts.map +1 -0
  179. package/lib/types/nodejs/NodeStreamSource.d.ts +9 -0
  180. package/lib/types/nodejs/NodeStreamSource.d.ts.map +1 -0
  181. package/lib/types/nodejs/index.d.ts +1 -0
  182. package/lib/types/nodejs/index.d.ts.map +1 -0
  183. package/lib/types/store/AgentsApi.d.ts +6 -0
  184. package/lib/types/store/AgentsApi.d.ts.map +1 -0
  185. package/lib/types/store/AnalyzeDocApi.d.ts +17 -0
  186. package/lib/types/store/AnalyzeDocApi.d.ts.map +1 -0
  187. package/lib/types/store/CollectionsApi.d.ts +37 -0
  188. package/lib/types/store/CollectionsApi.d.ts.map +1 -0
  189. package/lib/types/store/CommandsApi.d.ts +10 -0
  190. package/lib/types/store/CommandsApi.d.ts.map +1 -0
  191. package/lib/types/store/EmbeddingsApi.d.ts +12 -0
  192. package/lib/types/store/EmbeddingsApi.d.ts.map +1 -0
  193. package/lib/types/store/FilesApi.d.ts +41 -0
  194. package/lib/types/store/FilesApi.d.ts.map +1 -0
  195. package/lib/types/store/ObjectsApi.d.ts +113 -0
  196. package/lib/types/store/ObjectsApi.d.ts.map +1 -0
  197. package/lib/types/store/TypesApi.d.ts +23 -0
  198. package/lib/types/store/TypesApi.d.ts.map +1 -0
  199. package/lib/types/store/WorkflowsApi.d.ts +47 -0
  200. package/lib/types/store/WorkflowsApi.d.ts.map +1 -0
  201. package/lib/types/store/client.d.ts +29 -0
  202. package/lib/types/store/client.d.ts.map +1 -0
  203. package/lib/types/store/errors.d.ts +4 -0
  204. package/lib/types/store/errors.d.ts.map +1 -0
  205. package/lib/types/store/index.d.ts +5 -0
  206. package/lib/types/store/index.d.ts.map +1 -0
  207. package/lib/vertesia-client.js +2 -0
  208. package/lib/vertesia-client.js.map +1 -0
  209. package/package.json +10 -5
  210. package/src/EnvironmentsApi.ts +1 -1
  211. package/src/PluginsApi.ts +7 -5
  212. package/src/ProjectsApi.ts +2 -2
  213. package/src/RunsApi.ts +1 -1
  214. package/src/TrainingApi.ts +1 -1
  215. package/src/store/ObjectsApi.ts +7 -1
  216. package/src/store/WorkflowsApi.ts +73 -68
@@ -0,0 +1,21 @@
1
+ import { ApiTopic, ClientBase } from "@vertesia/api-fetch-client";
2
+ import { AwsConfiguration, GithubConfiguration, GladiaConfiguration, ICreateProjectPayload, MagicPdfConfiguration, Project, ProjectIntegrationListEntry, ProjectRef, SupportedIntegrations } from "@vertesia/common";
3
+ export default class ProjectsApi extends ApiTopic {
4
+ constructor(parent: ClientBase);
5
+ list(account?: string[]): Promise<ProjectRef[]>;
6
+ retrieve(projectId: string): Promise<Project>;
7
+ create(payload: ICreateProjectPayload): Promise<Project>;
8
+ update(projectId: string, payload: Partial<Project>): Promise<Project>;
9
+ listPlugins(projectId: string): Promise<string[]>;
10
+ setPlugins(projectId: string, pluginIds: string[]): Promise<{
11
+ count: number;
12
+ }>;
13
+ integrations: IntegrationsConfigurationApi;
14
+ }
15
+ declare class IntegrationsConfigurationApi extends ApiTopic {
16
+ constructor(parent: ClientBase);
17
+ list(projectId: string): Promise<ProjectIntegrationListEntry[]>;
18
+ retrieve(projectId: string, integrationId: SupportedIntegrations): Promise<GladiaConfiguration | GithubConfiguration | AwsConfiguration | MagicPdfConfiguration | undefined>;
19
+ update(projectId: string, integrationId: string, payload: any): Promise<GladiaConfiguration | GithubConfiguration>;
20
+ }
21
+ export {};
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ProjectsApi.d.ts","sourceRoot":"","sources":["../../src/ProjectsApi.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;AAClE,OAAO,EAAE,gBAAgB,EAAE,mBAAmB,EAAE,mBAAmB,EAAE,qBAAqB,EAAE,qBAAqB,EAAE,OAAO,EAAE,2BAA2B,EAAE,UAAU,EAAE,qBAAqB,EAAE,MAAM,kBAAkB,CAAC;AAErN,MAAM,CAAC,OAAO,OAAO,WAAY,SAAQ,QAAQ;gBACjC,MAAM,EAAE,UAAU;IAI9B,IAAI,CAAC,OAAO,CAAC,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,UAAU,EAAE,CAAC;IAI/C,QAAQ,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;IAI7C,MAAM,CAAC,OAAO,EAAE,qBAAqB,GAAG,OAAO,CAAC,OAAO,CAAC;IAMxD,MAAM,CAAC,SAAS,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,CAAC,OAAO,CAAC,GAAG,OAAO,CAAC,OAAO,CAAC;IAMtE,WAAW,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC;IAIjD,UAAU,CAAC,SAAS,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC;QAAE,KAAK,EAAE,MAAM,CAAA;KAAE,CAAC;IAI9E,YAAY,EAAE,4BAA4B,CAA0C;CAEvF;AAED,cAAM,4BAA6B,SAAQ,QAAQ;gBAEnC,MAAM,EAAE,UAAU;IAI9B,IAAI,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,2BAA2B,EAAE,CAAC;IAI/D,QAAQ,CAAC,SAAS,EAAE,MAAM,EAAE,aAAa,EAAE,qBAAqB,GAAG,OAAO,CAAC,mBAAmB,GAAG,mBAAmB,GAAG,gBAAgB,GAAG,qBAAqB,GAAG,SAAS,CAAC;IAS5K,MAAM,CAAC,SAAS,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,EAAE,OAAO,EAAE,GAAG,GAAG,OAAO,CAAC,mBAAmB,GAAG,mBAAmB,CAAC;CAMrH"}
@@ -0,0 +1,106 @@
1
+ import { ComputePromptFacetPayload, PromptSearchPayload, PromptTemplate, PromptTemplateForkPayload, PromptTemplateCreatePayload, PromptTemplateRef, PromptTemplateUpdatePayload } from "@vertesia/common";
2
+ import { ApiTopic, ClientBase } from "@vertesia/api-fetch-client";
3
+ export interface ComputePromptFacetsResponse {
4
+ role?: {
5
+ _id: string;
6
+ count: number;
7
+ }[];
8
+ total?: {
9
+ count: number;
10
+ }[];
11
+ }
12
+ export default class PromptsApi extends ApiTopic {
13
+ constructor(parent: ClientBase);
14
+ /**
15
+ * Get the list of all prompt templates
16
+ * @param payload query payload to filter search
17
+ * @returns PromptTemplateRef[]
18
+ **/
19
+ list(payload?: PromptSearchPayload): Promise<PromptTemplateRef[]>;
20
+ /**
21
+ * Get the list of all prompt facets
22
+ * @param payload query payload to filter facet search
23
+ * @returns ComputePromptFacetsResponse[]
24
+ **/
25
+ computeFacets(query: ComputePromptFacetPayload): Promise<ComputePromptFacetsResponse>;
26
+ /**
27
+ * Create a new prompt template
28
+ * @param payload PromptTemplateCreatePayload
29
+ * @returns PromptTemplate
30
+ * @throws ApiError
31
+ * @throws 400 if payload is invalid
32
+ * @throws 500 if creation fails
33
+ **/
34
+ create(payload: PromptTemplateCreatePayload): Promise<PromptTemplate>;
35
+ /**
36
+ * Retrieve an existing prompt template
37
+ * @param id of the prompt template to retrieve
38
+ * @returns PromptTemplate
39
+ **/
40
+ retrieve(id: string): Promise<PromptTemplate>;
41
+ /**
42
+ * Update an existing prompt template
43
+ * @param id of the prompt template to update
44
+ * @param payload PromptTemplateCreatePayload
45
+ * @returns PromptTemplate
46
+ * @throws ApiError
47
+ * @throws 400 if payload is invalid
48
+ * @throws 500 if update fails
49
+ * @throws 404 if not found
50
+ **/
51
+ update(id: string, payload: PromptTemplateUpdatePayload): Promise<PromptTemplate>;
52
+ /**
53
+ * Delete an existing prompt template
54
+ * @param id of the prompt template to delete
55
+ * @returns void
56
+ */
57
+ delete(id: string): Promise<void>;
58
+ /**
59
+ * Fork an existing prompt template
60
+ * @param id of the prompt template to fork
61
+ * @param payload PromptTemplateForkPayload
62
+ * @returns Forked PromptTemplate
63
+ */
64
+ fork(id: string, payload: PromptTemplateForkPayload): Promise<PromptTemplate>;
65
+ /**
66
+ * Render a prompt template
67
+ * @param id of the prompt template to render
68
+ * @param payload that will be passed to the prompt template to generate the prompts
69
+ * @returns PromptTemplate
70
+ * @throws ApiError
71
+ * @throws 404 if not found
72
+ * @throws 400 if payload is invalid
73
+ * @throws 500 if render fails
74
+ **/
75
+ render(id: string, payload: {}): Promise<PromptTemplate>;
76
+ /**
77
+ * Get options for a field
78
+ * @param field name to get options for
79
+ * @returns string[]
80
+ */
81
+ options(field: string): Promise<string[]>;
82
+ /**
83
+ * List the versions of the prompt template. Returns an empty array if no versions are found
84
+ * @param id
85
+ * @returns the versions list or an empty array if no versions are found
86
+ */
87
+ listVersions(id: string): Promise<PromptTemplateRef[]>;
88
+ /**
89
+ * Retrieve list of interactions that use the prompt template
90
+ */
91
+ listInteractions(id: string): Promise<ListInteractionsResponse>;
92
+ /**
93
+ * List the forks of the prompt. Returns an empty array if no forks are found
94
+ * @param id of the prompt to search forks
95
+ * @returns the versions list or an empty array if no forks are found
96
+ */
97
+ listForks(id: string): Promise<PromptTemplateRef[]>;
98
+ }
99
+ export interface ListInteractionsResponse {
100
+ prompt: string;
101
+ interactions: {
102
+ id: string;
103
+ name: string;
104
+ versions: string[];
105
+ }[];
106
+ }
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PromptsApi.d.ts","sourceRoot":"","sources":["../../src/PromptsApi.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,yBAAyB,EAAE,mBAAmB,EAAqB,cAAc,EAAE,yBAAyB,EAAE,2BAA2B,EAAE,iBAAiB,EAAE,2BAA2B,EAAE,MAAM,kBAAkB,CAAC;AAC7N,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;AAElE,MAAM,WAAW,2BAA2B;IACxC,IAAI,CAAC,EAAE;QAAE,GAAG,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;IACxC,KAAK,CAAC,EAAE;QAAE,KAAK,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;CAC/B;AAED,MAAM,CAAC,OAAO,OAAO,UAAW,SAAQ,QAAQ;gBAChC,MAAM,EAAE,UAAU;IAI9B;;;;QAII;IACJ,IAAI,CAAC,OAAO,GAAE,mBAAwB,GAAG,OAAO,CAAC,iBAAiB,EAAE,CAAC;IAUrE;;;;QAII;IACJ,aAAa,CAAC,KAAK,EAAE,yBAAyB,GAAG,OAAO,CAAC,2BAA2B,CAAC;IAMrF;;;;;;;QAOI;IACJ,MAAM,CAAC,OAAO,EAAE,2BAA2B,GAAG,OAAO,CAAC,cAAc,CAAC;IAMrE;;;;QAII;IACJ,QAAQ,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,cAAc,CAAC;IAI7C;;;;;;;;;QASI;IACJ,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,2BAA2B,GAAG,OAAO,CAAC,cAAc,CAAC;IAMjF;;;;OAIG;IACH,MAAM,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAIjC;;;;;OAKG;IACH,IAAI,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,yBAAyB,GAAG,OAAO,CAAC,cAAc,CAAC;IAM7E;;;;;;;;;QASI;IACJ,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,EAAE,GAAG,OAAO,CAAC,cAAc,CAAC;IAMxD;;;;OAIG;IACH,OAAO,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC;IAIzC;;;;OAIG;IACH,YAAY,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,iBAAiB,EAAE,CAAC;IAKtD;;OAEG;IACH,gBAAgB,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,wBAAwB,CAAC;IAI/D;;;;OAIG;IACH,SAAS,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,iBAAiB,EAAE,CAAC;CAItD;AAED,MAAM,WAAW,wBAAwB;IACrC,MAAM,EAAE,MAAM,CAAC;IACf,YAAY,EAAE;QACV,EAAE,EAAE,MAAM,CAAC;QACX,IAAI,EAAE,MAAM,CAAC;QACb,QAAQ,EAAE,MAAM,EAAE,CAAC;KACtB,EAAE,CAAA;CACN"}
@@ -0,0 +1,6 @@
1
+ import { ResolvableRef, ResourceRef } from "@vertesia/common";
2
+ import { ApiTopic, ClientBase } from "@vertesia/api-fetch-client";
3
+ export declare class RefsApi extends ApiTopic {
4
+ constructor(parent: ClientBase);
5
+ resolve(refs: ResolvableRef[]): Promise<ResourceRef[]>;
6
+ }
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RefsApi.d.ts","sourceRoot":"","sources":["../../src/RefsApi.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAC7D,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAA;AAGjE,qBAAa,OAAQ,SAAQ,QAAQ;gBAErB,MAAM,EAAE,UAAU;IAK9B,OAAO,CAAC,IAAI,EAAE,aAAa,EAAE,GAAG,OAAO,CAAC,WAAW,EAAE,CAAC;CAMzD"}
@@ -0,0 +1,77 @@
1
+ import { ApiTopic, ClientBase } from "@vertesia/api-fetch-client";
2
+ import { CheckpointConversationPayload, ComputeRunFacetPayload, ExecutionRun, ExecutionRunRef, FindPayload, RunCreatePayload, RunListingFilters, RunListingQueryOptions, RunSearchPayload, ToolResultsPayload, UserMessagePayload } from "@vertesia/common";
3
+ import type { ExecutionResponse } from "@llumiverse/common";
4
+ export interface FilterOption {
5
+ id: string;
6
+ name: string;
7
+ count: number;
8
+ }
9
+ export interface ComputeRunFacetsResponse {
10
+ environments?: {
11
+ _id: string;
12
+ count: number;
13
+ }[];
14
+ interactions?: {
15
+ _id: string;
16
+ count: number;
17
+ }[];
18
+ models?: {
19
+ _id: string;
20
+ count: number;
21
+ }[];
22
+ tags?: {
23
+ _id: string;
24
+ count: number;
25
+ }[];
26
+ status?: {
27
+ _id: string;
28
+ count: number;
29
+ }[];
30
+ total?: {
31
+ count: number;
32
+ }[];
33
+ }
34
+ export declare class RunsApi extends ApiTopic {
35
+ constructor(parent: ClientBase);
36
+ /**
37
+ * Get the list of all runs
38
+ * @param project optional project id to filter by
39
+ * @param interaction optional interaction id to filter by
40
+ * @returns InteractionResult[]
41
+ **/
42
+ list({ limit, offset, filters }: RunListingQueryOptions): Promise<ExecutionRunRef[]>;
43
+ find(payload: FindPayload): Promise<ExecutionRun[]>;
44
+ /**
45
+ * Get a run by id
46
+ *
47
+ * @param id
48
+ * @returns InteractionResult
49
+ **/
50
+ retrieve<P = any, R = any>(id: string): Promise<ExecutionRun<P, R>>;
51
+ /**
52
+ * Get filter options for a field
53
+ * return FilterOption[]
54
+ */
55
+ filterOptions(field: string, filters: RunListingFilters): Promise<FilterOption[]>;
56
+ create(payload: RunCreatePayload): Promise<ExecutionRun>;
57
+ /**
58
+ * Send tool results and continues the conversation
59
+ * @param payload
60
+ * @returns
61
+ */
62
+ sendToolResults(payload: ToolResultsPayload): Promise<ExecutionResponse>;
63
+ /**
64
+ *
65
+ * @param payload
66
+ * @returns
67
+ */
68
+ sendUserMessage(payload: UserMessagePayload): Promise<ExecutionResponse>;
69
+ createCheckpoint(payload: CheckpointConversationPayload): Promise<ExecutionResponse>;
70
+ /**
71
+ * Get the list of all runs facets
72
+ * @param payload query payload to filter facet search
73
+ * @returns ComputeRunFacetsResponse[]
74
+ **/
75
+ computeFacets(query: ComputeRunFacetPayload): Promise<ComputeRunFacetsResponse>;
76
+ search(payload: RunSearchPayload): Promise<ExecutionRunRef[]>;
77
+ }
@@ -0,0 +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,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,KAAK,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AAE5D,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,CAAA;KAAE,EAAE,CAAC;IAChD,MAAM,CAAC,EAAE;QAAE,GAAG,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;IAC1C,IAAI,CAAC,EAAE;QAAE,GAAG,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;IACxC,MAAM,CAAC,EAAE;QAAE,GAAG,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;IAC1C,KAAK,CAAC,EAAE;QAAE,KAAK,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;CAC/B;AAED,qBAAa,OAAQ,SAAQ,QAAQ;gBACrB,MAAM,EAAE,UAAU;IAI9B;;;;;QAKI;IACJ,IAAI,CAAC,EAAE,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,EAAE,sBAAsB,GAAG,OAAO,CAAC,eAAe,EAAE,CAAC;IAUpF,IAAI,CAAC,OAAO,EAAE,WAAW,GAAG,OAAO,CAAC,YAAY,EAAE,CAAC;IAMnD;;;;;QAKI;IACJ,QAAQ,CAAC,CAAC,GAAG,GAAG,EAAE,CAAC,GAAG,GAAG,EAAE,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,YAAY,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;IAInE;;;OAGG;IACH,aAAa,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,iBAAiB,GAAG,OAAO,CAAC,YAAY,EAAE,CAAC;IAOjF,MAAM,CAAC,OAAO,EAAE,gBAAgB,GAAG,OAAO,CAAC,YAAY,CAAC;IAgBxD;;;;OAIG;IACH,eAAe,CAAC,OAAO,EAAE,kBAAkB,GAAG,OAAO,CAAC,iBAAiB,CAAC;IAMxE;;;;OAIG;IACH,eAAe,CAAC,OAAO,EAAE,kBAAkB,GAAG,OAAO,CAAC,iBAAiB,CAAC;IAMxE,gBAAgB,CAAC,OAAO,EAAE,6BAA6B,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"}
@@ -0,0 +1,7 @@
1
+ export declare class StreamSource {
2
+ stream: ReadableStream;
3
+ name: string;
4
+ type?: string | undefined;
5
+ id?: string | undefined;
6
+ constructor(stream: ReadableStream, name: string, type?: string | undefined, id?: string | undefined);
7
+ }
@@ -0,0 +1 @@
1
+ {"version":3,"file":"StreamSource.d.ts","sourceRoot":"","sources":["../../src/StreamSource.ts"],"names":[],"mappings":"AAAA,qBAAa,YAAY;IACF,MAAM,EAAE,cAAc;IAAS,IAAI,EAAE,MAAM;IAAS,IAAI,CAAC,EAAE,MAAM;IAAS,EAAE,CAAC,EAAE,MAAM;gBAArF,MAAM,EAAE,cAAc,EAAS,IAAI,EAAE,MAAM,EAAS,IAAI,CAAC,EAAE,MAAM,YAAA,EAAS,EAAE,CAAC,EAAE,MAAM,YAAA;CAC3G"}
@@ -0,0 +1,27 @@
1
+ import type { TrainingJob } from "@llumiverse/common";
2
+ import { ExecutionRunRef, ListTrainingSessionsQuery, TrainingSession, TrainingSessionCreatePayload, TrainingSessionRef } from "@vertesia/common";
3
+ import { ApiTopic, ClientBase } from "@vertesia/api-fetch-client";
4
+ export default class TrainingApi extends ApiTopic {
5
+ constructor(parent: ClientBase);
6
+ listSessions(query?: ListTrainingSessionsQuery): Promise<TrainingSessionRef[]>;
7
+ listSessionNames(query?: ListTrainingSessionsQuery): Promise<{
8
+ id: string;
9
+ name: string;
10
+ }[]>;
11
+ createSession(payload: TrainingSessionCreatePayload): Promise<TrainingSession>;
12
+ getSession(sessionId: string): Promise<TrainingSession>;
13
+ addToSession(sessionId: string, runs: string[]): Promise<any>;
14
+ listSessionRuns(sessionId: string, limit?: number, offset?: number): Promise<ExecutionRunRef[]>;
15
+ buildSession(sessionId: string): Promise<any>;
16
+ getDataUrl(sessionId: string): Promise<{
17
+ url: string;
18
+ }>;
19
+ getDataUploadUrl(sessionId: string, isResumable?: boolean): Promise<{
20
+ url: string;
21
+ }>;
22
+ startTraining(sessionId: string): Promise<TrainingJob>;
23
+ cancelTraining(sessionId: string): Promise<TrainingJob>;
24
+ getTrainingJob(jobId: string): Promise<TrainingJob>;
25
+ getAndSyncTrainingJob(jobId: string): Promise<TrainingJob>;
26
+ setDataset(sessionId: string, name?: string): Promise<any>;
27
+ }
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TrainingApi.d.ts","sourceRoot":"","sources":["../../src/TrainingApi.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,eAAe,EAAE,yBAAyB,EAAE,eAAe,EAAE,4BAA4B,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AACjJ,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;AAGlE,MAAM,CAAC,OAAO,OAAO,WAAY,SAAQ,QAAQ;gBAEjC,MAAM,EAAE,UAAU;IAI9B,YAAY,CAAC,KAAK,GAAE,yBAA8B,GAAG,OAAO,CAAC,kBAAkB,EAAE,CAAC;IAIlF,gBAAgB,CAAC,KAAK,GAAE,yBAA8B,GAAG,OAAO,CAAC;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;IAIhG,aAAa,CAAC,OAAO,EAAE,4BAA4B,GAAG,OAAO,CAAC,eAAe,CAAC;IAI9E,UAAU,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,eAAe,CAAC;IAIvD,YAAY,CAAC,SAAS,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,GAAG,CAAC;IAI7D,eAAe,CAAC,SAAS,EAAE,MAAM,EAAE,KAAK,SAAM,EAAE,MAAM,SAAI,GAAG,OAAO,CAAC,eAAe,EAAE,CAAC;IAIvF,YAAY,CAAC,SAAS,EAAE,MAAM;IAI9B,UAAU,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC;QAAE,GAAG,EAAE,MAAM,CAAA;KAAE,CAAC;IAIvD,gBAAgB,CAAC,SAAS,EAAE,MAAM,EAAE,WAAW,UAAQ,GAAG,OAAO,CAAC;QAAE,GAAG,EAAE,MAAM,CAAA;KAAE,CAAC;IAKlF,aAAa,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,WAAW,CAAC;IAItD,cAAc,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,WAAW,CAAC;IAIvD,cAAc,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,WAAW,CAAC;IAInD,qBAAqB,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,WAAW,CAAC;IAM1D,UAAU,CAAC,SAAS,EAAE,MAAM,EAAE,IAAI,GAAE,MAAkB,GAAG,OAAO,CAAC,GAAG,CAAC;CAIxE"}
@@ -0,0 +1,6 @@
1
+ import { User } from "@vertesia/common";
2
+ import { ApiTopic, ClientBase } from "@vertesia/api-fetch-client";
3
+ export default class UsersApi extends ApiTopic {
4
+ constructor(parent: ClientBase);
5
+ retrieve(userId: string): Promise<User>;
6
+ }
@@ -0,0 +1 @@
1
+ {"version":3,"file":"UsersApi.d.ts","sourceRoot":"","sources":["../../src/UsersApi.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AACxC,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;AAKlE,MAAM,CAAC,OAAO,OAAO,QAAS,SAAQ,QAAQ;gBAE9B,MAAM,EAAE,UAAU;IAI9B,QAAQ,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;CAK1C"}
@@ -0,0 +1,103 @@
1
+ import { AbstractFetchClient } from "@vertesia/api-fetch-client";
2
+ import { AuthTokenResponse } from "@vertesia/common";
3
+ import AccountApi from "./AccountApi.js";
4
+ import AccountsApi from "./AccountsApi.js";
5
+ import AnalyticsApi from "./AnalyticsApi.js";
6
+ import { ApiKeysApi } from "./ApiKeysApi.js";
7
+ import CommandsApi from "./CommandsApi.js";
8
+ import EnvironmentsApi from "./EnvironmentsApi.js";
9
+ import { IamApi } from "./IamApi.js";
10
+ import InteractionsApi from "./InteractionsApi.js";
11
+ import ProjectsApi from "./ProjectsApi.js";
12
+ import PromptsApi from "./PromptsApi.js";
13
+ import { RefsApi } from "./RefsApi.js";
14
+ import { RunsApi } from "./RunsApi.js";
15
+ import { ZenoClient } from "./store/client.js";
16
+ import TrainingApi from "./TrainingApi.js";
17
+ import UsersApi from "./UsersApi.js";
18
+ import PluginsApi from "./PluginsApi.js";
19
+ export type VertesiaClientProps = {
20
+ /**
21
+ * The site name of Vertesia.
22
+ *
23
+ * This is used to determine the API backend. It should not include the protocol. For more
24
+ * advanced configurations, use `serverUrl` and `storeUrl` instead.
25
+ *
26
+ * @example api.vertesia.io
27
+ * @example api-preview.vertesia.io
28
+ * @example api-staging.vertesia.io
29
+ * @default api.vertesia.io
30
+ * @since 0.52.0
31
+ */
32
+ site?: 'api.vertesia.io' | 'api-preview.vertesia.io' | 'api-staging.vertesia.io';
33
+ serverUrl?: string;
34
+ storeUrl?: string;
35
+ apikey?: string;
36
+ projectId?: string;
37
+ sessionTags?: string | string[];
38
+ onRequest?: (request: Request) => void;
39
+ onResponse?: (response: Response) => void;
40
+ };
41
+ export declare class VertesiaClient extends AbstractFetchClient<VertesiaClient> {
42
+ /**
43
+ * The JWT token linked to the API KEY (sk or pk)
44
+ */
45
+ _jwt: string | null;
46
+ /**
47
+ * The store client
48
+ */
49
+ store: ZenoClient;
50
+ /**
51
+ * The session name will be sent when executing an interaction as a tag
52
+ */
53
+ sessionTags?: string | string[];
54
+ constructor(opts?: VertesiaClientProps);
55
+ /**
56
+ * Overwrite to keep store and composable clients synchronized on the auth callback
57
+ * @param authCb
58
+ * @returns
59
+ */
60
+ withAuthCallback(authCb?: (() => Promise<string>) | null): this;
61
+ withApiKey(apiKey: string | null): Promise<this>;
62
+ getRawJWT(): Promise<string | null>;
63
+ getDecodedJWT(): Promise<any>;
64
+ /**
65
+ * Alias for store.workflows
66
+ */
67
+ get workflows(): import("./index.js").WorkflowsApi;
68
+ /**
69
+ * Alias for store.objects
70
+ */
71
+ get objects(): import("./index.js").ObjectsApi;
72
+ get files(): import("./store/FilesApi.js").FilesApi;
73
+ /**
74
+ * Alias for store.types
75
+ */
76
+ get types(): import("./index.js").TypesApi;
77
+ get storeUrl(): string;
78
+ set project(projectId: string | null);
79
+ get project(): string | null;
80
+ /**
81
+ *
82
+ * Generate a token for use with other Composable's services
83
+ *
84
+ * @param accountId: selected account to generate the token for
85
+ * @returns AuthTokenResponse
86
+ */
87
+ getAuthToken(token?: string, accountId?: string): Promise<AuthTokenResponse>;
88
+ projects: ProjectsApi;
89
+ environments: EnvironmentsApi;
90
+ interactions: InteractionsApi;
91
+ prompts: PromptsApi;
92
+ runs: RunsApi;
93
+ account: AccountApi;
94
+ accounts: AccountsApi;
95
+ apikeys: ApiKeysApi;
96
+ analytics: AnalyticsApi;
97
+ training: TrainingApi;
98
+ users: UsersApi;
99
+ iam: IamApi;
100
+ refs: RefsApi;
101
+ commands: CommandsApi;
102
+ plugins: PluginsApi;
103
+ }
@@ -0,0 +1 @@
1
+ {"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../src/client.ts"],"names":[],"mappings":"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"}
@@ -0,0 +1,36 @@
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 function 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 suffixed with an optional tag or version which 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
+ }>;
@@ -0,0 +1 @@
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,wBAAsB,mBAAmB,IAAI,OAAO,CAAC,OAAO,WAAW,CAAC,CAMvE;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"}
@@ -0,0 +1,7 @@
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";
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,6 @@
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
+ }
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,17 @@
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
+ }
@@ -0,0 +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,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"}
@@ -0,0 +1,37 @@
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
+ }
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,10 @@
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
+ }
@@ -0,0 +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,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/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"}
@@ -0,0 +1,41 @@
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
+ }
@@ -0,0 +1 @@
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"}