@versori/run 0.2.31 → 0.3.0-beta.10

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 (455) hide show
  1. package/{script/deps/jsr.io/@std/fs/1.0.19 → esm/deps/jsr.io/@std/fs/1.0.20}/exists.d.ts.map +1 -1
  2. package/esm/deps/jsr.io/@std/log/0.224.14/rotating_file_handler.js +1 -1
  3. package/esm/src/connection/DirectConnectionFactory.d.ts +29 -0
  4. package/esm/src/connection/DirectConnectionFactory.d.ts.map +1 -0
  5. package/esm/src/connection/DirectConnectionFactory.js +82 -0
  6. package/esm/src/connection/DynamicFetchFactory.d.ts +30 -0
  7. package/esm/src/connection/DynamicFetchFactory.d.ts.map +1 -0
  8. package/esm/src/connection/DynamicFetchFactory.js +113 -0
  9. package/esm/src/connection/StaticFetchFactory.d.ts +11 -0
  10. package/esm/src/connection/StaticFetchFactory.d.ts.map +1 -0
  11. package/esm/src/connection/StaticFetchFactory.js +35 -0
  12. package/esm/src/connection/internal/CredentialHolder.d.ts +11 -0
  13. package/esm/src/connection/internal/CredentialHolder.d.ts.map +1 -0
  14. package/esm/src/connection/internal/CredentialHolder.js +66 -0
  15. package/esm/src/connection/internal/FetchBuilder.d.ts +15 -0
  16. package/esm/src/connection/internal/FetchBuilder.d.ts.map +1 -0
  17. package/esm/src/connection/internal/FetchBuilder.js +89 -0
  18. package/esm/src/connection/internal/HttpClientFactory.d.ts +14 -0
  19. package/esm/src/connection/internal/HttpClientFactory.d.ts.map +1 -0
  20. package/esm/src/connection/internal/HttpClientFactory.js +42 -0
  21. package/esm/src/connection/internal/InboundConnectionFactory.d.ts +19 -0
  22. package/esm/src/connection/internal/InboundConnectionFactory.d.ts.map +1 -0
  23. package/esm/src/connection/internal/InboundConnectionFactory.js +390 -0
  24. package/esm/src/connection/internal/OutboundConnectionFactory.d.ts +31 -0
  25. package/esm/src/connection/internal/OutboundConnectionFactory.d.ts.map +1 -0
  26. package/esm/src/connection/internal/OutboundConnectionFactory.js +447 -0
  27. package/esm/src/connection/types.d.ts +32 -0
  28. package/esm/src/connection/types.d.ts.map +1 -0
  29. package/esm/src/connection/types.js +1 -0
  30. package/esm/src/context/ActivationImpl.d.ts +18 -0
  31. package/esm/src/context/ActivationImpl.d.ts.map +1 -0
  32. package/esm/src/context/ActivationImpl.js +82 -0
  33. package/esm/src/context/AsyncWorkflow.js +1 -1
  34. package/esm/src/context/Context.d.ts +10 -13
  35. package/esm/src/context/Context.d.ts.map +1 -1
  36. package/esm/src/context/Context.js +21 -19
  37. package/esm/src/context/ContextProvider.d.ts +9 -3
  38. package/esm/src/context/ContextProvider.d.ts.map +1 -1
  39. package/esm/src/context/ContextProvider.js +31 -10
  40. package/esm/src/context/WorkflowClient.d.ts +29 -0
  41. package/esm/src/context/WorkflowClient.d.ts.map +1 -0
  42. package/esm/src/context/WorkflowClient.js +95 -0
  43. package/esm/src/dsl/http/default.d.ts.map +1 -1
  44. package/esm/src/dsl/http/default.js +2 -2
  45. package/esm/src/dsl/http/types.d.ts +9 -4
  46. package/esm/src/dsl/http/types.d.ts.map +1 -1
  47. package/esm/src/dsl/http/versori/configloader.d.ts.map +1 -1
  48. package/esm/src/dsl/http/versori/configloader.js +3 -1
  49. package/esm/src/dsl/http/versori/constants.d.ts.map +1 -1
  50. package/esm/src/dsl/http/versori/constants.js +1 -0
  51. package/esm/src/dsl/http/versori/contextcredentials.d.ts.map +1 -1
  52. package/esm/src/dsl/http/versori/proxyroundtripper.d.ts +5 -3
  53. package/esm/src/dsl/http/versori/proxyroundtripper.d.ts.map +1 -1
  54. package/esm/src/dsl/http/versori/proxyroundtripper.js +31 -8
  55. package/esm/src/dsl/http/versori/webhookmiddleware.d.ts +8 -5
  56. package/esm/src/dsl/http/versori/webhookmiddleware.d.ts.map +1 -1
  57. package/esm/src/dsl/http/versori/webhookmiddleware.js +114 -115
  58. package/esm/src/dsl/tasks/HttpTask.d.ts +8 -6
  59. package/esm/src/dsl/tasks/HttpTask.d.ts.map +1 -1
  60. package/esm/src/dsl/tasks/HttpTask.js +22 -22
  61. package/esm/src/dsl/triggers/DurableTrigger.d.ts +0 -1
  62. package/esm/src/dsl/triggers/DurableTrigger.d.ts.map +1 -1
  63. package/esm/src/internal/InternalAuth.d.ts +14 -0
  64. package/esm/src/internal/InternalAuth.d.ts.map +1 -0
  65. package/esm/src/internal/InternalAuth.js +74 -0
  66. package/esm/src/internal/constants.d.ts +20 -0
  67. package/esm/src/internal/constants.d.ts.map +1 -0
  68. package/esm/src/internal/constants.js +24 -0
  69. package/esm/src/interpreter/durable/DurableInterpreter.d.ts +14 -5
  70. package/esm/src/interpreter/durable/DurableInterpreter.d.ts.map +1 -1
  71. package/esm/src/interpreter/durable/DurableInterpreter.js +22 -38
  72. package/esm/src/interpreter/durable/ObservableCompiler.d.ts +6 -3
  73. package/esm/src/interpreter/durable/ObservableCompiler.d.ts.map +1 -1
  74. package/esm/src/interpreter/durable/Queue.d.ts +24 -16
  75. package/esm/src/interpreter/durable/Queue.d.ts.map +1 -1
  76. package/esm/src/interpreter/durable/Queue.js +3 -4
  77. package/esm/src/interpreter/durable/compilers/catch.js +2 -2
  78. package/esm/src/interpreter/durable/compilers/durableworkflow.d.ts.map +1 -1
  79. package/esm/src/interpreter/durable/compilers/durableworkflow.js +29 -20
  80. package/esm/src/interpreter/durable/compilers/http.d.ts.map +1 -1
  81. package/esm/src/interpreter/durable/compilers/http.js +26 -9
  82. package/esm/src/interpreter/durable/compilers/schedule.d.ts.map +1 -1
  83. package/esm/src/interpreter/durable/compilers/schedule.js +41 -18
  84. package/esm/src/interpreter/durable/compilers/webhook.d.ts.map +1 -1
  85. package/esm/src/interpreter/durable/compilers/webhook.js +30 -33
  86. package/esm/src/interpreter/memory/MemoryInterpreter.d.ts +4 -4
  87. package/esm/src/interpreter/memory/MemoryInterpreter.d.ts.map +1 -1
  88. package/esm/src/interpreter/memory/MemoryInterpreter.js +15 -25
  89. package/esm/src/interpreter/memory/ObservableCompiler.d.ts +6 -3
  90. package/esm/src/interpreter/memory/ObservableCompiler.d.ts.map +1 -1
  91. package/esm/src/interpreter/memory/compilers/catch.js +2 -2
  92. package/esm/src/interpreter/memory/compilers/http.d.ts.map +1 -1
  93. package/esm/src/interpreter/memory/compilers/http.js +26 -9
  94. package/esm/src/interpreter/memory/compilers/schedule.d.ts.map +1 -1
  95. package/esm/src/interpreter/memory/compilers/schedule.js +34 -18
  96. package/esm/src/interpreter/memory/compilers/webhook.d.ts.map +1 -1
  97. package/esm/src/interpreter/memory/compilers/webhook.js +31 -34
  98. package/esm/src/kv/sdk/SDKKeyValue.d.ts.map +1 -1
  99. package/esm/src/kv/sdk/SDKKeyValue.js +7 -1
  100. package/esm/src/services/credentials/credential-v1alpha1.d.ts +4 -0
  101. package/esm/src/services/credentials/credential-v1alpha1.d.ts.map +1 -0
  102. package/esm/src/services/credentials/credential-v1alpha1.js +3 -0
  103. package/esm/src/services/credentials/generated/versori/credential/oauth1/v1/authorization_metadata_pb.d.ts +119 -0
  104. package/esm/src/services/credentials/generated/versori/credential/oauth1/v1/authorization_metadata_pb.d.ts.map +1 -0
  105. package/esm/src/services/credentials/generated/versori/credential/oauth1/v1/authorization_metadata_pb.js +67 -0
  106. package/esm/src/services/credentials/generated/versori/credential/oauth1/v1/authorization_service_pb.d.ts +245 -0
  107. package/esm/src/services/credentials/generated/versori/credential/oauth1/v1/authorization_service_pb.d.ts.map +1 -0
  108. package/esm/src/services/credentials/generated/versori/credential/oauth1/v1/authorization_service_pb.js +44 -0
  109. package/esm/src/services/credentials/generated/versori/credential/oauth2/v1/token_pb.d.ts +38 -0
  110. package/esm/src/services/credentials/generated/versori/credential/oauth2/v1/token_pb.d.ts.map +1 -0
  111. package/esm/src/{dsl/http → services/credentials/generated}/versori/credential/oauth2/v1/token_pb.js +1 -1
  112. package/esm/src/services/credentials/generated/versori/credential/oauth2/v1/token_service_pb.d.ts +471 -0
  113. package/esm/src/services/credentials/generated/versori/credential/oauth2/v1/token_service_pb.d.ts.map +1 -0
  114. package/esm/src/{dsl/http → services/credentials/generated}/versori/credential/oauth2/v1/token_service_pb.js +1 -1
  115. package/esm/src/services/credentials/generated/versori/credential/tokens/v1/token_pb.d.ts +38 -0
  116. package/esm/src/services/credentials/generated/versori/credential/tokens/v1/token_pb.d.ts.map +1 -0
  117. package/esm/src/{dsl/http → services/credentials/generated}/versori/credential/tokens/v1/token_pb.js +1 -1
  118. package/esm/src/services/credentials/generated/versori/credential/tokens/v1/token_service_pb.d.ts +128 -0
  119. package/esm/src/services/credentials/generated/versori/credential/tokens/v1/token_service_pb.d.ts.map +1 -0
  120. package/esm/src/{dsl/http → services/credentials/generated}/versori/credential/tokens/v1/token_service_pb.js +1 -1
  121. package/esm/src/services/credentials/generated/versori/credential/v1alpha1/common_pb.d.ts +90 -0
  122. package/esm/src/services/credentials/generated/versori/credential/v1alpha1/common_pb.d.ts.map +1 -0
  123. package/esm/src/{dsl/http → services/credentials/generated}/versori/credential/v1alpha1/common_pb.js +16 -6
  124. package/esm/src/services/credentials/generated/versori/credential/v1alpha1/credential_pb.d.ts +1468 -0
  125. package/esm/src/services/credentials/generated/versori/credential/v1alpha1/credential_pb.d.ts.map +1 -0
  126. package/esm/src/services/credentials/generated/versori/credential/v1alpha1/credential_pb.js +534 -0
  127. package/esm/src/services/credentials/generated/versori/credential/v1alpha1/credential_service_pb.d.ts +390 -0
  128. package/esm/src/services/credentials/generated/versori/credential/v1alpha1/credential_service_pb.d.ts.map +1 -0
  129. package/esm/src/{dsl/http → services/credentials/generated}/versori/credential/v1alpha1/credential_service_pb.js +1 -1
  130. package/esm/src/services/credentials/isTokenValid.d.ts +3 -0
  131. package/esm/src/services/credentials/isTokenValid.d.ts.map +1 -0
  132. package/esm/src/services/credentials/isTokenValid.js +23 -0
  133. package/esm/src/services/credentials/mod.d.ts +5 -0
  134. package/esm/src/services/credentials/mod.d.ts.map +1 -0
  135. package/esm/src/services/credentials/mod.js +4 -0
  136. package/esm/src/services/credentials/oauth1-v1.d.ts +3 -0
  137. package/esm/src/services/credentials/oauth1-v1.d.ts.map +1 -0
  138. package/esm/src/services/credentials/oauth1-v1.js +2 -0
  139. package/esm/src/services/credentials/oauth2-v1.d.ts +3 -0
  140. package/esm/src/services/credentials/oauth2-v1.d.ts.map +1 -0
  141. package/esm/src/services/credentials/oauth2-v1.js +2 -0
  142. package/esm/src/services/credentials/tokens-v1.d.ts +3 -0
  143. package/esm/src/services/credentials/tokens-v1.d.ts.map +1 -0
  144. package/esm/src/services/credentials/tokens-v1.js +2 -0
  145. package/esm/src/services/platform/PlatformApi.d.ts +7 -0
  146. package/esm/src/services/platform/PlatformApi.d.ts.map +1 -0
  147. package/esm/src/services/platform/PlatformApi.js +25 -0
  148. package/esm/src/services/platform/generated/client/client.gen.d.ts +3 -0
  149. package/esm/src/services/platform/generated/client/client.gen.d.ts.map +1 -0
  150. package/esm/src/services/platform/generated/client/client.gen.js +176 -0
  151. package/esm/src/services/platform/generated/client/index.d.ts +8 -0
  152. package/esm/src/services/platform/generated/client/index.d.ts.map +1 -0
  153. package/esm/src/services/platform/generated/client/index.js +5 -0
  154. package/esm/src/services/platform/generated/client/types.gen.d.ts +125 -0
  155. package/esm/src/services/platform/generated/client/types.gen.d.ts.map +1 -0
  156. package/esm/src/services/platform/generated/client/types.gen.js +2 -0
  157. package/esm/src/services/platform/generated/client/utils.gen.d.ts +39 -0
  158. package/esm/src/services/platform/generated/client/utils.gen.d.ts.map +1 -0
  159. package/esm/src/services/platform/generated/client/utils.gen.js +234 -0
  160. package/esm/src/services/platform/generated/client.gen.d.ts +13 -0
  161. package/esm/src/services/platform/generated/client.gen.d.ts.map +1 -0
  162. package/esm/src/services/platform/generated/client.gen.js +5 -0
  163. package/esm/src/services/platform/generated/core/auth.gen.d.ts +19 -0
  164. package/esm/src/services/platform/generated/core/auth.gen.d.ts.map +1 -0
  165. package/esm/src/services/platform/generated/core/auth.gen.js +14 -0
  166. package/esm/src/services/platform/generated/core/bodySerializer.gen.d.ts +18 -0
  167. package/esm/src/services/platform/generated/core/bodySerializer.gen.d.ts.map +1 -0
  168. package/esm/src/services/platform/generated/core/bodySerializer.gen.js +57 -0
  169. package/esm/src/services/platform/generated/core/params.gen.d.ts +34 -0
  170. package/esm/src/services/platform/generated/core/params.gen.d.ts.map +1 -0
  171. package/esm/src/services/platform/generated/core/params.gen.js +88 -0
  172. package/esm/src/services/platform/generated/core/pathSerializer.gen.d.ts +34 -0
  173. package/esm/src/services/platform/generated/core/pathSerializer.gen.d.ts.map +1 -0
  174. package/esm/src/services/platform/generated/core/pathSerializer.gen.js +114 -0
  175. package/esm/src/services/platform/generated/core/serverSentEvents.gen.d.ts +60 -0
  176. package/esm/src/services/platform/generated/core/serverSentEvents.gen.d.ts.map +1 -0
  177. package/esm/src/services/platform/generated/core/serverSentEvents.gen.js +121 -0
  178. package/esm/src/services/platform/generated/core/types.gen.d.ts +79 -0
  179. package/esm/src/services/platform/generated/core/types.gen.d.ts.map +1 -0
  180. package/esm/src/services/platform/generated/core/types.gen.js +2 -0
  181. package/esm/src/services/platform/generated/core/utils.gen.d.ts +15 -0
  182. package/esm/src/services/platform/generated/core/utils.gen.d.ts.map +1 -0
  183. package/esm/src/services/platform/generated/core/utils.gen.js +69 -0
  184. package/esm/src/services/platform/generated/index.d.ts +3 -0
  185. package/esm/src/services/platform/generated/index.d.ts.map +1 -0
  186. package/esm/src/services/platform/generated/index.js +3 -0
  187. package/esm/src/services/platform/generated/sdk.gen.d.ts +494 -0
  188. package/esm/src/services/platform/generated/sdk.gen.d.ts.map +1 -0
  189. package/esm/src/services/platform/generated/sdk.gen.js +1908 -0
  190. package/esm/src/services/platform/generated/types.gen.d.ts +3798 -0
  191. package/esm/src/services/platform/generated/types.gen.d.ts.map +1 -0
  192. package/esm/src/services/platform/generated/types.gen.js +2 -0
  193. package/esm/src/services/platform/mod.d.ts +5 -0
  194. package/esm/src/services/platform/mod.d.ts.map +1 -0
  195. package/esm/src/services/platform/mod.js +2 -0
  196. package/package.json +4 -4
  197. package/{esm/deps/jsr.io/@std/fs/1.0.19 → script/deps/jsr.io/@std/fs/1.0.20}/exists.d.ts.map +1 -1
  198. package/script/deps/jsr.io/@std/log/0.224.14/rotating_file_handler.js +1 -1
  199. package/script/src/connection/DirectConnectionFactory.d.ts +29 -0
  200. package/script/src/connection/DirectConnectionFactory.d.ts.map +1 -0
  201. package/script/src/connection/DirectConnectionFactory.js +86 -0
  202. package/script/src/connection/DynamicFetchFactory.d.ts +30 -0
  203. package/script/src/connection/DynamicFetchFactory.d.ts.map +1 -0
  204. package/script/src/connection/DynamicFetchFactory.js +117 -0
  205. package/script/src/connection/StaticFetchFactory.d.ts +11 -0
  206. package/script/src/connection/StaticFetchFactory.d.ts.map +1 -0
  207. package/script/src/connection/StaticFetchFactory.js +39 -0
  208. package/script/src/connection/internal/CredentialHolder.d.ts +11 -0
  209. package/script/src/connection/internal/CredentialHolder.d.ts.map +1 -0
  210. package/script/src/connection/internal/CredentialHolder.js +71 -0
  211. package/script/src/connection/internal/FetchBuilder.d.ts +15 -0
  212. package/script/src/connection/internal/FetchBuilder.d.ts.map +1 -0
  213. package/script/src/connection/internal/FetchBuilder.js +93 -0
  214. package/script/src/connection/internal/HttpClientFactory.d.ts +14 -0
  215. package/script/src/connection/internal/HttpClientFactory.d.ts.map +1 -0
  216. package/script/src/connection/internal/HttpClientFactory.js +46 -0
  217. package/script/src/connection/internal/InboundConnectionFactory.d.ts +19 -0
  218. package/script/src/connection/internal/InboundConnectionFactory.d.ts.map +1 -0
  219. package/script/src/connection/internal/InboundConnectionFactory.js +394 -0
  220. package/script/src/connection/internal/OutboundConnectionFactory.d.ts +31 -0
  221. package/script/src/connection/internal/OutboundConnectionFactory.d.ts.map +1 -0
  222. package/script/src/connection/internal/OutboundConnectionFactory.js +454 -0
  223. package/script/src/connection/types.d.ts +32 -0
  224. package/script/src/connection/types.d.ts.map +1 -0
  225. package/script/src/connection/types.js +2 -0
  226. package/script/src/context/ActivationImpl.d.ts +18 -0
  227. package/script/src/context/ActivationImpl.d.ts.map +1 -0
  228. package/script/src/context/ActivationImpl.js +86 -0
  229. package/script/src/context/AsyncWorkflow.js +1 -1
  230. package/script/src/context/Context.d.ts +10 -13
  231. package/script/src/context/Context.d.ts.map +1 -1
  232. package/script/src/context/Context.js +21 -19
  233. package/script/src/context/ContextProvider.d.ts +9 -3
  234. package/script/src/context/ContextProvider.d.ts.map +1 -1
  235. package/script/src/context/ContextProvider.js +31 -10
  236. package/script/src/context/WorkflowClient.d.ts +29 -0
  237. package/script/src/context/WorkflowClient.d.ts.map +1 -0
  238. package/script/src/context/WorkflowClient.js +99 -0
  239. package/script/src/dsl/http/default.d.ts.map +1 -1
  240. package/script/src/dsl/http/default.js +2 -2
  241. package/script/src/dsl/http/types.d.ts +9 -4
  242. package/script/src/dsl/http/types.d.ts.map +1 -1
  243. package/script/src/dsl/http/versori/configloader.d.ts.map +1 -1
  244. package/script/src/dsl/http/versori/configloader.js +3 -1
  245. package/script/src/dsl/http/versori/constants.d.ts.map +1 -1
  246. package/script/src/dsl/http/versori/constants.js +1 -0
  247. package/script/src/dsl/http/versori/contextcredentials.d.ts.map +1 -1
  248. package/script/src/dsl/http/versori/proxyroundtripper.d.ts +5 -3
  249. package/script/src/dsl/http/versori/proxyroundtripper.d.ts.map +1 -1
  250. package/script/src/dsl/http/versori/proxyroundtripper.js +31 -8
  251. package/script/src/dsl/http/versori/webhookmiddleware.d.ts +8 -5
  252. package/script/src/dsl/http/versori/webhookmiddleware.d.ts.map +1 -1
  253. package/script/src/dsl/http/versori/webhookmiddleware.js +114 -115
  254. package/script/src/dsl/tasks/HttpTask.d.ts +8 -6
  255. package/script/src/dsl/tasks/HttpTask.d.ts.map +1 -1
  256. package/script/src/dsl/tasks/HttpTask.js +22 -22
  257. package/script/src/dsl/triggers/DurableTrigger.d.ts +0 -1
  258. package/script/src/dsl/triggers/DurableTrigger.d.ts.map +1 -1
  259. package/script/src/internal/InternalAuth.d.ts +14 -0
  260. package/script/src/internal/InternalAuth.d.ts.map +1 -0
  261. package/script/src/internal/InternalAuth.js +78 -0
  262. package/script/src/internal/constants.d.ts +20 -0
  263. package/script/src/internal/constants.d.ts.map +1 -0
  264. package/script/src/internal/constants.js +27 -0
  265. package/script/src/interpreter/durable/DurableInterpreter.d.ts +14 -5
  266. package/script/src/interpreter/durable/DurableInterpreter.d.ts.map +1 -1
  267. package/script/src/interpreter/durable/DurableInterpreter.js +21 -37
  268. package/script/src/interpreter/durable/ObservableCompiler.d.ts +6 -3
  269. package/script/src/interpreter/durable/ObservableCompiler.d.ts.map +1 -1
  270. package/script/src/interpreter/durable/Queue.d.ts +24 -16
  271. package/script/src/interpreter/durable/Queue.d.ts.map +1 -1
  272. package/script/src/interpreter/durable/Queue.js +3 -4
  273. package/script/src/interpreter/durable/compilers/catch.js +2 -2
  274. package/script/src/interpreter/durable/compilers/durableworkflow.d.ts.map +1 -1
  275. package/script/src/interpreter/durable/compilers/durableworkflow.js +29 -20
  276. package/script/src/interpreter/durable/compilers/http.d.ts.map +1 -1
  277. package/script/src/interpreter/durable/compilers/http.js +26 -9
  278. package/script/src/interpreter/durable/compilers/schedule.d.ts.map +1 -1
  279. package/script/src/interpreter/durable/compilers/schedule.js +41 -18
  280. package/script/src/interpreter/durable/compilers/webhook.d.ts.map +1 -1
  281. package/script/src/interpreter/durable/compilers/webhook.js +30 -33
  282. package/script/src/interpreter/memory/MemoryInterpreter.d.ts +4 -4
  283. package/script/src/interpreter/memory/MemoryInterpreter.d.ts.map +1 -1
  284. package/script/src/interpreter/memory/MemoryInterpreter.js +15 -25
  285. package/script/src/interpreter/memory/ObservableCompiler.d.ts +6 -3
  286. package/script/src/interpreter/memory/ObservableCompiler.d.ts.map +1 -1
  287. package/script/src/interpreter/memory/compilers/catch.js +2 -2
  288. package/script/src/interpreter/memory/compilers/http.d.ts.map +1 -1
  289. package/script/src/interpreter/memory/compilers/http.js +26 -9
  290. package/script/src/interpreter/memory/compilers/schedule.d.ts.map +1 -1
  291. package/script/src/interpreter/memory/compilers/schedule.js +34 -18
  292. package/script/src/interpreter/memory/compilers/webhook.d.ts.map +1 -1
  293. package/script/src/interpreter/memory/compilers/webhook.js +31 -34
  294. package/script/src/kv/sdk/SDKKeyValue.d.ts.map +1 -1
  295. package/script/src/kv/sdk/SDKKeyValue.js +7 -1
  296. package/script/src/services/credentials/credential-v1alpha1.d.ts +4 -0
  297. package/script/src/services/credentials/credential-v1alpha1.d.ts.map +1 -0
  298. package/script/src/services/credentials/credential-v1alpha1.js +19 -0
  299. package/script/src/services/credentials/generated/versori/credential/oauth1/v1/authorization_metadata_pb.d.ts +119 -0
  300. package/script/src/services/credentials/generated/versori/credential/oauth1/v1/authorization_metadata_pb.d.ts.map +1 -0
  301. package/script/src/services/credentials/generated/versori/credential/oauth1/v1/authorization_metadata_pb.js +70 -0
  302. package/script/src/services/credentials/generated/versori/credential/oauth1/v1/authorization_service_pb.d.ts +245 -0
  303. package/script/src/services/credentials/generated/versori/credential/oauth1/v1/authorization_service_pb.d.ts.map +1 -0
  304. package/script/src/services/credentials/generated/versori/credential/oauth1/v1/authorization_service_pb.js +47 -0
  305. package/script/src/services/credentials/generated/versori/credential/oauth2/v1/token_pb.d.ts +38 -0
  306. package/script/src/services/credentials/generated/versori/credential/oauth2/v1/token_pb.d.ts.map +1 -0
  307. package/script/src/{dsl/http → services/credentials/generated}/versori/credential/oauth2/v1/token_pb.js +1 -1
  308. package/script/src/services/credentials/generated/versori/credential/oauth2/v1/token_service_pb.d.ts +471 -0
  309. package/script/src/services/credentials/generated/versori/credential/oauth2/v1/token_service_pb.d.ts.map +1 -0
  310. package/script/src/{dsl/http → services/credentials/generated}/versori/credential/oauth2/v1/token_service_pb.js +1 -1
  311. package/script/src/services/credentials/generated/versori/credential/tokens/v1/token_pb.d.ts +38 -0
  312. package/script/src/services/credentials/generated/versori/credential/tokens/v1/token_pb.d.ts.map +1 -0
  313. package/script/src/{dsl/http → services/credentials/generated}/versori/credential/tokens/v1/token_pb.js +1 -1
  314. package/script/src/services/credentials/generated/versori/credential/tokens/v1/token_service_pb.d.ts +128 -0
  315. package/script/src/services/credentials/generated/versori/credential/tokens/v1/token_service_pb.d.ts.map +1 -0
  316. package/script/src/{dsl/http → services/credentials/generated}/versori/credential/tokens/v1/token_service_pb.js +1 -1
  317. package/script/src/services/credentials/generated/versori/credential/v1alpha1/common_pb.d.ts +90 -0
  318. package/script/src/services/credentials/generated/versori/credential/v1alpha1/common_pb.d.ts.map +1 -0
  319. package/script/src/{dsl/http → services/credentials/generated}/versori/credential/v1alpha1/common_pb.js +16 -6
  320. package/script/src/services/credentials/generated/versori/credential/v1alpha1/credential_pb.d.ts +1468 -0
  321. package/script/src/services/credentials/generated/versori/credential/v1alpha1/credential_pb.d.ts.map +1 -0
  322. package/script/src/services/credentials/generated/versori/credential/v1alpha1/credential_pb.js +538 -0
  323. package/script/src/services/credentials/generated/versori/credential/v1alpha1/credential_service_pb.d.ts +390 -0
  324. package/script/src/services/credentials/generated/versori/credential/v1alpha1/credential_service_pb.d.ts.map +1 -0
  325. package/script/src/{dsl/http → services/credentials/generated}/versori/credential/v1alpha1/credential_service_pb.js +1 -1
  326. package/script/src/services/credentials/isTokenValid.d.ts +3 -0
  327. package/script/src/services/credentials/isTokenValid.d.ts.map +1 -0
  328. package/script/src/services/credentials/isTokenValid.js +26 -0
  329. package/script/src/services/credentials/mod.d.ts +5 -0
  330. package/script/src/services/credentials/mod.d.ts.map +1 -0
  331. package/script/src/services/credentials/mod.js +30 -0
  332. package/script/src/services/credentials/oauth1-v1.d.ts +3 -0
  333. package/script/src/services/credentials/oauth1-v1.d.ts.map +1 -0
  334. package/script/src/services/credentials/oauth1-v1.js +18 -0
  335. package/script/src/services/credentials/oauth2-v1.d.ts +3 -0
  336. package/script/src/services/credentials/oauth2-v1.d.ts.map +1 -0
  337. package/script/src/services/credentials/oauth2-v1.js +18 -0
  338. package/script/src/services/credentials/tokens-v1.d.ts +3 -0
  339. package/script/src/services/credentials/tokens-v1.d.ts.map +1 -0
  340. package/script/src/services/credentials/tokens-v1.js +18 -0
  341. package/script/src/services/platform/PlatformApi.d.ts +7 -0
  342. package/script/src/services/platform/PlatformApi.d.ts.map +1 -0
  343. package/script/src/services/platform/PlatformApi.js +52 -0
  344. package/script/src/services/platform/generated/client/client.gen.d.ts +3 -0
  345. package/script/src/services/platform/generated/client/client.gen.d.ts.map +1 -0
  346. package/script/src/services/platform/generated/client/client.gen.js +180 -0
  347. package/script/src/services/platform/generated/client/index.d.ts +8 -0
  348. package/script/src/services/platform/generated/client/index.d.ts.map +1 -0
  349. package/script/src/services/platform/generated/client/index.js +15 -0
  350. package/script/src/services/platform/generated/client/types.gen.d.ts +125 -0
  351. package/script/src/services/platform/generated/client/types.gen.d.ts.map +1 -0
  352. package/script/src/services/platform/generated/client/types.gen.js +3 -0
  353. package/script/src/services/platform/generated/client/utils.gen.d.ts +39 -0
  354. package/script/src/services/platform/generated/client/utils.gen.d.ts.map +1 -0
  355. package/script/src/services/platform/generated/client/utils.gen.js +245 -0
  356. package/script/src/services/platform/generated/client.gen.d.ts +13 -0
  357. package/script/src/services/platform/generated/client.gen.d.ts.map +1 -0
  358. package/script/src/services/platform/generated/client.gen.js +8 -0
  359. package/script/src/services/platform/generated/core/auth.gen.d.ts +19 -0
  360. package/script/src/services/platform/generated/core/auth.gen.d.ts.map +1 -0
  361. package/script/src/services/platform/generated/core/auth.gen.js +18 -0
  362. package/script/src/services/platform/generated/core/bodySerializer.gen.d.ts +18 -0
  363. package/script/src/services/platform/generated/core/bodySerializer.gen.d.ts.map +1 -0
  364. package/script/src/services/platform/generated/core/bodySerializer.gen.js +60 -0
  365. package/script/src/services/platform/generated/core/params.gen.d.ts +34 -0
  366. package/script/src/services/platform/generated/core/params.gen.d.ts.map +1 -0
  367. package/script/src/services/platform/generated/core/params.gen.js +92 -0
  368. package/script/src/services/platform/generated/core/pathSerializer.gen.d.ts +34 -0
  369. package/script/src/services/platform/generated/core/pathSerializer.gen.d.ts.map +1 -0
  370. package/script/src/services/platform/generated/core/pathSerializer.gen.js +123 -0
  371. package/script/src/services/platform/generated/core/serverSentEvents.gen.d.ts +60 -0
  372. package/script/src/services/platform/generated/core/serverSentEvents.gen.d.ts.map +1 -0
  373. package/script/src/services/platform/generated/core/serverSentEvents.gen.js +125 -0
  374. package/script/src/services/platform/generated/core/types.gen.d.ts +79 -0
  375. package/script/src/services/platform/generated/core/types.gen.d.ts.map +1 -0
  376. package/script/src/services/platform/generated/core/types.gen.js +3 -0
  377. package/script/src/services/platform/generated/core/utils.gen.d.ts +15 -0
  378. package/script/src/services/platform/generated/core/utils.gen.d.ts.map +1 -0
  379. package/script/src/services/platform/generated/core/utils.gen.js +74 -0
  380. package/script/src/services/platform/generated/index.d.ts +3 -0
  381. package/script/src/services/platform/generated/index.d.ts.map +1 -0
  382. package/script/src/services/platform/generated/index.js +19 -0
  383. package/script/src/services/platform/generated/sdk.gen.d.ts +494 -0
  384. package/script/src/services/platform/generated/sdk.gen.d.ts.map +1 -0
  385. package/script/src/services/platform/generated/sdk.gen.js +1992 -0
  386. package/script/src/services/platform/generated/types.gen.d.ts +3798 -0
  387. package/script/src/services/platform/generated/types.gen.d.ts.map +1 -0
  388. package/script/src/services/platform/generated/types.gen.js +3 -0
  389. package/script/src/services/platform/mod.d.ts +5 -0
  390. package/script/src/services/platform/mod.d.ts.map +1 -0
  391. package/script/src/services/platform/mod.js +18 -0
  392. package/esm/src/dsl/http/versori/activation.d.ts +0 -13
  393. package/esm/src/dsl/http/versori/activation.d.ts.map +0 -1
  394. package/esm/src/dsl/http/versori/activation.js +0 -64
  395. package/esm/src/dsl/http/versori/credential/client.d.ts +0 -13
  396. package/esm/src/dsl/http/versori/credential/client.d.ts.map +0 -1
  397. package/esm/src/dsl/http/versori/credential/client.js +0 -35
  398. package/esm/src/dsl/http/versori/credential/credentials.d.ts +0 -98
  399. package/esm/src/dsl/http/versori/credential/credentials.d.ts.map +0 -1
  400. package/esm/src/dsl/http/versori/credential/credentials.js +0 -40
  401. package/esm/src/dsl/http/versori/credential/mod.d.ts +0 -2
  402. package/esm/src/dsl/http/versori/credential/mod.d.ts.map +0 -1
  403. package/esm/src/dsl/http/versori/credential/mod.js +0 -1
  404. package/esm/src/dsl/http/versori/credential/oauth2/v1/token_pb.d.ts +0 -13
  405. package/esm/src/dsl/http/versori/credential/oauth2/v1/token_pb.d.ts.map +0 -1
  406. package/esm/src/dsl/http/versori/credential/oauth2/v1/token_service_pb.d.ts +0 -102
  407. package/esm/src/dsl/http/versori/credential/oauth2/v1/token_service_pb.d.ts.map +0 -1
  408. package/esm/src/dsl/http/versori/credential/tokens/v1/token_pb.d.ts +0 -13
  409. package/esm/src/dsl/http/versori/credential/tokens/v1/token_pb.d.ts.map +0 -1
  410. package/esm/src/dsl/http/versori/credential/tokens/v1/token_service_pb.d.ts +0 -46
  411. package/esm/src/dsl/http/versori/credential/tokens/v1/token_service_pb.d.ts.map +0 -1
  412. package/esm/src/dsl/http/versori/credential/v1alpha1/common_pb.d.ts +0 -40
  413. package/esm/src/dsl/http/versori/credential/v1alpha1/common_pb.d.ts.map +0 -1
  414. package/esm/src/dsl/http/versori/credential/v1alpha1/credential_service_pb.d.ts +0 -129
  415. package/esm/src/dsl/http/versori/credential/v1alpha1/credential_service_pb.d.ts.map +0 -1
  416. package/esm/src/dsl/http/versori/platformapi.d.ts +0 -19
  417. package/esm/src/dsl/http/versori/platformapi.d.ts.map +0 -1
  418. package/esm/src/dsl/http/versori/platformapi.js +0 -148
  419. package/esm/src/dsl/http/versori/roundtripper.d.ts +0 -61
  420. package/esm/src/dsl/http/versori/roundtripper.d.ts.map +0 -1
  421. package/esm/src/dsl/http/versori/roundtripper.js +0 -967
  422. package/script/src/dsl/http/versori/activation.d.ts +0 -13
  423. package/script/src/dsl/http/versori/activation.d.ts.map +0 -1
  424. package/script/src/dsl/http/versori/activation.js +0 -68
  425. package/script/src/dsl/http/versori/credential/client.d.ts +0 -13
  426. package/script/src/dsl/http/versori/credential/client.d.ts.map +0 -1
  427. package/script/src/dsl/http/versori/credential/client.js +0 -39
  428. package/script/src/dsl/http/versori/credential/credentials.d.ts +0 -98
  429. package/script/src/dsl/http/versori/credential/credentials.d.ts.map +0 -1
  430. package/script/src/dsl/http/versori/credential/credentials.js +0 -46
  431. package/script/src/dsl/http/versori/credential/mod.d.ts +0 -2
  432. package/script/src/dsl/http/versori/credential/mod.d.ts.map +0 -1
  433. package/script/src/dsl/http/versori/credential/mod.js +0 -5
  434. package/script/src/dsl/http/versori/credential/oauth2/v1/token_pb.d.ts +0 -13
  435. package/script/src/dsl/http/versori/credential/oauth2/v1/token_pb.d.ts.map +0 -1
  436. package/script/src/dsl/http/versori/credential/oauth2/v1/token_service_pb.d.ts +0 -102
  437. package/script/src/dsl/http/versori/credential/oauth2/v1/token_service_pb.d.ts.map +0 -1
  438. package/script/src/dsl/http/versori/credential/tokens/v1/token_pb.d.ts +0 -13
  439. package/script/src/dsl/http/versori/credential/tokens/v1/token_pb.d.ts.map +0 -1
  440. package/script/src/dsl/http/versori/credential/tokens/v1/token_service_pb.d.ts +0 -46
  441. package/script/src/dsl/http/versori/credential/tokens/v1/token_service_pb.d.ts.map +0 -1
  442. package/script/src/dsl/http/versori/credential/v1alpha1/common_pb.d.ts +0 -40
  443. package/script/src/dsl/http/versori/credential/v1alpha1/common_pb.d.ts.map +0 -1
  444. package/script/src/dsl/http/versori/credential/v1alpha1/credential_service_pb.d.ts +0 -129
  445. package/script/src/dsl/http/versori/credential/v1alpha1/credential_service_pb.d.ts.map +0 -1
  446. package/script/src/dsl/http/versori/platformapi.d.ts +0 -19
  447. package/script/src/dsl/http/versori/platformapi.d.ts.map +0 -1
  448. package/script/src/dsl/http/versori/platformapi.js +0 -152
  449. package/script/src/dsl/http/versori/roundtripper.d.ts +0 -61
  450. package/script/src/dsl/http/versori/roundtripper.d.ts.map +0 -1
  451. package/script/src/dsl/http/versori/roundtripper.js +0 -974
  452. /package/esm/deps/jsr.io/@std/fs/{1.0.19 → 1.0.20}/exists.d.ts +0 -0
  453. /package/esm/deps/jsr.io/@std/fs/{1.0.19 → 1.0.20}/exists.js +0 -0
  454. /package/script/deps/jsr.io/@std/fs/{1.0.19 → 1.0.20}/exists.d.ts +0 -0
  455. /package/script/deps/jsr.io/@std/fs/{1.0.19 → 1.0.20}/exists.js +0 -0
@@ -0,0 +1,1908 @@
1
+ // This file is auto-generated by @hey-api/openapi-ts
2
+ import { client as _heyApiClient } from './client.gen.js';
3
+ /**
4
+ * Activates a User on an Environment.
5
+ * ActivateUser activates a user on an environment. This will create a new activation record for the user on the environment.
6
+ * Connections must be made for all environment systems to be successfully activated.
7
+ *
8
+ */
9
+ export const activateUser = (options) => {
10
+ return (options.client ?? _heyApiClient).post({
11
+ security: [
12
+ {
13
+ scheme: 'bearer',
14
+ type: 'http'
15
+ },
16
+ {
17
+ in: 'cookie',
18
+ name: 'cookie',
19
+ type: 'apiKey'
20
+ }
21
+ ],
22
+ url: '/o/{organisation_id}/activations',
23
+ ...options,
24
+ headers: {
25
+ 'Content-Type': 'application/json',
26
+ ...options.headers
27
+ }
28
+ });
29
+ };
30
+ /**
31
+ * List projects for organisation
32
+ */
33
+ export const listProjects = (options) => {
34
+ return (options.client ?? _heyApiClient).get({
35
+ security: [
36
+ {
37
+ scheme: 'bearer',
38
+ type: 'http'
39
+ },
40
+ {
41
+ in: 'cookie',
42
+ name: 'cookie',
43
+ type: 'apiKey'
44
+ }
45
+ ],
46
+ url: '/o/{organisation_id}/projects',
47
+ ...options
48
+ });
49
+ };
50
+ /**
51
+ * Create new project
52
+ * CreateProject creates a new project.
53
+ *
54
+ */
55
+ export const createProject = (options) => {
56
+ return (options.client ?? _heyApiClient).post({
57
+ security: [
58
+ {
59
+ scheme: 'bearer',
60
+ type: 'http'
61
+ },
62
+ {
63
+ in: 'cookie',
64
+ name: 'cookie',
65
+ type: 'apiKey'
66
+ }
67
+ ],
68
+ url: '/o/{organisation_id}/projects',
69
+ ...options,
70
+ headers: {
71
+ 'Content-Type': 'application/json',
72
+ ...options.headers
73
+ }
74
+ });
75
+ };
76
+ /**
77
+ * Delete Project
78
+ * DeleteProject delete the project.
79
+ *
80
+ */
81
+ export const deleteProject = (options) => {
82
+ return (options.client ?? _heyApiClient).delete({
83
+ security: [
84
+ {
85
+ scheme: 'bearer',
86
+ type: 'http'
87
+ },
88
+ {
89
+ in: 'cookie',
90
+ name: 'cookie',
91
+ type: 'apiKey'
92
+ }
93
+ ],
94
+ url: '/o/{organisation_id}/projects/{project_id}',
95
+ ...options
96
+ });
97
+ };
98
+ /**
99
+ * Get Project
100
+ * GetProject returns the files and configuration for the specified project ID. If one does not exist then a 404 will be returned.
101
+ *
102
+ */
103
+ export const getProject = (options) => {
104
+ return (options.client ?? _heyApiClient).get({
105
+ security: [
106
+ {
107
+ scheme: 'bearer',
108
+ type: 'http'
109
+ },
110
+ {
111
+ in: 'cookie',
112
+ name: 'cookie',
113
+ type: 'apiKey'
114
+ }
115
+ ],
116
+ url: '/o/{organisation_id}/projects/{project_id}',
117
+ ...options
118
+ });
119
+ };
120
+ /**
121
+ * Update Project
122
+ * UpdateProject updates the project record. This endpoint will not make changes to the file or the running deployment.
123
+ *
124
+ */
125
+ export const updateProject = (options) => {
126
+ return (options.client ?? _heyApiClient).put({
127
+ security: [
128
+ {
129
+ scheme: 'bearer',
130
+ type: 'http'
131
+ },
132
+ {
133
+ in: 'cookie',
134
+ name: 'cookie',
135
+ type: 'apiKey'
136
+ }
137
+ ],
138
+ url: '/o/{organisation_id}/projects/{project_id}',
139
+ ...options,
140
+ headers: {
141
+ 'Content-Type': 'application/json',
142
+ ...options.headers
143
+ }
144
+ });
145
+ };
146
+ /**
147
+ * Clone Project
148
+ * CloneProject clones the project with the given ID. The new project will have a new ID and will not be deployed.
149
+ * The files and configuration will be copied from the original project. Connection templates will be copied, however
150
+ * no connections will be created.
151
+ *
152
+ */
153
+ export const cloneProject = (options) => {
154
+ return (options.client ?? _heyApiClient).post({
155
+ security: [
156
+ {
157
+ scheme: 'bearer',
158
+ type: 'http'
159
+ },
160
+ {
161
+ in: 'cookie',
162
+ name: 'cookie',
163
+ type: 'apiKey'
164
+ }
165
+ ],
166
+ url: '/o/{organisation_id}/projects/{project_id}/clone',
167
+ ...options
168
+ });
169
+ };
170
+ /**
171
+ * Patch the schema for the project's dynamic variables
172
+ * PatchProjectVariablesSchema patches the JSON schema for the project's dynamic variables. This allows you to add,
173
+ * remove or edit the schema for the project's dynamic variables.
174
+ *
175
+ */
176
+ export const patchProjectVariablesSchema = (options) => {
177
+ return (options.client ?? _heyApiClient).patch({
178
+ security: [
179
+ {
180
+ scheme: 'bearer',
181
+ type: 'http'
182
+ },
183
+ {
184
+ in: 'cookie',
185
+ name: 'cookie',
186
+ type: 'apiKey'
187
+ }
188
+ ],
189
+ url: '/o/{organisation_id}/projects/{project_id}/variables',
190
+ ...options,
191
+ headers: {
192
+ 'Content-Type': 'application/json',
193
+ ...options.headers
194
+ }
195
+ });
196
+ };
197
+ /**
198
+ * Set the schema for the project variables
199
+ * SetProjectVariablesSchema sets the JSON schema for the project's dynamic variables. Dynamic variables can then
200
+ * be set by end users on activation. This schema is used to validate the variables when they are set and defines
201
+ * the variables that can be set and used within the integration code.
202
+ *
203
+ */
204
+ export const setProjectVariablesSchema = (options) => {
205
+ return (options.client ?? _heyApiClient).put({
206
+ security: [
207
+ {
208
+ scheme: 'bearer',
209
+ type: 'http'
210
+ },
211
+ {
212
+ in: 'cookie',
213
+ name: 'cookie',
214
+ type: 'apiKey'
215
+ }
216
+ ],
217
+ url: '/o/{organisation_id}/projects/{project_id}/variables',
218
+ ...options,
219
+ headers: {
220
+ 'Content-Type': 'application/json',
221
+ ...options.headers
222
+ }
223
+ });
224
+ };
225
+ /**
226
+ * Add sentiment data to project history
227
+ * AddProjectSentiment adds a new sentiment entry to the project's sentiment history.
228
+ * This endpoint appends to the existing sentiment history in the project metadata.
229
+ *
230
+ */
231
+ export const addProjectSentiment = (options) => {
232
+ return (options.client ?? _heyApiClient).post({
233
+ security: [
234
+ {
235
+ scheme: 'bearer',
236
+ type: 'http'
237
+ },
238
+ {
239
+ in: 'cookie',
240
+ name: 'cookie',
241
+ type: 'apiKey'
242
+ }
243
+ ],
244
+ url: '/o/{organisation_id}/projects/{project_id}/sentiment',
245
+ ...options,
246
+ headers: {
247
+ 'Content-Type': 'application/json',
248
+ ...options.headers
249
+ }
250
+ });
251
+ };
252
+ /**
253
+ * Get Files
254
+ * GetFiles returns the current files for the project. Those may not the the files the project is deployed with.
255
+ *
256
+ */
257
+ export const getFiles = (options) => {
258
+ return (options.client ?? _heyApiClient).get({
259
+ security: [
260
+ {
261
+ scheme: 'bearer',
262
+ type: 'http'
263
+ },
264
+ {
265
+ in: 'cookie',
266
+ name: 'cookie',
267
+ type: 'apiKey'
268
+ }
269
+ ],
270
+ url: '/o/{organisation_id}/projects/{project_id}/files',
271
+ ...options
272
+ });
273
+ };
274
+ /**
275
+ * Update Files
276
+ * UpdateFiles updates the files for the project. This will not deploy the project.
277
+ *
278
+ */
279
+ export const updateFiles = (options) => {
280
+ return (options.client ?? _heyApiClient).put({
281
+ security: [
282
+ {
283
+ scheme: 'bearer',
284
+ type: 'http'
285
+ },
286
+ {
287
+ in: 'cookie',
288
+ name: 'cookie',
289
+ type: 'apiKey'
290
+ }
291
+ ],
292
+ url: '/o/{organisation_id}/projects/{project_id}/files',
293
+ ...options,
294
+ headers: {
295
+ 'Content-Type': 'application/json',
296
+ ...options.headers
297
+ }
298
+ });
299
+ };
300
+ /**
301
+ * Deploy Project
302
+ * DeployProject deploys the project to the specified environment using the current files.
303
+ * It processes the files to deploy a new version of the project and updates the underlying connector
304
+ * to integrate the new API.
305
+ *
306
+ */
307
+ export const deployProject = (options) => {
308
+ return (options.client ?? _heyApiClient).put({
309
+ security: [
310
+ {
311
+ scheme: 'bearer',
312
+ type: 'http'
313
+ },
314
+ {
315
+ in: 'cookie',
316
+ name: 'cookie',
317
+ type: 'apiKey'
318
+ }
319
+ ],
320
+ url: '/o/{organisation_id}/projects/{project_id}/deploy',
321
+ ...options,
322
+ headers: {
323
+ 'Content-Type': 'application/json',
324
+ ...options.headers
325
+ }
326
+ });
327
+ };
328
+ /**
329
+ * Get Project Logs
330
+ */
331
+ export const getProjectLogs = (options) => {
332
+ return (options.client ?? _heyApiClient).get({
333
+ security: [
334
+ {
335
+ scheme: 'bearer',
336
+ type: 'http'
337
+ },
338
+ {
339
+ in: 'cookie',
340
+ name: 'cookie',
341
+ type: 'apiKey'
342
+ }
343
+ ],
344
+ url: '/o/{organisation_id}/projects/{project_id}/logs',
345
+ ...options
346
+ });
347
+ };
348
+ /**
349
+ * List project traces
350
+ * ListTraces returns a list of traces for the given organisation.
351
+ *
352
+ */
353
+ export const listTraces = (options) => {
354
+ return (options.client ?? _heyApiClient).get({
355
+ security: [
356
+ {
357
+ scheme: 'bearer',
358
+ type: 'http'
359
+ },
360
+ {
361
+ in: 'cookie',
362
+ name: 'cookie',
363
+ type: 'apiKey'
364
+ }
365
+ ],
366
+ url: '/o/{organisation_id}/projects/{project_id}/traces',
367
+ ...options
368
+ });
369
+ };
370
+ /**
371
+ * Get Trace
372
+ * GetTrace returns an individual trace with all the spans.
373
+ *
374
+ */
375
+ export const getTrace = (options) => {
376
+ return (options.client ?? _heyApiClient).get({
377
+ security: [
378
+ {
379
+ scheme: 'bearer',
380
+ type: 'http'
381
+ },
382
+ {
383
+ in: 'cookie',
384
+ name: 'cookie',
385
+ type: 'apiKey'
386
+ }
387
+ ],
388
+ url: '/o/{organisation_id}/projects/{project_id}/traces/{trace_id}',
389
+ ...options
390
+ });
391
+ };
392
+ /**
393
+ * Suspend Project
394
+ * Suspend project will stop the project but not delete it. It can be deployed later again.
395
+ */
396
+ export const suspendProject = (options) => {
397
+ return (options.client ?? _heyApiClient).post({
398
+ security: [
399
+ {
400
+ scheme: 'bearer',
401
+ type: 'http'
402
+ },
403
+ {
404
+ in: 'cookie',
405
+ name: 'cookie',
406
+ type: 'apiKey'
407
+ }
408
+ ],
409
+ url: '/o/{organisation_id}/projects/{project_id}/suspend',
410
+ ...options
411
+ });
412
+ };
413
+ /**
414
+ * List Connections
415
+ * ListConnections returns a list of Connections.
416
+ *
417
+ */
418
+ export const listConnections = (options) => {
419
+ return (options.client ?? _heyApiClient).get({
420
+ security: [
421
+ {
422
+ scheme: 'bearer',
423
+ type: 'http'
424
+ },
425
+ {
426
+ in: 'cookie',
427
+ name: 'cookie',
428
+ type: 'apiKey'
429
+ }
430
+ ],
431
+ url: '/o/{organisation_id}/connections',
432
+ ...options
433
+ });
434
+ };
435
+ /**
436
+ * Create a new connection.
437
+ * CreateConnection creates a new connection for the given organisation.
438
+ *
439
+ */
440
+ export const createConnection = (options) => {
441
+ return (options.client ?? _heyApiClient).post({
442
+ security: [
443
+ {
444
+ scheme: 'bearer',
445
+ type: 'http'
446
+ },
447
+ {
448
+ in: 'cookie',
449
+ name: 'cookie',
450
+ type: 'apiKey'
451
+ }
452
+ ],
453
+ url: '/o/{organisation_id}/connections',
454
+ ...options,
455
+ headers: {
456
+ 'Content-Type': 'application/json',
457
+ ...options.headers
458
+ }
459
+ });
460
+ };
461
+ /**
462
+ * Get a Connection by ID
463
+ * GetConnection returns the Connection for the given connection ID.
464
+ *
465
+ */
466
+ export const getConnection = (options) => {
467
+ return (options.client ?? _heyApiClient).get({
468
+ security: [
469
+ {
470
+ scheme: 'bearer',
471
+ type: 'http'
472
+ },
473
+ {
474
+ in: 'cookie',
475
+ name: 'cookie',
476
+ type: 'apiKey'
477
+ }
478
+ ],
479
+ url: '/o/{organisation_id}/connections/{connection_id}',
480
+ ...options
481
+ });
482
+ };
483
+ /**
484
+ * Update a Connection by ID
485
+ * UpdateConnection updates the Connection for the given connection ID.
486
+ *
487
+ */
488
+ export const updateConnection = (options) => {
489
+ return (options.client ?? _heyApiClient).put({
490
+ security: [
491
+ {
492
+ scheme: 'bearer',
493
+ type: 'http'
494
+ },
495
+ {
496
+ in: 'cookie',
497
+ name: 'cookie',
498
+ type: 'apiKey'
499
+ }
500
+ ],
501
+ url: '/o/{organisation_id}/connections/{connection_id}',
502
+ ...options,
503
+ headers: {
504
+ 'Content-Type': 'application/json',
505
+ ...options.headers
506
+ }
507
+ });
508
+ };
509
+ /**
510
+ * Link an existing connection to an environment
511
+ * LinkConnectionToEnvironment links an existing connection to a specified environment.
512
+ *
513
+ */
514
+ export const linkConnectionToEnvironment = (options) => {
515
+ return (options.client ?? _heyApiClient).post({
516
+ security: [
517
+ {
518
+ scheme: 'bearer',
519
+ type: 'http'
520
+ },
521
+ {
522
+ in: 'cookie',
523
+ name: 'cookie',
524
+ type: 'apiKey'
525
+ }
526
+ ],
527
+ url: '/o/{organisation_id}/connections/{connection_id}/link',
528
+ ...options,
529
+ headers: {
530
+ 'Content-Type': 'application/json',
531
+ ...options.headers
532
+ }
533
+ });
534
+ };
535
+ /**
536
+ * List End Users
537
+ * ListEndUsers returns a list of all the End Users for the given organisation.
538
+ *
539
+ */
540
+ export const listEndUsers = (options) => {
541
+ return (options.client ?? _heyApiClient).get({
542
+ security: [
543
+ {
544
+ scheme: 'bearer',
545
+ type: 'http'
546
+ },
547
+ {
548
+ in: 'cookie',
549
+ name: 'cookie',
550
+ type: 'apiKey'
551
+ }
552
+ ],
553
+ url: '/o/{organisation_id}/users',
554
+ ...options
555
+ });
556
+ };
557
+ /**
558
+ * Create an End User
559
+ * CreateEndUser creates a new End User for the given organisation.
560
+ *
561
+ * The end user requires a unique `externalId`. This is an immutable field so should not be set to something that may change
562
+ * such as an email address.
563
+ *
564
+ */
565
+ export const createEndUser = (options) => {
566
+ return (options.client ?? _heyApiClient).post({
567
+ security: [
568
+ {
569
+ scheme: 'bearer',
570
+ type: 'http'
571
+ },
572
+ {
573
+ in: 'cookie',
574
+ name: 'cookie',
575
+ type: 'apiKey'
576
+ }
577
+ ],
578
+ url: '/o/{organisation_id}/users',
579
+ ...options,
580
+ headers: {
581
+ 'Content-Type': 'application/json',
582
+ ...options.headers
583
+ }
584
+ });
585
+ };
586
+ /**
587
+ * List Automations
588
+ * ListAutomations returns a list of all the Automations for the given organisation.
589
+ *
590
+ */
591
+ export const listAutomations = (options) => {
592
+ return (options.client ?? _heyApiClient).get({
593
+ security: [
594
+ {
595
+ scheme: 'bearer',
596
+ type: 'http'
597
+ },
598
+ {
599
+ in: 'cookie',
600
+ name: 'cookie',
601
+ type: 'apiKey'
602
+ }
603
+ ],
604
+ url: '/o/{organisation_id}/automations',
605
+ ...options
606
+ });
607
+ };
608
+ /**
609
+ * Create a new automation.
610
+ */
611
+ export const createAutomation = (options) => {
612
+ return (options.client ?? _heyApiClient).post({
613
+ security: [
614
+ {
615
+ scheme: 'bearer',
616
+ type: 'http'
617
+ },
618
+ {
619
+ in: 'cookie',
620
+ name: 'cookie',
621
+ type: 'apiKey'
622
+ }
623
+ ],
624
+ url: '/o/{organisation_id}/automations',
625
+ ...options,
626
+ headers: {
627
+ 'Content-Type': 'application/json',
628
+ ...options.headers
629
+ }
630
+ });
631
+ };
632
+ /**
633
+ * List Automation Runs
634
+ * ListAutomationRuns returns a list of all the Automation Runs for the given automation ID.
635
+ *
636
+ */
637
+ export const listAutomationRuns = (options) => {
638
+ return (options.client ?? _heyApiClient).get({
639
+ security: [
640
+ {
641
+ scheme: 'bearer',
642
+ type: 'http'
643
+ },
644
+ {
645
+ in: 'cookie',
646
+ name: 'cookie',
647
+ type: 'apiKey'
648
+ }
649
+ ],
650
+ url: '/o/{organisation_id}/automations/{automation_id}/run',
651
+ ...options
652
+ });
653
+ };
654
+ /**
655
+ * Run an Automation
656
+ */
657
+ export const runAutomation = (options) => {
658
+ return (options.client ?? _heyApiClient).post({
659
+ security: [
660
+ {
661
+ scheme: 'bearer',
662
+ type: 'http'
663
+ },
664
+ {
665
+ in: 'cookie',
666
+ name: 'cookie',
667
+ type: 'apiKey'
668
+ }
669
+ ],
670
+ url: '/o/{organisation_id}/automations/{automation_id}/run',
671
+ ...options,
672
+ headers: {
673
+ 'Content-Type': 'application/json',
674
+ ...options.headers
675
+ }
676
+ });
677
+ };
678
+ /**
679
+ * Get an Automation by ID
680
+ * GetAutomation returns the Automation for the given automation ID.
681
+ *
682
+ */
683
+ export const getAutomation = (options) => {
684
+ return (options.client ?? _heyApiClient).get({
685
+ security: [
686
+ {
687
+ scheme: 'bearer',
688
+ type: 'http'
689
+ },
690
+ {
691
+ in: 'cookie',
692
+ name: 'cookie',
693
+ type: 'apiKey'
694
+ }
695
+ ],
696
+ url: '/o/{organisation_id}/automations/{automation_id}',
697
+ ...options
698
+ });
699
+ };
700
+ /**
701
+ * Update an Automation
702
+ * UpdateAutomation updates the name or prompt template of an existing automation.
703
+ *
704
+ */
705
+ export const updateAutomation = (options) => {
706
+ return (options.client ?? _heyApiClient).put({
707
+ security: [
708
+ {
709
+ scheme: 'bearer',
710
+ type: 'http'
711
+ },
712
+ {
713
+ in: 'cookie',
714
+ name: 'cookie',
715
+ type: 'apiKey'
716
+ }
717
+ ],
718
+ url: '/o/{organisation_id}/automations/{automation_id}',
719
+ ...options,
720
+ headers: {
721
+ 'Content-Type': 'application/json',
722
+ ...options.headers
723
+ }
724
+ });
725
+ };
726
+ /**
727
+ * List Recordings
728
+ * ListRecordings returns a list of all the Recordings for the given automation ID.
729
+ *
730
+ */
731
+ export const listRecordings = (options) => {
732
+ return (options.client ?? _heyApiClient).get({
733
+ security: [
734
+ {
735
+ scheme: 'bearer',
736
+ type: 'http'
737
+ },
738
+ {
739
+ in: 'cookie',
740
+ name: 'cookie',
741
+ type: 'apiKey'
742
+ }
743
+ ],
744
+ url: '/o/{organisation_id}/automations/{automation_id}/recordings',
745
+ ...options
746
+ });
747
+ };
748
+ /**
749
+ * Create a recording for an automation
750
+ * CreateRecording creates a recording for an automation.
751
+ * The recording file is uploaded to the GCP bucket and the transcription is requested.
752
+ *
753
+ */
754
+ export const createRecording = (options) => {
755
+ return (options.client ?? _heyApiClient).post({
756
+ security: [
757
+ {
758
+ scheme: 'bearer',
759
+ type: 'http'
760
+ },
761
+ {
762
+ in: 'cookie',
763
+ name: 'cookie',
764
+ type: 'apiKey'
765
+ }
766
+ ],
767
+ url: '/o/{organisation_id}/automations/{automation_id}/recordings',
768
+ ...options,
769
+ headers: {
770
+ 'Content-Type': 'application/json',
771
+ ...options.headers
772
+ }
773
+ });
774
+ };
775
+ /**
776
+ * Get an Automation Run by ID
777
+ * GetAutomationRun returns the Automation Run for the given run ID.
778
+ *
779
+ */
780
+ export const getAutomationRun = (options) => {
781
+ return (options.client ?? _heyApiClient).get({
782
+ security: [
783
+ {
784
+ scheme: 'bearer',
785
+ type: 'http'
786
+ },
787
+ {
788
+ in: 'cookie',
789
+ name: 'cookie',
790
+ type: 'apiKey'
791
+ }
792
+ ],
793
+ url: '/o/{organisation_id}/automations/{automation_id}/runs/{run_id}',
794
+ ...options
795
+ });
796
+ };
797
+ /**
798
+ * Get a recording by ID
799
+ * GetRecording returns the recording for the given recording ID.
800
+ *
801
+ */
802
+ export const getRecording = (options) => {
803
+ return (options.client ?? _heyApiClient).get({
804
+ security: [
805
+ {
806
+ scheme: 'bearer',
807
+ type: 'http'
808
+ },
809
+ {
810
+ in: 'cookie',
811
+ name: 'cookie',
812
+ type: 'apiKey'
813
+ }
814
+ ],
815
+ url: '/o/{organisation_id}/automations/{automation_id}/recordings/{recording_id}',
816
+ ...options
817
+ });
818
+ };
819
+ /**
820
+ * Create a transcription for a recording
821
+ * CreateTranscription creates a transcription for a recording.
822
+ *
823
+ */
824
+ export const createTranscription = (options) => {
825
+ return (options.client ?? _heyApiClient).post({
826
+ security: [
827
+ {
828
+ scheme: 'bearer',
829
+ type: 'http'
830
+ },
831
+ {
832
+ in: 'cookie',
833
+ name: 'cookie',
834
+ type: 'apiKey'
835
+ }
836
+ ],
837
+ url: '/o/{organisation_id}/automations/{automation_id}/recordings/{recording_id}',
838
+ ...options,
839
+ headers: {
840
+ 'Content-Type': 'application/json',
841
+ ...options.headers
842
+ }
843
+ });
844
+ };
845
+ /**
846
+ * List Schedulers
847
+ * ListSchedulers returns a list of all the Schedulers for the given environment.
848
+ *
849
+ */
850
+ export const listSchedulers = (options) => {
851
+ return (options.client ?? _heyApiClient).get({
852
+ security: [
853
+ {
854
+ scheme: 'bearer',
855
+ type: 'http'
856
+ },
857
+ {
858
+ in: 'cookie',
859
+ name: 'cookie',
860
+ type: 'apiKey'
861
+ }
862
+ ],
863
+ url: '/o/{organisation_id}/environments/{environment_id}/schedulers',
864
+ ...options
865
+ });
866
+ };
867
+ /**
868
+ * Get a Scheduler by ID
869
+ * GetScheduler returns the Scheduler for the given scheduler ID.
870
+ *
871
+ */
872
+ export const getScheduler = (options) => {
873
+ return (options.client ?? _heyApiClient).get({
874
+ security: [
875
+ {
876
+ scheme: 'bearer',
877
+ type: 'http'
878
+ },
879
+ {
880
+ in: 'cookie',
881
+ name: 'cookie',
882
+ type: 'apiKey'
883
+ }
884
+ ],
885
+ url: '/o/{organisation_id}/environments/{environment_id}/schedulers/{scheduler_id}',
886
+ ...options
887
+ });
888
+ };
889
+ /**
890
+ * Trigger a Scheduler once
891
+ * TriggerScheduler triggers the Scheduler for the given scheduler ID once.
892
+ * This is useful for testing or running a one-off task without waiting for the next scheduled run.
893
+ *
894
+ */
895
+ export const triggerScheduler = (options) => {
896
+ return (options.client ?? _heyApiClient).post({
897
+ security: [
898
+ {
899
+ scheme: 'bearer',
900
+ type: 'http'
901
+ },
902
+ {
903
+ in: 'cookie',
904
+ name: 'cookie',
905
+ type: 'apiKey'
906
+ }
907
+ ],
908
+ url: '/o/{organisation_id}/environments/{environment_id}/schedulers/{scheduler_id}',
909
+ ...options
910
+ });
911
+ };
912
+ /**
913
+ * List Activations
914
+ * ListActivations returns a list of all the Activations for the given environment.
915
+ *
916
+ */
917
+ export const listActivations = (options) => {
918
+ return (options.client ?? _heyApiClient).get({
919
+ security: [
920
+ {
921
+ scheme: 'bearer',
922
+ type: 'http'
923
+ },
924
+ {
925
+ in: 'cookie',
926
+ name: 'cookie',
927
+ type: 'apiKey'
928
+ }
929
+ ],
930
+ url: '/o/{organisation_id}/environments/{environment_id}/activations',
931
+ ...options
932
+ });
933
+ };
934
+ /**
935
+ * Delete an Activation
936
+ * DeleteActivation deletes the Activation for the given activation ID.
937
+ *
938
+ */
939
+ export const deleteActivation = (options) => {
940
+ return (options.client ?? _heyApiClient).delete({
941
+ security: [
942
+ {
943
+ scheme: 'bearer',
944
+ type: 'http'
945
+ },
946
+ {
947
+ in: 'cookie',
948
+ name: 'cookie',
949
+ type: 'apiKey'
950
+ }
951
+ ],
952
+ url: '/o/{organisation_id}/environments/{environment_id}/activations/{activation_id}',
953
+ ...options
954
+ });
955
+ };
956
+ /**
957
+ * Retrieve an Activation by ID
958
+ * GetActivation returns the Activation for the given activation ID.
959
+ *
960
+ */
961
+ export const getActivation = (options) => {
962
+ return (options.client ?? _heyApiClient).get({
963
+ security: [
964
+ {
965
+ scheme: 'bearer',
966
+ type: 'http'
967
+ },
968
+ {
969
+ in: 'cookie',
970
+ name: 'cookie',
971
+ type: 'apiKey'
972
+ }
973
+ ],
974
+ url: '/o/{organisation_id}/environments/{environment_id}/activations/{activation_id}',
975
+ ...options
976
+ });
977
+ };
978
+ /**
979
+ * Set static variables for the static activation
980
+ * Updates one or more static variables for the static user's activation for this environment.
981
+ * The request body will be validated against the variable schema.
982
+ *
983
+ */
984
+ export const setStaticUserVariables = (options) => {
985
+ return (options.client ?? _heyApiClient).patch({
986
+ security: [
987
+ {
988
+ scheme: 'bearer',
989
+ type: 'http'
990
+ },
991
+ {
992
+ in: 'cookie',
993
+ name: 'cookie',
994
+ type: 'apiKey'
995
+ }
996
+ ],
997
+ url: '/o/{organisation_id}/environments/{environment_id}/variables',
998
+ ...options,
999
+ headers: {
1000
+ 'Content-Type': 'application/json',
1001
+ ...options.headers
1002
+ }
1003
+ });
1004
+ };
1005
+ /**
1006
+ * UpdateEnvironmentConfig updates the environment config for infrastructure.
1007
+ */
1008
+ export const updateEnvironmentConfig = (options) => {
1009
+ return (options.client ?? _heyApiClient).patch({
1010
+ security: [
1011
+ {
1012
+ scheme: 'bearer',
1013
+ type: 'http'
1014
+ },
1015
+ {
1016
+ in: 'cookie',
1017
+ name: 'cookie',
1018
+ type: 'apiKey'
1019
+ }
1020
+ ],
1021
+ url: '/o/{organisation_id}/environments/{environment_id}/config',
1022
+ ...options,
1023
+ headers: {
1024
+ 'Content-Type': 'application/json',
1025
+ ...options.headers
1026
+ }
1027
+ });
1028
+ };
1029
+ /**
1030
+ * Set dynamic variables for an activation
1031
+ * Updates one or more dynamic variables for the specified activation. The request body will
1032
+ * be validated against the variable schema.
1033
+ *
1034
+ */
1035
+ export const setDynamicVariables = (options) => {
1036
+ return (options.client ?? _heyApiClient).patch({
1037
+ security: [
1038
+ {
1039
+ scheme: 'bearer',
1040
+ type: 'http'
1041
+ },
1042
+ {
1043
+ in: 'cookie',
1044
+ name: 'cookie',
1045
+ type: 'apiKey'
1046
+ }
1047
+ ],
1048
+ url: '/o/{organisation_id}/environments/{environment_id}/activations/{activation_id}/variables',
1049
+ ...options,
1050
+ headers: {
1051
+ 'Content-Type': 'application/json',
1052
+ ...options.headers
1053
+ }
1054
+ });
1055
+ };
1056
+ /**
1057
+ * Set a dynamic variable by name
1058
+ * Updates a single dynamic variable identified by name for the specified activation.
1059
+ * This endpoint is designed to support the SDK's ability to update individual variables
1060
+ * with a friendly, descriptive API for error handling.
1061
+ *
1062
+ */
1063
+ export const setDynamicVariable = (options) => {
1064
+ return (options.client ?? _heyApiClient).put({
1065
+ security: [
1066
+ {
1067
+ scheme: 'bearer',
1068
+ type: 'http'
1069
+ },
1070
+ {
1071
+ in: 'cookie',
1072
+ name: 'cookie',
1073
+ type: 'apiKey'
1074
+ }
1075
+ ],
1076
+ url: '/o/{organisation_id}/environments/{environment_id}/activations/{activation_id}/variables/{variable_name}',
1077
+ ...options,
1078
+ headers: {
1079
+ 'Content-Type': 'application/json',
1080
+ ...options.headers
1081
+ }
1082
+ });
1083
+ };
1084
+ /**
1085
+ * List Activations for User
1086
+ * ListUserActivations returns an array of all activations for a specific user in a given environment.
1087
+ *
1088
+ */
1089
+ export const listUserActivations = (options) => {
1090
+ return (options.client ?? _heyApiClient).get({
1091
+ security: [
1092
+ {
1093
+ scheme: 'bearer',
1094
+ type: 'http'
1095
+ },
1096
+ {
1097
+ in: 'cookie',
1098
+ name: 'cookie',
1099
+ type: 'apiKey'
1100
+ }
1101
+ ],
1102
+ url: '/o/{organisation_id}/environment/{environment_id}/users/{external_user_id}/activations',
1103
+ ...options
1104
+ });
1105
+ };
1106
+ /**
1107
+ * Delete an End User
1108
+ * DeleteEndUser deletes the End User for the given user ID.
1109
+ *
1110
+ */
1111
+ export const deleteEndUser = (options) => {
1112
+ return (options.client ?? _heyApiClient).delete({
1113
+ security: [
1114
+ {
1115
+ scheme: 'bearer',
1116
+ type: 'http'
1117
+ },
1118
+ {
1119
+ in: 'cookie',
1120
+ name: 'cookie',
1121
+ type: 'apiKey'
1122
+ }
1123
+ ],
1124
+ url: '/o/{organisation_id}/users/{user_id}',
1125
+ ...options
1126
+ });
1127
+ };
1128
+ /**
1129
+ * Retrieve an End User
1130
+ * GetEndUser returns the End User for the given user ID.
1131
+ *
1132
+ */
1133
+ export const getEndUser = (options) => {
1134
+ return (options.client ?? _heyApiClient).get({
1135
+ security: [
1136
+ {
1137
+ scheme: 'bearer',
1138
+ type: 'http'
1139
+ },
1140
+ {
1141
+ in: 'cookie',
1142
+ name: 'cookie',
1143
+ type: 'apiKey'
1144
+ }
1145
+ ],
1146
+ url: '/o/{organisation_id}/users/{user_id}',
1147
+ ...options
1148
+ });
1149
+ };
1150
+ /**
1151
+ * Retrieve the connection for the activations.
1152
+ */
1153
+ export const getActivationConnection = (options) => {
1154
+ return (options.client ?? _heyApiClient).get({
1155
+ security: [
1156
+ {
1157
+ scheme: 'bearer',
1158
+ type: 'http'
1159
+ },
1160
+ {
1161
+ in: 'cookie',
1162
+ name: 'cookie',
1163
+ type: 'apiKey'
1164
+ }
1165
+ ],
1166
+ url: '/o/{organisation_id}/environment-systems/{env_system_id}/activations/{activation_id}',
1167
+ ...options
1168
+ });
1169
+ };
1170
+ /**
1171
+ * Lists the systems for the organisation.
1172
+ */
1173
+ export const listSystems = (options) => {
1174
+ return (options.client ?? _heyApiClient).get({
1175
+ security: [
1176
+ {
1177
+ scheme: 'bearer',
1178
+ type: 'http'
1179
+ },
1180
+ {
1181
+ in: 'cookie',
1182
+ name: 'cookie',
1183
+ type: 'apiKey'
1184
+ }
1185
+ ],
1186
+ url: '/o/{organisation_id}/systems',
1187
+ ...options
1188
+ });
1189
+ };
1190
+ /**
1191
+ * Create a new system.
1192
+ */
1193
+ export const createSystem = (options) => {
1194
+ return (options.client ?? _heyApiClient).post({
1195
+ security: [
1196
+ {
1197
+ scheme: 'bearer',
1198
+ type: 'http'
1199
+ },
1200
+ {
1201
+ in: 'cookie',
1202
+ name: 'cookie',
1203
+ type: 'apiKey'
1204
+ }
1205
+ ],
1206
+ url: '/o/{organisation_id}/systems',
1207
+ ...options,
1208
+ headers: {
1209
+ 'Content-Type': 'application/json',
1210
+ ...options.headers
1211
+ }
1212
+ });
1213
+ };
1214
+ /**
1215
+ * Get a system by ID.
1216
+ */
1217
+ export const getSystem = (options) => {
1218
+ return (options.client ?? _heyApiClient).get({
1219
+ security: [
1220
+ {
1221
+ scheme: 'bearer',
1222
+ type: 'http'
1223
+ },
1224
+ {
1225
+ in: 'cookie',
1226
+ name: 'cookie',
1227
+ type: 'apiKey'
1228
+ }
1229
+ ],
1230
+ url: '/o/{organisation_id}/systems/{system_id}',
1231
+ ...options
1232
+ });
1233
+ };
1234
+ /**
1235
+ * Update system.
1236
+ */
1237
+ export const updateSystem = (options) => {
1238
+ return (options.client ?? _heyApiClient).put({
1239
+ security: [
1240
+ {
1241
+ scheme: 'bearer',
1242
+ type: 'http'
1243
+ },
1244
+ {
1245
+ in: 'cookie',
1246
+ name: 'cookie',
1247
+ type: 'apiKey'
1248
+ }
1249
+ ],
1250
+ url: '/o/{organisation_id}/systems/{system_id}',
1251
+ ...options,
1252
+ headers: {
1253
+ 'Content-Type': 'application/json',
1254
+ ...options.headers
1255
+ }
1256
+ });
1257
+ };
1258
+ /**
1259
+ * Link system actions to project.
1260
+ */
1261
+ export const linkSystemActions = (options) => {
1262
+ return (options.client ?? _heyApiClient).post({
1263
+ security: [
1264
+ {
1265
+ scheme: 'bearer',
1266
+ type: 'http'
1267
+ },
1268
+ {
1269
+ in: 'cookie',
1270
+ name: 'cookie',
1271
+ type: 'apiKey'
1272
+ }
1273
+ ],
1274
+ url: '/o/{organisation_id}/systems/{system_id}/projects/{project_id}/actions-link',
1275
+ ...options,
1276
+ headers: {
1277
+ 'Content-Type': 'application/json',
1278
+ ...options.headers
1279
+ }
1280
+ });
1281
+ };
1282
+ /**
1283
+ * Link system triggers to project.
1284
+ */
1285
+ export const linkSystemTriggers = (options) => {
1286
+ return (options.client ?? _heyApiClient).post({
1287
+ security: [
1288
+ {
1289
+ scheme: 'bearer',
1290
+ type: 'http'
1291
+ },
1292
+ {
1293
+ in: 'cookie',
1294
+ name: 'cookie',
1295
+ type: 'apiKey'
1296
+ }
1297
+ ],
1298
+ url: '/o/{organisation_id}/systems/{system_id}/projects/{project_id}/triggers-link',
1299
+ ...options,
1300
+ headers: {
1301
+ 'Content-Type': 'application/json',
1302
+ ...options.headers
1303
+ }
1304
+ });
1305
+ };
1306
+ /**
1307
+ * List actions for a system.
1308
+ * ListSystemActions returns a list of all the actions for the given system.
1309
+ * If the `project_id` query parameter is provided, this endpoint will only return actions that are being used
1310
+ * in that project.
1311
+ *
1312
+ */
1313
+ export const listSystemActions = (options) => {
1314
+ return (options.client ?? _heyApiClient).get({
1315
+ security: [
1316
+ {
1317
+ scheme: 'bearer',
1318
+ type: 'http'
1319
+ },
1320
+ {
1321
+ in: 'cookie',
1322
+ name: 'cookie',
1323
+ type: 'apiKey'
1324
+ }
1325
+ ],
1326
+ url: '/o/{organisation_id}/systems/{system_id}/actions',
1327
+ ...options
1328
+ });
1329
+ };
1330
+ /**
1331
+ * Create new actions for a system.
1332
+ * Create new actions for a system. If the project ID parameter is provided in the request body, these actions
1333
+ * will also be linked with that project.
1334
+ *
1335
+ */
1336
+ export const createSystemActions = (options) => {
1337
+ return (options.client ?? _heyApiClient).post({
1338
+ security: [
1339
+ {
1340
+ scheme: 'bearer',
1341
+ type: 'http'
1342
+ },
1343
+ {
1344
+ in: 'cookie',
1345
+ name: 'cookie',
1346
+ type: 'apiKey'
1347
+ }
1348
+ ],
1349
+ url: '/o/{organisation_id}/systems/{system_id}/actions',
1350
+ ...options,
1351
+ headers: {
1352
+ 'Content-Type': 'application/json',
1353
+ ...options.headers
1354
+ }
1355
+ });
1356
+ };
1357
+ /**
1358
+ * Delete an action for a system.
1359
+ * DeleteSystemAction deletes a single action for the given system.
1360
+ *
1361
+ */
1362
+ export const deleteSystemAction = (options) => {
1363
+ return (options.client ?? _heyApiClient).delete({
1364
+ security: [
1365
+ {
1366
+ scheme: 'bearer',
1367
+ type: 'http'
1368
+ },
1369
+ {
1370
+ in: 'cookie',
1371
+ name: 'cookie',
1372
+ type: 'apiKey'
1373
+ }
1374
+ ],
1375
+ url: '/o/{organisation_id}/systems/{system_id}/actions/{action_id}',
1376
+ ...options
1377
+ });
1378
+ };
1379
+ /**
1380
+ * Get an action for a system.
1381
+ * GetSystemAction returns a single action for the given system.
1382
+ *
1383
+ */
1384
+ export const getSystemAction = (options) => {
1385
+ return (options.client ?? _heyApiClient).get({
1386
+ security: [
1387
+ {
1388
+ scheme: 'bearer',
1389
+ type: 'http'
1390
+ },
1391
+ {
1392
+ in: 'cookie',
1393
+ name: 'cookie',
1394
+ type: 'apiKey'
1395
+ }
1396
+ ],
1397
+ url: '/o/{organisation_id}/systems/{system_id}/actions/{action_id}',
1398
+ ...options
1399
+ });
1400
+ };
1401
+ /**
1402
+ * Update an action for a system.
1403
+ * UpdateSystemAction updates a single action for the given system.
1404
+ *
1405
+ */
1406
+ export const updateSystemAction = (options) => {
1407
+ return (options.client ?? _heyApiClient).put({
1408
+ security: [
1409
+ {
1410
+ scheme: 'bearer',
1411
+ type: 'http'
1412
+ },
1413
+ {
1414
+ in: 'cookie',
1415
+ name: 'cookie',
1416
+ type: 'apiKey'
1417
+ }
1418
+ ],
1419
+ url: '/o/{organisation_id}/systems/{system_id}/actions/{action_id}',
1420
+ ...options,
1421
+ headers: {
1422
+ 'Content-Type': 'application/json',
1423
+ ...options.headers
1424
+ }
1425
+ });
1426
+ };
1427
+ /**
1428
+ * List triggers for a system.
1429
+ * ListSystemTriggers returns a list of all the triggers for the given system.
1430
+ * If the `project_id` query parameter is provided, this endpoint will only return triggers that are being used
1431
+ * in that project.
1432
+ *
1433
+ */
1434
+ export const listSystemTriggers = (options) => {
1435
+ return (options.client ?? _heyApiClient).get({
1436
+ security: [
1437
+ {
1438
+ scheme: 'bearer',
1439
+ type: 'http'
1440
+ },
1441
+ {
1442
+ in: 'cookie',
1443
+ name: 'cookie',
1444
+ type: 'apiKey'
1445
+ }
1446
+ ],
1447
+ url: '/o/{organisation_id}/systems/{system_id}/triggers',
1448
+ ...options
1449
+ });
1450
+ };
1451
+ /**
1452
+ * Create new triggers for a system.
1453
+ * Create new triggers for a system. If the project ID parameter is provided in the request body, these triggers
1454
+ * will also be linked with that project.
1455
+ *
1456
+ */
1457
+ export const createSystemTriggers = (options) => {
1458
+ return (options.client ?? _heyApiClient).post({
1459
+ security: [
1460
+ {
1461
+ scheme: 'bearer',
1462
+ type: 'http'
1463
+ },
1464
+ {
1465
+ in: 'cookie',
1466
+ name: 'cookie',
1467
+ type: 'apiKey'
1468
+ }
1469
+ ],
1470
+ url: '/o/{organisation_id}/systems/{system_id}/triggers',
1471
+ ...options,
1472
+ headers: {
1473
+ 'Content-Type': 'application/json',
1474
+ ...options.headers
1475
+ }
1476
+ });
1477
+ };
1478
+ /**
1479
+ * Deletes an auth scheme for the system.
1480
+ */
1481
+ export const deleteAuthSchemeConfig = (options) => {
1482
+ return (options.client ?? _heyApiClient).delete({
1483
+ security: [
1484
+ {
1485
+ scheme: 'bearer',
1486
+ type: 'http'
1487
+ },
1488
+ {
1489
+ in: 'cookie',
1490
+ name: 'cookie',
1491
+ type: 'apiKey'
1492
+ }
1493
+ ],
1494
+ url: '/o/{organisation_id}/systems/{system_id}/auth-scheme-configs/{auth_scheme_config_id}',
1495
+ ...options
1496
+ });
1497
+ };
1498
+ /**
1499
+ * Adds or updates an auth scheme for the system.
1500
+ * UpsertAuthSchemeConfig adds or updates an auth scheme for the system.
1501
+ * If the auth scheme ID provided doesn't match any of the record, it will be created.
1502
+ * If the auth scheme ID provided matches an existing record, it will be updated.
1503
+ * The ID in the path needs to match the ID in the body.
1504
+ *
1505
+ */
1506
+ export const upsertAuthSchemeConfig = (options) => {
1507
+ return (options.client ?? _heyApiClient).put({
1508
+ security: [
1509
+ {
1510
+ scheme: 'bearer',
1511
+ type: 'http'
1512
+ },
1513
+ {
1514
+ in: 'cookie',
1515
+ name: 'cookie',
1516
+ type: 'apiKey'
1517
+ }
1518
+ ],
1519
+ url: '/o/{organisation_id}/systems/{system_id}/auth-scheme-configs/{auth_scheme_config_id}',
1520
+ ...options,
1521
+ headers: {
1522
+ 'Content-Type': 'application/json',
1523
+ ...options.headers
1524
+ }
1525
+ });
1526
+ };
1527
+ /**
1528
+ * List static connections for project environment
1529
+ * Lists all static connections (connections without end users) for a given environment.
1530
+ *
1531
+ */
1532
+ export const listEnvironmentConnections = (options) => {
1533
+ return (options.client ?? _heyApiClient).get({
1534
+ security: [
1535
+ {
1536
+ scheme: 'bearer',
1537
+ type: 'http'
1538
+ },
1539
+ {
1540
+ in: 'cookie',
1541
+ name: 'cookie',
1542
+ type: 'apiKey'
1543
+ }
1544
+ ],
1545
+ url: '/o/{organisation_id}/projects/{project_id}/connections',
1546
+ ...options
1547
+ });
1548
+ };
1549
+ /**
1550
+ * List project environment connection templates
1551
+ */
1552
+ export const listProjectConnectionTemplates = (options) => {
1553
+ return (options.client ?? _heyApiClient).get({
1554
+ security: [
1555
+ {
1556
+ scheme: 'bearer',
1557
+ type: 'http'
1558
+ },
1559
+ {
1560
+ in: 'cookie',
1561
+ name: 'cookie',
1562
+ type: 'apiKey'
1563
+ }
1564
+ ],
1565
+ url: '/o/{organisation_id}/projects/{project_id}/connection-templates',
1566
+ ...options
1567
+ });
1568
+ };
1569
+ /**
1570
+ * Create a new connection template
1571
+ */
1572
+ export const createConnectionTemplate = (options) => {
1573
+ return (options.client ?? _heyApiClient).post({
1574
+ security: [
1575
+ {
1576
+ scheme: 'bearer',
1577
+ type: 'http'
1578
+ },
1579
+ {
1580
+ in: 'cookie',
1581
+ name: 'cookie',
1582
+ type: 'apiKey'
1583
+ }
1584
+ ],
1585
+ url: '/o/{organisation_id}/projects/{project_id}/connection-templates',
1586
+ ...options,
1587
+ headers: {
1588
+ 'Content-Type': 'application/json',
1589
+ ...options.headers
1590
+ }
1591
+ });
1592
+ };
1593
+ /**
1594
+ * Remove a connection template
1595
+ */
1596
+ export const deleteConnectionTemplate = (options) => {
1597
+ return (options.client ?? _heyApiClient).delete({
1598
+ security: [
1599
+ {
1600
+ scheme: 'bearer',
1601
+ type: 'http'
1602
+ },
1603
+ {
1604
+ in: 'cookie',
1605
+ name: 'cookie',
1606
+ type: 'apiKey'
1607
+ }
1608
+ ],
1609
+ url: '/o/{organisation_id}/projects/{project_id}/connection-templates/{template_id}',
1610
+ ...options
1611
+ });
1612
+ };
1613
+ /**
1614
+ * Remove a system from a project environment
1615
+ */
1616
+ export const updateConnectionTemplate = (options) => {
1617
+ return (options.client ?? _heyApiClient).put({
1618
+ security: [
1619
+ {
1620
+ scheme: 'bearer',
1621
+ type: 'http'
1622
+ },
1623
+ {
1624
+ in: 'cookie',
1625
+ name: 'cookie',
1626
+ type: 'apiKey'
1627
+ }
1628
+ ],
1629
+ url: '/o/{organisation_id}/projects/{project_id}/connection-templates/{template_id}',
1630
+ ...options,
1631
+ headers: {
1632
+ 'Content-Type': 'application/json',
1633
+ ...options.headers
1634
+ }
1635
+ });
1636
+ };
1637
+ /**
1638
+ * Initialise OAuth 2.0 Connection
1639
+ * InitialiseOAuth2Connection returns a URL to redirect the user to an OAuth 2.0 Provider's Authorize endpoint.
1640
+ *
1641
+ * Only URLs constructed via this API can be used to connect to an OAuth 2.0 connector within
1642
+ * Versori, since a `state` parameter is generated and validated upon redirection to the
1643
+ * redirect_uri.
1644
+ *
1645
+ * Additional query parameters can be added to the resultant URL via the `additionalParams`
1646
+ * property in the body. In addition to the standard parameters defined in the body, this API
1647
+ * adds the following parameters:
1648
+ *
1649
+ * - `redirect_uri`: The URI to redirect the user to after the OAuth 2.0 Provider has
1650
+ * authenticated the user.
1651
+ * - `state`: A secure string generated by the API to authenticate requests to the redirect URI.
1652
+ * - `prompt`: See documentation on the `prompt` property of the request body.
1653
+ * - `scope`: See documentation on the `scopes` property of the request body.
1654
+ * - `response_type`: The response type to use. This is always `code` for OAuth 2.0.
1655
+ * - `client_id`: The client ID provided by the request body, this must match the client ID
1656
+ * which is stored under the provided `credentialId` otherwise the handling of the redirect
1657
+ * request will fail.
1658
+ *
1659
+ * Full details on the standard parameters can be found in the OIDC Core specification:
1660
+ * https://openid.net/specs/openid-connect-core-1_0.html#AuthRequest
1661
+ *
1662
+ */
1663
+ export const initialiseOAuth2Connection = (options) => {
1664
+ return (options.client ?? _heyApiClient).post({
1665
+ security: [
1666
+ {
1667
+ scheme: 'bearer',
1668
+ type: 'http'
1669
+ },
1670
+ {
1671
+ in: 'cookie',
1672
+ name: 'cookie',
1673
+ type: 'apiKey'
1674
+ }
1675
+ ],
1676
+ url: '/o/{organisation_id}/systems/{system_id}/oauth2/initialise',
1677
+ ...options,
1678
+ headers: {
1679
+ 'Content-Type': 'application/json',
1680
+ ...options.headers
1681
+ }
1682
+ });
1683
+ };
1684
+ /**
1685
+ * Initialise OAuth 1.0 Connection
1686
+ * InitialiseOAuth1Connection returns a URL to redirect the user to an OAuth 1.0 Provider's Authorize endpoint.
1687
+ *
1688
+ */
1689
+ export const initialiseOAuth1Connection = (options) => {
1690
+ return (options.client ?? _heyApiClient).post({
1691
+ security: [
1692
+ {
1693
+ scheme: 'bearer',
1694
+ type: 'http'
1695
+ },
1696
+ {
1697
+ in: 'cookie',
1698
+ name: 'cookie',
1699
+ type: 'apiKey'
1700
+ }
1701
+ ],
1702
+ url: '/o/{organisation_id}/systems/{system_id}/oauth1/initialise',
1703
+ ...options,
1704
+ headers: {
1705
+ 'Content-Type': 'application/json',
1706
+ ...options.headers
1707
+ }
1708
+ });
1709
+ };
1710
+ /**
1711
+ * List Issues
1712
+ * ListIssues returns a list of all the Issues for the given organisation.
1713
+ * The issues can be filtered by status, assignee, and other parameters.
1714
+ * Before and After query parameters refer to the createdAt timestamp of the issue.
1715
+ *
1716
+ */
1717
+ export const listIssues = (options) => {
1718
+ return (options.client ?? _heyApiClient).get({
1719
+ security: [
1720
+ {
1721
+ scheme: 'bearer',
1722
+ type: 'http'
1723
+ },
1724
+ {
1725
+ in: 'cookie',
1726
+ name: 'cookie',
1727
+ type: 'apiKey'
1728
+ }
1729
+ ],
1730
+ url: '/o/{organisation_id}/issues',
1731
+ ...options
1732
+ });
1733
+ };
1734
+ /**
1735
+ * Create a new issue.
1736
+ */
1737
+ export const createIssue = (options) => {
1738
+ return (options.client ?? _heyApiClient).post({
1739
+ security: [
1740
+ {
1741
+ scheme: 'bearer',
1742
+ type: 'http'
1743
+ },
1744
+ {
1745
+ in: 'cookie',
1746
+ name: 'cookie',
1747
+ type: 'apiKey'
1748
+ }
1749
+ ],
1750
+ url: '/o/{organisation_id}/issues',
1751
+ ...options,
1752
+ headers: {
1753
+ 'Content-Type': 'application/json',
1754
+ ...options.headers
1755
+ }
1756
+ });
1757
+ };
1758
+ /**
1759
+ * Update an Issue
1760
+ * UpdateIssue updates the editable fields of an issue. Any fields not provided in the request body will not be changed.
1761
+ *
1762
+ */
1763
+ export const updateIssue = (options) => {
1764
+ return (options.client ?? _heyApiClient).patch({
1765
+ security: [
1766
+ {
1767
+ scheme: 'bearer',
1768
+ type: 'http'
1769
+ },
1770
+ {
1771
+ in: 'cookie',
1772
+ name: 'cookie',
1773
+ type: 'apiKey'
1774
+ }
1775
+ ],
1776
+ url: '/o/{organisation_id}/issues/{issue_id}',
1777
+ ...options,
1778
+ headers: {
1779
+ 'Content-Type': 'application/json',
1780
+ ...options.headers
1781
+ }
1782
+ });
1783
+ };
1784
+ /**
1785
+ * List notification channels for an organisation
1786
+ */
1787
+ export const listNotificationChannels = (options) => {
1788
+ return (options.client ?? _heyApiClient).get({
1789
+ security: [
1790
+ {
1791
+ scheme: 'bearer',
1792
+ type: 'http'
1793
+ },
1794
+ {
1795
+ in: 'cookie',
1796
+ name: 'cookie',
1797
+ type: 'apiKey'
1798
+ }
1799
+ ],
1800
+ url: '/o/{organisation_id}/notification_channels',
1801
+ ...options
1802
+ });
1803
+ };
1804
+ export const createNotificationChannel = (options) => {
1805
+ return (options.client ?? _heyApiClient).post({
1806
+ security: [
1807
+ {
1808
+ scheme: 'bearer',
1809
+ type: 'http'
1810
+ },
1811
+ {
1812
+ in: 'cookie',
1813
+ name: 'cookie',
1814
+ type: 'apiKey'
1815
+ }
1816
+ ],
1817
+ url: '/o/{organisation_id}/notification_channels',
1818
+ ...options,
1819
+ headers: {
1820
+ 'Content-Type': 'application/json',
1821
+ ...options.headers
1822
+ }
1823
+ });
1824
+ };
1825
+ /**
1826
+ * Delete a notification channel
1827
+ */
1828
+ export const deleteNotificationChannel = (options) => {
1829
+ return (options.client ?? _heyApiClient).delete({
1830
+ security: [
1831
+ {
1832
+ scheme: 'bearer',
1833
+ type: 'http'
1834
+ },
1835
+ {
1836
+ in: 'cookie',
1837
+ name: 'cookie',
1838
+ type: 'apiKey'
1839
+ }
1840
+ ],
1841
+ url: '/o/{organisation_id}/notification_channels/{channel_id}',
1842
+ ...options
1843
+ });
1844
+ };
1845
+ /**
1846
+ * List notifications for a project
1847
+ */
1848
+ export const listProjectNotifications = (options) => {
1849
+ return (options.client ?? _heyApiClient).get({
1850
+ security: [
1851
+ {
1852
+ scheme: 'bearer',
1853
+ type: 'http'
1854
+ },
1855
+ {
1856
+ in: 'cookie',
1857
+ name: 'cookie',
1858
+ type: 'apiKey'
1859
+ }
1860
+ ],
1861
+ url: '/projects/{project_id}/notifications',
1862
+ ...options
1863
+ });
1864
+ };
1865
+ /**
1866
+ * Create a new project notification
1867
+ */
1868
+ export const createProjectNotification = (options) => {
1869
+ return (options.client ?? _heyApiClient).post({
1870
+ security: [
1871
+ {
1872
+ scheme: 'bearer',
1873
+ type: 'http'
1874
+ },
1875
+ {
1876
+ in: 'cookie',
1877
+ name: 'cookie',
1878
+ type: 'apiKey'
1879
+ }
1880
+ ],
1881
+ url: '/projects/{project_id}/notifications',
1882
+ ...options,
1883
+ headers: {
1884
+ 'Content-Type': 'application/json',
1885
+ ...options.headers
1886
+ }
1887
+ });
1888
+ };
1889
+ /**
1890
+ * Delete a project notification
1891
+ */
1892
+ export const deleteProjectNotification = (options) => {
1893
+ return (options.client ?? _heyApiClient).delete({
1894
+ security: [
1895
+ {
1896
+ scheme: 'bearer',
1897
+ type: 'http'
1898
+ },
1899
+ {
1900
+ in: 'cookie',
1901
+ name: 'cookie',
1902
+ type: 'apiKey'
1903
+ }
1904
+ ],
1905
+ url: '/projects/{project_id}/notifications/{notification_id}',
1906
+ ...options
1907
+ });
1908
+ };