@hookdeck/outpost-sdk 0.3.0 → 0.5.0

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 (397) hide show
  1. package/README.md +38 -6
  2. package/RUNTIMES.md +6 -6
  3. package/bin/mcp-server.js +733 -78
  4. package/bin/mcp-server.js.map +61 -48
  5. package/dist/commonjs/funcs/destinationsCreate.js +1 -1
  6. package/dist/commonjs/funcs/destinationsCreate.js.map +1 -1
  7. package/dist/commonjs/funcs/destinationsDelete.js +1 -1
  8. package/dist/commonjs/funcs/destinationsDelete.js.map +1 -1
  9. package/dist/commonjs/funcs/destinationsDisable.js +1 -1
  10. package/dist/commonjs/funcs/destinationsDisable.js.map +1 -1
  11. package/dist/commonjs/funcs/destinationsEnable.js +1 -1
  12. package/dist/commonjs/funcs/destinationsEnable.js.map +1 -1
  13. package/dist/commonjs/funcs/destinationsGet.js +1 -1
  14. package/dist/commonjs/funcs/destinationsGet.js.map +1 -1
  15. package/dist/commonjs/funcs/destinationsList.js +1 -1
  16. package/dist/commonjs/funcs/destinationsList.js.map +1 -1
  17. package/dist/commonjs/funcs/destinationsUpdate.js +1 -1
  18. package/dist/commonjs/funcs/destinationsUpdate.js.map +1 -1
  19. package/dist/commonjs/funcs/eventsGet.js +1 -1
  20. package/dist/commonjs/funcs/eventsGet.js.map +1 -1
  21. package/dist/commonjs/funcs/eventsGetByDestination.js +1 -1
  22. package/dist/commonjs/funcs/eventsGetByDestination.js.map +1 -1
  23. package/dist/commonjs/funcs/eventsList.d.ts +4 -2
  24. package/dist/commonjs/funcs/eventsList.d.ts.map +1 -1
  25. package/dist/commonjs/funcs/eventsList.js +47 -9
  26. package/dist/commonjs/funcs/eventsList.js.map +1 -1
  27. package/dist/commonjs/funcs/eventsListByDestination.d.ts +4 -2
  28. package/dist/commonjs/funcs/eventsListByDestination.d.ts.map +1 -1
  29. package/dist/commonjs/funcs/eventsListByDestination.js +45 -9
  30. package/dist/commonjs/funcs/eventsListByDestination.js.map +1 -1
  31. package/dist/commonjs/funcs/eventsListDeliveries.js +1 -1
  32. package/dist/commonjs/funcs/eventsListDeliveries.js.map +1 -1
  33. package/dist/commonjs/funcs/eventsRetry.js +1 -1
  34. package/dist/commonjs/funcs/eventsRetry.js.map +1 -1
  35. package/dist/commonjs/funcs/healthCheck.js +1 -1
  36. package/dist/commonjs/funcs/healthCheck.js.map +1 -1
  37. package/dist/commonjs/funcs/publishEvent.js +1 -1
  38. package/dist/commonjs/funcs/publishEvent.js.map +1 -1
  39. package/dist/commonjs/funcs/schemasGet.js +1 -1
  40. package/dist/commonjs/funcs/schemasGet.js.map +1 -1
  41. package/dist/commonjs/funcs/schemasGetDestinationTypeJwt.js +1 -1
  42. package/dist/commonjs/funcs/schemasGetDestinationTypeJwt.js.map +1 -1
  43. package/dist/commonjs/funcs/schemasListDestinationTypesJwt.js +1 -1
  44. package/dist/commonjs/funcs/schemasListDestinationTypesJwt.js.map +1 -1
  45. package/dist/commonjs/funcs/schemasListTenantDestinationTypes.js +1 -1
  46. package/dist/commonjs/funcs/schemasListTenantDestinationTypes.js.map +1 -1
  47. package/dist/commonjs/funcs/tenantsDelete.js +1 -1
  48. package/dist/commonjs/funcs/tenantsDelete.js.map +1 -1
  49. package/dist/commonjs/funcs/tenantsGet.js +1 -1
  50. package/dist/commonjs/funcs/tenantsGet.js.map +1 -1
  51. package/dist/commonjs/funcs/tenantsGetPortalUrl.js +1 -1
  52. package/dist/commonjs/funcs/tenantsGetPortalUrl.js.map +1 -1
  53. package/dist/commonjs/funcs/tenantsGetToken.js +1 -1
  54. package/dist/commonjs/funcs/tenantsGetToken.js.map +1 -1
  55. package/dist/commonjs/funcs/tenantsUpsert.js +1 -1
  56. package/dist/commonjs/funcs/tenantsUpsert.js.map +1 -1
  57. package/dist/commonjs/funcs/topicsList.js +1 -1
  58. package/dist/commonjs/funcs/topicsList.js.map +1 -1
  59. package/dist/commonjs/funcs/topicsListJwt.js +1 -1
  60. package/dist/commonjs/funcs/topicsListJwt.js.map +1 -1
  61. package/dist/commonjs/lib/config.d.ts +3 -3
  62. package/dist/commonjs/lib/config.js +3 -3
  63. package/dist/commonjs/lib/config.js.map +1 -1
  64. package/dist/commonjs/lib/security.d.ts.map +1 -1
  65. package/dist/commonjs/lib/security.js.map +1 -1
  66. package/dist/commonjs/lib/url.js +1 -1
  67. package/dist/commonjs/lib/url.js.map +1 -1
  68. package/dist/commonjs/mcp-server/mcp-server.js +1 -1
  69. package/dist/commonjs/mcp-server/server.js +1 -1
  70. package/dist/commonjs/mcp-server/tools/eventsList.js +1 -1
  71. package/dist/commonjs/mcp-server/tools/eventsList.js.map +1 -1
  72. package/dist/commonjs/mcp-server/tools/eventsListByDestination.js +1 -1
  73. package/dist/commonjs/mcp-server/tools/eventsListByDestination.js.map +1 -1
  74. package/dist/commonjs/models/components/awss3config.d.ts +47 -0
  75. package/dist/commonjs/models/components/awss3config.d.ts.map +1 -0
  76. package/dist/commonjs/models/components/awss3config.js +86 -0
  77. package/dist/commonjs/models/components/awss3config.js.map +1 -0
  78. package/dist/commonjs/models/components/awss3credentials.d.ts +42 -0
  79. package/dist/commonjs/models/components/awss3credentials.d.ts.map +1 -0
  80. package/dist/commonjs/models/components/awss3credentials.js +73 -0
  81. package/dist/commonjs/models/components/awss3credentials.js.map +1 -0
  82. package/dist/commonjs/models/components/deliveryattempt.d.ts +8 -8
  83. package/dist/commonjs/models/components/deliveryattempt.d.ts.map +1 -1
  84. package/dist/commonjs/models/components/deliveryattempt.js +13 -14
  85. package/dist/commonjs/models/components/deliveryattempt.js.map +1 -1
  86. package/dist/commonjs/models/components/destination.d.ts +10 -0
  87. package/dist/commonjs/models/components/destination.d.ts.map +1 -1
  88. package/dist/commonjs/models/components/destination.js +14 -0
  89. package/dist/commonjs/models/components/destination.js.map +1 -1
  90. package/dist/commonjs/models/components/destinationawss3.d.ts +98 -0
  91. package/dist/commonjs/models/components/destinationawss3.d.ts.map +1 -0
  92. package/dist/commonjs/models/components/destinationawss3.js +122 -0
  93. package/dist/commonjs/models/components/destinationawss3.js.map +1 -0
  94. package/dist/commonjs/models/components/destinationcreate.d.ts +10 -0
  95. package/dist/commonjs/models/components/destinationcreate.d.ts.map +1 -1
  96. package/dist/commonjs/models/components/destinationcreate.js +14 -0
  97. package/dist/commonjs/models/components/destinationcreate.js.map +1 -1
  98. package/dist/commonjs/models/components/destinationcreateawss3.d.ts +78 -0
  99. package/dist/commonjs/models/components/destinationcreateawss3.d.ts.map +1 -0
  100. package/dist/commonjs/models/components/destinationcreateawss3.js +101 -0
  101. package/dist/commonjs/models/components/destinationcreateawss3.js.map +1 -0
  102. package/dist/commonjs/models/components/destinationcreategcppubsub.d.ts +78 -0
  103. package/dist/commonjs/models/components/destinationcreategcppubsub.d.ts.map +1 -0
  104. package/dist/commonjs/models/components/destinationcreategcppubsub.js +101 -0
  105. package/dist/commonjs/models/components/destinationcreategcppubsub.js.map +1 -0
  106. package/dist/commonjs/models/components/destinationgcppubsub.d.ts +98 -0
  107. package/dist/commonjs/models/components/destinationgcppubsub.d.ts.map +1 -0
  108. package/dist/commonjs/models/components/destinationgcppubsub.js +122 -0
  109. package/dist/commonjs/models/components/destinationgcppubsub.js.map +1 -0
  110. package/dist/commonjs/models/components/destinationupdate.d.ts +5 -2
  111. package/dist/commonjs/models/components/destinationupdate.d.ts.map +1 -1
  112. package/dist/commonjs/models/components/destinationupdate.js +9 -0
  113. package/dist/commonjs/models/components/destinationupdate.js.map +1 -1
  114. package/dist/commonjs/models/components/destinationupdateawss3.d.ts +39 -0
  115. package/dist/commonjs/models/components/destinationupdateawss3.d.ts.map +1 -0
  116. package/dist/commonjs/models/components/destinationupdateawss3.js +76 -0
  117. package/dist/commonjs/models/components/destinationupdateawss3.js.map +1 -0
  118. package/dist/commonjs/models/components/destinationupdateazureservicebus.d.ts +39 -0
  119. package/dist/commonjs/models/components/destinationupdateazureservicebus.d.ts.map +1 -0
  120. package/dist/commonjs/models/components/destinationupdateazureservicebus.js +76 -0
  121. package/dist/commonjs/models/components/destinationupdateazureservicebus.js.map +1 -0
  122. package/dist/commonjs/models/components/destinationupdategcppubsub.d.ts +39 -0
  123. package/dist/commonjs/models/components/destinationupdategcppubsub.d.ts.map +1 -0
  124. package/dist/commonjs/models/components/destinationupdategcppubsub.js +76 -0
  125. package/dist/commonjs/models/components/destinationupdategcppubsub.js.map +1 -0
  126. package/dist/commonjs/models/components/event.d.ts +30 -2
  127. package/dist/commonjs/models/components/event.d.ts.map +1 -1
  128. package/dist/commonjs/models/components/event.js +25 -3
  129. package/dist/commonjs/models/components/event.js.map +1 -1
  130. package/dist/commonjs/models/components/gcppubsubconfig.d.ts +42 -0
  131. package/dist/commonjs/models/components/gcppubsubconfig.d.ts.map +1 -0
  132. package/dist/commonjs/models/components/gcppubsubconfig.js +82 -0
  133. package/dist/commonjs/models/components/gcppubsubconfig.js.map +1 -0
  134. package/dist/commonjs/models/components/gcppubsubcredentials.d.ts +32 -0
  135. package/dist/commonjs/models/components/gcppubsubcredentials.d.ts.map +1 -0
  136. package/dist/commonjs/models/components/gcppubsubcredentials.js +78 -0
  137. package/dist/commonjs/models/components/gcppubsubcredentials.js.map +1 -0
  138. package/dist/commonjs/models/components/index.d.ts +11 -0
  139. package/dist/commonjs/models/components/index.d.ts.map +1 -1
  140. package/dist/commonjs/models/components/index.js +11 -0
  141. package/dist/commonjs/models/components/index.js.map +1 -1
  142. package/dist/commonjs/models/errors/index.d.ts +1 -0
  143. package/dist/commonjs/models/errors/index.d.ts.map +1 -1
  144. package/dist/commonjs/models/errors/index.js +1 -0
  145. package/dist/commonjs/models/errors/index.js.map +1 -1
  146. package/dist/commonjs/models/operations/getdestinationtypeschema.d.ts +3 -0
  147. package/dist/commonjs/models/operations/getdestinationtypeschema.d.ts.map +1 -1
  148. package/dist/commonjs/models/operations/getdestinationtypeschema.js +1 -0
  149. package/dist/commonjs/models/operations/getdestinationtypeschema.js.map +1 -1
  150. package/dist/commonjs/models/operations/gettenantdestinationtypeschema.d.ts +3 -0
  151. package/dist/commonjs/models/operations/gettenantdestinationtypeschema.d.ts.map +1 -1
  152. package/dist/commonjs/models/operations/gettenantdestinationtypeschema.js +1 -0
  153. package/dist/commonjs/models/operations/gettenantdestinationtypeschema.js.map +1 -1
  154. package/dist/commonjs/models/operations/listtenantdestinations.d.ts +18 -0
  155. package/dist/commonjs/models/operations/listtenantdestinations.d.ts.map +1 -1
  156. package/dist/commonjs/models/operations/listtenantdestinations.js +6 -0
  157. package/dist/commonjs/models/operations/listtenantdestinations.js.map +1 -1
  158. package/dist/commonjs/models/operations/listtenantevents.d.ts +94 -0
  159. package/dist/commonjs/models/operations/listtenantevents.d.ts.map +1 -1
  160. package/dist/commonjs/models/operations/listtenantevents.js +92 -1
  161. package/dist/commonjs/models/operations/listtenantevents.js.map +1 -1
  162. package/dist/commonjs/models/operations/listtenanteventsbydestination.d.ts +94 -0
  163. package/dist/commonjs/models/operations/listtenanteventsbydestination.d.ts.map +1 -1
  164. package/dist/commonjs/models/operations/listtenanteventsbydestination.js +92 -1
  165. package/dist/commonjs/models/operations/listtenanteventsbydestination.js.map +1 -1
  166. package/dist/commonjs/sdk/events.d.ts +7 -2
  167. package/dist/commonjs/sdk/events.d.ts.map +1 -1
  168. package/dist/commonjs/sdk/events.js +3 -2
  169. package/dist/commonjs/sdk/events.js.map +1 -1
  170. package/dist/esm/funcs/destinationsCreate.js +1 -1
  171. package/dist/esm/funcs/destinationsCreate.js.map +1 -1
  172. package/dist/esm/funcs/destinationsDelete.js +1 -1
  173. package/dist/esm/funcs/destinationsDelete.js.map +1 -1
  174. package/dist/esm/funcs/destinationsDisable.js +1 -1
  175. package/dist/esm/funcs/destinationsDisable.js.map +1 -1
  176. package/dist/esm/funcs/destinationsEnable.js +1 -1
  177. package/dist/esm/funcs/destinationsEnable.js.map +1 -1
  178. package/dist/esm/funcs/destinationsGet.js +1 -1
  179. package/dist/esm/funcs/destinationsGet.js.map +1 -1
  180. package/dist/esm/funcs/destinationsList.js +1 -1
  181. package/dist/esm/funcs/destinationsList.js.map +1 -1
  182. package/dist/esm/funcs/destinationsUpdate.js +1 -1
  183. package/dist/esm/funcs/destinationsUpdate.js.map +1 -1
  184. package/dist/esm/funcs/eventsGet.js +1 -1
  185. package/dist/esm/funcs/eventsGet.js.map +1 -1
  186. package/dist/esm/funcs/eventsGetByDestination.js +1 -1
  187. package/dist/esm/funcs/eventsGetByDestination.js.map +1 -1
  188. package/dist/esm/funcs/eventsList.d.ts +4 -2
  189. package/dist/esm/funcs/eventsList.d.ts.map +1 -1
  190. package/dist/esm/funcs/eventsList.js +47 -9
  191. package/dist/esm/funcs/eventsList.js.map +1 -1
  192. package/dist/esm/funcs/eventsListByDestination.d.ts +4 -2
  193. package/dist/esm/funcs/eventsListByDestination.d.ts.map +1 -1
  194. package/dist/esm/funcs/eventsListByDestination.js +45 -9
  195. package/dist/esm/funcs/eventsListByDestination.js.map +1 -1
  196. package/dist/esm/funcs/eventsListDeliveries.js +1 -1
  197. package/dist/esm/funcs/eventsListDeliveries.js.map +1 -1
  198. package/dist/esm/funcs/eventsRetry.js +1 -1
  199. package/dist/esm/funcs/eventsRetry.js.map +1 -1
  200. package/dist/esm/funcs/healthCheck.js +1 -1
  201. package/dist/esm/funcs/healthCheck.js.map +1 -1
  202. package/dist/esm/funcs/publishEvent.js +1 -1
  203. package/dist/esm/funcs/publishEvent.js.map +1 -1
  204. package/dist/esm/funcs/schemasGet.js +1 -1
  205. package/dist/esm/funcs/schemasGet.js.map +1 -1
  206. package/dist/esm/funcs/schemasGetDestinationTypeJwt.js +1 -1
  207. package/dist/esm/funcs/schemasGetDestinationTypeJwt.js.map +1 -1
  208. package/dist/esm/funcs/schemasListDestinationTypesJwt.js +1 -1
  209. package/dist/esm/funcs/schemasListDestinationTypesJwt.js.map +1 -1
  210. package/dist/esm/funcs/schemasListTenantDestinationTypes.js +1 -1
  211. package/dist/esm/funcs/schemasListTenantDestinationTypes.js.map +1 -1
  212. package/dist/esm/funcs/tenantsDelete.js +1 -1
  213. package/dist/esm/funcs/tenantsDelete.js.map +1 -1
  214. package/dist/esm/funcs/tenantsGet.js +1 -1
  215. package/dist/esm/funcs/tenantsGet.js.map +1 -1
  216. package/dist/esm/funcs/tenantsGetPortalUrl.js +1 -1
  217. package/dist/esm/funcs/tenantsGetPortalUrl.js.map +1 -1
  218. package/dist/esm/funcs/tenantsGetToken.js +1 -1
  219. package/dist/esm/funcs/tenantsGetToken.js.map +1 -1
  220. package/dist/esm/funcs/tenantsUpsert.js +1 -1
  221. package/dist/esm/funcs/tenantsUpsert.js.map +1 -1
  222. package/dist/esm/funcs/topicsList.js +1 -1
  223. package/dist/esm/funcs/topicsList.js.map +1 -1
  224. package/dist/esm/funcs/topicsListJwt.js +1 -1
  225. package/dist/esm/funcs/topicsListJwt.js.map +1 -1
  226. package/dist/esm/lib/config.d.ts +3 -3
  227. package/dist/esm/lib/config.js +3 -3
  228. package/dist/esm/lib/config.js.map +1 -1
  229. package/dist/esm/lib/security.d.ts.map +1 -1
  230. package/dist/esm/lib/security.js.map +1 -1
  231. package/dist/esm/lib/url.js +1 -1
  232. package/dist/esm/lib/url.js.map +1 -1
  233. package/dist/esm/mcp-server/mcp-server.js +1 -1
  234. package/dist/esm/mcp-server/server.js +1 -1
  235. package/dist/esm/mcp-server/tools/eventsList.js +1 -1
  236. package/dist/esm/mcp-server/tools/eventsList.js.map +1 -1
  237. package/dist/esm/mcp-server/tools/eventsListByDestination.js +1 -1
  238. package/dist/esm/mcp-server/tools/eventsListByDestination.js.map +1 -1
  239. package/dist/esm/models/components/awss3config.d.ts +47 -0
  240. package/dist/esm/models/components/awss3config.d.ts.map +1 -0
  241. package/dist/esm/models/components/awss3config.js +48 -0
  242. package/dist/esm/models/components/awss3config.js.map +1 -0
  243. package/dist/esm/models/components/awss3credentials.d.ts +42 -0
  244. package/dist/esm/models/components/awss3credentials.d.ts.map +1 -0
  245. package/dist/esm/models/components/awss3credentials.js +35 -0
  246. package/dist/esm/models/components/awss3credentials.js.map +1 -0
  247. package/dist/esm/models/components/deliveryattempt.d.ts +8 -8
  248. package/dist/esm/models/components/deliveryattempt.d.ts.map +1 -1
  249. package/dist/esm/models/components/deliveryattempt.js +12 -13
  250. package/dist/esm/models/components/deliveryattempt.js.map +1 -1
  251. package/dist/esm/models/components/destination.d.ts +10 -0
  252. package/dist/esm/models/components/destination.d.ts.map +1 -1
  253. package/dist/esm/models/components/destination.js +14 -0
  254. package/dist/esm/models/components/destination.js.map +1 -1
  255. package/dist/esm/models/components/destinationawss3.d.ts +98 -0
  256. package/dist/esm/models/components/destinationawss3.d.ts.map +1 -0
  257. package/dist/esm/models/components/destinationawss3.js +84 -0
  258. package/dist/esm/models/components/destinationawss3.js.map +1 -0
  259. package/dist/esm/models/components/destinationcreate.d.ts +10 -0
  260. package/dist/esm/models/components/destinationcreate.d.ts.map +1 -1
  261. package/dist/esm/models/components/destinationcreate.js +14 -0
  262. package/dist/esm/models/components/destinationcreate.js.map +1 -1
  263. package/dist/esm/models/components/destinationcreateawss3.d.ts +78 -0
  264. package/dist/esm/models/components/destinationcreateawss3.d.ts.map +1 -0
  265. package/dist/esm/models/components/destinationcreateawss3.js +63 -0
  266. package/dist/esm/models/components/destinationcreateawss3.js.map +1 -0
  267. package/dist/esm/models/components/destinationcreategcppubsub.d.ts +78 -0
  268. package/dist/esm/models/components/destinationcreategcppubsub.d.ts.map +1 -0
  269. package/dist/esm/models/components/destinationcreategcppubsub.js +63 -0
  270. package/dist/esm/models/components/destinationcreategcppubsub.js.map +1 -0
  271. package/dist/esm/models/components/destinationgcppubsub.d.ts +98 -0
  272. package/dist/esm/models/components/destinationgcppubsub.d.ts.map +1 -0
  273. package/dist/esm/models/components/destinationgcppubsub.js +84 -0
  274. package/dist/esm/models/components/destinationgcppubsub.js.map +1 -0
  275. package/dist/esm/models/components/destinationupdate.d.ts +5 -2
  276. package/dist/esm/models/components/destinationupdate.d.ts.map +1 -1
  277. package/dist/esm/models/components/destinationupdate.js +9 -0
  278. package/dist/esm/models/components/destinationupdate.js.map +1 -1
  279. package/dist/esm/models/components/destinationupdateawss3.d.ts +39 -0
  280. package/dist/esm/models/components/destinationupdateawss3.d.ts.map +1 -0
  281. package/dist/esm/models/components/destinationupdateawss3.js +38 -0
  282. package/dist/esm/models/components/destinationupdateawss3.js.map +1 -0
  283. package/dist/esm/models/components/destinationupdateazureservicebus.d.ts +39 -0
  284. package/dist/esm/models/components/destinationupdateazureservicebus.d.ts.map +1 -0
  285. package/dist/esm/models/components/destinationupdateazureservicebus.js +38 -0
  286. package/dist/esm/models/components/destinationupdateazureservicebus.js.map +1 -0
  287. package/dist/esm/models/components/destinationupdategcppubsub.d.ts +39 -0
  288. package/dist/esm/models/components/destinationupdategcppubsub.d.ts.map +1 -0
  289. package/dist/esm/models/components/destinationupdategcppubsub.js +38 -0
  290. package/dist/esm/models/components/destinationupdategcppubsub.js.map +1 -0
  291. package/dist/esm/models/components/event.d.ts +30 -2
  292. package/dist/esm/models/components/event.d.ts.map +1 -1
  293. package/dist/esm/models/components/event.js +24 -2
  294. package/dist/esm/models/components/event.js.map +1 -1
  295. package/dist/esm/models/components/gcppubsubconfig.d.ts +42 -0
  296. package/dist/esm/models/components/gcppubsubconfig.d.ts.map +1 -0
  297. package/dist/esm/models/components/gcppubsubconfig.js +44 -0
  298. package/dist/esm/models/components/gcppubsubconfig.js.map +1 -0
  299. package/dist/esm/models/components/gcppubsubcredentials.d.ts +32 -0
  300. package/dist/esm/models/components/gcppubsubcredentials.d.ts.map +1 -0
  301. package/dist/esm/models/components/gcppubsubcredentials.js +40 -0
  302. package/dist/esm/models/components/gcppubsubcredentials.js.map +1 -0
  303. package/dist/esm/models/components/index.d.ts +11 -0
  304. package/dist/esm/models/components/index.d.ts.map +1 -1
  305. package/dist/esm/models/components/index.js +11 -0
  306. package/dist/esm/models/components/index.js.map +1 -1
  307. package/dist/esm/models/errors/index.d.ts +1 -0
  308. package/dist/esm/models/errors/index.d.ts.map +1 -1
  309. package/dist/esm/models/errors/index.js +1 -0
  310. package/dist/esm/models/errors/index.js.map +1 -1
  311. package/dist/esm/models/operations/getdestinationtypeschema.d.ts +3 -0
  312. package/dist/esm/models/operations/getdestinationtypeschema.d.ts.map +1 -1
  313. package/dist/esm/models/operations/getdestinationtypeschema.js +1 -0
  314. package/dist/esm/models/operations/getdestinationtypeschema.js.map +1 -1
  315. package/dist/esm/models/operations/gettenantdestinationtypeschema.d.ts +3 -0
  316. package/dist/esm/models/operations/gettenantdestinationtypeschema.d.ts.map +1 -1
  317. package/dist/esm/models/operations/gettenantdestinationtypeschema.js +1 -0
  318. package/dist/esm/models/operations/gettenantdestinationtypeschema.js.map +1 -1
  319. package/dist/esm/models/operations/listtenantdestinations.d.ts +18 -0
  320. package/dist/esm/models/operations/listtenantdestinations.d.ts.map +1 -1
  321. package/dist/esm/models/operations/listtenantdestinations.js +6 -0
  322. package/dist/esm/models/operations/listtenantdestinations.js.map +1 -1
  323. package/dist/esm/models/operations/listtenantevents.d.ts +94 -0
  324. package/dist/esm/models/operations/listtenantevents.d.ts.map +1 -1
  325. package/dist/esm/models/operations/listtenantevents.js +87 -0
  326. package/dist/esm/models/operations/listtenantevents.js.map +1 -1
  327. package/dist/esm/models/operations/listtenanteventsbydestination.d.ts +94 -0
  328. package/dist/esm/models/operations/listtenanteventsbydestination.d.ts.map +1 -1
  329. package/dist/esm/models/operations/listtenanteventsbydestination.js +87 -0
  330. package/dist/esm/models/operations/listtenanteventsbydestination.js.map +1 -1
  331. package/dist/esm/sdk/events.d.ts +7 -2
  332. package/dist/esm/sdk/events.d.ts.map +1 -1
  333. package/dist/esm/sdk/events.js +3 -2
  334. package/dist/esm/sdk/events.js.map +1 -1
  335. package/docs/sdks/events/README.md +14 -6
  336. package/examples/healthCheck.example.ts +2 -2
  337. package/examples/package-lock.json +3 -3
  338. package/jsr.json +1 -1
  339. package/package.json +3 -3
  340. package/src/funcs/destinationsCreate.ts +1 -1
  341. package/src/funcs/destinationsDelete.ts +1 -1
  342. package/src/funcs/destinationsDisable.ts +1 -1
  343. package/src/funcs/destinationsEnable.ts +1 -1
  344. package/src/funcs/destinationsGet.ts +1 -1
  345. package/src/funcs/destinationsList.ts +1 -1
  346. package/src/funcs/destinationsUpdate.ts +1 -1
  347. package/src/funcs/eventsGet.ts +1 -1
  348. package/src/funcs/eventsGetByDestination.ts +1 -1
  349. package/src/funcs/eventsList.ts +123 -43
  350. package/src/funcs/eventsListByDestination.ts +125 -43
  351. package/src/funcs/eventsListDeliveries.ts +1 -1
  352. package/src/funcs/eventsRetry.ts +1 -1
  353. package/src/funcs/healthCheck.ts +1 -1
  354. package/src/funcs/publishEvent.ts +1 -1
  355. package/src/funcs/schemasGet.ts +1 -1
  356. package/src/funcs/schemasGetDestinationTypeJwt.ts +1 -1
  357. package/src/funcs/schemasListDestinationTypesJwt.ts +1 -1
  358. package/src/funcs/schemasListTenantDestinationTypes.ts +1 -1
  359. package/src/funcs/tenantsDelete.ts +1 -1
  360. package/src/funcs/tenantsGet.ts +1 -1
  361. package/src/funcs/tenantsGetPortalUrl.ts +1 -1
  362. package/src/funcs/tenantsGetToken.ts +1 -1
  363. package/src/funcs/tenantsUpsert.ts +1 -1
  364. package/src/funcs/topicsList.ts +1 -1
  365. package/src/funcs/topicsListJwt.ts +1 -1
  366. package/src/lib/config.ts +3 -3
  367. package/src/lib/security.ts +4 -1
  368. package/src/lib/url.ts +1 -1
  369. package/src/mcp-server/mcp-server.ts +1 -1
  370. package/src/mcp-server/server.ts +1 -1
  371. package/src/mcp-server/tools/eventsList.ts +1 -1
  372. package/src/mcp-server/tools/eventsListByDestination.ts +1 -1
  373. package/src/models/components/awss3config.ts +97 -0
  374. package/src/models/components/awss3credentials.ts +83 -0
  375. package/src/models/components/deliveryattempt.ts +16 -14
  376. package/src/models/components/destination.ts +36 -0
  377. package/src/models/components/destinationawss3.ts +185 -0
  378. package/src/models/components/destinationcreate.ts +36 -0
  379. package/src/models/components/destinationcreateawss3.ts +144 -0
  380. package/src/models/components/destinationcreategcppubsub.ts +144 -0
  381. package/src/models/components/destinationgcppubsub.ts +187 -0
  382. package/src/models/components/destinationupdate.ts +32 -2
  383. package/src/models/components/destinationupdateawss3.ts +95 -0
  384. package/src/models/components/destinationupdateazureservicebus.ts +97 -0
  385. package/src/models/components/destinationupdategcppubsub.ts +95 -0
  386. package/src/models/components/event.ts +34 -4
  387. package/src/models/components/gcppubsubconfig.ts +90 -0
  388. package/src/models/components/gcppubsubcredentials.ts +78 -0
  389. package/src/models/components/index.ts +11 -0
  390. package/src/models/errors/index.ts +1 -0
  391. package/src/models/operations/getdestinationtypeschema.ts +1 -0
  392. package/src/models/operations/gettenantdestinationtypeschema.ts +1 -0
  393. package/src/models/operations/listtenantdestinations.ts +6 -0
  394. package/src/models/operations/listtenantevents.ts +198 -0
  395. package/src/models/operations/listtenanteventsbydestination.ts +215 -0
  396. package/src/sdk/events.ts +12 -4
  397. package/docs/sdks/outpost/README.md +0 -7
package/bin/mcp-server.js CHANGED
@@ -34148,7 +34148,7 @@ var init_base64 = __esm(() => {
34148
34148
 
34149
34149
  // src/lib/url.ts
34150
34150
  function pathToFunc(pathPattern, options) {
34151
- const paramRE = /\{([a-zA-Z0-9_]+?)\}/g;
34151
+ const paramRE = /\{([a-zA-Z0-9_][a-zA-Z0-9_-]*?)\}/g;
34152
34152
  return function buildURLPath(params = {}) {
34153
34153
  return pathPattern.replace(paramRE, function(_2, placeholder) {
34154
34154
  if (!hasOwn.call(params, placeholder)) {
@@ -34190,9 +34190,9 @@ var init_config = __esm(() => {
34190
34190
  SDK_METADATA = {
34191
34191
  language: "typescript",
34192
34192
  openapiDocVersion: "0.0.1",
34193
- sdkVersion: "0.3.0",
34194
- genVersion: "2.669.0",
34195
- userAgent: "speakeasy-sdk/typescript 0.3.0 2.669.0 0.0.1 @hookdeck/outpost-sdk"
34193
+ sdkVersion: "0.5.0",
34194
+ genVersion: "2.723.11",
34195
+ userAgent: "speakeasy-sdk/typescript 0.5.0 2.723.11 0.0.1 @hookdeck/outpost-sdk"
34196
34196
  };
34197
34197
  });
34198
34198
 
@@ -35707,6 +35707,59 @@ var init_awskinesiscredentials = __esm(() => {
35707
35707
  })(AWSKinesisCredentials$ ||= {});
35708
35708
  });
35709
35709
 
35710
+ // src/models/components/awss3config.ts
35711
+ var Awss3Config$inboundSchema, Awss3Config$outboundSchema, Awss3Config$;
35712
+ var init_awss3config = __esm(() => {
35713
+ init_lib();
35714
+ init_primitives();
35715
+ Awss3Config$inboundSchema = objectType({
35716
+ bucket: stringType(),
35717
+ region: stringType(),
35718
+ key_template: stringType().optional(),
35719
+ storage_class: stringType().optional()
35720
+ }).transform((v2) => {
35721
+ return remap(v2, {
35722
+ key_template: "keyTemplate",
35723
+ storage_class: "storageClass"
35724
+ });
35725
+ });
35726
+ Awss3Config$outboundSchema = objectType({
35727
+ bucket: stringType(),
35728
+ region: stringType(),
35729
+ keyTemplate: stringType().optional(),
35730
+ storageClass: stringType().optional()
35731
+ }).transform((v2) => {
35732
+ return remap(v2, {
35733
+ keyTemplate: "key_template",
35734
+ storageClass: "storage_class"
35735
+ });
35736
+ });
35737
+ ((Awss3Config$) => {
35738
+ Awss3Config$.inboundSchema = Awss3Config$inboundSchema;
35739
+ Awss3Config$.outboundSchema = Awss3Config$outboundSchema;
35740
+ })(Awss3Config$ ||= {});
35741
+ });
35742
+
35743
+ // src/models/components/awss3credentials.ts
35744
+ var Awss3Credentials$inboundSchema, Awss3Credentials$outboundSchema, Awss3Credentials$;
35745
+ var init_awss3credentials = __esm(() => {
35746
+ init_lib();
35747
+ Awss3Credentials$inboundSchema = objectType({
35748
+ key: stringType(),
35749
+ secret: stringType(),
35750
+ session: stringType().optional()
35751
+ });
35752
+ Awss3Credentials$outboundSchema = objectType({
35753
+ key: stringType(),
35754
+ secret: stringType(),
35755
+ session: stringType().optional()
35756
+ });
35757
+ ((Awss3Credentials$) => {
35758
+ Awss3Credentials$.inboundSchema = Awss3Credentials$inboundSchema;
35759
+ Awss3Credentials$.outboundSchema = Awss3Credentials$outboundSchema;
35760
+ })(Awss3Credentials$ ||= {});
35761
+ });
35762
+
35710
35763
  // src/models/components/awssqsconfig.ts
35711
35764
  var AWSSQSConfig$inboundSchema, AWSSQSConfig$outboundSchema, AWSSQSConfig$;
35712
35765
  var init_awssqsconfig = __esm(() => {
@@ -35796,23 +35849,23 @@ var init_azureservicebuscredentials = __esm(() => {
35796
35849
  });
35797
35850
 
35798
35851
  // src/models/components/deliveryattempt.ts
35799
- var Status, Status$inboundSchema, Status$outboundSchema, Status$, DeliveryAttempt$inboundSchema, DeliveryAttempt$outboundSchema, DeliveryAttempt$;
35852
+ var DeliveryAttemptStatus, DeliveryAttemptStatus$inboundSchema, DeliveryAttemptStatus$outboundSchema, DeliveryAttemptStatus$, DeliveryAttempt$inboundSchema, DeliveryAttempt$outboundSchema, DeliveryAttempt$;
35800
35853
  var init_deliveryattempt = __esm(() => {
35801
35854
  init_lib();
35802
35855
  init_primitives();
35803
- Status = {
35856
+ DeliveryAttemptStatus = {
35804
35857
  Success: "success",
35805
35858
  Failed: "failed"
35806
35859
  };
35807
- Status$inboundSchema = nativeEnumType(Status);
35808
- Status$outboundSchema = Status$inboundSchema;
35809
- ((Status$) => {
35810
- Status$.inboundSchema = Status$inboundSchema;
35811
- Status$.outboundSchema = Status$outboundSchema;
35812
- })(Status$ ||= {});
35860
+ DeliveryAttemptStatus$inboundSchema = nativeEnumType(DeliveryAttemptStatus);
35861
+ DeliveryAttemptStatus$outboundSchema = DeliveryAttemptStatus$inboundSchema;
35862
+ ((DeliveryAttemptStatus$) => {
35863
+ DeliveryAttemptStatus$.inboundSchema = DeliveryAttemptStatus$inboundSchema;
35864
+ DeliveryAttemptStatus$.outboundSchema = DeliveryAttemptStatus$outboundSchema;
35865
+ })(DeliveryAttemptStatus$ ||= {});
35813
35866
  DeliveryAttempt$inboundSchema = objectType({
35814
35867
  delivered_at: stringType().datetime({ offset: true }).transform((v2) => new Date(v2)).optional(),
35815
- status: Status$inboundSchema.optional(),
35868
+ status: DeliveryAttemptStatus$inboundSchema.optional(),
35816
35869
  response_status_code: numberType().int().optional(),
35817
35870
  response_body: stringType().optional(),
35818
35871
  response_headers: recordType(stringType()).optional()
@@ -35826,7 +35879,7 @@ var init_deliveryattempt = __esm(() => {
35826
35879
  });
35827
35880
  DeliveryAttempt$outboundSchema = objectType({
35828
35881
  deliveredAt: dateType().transform((v2) => v2.toISOString()).optional(),
35829
- status: Status$outboundSchema.optional(),
35882
+ status: DeliveryAttemptStatus$outboundSchema.optional(),
35830
35883
  responseStatusCode: numberType().int().optional(),
35831
35884
  responseBody: stringType().optional(),
35832
35885
  responseHeaders: recordType(stringType()).optional()
@@ -35922,6 +35975,63 @@ var init_destinationawskinesis = __esm(() => {
35922
35975
  })(DestinationAWSKinesis$ ||= {});
35923
35976
  });
35924
35977
 
35978
+ // src/models/components/destinationawss3.ts
35979
+ var DestinationAwss3Type, DestinationAwss3Type$inboundSchema, DestinationAwss3Type$outboundSchema, DestinationAwss3Type$, DestinationAwss3$inboundSchema, DestinationAwss3$outboundSchema, DestinationAwss3$;
35980
+ var init_destinationawss3 = __esm(() => {
35981
+ init_lib();
35982
+ init_primitives();
35983
+ init_awss3config();
35984
+ init_awss3credentials();
35985
+ init_topics();
35986
+ DestinationAwss3Type = {
35987
+ AwsS3: "aws_s3"
35988
+ };
35989
+ DestinationAwss3Type$inboundSchema = nativeEnumType(DestinationAwss3Type);
35990
+ DestinationAwss3Type$outboundSchema = DestinationAwss3Type$inboundSchema;
35991
+ ((DestinationAwss3Type$) => {
35992
+ DestinationAwss3Type$.inboundSchema = DestinationAwss3Type$inboundSchema;
35993
+ DestinationAwss3Type$.outboundSchema = DestinationAwss3Type$outboundSchema;
35994
+ })(DestinationAwss3Type$ ||= {});
35995
+ DestinationAwss3$inboundSchema = objectType({
35996
+ id: stringType(),
35997
+ type: DestinationAwss3Type$inboundSchema,
35998
+ topics: Topics$inboundSchema,
35999
+ disabled_at: nullableType(stringType().datetime({ offset: true }).transform((v2) => new Date(v2))),
36000
+ created_at: stringType().datetime({ offset: true }).transform((v2) => new Date(v2)),
36001
+ config: Awss3Config$inboundSchema,
36002
+ credentials: Awss3Credentials$inboundSchema,
36003
+ target: stringType().optional(),
36004
+ target_url: nullableType(stringType()).optional()
36005
+ }).transform((v2) => {
36006
+ return remap(v2, {
36007
+ disabled_at: "disabledAt",
36008
+ created_at: "createdAt",
36009
+ target_url: "targetUrl"
36010
+ });
36011
+ });
36012
+ DestinationAwss3$outboundSchema = objectType({
36013
+ id: stringType(),
36014
+ type: DestinationAwss3Type$outboundSchema,
36015
+ topics: Topics$outboundSchema,
36016
+ disabledAt: nullableType(dateType().transform((v2) => v2.toISOString())),
36017
+ createdAt: dateType().transform((v2) => v2.toISOString()),
36018
+ config: Awss3Config$outboundSchema,
36019
+ credentials: Awss3Credentials$outboundSchema,
36020
+ target: stringType().optional(),
36021
+ targetUrl: nullableType(stringType()).optional()
36022
+ }).transform((v2) => {
36023
+ return remap(v2, {
36024
+ disabledAt: "disabled_at",
36025
+ createdAt: "created_at",
36026
+ targetUrl: "target_url"
36027
+ });
36028
+ });
36029
+ ((DestinationAwss3$) => {
36030
+ DestinationAwss3$.inboundSchema = DestinationAwss3$inboundSchema;
36031
+ DestinationAwss3$.outboundSchema = DestinationAwss3$outboundSchema;
36032
+ })(DestinationAwss3$ ||= {});
36033
+ });
36034
+
35925
36035
  // src/models/components/destinationawssqs.ts
35926
36036
  var DestinationAWSSQSType, DestinationAWSSQSType$inboundSchema, DestinationAWSSQSType$outboundSchema, DestinationAWSSQSType$, DestinationAWSSQS$inboundSchema, DestinationAWSSQS$outboundSchema, DestinationAWSSQS$;
35927
36037
  var init_destinationawssqs = __esm(() => {
@@ -36036,6 +36146,117 @@ var init_destinationazureservicebus = __esm(() => {
36036
36146
  })(DestinationAzureServiceBus$ ||= {});
36037
36147
  });
36038
36148
 
36149
+ // src/models/components/gcppubsubconfig.ts
36150
+ var GCPPubSubConfig$inboundSchema, GCPPubSubConfig$outboundSchema, GCPPubSubConfig$;
36151
+ var init_gcppubsubconfig = __esm(() => {
36152
+ init_lib();
36153
+ init_primitives();
36154
+ GCPPubSubConfig$inboundSchema = objectType({
36155
+ project_id: stringType(),
36156
+ topic: stringType(),
36157
+ endpoint: stringType().optional()
36158
+ }).transform((v2) => {
36159
+ return remap(v2, {
36160
+ project_id: "projectId"
36161
+ });
36162
+ });
36163
+ GCPPubSubConfig$outboundSchema = objectType({
36164
+ projectId: stringType(),
36165
+ topic: stringType(),
36166
+ endpoint: stringType().optional()
36167
+ }).transform((v2) => {
36168
+ return remap(v2, {
36169
+ projectId: "project_id"
36170
+ });
36171
+ });
36172
+ ((GCPPubSubConfig$) => {
36173
+ GCPPubSubConfig$.inboundSchema = GCPPubSubConfig$inboundSchema;
36174
+ GCPPubSubConfig$.outboundSchema = GCPPubSubConfig$outboundSchema;
36175
+ })(GCPPubSubConfig$ ||= {});
36176
+ });
36177
+
36178
+ // src/models/components/gcppubsubcredentials.ts
36179
+ var GCPPubSubCredentials$inboundSchema, GCPPubSubCredentials$outboundSchema, GCPPubSubCredentials$;
36180
+ var init_gcppubsubcredentials = __esm(() => {
36181
+ init_lib();
36182
+ init_primitives();
36183
+ GCPPubSubCredentials$inboundSchema = objectType({
36184
+ service_account_json: stringType()
36185
+ }).transform((v2) => {
36186
+ return remap(v2, {
36187
+ service_account_json: "serviceAccountJson"
36188
+ });
36189
+ });
36190
+ GCPPubSubCredentials$outboundSchema = objectType({
36191
+ serviceAccountJson: stringType()
36192
+ }).transform((v2) => {
36193
+ return remap(v2, {
36194
+ serviceAccountJson: "service_account_json"
36195
+ });
36196
+ });
36197
+ ((GCPPubSubCredentials$) => {
36198
+ GCPPubSubCredentials$.inboundSchema = GCPPubSubCredentials$inboundSchema;
36199
+ GCPPubSubCredentials$.outboundSchema = GCPPubSubCredentials$outboundSchema;
36200
+ })(GCPPubSubCredentials$ ||= {});
36201
+ });
36202
+
36203
+ // src/models/components/destinationgcppubsub.ts
36204
+ var DestinationGCPPubSubType, DestinationGCPPubSubType$inboundSchema, DestinationGCPPubSubType$outboundSchema, DestinationGCPPubSubType$, DestinationGCPPubSub$inboundSchema, DestinationGCPPubSub$outboundSchema, DestinationGCPPubSub$;
36205
+ var init_destinationgcppubsub = __esm(() => {
36206
+ init_lib();
36207
+ init_primitives();
36208
+ init_gcppubsubconfig();
36209
+ init_gcppubsubcredentials();
36210
+ init_topics();
36211
+ DestinationGCPPubSubType = {
36212
+ GcpPubsub: "gcp_pubsub"
36213
+ };
36214
+ DestinationGCPPubSubType$inboundSchema = nativeEnumType(DestinationGCPPubSubType);
36215
+ DestinationGCPPubSubType$outboundSchema = DestinationGCPPubSubType$inboundSchema;
36216
+ ((DestinationGCPPubSubType$) => {
36217
+ DestinationGCPPubSubType$.inboundSchema = DestinationGCPPubSubType$inboundSchema;
36218
+ DestinationGCPPubSubType$.outboundSchema = DestinationGCPPubSubType$outboundSchema;
36219
+ })(DestinationGCPPubSubType$ ||= {});
36220
+ DestinationGCPPubSub$inboundSchema = objectType({
36221
+ id: stringType(),
36222
+ type: DestinationGCPPubSubType$inboundSchema,
36223
+ topics: Topics$inboundSchema,
36224
+ disabled_at: nullableType(stringType().datetime({ offset: true }).transform((v2) => new Date(v2))),
36225
+ created_at: stringType().datetime({ offset: true }).transform((v2) => new Date(v2)),
36226
+ config: GCPPubSubConfig$inboundSchema,
36227
+ credentials: GCPPubSubCredentials$inboundSchema,
36228
+ target: stringType().optional(),
36229
+ target_url: nullableType(stringType()).optional()
36230
+ }).transform((v2) => {
36231
+ return remap(v2, {
36232
+ disabled_at: "disabledAt",
36233
+ created_at: "createdAt",
36234
+ target_url: "targetUrl"
36235
+ });
36236
+ });
36237
+ DestinationGCPPubSub$outboundSchema = objectType({
36238
+ id: stringType(),
36239
+ type: DestinationGCPPubSubType$outboundSchema,
36240
+ topics: Topics$outboundSchema,
36241
+ disabledAt: nullableType(dateType().transform((v2) => v2.toISOString())),
36242
+ createdAt: dateType().transform((v2) => v2.toISOString()),
36243
+ config: GCPPubSubConfig$outboundSchema,
36244
+ credentials: GCPPubSubCredentials$outboundSchema,
36245
+ target: stringType().optional(),
36246
+ targetUrl: nullableType(stringType()).optional()
36247
+ }).transform((v2) => {
36248
+ return remap(v2, {
36249
+ disabledAt: "disabled_at",
36250
+ createdAt: "created_at",
36251
+ targetUrl: "target_url"
36252
+ });
36253
+ });
36254
+ ((DestinationGCPPubSub$) => {
36255
+ DestinationGCPPubSub$.inboundSchema = DestinationGCPPubSub$inboundSchema;
36256
+ DestinationGCPPubSub$.outboundSchema = DestinationGCPPubSub$outboundSchema;
36257
+ })(DestinationGCPPubSub$ ||= {});
36258
+ });
36259
+
36039
36260
  // src/models/components/hookdeckcredentials.ts
36040
36261
  var HookdeckCredentials$inboundSchema, HookdeckCredentials$outboundSchema, HookdeckCredentials$;
36041
36262
  var init_hookdeckcredentials = __esm(() => {
@@ -36331,8 +36552,10 @@ var Destination$inboundSchema, Destination$outboundSchema, Destination$;
36331
36552
  var init_destination = __esm(() => {
36332
36553
  init_lib();
36333
36554
  init_destinationawskinesis();
36555
+ init_destinationawss3();
36334
36556
  init_destinationawssqs();
36335
36557
  init_destinationazureservicebus();
36558
+ init_destinationgcppubsub();
36336
36559
  init_destinationhookdeck();
36337
36560
  init_destinationrabbitmq();
36338
36561
  init_destinationwebhook();
@@ -36352,6 +36575,12 @@ var init_destination = __esm(() => {
36352
36575
  DestinationAzureServiceBus$inboundSchema.and(objectType({ type: literalType("azure_servicebus") }).transform((v2) => ({
36353
36576
  type: v2.type
36354
36577
  }))),
36578
+ DestinationAwss3$inboundSchema.and(objectType({ type: literalType("aws_s3") }).transform((v2) => ({
36579
+ type: v2.type
36580
+ }))),
36581
+ DestinationGCPPubSub$inboundSchema.and(objectType({ type: literalType("gcp_pubsub") }).transform((v2) => ({
36582
+ type: v2.type
36583
+ }))),
36355
36584
  DestinationHookdeck$inboundSchema.and(objectType({ type: literalType("hookdeck") }).transform((v2) => ({
36356
36585
  type: v2.type
36357
36586
  })))
@@ -36372,6 +36601,12 @@ var init_destination = __esm(() => {
36372
36601
  DestinationAzureServiceBus$outboundSchema.and(objectType({ type: literalType("azure_servicebus") }).transform((v2) => ({
36373
36602
  type: v2.type
36374
36603
  }))),
36604
+ DestinationAwss3$outboundSchema.and(objectType({ type: literalType("aws_s3") }).transform((v2) => ({
36605
+ type: v2.type
36606
+ }))),
36607
+ DestinationGCPPubSub$outboundSchema.and(objectType({ type: literalType("gcp_pubsub") }).transform((v2) => ({
36608
+ type: v2.type
36609
+ }))),
36375
36610
  DestinationHookdeck$outboundSchema.and(objectType({ type: literalType("hookdeck") }).transform((v2) => ({
36376
36611
  type: v2.type
36377
36612
  })))
@@ -36418,6 +36653,42 @@ var init_destinationcreateawskinesis = __esm(() => {
36418
36653
  })(DestinationCreateAWSKinesis$ ||= {});
36419
36654
  });
36420
36655
 
36656
+ // src/models/components/destinationcreateawss3.ts
36657
+ var DestinationCreateAwss3Type, DestinationCreateAwss3Type$inboundSchema, DestinationCreateAwss3Type$outboundSchema, DestinationCreateAwss3Type$, DestinationCreateAwss3$inboundSchema, DestinationCreateAwss3$outboundSchema, DestinationCreateAwss3$;
36658
+ var init_destinationcreateawss3 = __esm(() => {
36659
+ init_lib();
36660
+ init_awss3config();
36661
+ init_awss3credentials();
36662
+ init_topics();
36663
+ DestinationCreateAwss3Type = {
36664
+ AwsS3: "aws_s3"
36665
+ };
36666
+ DestinationCreateAwss3Type$inboundSchema = nativeEnumType(DestinationCreateAwss3Type);
36667
+ DestinationCreateAwss3Type$outboundSchema = DestinationCreateAwss3Type$inboundSchema;
36668
+ ((DestinationCreateAwss3Type$) => {
36669
+ DestinationCreateAwss3Type$.inboundSchema = DestinationCreateAwss3Type$inboundSchema;
36670
+ DestinationCreateAwss3Type$.outboundSchema = DestinationCreateAwss3Type$outboundSchema;
36671
+ })(DestinationCreateAwss3Type$ ||= {});
36672
+ DestinationCreateAwss3$inboundSchema = objectType({
36673
+ id: stringType().optional(),
36674
+ type: DestinationCreateAwss3Type$inboundSchema,
36675
+ topics: Topics$inboundSchema,
36676
+ config: Awss3Config$inboundSchema,
36677
+ credentials: Awss3Credentials$inboundSchema
36678
+ });
36679
+ DestinationCreateAwss3$outboundSchema = objectType({
36680
+ id: stringType().optional(),
36681
+ type: DestinationCreateAwss3Type$outboundSchema,
36682
+ topics: Topics$outboundSchema,
36683
+ config: Awss3Config$outboundSchema,
36684
+ credentials: Awss3Credentials$outboundSchema
36685
+ });
36686
+ ((DestinationCreateAwss3$) => {
36687
+ DestinationCreateAwss3$.inboundSchema = DestinationCreateAwss3$inboundSchema;
36688
+ DestinationCreateAwss3$.outboundSchema = DestinationCreateAwss3$outboundSchema;
36689
+ })(DestinationCreateAwss3$ ||= {});
36690
+ });
36691
+
36421
36692
  // src/models/components/destinationcreateawssqs.ts
36422
36693
  var DestinationCreateAWSSQSType, DestinationCreateAWSSQSType$inboundSchema, DestinationCreateAWSSQSType$outboundSchema, DestinationCreateAWSSQSType$, DestinationCreateAWSSQS$inboundSchema, DestinationCreateAWSSQS$outboundSchema, DestinationCreateAWSSQS$;
36423
36694
  var init_destinationcreateawssqs = __esm(() => {
@@ -36490,6 +36761,42 @@ var init_destinationcreateazureservicebus = __esm(() => {
36490
36761
  })(DestinationCreateAzureServiceBus$ ||= {});
36491
36762
  });
36492
36763
 
36764
+ // src/models/components/destinationcreategcppubsub.ts
36765
+ var DestinationCreateGCPPubSubType, DestinationCreateGCPPubSubType$inboundSchema, DestinationCreateGCPPubSubType$outboundSchema, DestinationCreateGCPPubSubType$, DestinationCreateGCPPubSub$inboundSchema, DestinationCreateGCPPubSub$outboundSchema, DestinationCreateGCPPubSub$;
36766
+ var init_destinationcreategcppubsub = __esm(() => {
36767
+ init_lib();
36768
+ init_gcppubsubconfig();
36769
+ init_gcppubsubcredentials();
36770
+ init_topics();
36771
+ DestinationCreateGCPPubSubType = {
36772
+ GcpPubsub: "gcp_pubsub"
36773
+ };
36774
+ DestinationCreateGCPPubSubType$inboundSchema = nativeEnumType(DestinationCreateGCPPubSubType);
36775
+ DestinationCreateGCPPubSubType$outboundSchema = DestinationCreateGCPPubSubType$inboundSchema;
36776
+ ((DestinationCreateGCPPubSubType$) => {
36777
+ DestinationCreateGCPPubSubType$.inboundSchema = DestinationCreateGCPPubSubType$inboundSchema;
36778
+ DestinationCreateGCPPubSubType$.outboundSchema = DestinationCreateGCPPubSubType$outboundSchema;
36779
+ })(DestinationCreateGCPPubSubType$ ||= {});
36780
+ DestinationCreateGCPPubSub$inboundSchema = objectType({
36781
+ id: stringType().optional(),
36782
+ type: DestinationCreateGCPPubSubType$inboundSchema,
36783
+ topics: Topics$inboundSchema,
36784
+ config: GCPPubSubConfig$inboundSchema,
36785
+ credentials: GCPPubSubCredentials$inboundSchema
36786
+ });
36787
+ DestinationCreateGCPPubSub$outboundSchema = objectType({
36788
+ id: stringType().optional(),
36789
+ type: DestinationCreateGCPPubSubType$outboundSchema,
36790
+ topics: Topics$outboundSchema,
36791
+ config: GCPPubSubConfig$outboundSchema,
36792
+ credentials: GCPPubSubCredentials$outboundSchema
36793
+ });
36794
+ ((DestinationCreateGCPPubSub$) => {
36795
+ DestinationCreateGCPPubSub$.inboundSchema = DestinationCreateGCPPubSub$inboundSchema;
36796
+ DestinationCreateGCPPubSub$.outboundSchema = DestinationCreateGCPPubSub$outboundSchema;
36797
+ })(DestinationCreateGCPPubSub$ ||= {});
36798
+ });
36799
+
36493
36800
  // src/models/components/destinationcreatehookdeck.ts
36494
36801
  var DestinationCreateHookdeckType, DestinationCreateHookdeckType$inboundSchema, DestinationCreateHookdeckType$outboundSchema, DestinationCreateHookdeckType$, DestinationCreateHookdeck$inboundSchema, DestinationCreateHookdeck$outboundSchema, DestinationCreateHookdeck$;
36495
36802
  var init_destinationcreatehookdeck = __esm(() => {
@@ -36602,8 +36909,10 @@ var DestinationCreate$inboundSchema, DestinationCreate$outboundSchema, Destinati
36602
36909
  var init_destinationcreate = __esm(() => {
36603
36910
  init_lib();
36604
36911
  init_destinationcreateawskinesis();
36912
+ init_destinationcreateawss3();
36605
36913
  init_destinationcreateawssqs();
36606
36914
  init_destinationcreateazureservicebus();
36915
+ init_destinationcreategcppubsub();
36607
36916
  init_destinationcreatehookdeck();
36608
36917
  init_destinationcreaterabbitmq();
36609
36918
  init_destinationcreatewebhook();
@@ -36620,6 +36929,12 @@ var init_destinationcreate = __esm(() => {
36620
36929
  DestinationCreateAzureServiceBus$inboundSchema.and(objectType({ type: literalType("azure_servicebus") }).transform((v2) => ({
36621
36930
  type: v2.type
36622
36931
  }))),
36932
+ DestinationCreateAwss3$inboundSchema.and(objectType({ type: literalType("aws_s3") }).transform((v2) => ({
36933
+ type: v2.type
36934
+ }))),
36935
+ DestinationCreateGCPPubSub$inboundSchema.and(objectType({ type: literalType("gcp_pubsub") }).transform((v2) => ({
36936
+ type: v2.type
36937
+ }))),
36623
36938
  DestinationCreateWebhook$inboundSchema.and(objectType({ type: literalType("webhook") }).transform((v2) => ({
36624
36939
  type: v2.type
36625
36940
  }))),
@@ -36640,6 +36955,12 @@ var init_destinationcreate = __esm(() => {
36640
36955
  DestinationCreateAzureServiceBus$outboundSchema.and(objectType({ type: literalType("azure_servicebus") }).transform((v2) => ({
36641
36956
  type: v2.type
36642
36957
  }))),
36958
+ DestinationCreateAwss3$outboundSchema.and(objectType({ type: literalType("aws_s3") }).transform((v2) => ({
36959
+ type: v2.type
36960
+ }))),
36961
+ DestinationCreateGCPPubSub$outboundSchema.and(objectType({ type: literalType("gcp_pubsub") }).transform((v2) => ({
36962
+ type: v2.type
36963
+ }))),
36643
36964
  DestinationCreateWebhook$outboundSchema.and(objectType({ type: literalType("webhook") }).transform((v2) => ({
36644
36965
  type: v2.type
36645
36966
  }))),
@@ -36762,6 +37083,29 @@ var init_destinationupdateawskinesis = __esm(() => {
36762
37083
  })(DestinationUpdateAWSKinesis$ ||= {});
36763
37084
  });
36764
37085
 
37086
+ // src/models/components/destinationupdateawss3.ts
37087
+ var DestinationUpdateAwss3$inboundSchema, DestinationUpdateAwss3$outboundSchema, DestinationUpdateAwss3$;
37088
+ var init_destinationupdateawss3 = __esm(() => {
37089
+ init_lib();
37090
+ init_awss3config();
37091
+ init_awss3credentials();
37092
+ init_topics();
37093
+ DestinationUpdateAwss3$inboundSchema = objectType({
37094
+ topics: Topics$inboundSchema.optional(),
37095
+ config: Awss3Config$inboundSchema.optional(),
37096
+ credentials: Awss3Credentials$inboundSchema.optional()
37097
+ });
37098
+ DestinationUpdateAwss3$outboundSchema = objectType({
37099
+ topics: Topics$outboundSchema.optional(),
37100
+ config: Awss3Config$outboundSchema.optional(),
37101
+ credentials: Awss3Credentials$outboundSchema.optional()
37102
+ });
37103
+ ((DestinationUpdateAwss3$) => {
37104
+ DestinationUpdateAwss3$.inboundSchema = DestinationUpdateAwss3$inboundSchema;
37105
+ DestinationUpdateAwss3$.outboundSchema = DestinationUpdateAwss3$outboundSchema;
37106
+ })(DestinationUpdateAwss3$ ||= {});
37107
+ });
37108
+
36765
37109
  // src/models/components/destinationupdateawssqs.ts
36766
37110
  var DestinationUpdateAWSSQS$inboundSchema, DestinationUpdateAWSSQS$outboundSchema, DestinationUpdateAWSSQS$;
36767
37111
  var init_destinationupdateawssqs = __esm(() => {
@@ -36785,6 +37129,52 @@ var init_destinationupdateawssqs = __esm(() => {
36785
37129
  })(DestinationUpdateAWSSQS$ ||= {});
36786
37130
  });
36787
37131
 
37132
+ // src/models/components/destinationupdateazureservicebus.ts
37133
+ var DestinationUpdateAzureServiceBus$inboundSchema, DestinationUpdateAzureServiceBus$outboundSchema, DestinationUpdateAzureServiceBus$;
37134
+ var init_destinationupdateazureservicebus = __esm(() => {
37135
+ init_lib();
37136
+ init_azureservicebusconfig();
37137
+ init_azureservicebuscredentials();
37138
+ init_topics();
37139
+ DestinationUpdateAzureServiceBus$inboundSchema = objectType({
37140
+ topics: Topics$inboundSchema.optional(),
37141
+ config: AzureServiceBusConfig$inboundSchema.optional(),
37142
+ credentials: AzureServiceBusCredentials$inboundSchema.optional()
37143
+ });
37144
+ DestinationUpdateAzureServiceBus$outboundSchema = objectType({
37145
+ topics: Topics$outboundSchema.optional(),
37146
+ config: AzureServiceBusConfig$outboundSchema.optional(),
37147
+ credentials: AzureServiceBusCredentials$outboundSchema.optional()
37148
+ });
37149
+ ((DestinationUpdateAzureServiceBus$) => {
37150
+ DestinationUpdateAzureServiceBus$.inboundSchema = DestinationUpdateAzureServiceBus$inboundSchema;
37151
+ DestinationUpdateAzureServiceBus$.outboundSchema = DestinationUpdateAzureServiceBus$outboundSchema;
37152
+ })(DestinationUpdateAzureServiceBus$ ||= {});
37153
+ });
37154
+
37155
+ // src/models/components/destinationupdategcppubsub.ts
37156
+ var DestinationUpdateGCPPubSub$inboundSchema, DestinationUpdateGCPPubSub$outboundSchema, DestinationUpdateGCPPubSub$;
37157
+ var init_destinationupdategcppubsub = __esm(() => {
37158
+ init_lib();
37159
+ init_gcppubsubconfig();
37160
+ init_gcppubsubcredentials();
37161
+ init_topics();
37162
+ DestinationUpdateGCPPubSub$inboundSchema = objectType({
37163
+ topics: Topics$inboundSchema.optional(),
37164
+ config: GCPPubSubConfig$inboundSchema.optional(),
37165
+ credentials: GCPPubSubCredentials$inboundSchema.optional()
37166
+ });
37167
+ DestinationUpdateGCPPubSub$outboundSchema = objectType({
37168
+ topics: Topics$outboundSchema.optional(),
37169
+ config: GCPPubSubConfig$outboundSchema.optional(),
37170
+ credentials: GCPPubSubCredentials$outboundSchema.optional()
37171
+ });
37172
+ ((DestinationUpdateGCPPubSub$) => {
37173
+ DestinationUpdateGCPPubSub$.inboundSchema = DestinationUpdateGCPPubSub$inboundSchema;
37174
+ DestinationUpdateGCPPubSub$.outboundSchema = DestinationUpdateGCPPubSub$outboundSchema;
37175
+ })(DestinationUpdateGCPPubSub$ ||= {});
37176
+ });
37177
+
36788
37178
  // src/models/components/destinationupdatehookdeck.ts
36789
37179
  var DestinationUpdateHookdeck$inboundSchema, DestinationUpdateHookdeck$outboundSchema, DestinationUpdateHookdeck$;
36790
37180
  var init_destinationupdatehookdeck = __esm(() => {
@@ -36893,7 +37283,10 @@ var DestinationUpdate$inboundSchema, DestinationUpdate$outboundSchema, Destinati
36893
37283
  var init_destinationupdate = __esm(() => {
36894
37284
  init_lib();
36895
37285
  init_destinationupdateawskinesis();
37286
+ init_destinationupdateawss3();
36896
37287
  init_destinationupdateawssqs();
37288
+ init_destinationupdateazureservicebus();
37289
+ init_destinationupdategcppubsub();
36897
37290
  init_destinationupdatehookdeck();
36898
37291
  init_destinationupdaterabbitmq();
36899
37292
  init_destinationupdatewebhook();
@@ -36902,14 +37295,20 @@ var init_destinationupdate = __esm(() => {
36902
37295
  DestinationUpdateAWSSQS$inboundSchema,
36903
37296
  DestinationUpdateRabbitMQ$inboundSchema,
36904
37297
  DestinationUpdateHookdeck$inboundSchema,
36905
- DestinationUpdateAWSKinesis$inboundSchema
37298
+ DestinationUpdateAWSKinesis$inboundSchema,
37299
+ DestinationUpdateAzureServiceBus$inboundSchema,
37300
+ DestinationUpdateAwss3$inboundSchema,
37301
+ DestinationUpdateGCPPubSub$inboundSchema
36906
37302
  ]);
36907
37303
  DestinationUpdate$outboundSchema = unionType([
36908
37304
  DestinationUpdateWebhook$outboundSchema,
36909
37305
  DestinationUpdateAWSSQS$outboundSchema,
36910
37306
  DestinationUpdateRabbitMQ$outboundSchema,
36911
37307
  DestinationUpdateHookdeck$outboundSchema,
36912
- DestinationUpdateAWSKinesis$outboundSchema
37308
+ DestinationUpdateAWSKinesis$outboundSchema,
37309
+ DestinationUpdateAzureServiceBus$outboundSchema,
37310
+ DestinationUpdateAwss3$outboundSchema,
37311
+ DestinationUpdateGCPPubSub$outboundSchema
36913
37312
  ]);
36914
37313
  ((DestinationUpdate$) => {
36915
37314
  DestinationUpdate$.inboundSchema = DestinationUpdate$inboundSchema;
@@ -36918,17 +37317,28 @@ var init_destinationupdate = __esm(() => {
36918
37317
  });
36919
37318
 
36920
37319
  // src/models/components/event.ts
36921
- var Event$inboundSchema, Event$outboundSchema, Event$;
37320
+ var EventStatus, EventStatus$inboundSchema, EventStatus$outboundSchema, EventStatus$, Event$inboundSchema, Event$outboundSchema, Event$;
36922
37321
  var init_event = __esm(() => {
36923
37322
  init_lib();
36924
37323
  init_primitives();
37324
+ EventStatus = {
37325
+ Success: "success",
37326
+ Failed: "failed"
37327
+ };
37328
+ EventStatus$inboundSchema = nativeEnumType(EventStatus);
37329
+ EventStatus$outboundSchema = EventStatus$inboundSchema;
37330
+ ((EventStatus$) => {
37331
+ EventStatus$.inboundSchema = EventStatus$inboundSchema;
37332
+ EventStatus$.outboundSchema = EventStatus$outboundSchema;
37333
+ })(EventStatus$ ||= {});
36925
37334
  Event$inboundSchema = objectType({
36926
37335
  id: stringType().optional(),
36927
37336
  destination_id: stringType().optional(),
36928
37337
  topic: stringType().optional(),
36929
37338
  time: stringType().datetime({ offset: true }).transform((v2) => new Date(v2)).optional(),
36930
37339
  successful_at: nullableType(stringType().datetime({ offset: true }).transform((v2) => new Date(v2))).optional(),
36931
- metadata: recordType(stringType()).optional(),
37340
+ metadata: nullableType(recordType(stringType())).optional(),
37341
+ status: EventStatus$inboundSchema.optional(),
36932
37342
  data: recordType(anyType()).optional()
36933
37343
  }).transform((v2) => {
36934
37344
  return remap(v2, {
@@ -36942,7 +37352,8 @@ var init_event = __esm(() => {
36942
37352
  topic: stringType().optional(),
36943
37353
  time: dateType().transform((v2) => v2.toISOString()).optional(),
36944
37354
  successfulAt: nullableType(dateType().transform((v2) => v2.toISOString())).optional(),
36945
- metadata: recordType(stringType()).optional(),
37355
+ metadata: nullableType(recordType(stringType())).optional(),
37356
+ status: EventStatus$outboundSchema.optional(),
36946
37357
  data: recordType(anyType()).optional()
36947
37358
  }).transform((v2) => {
36948
37359
  return remap(v2, {
@@ -37136,6 +37547,8 @@ var init_tenanttoken = __esm(() => {
37136
37547
  var init_components = __esm(() => {
37137
37548
  init_awskinesisconfig();
37138
37549
  init_awskinesiscredentials();
37550
+ init_awss3config();
37551
+ init_awss3credentials();
37139
37552
  init_awssqsconfig();
37140
37553
  init_awssqscredentials();
37141
37554
  init_azureservicebusconfig();
@@ -37143,27 +37556,36 @@ var init_components = __esm(() => {
37143
37556
  init_deliveryattempt();
37144
37557
  init_destination();
37145
37558
  init_destinationawskinesis();
37559
+ init_destinationawss3();
37146
37560
  init_destinationawssqs();
37147
37561
  init_destinationazureservicebus();
37148
37562
  init_destinationcreate();
37149
37563
  init_destinationcreateawskinesis();
37564
+ init_destinationcreateawss3();
37150
37565
  init_destinationcreateawssqs();
37151
37566
  init_destinationcreateazureservicebus();
37567
+ init_destinationcreategcppubsub();
37152
37568
  init_destinationcreatehookdeck();
37153
37569
  init_destinationcreaterabbitmq();
37154
37570
  init_destinationcreatewebhook();
37571
+ init_destinationgcppubsub();
37155
37572
  init_destinationhookdeck();
37156
37573
  init_destinationrabbitmq();
37157
37574
  init_destinationschemafield();
37158
37575
  init_destinationtypeschema();
37159
37576
  init_destinationupdate();
37160
37577
  init_destinationupdateawskinesis();
37578
+ init_destinationupdateawss3();
37161
37579
  init_destinationupdateawssqs();
37580
+ init_destinationupdateazureservicebus();
37581
+ init_destinationupdategcppubsub();
37162
37582
  init_destinationupdatehookdeck();
37163
37583
  init_destinationupdaterabbitmq();
37164
37584
  init_destinationupdatewebhook();
37165
37585
  init_destinationwebhook();
37166
37586
  init_event();
37587
+ init_gcppubsubconfig();
37588
+ init_gcppubsubcredentials();
37167
37589
  init_hookdeckcredentials();
37168
37590
  init_portalredirect();
37169
37591
  init_publishrequest();
@@ -37481,6 +37903,7 @@ var init_errors = __esm(() => {
37481
37903
  init_httpclienterrors();
37482
37904
  init_internalservererror();
37483
37905
  init_notfounderror();
37906
+ init_outposterror();
37484
37907
  init_ratelimitederror();
37485
37908
  init_responsevalidationerror();
37486
37909
  init_sdkvalidationerror();
@@ -37729,7 +38152,8 @@ var init_getdestinationtypeschema = __esm(() => {
37729
38152
  AwsSqs: "aws_sqs",
37730
38153
  Rabbitmq: "rabbitmq",
37731
38154
  Hookdeck: "hookdeck",
37732
- AwsKinesis: "aws_kinesis"
38155
+ AwsKinesis: "aws_kinesis",
38156
+ AwsS3: "aws_s3"
37733
38157
  };
37734
38158
  GetDestinationTypeSchemaType$inboundSchema = nativeEnumType(GetDestinationTypeSchemaType);
37735
38159
  GetDestinationTypeSchemaType$outboundSchema = GetDestinationTypeSchemaType$inboundSchema;
@@ -37849,7 +38273,8 @@ var init_gettenantdestinationtypeschema = __esm(() => {
37849
38273
  AwsSqs: "aws_sqs",
37850
38274
  Rabbitmq: "rabbitmq",
37851
38275
  Hookdeck: "hookdeck",
37852
- AwsKinesis: "aws_kinesis"
38276
+ AwsKinesis: "aws_kinesis",
38277
+ AwsS3: "aws_s3"
37853
38278
  };
37854
38279
  GetTenantDestinationTypeSchemaGlobals$inboundSchema = objectType({
37855
38280
  tenant_id: stringType().optional()
@@ -38103,14 +38528,20 @@ var init_listtenantdestinations = __esm(() => {
38103
38528
  AwsSqs: "aws_sqs",
38104
38529
  Rabbitmq: "rabbitmq",
38105
38530
  Hookdeck: "hookdeck",
38106
- AwsKinesis: "aws_kinesis"
38531
+ AwsKinesis: "aws_kinesis",
38532
+ AzureServicebus: "azure_servicebus",
38533
+ AwsS3: "aws_s3",
38534
+ GcpPubsub: "gcp_pubsub"
38107
38535
  };
38108
38536
  ListTenantDestinationsTypeEnum1 = {
38109
38537
  Webhook: "webhook",
38110
38538
  AwsSqs: "aws_sqs",
38111
38539
  Rabbitmq: "rabbitmq",
38112
38540
  Hookdeck: "hookdeck",
38113
- AwsKinesis: "aws_kinesis"
38541
+ AwsKinesis: "aws_kinesis",
38542
+ AzureServicebus: "azure_servicebus",
38543
+ AwsS3: "aws_s3",
38544
+ GcpPubsub: "gcp_pubsub"
38114
38545
  };
38115
38546
  ListTenantDestinationsGlobals$inboundSchema = objectType({
38116
38547
  tenant_id: stringType().optional()
@@ -38281,10 +38712,11 @@ var init_listtenanteventdeliveries = __esm(() => {
38281
38712
  });
38282
38713
 
38283
38714
  // src/models/operations/listtenantevents.ts
38284
- var ListTenantEventsStatus, ListTenantEventsGlobals$inboundSchema, ListTenantEventsGlobals$outboundSchema, ListTenantEventsGlobals$, DestinationId$inboundSchema, DestinationId$outboundSchema, DestinationId$, ListTenantEventsStatus$inboundSchema, ListTenantEventsStatus$outboundSchema, ListTenantEventsStatus$, ListTenantEventsRequest$inboundSchema, ListTenantEventsRequest$outboundSchema, ListTenantEventsRequest$;
38715
+ var ListTenantEventsStatus, ListTenantEventsGlobals$inboundSchema, ListTenantEventsGlobals$outboundSchema, ListTenantEventsGlobals$, DestinationId$inboundSchema, DestinationId$outboundSchema, DestinationId$, ListTenantEventsStatus$inboundSchema, ListTenantEventsStatus$outboundSchema, ListTenantEventsStatus$, ListTenantEventsRequest$inboundSchema, ListTenantEventsRequest$outboundSchema, ListTenantEventsRequest$, ListTenantEventsResponseBody$inboundSchema, ListTenantEventsResponseBody$outboundSchema, ListTenantEventsResponseBody$, ListTenantEventsResponse$inboundSchema, ListTenantEventsResponse$outboundSchema, ListTenantEventsResponse$;
38285
38716
  var init_listtenantevents = __esm(() => {
38286
38717
  init_lib();
38287
38718
  init_primitives();
38719
+ init_components();
38288
38720
  ListTenantEventsStatus = {
38289
38721
  Success: "success",
38290
38722
  Failed: "failed"
@@ -38322,7 +38754,12 @@ var init_listtenantevents = __esm(() => {
38322
38754
  ListTenantEventsRequest$inboundSchema = objectType({
38323
38755
  tenant_id: stringType().optional(),
38324
38756
  destination_id: unionType([stringType(), arrayType(stringType())]).optional(),
38325
- status: ListTenantEventsStatus$inboundSchema.optional()
38757
+ status: ListTenantEventsStatus$inboundSchema.optional(),
38758
+ next: stringType().optional(),
38759
+ prev: stringType().optional(),
38760
+ limit: numberType().int().default(100),
38761
+ start: stringType().datetime({ offset: true }).transform((v2) => new Date(v2)).optional(),
38762
+ end: stringType().datetime({ offset: true }).transform((v2) => new Date(v2)).optional()
38326
38763
  }).transform((v2) => {
38327
38764
  return remap(v2, {
38328
38765
  tenant_id: "tenantId",
@@ -38332,7 +38769,12 @@ var init_listtenantevents = __esm(() => {
38332
38769
  ListTenantEventsRequest$outboundSchema = objectType({
38333
38770
  tenantId: stringType().optional(),
38334
38771
  destinationId: unionType([stringType(), arrayType(stringType())]).optional(),
38335
- status: ListTenantEventsStatus$outboundSchema.optional()
38772
+ status: ListTenantEventsStatus$outboundSchema.optional(),
38773
+ next: stringType().optional(),
38774
+ prev: stringType().optional(),
38775
+ limit: numberType().int().default(100),
38776
+ start: dateType().transform((v2) => v2.toISOString()).optional(),
38777
+ end: dateType().transform((v2) => v2.toISOString()).optional()
38336
38778
  }).transform((v2) => {
38337
38779
  return remap(v2, {
38338
38780
  tenantId: "tenant_id",
@@ -38343,13 +38785,58 @@ var init_listtenantevents = __esm(() => {
38343
38785
  ListTenantEventsRequest$.inboundSchema = ListTenantEventsRequest$inboundSchema;
38344
38786
  ListTenantEventsRequest$.outboundSchema = ListTenantEventsRequest$outboundSchema;
38345
38787
  })(ListTenantEventsRequest$ ||= {});
38788
+ ListTenantEventsResponseBody$inboundSchema = objectType({
38789
+ count: numberType().int(),
38790
+ data: arrayType(Event$inboundSchema),
38791
+ next: stringType(),
38792
+ prev: stringType()
38793
+ }).transform((v2) => {
38794
+ return remap(v2, {
38795
+ next: "nextCursor",
38796
+ prev: "prevCursor"
38797
+ });
38798
+ });
38799
+ ListTenantEventsResponseBody$outboundSchema = objectType({
38800
+ count: numberType().int(),
38801
+ data: arrayType(Event$outboundSchema),
38802
+ nextCursor: stringType(),
38803
+ prevCursor: stringType()
38804
+ }).transform((v2) => {
38805
+ return remap(v2, {
38806
+ nextCursor: "next",
38807
+ prevCursor: "prev"
38808
+ });
38809
+ });
38810
+ ((ListTenantEventsResponseBody$) => {
38811
+ ListTenantEventsResponseBody$.inboundSchema = ListTenantEventsResponseBody$inboundSchema;
38812
+ ListTenantEventsResponseBody$.outboundSchema = ListTenantEventsResponseBody$outboundSchema;
38813
+ })(ListTenantEventsResponseBody$ ||= {});
38814
+ ListTenantEventsResponse$inboundSchema = objectType({
38815
+ Result: lazyType(() => ListTenantEventsResponseBody$inboundSchema)
38816
+ }).transform((v2) => {
38817
+ return remap(v2, {
38818
+ Result: "result"
38819
+ });
38820
+ });
38821
+ ListTenantEventsResponse$outboundSchema = objectType({
38822
+ result: lazyType(() => ListTenantEventsResponseBody$outboundSchema)
38823
+ }).transform((v2) => {
38824
+ return remap(v2, {
38825
+ result: "Result"
38826
+ });
38827
+ });
38828
+ ((ListTenantEventsResponse$) => {
38829
+ ListTenantEventsResponse$.inboundSchema = ListTenantEventsResponse$inboundSchema;
38830
+ ListTenantEventsResponse$.outboundSchema = ListTenantEventsResponse$outboundSchema;
38831
+ })(ListTenantEventsResponse$ ||= {});
38346
38832
  });
38347
38833
 
38348
38834
  // src/models/operations/listtenanteventsbydestination.ts
38349
- var ListTenantEventsByDestinationStatus, ListTenantEventsByDestinationGlobals$inboundSchema, ListTenantEventsByDestinationGlobals$outboundSchema, ListTenantEventsByDestinationGlobals$, ListTenantEventsByDestinationStatus$inboundSchema, ListTenantEventsByDestinationStatus$outboundSchema, ListTenantEventsByDestinationStatus$, ListTenantEventsByDestinationRequest$inboundSchema, ListTenantEventsByDestinationRequest$outboundSchema, ListTenantEventsByDestinationRequest$;
38835
+ var ListTenantEventsByDestinationStatus, ListTenantEventsByDestinationGlobals$inboundSchema, ListTenantEventsByDestinationGlobals$outboundSchema, ListTenantEventsByDestinationGlobals$, ListTenantEventsByDestinationStatus$inboundSchema, ListTenantEventsByDestinationStatus$outboundSchema, ListTenantEventsByDestinationStatus$, ListTenantEventsByDestinationRequest$inboundSchema, ListTenantEventsByDestinationRequest$outboundSchema, ListTenantEventsByDestinationRequest$, ListTenantEventsByDestinationResponseBody$inboundSchema, ListTenantEventsByDestinationResponseBody$outboundSchema, ListTenantEventsByDestinationResponseBody$, ListTenantEventsByDestinationResponse$inboundSchema, ListTenantEventsByDestinationResponse$outboundSchema, ListTenantEventsByDestinationResponse$;
38350
38836
  var init_listtenanteventsbydestination = __esm(() => {
38351
38837
  init_lib();
38352
38838
  init_primitives();
38839
+ init_components();
38353
38840
  ListTenantEventsByDestinationStatus = {
38354
38841
  Success: "success",
38355
38842
  Failed: "failed"
@@ -38381,7 +38868,12 @@ var init_listtenanteventsbydestination = __esm(() => {
38381
38868
  ListTenantEventsByDestinationRequest$inboundSchema = objectType({
38382
38869
  tenant_id: stringType().optional(),
38383
38870
  destination_id: stringType(),
38384
- status: ListTenantEventsByDestinationStatus$inboundSchema.optional()
38871
+ status: ListTenantEventsByDestinationStatus$inboundSchema.optional(),
38872
+ next: stringType().optional(),
38873
+ prev: stringType().optional(),
38874
+ limit: numberType().int().default(100),
38875
+ start: stringType().datetime({ offset: true }).transform((v2) => new Date(v2)).optional(),
38876
+ end: stringType().datetime({ offset: true }).transform((v2) => new Date(v2)).optional()
38385
38877
  }).transform((v2) => {
38386
38878
  return remap(v2, {
38387
38879
  tenant_id: "tenantId",
@@ -38391,7 +38883,12 @@ var init_listtenanteventsbydestination = __esm(() => {
38391
38883
  ListTenantEventsByDestinationRequest$outboundSchema = objectType({
38392
38884
  tenantId: stringType().optional(),
38393
38885
  destinationId: stringType(),
38394
- status: ListTenantEventsByDestinationStatus$outboundSchema.optional()
38886
+ status: ListTenantEventsByDestinationStatus$outboundSchema.optional(),
38887
+ next: stringType().optional(),
38888
+ prev: stringType().optional(),
38889
+ limit: numberType().int().default(100),
38890
+ start: dateType().transform((v2) => v2.toISOString()).optional(),
38891
+ end: dateType().transform((v2) => v2.toISOString()).optional()
38395
38892
  }).transform((v2) => {
38396
38893
  return remap(v2, {
38397
38894
  tenantId: "tenant_id",
@@ -38402,6 +38899,50 @@ var init_listtenanteventsbydestination = __esm(() => {
38402
38899
  ListTenantEventsByDestinationRequest$.inboundSchema = ListTenantEventsByDestinationRequest$inboundSchema;
38403
38900
  ListTenantEventsByDestinationRequest$.outboundSchema = ListTenantEventsByDestinationRequest$outboundSchema;
38404
38901
  })(ListTenantEventsByDestinationRequest$ ||= {});
38902
+ ListTenantEventsByDestinationResponseBody$inboundSchema = objectType({
38903
+ count: numberType().int(),
38904
+ data: arrayType(Event$inboundSchema),
38905
+ next: stringType(),
38906
+ prev: stringType()
38907
+ }).transform((v2) => {
38908
+ return remap(v2, {
38909
+ next: "nextCursor",
38910
+ prev: "prevCursor"
38911
+ });
38912
+ });
38913
+ ListTenantEventsByDestinationResponseBody$outboundSchema = objectType({
38914
+ count: numberType().int(),
38915
+ data: arrayType(Event$outboundSchema),
38916
+ nextCursor: stringType(),
38917
+ prevCursor: stringType()
38918
+ }).transform((v2) => {
38919
+ return remap(v2, {
38920
+ nextCursor: "next",
38921
+ prevCursor: "prev"
38922
+ });
38923
+ });
38924
+ ((ListTenantEventsByDestinationResponseBody$) => {
38925
+ ListTenantEventsByDestinationResponseBody$.inboundSchema = ListTenantEventsByDestinationResponseBody$inboundSchema;
38926
+ ListTenantEventsByDestinationResponseBody$.outboundSchema = ListTenantEventsByDestinationResponseBody$outboundSchema;
38927
+ })(ListTenantEventsByDestinationResponseBody$ ||= {});
38928
+ ListTenantEventsByDestinationResponse$inboundSchema = objectType({
38929
+ Result: lazyType(() => ListTenantEventsByDestinationResponseBody$inboundSchema)
38930
+ }).transform((v2) => {
38931
+ return remap(v2, {
38932
+ Result: "result"
38933
+ });
38934
+ });
38935
+ ListTenantEventsByDestinationResponse$outboundSchema = objectType({
38936
+ result: lazyType(() => ListTenantEventsByDestinationResponseBody$outboundSchema)
38937
+ }).transform((v2) => {
38938
+ return remap(v2, {
38939
+ result: "Result"
38940
+ });
38941
+ });
38942
+ ((ListTenantEventsByDestinationResponse$) => {
38943
+ ListTenantEventsByDestinationResponse$.inboundSchema = ListTenantEventsByDestinationResponse$inboundSchema;
38944
+ ListTenantEventsByDestinationResponse$.outboundSchema = ListTenantEventsByDestinationResponse$outboundSchema;
38945
+ })(ListTenantEventsByDestinationResponse$ ||= {});
38405
38946
  });
38406
38947
 
38407
38948
  // src/models/operations/listtenanttopics.ts
@@ -38676,7 +39217,7 @@ async function $do(client, request, options) {
38676
39217
  options: client._options,
38677
39218
  baseURL: options?.serverURL ?? client._baseURL ?? "",
38678
39219
  operationID: "createTenantDestination",
38679
- oAuth2Scopes: [],
39220
+ oAuth2Scopes: null,
38680
39221
  resolvedSecurity: requestSecurity,
38681
39222
  securitySource: client._options.security,
38682
39223
  retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
@@ -38811,7 +39352,7 @@ async function $do2(client, request, options) {
38811
39352
  options: client._options,
38812
39353
  baseURL: options?.serverURL ?? client._baseURL ?? "",
38813
39354
  operationID: "deleteTenantDestination",
38814
- oAuth2Scopes: [],
39355
+ oAuth2Scopes: null,
38815
39356
  resolvedSecurity: requestSecurity,
38816
39357
  securitySource: client._options.security,
38817
39358
  retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
@@ -38946,7 +39487,7 @@ async function $do3(client, request, options) {
38946
39487
  options: client._options,
38947
39488
  baseURL: options?.serverURL ?? client._baseURL ?? "",
38948
39489
  operationID: "disableTenantDestination",
38949
- oAuth2Scopes: [],
39490
+ oAuth2Scopes: null,
38950
39491
  resolvedSecurity: requestSecurity,
38951
39492
  securitySource: client._options.security,
38952
39493
  retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
@@ -39081,7 +39622,7 @@ async function $do4(client, request, options) {
39081
39622
  options: client._options,
39082
39623
  baseURL: options?.serverURL ?? client._baseURL ?? "",
39083
39624
  operationID: "enableTenantDestination",
39084
- oAuth2Scopes: [],
39625
+ oAuth2Scopes: null,
39085
39626
  resolvedSecurity: requestSecurity,
39086
39627
  securitySource: client._options.security,
39087
39628
  retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
@@ -39216,7 +39757,7 @@ async function $do5(client, request, options) {
39216
39757
  options: client._options,
39217
39758
  baseURL: options?.serverURL ?? client._baseURL ?? "",
39218
39759
  operationID: "getTenantDestination",
39219
- oAuth2Scopes: [],
39760
+ oAuth2Scopes: null,
39220
39761
  resolvedSecurity: requestSecurity,
39221
39762
  securitySource: client._options.security,
39222
39763
  retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
@@ -39351,7 +39892,7 @@ async function $do6(client, request, options) {
39351
39892
  options: client._options,
39352
39893
  baseURL: options?.serverURL ?? client._baseURL ?? "",
39353
39894
  operationID: "listTenantDestinations",
39354
- oAuth2Scopes: [],
39895
+ oAuth2Scopes: null,
39355
39896
  resolvedSecurity: requestSecurity,
39356
39897
  securitySource: client._options.security,
39357
39898
  retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
@@ -39489,7 +40030,7 @@ async function $do7(client, request, options) {
39489
40030
  options: client._options,
39490
40031
  baseURL: options?.serverURL ?? client._baseURL ?? "",
39491
40032
  operationID: "updateTenantDestination",
39492
- oAuth2Scopes: [],
40033
+ oAuth2Scopes: null,
39493
40034
  resolvedSecurity: requestSecurity,
39494
40035
  securitySource: client._options.security,
39495
40036
  retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
@@ -39623,7 +40164,7 @@ async function $do8(client, request, options) {
39623
40164
  options: client._options,
39624
40165
  baseURL: options?.serverURL ?? client._baseURL ?? "",
39625
40166
  operationID: "getTenantEvent",
39626
- oAuth2Scopes: [],
40167
+ oAuth2Scopes: null,
39627
40168
  resolvedSecurity: requestSecurity,
39628
40169
  securitySource: client._options.security,
39629
40170
  retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
@@ -39762,7 +40303,7 @@ async function $do9(client, request, options) {
39762
40303
  options: client._options,
39763
40304
  baseURL: options?.serverURL ?? client._baseURL ?? "",
39764
40305
  operationID: "getTenantEventByDestination",
39765
- oAuth2Scopes: [],
40306
+ oAuth2Scopes: null,
39766
40307
  resolvedSecurity: requestSecurity,
39767
40308
  securitySource: client._options.security,
39768
40309
  retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
@@ -39869,6 +40410,48 @@ Retrieves a specific event associated with a specific destination for the tenant
39869
40410
  };
39870
40411
  });
39871
40412
 
40413
+ // src/lib/dlv.ts
40414
+ function dlv(obj, key, def, p, undef) {
40415
+ key = Array.isArray(key) ? key : key.split(".");
40416
+ for (p = 0;p < key.length; p++) {
40417
+ const k2 = key[p];
40418
+ obj = k2 != null && obj ? obj[k2] : undef;
40419
+ }
40420
+ return obj === undef ? def : obj;
40421
+ }
40422
+
40423
+ // src/types/operations.ts
40424
+ function createPageIterator(page, halt) {
40425
+ return {
40426
+ [Symbol.asyncIterator]: async function* paginator() {
40427
+ yield page;
40428
+ if (halt(page)) {
40429
+ return;
40430
+ }
40431
+ let p = page;
40432
+ for (p = await p.next();p != null; p = await p.next()) {
40433
+ yield p;
40434
+ if (halt(p)) {
40435
+ return;
40436
+ }
40437
+ }
40438
+ }
40439
+ };
40440
+ }
40441
+ function haltIterator(v2) {
40442
+ return {
40443
+ ...v2,
40444
+ next: () => null,
40445
+ [Symbol.asyncIterator]: async function* paginator() {
40446
+ yield v2;
40447
+ }
40448
+ };
40449
+ }
40450
+ var URL_OVERRIDE;
40451
+ var init_operations2 = __esm(() => {
40452
+ URL_OVERRIDE = Symbol("URL_OVERRIDE");
40453
+ });
40454
+
39872
40455
  // src/funcs/eventsList.ts
39873
40456
  function eventsList(client, request, options) {
39874
40457
  return new APIPromise($do10(client, request, options));
@@ -39876,7 +40459,7 @@ function eventsList(client, request, options) {
39876
40459
  async function $do10(client, request, options) {
39877
40460
  const parsed = safeParse(request, (value) => ListTenantEventsRequest$outboundSchema.parse(value), "Input validation failed");
39878
40461
  if (!parsed.ok) {
39879
- return [parsed, { status: "invalid" }];
40462
+ return [haltIterator(parsed), { status: "invalid" }];
39880
40463
  }
39881
40464
  const payload = parsed.value;
39882
40465
  const body = null;
@@ -39886,6 +40469,11 @@ async function $do10(client, request, options) {
39886
40469
  const path = pathToFunc("/{tenant_id}/events")(pathParams);
39887
40470
  const query = encodeFormQuery({
39888
40471
  destination_id: payload.destination_id,
40472
+ end: payload.end,
40473
+ limit: payload.limit,
40474
+ next: payload.next,
40475
+ prev: payload.prev,
40476
+ start: payload.start,
39889
40477
  status: payload.status
39890
40478
  });
39891
40479
  const headers = new Headers(compactMap({
@@ -39897,7 +40485,7 @@ async function $do10(client, request, options) {
39897
40485
  options: client._options,
39898
40486
  baseURL: options?.serverURL ?? client._baseURL ?? "",
39899
40487
  operationID: "listTenantEvents",
39900
- oAuth2Scopes: [],
40488
+ oAuth2Scopes: null,
39901
40489
  resolvedSecurity: requestSecurity,
39902
40490
  securitySource: client._options.security,
39903
40491
  retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
@@ -39915,7 +40503,7 @@ async function $do10(client, request, options) {
39915
40503
  timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
39916
40504
  }, options);
39917
40505
  if (!requestRes.ok) {
39918
- return [requestRes, { status: "invalid" }];
40506
+ return [haltIterator(requestRes), { status: "invalid" }];
39919
40507
  }
39920
40508
  const req = requestRes.value;
39921
40509
  const doResult = await client._do(req, {
@@ -39951,30 +40539,62 @@ async function $do10(client, request, options) {
39951
40539
  retryCodes: context.retryCodes
39952
40540
  });
39953
40541
  if (!doResult.ok) {
39954
- return [doResult, { status: "request-error", request: req }];
40542
+ return [haltIterator(doResult), { status: "request-error", request: req }];
39955
40543
  }
39956
40544
  const response = doResult.value;
39957
40545
  const responseFields = {
39958
40546
  HttpMeta: { Response: response, Request: req }
39959
40547
  };
39960
- const [result] = await match(json(200, arrayType(Event$inboundSchema)), jsonErr([401, 403, 407], UnauthorizedError$inboundSchema), jsonErr(408, TimeoutError$inboundSchema), jsonErr(429, RateLimitedError$inboundSchema), jsonErr([400, 413, 414, 415, 422, 431], BadRequestError$inboundSchema), jsonErr(504, TimeoutError$inboundSchema), jsonErr([501, 505], NotFoundError$inboundSchema), jsonErr([500, 502, 503, 506, 507, 508], InternalServerError$inboundSchema), jsonErr(510, BadRequestError$inboundSchema), jsonErr(511, UnauthorizedError$inboundSchema), fail([404, "4XX"]), fail("5XX"))(response, req, { extraFields: responseFields });
40548
+ const [result, raw] = await match(json(200, ListTenantEventsResponse$inboundSchema, {
40549
+ key: "Result"
40550
+ }), jsonErr([401, 403, 407], UnauthorizedError$inboundSchema), jsonErr(408, TimeoutError$inboundSchema), jsonErr(429, RateLimitedError$inboundSchema), jsonErr([400, 413, 414, 415, 422, 431], BadRequestError$inboundSchema), jsonErr(504, TimeoutError$inboundSchema), jsonErr([501, 505], NotFoundError$inboundSchema), jsonErr([500, 502, 503, 506, 507, 508], InternalServerError$inboundSchema), jsonErr(510, BadRequestError$inboundSchema), jsonErr(511, UnauthorizedError$inboundSchema), fail([404, "4XX"]), fail("5XX"))(response, req, { extraFields: responseFields });
39961
40551
  if (!result.ok) {
39962
- return [result, { status: "complete", request: req, response }];
39963
- }
39964
- return [result, { status: "complete", request: req, response }];
40552
+ return [haltIterator(result), {
40553
+ status: "complete",
40554
+ request: req,
40555
+ response
40556
+ }];
40557
+ }
40558
+ const nextFunc = (responseData) => {
40559
+ const nextCursor = dlv(responseData, "next");
40560
+ if (typeof nextCursor !== "string") {
40561
+ return { next: () => null };
40562
+ }
40563
+ if (nextCursor.trim() === "") {
40564
+ return { next: () => null };
40565
+ }
40566
+ const results = dlv(responseData, "data");
40567
+ if (!Array.isArray(results) || !results.length) {
40568
+ return { next: () => null };
40569
+ }
40570
+ const limit = request?.limit ?? 100;
40571
+ if (results.length < limit) {
40572
+ return { next: () => null };
40573
+ }
40574
+ const nextVal = () => eventsList(client, {
40575
+ ...request,
40576
+ next: nextCursor
40577
+ }, options);
40578
+ return { next: nextVal, "~next": { cursor: nextCursor } };
40579
+ };
40580
+ const page = { ...result, ...nextFunc(raw) };
40581
+ return [{ ...page, ...createPageIterator(page, (v2) => !v2.ok) }, {
40582
+ status: "complete",
40583
+ request: req,
40584
+ response
40585
+ }];
39965
40586
  }
39966
40587
  var init_eventsList = __esm(() => {
39967
- init_lib();
39968
40588
  init_encodings();
39969
40589
  init_matchers();
39970
40590
  init_primitives();
39971
40591
  init_schemas();
39972
40592
  init_security();
39973
40593
  init_url();
39974
- init_components();
39975
40594
  init_errors();
39976
40595
  init_operations();
39977
40596
  init_async();
40597
+ init_operations2();
39978
40598
  });
39979
40599
 
39980
40600
  // src/mcp-server/tools/eventsList.ts
@@ -40000,7 +40620,7 @@ Retrieves a list of events for the tenant, supporting cursor navigation (details
40000
40620
  isError: true
40001
40621
  };
40002
40622
  }
40003
- const value = result.value;
40623
+ const value = result.value.result;
40004
40624
  return formatResult(value, apiCall);
40005
40625
  }
40006
40626
  };
@@ -40013,7 +40633,7 @@ function eventsListByDestination(client, request, options) {
40013
40633
  async function $do11(client, request, options) {
40014
40634
  const parsed = safeParse(request, (value) => ListTenantEventsByDestinationRequest$outboundSchema.parse(value), "Input validation failed");
40015
40635
  if (!parsed.ok) {
40016
- return [parsed, { status: "invalid" }];
40636
+ return [haltIterator(parsed), { status: "invalid" }];
40017
40637
  }
40018
40638
  const payload = parsed.value;
40019
40639
  const body = null;
@@ -40026,6 +40646,11 @@ async function $do11(client, request, options) {
40026
40646
  };
40027
40647
  const path = pathToFunc("/{tenant_id}/destinations/{destination_id}/events")(pathParams);
40028
40648
  const query = encodeFormQuery({
40649
+ end: payload.end,
40650
+ limit: payload.limit,
40651
+ next: payload.next,
40652
+ prev: payload.prev,
40653
+ start: payload.start,
40029
40654
  status: payload.status
40030
40655
  });
40031
40656
  const headers = new Headers(compactMap({
@@ -40037,7 +40662,7 @@ async function $do11(client, request, options) {
40037
40662
  options: client._options,
40038
40663
  baseURL: options?.serverURL ?? client._baseURL ?? "",
40039
40664
  operationID: "listTenantEventsByDestination",
40040
- oAuth2Scopes: [],
40665
+ oAuth2Scopes: null,
40041
40666
  resolvedSecurity: requestSecurity,
40042
40667
  securitySource: client._options.security,
40043
40668
  retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
@@ -40055,7 +40680,7 @@ async function $do11(client, request, options) {
40055
40680
  timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
40056
40681
  }, options);
40057
40682
  if (!requestRes.ok) {
40058
- return [requestRes, { status: "invalid" }];
40683
+ return [haltIterator(requestRes), { status: "invalid" }];
40059
40684
  }
40060
40685
  const req = requestRes.value;
40061
40686
  const doResult = await client._do(req, {
@@ -40091,30 +40716,60 @@ async function $do11(client, request, options) {
40091
40716
  retryCodes: context.retryCodes
40092
40717
  });
40093
40718
  if (!doResult.ok) {
40094
- return [doResult, { status: "request-error", request: req }];
40719
+ return [haltIterator(doResult), { status: "request-error", request: req }];
40095
40720
  }
40096
40721
  const response = doResult.value;
40097
40722
  const responseFields = {
40098
40723
  HttpMeta: { Response: response, Request: req }
40099
40724
  };
40100
- const [result] = await match(json(200, arrayType(Event$inboundSchema)), jsonErr([401, 403, 407], UnauthorizedError$inboundSchema), jsonErr(408, TimeoutError$inboundSchema), jsonErr(429, RateLimitedError$inboundSchema), jsonErr([400, 413, 414, 415, 422, 431], BadRequestError$inboundSchema), jsonErr(504, TimeoutError$inboundSchema), jsonErr([501, 505], NotFoundError$inboundSchema), jsonErr([500, 502, 503, 506, 507, 508], InternalServerError$inboundSchema), jsonErr(510, BadRequestError$inboundSchema), jsonErr(511, UnauthorizedError$inboundSchema), fail([404, "4XX"]), fail("5XX"))(response, req, { extraFields: responseFields });
40725
+ const [result, raw] = await match(json(200, ListTenantEventsByDestinationResponse$inboundSchema, { key: "Result" }), jsonErr([401, 403, 407], UnauthorizedError$inboundSchema), jsonErr(408, TimeoutError$inboundSchema), jsonErr(429, RateLimitedError$inboundSchema), jsonErr([400, 413, 414, 415, 422, 431], BadRequestError$inboundSchema), jsonErr(504, TimeoutError$inboundSchema), jsonErr([501, 505], NotFoundError$inboundSchema), jsonErr([500, 502, 503, 506, 507, 508], InternalServerError$inboundSchema), jsonErr(510, BadRequestError$inboundSchema), jsonErr(511, UnauthorizedError$inboundSchema), fail([404, "4XX"]), fail("5XX"))(response, req, { extraFields: responseFields });
40101
40726
  if (!result.ok) {
40102
- return [result, { status: "complete", request: req, response }];
40103
- }
40104
- return [result, { status: "complete", request: req, response }];
40727
+ return [haltIterator(result), {
40728
+ status: "complete",
40729
+ request: req,
40730
+ response
40731
+ }];
40732
+ }
40733
+ const nextFunc = (responseData) => {
40734
+ const nextCursor = dlv(responseData, "next");
40735
+ if (typeof nextCursor !== "string") {
40736
+ return { next: () => null };
40737
+ }
40738
+ if (nextCursor.trim() === "") {
40739
+ return { next: () => null };
40740
+ }
40741
+ const results = dlv(responseData, "data");
40742
+ if (!Array.isArray(results) || !results.length) {
40743
+ return { next: () => null };
40744
+ }
40745
+ const limit = request?.limit ?? 100;
40746
+ if (results.length < limit) {
40747
+ return { next: () => null };
40748
+ }
40749
+ const nextVal = () => eventsListByDestination(client, {
40750
+ ...request,
40751
+ next: nextCursor
40752
+ }, options);
40753
+ return { next: nextVal, "~next": { cursor: nextCursor } };
40754
+ };
40755
+ const page = { ...result, ...nextFunc(raw) };
40756
+ return [{ ...page, ...createPageIterator(page, (v2) => !v2.ok) }, {
40757
+ status: "complete",
40758
+ request: req,
40759
+ response
40760
+ }];
40105
40761
  }
40106
40762
  var init_eventsListByDestination = __esm(() => {
40107
- init_lib();
40108
40763
  init_encodings();
40109
40764
  init_matchers();
40110
40765
  init_primitives();
40111
40766
  init_schemas();
40112
40767
  init_security();
40113
40768
  init_url();
40114
- init_components();
40115
40769
  init_errors();
40116
40770
  init_operations();
40117
40771
  init_async();
40772
+ init_operations2();
40118
40773
  });
40119
40774
 
40120
40775
  // src/mcp-server/tools/eventsListByDestination.ts
@@ -40140,7 +40795,7 @@ Retrieves events associated with a specific destination for the tenant.`,
40140
40795
  isError: true
40141
40796
  };
40142
40797
  }
40143
- const value = result.value;
40798
+ const value = result.value.result;
40144
40799
  return formatResult(value, apiCall);
40145
40800
  }
40146
40801
  };
@@ -40174,7 +40829,7 @@ async function $do12(client, request, options) {
40174
40829
  options: client._options,
40175
40830
  baseURL: options?.serverURL ?? client._baseURL ?? "",
40176
40831
  operationID: "listTenantEventDeliveries",
40177
- oAuth2Scopes: [],
40832
+ oAuth2Scopes: null,
40178
40833
  resolvedSecurity: requestSecurity,
40179
40834
  securitySource: client._options.security,
40180
40835
  retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
@@ -40314,7 +40969,7 @@ async function $do13(client, request, options) {
40314
40969
  options: client._options,
40315
40970
  baseURL: options?.serverURL ?? client._baseURL ?? "",
40316
40971
  operationID: "retryTenantEvent",
40317
- oAuth2Scopes: [],
40972
+ oAuth2Scopes: null,
40318
40973
  resolvedSecurity: requestSecurity,
40319
40974
  securitySource: client._options.security,
40320
40975
  retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
@@ -40434,7 +41089,7 @@ async function $do14(client, options) {
40434
41089
  options: client._options,
40435
41090
  baseURL: options?.serverURL ?? client._baseURL ?? "",
40436
41091
  operationID: "healthCheck",
40437
- oAuth2Scopes: [],
41092
+ oAuth2Scopes: null,
40438
41093
  resolvedSecurity: null,
40439
41094
  securitySource: null,
40440
41095
  retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
@@ -40552,7 +41207,7 @@ async function $do15(client, request, options) {
40552
41207
  options: client._options,
40553
41208
  baseURL: options?.serverURL ?? client._baseURL ?? "",
40554
41209
  operationID: "publishEvent",
40555
- oAuth2Scopes: [],
41210
+ oAuth2Scopes: null,
40556
41211
  resolvedSecurity: requestSecurity,
40557
41212
  securitySource: client._options.security,
40558
41213
  retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
@@ -40687,7 +41342,7 @@ async function $do16(client, request, options) {
40687
41342
  options: client._options,
40688
41343
  baseURL: options?.serverURL ?? client._baseURL ?? "",
40689
41344
  operationID: "getTenantDestinationTypeSchema",
40690
- oAuth2Scopes: [],
41345
+ oAuth2Scopes: null,
40691
41346
  resolvedSecurity: requestSecurity,
40692
41347
  securitySource: client._options.security,
40693
41348
  retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
@@ -40821,7 +41476,7 @@ async function $do17(client, request, options) {
40821
41476
  options: client._options,
40822
41477
  baseURL: options?.serverURL ?? client._baseURL ?? "",
40823
41478
  operationID: "getDestinationTypeSchema",
40824
- oAuth2Scopes: [],
41479
+ oAuth2Scopes: null,
40825
41480
  resolvedSecurity: requestSecurity,
40826
41481
  securitySource: client._options.security,
40827
41482
  retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
@@ -40943,7 +41598,7 @@ async function $do18(client, options) {
40943
41598
  options: client._options,
40944
41599
  baseURL: options?.serverURL ?? client._baseURL ?? "",
40945
41600
  operationID: "listDestinationTypeSchemasJwt",
40946
- oAuth2Scopes: [],
41601
+ oAuth2Scopes: null,
40947
41602
  resolvedSecurity: requestSecurity,
40948
41603
  securitySource: client._options.security,
40949
41604
  retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
@@ -41066,7 +41721,7 @@ async function $do19(client, request, options) {
41066
41721
  options: client._options,
41067
41722
  baseURL: options?.serverURL ?? client._baseURL ?? "",
41068
41723
  operationID: "listTenantDestinationTypeSchemas",
41069
- oAuth2Scopes: [],
41724
+ oAuth2Scopes: null,
41070
41725
  resolvedSecurity: requestSecurity,
41071
41726
  securitySource: client._options.security,
41072
41727
  retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
@@ -41198,7 +41853,7 @@ async function $do20(client, request, options) {
41198
41853
  options: client._options,
41199
41854
  baseURL: options?.serverURL ?? client._baseURL ?? "",
41200
41855
  operationID: "deleteTenant",
41201
- oAuth2Scopes: [],
41856
+ oAuth2Scopes: null,
41202
41857
  resolvedSecurity: requestSecurity,
41203
41858
  securitySource: client._options.security,
41204
41859
  retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
@@ -41329,7 +41984,7 @@ async function $do21(client, request, options) {
41329
41984
  options: client._options,
41330
41985
  baseURL: options?.serverURL ?? client._baseURL ?? "",
41331
41986
  operationID: "getTenant",
41332
- oAuth2Scopes: [],
41987
+ oAuth2Scopes: null,
41333
41988
  resolvedSecurity: requestSecurity,
41334
41989
  securitySource: client._options.security,
41335
41990
  retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
@@ -41463,7 +42118,7 @@ async function $do22(client, request, options) {
41463
42118
  options: client._options,
41464
42119
  baseURL: options?.serverURL ?? client._baseURL ?? "",
41465
42120
  operationID: "getTenantPortalUrl",
41466
- oAuth2Scopes: [],
42121
+ oAuth2Scopes: null,
41467
42122
  resolvedSecurity: requestSecurity,
41468
42123
  securitySource: client._options.security,
41469
42124
  retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
@@ -41595,7 +42250,7 @@ async function $do23(client, request, options) {
41595
42250
  options: client._options,
41596
42251
  baseURL: options?.serverURL ?? client._baseURL ?? "",
41597
42252
  operationID: "getTenantToken",
41598
- oAuth2Scopes: [],
42253
+ oAuth2Scopes: null,
41599
42254
  resolvedSecurity: requestSecurity,
41600
42255
  securitySource: client._options.security,
41601
42256
  retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
@@ -41726,7 +42381,7 @@ async function $do24(client, request, options) {
41726
42381
  options: client._options,
41727
42382
  baseURL: options?.serverURL ?? client._baseURL ?? "",
41728
42383
  operationID: "upsertTenant",
41729
- oAuth2Scopes: [],
42384
+ oAuth2Scopes: null,
41730
42385
  resolvedSecurity: requestSecurity,
41731
42386
  securitySource: client._options.security,
41732
42387
  retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
@@ -41857,7 +42512,7 @@ async function $do25(client, request, options) {
41857
42512
  options: client._options,
41858
42513
  baseURL: options?.serverURL ?? client._baseURL ?? "",
41859
42514
  operationID: "listTenantTopics",
41860
- oAuth2Scopes: [],
42515
+ oAuth2Scopes: null,
41861
42516
  resolvedSecurity: requestSecurity,
41862
42517
  securitySource: client._options.security,
41863
42518
  retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
@@ -41979,7 +42634,7 @@ async function $do26(client, options) {
41979
42634
  options: client._options,
41980
42635
  baseURL: options?.serverURL ?? client._baseURL ?? "",
41981
42636
  operationID: "listTopics",
41982
- oAuth2Scopes: [],
42637
+ oAuth2Scopes: null,
41983
42638
  resolvedSecurity: requestSecurity,
41984
42639
  securitySource: client._options.security,
41985
42640
  retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
@@ -42081,7 +42736,7 @@ Returns a list of available event topics configured in the Outpost instance.`,
42081
42736
  function createMCPServer(deps) {
42082
42737
  const server = new McpServer({
42083
42738
  name: "Outpost",
42084
- version: "0.3.0"
42739
+ version: "0.5.0"
42085
42740
  });
42086
42741
  const client = new OutpostCore({
42087
42742
  security: deps.security,
@@ -43353,7 +44008,7 @@ var routes = an({
43353
44008
  var app = He(routes, {
43354
44009
  name: "mcp",
43355
44010
  versionInfo: {
43356
- currentVersion: "0.3.0"
44011
+ currentVersion: "0.5.0"
43357
44012
  }
43358
44013
  });
43359
44014
  zt(app, process3.argv.slice(2), buildContext(process3));
@@ -43361,5 +44016,5 @@ export {
43361
44016
  app
43362
44017
  };
43363
44018
 
43364
- //# debugId=621358B2083B075264756E2164756E21
44019
+ //# debugId=2EFD7241FFFD51F064756E2164756E21
43365
44020
  //# sourceMappingURL=mcp-server.js.map