@vertesia/client 0.77.0 → 0.78.0-dev-28b447d

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 (226) hide show
  1. package/package.json +59 -54
  2. package/src/AppsApi.ts +10 -1
  3. package/src/InteractionBase.ts +3 -3
  4. package/src/InteractionsApi.ts +19 -9
  5. package/src/RunsApi.ts +9 -2
  6. package/src/client.test.ts +2 -0
  7. package/src/client.ts +134 -56
  8. package/src/execute.ts +11 -5
  9. package/src/store/FilesApi.ts +2 -2
  10. package/src/store/ObjectsApi.ts +40 -13
  11. package/src/store/WorkflowsApi.ts +166 -0
  12. package/src/store/client.ts +8 -0
  13. package/lib/cjs/AccountApi.js +0 -85
  14. package/lib/cjs/AccountApi.js.map +0 -1
  15. package/lib/cjs/AccountsApi.js +0 -16
  16. package/lib/cjs/AccountsApi.js.map +0 -1
  17. package/lib/cjs/AnalyticsApi.js +0 -13
  18. package/lib/cjs/AnalyticsApi.js.map +0 -1
  19. package/lib/cjs/ApiKeysApi.js +0 -63
  20. package/lib/cjs/ApiKeysApi.js.map +0 -1
  21. package/lib/cjs/AppsApi.js +0 -111
  22. package/lib/cjs/AppsApi.js.map +0 -1
  23. package/lib/cjs/CommandsApi.js +0 -19
  24. package/lib/cjs/CommandsApi.js.map +0 -1
  25. package/lib/cjs/EnvironmentsApi.js +0 -58
  26. package/lib/cjs/EnvironmentsApi.js.map +0 -1
  27. package/lib/cjs/GroupsApi.js +0 -78
  28. package/lib/cjs/GroupsApi.js.map +0 -1
  29. package/lib/cjs/IamApi.js +0 -53
  30. package/lib/cjs/IamApi.js.map +0 -1
  31. package/lib/cjs/InteractionBase.js +0 -44
  32. package/lib/cjs/InteractionBase.js.map +0 -1
  33. package/lib/cjs/InteractionsApi.js +0 -209
  34. package/lib/cjs/InteractionsApi.js.map +0 -1
  35. package/lib/cjs/ProjectsApi.js +0 -48
  36. package/lib/cjs/ProjectsApi.js.map +0 -1
  37. package/lib/cjs/PromptsApi.js +0 -133
  38. package/lib/cjs/PromptsApi.js.map +0 -1
  39. package/lib/cjs/RefsApi.js +0 -14
  40. package/lib/cjs/RefsApi.js.map +0 -1
  41. package/lib/cjs/RunsApi.js +0 -105
  42. package/lib/cjs/RunsApi.js.map +0 -1
  43. package/lib/cjs/StreamSource.js +0 -17
  44. package/lib/cjs/StreamSource.js.map +0 -1
  45. package/lib/cjs/TrainingApi.js +0 -54
  46. package/lib/cjs/TrainingApi.js.map +0 -1
  47. package/lib/cjs/UsersApi.js +0 -13
  48. package/lib/cjs/UsersApi.js.map +0 -1
  49. package/lib/cjs/client.js +0 -263
  50. package/lib/cjs/client.js.map +0 -1
  51. package/lib/cjs/execute.js +0 -152
  52. package/lib/cjs/execute.js.map +0 -1
  53. package/lib/cjs/index.js +0 -21
  54. package/lib/cjs/index.js.map +0 -1
  55. package/lib/cjs/nodejs/NodeStreamSource.js +0 -45
  56. package/lib/cjs/nodejs/NodeStreamSource.js.map +0 -1
  57. package/lib/cjs/nodejs/index.js +0 -18
  58. package/lib/cjs/nodejs/index.js.map +0 -1
  59. package/lib/cjs/package.json +0 -3
  60. package/lib/cjs/store/AgentsApi.js +0 -16
  61. package/lib/cjs/store/AgentsApi.js.map +0 -1
  62. package/lib/cjs/store/AnalyzeDocApi.js +0 -56
  63. package/lib/cjs/store/AnalyzeDocApi.js.map +0 -1
  64. package/lib/cjs/store/CollectionsApi.js +0 -101
  65. package/lib/cjs/store/CollectionsApi.js.map +0 -1
  66. package/lib/cjs/store/CommandsApi.js +0 -17
  67. package/lib/cjs/store/CommandsApi.js.map +0 -1
  68. package/lib/cjs/store/EmbeddingsApi.js +0 -29
  69. package/lib/cjs/store/EmbeddingsApi.js.map +0 -1
  70. package/lib/cjs/store/FilesApi.js +0 -147
  71. package/lib/cjs/store/FilesApi.js.map +0 -1
  72. package/lib/cjs/store/ObjectsApi.js +0 -264
  73. package/lib/cjs/store/ObjectsApi.js.map +0 -1
  74. package/lib/cjs/store/TypesApi.js +0 -57
  75. package/lib/cjs/store/TypesApi.js.map +0 -1
  76. package/lib/cjs/store/WorkflowsApi.js +0 -265
  77. package/lib/cjs/store/WorkflowsApi.js.map +0 -1
  78. package/lib/cjs/store/client.js +0 -55
  79. package/lib/cjs/store/client.js.map +0 -1
  80. package/lib/cjs/store/errors.js +0 -11
  81. package/lib/cjs/store/errors.js.map +0 -1
  82. package/lib/cjs/store/index.js +0 -22
  83. package/lib/cjs/store/index.js.map +0 -1
  84. package/lib/esm/AccountApi.js +0 -82
  85. package/lib/esm/AccountApi.js.map +0 -1
  86. package/lib/esm/AccountsApi.js +0 -13
  87. package/lib/esm/AccountsApi.js.map +0 -1
  88. package/lib/esm/AnalyticsApi.js +0 -10
  89. package/lib/esm/AnalyticsApi.js.map +0 -1
  90. package/lib/esm/ApiKeysApi.js +0 -59
  91. package/lib/esm/ApiKeysApi.js.map +0 -1
  92. package/lib/esm/AppsApi.js +0 -108
  93. package/lib/esm/AppsApi.js.map +0 -1
  94. package/lib/esm/CommandsApi.js +0 -16
  95. package/lib/esm/CommandsApi.js.map +0 -1
  96. package/lib/esm/EnvironmentsApi.js +0 -55
  97. package/lib/esm/EnvironmentsApi.js.map +0 -1
  98. package/lib/esm/GroupsApi.js +0 -74
  99. package/lib/esm/GroupsApi.js.map +0 -1
  100. package/lib/esm/IamApi.js +0 -47
  101. package/lib/esm/IamApi.js.map +0 -1
  102. package/lib/esm/InteractionBase.js +0 -40
  103. package/lib/esm/InteractionBase.js.map +0 -1
  104. package/lib/esm/InteractionsApi.js +0 -206
  105. package/lib/esm/InteractionsApi.js.map +0 -1
  106. package/lib/esm/ProjectsApi.js +0 -45
  107. package/lib/esm/ProjectsApi.js.map +0 -1
  108. package/lib/esm/PromptsApi.js +0 -130
  109. package/lib/esm/PromptsApi.js.map +0 -1
  110. package/lib/esm/RefsApi.js +0 -10
  111. package/lib/esm/RefsApi.js.map +0 -1
  112. package/lib/esm/RunsApi.js +0 -101
  113. package/lib/esm/RunsApi.js.map +0 -1
  114. package/lib/esm/StreamSource.js +0 -13
  115. package/lib/esm/StreamSource.js.map +0 -1
  116. package/lib/esm/TrainingApi.js +0 -51
  117. package/lib/esm/TrainingApi.js.map +0 -1
  118. package/lib/esm/UsersApi.js +0 -10
  119. package/lib/esm/UsersApi.js.map +0 -1
  120. package/lib/esm/client.js +0 -254
  121. package/lib/esm/client.js.map +0 -1
  122. package/lib/esm/execute.js +0 -113
  123. package/lib/esm/execute.js.map +0 -1
  124. package/lib/esm/index.js +0 -5
  125. package/lib/esm/index.js.map +0 -1
  126. package/lib/esm/nodejs/NodeStreamSource.js +0 -41
  127. package/lib/esm/nodejs/NodeStreamSource.js.map +0 -1
  128. package/lib/esm/nodejs/index.js +0 -2
  129. package/lib/esm/nodejs/index.js.map +0 -1
  130. package/lib/esm/store/AgentsApi.js +0 -12
  131. package/lib/esm/store/AgentsApi.js.map +0 -1
  132. package/lib/esm/store/AnalyzeDocApi.js +0 -52
  133. package/lib/esm/store/AnalyzeDocApi.js.map +0 -1
  134. package/lib/esm/store/CollectionsApi.js +0 -97
  135. package/lib/esm/store/CollectionsApi.js.map +0 -1
  136. package/lib/esm/store/CommandsApi.js +0 -13
  137. package/lib/esm/store/CommandsApi.js.map +0 -1
  138. package/lib/esm/store/EmbeddingsApi.js +0 -25
  139. package/lib/esm/store/EmbeddingsApi.js.map +0 -1
  140. package/lib/esm/store/FilesApi.js +0 -142
  141. package/lib/esm/store/FilesApi.js.map +0 -1
  142. package/lib/esm/store/ObjectsApi.js +0 -260
  143. package/lib/esm/store/ObjectsApi.js.map +0 -1
  144. package/lib/esm/store/TypesApi.js +0 -53
  145. package/lib/esm/store/TypesApi.js.map +0 -1
  146. package/lib/esm/store/WorkflowsApi.js +0 -259
  147. package/lib/esm/store/WorkflowsApi.js.map +0 -1
  148. package/lib/esm/store/client.js +0 -51
  149. package/lib/esm/store/client.js.map +0 -1
  150. package/lib/esm/store/errors.js +0 -7
  151. package/lib/esm/store/errors.js.map +0 -1
  152. package/lib/esm/store/index.js +0 -6
  153. package/lib/esm/store/index.js.map +0 -1
  154. package/lib/tsconfig.tsbuildinfo +0 -1
  155. package/lib/types/AccountApi.d.ts +0 -59
  156. package/lib/types/AccountApi.d.ts.map +0 -1
  157. package/lib/types/AccountsApi.d.ts +0 -7
  158. package/lib/types/AccountsApi.d.ts.map +0 -1
  159. package/lib/types/AnalyticsApi.d.ts +0 -6
  160. package/lib/types/AnalyticsApi.d.ts.map +0 -1
  161. package/lib/types/ApiKeysApi.d.ts +0 -42
  162. package/lib/types/ApiKeysApi.d.ts.map +0 -1
  163. package/lib/types/AppsApi.d.ts +0 -59
  164. package/lib/types/AppsApi.d.ts.map +0 -1
  165. package/lib/types/CommandsApi.d.ts +0 -10
  166. package/lib/types/CommandsApi.d.ts.map +0 -1
  167. package/lib/types/EnvironmentsApi.d.ts +0 -30
  168. package/lib/types/EnvironmentsApi.d.ts.map +0 -1
  169. package/lib/types/GroupsApi.d.ts +0 -65
  170. package/lib/types/GroupsApi.d.ts.map +0 -1
  171. package/lib/types/IamApi.d.ts +0 -41
  172. package/lib/types/IamApi.d.ts.map +0 -1
  173. package/lib/types/InteractionBase.d.ts +0 -22
  174. package/lib/types/InteractionBase.d.ts.map +0 -1
  175. package/lib/types/InteractionsApi.d.ts +0 -150
  176. package/lib/types/InteractionsApi.d.ts.map +0 -1
  177. package/lib/types/ProjectsApi.d.ts +0 -17
  178. package/lib/types/ProjectsApi.d.ts.map +0 -1
  179. package/lib/types/PromptsApi.d.ts +0 -106
  180. package/lib/types/PromptsApi.d.ts.map +0 -1
  181. package/lib/types/RefsApi.d.ts +0 -6
  182. package/lib/types/RefsApi.d.ts.map +0 -1
  183. package/lib/types/RunsApi.d.ts +0 -77
  184. package/lib/types/RunsApi.d.ts.map +0 -1
  185. package/lib/types/StreamSource.d.ts +0 -7
  186. package/lib/types/StreamSource.d.ts.map +0 -1
  187. package/lib/types/TrainingApi.d.ts +0 -27
  188. package/lib/types/TrainingApi.d.ts.map +0 -1
  189. package/lib/types/UsersApi.d.ts +0 -6
  190. package/lib/types/UsersApi.d.ts.map +0 -1
  191. package/lib/types/client.d.ts +0 -114
  192. package/lib/types/client.d.ts.map +0 -1
  193. package/lib/types/execute.d.ts +0 -36
  194. package/lib/types/execute.d.ts.map +0 -1
  195. package/lib/types/index.d.ts +0 -8
  196. package/lib/types/index.d.ts.map +0 -1
  197. package/lib/types/nodejs/NodeStreamSource.d.ts +0 -9
  198. package/lib/types/nodejs/NodeStreamSource.d.ts.map +0 -1
  199. package/lib/types/nodejs/index.d.ts +0 -1
  200. package/lib/types/nodejs/index.d.ts.map +0 -1
  201. package/lib/types/store/AgentsApi.d.ts +0 -6
  202. package/lib/types/store/AgentsApi.d.ts.map +0 -1
  203. package/lib/types/store/AnalyzeDocApi.d.ts +0 -17
  204. package/lib/types/store/AnalyzeDocApi.d.ts.map +0 -1
  205. package/lib/types/store/CollectionsApi.d.ts +0 -66
  206. package/lib/types/store/CollectionsApi.d.ts.map +0 -1
  207. package/lib/types/store/CommandsApi.d.ts +0 -10
  208. package/lib/types/store/CommandsApi.d.ts.map +0 -1
  209. package/lib/types/store/EmbeddingsApi.d.ts +0 -12
  210. package/lib/types/store/EmbeddingsApi.d.ts.map +0 -1
  211. package/lib/types/store/FilesApi.d.ts +0 -47
  212. package/lib/types/store/FilesApi.d.ts.map +0 -1
  213. package/lib/types/store/ObjectsApi.d.ts +0 -120
  214. package/lib/types/store/ObjectsApi.d.ts.map +0 -1
  215. package/lib/types/store/TypesApi.d.ts +0 -23
  216. package/lib/types/store/TypesApi.d.ts.map +0 -1
  217. package/lib/types/store/WorkflowsApi.d.ts +0 -50
  218. package/lib/types/store/WorkflowsApi.d.ts.map +0 -1
  219. package/lib/types/store/client.d.ts +0 -29
  220. package/lib/types/store/client.d.ts.map +0 -1
  221. package/lib/types/store/errors.d.ts +0 -4
  222. package/lib/types/store/errors.d.ts.map +0 -1
  223. package/lib/types/store/index.d.ts +0 -5
  224. package/lib/types/store/index.d.ts.map +0 -1
  225. package/lib/vertesia-client.js +0 -2
  226. package/lib/vertesia-client.js.map +0 -1
@@ -1,77 +0,0 @@
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
- }
@@ -1 +0,0 @@
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,MA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amSource {
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
- }
@@ -1 +0,0 @@
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"}
@@ -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,114 +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
- 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
- /**
55
- * Create a client from the given token.
56
- * If you already have the decoded token you can pass it as the second argument to avoid decodinf it again.
57
- *
58
- * @param token the raw JWT token
59
- * @param payload the decoded JWT token as an AuthTokenPayload - optional
60
- */
61
- static fromAuthToken(token: string, payload?: AuthTokenPayload): Promise<VertesiaClient>;
62
- static decodeEndpoints(): void;
63
- constructor(opts?: VertesiaClientProps);
64
- /**
65
- * Overwrite to keep store and composable clients synchronized on the auth callback
66
- * @param authCb
67
- * @returns
68
- */
69
- withAuthCallback(authCb?: (() => Promise<string>) | null): this;
70
- withApiKey(apiKey: string | null): Promise<this>;
71
- getRawJWT(): Promise<string | null>;
72
- getDecodedJWT(): Promise<AuthTokenPayload | null>;
73
- getProject(): Promise<import("@vertesia/common").ProjectRef | null>;
74
- getAccount(): Promise<import("@vertesia/common").AccountRef | null>;
75
- /**
76
- * Alias for store.workflows
77
- */
78
- get workflows(): import("./index.js").WorkflowsApi;
79
- /**
80
- * Alias for store.objects
81
- */
82
- get objects(): import("./index.js").ObjectsApi;
83
- get files(): import("./store/FilesApi.js").FilesApi;
84
- /**
85
- * Alias for store.types
86
- */
87
- get types(): import("./index.js").TypesApi;
88
- get storeUrl(): string;
89
- /**
90
- *
91
- * Generate a token for use with other Composable's services
92
- *
93
- * @param accountId: selected account to generate the token for
94
- * @returns AuthTokenResponse
95
- */
96
- getAuthToken(token?: string, accountId?: string): Promise<AuthTokenResponse>;
97
- projects: ProjectsApi;
98
- environments: EnvironmentsApi;
99
- interactions: InteractionsApi;
100
- prompts: PromptsApi;
101
- runs: RunsApi;
102
- account: AccountApi;
103
- accounts: AccountsApi;
104
- apikeys: ApiKeysApi;
105
- analytics: AnalyticsApi;
106
- training: TrainingApi;
107
- users: UsersApi;
108
- iam: IamApi;
109
- refs: RefsApi;
110
- commands: CommandsApi;
111
- apps: AppsApi;
112
- }
113
- export declare function decodeJWT(jwt: string): AuthTokenPayload;
114
- 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,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ractionExecutionPayload, 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
- }>;
@@ -1 +0,0 @@
1
- {"version":3,"file":"execute.d.ts","sourceRoot":"","sources":["../../src/execute.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAsB,2BAA2B,EAAE,0BAA0B,EAAoC,MAAM,kBAAkB,CAAC;AACxK,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAE7C,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"}
@@ -1,8 +0,0 @@
1
- export * from './client.js';
2
- export * from './InteractionBase.js';
3
- export type { AsyncExecutionResult, ComputeInteractionFacetsResponse } from './InteractionsApi.js';
4
- export type { ComputePromptFacetsResponse, ListInteractionsResponse } from './PromptsApi.js';
5
- export type { ComputeRunFacetsResponse, FilterOption } from './RunsApi.js';
6
- export type { GroupsQueryOptions } from './GroupsApi.js';
7
- export * from "./store/index.js";
8
- export * from "./StreamSource.js";
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,sBAAsB,CAAC;AACrC,YAAY,EAAE,oBAAoB,EAAE,gCAAgC,EAAE,MAAM,sBAAsB,CAAC;AACnG,YAAY,EAAE,2BAA2B,EAAE,wBAAwB,EAAE,MAAM,iBAAiB,CAAC;AAC7F,YAAY,EAAE,wBAAwB,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAC3E,YAAY,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AACzD,cAAc,kBAAkB,CAAC;AACjC,cAAc,mBAAmB,CAAC"}
@@ -1,9 +0,0 @@
1
- import type { Readable } from "node:stream";
2
- import { StreamSource } from "../StreamSource.js";
3
- /**
4
- * A stream source that wraps a Node.js Readable stream.
5
- * This class is only works in Node.js environments.
6
- */
7
- export declare class NodeStreamSource extends StreamSource {
8
- constructor(stream: Readable, name: string, type?: string, id?: string);
9
- }
@@ -1 +0,0 @@
1
- {"version":3,"file":"NodeStreamSource.d.ts","sourceRoot":"","sources":["../../../src/nodejs/NodeStreamSource.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAE5C,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAGlD;;;GAGG;AACH,qBAAa,gBAAiB,SAAQ,YAAY;gBAClC,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,MAAM,EAAE,EAAE,CAAC,EAAE,MAAM;CAGzE"}
@@ -1 +0,0 @@
1
- export * from "./NodeStreamSource.js";
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/nodejs/index.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAC"}
@@ -1,6 +0,0 @@
1
- import { ApiTopic, ClientBase } from "@vertesia/api-fetch-client";
2
- import { CreateAgentDeploymentRequest } from "@vertesia/common";
3
- export declare class AgentsApi extends ApiTopic {
4
- constructor(parent: ClientBase);
5
- deploy(payload: CreateAgentDeploymentRequest): Promise<void>;
6
- }
@@ -1 +0,0 @@
1
- {"version":3,"file":"AgentsApi.d.ts","sourceRoot":"","sources":["../../../src/store/AgentsApi.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;AAClE,OAAO,EAAE,4BAA4B,EAAE,MAAM,kBAAkB,CAAC;AAGhE,qBAAa,SAAU,SAAQ,QAAQ;gBAEvB,MAAM,EAAE,UAAU;IAIxB,MAAM,CAAC,OAAO,EAAE,4BAA4B,GAAG,OAAO,CAAC,IAAI,CAAC;CAMrE"}
@@ -1,17 +0,0 @@
1
- import { ApiTopic, ClientBase } from "@vertesia/api-fetch-client";
2
- import { AdaptedTable, AdaptTablesRequest, DocAnalyzerResultResponse, DocAnalyzeRunStatusResponse, DocImage, DocTableCsv, DocTableJson, ExportTableFormats, GetAdaptedTablesRequestQuery, PdfToRichtextOptions, WorkflowRunStatus } from "@vertesia/common";
3
- export declare class AnalyzeDocApi extends ApiTopic {
4
- objectId: string;
5
- constructor(parent: ClientBase, objectId: string);
6
- start(payload: PdfToRichtextOptions): Promise<DocAnalyzeRunStatusResponse>;
7
- getStatus(): Promise<DocAnalyzeRunStatusResponse>;
8
- getResults(): Promise<DocAnalyzerResultResponse>;
9
- adaptTables(payload: AdaptTablesRequest): Promise<WorkflowRunStatus>;
10
- getAdaptedTables(runId?: string, query?: GetAdaptedTablesRequestQuery): Promise<Record<number, AdaptedTable>>;
11
- getXml(): Promise<string>;
12
- getTables(format?: ExportTableFormats): Promise<DocTableCsv[] | DocTableJson[]>;
13
- getImages(): Promise<DocImage[]>;
14
- getAnnotated(): Promise<{
15
- url: string;
16
- }>;
17
- }
@@ -1 +0,0 @@
1
- {"version":3,"file":"AnalyzeDocApi.d.ts","sourceRoot":"","sources":["../../../src/store/AnalyzeDocApi.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;AAClE,OAAO,EAAE,YAAY,EAAE,kBAAkB,EAAE,yBAAyB,EAAE,2BAA2B,EAAE,QAAQ,EAAE,WAAW,EAAE,YAAY,EAAE,kBAAkB,EAAE,4BAA4B,EAAE,oBAAoB,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAE5P,qBAAa,aAAc,SAAQ,QAAQ;IACA,QAAQ,EAAE,MAAM;gBAA3C,MAAM,EAAE,UAAU,EAAS,QAAQ,EAAE,MAAM;IAIjD,KAAK,CAAC,OAAO,EAAE,oBAAoB,GAAG,OAAO,CAAC,2BAA2B,CAAC;IAI1E,SAAS,IAAI,OAAO,CAAC,2BAA2B,CAAC;IAIjD,UAAU,IAAI,OAAO,CAAC,yBAAyB,CAAC;IAIhD,WAAW,CAAC,OAAO,EAAE,kBAAkB,GAAG,OAAO,CAAC,iBAAiB,CAAC;IAIpE,gBAAgB,CAAC,KAAK,CAAC,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,4BAA4B,GAAG,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,YAAY,CAAC,CAAC;IAiB7G,MAAM,IAAI,OAAO,CAAC,MAAM,CAAC;IAIzB,SAAS,CAAC,MAAM,CAAC,EAAE,kBAAkB,GAAG,OAAO,CAAC,WAAW,EAAE,GAAG,YAAY,EAAE,CAAC;IAQ/E,SAAS,IAAI,OAAO,CAAC,QAAQ,EAAE,CAAC;IAIhC,YAAY,IAAI,OAAO,CAAC;QAAE,GAAG,EAAE,MAAM,CAAA;KAAE,CAAC;CAGjD"}
@@ -1,66 +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
- delete(id: string): Promise<any>;
43
- /**
44
- * Update collection permissions and propagate to member objects
45
- * @param collectionId - The collection ID
46
- * @param permissions - Map of permission types to principal arrays
47
- * @returns Object with collection id, updated security, and number of objects updated
48
- */
49
- updatePermissions(collectionId: string, permissions: Record<string, string[]>): Promise<{
50
- id: string;
51
- security: Record<string, string[]>;
52
- objectsUpdated: number;
53
- }>;
54
- /**
55
- * Manually trigger permission propagation from collection to member objects
56
- * Useful for debugging and fixing permission issues
57
- * @param collectionId - The collection ID
58
- * @returns Object with collection id, message, and number of objects updated
59
- */
60
- propagatePermissions(collectionId: string): Promise<{
61
- id: string;
62
- message: string;
63
- security?: Record<string, string[]>;
64
- objectsUpdated: number;
65
- }>;
66
- }
@@ -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;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,cAAc,CAAC;IAI3F,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;IAIjB;;;;;OAKG;IACH,iBAAiB,CAAC,YAAY,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC,GAAG,OAAO,CAAC;QACpF,EAAE,EAAE,MAAM,CAAC;QACX,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC,CAAC;QACnC,cAAc,EAAE,MAAM,CAAC;KAC1B,CAAC;IAMF;;;;;OAKG;IACH,oBAAoB,CAAC,YAAY,EAAE,MAAM,GAAG,OAAO,CAAC;QAChD,EAAE,EAAE,MAAM,CAAC;QACX,OAAO,EAAE,MAAM,CAAC;QAChB,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC,CAAC;QACpC,cAAc,EAAE,MAAM,CAAC;KAC1B,CAAC;CAIL"}
@@ -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,47 +0,0 @@
1
- import { ApiTopic, ClientBase } from "@vertesia/api-fetch-client";
2
- import { GetFileUrlResponse, GetUploadUrlPayload } from "@vertesia/common";
3
- import { StreamSource } from "../StreamSource.js";
4
- export declare const MEMORIES_PREFIX = "memories";
5
- export declare function getMemoryFilePath(name: string): string;
6
- export declare class FilesApi extends ApiTopic {
7
- constructor(parent: ClientBase);
8
- 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): Promise<GetFileUrlResponse>;
33
- /**
34
- * Upload content to a file and return the full path (including bucket name) of the uploaded file
35
- * @param source
36
- * @returns
37
- */
38
- uploadFile(source: StreamSource | File): Promise<string>;
39
- /**
40
- *
41
- * @param location can be a relative path in the project, a reference to a cloud storage, or a accessible HTTPS URL (typically signed URL)
42
- * @returns ReadableStream
43
- */
44
- downloadFile(location: string): Promise<ReadableStream<Uint8Array<ArrayBuffer>>>;
45
- uploadMemoryPack(source: StreamSource | File): Promise<string>;
46
- downloadMemoryPack(name: string, gunzip?: boolean): Promise<ReadableStream<Uint8Array>>;
47
- }
@@ -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,EAEH,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;IAMvE,cAAc,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,kBAAkB,CAAC;IAQzD;;;;OAIG;IACG,UAAU,CAAC,MAAM,EAAE,YAAY,GAAG,IAAI,GAA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