@vertesia/client 0.80.0-dev.20251121 → 0.80.1

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 (250) hide show
  1. package/README.md +110 -0
  2. package/package.json +13 -4
  3. package/src/InteractionsApi.ts +14 -1
  4. package/src/SkillsApi.ts +46 -0
  5. package/src/client.test.ts +3 -0
  6. package/src/client.ts +11 -7
  7. package/src/store/FilesApi.ts +93 -0
  8. package/src/store/ObjectsApi.ts +1 -0
  9. package/src/store/WorkersApi.ts +17 -0
  10. package/src/store/client.ts +2 -2
  11. package/src/store/index.ts +1 -0
  12. package/lib/cjs/AccountApi.js +0 -85
  13. package/lib/cjs/AccountApi.js.map +0 -1
  14. package/lib/cjs/AccountsApi.js +0 -16
  15. package/lib/cjs/AccountsApi.js.map +0 -1
  16. package/lib/cjs/AnalyticsApi.js +0 -13
  17. package/lib/cjs/AnalyticsApi.js.map +0 -1
  18. package/lib/cjs/ApiKeysApi.js +0 -63
  19. package/lib/cjs/ApiKeysApi.js.map +0 -1
  20. package/lib/cjs/AppsApi.js +0 -119
  21. package/lib/cjs/AppsApi.js.map +0 -1
  22. package/lib/cjs/CommandsApi.js +0 -19
  23. package/lib/cjs/CommandsApi.js.map +0 -1
  24. package/lib/cjs/EnvironmentsApi.js +0 -58
  25. package/lib/cjs/EnvironmentsApi.js.map +0 -1
  26. package/lib/cjs/GroupsApi.js +0 -78
  27. package/lib/cjs/GroupsApi.js.map +0 -1
  28. package/lib/cjs/IamApi.js +0 -53
  29. package/lib/cjs/IamApi.js.map +0 -1
  30. package/lib/cjs/InteractionBase.js +0 -44
  31. package/lib/cjs/InteractionBase.js.map +0 -1
  32. package/lib/cjs/InteractionCatalogApi.js +0 -64
  33. package/lib/cjs/InteractionCatalogApi.js.map +0 -1
  34. package/lib/cjs/InteractionOutput.js +0 -300
  35. package/lib/cjs/InteractionOutput.js.map +0 -1
  36. package/lib/cjs/InteractionResult.example.js +0 -57
  37. package/lib/cjs/InteractionResult.example.js.map +0 -1
  38. package/lib/cjs/InteractionsApi.js +0 -231
  39. package/lib/cjs/InteractionsApi.js.map +0 -1
  40. package/lib/cjs/ProjectsApi.js +0 -53
  41. package/lib/cjs/ProjectsApi.js.map +0 -1
  42. package/lib/cjs/PromptsApi.js +0 -133
  43. package/lib/cjs/PromptsApi.js.map +0 -1
  44. package/lib/cjs/RefsApi.js +0 -14
  45. package/lib/cjs/RefsApi.js.map +0 -1
  46. package/lib/cjs/RunsApi.js +0 -113
  47. package/lib/cjs/RunsApi.js.map +0 -1
  48. package/lib/cjs/StreamSource.js +0 -17
  49. package/lib/cjs/StreamSource.js.map +0 -1
  50. package/lib/cjs/TrainingApi.js +0 -54
  51. package/lib/cjs/TrainingApi.js.map +0 -1
  52. package/lib/cjs/UsersApi.js +0 -13
  53. package/lib/cjs/UsersApi.js.map +0 -1
  54. package/lib/cjs/client.js +0 -346
  55. package/lib/cjs/client.js.map +0 -1
  56. package/lib/cjs/execute.js +0 -158
  57. package/lib/cjs/execute.js.map +0 -1
  58. package/lib/cjs/index.js +0 -22
  59. package/lib/cjs/index.js.map +0 -1
  60. package/lib/cjs/nodejs/NodeStreamSource.js +0 -45
  61. package/lib/cjs/nodejs/NodeStreamSource.js.map +0 -1
  62. package/lib/cjs/nodejs/index.js +0 -18
  63. package/lib/cjs/nodejs/index.js.map +0 -1
  64. package/lib/cjs/package.json +0 -3
  65. package/lib/cjs/store/AgentsApi.js +0 -16
  66. package/lib/cjs/store/AgentsApi.js.map +0 -1
  67. package/lib/cjs/store/AnalyzeDocApi.js +0 -56
  68. package/lib/cjs/store/AnalyzeDocApi.js.map +0 -1
  69. package/lib/cjs/store/CollectionsApi.js +0 -131
  70. package/lib/cjs/store/CollectionsApi.js.map +0 -1
  71. package/lib/cjs/store/CommandsApi.js +0 -17
  72. package/lib/cjs/store/CommandsApi.js.map +0 -1
  73. package/lib/cjs/store/EmbeddingsApi.js +0 -29
  74. package/lib/cjs/store/EmbeddingsApi.js.map +0 -1
  75. package/lib/cjs/store/FilesApi.js +0 -148
  76. package/lib/cjs/store/FilesApi.js.map +0 -1
  77. package/lib/cjs/store/ObjectsApi.js +0 -282
  78. package/lib/cjs/store/ObjectsApi.js.map +0 -1
  79. package/lib/cjs/store/TypesApi.js +0 -57
  80. package/lib/cjs/store/TypesApi.js.map +0 -1
  81. package/lib/cjs/store/WorkflowsApi.js +0 -414
  82. package/lib/cjs/store/WorkflowsApi.js.map +0 -1
  83. package/lib/cjs/store/client.js +0 -71
  84. package/lib/cjs/store/client.js.map +0 -1
  85. package/lib/cjs/store/errors.js +0 -11
  86. package/lib/cjs/store/errors.js.map +0 -1
  87. package/lib/cjs/store/index.js +0 -22
  88. package/lib/cjs/store/index.js.map +0 -1
  89. package/lib/cjs/store/version.js +0 -6
  90. package/lib/cjs/store/version.js.map +0 -1
  91. package/lib/esm/AccountApi.js +0 -82
  92. package/lib/esm/AccountApi.js.map +0 -1
  93. package/lib/esm/AccountsApi.js +0 -13
  94. package/lib/esm/AccountsApi.js.map +0 -1
  95. package/lib/esm/AnalyticsApi.js +0 -10
  96. package/lib/esm/AnalyticsApi.js.map +0 -1
  97. package/lib/esm/ApiKeysApi.js +0 -59
  98. package/lib/esm/ApiKeysApi.js.map +0 -1
  99. package/lib/esm/AppsApi.js +0 -116
  100. package/lib/esm/AppsApi.js.map +0 -1
  101. package/lib/esm/CommandsApi.js +0 -16
  102. package/lib/esm/CommandsApi.js.map +0 -1
  103. package/lib/esm/EnvironmentsApi.js +0 -55
  104. package/lib/esm/EnvironmentsApi.js.map +0 -1
  105. package/lib/esm/GroupsApi.js +0 -74
  106. package/lib/esm/GroupsApi.js.map +0 -1
  107. package/lib/esm/IamApi.js +0 -47
  108. package/lib/esm/IamApi.js.map +0 -1
  109. package/lib/esm/InteractionBase.js +0 -40
  110. package/lib/esm/InteractionBase.js.map +0 -1
  111. package/lib/esm/InteractionCatalogApi.js +0 -60
  112. package/lib/esm/InteractionCatalogApi.js.map +0 -1
  113. package/lib/esm/InteractionOutput.js +0 -293
  114. package/lib/esm/InteractionOutput.js.map +0 -1
  115. package/lib/esm/InteractionResult.example.js +0 -55
  116. package/lib/esm/InteractionResult.example.js.map +0 -1
  117. package/lib/esm/InteractionsApi.js +0 -228
  118. package/lib/esm/InteractionsApi.js.map +0 -1
  119. package/lib/esm/ProjectsApi.js +0 -50
  120. package/lib/esm/ProjectsApi.js.map +0 -1
  121. package/lib/esm/PromptsApi.js +0 -130
  122. package/lib/esm/PromptsApi.js.map +0 -1
  123. package/lib/esm/RefsApi.js +0 -10
  124. package/lib/esm/RefsApi.js.map +0 -1
  125. package/lib/esm/RunsApi.js +0 -109
  126. package/lib/esm/RunsApi.js.map +0 -1
  127. package/lib/esm/StreamSource.js +0 -13
  128. package/lib/esm/StreamSource.js.map +0 -1
  129. package/lib/esm/TrainingApi.js +0 -51
  130. package/lib/esm/TrainingApi.js.map +0 -1
  131. package/lib/esm/UsersApi.js +0 -10
  132. package/lib/esm/UsersApi.js.map +0 -1
  133. package/lib/esm/client.js +0 -337
  134. package/lib/esm/client.js.map +0 -1
  135. package/lib/esm/execute.js +0 -118
  136. package/lib/esm/execute.js.map +0 -1
  137. package/lib/esm/index.js +0 -6
  138. package/lib/esm/index.js.map +0 -1
  139. package/lib/esm/nodejs/NodeStreamSource.js +0 -41
  140. package/lib/esm/nodejs/NodeStreamSource.js.map +0 -1
  141. package/lib/esm/nodejs/index.js +0 -2
  142. package/lib/esm/nodejs/index.js.map +0 -1
  143. package/lib/esm/store/AgentsApi.js +0 -12
  144. package/lib/esm/store/AgentsApi.js.map +0 -1
  145. package/lib/esm/store/AnalyzeDocApi.js +0 -52
  146. package/lib/esm/store/AnalyzeDocApi.js.map +0 -1
  147. package/lib/esm/store/CollectionsApi.js +0 -127
  148. package/lib/esm/store/CollectionsApi.js.map +0 -1
  149. package/lib/esm/store/CommandsApi.js +0 -13
  150. package/lib/esm/store/CommandsApi.js.map +0 -1
  151. package/lib/esm/store/EmbeddingsApi.js +0 -25
  152. package/lib/esm/store/EmbeddingsApi.js.map +0 -1
  153. package/lib/esm/store/FilesApi.js +0 -143
  154. package/lib/esm/store/FilesApi.js.map +0 -1
  155. package/lib/esm/store/ObjectsApi.js +0 -278
  156. package/lib/esm/store/ObjectsApi.js.map +0 -1
  157. package/lib/esm/store/TypesApi.js +0 -53
  158. package/lib/esm/store/TypesApi.js.map +0 -1
  159. package/lib/esm/store/WorkflowsApi.js +0 -408
  160. package/lib/esm/store/WorkflowsApi.js.map +0 -1
  161. package/lib/esm/store/client.js +0 -67
  162. package/lib/esm/store/client.js.map +0 -1
  163. package/lib/esm/store/errors.js +0 -7
  164. package/lib/esm/store/errors.js.map +0 -1
  165. package/lib/esm/store/index.js +0 -6
  166. package/lib/esm/store/index.js.map +0 -1
  167. package/lib/esm/store/version.js +0 -3
  168. package/lib/esm/store/version.js.map +0 -1
  169. package/lib/tsconfig.tsbuildinfo +0 -1
  170. package/lib/types/AccountApi.d.ts +0 -59
  171. package/lib/types/AccountApi.d.ts.map +0 -1
  172. package/lib/types/AccountsApi.d.ts +0 -7
  173. package/lib/types/AccountsApi.d.ts.map +0 -1
  174. package/lib/types/AnalyticsApi.d.ts +0 -6
  175. package/lib/types/AnalyticsApi.d.ts.map +0 -1
  176. package/lib/types/ApiKeysApi.d.ts +0 -42
  177. package/lib/types/ApiKeysApi.d.ts.map +0 -1
  178. package/lib/types/AppsApi.d.ts +0 -65
  179. package/lib/types/AppsApi.d.ts.map +0 -1
  180. package/lib/types/CommandsApi.d.ts +0 -10
  181. package/lib/types/CommandsApi.d.ts.map +0 -1
  182. package/lib/types/EnvironmentsApi.d.ts +0 -30
  183. package/lib/types/EnvironmentsApi.d.ts.map +0 -1
  184. package/lib/types/GroupsApi.d.ts +0 -65
  185. package/lib/types/GroupsApi.d.ts.map +0 -1
  186. package/lib/types/IamApi.d.ts +0 -41
  187. package/lib/types/IamApi.d.ts.map +0 -1
  188. package/lib/types/InteractionBase.d.ts +0 -22
  189. package/lib/types/InteractionBase.d.ts.map +0 -1
  190. package/lib/types/InteractionCatalogApi.d.ts +0 -36
  191. package/lib/types/InteractionCatalogApi.d.ts.map +0 -1
  192. package/lib/types/InteractionOutput.d.ts +0 -174
  193. package/lib/types/InteractionOutput.d.ts.map +0 -1
  194. package/lib/types/InteractionResult.example.d.ts +0 -6
  195. package/lib/types/InteractionResult.example.d.ts.map +0 -1
  196. package/lib/types/InteractionsApi.d.ts +0 -159
  197. package/lib/types/InteractionsApi.d.ts.map +0 -1
  198. package/lib/types/ProjectsApi.d.ts +0 -18
  199. package/lib/types/ProjectsApi.d.ts.map +0 -1
  200. package/lib/types/PromptsApi.d.ts +0 -106
  201. package/lib/types/PromptsApi.d.ts.map +0 -1
  202. package/lib/types/RefsApi.d.ts +0 -6
  203. package/lib/types/RefsApi.d.ts.map +0 -1
  204. package/lib/types/RunsApi.d.ts +0 -79
  205. package/lib/types/RunsApi.d.ts.map +0 -1
  206. package/lib/types/StreamSource.d.ts +0 -7
  207. package/lib/types/StreamSource.d.ts.map +0 -1
  208. package/lib/types/TrainingApi.d.ts +0 -27
  209. package/lib/types/TrainingApi.d.ts.map +0 -1
  210. package/lib/types/UsersApi.d.ts +0 -6
  211. package/lib/types/UsersApi.d.ts.map +0 -1
  212. package/lib/types/client.d.ts +0 -123
  213. package/lib/types/client.d.ts.map +0 -1
  214. package/lib/types/execute.d.ts +0 -37
  215. package/lib/types/execute.d.ts.map +0 -1
  216. package/lib/types/index.d.ts +0 -10
  217. package/lib/types/index.d.ts.map +0 -1
  218. package/lib/types/nodejs/NodeStreamSource.d.ts +0 -9
  219. package/lib/types/nodejs/NodeStreamSource.d.ts.map +0 -1
  220. package/lib/types/nodejs/index.d.ts +0 -1
  221. package/lib/types/nodejs/index.d.ts.map +0 -1
  222. package/lib/types/store/AgentsApi.d.ts +0 -6
  223. package/lib/types/store/AgentsApi.d.ts.map +0 -1
  224. package/lib/types/store/AnalyzeDocApi.d.ts +0 -17
  225. package/lib/types/store/AnalyzeDocApi.d.ts.map +0 -1
  226. package/lib/types/store/CollectionsApi.d.ts +0 -82
  227. package/lib/types/store/CollectionsApi.d.ts.map +0 -1
  228. package/lib/types/store/CommandsApi.d.ts +0 -10
  229. package/lib/types/store/CommandsApi.d.ts.map +0 -1
  230. package/lib/types/store/EmbeddingsApi.d.ts +0 -12
  231. package/lib/types/store/EmbeddingsApi.d.ts.map +0 -1
  232. package/lib/types/store/FilesApi.d.ts +0 -48
  233. package/lib/types/store/FilesApi.d.ts.map +0 -1
  234. package/lib/types/store/ObjectsApi.d.ts +0 -117
  235. package/lib/types/store/ObjectsApi.d.ts.map +0 -1
  236. package/lib/types/store/TypesApi.d.ts +0 -23
  237. package/lib/types/store/TypesApi.d.ts.map +0 -1
  238. package/lib/types/store/WorkflowsApi.d.ts +0 -62
  239. package/lib/types/store/WorkflowsApi.d.ts.map +0 -1
  240. package/lib/types/store/client.d.ts +0 -35
  241. package/lib/types/store/client.d.ts.map +0 -1
  242. package/lib/types/store/errors.d.ts +0 -4
  243. package/lib/types/store/errors.d.ts.map +0 -1
  244. package/lib/types/store/index.d.ts +0 -5
  245. package/lib/types/store/index.d.ts.map +0 -1
  246. package/lib/types/store/version.d.ts +0 -2
  247. package/lib/types/store/version.d.ts.map +0 -1
  248. package/lib/vertesia-client.js +0 -2
  249. package/lib/vertesia-client.js.map +0 -1
  250. package/src/store/AgentsApi.ts +0 -17
@@ -1,27 +0,0 @@
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
- }
@@ -1 +0,0 @@
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"}
@@ -1,6 +0,0 @@
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
- }
@@ -1 +0,0 @@
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"}
@@ -1,123 +0,0 @@
1
- import { AbstractFetchClient } from "@vertesia/api-fetch-client";
2
- import { AuthTokenPayload, 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 AppsApi from "./AppsApi.js";
8
- import CommandsApi from "./CommandsApi.js";
9
- import EnvironmentsApi from "./EnvironmentsApi.js";
10
- import { IamApi } from "./IamApi.js";
11
- import InteractionsApi from "./InteractionsApi.js";
12
- import ProjectsApi from "./ProjectsApi.js";
13
- import PromptsApi from "./PromptsApi.js";
14
- import { RefsApi } from "./RefsApi.js";
15
- import { RunsApi } from "./RunsApi.js";
16
- import { ZenoClient } from "./store/client.js";
17
- import TrainingApi from "./TrainingApi.js";
18
- import UsersApi from "./UsersApi.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
- tokenServerUrl?: string;
36
- apikey?: string;
37
- projectId?: string;
38
- sessionTags?: string | string[];
39
- onRequest?: (request: Request) => void;
40
- onResponse?: (response: Response) => void;
41
- };
42
- export declare class VertesiaClient extends AbstractFetchClient<VertesiaClient> {
43
- /**
44
- * The JWT token linked to the API KEY (sk or pk)
45
- */
46
- _jwt: string | null;
47
- /**
48
- * The store client
49
- */
50
- store: ZenoClient;
51
- /**
52
- * The session name will be sent when executing an interaction as a tag
53
- */
54
- sessionTags?: string | string[];
55
- /**
56
- * tokenServerUrl
57
- */
58
- tokenServerUrl: string;
59
- /**
60
- * Create a client from the given token.
61
- * If you already have the decoded token you can pass it as the second argument to avoid decodinf it again.
62
- *
63
- * @param token the raw JWT token
64
- * @param payload the decoded JWT token as an AuthTokenPayload - optional
65
- */
66
- static fromAuthToken(token: string, payload?: AuthTokenPayload): Promise<VertesiaClient>;
67
- static decodeEndpoints(): void;
68
- constructor(opts?: VertesiaClientProps);
69
- withApiVersion(version: string | number | null): this;
70
- /**
71
- * Overwrite to keep store and composable clients synchronized on the auth callback
72
- * @param authCb
73
- * @returns
74
- */
75
- withAuthCallback(authCb?: (() => Promise<string>) | null): this;
76
- withApiKey(apiKey: string | null): Promise<this>;
77
- getRawJWT(): Promise<string | null>;
78
- getDecodedJWT(): Promise<AuthTokenPayload | null>;
79
- getProject(): Promise<import("@vertesia/common").ProjectRef | null>;
80
- getAccount(): Promise<import("@vertesia/common").AccountRef | null>;
81
- /**
82
- * Alias for store.workflows
83
- */
84
- get workflows(): import("./index.js").WorkflowsApi;
85
- /**
86
- * Alias for store.objects
87
- */
88
- get objects(): import("./index.js").ObjectsApi;
89
- get files(): import("./store/FilesApi.js").FilesApi;
90
- /**
91
- * Alias for store.types
92
- */
93
- get types(): import("./index.js").TypesApi;
94
- get storeUrl(): string;
95
- /**
96
- *
97
- * Generate a token for use with other Vertesia's services
98
- *
99
- * @returns AuthTokenResponse
100
- */
101
- getAuthToken(token?: string): Promise<AuthTokenResponse>;
102
- get initialHeaders(): {
103
- "x-api-version": string;
104
- accept: string;
105
- };
106
- projects: ProjectsApi;
107
- environments: EnvironmentsApi;
108
- interactions: InteractionsApi;
109
- prompts: PromptsApi;
110
- runs: RunsApi;
111
- account: AccountApi;
112
- accounts: AccountsApi;
113
- apikeys: ApiKeysApi;
114
- analytics: AnalyticsApi;
115
- training: TrainingApi;
116
- users: UsersApi;
117
- iam: IamApi;
118
- refs: RefsApi;
119
- commands: CommandsApi;
120
- apps: AppsApi;
121
- }
122
- export declare function decodeJWT(jwt: string): AuthTokenPayload;
123
- export declare function decodeEndpoints(endpoints: string | Record<string, string> | undefined): Record<string, string>;
@@ -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,gBAAgB,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AACvE,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,OAAO,MAAM,cAAc,CAAC;AACnC,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,CAAC;AACzC,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAC/C,OAAO,WAAW,MAAM,kBAAkB,CAAC;AAC3C,OAAO,QAAQ,MAAM,eAAe,CAAC;AASrC,MAAM,MAAM,mBAAmB,GAAG;IAC9B;;;;;;;;;;;OAWG;IACH,IAAI,CAAC,EACC,iBAAiB,GACjB,yBAAyB,GACzB,yBAAyB,CAAC;IAChC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,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,EAAE,MAAM,GAAG,OAAO,CAAC,iBAAiB,CAAC;IAmB9D,IAAI,cAAc;;;MAKjB;IAED,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;IACjC,IAAI,UAAqB;CAC5B;AAiBD,wBAAgB,SAAS,CAAC,GAAG,EAAE,MAAM,GAAG,gBAAgB,CAIvD;AA2BD,wBAAgB,eAAe,CAC3B,SAAS,EAAE,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,SAAS,GACvD,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CASxB"}
@@ -1,37 +0,0 @@
1
- import { AsyncExecutionPayload, InteractionExecutionPayload, InteractionExecutionResult, RateLimitRequestPayload, RateLimitRequestResponse } 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>(client: VertesiaClient, interactionId: string, payload?: InteractionExecutionPayload, onChunk?: (chunk: string) => void): Promise<InteractionExecutionResult<P>>;
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>(client: VertesiaClient, interaction: string, payload?: InteractionExecutionPayload, onChunk?: (chunk: string) => void): Promise<InteractionExecutionResult<P>>;
33
- export declare function executeInteractionAsync(client: VertesiaClient, payload: AsyncExecutionPayload): Promise<{
34
- runId: string;
35
- workflowId: string;
36
- }>;
37
- export declare function checkRateLimit(client: VertesiaClient, payload: RateLimitRequestPayload): Promise<RateLimitRequestResponse>;
@@ -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,uBAAuB,EAAE,wBAAwB,EAAE,MAAM,kBAAkB,CAAC;AAC3N,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,MAAM,EAAE,cAAc,EACpE,aAAa,EAAE,MAAM,EACrB,OAAO,GAAE,2BAAgC,EACzC,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,GAAG,OAAO,CAAC,0BAA0B,CAAC,CAAC,CAAC,CAAC,CAY7E;AAED;;;;;;;;;;;;;;;GAeG;AACH,wBAAsB,wBAAwB,CAAC,CAAC,GAAG,GAAG,EAAE,MAAM,EAAE,cAAc,EAC1E,WAAW,EAAE,MAAM,EACnB,OAAO,GAAE,2BAAgC,EACzC,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,GAAG,OAAO,CAAC,0BAA0B,CAAC,CAAC,CAAC,CAAC,CAgB7E;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;AAED,wBAAsB,cAAc,CAAC,MAAM,EAAE,cAAc,EAAE,OAAO,EAAE,uBAAuB,GAAG,OAAO,CAAC,wBAAwB,CAAC,CAIhI"}
@@ -1,10 +0,0 @@
1
- export * from './client.js';
2
- export * from './InteractionBase.js';
3
- export * from './InteractionOutput.js';
4
- export type { AsyncExecutionResult, ComputeInteractionFacetsResponse } from './InteractionsApi.js';
5
- export type { ComputePromptFacetsResponse, ListInteractionsResponse } from './PromptsApi.js';
6
- export type { ComputeRunFacetsResponse, FilterOption } from './RunsApi.js';
7
- export type { GroupsQueryOptions } from './GroupsApi.js';
8
- export * from "./store/index.js";
9
- export * from "./StreamSource.js";
10
- export type { OrphanedAppInstallation } from "./AppsApi.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,cAAc,wBAAwB,CAAC;AACvC,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,YAAY,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AACzD,cAAc,kBAAkB,CAAC;AACjC,cAAc,mBAAmB,CAAC;AAClC,YAAY,EAAE,uBAAuB,EAAE,MAAM,cAAc,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,82 +0,0 @@
1
- import { ApiTopic, ClientBase } from "@vertesia/api-fetch-client";
2
- import { Collection, CollectionItem, ComplexCollectionSearchQuery, ComplexSearchPayload, ComputeCollectionFacetPayload, ComputeObjectFacetPayload, ContentObjectItem, ContentObjectStatus, CreateCollectionPayload, DynamicCollection } from "@vertesia/common";
3
- import { ComputeFacetsResponse, SearchResponse } from "./ObjectsApi.js";
4
- export declare class CollectionsApi extends ApiTopic {
5
- constructor(parent: ClientBase);
6
- /**
7
- * List collections
8
- * @param payload: CollectionSearchPayload
9
- * @returns CollectionItem[] list of collections
10
- **/
11
- search(payload: ComplexCollectionSearchQuery): Promise<CollectionItem[]>;
12
- /**
13
- * Compute facets for List collections
14
- * @param query: ComputeCollectionFacetPayload
15
- * @returns ComputeFacetsResponse list of facets
16
- **/
17
- computeListFacets(query: ComputeCollectionFacetPayload): Promise<ComputeFacetsResponse>;
18
- /**
19
- * Get the collection data without members
20
- * @param collectionId
21
- * @returns
22
- */
23
- retrieve(collectionId: string): Promise<Collection | DynamicCollection>;
24
- create(payload: CreateCollectionPayload): Promise<Collection>;
25
- update(collectionId: string, payload: Partial<CreateCollectionPayload>): Promise<{
26
- id: string;
27
- }>;
28
- addMembers(collectionId: string, members: string[]): Promise<{
29
- id: string;
30
- }>;
31
- listMembers(collectionId: string, payload: {
32
- limit?: number;
33
- offset?: number;
34
- status?: ContentObjectStatus;
35
- type?: string;
36
- }): Promise<ContentObjectItem[]>;
37
- computeFacets(collectionId: string, query: ComputeObjectFacetPayload): Promise<ComputeFacetsResponse>;
38
- searchMembers(collectionId: string, payload: ComplexSearchPayload): Promise<SearchResponse>;
39
- deleteMembers(collectionId: string, members: string[]): Promise<{
40
- id: string;
41
- }>;
42
- addChildren(collectionId: string, children: string[]): Promise<{
43
- count: number;
44
- }>;
45
- deleteChildren(collectionId: string, children: string[]): Promise<{
46
- count: number;
47
- }>;
48
- searchChildren(collectionId: string, query?: ComplexCollectionSearchQuery): Promise<CollectionItem[]>;
49
- delete(id: string): Promise<any>;
50
- /**
51
- * Update collection permissions and propagate to member objects
52
- * @param collectionId - The collection ID
53
- * @param permissions - Map of permission types to principal arrays
54
- * @returns Object with collection id, updated security, and number of objects updated
55
- */
56
- updatePermissions(collectionId: string, permissions: Record<string, string[]>): Promise<{
57
- id: string;
58
- security: Record<string, string[]>;
59
- }>;
60
- /**
61
- * Manually trigger permission propagation from collection to member objects
62
- * Useful for debugging and fixing permission issues
63
- * @param collectionId - The collection ID
64
- * @returns Object with collection id, message, and number of objects updated
65
- */
66
- propagatePermissions(collectionId: string): Promise<{
67
- id: string;
68
- message: string;
69
- security?: Record<string, string[]>;
70
- }>;
71
- /**
72
- * Manually trigger shared properties propagation from collection to member objects
73
- * Useful for debugging and fixing shared properties issues
74
- * @param collectionId - The collection ID
75
- * @returns Object with collection id, message, and number of objects updated
76
- */
77
- propagateSharedProperties(collectionId: string): Promise<{
78
- id: string;
79
- message: string;
80
- shared_properties: string[];
81
- }>;
82
- }
@@ -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,4BAA4B,EAAE,oBAAoB,EAAE,6BAA6B,EAAE,yBAAyB,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,uBAAuB,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAChQ,OAAO,EAAE,qBAAqB,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAGxE,qBAAa,cAAe,SAAQ,QAAQ;gBAE5B,MAAM,EAAE,UAAU;IAI9B;;;;OAIG;IACH,MAAM,CAAC,OAAO,EAAE,4BAA4B,GAAG,OAAO,CAAC,cAAc,EAAE,CAAC;IAIxE;;;;OAIG;IACH,iBAAiB,CAAC,KAAK,EAAE,6BAA6B,GAAG,OAAO,CAAC,qBAAqB,CAAC;IAMvF;;;;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;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,MAAM,CAAC;QACX,OAAO,EAAE,MAAM,CAAC;QAChB,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC,CAAC;KACvC,CAAC;IAIF;;;;;OAKG;IACH,yBAAyB,CAAC,YAAY,EAAE,MAAM,GAAG,OAAO,CAAC;QACrD,EAAE,EAAE,MAAM,CAAC;QACX,OAAO,EAAE,MAAM,CAAC;QAChB,iBAAiB,EAAE,MAAM,EAAE,CAAA;KAC9B,CAAC;CAKL"}
@@ -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,48 +0,0 @@
1
- import { ApiTopic, ClientBase } from "@vertesia/api-fetch-client";
2
- import { GetFileUrlPayload, 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
- deleteFile(path: string, prefix?: boolean): Promise<void | number>;
9
- /**
10
- * get the metadata of a blob given its URI. Supported URI are:
11
- * starting with s3:// and gs://.
12
- * For s3 blobs use #region to specify the region. Ex: s3://bucket/key#us-west-2
13
- * @param uri
14
- * @returns
15
- */
16
- getMetadata(uri: string): Promise<{
17
- name: string;
18
- size: number;
19
- contentType: string;
20
- contentDisposition?: string;
21
- etag?: string;
22
- }>;
23
- /**
24
- * Get or create a bucket for the project. If the bucket already exists, it does nothing.
25
- * The bucket URI is returned.
26
- * @returns
27
- */
28
- getOrCreateBucket(): Promise<{
29
- bucket: string;
30
- }>;
31
- getUploadUrl(payload: GetUploadUrlPayload): Promise<GetFileUrlResponse>;
32
- getDownloadUrl(file: string, name?: string, disposition?: "inline" | "attachment"): Promise<GetFileUrlResponse>;
33
- getDownloadUrlWithOptions(payload: GetFileUrlPayload): Promise<GetFileUrlResponse>;
34
- /**
35
- * Upload content to a file and return the full path (including bucket name) of the uploaded file
36
- * @param source
37
- * @returns
38
- */
39
- uploadFile(source: StreamSource | File): Promise<string>;
40
- /**
41
- *
42
- * @param location can be a relative path in the project, a reference to a cloud storage, or a accessible HTTPS URL (typically signed URL)
43
- * @returns ReadableStream
44
- */
45
- downloadFile(location: string): Promise<ReadableStream<Uint8Array<ArrayBuffer>>>;
46
- uploadMemoryPack(source: StreamSource | File): Promise<string>;
47
- downloadMemoryPack(name: string, gunzip?: boolean): Promise<ReadableStream<Uint8Array>>;
48
- }
@@ -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,EACH,iBAAiB,EACjB,kBAAkB,EAClB,mBAAmB,EACtB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAElD,eAAO,MAAM,eAAe,aAAa,CAAC;AAE1C,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,MAAM,UAG7C;AAED,qBAAa,QAAS,SAAQ,QAAQ;gBACtB,MAAM,EAAE,UAAU;IAIxB,UAAU,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC,IAAI,GAAG,MAAM,CAAC;IAKxE;;;;;;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,EAAE,MAAM,CAAC;QAC5B,IAAI,CAAC,EAAE,MAAM,CAAC;KACjB,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;IAOvE,cAAc,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,MAAM,EAAE,WAAW,CAAC,EAAE,QAAQ,GAAG,YAAY,GAAG,OAAO,CAAC,kBAAkB,CAAC;IAK/G,yBAAyB,CAAC,OAAO,EAAE,iBAAiB,GAAG,OAAO,CAAC,kBAAkB,CAAC;IAIlF;;;;OAIG;IACG,UAAU,CAAC,MAAM,EAAE,YAAY,GAAG,IAAI,GAAG,OAAO,CAAC,MAAM,CAAC;IA6B9D;;;;OAIG;IACG,YAAY,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,cAAc,CAAC,UAAU,CAAC,WAAW,CAAC,CAAC,CAAC;IAsChF,gBAAgB,CAAC,MAAM,EAAE,YAAY,GAAG,IAAI,GAAG,OAAO,CAAC,MAAM,CAAC;IAsB9D,kBAAkB,CACpB,IAAI,EAAE,MAAM,EACZ,MAAM,GAAE,OAAe,GACxB,OAAO,CAAC,cAAc,CAAC,UAAU,CAAC,CAAC;CAQzC"}
@@ -1,117 +0,0 @@
1
- import { ApiTopic, ClientBase } from "@vertesia/api-fetch-client";
2
- import { ComplexSearchPayload, ComputeObjectFacetPayload, ContentObject, ContentObjectItem, ContentObjectProcessingPriority, ContentSource, CreateContentObjectPayload, Embedding, ExportPropertiesPayload, ExportPropertiesResponse, FindPayload, GetFileUrlPayload, GetFileUrlResponse, GetRenditionParams, GetRenditionResponse, GetUploadUrlPayload, ListWorkflowRunsResponse, ObjectSearchPayload, SupportedEmbeddingTypes } from "@vertesia/common";
3
- import { StreamSource } from "../StreamSource.js";
4
- import { AnalyzeDocApi } from "./AnalyzeDocApi.js";
5
- export interface ComputeFacetsResponse {
6
- type?: {
7
- _id: string;
8
- count: number;
9
- }[];
10
- location?: {
11
- _id: string;
12
- count: number;
13
- }[];
14
- status?: {
15
- _id: string;
16
- count: number;
17
- }[];
18
- total?: number;
19
- }
20
- export interface SearchResponse {
21
- results: ContentObjectItem[];
22
- facets: ComputeFacetsResponse;
23
- }
24
- export declare class ObjectsApi extends ApiTopic {
25
- constructor(parent: ClientBase);
26
- analyze(objectId: string): AnalyzeDocApi;
27
- getUploadUrl(payload: GetUploadUrlPayload): Promise<GetFileUrlResponse>;
28
- getDownloadUrl(fileUri: string, name?: string, disposition?: "inline" | "attachment"): Promise<{
29
- url: string;
30
- }>;
31
- getDownloadUrlWithOptions(payload: GetFileUrlPayload): Promise<{
32
- url: string;
33
- }>;
34
- getContentSource(objectId: string): Promise<ContentSource>;
35
- /**
36
- * List objects with revision filtering options
37
- *
38
- * @param payload Search/filter parameters
39
- * @returns Matching content objects
40
- */
41
- list<T = any>(payload?: ObjectSearchPayload): Promise<ContentObjectItem<T>[]>;
42
- computeFacets(query: ComputeObjectFacetPayload): Promise<ComputeFacetsResponse>;
43
- listFolders(path?: string): void;
44
- /** Find object based on query */
45
- find(payload: FindPayload): Promise<ContentObject[]>;
46
- /** Count number of objects matching this query */
47
- count(payload: FindPayload): Promise<{
48
- count: number;
49
- }>;
50
- /** Search object — different from find because allow full text search */
51
- search(payload: ComplexSearchPayload): Promise<SearchResponse>;
52
- retrieve(id: string, select?: string): Promise<ContentObject>;
53
- getObjectText(id: string): Promise<{
54
- text: string;
55
- }>;
56
- upload(source: StreamSource | File): Promise<{
57
- source: string;
58
- name: string;
59
- type: string;
60
- etag: string | undefined;
61
- }>;
62
- create(payload: CreateContentObjectPayload, options?: {
63
- collection_id?: string;
64
- processing_priority?: ContentObjectProcessingPriority;
65
- }): Promise<ContentObject>;
66
- /**
67
- * Create an object which holds a reference to an external blob (i.e. not in the project bucket)
68
- * The uri should starts either with gs:// or s3://. Not other protocols are supported yet.
69
- * For the s3 blobs you must use a hash with the blob #region. Ex: s3://bucket/path/to/file#us-east-1
70
- * @param uri
71
- * @param payload
72
- * @param options
73
- * @returns
74
- */
75
- createFromExternalSource(uri: string, payload?: CreateContentObjectPayload, options?: {
76
- collection_id?: string;
77
- processing_priority?: ContentObjectProcessingPriority;
78
- }): Promise<ContentObject>;
79
- /**
80
- * Updates an existing object or creates a new revision
81
- * Handles file uploads similar to the create method
82
- *
83
- * @param id The ID of the object to update
84
- * @param payload The changes to apply
85
- * @param options Additional options
86
- * @param options.createRevision Whether to create a new revision instead of updating in place
87
- * @param options.revisionLabel Optional label for the revision (e.g., "v1.2")
88
- * @returns The updated object or newly created revision
89
- */
90
- update(id: string, payload: Partial<CreateContentObjectPayload>, options?: {
91
- createRevision?: boolean;
92
- revisionLabel?: string;
93
- processing_priority?: ContentObjectProcessingPriority;
94
- }): Promise<ContentObject>;
95
- /**
96
- * Retrieves all revisions of a content object
97
- *
98
- * @param id The ID of any revision in the object's history
99
- * @returns Array of all revisions sharing the same root
100
- */
101
- getRevisions(id: string): Promise<ContentObjectItem[]>;
102
- /**
103
- * Retrieves all collections that contain a specific object
104
- *
105
- * @param id The ID of the object
106
- * @returns Array of collections containing this object (both static and dynamic)
107
- */
108
- getCollections(id: string): Promise<any[]>;
109
- delete(id: string): Promise<{
110
- id: string;
111
- }>;
112
- listWorkflowRuns(documentId: string): Promise<ListWorkflowRunsResponse>;
113
- listRenditions(documentId: string): Promise<ContentObjectItem[]>;
114
- getRendition(documentId: string, options: GetRenditionParams): Promise<GetRenditionResponse>;
115
- exportProperties(payload: ExportPropertiesPayload): Promise<ExportPropertiesResponse>;
116
- setEmbedding(id: string, type: SupportedEmbeddingTypes, payload: Embedding): Promise<Record<SupportedEmbeddingTypes, Embedding>>;
117
- }
@@ -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,EAEH,oBAAoB,EACpB,yBAAyB,EACzB,aAAa,EACb,iBAAiB,EACjB,+BAA+B,EAC/B,aAAa,EACb,0BAA0B,EAC1B,SAAS,EACT,uBAAuB,EACvB,wBAAwB,EACxB,WAAW,EACX,iBAAiB,EACjB,kBAAkB,EAClB,kBAAkB,EAClB,oBAAoB,EACpB,mBAAmB,EACnB,wBAAwB,EACxB,mBAAmB,EAEnB,uBAAuB,EAC1B,MAAM,kBAAkB,CAAC;AAE1B,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAClD,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAGnD,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,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;IAC5C,MAAM,CAAC,EAAE;QAAE,GAAG,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;IAC1C,KAAK,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,cAAc;IAC3B,OAAO,EAAE,iBAAiB,EAAE,CAAC;IAC7B,MAAM,EAAE,qBAAqB,CAAC;CACjC;AAED,qBAAa,UAAW,SAAQ,QAAQ;gBACxB,MAAM,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AO,EAAE,uBAAuB,GACjC,OAAO,CAAC,wBAAwB,CAAC;IAMpC,YAAY,CACR,EAAE,EAAE,MAAM,EACV,IAAI,EAAE,uBAAuB,EAC7B,OAAO,EAAE,SAAS,GACnB,OAAO,CAAC,MAAM,CAAC,uBAAuB,EAAE,SAAS,CAAC,CAAC;CAKzD"}
@@ -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"}