@vertesia/common 0.76.0 → 0.78.0-dev-715074d

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 (267) hide show
  1. package/package.json +43 -38
  2. package/src/access-control.ts +5 -4
  3. package/src/apikey.ts +23 -21
  4. package/src/apps.ts +66 -0
  5. package/src/index.ts +3 -1
  6. package/src/interaction.ts +142 -18
  7. package/src/payload.ts +2 -4
  8. package/src/project.ts +0 -2
  9. package/src/prompt.ts +16 -9
  10. package/src/query.ts +2 -0
  11. package/src/rate-limiter.ts +34 -0
  12. package/src/store/collections.ts +1 -0
  13. package/src/store/store.ts +17 -0
  14. package/src/store/workflow.ts +50 -6
  15. package/src/sts-token-types.ts +114 -0
  16. package/src/utils/schemas.ts +4 -4
  17. package/LICENSE +0 -13
  18. package/lib/cjs/Progress.js +0 -61
  19. package/lib/cjs/Progress.js.map +0 -1
  20. package/lib/cjs/access-control.js +0 -55
  21. package/lib/cjs/access-control.js.map +0 -1
  22. package/lib/cjs/analytics.js +0 -3
  23. package/lib/cjs/analytics.js.map +0 -1
  24. package/lib/cjs/apikey.js +0 -14
  25. package/lib/cjs/apikey.js.map +0 -1
  26. package/lib/cjs/apps.js +0 -3
  27. package/lib/cjs/apps.js.map +0 -1
  28. package/lib/cjs/common.js +0 -3
  29. package/lib/cjs/common.js.map +0 -1
  30. package/lib/cjs/environment.js +0 -44
  31. package/lib/cjs/environment.js.map +0 -1
  32. package/lib/cjs/facets.js +0 -3
  33. package/lib/cjs/facets.js.map +0 -1
  34. package/lib/cjs/group.js +0 -5
  35. package/lib/cjs/group.js.map +0 -1
  36. package/lib/cjs/index.js +0 -45
  37. package/lib/cjs/index.js.map +0 -1
  38. package/lib/cjs/integrations.js +0 -12
  39. package/lib/cjs/integrations.js.map +0 -1
  40. package/lib/cjs/interaction.js +0 -64
  41. package/lib/cjs/interaction.js.map +0 -1
  42. package/lib/cjs/json-schema.js +0 -3
  43. package/lib/cjs/json-schema.js.map +0 -1
  44. package/lib/cjs/json.js +0 -3
  45. package/lib/cjs/json.js.map +0 -1
  46. package/lib/cjs/meters.js +0 -13
  47. package/lib/cjs/meters.js.map +0 -1
  48. package/lib/cjs/model_utility.js +0 -6
  49. package/lib/cjs/model_utility.js.map +0 -1
  50. package/lib/cjs/package.json +0 -3
  51. package/lib/cjs/payload.js +0 -3
  52. package/lib/cjs/payload.js.map +0 -1
  53. package/lib/cjs/project.js +0 -61
  54. package/lib/cjs/project.js.map +0 -1
  55. package/lib/cjs/prompt.js +0 -21
  56. package/lib/cjs/prompt.js.map +0 -1
  57. package/lib/cjs/query.js +0 -3
  58. package/lib/cjs/query.js.map +0 -1
  59. package/lib/cjs/refs.js +0 -14
  60. package/lib/cjs/refs.js.map +0 -1
  61. package/lib/cjs/runs.js +0 -3
  62. package/lib/cjs/runs.js.map +0 -1
  63. package/lib/cjs/store/activity-catalog.js +0 -3
  64. package/lib/cjs/store/activity-catalog.js.map +0 -1
  65. package/lib/cjs/store/agent.js +0 -3
  66. package/lib/cjs/store/agent.js.map +0 -1
  67. package/lib/cjs/store/collections.js +0 -9
  68. package/lib/cjs/store/collections.js.map +0 -1
  69. package/lib/cjs/store/common.js +0 -3
  70. package/lib/cjs/store/common.js.map +0 -1
  71. package/lib/cjs/store/doc-analyzer.js +0 -3
  72. package/lib/cjs/store/doc-analyzer.js.map +0 -1
  73. package/lib/cjs/store/dsl-workflow.js +0 -5
  74. package/lib/cjs/store/dsl-workflow.js.map +0 -1
  75. package/lib/cjs/store/index.js +0 -28
  76. package/lib/cjs/store/index.js.map +0 -1
  77. package/lib/cjs/store/object-types.js +0 -98
  78. package/lib/cjs/store/object-types.js.map +0 -1
  79. package/lib/cjs/store/signals.js +0 -3
  80. package/lib/cjs/store/signals.js.map +0 -1
  81. package/lib/cjs/store/store.js +0 -29
  82. package/lib/cjs/store/store.js.map +0 -1
  83. package/lib/cjs/store/temporalio.js +0 -44
  84. package/lib/cjs/store/temporalio.js.map +0 -1
  85. package/lib/cjs/store/workflow.js +0 -48
  86. package/lib/cjs/store/workflow.js.map +0 -1
  87. package/lib/cjs/tenant.js +0 -3
  88. package/lib/cjs/tenant.js.map +0 -1
  89. package/lib/cjs/training.js +0 -14
  90. package/lib/cjs/training.js.map +0 -1
  91. package/lib/cjs/transient-tokens.js +0 -9
  92. package/lib/cjs/transient-tokens.js.map +0 -1
  93. package/lib/cjs/user.js +0 -17
  94. package/lib/cjs/user.js.map +0 -1
  95. package/lib/cjs/utils/auth.js +0 -15
  96. package/lib/cjs/utils/auth.js.map +0 -1
  97. package/lib/cjs/utils/schemas.js +0 -66
  98. package/lib/cjs/utils/schemas.js.map +0 -1
  99. package/lib/cjs/utils/type-helpers.js +0 -3
  100. package/lib/cjs/utils/type-helpers.js.map +0 -1
  101. package/lib/esm/Progress.js +0 -57
  102. package/lib/esm/Progress.js.map +0 -1
  103. package/lib/esm/access-control.js +0 -52
  104. package/lib/esm/access-control.js.map +0 -1
  105. package/lib/esm/analytics.js +0 -2
  106. package/lib/esm/analytics.js.map +0 -1
  107. package/lib/esm/apikey.js +0 -11
  108. package/lib/esm/apikey.js.map +0 -1
  109. package/lib/esm/apps.js +0 -2
  110. package/lib/esm/apps.js.map +0 -1
  111. package/lib/esm/common.js +0 -2
  112. package/lib/esm/common.js.map +0 -1
  113. package/lib/esm/environment.js +0 -41
  114. package/lib/esm/environment.js.map +0 -1
  115. package/lib/esm/facets.js +0 -2
  116. package/lib/esm/facets.js.map +0 -1
  117. package/lib/esm/group.js +0 -2
  118. package/lib/esm/group.js.map +0 -1
  119. package/lib/esm/index.js +0 -29
  120. package/lib/esm/index.js.map +0 -1
  121. package/lib/esm/integrations.js +0 -9
  122. package/lib/esm/integrations.js.map +0 -1
  123. package/lib/esm/interaction.js +0 -61
  124. package/lib/esm/interaction.js.map +0 -1
  125. package/lib/esm/json-schema.js +0 -2
  126. package/lib/esm/json-schema.js.map +0 -1
  127. package/lib/esm/json.js +0 -2
  128. package/lib/esm/json.js.map +0 -1
  129. package/lib/esm/meters.js +0 -10
  130. package/lib/esm/meters.js.map +0 -1
  131. package/lib/esm/model_utility.js +0 -2
  132. package/lib/esm/model_utility.js.map +0 -1
  133. package/lib/esm/payload.js +0 -2
  134. package/lib/esm/payload.js.map +0 -1
  135. package/lib/esm/project.js +0 -57
  136. package/lib/esm/project.js.map +0 -1
  137. package/lib/esm/prompt.js +0 -18
  138. package/lib/esm/prompt.js.map +0 -1
  139. package/lib/esm/query.js +0 -2
  140. package/lib/esm/query.js.map +0 -1
  141. package/lib/esm/refs.js +0 -11
  142. package/lib/esm/refs.js.map +0 -1
  143. package/lib/esm/runs.js +0 -2
  144. package/lib/esm/runs.js.map +0 -1
  145. package/lib/esm/store/activity-catalog.js +0 -2
  146. package/lib/esm/store/activity-catalog.js.map +0 -1
  147. package/lib/esm/store/agent.js +0 -2
  148. package/lib/esm/store/agent.js.map +0 -1
  149. package/lib/esm/store/collections.js +0 -6
  150. package/lib/esm/store/collections.js.map +0 -1
  151. package/lib/esm/store/common.js +0 -2
  152. package/lib/esm/store/common.js.map +0 -1
  153. package/lib/esm/store/doc-analyzer.js +0 -2
  154. package/lib/esm/store/doc-analyzer.js.map +0 -1
  155. package/lib/esm/store/dsl-workflow.js +0 -2
  156. package/lib/esm/store/dsl-workflow.js.map +0 -1
  157. package/lib/esm/store/index.js +0 -12
  158. package/lib/esm/store/index.js.map +0 -1
  159. package/lib/esm/store/object-types.js +0 -95
  160. package/lib/esm/store/object-types.js.map +0 -1
  161. package/lib/esm/store/signals.js +0 -2
  162. package/lib/esm/store/signals.js.map +0 -1
  163. package/lib/esm/store/store.js +0 -26
  164. package/lib/esm/store/store.js.map +0 -1
  165. package/lib/esm/store/temporalio.js +0 -41
  166. package/lib/esm/store/temporalio.js.map +0 -1
  167. package/lib/esm/store/workflow.js +0 -44
  168. package/lib/esm/store/workflow.js.map +0 -1
  169. package/lib/esm/tenant.js +0 -2
  170. package/lib/esm/tenant.js.map +0 -1
  171. package/lib/esm/training.js +0 -11
  172. package/lib/esm/training.js.map +0 -1
  173. package/lib/esm/transient-tokens.js +0 -6
  174. package/lib/esm/transient-tokens.js.map +0 -1
  175. package/lib/esm/user.js +0 -14
  176. package/lib/esm/user.js.map +0 -1
  177. package/lib/esm/utils/auth.js +0 -11
  178. package/lib/esm/utils/auth.js.map +0 -1
  179. package/lib/esm/utils/schemas.js +0 -61
  180. package/lib/esm/utils/schemas.js.map +0 -1
  181. package/lib/esm/utils/type-helpers.js +0 -2
  182. package/lib/esm/utils/type-helpers.js.map +0 -1
  183. package/lib/tsconfig.tsbuildinfo +0 -1
  184. package/lib/types/Progress.d.ts +0 -21
  185. package/lib/types/Progress.d.ts.map +0 -1
  186. package/lib/types/access-control.d.ts +0 -72
  187. package/lib/types/access-control.d.ts.map +0 -1
  188. package/lib/types/analytics.d.ts +0 -36
  189. package/lib/types/analytics.d.ts.map +0 -1
  190. package/lib/types/apikey.d.ts +0 -75
  191. package/lib/types/apikey.d.ts.map +0 -1
  192. package/lib/types/apps.d.ts +0 -63
  193. package/lib/types/apps.d.ts.map +0 -1
  194. package/lib/types/common.d.ts +0 -31
  195. package/lib/types/common.d.ts.map +0 -1
  196. package/lib/types/environment.d.ts +0 -84
  197. package/lib/types/environment.d.ts.map +0 -1
  198. package/lib/types/facets.d.ts +0 -34
  199. package/lib/types/facets.d.ts.map +0 -1
  200. package/lib/types/group.d.ts +0 -21
  201. package/lib/types/group.d.ts.map +0 -1
  202. package/lib/types/index.d.ts +0 -29
  203. package/lib/types/index.d.ts.map +0 -1
  204. package/lib/types/integrations.d.ts +0 -28
  205. package/lib/types/integrations.d.ts.map +0 -1
  206. package/lib/types/interaction.d.ts +0 -426
  207. package/lib/types/interaction.d.ts.map +0 -1
  208. package/lib/types/json-schema.d.ts +0 -1
  209. package/lib/types/json-schema.d.ts.map +0 -1
  210. package/lib/types/json.d.ts +0 -1
  211. package/lib/types/json.d.ts.map +0 -1
  212. package/lib/types/meters.d.ts +0 -23
  213. package/lib/types/meters.d.ts.map +0 -1
  214. package/lib/types/model_utility.d.ts +0 -1
  215. package/lib/types/model_utility.d.ts.map +0 -1
  216. package/lib/types/payload.d.ts +0 -62
  217. package/lib/types/payload.d.ts.map +0 -1
  218. package/lib/types/project.d.ts +0 -116
  219. package/lib/types/project.d.ts.map +0 -1
  220. package/lib/types/prompt.d.ts +0 -70
  221. package/lib/types/prompt.d.ts.map +0 -1
  222. package/lib/types/query.d.ts +0 -114
  223. package/lib/types/query.d.ts.map +0 -1
  224. package/lib/types/refs.d.ts +0 -22
  225. package/lib/types/refs.d.ts.map +0 -1
  226. package/lib/types/runs.d.ts +0 -32
  227. package/lib/types/runs.d.ts.map +0 -1
  228. package/lib/types/store/activity-catalog.d.ts +0 -26
  229. package/lib/types/store/activity-catalog.d.ts.map +0 -1
  230. package/lib/types/store/agent.d.ts +0 -18
  231. package/lib/types/store/agent.d.ts.map +0 -1
  232. package/lib/types/store/collections.d.ts +0 -63
  233. package/lib/types/store/collections.d.ts.map +0 -1
  234. package/lib/types/store/common.d.ts +0 -22
  235. package/lib/types/store/common.d.ts.map +0 -1
  236. package/lib/types/store/doc-analyzer.d.ts +0 -132
  237. package/lib/types/store/doc-analyzer.d.ts.map +0 -1
  238. package/lib/types/store/dsl-workflow.d.ts +0 -238
  239. package/lib/types/store/dsl-workflow.d.ts.map +0 -1
  240. package/lib/types/store/index.d.ts +0 -11
  241. package/lib/types/store/index.d.ts.map +0 -1
  242. package/lib/types/store/object-types.d.ts +0 -23
  243. package/lib/types/store/object-types.d.ts.map +0 -1
  244. package/lib/types/store/signals.d.ts +0 -5
  245. package/lib/types/store/signals.d.ts.map +0 -1
  246. package/lib/types/store/store.d.ts +0 -290
  247. package/lib/types/store/store.d.ts.map +0 -1
  248. package/lib/types/store/temporalio.d.ts +0 -16
  249. package/lib/types/store/temporalio.d.ts.map +0 -1
  250. package/lib/types/store/workflow.d.ts +0 -344
  251. package/lib/types/store/workflow.d.ts.map +0 -1
  252. package/lib/types/tenant.d.ts +0 -10
  253. package/lib/types/tenant.d.ts.map +0 -1
  254. package/lib/types/training.d.ts +0 -38
  255. package/lib/types/training.d.ts.map +0 -1
  256. package/lib/types/transient-tokens.d.ts +0 -24
  257. package/lib/types/transient-tokens.d.ts.map +0 -1
  258. package/lib/types/user.d.ts +0 -113
  259. package/lib/types/user.d.ts.map +0 -1
  260. package/lib/types/utils/auth.d.ts +0 -3
  261. package/lib/types/utils/auth.d.ts.map +0 -1
  262. package/lib/types/utils/schemas.d.ts +0 -7
  263. package/lib/types/utils/schemas.d.ts.map +0 -1
  264. package/lib/types/utils/type-helpers.d.ts +0 -3
  265. package/lib/types/utils/type-helpers.d.ts.map +0 -1
  266. package/lib/vertesia-common.js +0 -2
  267. package/lib/vertesia-common.js.map +0 -1
package/src/query.ts CHANGED
@@ -43,6 +43,7 @@ export interface SimpleSearchQuery {
43
43
  }
44
44
 
45
45
  export interface ObjectSearchQuery extends SimpleSearchQuery {
46
+ id?: string;
46
47
  createdFrom?: string;
47
48
  createdTo?: string;
48
49
  updatedFrom?: string;
@@ -86,6 +87,7 @@ export interface RunSearchQuery extends SimpleSearchQuery {
86
87
  finish_reason?: string;
87
88
  created_by?: string;
88
89
  workflow_run_ids?: string[];
90
+ run_ids?: string[];
89
91
  }
90
92
 
91
93
  export interface WorkflowExecutionSearchQuery extends SimpleSearchQuery {
@@ -0,0 +1,34 @@
1
+ /**
2
+ * Rate Limiter Types
3
+ */
4
+
5
+ export interface RateLimiterCapacity {
6
+ current: number;
7
+ base: number;
8
+ max: number;
9
+ }
10
+
11
+ export interface RateLimiterBreakerState {
12
+ state: 'open' | 'closed';
13
+ is_open: boolean;
14
+ last_opened_at?: string;
15
+ consecutive_failures?: number;
16
+ }
17
+
18
+ export interface RateLimiterModelStatus {
19
+ model_id: string;
20
+ admitted: number;
21
+ delayed: number;
22
+ capacity: RateLimiterCapacity;
23
+ breaker: RateLimiterBreakerState;
24
+ last_updated: string;
25
+ }
26
+
27
+ export interface RateLimiterStatus {
28
+ environment_id: string;
29
+ model_id: string;
30
+ status: RateLimiterModelStatus;
31
+ }
32
+
33
+ // Always return an array for consistency
34
+ export type RateLimiterStatusResponse = RateLimiterStatus[];
@@ -69,4 +69,5 @@ export interface CollectionSearchPayload {
69
69
  offset?: number;
70
70
  name?: string;
71
71
  type?: string;
72
+ types?: string[];
72
73
  }
@@ -3,6 +3,13 @@ import { SupportedEmbeddingTypes } from "../project.js";
3
3
  import { ComplexSearchQuery } from "../query.js";
4
4
  import { BaseObject } from "./common.js";
5
5
 
6
+ export enum ContentObjectApiHeaders {
7
+ COLLECTION_ID = 'x-collection-id',
8
+ PROCESSING_PRIORITY = 'x-processing-priority',
9
+ CREATE_REVISION = 'x-create-revision',
10
+ REVISION_LABEL = 'x-revision-label',
11
+ }
12
+
6
13
  export enum ContentObjectStatus {
7
14
  created = "created",
8
15
  processing = "processing", // the was created and still processing
@@ -220,6 +227,11 @@ export interface ContentObjectItem<T = Record<string, any>> extends BaseObject {
220
227
  * and modification attempts should be rejected.
221
228
  */
222
229
  is_locked?: boolean;
230
+
231
+ /**
232
+ * The document score, used for ranking and sorting.
233
+ */
234
+ score?: number;
223
235
  }
224
236
 
225
237
  /**
@@ -378,3 +390,8 @@ export interface GetFileUrlResponse {
378
390
  mime_type: string;
379
391
  path: string;
380
392
  }
393
+
394
+ export enum ContentObjectProcessingPriority {
395
+ normal = "normal",
396
+ low = "low",
397
+ }
@@ -12,6 +12,13 @@ export enum ContentEventName {
12
12
  api_request = "api_request",
13
13
  }
14
14
 
15
+ export interface Queue {
16
+ name: string;
17
+ // use either suffix or full name. fullname has precedence over suffix
18
+ queue_suffix?: string; // suffix to append to the base queue name
19
+ queue_full_name?: string; // full name
20
+ }
21
+
15
22
  export interface WorkflowExecutionBaseParams<T = Record<string, any>> {
16
23
  /**
17
24
  * The ref of the user who initiated the workflow.
@@ -72,14 +79,10 @@ export interface WorkflowExecutionBaseParams<T = Record<string, any>> {
72
79
  };
73
80
 
74
81
  /**
75
- * Whether to route resource intensive tasks to a heavy load queue. Managed by the application.
82
+ * List of enabled processing queues. Managed by the application.
76
83
  */
77
- _enable_heavy_task_routing?: boolean;
84
+ _enabled_queues?: Queue[];
78
85
 
79
- /**
80
- * The suffix to append to the task queue name for heavy load routing. Managed by the application.
81
- */
82
- _heavy_task_queue_suffix?: string;
83
86
  }
84
87
 
85
88
  export interface WorkflowExecutionPayload<T = Record<string, any>> extends WorkflowExecutionBaseParams<T> {
@@ -405,3 +408,44 @@ export interface Plan {
405
408
  plan: PlanTask[];
406
409
  comment?: string;
407
410
  }
411
+
412
+ export const LOW_PRIORITY_TASK_QUEUE = "low_priority";
413
+
414
+ /**
415
+ * WebSocket message types for bidirectional communication
416
+ */
417
+ export interface WebSocketSignalMessage {
418
+ type: 'signal';
419
+ signalName: string;
420
+ data: any;
421
+ requestId?: string | number;
422
+ }
423
+
424
+ export interface WebSocketPingMessage {
425
+ type: 'ping';
426
+ }
427
+
428
+ export interface WebSocketPongMessage {
429
+ type: 'pong';
430
+ }
431
+
432
+ export interface WebSocketAckMessage {
433
+ type: 'ack';
434
+ requestId: string | number;
435
+ }
436
+
437
+ export interface WebSocketErrorMessage {
438
+ type: 'error';
439
+ requestId?: string | number;
440
+ error: string;
441
+ }
442
+
443
+ export type WebSocketClientMessage =
444
+ | WebSocketSignalMessage
445
+ | WebSocketPingMessage;
446
+
447
+ export type WebSocketServerMessage =
448
+ | WebSocketPongMessage
449
+ | WebSocketAckMessage
450
+ | WebSocketErrorMessage
451
+ | AgentMessage;
@@ -0,0 +1,114 @@
1
+ /**
2
+ * STS Token Request Types
3
+ * These types define the structure for token requests to the Security Token Service
4
+ */
5
+
6
+ export type TokenType = 'apikey' | 'user' | 'project' | 'environment' | 'agent' | 'service_account';
7
+
8
+ interface BaseTokenRequest {
9
+ type: TokenType;
10
+ audience?: string;
11
+ }
12
+
13
+ // API key doesn't need account/project as it's determined from the key
14
+ export interface ApiKeyTokenRequest extends BaseTokenRequest {
15
+ type: 'apikey';
16
+ key: string;
17
+ }
18
+
19
+ // User token needs optional account/project for scoping
20
+ export interface UserTokenRequest extends BaseTokenRequest {
21
+ type: 'user';
22
+ user_id?: string; // Optional - can be determined from auth token
23
+ account_id?: string; // Optional - for scoping to specific account
24
+ project_id?: string; // Optional - for scoping to specific project
25
+ expires_at?: number;
26
+
27
+ on_behalf_of?: string; // Optional - user ID when acting on behalf of another user
28
+ }
29
+
30
+ // Project token requires project_id and account_id
31
+ export interface ProjectTokenRequest extends BaseTokenRequest {
32
+ type: 'project';
33
+ project_id: string;
34
+ account_id: string;
35
+ }
36
+
37
+ // Environment token requires IDs - names fetched from DB
38
+ export interface EnvironmentTokenRequest extends BaseTokenRequest {
39
+ type: 'environment';
40
+ environment_id: string;
41
+ environment_name: string; // Still required as environments may not be in DB
42
+ project_id: string; // Will fetch name and verify account
43
+ account_id: string; // Will fetch name and verify project belongs to it
44
+ }
45
+
46
+ // Agent token for service accounts acting as agents
47
+ export interface AgentTokenRequest extends BaseTokenRequest {
48
+ type: 'agent';
49
+ account_id: string;
50
+ project_id: string; // Will verify it belongs to account
51
+ name?: string;
52
+ on_behalf_of: string; // Required: signed Vertesia token to verify user context
53
+ }
54
+
55
+ // Service account token
56
+ export interface ServiceAccountTokenRequest extends BaseTokenRequest {
57
+ type: 'service_account';
58
+ account_id: string;
59
+ project_id: string; // Will verify it belongs to account
60
+ roles?: string[]; // Optional - roles for the service account token
61
+ name?: string;
62
+ }
63
+
64
+ export type IssueTokenRequest =
65
+ | ApiKeyTokenRequest
66
+ | UserTokenRequest
67
+ | ProjectTokenRequest
68
+ | EnvironmentTokenRequest
69
+ | AgentTokenRequest
70
+ | ServiceAccountTokenRequest;
71
+
72
+ export interface RefreshTokenRequest {
73
+ token: string;
74
+ }
75
+
76
+ export interface RevokeTokenRequest {
77
+ token: string;
78
+ }
79
+
80
+ // Helper type guards for type narrowing
81
+ export function isApiKeyRequest(req: IssueTokenRequest): req is ApiKeyTokenRequest {
82
+ return req.type === 'apikey';
83
+ }
84
+
85
+ export function isUserRequest(req: IssueTokenRequest): req is UserTokenRequest {
86
+ return req.type === 'user';
87
+ }
88
+
89
+ export function isProjectRequest(req: IssueTokenRequest): req is ProjectTokenRequest {
90
+ return req.type === 'project';
91
+ }
92
+
93
+ export function isEnvironmentRequest(req: IssueTokenRequest): req is EnvironmentTokenRequest {
94
+ return req.type === 'environment';
95
+ }
96
+
97
+ export function isAgentRequest(req: IssueTokenRequest): req is AgentTokenRequest {
98
+ return req.type === 'agent';
99
+ }
100
+
101
+ export function isServiceAccountRequest(req: IssueTokenRequest): req is ServiceAccountTokenRequest {
102
+ return req.type === 'service_account';
103
+ }
104
+
105
+ // Response types
106
+ export interface TokenResponse {
107
+ token: string;
108
+ }
109
+
110
+ export interface ValidateTokenResponse {
111
+ valid: boolean;
112
+ payload?: any;
113
+ error?: string;
114
+ }
@@ -1,8 +1,8 @@
1
- import { PromptRole } from "@llumiverse/common";
2
1
  import type { JSONSchema } from "@llumiverse/common";
2
+ import { PromptRole } from "@llumiverse/common";
3
3
  import type { JSONSchema4 } from "json-schema";
4
4
  import { InteractionRefWithSchema, PopulatedInteraction } from "../interaction.js";
5
- import { PopulatedPromptSegmentDef, PromptSegmentDef, PromptSegmentDefType, PromptTemplateRefWithSchema } from "../prompt.js";
5
+ import { ExecutablePromptSegmentDef, PromptSegmentDefType } from "../prompt.js";
6
6
 
7
7
 
8
8
  export function mergeJSONSchemas(schemas: JSONSchema[]) {
@@ -22,7 +22,7 @@ export function mergeJSONSchemas(schemas: JSONSchema[]) {
22
22
  return schema;
23
23
  }
24
24
 
25
- export function _mergePromptsSchema(prompts: PromptSegmentDef<PromptTemplateRefWithSchema>[] | PopulatedPromptSegmentDef[]) {
25
+ export function _mergePromptsSchema(prompts: ExecutablePromptSegmentDef[]) {
26
26
  const props: Record<string, JSONSchema4> = {};
27
27
  let required: string[] = [];
28
28
  for (const prompt of prompts) {
@@ -59,5 +59,5 @@ export function _mergePromptsSchema(prompts: PromptSegmentDef<PromptTemplateRefW
59
59
 
60
60
  export function mergePromptsSchema(interaction: InteractionRefWithSchema | PopulatedInteraction) {
61
61
  if (!interaction.prompts) return null;
62
- return _mergePromptsSchema(interaction.prompts);
62
+ return _mergePromptsSchema(interaction.prompts as ExecutablePromptSegmentDef[]);
63
63
  }
package/LICENSE DELETED
@@ -1,13 +0,0 @@
1
- Copyright 2024 Composable
2
-
3
- Licensed under the Apache License, Version 2.0 (the "License");
4
- you may not use this file except in compliance with the License.
5
- You may obtain a copy of the License at
6
-
7
- http://www.apache.org/licenses/LICENSE-2.0
8
-
9
- Unless required by applicable law or agreed to in writing, software
10
- distributed under the License is distributed on an "AS IS" BASIS,
11
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
- See the License for the specific language governing permissions and
13
- limitations under the License.
@@ -1,61 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Progress = void 0;
4
- class ProgressSpan {
5
- parent;
6
- parentUnits;
7
- spanUnits;
8
- unitsDone;
9
- constructor(parent, parentUnits, spanUnits) {
10
- this.parent = parent;
11
- this.parentUnits = parentUnits;
12
- this.spanUnits = spanUnits;
13
- this.unitsDone = 0;
14
- }
15
- done(units) {
16
- const remaining = this.spanUnits - this.unitsDone;
17
- if (!remaining)
18
- return; // ignore if already done
19
- if (!units || units > remaining) {
20
- units = remaining;
21
- }
22
- this.unitsDone += units;
23
- this.parent.done(units * this.parentUnits / this.spanUnits);
24
- }
25
- get parentUnitsDone() {
26
- return Math.round(this.unitsDone * this.parentUnits / this.spanUnits);
27
- }
28
- get isDone() {
29
- return this.unitsDone >= this.spanUnits;
30
- }
31
- }
32
- class Progress {
33
- total;
34
- unitsDone = 0;
35
- constructor(total) {
36
- this.total = total;
37
- }
38
- get fraction() {
39
- return this.unitsDone / this.total;
40
- }
41
- get percent() {
42
- return Math.round(this.fraction * 100);
43
- }
44
- get isDone() {
45
- return this.unitsDone >= this.total;
46
- }
47
- done(units) {
48
- const remaining = this.total - this.unitsDone;
49
- if (!remaining)
50
- return; // ignore if already done
51
- if (!units || units > remaining) {
52
- units = remaining;
53
- }
54
- this.unitsDone += units;
55
- }
56
- span(units, spanUnits) {
57
- return new ProgressSpan(this, units, spanUnits || units);
58
- }
59
- }
60
- exports.Progress = Progress;
61
- //# sourceMappingURL=Progress.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Progress.js","sourceRoot":"","sources":["../../src/Progress.ts"],"names":[],"mappings":";;;AACA,MAAM,YAAY;IAEK;IAAyB;IAA4B;IADxE,SAAS,CAAS;IAClB,YAAmB,MAAgB,EAAS,WAAmB,EAAS,SAAiB;QAAtE,WAAM,GAAN,MAAM,CAAU;QAAS,gBAAW,GAAX,WAAW,CAAQ;QAAS,cAAS,GAAT,SAAS,CAAQ;QACrF,IAAI,CAAC,SAAS,GAAG,CAAC,CAAC;IACvB,CAAC;IAED,IAAI,CAAC,KAAc;QACf,MAAM,SAAS,GAAG,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC,SAAS,CAAC;QAClD,IAAI,CAAC,SAAS;YAAE,OAAO,CAAC,yBAAyB;QACjD,IAAI,CAAC,KAAK,IAAI,KAAK,GAAG,SAAS,EAAE,CAAC;YAC9B,KAAK,GAAG,SAAS,CAAC;QACtB,CAAC;QACD,IAAI,CAAC,SAAS,IAAI,KAAK,CAAC;QACxB,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,WAAW,GAAG,IAAI,CAAC,SAAS,CAAC,CAAC;IAChE,CAAC;IAED,IAAI,eAAe;QACf,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC,WAAW,GAAG,IAAI,CAAC,SAAS,CAAC,CAAC;IAC1E,CAAC;IAED,IAAI,MAAM;QACN,OAAO,IAAI,CAAC,SAAS,IAAI,IAAI,CAAC,SAAS,CAAC;IAC5C,CAAC;CACJ;AAED,MAAa,QAAQ;IAGE;IAFnB,SAAS,GAAW,CAAC,CAAC;IAEtB,YAAmB,KAAa;QAAb,UAAK,GAAL,KAAK,CAAQ;IAChC,CAAC;IAED,IAAI,QAAQ;QACR,OAAO,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC,KAAK,CAAC;IACvC,CAAC;IAED,IAAI,OAAO;QACP,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,QAAQ,GAAG,GAAG,CAAC,CAAC;IAC3C,CAAC;IAED,IAAI,MAAM;QACN,OAAO,IAAI,CAAC,SAAS,IAAI,IAAI,CAAC,KAAK,CAAC;IACxC,CAAC;IAED,IAAI,CAAC,KAAc;QACf,MAAM,SAAS,GAAG,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,SAAS,CAAC;QAC9C,IAAI,CAAC,SAAS;YAAE,OAAO,CAAC,yBAAyB;QACjD,IAAI,CAAC,KAAK,IAAI,KAAK,GAAG,SAAS,EAAE,CAAC;YAC9B,KAAK,GAAG,SAAS,CAAC;QACtB,CAAC;QACD,IAAI,CAAC,SAAS,IAAI,KAAK,CAAC;IAC5B,CAAC;IAED,IAAI,CAAC,KAAa,EAAE,SAAkB;QAClC,OAAO,IAAI,YAAY,CAAC,IAAI,EAAE,KAAK,EAAE,SAAS,IAAI,KAAK,CAAC,CAAC;IAC7D,CAAC;CACJ;AA9BD,4BA8BC"}
@@ -1,55 +0,0 @@
1
- "use strict";
2
- /**
3
- * @module access-control
4
- * @description
5
- * Access control interfaces
6
- */
7
- Object.defineProperty(exports, "__esModule", { value: true });
8
- exports.AccessControlPrincipalType = exports.AccessControlResourceType = exports.Permission = void 0;
9
- var Permission;
10
- (function (Permission) {
11
- Permission["int_read"] = "interaction:read";
12
- Permission["int_write"] = "interaction:write";
13
- Permission["int_delete"] = "interaction:delete";
14
- Permission["int_execute"] = "interaction:execute";
15
- Permission["run_read"] = "run:read";
16
- Permission["run_write"] = "run:write";
17
- Permission["env_admin"] = "environment:admin";
18
- Permission["project_admin"] = "project:admin";
19
- Permission["project_integration_read"] = "project:integration_read";
20
- Permission["project_settings_write"] = "project:settings_write";
21
- Permission["api_key_create"] = "api_key:create";
22
- Permission["api_key_read"] = "api_key:read";
23
- Permission["api_key_update"] = "api_key:update";
24
- Permission["api_key_delete"] = "api_key:delete";
25
- Permission["account_read"] = "account:read";
26
- Permission["account_write"] = "account:write";
27
- Permission["account_admin"] = "account:admin";
28
- Permission["manage_billing"] = "account:billing";
29
- Permission["account_member"] = "account:member";
30
- Permission["content_read"] = "content:read";
31
- Permission["content_write"] = "content:write";
32
- Permission["content_delete"] = "content:delete";
33
- Permission["content_admin"] = "content:admin";
34
- Permission["content_superadmin"] = "content:superadmin";
35
- Permission["workflow_run"] = "workflow:run";
36
- Permission["workflow_admin"] = "workflow:admin";
37
- /**
38
- * whether the user has access to Sutdio App.
39
- */
40
- Permission["studio_access"] = "studio:access";
41
- })(Permission || (exports.Permission = Permission = {}));
42
- var AccessControlResourceType;
43
- (function (AccessControlResourceType) {
44
- AccessControlResourceType["project"] = "project";
45
- AccessControlResourceType["environment"] = "environment";
46
- AccessControlResourceType["account"] = "account";
47
- AccessControlResourceType["interaction"] = "interaction";
48
- AccessControlResourceType["app"] = "application";
49
- })(AccessControlResourceType || (exports.AccessControlResourceType = AccessControlResourceType = {}));
50
- var AccessControlPrincipalType;
51
- (function (AccessControlPrincipalType) {
52
- AccessControlPrincipalType["user"] = "user";
53
- AccessControlPrincipalType["group"] = "group";
54
- })(AccessControlPrincipalType || (exports.AccessControlPrincipalType = AccessControlPrincipalType = {}));
55
- //# sourceMappingURL=access-control.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"access-control.js","sourceRoot":"","sources":["../../src/access-control.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;AAIH,IAAY,UAyCX;AAzCD,WAAY,UAAU;IAClB,2CAA6B,CAAA;IAC7B,6CAA+B,CAAA;IAC/B,+CAAiC,CAAA;IAEjC,iDAAmC,CAAA;IACnC,mCAAqB,CAAA;IACrB,qCAAuB,CAAA;IAEvB,6CAA+B,CAAA;IAE/B,6CAA+B,CAAA;IAC/B,mEAAqD,CAAA;IACrD,+DAAiD,CAAA;IAEjD,+CAAiC,CAAA;IACjC,2CAA6B,CAAA;IAC7B,+CAAiC,CAAA;IACjC,+CAAiC,CAAA;IAEjC,2CAA6B,CAAA;IAC7B,6CAA+B,CAAA;IAC/B,6CAA+B,CAAA;IAC/B,gDAAkC,CAAA;IAClC,+CAAiC,CAAA;IAGjC,2CAA6B,CAAA;IAC7B,6CAA+B,CAAA;IAC/B,+CAAiC,CAAA;IACjC,6CAA+B,CAAA;IAC/B,uDAAyC,CAAA;IAGzC,2CAA6B,CAAA;IAC7B,+CAAiC,CAAA;IAEjC;;OAEG;IACH,6CAA+B,CAAA;AACnC,CAAC,EAzCW,UAAU,0BAAV,UAAU,QAyCrB;AAED,IAAY,yBAMX;AAND,WAAY,yBAAyB;IACjC,gDAAmB,CAAA;IACnB,wDAA2B,CAAA;IAC3B,gDAAmB,CAAA;IACnB,wDAA2B,CAAA;IAC3B,gDAAmB,CAAA;AACvB,CAAC,EANW,yBAAyB,yCAAzB,yBAAyB,QAMpC;AAED,IAAY,0BAGX;AAHD,WAAY,0BAA0B;IAClC,2CAAa,CAAA;IACb,6CAAe,CAAA;AACnB,CAAC,EAHW,0BAA0B,0CAA1B,0BAA0B,QAGrC"}
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=analytics.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"analytics.js","sourceRoot":"","sources":["../../src/analytics.ts"],"names":[],"mappings":""}
package/lib/cjs/apikey.js DELETED
@@ -1,14 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.PrincipalType = exports.ApiKeyTypes = void 0;
4
- var ApiKeyTypes;
5
- (function (ApiKeyTypes) {
6
- ApiKeyTypes["secret"] = "sk";
7
- })(ApiKeyTypes || (exports.ApiKeyTypes = ApiKeyTypes = {}));
8
- var PrincipalType;
9
- (function (PrincipalType) {
10
- PrincipalType["User"] = "user";
11
- PrincipalType["ApiKey"] = "apikey";
12
- PrincipalType["ServiceAccount"] = "service_account";
13
- })(PrincipalType || (exports.PrincipalType = PrincipalType = {}));
14
- //# sourceMappingURL=apikey.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"apikey.js","sourceRoot":"","sources":["../../src/apikey.ts"],"names":[],"mappings":";;;AAKA,IAAY,WAEX;AAFD,WAAY,WAAW;IACnB,4BAAa,CAAA;AACjB,CAAC,EAFW,WAAW,2BAAX,WAAW,QAEtB;AAmFD,IAAY,aAIX;AAJD,WAAY,aAAa;IACrB,8BAAa,CAAA;IACb,kCAAiB,CAAA;IACjB,mDAAkC,CAAA;AACtC,CAAC,EAJW,aAAa,6BAAb,aAAa,QAIxB"}
package/lib/cjs/apps.js DELETED
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=apps.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"apps.js","sourceRoot":"","sources":["../../src/apps.ts"],"names":[],"mappings":""}
package/lib/cjs/common.js DELETED
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=common.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"common.js","sourceRoot":"","sources":["../../src/common.ts"],"names":[],"mappings":""}
@@ -1,44 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ExecutionEnvironmentRefPopulate = exports.SupportedProvidersList = exports.CustomProvidersList = exports.SupportedProviders = exports.CustomProviders = void 0;
4
- const common_1 = require("@llumiverse/common");
5
- // Virtual providers from studio
6
- var CustomProviders;
7
- (function (CustomProviders) {
8
- CustomProviders["virtual_lb"] = "virtual_lb";
9
- CustomProviders["virtual_mediator"] = "virtual_mediator";
10
- CustomProviders["test"] = "test";
11
- })(CustomProviders || (exports.CustomProviders = CustomProviders = {}));
12
- exports.SupportedProviders = {
13
- ...common_1.Providers,
14
- ...CustomProviders
15
- };
16
- exports.CustomProvidersList = {
17
- virtual_lb: {
18
- id: CustomProviders.virtual_lb,
19
- name: "Virtual - Load Balancer",
20
- requiresApiKey: false,
21
- requiresEndpointUrl: false,
22
- supportSearch: false,
23
- },
24
- virtual_mediator: {
25
- id: CustomProviders.virtual_mediator,
26
- name: "Virtual - Mediator",
27
- requiresApiKey: false,
28
- requiresEndpointUrl: false,
29
- supportSearch: false,
30
- },
31
- test: {
32
- id: CustomProviders.test,
33
- name: "Test LLM",
34
- requiresApiKey: false,
35
- requiresEndpointUrl: false,
36
- supportSearch: false,
37
- },
38
- };
39
- exports.SupportedProvidersList = {
40
- ...common_1.ProviderList,
41
- ...exports.CustomProvidersList
42
- };
43
- exports.ExecutionEnvironmentRefPopulate = "id name provider enabled_models default_model endpoint_url allowed_projects account created_at updated_at";
44
- //# sourceMappingURL=environment.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"environment.js","sourceRoot":"","sources":["../../src/environment.ts"],"names":[],"mappings":";;;AACA,+CAA6D;AAE7D,gCAAgC;AAChC,IAAY,eAIX;AAJD,WAAY,eAAe;IACvB,4CAAyB,CAAA;IACzB,wDAAqC,CAAA;IACrC,gCAAa,CAAA;AACjB,CAAC,EAJW,eAAe,+BAAf,eAAe,QAI1B;AAIY,QAAA,kBAAkB,GAAG;IAC9B,GAAG,kBAAS;IACZ,GAAG,eAAe;CACZ,CAAC;AAME,QAAA,mBAAmB,GAAqD;IACjF,UAAU,EACV;QACI,EAAE,EAAE,eAAe,CAAC,UAAU;QAC9B,IAAI,EAAE,yBAAyB;QAC/B,cAAc,EAAE,KAAK;QACrB,mBAAmB,EAAE,KAAK;QAC1B,aAAa,EAAE,KAAK;KACvB;IACD,gBAAgB,EAChB;QACI,EAAE,EAAE,eAAe,CAAC,gBAAgB;QACpC,IAAI,EAAE,oBAAoB;QAC1B,cAAc,EAAE,KAAK;QACrB,mBAAmB,EAAE,KAAK;QAC1B,aAAa,EAAE,KAAK;KACvB;IACD,IAAI,EAAE;QACF,EAAE,EAAE,eAAe,CAAC,IAAI;QACxB,IAAI,EAAE,UAAU;QAChB,cAAc,EAAE,KAAK;QACrB,mBAAmB,EAAE,KAAK;QAC1B,aAAa,EAAE,KAAK;KACvB;CACJ,CAAC;AAEW,QAAA,sBAAsB,GAAwD;IACvF,GAAG,qBAAY;IACf,GAAG,2BAAmB;CAChB,CAAC;AA6DE,QAAA,+BAA+B,GAAG,2GAA2G,CAAC"}
package/lib/cjs/facets.js DELETED
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=facets.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"facets.js","sourceRoot":"","sources":["../../src/facets.ts"],"names":[],"mappings":""}
package/lib/cjs/group.js DELETED
@@ -1,5 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.UserGroupRefPopulate = void 0;
4
- exports.UserGroupRefPopulate = 'id name tags description';
5
- //# sourceMappingURL=group.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"group.js","sourceRoot":"","sources":["../../src/group.ts"],"names":[],"mappings":";;;AAyBa,QAAA,oBAAoB,GAAG,0BAA0B,CAAC"}
package/lib/cjs/index.js DELETED
@@ -1,45 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./access-control.js"), exports);
18
- __exportStar(require("./analytics.js"), exports);
19
- __exportStar(require("./apikey.js"), exports);
20
- __exportStar(require("./apps.js"), exports);
21
- __exportStar(require("./common.js"), exports);
22
- __exportStar(require("./environment.js"), exports);
23
- __exportStar(require("./facets.js"), exports);
24
- __exportStar(require("./group.js"), exports);
25
- __exportStar(require("./integrations.js"), exports);
26
- __exportStar(require("./interaction.js"), exports);
27
- __exportStar(require("./json-schema.js"), exports);
28
- __exportStar(require("./json.js"), exports);
29
- __exportStar(require("./meters.js"), exports);
30
- __exportStar(require("./model_utility.js"), exports);
31
- __exportStar(require("./payload.js"), exports);
32
- __exportStar(require("./Progress.js"), exports);
33
- __exportStar(require("./project.js"), exports);
34
- __exportStar(require("./prompt.js"), exports);
35
- __exportStar(require("./query.js"), exports);
36
- __exportStar(require("./refs.js"), exports);
37
- __exportStar(require("./runs.js"), exports);
38
- __exportStar(require("./store/index.js"), exports);
39
- __exportStar(require("./tenant.js"), exports);
40
- __exportStar(require("./training.js"), exports);
41
- __exportStar(require("./transient-tokens.js"), exports);
42
- __exportStar(require("./user.js"), exports);
43
- __exportStar(require("./utils/auth.js"), exports);
44
- __exportStar(require("./utils/schemas.js"), exports);
45
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,sDAAoC;AACpC,iDAA+B;AAC/B,8CAA4B;AAC5B,4CAA0B;AAC1B,8CAA4B;AAC5B,mDAAiC;AACjC,8CAA4B;AAC5B,6CAA2B;AAC3B,oDAAkC;AAClC,mDAAiC;AACjC,mDAAiC;AACjC,4CAA0B;AAC1B,8CAA4B;AAC5B,qDAAmC;AACnC,+CAA6B;AAC7B,gDAA8B;AAC9B,+CAA6B;AAC7B,8CAA4B;AAC5B,6CAA2B;AAC3B,4CAA0B;AAC1B,4CAA0B;AAC1B,mDAAiC;AACjC,8CAA4B;AAC5B,gDAA8B;AAC9B,wDAAsC;AACtC,4CAA0B;AAC1B,kDAAgC;AAChC,qDAAmC"}
@@ -1,12 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.SupportedIntegrations = void 0;
4
- var SupportedIntegrations;
5
- (function (SupportedIntegrations) {
6
- SupportedIntegrations["gladia"] = "gladia";
7
- SupportedIntegrations["github"] = "github";
8
- SupportedIntegrations["aws"] = "aws";
9
- SupportedIntegrations["magic_pdf"] = "magic_pdf";
10
- SupportedIntegrations["serper"] = "serper";
11
- })(SupportedIntegrations || (exports.SupportedIntegrations = SupportedIntegrations = {}));
12
- //# sourceMappingURL=integrations.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"integrations.js","sourceRoot":"","sources":["../../src/integrations.ts"],"names":[],"mappings":";;;AA+BA,IAAY,qBAMX;AAND,WAAY,qBAAqB;IAC7B,0CAAiB,CAAA;IACjB,0CAAiB,CAAA;IACjB,oCAAW,CAAA;IACX,gDAAuB,CAAA;IACvB,0CAAiB,CAAA;AACrB,CAAC,EANW,qBAAqB,qCAArB,qBAAqB,QAMhC"}