@boltix/sdk 0.0.1

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 (587) hide show
  1. package/dist/BaseClient.d.ts +42 -0
  2. package/dist/BaseClient.js +43 -0
  3. package/dist/Client.d.ts +77 -0
  4. package/dist/Client.js +120 -0
  5. package/dist/api/index.d.ts +2 -0
  6. package/dist/api/index.js +2 -0
  7. package/dist/api/resources/audit/client/Client.d.ts +37 -0
  8. package/dist/api/resources/audit/client/Client.js +115 -0
  9. package/dist/api/resources/audit/client/index.d.ts +1 -0
  10. package/dist/api/resources/audit/client/index.js +1 -0
  11. package/dist/api/resources/audit/client/requests/GetEventAuditRequest.d.ts +10 -0
  12. package/dist/api/resources/audit/client/requests/GetEventAuditRequest.js +2 -0
  13. package/dist/api/resources/audit/client/requests/ListEventsAuditRequest.d.ts +18 -0
  14. package/dist/api/resources/audit/client/requests/ListEventsAuditRequest.js +2 -0
  15. package/dist/api/resources/audit/client/requests/index.d.ts +2 -0
  16. package/dist/api/resources/audit/client/requests/index.js +1 -0
  17. package/dist/api/resources/audit/exports.d.ts +2 -0
  18. package/dist/api/resources/audit/exports.js +3 -0
  19. package/dist/api/resources/audit/index.d.ts +1 -0
  20. package/dist/api/resources/audit/index.js +1 -0
  21. package/dist/api/resources/auth/client/Client.d.ts +55 -0
  22. package/dist/api/resources/auth/client/Client.js +148 -0
  23. package/dist/api/resources/auth/client/index.d.ts +1 -0
  24. package/dist/api/resources/auth/client/index.js +1 -0
  25. package/dist/api/resources/auth/client/requests/LoginInputBody.d.ts +13 -0
  26. package/dist/api/resources/auth/client/requests/LoginInputBody.js +2 -0
  27. package/dist/api/resources/auth/client/requests/RefreshInputBody.d.ts +10 -0
  28. package/dist/api/resources/auth/client/requests/RefreshInputBody.js +2 -0
  29. package/dist/api/resources/auth/client/requests/RegisterInputBody.d.ts +18 -0
  30. package/dist/api/resources/auth/client/requests/RegisterInputBody.js +2 -0
  31. package/dist/api/resources/auth/client/requests/index.d.ts +3 -0
  32. package/dist/api/resources/auth/client/requests/index.js +1 -0
  33. package/dist/api/resources/auth/exports.d.ts +2 -0
  34. package/dist/api/resources/auth/exports.js +3 -0
  35. package/dist/api/resources/auth/index.d.ts +1 -0
  36. package/dist/api/resources/auth/index.js +1 -0
  37. package/dist/api/resources/automation/client/Client.d.ts +161 -0
  38. package/dist/api/resources/automation/client/Client.js +539 -0
  39. package/dist/api/resources/automation/client/index.d.ts +1 -0
  40. package/dist/api/resources/automation/client/index.js +1 -0
  41. package/dist/api/resources/automation/client/requests/CreateTriggerInputBody.d.ts +43 -0
  42. package/dist/api/resources/automation/client/requests/CreateTriggerInputBody.js +11 -0
  43. package/dist/api/resources/automation/client/requests/CreateWorkflowInputBody.d.ts +39 -0
  44. package/dist/api/resources/automation/client/requests/CreateWorkflowInputBody.js +2 -0
  45. package/dist/api/resources/automation/client/requests/DeleteTriggerAutomationRequest.d.ts +10 -0
  46. package/dist/api/resources/automation/client/requests/DeleteTriggerAutomationRequest.js +2 -0
  47. package/dist/api/resources/automation/client/requests/DeleteWorkflowAutomationRequest.d.ts +10 -0
  48. package/dist/api/resources/automation/client/requests/DeleteWorkflowAutomationRequest.js +2 -0
  49. package/dist/api/resources/automation/client/requests/GetConfigAutomationRequest.d.ts +8 -0
  50. package/dist/api/resources/automation/client/requests/GetConfigAutomationRequest.js +2 -0
  51. package/dist/api/resources/automation/client/requests/GetTriggerAutomationRequest.d.ts +10 -0
  52. package/dist/api/resources/automation/client/requests/GetTriggerAutomationRequest.js +2 -0
  53. package/dist/api/resources/automation/client/requests/GetWorkflowAutomationRequest.d.ts +10 -0
  54. package/dist/api/resources/automation/client/requests/GetWorkflowAutomationRequest.js +2 -0
  55. package/dist/api/resources/automation/client/requests/UpdateConfigInputBody.d.ts +46 -0
  56. package/dist/api/resources/automation/client/requests/UpdateConfigInputBody.js +2 -0
  57. package/dist/api/resources/automation/client/requests/UpdateTriggerInputBody.d.ts +42 -0
  58. package/dist/api/resources/automation/client/requests/UpdateTriggerInputBody.js +11 -0
  59. package/dist/api/resources/automation/client/requests/UpdateWorkflowInputBody.d.ts +38 -0
  60. package/dist/api/resources/automation/client/requests/UpdateWorkflowInputBody.js +2 -0
  61. package/dist/api/resources/automation/client/requests/index.d.ts +10 -0
  62. package/dist/api/resources/automation/client/requests/index.js +2 -0
  63. package/dist/api/resources/automation/exports.d.ts +2 -0
  64. package/dist/api/resources/automation/exports.js +3 -0
  65. package/dist/api/resources/automation/index.d.ts +1 -0
  66. package/dist/api/resources/automation/index.js +1 -0
  67. package/dist/api/resources/campaigns/client/Client.d.ts +140 -0
  68. package/dist/api/resources/campaigns/client/Client.js +447 -0
  69. package/dist/api/resources/campaigns/client/index.d.ts +1 -0
  70. package/dist/api/resources/campaigns/client/index.js +1 -0
  71. package/dist/api/resources/campaigns/client/requests/AddRecipientsInputBody.d.ts +13 -0
  72. package/dist/api/resources/campaigns/client/requests/AddRecipientsInputBody.js +2 -0
  73. package/dist/api/resources/campaigns/client/requests/CancelCampaignsRequest.d.ts +10 -0
  74. package/dist/api/resources/campaigns/client/requests/CancelCampaignsRequest.js +2 -0
  75. package/dist/api/resources/campaigns/client/requests/CreateCampaignInputBody.d.ts +24 -0
  76. package/dist/api/resources/campaigns/client/requests/CreateCampaignInputBody.js +2 -0
  77. package/dist/api/resources/campaigns/client/requests/DeleteCampaignsRequest.d.ts +10 -0
  78. package/dist/api/resources/campaigns/client/requests/DeleteCampaignsRequest.js +2 -0
  79. package/dist/api/resources/campaigns/client/requests/GetCampaignsRequest.d.ts +10 -0
  80. package/dist/api/resources/campaigns/client/requests/GetCampaignsRequest.js +2 -0
  81. package/dist/api/resources/campaigns/client/requests/ListRecipientsCampaignsRequest.d.ts +10 -0
  82. package/dist/api/resources/campaigns/client/requests/ListRecipientsCampaignsRequest.js +2 -0
  83. package/dist/api/resources/campaigns/client/requests/PauseCampaignsRequest.d.ts +10 -0
  84. package/dist/api/resources/campaigns/client/requests/PauseCampaignsRequest.js +2 -0
  85. package/dist/api/resources/campaigns/client/requests/StartCampaignsRequest.d.ts +10 -0
  86. package/dist/api/resources/campaigns/client/requests/StartCampaignsRequest.js +2 -0
  87. package/dist/api/resources/campaigns/client/requests/UpdateCampaignInputBody.d.ts +26 -0
  88. package/dist/api/resources/campaigns/client/requests/UpdateCampaignInputBody.js +2 -0
  89. package/dist/api/resources/campaigns/client/requests/index.d.ts +9 -0
  90. package/dist/api/resources/campaigns/client/requests/index.js +1 -0
  91. package/dist/api/resources/campaigns/exports.d.ts +2 -0
  92. package/dist/api/resources/campaigns/exports.js +3 -0
  93. package/dist/api/resources/campaigns/index.d.ts +1 -0
  94. package/dist/api/resources/campaigns/index.js +1 -0
  95. package/dist/api/resources/catalog/client/Client.d.ts +103 -0
  96. package/dist/api/resources/catalog/client/Client.js +320 -0
  97. package/dist/api/resources/catalog/client/index.d.ts +1 -0
  98. package/dist/api/resources/catalog/client/index.js +1 -0
  99. package/dist/api/resources/catalog/client/requests/CreateProductInputBody.d.ts +30 -0
  100. package/dist/api/resources/catalog/client/requests/CreateProductInputBody.js +2 -0
  101. package/dist/api/resources/catalog/client/requests/CreateStoreInputBody.d.ts +16 -0
  102. package/dist/api/resources/catalog/client/requests/CreateStoreInputBody.js +2 -0
  103. package/dist/api/resources/catalog/client/requests/DeleteStoreCatalogRequest.d.ts +10 -0
  104. package/dist/api/resources/catalog/client/requests/DeleteStoreCatalogRequest.js +2 -0
  105. package/dist/api/resources/catalog/client/requests/GetStoreCatalogRequest.d.ts +10 -0
  106. package/dist/api/resources/catalog/client/requests/GetStoreCatalogRequest.js +2 -0
  107. package/dist/api/resources/catalog/client/requests/ListProductsCatalogRequest.d.ts +10 -0
  108. package/dist/api/resources/catalog/client/requests/ListProductsCatalogRequest.js +2 -0
  109. package/dist/api/resources/catalog/client/requests/UpdateStoreInputBody.d.ts +18 -0
  110. package/dist/api/resources/catalog/client/requests/UpdateStoreInputBody.js +2 -0
  111. package/dist/api/resources/catalog/client/requests/index.d.ts +6 -0
  112. package/dist/api/resources/catalog/client/requests/index.js +1 -0
  113. package/dist/api/resources/catalog/exports.d.ts +2 -0
  114. package/dist/api/resources/catalog/exports.js +3 -0
  115. package/dist/api/resources/catalog/index.d.ts +1 -0
  116. package/dist/api/resources/catalog/index.js +1 -0
  117. package/dist/api/resources/channels/client/Client.d.ts +75 -0
  118. package/dist/api/resources/channels/client/Client.js +229 -0
  119. package/dist/api/resources/channels/client/index.d.ts +1 -0
  120. package/dist/api/resources/channels/client/index.js +1 -0
  121. package/dist/api/resources/channels/client/requests/CreateChannelInputBody.d.ts +28 -0
  122. package/dist/api/resources/channels/client/requests/CreateChannelInputBody.js +2 -0
  123. package/dist/api/resources/channels/client/requests/DeleteChannelsRequest.d.ts +10 -0
  124. package/dist/api/resources/channels/client/requests/DeleteChannelsRequest.js +2 -0
  125. package/dist/api/resources/channels/client/requests/GetChannelsRequest.d.ts +10 -0
  126. package/dist/api/resources/channels/client/requests/GetChannelsRequest.js +2 -0
  127. package/dist/api/resources/channels/client/requests/UpdateChannelInputBody.d.ts +31 -0
  128. package/dist/api/resources/channels/client/requests/UpdateChannelInputBody.js +10 -0
  129. package/dist/api/resources/channels/client/requests/index.d.ts +4 -0
  130. package/dist/api/resources/channels/client/requests/index.js +1 -0
  131. package/dist/api/resources/channels/exports.d.ts +2 -0
  132. package/dist/api/resources/channels/exports.js +3 -0
  133. package/dist/api/resources/channels/index.d.ts +1 -0
  134. package/dist/api/resources/channels/index.js +1 -0
  135. package/dist/api/resources/contacts/client/Client.d.ts +118 -0
  136. package/dist/api/resources/contacts/client/Client.js +368 -0
  137. package/dist/api/resources/contacts/client/index.d.ts +1 -0
  138. package/dist/api/resources/contacts/client/index.js +1 -0
  139. package/dist/api/resources/contacts/client/requests/AssignInputBody.d.ts +12 -0
  140. package/dist/api/resources/contacts/client/requests/AssignInputBody.js +2 -0
  141. package/dist/api/resources/contacts/client/requests/CreateContactInputBody.d.ts +21 -0
  142. package/dist/api/resources/contacts/client/requests/CreateContactInputBody.js +2 -0
  143. package/dist/api/resources/contacts/client/requests/DeleteContactsRequest.d.ts +10 -0
  144. package/dist/api/resources/contacts/client/requests/DeleteContactsRequest.js +2 -0
  145. package/dist/api/resources/contacts/client/requests/GetContactsRequest.d.ts +10 -0
  146. package/dist/api/resources/contacts/client/requests/GetContactsRequest.js +2 -0
  147. package/dist/api/resources/contacts/client/requests/MarkReadContactsRequest.d.ts +10 -0
  148. package/dist/api/resources/contacts/client/requests/MarkReadContactsRequest.js +2 -0
  149. package/dist/api/resources/contacts/client/requests/SetTagsInputBody.d.ts +14 -0
  150. package/dist/api/resources/contacts/client/requests/SetTagsInputBody.js +2 -0
  151. package/dist/api/resources/contacts/client/requests/UpdateContactInputBody.d.ts +14 -0
  152. package/dist/api/resources/contacts/client/requests/UpdateContactInputBody.js +2 -0
  153. package/dist/api/resources/contacts/client/requests/index.d.ts +7 -0
  154. package/dist/api/resources/contacts/client/requests/index.js +1 -0
  155. package/dist/api/resources/contacts/exports.d.ts +2 -0
  156. package/dist/api/resources/contacts/exports.js +3 -0
  157. package/dist/api/resources/contacts/index.d.ts +1 -0
  158. package/dist/api/resources/contacts/index.js +1 -0
  159. package/dist/api/resources/identity/client/Client.d.ts +58 -0
  160. package/dist/api/resources/identity/client/Client.js +180 -0
  161. package/dist/api/resources/identity/client/index.d.ts +1 -0
  162. package/dist/api/resources/identity/client/index.js +1 -0
  163. package/dist/api/resources/identity/client/requests/CreateAccountInputBody.d.ts +15 -0
  164. package/dist/api/resources/identity/client/requests/CreateAccountInputBody.js +2 -0
  165. package/dist/api/resources/identity/client/requests/UpdateProfileInputBody.d.ts +10 -0
  166. package/dist/api/resources/identity/client/requests/UpdateProfileInputBody.js +2 -0
  167. package/dist/api/resources/identity/client/requests/index.d.ts +2 -0
  168. package/dist/api/resources/identity/client/requests/index.js +1 -0
  169. package/dist/api/resources/identity/exports.d.ts +2 -0
  170. package/dist/api/resources/identity/exports.js +3 -0
  171. package/dist/api/resources/identity/index.d.ts +1 -0
  172. package/dist/api/resources/identity/index.js +1 -0
  173. package/dist/api/resources/index.d.ts +36 -0
  174. package/dist/api/resources/index.js +36 -0
  175. package/dist/api/resources/insights/client/Client.d.ts +90 -0
  176. package/dist/api/resources/insights/client/Client.js +274 -0
  177. package/dist/api/resources/insights/client/index.d.ts +1 -0
  178. package/dist/api/resources/insights/client/index.js +1 -0
  179. package/dist/api/resources/insights/client/requests/CreatePanelInputBody.d.ts +81 -0
  180. package/dist/api/resources/insights/client/requests/CreatePanelInputBody.js +30 -0
  181. package/dist/api/resources/insights/client/requests/DeletePanelInsightsRequest.d.ts +10 -0
  182. package/dist/api/resources/insights/client/requests/DeletePanelInsightsRequest.js +2 -0
  183. package/dist/api/resources/insights/client/requests/GetPanelDataInsightsRequest.d.ts +10 -0
  184. package/dist/api/resources/insights/client/requests/GetPanelDataInsightsRequest.js +2 -0
  185. package/dist/api/resources/insights/client/requests/GetPanelInsightsRequest.d.ts +10 -0
  186. package/dist/api/resources/insights/client/requests/GetPanelInsightsRequest.js +2 -0
  187. package/dist/api/resources/insights/client/requests/UpdatePanelInputBody.d.ts +83 -0
  188. package/dist/api/resources/insights/client/requests/UpdatePanelInputBody.js +30 -0
  189. package/dist/api/resources/insights/client/requests/index.d.ts +5 -0
  190. package/dist/api/resources/insights/client/requests/index.js +2 -0
  191. package/dist/api/resources/insights/exports.d.ts +2 -0
  192. package/dist/api/resources/insights/exports.js +3 -0
  193. package/dist/api/resources/insights/index.d.ts +1 -0
  194. package/dist/api/resources/insights/index.js +1 -0
  195. package/dist/api/resources/intelligence/client/Client.d.ts +76 -0
  196. package/dist/api/resources/intelligence/client/Client.js +239 -0
  197. package/dist/api/resources/intelligence/client/index.d.ts +1 -0
  198. package/dist/api/resources/intelligence/client/index.js +1 -0
  199. package/dist/api/resources/intelligence/client/requests/CreateContextInputBody.d.ts +33 -0
  200. package/dist/api/resources/intelligence/client/requests/CreateContextInputBody.js +9 -0
  201. package/dist/api/resources/intelligence/client/requests/DeleteContextIntelligenceRequest.d.ts +10 -0
  202. package/dist/api/resources/intelligence/client/requests/DeleteContextIntelligenceRequest.js +2 -0
  203. package/dist/api/resources/intelligence/client/requests/GetContextIntelligenceRequest.d.ts +10 -0
  204. package/dist/api/resources/intelligence/client/requests/GetContextIntelligenceRequest.js +2 -0
  205. package/dist/api/resources/intelligence/client/requests/UpdateContextInputBody.d.ts +34 -0
  206. package/dist/api/resources/intelligence/client/requests/UpdateContextInputBody.js +9 -0
  207. package/dist/api/resources/intelligence/client/requests/index.d.ts +4 -0
  208. package/dist/api/resources/intelligence/client/requests/index.js +2 -0
  209. package/dist/api/resources/intelligence/exports.d.ts +2 -0
  210. package/dist/api/resources/intelligence/exports.js +3 -0
  211. package/dist/api/resources/intelligence/index.d.ts +1 -0
  212. package/dist/api/resources/intelligence/index.js +1 -0
  213. package/dist/api/resources/media/client/Client.d.ts +40 -0
  214. package/dist/api/resources/media/client/Client.js +107 -0
  215. package/dist/api/resources/media/client/index.d.ts +1 -0
  216. package/dist/api/resources/media/client/index.js +1 -0
  217. package/dist/api/resources/media/client/requests/CreateDownloadUrlInputBody.d.ts +10 -0
  218. package/dist/api/resources/media/client/requests/CreateDownloadUrlInputBody.js +2 -0
  219. package/dist/api/resources/media/client/requests/CreateUploadUrlInputBody.d.ts +13 -0
  220. package/dist/api/resources/media/client/requests/CreateUploadUrlInputBody.js +2 -0
  221. package/dist/api/resources/media/client/requests/index.d.ts +2 -0
  222. package/dist/api/resources/media/client/requests/index.js +1 -0
  223. package/dist/api/resources/media/exports.d.ts +2 -0
  224. package/dist/api/resources/media/exports.js +3 -0
  225. package/dist/api/resources/media/index.d.ts +1 -0
  226. package/dist/api/resources/media/index.js +1 -0
  227. package/dist/api/resources/messages/client/Client.d.ts +40 -0
  228. package/dist/api/resources/messages/client/Client.js +113 -0
  229. package/dist/api/resources/messages/client/index.d.ts +1 -0
  230. package/dist/api/resources/messages/client/index.js +1 -0
  231. package/dist/api/resources/messages/client/requests/ListMessagesRequest.d.ts +14 -0
  232. package/dist/api/resources/messages/client/requests/ListMessagesRequest.js +2 -0
  233. package/dist/api/resources/messages/client/requests/SendMessageInputBody.d.ts +29 -0
  234. package/dist/api/resources/messages/client/requests/SendMessageInputBody.js +2 -0
  235. package/dist/api/resources/messages/client/requests/index.d.ts +2 -0
  236. package/dist/api/resources/messages/client/requests/index.js +1 -0
  237. package/dist/api/resources/messages/exports.d.ts +2 -0
  238. package/dist/api/resources/messages/exports.js +3 -0
  239. package/dist/api/resources/messages/index.d.ts +1 -0
  240. package/dist/api/resources/messages/index.js +1 -0
  241. package/dist/api/resources/organizations/client/Client.d.ts +47 -0
  242. package/dist/api/resources/organizations/client/Client.js +140 -0
  243. package/dist/api/resources/organizations/client/index.d.ts +1 -0
  244. package/dist/api/resources/organizations/client/index.js +1 -0
  245. package/dist/api/resources/organizations/client/requests/CreateOrganizationInputBody.d.ts +15 -0
  246. package/dist/api/resources/organizations/client/requests/CreateOrganizationInputBody.js +2 -0
  247. package/dist/api/resources/organizations/client/requests/index.d.ts +1 -0
  248. package/dist/api/resources/organizations/client/requests/index.js +1 -0
  249. package/dist/api/resources/organizations/exports.d.ts +2 -0
  250. package/dist/api/resources/organizations/exports.js +3 -0
  251. package/dist/api/resources/organizations/index.d.ts +1 -0
  252. package/dist/api/resources/organizations/index.js +1 -0
  253. package/dist/api/resources/routing/client/Client.d.ts +182 -0
  254. package/dist/api/resources/routing/client/Client.js +594 -0
  255. package/dist/api/resources/routing/client/index.d.ts +1 -0
  256. package/dist/api/resources/routing/client/index.js +1 -0
  257. package/dist/api/resources/routing/client/requests/AddAgentInputBody.d.ts +23 -0
  258. package/dist/api/resources/routing/client/requests/AddAgentInputBody.js +9 -0
  259. package/dist/api/resources/routing/client/requests/AssignHandoffInputBody.d.ts +13 -0
  260. package/dist/api/resources/routing/client/requests/AssignHandoffInputBody.js +2 -0
  261. package/dist/api/resources/routing/client/requests/CreateHandoffInputBody.d.ts +32 -0
  262. package/dist/api/resources/routing/client/requests/CreateHandoffInputBody.js +11 -0
  263. package/dist/api/resources/routing/client/requests/CreateTeamInputBody.d.ts +27 -0
  264. package/dist/api/resources/routing/client/requests/CreateTeamInputBody.js +10 -0
  265. package/dist/api/resources/routing/client/requests/DeleteTeamRoutingRequest.d.ts +10 -0
  266. package/dist/api/resources/routing/client/requests/DeleteTeamRoutingRequest.js +2 -0
  267. package/dist/api/resources/routing/client/requests/GetTeamRoutingRequest.d.ts +10 -0
  268. package/dist/api/resources/routing/client/requests/GetTeamRoutingRequest.js +2 -0
  269. package/dist/api/resources/routing/client/requests/ListAgentsRoutingRequest.d.ts +10 -0
  270. package/dist/api/resources/routing/client/requests/ListAgentsRoutingRequest.js +2 -0
  271. package/dist/api/resources/routing/client/requests/ListHandoffsRoutingRequest.d.ts +8 -0
  272. package/dist/api/resources/routing/client/requests/ListHandoffsRoutingRequest.js +2 -0
  273. package/dist/api/resources/routing/client/requests/PickNextHandoffInputBody.d.ts +10 -0
  274. package/dist/api/resources/routing/client/requests/PickNextHandoffInputBody.js +2 -0
  275. package/dist/api/resources/routing/client/requests/RemoveAgentRoutingRequest.d.ts +13 -0
  276. package/dist/api/resources/routing/client/requests/RemoveAgentRoutingRequest.js +2 -0
  277. package/dist/api/resources/routing/client/requests/ResumeHandoffRoutingRequest.d.ts +10 -0
  278. package/dist/api/resources/routing/client/requests/ResumeHandoffRoutingRequest.js +2 -0
  279. package/dist/api/resources/routing/client/requests/UpdateTeamInputBody.d.ts +29 -0
  280. package/dist/api/resources/routing/client/requests/UpdateTeamInputBody.js +10 -0
  281. package/dist/api/resources/routing/client/requests/index.d.ts +12 -0
  282. package/dist/api/resources/routing/client/requests/index.js +4 -0
  283. package/dist/api/resources/routing/exports.d.ts +2 -0
  284. package/dist/api/resources/routing/exports.js +3 -0
  285. package/dist/api/resources/routing/index.d.ts +1 -0
  286. package/dist/api/resources/routing/index.js +1 -0
  287. package/dist/api/resources/snippets/client/Client.d.ts +76 -0
  288. package/dist/api/resources/snippets/client/Client.js +230 -0
  289. package/dist/api/resources/snippets/client/index.d.ts +1 -0
  290. package/dist/api/resources/snippets/client/index.js +1 -0
  291. package/dist/api/resources/snippets/client/requests/CreateSnippetInputBody.d.ts +21 -0
  292. package/dist/api/resources/snippets/client/requests/CreateSnippetInputBody.js +2 -0
  293. package/dist/api/resources/snippets/client/requests/DeleteSnippetsRequest.d.ts +10 -0
  294. package/dist/api/resources/snippets/client/requests/DeleteSnippetsRequest.js +2 -0
  295. package/dist/api/resources/snippets/client/requests/GetSnippetsRequest.d.ts +10 -0
  296. package/dist/api/resources/snippets/client/requests/GetSnippetsRequest.js +2 -0
  297. package/dist/api/resources/snippets/client/requests/UpdateSnippetInputBody.d.ts +22 -0
  298. package/dist/api/resources/snippets/client/requests/UpdateSnippetInputBody.js +2 -0
  299. package/dist/api/resources/snippets/client/requests/index.d.ts +4 -0
  300. package/dist/api/resources/snippets/client/requests/index.js +1 -0
  301. package/dist/api/resources/snippets/exports.d.ts +2 -0
  302. package/dist/api/resources/snippets/exports.js +3 -0
  303. package/dist/api/resources/snippets/index.d.ts +1 -0
  304. package/dist/api/resources/snippets/index.js +1 -0
  305. package/dist/api/resources/tags/client/Client.d.ts +62 -0
  306. package/dist/api/resources/tags/client/Client.js +186 -0
  307. package/dist/api/resources/tags/client/index.d.ts +1 -0
  308. package/dist/api/resources/tags/client/index.js +1 -0
  309. package/dist/api/resources/tags/client/requests/CreateTagInputBody.d.ts +24 -0
  310. package/dist/api/resources/tags/client/requests/CreateTagInputBody.js +13 -0
  311. package/dist/api/resources/tags/client/requests/DeleteTagsRequest.d.ts +10 -0
  312. package/dist/api/resources/tags/client/requests/DeleteTagsRequest.js +2 -0
  313. package/dist/api/resources/tags/client/requests/UpdateTagInputBody.d.ts +24 -0
  314. package/dist/api/resources/tags/client/requests/UpdateTagInputBody.js +13 -0
  315. package/dist/api/resources/tags/client/requests/index.d.ts +3 -0
  316. package/dist/api/resources/tags/client/requests/index.js +2 -0
  317. package/dist/api/resources/tags/exports.d.ts +2 -0
  318. package/dist/api/resources/tags/exports.js +3 -0
  319. package/dist/api/resources/tags/index.d.ts +1 -0
  320. package/dist/api/resources/tags/index.js +1 -0
  321. package/dist/api/resources/templates/client/Client.d.ts +100 -0
  322. package/dist/api/resources/templates/client/Client.js +313 -0
  323. package/dist/api/resources/templates/client/index.d.ts +1 -0
  324. package/dist/api/resources/templates/client/index.js +1 -0
  325. package/dist/api/resources/templates/client/requests/CreateTemplateInputBody.d.ts +42 -0
  326. package/dist/api/resources/templates/client/requests/CreateTemplateInputBody.js +2 -0
  327. package/dist/api/resources/templates/client/requests/DeleteTemplatesRequest.d.ts +10 -0
  328. package/dist/api/resources/templates/client/requests/DeleteTemplatesRequest.js +2 -0
  329. package/dist/api/resources/templates/client/requests/GetTemplatesRequest.d.ts +10 -0
  330. package/dist/api/resources/templates/client/requests/GetTemplatesRequest.js +2 -0
  331. package/dist/api/resources/templates/client/requests/SubmitTemplatesRequest.d.ts +10 -0
  332. package/dist/api/resources/templates/client/requests/SubmitTemplatesRequest.js +2 -0
  333. package/dist/api/resources/templates/client/requests/UpdateTemplateInputBody.d.ts +42 -0
  334. package/dist/api/resources/templates/client/requests/UpdateTemplateInputBody.js +2 -0
  335. package/dist/api/resources/templates/client/requests/index.d.ts +5 -0
  336. package/dist/api/resources/templates/client/requests/index.js +1 -0
  337. package/dist/api/resources/templates/exports.d.ts +2 -0
  338. package/dist/api/resources/templates/exports.js +3 -0
  339. package/dist/api/resources/templates/index.d.ts +1 -0
  340. package/dist/api/resources/templates/index.js +1 -0
  341. package/dist/api/resources/webhooks/client/Client.d.ts +152 -0
  342. package/dist/api/resources/webhooks/client/Client.js +490 -0
  343. package/dist/api/resources/webhooks/client/index.d.ts +1 -0
  344. package/dist/api/resources/webhooks/client/index.js +1 -0
  345. package/dist/api/resources/webhooks/client/requests/CreateActionInputBody.d.ts +21 -0
  346. package/dist/api/resources/webhooks/client/requests/CreateActionInputBody.js +2 -0
  347. package/dist/api/resources/webhooks/client/requests/CreateWebhookInputBody.d.ts +21 -0
  348. package/dist/api/resources/webhooks/client/requests/CreateWebhookInputBody.js +2 -0
  349. package/dist/api/resources/webhooks/client/requests/DeleteActionWebhooksRequest.d.ts +10 -0
  350. package/dist/api/resources/webhooks/client/requests/DeleteActionWebhooksRequest.js +2 -0
  351. package/dist/api/resources/webhooks/client/requests/DeleteWebhooksRequest.d.ts +10 -0
  352. package/dist/api/resources/webhooks/client/requests/DeleteWebhooksRequest.js +2 -0
  353. package/dist/api/resources/webhooks/client/requests/GetActionWebhooksRequest.d.ts +10 -0
  354. package/dist/api/resources/webhooks/client/requests/GetActionWebhooksRequest.js +2 -0
  355. package/dist/api/resources/webhooks/client/requests/GetWebhooksRequest.d.ts +10 -0
  356. package/dist/api/resources/webhooks/client/requests/GetWebhooksRequest.js +2 -0
  357. package/dist/api/resources/webhooks/client/requests/TestWebhooksRequest.d.ts +10 -0
  358. package/dist/api/resources/webhooks/client/requests/TestWebhooksRequest.js +2 -0
  359. package/dist/api/resources/webhooks/client/requests/UpdateActionInputBody.d.ts +22 -0
  360. package/dist/api/resources/webhooks/client/requests/UpdateActionInputBody.js +2 -0
  361. package/dist/api/resources/webhooks/client/requests/UpdateWebhookInputBody.d.ts +22 -0
  362. package/dist/api/resources/webhooks/client/requests/UpdateWebhookInputBody.js +2 -0
  363. package/dist/api/resources/webhooks/client/requests/index.d.ts +9 -0
  364. package/dist/api/resources/webhooks/client/requests/index.js +1 -0
  365. package/dist/api/resources/webhooks/exports.d.ts +2 -0
  366. package/dist/api/resources/webhooks/exports.js +3 -0
  367. package/dist/api/resources/webhooks/index.d.ts +1 -0
  368. package/dist/api/resources/webhooks/index.js +1 -0
  369. package/dist/api/types/ActionResponse.d.ts +23 -0
  370. package/dist/api/types/ActionResponse.js +2 -0
  371. package/dist/api/types/AddRecipientsOutputBody.d.ts +7 -0
  372. package/dist/api/types/AddRecipientsOutputBody.js +2 -0
  373. package/dist/api/types/AgentResponse.d.ts +18 -0
  374. package/dist/api/types/AgentResponse.js +2 -0
  375. package/dist/api/types/AutomationConfigResponse.d.ts +48 -0
  376. package/dist/api/types/AutomationConfigResponse.js +2 -0
  377. package/dist/api/types/AutomationTriggerResponse.d.ts +40 -0
  378. package/dist/api/types/AutomationTriggerResponse.js +2 -0
  379. package/dist/api/types/AutomationWorkflowResponse.d.ts +46 -0
  380. package/dist/api/types/AutomationWorkflowResponse.js +2 -0
  381. package/dist/api/types/CampaignResponse.d.ts +48 -0
  382. package/dist/api/types/CampaignResponse.js +2 -0
  383. package/dist/api/types/ChannelResponse.d.ts +43 -0
  384. package/dist/api/types/ChannelResponse.js +10 -0
  385. package/dist/api/types/ChartDataPointResponse.d.ts +6 -0
  386. package/dist/api/types/ChartDataPointResponse.js +2 -0
  387. package/dist/api/types/ContactResponse.d.ts +34 -0
  388. package/dist/api/types/ContactResponse.js +2 -0
  389. package/dist/api/types/CreateDownloadUrlOutputBody.d.ts +8 -0
  390. package/dist/api/types/CreateDownloadUrlOutputBody.js +2 -0
  391. package/dist/api/types/CreateUploadUrlOutputBody.d.ts +10 -0
  392. package/dist/api/types/CreateUploadUrlOutputBody.js +2 -0
  393. package/dist/api/types/ErrorDetail.d.ts +8 -0
  394. package/dist/api/types/ErrorDetail.js +2 -0
  395. package/dist/api/types/ErrorModel.d.ts +17 -0
  396. package/dist/api/types/ErrorModel.js +2 -0
  397. package/dist/api/types/EventResponse.d.ts +21 -0
  398. package/dist/api/types/EventResponse.js +2 -0
  399. package/dist/api/types/HandoffResponse.d.ts +48 -0
  400. package/dist/api/types/HandoffResponse.js +2 -0
  401. package/dist/api/types/IdentityAccountResponse.d.ts +28 -0
  402. package/dist/api/types/IdentityAccountResponse.js +2 -0
  403. package/dist/api/types/IntelligenceContextResponse.d.ts +39 -0
  404. package/dist/api/types/IntelligenceContextResponse.js +9 -0
  405. package/dist/api/types/ListAccountsOutputBody.d.ts +7 -0
  406. package/dist/api/types/ListAccountsOutputBody.js +2 -0
  407. package/dist/api/types/ListActionsOutputBody.d.ts +7 -0
  408. package/dist/api/types/ListActionsOutputBody.js +2 -0
  409. package/dist/api/types/ListAgentsOutputBody.d.ts +7 -0
  410. package/dist/api/types/ListAgentsOutputBody.js +2 -0
  411. package/dist/api/types/ListCampaignsOutputBody.d.ts +7 -0
  412. package/dist/api/types/ListCampaignsOutputBody.js +2 -0
  413. package/dist/api/types/ListChannelsOutputBody.d.ts +7 -0
  414. package/dist/api/types/ListChannelsOutputBody.js +2 -0
  415. package/dist/api/types/ListContactsOutputBody.d.ts +7 -0
  416. package/dist/api/types/ListContactsOutputBody.js +2 -0
  417. package/dist/api/types/ListContextsOutputBody.d.ts +7 -0
  418. package/dist/api/types/ListContextsOutputBody.js +2 -0
  419. package/dist/api/types/ListEventsOutputBody.d.ts +7 -0
  420. package/dist/api/types/ListEventsOutputBody.js +2 -0
  421. package/dist/api/types/ListHandoffsOutputBody.d.ts +7 -0
  422. package/dist/api/types/ListHandoffsOutputBody.js +2 -0
  423. package/dist/api/types/ListMessagesOutputBody.d.ts +7 -0
  424. package/dist/api/types/ListMessagesOutputBody.js +2 -0
  425. package/dist/api/types/ListOrganizationsOutputBody.d.ts +7 -0
  426. package/dist/api/types/ListOrganizationsOutputBody.js +2 -0
  427. package/dist/api/types/ListPanelsOutputBody.d.ts +7 -0
  428. package/dist/api/types/ListPanelsOutputBody.js +2 -0
  429. package/dist/api/types/ListProductsOutputBody.d.ts +7 -0
  430. package/dist/api/types/ListProductsOutputBody.js +2 -0
  431. package/dist/api/types/ListRecipientsOutputBody.d.ts +7 -0
  432. package/dist/api/types/ListRecipientsOutputBody.js +2 -0
  433. package/dist/api/types/ListSnippetsOutputBody.d.ts +7 -0
  434. package/dist/api/types/ListSnippetsOutputBody.js +2 -0
  435. package/dist/api/types/ListStoresOutputBody.d.ts +7 -0
  436. package/dist/api/types/ListStoresOutputBody.js +2 -0
  437. package/dist/api/types/ListTagsOutputBody.d.ts +7 -0
  438. package/dist/api/types/ListTagsOutputBody.js +2 -0
  439. package/dist/api/types/ListTeamsOutputBody.d.ts +7 -0
  440. package/dist/api/types/ListTeamsOutputBody.js +2 -0
  441. package/dist/api/types/ListTemplatesOutputBody.d.ts +7 -0
  442. package/dist/api/types/ListTemplatesOutputBody.js +2 -0
  443. package/dist/api/types/ListTriggersOutputBody.d.ts +7 -0
  444. package/dist/api/types/ListTriggersOutputBody.js +2 -0
  445. package/dist/api/types/ListWebhooksOutputBody.d.ts +7 -0
  446. package/dist/api/types/ListWebhooksOutputBody.js +2 -0
  447. package/dist/api/types/ListWorkflowsOutputBody.d.ts +7 -0
  448. package/dist/api/types/ListWorkflowsOutputBody.js +2 -0
  449. package/dist/api/types/LoginOutputBody.d.ts +13 -0
  450. package/dist/api/types/LoginOutputBody.js +2 -0
  451. package/dist/api/types/MessageResponse.d.ts +45 -0
  452. package/dist/api/types/MessageResponse.js +2 -0
  453. package/dist/api/types/OrganizationResponse.d.ts +16 -0
  454. package/dist/api/types/OrganizationResponse.js +2 -0
  455. package/dist/api/types/PanelDataResponse.d.ts +13 -0
  456. package/dist/api/types/PanelDataResponse.js +2 -0
  457. package/dist/api/types/PanelFilterInput.d.ts +21 -0
  458. package/dist/api/types/PanelFilterInput.js +14 -0
  459. package/dist/api/types/PanelFilterResponse.d.ts +8 -0
  460. package/dist/api/types/PanelFilterResponse.js +2 -0
  461. package/dist/api/types/PanelResponse.d.ts +55 -0
  462. package/dist/api/types/PanelResponse.js +2 -0
  463. package/dist/api/types/ProductResponse.d.ts +34 -0
  464. package/dist/api/types/ProductResponse.js +2 -0
  465. package/dist/api/types/RecipientInput.d.ts +10 -0
  466. package/dist/api/types/RecipientInput.js +2 -0
  467. package/dist/api/types/RecipientResponse.d.ts +30 -0
  468. package/dist/api/types/RecipientResponse.js +2 -0
  469. package/dist/api/types/RefreshOutputBody.d.ts +10 -0
  470. package/dist/api/types/RefreshOutputBody.js +2 -0
  471. package/dist/api/types/RegisterOutputBody.d.ts +7 -0
  472. package/dist/api/types/RegisterOutputBody.js +2 -0
  473. package/dist/api/types/SnippetResponse.d.ts +27 -0
  474. package/dist/api/types/SnippetResponse.js +2 -0
  475. package/dist/api/types/StoreResponse.d.ts +22 -0
  476. package/dist/api/types/StoreResponse.js +2 -0
  477. package/dist/api/types/TagResponse.d.ts +14 -0
  478. package/dist/api/types/TagResponse.js +2 -0
  479. package/dist/api/types/TeamResponse.d.ts +26 -0
  480. package/dist/api/types/TeamResponse.js +2 -0
  481. package/dist/api/types/TemplateResponse.d.ts +46 -0
  482. package/dist/api/types/TemplateResponse.js +2 -0
  483. package/dist/api/types/WebhookResponse.d.ts +22 -0
  484. package/dist/api/types/WebhookResponse.js +2 -0
  485. package/dist/api/types/index.d.ts +58 -0
  486. package/dist/api/types/index.js +58 -0
  487. package/dist/auth/BearerAuthProvider.d.ts +20 -0
  488. package/dist/auth/BearerAuthProvider.js +32 -0
  489. package/dist/auth/index.d.ts +1 -0
  490. package/dist/auth/index.js +1 -0
  491. package/dist/core/auth/AuthProvider.d.ts +8 -0
  492. package/dist/core/auth/AuthProvider.js +6 -0
  493. package/dist/core/auth/AuthRequest.d.ts +9 -0
  494. package/dist/core/auth/AuthRequest.js +1 -0
  495. package/dist/core/auth/BasicAuth.d.ts +8 -0
  496. package/dist/core/auth/BasicAuth.js +29 -0
  497. package/dist/core/auth/BearerToken.d.ts +7 -0
  498. package/dist/core/auth/BearerToken.js +13 -0
  499. package/dist/core/auth/NoOpAuthProvider.d.ts +5 -0
  500. package/dist/core/auth/NoOpAuthProvider.js +5 -0
  501. package/dist/core/auth/index.d.ts +5 -0
  502. package/dist/core/auth/index.js +4 -0
  503. package/dist/core/base64.d.ts +2 -0
  504. package/dist/core/base64.js +22 -0
  505. package/dist/core/exports.d.ts +1 -0
  506. package/dist/core/exports.js +1 -0
  507. package/dist/core/fetcher/APIResponse.d.ts +20 -0
  508. package/dist/core/fetcher/APIResponse.js +1 -0
  509. package/dist/core/fetcher/BinaryResponse.d.ts +19 -0
  510. package/dist/core/fetcher/BinaryResponse.js +14 -0
  511. package/dist/core/fetcher/EndpointMetadata.d.ts +13 -0
  512. package/dist/core/fetcher/EndpointMetadata.js +1 -0
  513. package/dist/core/fetcher/EndpointSupplier.d.ts +12 -0
  514. package/dist/core/fetcher/EndpointSupplier.js +10 -0
  515. package/dist/core/fetcher/Fetcher.d.ts +56 -0
  516. package/dist/core/fetcher/Fetcher.js +306 -0
  517. package/dist/core/fetcher/Headers.d.ts +2 -0
  518. package/dist/core/fetcher/Headers.js +83 -0
  519. package/dist/core/fetcher/HttpResponsePromise.d.ts +58 -0
  520. package/dist/core/fetcher/HttpResponsePromise.js +90 -0
  521. package/dist/core/fetcher/RawResponse.d.ts +29 -0
  522. package/dist/core/fetcher/RawResponse.js +40 -0
  523. package/dist/core/fetcher/Supplier.d.ts +4 -0
  524. package/dist/core/fetcher/Supplier.js +10 -0
  525. package/dist/core/fetcher/createRequestUrl.d.ts +1 -0
  526. package/dist/core/fetcher/createRequestUrl.js +5 -0
  527. package/dist/core/fetcher/getErrorResponseBody.d.ts +1 -0
  528. package/dist/core/fetcher/getErrorResponseBody.js +30 -0
  529. package/dist/core/fetcher/getFetchFn.d.ts +1 -0
  530. package/dist/core/fetcher/getFetchFn.js +3 -0
  531. package/dist/core/fetcher/getHeader.d.ts +1 -0
  532. package/dist/core/fetcher/getHeader.js +8 -0
  533. package/dist/core/fetcher/getRequestBody.d.ts +7 -0
  534. package/dist/core/fetcher/getRequestBody.js +13 -0
  535. package/dist/core/fetcher/getResponseBody.d.ts +1 -0
  536. package/dist/core/fetcher/getResponseBody.js +55 -0
  537. package/dist/core/fetcher/index.d.ts +13 -0
  538. package/dist/core/fetcher/index.js +7 -0
  539. package/dist/core/fetcher/makePassthroughRequest.d.ts +49 -0
  540. package/dist/core/fetcher/makePassthroughRequest.js +119 -0
  541. package/dist/core/fetcher/makeRequest.d.ts +6 -0
  542. package/dist/core/fetcher/makeRequest.js +53 -0
  543. package/dist/core/fetcher/requestWithRetries.d.ts +1 -0
  544. package/dist/core/fetcher/requestWithRetries.js +56 -0
  545. package/dist/core/fetcher/signals.d.ts +5 -0
  546. package/dist/core/fetcher/signals.js +20 -0
  547. package/dist/core/headers.d.ts +2 -0
  548. package/dist/core/headers.js +27 -0
  549. package/dist/core/index.d.ts +6 -0
  550. package/dist/core/index.js +6 -0
  551. package/dist/core/json.d.ts +15 -0
  552. package/dist/core/json.js +19 -0
  553. package/dist/core/logging/exports.d.ts +18 -0
  554. package/dist/core/logging/exports.js +9 -0
  555. package/dist/core/logging/index.d.ts +1 -0
  556. package/dist/core/logging/index.js +1 -0
  557. package/dist/core/logging/logger.d.ts +126 -0
  558. package/dist/core/logging/logger.js +140 -0
  559. package/dist/core/runtime/index.d.ts +1 -0
  560. package/dist/core/runtime/index.js +1 -0
  561. package/dist/core/runtime/runtime.d.ts +9 -0
  562. package/dist/core/runtime/runtime.js +100 -0
  563. package/dist/core/url/QueryStringBuilder.d.ts +47 -0
  564. package/dist/core/url/QueryStringBuilder.js +78 -0
  565. package/dist/core/url/encodePathParam.d.ts +1 -0
  566. package/dist/core/url/encodePathParam.js +18 -0
  567. package/dist/core/url/index.d.ts +4 -0
  568. package/dist/core/url/index.js +4 -0
  569. package/dist/core/url/join.d.ts +1 -0
  570. package/dist/core/url/join.js +65 -0
  571. package/dist/core/url/qs.d.ts +7 -0
  572. package/dist/core/url/qs.js +76 -0
  573. package/dist/environments.d.ts +4 -0
  574. package/dist/environments.js +4 -0
  575. package/dist/errors/BoltixApiError.d.ts +14 -0
  576. package/dist/errors/BoltixApiError.js +35 -0
  577. package/dist/errors/BoltixApiTimeoutError.d.ts +6 -0
  578. package/dist/errors/BoltixApiTimeoutError.js +15 -0
  579. package/dist/errors/handleNonStatusCodeError.d.ts +2 -0
  580. package/dist/errors/handleNonStatusCodeError.js +32 -0
  581. package/dist/errors/index.d.ts +2 -0
  582. package/dist/errors/index.js +2 -0
  583. package/dist/exports.d.ts +1 -0
  584. package/dist/exports.js +1 -0
  585. package/dist/index.d.ts +6 -0
  586. package/dist/index.js +5 -0
  587. package/package.json +37 -0
@@ -0,0 +1,490 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ import { normalizeClientOptionsWithAuth } from "../../../../BaseClient.js";
3
+ import { mergeHeaders } from "../../../../core/headers.js";
4
+ import * as core from "../../../../core/index.js";
5
+ import * as environments from "../../../../environments.js";
6
+ import { handleNonStatusCodeError } from "../../../../errors/handleNonStatusCodeError.js";
7
+ import * as errors from "../../../../errors/index.js";
8
+ export class WebhooksClient {
9
+ _options;
10
+ constructor(options = {}) {
11
+ this._options = normalizeClientOptionsWithAuth(options);
12
+ }
13
+ /**
14
+ * Returns all webhook actions for the current organization.
15
+ *
16
+ * @param {WebhooksClient.RequestOptions} requestOptions - Request-specific configuration.
17
+ *
18
+ * @example
19
+ * await client.webhooks.listActions()
20
+ */
21
+ listActions(requestOptions) {
22
+ return core.HttpResponsePromise.fromPromise(this.__listActions(requestOptions));
23
+ }
24
+ async __listActions(requestOptions) {
25
+ const _authRequest = await this._options.authProvider.getAuthRequest();
26
+ const _headers = mergeHeaders(_authRequest.headers, this._options?.headers, requestOptions?.headers);
27
+ const _response = await core.fetcher({
28
+ url: core.url.join((await core.Supplier.get(this._options.baseUrl)) ??
29
+ (await core.Supplier.get(this._options.environment)) ??
30
+ environments.BoltixApiEnvironment.Production, "v1/actions"),
31
+ method: "GET",
32
+ headers: _headers,
33
+ queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(),
34
+ timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
35
+ maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
36
+ abortSignal: requestOptions?.abortSignal,
37
+ fetchFn: this._options?.fetch,
38
+ logging: this._options.logging,
39
+ });
40
+ if (_response.ok) {
41
+ return { data: _response.body, rawResponse: _response.rawResponse };
42
+ }
43
+ if (_response.error.reason === "status-code") {
44
+ throw new errors.BoltixApiError({
45
+ statusCode: _response.error.statusCode,
46
+ body: _response.error.body,
47
+ rawResponse: _response.rawResponse,
48
+ });
49
+ }
50
+ return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/v1/actions");
51
+ }
52
+ /**
53
+ * Creates a new webhook action.
54
+ *
55
+ * @param {BoltixApi.CreateActionInputBody} request
56
+ * @param {WebhooksClient.RequestOptions} requestOptions - Request-specific configuration.
57
+ *
58
+ * @example
59
+ * await client.webhooks.createAction({
60
+ * action_type: "action_type",
61
+ * name: "name"
62
+ * })
63
+ */
64
+ createAction(request, requestOptions) {
65
+ return core.HttpResponsePromise.fromPromise(this.__createAction(request, requestOptions));
66
+ }
67
+ async __createAction(request, requestOptions) {
68
+ const _authRequest = await this._options.authProvider.getAuthRequest();
69
+ const _headers = mergeHeaders(_authRequest.headers, this._options?.headers, requestOptions?.headers);
70
+ const _response = await core.fetcher({
71
+ url: core.url.join((await core.Supplier.get(this._options.baseUrl)) ??
72
+ (await core.Supplier.get(this._options.environment)) ??
73
+ environments.BoltixApiEnvironment.Production, "v1/actions"),
74
+ method: "POST",
75
+ headers: _headers,
76
+ contentType: "application/json",
77
+ queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(),
78
+ requestType: "json",
79
+ body: request,
80
+ timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
81
+ maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
82
+ abortSignal: requestOptions?.abortSignal,
83
+ fetchFn: this._options?.fetch,
84
+ logging: this._options.logging,
85
+ });
86
+ if (_response.ok) {
87
+ return { data: _response.body, rawResponse: _response.rawResponse };
88
+ }
89
+ if (_response.error.reason === "status-code") {
90
+ throw new errors.BoltixApiError({
91
+ statusCode: _response.error.statusCode,
92
+ body: _response.error.body,
93
+ rawResponse: _response.rawResponse,
94
+ });
95
+ }
96
+ return handleNonStatusCodeError(_response.error, _response.rawResponse, "POST", "/v1/actions");
97
+ }
98
+ /**
99
+ * Returns a single action by ID.
100
+ *
101
+ * @param {BoltixApi.GetActionWebhooksRequest} request
102
+ * @param {WebhooksClient.RequestOptions} requestOptions - Request-specific configuration.
103
+ *
104
+ * @example
105
+ * await client.webhooks.getAction({
106
+ * id: "id"
107
+ * })
108
+ */
109
+ getAction(request, requestOptions) {
110
+ return core.HttpResponsePromise.fromPromise(this.__getAction(request, requestOptions));
111
+ }
112
+ async __getAction(request, requestOptions) {
113
+ const { id } = request;
114
+ const _authRequest = await this._options.authProvider.getAuthRequest();
115
+ const _headers = mergeHeaders(_authRequest.headers, this._options?.headers, requestOptions?.headers);
116
+ const _response = await core.fetcher({
117
+ url: core.url.join((await core.Supplier.get(this._options.baseUrl)) ??
118
+ (await core.Supplier.get(this._options.environment)) ??
119
+ environments.BoltixApiEnvironment.Production, `v1/actions/${core.url.encodePathParam(id)}`),
120
+ method: "GET",
121
+ headers: _headers,
122
+ queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(),
123
+ timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
124
+ maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
125
+ abortSignal: requestOptions?.abortSignal,
126
+ fetchFn: this._options?.fetch,
127
+ logging: this._options.logging,
128
+ });
129
+ if (_response.ok) {
130
+ return { data: _response.body, rawResponse: _response.rawResponse };
131
+ }
132
+ if (_response.error.reason === "status-code") {
133
+ throw new errors.BoltixApiError({
134
+ statusCode: _response.error.statusCode,
135
+ body: _response.error.body,
136
+ rawResponse: _response.rawResponse,
137
+ });
138
+ }
139
+ return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/v1/actions/{id}");
140
+ }
141
+ /**
142
+ * Updates an existing action.
143
+ *
144
+ * @param {BoltixApi.UpdateActionInputBody} request
145
+ * @param {WebhooksClient.RequestOptions} requestOptions - Request-specific configuration.
146
+ *
147
+ * @example
148
+ * await client.webhooks.updateAction({
149
+ * id: "id"
150
+ * })
151
+ */
152
+ updateAction(request, requestOptions) {
153
+ return core.HttpResponsePromise.fromPromise(this.__updateAction(request, requestOptions));
154
+ }
155
+ async __updateAction(request, requestOptions) {
156
+ const { id, ..._body } = request;
157
+ const _authRequest = await this._options.authProvider.getAuthRequest();
158
+ const _headers = mergeHeaders(_authRequest.headers, this._options?.headers, requestOptions?.headers);
159
+ const _response = await core.fetcher({
160
+ url: core.url.join((await core.Supplier.get(this._options.baseUrl)) ??
161
+ (await core.Supplier.get(this._options.environment)) ??
162
+ environments.BoltixApiEnvironment.Production, `v1/actions/${core.url.encodePathParam(id)}`),
163
+ method: "PUT",
164
+ headers: _headers,
165
+ contentType: "application/json",
166
+ queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(),
167
+ requestType: "json",
168
+ body: _body,
169
+ timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
170
+ maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
171
+ abortSignal: requestOptions?.abortSignal,
172
+ fetchFn: this._options?.fetch,
173
+ logging: this._options.logging,
174
+ });
175
+ if (_response.ok) {
176
+ return { data: _response.body, rawResponse: _response.rawResponse };
177
+ }
178
+ if (_response.error.reason === "status-code") {
179
+ throw new errors.BoltixApiError({
180
+ statusCode: _response.error.statusCode,
181
+ body: _response.error.body,
182
+ rawResponse: _response.rawResponse,
183
+ });
184
+ }
185
+ return handleNonStatusCodeError(_response.error, _response.rawResponse, "PUT", "/v1/actions/{id}");
186
+ }
187
+ /**
188
+ * Soft-deletes an action.
189
+ *
190
+ * @param {BoltixApi.DeleteActionWebhooksRequest} request
191
+ * @param {WebhooksClient.RequestOptions} requestOptions - Request-specific configuration.
192
+ *
193
+ * @example
194
+ * await client.webhooks.deleteAction({
195
+ * id: "id"
196
+ * })
197
+ */
198
+ deleteAction(request, requestOptions) {
199
+ return core.HttpResponsePromise.fromPromise(this.__deleteAction(request, requestOptions));
200
+ }
201
+ async __deleteAction(request, requestOptions) {
202
+ const { id } = request;
203
+ const _authRequest = await this._options.authProvider.getAuthRequest();
204
+ const _headers = mergeHeaders(_authRequest.headers, this._options?.headers, requestOptions?.headers);
205
+ const _response = await core.fetcher({
206
+ url: core.url.join((await core.Supplier.get(this._options.baseUrl)) ??
207
+ (await core.Supplier.get(this._options.environment)) ??
208
+ environments.BoltixApiEnvironment.Production, `v1/actions/${core.url.encodePathParam(id)}`),
209
+ method: "DELETE",
210
+ headers: _headers,
211
+ queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(),
212
+ timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
213
+ maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
214
+ abortSignal: requestOptions?.abortSignal,
215
+ fetchFn: this._options?.fetch,
216
+ logging: this._options.logging,
217
+ });
218
+ if (_response.ok) {
219
+ return { data: undefined, rawResponse: _response.rawResponse };
220
+ }
221
+ if (_response.error.reason === "status-code") {
222
+ throw new errors.BoltixApiError({
223
+ statusCode: _response.error.statusCode,
224
+ body: _response.error.body,
225
+ rawResponse: _response.rawResponse,
226
+ });
227
+ }
228
+ return handleNonStatusCodeError(_response.error, _response.rawResponse, "DELETE", "/v1/actions/{id}");
229
+ }
230
+ /**
231
+ * Returns all outgoing webhooks for the current organization.
232
+ *
233
+ * @param {WebhooksClient.RequestOptions} requestOptions - Request-specific configuration.
234
+ *
235
+ * @example
236
+ * await client.webhooks.list()
237
+ */
238
+ list(requestOptions) {
239
+ return core.HttpResponsePromise.fromPromise(this.__list(requestOptions));
240
+ }
241
+ async __list(requestOptions) {
242
+ const _authRequest = await this._options.authProvider.getAuthRequest();
243
+ const _headers = mergeHeaders(_authRequest.headers, this._options?.headers, requestOptions?.headers);
244
+ const _response = await core.fetcher({
245
+ url: core.url.join((await core.Supplier.get(this._options.baseUrl)) ??
246
+ (await core.Supplier.get(this._options.environment)) ??
247
+ environments.BoltixApiEnvironment.Production, "v1/webhooks"),
248
+ method: "GET",
249
+ headers: _headers,
250
+ queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(),
251
+ timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
252
+ maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
253
+ abortSignal: requestOptions?.abortSignal,
254
+ fetchFn: this._options?.fetch,
255
+ logging: this._options.logging,
256
+ });
257
+ if (_response.ok) {
258
+ return { data: _response.body, rawResponse: _response.rawResponse };
259
+ }
260
+ if (_response.error.reason === "status-code") {
261
+ throw new errors.BoltixApiError({
262
+ statusCode: _response.error.statusCode,
263
+ body: _response.error.body,
264
+ rawResponse: _response.rawResponse,
265
+ });
266
+ }
267
+ return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/v1/webhooks");
268
+ }
269
+ /**
270
+ * Creates a new outgoing webhook.
271
+ *
272
+ * @param {BoltixApi.CreateWebhookInputBody} request
273
+ * @param {WebhooksClient.RequestOptions} requestOptions - Request-specific configuration.
274
+ *
275
+ * @example
276
+ * await client.webhooks.create({
277
+ * name: "name",
278
+ * url: "url"
279
+ * })
280
+ */
281
+ create(request, requestOptions) {
282
+ return core.HttpResponsePromise.fromPromise(this.__create(request, requestOptions));
283
+ }
284
+ async __create(request, requestOptions) {
285
+ const _authRequest = await this._options.authProvider.getAuthRequest();
286
+ const _headers = mergeHeaders(_authRequest.headers, this._options?.headers, requestOptions?.headers);
287
+ const _response = await core.fetcher({
288
+ url: core.url.join((await core.Supplier.get(this._options.baseUrl)) ??
289
+ (await core.Supplier.get(this._options.environment)) ??
290
+ environments.BoltixApiEnvironment.Production, "v1/webhooks"),
291
+ method: "POST",
292
+ headers: _headers,
293
+ contentType: "application/json",
294
+ queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(),
295
+ requestType: "json",
296
+ body: request,
297
+ timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
298
+ maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
299
+ abortSignal: requestOptions?.abortSignal,
300
+ fetchFn: this._options?.fetch,
301
+ logging: this._options.logging,
302
+ });
303
+ if (_response.ok) {
304
+ return { data: _response.body, rawResponse: _response.rawResponse };
305
+ }
306
+ if (_response.error.reason === "status-code") {
307
+ throw new errors.BoltixApiError({
308
+ statusCode: _response.error.statusCode,
309
+ body: _response.error.body,
310
+ rawResponse: _response.rawResponse,
311
+ });
312
+ }
313
+ return handleNonStatusCodeError(_response.error, _response.rawResponse, "POST", "/v1/webhooks");
314
+ }
315
+ /**
316
+ * Returns a single webhook by ID.
317
+ *
318
+ * @param {BoltixApi.GetWebhooksRequest} request
319
+ * @param {WebhooksClient.RequestOptions} requestOptions - Request-specific configuration.
320
+ *
321
+ * @example
322
+ * await client.webhooks.get({
323
+ * id: "id"
324
+ * })
325
+ */
326
+ get(request, requestOptions) {
327
+ return core.HttpResponsePromise.fromPromise(this.__get(request, requestOptions));
328
+ }
329
+ async __get(request, requestOptions) {
330
+ const { id } = request;
331
+ const _authRequest = await this._options.authProvider.getAuthRequest();
332
+ const _headers = mergeHeaders(_authRequest.headers, this._options?.headers, requestOptions?.headers);
333
+ const _response = await core.fetcher({
334
+ url: core.url.join((await core.Supplier.get(this._options.baseUrl)) ??
335
+ (await core.Supplier.get(this._options.environment)) ??
336
+ environments.BoltixApiEnvironment.Production, `v1/webhooks/${core.url.encodePathParam(id)}`),
337
+ method: "GET",
338
+ headers: _headers,
339
+ queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(),
340
+ timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
341
+ maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
342
+ abortSignal: requestOptions?.abortSignal,
343
+ fetchFn: this._options?.fetch,
344
+ logging: this._options.logging,
345
+ });
346
+ if (_response.ok) {
347
+ return { data: _response.body, rawResponse: _response.rawResponse };
348
+ }
349
+ if (_response.error.reason === "status-code") {
350
+ throw new errors.BoltixApiError({
351
+ statusCode: _response.error.statusCode,
352
+ body: _response.error.body,
353
+ rawResponse: _response.rawResponse,
354
+ });
355
+ }
356
+ return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/v1/webhooks/{id}");
357
+ }
358
+ /**
359
+ * Updates an existing webhook.
360
+ *
361
+ * @param {BoltixApi.UpdateWebhookInputBody} request
362
+ * @param {WebhooksClient.RequestOptions} requestOptions - Request-specific configuration.
363
+ *
364
+ * @example
365
+ * await client.webhooks.update({
366
+ * id: "id"
367
+ * })
368
+ */
369
+ update(request, requestOptions) {
370
+ return core.HttpResponsePromise.fromPromise(this.__update(request, requestOptions));
371
+ }
372
+ async __update(request, requestOptions) {
373
+ const { id, ..._body } = request;
374
+ const _authRequest = await this._options.authProvider.getAuthRequest();
375
+ const _headers = mergeHeaders(_authRequest.headers, this._options?.headers, requestOptions?.headers);
376
+ const _response = await core.fetcher({
377
+ url: core.url.join((await core.Supplier.get(this._options.baseUrl)) ??
378
+ (await core.Supplier.get(this._options.environment)) ??
379
+ environments.BoltixApiEnvironment.Production, `v1/webhooks/${core.url.encodePathParam(id)}`),
380
+ method: "PUT",
381
+ headers: _headers,
382
+ contentType: "application/json",
383
+ queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(),
384
+ requestType: "json",
385
+ body: _body,
386
+ timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
387
+ maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
388
+ abortSignal: requestOptions?.abortSignal,
389
+ fetchFn: this._options?.fetch,
390
+ logging: this._options.logging,
391
+ });
392
+ if (_response.ok) {
393
+ return { data: _response.body, rawResponse: _response.rawResponse };
394
+ }
395
+ if (_response.error.reason === "status-code") {
396
+ throw new errors.BoltixApiError({
397
+ statusCode: _response.error.statusCode,
398
+ body: _response.error.body,
399
+ rawResponse: _response.rawResponse,
400
+ });
401
+ }
402
+ return handleNonStatusCodeError(_response.error, _response.rawResponse, "PUT", "/v1/webhooks/{id}");
403
+ }
404
+ /**
405
+ * Soft-deletes a webhook.
406
+ *
407
+ * @param {BoltixApi.DeleteWebhooksRequest} request
408
+ * @param {WebhooksClient.RequestOptions} requestOptions - Request-specific configuration.
409
+ *
410
+ * @example
411
+ * await client.webhooks.delete({
412
+ * id: "id"
413
+ * })
414
+ */
415
+ delete(request, requestOptions) {
416
+ return core.HttpResponsePromise.fromPromise(this.__delete(request, requestOptions));
417
+ }
418
+ async __delete(request, requestOptions) {
419
+ const { id } = request;
420
+ const _authRequest = await this._options.authProvider.getAuthRequest();
421
+ const _headers = mergeHeaders(_authRequest.headers, this._options?.headers, requestOptions?.headers);
422
+ const _response = await core.fetcher({
423
+ url: core.url.join((await core.Supplier.get(this._options.baseUrl)) ??
424
+ (await core.Supplier.get(this._options.environment)) ??
425
+ environments.BoltixApiEnvironment.Production, `v1/webhooks/${core.url.encodePathParam(id)}`),
426
+ method: "DELETE",
427
+ headers: _headers,
428
+ queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(),
429
+ timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
430
+ maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
431
+ abortSignal: requestOptions?.abortSignal,
432
+ fetchFn: this._options?.fetch,
433
+ logging: this._options.logging,
434
+ });
435
+ if (_response.ok) {
436
+ return { data: undefined, rawResponse: _response.rawResponse };
437
+ }
438
+ if (_response.error.reason === "status-code") {
439
+ throw new errors.BoltixApiError({
440
+ statusCode: _response.error.statusCode,
441
+ body: _response.error.body,
442
+ rawResponse: _response.rawResponse,
443
+ });
444
+ }
445
+ return handleNonStatusCodeError(_response.error, _response.rawResponse, "DELETE", "/v1/webhooks/{id}");
446
+ }
447
+ /**
448
+ * Sends a test payload to a webhook.
449
+ *
450
+ * @param {BoltixApi.TestWebhooksRequest} request
451
+ * @param {WebhooksClient.RequestOptions} requestOptions - Request-specific configuration.
452
+ *
453
+ * @example
454
+ * await client.webhooks.test({
455
+ * id: "id"
456
+ * })
457
+ */
458
+ test(request, requestOptions) {
459
+ return core.HttpResponsePromise.fromPromise(this.__test(request, requestOptions));
460
+ }
461
+ async __test(request, requestOptions) {
462
+ const { id } = request;
463
+ const _authRequest = await this._options.authProvider.getAuthRequest();
464
+ const _headers = mergeHeaders(_authRequest.headers, this._options?.headers, requestOptions?.headers);
465
+ const _response = await core.fetcher({
466
+ url: core.url.join((await core.Supplier.get(this._options.baseUrl)) ??
467
+ (await core.Supplier.get(this._options.environment)) ??
468
+ environments.BoltixApiEnvironment.Production, `v1/webhooks/${core.url.encodePathParam(id)}/test`),
469
+ method: "POST",
470
+ headers: _headers,
471
+ queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(),
472
+ timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
473
+ maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
474
+ abortSignal: requestOptions?.abortSignal,
475
+ fetchFn: this._options?.fetch,
476
+ logging: this._options.logging,
477
+ });
478
+ if (_response.ok) {
479
+ return { data: undefined, rawResponse: _response.rawResponse };
480
+ }
481
+ if (_response.error.reason === "status-code") {
482
+ throw new errors.BoltixApiError({
483
+ statusCode: _response.error.statusCode,
484
+ body: _response.error.body,
485
+ rawResponse: _response.rawResponse,
486
+ });
487
+ }
488
+ return handleNonStatusCodeError(_response.error, _response.rawResponse, "POST", "/v1/webhooks/{id}/test");
489
+ }
490
+ }
@@ -0,0 +1 @@
1
+ export * from "./requests/index.js";
@@ -0,0 +1 @@
1
+ export * from "./requests/index.js";
@@ -0,0 +1,21 @@
1
+ /**
2
+ * @example
3
+ * {
4
+ * action_type: "action_type",
5
+ * name: "name"
6
+ * }
7
+ */
8
+ export interface CreateActionInputBody {
9
+ /** Type of action */
10
+ action_type: string;
11
+ /** Action configuration */
12
+ config?: unknown;
13
+ /** Display ordering index (defaults to 0) */
14
+ display_order?: number;
15
+ /** Optional icon identifier */
16
+ icon?: string;
17
+ /** Whether the action is active (defaults to true) */
18
+ is_active?: boolean;
19
+ /** Action name */
20
+ name: string;
21
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -0,0 +1,21 @@
1
+ /**
2
+ * @example
3
+ * {
4
+ * name: "name",
5
+ * url: "url"
6
+ * }
7
+ */
8
+ export interface CreateWebhookInputBody {
9
+ /** Event types this webhook subscribes to */
10
+ events?: unknown;
11
+ /** Custom HTTP headers sent with deliveries */
12
+ headers?: unknown;
13
+ /** Whether the webhook is active (defaults to true) */
14
+ is_active?: boolean;
15
+ /** Webhook name */
16
+ name: string;
17
+ /** Optional signing secret */
18
+ secret?: string;
19
+ /** Destination URL */
20
+ url: string;
21
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -0,0 +1,10 @@
1
+ /**
2
+ * @example
3
+ * {
4
+ * id: "id"
5
+ * }
6
+ */
7
+ export interface DeleteActionWebhooksRequest {
8
+ /** Action ID */
9
+ id: string;
10
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -0,0 +1,10 @@
1
+ /**
2
+ * @example
3
+ * {
4
+ * id: "id"
5
+ * }
6
+ */
7
+ export interface DeleteWebhooksRequest {
8
+ /** Webhook ID */
9
+ id: string;
10
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -0,0 +1,10 @@
1
+ /**
2
+ * @example
3
+ * {
4
+ * id: "id"
5
+ * }
6
+ */
7
+ export interface GetActionWebhooksRequest {
8
+ /** Action ID */
9
+ id: string;
10
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -0,0 +1,10 @@
1
+ /**
2
+ * @example
3
+ * {
4
+ * id: "id"
5
+ * }
6
+ */
7
+ export interface GetWebhooksRequest {
8
+ /** Webhook ID */
9
+ id: string;
10
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -0,0 +1,10 @@
1
+ /**
2
+ * @example
3
+ * {
4
+ * id: "id"
5
+ * }
6
+ */
7
+ export interface TestWebhooksRequest {
8
+ /** Webhook ID */
9
+ id: string;
10
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -0,0 +1,22 @@
1
+ /**
2
+ * @example
3
+ * {
4
+ * id: "id"
5
+ * }
6
+ */
7
+ export interface UpdateActionInputBody {
8
+ /** Action ID */
9
+ id: string;
10
+ /** Type of action */
11
+ action_type?: string;
12
+ /** Action configuration */
13
+ config?: unknown;
14
+ /** Display ordering index */
15
+ display_order?: number;
16
+ /** Optional icon identifier */
17
+ icon?: string;
18
+ /** Whether the action is active */
19
+ is_active?: boolean;
20
+ /** Action name */
21
+ name?: string;
22
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};