@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 +0,0 @@
1
- {"version":3,"file":"AnalyticsApi.d.ts","sourceRoot":"","sources":["../../src/AnalyticsApi.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AACzE,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;AAKlE,MAAM,CAAC,OAAO,OAAO,YAAa,SAAQ,QAAQ;gBAElC,MAAM,EAAE,UAAU;IAI9B,IAAI,CAAC,MAAM,EAAE,iBAAiB,GAAG,OAAO,CAAC,kBAAkB,EAAE,CAAC;CAOjE"}
@@ -1,42 +0,0 @@
1
- import { ApiKey, ApiKeyWithValue, CreateOrUpdateApiKeyPayload, CreatePublicKeyPayload } from "@vertesia/common";
2
- import { ApiTopic, ClientBase } from "@vertesia/api-fetch-client";
3
- export declare class ApiKeysApi extends ApiTopic {
4
- constructor(parent: ClientBase);
5
- /**
6
- * List all keys for account without values
7
- * @returns ApiKey[]
8
- */
9
- list(level?: 'account' | 'project'): Promise<ApiKey[]>;
10
- /**
11
- * Create an new ApiKey for account
12
- * BE VERY CAREFUL USING THIS API
13
- * ALL REQUESTS ARE LOGGED IN SECURITY AUDIT LOG
14
- * @returns ApiKeyWithValue
15
- */
16
- create(payload: CreateOrUpdateApiKeyPayload): Promise<ApiKeyWithValue>;
17
- /**
18
- * Update an existing ApiKey for account
19
- * @returns ApiKey
20
- */
21
- update(id: string, payload: CreateOrUpdateApiKeyPayload): Promise<ApiKey>;
22
- /**
23
- * Retrieve an ApiKey and its value
24
- * BE VERY CAREFUL USING THIS API AS IT EXPOSE THE API KEY VALUE
25
- * ALL REQUESTS ARE LOGGED IN SECURITY AUDIT LOG
26
- * @returns ApiKeyWithValue
27
- * */
28
- retrieve(id: string, withValue?: boolean): Promise<ApiKey | ApiKeyWithValue>;
29
- /**
30
- * get or create a temporary public key which can be used from browser to browse and execute interactions.
31
- * If a public key already exists for the given project (or for the current organization) then it is returned, otherwise a new one is created.
32
- * The payload object can contain the following properties:
33
- * - name: the name of the public key. If not specified a random name is generated.
34
- * - projectId: the id of the project to which the public key will be associated.
35
- * If not specified the key is associated with the current organization. (i.e. account).
36
- * - ttl: the time to live of the public key in seconds.
37
- * The ttl defaults to 1h.
38
- * @param opts
39
- * @returns
40
- */
41
- requestPublicKey(payload?: CreatePublicKeyPayload): Promise<string>;
42
- }
@@ -1 +0,0 @@
1
- {"version":3,"file":"ApiKeysApi.d.ts","sourceRoot":"","sources":["../../src/ApiKeysApi.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,eAAe,EAAE,2BAA2B,EAAE,sBAAsB,EAAE,MAAM,kBAAkB,CAAC;AAChH,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;AAElE,qBAAa,UAAW,SAAQ,QAAQ;gBAGxB,MAAM,EAAE,UAAU;IAK9B;;;OAGG;IACH,IAAI,CAAC,KAAK,GAAE,SAAS,GAAG,SAAqB,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC;IAIjE;;;;;OAKG;IACH,MAAM,CAAC,OAAO,EAAE,2BAA2B,GAAG,OAAO,CAAC,eAAe,CAAC;IAItE;;;OAGG;IACH,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,2BAA2B,GAAG,OAAO,CAAC,MAAM,CAAC;IAIzE;;;;;SAKK;IACL,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,SAAS,GAAE,OAAe,GAAG,OAAO,CAAC,MAAM,GAAG,eAAe,CAAC;IAQnF;;;;;;;;;;;OAWG;IACH,gBAAgB,CAAC,OAAO,GAAE,sBAA2B,GAAG,OAAO,CAAC,MAAM,CAAC;CAG1E"}
@@ -1,59 +0,0 @@
1
- import { ApiTopic, ClientBase } from "@vertesia/api-fetch-client";
2
- import type { AppInstallation, AppInstallationKind, AppInstallationPayload, AppInstallationWithManifest, AppManifest, AppManifestData, ProjectRef, RequireAtLeastOne } from "@vertesia/common";
3
- export interface OrphanedAppInstallation extends Omit<AppInstallation, 'manifest'> {
4
- manifest: null;
5
- }
6
- export default class AppsApi extends ApiTopic {
7
- constructor(parent: ClientBase);
8
- create(manifest: AppManifestData): Promise<AppManifest>;
9
- update(id: string, manifest: AppManifestData): Promise<AppManifest>;
10
- /**
11
- * @param ids - ids to filter by
12
- * @returns the app manifests but without the agent.tool property which can be big.
13
- */
14
- list(): Promise<AppManifest[]>;
15
- /**
16
- * Install the app with the given id in the current project.
17
- * @param appId - the id of the app to install
18
- */
19
- install(appId: string, settings?: Record<string, any>): Promise<AppInstallation>;
20
- /**
21
- * Remove the given app from the current project.
22
- * @param installationId - the id of the app installation
23
- * @returns
24
- */
25
- uninstall(installationId: string): Promise<any>;
26
- /**
27
- * get an app unstallation given its name or null if the app is not installed
28
- * @returns
29
- */
30
- getAppInstallationByName(appName: string): Promise<AppInstallationWithManifest | null>;
31
- /**
32
- * Get the project refs where the application is visible by the current user.
33
- * The application is specified either by id or by name.
34
- * @param param0
35
- * @returns
36
- */
37
- getAppInstallationProjects(app: RequireAtLeastOne<{
38
- id?: string;
39
- name?: string;
40
- }, 'id' | 'name'>): Promise<ProjectRef[]>;
41
- /**
42
- * Get the apps installed for the current authenticated project
43
- * @param kind - the kind of app installations to filter by (e.g., 'agent', 'tool', etc.)
44
- */
45
- getInstalledApps(kind?: AppInstallationKind): Promise<AppInstallationWithManifest[]>;
46
- /**
47
- * This operation will return an array of all the found AppInstallations in the current project
48
- * including orphaned installations
49
- * This requires project admin since access is not checked on the insytallations.
50
- * For a user level list of available installations (with user permission check) use getInstalledApps
51
- * @returns
52
- */
53
- getAllAppInstallations(): Promise<(AppInstallationWithManifest | OrphanedAppInstallation)[]>;
54
- /**
55
- * List the app installations of the current project.
56
- */
57
- listInstallations(): Promise<AppInstallation[]>;
58
- updateInstallationSettings(settingsPayload: AppIn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UAAU,EAAE,CAAC;IAcxH;;;OAGG;IACH,gBAAgB,CAAC,IAAI,CAAC,EAAE,mBAAmB,GAAG,OAAO,CAAC,2BAA2B,EAAE,CAAC;IAQpF;;;;;;OAMG;IACH,sBAAsB,IAAI,OAAO,CAAC,CAAC,2BAA2B,GAAG,uBAAuB,CAAC,EAAE,CAAC;IAI5F;;OAEG;IACH,iBAAiB,IAAI,OAAO,CAAC,eAAe,EAAE,CAAC;IAI/C,0BAA0B,CAAC,eAAe,EAAE,sBAAsB,GAAG,OAAO,CAAC,2BAA2B,CAAC;CAS5G"}
@@ -1,10 +0,0 @@
1
- import { ApiTopic, ClientBase } from "@vertesia/api-fetch-client";
2
- import { GenericCommandResponse } from "@vertesia/common";
3
- /**
4
- * Various utility commands
5
- */
6
- export default class CommandsApi extends ApiTopic {
7
- constructor(parent: ClientBase);
8
- isNamespaceAvailable(name: string): Promise<boolean>;
9
- initSamples(): Promise<GenericCommandResponse>;
10
- }
@@ -1 +0,0 @@
1
- {"version":3,"file":"CommandsApi.d.ts","sourceRoot":"","sources":["../../src/CommandsApi.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;AAClE,OAAO,EAAE,sBAAsB,EAAE,MAAM,kBAAkB,CAAC;AAG1D;;GAEG;AAEH,MAAM,CAAC,OAAO,OAAO,WAAY,SAAQ,QAAQ;gBAEjC,MAAM,EAAE,UAAU;IAIxB,oBAAoB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;IAIpD,WAAW,IAAI,OAAO,CAAC,sBAAsB,CAAC;CAIvD"}
@@ -1,30 +0,0 @@
1
- import { ExecutionEnvironment, ExecutionEnvironmentCreatePayload, ExecutionEnvironmentRef, ExecutionEnvironmentUpdatePayload, LoadBalancingEnvConfig, MediatorEnvConfig } from "@vertesia/common";
2
- import type { AIModel, EmbeddingsOptions, EmbeddingsResult, ModelSearchPayload } from "@llumiverse/common";
3
- import { ApiTopic, ClientBase } from "@vertesia/api-fetch-client";
4
- export default class EnvironmentsApi extends ApiTopic {
5
- constructor(parent: ClientBase);
6
- /**
7
- * List all environments for the current project
8
- * @param all if true, list all environments, otherwise only the ones for the current project
9
- */
10
- list(all?: boolean): Promise<ExecutionEnvironmentRef[]>;
11
- create(payload: ExecutionEnvironmentCreatePayload): Promise<ExecutionEnvironment>;
12
- retrieve(id: string): Promise<ExecutionEnvironment>;
13
- update(id: string, payload: ExecutionEnvironmentUpdatePayload): Promise<ExecutionEnvironment>;
14
- /**
15
- * Update enabled models and / or config. If enabled_models is not provided, the existing enabled models will not change.
16
- * Same, if config is not provided the exiting config is not changed.
17
- * If the config is provided then it will be updated without removing fields that are not provided.
18
- *
19
- * @param id
20
- * @param payload
21
- * @returns
22
- */
23
- updateConfig(id: string, payload: {
24
- enabled_models?: AIModel[];
25
- config?: MediatorEnvConfig | LoadBalancingEnvConfig;
26
- }): Promise<ExecutionEnvironment>;
27
- listModels(id: string, payload?: ModelSearchPayload): Promise<AIModel[]>;
28
- listTrainableModels(id: string): Promise<AIModel[]>;
29
- embeddings(id: string, payload?: EmbeddingsOptions): Promise<EmbeddingsResult>;
30
- }
@@ -1 +0,0 @@
1
- {"version":3,"file":"EnvironmentsApi.d.ts","sourceRoot":"","sources":["../../src/EnvironmentsApi.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,iCAAiC,EAAE,uBAAuB,EAAE,iCAAiC,EAAE,sBAAsB,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAClM,OAAO,KAAK,EAAE,OAAO,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AAC3G,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;AAElE,MAAM,CAAC,OAAO,OAAO,eAAgB,SAAQ,QAAQ;gBACrC,MAAM,EAAE,UAAU;IAI9B;;;OAGG;IACH,IAAI,CAAC,GAAG,GAAE,OAAe,GAAG,OAAO,CAAC,uBAAuB,EAAE,CAAC;IAM9D,MAAM,CAAC,OAAO,EAAE,iCAAiC,GAAG,OAAO,CAAC,oBAAoB,CAAC;IAMjF,QAAQ,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,oBAAoB,CAAC;IAInD,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,iCAAiC,GAAG,OAAO,CAAC,oBAAoB,CAAC;IAM7F;;;;;;;;OAQG;IACH,YAAY,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE;QAC9B,cAAc,CAAC,EAAE,OAAO,EAAE,CAAC;QAC3B,MAAM,CAAC,EAAE,iBAAiB,GAAG,sBAAsB,CAAA;KACtD,GAAG,OAAO,CAAC,oBAAoB,CAAC;IAMjC,UAAU,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,kBAAkB,GAAG,OAAO,CAAC,OAAO,EAAE,CAAC;IAMxE,mBAAmB,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,EAAE,CAAC;IAInD,UAAU,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,iBAAiB,GAAG,OAAO,CAAC,gBAAgB,CAAC;CAMjF"}
@@ -1,65 +0,0 @@
1
- import { UserGroup, UserRef } from "@vertesia/common";
2
- import { ApiTopic, ClientBase } from "@vertesia/api-fetch-client";
3
- export interface GroupsQueryOptions {
4
- search?: string;
5
- tags?: string[];
6
- limit?: number;
7
- offset?: number;
8
- [key: string]: string | string[] | number | undefined;
9
- }
10
- export declare class GroupsApi extends ApiTopic {
11
- constructor(parent: ClientBase);
12
- /**
13
- * List all groups in the current account
14
- * @param options Query options for filtering and pagination
15
- * @returns Array of UserGroup objects
16
- */
17
- list(options?: GroupsQueryOptions): Promise<UserGroup[]>;
18
- /**
19
- * Create a new group
20
- * @param payload The group data to create
21
- * @returns The created UserGroup object
22
- */
23
- create(payload: Partial<UserGroup>): Promise<UserGroup>;
24
- /**
25
- * Retrieve a specific group by ID
26
- * @param groupId The ID of the group to retrieve
27
- * @returns The UserGroup object
28
- */
29
- retrieve(groupId: string): Promise<UserGroup>;
30
- /**
31
- * Update a group
32
- * @param groupId The ID of the group to update
33
- * @param payload The group data to update
34
- * @returns The updated UserGroup object
35
- */
36
- update(groupId: string, payload: Partial<UserGroup>): Promise<UserGroup>;
37
- /**
38
- * Delete a group
39
- * @param groupId The ID of the group to delete
40
- * @returns Object with the deleted group ID
41
- */
42
- delete(groupId: string): Promise<{
43
- id: string;
44
- }>;
45
- /**
46
- * List members of a group
47
- * @param groupId The ID of the group
48
- * @returns Array of UserRef objects representing group members
49
- */
50
- listMembers(groupId: string): Promise<UserRef[]>;
51
- /**
52
- * Add a member to a group
53
- * @param groupId The ID of the group
54
- * @param userId The ID of the user to add
55
- * @returns The updated UserGroup object
56
- */
57
- addMember(groupId: string, userId: string): Promise<UserGroup>;
58
- /**
59
- * Remove a member from a group
60
- * @param groupId The ID of the group
61
- * @param userId The ID of the user to remove
62
- * @returns The updated UserGroup object
63
- */
64
- removeMember(groupId: string, userId: string): Promise<UserGroup>;
65
- }
@@ -1 +0,0 @@
1
- {"version":3,"file":"GroupsApi.d.ts","sourceRoot":"","sources":["../../src/GroupsApi.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AACtD,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;AAElE,MAAM,WAAW,kBAAkB;IAC/B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,EAAE,GAAG,MAAM,GAAG,SAAS,CAAC;CACzD;AAED,qBAAa,SAAU,SAAQ,QAAQ;gBAEvB,MAAM,EAAE,UAAU;IAI9B;;;;OAIG;IACH,IAAI,CAAC,OAAO,CAAC,EAAE,kBAAkB,GAAG,OAAO,CAAC,SAAS,EAAE,CAAC;IAIxD;;;;OAIG;IACH,MAAM,CAAC,OAAO,EAAE,OAAO,CAAC,SAAS,CAAC,GAAG,OAAO,CAAC,SAAS,CAAC;IAIvD;;;;OAIG;IACH,QAAQ,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,SAAS,CAAC;IAI7C;;;;;OAKG;IACH,MAAM,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,CAAC,SAAS,CAAC,GAAG,OAAO,CAAC,SAAS,CAAC;IAIxE;;;;OAIG;IACH,MAAM,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC;QAAE,EAAE,EAAE,MAAM,CAAA;KAAE,CAAC;IAIhD;;;;OAIG;IACH,WAAW,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,EAAE,CAAC;IAIhD;;;;;OAKG;IACH,SAAS,CAAC,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,SAAS,CAAC;IAI9D;;;;;OAKG;IACH,YAAY,CAAC,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,SAAS,CAAC;CAGpE"}
@@ -1,41 +0,0 @@
1
- import { AccessControlEntry, ACECreatePayload, AcesQueryOptions, Permission, ProjectRoles } from "@vertesia/common";
2
- import { ApiTopic, ClientBase } from "@vertesia/api-fetch-client";
3
- import { GroupsApi } from "./GroupsApi.js";
4
- export interface FilterOption {
5
- id: string;
6
- name: string;
7
- count: number;
8
- }
9
- export declare class IamApi extends ApiTopic {
10
- constructor(parent: ClientBase);
11
- aces: AcesApi;
12
- roles: RolesApi;
13
- groups: GroupsApi;
14
- }
15
- export declare class RolesApi extends ApiTopic {
16
- constructor(parent: ClientBase);
17
- list(): Promise<{
18
- name: ProjectRoles;
19
- permissions: Permission[];
20
- }[]>;
21
- }
22
- export declare class AcesApi extends ApiTopic {
23
- constructor(parent: ClientBase);
24
- /**
25
- * Get the list of all runs
26
- * @param project optional project id to filter by
27
- * @param interaction optional interaction id to filter by
28
- * @returns InteractionResult[]
29
- **/
30
- list(options: AcesQueryOptions): Promise<AccessControlEntry[]>;
31
- /**
32
- * Get an ACE by its Id
33
- * @param id
34
- * @returns InteractionResult
35
- **/
36
- retrieve(id: string): Promise<AccessControlEntry>;
37
- create(payload: ACECreatePayload): Promise<AccessControlEntry>;
38
- delete(id: string): Promise<{
39
- id: string;
40
- }>;
41
- }
@@ -1 +0,0 @@
1
- {"version":3,"file":"IamApi.d.ts","sourceRoot":"","sources":["../../src/IamApi.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AACpH,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;AAClE,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAG3C,MAAM,WAAW,YAAY;IACzB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAA;CAChB;AAGD,qBAAa,MAAO,SAAQ,QAAQ;gBAEpB,MAAM,EAAE,UAAU;IAI9B,IAAI,UAAoB;IACxB,KAAK,WAAqB;IAC1B,MAAM,YAAsB;CAC/B;AAED,qBAAa,QAAS,SAAQ,QAAQ;gBAEtB,MAAM,EAAE,UAAU;IAI9B,IAAI,IAAI,OAAO,CAAC;QAAE,IAAI,EAAE,YAAY,CAAC;QAAC,WAAW,EAAE,UAAU,EAAE,CAAA;KAAE,EAAE,CAAC;CAIvE;AAGD,qBAAa,OAAQ,SAAQ,QAAQ;gBAErB,MAAM,EAAE,UAAU;IAI9B;;;;;QAKI;IACJ,IAAI,CAAC,OAAO,EAAE,gBAAgB,GAAG,OAAO,CAAC,kBAAkB,EAAE,CAAC;IAI9D;;;;QAII;IACJ,QAAQ,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,kBAAkB,CAAC;IAIjD,MAAM,CAAC,OAAO,EAAE,gBAAgB,GAAG,OAAO,CAAC,kBAAkB,CAAC;IAI9D,MAAM,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC;QAAE,EAAE,EAAE,MAAM,CAAA;KAAE,CAAC;CAI9C"}
@@ -1,22 +0,0 @@
1
- import { ExecutionRun, InteractionUpdatePayload, InteractionExecutionPayload } from "@vertesia/common";
2
- import { VertesiaClient, VertesiaClientProps } from "./client.js";
3
- export declare class InteractionBase<P = any, R = any> {
4
- id: string;
5
- client: VertesiaClient;
6
- constructor(id: string, clientOrOpts: VertesiaClient | VertesiaClientProps);
7
- retrieve(): Promise<import("@vertesia/common").Interaction>;
8
- update(payload: InteractionUpdatePayload): Promise<import("@vertesia/common").Interaction>;
9
- render(data: P): void;
10
- /**
11
- * Execute an interaction and return a promise which will be resolved with the executed run when
12
- * the run completes or fails.
13
- * If the onChunk callback is passed then the streaming of the result is enabled.
14
- * The onChunk callback with be called with the next chunk of the result as soon as it is available.
15
- * When all chunks are received the function will return the resolved promise
16
- * @param id of the interaction to execute
17
- * @param payload InteractionExecutionPayload
18
- * @param onChunk callback to be called when the next chunk of the response is available
19
- * @returns the resolved execution run as Promise<ExecutionRun>
20
- */
21
- execute(payload?: InteractionExecutionPayload, onChunk?: (chunk: string) => void): Promise<ExecutionRun<P, R>>;
22
- }
@@ -1 +0,0 @@
1
- {"version":3,"file":"InteractionBase.d.ts","sourceRoot":"","sources":["../../src/InteractionBase.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,wBAAwB,EAAE,2BAA2B,EAAE,MAAM,kBAAkB,CAAC;AACvG,OAAO,EAAE,cAAc,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAGlE,qBAAa,eAAe,CAAC,CAAC,GAAG,GAAG,EAAE,CAAC,GAAG,GAAG;IAGtB,EAAE,EAAE,MAAM;IAF7B,MAAM,EAAE,cAAc,CAAC;gBAEJ,EAAE,EAAE,MAAM,EAAE,YAAY,EAAE,cAAc,GAAG,mBAAmB;IAQjF,QAAQ;IAIR,MAAM,CAAC,OAAO,EAAE,wBAAwB;IAIxC,MAAM,CAAC,IAAI,EAAE,CAAC;IAKd;;;;;;;;;;OAUG;IACG,OAAO,CAAC,OAAO,GAAE,2BAAgC,EACnD,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,GAAG,OAAO,CAAC,YAAY,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;CAGtE"}
@@ -1,150 +0,0 @@
1
- import { ApiTopic, ClientBase } from "@vertesia/api-fetch-client";
2
- import { AsyncExecutionPayload, ComputeInteractionFacetPayload, ExecutionRun, GenerateInteractionPayload, GenerateTestDataPayload, ImprovePromptPayload, Interaction, InteractionCreatePayload, InteractionEndpoint, InteractionEndpointQuery, InteractionExecutionPayload, InteractionExecutionResult, InteractionForkPayload, InteractionPublishPayload, InteractionRef, InteractionRefWithSchema, InteractionSearchPayload, InteractionUpdatePayload, InteractionsExportPayload } from "@vertesia/common";
3
- export interface ComputeInteractionFacetsResponse {
4
- tags?: {
5
- _id: string;
6
- count: number;
7
- }[];
8
- status?: {
9
- _id: string;
10
- count: number;
11
- }[];
12
- total?: {
13
- count: number;
14
- }[];
15
- }
16
- export interface AsyncExecutionResult {
17
- runId: string;
18
- workflowId: string;
19
- }
20
- export default class InteractionsApi extends ApiTopic {
21
- constructor(parent: ClientBase);
22
- /**
23
- * Get the list of all interactions in the current project
24
- * @returns InteractionRef[]
25
- **/
26
- list(payload?: InteractionSearchPayload): Promise<InteractionRef[]>;
27
- /**
28
- * Find interactions given a mongo match query.
29
- * You can also specify if prompts schemas are included in the result
30
- */
31
- listEndpoints(payload: InteractionEndpointQuery): Promise<InteractionEndpoint[]>;
32
- /**
33
- * List all interaction versions in the project having the given endpoint name.
34
- * This is useful to list orphaned versions
35
- * @param name
36
- */
37
- listVersionsByName(name: string): Promise<InteractionRef[]>;
38
- /**
39
- * Get the list of all interactions facets
40
- * @param payload query payload to filter facet search
41
- * @returns ComputeInteractionFacetsResponse[]
42
- **/
43
- computeFacets(query: ComputeInteractionFacetPayload): Promise<ComputeInteractionFacetsResponse>;
44
- /**
45
- * List interaction names in the current project
46
- * @returns
47
- */
48
- listNames(): Promise<{
49
- id: string;
50
- name: string;
51
- }[]>;
52
- /**
53
- * Get the list of all interactions in the current project. Schemas will be returned too.
54
- * @returns InteractionRefWithSchema[]
55
- **/
56
- export(payload: InteractionsExportPayload): Promise<InteractionRefWithSchema[]>;
57
- /**
58
- * Create a new interaction
59
- * @param payload InteractionCreatePayload
60
- * @returns Interaction
61
- * @throws ApiError
62
- * @throws 400 if payload is invalid
63
- * @throws 500 if interaction creation fails
64
- **/
65
- create(payload: InteractionCreatePayload): Promise<Interaction>;
66
- /**
67
- * Retrieve an existing interaction definition
68
- * @param id of the interaction to retrieve
69
- * @returns Interaction
70
- **/
71
- retrieve(id: string): Promise<Interaction>;
72
- /**
73
- * Update an existing interaction definition
74
- * @param id of the interaction to update
75
- * @param payload InteractionUpdatePayload
76
- * @returns Interaction
77
- * @throws ApiError
78
- * @throws 400 if payload is invalid
79
- * @throws 500 if interaction update fails
80
- * @throws 404 if interaction not found
81
- **/
82
- update(id: string, payload: InteractionUpdatePayload): Promise<Interaction>;
83
- /**
84
- * Execute an interaction and return a promise which will be resolved with the executed run when
85
- * the run completes or fails.
86
- * If the onChunk callback is passed then the streaming of the result is enabled.
87
- * The onChunk callback with be called with the next chunk of the result as soon as it is available.
88
- * When all chunks are received the function will return the resolved promise
89
- * @param id of the interaction to execute
90
- * @param payload InteractionExecutionPayload
91
- * @param onChunk callback to be called when the next chunk of the response is available
92
- * @returns Promise<ExecutionRun>
93
- * @throws ApiError
94
- * @throws 404 if interaction not found
95
- * @throws 400 if payload is invalid
96
- * @throws 500 if interaction execution fails
97
- * @throws 500 if interaction execution times out
98
- **/
99
- execute<P = any, R = any>(id: string, payload?: InteractionExecutionPayload, onChunk?: (chunk: string) => void): Promise<ExecutionRun<P, R>>;
100
- /**
101
- * Same as execute but uses the interaction name selector instead of the id.
102
- *
103
- * A name selector is the interaction endpoint name suffixed with an optional tag or version which is starting with a `@` character.
104
- * 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.
105
- * Examples of selectors:
106
- * - `ReviewContract` - select the latest version of the ReviewContract interaction
107
- * - `ReviewContract@1` - select the version 1 of the ReviewContract interaction
108
- * - `ReviewContract@draft` - select the draft version of the ReviewContract interaction
109
- * - `ReviewContract@fixed` - select the ReviewContract interaction which is tagged with 'fixed' tag.
110
- * @param nameWithTag
111
- * @param payload
112
- * @param onChunk
113
- * @returns
114
- */
115
- executeByName<P = any, R = any>(nameWithTag: string, payload?: InteractionExecutionPayload, onChunk?: (chunk: string) => void): Promise<InteractionExecutionResult<P, R>>;
116
- /**
117
- * Execute an interaction in an workflow
118
- * @param payload
119
- * @returns
120
- */
121
- executeAsync(payload: AsyncExecutionPayload): Promise<AsyncExecutionResult>;
122
- publish(id: string, payload: InteractionPublishPayload): Promise<Interaction>;
123
- fork(id: string, payload: InteractionForkPayload): Promise<Interaction>;
124
- /**
125
- * Generate Composable definition of an interaction
126
- **/
127
- generateInteraction(id: string, payload: GenerateInteractionPayload): Promise<any[]>;
128
- /**
129
- * Generate Test Data for an interaction
130
- **/
131
- generateTestData(id: string, payload: GenerateTestDataPayload): Promise<any[]>;
132
- /**
133
- * Suggest Improvement for a prompt
134
- */
135
- suggestImprovements(id: string, payload: ImprovePromptPayload): Promise<{
136
- result: string;
137
- }>;
138
- /**
139
- * List the versions of the interaction. Returns an empty array if no versions are found
140
- * @param id
141
- * @returns the versions list or an empty array if no versions are found
142
- */
143
- listVersions(id: string): Promise<InteractionRef[]>;
144
- /**
145
- * List the forks of the interaction. Returns an empty array if no forks are found
146
- * @param id
147
- * @returns the versions list or an empty array if no forks are found
148
- */
149
- listForks(id: string): Promise<InteractionRef[]>;
150
- }
@@ -1 +0,0 @@
1
- {"version":3,"file":"InteractionsApi.d.ts","sourceRoot":"","sources":["../../src/InteractionsApi.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAe,MAAM,4BAA4B,CAAC;AAC/E,OAAO,EAAE,qBAAqB,EAAE,8BAA8B,EAAE,YAAY,EAAE,0BAA0B,EAAE,uBAAuB,EAAE,oBAAoB,EAAE,WAAW,EAAE,wBAAwB,EAAE,mBAAmB,EAAE,wBAAwB,EAAE,2BAA2B,EAAE,0BAA0B,EAAE,sBAAsB,EAAE,yBAAyB,EAAE,cAAc,EAAE,wBAAwB,EAAE,wBAAwB,EAA0B,wBAAwB,EAAE,yBAAyB,EAAE,MAAM,kBAAkB,CAAC;AAIrgB,MAAM,WAAW,gCAAgC;IAC7C,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,MAAM,WAAW,oBAAoB;IACjC,KAAK,EAAE,MAAM,CAAC;IAAC,UAAU,EAAE,MAAM,CAAA;CACpC;AAED,MAAM,CAAC,OAAO,OAAO,eAAgB,SAAQ,QAAQ;gBACrC,MAAM,EAAE,UAAU;IAI9B;;;QAGI;IACJ,IAAI,CAAC,OAAO,GAAE,wBAA6B,GAAG,OAAO,CAAC,cAAc,EAAE,CAAC;IASvE;;;OAGG;IACH,aAAa,CAAC,OAAO,EAAE,wBAAwB,GAAG,OAAO,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UjF;;;;OAIG;IACH,YAAY,CAAC,OAAO,EAAE,qBAAqB,GAAG,OAAO,CAAC,oBAAoB,CAAC;IAI3E,OAAO,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,yBAAyB,GAAG,OAAO,CAAC,WAAW,CAAC;IAM7E,IAAI,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,sBAAsB,GAAG,OAAO,CAAC,WAAW,CAAC;IAMvE;;QAEI;IACJ,mBAAmB,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,0BAA0B,GAAG,OAAO,CAAC,GAAG,EAAE,CAAC;IAQpF;;QAEI;IACJ,gBAAgB,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,uBAAuB,GAAG,OAAO,CAAC,GAAG,EAAE,CAAC;IAO9E;;OAEG;IACH,mBAAmB,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,oBAAoB,GAAG,OAAO,CAAC;QAAE,MAAM,EAAE,MAAM,CAAC;KAAE,CAAC;IAM5F;;;;OAIG;IACH,YAAY,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,cAAc,EAAE,CAAC;IAInD;;;;OAIG;IACH,SAAS,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,cAAc,EAAE,CAAC;CAInD"}
@@ -1,17 +0,0 @@
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
- integrations: IntegrationsConfigurationApi;
10
- }
11
- declare class IntegrationsConfigurationApi extends ApiTopic {
12
- constructor(parent: ClientBase);
13
- list(projectId: string): Promise<ProjectIntegrationListEntry[]>;
14
- retrieve(projectId: string, integrationId: SupportedIntegrations): Promise<GladiaConfiguration | GithubConfiguration | AwsConfiguration | MagicPdfConfiguration | undefined>;
15
- update(projectId: string, integrationId: string, payload: any): Promise<GladiaConfiguration | GithubConfiguration>;
16
- }
17
- export {};
@@ -1 +0,0 @@
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,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"}
@@ -1,106 +0,0 @@
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
- }
@@ -1 +0,0 @@
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,C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AAY,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"}
@@ -1,6 +0,0 @@
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
- }
@@ -1 +0,0 @@
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"}