@vertesia/common 0.42.2

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 (201) hide show
  1. package/LICENSE +13 -0
  2. package/lib/cjs/access-control.js +39 -0
  3. package/lib/cjs/access-control.js.map +1 -0
  4. package/lib/cjs/analytics.js +3 -0
  5. package/lib/cjs/analytics.js.map +1 -0
  6. package/lib/cjs/apikey.js +15 -0
  7. package/lib/cjs/apikey.js.map +1 -0
  8. package/lib/cjs/common.js +3 -0
  9. package/lib/cjs/common.js.map +1 -0
  10. package/lib/cjs/environment.js +116 -0
  11. package/lib/cjs/environment.js.map +1 -0
  12. package/lib/cjs/facets.js +3 -0
  13. package/lib/cjs/facets.js.map +1 -0
  14. package/lib/cjs/index.js +37 -0
  15. package/lib/cjs/index.js.map +1 -0
  16. package/lib/cjs/integrations.js +10 -0
  17. package/lib/cjs/integrations.js.map +1 -0
  18. package/lib/cjs/interaction.js +63 -0
  19. package/lib/cjs/interaction.js.map +1 -0
  20. package/lib/cjs/package.json +3 -0
  21. package/lib/cjs/payload.js +3 -0
  22. package/lib/cjs/payload.js.map +1 -0
  23. package/lib/cjs/project.js +50 -0
  24. package/lib/cjs/project.js.map +1 -0
  25. package/lib/cjs/prompt.js +21 -0
  26. package/lib/cjs/prompt.js.map +1 -0
  27. package/lib/cjs/query.js +3 -0
  28. package/lib/cjs/query.js.map +1 -0
  29. package/lib/cjs/refs.js +12 -0
  30. package/lib/cjs/refs.js.map +1 -0
  31. package/lib/cjs/runs.js +3 -0
  32. package/lib/cjs/runs.js.map +1 -0
  33. package/lib/cjs/store/activity-catalog.js +3 -0
  34. package/lib/cjs/store/activity-catalog.js.map +1 -0
  35. package/lib/cjs/store/common.js +3 -0
  36. package/lib/cjs/store/common.js.map +1 -0
  37. package/lib/cjs/store/dsl-workflow.js +5 -0
  38. package/lib/cjs/store/dsl-workflow.js.map +1 -0
  39. package/lib/cjs/store/index.js +24 -0
  40. package/lib/cjs/store/index.js.map +1 -0
  41. package/lib/cjs/store/object-types.js +98 -0
  42. package/lib/cjs/store/object-types.js.map +1 -0
  43. package/lib/cjs/store/store.js +18 -0
  44. package/lib/cjs/store/store.js.map +1 -0
  45. package/lib/cjs/store/temporalio.js +44 -0
  46. package/lib/cjs/store/temporalio.js.map +1 -0
  47. package/lib/cjs/store/workflow.js +24 -0
  48. package/lib/cjs/store/workflow.js.map +1 -0
  49. package/lib/cjs/training.js +14 -0
  50. package/lib/cjs/training.js.map +1 -0
  51. package/lib/cjs/transient-tokens.js +9 -0
  52. package/lib/cjs/transient-tokens.js.map +1 -0
  53. package/lib/cjs/user.js +12 -0
  54. package/lib/cjs/user.js.map +1 -0
  55. package/lib/cjs/utils/auth.js +15 -0
  56. package/lib/cjs/utils/auth.js.map +1 -0
  57. package/lib/cjs/utils/schemas.js +48 -0
  58. package/lib/cjs/utils/schemas.js.map +1 -0
  59. package/lib/esm/access-control.js +36 -0
  60. package/lib/esm/access-control.js.map +1 -0
  61. package/lib/esm/analytics.js +2 -0
  62. package/lib/esm/analytics.js.map +1 -0
  63. package/lib/esm/apikey.js +12 -0
  64. package/lib/esm/apikey.js.map +1 -0
  65. package/lib/esm/common.js +2 -0
  66. package/lib/esm/common.js.map +1 -0
  67. package/lib/esm/environment.js +113 -0
  68. package/lib/esm/environment.js.map +1 -0
  69. package/lib/esm/facets.js +2 -0
  70. package/lib/esm/facets.js.map +1 -0
  71. package/lib/esm/index.js +21 -0
  72. package/lib/esm/index.js.map +1 -0
  73. package/lib/esm/integrations.js +7 -0
  74. package/lib/esm/integrations.js.map +1 -0
  75. package/lib/esm/interaction.js +60 -0
  76. package/lib/esm/interaction.js.map +1 -0
  77. package/lib/esm/payload.js +2 -0
  78. package/lib/esm/payload.js.map +1 -0
  79. package/lib/esm/project.js +46 -0
  80. package/lib/esm/project.js.map +1 -0
  81. package/lib/esm/prompt.js +18 -0
  82. package/lib/esm/prompt.js.map +1 -0
  83. package/lib/esm/query.js +2 -0
  84. package/lib/esm/query.js.map +1 -0
  85. package/lib/esm/refs.js +9 -0
  86. package/lib/esm/refs.js.map +1 -0
  87. package/lib/esm/runs.js +2 -0
  88. package/lib/esm/runs.js.map +1 -0
  89. package/lib/esm/store/activity-catalog.js +2 -0
  90. package/lib/esm/store/activity-catalog.js.map +1 -0
  91. package/lib/esm/store/common.js +2 -0
  92. package/lib/esm/store/common.js.map +1 -0
  93. package/lib/esm/store/dsl-workflow.js +2 -0
  94. package/lib/esm/store/dsl-workflow.js.map +1 -0
  95. package/lib/esm/store/index.js +8 -0
  96. package/lib/esm/store/index.js.map +1 -0
  97. package/lib/esm/store/object-types.js +95 -0
  98. package/lib/esm/store/object-types.js.map +1 -0
  99. package/lib/esm/store/store.js +15 -0
  100. package/lib/esm/store/store.js.map +1 -0
  101. package/lib/esm/store/temporalio.js +41 -0
  102. package/lib/esm/store/temporalio.js.map +1 -0
  103. package/lib/esm/store/workflow.js +21 -0
  104. package/lib/esm/store/workflow.js.map +1 -0
  105. package/lib/esm/training.js +11 -0
  106. package/lib/esm/training.js.map +1 -0
  107. package/lib/esm/transient-tokens.js +6 -0
  108. package/lib/esm/transient-tokens.js.map +1 -0
  109. package/lib/esm/user.js +9 -0
  110. package/lib/esm/user.js.map +1 -0
  111. package/lib/esm/utils/auth.js +11 -0
  112. package/lib/esm/utils/auth.js.map +1 -0
  113. package/lib/esm/utils/schemas.js +44 -0
  114. package/lib/esm/utils/schemas.js.map +1 -0
  115. package/lib/tsconfig.tsbuildinfo +1 -0
  116. package/lib/types/access-control.d.ts +56 -0
  117. package/lib/types/access-control.d.ts.map +1 -0
  118. package/lib/types/analytics.d.ts +36 -0
  119. package/lib/types/analytics.d.ts.map +1 -0
  120. package/lib/types/apikey.d.ts +54 -0
  121. package/lib/types/apikey.d.ts.map +1 -0
  122. package/lib/types/common.d.ts +28 -0
  123. package/lib/types/common.d.ts.map +1 -0
  124. package/lib/types/environment.d.ts +79 -0
  125. package/lib/types/environment.d.ts.map +1 -0
  126. package/lib/types/facets.d.ts +34 -0
  127. package/lib/types/facets.d.ts.map +1 -0
  128. package/lib/types/index.d.ts +20 -0
  129. package/lib/types/index.d.ts.map +1 -0
  130. package/lib/types/integrations.d.ts +18 -0
  131. package/lib/types/integrations.d.ts.map +1 -0
  132. package/lib/types/interaction.d.ts +233 -0
  133. package/lib/types/interaction.d.ts.map +1 -0
  134. package/lib/types/payload.d.ts +49 -0
  135. package/lib/types/payload.d.ts.map +1 -0
  136. package/lib/types/project.d.ts +95 -0
  137. package/lib/types/project.d.ts.map +1 -0
  138. package/lib/types/prompt.d.ts +70 -0
  139. package/lib/types/prompt.d.ts.map +1 -0
  140. package/lib/types/query.d.ts +74 -0
  141. package/lib/types/query.d.ts.map +1 -0
  142. package/lib/types/refs.d.ts +19 -0
  143. package/lib/types/refs.d.ts.map +1 -0
  144. package/lib/types/runs.d.ts +24 -0
  145. package/lib/types/runs.d.ts.map +1 -0
  146. package/lib/types/store/activity-catalog.d.ts +24 -0
  147. package/lib/types/store/activity-catalog.d.ts.map +1 -0
  148. package/lib/types/store/common.d.ts +10 -0
  149. package/lib/types/store/common.d.ts.map +1 -0
  150. package/lib/types/store/dsl-workflow.d.ts +244 -0
  151. package/lib/types/store/dsl-workflow.d.ts.map +1 -0
  152. package/lib/types/store/index.d.ts +7 -0
  153. package/lib/types/store/index.d.ts.map +1 -0
  154. package/lib/types/store/object-types.d.ts +23 -0
  155. package/lib/types/store/object-types.d.ts.map +1 -0
  156. package/lib/types/store/store.d.ts +211 -0
  157. package/lib/types/store/store.d.ts.map +1 -0
  158. package/lib/types/store/temporalio.d.ts +16 -0
  159. package/lib/types/store/temporalio.d.ts.map +1 -0
  160. package/lib/types/store/workflow.d.ts +129 -0
  161. package/lib/types/store/workflow.d.ts.map +1 -0
  162. package/lib/types/training.d.ts +38 -0
  163. package/lib/types/training.d.ts.map +1 -0
  164. package/lib/types/transient-tokens.d.ts +27 -0
  165. package/lib/types/transient-tokens.d.ts.map +1 -0
  166. package/lib/types/user.d.ts +105 -0
  167. package/lib/types/user.d.ts.map +1 -0
  168. package/lib/types/utils/auth.d.ts +3 -0
  169. package/lib/types/utils/auth.d.ts.map +1 -0
  170. package/lib/types/utils/schemas.d.ts +5 -0
  171. package/lib/types/utils/schemas.d.ts.map +1 -0
  172. package/package.json +34 -0
  173. package/src/access-control.ts +77 -0
  174. package/src/analytics.ts +49 -0
  175. package/src/apikey.ts +68 -0
  176. package/src/common.ts +34 -0
  177. package/src/environment.ts +193 -0
  178. package/src/facets.ts +44 -0
  179. package/src/index.ts +20 -0
  180. package/src/integrations.ts +25 -0
  181. package/src/interaction.ts +300 -0
  182. package/src/payload.ts +62 -0
  183. package/src/project.ts +136 -0
  184. package/src/prompt.ts +95 -0
  185. package/src/query.ts +85 -0
  186. package/src/refs.ts +27 -0
  187. package/src/runs.ts +27 -0
  188. package/src/store/activity-catalog.ts +39 -0
  189. package/src/store/common.ts +10 -0
  190. package/src/store/dsl-workflow.ts +289 -0
  191. package/src/store/index.ts +7 -0
  192. package/src/store/ms.d.ts +11 -0
  193. package/src/store/object-types.ts +128 -0
  194. package/src/store/store.ts +262 -0
  195. package/src/store/temporalio.ts +54 -0
  196. package/src/store/workflow.ts +156 -0
  197. package/src/training.ts +44 -0
  198. package/src/transient-tokens.ts +30 -0
  199. package/src/user.ts +124 -0
  200. package/src/utils/auth.ts +12 -0
  201. package/src/utils/schemas.ts +44 -0
@@ -0,0 +1,98 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DocumentPartSchema = exports.RenditionSchema = void 0;
4
+ exports.RenditionSchema = {
5
+ type: "object",
6
+ description: "Represent a rendition of a file stored in an object. It will be stored as a separate object in the database.",
7
+ properties: {
8
+ mime_type: {
9
+ type: "string",
10
+ description: "The format of the rendition. This is a MIME type."
11
+ },
12
+ source_etag: {
13
+ type: "string",
14
+ description: "The ETag of the file used for the rendition.",
15
+ nullable: true
16
+ },
17
+ height: {
18
+ type: "integer",
19
+ description: "The height of the rendition",
20
+ nullable: true
21
+ },
22
+ width: {
23
+ type: "integer",
24
+ description: "The width of the rendition",
25
+ nullable: true
26
+ },
27
+ multipart: {
28
+ type: "boolean",
29
+ description: "If the rendition is a multi-part rendition",
30
+ nullable: true,
31
+ default: false
32
+ },
33
+ total_parts: {
34
+ type: "integer",
35
+ description: "The total number of parts in the rendition",
36
+ nullable: true
37
+ }
38
+ },
39
+ required: ["mime_type"],
40
+ };
41
+ exports.DocumentPartSchema = {
42
+ type: "object",
43
+ description: "Represent a semantic chunk of a document",
44
+ properties: {
45
+ source_etag: {
46
+ type: "string",
47
+ description: "The ETag of the file used for the rendition.",
48
+ nullable: true
49
+ },
50
+ part_number: {
51
+ type: "integer",
52
+ description: "The part number of the chunk",
53
+ },
54
+ title: {
55
+ type: "string",
56
+ description: "The title of the chunk",
57
+ nullable: true
58
+ },
59
+ source_line_start: {
60
+ type: "integer",
61
+ description: "The line number where the chunk starts",
62
+ nullable: true
63
+ },
64
+ source_line_end: {
65
+ type: "integer",
66
+ description: "The line number where the chunk ends",
67
+ nullable: true
68
+ },
69
+ type: {
70
+ type: "string",
71
+ description: "The type of the chunk",
72
+ enum: ['text', 'image', 'table', 'chart', 'diagram', 'code', 'other'],
73
+ nullable: true
74
+ },
75
+ page_number: {
76
+ type: "integer",
77
+ description: "The page number of the document part",
78
+ nullable: true
79
+ },
80
+ description: {
81
+ type: "string",
82
+ description: "The description of the document part, if it's an image, the exhaustive description of the image",
83
+ nullable: true
84
+ },
85
+ height: {
86
+ type: "integer",
87
+ description: "The height of the rendition",
88
+ nullable: true
89
+ },
90
+ width: {
91
+ type: "integer",
92
+ description: "The width of the rendition",
93
+ nullable: true
94
+ }
95
+ },
96
+ required: ["part_number"],
97
+ };
98
+ //# sourceMappingURL=object-types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"object-types.js","sourceRoot":"","sources":["../../../src/store/object-types.ts"],"names":[],"mappings":";;;AAaa,QAAA,eAAe,GAAwC;IAEhE,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nD,QAAQ,EAAE,IAAI;SACjB;QACD,IAAI,EAAE;YACF,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,uBAAuB;YACpC,IAAI,EAAE,CAAC,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,OAAO,CAAC;YACrE,QAAQ,EAAE,IAAI;SACjB;QACD,WAAW,EAAE;YACT,IAAI,EAAE,SAAS;YACf,WAAW,EAAE,sCAAsC;YACnD,QAAQ,EAAE,IAAI;SACjB;QACD,WAAW,EAAE;YACT,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,iGAAiG;YAC9G,QAAQ,EAAE,IAAI;SACjB;QACD,MAAM,EAAE;YACJ,IAAI,EAAE,SAAS;YACf,WAAW,EAAE,6BAA6B;YAC1C,QAAQ,EAAE,IAAI;SACjB;QACD,KAAK,EAAE;YACH,IAAI,EAAE,SAAS;YACf,WAAW,EAAE,4BAA4B;YACzC,QAAQ,EAAE,IAAI;SACjB;KACJ;IACD,QAAQ,EAAE,CAAC,aAAa,CAAC;CAC5B,CAAA"}
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.WorkflowRuleInputType = exports.ContentObjectStatus = void 0;
4
+ var ContentObjectStatus;
5
+ (function (ContentObjectStatus) {
6
+ ContentObjectStatus["created"] = "created";
7
+ ContentObjectStatus["processing"] = "processing";
8
+ ContentObjectStatus["completed"] = "completed";
9
+ ContentObjectStatus["failed"] = "failed";
10
+ ContentObjectStatus["archived"] = "archived";
11
+ })(ContentObjectStatus || (exports.ContentObjectStatus = ContentObjectStatus = {}));
12
+ var WorkflowRuleInputType;
13
+ (function (WorkflowRuleInputType) {
14
+ WorkflowRuleInputType["single"] = "single";
15
+ WorkflowRuleInputType["multiple"] = "multiple";
16
+ WorkflowRuleInputType["none"] = "none";
17
+ })(WorkflowRuleInputType || (exports.WorkflowRuleInputType = WorkflowRuleInputType = {}));
18
+ //# sourceMappingURL=store.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"store.js","sourceRoot":"","sources":["../../../src/store/store.ts"],"names":[],"mappings":";;;AAMA,IAAY,mBAMX;AAND,WAAY,mBAAmB;IAC3B,0CAAmB,CAAA;IACnB,gDAAyB,CAAA;IACzB,8CAAuB,CAAA;IACvB,wCAAiB,CAAA;IACjB,4CAAqB,CAAA;AACzB,CAAC,EANW,mBAAmB,mCAAnB,mBAAmB,QAM9B;AAyLD,IAAY,qBAIX;AAJD,WAAY,qBAAqB;IAC7B,0CAAiB,CAAA;IACjB,8CAAqB,CAAA;IACrB,sCAAa,CAAA;AACjB,CAAC,EAJW,qBAAqB,qCAArB,qBAAqB,QAIhC"}
@@ -0,0 +1,44 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ParentClosePolicy = void 0;
4
+ exports.ParentClosePolicy = {
5
+ /**
6
+ * When the Parent is Closed, the Child is Terminated.
7
+ *
8
+ * @default
9
+ */
10
+ TERMINATE: "TERMINATE",
11
+ /**
12
+ * When the Parent is Closed, nothing is done to the Child.
13
+ */
14
+ ABANDON: "ABANDON",
15
+ /**
16
+ * When the Parent is Closed, the Child is Cancelled.
17
+ */
18
+ REQUEST_CANCEL: "REQUEST_CANCEL",
19
+ /**
20
+ * If a `ParentClosePolicy` is set to this, or is not set at all, the server default value will be used.
21
+ *
22
+ * @deprecated Either leave property `undefined`, or set an explicit policy instead.
23
+ */
24
+ PARENT_CLOSE_POLICY_UNSPECIFIED: undefined,
25
+ /**
26
+ * When the Parent is Closed, the Child is Terminated.
27
+ *
28
+ * @deprecated Use {@link ParentClosePolicy.TERMINATE} instead.
29
+ */
30
+ PARENT_CLOSE_POLICY_TERMINATE: "TERMINATE",
31
+ /**
32
+ * When the Parent is Closed, nothing is done to the Child.
33
+ *
34
+ * @deprecated Use {@link ParentClosePolicy.ABANDON} instead.
35
+ */
36
+ PARENT_CLOSE_POLICY_ABANDON: "ABANDON",
37
+ /**
38
+ * When the Parent is Closed, the Child is Cancelled.
39
+ *
40
+ * @deprecated Use {@link ParentClosePolicy.REQUEST_CANCEL} instead.
41
+ */
42
+ PARENT_CLOSE_POLICY_REQUEST_CANCEL: "REQUEST_CANCEL"
43
+ };
44
+ //# sourceMappingURL=temporalio.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"temporalio.js","sourceRoot":"","sources":["../../../src/store/temporalio.ts"],"names":[],"mappings":";;;AAca,QAAA,iBAAiB,GAAG;IAC7B;;;;OAIG;IACH,SAAS,EAAE,WAAW;IACtB;;OAEG;IACH,OAAO,EAAE,SAAS;IAClB;;OAEG;IACH,cAAc,EAAE,gBAAgB;IAChC;;;;OAIG;IACH,+BAA+B,EAAE,SAAS;IAC1C;;;;OAIG;IACH,6BAA6B,EAAE,WAAW;IAC1C;;;;OAIG;IACH,2BAA2B,EAAE,SAAS;IACtC;;;;OAIG;IACH,kCAAkC,EAAE,gBAAgB;CACjC,CAAC"}
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.WorkflowExecutionStatus = exports.ContentEventName = void 0;
4
+ var ContentEventName;
5
+ (function (ContentEventName) {
6
+ ContentEventName["create"] = "create";
7
+ ContentEventName["change_type"] = "change_type";
8
+ ContentEventName["update"] = "update";
9
+ ContentEventName["delete"] = "delete";
10
+ ContentEventName["workflow_finished"] = "workflow_finished";
11
+ ContentEventName["workflow_execution_request"] = "workflow_execution_request";
12
+ })(ContentEventName || (exports.ContentEventName = ContentEventName = {}));
13
+ var WorkflowExecutionStatus;
14
+ (function (WorkflowExecutionStatus) {
15
+ WorkflowExecutionStatus[WorkflowExecutionStatus["UNKNOWN"] = 0] = "UNKNOWN";
16
+ WorkflowExecutionStatus[WorkflowExecutionStatus["RUNNING"] = 1] = "RUNNING";
17
+ WorkflowExecutionStatus[WorkflowExecutionStatus["COMPLETED"] = 2] = "COMPLETED";
18
+ WorkflowExecutionStatus[WorkflowExecutionStatus["FAILED"] = 3] = "FAILED";
19
+ WorkflowExecutionStatus[WorkflowExecutionStatus["CANCELED"] = 4] = "CANCELED";
20
+ WorkflowExecutionStatus[WorkflowExecutionStatus["TERMINATED"] = 5] = "TERMINATED";
21
+ WorkflowExecutionStatus[WorkflowExecutionStatus["CONTINUED_AS_NEW"] = 6] = "CONTINUED_AS_NEW";
22
+ WorkflowExecutionStatus[WorkflowExecutionStatus["TIMED_OUT"] = 7] = "TIMED_OUT";
23
+ })(WorkflowExecutionStatus || (exports.WorkflowExecutionStatus = WorkflowExecutionStatus = {}));
24
+ //# sourceMappingURL=workflow.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"workflow.js","sourceRoot":"","sources":["../../../src/store/workflow.ts"],"names":[],"mappings":";;;AACA,IAAY,gBAOX;AAPD,WAAY,gBAAgB;IACxB,qCAAiB,CAAA;IACjB,+CAA2B,CAAA;IAC3B,qCAAiB,CAAA;IACjB,qCAAiB,CAAA;IACjB,2DAAuC,CAAA;IACvC,6EAAyD,CAAA;AAC7D,CAAC,EAPW,gBAAgB,gCAAhB,gBAAgB,QAO3B;AA0ID,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,uCAAvB,uBAAuB,QASlC"}
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.TrainingSessionStatus = void 0;
4
+ var TrainingSessionStatus;
5
+ (function (TrainingSessionStatus) {
6
+ TrainingSessionStatus["created"] = "created";
7
+ TrainingSessionStatus["building"] = "building";
8
+ TrainingSessionStatus["prepared"] = "prepared";
9
+ TrainingSessionStatus["processing"] = "processing";
10
+ TrainingSessionStatus["completed"] = "completed";
11
+ TrainingSessionStatus["cancelled"] = "cancelled";
12
+ TrainingSessionStatus["failed"] = "failed";
13
+ })(TrainingSessionStatus || (exports.TrainingSessionStatus = TrainingSessionStatus = {}));
14
+ //# sourceMappingURL=training.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"training.js","sourceRoot":"","sources":["../../src/training.ts"],"names":[],"mappings":";;;AAGA,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,qCAArB,qBAAqB,QAQhC"}
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.TransientTokenType = void 0;
4
+ var TransientTokenType;
5
+ (function (TransientTokenType) {
6
+ TransientTokenType["userInvite"] = "user-invite";
7
+ TransientTokenType["migration"] = "migration";
8
+ })(TransientTokenType || (exports.TransientTokenType = TransientTokenType = {}));
9
+ //# sourceMappingURL=transient-tokens.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"transient-tokens.js","sourceRoot":"","sources":["../../src/transient-tokens.ts"],"names":[],"mappings":";;;AAIA,IAAY,kBAGX;AAHD,WAAY,kBAAkB;IAC1B,gDAA0B,CAAA;IAC1B,6CAAuB,CAAA;AAC3B,CAAC,EAHW,kBAAkB,kCAAlB,kBAAkB,QAG7B"}
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AccountRefPopulate = exports.Datacenters = exports.UserRefPopulate = void 0;
4
+ exports.UserRefPopulate = "id name email picture";
5
+ var Datacenters;
6
+ (function (Datacenters) {
7
+ Datacenters["aws"] = "aws";
8
+ Datacenters["gcp"] = "gcp";
9
+ Datacenters["azure"] = "azure";
10
+ })(Datacenters || (exports.Datacenters = Datacenters = {}));
11
+ exports.AccountRefPopulate = "id name";
12
+ //# sourceMappingURL=user.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"user.js","sourceRoot":"","sources":["../../src/user.ts"],"names":[],"mappings":";;;AAyBa,QAAA,eAAe,GAAG,uBAAuB,CAAC;AAEvD,IAAY,WAIX;AAJD,WAAY,WAAW;IACnB,0BAAW,CAAA;IACX,0BAAW,CAAA;IACX,8BAAe,CAAA;AACnB,CAAC,EAJW,WAAW,2BAAX,WAAW,QAItB;AAmCY,QAAA,kBAAkB,GAAG,SAAS,CAAC"}
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getTenantId = getTenantId;
4
+ exports.getTenantIdFromProject = getTenantIdFromProject;
5
+ function getTenantId(accountId, projectId) {
6
+ //use the last 6 characters of the accountId as the db name
7
+ //as in mongo the last 6 char are an incrementing counter
8
+ const accountLast6 = accountId.slice(-6);
9
+ const projectLast6 = projectId.slice(-6);
10
+ return accountLast6 + '_' + projectLast6;
11
+ }
12
+ function getTenantIdFromProject(project) {
13
+ return getTenantId(project.account, project.id);
14
+ }
15
+ //# sourceMappingURL=auth.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"auth.js","sourceRoot":"","sources":["../../../src/utils/auth.ts"],"names":[],"mappings":";;AAEA,kCAMC;AACD,wDAEC;AATD,SAAgB,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,SAAgB,sBAAsB,CAAC,OAAmB;IACtD,OAAO,WAAW,CAAC,OAAO,CAAC,OAAO,EAAE,OAAO,CAAC,EAAE,CAAC,CAAC;AACpD,CAAC"}
@@ -0,0 +1,48 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports._mergePromptsSchema = _mergePromptsSchema;
4
+ exports.mergePromptsSchema = mergePromptsSchema;
5
+ const core_1 = require("@llumiverse/core");
6
+ const prompt_js_1 = require("../prompt.js");
7
+ function _mergePromptsSchema(prompts) {
8
+ const props = {};
9
+ let required = [];
10
+ for (const prompt of prompts) {
11
+ if (prompt.template?.inputSchema?.properties) {
12
+ const schema = prompt.template?.inputSchema;
13
+ if (schema.required) {
14
+ for (const prop of schema.required) {
15
+ if (!required.includes(prop))
16
+ required.push(prop);
17
+ }
18
+ }
19
+ Object.assign(props, schema.properties);
20
+ }
21
+ else if (prompt.type === prompt_js_1.PromptSegmentDefType.chat) {
22
+ Object.assign(props, {
23
+ chat: {
24
+ type: 'array',
25
+ items: {
26
+ type: 'object',
27
+ properties: {
28
+ role: {
29
+ type: 'string',
30
+ enum: [core_1.PromptRole.assistant, core_1.PromptRole.user]
31
+ },
32
+ content: { type: 'string' },
33
+ },
34
+ required: ['role', 'content']
35
+ }
36
+ }
37
+ });
38
+ required.push('chat');
39
+ }
40
+ }
41
+ return Object.keys(props).length > 0 ? { properties: props, required } : null;
42
+ }
43
+ function mergePromptsSchema(interaction) {
44
+ if (!interaction.prompts)
45
+ return null;
46
+ return _mergePromptsSchema(interaction.prompts);
47
+ }
48
+ //# sourceMappingURL=schemas.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"schemas.js","sourceRoot":"","sources":["../../../src/utils/schemas.ts"],"names":[],"mappings":";;AAKA,kDAiCC;AAED,gDAGC;AA3CD,2CAA8C;AAG9C,4CAA8H;AAE9H,SAAgB,mBAAmB,CAAC,OAAsF;IACtH,MAAM,KAAK,GAAgC,EAAE,CAAC;IAC9C,IAAI,QAAQ,GAAa,EAAE,CAAC;IAC5B,KAAK,MAAM,MAAM,IAAI,OAAO,EAAE,CAAC;QAC3B,IAAI,MAAM,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AO;QAAE,OAAO,IAAI,CAAC;IACtC,OAAO,mBAAmB,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC;AACpD,CAAC"}
@@ -0,0 +1,36 @@
1
+ /**
2
+ * @module access-control
3
+ * @description
4
+ * Access control interfaces
5
+ */
6
+ export var Permission;
7
+ (function (Permission) {
8
+ Permission["int_read"] = "interaction:read";
9
+ Permission["int_write"] = "interaction:write";
10
+ Permission["int_delete"] = "interaction:delete";
11
+ Permission["int_execute"] = "interaction:execute";
12
+ Permission["run_read"] = "run:read";
13
+ Permission["run_write"] = "run:write";
14
+ Permission["env_manage"] = "environment:manage";
15
+ Permission["project_manage"] = "project:manage";
16
+ Permission["api_key_create"] = "api_key:create";
17
+ Permission["api_key_read"] = "api_key:read";
18
+ Permission["account_read"] = "account:read";
19
+ Permission["account_manage"] = "account:manage";
20
+ Permission["manage_billing"] = "account:billing";
21
+ Permission["account_member"] = "account:member";
22
+ Permission["content_read"] = "content:read";
23
+ Permission["content_create"] = "content:create";
24
+ Permission["content_update"] = "content:update";
25
+ Permission["content_delete"] = "content:delete";
26
+ Permission["content_admin"] = "content:admin";
27
+ Permission["workflow_run"] = "workflow:run";
28
+ })(Permission || (Permission = {}));
29
+ export var AccessControlledResource;
30
+ (function (AccessControlledResource) {
31
+ AccessControlledResource["project"] = "project";
32
+ AccessControlledResource["environment"] = "environment";
33
+ AccessControlledResource["account"] = "account";
34
+ AccessControlledResource["interaction"] = "interaction";
35
+ })(AccessControlledResource || (AccessControlledResource = {}));
36
+ //# sourceMappingURL=access-control.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"access-control.js","sourceRoot":"","sources":["../../src/access-control.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAIH,MAAM,CAAN,IAAY,UA8BX;AA9BD,WAAY,UAAU;IAClB,2CAA6B,CAAA;IAC7B,6CAA+B,CAAA;IAC/B,+CAAiC,CAAA;IAEjC,iDAAmC,CAAA;IACnC,mCAAqB,CAAA;IACrB,qCAAuB,CAAA;IAEvB,+CAAiC,CAAA;IAEjC,+CAAiC,CAAA;IAEjC,+CAAiC,CAAA;IACjC,2CAA6B,CAAA;IAE7B,2CAA6B,CAAA;IAC7B,+CAAiC,CAAA;IACjC,gDAAkC,CAAA;IAClC,+CAAiC,CAAA;IAGjC,2CAA6B,CAAA;IAC7B,+CAAiC,CAAA;IACjC,+CAAiC,CAAA;IACjC,+CAAiC,CAAA;IAEjC,6CAA+B,CAAA;IAE/B,2CAA6B,CAAA;AACjC,CAAC,EA9BW,UAAU,KAAV,UAAU,QA8BrB;AAED,MAAM,CAAN,IAAY,wBAKX;AALD,WAAY,wBAAwB;IAChC,+CAAmB,CAAA;IACnB,uDAA2B,CAAA;IAC3B,+CAAmB,CAAA;IACnB,uDAA2B,CAAA;AAC/B,CAAC,EALW,wBAAwB,KAAxB,wBAAwB,QAKnC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=analytics.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"analytics.js","sourceRoot":"","sources":["../../src/analytics.ts"],"names":[],"mappings":""}
@@ -0,0 +1,12 @@
1
+ export var ApiKeyTypes;
2
+ (function (ApiKeyTypes) {
3
+ ApiKeyTypes["public"] = "pk";
4
+ ApiKeyTypes["secret"] = "sk";
5
+ })(ApiKeyTypes || (ApiKeyTypes = {}));
6
+ export var PrincipalType;
7
+ (function (PrincipalType) {
8
+ PrincipalType["User"] = "user";
9
+ PrincipalType["ApiKey"] = "apikey";
10
+ PrincipalType["ServiceAcount"] = "service_account";
11
+ })(PrincipalType || (PrincipalType = {}));
12
+ //# sourceMappingURL=apikey.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"apikey.js","sourceRoot":"","sources":["../../src/apikey.ts"],"names":[],"mappings":"AAIA,MAAM,CAAN,IAAY,WAGX;AAHD,WAAY,WAAW;IACnB,4BAAa,CAAA;IACb,4BAAa,CAAA;AACjB,CAAC,EAHW,WAAW,KAAX,WAAW,QAGtB;AAwDD,MAAM,CAAN,IAAY,aAIX;AAJD,WAAY,aAAa;IACrB,8BAAa,CAAA;IACb,kCAAiB,CAAA;IACjB,kDAAiC,CAAA;AACrC,CAAC,EAJW,aAAa,KAAb,aAAa,QAIxB"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=common.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"common.js","sourceRoot":"","sources":["../../src/common.ts"],"names":[],"mappings":""}
@@ -0,0 +1,113 @@
1
+ export var SupportedProviders;
2
+ (function (SupportedProviders) {
3
+ // from llumiverse
4
+ SupportedProviders["openai"] = "openai";
5
+ SupportedProviders["azure_openai"] = "azure_openai";
6
+ SupportedProviders["huggingface_ie"] = "huggingface_ie";
7
+ SupportedProviders["replicate"] = "replicate";
8
+ SupportedProviders["bedrock"] = "bedrock";
9
+ SupportedProviders["vertexai"] = "vertexai";
10
+ SupportedProviders["togetherai"] = "togetherai";
11
+ SupportedProviders["mistralai"] = "mistralai";
12
+ SupportedProviders["groq"] = "groq";
13
+ SupportedProviders["watsonx"] = "watsonx";
14
+ // from studio
15
+ SupportedProviders["virtual_lb"] = "virtual_lb";
16
+ SupportedProviders["virtual_mediator"] = "virtual_mediator";
17
+ SupportedProviders["test"] = "test";
18
+ })(SupportedProviders || (SupportedProviders = {}));
19
+ export const SupportedProvidersList = {
20
+ 'openai': {
21
+ id: SupportedProviders.openai,
22
+ name: "OpenAI",
23
+ requiresApiKey: true,
24
+ requiresEndpointUrl: false,
25
+ supportSearch: false,
26
+ },
27
+ 'azure_openai': {
28
+ id: SupportedProviders.azure_openai,
29
+ name: "Azure OpenAI",
30
+ requiresApiKey: false,
31
+ requiresEndpointUrl: true,
32
+ supportSearch: false,
33
+ },
34
+ 'huggingface_ie': {
35
+ id: SupportedProviders.huggingface_ie,
36
+ name: "HuggingFace Inference Endpoint",
37
+ requiresApiKey: true,
38
+ requiresEndpointUrl: true,
39
+ },
40
+ 'replicate': {
41
+ id: SupportedProviders.replicate,
42
+ name: "Repicate",
43
+ requiresApiKey: true,
44
+ requiresEndpointUrl: false,
45
+ supportSearch: true,
46
+ },
47
+ 'bedrock': {
48
+ id: SupportedProviders.bedrock,
49
+ name: "AWS Bedrock",
50
+ requiresApiKey: false,
51
+ requiresEndpointUrl: false,
52
+ endpointPlaceholder: "region name (eg. us-east-1)",
53
+ supportSearch: false,
54
+ },
55
+ vertexai: {
56
+ id: SupportedProviders.vertexai,
57
+ name: "Google Vertex AI",
58
+ requiresApiKey: false,
59
+ requiresEndpointUrl: false,
60
+ supportSearch: false,
61
+ },
62
+ togetherai: {
63
+ id: SupportedProviders.togetherai,
64
+ name: "Together AI",
65
+ requiresApiKey: false,
66
+ requiresEndpointUrl: false,
67
+ supportSearch: false,
68
+ },
69
+ mistralai: {
70
+ id: SupportedProviders.mistralai,
71
+ name: "Mistral AI",
72
+ requiresApiKey: false,
73
+ requiresEndpointUrl: false,
74
+ supportSearch: false,
75
+ },
76
+ groq: {
77
+ id: SupportedProviders.groq,
78
+ name: "Groq Cloud",
79
+ requiresApiKey: false,
80
+ requiresEndpointUrl: false,
81
+ supportSearch: false,
82
+ },
83
+ watsonx: {
84
+ id: SupportedProviders.watsonx,
85
+ name: "IBM WatsonX",
86
+ requiresApiKey: true,
87
+ requiresEndpointUrl: true,
88
+ supportSearch: false
89
+ },
90
+ 'virtual_lb': {
91
+ id: SupportedProviders.virtual_lb,
92
+ name: "Virtual - Load Balancer",
93
+ requiresApiKey: false,
94
+ requiresEndpointUrl: false,
95
+ supportSearch: false,
96
+ },
97
+ 'virtual_mediator': {
98
+ id: SupportedProviders.virtual_mediator,
99
+ name: "Virtual - Mediator",
100
+ requiresApiKey: false,
101
+ requiresEndpointUrl: false,
102
+ supportSearch: false,
103
+ },
104
+ 'test': {
105
+ id: SupportedProviders.test,
106
+ name: "Test LLM",
107
+ requiresApiKey: false,
108
+ requiresEndpointUrl: false,
109
+ supportSearch: false,
110
+ },
111
+ };
112
+ export const ExecutionEnvironmentRefPopulate = "id name provider enabled_models default_model endpoint_url allowed_projects account created_at updated_at";
113
+ //# sourceMappingURL=environment.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"environment.js","sourceRoot":"","sources":["../../src/environment.ts"],"names":[],"mappings":"AAGA,MAAM,CAAN,IAAY,kBAgBX;AAhBD,WAAY,kBAAkB;IAC1B,kBAAkB;IAClB,uCAAiB,CAAA;IACjB,mDAA6B,CAAA;IAC7B,uDAAiC,CAAA;IACjC,6CAAuB,CAAA;IACvB,yCAAmB,CAAA;IACnB,2CAAqB,CAAA;IACrB,+CAAyB,CAAA;IACzB,6CAAuB,CAAA;IACvB,mCAAa,CAAA;IACb,yCAAmB,CAAA;IACnB,cAAc;IACd,+CAAyB,CAAA;IACzB,2DAAqC,CAAA;IACrC,mCAAa,CAAA;AACjB,CAAC,EAhBW,kBAAkB,KAAlB,kBAAkB,QAgB7B;AAWD,MAAM,CAAC,MAAM,sBAAsB,GAAwD;IACvF,QAAQ,EACR;QACI,EAAE,EAAE,kBAAkB,CAAC,MAAM;QAC7B,IAAI,EAAE,QAAQ;QACd,cAAc,EAAE,IAAI;QACpB,mBAAmB,EAAE,KAAK;QAC1B,aAAa,EAAE,KAAK;KACvB;IACD,cAAc,EACd;QACI,EAAE,EAAE,kBAAkB,CAAC,YAAY;QACnC,IAAI,EAAE,cAAc;QACpB,cAAc,EAAE,KAAK;QACrB,mBAAmB,EAAE,IAAI;QACzB,aAAa,EAAE,KAAK;KACvB;IACD,gBAAgB,EAChB;QACI,EAAE,EAAE,kBAAkB,CAAC,cAAc;QACrC,IAAI,EAAE,gCAAgC;QACtC,cAAc,EAAE,IAAI;QACpB,mBAAmB,EAAE,IAAI;KAC5B;IACD,WAAW,EACX;QACI,EAAE,EAAE,kBAAkB,CAAC,SAAS;QAChC,IAAI,EAAE,UAAU;QAChB,cAAc,EAAE,IAAI;QACpB,mBAAmB,EAAE,KAAK;QAC1B,aAAa,EAAE,IAAI;KACtB;IACD,SAAS,EACT;QACI,EAAE,EA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AE,KAAK;QACrB,mBAAmB,EAAE,KAAK;QAC1B,aAAa,EAAE,KAAK;KACvB;IACD,MAAM,EAAE;QACJ,EAAE,EAAE,kBAAkB,CAAC,IAAI;QAC3B,IAAI,EAAE,UAAU;QAChB,cAAc,EAAE,KAAK;QACrB,mBAAmB,EAAE,KAAK;QAC1B,aAAa,EAAE,KAAK;KACvB;CACJ,CAAC;AA4DF,MAAM,CAAC,MAAM,+BAA+B,GAAG,2GAA2G,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=facets.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"facets.js","sourceRoot":"","sources":["../../src/facets.ts"],"names":[],"mappings":""}
@@ -0,0 +1,21 @@
1
+ export * from './access-control.js';
2
+ export * from './analytics.js';
3
+ export * from './apikey.js';
4
+ export * from './common.js';
5
+ export * from './environment.js';
6
+ export * from "./facets.js";
7
+ export * from './integrations.js';
8
+ export * from './interaction.js';
9
+ export * from './payload.js';
10
+ export * from './project.js';
11
+ export * from './prompt.js';
12
+ export * from './query.js';
13
+ export * from './refs.js';
14
+ export * from './runs.js';
15
+ export * from "./store/index.js";
16
+ export * from "./training.js";
17
+ export * from './transient-tokens.js';
18
+ export * from './user.js';
19
+ export * from './utils/auth.js';
20
+ export * from './utils/schemas.js';
21
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC;AACpC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,kBAAkB,CAAC;AACjC,cAAc,aAAa,CAAC;AAC5B,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC;AACjC,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAC1B,cAAc,kBAAkB,CAAC;AACjC,cAAc,eAAe,CAAC;AAC9B,cAAc,uBAAuB,CAAC;AACtC,cAAc,WAAW,CAAC;AAC1B,cAAc,iBAAiB,CAAC;AAChC,cAAc,oBAAoB,CAAC"}
@@ -0,0 +1,7 @@
1
+ export var SupportedIntegrations;
2
+ (function (SupportedIntegrations) {
3
+ SupportedIntegrations["gladia"] = "gladia";
4
+ SupportedIntegrations["github"] = "github";
5
+ SupportedIntegrations["aws"] = "aws";
6
+ })(SupportedIntegrations || (SupportedIntegrations = {}));
7
+ //# sourceMappingURL=integrations.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"integrations.js","sourceRoot":"","sources":["../../src/integrations.ts"],"names":[],"mappings":"AAoBA,MAAM,CAAN,IAAY,qBAIX;AAJD,WAAY,qBAAqB;IAC7B,0CAAiB,CAAA;IACjB,0CAAiB,CAAA;IACjB,oCAAW,CAAA;AACf,CAAC,EAJW,qBAAqB,KAArB,qBAAqB,QAIhC"}
@@ -0,0 +1,60 @@
1
+ export const InteractionRefPopulate = "id name description status version visibility tags updated_at prompts";
2
+ export var InteractionStatus;
3
+ (function (InteractionStatus) {
4
+ InteractionStatus["draft"] = "draft";
5
+ InteractionStatus["published"] = "published";
6
+ InteractionStatus["archived"] = "archived";
7
+ })(InteractionStatus || (InteractionStatus = {}));
8
+ export var ExecutionRunStatus;
9
+ (function (ExecutionRunStatus) {
10
+ ExecutionRunStatus["created"] = "created";
11
+ ExecutionRunStatus["processing"] = "processing";
12
+ ExecutionRunStatus["completed"] = "completed";
13
+ ExecutionRunStatus["failed"] = "failed";
14
+ })(ExecutionRunStatus || (ExecutionRunStatus = {}));
15
+ export var RunDataStorageLevel;
16
+ (function (RunDataStorageLevel) {
17
+ RunDataStorageLevel["STANDARD"] = "STANDARD";
18
+ RunDataStorageLevel["RESTRICTED"] = "RESTRICTED";
19
+ RunDataStorageLevel["DEBUG"] = "DEBUG";
20
+ })(RunDataStorageLevel || (RunDataStorageLevel = {}));
21
+ export var RunDataStorageDescription;
22
+ (function (RunDataStorageDescription) {
23
+ RunDataStorageDescription["STANDARD"] = "Run data is stored for both the model inputs and output.";
24
+ RunDataStorageDescription["RESTRICTED"] = "No run data is stored for the model inputs \u2014 only the model output.";
25
+ RunDataStorageDescription["DEBUG"] = "Run data is stored for the model inputs and output, schema, and final prompt.";
26
+ })(RunDataStorageDescription || (RunDataStorageDescription = {}));
27
+ export const RunDataStorageOptions = {
28
+ [RunDataStorageLevel.STANDARD]: RunDataStorageDescription.STANDARD,
29
+ [RunDataStorageLevel.RESTRICTED]: RunDataStorageDescription.RESTRICTED,
30
+ [RunDataStorageLevel.DEBUG]: RunDataStorageDescription.DEBUG,
31
+ };
32
+ export var RunSourceTypes;
33
+ (function (RunSourceTypes) {
34
+ RunSourceTypes["api"] = "api";
35
+ RunSourceTypes["cli"] = "cli";
36
+ RunSourceTypes["ui"] = "ui";
37
+ RunSourceTypes["webhook"] = "webhook";
38
+ RunSourceTypes["test"] = "test-data";
39
+ RunSourceTypes["system"] = "system";
40
+ })(RunSourceTypes || (RunSourceTypes = {}));
41
+ export const ExecutionRunRefSelect = "-result -parameters -result_schema -prompt";
42
+ export var ConfigModes;
43
+ (function (ConfigModes) {
44
+ ConfigModes["RUN_AND_INTERACTION_CONFIG"] = "RUN_AND_INTERACTION_CONFIG";
45
+ ConfigModes["RUN_CONFIG_ONLY"] = "RUN_CONFIG_ONLY";
46
+ ConfigModes["INTERACTION_CONFIG_ONLY"] = "INTERACTION_CONFIG_ONLY";
47
+ })(ConfigModes || (ConfigModes = {}));
48
+ ;
49
+ export var ConfigModesDescription;
50
+ (function (ConfigModesDescription) {
51
+ ConfigModesDescription["RUN_AND_INTERACTION_CONFIG"] = "This run configuration is used. Undefined options are filled with interaction configuration.";
52
+ ConfigModesDescription["RUN_CONFIG_ONLY"] = "Only this run configuration is used. Undefined options remain undefined.";
53
+ ConfigModesDescription["INTERACTION_CONFIG_ONLY"] = "Only interaction configuration is used.";
54
+ })(ConfigModesDescription || (ConfigModesDescription = {}));
55
+ export const ConfigModesOptions = {
56
+ [ConfigModes.RUN_AND_INTERACTION_CONFIG]: ConfigModesDescription.RUN_AND_INTERACTION_CONFIG,
57
+ [ConfigModes.RUN_CONFIG_ONLY]: ConfigModesDescription.RUN_CONFIG_ONLY,
58
+ [ConfigModes.INTERACTION_CONFIG_ONLY]: ConfigModesDescription.INTERACTION_CONFIG_ONLY,
59
+ };
60
+ //# sourceMappingURL=interaction.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"interaction.js","sourceRoot":"","sources":["../../src/interaction.ts"],"names":[],"mappings":"AA2BA,MAAM,CAAC,MAAM,sBAAsB,GAAG,uEAAuE,CAAC;AAuB9G,MAAM,CAAN,IAAY,iBAIX;AAJD,WAAY,iBAAiB;IACzB,oCAAe,CAAA;IACf,4CAAuB,CAAA;IACvB,0CAAqB,CAAA;AACzB,CAAC,EAJW,iBAAiB,KAAjB,iBAAiB,QAI5B;AAED,MAAM,CAAN,IAAY,kBAKX;AALD,WAAY,kBAAkB;IAC1B,yCAAmB,CAAA;IACnB,+CAAyB,CAAA;IACzB,6CAAuB,CAAA;IACvB,uCAAiB,CAAA;AACrB,CAAC,EALW,kBAAkB,KAAlB,kBAAkB,QAK7B;AAED,MAAM,CAAN,IAAY,mBAIX;AAJD,WAAY,mBAAmB;IAC3B,4CAAqB,CAAA;IACrB,gDAAyB,CAAA;IACzB,sCAAe,CAAA;AACnB,CAAC,EAJW,mBAAmB,KAAnB,mBAAmB,QAI9B;AAED,MAAM,CAAN,IAAY,yBAIX;AAJD,WAAY,yBAAyB;IACjC,kGAAqE,CAAA;IACrE,oHAAkF,CAAA;IAClF,oHAAuF,CAAA;AAC3F,CAAC,EAJW,yBAAyB,KAAzB,yBAAyB,QAIpC;AAED,MAAM,CAAC,MAAM,qBAAqB,GAA2D;IACzF,CAAC,mBAAmB,CAAC,QAAQ,CAA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