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