@versori/run 0.5.0 → 0.5.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 (217) hide show
  1. package/esm/mod.d.ts +1 -1
  2. package/esm/mod.d.ts.map +1 -1
  3. package/esm/mod.js +1 -1
  4. package/esm/src/connection/VanillaConnectionFactory.d.ts +16 -0
  5. package/esm/src/connection/VanillaConnectionFactory.d.ts.map +1 -0
  6. package/esm/src/connection/VanillaConnectionFactory.js +35 -0
  7. package/esm/src/context/ActivationImpl.d.ts +2 -1
  8. package/esm/src/context/ActivationImpl.d.ts.map +1 -1
  9. package/esm/src/context/Context.d.ts +2 -1
  10. package/esm/src/context/Context.d.ts.map +1 -1
  11. package/esm/src/context/ContextProvider.d.ts +8 -8
  12. package/esm/src/context/ContextProvider.d.ts.map +1 -1
  13. package/esm/src/context/ContextProvider.js +1 -1
  14. package/esm/src/context/VanillaContext.d.ts +63 -0
  15. package/esm/src/context/VanillaContext.d.ts.map +1 -0
  16. package/esm/src/context/VanillaContext.js +313 -0
  17. package/esm/src/context/WorkflowClient.d.ts +2 -2
  18. package/esm/src/context/WorkflowClient.d.ts.map +1 -1
  19. package/esm/src/dsl/http/mod.d.ts +1 -1
  20. package/esm/src/dsl/http/mod.d.ts.map +1 -1
  21. package/esm/src/dsl/http/types.d.ts +20 -134
  22. package/esm/src/dsl/http/types.d.ts.map +1 -1
  23. package/esm/src/dsl/http/versori/configloader.d.ts.map +1 -1
  24. package/esm/src/dsl/http/versori/configloader.js +3 -0
  25. package/esm/src/dsl/http/versori/webhookmiddleware.d.ts +1 -1
  26. package/esm/src/dsl/http/versori/webhookmiddleware.d.ts.map +1 -1
  27. package/esm/src/dsl/tasks/HttpTask.d.ts +4 -4
  28. package/esm/src/dsl/tasks/HttpTask.d.ts.map +1 -1
  29. package/esm/src/dsl/triggers/ScheduleTrigger.d.ts +2 -2
  30. package/esm/src/dsl/triggers/ScheduleTrigger.d.ts.map +1 -1
  31. package/esm/src/interpreter/durable/DurableInterpreter.d.ts +1 -0
  32. package/esm/src/interpreter/durable/DurableInterpreter.d.ts.map +1 -1
  33. package/esm/src/interpreter/durable/DurableInterpreter.js +24 -7
  34. package/esm/src/interpreter/durable/Queue.d.ts +1 -1
  35. package/esm/src/interpreter/durable/Queue.js +1 -1
  36. package/esm/src/interpreter/durable/compilers/durableworkflow.d.ts.map +1 -1
  37. package/esm/src/interpreter/durable/compilers/durableworkflow.js +2 -1
  38. package/esm/src/interpreter/durable/compilers/fn.d.ts.map +1 -1
  39. package/esm/src/interpreter/durable/compilers/fn.js +7 -4
  40. package/esm/src/interpreter/durable/compilers/webhook.d.ts.map +1 -1
  41. package/esm/src/interpreter/durable/compilers/webhook.js +7 -6
  42. package/esm/src/interpreter/memory/MemoryInterpreter.d.ts +3 -2
  43. package/esm/src/interpreter/memory/MemoryInterpreter.d.ts.map +1 -1
  44. package/esm/src/interpreter/memory/MemoryInterpreter.js +24 -7
  45. package/esm/src/interpreter/memory/compilers/fn.d.ts.map +1 -1
  46. package/esm/src/interpreter/memory/compilers/fn.js +7 -4
  47. package/esm/src/interpreter/memory/compilers/schedule.d.ts.map +1 -1
  48. package/esm/src/interpreter/memory/compilers/webhook.d.ts.map +1 -1
  49. package/esm/src/interpreter/memory/compilers/webhook.js +7 -6
  50. package/esm/src/interpreter/mod.d.ts +1 -0
  51. package/esm/src/interpreter/mod.d.ts.map +1 -1
  52. package/esm/src/interpreter/mod.js +1 -0
  53. package/esm/src/interpreter/vanilla/ExecutionError.d.ts +25 -0
  54. package/esm/src/interpreter/vanilla/ExecutionError.d.ts.map +1 -0
  55. package/esm/src/interpreter/vanilla/ExecutionError.js +46 -0
  56. package/esm/src/interpreter/vanilla/ObservableCompiler.d.ts +38 -0
  57. package/esm/src/interpreter/vanilla/ObservableCompiler.d.ts.map +1 -0
  58. package/esm/src/interpreter/vanilla/ObservableCompiler.js +95 -0
  59. package/esm/src/interpreter/vanilla/VanillaInterpreter.d.ts +96 -0
  60. package/esm/src/interpreter/vanilla/VanillaInterpreter.d.ts.map +1 -0
  61. package/esm/src/interpreter/vanilla/VanillaInterpreter.js +435 -0
  62. package/esm/src/interpreter/vanilla/compilers/background.d.ts +4 -0
  63. package/esm/src/interpreter/vanilla/compilers/background.d.ts.map +1 -0
  64. package/esm/src/interpreter/vanilla/compilers/background.js +34 -0
  65. package/esm/src/interpreter/vanilla/compilers/catch.d.ts +4 -0
  66. package/esm/src/interpreter/vanilla/compilers/catch.d.ts.map +1 -0
  67. package/esm/src/interpreter/vanilla/compilers/catch.js +75 -0
  68. package/esm/src/interpreter/vanilla/compilers/chain.d.ts +3 -0
  69. package/esm/src/interpreter/vanilla/compilers/chain.d.ts.map +1 -0
  70. package/esm/src/interpreter/vanilla/compilers/chain.js +21 -0
  71. package/esm/src/interpreter/vanilla/compilers/durableworkflow.d.ts +8 -0
  72. package/esm/src/interpreter/vanilla/compilers/durableworkflow.d.ts.map +1 -0
  73. package/esm/src/interpreter/vanilla/compilers/durableworkflow.js +91 -0
  74. package/esm/src/interpreter/vanilla/compilers/fn.d.ts +4 -0
  75. package/esm/src/interpreter/vanilla/compilers/fn.d.ts.map +1 -0
  76. package/esm/src/interpreter/vanilla/compilers/fn.js +37 -0
  77. package/esm/src/interpreter/vanilla/compilers/http.d.ts +4 -0
  78. package/esm/src/interpreter/vanilla/compilers/http.d.ts.map +1 -0
  79. package/esm/src/interpreter/vanilla/compilers/http.js +54 -0
  80. package/esm/src/interpreter/vanilla/compilers/mod.d.ts +2 -0
  81. package/esm/src/interpreter/vanilla/compilers/mod.d.ts.map +1 -0
  82. package/esm/src/interpreter/vanilla/compilers/mod.js +13 -0
  83. package/esm/src/interpreter/vanilla/compilers/parallel.d.ts +4 -0
  84. package/esm/src/interpreter/vanilla/compilers/parallel.d.ts.map +1 -0
  85. package/esm/src/interpreter/vanilla/compilers/parallel.js +31 -0
  86. package/esm/src/interpreter/vanilla/compilers/schedule.d.ts +4 -0
  87. package/esm/src/interpreter/vanilla/compilers/schedule.d.ts.map +1 -0
  88. package/esm/src/interpreter/vanilla/compilers/schedule.js +76 -0
  89. package/esm/src/interpreter/vanilla/compilers/serial.d.ts +4 -0
  90. package/esm/src/interpreter/vanilla/compilers/serial.d.ts.map +1 -0
  91. package/esm/src/interpreter/vanilla/compilers/serial.js +28 -0
  92. package/esm/src/interpreter/vanilla/compilers/types.d.ts +15 -0
  93. package/esm/src/interpreter/vanilla/compilers/types.d.ts.map +1 -0
  94. package/esm/src/interpreter/vanilla/compilers/types.js +13 -0
  95. package/esm/src/interpreter/vanilla/compilers/unpack.d.ts +4 -0
  96. package/esm/src/interpreter/vanilla/compilers/unpack.d.ts.map +1 -0
  97. package/esm/src/interpreter/vanilla/compilers/unpack.js +34 -0
  98. package/esm/src/interpreter/vanilla/compilers/webhook.d.ts +4 -0
  99. package/esm/src/interpreter/vanilla/compilers/webhook.d.ts.map +1 -0
  100. package/esm/src/interpreter/vanilla/compilers/webhook.js +261 -0
  101. package/esm/src/interpreter/vanilla/mod.d.ts +3 -0
  102. package/esm/src/interpreter/vanilla/mod.d.ts.map +1 -0
  103. package/esm/src/interpreter/vanilla/mod.js +14 -0
  104. package/esm/src/issues/Issues.d.ts.map +1 -1
  105. package/esm/src/observability/logging/ConsoleLogger.d.ts +1 -1
  106. package/esm/src/observability/logging/ConsoleLogger.d.ts.map +1 -1
  107. package/esm/src/observability/logging/ConsoleLogger.js +11 -1
  108. package/esm/src/services/platform/generated/core/pathSerializer.gen.d.ts +2 -2
  109. package/package.json +1 -1
  110. package/script/mod.d.ts +1 -1
  111. package/script/mod.d.ts.map +1 -1
  112. package/script/mod.js +2 -1
  113. package/script/src/connection/VanillaConnectionFactory.d.ts +16 -0
  114. package/script/src/connection/VanillaConnectionFactory.d.ts.map +1 -0
  115. package/script/src/connection/VanillaConnectionFactory.js +40 -0
  116. package/script/src/context/ActivationImpl.d.ts +2 -1
  117. package/script/src/context/ActivationImpl.d.ts.map +1 -1
  118. package/script/src/context/Context.d.ts +2 -1
  119. package/script/src/context/Context.d.ts.map +1 -1
  120. package/script/src/context/ContextProvider.d.ts +8 -8
  121. package/script/src/context/ContextProvider.d.ts.map +1 -1
  122. package/script/src/context/ContextProvider.js +1 -1
  123. package/script/src/context/VanillaContext.d.ts +63 -0
  124. package/script/src/context/VanillaContext.d.ts.map +1 -0
  125. package/script/src/context/VanillaContext.js +319 -0
  126. package/script/src/context/WorkflowClient.d.ts +2 -2
  127. package/script/src/context/WorkflowClient.d.ts.map +1 -1
  128. package/script/src/dsl/http/mod.d.ts +1 -1
  129. package/script/src/dsl/http/mod.d.ts.map +1 -1
  130. package/script/src/dsl/http/types.d.ts +20 -134
  131. package/script/src/dsl/http/types.d.ts.map +1 -1
  132. package/script/src/dsl/http/versori/configloader.d.ts.map +1 -1
  133. package/script/src/dsl/http/versori/configloader.js +3 -0
  134. package/script/src/dsl/http/versori/webhookmiddleware.d.ts +1 -1
  135. package/script/src/dsl/http/versori/webhookmiddleware.d.ts.map +1 -1
  136. package/script/src/dsl/tasks/HttpTask.d.ts +4 -4
  137. package/script/src/dsl/tasks/HttpTask.d.ts.map +1 -1
  138. package/script/src/dsl/triggers/ScheduleTrigger.d.ts +2 -2
  139. package/script/src/dsl/triggers/ScheduleTrigger.d.ts.map +1 -1
  140. package/script/src/interpreter/durable/DurableInterpreter.d.ts +1 -0
  141. package/script/src/interpreter/durable/DurableInterpreter.d.ts.map +1 -1
  142. package/script/src/interpreter/durable/DurableInterpreter.js +24 -7
  143. package/script/src/interpreter/durable/Queue.d.ts +1 -1
  144. package/script/src/interpreter/durable/Queue.js +1 -1
  145. package/script/src/interpreter/durable/compilers/durableworkflow.d.ts.map +1 -1
  146. package/script/src/interpreter/durable/compilers/durableworkflow.js +2 -1
  147. package/script/src/interpreter/durable/compilers/fn.d.ts.map +1 -1
  148. package/script/src/interpreter/durable/compilers/fn.js +7 -4
  149. package/script/src/interpreter/durable/compilers/webhook.d.ts.map +1 -1
  150. package/script/src/interpreter/durable/compilers/webhook.js +7 -6
  151. package/script/src/interpreter/memory/MemoryInterpreter.d.ts +3 -2
  152. package/script/src/interpreter/memory/MemoryInterpreter.d.ts.map +1 -1
  153. package/script/src/interpreter/memory/MemoryInterpreter.js +24 -7
  154. package/script/src/interpreter/memory/compilers/fn.d.ts.map +1 -1
  155. package/script/src/interpreter/memory/compilers/fn.js +7 -4
  156. package/script/src/interpreter/memory/compilers/schedule.d.ts.map +1 -1
  157. package/script/src/interpreter/memory/compilers/webhook.d.ts.map +1 -1
  158. package/script/src/interpreter/memory/compilers/webhook.js +7 -6
  159. package/script/src/interpreter/mod.d.ts +1 -0
  160. package/script/src/interpreter/mod.d.ts.map +1 -1
  161. package/script/src/interpreter/mod.js +2 -1
  162. package/script/src/interpreter/vanilla/ExecutionError.d.ts +25 -0
  163. package/script/src/interpreter/vanilla/ExecutionError.d.ts.map +1 -0
  164. package/script/src/interpreter/vanilla/ExecutionError.js +50 -0
  165. package/script/src/interpreter/vanilla/ObservableCompiler.d.ts +38 -0
  166. package/script/src/interpreter/vanilla/ObservableCompiler.d.ts.map +1 -0
  167. package/script/src/interpreter/vanilla/ObservableCompiler.js +99 -0
  168. package/script/src/interpreter/vanilla/VanillaInterpreter.d.ts +96 -0
  169. package/script/src/interpreter/vanilla/VanillaInterpreter.d.ts.map +1 -0
  170. package/script/src/interpreter/vanilla/VanillaInterpreter.js +442 -0
  171. package/script/src/interpreter/vanilla/compilers/background.d.ts +4 -0
  172. package/script/src/interpreter/vanilla/compilers/background.d.ts.map +1 -0
  173. package/script/src/interpreter/vanilla/compilers/background.js +37 -0
  174. package/script/src/interpreter/vanilla/compilers/catch.d.ts +4 -0
  175. package/script/src/interpreter/vanilla/compilers/catch.d.ts.map +1 -0
  176. package/script/src/interpreter/vanilla/compilers/catch.js +78 -0
  177. package/script/src/interpreter/vanilla/compilers/chain.d.ts +3 -0
  178. package/script/src/interpreter/vanilla/compilers/chain.d.ts.map +1 -0
  179. package/script/src/interpreter/vanilla/compilers/chain.js +24 -0
  180. package/script/src/interpreter/vanilla/compilers/durableworkflow.d.ts +8 -0
  181. package/script/src/interpreter/vanilla/compilers/durableworkflow.d.ts.map +1 -0
  182. package/script/src/interpreter/vanilla/compilers/durableworkflow.js +95 -0
  183. package/script/src/interpreter/vanilla/compilers/fn.d.ts +4 -0
  184. package/script/src/interpreter/vanilla/compilers/fn.d.ts.map +1 -0
  185. package/script/src/interpreter/vanilla/compilers/fn.js +40 -0
  186. package/script/src/interpreter/vanilla/compilers/http.d.ts +4 -0
  187. package/script/src/interpreter/vanilla/compilers/http.d.ts.map +1 -0
  188. package/script/src/interpreter/vanilla/compilers/http.js +57 -0
  189. package/script/src/interpreter/vanilla/compilers/mod.d.ts +2 -0
  190. package/script/src/interpreter/vanilla/compilers/mod.d.ts.map +1 -0
  191. package/script/src/interpreter/vanilla/compilers/mod.js +14 -0
  192. package/script/src/interpreter/vanilla/compilers/parallel.d.ts +4 -0
  193. package/script/src/interpreter/vanilla/compilers/parallel.d.ts.map +1 -0
  194. package/script/src/interpreter/vanilla/compilers/parallel.js +34 -0
  195. package/script/src/interpreter/vanilla/compilers/schedule.d.ts +4 -0
  196. package/script/src/interpreter/vanilla/compilers/schedule.d.ts.map +1 -0
  197. package/script/src/interpreter/vanilla/compilers/schedule.js +79 -0
  198. package/script/src/interpreter/vanilla/compilers/serial.d.ts +4 -0
  199. package/script/src/interpreter/vanilla/compilers/serial.d.ts.map +1 -0
  200. package/script/src/interpreter/vanilla/compilers/serial.js +31 -0
  201. package/script/src/interpreter/vanilla/compilers/types.d.ts +15 -0
  202. package/script/src/interpreter/vanilla/compilers/types.d.ts.map +1 -0
  203. package/script/src/interpreter/vanilla/compilers/types.js +14 -0
  204. package/script/src/interpreter/vanilla/compilers/unpack.d.ts +4 -0
  205. package/script/src/interpreter/vanilla/compilers/unpack.d.ts.map +1 -0
  206. package/script/src/interpreter/vanilla/compilers/unpack.js +37 -0
  207. package/script/src/interpreter/vanilla/compilers/webhook.d.ts +4 -0
  208. package/script/src/interpreter/vanilla/compilers/webhook.d.ts.map +1 -0
  209. package/script/src/interpreter/vanilla/compilers/webhook.js +267 -0
  210. package/script/src/interpreter/vanilla/mod.d.ts +3 -0
  211. package/script/src/interpreter/vanilla/mod.d.ts.map +1 -0
  212. package/script/src/interpreter/vanilla/mod.js +30 -0
  213. package/script/src/issues/Issues.d.ts.map +1 -1
  214. package/script/src/observability/logging/ConsoleLogger.d.ts +1 -1
  215. package/script/src/observability/logging/ConsoleLogger.d.ts.map +1 -1
  216. package/script/src/observability/logging/ConsoleLogger.js +11 -1
  217. package/script/src/services/platform/generated/core/pathSerializer.gen.d.ts +2 -2
@@ -0,0 +1 @@
1
+ {"version":3,"file":"VanillaContext.d.ts","sourceRoot":"","sources":["../../../src/src/context/VanillaContext.ts"],"names":[],"mappings":"AAcA,OAAO,EACH,UAAU,EACV,UAAU,EACV,gBAAgB,EAChB,OAAO,EACP,kBAAkB,EACrB,MAAM,6BAA6B,CAAC;AACrC,OAAO,KAAK,KAAK,OAAO,MAAM,SAAS,CAAC;AACxC,OAAO,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AAC3D,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AACtD,OAAO,EAAE,mBAAmB,EAAE,QAAQ,EAAE,gBAAgB,EAAE,aAAa,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AACnG,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACnD,OAAO,EAAE,OAAO,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AACpE,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAgB,iBAAiB,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAEpF,qBAAa,iBAAkB,YAAW,mBAAmB;IAErD,OAAO,CAAC,QAAQ,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MAAM,EACtC,MAAM,EAAE,QAAQ,EAChB,KAAK,GAAE,QAAQ,GAAG,SAAqB;IAQ3C,MAAM,CAAC,CAAC,EAAE,UAAU,EAAE,UAAU,EAAE,IAAI,EAAE,CAAC,EAAE,OAAO,GAAE,cAAmB,GAAG,cAAc,CAAC,CAAC,CAAC;IA6B3F,qBAAqB,CAAC,CAAC,EACnB,UAAU,EAAE,UAAU,EACtB,IAAI,EAAE,CAAC,EACP,WAAW,EAAE,MAAM,EACnB,OAAO,GAAE,cAAmB,GAC7B,cAAc,CAAC,CAAC,CAAC;IA2BpB,OAAO,CAAC,CAAC,EAAE,OAAO,CAAC,GAAG,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC;CAG1C"}
@@ -0,0 +1,319 @@
1
+ "use strict";
2
+ /*
3
+ * Copyright (c) 2025 Versori Group Inc
4
+ *
5
+ * Use of this software is governed by the Business Source License 1.1
6
+ * included in the LICENSE file at the root of this repository.
7
+ *
8
+ * Change Date: 2029-01-01
9
+ * Change License: Apache License, Version 2.0
10
+ *
11
+ * As of the Change Date, in accordance with the Business Source License,
12
+ * use of this software will be governed by the Apache License, Version 2.0.
13
+ */
14
+ var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
15
+ if (kind === "m") throw new TypeError("Private method is not writable");
16
+ if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
17
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
18
+ return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
19
+ };
20
+ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
21
+ if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
22
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
23
+ return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
24
+ };
25
+ var _VanillaContext_activation, _VanillaContext_issues;
26
+ Object.defineProperty(exports, "__esModule", { value: true });
27
+ exports.VanillaContextProvider = exports.VanillaContext = exports.VanillaActivation = void 0;
28
+ const ulid_js_1 = require("../../deps/jsr.io/@std/ulid/1.0.0/ulid.js");
29
+ const AsyncWorkflow_js_1 = require("./AsyncWorkflow.js");
30
+ const WorkflowClient_js_1 = require("./WorkflowClient.js");
31
+ class VanillaActivation {
32
+ constructor(activation, organisationId, environmentId, log) {
33
+ Object.defineProperty(this, "activation", {
34
+ enumerable: true,
35
+ configurable: true,
36
+ writable: true,
37
+ value: activation
38
+ });
39
+ Object.defineProperty(this, "organisationId", {
40
+ enumerable: true,
41
+ configurable: true,
42
+ writable: true,
43
+ value: organisationId
44
+ });
45
+ Object.defineProperty(this, "environmentId", {
46
+ enumerable: true,
47
+ configurable: true,
48
+ writable: true,
49
+ value: environmentId
50
+ });
51
+ Object.defineProperty(this, "log", {
52
+ enumerable: true,
53
+ configurable: true,
54
+ writable: true,
55
+ value: log
56
+ });
57
+ }
58
+ get id() {
59
+ return this.activation.id;
60
+ }
61
+ get user() {
62
+ return this.activation.user;
63
+ }
64
+ get environment() {
65
+ return this.activation.environment;
66
+ }
67
+ get connections() {
68
+ return this.activation.connections;
69
+ }
70
+ get dynamicVariables() {
71
+ return this.activation.dynamicVariables;
72
+ }
73
+ getVariable(name) {
74
+ if (!this.activation.dynamicVariables) {
75
+ return undefined;
76
+ }
77
+ return this.activation.dynamicVariables[name];
78
+ }
79
+ setVariable(_, __) {
80
+ return Promise.resolve();
81
+ }
82
+ }
83
+ exports.VanillaActivation = VanillaActivation;
84
+ class VanillaContext {
85
+ constructor(log, kvp, executionId, startTime, data, activation, issues, queue, options = {}) {
86
+ Object.defineProperty(this, "log", {
87
+ enumerable: true,
88
+ configurable: true,
89
+ writable: true,
90
+ value: void 0
91
+ });
92
+ Object.defineProperty(this, "executionId", {
93
+ enumerable: true,
94
+ configurable: true,
95
+ writable: true,
96
+ value: void 0
97
+ });
98
+ Object.defineProperty(this, "startTime", {
99
+ enumerable: true,
100
+ configurable: true,
101
+ writable: true,
102
+ value: void 0
103
+ });
104
+ Object.defineProperty(this, "data", {
105
+ enumerable: true,
106
+ configurable: true,
107
+ writable: true,
108
+ value: void 0
109
+ });
110
+ _VanillaContext_activation.set(this, void 0);
111
+ Object.defineProperty(this, "idx", {
112
+ enumerable: true,
113
+ configurable: true,
114
+ writable: true,
115
+ value: void 0
116
+ });
117
+ Object.defineProperty(this, "kvp", {
118
+ enumerable: true,
119
+ configurable: true,
120
+ writable: true,
121
+ value: void 0
122
+ });
123
+ Object.defineProperty(this, "queue", {
124
+ enumerable: true,
125
+ configurable: true,
126
+ writable: true,
127
+ value: void 0
128
+ }); // Optional, can be used for durable workflows
129
+ _VanillaContext_issues.set(this, void 0);
130
+ Object.defineProperty(this, "options", {
131
+ enumerable: true,
132
+ configurable: true,
133
+ writable: true,
134
+ value: void 0
135
+ });
136
+ this.log = log;
137
+ this.executionId = executionId;
138
+ this.startTime = startTime;
139
+ this.data = data;
140
+ __classPrivateFieldSet(this, _VanillaContext_activation, activation, "f");
141
+ this.idx = void 0;
142
+ __classPrivateFieldSet(this, _VanillaContext_issues, issues, "f");
143
+ this.kvp = kvp;
144
+ this.options = options;
145
+ this.queue = queue;
146
+ // all methods on ContextImpl which are exposed via the Context interface need to be bound
147
+ // so that destructuring the context object doesn't break the binding of the methods to the
148
+ // correct instance.
149
+ this.openKv = this.openKv.bind(this);
150
+ this.credentials = this.credentials.bind(this);
151
+ this.start = this.start.bind(this);
152
+ this.request = this.request.bind(this);
153
+ this.createIssue = this.createIssue.bind(this);
154
+ this.destroy = this.destroy.bind(this);
155
+ this.workflowClient = this.workflowClient.bind(this);
156
+ }
157
+ get activation() {
158
+ return __classPrivateFieldGet(this, _VanillaContext_activation, "f");
159
+ }
160
+ get workflow() {
161
+ return this.options.workflow;
162
+ }
163
+ setIndex(idx) {
164
+ const next = new VanillaContext(this.log, this.kvp, this.executionId, this.startTime, this.data, __classPrivateFieldGet(this, _VanillaContext_activation, "f"), __classPrivateFieldGet(this, _VanillaContext_issues, "f"), this.queue, this.options);
165
+ next.idx = idx;
166
+ return next;
167
+ }
168
+ withData(data) {
169
+ return new VanillaContext(this.log, this.kvp, this.executionId, this.startTime, data, __classPrivateFieldGet(this, _VanillaContext_activation, "f"), __classPrivateFieldGet(this, _VanillaContext_issues, "f"), this.queue, this.options);
170
+ }
171
+ openKv(scope = ':project:') {
172
+ if (scope === ':execution:') {
173
+ return this.kvp.kv({
174
+ scope,
175
+ executionId: this.executionId,
176
+ activationId: this.activation?.id,
177
+ });
178
+ }
179
+ return this.kvp.kv({
180
+ scope,
181
+ activationId: this.activation?.id,
182
+ });
183
+ }
184
+ request() {
185
+ return this.options.request;
186
+ }
187
+ workflowClient() {
188
+ if (!this.queue) {
189
+ throw new Error('Queue is not available for this context, cannot start workflow');
190
+ }
191
+ return new WorkflowClient_js_1.WorkflowImpl(this.queue, this.executionId, this.activation);
192
+ }
193
+ async start(group, opts) {
194
+ // this makes a post request to the endpoint sending a message and schedule the workflow to run
195
+ if (!this.queue) {
196
+ throw new Error('Queue is not available for this context, cannot start workflow');
197
+ }
198
+ let payload;
199
+ if (opts.data) {
200
+ payload = btoa(JSON.stringify(opts.data));
201
+ }
202
+ else if (opts.dataRaw) {
203
+ payload = opts.dataRaw; // Assume this is already base64 encoded
204
+ }
205
+ const resp = await this.queue.submit({
206
+ workflows: [
207
+ {
208
+ group,
209
+ metadata: {
210
+ executionId: this.executionId,
211
+ activationId: this.activation?.id,
212
+ userId: this.activation?.user?.externalId,
213
+ },
214
+ payload: payload ?? btoa('{}'),
215
+ maxAttempts: opts.maxAttempts,
216
+ },
217
+ ],
218
+ });
219
+ return new AsyncWorkflow_js_1.AsyncWorkflow(this.queue, resp.workflows[0].id ?? 'unknown');
220
+ }
221
+ createIssue(issue, options) {
222
+ return __classPrivateFieldGet(this, _VanillaContext_issues, "f").createIssue({
223
+ reason: 'manual',
224
+ ...issue,
225
+ }, { deduplicate: true, ...options });
226
+ }
227
+ credentials() {
228
+ throw new Error('Credentials are not available in VanillaContext');
229
+ }
230
+ destroy(scope) {
231
+ if (scope === ':execution:') {
232
+ return this.kvp.destroy({
233
+ scope,
234
+ executionId: this.executionId,
235
+ activationId: this.activation?.id,
236
+ });
237
+ }
238
+ return this.kvp.destroy({
239
+ scope,
240
+ activationId: this.activation?.id,
241
+ });
242
+ }
243
+ [(_VanillaContext_activation = new WeakMap(), _VanillaContext_issues = new WeakMap(), Symbol.toPrimitive)]() {
244
+ return {
245
+ startTime: this.startTime,
246
+ executionId: this.executionId,
247
+ activation: this.activation,
248
+ data: this.data,
249
+ };
250
+ }
251
+ }
252
+ exports.VanillaContext = VanillaContext;
253
+ class VanillaContextProvider {
254
+ constructor(log, kvp, organisationId, environmentId, issues, queue = undefined) {
255
+ Object.defineProperty(this, "organisationId", {
256
+ enumerable: true,
257
+ configurable: true,
258
+ writable: true,
259
+ value: organisationId
260
+ });
261
+ Object.defineProperty(this, "environmentId", {
262
+ enumerable: true,
263
+ configurable: true,
264
+ writable: true,
265
+ value: environmentId
266
+ });
267
+ Object.defineProperty(this, "log", {
268
+ enumerable: true,
269
+ configurable: true,
270
+ writable: true,
271
+ value: void 0
272
+ });
273
+ Object.defineProperty(this, "kvp", {
274
+ enumerable: true,
275
+ configurable: true,
276
+ writable: true,
277
+ value: void 0
278
+ });
279
+ Object.defineProperty(this, "issues", {
280
+ enumerable: true,
281
+ configurable: true,
282
+ writable: true,
283
+ value: void 0
284
+ });
285
+ Object.defineProperty(this, "queue", {
286
+ enumerable: true,
287
+ configurable: true,
288
+ writable: true,
289
+ value: void 0
290
+ });
291
+ this.log = log;
292
+ this.kvp = kvp;
293
+ this.issues = issues;
294
+ this.queue = queue;
295
+ }
296
+ create(activation, data, options = {}) {
297
+ const executionId = (0, ulid_js_1.ulid)();
298
+ const logger = this.log.child({
299
+ executionId,
300
+ activationId: activation.id,
301
+ externalUserId: activation.user.externalId,
302
+ });
303
+ const activationImpl = new VanillaActivation(activation, this.organisationId, this.environmentId, logger);
304
+ return new VanillaContext(logger, this.kvp, executionId, new Date(), data, activationImpl, this.issues, this.queue, options);
305
+ }
306
+ createWithExecutionId(activation, data, executionId, options = {}) {
307
+ const logger = this.log.child({
308
+ executionId,
309
+ activationId: activation.id,
310
+ externalUserId: activation.user.externalId,
311
+ });
312
+ const activationImpl = new VanillaActivation(activation, this.organisationId, this.environmentId, logger);
313
+ return new VanillaContext(logger, this.kvp, executionId, new Date(), data, activationImpl, this.issues, this.queue, options);
314
+ }
315
+ destroy(_) {
316
+ return Promise.resolve();
317
+ }
318
+ }
319
+ exports.VanillaContextProvider = VanillaContextProvider;
@@ -1,5 +1,5 @@
1
1
  import { QueueAPI, Workflow } from '../interpreter/durable/Queue.js';
2
- import { ActivationImpl } from './ActivationImpl.js';
2
+ import { ActivationInterface } from '../dsl/http/types.js';
3
3
  export type WorkflowOpts = {
4
4
  maxAttempts?: number;
5
5
  data?: unknown;
@@ -17,7 +17,7 @@ export declare class WorkflowImpl implements WorkflowInterface {
17
17
  private queue;
18
18
  private executionId;
19
19
  private activation;
20
- constructor(queue: QueueAPI, executionId: string, activation: ActivationImpl);
20
+ constructor(queue: QueueAPI, executionId: string, activation: ActivationInterface);
21
21
  startWorkflow(group: string, opts: WorkflowOpts): Promise<Workflow>;
22
22
  getWorkflow(wf: Workflow): Promise<Workflow>;
23
23
  getWorkflowById(id: string): Promise<Workflow>;
@@ -1 +1 @@
1
- {"version":3,"file":"WorkflowClient.d.ts","sourceRoot":"","sources":["../../../src/src/context/WorkflowClient.ts"],"names":[],"mappings":"AAcA,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAKrD,MAAM,MAAM,YAAY,GAAG;IACvB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,IAAI,CA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CAAS;IAC5B,OAAO,CAAC,UAAU,CAAsB;gBAE5B,KAAK,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,EAAE,UAAU,EAAE,mBAAmB;IAc3E,aAAa,CAAC,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,YAAY,GAAG,OAAO,CAAC,QAAQ,CAAC;IAmBnE,WAAW,CAAC,EAAE,EAAE,QAAQ,GAAG,OAAO,CAAC,QAAQ,CAAC;IAI5C,eAAe,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,QAAQ,CAAC;IAI9C,iBAAiB,CAAC,EAAE,EAAE,QAAQ,GAAG,OAAO,CAAC,QAAQ,CAAC;IASlD,kBAAkB,CAAC,EAAE,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IA0B9D,gBAAgB,CAAC,EAAE,EAAE,QAAQ,EAAE,MAAM,EAAE,WAAW,GAAG,QAAQ,EAAE,MAAM,CAAC,EAAE,GAAG,GAAG,OAAO,CAAC,IAAI,CAAC;CAYpG"}
@@ -1,3 +1,3 @@
1
- export type { Activation, User } from './types.js';
1
+ export type { ActivationInterface, User } from './types.js';
2
2
  export type { CredentialsProvider, Token } from './versori/contextcredentials.js';
3
3
  //# sourceMappingURL=mod.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"mod.d.ts","sourceRoot":"","sources":["../../../../src/src/dsl/http/mod.ts"],"names":[],"mappings":"AAaA,YAAY,EAAE,UAAU,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AACnD,YAAY,EAAE,mBAAmB,EAAE,KAAK,EAAE,MAAM,iCAAiC,CAAC"}
1
+ {"version":3,"file":"mod.d.ts","sourceRoot":"","sources":["../../../../src/src/dsl/http/mod.ts"],"names":[],"mappings":"AAaA,YAAY,EAAE,mBAAmB,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AAC5D,YAAY,EAAE,mBAAmB,EAAE,KAAK,EAAE,MAAM,iCAAiC,CAAC"}
@@ -1,5 +1,6 @@
1
+ import { ProjectEnvironment, DynamicVariables, Connection } from '../../services/platform/mod.js';
1
2
  import { CredentialsProvider } from './versori/contextcredentials.js';
2
- export type DynamicFetcher = (activation: Activation, input: RequestInfo | URL, init?: RequestInit) => Promise<Response>;
3
+ export type DynamicFetcher = (activation: ActivationInterface, input: RequestInfo | URL, init?: RequestInit) => Promise<Response>;
3
4
  export type BaseUrlFetcher = (activationId: string) => Promise<string>;
4
5
  export interface RoundTripperFactory {
5
6
  create(connName: string): Promise<typeof fetch | undefined>;
@@ -7,7 +8,7 @@ export interface RoundTripperFactory {
7
8
  credentials(): CredentialsProvider;
8
9
  baseUrlFetcher(templateName: string): BaseUrlFetcher;
9
10
  }
10
- export declare function wrapDynamicFetcher(fetcher: DynamicFetcher, activation: Activation): typeof fetch;
11
+ export declare function wrapDynamicFetcher(fetcher: DynamicFetcher, activation: ActivationInterface): typeof fetch;
11
12
  export interface ConfigReader {
12
13
  getCnxMapping(name: string): CnxMap | undefined;
13
14
  getConnectionID(connName: string): string;
@@ -15,11 +16,11 @@ export interface ConfigReader {
15
16
  }
16
17
  export interface ConnectionProvider {
17
18
  getStaticConnection(cnxId: string): Promise<Connection | undefined>;
18
- getUserActivations(userId: string): Promise<Activation[]>;
19
+ getUserActivations(userId: string): Promise<ActivationInterface[]>;
19
20
  getActivationConnection(templateId: string, activationId: string): Promise<Connection | undefined>;
20
- getActivation(activationId: string): Promise<Activation | undefined>;
21
- getStaticActivation(): Promise<Activation | undefined>;
22
- listActivations(): Promise<Activation[]>;
21
+ getActivation(activationId: string): Promise<ActivationInterface | undefined>;
22
+ getStaticActivation(): Promise<ActivationInterface | undefined>;
23
+ listActivations(): Promise<ActivationInterface[]>;
23
24
  updateDynamicVariable(activationId: string, name: string, value: unknown): Promise<void>;
24
25
  }
25
26
  export type CronConfig = {
@@ -64,7 +65,7 @@ export type User = {
64
65
  * Activation represents a user's activation of an integration. Activations contain user-specific configuration and
65
66
  * credentials for accessing external systems. Workflows can be scoped to specific activations using predicates.
66
67
  */
67
- export interface Activation {
68
+ export interface ActivationInterface {
68
69
  /**
69
70
  * The unique identifier for this activation.
70
71
  */
@@ -73,6 +74,18 @@ export interface Activation {
73
74
  * The user who owns this activation.
74
75
  */
75
76
  user: User;
77
+ /**
78
+ * The environment this activation is associated with.
79
+ */
80
+ environment?: ProjectEnvironment;
81
+ /**
82
+ * The connections associated with this activation.
83
+ */
84
+ connections?: Array<Connection>;
85
+ /**
86
+ * Dynamic variables associated with this activation.
87
+ */
88
+ dynamicVariables?: DynamicVariables;
76
89
  /**
77
90
  * Get a dynamic variable value for this activation.
78
91
  *
@@ -88,132 +101,6 @@ export interface Activation {
88
101
  */
89
102
  setVariable(name: string, value: unknown): Promise<void>;
90
103
  }
91
- export type AuthSchemeType = 'none' | 'api-key' | 'basic-auth' | 'oauth2' | 'hmac' | 'jwt-bearer' | 'custom-function' | 'certificate' | 'oauth1';
92
- export type AuthSchemeConfig = {
93
- type: AuthSchemeType;
94
- none?: AuthSchemeConfigNone;
95
- apiKey?: AuthSchemeConfigApiKey;
96
- basicAuth?: AuthSchemeConfigBasicAuth;
97
- oauth2?: AuthSchemeConfigOAuth2;
98
- oauth1?: AuthSchemeConfigOAuth1;
99
- hmac?: AuthSchemeConfigHMAC;
100
- certificate?: AuthSchemeConfigCertificate;
101
- };
102
- type AuthSchemeConfigBase = {
103
- id: string;
104
- description: string;
105
- };
106
- export type AuthSchemeConfigNone = AuthSchemeConfigBase & {
107
- schemeType: 'none';
108
- };
109
- export type AuthSchemeConfigBasicAuth = AuthSchemeConfigBase & {
110
- schemeType: 'basic-auth';
111
- };
112
- export type AuthSchemeConfigApiKey = AuthSchemeConfigBase & {
113
- schemeType: 'api-key';
114
- in: 'query' | 'header' | 'cookie';
115
- name: string;
116
- };
117
- type OAuth2Scope = {
118
- name: string;
119
- description: string;
120
- };
121
- type OAuth2GrantAuthCode = {
122
- credentialId: string;
123
- organisationId: string;
124
- clientId: string;
125
- clientSecret: string;
126
- };
127
- type OAuth2GrantClientCredentials = Record<PropertyKey, never>;
128
- type OAuth2GrantPassword = {
129
- credentialId: string;
130
- organisationId: string;
131
- clientId: string;
132
- clientSecret: string;
133
- };
134
- type OAuth2Grant = {
135
- type: 'authorizationCode' | 'clientCredentials' | 'password';
136
- authorizationCode?: OAuth2GrantAuthCode;
137
- clientCredentials?: OAuth2GrantClientCredentials;
138
- password?: OAuth2GrantPassword;
139
- };
140
- export type AuthSchemeConfigOAuth2 = AuthSchemeConfigBase & {
141
- schemeType: 'oauth2';
142
- authorizeUrl: string;
143
- tokenUrl: string;
144
- scopes: OAuth2Scope[];
145
- defaultScopes: string[];
146
- additionalAuthorizeParams: string;
147
- additionalTokenParams: string;
148
- mltsEnabled: boolean;
149
- mltsCredentialId: string;
150
- grant: OAuth2Grant;
151
- };
152
- export type DigestInput = 'body' | 'url';
153
- export type AuthSchemeConfigHMAC = AuthSchemeConfigBase & {
154
- schemeType: 'hmac';
155
- name: string;
156
- in: 'query' | 'header' | 'cookie';
157
- algorithm: 'sha1' | 'sha256' | 'sha512';
158
- digestInputs: DigestInput[];
159
- encoding: 'hex' | 'base64' | 'base64url';
160
- };
161
- type ParameterConfig = {
162
- parameterName: string;
163
- targetName: string;
164
- location: 'LOCATION_IGNORE' | 'LOCATION_QUERY' | 'LOCATION_HEADER' | 'LOCATION_BODY' | 'LOCATION_ENDPOINT' | 'LOCAITON_HEADER_PARAMETER';
165
- usages: 'USAGE_UNKNOWN' | 'USAGE_TEMP_CREDENTIAL_ENDPOINT' | 'USAGE_TOKEN_REQUEST_ENDPOINT';
166
- required: boolean;
167
- modifiable: boolean;
168
- };
169
- type Endpoint = {
170
- url: string;
171
- additionalParamConfigs: ParameterConfig[];
172
- parameterTransmission: 'AUTH_STYLE_AUTHORIZATION_HEADER' | 'AUTH_STYLE_QUERY' | 'AUTH_STYLE_FORM';
173
- };
174
- export type AuthSchemeConfigOAuth1 = AuthSchemeConfigBase & {
175
- consumerKey: string;
176
- consumerSecret: string;
177
- schemeType: 'oauth1';
178
- tempCredentialEndpoint: Endpoint;
179
- resourceOwnerAuthorizationEndpoint: Endpoint;
180
- tokenEndpoint: Endpoint;
181
- signatureMethod: string;
182
- credentialId: string;
183
- };
184
- export type AuthSchemeConfigCertificate = AuthSchemeConfigBase & {
185
- schemeType: 'certificate';
186
- };
187
- export type Credential = {
188
- data: Record<string, string>;
189
- id: string;
190
- name: string;
191
- organisationId: string;
192
- type: string;
193
- };
194
- export type ConnectionCredential = {
195
- authSchemeConfig: AuthSchemeConfig;
196
- credential: Credential;
197
- id: string;
198
- };
199
- export type Connection = {
200
- createdAt: string;
201
- credentials: ConnectionCredential[];
202
- id: string;
203
- name: string;
204
- templateId: string;
205
- dynamic: boolean;
206
- updatedAt: string;
207
- baseUrl: string;
208
- };
209
- export type System = {
210
- documentationUrl: string;
211
- name: string;
212
- protocol: string;
213
- variablesSchema: {
214
- [key: string]: any;
215
- };
216
- };
217
104
  export type StaticCnxMap = {
218
105
  name: string;
219
106
  dynamic: false;
@@ -232,5 +119,4 @@ export type VersoriAPIError = {
232
119
  message: string;
233
120
  code: string;
234
121
  };
235
- export {};
236
122
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/src/dsl/http/types.ts"],"names":[],"mappings":"AAaA,OAAO,EAAE,mBAAmB,EAAE,MAAM,iCAAiC,CAAC;AAEtE,MAAM,MAAM,cAAc,GAAG,CACzB,UAAU,EAAE,UAAU,EACtB,KAAK,EAAE,WAAW,GAAG,GAAG,EACxB,IAAI,CAAC,EAAE,WAAW,KACjB,OAAO,CAAC,QAAQ,CAAC,CAAC;AAEvB,MAAM,MAAM,cAAc,GAAG,CAAC,YAAY,EAAE,MAAM,KAAK,OAAO,CAAC,MAAM,CAAC,CAAC;AAEvE,MAAM,WAAW,mBAAmB;IAChC,MAAM,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,OAA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,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG;IAC1B,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;CAChB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"configloader.d.ts","sourceRoot":"","sources":["../../../../../src/src/dsl/http/versori/configloader.ts"],"names":[],"mappings":"AAaA,OAAO,EAAE,MAAM,EAAE,MAAM,+BAA+B,CAAC;AACvD,OAAO,EAAE,MAAM,EAAE,YAAY,EAA+B,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAIlG;;;;;;;;GAQG;AACH,wBAAgB,kBAAkB,IAAI,gBAAgB,CAUrD;AAED,qBAAa,mBAAoB,YAAW,YAAY;IACpD,OAAO,CAAC,UAAU,CAAmB;gBAEzB,GAAG,EAAE,gBAAgB;IAIjC,MAAM,CAAC,OAAO,CAAC,GAAG,EAAE,MAAM,GAAG,mBAAmB;IAShD,aAAa,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS;IAI/C,eAAe,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM;IAczC,aAAa,CAAC,YAAY,EAAE,MAAM,GAAG,MAAM;CAa9C"}
1
+ {"version":3,"file":"configloader.d.ts","sourceRoot":"","sources":["../../../../../src/src/dsl/http/versori/configloader.ts"],"names":[],"mappings":"AAaA,OAAO,EAAE,MAAM,EAAE,MAAM,+BAA+B,CAAC;AACvD,OAAO,EAAE,MAAM,EAAE,YAAY,EAA+B,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAIlG;;;;;;;;GAQG;AACH,wBAAgB,kBAAkB,IAAI,gBAAgB,CAUrD;AAED,qBAAa,mBAAoB,YAAW,YAAY;IACpD,OAAO,CAAC,UAAU,CAAmB;gBAEzB,GAAG,EAAE,gBAAgB;IAIjC,MAAM,CAAC,OAAO,CAAC,GAAG,EAAE,MAAM,GAAG,mBAAmB;IAShD,aAAa,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS;IAO/C,eAAe,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM;IAczC,aAAa,CAAC,YAAY,EAAE,MAAM,GAAG,MAAM;CAa9C"}
@@ -53,6 +53,9 @@ class VersoriConfigReader {
53
53
  return new VersoriConfigReader(versoriCfg);
54
54
  }
55
55
  getCnxMapping(name) {
56
+ if (this.versoriCfg.mappings === null) {
57
+ return undefined;
58
+ }
56
59
  return this.versoriCfg.mappings.find((c) => c.name.toLowerCase() === name.toLowerCase());
57
60
  }
58
61
  getConnectionID(connName) {
@@ -1,4 +1,4 @@
1
- import { PlatformApi } from '@versori/run/services/platform';
1
+ import { PlatformApi } from '../../../services/platform/mod.js';
2
2
  import { NextFunction, Request, Response } from 'express';
3
3
  import { ConnectionFactory } from '../../../connection/types.js';
4
4
  import { Logger } from '../../../observability/logging/Logger.js';
@@ -1 +1 @@
1
- {"version":3,"file":"webhookmiddleware.d.ts","sourceRoot":"","sources":["../../../../../src/src/dsl/http/versori/webhookmiddleware.ts"],"names":[],"mappings":"AAaA,OAAO,EAAc,WAAW,EAAE,MAAM,gCAAgC,CAAC;AACzE,OAAO,EAAE,YAAY,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAE1D,OAAO,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;AACjE,OAAO,EAAE,MAAM,EAAE,MAAM,0CAA0C,CAAC;AAClE,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAE3C,MAAM,MAAM,2BAA2B,GAAG;IACtC,EAAE,EAAE,MAAM,CAAC;IACX,cAAc,EAAE,MAAM,CAAC;IACvB,aAAa,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,WAAW,CAAC;IACzB,UAAU,EAAE,iBAAiB,CAAC;IAC9B,SAAS,EAAE,YAAY,CAAC;IACxB,GAAG,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,wBAAgB,6BAA6B,CACzC,IAAI,E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AAE,QAAQ,EAAE,IAAI,EAAE,YAAY,KAAK,OAAO,CAAC,IAAI,CAAC,CA4GpE;AAED,wBAAgB,mCAAmC,CAC/C,IAAI,EAAE,2BAA2B,GAClC,CAAC,GAAG,EAAE,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,IAAI,EAAE,YAAY,KAAK,OAAO,CAAC,IAAI,CAAC,CAkGpE;AAED,wBAAgB,oCAAoC,CAChD,IAAI,EAAE,2BAA2B,GAClC,CAAC,GAAG,EAAE,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,IAAI,EAAE,YAAY,KAAK,OAAO,CAAC,IAAI,CAAC,CAqFpE"}
@@ -1,12 +1,12 @@
1
1
  import type * as express from 'express';
2
2
  import { FetchLike } from '../../connection/types.js';
3
- import { ActivationImpl } from '../../context/ActivationImpl.js';
4
3
  import { AsyncWorkflow } from '../../context/AsyncWorkflow.js';
5
- import { Context, ContextImpl, CreateIssue } from '../../context/Context.js';
4
+ import { Context, CreateIssue } from '../../context/Context.js';
6
5
  import { WorkflowInterface, WorkflowOpts } from '../../context/WorkflowClient.js';
7
6
  import { Issue } from '../../issues/Issues.js';
8
7
  import { KeyValue, KeyValueScope } from '../../kv/KeyValue.js';
9
8
  import { Logger } from '../../observability/logging/Logger.js';
9
+ import { ActivationInterface } from '../http/types.js';
10
10
  import { CredentialsProvider } from '../http/versori/contextcredentials.js';
11
11
  import { ArrayTask, Task, Taskable, TaskType } from '../Task.js';
12
12
  /**
@@ -94,11 +94,11 @@ export declare class HttpContextImpl<D, PageParams> implements HttpContext<D, Pa
94
94
  pageParams?: PageParams;
95
95
  readonly fetch: FetchLike;
96
96
  readonly baseUrl: Promise<string>;
97
- constructor(ctx: ContextImpl<D, any>, connectionVars: Record<string, any>, fetch: FetchLike, baseUrl: string, pageParams?: PageParams);
97
+ constructor(ctx: Context<D>, connectionVars: Record<string, any>, fetch: FetchLike, baseUrl: string, pageParams?: PageParams);
98
98
  get log(): Logger;
99
99
  get executionId(): string;
100
100
  get startTime(): Date;
101
- get activation(): ActivationImpl;
101
+ get activation(): ActivationInterface;
102
102
  get data(): D;
103
103
  openKv(scope?: KeyValueScope): KeyValue;
104
104
  destroy(scope: KeyValueScope): Promise<void>;