@vertesia/common 0.54.0 → 0.56.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (227) hide show
  1. package/lib/cjs/Progress.js +61 -0
  2. package/lib/cjs/Progress.js.map +1 -0
  3. package/lib/cjs/access-control.js +39 -0
  4. package/lib/cjs/access-control.js.map +1 -0
  5. package/lib/cjs/analytics.js +3 -0
  6. package/lib/cjs/analytics.js.map +1 -0
  7. package/lib/cjs/apikey.js +15 -0
  8. package/lib/cjs/apikey.js.map +1 -0
  9. package/lib/cjs/common.js +3 -0
  10. package/lib/cjs/common.js.map +1 -0
  11. package/lib/cjs/environment.js +116 -0
  12. package/lib/cjs/environment.js.map +1 -0
  13. package/lib/cjs/facets.js +3 -0
  14. package/lib/cjs/facets.js.map +1 -0
  15. package/lib/cjs/index.js +40 -0
  16. package/lib/cjs/index.js.map +1 -0
  17. package/lib/cjs/integrations.js +12 -0
  18. package/lib/cjs/integrations.js.map +1 -0
  19. package/lib/cjs/interaction.js +63 -0
  20. package/lib/cjs/interaction.js.map +1 -0
  21. package/lib/cjs/meters.js +13 -0
  22. package/lib/cjs/meters.js.map +1 -0
  23. package/lib/cjs/package.json +3 -0
  24. package/lib/cjs/payload.js +3 -0
  25. package/lib/cjs/payload.js.map +1 -0
  26. package/lib/cjs/plugin.js +3 -0
  27. package/lib/cjs/plugin.js.map +1 -0
  28. package/lib/cjs/project.js +50 -0
  29. package/lib/cjs/project.js.map +1 -0
  30. package/lib/cjs/prompt.js +21 -0
  31. package/lib/cjs/prompt.js.map +1 -0
  32. package/lib/cjs/query.js +3 -0
  33. package/lib/cjs/query.js.map +1 -0
  34. package/lib/cjs/refs.js +12 -0
  35. package/lib/cjs/refs.js.map +1 -0
  36. package/lib/cjs/runs.js +3 -0
  37. package/lib/cjs/runs.js.map +1 -0
  38. package/lib/cjs/store/activity-catalog.js +3 -0
  39. package/lib/cjs/store/activity-catalog.js.map +1 -0
  40. package/lib/cjs/store/agent.js +3 -0
  41. package/lib/cjs/store/agent.js.map +1 -0
  42. package/lib/cjs/store/collections.js +9 -0
  43. package/lib/cjs/store/collections.js.map +1 -0
  44. package/lib/cjs/store/common.js +3 -0
  45. package/lib/cjs/store/common.js.map +1 -0
  46. package/lib/cjs/store/doc-analyzer.js +3 -0
  47. package/lib/cjs/store/doc-analyzer.js.map +1 -0
  48. package/lib/cjs/store/dsl-workflow.js +5 -0
  49. package/lib/cjs/store/dsl-workflow.js.map +1 -0
  50. package/lib/cjs/store/index.js +28 -0
  51. package/lib/cjs/store/index.js.map +1 -0
  52. package/lib/cjs/store/object-types.js +98 -0
  53. package/lib/cjs/store/object-types.js.map +1 -0
  54. package/lib/cjs/store/signals.js +3 -0
  55. package/lib/cjs/store/signals.js.map +1 -0
  56. package/lib/cjs/store/store.js +18 -0
  57. package/lib/cjs/store/store.js.map +1 -0
  58. package/lib/cjs/store/temporalio.js +44 -0
  59. package/lib/cjs/store/temporalio.js.map +1 -0
  60. package/lib/cjs/store/workflow.js +47 -0
  61. package/lib/cjs/store/workflow.js.map +1 -0
  62. package/lib/cjs/training.js +14 -0
  63. package/lib/cjs/training.js.map +1 -0
  64. package/lib/cjs/transient-tokens.js +9 -0
  65. package/lib/cjs/transient-tokens.js.map +1 -0
  66. package/lib/cjs/user.js +17 -0
  67. package/lib/cjs/user.js.map +1 -0
  68. package/lib/cjs/utils/auth.js +15 -0
  69. package/lib/cjs/utils/auth.js.map +1 -0
  70. package/lib/cjs/utils/schemas.js +66 -0
  71. package/lib/cjs/utils/schemas.js.map +1 -0
  72. package/lib/esm/Progress.js +57 -0
  73. package/lib/esm/Progress.js.map +1 -0
  74. package/lib/esm/access-control.js +36 -0
  75. package/lib/esm/access-control.js.map +1 -0
  76. package/lib/esm/analytics.js +2 -0
  77. package/lib/esm/analytics.js.map +1 -0
  78. package/lib/esm/apikey.js +12 -0
  79. package/lib/esm/apikey.js.map +1 -0
  80. package/lib/esm/common.js +2 -0
  81. package/lib/esm/common.js.map +1 -0
  82. package/lib/esm/environment.js +113 -0
  83. package/lib/esm/environment.js.map +1 -0
  84. package/lib/esm/facets.js +2 -0
  85. package/lib/esm/facets.js.map +1 -0
  86. package/lib/esm/index.js +24 -0
  87. package/lib/esm/index.js.map +1 -0
  88. package/lib/esm/integrations.js +9 -0
  89. package/lib/esm/integrations.js.map +1 -0
  90. package/lib/esm/interaction.js +60 -0
  91. package/lib/esm/interaction.js.map +1 -0
  92. package/lib/esm/meters.js +10 -0
  93. package/lib/esm/meters.js.map +1 -0
  94. package/lib/esm/payload.js +2 -0
  95. package/lib/esm/payload.js.map +1 -0
  96. package/lib/esm/plugin.js +2 -0
  97. package/lib/esm/plugin.js.map +1 -0
  98. package/lib/esm/project.js +46 -0
  99. package/lib/esm/project.js.map +1 -0
  100. package/lib/esm/prompt.js +18 -0
  101. package/lib/esm/prompt.js.map +1 -0
  102. package/lib/esm/query.js +2 -0
  103. package/lib/esm/query.js.map +1 -0
  104. package/lib/esm/refs.js +9 -0
  105. package/lib/esm/refs.js.map +1 -0
  106. package/lib/esm/runs.js +2 -0
  107. package/lib/esm/runs.js.map +1 -0
  108. package/lib/esm/store/activity-catalog.js +2 -0
  109. package/lib/esm/store/activity-catalog.js.map +1 -0
  110. package/lib/esm/store/agent.js +2 -0
  111. package/lib/esm/store/agent.js.map +1 -0
  112. package/lib/esm/store/collections.js +6 -0
  113. package/lib/esm/store/collections.js.map +1 -0
  114. package/lib/esm/store/common.js +2 -0
  115. package/lib/esm/store/common.js.map +1 -0
  116. package/lib/esm/store/doc-analyzer.js +2 -0
  117. package/lib/esm/store/doc-analyzer.js.map +1 -0
  118. package/lib/esm/store/dsl-workflow.js +2 -0
  119. package/lib/esm/store/dsl-workflow.js.map +1 -0
  120. package/lib/esm/store/index.js +12 -0
  121. package/lib/esm/store/index.js.map +1 -0
  122. package/lib/esm/store/object-types.js +95 -0
  123. package/lib/esm/store/object-types.js.map +1 -0
  124. package/lib/esm/store/signals.js +2 -0
  125. package/lib/esm/store/signals.js.map +1 -0
  126. package/lib/esm/store/store.js +15 -0
  127. package/lib/esm/store/store.js.map +1 -0
  128. package/lib/esm/store/temporalio.js +41 -0
  129. package/lib/esm/store/temporalio.js.map +1 -0
  130. package/lib/esm/store/workflow.js +43 -0
  131. package/lib/esm/store/workflow.js.map +1 -0
  132. package/lib/esm/training.js +11 -0
  133. package/lib/esm/training.js.map +1 -0
  134. package/lib/esm/transient-tokens.js +6 -0
  135. package/lib/esm/transient-tokens.js.map +1 -0
  136. package/lib/esm/user.js +14 -0
  137. package/lib/esm/user.js.map +1 -0
  138. package/lib/esm/utils/auth.js +11 -0
  139. package/lib/esm/utils/auth.js.map +1 -0
  140. package/lib/esm/utils/schemas.js +61 -0
  141. package/lib/esm/utils/schemas.js.map +1 -0
  142. package/lib/tsconfig.tsbuildinfo +1 -0
  143. package/lib/types/Progress.d.ts +21 -0
  144. package/lib/types/Progress.d.ts.map +1 -0
  145. package/lib/types/access-control.d.ts +56 -0
  146. package/lib/types/access-control.d.ts.map +1 -0
  147. package/lib/types/analytics.d.ts +36 -0
  148. package/lib/types/analytics.d.ts.map +1 -0
  149. package/lib/types/apikey.d.ts +54 -0
  150. package/lib/types/apikey.d.ts.map +1 -0
  151. package/lib/types/common.d.ts +31 -0
  152. package/lib/types/common.d.ts.map +1 -0
  153. package/lib/types/environment.d.ts +80 -0
  154. package/lib/types/environment.d.ts.map +1 -0
  155. package/lib/types/facets.d.ts +34 -0
  156. package/lib/types/facets.d.ts.map +1 -0
  157. package/lib/types/index.d.ts +23 -0
  158. package/lib/types/index.d.ts.map +1 -0
  159. package/lib/types/integrations.d.ts +28 -0
  160. package/lib/types/integrations.d.ts.map +1 -0
  161. package/lib/types/interaction.d.ts +399 -0
  162. package/lib/types/interaction.d.ts.map +1 -0
  163. package/lib/types/meters.d.ts +23 -0
  164. package/lib/types/meters.d.ts.map +1 -0
  165. package/lib/types/payload.d.ts +52 -0
  166. package/lib/types/payload.d.ts.map +1 -0
  167. package/lib/types/plugin.d.ts +26 -0
  168. package/lib/types/plugin.d.ts.map +1 -0
  169. package/lib/types/project.d.ts +103 -0
  170. package/lib/types/project.d.ts.map +1 -0
  171. package/lib/types/prompt.d.ts +70 -0
  172. package/lib/types/prompt.d.ts.map +1 -0
  173. package/lib/types/query.d.ts +78 -0
  174. package/lib/types/query.d.ts.map +1 -0
  175. package/lib/types/refs.d.ts +19 -0
  176. package/lib/types/refs.d.ts.map +1 -0
  177. package/lib/types/runs.d.ts +32 -0
  178. package/lib/types/runs.d.ts.map +1 -0
  179. package/lib/types/store/activity-catalog.d.ts +26 -0
  180. package/lib/types/store/activity-catalog.d.ts.map +1 -0
  181. package/lib/types/store/agent.d.ts +18 -0
  182. package/lib/types/store/agent.d.ts.map +1 -0
  183. package/lib/types/store/collections.d.ts +59 -0
  184. package/lib/types/store/collections.d.ts.map +1 -0
  185. package/lib/types/store/common.d.ts +22 -0
  186. package/lib/types/store/common.d.ts.map +1 -0
  187. package/lib/types/store/doc-analyzer.d.ts +132 -0
  188. package/lib/types/store/doc-analyzer.d.ts.map +1 -0
  189. package/lib/types/store/dsl-workflow.d.ts +238 -0
  190. package/lib/types/store/dsl-workflow.d.ts.map +1 -0
  191. package/lib/types/store/index.d.ts +11 -0
  192. package/lib/types/store/index.d.ts.map +1 -0
  193. package/lib/types/store/object-types.d.ts +23 -0
  194. package/lib/types/store/object-types.d.ts.map +1 -0
  195. package/lib/types/store/signals.d.ts +5 -0
  196. package/lib/types/store/signals.d.ts.map +1 -0
  197. package/lib/types/store/store.d.ts +269 -0
  198. package/lib/types/store/store.d.ts.map +1 -0
  199. package/lib/types/store/temporalio.d.ts +16 -0
  200. package/lib/types/store/temporalio.d.ts.map +1 -0
  201. package/lib/types/store/workflow.d.ts +249 -0
  202. package/lib/types/store/workflow.d.ts.map +1 -0
  203. package/lib/types/training.d.ts +38 -0
  204. package/lib/types/training.d.ts.map +1 -0
  205. package/lib/types/transient-tokens.d.ts +27 -0
  206. package/lib/types/transient-tokens.d.ts.map +1 -0
  207. package/lib/types/user.d.ts +113 -0
  208. package/lib/types/user.d.ts.map +1 -0
  209. package/lib/types/utils/auth.d.ts +3 -0
  210. package/lib/types/utils/auth.d.ts.map +1 -0
  211. package/lib/types/utils/schemas.d.ts +7 -0
  212. package/lib/types/utils/schemas.d.ts.map +1 -0
  213. package/lib/vertesia-common.js +2 -0
  214. package/lib/vertesia-common.js.map +1 -0
  215. package/package.json +8 -4
  216. package/src/environment.ts +1 -1
  217. package/src/index.ts +0 -1
  218. package/src/integrations.ts +6 -0
  219. package/src/interaction.ts +6 -3
  220. package/src/plugin.ts +14 -0
  221. package/src/prompt.ts +3 -3
  222. package/src/store/object-types.ts +3 -4
  223. package/src/store/store.ts +8 -3
  224. package/src/store/workflow.ts +22 -5
  225. package/src/training.ts +1 -1
  226. package/src/utils/schemas.ts +5 -3
  227. package/src/utils/advanced-content-processing.ts +0 -32
@@ -0,0 +1,43 @@
1
+ export var ContentEventName;
2
+ (function (ContentEventName) {
3
+ ContentEventName["create"] = "create";
4
+ ContentEventName["change_type"] = "change_type";
5
+ ContentEventName["update"] = "update";
6
+ ContentEventName["revision_created"] = "revision_created";
7
+ ContentEventName["delete"] = "delete";
8
+ ContentEventName["workflow_finished"] = "workflow_finished";
9
+ ContentEventName["workflow_execution_request"] = "workflow_execution_request";
10
+ ContentEventName["api_request"] = "api_request";
11
+ })(ContentEventName || (ContentEventName = {}));
12
+ export function getDocumentIds(payload) {
13
+ if ("objectIds" in payload) {
14
+ return payload.objectIds;
15
+ }
16
+ return [];
17
+ }
18
+ export var WorkflowExecutionStatus;
19
+ (function (WorkflowExecutionStatus) {
20
+ WorkflowExecutionStatus[WorkflowExecutionStatus["UNKNOWN"] = 0] = "UNKNOWN";
21
+ WorkflowExecutionStatus[WorkflowExecutionStatus["RUNNING"] = 1] = "RUNNING";
22
+ WorkflowExecutionStatus[WorkflowExecutionStatus["COMPLETED"] = 2] = "COMPLETED";
23
+ WorkflowExecutionStatus[WorkflowExecutionStatus["FAILED"] = 3] = "FAILED";
24
+ WorkflowExecutionStatus[WorkflowExecutionStatus["CANCELED"] = 4] = "CANCELED";
25
+ WorkflowExecutionStatus[WorkflowExecutionStatus["TERMINATED"] = 5] = "TERMINATED";
26
+ WorkflowExecutionStatus[WorkflowExecutionStatus["CONTINUED_AS_NEW"] = 6] = "CONTINUED_AS_NEW";
27
+ WorkflowExecutionStatus[WorkflowExecutionStatus["TIMED_OUT"] = 7] = "TIMED_OUT";
28
+ })(WorkflowExecutionStatus || (WorkflowExecutionStatus = {}));
29
+ export var AgentMessageType;
30
+ (function (AgentMessageType) {
31
+ AgentMessageType["SYSTEM"] = "system";
32
+ AgentMessageType["THOUGHT"] = "thought";
33
+ AgentMessageType["PLAN"] = "plan";
34
+ AgentMessageType["UPDATE"] = "update";
35
+ AgentMessageType["COMPLETE"] = "complete";
36
+ AgentMessageType["WARNING"] = "warning";
37
+ AgentMessageType["ERROR"] = "error";
38
+ AgentMessageType["ANSWER"] = "answer";
39
+ AgentMessageType["QUESTION"] = "question";
40
+ AgentMessageType["REQUEST_INPUT"] = "request_input";
41
+ AgentMessageType["IDLE"] = "idle";
42
+ })(AgentMessageType || (AgentMessageType = {}));
43
+ //# sourceMappingURL=workflow.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"workflow.js","sourceRoot":"","sources":["../../../src/store/workflow.ts"],"names":[],"mappings":"AAAA,MAAM,CAAN,IAAY,gBASX;AATD,WAAY,gBAAgB;IACxB,qCAAiB,CAAA;IACjB,+CAA2B,CAAA;IAC3B,qCAAiB,CAAA;IACjB,yDAAqC,CAAA;IACrC,qCAAiB,CAAA;IACjB,2DAAuC,CAAA;IACvC,6EAAyD,CAAA;IACzD,+CAA2B,CAAA;AAC/B,CAAC,EATW,gBAAgB,KAAhB,gBAAgB,QAS3B;AAiFD,MAAM,UAAU,cAAc,CAAC,OAAiC;IAC5D,IAAI,WAAW,IAAI,OAAO,EAAE,CAAC;QACzB,OAAO,OAAO,CAAC,SAAS,CAAC;IAC7B,CAAC;IACD,OAAO,EAAE,CAAC;AACd,CAAC;AAqJD,MAAM,CAAN,IAAY,uBASX;AATD,WAAY,uBAAuB;IAC/B,2EAAW,CAAA;IACX,2EAAW,CAAA;IACX,+EAAa,CAAA;IACb,yEAAU,CAAA;IACV,6EAAY,CAAA;IACZ,iFAAc,CAAA;IACd,6FAAoB,CAAA;IACpB,+EAAa,CAAA;AACjB,CAAC,EATW,uBAAuB,KAAvB,uBAAuB,QASlC;AAuBD,MAAM,CAAN,IAAY,gBAYX;AAZD,WAAY,gBAAgB;IACxB,qCAAiB,CAAA;IACjB,uCAAmB,CAAA;IACnB,iCAAa,CAAA;IACb,qCAAiB,CAAA;IACjB,yCAAqB,CAAA;IACrB,uCAAmB,CAAA;IACnB,mCAAe,CAAA;IACf,qCAAiB,CAAA;IACjB,yCAAqB,CAAA;IACrB,mDAA+B,CAAA;IAC/B,iCAAa,CAAA;AACjB,CAAC,EAZW,gBAAgB,KAAhB,gBAAgB,QAY3B"}
@@ -0,0 +1,11 @@
1
+ export var TrainingSessionStatus;
2
+ (function (TrainingSessionStatus) {
3
+ TrainingSessionStatus["created"] = "created";
4
+ TrainingSessionStatus["building"] = "building";
5
+ TrainingSessionStatus["prepared"] = "prepared";
6
+ TrainingSessionStatus["processing"] = "processing";
7
+ TrainingSessionStatus["completed"] = "completed";
8
+ TrainingSessionStatus["cancelled"] = "cancelled";
9
+ TrainingSessionStatus["failed"] = "failed";
10
+ })(TrainingSessionStatus || (TrainingSessionStatus = {}));
11
+ //# sourceMappingURL=training.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"training.js","sourceRoot":"","sources":["../../src/training.ts"],"names":[],"mappings":"AAGA,MAAM,CAAN,IAAY,qBAQX;AARD,WAAY,qBAAqB;IAC7B,4CAAqB,CAAA;IACrB,8CAAuB,CAAA;IACvB,8CAAuB,CAAA;IACvB,kDAA2B,CAAA;IAC3B,gDAAyB,CAAA;IACzB,gDAAyB,CAAA;IACzB,0CAAmB,CAAA;AACvB,CAAC,EARW,qBAAqB,KAArB,qBAAqB,QAQhC"}
@@ -0,0 +1,6 @@
1
+ export var TransientTokenType;
2
+ (function (TransientTokenType) {
3
+ TransientTokenType["userInvite"] = "user-invite";
4
+ TransientTokenType["migration"] = "migration";
5
+ })(TransientTokenType || (TransientTokenType = {}));
6
+ //# sourceMappingURL=transient-tokens.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"transient-tokens.js","sourceRoot":"","sources":["../../src/transient-tokens.ts"],"names":[],"mappings":"AAIA,MAAM,CAAN,IAAY,kBAGX;AAHD,WAAY,kBAAkB;IAC1B,gDAA0B,CAAA;IAC1B,6CAAuB,CAAA;AAC3B,CAAC,EAHW,kBAAkB,KAAlB,kBAAkB,QAG7B"}
@@ -0,0 +1,14 @@
1
+ export const UserRefPopulate = "id name email picture";
2
+ export var Datacenters;
3
+ (function (Datacenters) {
4
+ Datacenters["aws"] = "aws";
5
+ Datacenters["gcp"] = "gcp";
6
+ Datacenters["azure"] = "azure";
7
+ })(Datacenters || (Datacenters = {}));
8
+ export var BillingMethod;
9
+ (function (BillingMethod) {
10
+ BillingMethod["stripe"] = "stripe";
11
+ BillingMethod["invoice"] = "invoice";
12
+ })(BillingMethod || (BillingMethod = {}));
13
+ export const AccountRefPopulate = "id name";
14
+ //# sourceMappingURL=user.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"user.js","sourceRoot":"","sources":["../../src/user.ts"],"names":[],"mappings":"AAyBA,MAAM,CAAC,MAAM,eAAe,GAAG,uBAAuB,CAAC;AAEvD,MAAM,CAAN,IAAY,WAIX;AAJD,WAAY,WAAW;IACnB,0BAAW,CAAA;IACX,0BAAW,CAAA;IACX,8BAAe,CAAA;AACnB,CAAC,EAJW,WAAW,KAAX,WAAW,QAItB;AAED,MAAM,CAAN,IAAY,aAGX;AAHD,WAAY,aAAa;IACrB,kCAAiB,CAAA;IACjB,oCAAkB,CAAA;AACtB,CAAC,EAHW,aAAa,KAAb,aAAa,QAGxB;AA2CD,MAAM,CAAC,MAAM,kBAAkB,GAAG,SAAS,CAAC"}
@@ -0,0 +1,11 @@
1
+ export function getTenantId(accountId, projectId) {
2
+ //use the last 6 characters of the accountId as the db name
3
+ //as in mongo the last 6 char are an incrementing counter
4
+ const accountLast6 = accountId.slice(-6);
5
+ const projectLast6 = projectId.slice(-6);
6
+ return accountLast6 + '_' + projectLast6;
7
+ }
8
+ export function getTenantIdFromProject(project) {
9
+ return getTenantId(project.account, project.id);
10
+ }
11
+ //# sourceMappingURL=auth.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"auth.js","sourceRoot":"","sources":["../../../src/utils/auth.ts"],"names":[],"mappings":"AAEA,MAAM,UAAU,WAAW,CAAC,SAAiB,EAAE,SAAiB;IAC5D,2DAA2D;IAC3D,yDAAyD;IACzD,MAAM,YAAY,GAAG,SAAS,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;IACzC,MAAM,YAAY,GAAG,SAAS,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;IACzC,OAAO,YAAY,GAAG,GAAG,GAAG,YAAY,CAAC;AAC7C,CAAC;AACD,MAAM,UAAU,sBAAsB,CAAC,OAAmB;IACtD,OAAO,WAAW,CAAC,OAAO,CAAC,OAAO,EAAE,OAAO,CAAC,EAAE,CAAC,CAAC;AACpD,CAAC"}
@@ -0,0 +1,61 @@
1
+ import { PromptRole } from "@llumiverse/common";
2
+ import { PromptSegmentDefType } from "../prompt.js";
3
+ export function mergeJSONSchemas(schemas) {
4
+ const props = {};
5
+ let required = [];
6
+ for (const schema of schemas) {
7
+ if (schema.properties) {
8
+ if (schema.required) {
9
+ for (const prop of schema.required) {
10
+ if (!required.includes(prop))
11
+ required.push(prop);
12
+ }
13
+ }
14
+ Object.assign(props, schema.properties);
15
+ }
16
+ }
17
+ const schema = Object.keys(props).length > 0 ? { properties: props, required, type: 'object' } : null;
18
+ return schema;
19
+ }
20
+ export function _mergePromptsSchema(prompts) {
21
+ const props = {};
22
+ let required = [];
23
+ for (const prompt of prompts) {
24
+ if (prompt.template?.inputSchema?.properties) {
25
+ const schema = prompt.template?.inputSchema;
26
+ if (schema.required) {
27
+ for (const prop of schema.required) {
28
+ if (!required.includes(prop))
29
+ required.push(prop);
30
+ }
31
+ }
32
+ Object.assign(props, schema.properties);
33
+ }
34
+ else if (prompt.type === PromptSegmentDefType.chat) {
35
+ Object.assign(props, {
36
+ chat: {
37
+ type: 'array',
38
+ items: {
39
+ type: 'object',
40
+ properties: {
41
+ role: {
42
+ type: 'string',
43
+ enum: [PromptRole.assistant, PromptRole.user]
44
+ },
45
+ content: { type: 'string' },
46
+ },
47
+ required: ['role', 'content']
48
+ }
49
+ }
50
+ });
51
+ required.push('chat');
52
+ }
53
+ }
54
+ return Object.keys(props).length > 0 ? { properties: props, required } : null;
55
+ }
56
+ export function mergePromptsSchema(interaction) {
57
+ if (!interaction.prompts)
58
+ return null;
59
+ return _mergePromptsSchema(interaction.prompts);
60
+ }
61
+ //# sourceMappingURL=schemas.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"schemas.js","sourceRoot":"","sources":["../../../src/utils/schemas.ts"],"names":[],"mappings":"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"}
@@ -0,0 +1 @@
1
+ {"fileNames":["../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es5.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2015.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2016.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2017.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2018.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2019.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2020.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2021.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2022.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.dom.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2015.core.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2015.collection.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2015.generator.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2015.promise.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2016.intl.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2017.arraybuffer.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2017.date.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2017.object.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2017.string.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2017.intl.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2018.intl.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2018.promise.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2019.array.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2019.object.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2019.string.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2019.symbol.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2019.intl.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2020.bigint.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2020.date.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2020.promise.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2020.string.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2020.intl.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2020.number.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2021.promise.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2021.string.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2021.weakref.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2021.intl.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2022.array.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2022.error.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2022.intl.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2022.object.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2022.string.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2022.regexp.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.decorators.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.decorators.legacy.d.ts","../src/progress.ts","../src/integrations.ts","../src/apikey.ts","../src/user.ts","../src/project.ts","../src/access-control.ts","../src/analytics.ts","../src/common.ts","../../../llumiverse/common/lib/types/options/groq.d.ts","../../../llumiverse/common/lib/types/options/fallback.d.ts","../../../llumiverse/common/lib/types/options/bedrock.d.ts","../../../llumiverse/common/lib/types/options/openai.d.ts","../../../llumiverse/common/lib/types/options/vertexai.d.ts","../../../llumiverse/common/lib/types/types.d.ts","../../../llumiverse/common/lib/types/index.d.ts","../src/environment.ts","../src/facets.ts","../../../node_modules/.pnpm/@types+json-schema@7.0.15/node_modules/@types/json-schema/index.d.ts","../src/prompt.ts","../src/runs.ts","../src/interaction.ts","../src/meters.ts","../src/query.ts","../src/payload.ts","../src/plugin.ts","../src/refs.ts","../src/store/activity-catalog.ts","../src/store/agent.ts","../src/store/common.ts","../src/store/store.ts","../src/store/collections.ts","../src/store/workflow.ts","../src/store/doc-analyzer.ts","../src/store/temporalio.ts","../src/store/dsl-workflow.ts","../../../node_modules/.pnpm/fast-uri@3.0.6/node_modules/fast-uri/types/index.d.ts","../../../node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/compile/codegen/code.d.ts","../../../node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/compile/codegen/scope.d.ts","../../../node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/compile/codegen/index.d.ts","../../../node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/compile/rules.d.ts","../../../node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/compile/util.d.ts","../../../node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/compile/validate/subschema.d.ts","../../../node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/compile/errors.d.ts","../../../node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/compile/validate/index.d.ts","../../../node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/compile/validate/datatype.d.ts","../../../node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/applicator/additionalitems.d.ts","../../../node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/applicator/items2020.d.ts","../../../node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/applicator/contains.d.ts","../../../node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/applicator/dependencies.d.ts","../../../node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/applicator/propertynames.d.ts","../../../node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/applicator/additionalproperties.d.ts","../../../node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/applicator/not.d.ts","../../../node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/applicator/anyof.d.ts","../../../node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/applicator/oneof.d.ts","../../../node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/applicator/if.d.ts","../../../node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/applicator/index.d.ts","../../../node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/validation/limitnumber.d.ts","../../../node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/validation/multipleof.d.ts","../../../node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/validation/pattern.d.ts","../../../node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/validation/required.d.ts","../../../node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/validation/uniqueitems.d.ts","../../../node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/validation/const.d.ts","../../../node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/validation/enum.d.ts","../../../node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/validation/index.d.ts","../../../node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/format/format.d.ts","../../../node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedproperties.d.ts","../../../node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/unevaluated/unevaluateditems.d.ts","../../../node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/validation/dependentrequired.d.ts","../../../node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/discriminator/types.d.ts","../../../node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/discriminator/index.d.ts","../../../node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/errors.d.ts","../../../node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/types/json-schema.d.ts","../../../node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/types/jtd-schema.d.ts","../../../node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/runtime/validation_error.d.ts","../../../node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/compile/ref_error.d.ts","../../../node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/core.d.ts","../../../node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/compile/resolve.d.ts","../../../node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/compile/index.d.ts","../../../node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/types/index.d.ts","../../../node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/ajv.d.ts","../src/store/object-types.ts","../src/store/signals.ts","../src/store/index.ts","../src/training.ts","../src/transient-tokens.ts","../src/utils/auth.ts","../src/utils/schemas.ts","../src/index.ts","../src/store/ms.d.ts"],"fileIdsList":[[67,68,69,70,71,72],[72],[67,68,69,70,71],[97,98,102,129,130,132,133,134,136,137],[95,96],[95],[97,137],[97,98,134,135,137],[137],[94,137,138],[97,98,136,137],[97,98,100,101,136,137],[97,98,99,136,137],[97,98,102,129,130,131,132,133,136,137],[94,97,98,102,134,136],[102,137],[104,105,106,107,108,109,110,111,112,113,137],[127,137],[103,114,122,123,124,125,126,128],[107,137],[115,116,117,118,119,120,121,137],[63],[62,63],[73],[59,60,61,62,63,64,65,66,74,75,77,78,79,80,81,82,83,84,141,142,143,144,145],[62,63,73,74,76,77,78],[62],[75,81],[60,62],[63,73,76],[63,79],[75,79],[87,88],[90],[87,92,141,147],[85,86,87,88,89,90,91,92,93,139,140],[138],[63,81,82,87,141],[73,74],[61,63],[73,76,77,79]],"fileInfos":[{"version":"69684132aeb9b5642cbcd9e22dff7818ff0ee1aa831728af0ecf97d3364d5546","affectsGlobalScope":true,"impliedFormat":1},{"version":"45b7ab580deca34ae9729e97c13cfd999df04416a79116c3bfb483804f85ded4","impliedFormat":1},{"version":"3facaf05f0c5fc569c5649dd359892c98a85557e3e0c847964caeb67076f4d75","impliedFormat":1},{"version":"e44bb8bbac7f10ecc786703fe0a6a4b952189f908707980ba8f3c8975a760962","impliedFormat":1},{"version":"5e1c4c362065a6b95ff952c0eab010f04dcd2c3494e813b493ecfd4fcb9fc0d8","impliedFormat":1},{"version":"68d73b4a11549f9c0b7d352d10e91e5dca8faa3322bfb77b661839c42b1ddec7","impliedFormat":1},{"version":"5efce4fc3c29ea84e8928f97adec086e3dc876365e0982cc8479a07954a3efd4","impliedFormat":1},{"version":"feecb1be483ed332fad555aff858affd90a48ab19ba7272ee084704eb7167569","impliedFormat":1},{"version":"ee7bad0c15b58988daa84371e0b89d313b762ab83cb5b31b8a2d1162e8eb41c2","impliedFormat":1},{"version":"092c2bfe125ce69dbb1223c85d68d4d2397d7d8411867b5cc03cec902c233763","affectsGlobalScope":true,"impliedFormat":1},{"version":"c57796738e7f83dbc4b8e65132f11a377649c00dd3eee333f672b8f0a6bea671","affectsGlobalScope":true,"impliedFormat":1},{"version":"dc2df20b1bcdc8c2d34af4926e2c3ab15ffe1160a63e58b7e09833f616efff44","affectsGlobalScope":true,"impliedFormat":1},{"version":"515d0b7b9bea2e31ea4ec968e9edd2c39d3eebf4a2d5cbd04e88639819ae3b71","affectsGlobalScope":true,"impliedFormat":1},{"version":"0559b1f683ac7505ae451f9a96ce4c3c92bdc71411651ca6ddb0e88baaaad6a3","affectsGlobalScope":true,"impliedFormat":1},{"version":"0dc1e7ceda9b8b9b455c3a2d67b0412feab00bd2f66656cd8850e8831b08b537","affectsGlobalScope":true,"impliedFormat":1},{"version":"ce691fb9e5c64efb9547083e4a34091bcbe5bdb41027e310ebba8f7d96a98671","affectsGlobalScope":true,"impliedFormat":1},{"version":"8d697a2a929a5fcb38b7a65594020fcef05ec1630804a33748829c5ff53640d0","affectsGlobalScope":true,"impliedFormat":1},{"version":"4ff2a353abf8a80ee399af572debb8faab2d33ad38c4b4474cff7f26e7653b8d","affectsGlobalScope":true,"impliedFormat":1},{"version":"936e80ad36a2ee83fc3caf008e7c4c5afe45b3cf3d5c24408f039c1d47bdc1df","affectsGlobalScope":true,"impliedFormat":1},{"version":"d15bea3d62cbbdb9797079416b8ac375ae99162a7fba5de2c6c505446486ac0a","affectsGlobalScope":true,"impliedFormat":1},{"version":"68d18b664c9d32a7336a70235958b8997ebc1c3b8505f4f1ae2b7e7753b87618","affectsGlobalScope":true,"impliedFormat":1},{"version":"eb3d66c8327153d8fa7dd03f9c58d351107fe824c79e9b56b462935176cdf12a","affectsGlobalScope":true,"impliedFormat":1},{"version":"38f0219c9e23c915ef9790ab1d680440d95419ad264816fa15009a8851e79119","affectsGlobalScope":true,"impliedFormat":1},{"version":"69ab18c3b76cd9b1be3d188eaf8bba06112ebbe2f47f6c322b5105a6fbc45a2e","affectsGlobalScope":true,"impliedFormat":1},{"version":"fef8cfad2e2dc5f5b3d97a6f4f2e92848eb1b88e897bb7318cef0e2820bceaab","affectsGlobalScope":true,"impliedFormat":1},{"version":"2f11ff796926e0832f9ae148008138ad583bd181899ab7dd768a2666700b1893","affectsGlobalScope":true,"impliedFormat":1},{"version":"4de680d5bb41c17f7f68e0419412ca23c98d5749dcaaea1896172f06435891fc","affectsGlobalScope":true,"impliedFormat":1},{"version":"954296b30da6d508a104a3a0b5d96b76495c709785c1d11610908e63481ee667","affectsGlobalScope":true,"impliedFormat":1},{"version":"ac9538681b19688c8eae65811b329d3744af679e0bdfa5d842d0e32524c73e1c","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a969edff4bd52585473d24995c5ef223f6652d6ef46193309b3921d65dd4376","affectsGlobalScope":true,"impliedFormat":1},{"version":"9e9fbd7030c440b33d021da145d3232984c8bb7916f277e8ffd3dc2e3eae2bdb","affectsGlobalScope":true,"impliedFormat":1},{"version":"811ec78f7fefcabbda4bfa93b3eb67d9ae166ef95f9bff989d964061cbf81a0c","affectsGlobalScope":true,"impliedFormat":1},{"version":"717937616a17072082152a2ef351cb51f98802fb4b2fdabd32399843875974ca","affectsGlobalScope":true,"impliedFormat":1},{"version":"d7e7d9b7b50e5f22c915b525acc5a49a7a6584cf8f62d0569e557c5cfc4b2ac2","affectsGlobalScope":true,"impliedFormat":1},{"version":"71c37f4c9543f31dfced6c7840e068c5a5aacb7b89111a4364b1d5276b852557","affectsGlobalScope":true,"impliedFormat":1},{"version":"576711e016cf4f1804676043e6a0a5414252560eb57de9faceee34d79798c850","affectsGlobalScope":true,"impliedFormat":1},{"version":"89c1b1281ba7b8a96efc676b11b264de7a8374c5ea1e6617f11880a13fc56dc6","affectsGlobalScope":true,"impliedFormat":1},{"version":"74f7fa2d027d5b33eb0471c8e82a6c87216223181ec31247c357a3e8e2fddc5b","affectsGlobalScope":true,"impliedFormat":1},{"version":"d6d7ae4d1f1f3772e2a3cde568ed08991a8ae34a080ff1151af28b7f798e22ca","affectsGlobalScope":true,"impliedFormat":1},{"version":"063600664504610fe3e99b717a1223f8b1900087fab0b4cad1496a114744f8df","affectsGlobalScope":true,"impliedFormat":1},{"version":"934019d7e3c81950f9a8426d093458b65d5aff2c7c1511233c0fd5b941e608ab","affectsGlobalScope":true,"impliedFormat":1},{"version":"52ada8e0b6e0482b728070b7639ee42e83a9b1c22d205992756fe020fd9f4a47","affectsGlobalScope":true,"impliedFormat":1},{"version":"3bdefe1bfd4d6dee0e26f928f93ccc128f1b64d5d501ff4a8cf3c6371200e5e6","affectsGlobalScope":true,"impliedFormat":1},{"version":"59fb2c069260b4ba00b5643b907ef5d5341b167e7d1dbf58dfd895658bda2867","affectsGlobalScope":true,"impliedFormat":1},{"version":"639e512c0dfc3fad96a84caad71b8834d66329a1f28dc95e3946c9b58176c73a","affectsGlobalScope":true,"impliedFormat":1},{"version":"368af93f74c9c932edd84c58883e736c9e3d53cec1fe24c0b0ff451f529ceab1","affectsGlobalScope":true,"impliedFormat":1},{"version":"af3dd424cf267428f30ccfc376f47a2c0114546b55c44d8c0f1d57d841e28d74","affectsGlobalScope":true,"impliedFormat":1},{"version":"995c005ab91a498455ea8dfb63aa9f83fa2ea793c3d8aa344be4a1678d06d399","affectsGlobalScope":true,"impliedFormat":1},{"version":"959d36cddf5e7d572a65045b876f2956c973a586da58e5d26cde519184fd9b8a","affectsGlobalScope":true,"impliedFormat":1},{"version":"965f36eae237dd74e6cca203a43e9ca801ce38824ead814728a2807b1910117d","affectsGlobalScope":true,"impliedFormat":1},{"version":"3925a6c820dcb1a06506c90b1577db1fdbf7705d65b62b99dce4be75c637e26b","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a3d63ef2b853447ec4f749d3f368ce642264246e02911fcb1590d8c161b8005","affectsGlobalScope":true,"impliedFormat":1},{"version":"b5ce7a470bc3628408429040c4e3a53a27755022a32fd05e2cb694e7015386c7","affectsGlobalScope":true,"impliedFormat":1},{"version":"8444af78980e3b20b49324f4a16ba35024fef3ee069a0eb67616ea6ca821c47a","affectsGlobalScope":true,"impliedFormat":1},{"version":"3287d9d085fbd618c3971944b65b4be57859f5415f495b33a6adc994edd2f004","affectsGlobalScope":true,"impliedFormat":1},{"version":"b4b67b1a91182421f5df999988c690f14d813b9850b40acd06ed44691f6727ad","affectsGlobalScope":true,"impliedFormat":1},{"version":"8e7f8264d0fb4c5339605a15daadb037bf238c10b654bb3eee14208f860a32ea","affectsGlobalScope":true,"impliedFormat":1},{"version":"782dec38049b92d4e85c1585fbea5474a219c6984a35b004963b00beb1aab538","affectsGlobalScope":true,"impliedFormat":1},{"version":"c4bcdb7a8c62860bbcd9573939a2b21e30a5aa8af1828100175d7a316ac50b94","signature":"e291a65971202f95d2b9d3bddecd4a20c2e387e99ad72e6a6224f73b6554fd81"},{"version":"cd4af6bf8bfc656d635bbffb70ded527d6457c42c5dc6f4df1cdd9b2ac9f0036","signature":"52fec62f1316897dd968dd9a819b0613e785545925b50b4111126781fdbdbb9d"},{"version":"dccbc2ec5b9e9238c366e3aadf82e1703a0fa5a0ac8e9b0102817c902f1ddb37","signature":"a6bbcd8fa06d8ef45fc15f1b38673153d5a3d9ae3483def58db815023d4d253d"},{"version":"28343361fa8bd3d54b2ffa0461acca46267f82c73ca1aa4d2345eccc5915c1b7","signature":"6930962d8f472bfab00bcd5b3fee0405038d03de42d9ef3b1d8496b28445bad4"},{"version":"3336abc4d62f84596e9b5d7742728a6944997d74208c90543752e9ce9289838c","signature":"274f527aff5329734cb59f42cd360d737fb904b47a32f5455839bae837ae5bd8"},{"version":"5be065a7cea5953f4ca3c8e2c8c496196e3a72fcf2b59b1693d9deb51dd14330","signature":"c189323269a129df500de769449f15af857c2534eecaf06194a8a27bd2cdeace"},{"version":"2ff83d649022938f761468e4e0422d8b496d9babdd01f7d2e40850ef90a22538","signature":"ea28ec664e799744575daef3631f6eb8dd39e68b5ca78023748320147b4b29b8"},{"version":"f7c1da23930654f0f2107597e7fecf82c219692abcca5e841586be17275de0ca","signature":"607f0725d2cd872fff3ab35f7f2a7a0fa5b46c20dbe04b34eaa9cc1c31900acb"},"bd954ca8d1a24f94bec18b531c58e88a386df17e48e32b31f324f1b226cc191d","2a3bd3a7dba4df3018ad67266a079c922c0ecb49817a85e4a296c1ac5de61a6f","72f0ab9271921ffe84063dd238b06cc7b0c167438acd15c593af15af10f5bd59","89fe9b45bfbbf2ef5c82a86d3bc32116baa7802d1dd475372fa4fbdb18e5b0e6","ee420983b5f350f3550c5bb2b7653cc18d562c1c06370c54ced112127b10b0dc","9db9f5f147db13b45c8275ec4d8e6948dc1c3d62d5db9df5cf9373762b95d92a","ceacf504b8d1ca041fdae2d0e4393490bbde75a42ba847689ac5e58f7b1d3333",{"version":"cb7a6418c24a87d6b1a3b5287584db4e4e3b7595b4b59dc07739425862a1283a","signature":"e8a97369e869b3d230003b69932c49a64740b1c3cb2dbc5a7e9079adb515c570"},{"version":"691e9c572afeff524870cf5eec50040466ec66362d414aae54663a9ac5807e6a","signature":"a8e024280a8c67960686d288049c11425b7ff38601408d818e37225f2d5282e1"},{"version":"f3d8c757e148ad968f0d98697987db363070abada5f503da3c06aefd9d4248c1","impliedFormat":1},{"version":"72b49303b365d590248350dc0777b9b19e88d79e3989fef28e99f9166e18cad8","signature":"c3fdbdc4261a4cf3cf7790a7392233501bac9d400a92dd96abdcb4e32e4e30b5"},{"version":"b3f4be4d4fa1751071e54a779eb00008875672c9b7079791934b30dc569c78c8","signature":"3088884da7de3f3e50f5575845ec74a939823f6fd97778307246b70fe0f7892e"},{"version":"090ebc56759e4e92807d314e17b3fa79bd658bd4180243b4a4cf345cf7c8f749","signature":"dc8b4dc79bc4db3b85c8961c36719841556dc49a54e860cb7313c4000053cb5c"},{"version":"f8b6ed164fa0b2ca0aa8c59a62a285b15527ca4076d5ec2810fd4e6b921c42d9","signature":"356e10bc7f631b8164ca83a1d7aa7e862db987ee408095e7b3954dce1946e94c"},{"version":"a15c11568cc80bd93f7e880af96ccd9b81008bb27adcc5678dbc05c99f70675a","signature":"8dc0234411cde37e004ccd4a16868672369c31e6da5dfb094f758bef2e27a41c"},{"version":"6616439f16f00145f045e936dc31f58607bacc3d560d9400aa38282ebf7d4b46","signature":"5706b0a42bbf7253712615893f74b006af48835bb977c291cb214168811f9e3c"},"41b7cc424e1b073b699fa9984368557321447105309aedaf19ec8279ee8c8768",{"version":"168711f08a3e39b1d7a0c6ddcf91c8700deb458693338857e7a77e1dd780025a","signature":"9d9e2389b0d85e7875a9328074e5aa50a0cf37f7f421529cc7465b382a7ef5de"},{"version":"0f34bff88ffac152f1740bae3a6475096a90d31cf7c21f5b492a14653fcec8ee","signature":"2d4e1c92c579d44bb7cb1ae28d3661226da7b6ee6c3ba0c03b49c03d54e029cf"},{"version":"0169c0ed9a35756fc815227ffb5f43f932a09c451ecff8f3aac7fbd447ab6290","signature":"477e976d4ce24ed49fae121654060ba70f4c73056bb98056375f7e08dd153dfb"},{"version":"5e2cddc0f1b16a5580831fc4f9e591076fef3088005d3e2e26641f615ddb5e0f","signature":"3f30210ee4e376e7be1057fef0ef5969f13e52f51d3b705ff3dddc9243c7d8be"},{"version":"07445d93a2592bf3999568671e6552080af7a4c8c3a16e2062e1a91244ab0187","signature":"ea7f688383aa0342f8afddb358e4946538fc3b51fc5732b0ffc4e0e0948463f3"},{"version":"0f78e67b9fb36c002c9e608ef9b3236e5ddc04a8876085cf0d4c7995c7e2bf25","signature":"bb0aa10a804f53b189c62118564fb76a81c2b8117486243aba2e4f4e60164812"},{"version":"ed028910ad3257ecc9a3b3883bd7aa8b516bb5f3807f98388dfe46000a133d94","signature":"8b6b91791683ede0863255b8a0c231144fa23ce0f6dc808fcf506cfc47bd940b"},{"version":"f11058ec3d52323f056f18d178f21f25cea4b6711124f4be692d8ef280dd4122","signature":"a2d797451b4bdb81514b7ebf00f319c9a5c2591b305d80b4349dac1a8c7f95af"},{"version":"85ea2db7ead196d232100e2b45c28456a211fd314475d00e23aeb487d36fc3ea","signature":"6918e8c3abaa5a9630cd69ca10fabd61176d119040e17f90b2c6632d1f1d8654"},{"version":"96b5d4ee5953f524930f32e604a224d5db5c3f811c1457f0785504376f0a64d1","signature":"665cb3612fa979a770c1a6bf96ee0fe3363d84f882cf8f13b43e5a1b8f70761f"},{"version":"c68eb17ea7b2ff7f8bcfe1a9e82b8210c3112820d9e74b56b0fbecaab5ce8866","impliedFormat":1},{"version":"2d225e7bda2871c066a7079c88174340950fb604f624f2586d3ea27bb9e5f4ff","impliedFormat":1},{"version":"6a785f84e63234035e511817dd48ada756d984dd8f9344e56eb8b2bdcd8fd001","impliedFormat":1},{"version":"c1422d016f7df2ccd3594c06f2923199acd09898f2c42f50ea8159f1f856f618","impliedFormat":1},{"version":"2973b1b7857ca144251375b97f98474e9847a890331e27132d5a8b3aea9350a8","impliedFormat":1},{"version":"0eb6152d37c84d6119295493dfcc20c331c6fda1304a513d159cdaa599dcb78b","impliedFormat":1},{"version":"237df26f8c326ca00cd9d2deb40214a079749062156386b6d75bdcecc6988a6b","impliedFormat":1},{"version":"cd44995ee13d5d23df17a10213fed7b483fabfd5ea08f267ab52c07ce0b6b4da","impliedFormat":1},{"version":"58ce1486f851942bd2d3056b399079bc9cb978ec933fe9833ea417e33eab676e","impliedFormat":1},{"version":"7557d4d7f19f94341f4413575a3453ba7f6039c9591015bcf4282a8e75414043","impliedFormat":1},{"version":"a3b2cc16f3ce2d882eca44e1066f57a24751545f2a5e4a153d4de31b4cac9bb5","impliedFormat":1},{"version":"ac2b3b377d3068bfb6e1cb8889c99098f2c875955e2325315991882a74d92cc8","impliedFormat":1},{"version":"8deb39d89095469957f73bd194d11f01d9894b8c1f1e27fbf3f6e8122576b336","impliedFormat":1},{"version":"a38a9c41f433b608a0d37e645a31eecf7233ef3d3fffeb626988d3219f80e32f","impliedFormat":1},{"version":"8e1428dcba6a984489863935049893631170a37f9584c0479f06e1a5b1f04332","impliedFormat":1},{"version":"1fce9ecb87a2d3898941c60df617e52e50fb0c03c9b7b2ba8381972448327285","impliedFormat":1},{"version":"5ef0597b8238443908b2c4bf69149ed3894ac0ddd0515ac583d38c7595b151f1","impliedFormat":1},{"version":"ac52b775a80badff5f4ac329c5725a26bd5aaadd57afa7ad9e98b4844767312a","impliedFormat":1},{"version":"6ae5b4a63010c82bf2522b4ecfc29ffe6a8b0c5eea6b2b35120077e9ac54d7a1","impliedFormat":1},{"version":"dd7109c49f416f218915921d44f0f28975df78e04e437c62e1e1eb3be5e18a35","impliedFormat":1},{"version":"eee181112e420b345fc78422a6cc32385ede3d27e2eaf8b8c4ad8b2c29e3e52e","impliedFormat":1},{"version":"25fbe57c8ee3079e2201fe580578fab4f3a78881c98865b7c96233af00bf9624","impliedFormat":1},{"version":"62cc8477858487b4c4de7d7ae5e745a8ce0015c1592f398b63ee05d6e64ca295","impliedFormat":1},{"version":"cc2a9ec3cb10e4c0b8738b02c31798fad312d21ef20b6a2f5be1d077e9f5409d","impliedFormat":1},{"version":"4b4fadcda7d34034737598c07e2dca5d7e1e633cb3ba8dd4d2e6a7782b30b296","impliedFormat":1},{"version":"360fdc8829a51c5428636f1f83e7db36fef6c5a15ed4411b582d00a1c2bd6e97","impliedFormat":1},{"version":"1cf0d15e6ab1ecabbf329b906ae8543e6b8955133b7f6655f04d433e3a0597ab","impliedFormat":1},{"version":"7c9f98fe812643141502b30fb2b5ec56d16aaf94f98580276ae37b7924dd44a4","impliedFormat":1},{"version":"b3547893f24f59d0a644c52f55901b15a3fa1a115bc5ea9a582911469b9348b7","impliedFormat":1},{"version":"596e5b88b6ca8399076afcc22af6e6e0c4700c7cd1f420a78d637c3fb44a885e","impliedFormat":1},{"version":"adddf736e08132c7059ee572b128fdacb1c2650ace80d0f582e93d097ed4fbaf","impliedFormat":1},{"version":"d4cad9dc13e9c5348637170ddd5d95f7ed5fdfc856ddca40234fa55518bc99a6","impliedFormat":1},{"version":"d70675ba7ba7d02e52b7070a369957a70827e4b2bca2c1680c38a832e87b61fd","impliedFormat":1},{"version":"3be71f4ce8988a01e2f5368bdd58e1d60236baf511e4510ee9291c7b3729a27e","impliedFormat":1},{"version":"423d2ccc38e369a7527988d682fafc40267bcd6688a7473e59c5eea20a29b64f","impliedFormat":1},{"version":"2f9fde0868ed030277c678b435f63fcf03d27c04301299580a4017963cc04ce6","impliedFormat":1},{"version":"feeb73d48cc41c6dd23d17473521b0af877751504c30c18dc84267c8eeea429a","impliedFormat":1},{"version":"25f1159094dc0bf3a71313a74e0885426af21c5d6564a254004f2cadf9c5b052","impliedFormat":1},{"version":"cde493e09daad4bb29922fe633f760be9f0e8e2f39cdca999cce3b8690b5e13a","impliedFormat":1},{"version":"3d7f9eb12aface876f7b535cc89dcd416daf77f0b3573333f16ec0a70bcf902a","impliedFormat":1},{"version":"b83139ae818dd20f365118f9999335ca4cd84ae518348619adc5728e7e0372d5","impliedFormat":1},{"version":"e0205f04611bea8b5b82168065b8ef1476a8e96236201494eb8c785331c43118","impliedFormat":1},{"version":"62d26d8ba4fa15ab425c1b57a050ed76c5b0ecbffaa53f182110aa3a02405a07","impliedFormat":1},{"version":"9941cbf7ca695e95d588f5f1692ab040b078d44a95d231fa9a8f828186b7b77d","impliedFormat":1},{"version":"41b8775befd7ded7245a627e9f4de6110236688ce4c124d2d40c37bc1a3bfe05","impliedFormat":1},{"version":"1191e509772055b93ce35fd5f1d59302dcededa463118bf3a8a90e6d2a236ad2","signature":"0c115dda0f96dc46056107d6e8154025d93789950d55619bf771a4d8a47bc21b"},"bd50f916067d3f07ae3e69e126b54b3492ce9a5b0baa30a42f8c9cb330a04f8c","d4ea83c7c1ca3a6f1e053dcf126188634db93f9b0adf9dc65d31d9f7dd7c8af7",{"version":"c0b159cd11d69bb44af184403314212a6c5b3c9fdbbeae96ac852548ca25b9cb","signature":"851aae8e9a7c849b7537521cc2bb37fb687c048ac184ffbefe08f05b9d1502a1"},{"version":"ea099dfb6a67c613c855f94262b2e8cc037647d7559c9d4cc5913c5d8636c949","signature":"574582fe40c934dc9fba0e2a40478025c48ad88be90d48fd2f8f1ed6faf07980"},{"version":"1311df043789c44ef6ab03fe4e031e91d85a85105398c5e471f326a7e24dd270","signature":"fcb64842c13a76cd853c94e8dfa20984d53c97266a628ee8fc000596dc901d22"},{"version":"9c15b0f4c54fbf8319a5dfebda3f62ab3ba1b2ea4b112b2bbb324de7ca50eae6","signature":"247a28af52240e7dc119c2adba08526bb4aa851b4bc42fe92dcdbadab0ade694"},"d090d346d235e29a5c6b3f83cb51e1575721e9892b9e03691f83a66a9775122c","207ef439375b55581125e09dc056dc63bff7e32bdef5badcc48682d23cd24cd4"],"root":[[59,66],74,75,[77,93],[139,147]],"options":{"allowSyntheticDefaultImports":true,"composite":true,"declarationDir":"./types","esModuleInterop":true,"experimentalDecorators":true,"module":99,"noFallthroughCasesInSwitch":true,"noPropertyAccessFromIndexSignature":false,"noUnusedLocals":true,"noUnusedParameters":true,"outDir":"./esm","rootDir":"../src","skipLibCheck":true,"sourceMap":true,"strict":true,"target":9,"useDefineForClassFields":true,"useUnknownInCatchVariables":true},"referencedMap":[[73,1],[69,2],[68,2],[67,2],[70,2],[71,2],[72,3],[138,4],[97,5],[96,6],[101,7],[136,8],[133,9],[135,10],[98,9],[99,11],[103,11],[102,12],[100,13],[134,14],[132,9],[137,15],[104,16],[109,9],[111,9],[106,9],[107,16],[113,9],[114,17],[105,9],[110,9],[112,9],[108,9],[128,18],[127,9],[129,19],[123,9],[125,9],[124,9],[120,9],[126,20],[121,9],[122,21],[115,9],[116,9],[117,9],[118,9],[119,9],[64,22],[61,23],[74,24],[146,25],[79,26],[80,27],[82,28],[63,29],[77,30],[81,31],[78,32],[89,33],[91,34],[93,35],[141,36],[139,37],[88,38],[142,39],[143,23],[62,40],[144,22],[145,41]],"latestChangedDtsFile":"./types/index.d.ts","version":"5.8.3"}
@@ -0,0 +1,21 @@
1
+ declare class ProgressSpan {
2
+ parent: Progress;
3
+ parentUnits: number;
4
+ spanUnits: number;
5
+ unitsDone: number;
6
+ constructor(parent: Progress, parentUnits: number, spanUnits: number);
7
+ done(units?: number): void;
8
+ get parentUnitsDone(): number;
9
+ get isDone(): boolean;
10
+ }
11
+ export declare class Progress {
12
+ total: number;
13
+ unitsDone: number;
14
+ constructor(total: number);
15
+ get fraction(): number;
16
+ get percent(): number;
17
+ get isDone(): boolean;
18
+ done(units?: number): void;
19
+ span(units: number, spanUnits?: number): ProgressSpan;
20
+ }
21
+ export {};
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Progress.d.ts","sourceRoot":"","sources":["../../src/Progress.ts"],"names":[],"mappings":"AACA,cAAM,YAAY;IAEK,MAAM,EAAE,QAAQ;IAAS,WAAW,EAAE,MAAM;IAAS,SAAS,EAAE,MAAM;IADzF,SAAS,EAAE,MAAM,CAAC;gBACC,MAAM,EAAE,QAAQ,EAAS,WAAW,EAAE,MAAM,EAAS,SAAS,EAAE,MAAM;IAIzF,IAAI,CAAC,KAAK,CAAC,EAAE,MAAM;IAUnB,IAAI,eAAe,WAElB;IAED,IAAI,MAAM,YAET;CACJ;AAED,qBAAa,QAAQ;IAGE,KAAK,EAAE,MAAM;IAFhC,SAAS,EAAE,MAAM,CAAK;gBAEH,KAAK,EAAE,MAAM;IAGhC,IAAI,QAAQ,WAEX;IAED,IAAI,OAAO,WAEV;IAED,IAAI,MAAM,YAET;IAED,IAAI,CAAC,KAAK,CAAC,EAAE,MAAM;IASnB,IAAI,CAAC,KAAK,EAAE,MAAM,EAAE,SAAS,CAAC,EAAE,MAAM,GAAG,YAAY;CAGxD"}
@@ -0,0 +1,56 @@
1
+ /**
2
+ * @module access-control
3
+ * @description
4
+ * Access control interfaces
5
+ */
6
+ import { ProjectRoles } from "./project.js";
7
+ export declare enum Permission {
8
+ int_read = "interaction:read",
9
+ int_write = "interaction:write",
10
+ int_delete = "interaction:delete",
11
+ int_execute = "interaction:execute",
12
+ run_read = "run:read",
13
+ run_write = "run:write",
14
+ env_manage = "environment:manage",
15
+ project_manage = "project:manage",
16
+ api_key_create = "api_key:create",
17
+ api_key_read = "api_key:read",
18
+ account_read = "account:read",
19
+ account_manage = "account:manage",
20
+ manage_billing = "account:billing",
21
+ account_member = "account:member",
22
+ content_read = "content:read",
23
+ content_create = "content:create",
24
+ content_update = "content:update",
25
+ content_delete = "content:delete",
26
+ content_admin = "content:admin",//manage schemas, workflows, rules
27
+ workflow_run = "workflow:run"
28
+ }
29
+ export declare enum AccessControlledResource {
30
+ project = "project",
31
+ environment = "environment",
32
+ account = "account",
33
+ interaction = "interaction"
34
+ }
35
+ export interface AccessControlEntry {
36
+ role: ProjectRoles;
37
+ resource: string;
38
+ principal: string;
39
+ type: AccessControlledResource;
40
+ tags?: string[];
41
+ expires_at?: string;
42
+ created_at?: string;
43
+ updated_at?: string;
44
+ id: string;
45
+ }
46
+ export interface ACECreatePayload extends Omit<AccessControlEntry, "created_at" | "updated_at" | "id"> {
47
+ }
48
+ export interface ACEUpdatePayload extends Partial<ACECreatePayload> {
49
+ }
50
+ export interface AcesQueryOptions {
51
+ level?: 'resource' | 'project' | 'account';
52
+ resource?: string;
53
+ principal?: string;
54
+ role?: string;
55
+ type?: AccessControlledResource;
56
+ }
@@ -0,0 +1 @@
1
+ {"version":3,"file":"access-control.d.ts","sourceRoot":"","sources":["../../src/access-control.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAE5C,oBAAY,UAAU;IAClB,QAAQ,qBAAqB;IAC7B,SAAS,sBAAsB;IAC/B,UAAU,uBAAuB;IAEjC,WAAW,wBAAwB;IACnC,QAAQ,aAAa;IACrB,SAAS,cAAc;IAEvB,UAAU,uBAAuB;IAEjC,cAAc,mBAAmB;IAEjC,cAAc,mBAAmB;IACjC,YAAY,iBAAiB;IAE7B,YAAY,iBAAiB;IAC7B,cAAc,mBAAmB;IACjC,cAAc,oBAAoB;IAClC,cAAc,mBAAmB;IAGjC,YAAY,iBAAiB;IAC7B,cAAc,mBAAmB;IACjC,cAAc,mBAAmB;IACjC,cAAc,mBAAmB;IAEjC,aAAa,kBAAkB,CAAE,kCAAkC;IAEnE,YAAY,iBAAiB;CAChC;AAED,oBAAY,wBAAwB;IAChC,OAAO,YAAY;IACnB,WAAW,gBAAgB;IAC3B,OAAO,YAAY;IACnB,WAAW,gBAAgB;CAC9B;AAGD,MAAM,WAAW,kBAAkB;IAC/B,IAAI,EAAE,YAAY,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,wBAAwB,CAAC;IAC/B,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;IAChB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,EAAE,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,gBAAiB,SAC9B,IAAI,CAAC,kBAAkB,EAAE,YAAY,GAAG,YAAY,GAAG,IAAI,CAAC;CAC/D;AAED,MAAM,WAAW,gBAAiB,SAAQ,OAAO,CAAC,gBAAgB,CAAC;CAClE;AAGD,MAAM,WAAW,gBAAgB;IAE7B,KAAK,CAAC,EAAE,UAAU,GAAG,SAAS,GAAG,SAAS,CAAA;IAC1C,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,IAAI,CAAC,EAAE,wBAAwB,CAAA;CAElC"}
@@ -0,0 +1,36 @@
1
+ export interface AnalyticsAxis {
2
+ environment?: string;
3
+ project?: string;
4
+ interactions?: string[];
5
+ models?: string[];
6
+ status?: string[];
7
+ tags?: string[];
8
+ selectedOnly?: boolean;
9
+ }
10
+ export interface RunAnalyticsQuery {
11
+ /** filters to apply to the query */
12
+ filterBy: AnalyticsAxis;
13
+ /** The field to group by */
14
+ groupBy?: RunAnalyticsGroupBy;
15
+ /** The start date of the query in EPOCH format */
16
+ from?: number;
17
+ /** The end date of the query in EPOCH format */
18
+ to?: number;
19
+ /** The time resolution of the analytics query */
20
+ resolution?: TimeResolution;
21
+ /** The field to sort by */
22
+ virtual?: boolean;
23
+ }
24
+ export type RunAnalyticsGroupBy = "interaction" | "modelId" | "project" | "status" | "tags" | "environment";
25
+ export type TimeResolution = "hour" | "day" | "week" | "month" | "year";
26
+ export interface RunAnalyticsResult {
27
+ date: string;
28
+ timestamp: string;
29
+ group: string;
30
+ count: number;
31
+ execution_time: {
32
+ avg: number;
33
+ min: number;
34
+ max: number;
35
+ };
36
+ }
@@ -0,0 +1 @@
1
+ {"version":3,"file":"analytics.d.ts","sourceRoot":"","sources":["../../src/analytics.ts"],"names":[],"mappings":"AACA,MAAM,WAAW,aAAa;IAC1B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC;IACxB,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;IAClB,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;IAClB,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;IAChB,YAAY,CAAC,EAAE,OAAO,CAAC;CAC1B;AAED,MAAM,WAAW,iBAAiB;IAE9B,oCAAoC;IACpC,QAAQ,EAAE,aAAa,CAAC;IAExB,4BAA4B;IAC5B,OAAO,CAAC,EAAE,mBAAmB,CAAA;IAE7B,kDAAkD;IAClD,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,gDAAgD;IAChD,EAAE,CAAC,EAAE,MAAM,CAAC;IAEZ,iDAAiD;IACjD,UAAU,CAAC,EAAE,cAAc,CAAC;IAE5B,2BAA2B;IAC3B,OAAO,CAAC,EAAE,OAAO,CAAC;CAErB;AAGD,MAAM,MAAM,mBAAmB,GAAG,aAAa,GAAG,SAAS,GAAG,SAAS,GAAG,QAAQ,GAAG,MAAM,GAAG,aAAa,CAAC;AAE5G,MAAM,MAAM,cAAc,GAAG,MAAM,GAAG,KAAK,GAAG,MAAM,GAAG,OAAO,GAAG,MAAM,CAAC;AAGxE,MAAM,WAAW,kBAAkB;IAC/B,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,MAAM,CAAA;IACb,KAAK,EAAE,MAAM,CAAC;IACd,cAAc,EAAE;QACZ,GAAG,EAAE,MAAM,CAAC;QACZ,GAAG,EAAE,MAAM,CAAC;QACZ,GAAG,EAAE,MAAM,CAAA;KACd,CAAC;CACL"}
@@ -0,0 +1,54 @@
1
+ import { ProjectRef, ProjectRoles } from "./project.js";
2
+ import { AccountRef } from "./user.js";
3
+ export declare enum ApiKeyTypes {
4
+ public = "pk",
5
+ secret = "sk"
6
+ }
7
+ export interface ApiKey {
8
+ id: string;
9
+ name: string;
10
+ type: ApiKeyTypes;
11
+ role: ProjectRoles;
12
+ maskedValue?: string;
13
+ account: string;
14
+ project: string;
15
+ enabled: boolean;
16
+ created_by: string;
17
+ updated_by: string;
18
+ created_at: Date;
19
+ updated_at: Date;
20
+ expires_at?: Date;
21
+ }
22
+ export interface CreateOrUpdateApiKeyPayload extends Partial<ApiKey> {
23
+ }
24
+ export interface ApiKeyWithValue extends Omit<ApiKey, 'maskedValue'> {
25
+ value: string;
26
+ }
27
+ export interface CreatePublicKeyPayload {
28
+ name?: string;
29
+ projectId?: string;
30
+ ttl?: number;
31
+ }
32
+ export interface AuthTokenResponse {
33
+ token: string;
34
+ }
35
+ export interface AuthTokenPayload {
36
+ sub: string;
37
+ name: string;
38
+ email?: string;
39
+ picture?: string;
40
+ type: PrincipalType;
41
+ account: AccountRef;
42
+ account_roles: ProjectRoles[];
43
+ accounts: AccountRef[];
44
+ project?: ProjectRef;
45
+ project_roles?: ProjectRoles[];
46
+ iss: string;
47
+ aud: string;
48
+ exp: number;
49
+ }
50
+ export declare enum PrincipalType {
51
+ User = "user",
52
+ ApiKey = "apikey",
53
+ ServiceAccount = "service_account"
54
+ }
@@ -0,0 +1 @@
1
+ {"version":3,"file":"apikey.d.ts","sourceRoot":"","sources":["../../src/apikey.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AACxD,OAAO,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAGvC,oBAAY,WAAW;IACnB,MAAM,OAAO;IACb,MAAM,OAAO;CAChB;AACD,MAAM,WAAW,MAAM;IACnB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,WAAW,CAAC;IAClB,IAAI,EAAE,YAAY,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,OAAO,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,IAAI,CAAC;IACjB,UAAU,EAAE,IAAI,CAAC;IACjB,UAAU,CAAC,EAAE,IAAI,CAAC;CACrB;AAGD,MAAM,WAAW,2BAA4B,SAAQ,OAAO,CAAC,MAAM,CAAC;CAEnE;AAED,MAAM,WAAW,eAAgB,SAAQ,IAAI,CAAC,MAAM,EAAE,aAAa,CAAC;IAChE,KAAK,EAAE,MAAM,CAAC;CACjB;AAGD,MAAM,WAAW,sBAAsB;IACnC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,GAAG,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,iBAAiB;IAC9B,KAAK,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,gBAAgB;IAC7B,GAAG,EAAE,MAAM,CAAA;IACX,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB,IAAI,EAAE,aAAa,CAAA;IACnB,OAAO,EAAE,UAAU,CAAC;IACpB,aAAa,EAAE,YAAY,EAAE,CAAC;IAC9B,QAAQ,EAAE,UAAU,EAAE,CAAC;IACvB,OAAO,CAAC,EAAE,UAAU,CAAC;IACrB,aAAa,CAAC,EAAE,YAAY,EAAE,CAAC;IAE/B,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;CACf;AAGD,oBAAY,aAAa;IACrB,IAAI,SAAS;IACb,MAAM,WAAW;IACjB,cAAc,oBAAoB;CACrC"}
@@ -0,0 +1,31 @@
1
+ export interface FindPayload {
2
+ query: Record<string, any>;
3
+ offset?: number;
4
+ limit?: number;
5
+ select?: string;
6
+ show_all_revisions?: boolean;
7
+ from_root?: string;
8
+ }
9
+ export interface GenericCommandResponse {
10
+ status: string;
11
+ message: string;
12
+ err?: any;
13
+ details?: any;
14
+ }
15
+ export interface BulkOperationPayload {
16
+ /**
17
+ * The operation name
18
+ */
19
+ name: "change_type" | "delete" | "start_workflow" | "update";
20
+ /**
21
+ * The IDs of the objects to operate on
22
+ */
23
+ ids: string[];
24
+ /**
25
+ * The operation parameters.
26
+ */
27
+ params: Record<string, any>;
28
+ }
29
+ export interface BulkOperationResult {
30
+ status: "in_progress" | "completed" | "failed";
31
+ }
@@ -0,0 +1 @@
1
+ {"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../src/common.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,WAAW;IACxB,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAC3B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,SAAS,CAAC,EAAE,MAAM,CAAC;CACtB;AAGD,MAAM,WAAW,sBAAsB;IACnC,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;IAChB,GAAG,CAAC,EAAE,GAAG,CAAC;IACV,OAAO,CAAC,EAAE,GAAG,CAAC;CACjB;AAED,MAAM,WAAW,oBAAoB;IACjC;;OAEG;IACH,IAAI,EAAE,aAAa,GAAG,QAAQ,GAAG,gBAAgB,GAAG,QAAQ,CAAC;IAE7D;;OAEG;IACH,GAAG,EAAE,MAAM,EAAE,CAAC;IAEd;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CAC/B;AAED,MAAM,WAAW,mBAAmB;IAChC,MAAM,EAAE,aAAa,GAAG,WAAW,GAAG,QAAQ,CAAC;CAClD"}
@@ -0,0 +1,80 @@
1
+ import type { AIModel, TextFallbackOptions } from "@llumiverse/common";
2
+ export declare enum SupportedProviders {
3
+ openai = "openai",
4
+ azure_openai = "azure_openai",
5
+ huggingface_ie = "huggingface_ie",
6
+ replicate = "replicate",
7
+ bedrock = "bedrock",
8
+ vertexai = "vertexai",
9
+ togetherai = "togetherai",
10
+ mistralai = "mistralai",
11
+ groq = "groq",
12
+ watsonx = "watsonx",
13
+ virtual_lb = "virtual_lb",
14
+ virtual_mediator = "virtual_mediator",
15
+ test = "test"
16
+ }
17
+ export interface SupportedProviderParams {
18
+ id: SupportedProviders;
19
+ name: string;
20
+ requiresApiKey: boolean;
21
+ requiresEndpointUrl: boolean;
22
+ endpointPlaceholder?: string;
23
+ supportSearch?: boolean;
24
+ }
25
+ export declare const SupportedProvidersList: Record<SupportedProviders, SupportedProviderParams>;
26
+ export interface VirtualEnvEntry {
27
+ model: string;
28
+ }
29
+ /**
30
+ * Custom configuration for virtual environments
31
+ **/
32
+ export interface LoadBalancingEnvConfig {
33
+ entries?: LoadBalancingEnvEntryConfig[];
34
+ balance_if_failed?: boolean;
35
+ }
36
+ export interface LoadBalancingEnvEntryConfig extends VirtualEnvEntry {
37
+ weight: number;
38
+ }
39
+ export interface MediatorEnvConfig {
40
+ entries?: VirtualEnvEntry[];
41
+ max_concurrent_requests?: number;
42
+ mediators?: VirtualEnvEntry[];
43
+ model_options?: TextFallbackOptions;
44
+ }
45
+ export interface ExecutionEnvironment {
46
+ id: string;
47
+ name: string;
48
+ provider: SupportedProviders;
49
+ description?: string;
50
+ endpoint_url?: string;
51
+ default_model?: string;
52
+ enabled_models?: AIModel[];
53
+ apiKey?: string;
54
+ config?: any;
55
+ account: string;
56
+ allowed_projects?: string[];
57
+ created_by: string;
58
+ updated_by: string;
59
+ created_at: string;
60
+ updated_at: string;
61
+ }
62
+ export interface ExecutionEnvironmentRef {
63
+ id: string;
64
+ name: string;
65
+ provider: SupportedProviders;
66
+ enabled_models?: AIModel[];
67
+ default_model?: string;
68
+ endpoint_url?: string;
69
+ allowed_projects?: string[];
70
+ account: string;
71
+ created_by: string;
72
+ updated_by: string;
73
+ created_at: string;
74
+ updated_at: string;
75
+ }
76
+ export declare const ExecutionEnvironmentRefPopulate = "id name provider enabled_models default_model endpoint_url allowed_projects account created_at updated_at";
77
+ export interface ExecutionEnvironmentCreatePayload extends Omit<ExecutionEnvironment, 'id' | 'account' | 'created_at' | 'updated_at' | 'created_by' | 'updated_by' | 'project'> {
78
+ }
79
+ export interface ExecutionEnvironmentUpdatePayload extends Partial<Omit<ExecutionEnvironment, 'id' | 'account' | 'created_at' | 'updated_at' | 'created_by' | 'updated_by'>> {
80
+ }
@@ -0,0 +1 @@
1
+ {"version":3,"file":"environment.d.ts","sourceRoot":"","sources":["../../src/environment.ts"],"names":[],"mappings":"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"}
@@ -0,0 +1,34 @@
1
+ export interface StringFacet {
2
+ type: "string";
3
+ path: string;
4
+ numBuckets?: number;
5
+ }
6
+ export interface NumericFacet {
7
+ type: "number";
8
+ path: string;
9
+ boundaries: number[];
10
+ default?: string;
11
+ }
12
+ export interface DateFacet<T extends (Date | string) = string> {
13
+ type: "date";
14
+ path: string;
15
+ boundaries: T[];
16
+ default?: string;
17
+ }
18
+ export type Facet<DateT extends (Date | string) = string> = StringFacet | NumericFacet | DateFacet<DateT>;
19
+ export interface FacetSpec {
20
+ name: string;
21
+ field: string;
22
+ }
23
+ export interface FacetBucket {
24
+ _id: string;
25
+ count: number;
26
+ }
27
+ export interface FacetNameBucket {
28
+ name: string;
29
+ _id: string;
30
+ count: number;
31
+ }
32
+ export interface FacetResult {
33
+ buckets: FacetBucket[];
34
+ }
@@ -0,0 +1 @@
1
+ {"version":3,"file":"facets.d.ts","sourceRoot":"","sources":["../../src/facets.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,WAAW;IACxB,IAAI,EAAE,QAAQ,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,WAAW,YAAY;IACzB,IAAI,EAAE,QAAQ,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,MAAM,EAAE,CAAC;IACrB,OAAO,CAAC,EAAE,MAAM,CAAA;CACnB;AAED,MAAM,WAAW,SAAS,CAAC,CAAC,SAAS,CAAC,IAAI,GAAG,MAAM,CAAC,GAAG,MAAM;IACzD,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,CAAC,EAAE,CAAC;IAChB,OAAO,CAAC,EAAE,MAAM,CAAA;CACnB;AAED,MAAM,MAAM,KAAK,CAAC,KAAK,SAAS,CAAC,IAAI,GAAG,MAAM,CAAC,GAAG,MAAM,IAAI,WAAW,GAAG,YAAY,GAAG,SAAS,CAAC,KAAK,CAAC,CAAC;AAG1G,MAAM,WAAW,SAAS;IACtB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,WAAW;IACxB,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,eAAe;IAC5B,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,WAAW;IACxB,OAAO,EAAE,WAAW,EAAE,CAAA;CACzB"}