@hookdeck/outpost-sdk 0.2.0 → 0.4.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 (634) hide show
  1. package/FUNCTIONS.md +5 -22
  2. package/README.md +86 -109
  3. package/bin/mcp-server.js +952 -202
  4. package/bin/mcp-server.js.map +73 -60
  5. package/dist/commonjs/funcs/destinationsCreate.d.ts +3 -2
  6. package/dist/commonjs/funcs/destinationsCreate.d.ts.map +1 -1
  7. package/dist/commonjs/funcs/destinationsCreate.js +3 -1
  8. package/dist/commonjs/funcs/destinationsCreate.js.map +1 -1
  9. package/dist/commonjs/funcs/destinationsDelete.d.ts +3 -2
  10. package/dist/commonjs/funcs/destinationsDelete.d.ts.map +1 -1
  11. package/dist/commonjs/funcs/destinationsDelete.js +3 -1
  12. package/dist/commonjs/funcs/destinationsDelete.js.map +1 -1
  13. package/dist/commonjs/funcs/destinationsDisable.d.ts +3 -2
  14. package/dist/commonjs/funcs/destinationsDisable.d.ts.map +1 -1
  15. package/dist/commonjs/funcs/destinationsDisable.js +3 -1
  16. package/dist/commonjs/funcs/destinationsDisable.js.map +1 -1
  17. package/dist/commonjs/funcs/destinationsEnable.d.ts +3 -2
  18. package/dist/commonjs/funcs/destinationsEnable.d.ts.map +1 -1
  19. package/dist/commonjs/funcs/destinationsEnable.js +3 -1
  20. package/dist/commonjs/funcs/destinationsEnable.js.map +1 -1
  21. package/dist/commonjs/funcs/destinationsGet.d.ts +3 -2
  22. package/dist/commonjs/funcs/destinationsGet.d.ts.map +1 -1
  23. package/dist/commonjs/funcs/destinationsGet.js +3 -1
  24. package/dist/commonjs/funcs/destinationsGet.js.map +1 -1
  25. package/dist/commonjs/funcs/destinationsList.d.ts +3 -2
  26. package/dist/commonjs/funcs/destinationsList.d.ts.map +1 -1
  27. package/dist/commonjs/funcs/destinationsList.js +3 -1
  28. package/dist/commonjs/funcs/destinationsList.js.map +1 -1
  29. package/dist/commonjs/funcs/destinationsUpdate.d.ts +3 -2
  30. package/dist/commonjs/funcs/destinationsUpdate.d.ts.map +1 -1
  31. package/dist/commonjs/funcs/destinationsUpdate.js +3 -1
  32. package/dist/commonjs/funcs/destinationsUpdate.js.map +1 -1
  33. package/dist/commonjs/funcs/eventsGet.d.ts +3 -2
  34. package/dist/commonjs/funcs/eventsGet.d.ts.map +1 -1
  35. package/dist/commonjs/funcs/eventsGet.js +3 -1
  36. package/dist/commonjs/funcs/eventsGet.js.map +1 -1
  37. package/dist/commonjs/funcs/eventsGetByDestination.d.ts +3 -2
  38. package/dist/commonjs/funcs/eventsGetByDestination.d.ts.map +1 -1
  39. package/dist/commonjs/funcs/eventsGetByDestination.js +3 -1
  40. package/dist/commonjs/funcs/eventsGetByDestination.js.map +1 -1
  41. package/dist/commonjs/funcs/eventsList.d.ts +6 -3
  42. package/dist/commonjs/funcs/eventsList.d.ts.map +1 -1
  43. package/dist/commonjs/funcs/eventsList.js +48 -8
  44. package/dist/commonjs/funcs/eventsList.js.map +1 -1
  45. package/dist/commonjs/funcs/eventsListByDestination.d.ts +6 -3
  46. package/dist/commonjs/funcs/eventsListByDestination.d.ts.map +1 -1
  47. package/dist/commonjs/funcs/eventsListByDestination.js +46 -8
  48. package/dist/commonjs/funcs/eventsListByDestination.js.map +1 -1
  49. package/dist/commonjs/funcs/eventsListDeliveries.d.ts +3 -2
  50. package/dist/commonjs/funcs/eventsListDeliveries.d.ts.map +1 -1
  51. package/dist/commonjs/funcs/eventsListDeliveries.js +3 -1
  52. package/dist/commonjs/funcs/eventsListDeliveries.js.map +1 -1
  53. package/dist/commonjs/funcs/eventsRetry.d.ts +3 -2
  54. package/dist/commonjs/funcs/eventsRetry.d.ts.map +1 -1
  55. package/dist/commonjs/funcs/eventsRetry.js +3 -1
  56. package/dist/commonjs/funcs/eventsRetry.js.map +1 -1
  57. package/dist/commonjs/funcs/healthCheck.d.ts +3 -2
  58. package/dist/commonjs/funcs/healthCheck.d.ts.map +1 -1
  59. package/dist/commonjs/funcs/healthCheck.js +3 -1
  60. package/dist/commonjs/funcs/healthCheck.js.map +1 -1
  61. package/dist/commonjs/funcs/publishEvent.d.ts +3 -2
  62. package/dist/commonjs/funcs/publishEvent.d.ts.map +1 -1
  63. package/dist/commonjs/funcs/publishEvent.js +3 -2
  64. package/dist/commonjs/funcs/publishEvent.js.map +1 -1
  65. package/dist/commonjs/funcs/schemasGet.d.ts +3 -2
  66. package/dist/commonjs/funcs/schemasGet.d.ts.map +1 -1
  67. package/dist/commonjs/funcs/schemasGet.js +3 -1
  68. package/dist/commonjs/funcs/schemasGet.js.map +1 -1
  69. package/dist/commonjs/funcs/schemasGetDestinationTypeJwt.d.ts +3 -2
  70. package/dist/commonjs/funcs/schemasGetDestinationTypeJwt.d.ts.map +1 -1
  71. package/dist/commonjs/funcs/schemasGetDestinationTypeJwt.js +3 -1
  72. package/dist/commonjs/funcs/schemasGetDestinationTypeJwt.js.map +1 -1
  73. package/dist/commonjs/funcs/schemasListDestinationTypesJwt.d.ts +3 -2
  74. package/dist/commonjs/funcs/schemasListDestinationTypesJwt.d.ts.map +1 -1
  75. package/dist/commonjs/funcs/schemasListDestinationTypesJwt.js +3 -1
  76. package/dist/commonjs/funcs/schemasListDestinationTypesJwt.js.map +1 -1
  77. package/dist/commonjs/funcs/schemasListTenantDestinationTypes.d.ts +3 -2
  78. package/dist/commonjs/funcs/schemasListTenantDestinationTypes.d.ts.map +1 -1
  79. package/dist/commonjs/funcs/schemasListTenantDestinationTypes.js +3 -1
  80. package/dist/commonjs/funcs/schemasListTenantDestinationTypes.js.map +1 -1
  81. package/dist/commonjs/funcs/tenantsDelete.d.ts +3 -2
  82. package/dist/commonjs/funcs/tenantsDelete.d.ts.map +1 -1
  83. package/dist/commonjs/funcs/tenantsDelete.js +3 -1
  84. package/dist/commonjs/funcs/tenantsDelete.js.map +1 -1
  85. package/dist/commonjs/funcs/tenantsGet.d.ts +3 -2
  86. package/dist/commonjs/funcs/tenantsGet.d.ts.map +1 -1
  87. package/dist/commonjs/funcs/tenantsGet.js +3 -1
  88. package/dist/commonjs/funcs/tenantsGet.js.map +1 -1
  89. package/dist/commonjs/funcs/tenantsGetPortalUrl.d.ts +3 -2
  90. package/dist/commonjs/funcs/tenantsGetPortalUrl.d.ts.map +1 -1
  91. package/dist/commonjs/funcs/tenantsGetPortalUrl.js +3 -1
  92. package/dist/commonjs/funcs/tenantsGetPortalUrl.js.map +1 -1
  93. package/dist/commonjs/funcs/tenantsGetToken.d.ts +3 -2
  94. package/dist/commonjs/funcs/tenantsGetToken.d.ts.map +1 -1
  95. package/dist/commonjs/funcs/tenantsGetToken.js +3 -1
  96. package/dist/commonjs/funcs/tenantsGetToken.js.map +1 -1
  97. package/dist/commonjs/funcs/tenantsUpsert.d.ts +3 -2
  98. package/dist/commonjs/funcs/tenantsUpsert.d.ts.map +1 -1
  99. package/dist/commonjs/funcs/tenantsUpsert.js +3 -1
  100. package/dist/commonjs/funcs/tenantsUpsert.js.map +1 -1
  101. package/dist/commonjs/funcs/topicsList.d.ts +3 -2
  102. package/dist/commonjs/funcs/topicsList.d.ts.map +1 -1
  103. package/dist/commonjs/funcs/topicsList.js +3 -1
  104. package/dist/commonjs/funcs/topicsList.js.map +1 -1
  105. package/dist/commonjs/funcs/topicsListJwt.d.ts +3 -2
  106. package/dist/commonjs/funcs/topicsListJwt.d.ts.map +1 -1
  107. package/dist/commonjs/funcs/topicsListJwt.js +3 -1
  108. package/dist/commonjs/funcs/topicsListJwt.js.map +1 -1
  109. package/dist/commonjs/hooks/types.d.ts +2 -0
  110. package/dist/commonjs/hooks/types.d.ts.map +1 -1
  111. package/dist/commonjs/index.d.ts +2 -0
  112. package/dist/commonjs/index.d.ts.map +1 -1
  113. package/dist/commonjs/index.js +3 -1
  114. package/dist/commonjs/index.js.map +1 -1
  115. package/dist/commonjs/lib/config.d.ts +7 -3
  116. package/dist/commonjs/lib/config.d.ts.map +1 -1
  117. package/dist/commonjs/lib/config.js +3 -3
  118. package/dist/commonjs/lib/config.js.map +1 -1
  119. package/dist/commonjs/lib/files.d.ts +5 -0
  120. package/dist/commonjs/lib/files.d.ts.map +1 -1
  121. package/dist/commonjs/lib/files.js +41 -0
  122. package/dist/commonjs/lib/files.js.map +1 -1
  123. package/dist/commonjs/lib/matchers.d.ts +3 -10
  124. package/dist/commonjs/lib/matchers.d.ts.map +1 -1
  125. package/dist/commonjs/lib/matchers.js +33 -31
  126. package/dist/commonjs/lib/matchers.js.map +1 -1
  127. package/dist/commonjs/lib/sdks.d.ts +1 -0
  128. package/dist/commonjs/lib/sdks.d.ts.map +1 -1
  129. package/dist/commonjs/lib/sdks.js +3 -3
  130. package/dist/commonjs/lib/sdks.js.map +1 -1
  131. package/dist/commonjs/lib/security.d.ts +2 -2
  132. package/dist/commonjs/lib/security.d.ts.map +1 -1
  133. package/dist/commonjs/lib/security.js.map +1 -1
  134. package/dist/commonjs/mcp-server/cli/start/command.d.ts.map +1 -1
  135. package/dist/commonjs/mcp-server/cli/start/command.js +0 -12
  136. package/dist/commonjs/mcp-server/cli/start/command.js.map +1 -1
  137. package/dist/commonjs/mcp-server/cli/start/impl.d.ts +0 -2
  138. package/dist/commonjs/mcp-server/cli/start/impl.d.ts.map +1 -1
  139. package/dist/commonjs/mcp-server/cli/start/impl.js +0 -2
  140. package/dist/commonjs/mcp-server/cli/start/impl.js.map +1 -1
  141. package/dist/commonjs/mcp-server/mcp-server.js +1 -1
  142. package/dist/commonjs/mcp-server/server.js +1 -1
  143. package/dist/commonjs/mcp-server/tools/eventsList.js +1 -1
  144. package/dist/commonjs/mcp-server/tools/eventsList.js.map +1 -1
  145. package/dist/commonjs/mcp-server/tools/eventsListByDestination.js +1 -1
  146. package/dist/commonjs/mcp-server/tools/eventsListByDestination.js.map +1 -1
  147. package/dist/commonjs/mcp-server/tools/publishEvent.d.ts.map +1 -1
  148. package/dist/commonjs/mcp-server/tools/publishEvent.js +2 -1
  149. package/dist/commonjs/mcp-server/tools/publishEvent.js.map +1 -1
  150. package/dist/commonjs/models/components/awss3config.d.ts +47 -0
  151. package/dist/commonjs/models/components/awss3config.d.ts.map +1 -0
  152. package/dist/commonjs/models/components/awss3config.js +86 -0
  153. package/dist/commonjs/models/components/awss3config.js.map +1 -0
  154. package/dist/commonjs/models/components/awss3credentials.d.ts +42 -0
  155. package/dist/commonjs/models/components/awss3credentials.d.ts.map +1 -0
  156. package/dist/commonjs/models/components/awss3credentials.js +73 -0
  157. package/dist/commonjs/models/components/awss3credentials.js.map +1 -0
  158. package/dist/commonjs/models/components/azureservicebusconfig.d.ts +32 -0
  159. package/dist/commonjs/models/components/azureservicebusconfig.d.ts.map +1 -0
  160. package/dist/commonjs/models/components/azureservicebusconfig.js +69 -0
  161. package/dist/commonjs/models/components/azureservicebusconfig.js.map +1 -0
  162. package/dist/commonjs/models/components/azureservicebuscredentials.d.ts +32 -0
  163. package/dist/commonjs/models/components/azureservicebuscredentials.d.ts.map +1 -0
  164. package/dist/commonjs/models/components/azureservicebuscredentials.js +78 -0
  165. package/dist/commonjs/models/components/azureservicebuscredentials.js.map +1 -0
  166. package/dist/commonjs/models/components/destination.d.ts +14 -4
  167. package/dist/commonjs/models/components/destination.d.ts.map +1 -1
  168. package/dist/commonjs/models/components/destination.js +18 -4
  169. package/dist/commonjs/models/components/destination.js.map +1 -1
  170. package/dist/commonjs/models/components/destinationawss3.d.ts +98 -0
  171. package/dist/commonjs/models/components/destinationawss3.d.ts.map +1 -0
  172. package/dist/commonjs/models/components/destinationawss3.js +122 -0
  173. package/dist/commonjs/models/components/destinationawss3.js.map +1 -0
  174. package/dist/commonjs/models/components/destinationazureservicebus.d.ts +98 -0
  175. package/dist/commonjs/models/components/destinationazureservicebus.d.ts.map +1 -0
  176. package/dist/commonjs/models/components/destinationazureservicebus.js +122 -0
  177. package/dist/commonjs/models/components/destinationazureservicebus.js.map +1 -0
  178. package/dist/commonjs/models/components/destinationcreate.d.ts +20 -10
  179. package/dist/commonjs/models/components/destinationcreate.d.ts.map +1 -1
  180. package/dist/commonjs/models/components/destinationcreate.js +24 -10
  181. package/dist/commonjs/models/components/destinationcreate.js.map +1 -1
  182. package/dist/commonjs/models/components/destinationcreateawss3.d.ts +78 -0
  183. package/dist/commonjs/models/components/destinationcreateawss3.d.ts.map +1 -0
  184. package/dist/commonjs/models/components/destinationcreateawss3.js +101 -0
  185. package/dist/commonjs/models/components/destinationcreateawss3.js.map +1 -0
  186. package/dist/commonjs/models/components/destinationcreateazureservicebus.d.ts +78 -0
  187. package/dist/commonjs/models/components/destinationcreateazureservicebus.d.ts.map +1 -0
  188. package/dist/commonjs/models/components/destinationcreateazureservicebus.js +101 -0
  189. package/dist/commonjs/models/components/destinationcreateazureservicebus.js.map +1 -0
  190. package/dist/commonjs/models/components/destinationupdate.d.ts +3 -2
  191. package/dist/commonjs/models/components/destinationupdate.d.ts.map +1 -1
  192. package/dist/commonjs/models/components/destinationupdate.js +3 -0
  193. package/dist/commonjs/models/components/destinationupdate.js.map +1 -1
  194. package/dist/commonjs/models/components/destinationupdateawss3.d.ts +39 -0
  195. package/dist/commonjs/models/components/destinationupdateawss3.d.ts.map +1 -0
  196. package/dist/commonjs/models/components/destinationupdateawss3.js +76 -0
  197. package/dist/commonjs/models/components/destinationupdateawss3.js.map +1 -0
  198. package/dist/commonjs/models/components/index.d.ts +10 -0
  199. package/dist/commonjs/models/components/index.d.ts.map +1 -1
  200. package/dist/commonjs/models/components/index.js +10 -0
  201. package/dist/commonjs/models/components/index.js.map +1 -1
  202. package/dist/commonjs/models/components/publishresponse.d.ts +32 -0
  203. package/dist/commonjs/models/components/publishresponse.d.ts.map +1 -0
  204. package/dist/commonjs/models/components/publishresponse.js +69 -0
  205. package/dist/commonjs/models/components/publishresponse.js.map +1 -0
  206. package/dist/commonjs/models/errors/apierror.d.ts +8 -6
  207. package/dist/commonjs/models/errors/apierror.d.ts.map +1 -1
  208. package/dist/commonjs/models/errors/apierror.js +23 -10
  209. package/dist/commonjs/models/errors/apierror.js.map +1 -1
  210. package/dist/commonjs/models/errors/badrequesterror.d.ts +7 -2
  211. package/dist/commonjs/models/errors/badrequesterror.d.ts.map +1 -1
  212. package/dist/commonjs/models/errors/badrequesterror.js +13 -7
  213. package/dist/commonjs/models/errors/badrequesterror.js.map +1 -1
  214. package/dist/commonjs/models/errors/index.d.ts +1 -0
  215. package/dist/commonjs/models/errors/index.d.ts.map +1 -1
  216. package/dist/commonjs/models/errors/index.js +1 -0
  217. package/dist/commonjs/models/errors/index.js.map +1 -1
  218. package/dist/commonjs/models/errors/internalservererror.d.ts +7 -2
  219. package/dist/commonjs/models/errors/internalservererror.d.ts.map +1 -1
  220. package/dist/commonjs/models/errors/internalservererror.js +13 -7
  221. package/dist/commonjs/models/errors/internalservererror.js.map +1 -1
  222. package/dist/commonjs/models/errors/notfounderror.d.ts +7 -2
  223. package/dist/commonjs/models/errors/notfounderror.d.ts.map +1 -1
  224. package/dist/commonjs/models/errors/notfounderror.js +13 -7
  225. package/dist/commonjs/models/errors/notfounderror.js.map +1 -1
  226. package/dist/commonjs/models/errors/outposterror.d.ts +19 -0
  227. package/dist/commonjs/models/errors/outposterror.d.ts.map +1 -0
  228. package/dist/commonjs/models/errors/outposterror.js +20 -0
  229. package/dist/commonjs/models/errors/outposterror.js.map +1 -0
  230. package/dist/commonjs/models/errors/ratelimitederror.d.ts +7 -2
  231. package/dist/commonjs/models/errors/ratelimitederror.d.ts.map +1 -1
  232. package/dist/commonjs/models/errors/ratelimitederror.js +13 -7
  233. package/dist/commonjs/models/errors/ratelimitederror.js.map +1 -1
  234. package/dist/commonjs/models/errors/responsevalidationerror.d.ts +26 -0
  235. package/dist/commonjs/models/errors/responsevalidationerror.d.ts.map +1 -0
  236. package/dist/commonjs/models/errors/responsevalidationerror.js +66 -0
  237. package/dist/commonjs/models/errors/responsevalidationerror.js.map +1 -0
  238. package/dist/commonjs/models/errors/sdkvalidationerror.d.ts +1 -0
  239. package/dist/commonjs/models/errors/sdkvalidationerror.d.ts.map +1 -1
  240. package/dist/commonjs/models/errors/sdkvalidationerror.js +14 -0
  241. package/dist/commonjs/models/errors/sdkvalidationerror.js.map +1 -1
  242. package/dist/commonjs/models/errors/timeouterror.d.ts +7 -2
  243. package/dist/commonjs/models/errors/timeouterror.d.ts.map +1 -1
  244. package/dist/commonjs/models/errors/timeouterror.js +13 -7
  245. package/dist/commonjs/models/errors/timeouterror.js.map +1 -1
  246. package/dist/commonjs/models/errors/unauthorizederror.d.ts +7 -2
  247. package/dist/commonjs/models/errors/unauthorizederror.d.ts.map +1 -1
  248. package/dist/commonjs/models/errors/unauthorizederror.js +13 -7
  249. package/dist/commonjs/models/errors/unauthorizederror.js.map +1 -1
  250. package/dist/commonjs/models/operations/getdestinationtypeschema.d.ts +3 -0
  251. package/dist/commonjs/models/operations/getdestinationtypeschema.d.ts.map +1 -1
  252. package/dist/commonjs/models/operations/getdestinationtypeschema.js +1 -0
  253. package/dist/commonjs/models/operations/getdestinationtypeschema.js.map +1 -1
  254. package/dist/commonjs/models/operations/gettenantdestinationtypeschema.d.ts +3 -0
  255. package/dist/commonjs/models/operations/gettenantdestinationtypeschema.d.ts.map +1 -1
  256. package/dist/commonjs/models/operations/gettenantdestinationtypeschema.js +1 -0
  257. package/dist/commonjs/models/operations/gettenantdestinationtypeschema.js.map +1 -1
  258. package/dist/commonjs/models/operations/listtenantdestinations.d.ts +6 -0
  259. package/dist/commonjs/models/operations/listtenantdestinations.d.ts.map +1 -1
  260. package/dist/commonjs/models/operations/listtenantdestinations.js +2 -0
  261. package/dist/commonjs/models/operations/listtenantdestinations.js.map +1 -1
  262. package/dist/commonjs/models/operations/listtenantevents.d.ts +94 -0
  263. package/dist/commonjs/models/operations/listtenantevents.d.ts.map +1 -1
  264. package/dist/commonjs/models/operations/listtenantevents.js +92 -1
  265. package/dist/commonjs/models/operations/listtenantevents.js.map +1 -1
  266. package/dist/commonjs/models/operations/listtenanteventsbydestination.d.ts +94 -0
  267. package/dist/commonjs/models/operations/listtenanteventsbydestination.d.ts.map +1 -1
  268. package/dist/commonjs/models/operations/listtenanteventsbydestination.js +92 -1
  269. package/dist/commonjs/models/operations/listtenanteventsbydestination.js.map +1 -1
  270. package/dist/commonjs/sdk/events.d.ts +7 -2
  271. package/dist/commonjs/sdk/events.d.ts.map +1 -1
  272. package/dist/commonjs/sdk/events.js +3 -2
  273. package/dist/commonjs/sdk/events.js.map +1 -1
  274. package/dist/commonjs/sdk/publish.d.ts +1 -1
  275. package/dist/commonjs/sdk/publish.d.ts.map +1 -1
  276. package/dist/commonjs/types/constdatetime.js +1 -1
  277. package/dist/esm/funcs/destinationsCreate.d.ts +3 -2
  278. package/dist/esm/funcs/destinationsCreate.d.ts.map +1 -1
  279. package/dist/esm/funcs/destinationsCreate.js +3 -1
  280. package/dist/esm/funcs/destinationsCreate.js.map +1 -1
  281. package/dist/esm/funcs/destinationsDelete.d.ts +3 -2
  282. package/dist/esm/funcs/destinationsDelete.d.ts.map +1 -1
  283. package/dist/esm/funcs/destinationsDelete.js +3 -1
  284. package/dist/esm/funcs/destinationsDelete.js.map +1 -1
  285. package/dist/esm/funcs/destinationsDisable.d.ts +3 -2
  286. package/dist/esm/funcs/destinationsDisable.d.ts.map +1 -1
  287. package/dist/esm/funcs/destinationsDisable.js +3 -1
  288. package/dist/esm/funcs/destinationsDisable.js.map +1 -1
  289. package/dist/esm/funcs/destinationsEnable.d.ts +3 -2
  290. package/dist/esm/funcs/destinationsEnable.d.ts.map +1 -1
  291. package/dist/esm/funcs/destinationsEnable.js +3 -1
  292. package/dist/esm/funcs/destinationsEnable.js.map +1 -1
  293. package/dist/esm/funcs/destinationsGet.d.ts +3 -2
  294. package/dist/esm/funcs/destinationsGet.d.ts.map +1 -1
  295. package/dist/esm/funcs/destinationsGet.js +3 -1
  296. package/dist/esm/funcs/destinationsGet.js.map +1 -1
  297. package/dist/esm/funcs/destinationsList.d.ts +3 -2
  298. package/dist/esm/funcs/destinationsList.d.ts.map +1 -1
  299. package/dist/esm/funcs/destinationsList.js +3 -1
  300. package/dist/esm/funcs/destinationsList.js.map +1 -1
  301. package/dist/esm/funcs/destinationsUpdate.d.ts +3 -2
  302. package/dist/esm/funcs/destinationsUpdate.d.ts.map +1 -1
  303. package/dist/esm/funcs/destinationsUpdate.js +3 -1
  304. package/dist/esm/funcs/destinationsUpdate.js.map +1 -1
  305. package/dist/esm/funcs/eventsGet.d.ts +3 -2
  306. package/dist/esm/funcs/eventsGet.d.ts.map +1 -1
  307. package/dist/esm/funcs/eventsGet.js +3 -1
  308. package/dist/esm/funcs/eventsGet.js.map +1 -1
  309. package/dist/esm/funcs/eventsGetByDestination.d.ts +3 -2
  310. package/dist/esm/funcs/eventsGetByDestination.d.ts.map +1 -1
  311. package/dist/esm/funcs/eventsGetByDestination.js +3 -1
  312. package/dist/esm/funcs/eventsGetByDestination.js.map +1 -1
  313. package/dist/esm/funcs/eventsList.d.ts +6 -3
  314. package/dist/esm/funcs/eventsList.d.ts.map +1 -1
  315. package/dist/esm/funcs/eventsList.js +48 -8
  316. package/dist/esm/funcs/eventsList.js.map +1 -1
  317. package/dist/esm/funcs/eventsListByDestination.d.ts +6 -3
  318. package/dist/esm/funcs/eventsListByDestination.d.ts.map +1 -1
  319. package/dist/esm/funcs/eventsListByDestination.js +46 -8
  320. package/dist/esm/funcs/eventsListByDestination.js.map +1 -1
  321. package/dist/esm/funcs/eventsListDeliveries.d.ts +3 -2
  322. package/dist/esm/funcs/eventsListDeliveries.d.ts.map +1 -1
  323. package/dist/esm/funcs/eventsListDeliveries.js +3 -1
  324. package/dist/esm/funcs/eventsListDeliveries.js.map +1 -1
  325. package/dist/esm/funcs/eventsRetry.d.ts +3 -2
  326. package/dist/esm/funcs/eventsRetry.d.ts.map +1 -1
  327. package/dist/esm/funcs/eventsRetry.js +3 -1
  328. package/dist/esm/funcs/eventsRetry.js.map +1 -1
  329. package/dist/esm/funcs/healthCheck.d.ts +3 -2
  330. package/dist/esm/funcs/healthCheck.d.ts.map +1 -1
  331. package/dist/esm/funcs/healthCheck.js +3 -1
  332. package/dist/esm/funcs/healthCheck.js.map +1 -1
  333. package/dist/esm/funcs/publishEvent.d.ts +3 -2
  334. package/dist/esm/funcs/publishEvent.d.ts.map +1 -1
  335. package/dist/esm/funcs/publishEvent.js +3 -2
  336. package/dist/esm/funcs/publishEvent.js.map +1 -1
  337. package/dist/esm/funcs/schemasGet.d.ts +3 -2
  338. package/dist/esm/funcs/schemasGet.d.ts.map +1 -1
  339. package/dist/esm/funcs/schemasGet.js +3 -1
  340. package/dist/esm/funcs/schemasGet.js.map +1 -1
  341. package/dist/esm/funcs/schemasGetDestinationTypeJwt.d.ts +3 -2
  342. package/dist/esm/funcs/schemasGetDestinationTypeJwt.d.ts.map +1 -1
  343. package/dist/esm/funcs/schemasGetDestinationTypeJwt.js +3 -1
  344. package/dist/esm/funcs/schemasGetDestinationTypeJwt.js.map +1 -1
  345. package/dist/esm/funcs/schemasListDestinationTypesJwt.d.ts +3 -2
  346. package/dist/esm/funcs/schemasListDestinationTypesJwt.d.ts.map +1 -1
  347. package/dist/esm/funcs/schemasListDestinationTypesJwt.js +3 -1
  348. package/dist/esm/funcs/schemasListDestinationTypesJwt.js.map +1 -1
  349. package/dist/esm/funcs/schemasListTenantDestinationTypes.d.ts +3 -2
  350. package/dist/esm/funcs/schemasListTenantDestinationTypes.d.ts.map +1 -1
  351. package/dist/esm/funcs/schemasListTenantDestinationTypes.js +3 -1
  352. package/dist/esm/funcs/schemasListTenantDestinationTypes.js.map +1 -1
  353. package/dist/esm/funcs/tenantsDelete.d.ts +3 -2
  354. package/dist/esm/funcs/tenantsDelete.d.ts.map +1 -1
  355. package/dist/esm/funcs/tenantsDelete.js +3 -1
  356. package/dist/esm/funcs/tenantsDelete.js.map +1 -1
  357. package/dist/esm/funcs/tenantsGet.d.ts +3 -2
  358. package/dist/esm/funcs/tenantsGet.d.ts.map +1 -1
  359. package/dist/esm/funcs/tenantsGet.js +3 -1
  360. package/dist/esm/funcs/tenantsGet.js.map +1 -1
  361. package/dist/esm/funcs/tenantsGetPortalUrl.d.ts +3 -2
  362. package/dist/esm/funcs/tenantsGetPortalUrl.d.ts.map +1 -1
  363. package/dist/esm/funcs/tenantsGetPortalUrl.js +3 -1
  364. package/dist/esm/funcs/tenantsGetPortalUrl.js.map +1 -1
  365. package/dist/esm/funcs/tenantsGetToken.d.ts +3 -2
  366. package/dist/esm/funcs/tenantsGetToken.d.ts.map +1 -1
  367. package/dist/esm/funcs/tenantsGetToken.js +3 -1
  368. package/dist/esm/funcs/tenantsGetToken.js.map +1 -1
  369. package/dist/esm/funcs/tenantsUpsert.d.ts +3 -2
  370. package/dist/esm/funcs/tenantsUpsert.d.ts.map +1 -1
  371. package/dist/esm/funcs/tenantsUpsert.js +3 -1
  372. package/dist/esm/funcs/tenantsUpsert.js.map +1 -1
  373. package/dist/esm/funcs/topicsList.d.ts +3 -2
  374. package/dist/esm/funcs/topicsList.d.ts.map +1 -1
  375. package/dist/esm/funcs/topicsList.js +3 -1
  376. package/dist/esm/funcs/topicsList.js.map +1 -1
  377. package/dist/esm/funcs/topicsListJwt.d.ts +3 -2
  378. package/dist/esm/funcs/topicsListJwt.d.ts.map +1 -1
  379. package/dist/esm/funcs/topicsListJwt.js +3 -1
  380. package/dist/esm/funcs/topicsListJwt.js.map +1 -1
  381. package/dist/esm/hooks/types.d.ts +2 -0
  382. package/dist/esm/hooks/types.d.ts.map +1 -1
  383. package/dist/esm/index.d.ts +2 -0
  384. package/dist/esm/index.d.ts.map +1 -1
  385. package/dist/esm/index.js +1 -0
  386. package/dist/esm/index.js.map +1 -1
  387. package/dist/esm/lib/config.d.ts +7 -3
  388. package/dist/esm/lib/config.d.ts.map +1 -1
  389. package/dist/esm/lib/config.js +3 -3
  390. package/dist/esm/lib/config.js.map +1 -1
  391. package/dist/esm/lib/files.d.ts +5 -0
  392. package/dist/esm/lib/files.d.ts.map +1 -1
  393. package/dist/esm/lib/files.js +40 -0
  394. package/dist/esm/lib/files.js.map +1 -1
  395. package/dist/esm/lib/matchers.d.ts +3 -10
  396. package/dist/esm/lib/matchers.d.ts.map +1 -1
  397. package/dist/esm/lib/matchers.js +33 -30
  398. package/dist/esm/lib/matchers.js.map +1 -1
  399. package/dist/esm/lib/sdks.d.ts +1 -0
  400. package/dist/esm/lib/sdks.d.ts.map +1 -1
  401. package/dist/esm/lib/sdks.js +3 -3
  402. package/dist/esm/lib/sdks.js.map +1 -1
  403. package/dist/esm/lib/security.d.ts +2 -2
  404. package/dist/esm/lib/security.d.ts.map +1 -1
  405. package/dist/esm/lib/security.js.map +1 -1
  406. package/dist/esm/mcp-server/cli/start/command.d.ts.map +1 -1
  407. package/dist/esm/mcp-server/cli/start/command.js +0 -12
  408. package/dist/esm/mcp-server/cli/start/command.js.map +1 -1
  409. package/dist/esm/mcp-server/cli/start/impl.d.ts +0 -2
  410. package/dist/esm/mcp-server/cli/start/impl.d.ts.map +1 -1
  411. package/dist/esm/mcp-server/cli/start/impl.js +0 -2
  412. package/dist/esm/mcp-server/cli/start/impl.js.map +1 -1
  413. package/dist/esm/mcp-server/mcp-server.js +1 -1
  414. package/dist/esm/mcp-server/server.js +1 -1
  415. package/dist/esm/mcp-server/tools/eventsList.js +1 -1
  416. package/dist/esm/mcp-server/tools/eventsList.js.map +1 -1
  417. package/dist/esm/mcp-server/tools/eventsListByDestination.js +1 -1
  418. package/dist/esm/mcp-server/tools/eventsListByDestination.js.map +1 -1
  419. package/dist/esm/mcp-server/tools/publishEvent.d.ts.map +1 -1
  420. package/dist/esm/mcp-server/tools/publishEvent.js +2 -1
  421. package/dist/esm/mcp-server/tools/publishEvent.js.map +1 -1
  422. package/dist/esm/models/components/awss3config.d.ts +47 -0
  423. package/dist/esm/models/components/awss3config.d.ts.map +1 -0
  424. package/dist/esm/models/components/awss3config.js +48 -0
  425. package/dist/esm/models/components/awss3config.js.map +1 -0
  426. package/dist/esm/models/components/awss3credentials.d.ts +42 -0
  427. package/dist/esm/models/components/awss3credentials.d.ts.map +1 -0
  428. package/dist/esm/models/components/awss3credentials.js +35 -0
  429. package/dist/esm/models/components/awss3credentials.js.map +1 -0
  430. package/dist/esm/models/components/azureservicebusconfig.d.ts +32 -0
  431. package/dist/esm/models/components/azureservicebusconfig.d.ts.map +1 -0
  432. package/dist/esm/models/components/azureservicebusconfig.js +31 -0
  433. package/dist/esm/models/components/azureservicebusconfig.js.map +1 -0
  434. package/dist/esm/models/components/azureservicebuscredentials.d.ts +32 -0
  435. package/dist/esm/models/components/azureservicebuscredentials.d.ts.map +1 -0
  436. package/dist/esm/models/components/azureservicebuscredentials.js +40 -0
  437. package/dist/esm/models/components/azureservicebuscredentials.js.map +1 -0
  438. package/dist/esm/models/components/destination.d.ts +14 -4
  439. package/dist/esm/models/components/destination.d.ts.map +1 -1
  440. package/dist/esm/models/components/destination.js +18 -4
  441. package/dist/esm/models/components/destination.js.map +1 -1
  442. package/dist/esm/models/components/destinationawss3.d.ts +98 -0
  443. package/dist/esm/models/components/destinationawss3.d.ts.map +1 -0
  444. package/dist/esm/models/components/destinationawss3.js +84 -0
  445. package/dist/esm/models/components/destinationawss3.js.map +1 -0
  446. package/dist/esm/models/components/destinationazureservicebus.d.ts +98 -0
  447. package/dist/esm/models/components/destinationazureservicebus.d.ts.map +1 -0
  448. package/dist/esm/models/components/destinationazureservicebus.js +84 -0
  449. package/dist/esm/models/components/destinationazureservicebus.js.map +1 -0
  450. package/dist/esm/models/components/destinationcreate.d.ts +20 -10
  451. package/dist/esm/models/components/destinationcreate.d.ts.map +1 -1
  452. package/dist/esm/models/components/destinationcreate.js +24 -10
  453. package/dist/esm/models/components/destinationcreate.js.map +1 -1
  454. package/dist/esm/models/components/destinationcreateawss3.d.ts +78 -0
  455. package/dist/esm/models/components/destinationcreateawss3.d.ts.map +1 -0
  456. package/dist/esm/models/components/destinationcreateawss3.js +63 -0
  457. package/dist/esm/models/components/destinationcreateawss3.js.map +1 -0
  458. package/dist/esm/models/components/destinationcreateazureservicebus.d.ts +78 -0
  459. package/dist/esm/models/components/destinationcreateazureservicebus.d.ts.map +1 -0
  460. package/dist/esm/models/components/destinationcreateazureservicebus.js +63 -0
  461. package/dist/esm/models/components/destinationcreateazureservicebus.js.map +1 -0
  462. package/dist/esm/models/components/destinationupdate.d.ts +3 -2
  463. package/dist/esm/models/components/destinationupdate.d.ts.map +1 -1
  464. package/dist/esm/models/components/destinationupdate.js +3 -0
  465. package/dist/esm/models/components/destinationupdate.js.map +1 -1
  466. package/dist/esm/models/components/destinationupdateawss3.d.ts +39 -0
  467. package/dist/esm/models/components/destinationupdateawss3.d.ts.map +1 -0
  468. package/dist/esm/models/components/destinationupdateawss3.js +38 -0
  469. package/dist/esm/models/components/destinationupdateawss3.js.map +1 -0
  470. package/dist/esm/models/components/index.d.ts +10 -0
  471. package/dist/esm/models/components/index.d.ts.map +1 -1
  472. package/dist/esm/models/components/index.js +10 -0
  473. package/dist/esm/models/components/index.js.map +1 -1
  474. package/dist/esm/models/components/publishresponse.d.ts +32 -0
  475. package/dist/esm/models/components/publishresponse.d.ts.map +1 -0
  476. package/dist/esm/models/components/publishresponse.js +31 -0
  477. package/dist/esm/models/components/publishresponse.js.map +1 -0
  478. package/dist/esm/models/errors/apierror.d.ts +8 -6
  479. package/dist/esm/models/errors/apierror.d.ts.map +1 -1
  480. package/dist/esm/models/errors/apierror.js +23 -10
  481. package/dist/esm/models/errors/apierror.js.map +1 -1
  482. package/dist/esm/models/errors/badrequesterror.d.ts +7 -2
  483. package/dist/esm/models/errors/badrequesterror.d.ts.map +1 -1
  484. package/dist/esm/models/errors/badrequesterror.js +13 -7
  485. package/dist/esm/models/errors/badrequesterror.js.map +1 -1
  486. package/dist/esm/models/errors/index.d.ts +1 -0
  487. package/dist/esm/models/errors/index.d.ts.map +1 -1
  488. package/dist/esm/models/errors/index.js +1 -0
  489. package/dist/esm/models/errors/index.js.map +1 -1
  490. package/dist/esm/models/errors/internalservererror.d.ts +7 -2
  491. package/dist/esm/models/errors/internalservererror.d.ts.map +1 -1
  492. package/dist/esm/models/errors/internalservererror.js +13 -7
  493. package/dist/esm/models/errors/internalservererror.js.map +1 -1
  494. package/dist/esm/models/errors/notfounderror.d.ts +7 -2
  495. package/dist/esm/models/errors/notfounderror.d.ts.map +1 -1
  496. package/dist/esm/models/errors/notfounderror.js +13 -7
  497. package/dist/esm/models/errors/notfounderror.js.map +1 -1
  498. package/dist/esm/models/errors/outposterror.d.ts +19 -0
  499. package/dist/esm/models/errors/outposterror.d.ts.map +1 -0
  500. package/dist/esm/models/errors/outposterror.js +16 -0
  501. package/dist/esm/models/errors/outposterror.js.map +1 -0
  502. package/dist/esm/models/errors/ratelimitederror.d.ts +7 -2
  503. package/dist/esm/models/errors/ratelimitederror.d.ts.map +1 -1
  504. package/dist/esm/models/errors/ratelimitederror.js +13 -7
  505. package/dist/esm/models/errors/ratelimitederror.js.map +1 -1
  506. package/dist/esm/models/errors/responsevalidationerror.d.ts +26 -0
  507. package/dist/esm/models/errors/responsevalidationerror.d.ts.map +1 -0
  508. package/dist/esm/models/errors/responsevalidationerror.js +29 -0
  509. package/dist/esm/models/errors/responsevalidationerror.js.map +1 -0
  510. package/dist/esm/models/errors/sdkvalidationerror.d.ts +1 -0
  511. package/dist/esm/models/errors/sdkvalidationerror.d.ts.map +1 -1
  512. package/dist/esm/models/errors/sdkvalidationerror.js +14 -0
  513. package/dist/esm/models/errors/sdkvalidationerror.js.map +1 -1
  514. package/dist/esm/models/errors/timeouterror.d.ts +7 -2
  515. package/dist/esm/models/errors/timeouterror.d.ts.map +1 -1
  516. package/dist/esm/models/errors/timeouterror.js +13 -7
  517. package/dist/esm/models/errors/timeouterror.js.map +1 -1
  518. package/dist/esm/models/errors/unauthorizederror.d.ts +7 -2
  519. package/dist/esm/models/errors/unauthorizederror.d.ts.map +1 -1
  520. package/dist/esm/models/errors/unauthorizederror.js +13 -7
  521. package/dist/esm/models/errors/unauthorizederror.js.map +1 -1
  522. package/dist/esm/models/operations/getdestinationtypeschema.d.ts +3 -0
  523. package/dist/esm/models/operations/getdestinationtypeschema.d.ts.map +1 -1
  524. package/dist/esm/models/operations/getdestinationtypeschema.js +1 -0
  525. package/dist/esm/models/operations/getdestinationtypeschema.js.map +1 -1
  526. package/dist/esm/models/operations/gettenantdestinationtypeschema.d.ts +3 -0
  527. package/dist/esm/models/operations/gettenantdestinationtypeschema.d.ts.map +1 -1
  528. package/dist/esm/models/operations/gettenantdestinationtypeschema.js +1 -0
  529. package/dist/esm/models/operations/gettenantdestinationtypeschema.js.map +1 -1
  530. package/dist/esm/models/operations/listtenantdestinations.d.ts +6 -0
  531. package/dist/esm/models/operations/listtenantdestinations.d.ts.map +1 -1
  532. package/dist/esm/models/operations/listtenantdestinations.js +2 -0
  533. package/dist/esm/models/operations/listtenantdestinations.js.map +1 -1
  534. package/dist/esm/models/operations/listtenantevents.d.ts +94 -0
  535. package/dist/esm/models/operations/listtenantevents.d.ts.map +1 -1
  536. package/dist/esm/models/operations/listtenantevents.js +87 -0
  537. package/dist/esm/models/operations/listtenantevents.js.map +1 -1
  538. package/dist/esm/models/operations/listtenanteventsbydestination.d.ts +94 -0
  539. package/dist/esm/models/operations/listtenanteventsbydestination.d.ts.map +1 -1
  540. package/dist/esm/models/operations/listtenanteventsbydestination.js +87 -0
  541. package/dist/esm/models/operations/listtenanteventsbydestination.js.map +1 -1
  542. package/dist/esm/sdk/events.d.ts +7 -2
  543. package/dist/esm/sdk/events.d.ts.map +1 -1
  544. package/dist/esm/sdk/events.js +3 -2
  545. package/dist/esm/sdk/events.js.map +1 -1
  546. package/dist/esm/sdk/publish.d.ts +1 -1
  547. package/dist/esm/sdk/publish.d.ts.map +1 -1
  548. package/dist/esm/types/constdatetime.js +1 -1
  549. package/docs/sdks/destinations/README.md +58 -81
  550. package/docs/sdks/events/README.md +62 -72
  551. package/docs/sdks/health/README.md +6 -9
  552. package/docs/sdks/publish/README.md +9 -10
  553. package/docs/sdks/schemas/README.md +30 -44
  554. package/docs/sdks/tenants/README.md +50 -75
  555. package/docs/sdks/topics/README.md +16 -24
  556. package/examples/README.md +31 -0
  557. package/examples/healthCheck.example.ts +24 -0
  558. package/examples/package-lock.json +628 -0
  559. package/examples/package.json +18 -0
  560. package/jsr.json +1 -1
  561. package/package.json +9 -9
  562. package/src/funcs/destinationsCreate.ts +23 -26
  563. package/src/funcs/destinationsDelete.ts +23 -26
  564. package/src/funcs/destinationsDisable.ts +23 -26
  565. package/src/funcs/destinationsEnable.ts +23 -26
  566. package/src/funcs/destinationsGet.ts +23 -26
  567. package/src/funcs/destinationsList.ts +23 -26
  568. package/src/funcs/destinationsUpdate.ts +23 -26
  569. package/src/funcs/eventsGet.ts +23 -26
  570. package/src/funcs/eventsGetByDestination.ts +23 -26
  571. package/src/funcs/eventsList.ts +133 -56
  572. package/src/funcs/eventsListByDestination.ts +135 -56
  573. package/src/funcs/eventsListDeliveries.ts +23 -26
  574. package/src/funcs/eventsRetry.ts +23 -26
  575. package/src/funcs/healthCheck.ts +23 -29
  576. package/src/funcs/publishEvent.ts +27 -34
  577. package/src/funcs/schemasGet.ts +23 -26
  578. package/src/funcs/schemasGetDestinationTypeJwt.ts +23 -26
  579. package/src/funcs/schemasListDestinationTypesJwt.ts +23 -29
  580. package/src/funcs/schemasListTenantDestinationTypes.ts +23 -26
  581. package/src/funcs/tenantsDelete.ts +23 -26
  582. package/src/funcs/tenantsGet.ts +23 -26
  583. package/src/funcs/tenantsGetPortalUrl.ts +23 -26
  584. package/src/funcs/tenantsGetToken.ts +23 -26
  585. package/src/funcs/tenantsUpsert.ts +23 -29
  586. package/src/funcs/topicsList.ts +23 -26
  587. package/src/funcs/topicsListJwt.ts +23 -29
  588. package/src/hooks/types.ts +2 -0
  589. package/src/index.ts +2 -0
  590. package/src/lib/config.ts +7 -3
  591. package/src/lib/files.ts +42 -0
  592. package/src/lib/matchers.ts +44 -41
  593. package/src/lib/sdks.ts +10 -4
  594. package/src/lib/security.ts +6 -3
  595. package/src/mcp-server/cli/start/command.ts +0 -13
  596. package/src/mcp-server/cli/start/impl.ts +0 -4
  597. package/src/mcp-server/mcp-server.ts +1 -1
  598. package/src/mcp-server/server.ts +1 -1
  599. package/src/mcp-server/tools/eventsList.ts +1 -1
  600. package/src/mcp-server/tools/eventsListByDestination.ts +1 -1
  601. package/src/mcp-server/tools/publishEvent.ts +3 -1
  602. package/src/models/components/awss3config.ts +97 -0
  603. package/src/models/components/awss3credentials.ts +83 -0
  604. package/src/models/components/azureservicebusconfig.ts +69 -0
  605. package/src/models/components/azureservicebuscredentials.ts +78 -0
  606. package/src/models/components/destination.ts +48 -12
  607. package/src/models/components/destinationawss3.ts +185 -0
  608. package/src/models/components/destinationazureservicebus.ts +187 -0
  609. package/src/models/components/destinationcreate.ts +60 -24
  610. package/src/models/components/destinationcreateawss3.ts +144 -0
  611. package/src/models/components/destinationcreateazureservicebus.ts +149 -0
  612. package/src/models/components/destinationupdate.ts +12 -2
  613. package/src/models/components/destinationupdateawss3.ts +95 -0
  614. package/src/models/components/index.ts +10 -0
  615. package/src/models/components/publishresponse.ts +67 -0
  616. package/src/models/errors/apierror.ts +29 -16
  617. package/src/models/errors/badrequesterror.ts +16 -8
  618. package/src/models/errors/index.ts +1 -0
  619. package/src/models/errors/internalservererror.ts +16 -8
  620. package/src/models/errors/notfounderror.ts +16 -8
  621. package/src/models/errors/outposterror.ts +35 -0
  622. package/src/models/errors/ratelimitederror.ts +16 -8
  623. package/src/models/errors/responsevalidationerror.ts +50 -0
  624. package/src/models/errors/sdkvalidationerror.ts +12 -0
  625. package/src/models/errors/timeouterror.ts +16 -8
  626. package/src/models/errors/unauthorizederror.ts +16 -8
  627. package/src/models/operations/getdestinationtypeschema.ts +1 -0
  628. package/src/models/operations/gettenantdestinationtypeschema.ts +1 -0
  629. package/src/models/operations/listtenantdestinations.ts +2 -0
  630. package/src/models/operations/listtenantevents.ts +198 -0
  631. package/src/models/operations/listtenanteventsbydestination.ts +215 -0
  632. package/src/sdk/events.ts +12 -4
  633. package/src/sdk/publish.ts +1 -1
  634. package/src/types/constdatetime.ts +1 -1
package/bin/mcp-server.js CHANGED
@@ -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.2.0",
34194
- genVersion: "2.605.0",
34195
- userAgent: "speakeasy-sdk/typescript 0.2.0 2.605.0 0.0.1 @hookdeck/outpost-sdk"
34193
+ sdkVersion: "0.4.0",
34194
+ genVersion: "2.692.0",
34195
+ userAgent: "speakeasy-sdk/typescript 0.4.0 2.692.0 0.0.1 @hookdeck/outpost-sdk"
34196
34196
  };
34197
34197
  });
34198
34198
 
@@ -34730,7 +34730,6 @@ class ClientSDK {
34730
34730
  } else {
34731
34731
  this.#hooks = new SDKHooks;
34732
34732
  }
34733
- this._options = { ...options, hooks: this.#hooks };
34734
34733
  const url = serverURLFromOptions(options);
34735
34734
  if (url) {
34736
34735
  url.pathname = url.pathname.replace(/\/+$/, "") + "/";
@@ -34741,7 +34740,8 @@ class ClientSDK {
34741
34740
  });
34742
34741
  this._baseURL = baseURL;
34743
34742
  this.#httpClient = client;
34744
- this.#logger = options.debugLogger;
34743
+ this._options = { ...options, hooks: this.#hooks };
34744
+ this.#logger = this._options.debugLogger;
34745
34745
  }
34746
34746
  _createRequest(context, conf, options) {
34747
34747
  const { method, path, query, headers: opHeaders, security } = conf;
@@ -34792,7 +34792,7 @@ class ClientSDK {
34792
34792
  headers.set(k2, v2);
34793
34793
  }
34794
34794
  if (!isBrowserLike) {
34795
- headers.set(conf.uaHeader ?? "user-agent", SDK_METADATA.userAgent);
34795
+ headers.set(conf.uaHeader ?? "user-agent", conf.userAgent ?? SDK_METADATA.userAgent);
34796
34796
  }
34797
34797
  const fetchOptions = {
34798
34798
  ...options?.fetchOptions,
@@ -35140,24 +35140,53 @@ var init_tools = __esm(() => {
35140
35140
  init_shared();
35141
35141
  });
35142
35142
 
35143
+ // src/models/errors/outposterror.ts
35144
+ var OutpostError;
35145
+ var init_outposterror = __esm(() => {
35146
+ OutpostError = class OutpostError extends Error {
35147
+ statusCode;
35148
+ body;
35149
+ headers;
35150
+ contentType;
35151
+ rawResponse;
35152
+ constructor(message, httpMeta) {
35153
+ super(message);
35154
+ this.statusCode = httpMeta.response.status;
35155
+ this.body = httpMeta.body;
35156
+ this.headers = httpMeta.response.headers;
35157
+ this.contentType = httpMeta.response.headers.get("content-type") || "";
35158
+ this.rawResponse = httpMeta.response;
35159
+ this.name = "OutpostError";
35160
+ }
35161
+ };
35162
+ });
35163
+
35143
35164
  // src/models/errors/apierror.ts
35144
35165
  var APIError;
35145
35166
  var init_apierror = __esm(() => {
35146
- APIError = class APIError extends Error {
35147
- rawResponse;
35148
- body;
35149
- statusCode;
35150
- contentType;
35151
- constructor(message, rawResponse, body = "") {
35152
- const statusCode = rawResponse.status;
35153
- const contentType2 = rawResponse.headers.get("content-type") || "";
35154
- const bodyString = body.length > 0 ? `
35155
- ${body}` : "";
35156
- super(`${message}: Status ${statusCode} Content-Type ${contentType2} Body ${bodyString}`);
35157
- this.rawResponse = rawResponse;
35158
- this.body = body;
35159
- this.statusCode = statusCode;
35160
- this.contentType = contentType2;
35167
+ init_outposterror();
35168
+ APIError = class APIError extends OutpostError {
35169
+ constructor(message, httpMeta) {
35170
+ if (message) {
35171
+ message += `: `;
35172
+ }
35173
+ message += `Status ${httpMeta.response.status}`;
35174
+ const contentType2 = httpMeta.response.headers.get("content-type") || `""`;
35175
+ if (contentType2 !== "application/json") {
35176
+ message += ` Content-Type ${contentType2.includes(" ") ? `"${contentType2}"` : contentType2}`;
35177
+ }
35178
+ const body = httpMeta.body || `""`;
35179
+ message += body.length > 100 ? `
35180
+ ` : ". ";
35181
+ let bodyDisplay = body;
35182
+ if (body.length > 1e4) {
35183
+ const truncated = body.substring(0, 1e4);
35184
+ const remaining = body.length - 1e4;
35185
+ bodyDisplay = `${truncated}...and ${remaining} more chars`;
35186
+ }
35187
+ message += `Body: ${bodyDisplay}`;
35188
+ message = message.trim();
35189
+ super(message, httpMeta);
35161
35190
  this.name = "APIError";
35162
35191
  }
35163
35192
  };
@@ -35221,6 +35250,19 @@ var init_sdkvalidationerror = __esm(() => {
35221
35250
  SDKValidationError = class SDKValidationError extends Error {
35222
35251
  rawValue;
35223
35252
  rawMessage;
35253
+ static [Symbol.hasInstance](instance) {
35254
+ if (!(instance instanceof Error))
35255
+ return false;
35256
+ if (!("rawValue" in instance))
35257
+ return false;
35258
+ if (!("rawMessage" in instance))
35259
+ return false;
35260
+ if (!("pretty" in instance))
35261
+ return false;
35262
+ if (typeof instance.pretty !== "function")
35263
+ return false;
35264
+ return true;
35265
+ }
35224
35266
  constructor(message, cause, rawValue) {
35225
35267
  super(`${message}: ${cause}`);
35226
35268
  this.name = "SDKValidationError";
@@ -35239,37 +35281,31 @@ ${formatZodError(this.cause)}`;
35239
35281
  };
35240
35282
  });
35241
35283
 
35242
- // src/lib/schemas.ts
35243
- function safeParse(rawValue, fn, errorMessage) {
35244
- try {
35245
- return OK2(fn(rawValue));
35246
- } catch (err) {
35247
- return ERR(new SDKValidationError(errorMessage, err, rawValue));
35248
- }
35249
- }
35250
- function collectExtraKeys(obj, extrasKey, optional2) {
35251
- return obj.transform((val) => {
35252
- const extras = {};
35253
- const { shape } = obj;
35254
- for (const [key] of Object.entries(val)) {
35255
- if (key in shape) {
35256
- continue;
35257
- }
35258
- const v2 = val[key];
35259
- if (typeof v2 === "undefined") {
35260
- continue;
35261
- }
35262
- extras[key] = v2;
35263
- delete val[key];
35284
+ // src/models/errors/responsevalidationerror.ts
35285
+ var ResponseValidationError;
35286
+ var init_responsevalidationerror = __esm(() => {
35287
+ init_lib();
35288
+ init_outposterror();
35289
+ init_sdkvalidationerror();
35290
+ ResponseValidationError = class ResponseValidationError extends OutpostError {
35291
+ rawValue;
35292
+ rawMessage;
35293
+ constructor(message, extra) {
35294
+ super(message, extra);
35295
+ this.name = "ResponseValidationError";
35296
+ this.cause = extra.cause;
35297
+ this.rawValue = extra.rawValue;
35298
+ this.rawMessage = extra.rawMessage;
35264
35299
  }
35265
- if (optional2 && Object.keys(extras).length === 0) {
35266
- return val;
35300
+ pretty() {
35301
+ if (this.cause instanceof ZodError) {
35302
+ return `${this.rawMessage}
35303
+ ${formatZodError(this.cause)}`;
35304
+ } else {
35305
+ return this.toString();
35306
+ }
35267
35307
  }
35268
- return { ...val, [extrasKey]: extras };
35269
- });
35270
- }
35271
- var init_schemas = __esm(() => {
35272
- init_sdkvalidationerror();
35308
+ };
35273
35309
  });
35274
35310
 
35275
35311
  // src/lib/matchers.ts
@@ -35289,7 +35325,7 @@ function fail(codes) {
35289
35325
  return { enc: "fail", codes };
35290
35326
  }
35291
35327
  function match(...matchers) {
35292
- return async function matchFunc(response, options) {
35328
+ return async function matchFunc(response, request, options) {
35293
35329
  let raw;
35294
35330
  let matcher;
35295
35331
  for (const match2 of matchers) {
@@ -35304,16 +35340,21 @@ function match(...matchers) {
35304
35340
  }
35305
35341
  }
35306
35342
  if (!matcher) {
35307
- const responseBody = await response.text();
35308
35343
  return [{
35309
35344
  ok: false,
35310
- error: new APIError("Unexpected API response status or content-type", response, responseBody)
35311
- }, responseBody];
35345
+ error: new APIError("Unexpected Status or Content-Type", {
35346
+ response,
35347
+ request,
35348
+ body: await response.text().catch(() => "")
35349
+ })
35350
+ }, raw];
35312
35351
  }
35313
35352
  const encoding = matcher.enc;
35353
+ let body = "";
35314
35354
  switch (encoding) {
35315
35355
  case "json":
35316
- raw = await response.json();
35356
+ body = await response.text();
35357
+ raw = JSON.parse(body);
35317
35358
  break;
35318
35359
  case "jsonl":
35319
35360
  raw = response.body;
@@ -35325,16 +35366,19 @@ function match(...matchers) {
35325
35366
  raw = response.body;
35326
35367
  break;
35327
35368
  case "text":
35328
- raw = await response.text();
35369
+ body = await response.text();
35370
+ raw = body;
35329
35371
  break;
35330
35372
  case "sse":
35331
35373
  raw = response.body;
35332
35374
  break;
35333
35375
  case "nil":
35334
- raw = await discardResponseBody(response);
35376
+ body = await response.text();
35377
+ raw = undefined;
35335
35378
  break;
35336
35379
  case "fail":
35337
- raw = await response.text();
35380
+ body = await response.text();
35381
+ raw = body;
35338
35382
  break;
35339
35383
  default:
35340
35384
  throw new Error(`Unsupported response type: ${encoding}`);
@@ -35342,7 +35386,7 @@ function match(...matchers) {
35342
35386
  if (matcher.enc === "fail") {
35343
35387
  return [{
35344
35388
  ok: false,
35345
- error: new APIError("API error occurred", response, typeof raw === "string" ? raw : "")
35389
+ error: new APIError("API error occurred", { request, response, body })
35346
35390
  }, raw];
35347
35391
  }
35348
35392
  const resultKey = matcher.key || options?.resultKey;
@@ -35351,7 +35395,10 @@ function match(...matchers) {
35351
35395
  data = {
35352
35396
  ...options?.extraFields,
35353
35397
  ...matcher.hdrs ? { Headers: unpackHeaders(response.headers) } : null,
35354
- ...isPlainObject(raw) ? raw : null
35398
+ ...isPlainObject(raw) ? raw : null,
35399
+ request$: request,
35400
+ response$: response,
35401
+ body$: body
35355
35402
  };
35356
35403
  } else if (resultKey) {
35357
35404
  data = {
@@ -35369,11 +35416,11 @@ function match(...matchers) {
35369
35416
  data = raw;
35370
35417
  }
35371
35418
  if ("err" in matcher) {
35372
- const result = safeParse(data, (v2) => matcher.schema.parse(v2), "Response validation failed");
35419
+ const result = safeParseResponse(data, (v2) => matcher.schema.parse(v2), "Response validation failed", { request, response, body });
35373
35420
  return [result.ok ? { ok: false, error: result.value } : result, raw];
35374
35421
  } else {
35375
35422
  return [
35376
- safeParse(data, (v2) => matcher.schema.parse(v2), "Response validation failed"),
35423
+ safeParseResponse(data, (v2) => matcher.schema.parse(v2), "Response validation failed", { request, response, body }),
35377
35424
  raw
35378
35425
  ];
35379
35426
  }
@@ -35386,26 +35433,23 @@ function unpackHeaders(headers) {
35386
35433
  }
35387
35434
  return out;
35388
35435
  }
35389
- async function discardResponseBody(res) {
35390
- const reader = res.body?.getReader();
35391
- if (reader == null) {
35392
- return;
35393
- }
35436
+ function safeParseResponse(rawValue, fn, errorMessage, httpMeta) {
35394
35437
  try {
35395
- let done = false;
35396
- while (!done) {
35397
- const res2 = await reader.read();
35398
- done = res2.done;
35399
- }
35400
- } finally {
35401
- reader.releaseLock();
35438
+ return OK2(fn(rawValue));
35439
+ } catch (err) {
35440
+ return ERR(new ResponseValidationError(errorMessage, {
35441
+ cause: err,
35442
+ rawValue,
35443
+ rawMessage: errorMessage,
35444
+ ...httpMeta
35445
+ }));
35402
35446
  }
35403
35447
  }
35404
35448
  var DEFAULT_CONTENT_TYPES, headerValRE;
35405
35449
  var init_matchers = __esm(() => {
35406
35450
  init_apierror();
35451
+ init_responsevalidationerror();
35407
35452
  init_http();
35408
- init_schemas();
35409
35453
  DEFAULT_CONTENT_TYPES = {
35410
35454
  jsonl: "application/jsonl",
35411
35455
  json: "application/json",
@@ -35446,6 +35490,39 @@ function compactMap(values) {
35446
35490
  }
35447
35491
  var init_primitives = () => {};
35448
35492
 
35493
+ // src/lib/schemas.ts
35494
+ function safeParse(rawValue, fn, errorMessage) {
35495
+ try {
35496
+ return OK2(fn(rawValue));
35497
+ } catch (err) {
35498
+ return ERR(new SDKValidationError(errorMessage, err, rawValue));
35499
+ }
35500
+ }
35501
+ function collectExtraKeys(obj, extrasKey, optional2) {
35502
+ return obj.transform((val) => {
35503
+ const extras = {};
35504
+ const { shape } = obj;
35505
+ for (const [key] of Object.entries(val)) {
35506
+ if (key in shape) {
35507
+ continue;
35508
+ }
35509
+ const v2 = val[key];
35510
+ if (typeof v2 === "undefined") {
35511
+ continue;
35512
+ }
35513
+ extras[key] = v2;
35514
+ delete val[key];
35515
+ }
35516
+ if (optional2 && Object.keys(extras).length === 0) {
35517
+ return val;
35518
+ }
35519
+ return { ...val, [extrasKey]: extras };
35520
+ });
35521
+ }
35522
+ var init_schemas = __esm(() => {
35523
+ init_sdkvalidationerror();
35524
+ });
35525
+
35449
35526
  // src/lib/security.ts
35450
35527
  function resolveSecurity(...options) {
35451
35528
  const state = {
@@ -35630,6 +35707,59 @@ var init_awskinesiscredentials = __esm(() => {
35630
35707
  })(AWSKinesisCredentials$ ||= {});
35631
35708
  });
35632
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
+
35633
35763
  // src/models/components/awssqsconfig.ts
35634
35764
  var AWSSQSConfig$inboundSchema, AWSSQSConfig$outboundSchema, AWSSQSConfig$;
35635
35765
  var init_awssqsconfig = __esm(() => {
@@ -35677,6 +35807,47 @@ var init_awssqscredentials = __esm(() => {
35677
35807
  })(AWSSQSCredentials$ ||= {});
35678
35808
  });
35679
35809
 
35810
+ // src/models/components/azureservicebusconfig.ts
35811
+ var AzureServiceBusConfig$inboundSchema, AzureServiceBusConfig$outboundSchema, AzureServiceBusConfig$;
35812
+ var init_azureservicebusconfig = __esm(() => {
35813
+ init_lib();
35814
+ AzureServiceBusConfig$inboundSchema = objectType({
35815
+ name: stringType()
35816
+ });
35817
+ AzureServiceBusConfig$outboundSchema = objectType({
35818
+ name: stringType()
35819
+ });
35820
+ ((AzureServiceBusConfig$) => {
35821
+ AzureServiceBusConfig$.inboundSchema = AzureServiceBusConfig$inboundSchema;
35822
+ AzureServiceBusConfig$.outboundSchema = AzureServiceBusConfig$outboundSchema;
35823
+ })(AzureServiceBusConfig$ ||= {});
35824
+ });
35825
+
35826
+ // src/models/components/azureservicebuscredentials.ts
35827
+ var AzureServiceBusCredentials$inboundSchema, AzureServiceBusCredentials$outboundSchema, AzureServiceBusCredentials$;
35828
+ var init_azureservicebuscredentials = __esm(() => {
35829
+ init_lib();
35830
+ init_primitives();
35831
+ AzureServiceBusCredentials$inboundSchema = objectType({
35832
+ connection_string: stringType()
35833
+ }).transform((v2) => {
35834
+ return remap(v2, {
35835
+ connection_string: "connectionString"
35836
+ });
35837
+ });
35838
+ AzureServiceBusCredentials$outboundSchema = objectType({
35839
+ connectionString: stringType()
35840
+ }).transform((v2) => {
35841
+ return remap(v2, {
35842
+ connectionString: "connection_string"
35843
+ });
35844
+ });
35845
+ ((AzureServiceBusCredentials$) => {
35846
+ AzureServiceBusCredentials$.inboundSchema = AzureServiceBusCredentials$inboundSchema;
35847
+ AzureServiceBusCredentials$.outboundSchema = AzureServiceBusCredentials$outboundSchema;
35848
+ })(AzureServiceBusCredentials$ ||= {});
35849
+ });
35850
+
35680
35851
  // src/models/components/deliveryattempt.ts
35681
35852
  var Status, Status$inboundSchema, Status$outboundSchema, Status$, DeliveryAttempt$inboundSchema, DeliveryAttempt$outboundSchema, DeliveryAttempt$;
35682
35853
  var init_deliveryattempt = __esm(() => {
@@ -35804,6 +35975,63 @@ var init_destinationawskinesis = __esm(() => {
35804
35975
  })(DestinationAWSKinesis$ ||= {});
35805
35976
  });
35806
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
+
35807
36035
  // src/models/components/destinationawssqs.ts
35808
36036
  var DestinationAWSSQSType, DestinationAWSSQSType$inboundSchema, DestinationAWSSQSType$outboundSchema, DestinationAWSSQSType$, DestinationAWSSQS$inboundSchema, DestinationAWSSQS$outboundSchema, DestinationAWSSQS$;
35809
36037
  var init_destinationawssqs = __esm(() => {
@@ -35861,6 +36089,63 @@ var init_destinationawssqs = __esm(() => {
35861
36089
  })(DestinationAWSSQS$ ||= {});
35862
36090
  });
35863
36091
 
36092
+ // src/models/components/destinationazureservicebus.ts
36093
+ var DestinationAzureServiceBusType, DestinationAzureServiceBusType$inboundSchema, DestinationAzureServiceBusType$outboundSchema, DestinationAzureServiceBusType$, DestinationAzureServiceBus$inboundSchema, DestinationAzureServiceBus$outboundSchema, DestinationAzureServiceBus$;
36094
+ var init_destinationazureservicebus = __esm(() => {
36095
+ init_lib();
36096
+ init_primitives();
36097
+ init_azureservicebusconfig();
36098
+ init_azureservicebuscredentials();
36099
+ init_topics();
36100
+ DestinationAzureServiceBusType = {
36101
+ AzureServicebus: "azure_servicebus"
36102
+ };
36103
+ DestinationAzureServiceBusType$inboundSchema = nativeEnumType(DestinationAzureServiceBusType);
36104
+ DestinationAzureServiceBusType$outboundSchema = DestinationAzureServiceBusType$inboundSchema;
36105
+ ((DestinationAzureServiceBusType$) => {
36106
+ DestinationAzureServiceBusType$.inboundSchema = DestinationAzureServiceBusType$inboundSchema;
36107
+ DestinationAzureServiceBusType$.outboundSchema = DestinationAzureServiceBusType$outboundSchema;
36108
+ })(DestinationAzureServiceBusType$ ||= {});
36109
+ DestinationAzureServiceBus$inboundSchema = objectType({
36110
+ id: stringType(),
36111
+ type: DestinationAzureServiceBusType$inboundSchema,
36112
+ topics: Topics$inboundSchema,
36113
+ disabled_at: nullableType(stringType().datetime({ offset: true }).transform((v2) => new Date(v2))),
36114
+ created_at: stringType().datetime({ offset: true }).transform((v2) => new Date(v2)),
36115
+ config: AzureServiceBusConfig$inboundSchema,
36116
+ credentials: AzureServiceBusCredentials$inboundSchema,
36117
+ target: stringType().optional(),
36118
+ target_url: nullableType(stringType()).optional()
36119
+ }).transform((v2) => {
36120
+ return remap(v2, {
36121
+ disabled_at: "disabledAt",
36122
+ created_at: "createdAt",
36123
+ target_url: "targetUrl"
36124
+ });
36125
+ });
36126
+ DestinationAzureServiceBus$outboundSchema = objectType({
36127
+ id: stringType(),
36128
+ type: DestinationAzureServiceBusType$outboundSchema,
36129
+ topics: Topics$outboundSchema,
36130
+ disabledAt: nullableType(dateType().transform((v2) => v2.toISOString())),
36131
+ createdAt: dateType().transform((v2) => v2.toISOString()),
36132
+ config: AzureServiceBusConfig$outboundSchema,
36133
+ credentials: AzureServiceBusCredentials$outboundSchema,
36134
+ target: stringType().optional(),
36135
+ targetUrl: nullableType(stringType()).optional()
36136
+ }).transform((v2) => {
36137
+ return remap(v2, {
36138
+ disabledAt: "disabled_at",
36139
+ createdAt: "created_at",
36140
+ targetUrl: "target_url"
36141
+ });
36142
+ });
36143
+ ((DestinationAzureServiceBus$) => {
36144
+ DestinationAzureServiceBus$.inboundSchema = DestinationAzureServiceBus$inboundSchema;
36145
+ DestinationAzureServiceBus$.outboundSchema = DestinationAzureServiceBus$outboundSchema;
36146
+ })(DestinationAzureServiceBus$ ||= {});
36147
+ });
36148
+
35864
36149
  // src/models/components/hookdeckcredentials.ts
35865
36150
  var HookdeckCredentials$inboundSchema, HookdeckCredentials$outboundSchema, HookdeckCredentials$;
35866
36151
  var init_hookdeckcredentials = __esm(() => {
@@ -36156,7 +36441,9 @@ var Destination$inboundSchema, Destination$outboundSchema, Destination$;
36156
36441
  var init_destination = __esm(() => {
36157
36442
  init_lib();
36158
36443
  init_destinationawskinesis();
36444
+ init_destinationawss3();
36159
36445
  init_destinationawssqs();
36446
+ init_destinationazureservicebus();
36160
36447
  init_destinationhookdeck();
36161
36448
  init_destinationrabbitmq();
36162
36449
  init_destinationwebhook();
@@ -36170,10 +36457,16 @@ var init_destination = __esm(() => {
36170
36457
  DestinationRabbitMQ$inboundSchema.and(objectType({ type: literalType("rabbitmq") }).transform((v2) => ({
36171
36458
  type: v2.type
36172
36459
  }))),
36173
- DestinationHookdeck$inboundSchema.and(objectType({ type: literalType("hookdeck") }).transform((v2) => ({
36460
+ DestinationAWSKinesis$inboundSchema.and(objectType({ type: literalType("aws_kinesis") }).transform((v2) => ({
36174
36461
  type: v2.type
36175
36462
  }))),
36176
- DestinationAWSKinesis$inboundSchema.and(objectType({ type: literalType("aws_kinesis") }).transform((v2) => ({
36463
+ DestinationAzureServiceBus$inboundSchema.and(objectType({ type: literalType("azure_servicebus") }).transform((v2) => ({
36464
+ type: v2.type
36465
+ }))),
36466
+ DestinationAwss3$inboundSchema.and(objectType({ type: literalType("aws_s3") }).transform((v2) => ({
36467
+ type: v2.type
36468
+ }))),
36469
+ DestinationHookdeck$inboundSchema.and(objectType({ type: literalType("hookdeck") }).transform((v2) => ({
36177
36470
  type: v2.type
36178
36471
  })))
36179
36472
  ]);
@@ -36187,10 +36480,16 @@ var init_destination = __esm(() => {
36187
36480
  DestinationRabbitMQ$outboundSchema.and(objectType({ type: literalType("rabbitmq") }).transform((v2) => ({
36188
36481
  type: v2.type
36189
36482
  }))),
36190
- DestinationHookdeck$outboundSchema.and(objectType({ type: literalType("hookdeck") }).transform((v2) => ({
36483
+ DestinationAWSKinesis$outboundSchema.and(objectType({ type: literalType("aws_kinesis") }).transform((v2) => ({
36191
36484
  type: v2.type
36192
36485
  }))),
36193
- DestinationAWSKinesis$outboundSchema.and(objectType({ type: literalType("aws_kinesis") }).transform((v2) => ({
36486
+ DestinationAzureServiceBus$outboundSchema.and(objectType({ type: literalType("azure_servicebus") }).transform((v2) => ({
36487
+ type: v2.type
36488
+ }))),
36489
+ DestinationAwss3$outboundSchema.and(objectType({ type: literalType("aws_s3") }).transform((v2) => ({
36490
+ type: v2.type
36491
+ }))),
36492
+ DestinationHookdeck$outboundSchema.and(objectType({ type: literalType("hookdeck") }).transform((v2) => ({
36194
36493
  type: v2.type
36195
36494
  })))
36196
36495
  ]);
@@ -36236,6 +36535,42 @@ var init_destinationcreateawskinesis = __esm(() => {
36236
36535
  })(DestinationCreateAWSKinesis$ ||= {});
36237
36536
  });
36238
36537
 
36538
+ // src/models/components/destinationcreateawss3.ts
36539
+ var DestinationCreateAwss3Type, DestinationCreateAwss3Type$inboundSchema, DestinationCreateAwss3Type$outboundSchema, DestinationCreateAwss3Type$, DestinationCreateAwss3$inboundSchema, DestinationCreateAwss3$outboundSchema, DestinationCreateAwss3$;
36540
+ var init_destinationcreateawss3 = __esm(() => {
36541
+ init_lib();
36542
+ init_awss3config();
36543
+ init_awss3credentials();
36544
+ init_topics();
36545
+ DestinationCreateAwss3Type = {
36546
+ AwsS3: "aws_s3"
36547
+ };
36548
+ DestinationCreateAwss3Type$inboundSchema = nativeEnumType(DestinationCreateAwss3Type);
36549
+ DestinationCreateAwss3Type$outboundSchema = DestinationCreateAwss3Type$inboundSchema;
36550
+ ((DestinationCreateAwss3Type$) => {
36551
+ DestinationCreateAwss3Type$.inboundSchema = DestinationCreateAwss3Type$inboundSchema;
36552
+ DestinationCreateAwss3Type$.outboundSchema = DestinationCreateAwss3Type$outboundSchema;
36553
+ })(DestinationCreateAwss3Type$ ||= {});
36554
+ DestinationCreateAwss3$inboundSchema = objectType({
36555
+ id: stringType().optional(),
36556
+ type: DestinationCreateAwss3Type$inboundSchema,
36557
+ topics: Topics$inboundSchema,
36558
+ config: Awss3Config$inboundSchema,
36559
+ credentials: Awss3Credentials$inboundSchema
36560
+ });
36561
+ DestinationCreateAwss3$outboundSchema = objectType({
36562
+ id: stringType().optional(),
36563
+ type: DestinationCreateAwss3Type$outboundSchema,
36564
+ topics: Topics$outboundSchema,
36565
+ config: Awss3Config$outboundSchema,
36566
+ credentials: Awss3Credentials$outboundSchema
36567
+ });
36568
+ ((DestinationCreateAwss3$) => {
36569
+ DestinationCreateAwss3$.inboundSchema = DestinationCreateAwss3$inboundSchema;
36570
+ DestinationCreateAwss3$.outboundSchema = DestinationCreateAwss3$outboundSchema;
36571
+ })(DestinationCreateAwss3$ ||= {});
36572
+ });
36573
+
36239
36574
  // src/models/components/destinationcreateawssqs.ts
36240
36575
  var DestinationCreateAWSSQSType, DestinationCreateAWSSQSType$inboundSchema, DestinationCreateAWSSQSType$outboundSchema, DestinationCreateAWSSQSType$, DestinationCreateAWSSQS$inboundSchema, DestinationCreateAWSSQS$outboundSchema, DestinationCreateAWSSQS$;
36241
36576
  var init_destinationcreateawssqs = __esm(() => {
@@ -36272,6 +36607,42 @@ var init_destinationcreateawssqs = __esm(() => {
36272
36607
  })(DestinationCreateAWSSQS$ ||= {});
36273
36608
  });
36274
36609
 
36610
+ // src/models/components/destinationcreateazureservicebus.ts
36611
+ var DestinationCreateAzureServiceBusType, DestinationCreateAzureServiceBusType$inboundSchema, DestinationCreateAzureServiceBusType$outboundSchema, DestinationCreateAzureServiceBusType$, DestinationCreateAzureServiceBus$inboundSchema, DestinationCreateAzureServiceBus$outboundSchema, DestinationCreateAzureServiceBus$;
36612
+ var init_destinationcreateazureservicebus = __esm(() => {
36613
+ init_lib();
36614
+ init_azureservicebusconfig();
36615
+ init_azureservicebuscredentials();
36616
+ init_topics();
36617
+ DestinationCreateAzureServiceBusType = {
36618
+ AzureServicebus: "azure_servicebus"
36619
+ };
36620
+ DestinationCreateAzureServiceBusType$inboundSchema = nativeEnumType(DestinationCreateAzureServiceBusType);
36621
+ DestinationCreateAzureServiceBusType$outboundSchema = DestinationCreateAzureServiceBusType$inboundSchema;
36622
+ ((DestinationCreateAzureServiceBusType$) => {
36623
+ DestinationCreateAzureServiceBusType$.inboundSchema = DestinationCreateAzureServiceBusType$inboundSchema;
36624
+ DestinationCreateAzureServiceBusType$.outboundSchema = DestinationCreateAzureServiceBusType$outboundSchema;
36625
+ })(DestinationCreateAzureServiceBusType$ ||= {});
36626
+ DestinationCreateAzureServiceBus$inboundSchema = objectType({
36627
+ id: stringType().optional(),
36628
+ type: DestinationCreateAzureServiceBusType$inboundSchema,
36629
+ topics: Topics$inboundSchema,
36630
+ config: AzureServiceBusConfig$inboundSchema,
36631
+ credentials: AzureServiceBusCredentials$inboundSchema
36632
+ });
36633
+ DestinationCreateAzureServiceBus$outboundSchema = objectType({
36634
+ id: stringType().optional(),
36635
+ type: DestinationCreateAzureServiceBusType$outboundSchema,
36636
+ topics: Topics$outboundSchema,
36637
+ config: AzureServiceBusConfig$outboundSchema,
36638
+ credentials: AzureServiceBusCredentials$outboundSchema
36639
+ });
36640
+ ((DestinationCreateAzureServiceBus$) => {
36641
+ DestinationCreateAzureServiceBus$.inboundSchema = DestinationCreateAzureServiceBus$inboundSchema;
36642
+ DestinationCreateAzureServiceBus$.outboundSchema = DestinationCreateAzureServiceBus$outboundSchema;
36643
+ })(DestinationCreateAzureServiceBus$ ||= {});
36644
+ });
36645
+
36275
36646
  // src/models/components/destinationcreatehookdeck.ts
36276
36647
  var DestinationCreateHookdeckType, DestinationCreateHookdeckType$inboundSchema, DestinationCreateHookdeckType$outboundSchema, DestinationCreateHookdeckType$, DestinationCreateHookdeck$inboundSchema, DestinationCreateHookdeck$outboundSchema, DestinationCreateHookdeck$;
36277
36648
  var init_destinationcreatehookdeck = __esm(() => {
@@ -36384,41 +36755,55 @@ var DestinationCreate$inboundSchema, DestinationCreate$outboundSchema, Destinati
36384
36755
  var init_destinationcreate = __esm(() => {
36385
36756
  init_lib();
36386
36757
  init_destinationcreateawskinesis();
36758
+ init_destinationcreateawss3();
36387
36759
  init_destinationcreateawssqs();
36760
+ init_destinationcreateazureservicebus();
36388
36761
  init_destinationcreatehookdeck();
36389
36762
  init_destinationcreaterabbitmq();
36390
36763
  init_destinationcreatewebhook();
36391
36764
  DestinationCreate$inboundSchema = unionType([
36392
- DestinationCreateWebhook$inboundSchema.and(objectType({ type: literalType("webhook") }).transform((v2) => ({
36393
- type: v2.type
36394
- }))),
36395
36765
  DestinationCreateAWSSQS$inboundSchema.and(objectType({ type: literalType("aws_sqs") }).transform((v2) => ({
36396
36766
  type: v2.type
36397
36767
  }))),
36398
36768
  DestinationCreateRabbitMQ$inboundSchema.and(objectType({ type: literalType("rabbitmq") }).transform((v2) => ({
36399
36769
  type: v2.type
36400
36770
  }))),
36401
- DestinationCreateHookdeck$inboundSchema.and(objectType({ type: literalType("hookdeck") }).transform((v2) => ({
36771
+ DestinationCreateAWSKinesis$inboundSchema.and(objectType({ type: literalType("aws_kinesis") }).transform((v2) => ({
36402
36772
  type: v2.type
36403
36773
  }))),
36404
- DestinationCreateAWSKinesis$inboundSchema.and(objectType({ type: literalType("aws_kinesis") }).transform((v2) => ({
36774
+ DestinationCreateAzureServiceBus$inboundSchema.and(objectType({ type: literalType("azure_servicebus") }).transform((v2) => ({
36775
+ type: v2.type
36776
+ }))),
36777
+ DestinationCreateAwss3$inboundSchema.and(objectType({ type: literalType("aws_s3") }).transform((v2) => ({
36778
+ type: v2.type
36779
+ }))),
36780
+ DestinationCreateWebhook$inboundSchema.and(objectType({ type: literalType("webhook") }).transform((v2) => ({
36781
+ type: v2.type
36782
+ }))),
36783
+ DestinationCreateHookdeck$inboundSchema.and(objectType({ type: literalType("hookdeck") }).transform((v2) => ({
36405
36784
  type: v2.type
36406
36785
  })))
36407
36786
  ]);
36408
36787
  DestinationCreate$outboundSchema = unionType([
36409
- DestinationCreateWebhook$outboundSchema.and(objectType({ type: literalType("webhook") }).transform((v2) => ({
36410
- type: v2.type
36411
- }))),
36412
36788
  DestinationCreateAWSSQS$outboundSchema.and(objectType({ type: literalType("aws_sqs") }).transform((v2) => ({
36413
36789
  type: v2.type
36414
36790
  }))),
36415
36791
  DestinationCreateRabbitMQ$outboundSchema.and(objectType({ type: literalType("rabbitmq") }).transform((v2) => ({
36416
36792
  type: v2.type
36417
36793
  }))),
36418
- DestinationCreateHookdeck$outboundSchema.and(objectType({ type: literalType("hookdeck") }).transform((v2) => ({
36794
+ DestinationCreateAWSKinesis$outboundSchema.and(objectType({ type: literalType("aws_kinesis") }).transform((v2) => ({
36419
36795
  type: v2.type
36420
36796
  }))),
36421
- DestinationCreateAWSKinesis$outboundSchema.and(objectType({ type: literalType("aws_kinesis") }).transform((v2) => ({
36797
+ DestinationCreateAzureServiceBus$outboundSchema.and(objectType({ type: literalType("azure_servicebus") }).transform((v2) => ({
36798
+ type: v2.type
36799
+ }))),
36800
+ DestinationCreateAwss3$outboundSchema.and(objectType({ type: literalType("aws_s3") }).transform((v2) => ({
36801
+ type: v2.type
36802
+ }))),
36803
+ DestinationCreateWebhook$outboundSchema.and(objectType({ type: literalType("webhook") }).transform((v2) => ({
36804
+ type: v2.type
36805
+ }))),
36806
+ DestinationCreateHookdeck$outboundSchema.and(objectType({ type: literalType("hookdeck") }).transform((v2) => ({
36422
36807
  type: v2.type
36423
36808
  })))
36424
36809
  ]);
@@ -36537,6 +36922,29 @@ var init_destinationupdateawskinesis = __esm(() => {
36537
36922
  })(DestinationUpdateAWSKinesis$ ||= {});
36538
36923
  });
36539
36924
 
36925
+ // src/models/components/destinationupdateawss3.ts
36926
+ var DestinationUpdateAwss3$inboundSchema, DestinationUpdateAwss3$outboundSchema, DestinationUpdateAwss3$;
36927
+ var init_destinationupdateawss3 = __esm(() => {
36928
+ init_lib();
36929
+ init_awss3config();
36930
+ init_awss3credentials();
36931
+ init_topics();
36932
+ DestinationUpdateAwss3$inboundSchema = objectType({
36933
+ topics: Topics$inboundSchema.optional(),
36934
+ config: Awss3Config$inboundSchema.optional(),
36935
+ credentials: Awss3Credentials$inboundSchema.optional()
36936
+ });
36937
+ DestinationUpdateAwss3$outboundSchema = objectType({
36938
+ topics: Topics$outboundSchema.optional(),
36939
+ config: Awss3Config$outboundSchema.optional(),
36940
+ credentials: Awss3Credentials$outboundSchema.optional()
36941
+ });
36942
+ ((DestinationUpdateAwss3$) => {
36943
+ DestinationUpdateAwss3$.inboundSchema = DestinationUpdateAwss3$inboundSchema;
36944
+ DestinationUpdateAwss3$.outboundSchema = DestinationUpdateAwss3$outboundSchema;
36945
+ })(DestinationUpdateAwss3$ ||= {});
36946
+ });
36947
+
36540
36948
  // src/models/components/destinationupdateawssqs.ts
36541
36949
  var DestinationUpdateAWSSQS$inboundSchema, DestinationUpdateAWSSQS$outboundSchema, DestinationUpdateAWSSQS$;
36542
36950
  var init_destinationupdateawssqs = __esm(() => {
@@ -36668,6 +37076,7 @@ var DestinationUpdate$inboundSchema, DestinationUpdate$outboundSchema, Destinati
36668
37076
  var init_destinationupdate = __esm(() => {
36669
37077
  init_lib();
36670
37078
  init_destinationupdateawskinesis();
37079
+ init_destinationupdateawss3();
36671
37080
  init_destinationupdateawssqs();
36672
37081
  init_destinationupdatehookdeck();
36673
37082
  init_destinationupdaterabbitmq();
@@ -36677,14 +37086,16 @@ var init_destinationupdate = __esm(() => {
36677
37086
  DestinationUpdateAWSSQS$inboundSchema,
36678
37087
  DestinationUpdateRabbitMQ$inboundSchema,
36679
37088
  DestinationUpdateHookdeck$inboundSchema,
36680
- DestinationUpdateAWSKinesis$inboundSchema
37089
+ DestinationUpdateAWSKinesis$inboundSchema,
37090
+ DestinationUpdateAwss3$inboundSchema
36681
37091
  ]);
36682
37092
  DestinationUpdate$outboundSchema = unionType([
36683
37093
  DestinationUpdateWebhook$outboundSchema,
36684
37094
  DestinationUpdateAWSSQS$outboundSchema,
36685
37095
  DestinationUpdateRabbitMQ$outboundSchema,
36686
37096
  DestinationUpdateHookdeck$outboundSchema,
36687
- DestinationUpdateAWSKinesis$outboundSchema
37097
+ DestinationUpdateAWSKinesis$outboundSchema,
37098
+ DestinationUpdateAwss3$outboundSchema
36688
37099
  ]);
36689
37100
  ((DestinationUpdate$) => {
36690
37101
  DestinationUpdate$.inboundSchema = DestinationUpdate$inboundSchema;
@@ -36797,6 +37208,22 @@ var init_publishrequest = __esm(() => {
36797
37208
  })(PublishRequest$ ||= {});
36798
37209
  });
36799
37210
 
37211
+ // src/models/components/publishresponse.ts
37212
+ var PublishResponse$inboundSchema, PublishResponse$outboundSchema, PublishResponse$;
37213
+ var init_publishresponse = __esm(() => {
37214
+ init_lib();
37215
+ PublishResponse$inboundSchema = objectType({
37216
+ id: stringType()
37217
+ });
37218
+ PublishResponse$outboundSchema = objectType({
37219
+ id: stringType()
37220
+ });
37221
+ ((PublishResponse$) => {
37222
+ PublishResponse$.inboundSchema = PublishResponse$inboundSchema;
37223
+ PublishResponse$.outboundSchema = PublishResponse$outboundSchema;
37224
+ })(PublishResponse$ ||= {});
37225
+ });
37226
+
36800
37227
  // src/models/components/security.ts
36801
37228
  var Security$inboundSchema, Security$outboundSchema, Security$;
36802
37229
  var init_security2 = __esm(() => {
@@ -36895,15 +37322,23 @@ var init_tenanttoken = __esm(() => {
36895
37322
  var init_components = __esm(() => {
36896
37323
  init_awskinesisconfig();
36897
37324
  init_awskinesiscredentials();
37325
+ init_awss3config();
37326
+ init_awss3credentials();
36898
37327
  init_awssqsconfig();
36899
37328
  init_awssqscredentials();
37329
+ init_azureservicebusconfig();
37330
+ init_azureservicebuscredentials();
36900
37331
  init_deliveryattempt();
36901
37332
  init_destination();
36902
37333
  init_destinationawskinesis();
37334
+ init_destinationawss3();
36903
37335
  init_destinationawssqs();
37336
+ init_destinationazureservicebus();
36904
37337
  init_destinationcreate();
36905
37338
  init_destinationcreateawskinesis();
37339
+ init_destinationcreateawss3();
36906
37340
  init_destinationcreateawssqs();
37341
+ init_destinationcreateazureservicebus();
36907
37342
  init_destinationcreatehookdeck();
36908
37343
  init_destinationcreaterabbitmq();
36909
37344
  init_destinationcreatewebhook();
@@ -36913,6 +37348,7 @@ var init_components = __esm(() => {
36913
37348
  init_destinationtypeschema();
36914
37349
  init_destinationupdate();
36915
37350
  init_destinationupdateawskinesis();
37351
+ init_destinationupdateawss3();
36916
37352
  init_destinationupdateawssqs();
36917
37353
  init_destinationupdatehookdeck();
36918
37354
  init_destinationupdaterabbitmq();
@@ -36922,6 +37358,7 @@ var init_components = __esm(() => {
36922
37358
  init_hookdeckcredentials();
36923
37359
  init_portalredirect();
36924
37360
  init_publishrequest();
37361
+ init_publishresponse();
36925
37362
  init_rabbitmqconfig();
36926
37363
  init_rabbitmqcredentials();
36927
37364
  init_security2();
@@ -36940,12 +37377,13 @@ var init_badrequesterror = __esm(() => {
36940
37377
  init_lib();
36941
37378
  init_primitives();
36942
37379
  init_schemas();
36943
- BadRequestError = class BadRequestError extends Error {
37380
+ init_outposterror();
37381
+ BadRequestError = class BadRequestError extends OutpostError {
36944
37382
  additionalProperties = {};
36945
37383
  data$;
36946
- constructor(err) {
36947
- const message = "message" in err && typeof err.message === "string" ? err.message : `API error occurred: ${JSON.stringify(err)}`;
36948
- super(message);
37384
+ constructor(err, httpMeta) {
37385
+ const message = err.message || `API error occurred: ${JSON.stringify(err)}`;
37386
+ super(message, httpMeta);
36949
37387
  this.data$ = err;
36950
37388
  if (err.additionalProperties != null) {
36951
37389
  this.additionalProperties = err.additionalProperties;
@@ -36954,9 +37392,16 @@ var init_badrequesterror = __esm(() => {
36954
37392
  }
36955
37393
  };
36956
37394
  BadRequestError$inboundSchema = collectExtraKeys(objectType({
36957
- message: stringType().optional()
37395
+ message: stringType().optional(),
37396
+ request$: instanceOfType(Request),
37397
+ response$: instanceOfType(Response),
37398
+ body$: stringType()
36958
37399
  }).catchall(anyType()), "additionalProperties", true).transform((v2) => {
36959
- return new BadRequestError(v2);
37400
+ return new BadRequestError(v2, {
37401
+ request: v2.request$,
37402
+ response: v2.response$,
37403
+ body: v2.body$
37404
+ });
36960
37405
  });
36961
37406
  BadRequestError$outboundSchema = instanceOfType(BadRequestError).transform((v2) => v2.data$).pipe(objectType({
36962
37407
  message: stringType().optional(),
@@ -36981,12 +37426,13 @@ var init_internalservererror = __esm(() => {
36981
37426
  init_lib();
36982
37427
  init_primitives();
36983
37428
  init_schemas();
36984
- InternalServerError = class InternalServerError extends Error {
37429
+ init_outposterror();
37430
+ InternalServerError = class InternalServerError extends OutpostError {
36985
37431
  additionalProperties = {};
36986
37432
  data$;
36987
- constructor(err) {
36988
- const message = "message" in err && typeof err.message === "string" ? err.message : `API error occurred: ${JSON.stringify(err)}`;
36989
- super(message);
37433
+ constructor(err, httpMeta) {
37434
+ const message = err.message || `API error occurred: ${JSON.stringify(err)}`;
37435
+ super(message, httpMeta);
36990
37436
  this.data$ = err;
36991
37437
  if (err.additionalProperties != null) {
36992
37438
  this.additionalProperties = err.additionalProperties;
@@ -36995,9 +37441,16 @@ var init_internalservererror = __esm(() => {
36995
37441
  }
36996
37442
  };
36997
37443
  InternalServerError$inboundSchema = collectExtraKeys(objectType({
36998
- message: stringType().optional()
37444
+ message: stringType().optional(),
37445
+ request$: instanceOfType(Request),
37446
+ response$: instanceOfType(Response),
37447
+ body$: stringType()
36999
37448
  }).catchall(anyType()), "additionalProperties", true).transform((v2) => {
37000
- return new InternalServerError(v2);
37449
+ return new InternalServerError(v2, {
37450
+ request: v2.request$,
37451
+ response: v2.response$,
37452
+ body: v2.body$
37453
+ });
37001
37454
  });
37002
37455
  InternalServerError$outboundSchema = instanceOfType(InternalServerError).transform((v2) => v2.data$).pipe(objectType({
37003
37456
  message: stringType().optional(),
@@ -37022,12 +37475,13 @@ var init_notfounderror = __esm(() => {
37022
37475
  init_lib();
37023
37476
  init_primitives();
37024
37477
  init_schemas();
37025
- NotFoundError = class NotFoundError extends Error {
37478
+ init_outposterror();
37479
+ NotFoundError = class NotFoundError extends OutpostError {
37026
37480
  additionalProperties = {};
37027
37481
  data$;
37028
- constructor(err) {
37029
- const message = "message" in err && typeof err.message === "string" ? err.message : `API error occurred: ${JSON.stringify(err)}`;
37030
- super(message);
37482
+ constructor(err, httpMeta) {
37483
+ const message = err.message || `API error occurred: ${JSON.stringify(err)}`;
37484
+ super(message, httpMeta);
37031
37485
  this.data$ = err;
37032
37486
  if (err.additionalProperties != null) {
37033
37487
  this.additionalProperties = err.additionalProperties;
@@ -37036,9 +37490,16 @@ var init_notfounderror = __esm(() => {
37036
37490
  }
37037
37491
  };
37038
37492
  NotFoundError$inboundSchema = collectExtraKeys(objectType({
37039
- message: stringType().optional()
37493
+ message: stringType().optional(),
37494
+ request$: instanceOfType(Request),
37495
+ response$: instanceOfType(Response),
37496
+ body$: stringType()
37040
37497
  }).catchall(anyType()), "additionalProperties", true).transform((v2) => {
37041
- return new NotFoundError(v2);
37498
+ return new NotFoundError(v2, {
37499
+ request: v2.request$,
37500
+ response: v2.response$,
37501
+ body: v2.body$
37502
+ });
37042
37503
  });
37043
37504
  NotFoundError$outboundSchema = instanceOfType(NotFoundError).transform((v2) => v2.data$).pipe(objectType({
37044
37505
  message: stringType().optional(),
@@ -37063,12 +37524,13 @@ var init_ratelimitederror = __esm(() => {
37063
37524
  init_lib();
37064
37525
  init_primitives();
37065
37526
  init_schemas();
37066
- RateLimitedError = class RateLimitedError extends Error {
37527
+ init_outposterror();
37528
+ RateLimitedError = class RateLimitedError extends OutpostError {
37067
37529
  additionalProperties = {};
37068
37530
  data$;
37069
- constructor(err) {
37070
- const message = "message" in err && typeof err.message === "string" ? err.message : `API error occurred: ${JSON.stringify(err)}`;
37071
- super(message);
37531
+ constructor(err, httpMeta) {
37532
+ const message = err.message || `API error occurred: ${JSON.stringify(err)}`;
37533
+ super(message, httpMeta);
37072
37534
  this.data$ = err;
37073
37535
  if (err.additionalProperties != null) {
37074
37536
  this.additionalProperties = err.additionalProperties;
@@ -37077,9 +37539,16 @@ var init_ratelimitederror = __esm(() => {
37077
37539
  }
37078
37540
  };
37079
37541
  RateLimitedError$inboundSchema = collectExtraKeys(objectType({
37080
- message: stringType().optional()
37542
+ message: stringType().optional(),
37543
+ request$: instanceOfType(Request),
37544
+ response$: instanceOfType(Response),
37545
+ body$: stringType()
37081
37546
  }).catchall(anyType()), "additionalProperties", true).transform((v2) => {
37082
- return new RateLimitedError(v2);
37547
+ return new RateLimitedError(v2, {
37548
+ request: v2.request$,
37549
+ response: v2.response$,
37550
+ body: v2.body$
37551
+ });
37083
37552
  });
37084
37553
  RateLimitedError$outboundSchema = instanceOfType(RateLimitedError).transform((v2) => v2.data$).pipe(objectType({
37085
37554
  message: stringType().optional(),
@@ -37104,12 +37573,13 @@ var init_timeouterror = __esm(() => {
37104
37573
  init_lib();
37105
37574
  init_primitives();
37106
37575
  init_schemas();
37107
- TimeoutError = class TimeoutError extends Error {
37576
+ init_outposterror();
37577
+ TimeoutError = class TimeoutError extends OutpostError {
37108
37578
  additionalProperties = {};
37109
37579
  data$;
37110
- constructor(err) {
37111
- const message = "message" in err && typeof err.message === "string" ? err.message : `API error occurred: ${JSON.stringify(err)}`;
37112
- super(message);
37580
+ constructor(err, httpMeta) {
37581
+ const message = err.message || `API error occurred: ${JSON.stringify(err)}`;
37582
+ super(message, httpMeta);
37113
37583
  this.data$ = err;
37114
37584
  if (err.additionalProperties != null) {
37115
37585
  this.additionalProperties = err.additionalProperties;
@@ -37118,9 +37588,16 @@ var init_timeouterror = __esm(() => {
37118
37588
  }
37119
37589
  };
37120
37590
  TimeoutError$inboundSchema = collectExtraKeys(objectType({
37121
- message: stringType().optional()
37591
+ message: stringType().optional(),
37592
+ request$: instanceOfType(Request),
37593
+ response$: instanceOfType(Response),
37594
+ body$: stringType()
37122
37595
  }).catchall(anyType()), "additionalProperties", true).transform((v2) => {
37123
- return new TimeoutError(v2);
37596
+ return new TimeoutError(v2, {
37597
+ request: v2.request$,
37598
+ response: v2.response$,
37599
+ body: v2.body$
37600
+ });
37124
37601
  });
37125
37602
  TimeoutError$outboundSchema = instanceOfType(TimeoutError).transform((v2) => v2.data$).pipe(objectType({
37126
37603
  message: stringType().optional(),
@@ -37145,12 +37622,13 @@ var init_unauthorizederror = __esm(() => {
37145
37622
  init_lib();
37146
37623
  init_primitives();
37147
37624
  init_schemas();
37148
- UnauthorizedError = class UnauthorizedError extends Error {
37625
+ init_outposterror();
37626
+ UnauthorizedError = class UnauthorizedError extends OutpostError {
37149
37627
  additionalProperties = {};
37150
37628
  data$;
37151
- constructor(err) {
37152
- const message = "message" in err && typeof err.message === "string" ? err.message : `API error occurred: ${JSON.stringify(err)}`;
37153
- super(message);
37629
+ constructor(err, httpMeta) {
37630
+ const message = err.message || `API error occurred: ${JSON.stringify(err)}`;
37631
+ super(message, httpMeta);
37154
37632
  this.data$ = err;
37155
37633
  if (err.additionalProperties != null) {
37156
37634
  this.additionalProperties = err.additionalProperties;
@@ -37159,9 +37637,16 @@ var init_unauthorizederror = __esm(() => {
37159
37637
  }
37160
37638
  };
37161
37639
  UnauthorizedError$inboundSchema = collectExtraKeys(objectType({
37162
- message: stringType().optional()
37640
+ message: stringType().optional(),
37641
+ request$: instanceOfType(Request),
37642
+ response$: instanceOfType(Response),
37643
+ body$: stringType()
37163
37644
  }).catchall(anyType()), "additionalProperties", true).transform((v2) => {
37164
- return new UnauthorizedError(v2);
37645
+ return new UnauthorizedError(v2, {
37646
+ request: v2.request$,
37647
+ response: v2.response$,
37648
+ body: v2.body$
37649
+ });
37165
37650
  });
37166
37651
  UnauthorizedError$outboundSchema = instanceOfType(UnauthorizedError).transform((v2) => v2.data$).pipe(objectType({
37167
37652
  message: stringType().optional(),
@@ -37188,6 +37673,7 @@ var init_errors = __esm(() => {
37188
37673
  init_internalservererror();
37189
37674
  init_notfounderror();
37190
37675
  init_ratelimitederror();
37676
+ init_responsevalidationerror();
37191
37677
  init_sdkvalidationerror();
37192
37678
  init_timeouterror();
37193
37679
  init_unauthorizederror();
@@ -37434,7 +37920,8 @@ var init_getdestinationtypeschema = __esm(() => {
37434
37920
  AwsSqs: "aws_sqs",
37435
37921
  Rabbitmq: "rabbitmq",
37436
37922
  Hookdeck: "hookdeck",
37437
- AwsKinesis: "aws_kinesis"
37923
+ AwsKinesis: "aws_kinesis",
37924
+ AwsS3: "aws_s3"
37438
37925
  };
37439
37926
  GetDestinationTypeSchemaType$inboundSchema = nativeEnumType(GetDestinationTypeSchemaType);
37440
37927
  GetDestinationTypeSchemaType$outboundSchema = GetDestinationTypeSchemaType$inboundSchema;
@@ -37554,7 +38041,8 @@ var init_gettenantdestinationtypeschema = __esm(() => {
37554
38041
  AwsSqs: "aws_sqs",
37555
38042
  Rabbitmq: "rabbitmq",
37556
38043
  Hookdeck: "hookdeck",
37557
- AwsKinesis: "aws_kinesis"
38044
+ AwsKinesis: "aws_kinesis",
38045
+ AwsS3: "aws_s3"
37558
38046
  };
37559
38047
  GetTenantDestinationTypeSchemaGlobals$inboundSchema = objectType({
37560
38048
  tenant_id: stringType().optional()
@@ -37808,14 +38296,16 @@ var init_listtenantdestinations = __esm(() => {
37808
38296
  AwsSqs: "aws_sqs",
37809
38297
  Rabbitmq: "rabbitmq",
37810
38298
  Hookdeck: "hookdeck",
37811
- AwsKinesis: "aws_kinesis"
38299
+ AwsKinesis: "aws_kinesis",
38300
+ AwsS3: "aws_s3"
37812
38301
  };
37813
38302
  ListTenantDestinationsTypeEnum1 = {
37814
38303
  Webhook: "webhook",
37815
38304
  AwsSqs: "aws_sqs",
37816
38305
  Rabbitmq: "rabbitmq",
37817
38306
  Hookdeck: "hookdeck",
37818
- AwsKinesis: "aws_kinesis"
38307
+ AwsKinesis: "aws_kinesis",
38308
+ AwsS3: "aws_s3"
37819
38309
  };
37820
38310
  ListTenantDestinationsGlobals$inboundSchema = objectType({
37821
38311
  tenant_id: stringType().optional()
@@ -37986,10 +38476,11 @@ var init_listtenanteventdeliveries = __esm(() => {
37986
38476
  });
37987
38477
 
37988
38478
  // src/models/operations/listtenantevents.ts
37989
- var ListTenantEventsStatus, ListTenantEventsGlobals$inboundSchema, ListTenantEventsGlobals$outboundSchema, ListTenantEventsGlobals$, DestinationId$inboundSchema, DestinationId$outboundSchema, DestinationId$, ListTenantEventsStatus$inboundSchema, ListTenantEventsStatus$outboundSchema, ListTenantEventsStatus$, ListTenantEventsRequest$inboundSchema, ListTenantEventsRequest$outboundSchema, ListTenantEventsRequest$;
38479
+ 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$;
37990
38480
  var init_listtenantevents = __esm(() => {
37991
38481
  init_lib();
37992
38482
  init_primitives();
38483
+ init_components();
37993
38484
  ListTenantEventsStatus = {
37994
38485
  Success: "success",
37995
38486
  Failed: "failed"
@@ -38027,7 +38518,12 @@ var init_listtenantevents = __esm(() => {
38027
38518
  ListTenantEventsRequest$inboundSchema = objectType({
38028
38519
  tenant_id: stringType().optional(),
38029
38520
  destination_id: unionType([stringType(), arrayType(stringType())]).optional(),
38030
- status: ListTenantEventsStatus$inboundSchema.optional()
38521
+ status: ListTenantEventsStatus$inboundSchema.optional(),
38522
+ next: stringType().optional(),
38523
+ prev: stringType().optional(),
38524
+ limit: numberType().int().default(100),
38525
+ start: stringType().datetime({ offset: true }).transform((v2) => new Date(v2)).optional(),
38526
+ end: stringType().datetime({ offset: true }).transform((v2) => new Date(v2)).optional()
38031
38527
  }).transform((v2) => {
38032
38528
  return remap(v2, {
38033
38529
  tenant_id: "tenantId",
@@ -38037,7 +38533,12 @@ var init_listtenantevents = __esm(() => {
38037
38533
  ListTenantEventsRequest$outboundSchema = objectType({
38038
38534
  tenantId: stringType().optional(),
38039
38535
  destinationId: unionType([stringType(), arrayType(stringType())]).optional(),
38040
- status: ListTenantEventsStatus$outboundSchema.optional()
38536
+ status: ListTenantEventsStatus$outboundSchema.optional(),
38537
+ next: stringType().optional(),
38538
+ prev: stringType().optional(),
38539
+ limit: numberType().int().default(100),
38540
+ start: dateType().transform((v2) => v2.toISOString()).optional(),
38541
+ end: dateType().transform((v2) => v2.toISOString()).optional()
38041
38542
  }).transform((v2) => {
38042
38543
  return remap(v2, {
38043
38544
  tenantId: "tenant_id",
@@ -38048,13 +38549,58 @@ var init_listtenantevents = __esm(() => {
38048
38549
  ListTenantEventsRequest$.inboundSchema = ListTenantEventsRequest$inboundSchema;
38049
38550
  ListTenantEventsRequest$.outboundSchema = ListTenantEventsRequest$outboundSchema;
38050
38551
  })(ListTenantEventsRequest$ ||= {});
38552
+ ListTenantEventsResponseBody$inboundSchema = objectType({
38553
+ count: numberType().int(),
38554
+ data: arrayType(Event$inboundSchema),
38555
+ next: stringType(),
38556
+ prev: stringType()
38557
+ }).transform((v2) => {
38558
+ return remap(v2, {
38559
+ next: "nextCursor",
38560
+ prev: "prevCursor"
38561
+ });
38562
+ });
38563
+ ListTenantEventsResponseBody$outboundSchema = objectType({
38564
+ count: numberType().int(),
38565
+ data: arrayType(Event$outboundSchema),
38566
+ nextCursor: stringType(),
38567
+ prevCursor: stringType()
38568
+ }).transform((v2) => {
38569
+ return remap(v2, {
38570
+ nextCursor: "next",
38571
+ prevCursor: "prev"
38572
+ });
38573
+ });
38574
+ ((ListTenantEventsResponseBody$) => {
38575
+ ListTenantEventsResponseBody$.inboundSchema = ListTenantEventsResponseBody$inboundSchema;
38576
+ ListTenantEventsResponseBody$.outboundSchema = ListTenantEventsResponseBody$outboundSchema;
38577
+ })(ListTenantEventsResponseBody$ ||= {});
38578
+ ListTenantEventsResponse$inboundSchema = objectType({
38579
+ Result: lazyType(() => ListTenantEventsResponseBody$inboundSchema)
38580
+ }).transform((v2) => {
38581
+ return remap(v2, {
38582
+ Result: "result"
38583
+ });
38584
+ });
38585
+ ListTenantEventsResponse$outboundSchema = objectType({
38586
+ result: lazyType(() => ListTenantEventsResponseBody$outboundSchema)
38587
+ }).transform((v2) => {
38588
+ return remap(v2, {
38589
+ result: "Result"
38590
+ });
38591
+ });
38592
+ ((ListTenantEventsResponse$) => {
38593
+ ListTenantEventsResponse$.inboundSchema = ListTenantEventsResponse$inboundSchema;
38594
+ ListTenantEventsResponse$.outboundSchema = ListTenantEventsResponse$outboundSchema;
38595
+ })(ListTenantEventsResponse$ ||= {});
38051
38596
  });
38052
38597
 
38053
38598
  // src/models/operations/listtenanteventsbydestination.ts
38054
- var ListTenantEventsByDestinationStatus, ListTenantEventsByDestinationGlobals$inboundSchema, ListTenantEventsByDestinationGlobals$outboundSchema, ListTenantEventsByDestinationGlobals$, ListTenantEventsByDestinationStatus$inboundSchema, ListTenantEventsByDestinationStatus$outboundSchema, ListTenantEventsByDestinationStatus$, ListTenantEventsByDestinationRequest$inboundSchema, ListTenantEventsByDestinationRequest$outboundSchema, ListTenantEventsByDestinationRequest$;
38599
+ 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$;
38055
38600
  var init_listtenanteventsbydestination = __esm(() => {
38056
38601
  init_lib();
38057
38602
  init_primitives();
38603
+ init_components();
38058
38604
  ListTenantEventsByDestinationStatus = {
38059
38605
  Success: "success",
38060
38606
  Failed: "failed"
@@ -38086,7 +38632,12 @@ var init_listtenanteventsbydestination = __esm(() => {
38086
38632
  ListTenantEventsByDestinationRequest$inboundSchema = objectType({
38087
38633
  tenant_id: stringType().optional(),
38088
38634
  destination_id: stringType(),
38089
- status: ListTenantEventsByDestinationStatus$inboundSchema.optional()
38635
+ status: ListTenantEventsByDestinationStatus$inboundSchema.optional(),
38636
+ next: stringType().optional(),
38637
+ prev: stringType().optional(),
38638
+ limit: numberType().int().default(100),
38639
+ start: stringType().datetime({ offset: true }).transform((v2) => new Date(v2)).optional(),
38640
+ end: stringType().datetime({ offset: true }).transform((v2) => new Date(v2)).optional()
38090
38641
  }).transform((v2) => {
38091
38642
  return remap(v2, {
38092
38643
  tenant_id: "tenantId",
@@ -38096,7 +38647,12 @@ var init_listtenanteventsbydestination = __esm(() => {
38096
38647
  ListTenantEventsByDestinationRequest$outboundSchema = objectType({
38097
38648
  tenantId: stringType().optional(),
38098
38649
  destinationId: stringType(),
38099
- status: ListTenantEventsByDestinationStatus$outboundSchema.optional()
38650
+ status: ListTenantEventsByDestinationStatus$outboundSchema.optional(),
38651
+ next: stringType().optional(),
38652
+ prev: stringType().optional(),
38653
+ limit: numberType().int().default(100),
38654
+ start: dateType().transform((v2) => v2.toISOString()).optional(),
38655
+ end: dateType().transform((v2) => v2.toISOString()).optional()
38100
38656
  }).transform((v2) => {
38101
38657
  return remap(v2, {
38102
38658
  tenantId: "tenant_id",
@@ -38107,6 +38663,50 @@ var init_listtenanteventsbydestination = __esm(() => {
38107
38663
  ListTenantEventsByDestinationRequest$.inboundSchema = ListTenantEventsByDestinationRequest$inboundSchema;
38108
38664
  ListTenantEventsByDestinationRequest$.outboundSchema = ListTenantEventsByDestinationRequest$outboundSchema;
38109
38665
  })(ListTenantEventsByDestinationRequest$ ||= {});
38666
+ ListTenantEventsByDestinationResponseBody$inboundSchema = objectType({
38667
+ count: numberType().int(),
38668
+ data: arrayType(Event$inboundSchema),
38669
+ next: stringType(),
38670
+ prev: stringType()
38671
+ }).transform((v2) => {
38672
+ return remap(v2, {
38673
+ next: "nextCursor",
38674
+ prev: "prevCursor"
38675
+ });
38676
+ });
38677
+ ListTenantEventsByDestinationResponseBody$outboundSchema = objectType({
38678
+ count: numberType().int(),
38679
+ data: arrayType(Event$outboundSchema),
38680
+ nextCursor: stringType(),
38681
+ prevCursor: stringType()
38682
+ }).transform((v2) => {
38683
+ return remap(v2, {
38684
+ nextCursor: "next",
38685
+ prevCursor: "prev"
38686
+ });
38687
+ });
38688
+ ((ListTenantEventsByDestinationResponseBody$) => {
38689
+ ListTenantEventsByDestinationResponseBody$.inboundSchema = ListTenantEventsByDestinationResponseBody$inboundSchema;
38690
+ ListTenantEventsByDestinationResponseBody$.outboundSchema = ListTenantEventsByDestinationResponseBody$outboundSchema;
38691
+ })(ListTenantEventsByDestinationResponseBody$ ||= {});
38692
+ ListTenantEventsByDestinationResponse$inboundSchema = objectType({
38693
+ Result: lazyType(() => ListTenantEventsByDestinationResponseBody$inboundSchema)
38694
+ }).transform((v2) => {
38695
+ return remap(v2, {
38696
+ Result: "result"
38697
+ });
38698
+ });
38699
+ ListTenantEventsByDestinationResponse$outboundSchema = objectType({
38700
+ result: lazyType(() => ListTenantEventsByDestinationResponseBody$outboundSchema)
38701
+ }).transform((v2) => {
38702
+ return remap(v2, {
38703
+ result: "Result"
38704
+ });
38705
+ });
38706
+ ((ListTenantEventsByDestinationResponse$) => {
38707
+ ListTenantEventsByDestinationResponse$.inboundSchema = ListTenantEventsByDestinationResponse$inboundSchema;
38708
+ ListTenantEventsByDestinationResponse$.outboundSchema = ListTenantEventsByDestinationResponse$outboundSchema;
38709
+ })(ListTenantEventsByDestinationResponse$ ||= {});
38110
38710
  });
38111
38711
 
38112
38712
  // src/models/operations/listtenanttopics.ts
@@ -38378,6 +38978,7 @@ async function $do(client, request, options) {
38378
38978
  const securityInput = await extractSecurity(client._options.security);
38379
38979
  const requestSecurity = resolveGlobalSecurity(securityInput);
38380
38980
  const context = {
38981
+ options: client._options,
38381
38982
  baseURL: options?.serverURL ?? client._baseURL ?? "",
38382
38983
  operationID: "createTenantDestination",
38383
38984
  oAuth2Scopes: [],
@@ -38393,6 +38994,7 @@ async function $do(client, request, options) {
38393
38994
  path,
38394
38995
  headers,
38395
38996
  body,
38997
+ userAgent: client._options.userAgent,
38396
38998
  timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
38397
38999
  }, options);
38398
39000
  if (!requestRes.ok) {
@@ -38438,7 +39040,7 @@ async function $do(client, request, options) {
38438
39040
  const responseFields = {
38439
39041
  HttpMeta: { Response: response, Request: req }
38440
39042
  };
38441
- const [result] = await match(json(201, Destination$inboundSchema), jsonErr([401, 403, 407], UnauthorizedError$inboundSchema), jsonErr(408, TimeoutError$inboundSchema), jsonErr(429, RateLimitedError$inboundSchema), jsonErr([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([400, 404, "4XX"]), fail("5XX"))(response, { extraFields: responseFields });
39043
+ const [result] = await match(json(201, Destination$inboundSchema), jsonErr([401, 403, 407], UnauthorizedError$inboundSchema), jsonErr(408, TimeoutError$inboundSchema), jsonErr(429, RateLimitedError$inboundSchema), jsonErr([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([400, 404, "4XX"]), fail("5XX"))(response, req, { extraFields: responseFields });
38442
39044
  if (!result.ok) {
38443
39045
  return [result, { status: "complete", request: req, response }];
38444
39046
  }
@@ -38511,6 +39113,7 @@ async function $do2(client, request, options) {
38511
39113
  const securityInput = await extractSecurity(client._options.security);
38512
39114
  const requestSecurity = resolveGlobalSecurity(securityInput);
38513
39115
  const context = {
39116
+ options: client._options,
38514
39117
  baseURL: options?.serverURL ?? client._baseURL ?? "",
38515
39118
  operationID: "deleteTenantDestination",
38516
39119
  oAuth2Scopes: [],
@@ -38526,6 +39129,7 @@ async function $do2(client, request, options) {
38526
39129
  path,
38527
39130
  headers,
38528
39131
  body,
39132
+ userAgent: client._options.userAgent,
38529
39133
  timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
38530
39134
  }, options);
38531
39135
  if (!requestRes.ok) {
@@ -38571,7 +39175,7 @@ async function $do2(client, request, options) {
38571
39175
  const responseFields = {
38572
39176
  HttpMeta: { Response: response, Request: req }
38573
39177
  };
38574
- const [result] = await match(json(200, SuccessResponse$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, { extraFields: responseFields });
39178
+ const [result] = await match(json(200, SuccessResponse$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 });
38575
39179
  if (!result.ok) {
38576
39180
  return [result, { status: "complete", request: req, response }];
38577
39181
  }
@@ -38644,6 +39248,7 @@ async function $do3(client, request, options) {
38644
39248
  const securityInput = await extractSecurity(client._options.security);
38645
39249
  const requestSecurity = resolveGlobalSecurity(securityInput);
38646
39250
  const context = {
39251
+ options: client._options,
38647
39252
  baseURL: options?.serverURL ?? client._baseURL ?? "",
38648
39253
  operationID: "disableTenantDestination",
38649
39254
  oAuth2Scopes: [],
@@ -38659,6 +39264,7 @@ async function $do3(client, request, options) {
38659
39264
  path,
38660
39265
  headers,
38661
39266
  body,
39267
+ userAgent: client._options.userAgent,
38662
39268
  timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
38663
39269
  }, options);
38664
39270
  if (!requestRes.ok) {
@@ -38704,7 +39310,7 @@ async function $do3(client, request, options) {
38704
39310
  const responseFields = {
38705
39311
  HttpMeta: { Response: response, Request: req }
38706
39312
  };
38707
- const [result] = await match(json(200, Destination$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, { extraFields: responseFields });
39313
+ const [result] = await match(json(200, Destination$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 });
38708
39314
  if (!result.ok) {
38709
39315
  return [result, { status: "complete", request: req, response }];
38710
39316
  }
@@ -38777,6 +39383,7 @@ async function $do4(client, request, options) {
38777
39383
  const securityInput = await extractSecurity(client._options.security);
38778
39384
  const requestSecurity = resolveGlobalSecurity(securityInput);
38779
39385
  const context = {
39386
+ options: client._options,
38780
39387
  baseURL: options?.serverURL ?? client._baseURL ?? "",
38781
39388
  operationID: "enableTenantDestination",
38782
39389
  oAuth2Scopes: [],
@@ -38792,6 +39399,7 @@ async function $do4(client, request, options) {
38792
39399
  path,
38793
39400
  headers,
38794
39401
  body,
39402
+ userAgent: client._options.userAgent,
38795
39403
  timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
38796
39404
  }, options);
38797
39405
  if (!requestRes.ok) {
@@ -38837,7 +39445,7 @@ async function $do4(client, request, options) {
38837
39445
  const responseFields = {
38838
39446
  HttpMeta: { Response: response, Request: req }
38839
39447
  };
38840
- const [result] = await match(json(200, Destination$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, { extraFields: responseFields });
39448
+ const [result] = await match(json(200, Destination$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 });
38841
39449
  if (!result.ok) {
38842
39450
  return [result, { status: "complete", request: req, response }];
38843
39451
  }
@@ -38910,6 +39518,7 @@ async function $do5(client, request, options) {
38910
39518
  const securityInput = await extractSecurity(client._options.security);
38911
39519
  const requestSecurity = resolveGlobalSecurity(securityInput);
38912
39520
  const context = {
39521
+ options: client._options,
38913
39522
  baseURL: options?.serverURL ?? client._baseURL ?? "",
38914
39523
  operationID: "getTenantDestination",
38915
39524
  oAuth2Scopes: [],
@@ -38925,6 +39534,7 @@ async function $do5(client, request, options) {
38925
39534
  path,
38926
39535
  headers,
38927
39536
  body,
39537
+ userAgent: client._options.userAgent,
38928
39538
  timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
38929
39539
  }, options);
38930
39540
  if (!requestRes.ok) {
@@ -38970,7 +39580,7 @@ async function $do5(client, request, options) {
38970
39580
  const responseFields = {
38971
39581
  HttpMeta: { Response: response, Request: req }
38972
39582
  };
38973
- const [result] = await match(json(200, Destination$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, { extraFields: responseFields });
39583
+ const [result] = await match(json(200, Destination$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 });
38974
39584
  if (!result.ok) {
38975
39585
  return [result, { status: "complete", request: req, response }];
38976
39586
  }
@@ -39043,6 +39653,7 @@ async function $do6(client, request, options) {
39043
39653
  const securityInput = await extractSecurity(client._options.security);
39044
39654
  const requestSecurity = resolveGlobalSecurity(securityInput);
39045
39655
  const context = {
39656
+ options: client._options,
39046
39657
  baseURL: options?.serverURL ?? client._baseURL ?? "",
39047
39658
  operationID: "listTenantDestinations",
39048
39659
  oAuth2Scopes: [],
@@ -39059,6 +39670,7 @@ async function $do6(client, request, options) {
39059
39670
  headers,
39060
39671
  query,
39061
39672
  body,
39673
+ userAgent: client._options.userAgent,
39062
39674
  timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
39063
39675
  }, options);
39064
39676
  if (!requestRes.ok) {
@@ -39104,7 +39716,7 @@ async function $do6(client, request, options) {
39104
39716
  const responseFields = {
39105
39717
  HttpMeta: { Response: response, Request: req }
39106
39718
  };
39107
- const [result] = await match(json(200, arrayType(Destination$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, { extraFields: responseFields });
39719
+ const [result] = await match(json(200, arrayType(Destination$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 });
39108
39720
  if (!result.ok) {
39109
39721
  return [result, { status: "complete", request: req, response }];
39110
39722
  }
@@ -39179,6 +39791,7 @@ async function $do7(client, request, options) {
39179
39791
  const securityInput = await extractSecurity(client._options.security);
39180
39792
  const requestSecurity = resolveGlobalSecurity(securityInput);
39181
39793
  const context = {
39794
+ options: client._options,
39182
39795
  baseURL: options?.serverURL ?? client._baseURL ?? "",
39183
39796
  operationID: "updateTenantDestination",
39184
39797
  oAuth2Scopes: [],
@@ -39194,6 +39807,7 @@ async function $do7(client, request, options) {
39194
39807
  path,
39195
39808
  headers,
39196
39809
  body,
39810
+ userAgent: client._options.userAgent,
39197
39811
  timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
39198
39812
  }, options);
39199
39813
  if (!requestRes.ok) {
@@ -39239,7 +39853,7 @@ async function $do7(client, request, options) {
39239
39853
  const responseFields = {
39240
39854
  HttpMeta: { Response: response, Request: req }
39241
39855
  };
39242
- const [result] = await match(json(200, UpdateTenantDestinationResponse$inboundSchema), jsonErr([401, 403, 407], UnauthorizedError$inboundSchema), jsonErr(408, TimeoutError$inboundSchema), jsonErr(429, RateLimitedError$inboundSchema), jsonErr([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([400, 404, "4XX"]), fail("5XX"))(response, { extraFields: responseFields });
39856
+ const [result] = await match(json(200, UpdateTenantDestinationResponse$inboundSchema), jsonErr([401, 403, 407], UnauthorizedError$inboundSchema), jsonErr(408, TimeoutError$inboundSchema), jsonErr(429, RateLimitedError$inboundSchema), jsonErr([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([400, 404, "4XX"]), fail("5XX"))(response, req, { extraFields: responseFields });
39243
39857
  if (!result.ok) {
39244
39858
  return [result, { status: "complete", request: req, response }];
39245
39859
  }
@@ -39311,6 +39925,7 @@ async function $do8(client, request, options) {
39311
39925
  const securityInput = await extractSecurity(client._options.security);
39312
39926
  const requestSecurity = resolveGlobalSecurity(securityInput);
39313
39927
  const context = {
39928
+ options: client._options,
39314
39929
  baseURL: options?.serverURL ?? client._baseURL ?? "",
39315
39930
  operationID: "getTenantEvent",
39316
39931
  oAuth2Scopes: [],
@@ -39326,6 +39941,7 @@ async function $do8(client, request, options) {
39326
39941
  path,
39327
39942
  headers,
39328
39943
  body,
39944
+ userAgent: client._options.userAgent,
39329
39945
  timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
39330
39946
  }, options);
39331
39947
  if (!requestRes.ok) {
@@ -39371,7 +39987,7 @@ async function $do8(client, request, options) {
39371
39987
  const responseFields = {
39372
39988
  HttpMeta: { Response: response, Request: req }
39373
39989
  };
39374
- const [result] = await match(json(200, 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, { extraFields: responseFields });
39990
+ const [result] = await match(json(200, 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 });
39375
39991
  if (!result.ok) {
39376
39992
  return [result, { status: "complete", request: req, response }];
39377
39993
  }
@@ -39448,6 +40064,7 @@ async function $do9(client, request, options) {
39448
40064
  const securityInput = await extractSecurity(client._options.security);
39449
40065
  const requestSecurity = resolveGlobalSecurity(securityInput);
39450
40066
  const context = {
40067
+ options: client._options,
39451
40068
  baseURL: options?.serverURL ?? client._baseURL ?? "",
39452
40069
  operationID: "getTenantEventByDestination",
39453
40070
  oAuth2Scopes: [],
@@ -39463,6 +40080,7 @@ async function $do9(client, request, options) {
39463
40080
  path,
39464
40081
  headers,
39465
40082
  body,
40083
+ userAgent: client._options.userAgent,
39466
40084
  timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
39467
40085
  }, options);
39468
40086
  if (!requestRes.ok) {
@@ -39508,7 +40126,7 @@ async function $do9(client, request, options) {
39508
40126
  const responseFields = {
39509
40127
  HttpMeta: { Response: response, Request: req }
39510
40128
  };
39511
- const [result] = await match(json(200, 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, { extraFields: responseFields });
40129
+ const [result] = await match(json(200, 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 });
39512
40130
  if (!result.ok) {
39513
40131
  return [result, { status: "complete", request: req, response }];
39514
40132
  }
@@ -39556,6 +40174,48 @@ Retrieves a specific event associated with a specific destination for the tenant
39556
40174
  };
39557
40175
  });
39558
40176
 
40177
+ // src/lib/dlv.ts
40178
+ function dlv(obj, key, def, p, undef) {
40179
+ key = Array.isArray(key) ? key : key.split(".");
40180
+ for (p = 0;p < key.length; p++) {
40181
+ const k2 = key[p];
40182
+ obj = k2 != null && obj ? obj[k2] : undef;
40183
+ }
40184
+ return obj === undef ? def : obj;
40185
+ }
40186
+
40187
+ // src/types/operations.ts
40188
+ function createPageIterator(page, halt) {
40189
+ return {
40190
+ [Symbol.asyncIterator]: async function* paginator() {
40191
+ yield page;
40192
+ if (halt(page)) {
40193
+ return;
40194
+ }
40195
+ let p = page;
40196
+ for (p = await p.next();p != null; p = await p.next()) {
40197
+ yield p;
40198
+ if (halt(p)) {
40199
+ return;
40200
+ }
40201
+ }
40202
+ }
40203
+ };
40204
+ }
40205
+ function haltIterator(v2) {
40206
+ return {
40207
+ ...v2,
40208
+ next: () => null,
40209
+ [Symbol.asyncIterator]: async function* paginator() {
40210
+ yield v2;
40211
+ }
40212
+ };
40213
+ }
40214
+ var URL_OVERRIDE;
40215
+ var init_operations2 = __esm(() => {
40216
+ URL_OVERRIDE = Symbol("URL_OVERRIDE");
40217
+ });
40218
+
39559
40219
  // src/funcs/eventsList.ts
39560
40220
  function eventsList(client, request, options) {
39561
40221
  return new APIPromise($do10(client, request, options));
@@ -39563,7 +40223,7 @@ function eventsList(client, request, options) {
39563
40223
  async function $do10(client, request, options) {
39564
40224
  const parsed = safeParse(request, (value) => ListTenantEventsRequest$outboundSchema.parse(value), "Input validation failed");
39565
40225
  if (!parsed.ok) {
39566
- return [parsed, { status: "invalid" }];
40226
+ return [haltIterator(parsed), { status: "invalid" }];
39567
40227
  }
39568
40228
  const payload = parsed.value;
39569
40229
  const body = null;
@@ -39573,6 +40233,11 @@ async function $do10(client, request, options) {
39573
40233
  const path = pathToFunc("/{tenant_id}/events")(pathParams);
39574
40234
  const query = encodeFormQuery({
39575
40235
  destination_id: payload.destination_id,
40236
+ end: payload.end,
40237
+ limit: payload.limit,
40238
+ next: payload.next,
40239
+ prev: payload.prev,
40240
+ start: payload.start,
39576
40241
  status: payload.status
39577
40242
  });
39578
40243
  const headers = new Headers(compactMap({
@@ -39581,6 +40246,7 @@ async function $do10(client, request, options) {
39581
40246
  const securityInput = await extractSecurity(client._options.security);
39582
40247
  const requestSecurity = resolveGlobalSecurity(securityInput);
39583
40248
  const context = {
40249
+ options: client._options,
39584
40250
  baseURL: options?.serverURL ?? client._baseURL ?? "",
39585
40251
  operationID: "listTenantEvents",
39586
40252
  oAuth2Scopes: [],
@@ -39597,10 +40263,11 @@ async function $do10(client, request, options) {
39597
40263
  headers,
39598
40264
  query,
39599
40265
  body,
40266
+ userAgent: client._options.userAgent,
39600
40267
  timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
39601
40268
  }, options);
39602
40269
  if (!requestRes.ok) {
39603
- return [requestRes, { status: "invalid" }];
40270
+ return [haltIterator(requestRes), { status: "invalid" }];
39604
40271
  }
39605
40272
  const req = requestRes.value;
39606
40273
  const doResult = await client._do(req, {
@@ -39636,30 +40303,62 @@ async function $do10(client, request, options) {
39636
40303
  retryCodes: context.retryCodes
39637
40304
  });
39638
40305
  if (!doResult.ok) {
39639
- return [doResult, { status: "request-error", request: req }];
40306
+ return [haltIterator(doResult), { status: "request-error", request: req }];
39640
40307
  }
39641
40308
  const response = doResult.value;
39642
40309
  const responseFields = {
39643
40310
  HttpMeta: { Response: response, Request: req }
39644
40311
  };
39645
- 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, { extraFields: responseFields });
40312
+ const [result, raw] = await match(json(200, ListTenantEventsResponse$inboundSchema, {
40313
+ key: "Result"
40314
+ }), 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 });
39646
40315
  if (!result.ok) {
39647
- return [result, { status: "complete", request: req, response }];
39648
- }
39649
- return [result, { status: "complete", request: req, response }];
40316
+ return [haltIterator(result), {
40317
+ status: "complete",
40318
+ request: req,
40319
+ response
40320
+ }];
40321
+ }
40322
+ const nextFunc = (responseData) => {
40323
+ const nextCursor = dlv(responseData, "next");
40324
+ if (typeof nextCursor !== "string") {
40325
+ return { next: () => null };
40326
+ }
40327
+ if (nextCursor.trim() === "") {
40328
+ return { next: () => null };
40329
+ }
40330
+ const results = dlv(responseData, "data");
40331
+ if (!Array.isArray(results) || !results.length) {
40332
+ return { next: () => null };
40333
+ }
40334
+ const limit = request?.limit ?? 100;
40335
+ if (results.length < limit) {
40336
+ return { next: () => null };
40337
+ }
40338
+ const nextVal = () => eventsList(client, {
40339
+ ...request,
40340
+ next: nextCursor
40341
+ }, options);
40342
+ return { next: nextVal, "~next": { cursor: nextCursor } };
40343
+ };
40344
+ const page = { ...result, ...nextFunc(raw) };
40345
+ return [{ ...page, ...createPageIterator(page, (v2) => !v2.ok) }, {
40346
+ status: "complete",
40347
+ request: req,
40348
+ response
40349
+ }];
39650
40350
  }
39651
40351
  var init_eventsList = __esm(() => {
39652
- init_lib();
39653
40352
  init_encodings();
39654
40353
  init_matchers();
39655
40354
  init_primitives();
39656
40355
  init_schemas();
39657
40356
  init_security();
39658
40357
  init_url();
39659
- init_components();
39660
40358
  init_errors();
39661
40359
  init_operations();
39662
40360
  init_async();
40361
+ init_operations2();
39663
40362
  });
39664
40363
 
39665
40364
  // src/mcp-server/tools/eventsList.ts
@@ -39685,7 +40384,7 @@ Retrieves a list of events for the tenant, supporting cursor navigation (details
39685
40384
  isError: true
39686
40385
  };
39687
40386
  }
39688
- const value = result.value;
40387
+ const value = result.value.result;
39689
40388
  return formatResult(value, apiCall);
39690
40389
  }
39691
40390
  };
@@ -39698,7 +40397,7 @@ function eventsListByDestination(client, request, options) {
39698
40397
  async function $do11(client, request, options) {
39699
40398
  const parsed = safeParse(request, (value) => ListTenantEventsByDestinationRequest$outboundSchema.parse(value), "Input validation failed");
39700
40399
  if (!parsed.ok) {
39701
- return [parsed, { status: "invalid" }];
40400
+ return [haltIterator(parsed), { status: "invalid" }];
39702
40401
  }
39703
40402
  const payload = parsed.value;
39704
40403
  const body = null;
@@ -39711,6 +40410,11 @@ async function $do11(client, request, options) {
39711
40410
  };
39712
40411
  const path = pathToFunc("/{tenant_id}/destinations/{destination_id}/events")(pathParams);
39713
40412
  const query = encodeFormQuery({
40413
+ end: payload.end,
40414
+ limit: payload.limit,
40415
+ next: payload.next,
40416
+ prev: payload.prev,
40417
+ start: payload.start,
39714
40418
  status: payload.status
39715
40419
  });
39716
40420
  const headers = new Headers(compactMap({
@@ -39719,6 +40423,7 @@ async function $do11(client, request, options) {
39719
40423
  const securityInput = await extractSecurity(client._options.security);
39720
40424
  const requestSecurity = resolveGlobalSecurity(securityInput);
39721
40425
  const context = {
40426
+ options: client._options,
39722
40427
  baseURL: options?.serverURL ?? client._baseURL ?? "",
39723
40428
  operationID: "listTenantEventsByDestination",
39724
40429
  oAuth2Scopes: [],
@@ -39735,10 +40440,11 @@ async function $do11(client, request, options) {
39735
40440
  headers,
39736
40441
  query,
39737
40442
  body,
40443
+ userAgent: client._options.userAgent,
39738
40444
  timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
39739
40445
  }, options);
39740
40446
  if (!requestRes.ok) {
39741
- return [requestRes, { status: "invalid" }];
40447
+ return [haltIterator(requestRes), { status: "invalid" }];
39742
40448
  }
39743
40449
  const req = requestRes.value;
39744
40450
  const doResult = await client._do(req, {
@@ -39774,30 +40480,60 @@ async function $do11(client, request, options) {
39774
40480
  retryCodes: context.retryCodes
39775
40481
  });
39776
40482
  if (!doResult.ok) {
39777
- return [doResult, { status: "request-error", request: req }];
40483
+ return [haltIterator(doResult), { status: "request-error", request: req }];
39778
40484
  }
39779
40485
  const response = doResult.value;
39780
40486
  const responseFields = {
39781
40487
  HttpMeta: { Response: response, Request: req }
39782
40488
  };
39783
- 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, { extraFields: responseFields });
40489
+ 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 });
39784
40490
  if (!result.ok) {
39785
- return [result, { status: "complete", request: req, response }];
39786
- }
39787
- return [result, { status: "complete", request: req, response }];
40491
+ return [haltIterator(result), {
40492
+ status: "complete",
40493
+ request: req,
40494
+ response
40495
+ }];
40496
+ }
40497
+ const nextFunc = (responseData) => {
40498
+ const nextCursor = dlv(responseData, "next");
40499
+ if (typeof nextCursor !== "string") {
40500
+ return { next: () => null };
40501
+ }
40502
+ if (nextCursor.trim() === "") {
40503
+ return { next: () => null };
40504
+ }
40505
+ const results = dlv(responseData, "data");
40506
+ if (!Array.isArray(results) || !results.length) {
40507
+ return { next: () => null };
40508
+ }
40509
+ const limit = request?.limit ?? 100;
40510
+ if (results.length < limit) {
40511
+ return { next: () => null };
40512
+ }
40513
+ const nextVal = () => eventsListByDestination(client, {
40514
+ ...request,
40515
+ next: nextCursor
40516
+ }, options);
40517
+ return { next: nextVal, "~next": { cursor: nextCursor } };
40518
+ };
40519
+ const page = { ...result, ...nextFunc(raw) };
40520
+ return [{ ...page, ...createPageIterator(page, (v2) => !v2.ok) }, {
40521
+ status: "complete",
40522
+ request: req,
40523
+ response
40524
+ }];
39788
40525
  }
39789
40526
  var init_eventsListByDestination = __esm(() => {
39790
- init_lib();
39791
40527
  init_encodings();
39792
40528
  init_matchers();
39793
40529
  init_primitives();
39794
40530
  init_schemas();
39795
40531
  init_security();
39796
40532
  init_url();
39797
- init_components();
39798
40533
  init_errors();
39799
40534
  init_operations();
39800
40535
  init_async();
40536
+ init_operations2();
39801
40537
  });
39802
40538
 
39803
40539
  // src/mcp-server/tools/eventsListByDestination.ts
@@ -39823,7 +40559,7 @@ Retrieves events associated with a specific destination for the tenant.`,
39823
40559
  isError: true
39824
40560
  };
39825
40561
  }
39826
- const value = result.value;
40562
+ const value = result.value.result;
39827
40563
  return formatResult(value, apiCall);
39828
40564
  }
39829
40565
  };
@@ -39854,6 +40590,7 @@ async function $do12(client, request, options) {
39854
40590
  const securityInput = await extractSecurity(client._options.security);
39855
40591
  const requestSecurity = resolveGlobalSecurity(securityInput);
39856
40592
  const context = {
40593
+ options: client._options,
39857
40594
  baseURL: options?.serverURL ?? client._baseURL ?? "",
39858
40595
  operationID: "listTenantEventDeliveries",
39859
40596
  oAuth2Scopes: [],
@@ -39869,6 +40606,7 @@ async function $do12(client, request, options) {
39869
40606
  path,
39870
40607
  headers,
39871
40608
  body,
40609
+ userAgent: client._options.userAgent,
39872
40610
  timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
39873
40611
  }, options);
39874
40612
  if (!requestRes.ok) {
@@ -39914,7 +40652,7 @@ async function $do12(client, request, options) {
39914
40652
  const responseFields = {
39915
40653
  HttpMeta: { Response: response, Request: req }
39916
40654
  };
39917
- const [result] = await match(json(200, arrayType(DeliveryAttempt$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, { extraFields: responseFields });
40655
+ const [result] = await match(json(200, arrayType(DeliveryAttempt$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 });
39918
40656
  if (!result.ok) {
39919
40657
  return [result, { status: "complete", request: req, response }];
39920
40658
  }
@@ -39992,6 +40730,7 @@ async function $do13(client, request, options) {
39992
40730
  const securityInput = await extractSecurity(client._options.security);
39993
40731
  const requestSecurity = resolveGlobalSecurity(securityInput);
39994
40732
  const context = {
40733
+ options: client._options,
39995
40734
  baseURL: options?.serverURL ?? client._baseURL ?? "",
39996
40735
  operationID: "retryTenantEvent",
39997
40736
  oAuth2Scopes: [],
@@ -40007,6 +40746,7 @@ async function $do13(client, request, options) {
40007
40746
  path,
40008
40747
  headers,
40009
40748
  body,
40749
+ userAgent: client._options.userAgent,
40010
40750
  timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
40011
40751
  }, options);
40012
40752
  if (!requestRes.ok) {
@@ -40053,7 +40793,7 @@ async function $do13(client, request, options) {
40053
40793
  const responseFields = {
40054
40794
  HttpMeta: { Response: response, Request: req }
40055
40795
  };
40056
- const [result] = await match(nil(202, voidType()), 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, 409, "4XX"]), fail("5XX"))(response, { extraFields: responseFields });
40796
+ const [result] = await match(nil(202, voidType()), 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, 409, "4XX"]), fail("5XX"))(response, req, { extraFields: responseFields });
40057
40797
  if (!result.ok) {
40058
40798
  return [result, { status: "complete", request: req, response }];
40059
40799
  }
@@ -40110,6 +40850,7 @@ async function $do14(client, options) {
40110
40850
  Accept: "text/plain"
40111
40851
  }));
40112
40852
  const context = {
40853
+ options: client._options,
40113
40854
  baseURL: options?.serverURL ?? client._baseURL ?? "",
40114
40855
  operationID: "healthCheck",
40115
40856
  oAuth2Scopes: [],
@@ -40123,6 +40864,7 @@ async function $do14(client, options) {
40123
40864
  baseURL: options?.serverURL,
40124
40865
  path,
40125
40866
  headers,
40867
+ userAgent: client._options.userAgent,
40126
40868
  timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
40127
40869
  }, options);
40128
40870
  if (!requestRes.ok) {
@@ -40168,7 +40910,7 @@ async function $do14(client, options) {
40168
40910
  const responseFields = {
40169
40911
  HttpMeta: { Response: response, Request: req }
40170
40912
  };
40171
- const [result] = await match(text(200, stringType()), jsonErr(404, NotFoundError$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("4XX"), fail("5XX"))(response, { extraFields: responseFields });
40913
+ const [result] = await match(text(200, stringType()), jsonErr(404, NotFoundError$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("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
40172
40914
  if (!result.ok) {
40173
40915
  return [result, { status: "complete", request: req, response }];
40174
40916
  }
@@ -40226,6 +40968,7 @@ async function $do15(client, request, options) {
40226
40968
  const securityInput = await extractSecurity(client._options.security);
40227
40969
  const requestSecurity = resolveGlobalSecurity(securityInput);
40228
40970
  const context = {
40971
+ options: client._options,
40229
40972
  baseURL: options?.serverURL ?? client._baseURL ?? "",
40230
40973
  operationID: "publishEvent",
40231
40974
  oAuth2Scopes: [],
@@ -40241,6 +40984,7 @@ async function $do15(client, request, options) {
40241
40984
  path,
40242
40985
  headers,
40243
40986
  body,
40987
+ userAgent: client._options.userAgent,
40244
40988
  timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
40245
40989
  }, options);
40246
40990
  if (!requestRes.ok) {
@@ -40287,14 +41031,13 @@ async function $do15(client, request, options) {
40287
41031
  const responseFields = {
40288
41032
  HttpMeta: { Response: response, Request: req }
40289
41033
  };
40290
- const [result] = await match(nil(202, voidType()), jsonErr(404, NotFoundError$inboundSchema), jsonErr([403, 407], UnauthorizedError$inboundSchema), jsonErr(408, TimeoutError$inboundSchema), jsonErr(429, RateLimitedError$inboundSchema), jsonErr([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([400, 401, 409, "4XX"]), fail("5XX"))(response, { extraFields: responseFields });
41034
+ const [result] = await match(json(202, PublishResponse$inboundSchema), jsonErr(404, NotFoundError$inboundSchema), jsonErr([403, 407], UnauthorizedError$inboundSchema), jsonErr(408, TimeoutError$inboundSchema), jsonErr(429, RateLimitedError$inboundSchema), jsonErr([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([400, 401, 409, "4XX"]), fail("5XX"))(response, req, { extraFields: responseFields });
40291
41035
  if (!result.ok) {
40292
41036
  return [result, { status: "complete", request: req, response }];
40293
41037
  }
40294
41038
  return [result, { status: "complete", request: req, response }];
40295
41039
  }
40296
41040
  var init_publishEvent = __esm(() => {
40297
- init_lib();
40298
41041
  init_encodings();
40299
41042
  init_matchers();
40300
41043
  init_primitives();
@@ -40329,7 +41072,8 @@ Publishes an event to the specified topic, potentially routed to a specific dest
40329
41072
  isError: true
40330
41073
  };
40331
41074
  }
40332
- return formatResult(undefined, apiCall);
41075
+ const value = result.value;
41076
+ return formatResult(value, apiCall);
40333
41077
  }
40334
41078
  };
40335
41079
  });
@@ -40359,6 +41103,7 @@ async function $do16(client, request, options) {
40359
41103
  const securityInput = await extractSecurity(client._options.security);
40360
41104
  const requestSecurity = resolveGlobalSecurity(securityInput);
40361
41105
  const context = {
41106
+ options: client._options,
40362
41107
  baseURL: options?.serverURL ?? client._baseURL ?? "",
40363
41108
  operationID: "getTenantDestinationTypeSchema",
40364
41109
  oAuth2Scopes: [],
@@ -40374,6 +41119,7 @@ async function $do16(client, request, options) {
40374
41119
  path,
40375
41120
  headers,
40376
41121
  body,
41122
+ userAgent: client._options.userAgent,
40377
41123
  timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
40378
41124
  }, options);
40379
41125
  if (!requestRes.ok) {
@@ -40419,7 +41165,7 @@ async function $do16(client, request, options) {
40419
41165
  const responseFields = {
40420
41166
  HttpMeta: { Response: response, Request: req }
40421
41167
  };
40422
- const [result] = await match(json(200, DestinationTypeSchema$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, { extraFields: responseFields });
41168
+ const [result] = await match(json(200, DestinationTypeSchema$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 });
40423
41169
  if (!result.ok) {
40424
41170
  return [result, { status: "complete", request: req, response }];
40425
41171
  }
@@ -40491,6 +41237,7 @@ async function $do17(client, request, options) {
40491
41237
  const securityInput = await extractSecurity(client._options.security);
40492
41238
  const requestSecurity = resolveGlobalSecurity(securityInput);
40493
41239
  const context = {
41240
+ options: client._options,
40494
41241
  baseURL: options?.serverURL ?? client._baseURL ?? "",
40495
41242
  operationID: "getDestinationTypeSchema",
40496
41243
  oAuth2Scopes: [],
@@ -40506,6 +41253,7 @@ async function $do17(client, request, options) {
40506
41253
  path,
40507
41254
  headers,
40508
41255
  body,
41256
+ userAgent: client._options.userAgent,
40509
41257
  timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
40510
41258
  }, options);
40511
41259
  if (!requestRes.ok) {
@@ -40551,7 +41299,7 @@ async function $do17(client, request, options) {
40551
41299
  const responseFields = {
40552
41300
  HttpMeta: { Response: response, Request: req }
40553
41301
  };
40554
- const [result] = await match(json(200, DestinationTypeSchema$inboundSchema), jsonErr([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([401, 404, "4XX"]), fail("5XX"))(response, { extraFields: responseFields });
41302
+ const [result] = await match(json(200, DestinationTypeSchema$inboundSchema), jsonErr([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([401, 404, "4XX"]), fail("5XX"))(response, req, { extraFields: responseFields });
40555
41303
  if (!result.ok) {
40556
41304
  return [result, { status: "complete", request: req, response }];
40557
41305
  }
@@ -40611,6 +41359,7 @@ async function $do18(client, options) {
40611
41359
  const securityInput = await extractSecurity(client._options.security);
40612
41360
  const requestSecurity = resolveGlobalSecurity(securityInput);
40613
41361
  const context = {
41362
+ options: client._options,
40614
41363
  baseURL: options?.serverURL ?? client._baseURL ?? "",
40615
41364
  operationID: "listDestinationTypeSchemasJwt",
40616
41365
  oAuth2Scopes: [],
@@ -40625,6 +41374,7 @@ async function $do18(client, options) {
40625
41374
  baseURL: options?.serverURL,
40626
41375
  path,
40627
41376
  headers,
41377
+ userAgent: client._options.userAgent,
40628
41378
  timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
40629
41379
  }, options);
40630
41380
  if (!requestRes.ok) {
@@ -40670,7 +41420,7 @@ async function $do18(client, options) {
40670
41420
  const responseFields = {
40671
41421
  HttpMeta: { Response: response, Request: req }
40672
41422
  };
40673
- const [result] = await match(json(200, arrayType(DestinationTypeSchema$inboundSchema)), jsonErr(404, NotFoundError$inboundSchema), jsonErr([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([401, "4XX"]), fail("5XX"))(response, { extraFields: responseFields });
41423
+ const [result] = await match(json(200, arrayType(DestinationTypeSchema$inboundSchema)), jsonErr(404, NotFoundError$inboundSchema), jsonErr([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([401, "4XX"]), fail("5XX"))(response, req, { extraFields: responseFields });
40674
41424
  if (!result.ok) {
40675
41425
  return [result, { status: "complete", request: req, response }];
40676
41426
  }
@@ -40732,6 +41482,7 @@ async function $do19(client, request, options) {
40732
41482
  const securityInput = await extractSecurity(client._options.security);
40733
41483
  const requestSecurity = resolveGlobalSecurity(securityInput);
40734
41484
  const context = {
41485
+ options: client._options,
40735
41486
  baseURL: options?.serverURL ?? client._baseURL ?? "",
40736
41487
  operationID: "listTenantDestinationTypeSchemas",
40737
41488
  oAuth2Scopes: [],
@@ -40747,6 +41498,7 @@ async function $do19(client, request, options) {
40747
41498
  path,
40748
41499
  headers,
40749
41500
  body,
41501
+ userAgent: client._options.userAgent,
40750
41502
  timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
40751
41503
  }, options);
40752
41504
  if (!requestRes.ok) {
@@ -40792,7 +41544,7 @@ async function $do19(client, request, options) {
40792
41544
  const responseFields = {
40793
41545
  HttpMeta: { Response: response, Request: req }
40794
41546
  };
40795
- const [result] = await match(json(200, arrayType(DestinationTypeSchema$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, { extraFields: responseFields });
41547
+ const [result] = await match(json(200, arrayType(DestinationTypeSchema$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 });
40796
41548
  if (!result.ok) {
40797
41549
  return [result, { status: "complete", request: req, response }];
40798
41550
  }
@@ -40862,6 +41614,7 @@ async function $do20(client, request, options) {
40862
41614
  const securityInput = await extractSecurity(client._options.security);
40863
41615
  const requestSecurity = resolveGlobalSecurity(securityInput);
40864
41616
  const context = {
41617
+ options: client._options,
40865
41618
  baseURL: options?.serverURL ?? client._baseURL ?? "",
40866
41619
  operationID: "deleteTenant",
40867
41620
  oAuth2Scopes: [],
@@ -40877,6 +41630,7 @@ async function $do20(client, request, options) {
40877
41630
  path,
40878
41631
  headers,
40879
41632
  body,
41633
+ userAgent: client._options.userAgent,
40880
41634
  timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
40881
41635
  }, options);
40882
41636
  if (!requestRes.ok) {
@@ -40922,7 +41676,7 @@ async function $do20(client, request, options) {
40922
41676
  const responseFields = {
40923
41677
  HttpMeta: { Response: response, Request: req }
40924
41678
  };
40925
- const [result] = await match(json(200, SuccessResponse$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, { extraFields: responseFields });
41679
+ const [result] = await match(json(200, SuccessResponse$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 });
40926
41680
  if (!result.ok) {
40927
41681
  return [result, { status: "complete", request: req, response }];
40928
41682
  }
@@ -40991,6 +41745,7 @@ async function $do21(client, request, options) {
40991
41745
  const securityInput = await extractSecurity(client._options.security);
40992
41746
  const requestSecurity = resolveGlobalSecurity(securityInput);
40993
41747
  const context = {
41748
+ options: client._options,
40994
41749
  baseURL: options?.serverURL ?? client._baseURL ?? "",
40995
41750
  operationID: "getTenant",
40996
41751
  oAuth2Scopes: [],
@@ -41006,6 +41761,7 @@ async function $do21(client, request, options) {
41006
41761
  path,
41007
41762
  headers,
41008
41763
  body,
41764
+ userAgent: client._options.userAgent,
41009
41765
  timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
41010
41766
  }, options);
41011
41767
  if (!requestRes.ok) {
@@ -41051,7 +41807,7 @@ async function $do21(client, request, options) {
41051
41807
  const responseFields = {
41052
41808
  HttpMeta: { Response: response, Request: req }
41053
41809
  };
41054
- const [result] = await match(json(200, Tenant$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, { extraFields: responseFields });
41810
+ const [result] = await match(json(200, Tenant$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 });
41055
41811
  if (!result.ok) {
41056
41812
  return [result, { status: "complete", request: req, response }];
41057
41813
  }
@@ -41123,6 +41879,7 @@ async function $do22(client, request, options) {
41123
41879
  const securityInput = await extractSecurity(client._options.security);
41124
41880
  const requestSecurity = resolveGlobalSecurity(securityInput);
41125
41881
  const context = {
41882
+ options: client._options,
41126
41883
  baseURL: options?.serverURL ?? client._baseURL ?? "",
41127
41884
  operationID: "getTenantPortalUrl",
41128
41885
  oAuth2Scopes: [],
@@ -41139,6 +41896,7 @@ async function $do22(client, request, options) {
41139
41896
  headers,
41140
41897
  query,
41141
41898
  body,
41899
+ userAgent: client._options.userAgent,
41142
41900
  timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
41143
41901
  }, options);
41144
41902
  if (!requestRes.ok) {
@@ -41184,7 +41942,7 @@ async function $do22(client, request, options) {
41184
41942
  const responseFields = {
41185
41943
  HttpMeta: { Response: response, Request: req }
41186
41944
  };
41187
- const [result] = await match(json(200, PortalRedirect$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, { extraFields: responseFields });
41945
+ const [result] = await match(json(200, PortalRedirect$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 });
41188
41946
  if (!result.ok) {
41189
41947
  return [result, { status: "complete", request: req, response }];
41190
41948
  }
@@ -41253,6 +42011,7 @@ async function $do23(client, request, options) {
41253
42011
  const securityInput = await extractSecurity(client._options.security);
41254
42012
  const requestSecurity = resolveGlobalSecurity(securityInput);
41255
42013
  const context = {
42014
+ options: client._options,
41256
42015
  baseURL: options?.serverURL ?? client._baseURL ?? "",
41257
42016
  operationID: "getTenantToken",
41258
42017
  oAuth2Scopes: [],
@@ -41268,6 +42027,7 @@ async function $do23(client, request, options) {
41268
42027
  path,
41269
42028
  headers,
41270
42029
  body,
42030
+ userAgent: client._options.userAgent,
41271
42031
  timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
41272
42032
  }, options);
41273
42033
  if (!requestRes.ok) {
@@ -41313,7 +42073,7 @@ async function $do23(client, request, options) {
41313
42073
  const responseFields = {
41314
42074
  HttpMeta: { Response: response, Request: req }
41315
42075
  };
41316
- const [result] = await match(json(200, TenantToken$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, { extraFields: responseFields });
42076
+ const [result] = await match(json(200, TenantToken$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 });
41317
42077
  if (!result.ok) {
41318
42078
  return [result, { status: "complete", request: req, response }];
41319
42079
  }
@@ -41382,6 +42142,7 @@ async function $do24(client, request, options) {
41382
42142
  const securityInput = await extractSecurity(client._options.security);
41383
42143
  const requestSecurity = resolveGlobalSecurity(securityInput);
41384
42144
  const context = {
42145
+ options: client._options,
41385
42146
  baseURL: options?.serverURL ?? client._baseURL ?? "",
41386
42147
  operationID: "upsertTenant",
41387
42148
  oAuth2Scopes: [],
@@ -41397,6 +42158,7 @@ async function $do24(client, request, options) {
41397
42158
  path,
41398
42159
  headers,
41399
42160
  body,
42161
+ userAgent: client._options.userAgent,
41400
42162
  timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
41401
42163
  }, options);
41402
42164
  if (!requestRes.ok) {
@@ -41442,7 +42204,7 @@ async function $do24(client, request, options) {
41442
42204
  const responseFields = {
41443
42205
  HttpMeta: { Response: response, Request: req }
41444
42206
  };
41445
- const [result] = await match(json([200, 201], Tenant$inboundSchema), jsonErr(404, NotFoundError$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("4XX"), fail("5XX"))(response, { extraFields: responseFields });
42207
+ const [result] = await match(json([200, 201], Tenant$inboundSchema), jsonErr(404, NotFoundError$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("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
41446
42208
  if (!result.ok) {
41447
42209
  return [result, { status: "complete", request: req, response }];
41448
42210
  }
@@ -41511,6 +42273,7 @@ async function $do25(client, request, options) {
41511
42273
  const securityInput = await extractSecurity(client._options.security);
41512
42274
  const requestSecurity = resolveGlobalSecurity(securityInput);
41513
42275
  const context = {
42276
+ options: client._options,
41514
42277
  baseURL: options?.serverURL ?? client._baseURL ?? "",
41515
42278
  operationID: "listTenantTopics",
41516
42279
  oAuth2Scopes: [],
@@ -41526,6 +42289,7 @@ async function $do25(client, request, options) {
41526
42289
  path,
41527
42290
  headers,
41528
42291
  body,
42292
+ userAgent: client._options.userAgent,
41529
42293
  timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
41530
42294
  }, options);
41531
42295
  if (!requestRes.ok) {
@@ -41571,7 +42335,7 @@ async function $do25(client, request, options) {
41571
42335
  const responseFields = {
41572
42336
  HttpMeta: { Response: response, Request: req }
41573
42337
  };
41574
- const [result] = await match(json(200, arrayType(stringType())), 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, { extraFields: responseFields });
42338
+ const [result] = await match(json(200, arrayType(stringType())), 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 });
41575
42339
  if (!result.ok) {
41576
42340
  return [result, { status: "complete", request: req, response }];
41577
42341
  }
@@ -41631,6 +42395,7 @@ async function $do26(client, options) {
41631
42395
  const securityInput = await extractSecurity(client._options.security);
41632
42396
  const requestSecurity = resolveGlobalSecurity(securityInput);
41633
42397
  const context = {
42398
+ options: client._options,
41634
42399
  baseURL: options?.serverURL ?? client._baseURL ?? "",
41635
42400
  operationID: "listTopics",
41636
42401
  oAuth2Scopes: [],
@@ -41645,6 +42410,7 @@ async function $do26(client, options) {
41645
42410
  baseURL: options?.serverURL,
41646
42411
  path,
41647
42412
  headers,
42413
+ userAgent: client._options.userAgent,
41648
42414
  timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
41649
42415
  }, options);
41650
42416
  if (!requestRes.ok) {
@@ -41690,7 +42456,7 @@ async function $do26(client, options) {
41690
42456
  const responseFields = {
41691
42457
  HttpMeta: { Response: response, Request: req }
41692
42458
  };
41693
- const [result] = await match(json(200, arrayType(stringType())), jsonErr(404, NotFoundError$inboundSchema), jsonErr([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([401, "4XX"]), fail("5XX"))(response, { extraFields: responseFields });
42459
+ const [result] = await match(json(200, arrayType(stringType())), jsonErr(404, NotFoundError$inboundSchema), jsonErr([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([401, "4XX"]), fail("5XX"))(response, req, { extraFields: responseFields });
41694
42460
  if (!result.ok) {
41695
42461
  return [result, { status: "complete", request: req, response }];
41696
42462
  }
@@ -41734,7 +42500,7 @@ Returns a list of available event topics configured in the Outpost instance.`,
41734
42500
  function createMCPServer(deps) {
41735
42501
  const server = new McpServer({
41736
42502
  name: "Outpost",
41737
- version: "0.2.0"
42503
+ version: "0.4.0"
41738
42504
  });
41739
42505
  const client = new OutpostCore({
41740
42506
  security: deps.security,
@@ -41836,7 +42602,6 @@ async function startStdio(flags) {
41836
42602
  const server = createMCPServer({
41837
42603
  logger,
41838
42604
  allowedTools: flags.tool,
41839
- scopes: flags.scope,
41840
42605
  security: {
41841
42606
  adminApiKey: flags["admin-api-key"] ?? "",
41842
42607
  tenantJwt: flags["tenant-jwt"] ?? ""
@@ -41859,7 +42624,6 @@ async function startSSE(flags) {
41859
42624
  const mcpServer = createMCPServer({
41860
42625
  logger,
41861
42626
  allowedTools: flags.tool,
41862
- scopes: flags.scope,
41863
42627
  security: {
41864
42628
  adminApiKey: flags["admin-api-key"] ?? "",
41865
42629
  tenantJwt: flags["tenant-jwt"] ?? ""
@@ -42897,11 +43661,6 @@ function buildContext(process2) {
42897
43661
  // src/mcp-server/cli/start/command.ts
42898
43662
  init_lib();
42899
43663
  init_console_logger();
42900
-
42901
- // src/mcp-server/scopes.ts
42902
- var mcpScopes = [];
42903
-
42904
- // src/mcp-server/cli/start/command.ts
42905
43664
  var startCommand = on({
42906
43665
  loader: async () => {
42907
43666
  const { main: main2 } = await Promise.resolve().then(() => (init_impl(), exports_impl));
@@ -42930,15 +43689,6 @@ var startCommand = on({
42930
43689
  return stringType().parse(value);
42931
43690
  }
42932
43691
  },
42933
- ...mcpScopes.length ? {
42934
- scope: {
42935
- kind: "enum",
42936
- brief: "Mount tools/resources that match given scope (repeatable flag)",
42937
- values: mcpScopes,
42938
- variadic: true,
42939
- optional: true
42940
- }
42941
- } : {},
42942
43692
  "admin-api-key": {
42943
43693
  kind: "parsed",
42944
43694
  brief: "Sets the adminApiKey auth field for the API",
@@ -43022,7 +43772,7 @@ var routes = an({
43022
43772
  var app = He(routes, {
43023
43773
  name: "mcp",
43024
43774
  versionInfo: {
43025
- currentVersion: "0.2.0"
43775
+ currentVersion: "0.4.0"
43026
43776
  }
43027
43777
  });
43028
43778
  zt(app, process3.argv.slice(2), buildContext(process3));
@@ -43030,5 +43780,5 @@ export {
43030
43780
  app
43031
43781
  };
43032
43782
 
43033
- //# debugId=EB779BEE8A1141C064756E2164756E21
43783
+ //# debugId=207AA395216F2AFD64756E2164756E21
43034
43784
  //# sourceMappingURL=mcp-server.js.map