@hookdeck/outpost-sdk 0.3.0 → 0.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (397) hide show
  1. package/README.md +38 -6
  2. package/RUNTIMES.md +6 -6
  3. package/bin/mcp-server.js +733 -78
  4. package/bin/mcp-server.js.map +61 -48
  5. package/dist/commonjs/funcs/destinationsCreate.js +1 -1
  6. package/dist/commonjs/funcs/destinationsCreate.js.map +1 -1
  7. package/dist/commonjs/funcs/destinationsDelete.js +1 -1
  8. package/dist/commonjs/funcs/destinationsDelete.js.map +1 -1
  9. package/dist/commonjs/funcs/destinationsDisable.js +1 -1
  10. package/dist/commonjs/funcs/destinationsDisable.js.map +1 -1
  11. package/dist/commonjs/funcs/destinationsEnable.js +1 -1
  12. package/dist/commonjs/funcs/destinationsEnable.js.map +1 -1
  13. package/dist/commonjs/funcs/destinationsGet.js +1 -1
  14. package/dist/commonjs/funcs/destinationsGet.js.map +1 -1
  15. package/dist/commonjs/funcs/destinationsList.js +1 -1
  16. package/dist/commonjs/funcs/destinationsList.js.map +1 -1
  17. package/dist/commonjs/funcs/destinationsUpdate.js +1 -1
  18. package/dist/commonjs/funcs/destinationsUpdate.js.map +1 -1
  19. package/dist/commonjs/funcs/eventsGet.js +1 -1
  20. package/dist/commonjs/funcs/eventsGet.js.map +1 -1
  21. package/dist/commonjs/funcs/eventsGetByDestination.js +1 -1
  22. package/dist/commonjs/funcs/eventsGetByDestination.js.map +1 -1
  23. package/dist/commonjs/funcs/eventsList.d.ts +4 -2
  24. package/dist/commonjs/funcs/eventsList.d.ts.map +1 -1
  25. package/dist/commonjs/funcs/eventsList.js +47 -9
  26. package/dist/commonjs/funcs/eventsList.js.map +1 -1
  27. package/dist/commonjs/funcs/eventsListByDestination.d.ts +4 -2
  28. package/dist/commonjs/funcs/eventsListByDestination.d.ts.map +1 -1
  29. package/dist/commonjs/funcs/eventsListByDestination.js +45 -9
  30. package/dist/commonjs/funcs/eventsListByDestination.js.map +1 -1
  31. package/dist/commonjs/funcs/eventsListDeliveries.js +1 -1
  32. package/dist/commonjs/funcs/eventsListDeliveries.js.map +1 -1
  33. package/dist/commonjs/funcs/eventsRetry.js +1 -1
  34. package/dist/commonjs/funcs/eventsRetry.js.map +1 -1
  35. package/dist/commonjs/funcs/healthCheck.js +1 -1
  36. package/dist/commonjs/funcs/healthCheck.js.map +1 -1
  37. package/dist/commonjs/funcs/publishEvent.js +1 -1
  38. package/dist/commonjs/funcs/publishEvent.js.map +1 -1
  39. package/dist/commonjs/funcs/schemasGet.js +1 -1
  40. package/dist/commonjs/funcs/schemasGet.js.map +1 -1
  41. package/dist/commonjs/funcs/schemasGetDestinationTypeJwt.js +1 -1
  42. package/dist/commonjs/funcs/schemasGetDestinationTypeJwt.js.map +1 -1
  43. package/dist/commonjs/funcs/schemasListDestinationTypesJwt.js +1 -1
  44. package/dist/commonjs/funcs/schemasListDestinationTypesJwt.js.map +1 -1
  45. package/dist/commonjs/funcs/schemasListTenantDestinationTypes.js +1 -1
  46. package/dist/commonjs/funcs/schemasListTenantDestinationTypes.js.map +1 -1
  47. package/dist/commonjs/funcs/tenantsDelete.js +1 -1
  48. package/dist/commonjs/funcs/tenantsDelete.js.map +1 -1
  49. package/dist/commonjs/funcs/tenantsGet.js +1 -1
  50. package/dist/commonjs/funcs/tenantsGet.js.map +1 -1
  51. package/dist/commonjs/funcs/tenantsGetPortalUrl.js +1 -1
  52. package/dist/commonjs/funcs/tenantsGetPortalUrl.js.map +1 -1
  53. package/dist/commonjs/funcs/tenantsGetToken.js +1 -1
  54. package/dist/commonjs/funcs/tenantsGetToken.js.map +1 -1
  55. package/dist/commonjs/funcs/tenantsUpsert.js +1 -1
  56. package/dist/commonjs/funcs/tenantsUpsert.js.map +1 -1
  57. package/dist/commonjs/funcs/topicsList.js +1 -1
  58. package/dist/commonjs/funcs/topicsList.js.map +1 -1
  59. package/dist/commonjs/funcs/topicsListJwt.js +1 -1
  60. package/dist/commonjs/funcs/topicsListJwt.js.map +1 -1
  61. package/dist/commonjs/lib/config.d.ts +3 -3
  62. package/dist/commonjs/lib/config.js +3 -3
  63. package/dist/commonjs/lib/config.js.map +1 -1
  64. package/dist/commonjs/lib/security.d.ts.map +1 -1
  65. package/dist/commonjs/lib/security.js.map +1 -1
  66. package/dist/commonjs/lib/url.js +1 -1
  67. package/dist/commonjs/lib/url.js.map +1 -1
  68. package/dist/commonjs/mcp-server/mcp-server.js +1 -1
  69. package/dist/commonjs/mcp-server/server.js +1 -1
  70. package/dist/commonjs/mcp-server/tools/eventsList.js +1 -1
  71. package/dist/commonjs/mcp-server/tools/eventsList.js.map +1 -1
  72. package/dist/commonjs/mcp-server/tools/eventsListByDestination.js +1 -1
  73. package/dist/commonjs/mcp-server/tools/eventsListByDestination.js.map +1 -1
  74. package/dist/commonjs/models/components/awss3config.d.ts +47 -0
  75. package/dist/commonjs/models/components/awss3config.d.ts.map +1 -0
  76. package/dist/commonjs/models/components/awss3config.js +86 -0
  77. package/dist/commonjs/models/components/awss3config.js.map +1 -0
  78. package/dist/commonjs/models/components/awss3credentials.d.ts +42 -0
  79. package/dist/commonjs/models/components/awss3credentials.d.ts.map +1 -0
  80. package/dist/commonjs/models/components/awss3credentials.js +73 -0
  81. package/dist/commonjs/models/components/awss3credentials.js.map +1 -0
  82. package/dist/commonjs/models/components/deliveryattempt.d.ts +8 -8
  83. package/dist/commonjs/models/components/deliveryattempt.d.ts.map +1 -1
  84. package/dist/commonjs/models/components/deliveryattempt.js +13 -14
  85. package/dist/commonjs/models/components/deliveryattempt.js.map +1 -1
  86. package/dist/commonjs/models/components/destination.d.ts +10 -0
  87. package/dist/commonjs/models/components/destination.d.ts.map +1 -1
  88. package/dist/commonjs/models/components/destination.js +14 -0
  89. package/dist/commonjs/models/components/destination.js.map +1 -1
  90. package/dist/commonjs/models/components/destinationawss3.d.ts +98 -0
  91. package/dist/commonjs/models/components/destinationawss3.d.ts.map +1 -0
  92. package/dist/commonjs/models/components/destinationawss3.js +122 -0
  93. package/dist/commonjs/models/components/destinationawss3.js.map +1 -0
  94. package/dist/commonjs/models/components/destinationcreate.d.ts +10 -0
  95. package/dist/commonjs/models/components/destinationcreate.d.ts.map +1 -1
  96. package/dist/commonjs/models/components/destinationcreate.js +14 -0
  97. package/dist/commonjs/models/components/destinationcreate.js.map +1 -1
  98. package/dist/commonjs/models/components/destinationcreateawss3.d.ts +78 -0
  99. package/dist/commonjs/models/components/destinationcreateawss3.d.ts.map +1 -0
  100. package/dist/commonjs/models/components/destinationcreateawss3.js +101 -0
  101. package/dist/commonjs/models/components/destinationcreateawss3.js.map +1 -0
  102. package/dist/commonjs/models/components/destinationcreategcppubsub.d.ts +78 -0
  103. package/dist/commonjs/models/components/destinationcreategcppubsub.d.ts.map +1 -0
  104. package/dist/commonjs/models/components/destinationcreategcppubsub.js +101 -0
  105. package/dist/commonjs/models/components/destinationcreategcppubsub.js.map +1 -0
  106. package/dist/commonjs/models/components/destinationgcppubsub.d.ts +98 -0
  107. package/dist/commonjs/models/components/destinationgcppubsub.d.ts.map +1 -0
  108. package/dist/commonjs/models/components/destinationgcppubsub.js +122 -0
  109. package/dist/commonjs/models/components/destinationgcppubsub.js.map +1 -0
  110. package/dist/commonjs/models/components/destinationupdate.d.ts +5 -2
  111. package/dist/commonjs/models/components/destinationupdate.d.ts.map +1 -1
  112. package/dist/commonjs/models/components/destinationupdate.js +9 -0
  113. package/dist/commonjs/models/components/destinationupdate.js.map +1 -1
  114. package/dist/commonjs/models/components/destinationupdateawss3.d.ts +39 -0
  115. package/dist/commonjs/models/components/destinationupdateawss3.d.ts.map +1 -0
  116. package/dist/commonjs/models/components/destinationupdateawss3.js +76 -0
  117. package/dist/commonjs/models/components/destinationupdateawss3.js.map +1 -0
  118. package/dist/commonjs/models/components/destinationupdateazureservicebus.d.ts +39 -0
  119. package/dist/commonjs/models/components/destinationupdateazureservicebus.d.ts.map +1 -0
  120. package/dist/commonjs/models/components/destinationupdateazureservicebus.js +76 -0
  121. package/dist/commonjs/models/components/destinationupdateazureservicebus.js.map +1 -0
  122. package/dist/commonjs/models/components/destinationupdategcppubsub.d.ts +39 -0
  123. package/dist/commonjs/models/components/destinationupdategcppubsub.d.ts.map +1 -0
  124. package/dist/commonjs/models/components/destinationupdategcppubsub.js +76 -0
  125. package/dist/commonjs/models/components/destinationupdategcppubsub.js.map +1 -0
  126. package/dist/commonjs/models/components/event.d.ts +30 -2
  127. package/dist/commonjs/models/components/event.d.ts.map +1 -1
  128. package/dist/commonjs/models/components/event.js +25 -3
  129. package/dist/commonjs/models/components/event.js.map +1 -1
  130. package/dist/commonjs/models/components/gcppubsubconfig.d.ts +42 -0
  131. package/dist/commonjs/models/components/gcppubsubconfig.d.ts.map +1 -0
  132. package/dist/commonjs/models/components/gcppubsubconfig.js +82 -0
  133. package/dist/commonjs/models/components/gcppubsubconfig.js.map +1 -0
  134. package/dist/commonjs/models/components/gcppubsubcredentials.d.ts +32 -0
  135. package/dist/commonjs/models/components/gcppubsubcredentials.d.ts.map +1 -0
  136. package/dist/commonjs/models/components/gcppubsubcredentials.js +78 -0
  137. package/dist/commonjs/models/components/gcppubsubcredentials.js.map +1 -0
  138. package/dist/commonjs/models/components/index.d.ts +11 -0
  139. package/dist/commonjs/models/components/index.d.ts.map +1 -1
  140. package/dist/commonjs/models/components/index.js +11 -0
  141. package/dist/commonjs/models/components/index.js.map +1 -1
  142. package/dist/commonjs/models/errors/index.d.ts +1 -0
  143. package/dist/commonjs/models/errors/index.d.ts.map +1 -1
  144. package/dist/commonjs/models/errors/index.js +1 -0
  145. package/dist/commonjs/models/errors/index.js.map +1 -1
  146. package/dist/commonjs/models/operations/getdestinationtypeschema.d.ts +3 -0
  147. package/dist/commonjs/models/operations/getdestinationtypeschema.d.ts.map +1 -1
  148. package/dist/commonjs/models/operations/getdestinationtypeschema.js +1 -0
  149. package/dist/commonjs/models/operations/getdestinationtypeschema.js.map +1 -1
  150. package/dist/commonjs/models/operations/gettenantdestinationtypeschema.d.ts +3 -0
  151. package/dist/commonjs/models/operations/gettenantdestinationtypeschema.d.ts.map +1 -1
  152. package/dist/commonjs/models/operations/gettenantdestinationtypeschema.js +1 -0
  153. package/dist/commonjs/models/operations/gettenantdestinationtypeschema.js.map +1 -1
  154. package/dist/commonjs/models/operations/listtenantdestinations.d.ts +18 -0
  155. package/dist/commonjs/models/operations/listtenantdestinations.d.ts.map +1 -1
  156. package/dist/commonjs/models/operations/listtenantdestinations.js +6 -0
  157. package/dist/commonjs/models/operations/listtenantdestinations.js.map +1 -1
  158. package/dist/commonjs/models/operations/listtenantevents.d.ts +94 -0
  159. package/dist/commonjs/models/operations/listtenantevents.d.ts.map +1 -1
  160. package/dist/commonjs/models/operations/listtenantevents.js +92 -1
  161. package/dist/commonjs/models/operations/listtenantevents.js.map +1 -1
  162. package/dist/commonjs/models/operations/listtenanteventsbydestination.d.ts +94 -0
  163. package/dist/commonjs/models/operations/listtenanteventsbydestination.d.ts.map +1 -1
  164. package/dist/commonjs/models/operations/listtenanteventsbydestination.js +92 -1
  165. package/dist/commonjs/models/operations/listtenanteventsbydestination.js.map +1 -1
  166. package/dist/commonjs/sdk/events.d.ts +7 -2
  167. package/dist/commonjs/sdk/events.d.ts.map +1 -1
  168. package/dist/commonjs/sdk/events.js +3 -2
  169. package/dist/commonjs/sdk/events.js.map +1 -1
  170. package/dist/esm/funcs/destinationsCreate.js +1 -1
  171. package/dist/esm/funcs/destinationsCreate.js.map +1 -1
  172. package/dist/esm/funcs/destinationsDelete.js +1 -1
  173. package/dist/esm/funcs/destinationsDelete.js.map +1 -1
  174. package/dist/esm/funcs/destinationsDisable.js +1 -1
  175. package/dist/esm/funcs/destinationsDisable.js.map +1 -1
  176. package/dist/esm/funcs/destinationsEnable.js +1 -1
  177. package/dist/esm/funcs/destinationsEnable.js.map +1 -1
  178. package/dist/esm/funcs/destinationsGet.js +1 -1
  179. package/dist/esm/funcs/destinationsGet.js.map +1 -1
  180. package/dist/esm/funcs/destinationsList.js +1 -1
  181. package/dist/esm/funcs/destinationsList.js.map +1 -1
  182. package/dist/esm/funcs/destinationsUpdate.js +1 -1
  183. package/dist/esm/funcs/destinationsUpdate.js.map +1 -1
  184. package/dist/esm/funcs/eventsGet.js +1 -1
  185. package/dist/esm/funcs/eventsGet.js.map +1 -1
  186. package/dist/esm/funcs/eventsGetByDestination.js +1 -1
  187. package/dist/esm/funcs/eventsGetByDestination.js.map +1 -1
  188. package/dist/esm/funcs/eventsList.d.ts +4 -2
  189. package/dist/esm/funcs/eventsList.d.ts.map +1 -1
  190. package/dist/esm/funcs/eventsList.js +47 -9
  191. package/dist/esm/funcs/eventsList.js.map +1 -1
  192. package/dist/esm/funcs/eventsListByDestination.d.ts +4 -2
  193. package/dist/esm/funcs/eventsListByDestination.d.ts.map +1 -1
  194. package/dist/esm/funcs/eventsListByDestination.js +45 -9
  195. package/dist/esm/funcs/eventsListByDestination.js.map +1 -1
  196. package/dist/esm/funcs/eventsListDeliveries.js +1 -1
  197. package/dist/esm/funcs/eventsListDeliveries.js.map +1 -1
  198. package/dist/esm/funcs/eventsRetry.js +1 -1
  199. package/dist/esm/funcs/eventsRetry.js.map +1 -1
  200. package/dist/esm/funcs/healthCheck.js +1 -1
  201. package/dist/esm/funcs/healthCheck.js.map +1 -1
  202. package/dist/esm/funcs/publishEvent.js +1 -1
  203. package/dist/esm/funcs/publishEvent.js.map +1 -1
  204. package/dist/esm/funcs/schemasGet.js +1 -1
  205. package/dist/esm/funcs/schemasGet.js.map +1 -1
  206. package/dist/esm/funcs/schemasGetDestinationTypeJwt.js +1 -1
  207. package/dist/esm/funcs/schemasGetDestinationTypeJwt.js.map +1 -1
  208. package/dist/esm/funcs/schemasListDestinationTypesJwt.js +1 -1
  209. package/dist/esm/funcs/schemasListDestinationTypesJwt.js.map +1 -1
  210. package/dist/esm/funcs/schemasListTenantDestinationTypes.js +1 -1
  211. package/dist/esm/funcs/schemasListTenantDestinationTypes.js.map +1 -1
  212. package/dist/esm/funcs/tenantsDelete.js +1 -1
  213. package/dist/esm/funcs/tenantsDelete.js.map +1 -1
  214. package/dist/esm/funcs/tenantsGet.js +1 -1
  215. package/dist/esm/funcs/tenantsGet.js.map +1 -1
  216. package/dist/esm/funcs/tenantsGetPortalUrl.js +1 -1
  217. package/dist/esm/funcs/tenantsGetPortalUrl.js.map +1 -1
  218. package/dist/esm/funcs/tenantsGetToken.js +1 -1
  219. package/dist/esm/funcs/tenantsGetToken.js.map +1 -1
  220. package/dist/esm/funcs/tenantsUpsert.js +1 -1
  221. package/dist/esm/funcs/tenantsUpsert.js.map +1 -1
  222. package/dist/esm/funcs/topicsList.js +1 -1
  223. package/dist/esm/funcs/topicsList.js.map +1 -1
  224. package/dist/esm/funcs/topicsListJwt.js +1 -1
  225. package/dist/esm/funcs/topicsListJwt.js.map +1 -1
  226. package/dist/esm/lib/config.d.ts +3 -3
  227. package/dist/esm/lib/config.js +3 -3
  228. package/dist/esm/lib/config.js.map +1 -1
  229. package/dist/esm/lib/security.d.ts.map +1 -1
  230. package/dist/esm/lib/security.js.map +1 -1
  231. package/dist/esm/lib/url.js +1 -1
  232. package/dist/esm/lib/url.js.map +1 -1
  233. package/dist/esm/mcp-server/mcp-server.js +1 -1
  234. package/dist/esm/mcp-server/server.js +1 -1
  235. package/dist/esm/mcp-server/tools/eventsList.js +1 -1
  236. package/dist/esm/mcp-server/tools/eventsList.js.map +1 -1
  237. package/dist/esm/mcp-server/tools/eventsListByDestination.js +1 -1
  238. package/dist/esm/mcp-server/tools/eventsListByDestination.js.map +1 -1
  239. package/dist/esm/models/components/awss3config.d.ts +47 -0
  240. package/dist/esm/models/components/awss3config.d.ts.map +1 -0
  241. package/dist/esm/models/components/awss3config.js +48 -0
  242. package/dist/esm/models/components/awss3config.js.map +1 -0
  243. package/dist/esm/models/components/awss3credentials.d.ts +42 -0
  244. package/dist/esm/models/components/awss3credentials.d.ts.map +1 -0
  245. package/dist/esm/models/components/awss3credentials.js +35 -0
  246. package/dist/esm/models/components/awss3credentials.js.map +1 -0
  247. package/dist/esm/models/components/deliveryattempt.d.ts +8 -8
  248. package/dist/esm/models/components/deliveryattempt.d.ts.map +1 -1
  249. package/dist/esm/models/components/deliveryattempt.js +12 -13
  250. package/dist/esm/models/components/deliveryattempt.js.map +1 -1
  251. package/dist/esm/models/components/destination.d.ts +10 -0
  252. package/dist/esm/models/components/destination.d.ts.map +1 -1
  253. package/dist/esm/models/components/destination.js +14 -0
  254. package/dist/esm/models/components/destination.js.map +1 -1
  255. package/dist/esm/models/components/destinationawss3.d.ts +98 -0
  256. package/dist/esm/models/components/destinationawss3.d.ts.map +1 -0
  257. package/dist/esm/models/components/destinationawss3.js +84 -0
  258. package/dist/esm/models/components/destinationawss3.js.map +1 -0
  259. package/dist/esm/models/components/destinationcreate.d.ts +10 -0
  260. package/dist/esm/models/components/destinationcreate.d.ts.map +1 -1
  261. package/dist/esm/models/components/destinationcreate.js +14 -0
  262. package/dist/esm/models/components/destinationcreate.js.map +1 -1
  263. package/dist/esm/models/components/destinationcreateawss3.d.ts +78 -0
  264. package/dist/esm/models/components/destinationcreateawss3.d.ts.map +1 -0
  265. package/dist/esm/models/components/destinationcreateawss3.js +63 -0
  266. package/dist/esm/models/components/destinationcreateawss3.js.map +1 -0
  267. package/dist/esm/models/components/destinationcreategcppubsub.d.ts +78 -0
  268. package/dist/esm/models/components/destinationcreategcppubsub.d.ts.map +1 -0
  269. package/dist/esm/models/components/destinationcreategcppubsub.js +63 -0
  270. package/dist/esm/models/components/destinationcreategcppubsub.js.map +1 -0
  271. package/dist/esm/models/components/destinationgcppubsub.d.ts +98 -0
  272. package/dist/esm/models/components/destinationgcppubsub.d.ts.map +1 -0
  273. package/dist/esm/models/components/destinationgcppubsub.js +84 -0
  274. package/dist/esm/models/components/destinationgcppubsub.js.map +1 -0
  275. package/dist/esm/models/components/destinationupdate.d.ts +5 -2
  276. package/dist/esm/models/components/destinationupdate.d.ts.map +1 -1
  277. package/dist/esm/models/components/destinationupdate.js +9 -0
  278. package/dist/esm/models/components/destinationupdate.js.map +1 -1
  279. package/dist/esm/models/components/destinationupdateawss3.d.ts +39 -0
  280. package/dist/esm/models/components/destinationupdateawss3.d.ts.map +1 -0
  281. package/dist/esm/models/components/destinationupdateawss3.js +38 -0
  282. package/dist/esm/models/components/destinationupdateawss3.js.map +1 -0
  283. package/dist/esm/models/components/destinationupdateazureservicebus.d.ts +39 -0
  284. package/dist/esm/models/components/destinationupdateazureservicebus.d.ts.map +1 -0
  285. package/dist/esm/models/components/destinationupdateazureservicebus.js +38 -0
  286. package/dist/esm/models/components/destinationupdateazureservicebus.js.map +1 -0
  287. package/dist/esm/models/components/destinationupdategcppubsub.d.ts +39 -0
  288. package/dist/esm/models/components/destinationupdategcppubsub.d.ts.map +1 -0
  289. package/dist/esm/models/components/destinationupdategcppubsub.js +38 -0
  290. package/dist/esm/models/components/destinationupdategcppubsub.js.map +1 -0
  291. package/dist/esm/models/components/event.d.ts +30 -2
  292. package/dist/esm/models/components/event.d.ts.map +1 -1
  293. package/dist/esm/models/components/event.js +24 -2
  294. package/dist/esm/models/components/event.js.map +1 -1
  295. package/dist/esm/models/components/gcppubsubconfig.d.ts +42 -0
  296. package/dist/esm/models/components/gcppubsubconfig.d.ts.map +1 -0
  297. package/dist/esm/models/components/gcppubsubconfig.js +44 -0
  298. package/dist/esm/models/components/gcppubsubconfig.js.map +1 -0
  299. package/dist/esm/models/components/gcppubsubcredentials.d.ts +32 -0
  300. package/dist/esm/models/components/gcppubsubcredentials.d.ts.map +1 -0
  301. package/dist/esm/models/components/gcppubsubcredentials.js +40 -0
  302. package/dist/esm/models/components/gcppubsubcredentials.js.map +1 -0
  303. package/dist/esm/models/components/index.d.ts +11 -0
  304. package/dist/esm/models/components/index.d.ts.map +1 -1
  305. package/dist/esm/models/components/index.js +11 -0
  306. package/dist/esm/models/components/index.js.map +1 -1
  307. package/dist/esm/models/errors/index.d.ts +1 -0
  308. package/dist/esm/models/errors/index.d.ts.map +1 -1
  309. package/dist/esm/models/errors/index.js +1 -0
  310. package/dist/esm/models/errors/index.js.map +1 -1
  311. package/dist/esm/models/operations/getdestinationtypeschema.d.ts +3 -0
  312. package/dist/esm/models/operations/getdestinationtypeschema.d.ts.map +1 -1
  313. package/dist/esm/models/operations/getdestinationtypeschema.js +1 -0
  314. package/dist/esm/models/operations/getdestinationtypeschema.js.map +1 -1
  315. package/dist/esm/models/operations/gettenantdestinationtypeschema.d.ts +3 -0
  316. package/dist/esm/models/operations/gettenantdestinationtypeschema.d.ts.map +1 -1
  317. package/dist/esm/models/operations/gettenantdestinationtypeschema.js +1 -0
  318. package/dist/esm/models/operations/gettenantdestinationtypeschema.js.map +1 -1
  319. package/dist/esm/models/operations/listtenantdestinations.d.ts +18 -0
  320. package/dist/esm/models/operations/listtenantdestinations.d.ts.map +1 -1
  321. package/dist/esm/models/operations/listtenantdestinations.js +6 -0
  322. package/dist/esm/models/operations/listtenantdestinations.js.map +1 -1
  323. package/dist/esm/models/operations/listtenantevents.d.ts +94 -0
  324. package/dist/esm/models/operations/listtenantevents.d.ts.map +1 -1
  325. package/dist/esm/models/operations/listtenantevents.js +87 -0
  326. package/dist/esm/models/operations/listtenantevents.js.map +1 -1
  327. package/dist/esm/models/operations/listtenanteventsbydestination.d.ts +94 -0
  328. package/dist/esm/models/operations/listtenanteventsbydestination.d.ts.map +1 -1
  329. package/dist/esm/models/operations/listtenanteventsbydestination.js +87 -0
  330. package/dist/esm/models/operations/listtenanteventsbydestination.js.map +1 -1
  331. package/dist/esm/sdk/events.d.ts +7 -2
  332. package/dist/esm/sdk/events.d.ts.map +1 -1
  333. package/dist/esm/sdk/events.js +3 -2
  334. package/dist/esm/sdk/events.js.map +1 -1
  335. package/docs/sdks/events/README.md +14 -6
  336. package/examples/healthCheck.example.ts +2 -2
  337. package/examples/package-lock.json +3 -3
  338. package/jsr.json +1 -1
  339. package/package.json +3 -3
  340. package/src/funcs/destinationsCreate.ts +1 -1
  341. package/src/funcs/destinationsDelete.ts +1 -1
  342. package/src/funcs/destinationsDisable.ts +1 -1
  343. package/src/funcs/destinationsEnable.ts +1 -1
  344. package/src/funcs/destinationsGet.ts +1 -1
  345. package/src/funcs/destinationsList.ts +1 -1
  346. package/src/funcs/destinationsUpdate.ts +1 -1
  347. package/src/funcs/eventsGet.ts +1 -1
  348. package/src/funcs/eventsGetByDestination.ts +1 -1
  349. package/src/funcs/eventsList.ts +123 -43
  350. package/src/funcs/eventsListByDestination.ts +125 -43
  351. package/src/funcs/eventsListDeliveries.ts +1 -1
  352. package/src/funcs/eventsRetry.ts +1 -1
  353. package/src/funcs/healthCheck.ts +1 -1
  354. package/src/funcs/publishEvent.ts +1 -1
  355. package/src/funcs/schemasGet.ts +1 -1
  356. package/src/funcs/schemasGetDestinationTypeJwt.ts +1 -1
  357. package/src/funcs/schemasListDestinationTypesJwt.ts +1 -1
  358. package/src/funcs/schemasListTenantDestinationTypes.ts +1 -1
  359. package/src/funcs/tenantsDelete.ts +1 -1
  360. package/src/funcs/tenantsGet.ts +1 -1
  361. package/src/funcs/tenantsGetPortalUrl.ts +1 -1
  362. package/src/funcs/tenantsGetToken.ts +1 -1
  363. package/src/funcs/tenantsUpsert.ts +1 -1
  364. package/src/funcs/topicsList.ts +1 -1
  365. package/src/funcs/topicsListJwt.ts +1 -1
  366. package/src/lib/config.ts +3 -3
  367. package/src/lib/security.ts +4 -1
  368. package/src/lib/url.ts +1 -1
  369. package/src/mcp-server/mcp-server.ts +1 -1
  370. package/src/mcp-server/server.ts +1 -1
  371. package/src/mcp-server/tools/eventsList.ts +1 -1
  372. package/src/mcp-server/tools/eventsListByDestination.ts +1 -1
  373. package/src/models/components/awss3config.ts +97 -0
  374. package/src/models/components/awss3credentials.ts +83 -0
  375. package/src/models/components/deliveryattempt.ts +16 -14
  376. package/src/models/components/destination.ts +36 -0
  377. package/src/models/components/destinationawss3.ts +185 -0
  378. package/src/models/components/destinationcreate.ts +36 -0
  379. package/src/models/components/destinationcreateawss3.ts +144 -0
  380. package/src/models/components/destinationcreategcppubsub.ts +144 -0
  381. package/src/models/components/destinationgcppubsub.ts +187 -0
  382. package/src/models/components/destinationupdate.ts +32 -2
  383. package/src/models/components/destinationupdateawss3.ts +95 -0
  384. package/src/models/components/destinationupdateazureservicebus.ts +97 -0
  385. package/src/models/components/destinationupdategcppubsub.ts +95 -0
  386. package/src/models/components/event.ts +34 -4
  387. package/src/models/components/gcppubsubconfig.ts +90 -0
  388. package/src/models/components/gcppubsubcredentials.ts +78 -0
  389. package/src/models/components/index.ts +11 -0
  390. package/src/models/errors/index.ts +1 -0
  391. package/src/models/operations/getdestinationtypeschema.ts +1 -0
  392. package/src/models/operations/gettenantdestinationtypeschema.ts +1 -0
  393. package/src/models/operations/listtenantdestinations.ts +6 -0
  394. package/src/models/operations/listtenantevents.ts +198 -0
  395. package/src/models/operations/listtenanteventsbydestination.ts +215 -0
  396. package/src/sdk/events.ts +12 -4
  397. package/docs/sdks/outpost/README.md +0 -7
@@ -127,7 +127,7 @@ async function $do(
127
127
  options: client._options,
128
128
  baseURL: options?.serverURL ?? client._baseURL ?? "",
129
129
  operationID: "enableTenantDestination",
130
- oAuth2Scopes: [],
130
+ oAuth2Scopes: null,
131
131
 
132
132
  resolvedSecurity: requestSecurity,
133
133
 
@@ -127,7 +127,7 @@ async function $do(
127
127
  options: client._options,
128
128
  baseURL: options?.serverURL ?? client._baseURL ?? "",
129
129
  operationID: "getTenantDestination",
130
- oAuth2Scopes: [],
130
+ oAuth2Scopes: null,
131
131
 
132
132
  resolvedSecurity: requestSecurity,
133
133
 
@@ -127,7 +127,7 @@ async function $do(
127
127
  options: client._options,
128
128
  baseURL: options?.serverURL ?? client._baseURL ?? "",
129
129
  operationID: "listTenantDestinations",
130
- oAuth2Scopes: [],
130
+ oAuth2Scopes: null,
131
131
 
132
132
  resolvedSecurity: requestSecurity,
133
133
 
@@ -127,7 +127,7 @@ async function $do(
127
127
  options: client._options,
128
128
  baseURL: options?.serverURL ?? client._baseURL ?? "",
129
129
  operationID: "updateTenantDestination",
130
- oAuth2Scopes: [],
130
+ oAuth2Scopes: null,
131
131
 
132
132
  resolvedSecurity: requestSecurity,
133
133
 
@@ -124,7 +124,7 @@ async function $do(
124
124
  options: client._options,
125
125
  baseURL: options?.serverURL ?? client._baseURL ?? "",
126
126
  operationID: "getTenantEvent",
127
- oAuth2Scopes: [],
127
+ oAuth2Scopes: null,
128
128
 
129
129
  resolvedSecurity: requestSecurity,
130
130
 
@@ -131,7 +131,7 @@ async function $do(
131
131
  options: client._options,
132
132
  baseURL: options?.serverURL ?? client._baseURL ?? "",
133
133
  operationID: "getTenantEventByDestination",
134
- oAuth2Scopes: [],
134
+ oAuth2Scopes: null,
135
135
 
136
136
  resolvedSecurity: requestSecurity,
137
137
 
@@ -2,8 +2,8 @@
2
2
  * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
3
  */
4
4
 
5
- import * as z from "zod";
6
5
  import { OutpostCore } from "../core.js";
6
+ import { dlv } from "../lib/dlv.js";
7
7
  import { encodeFormQuery, encodeSimple } from "../lib/encodings.js";
8
8
  import * as M from "../lib/matchers.js";
9
9
  import { compactMap } from "../lib/primitives.js";
@@ -11,7 +11,6 @@ import { safeParse } from "../lib/schemas.js";
11
11
  import { RequestOptions } from "../lib/sdks.js";
12
12
  import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
13
13
  import { pathToFunc } from "../lib/url.js";
14
- import * as components from "../models/components/index.js";
15
14
  import {
16
15
  ConnectionError,
17
16
  InvalidRequestError,
@@ -26,6 +25,12 @@ import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
26
25
  import * as operations from "../models/operations/index.js";
27
26
  import { APICall, APIPromise } from "../types/async.js";
28
27
  import { Result } from "../types/fp.js";
28
+ import {
29
+ createPageIterator,
30
+ haltIterator,
31
+ PageIterator,
32
+ Paginator,
33
+ } from "../types/operations.js";
29
34
 
30
35
  /**
31
36
  * List Events
@@ -38,39 +43,9 @@ export function eventsList(
38
43
  request: operations.ListTenantEventsRequest,
39
44
  options?: RequestOptions,
40
45
  ): APIPromise<
41
- Result<
42
- Array<components.Event>,
43
- | errors.UnauthorizedError
44
- | errors.TimeoutError
45
- | errors.RateLimitedError
46
- | errors.BadRequestError
47
- | errors.NotFoundError
48
- | errors.InternalServerError
49
- | OutpostError
50
- | ResponseValidationError
51
- | ConnectionError
52
- | RequestAbortedError
53
- | RequestTimeoutError
54
- | InvalidRequestError
55
- | UnexpectedClientError
56
- | SDKValidationError
57
- >
58
- > {
59
- return new APIPromise($do(
60
- client,
61
- request,
62
- options,
63
- ));
64
- }
65
-
66
- async function $do(
67
- client: OutpostCore,
68
- request: operations.ListTenantEventsRequest,
69
- options?: RequestOptions,
70
- ): Promise<
71
- [
46
+ PageIterator<
72
47
  Result<
73
- Array<components.Event>,
48
+ operations.ListTenantEventsResponse,
74
49
  | errors.UnauthorizedError
75
50
  | errors.TimeoutError
76
51
  | errors.RateLimitedError
@@ -86,6 +61,42 @@ async function $do(
86
61
  | UnexpectedClientError
87
62
  | SDKValidationError
88
63
  >,
64
+ { cursor: string }
65
+ >
66
+ > {
67
+ return new APIPromise($do(
68
+ client,
69
+ request,
70
+ options,
71
+ ));
72
+ }
73
+
74
+ async function $do(
75
+ client: OutpostCore,
76
+ request: operations.ListTenantEventsRequest,
77
+ options?: RequestOptions,
78
+ ): Promise<
79
+ [
80
+ PageIterator<
81
+ Result<
82
+ operations.ListTenantEventsResponse,
83
+ | errors.UnauthorizedError
84
+ | errors.TimeoutError
85
+ | errors.RateLimitedError
86
+ | errors.BadRequestError
87
+ | errors.NotFoundError
88
+ | errors.InternalServerError
89
+ | OutpostError
90
+ | ResponseValidationError
91
+ | ConnectionError
92
+ | RequestAbortedError
93
+ | RequestTimeoutError
94
+ | InvalidRequestError
95
+ | UnexpectedClientError
96
+ | SDKValidationError
97
+ >,
98
+ { cursor: string }
99
+ >,
89
100
  APICall,
90
101
  ]
91
102
  > {
@@ -95,7 +106,7 @@ async function $do(
95
106
  "Input validation failed",
96
107
  );
97
108
  if (!parsed.ok) {
98
- return [parsed, { status: "invalid" }];
109
+ return [haltIterator(parsed), { status: "invalid" }];
99
110
  }
100
111
  const payload = parsed.value;
101
112
  const body = null;
@@ -112,6 +123,11 @@ async function $do(
112
123
 
113
124
  const query = encodeFormQuery({
114
125
  "destination_id": payload.destination_id,
126
+ "end": payload.end,
127
+ "limit": payload.limit,
128
+ "next": payload.next,
129
+ "prev": payload.prev,
130
+ "start": payload.start,
115
131
  "status": payload.status,
116
132
  });
117
133
 
@@ -126,7 +142,7 @@ async function $do(
126
142
  options: client._options,
127
143
  baseURL: options?.serverURL ?? client._baseURL ?? "",
128
144
  operationID: "listTenantEvents",
129
- oAuth2Scopes: [],
145
+ oAuth2Scopes: null,
130
146
 
131
147
  resolvedSecurity: requestSecurity,
132
148
 
@@ -149,7 +165,7 @@ async function $do(
149
165
  timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
150
166
  }, options);
151
167
  if (!requestRes.ok) {
152
- return [requestRes, { status: "invalid" }];
168
+ return [haltIterator(requestRes), { status: "invalid" }];
153
169
  }
154
170
  const req = requestRes.value;
155
171
 
@@ -186,7 +202,7 @@ async function $do(
186
202
  retryCodes: context.retryCodes,
187
203
  });
188
204
  if (!doResult.ok) {
189
- return [doResult, { status: "request-error", request: req }];
205
+ return [haltIterator(doResult), { status: "request-error", request: req }];
190
206
  }
191
207
  const response = doResult.value;
192
208
 
@@ -194,8 +210,8 @@ async function $do(
194
210
  HttpMeta: { Response: response, Request: req },
195
211
  };
196
212
 
197
- const [result] = await M.match<
198
- Array<components.Event>,
213
+ const [result, raw] = await M.match<
214
+ operations.ListTenantEventsResponse,
199
215
  | errors.UnauthorizedError
200
216
  | errors.TimeoutError
201
217
  | errors.RateLimitedError
@@ -211,7 +227,9 @@ async function $do(
211
227
  | UnexpectedClientError
212
228
  | SDKValidationError
213
229
  >(
214
- M.json(200, z.array(components.Event$inboundSchema)),
230
+ M.json(200, operations.ListTenantEventsResponse$inboundSchema, {
231
+ key: "Result",
232
+ }),
215
233
  M.jsonErr([401, 403, 407], errors.UnauthorizedError$inboundSchema),
216
234
  M.jsonErr(408, errors.TimeoutError$inboundSchema),
217
235
  M.jsonErr(429, errors.RateLimitedError$inboundSchema),
@@ -231,8 +249,70 @@ async function $do(
231
249
  M.fail("5XX"),
232
250
  )(response, req, { extraFields: responseFields });
233
251
  if (!result.ok) {
234
- return [result, { status: "complete", request: req, response }];
252
+ return [haltIterator(result), {
253
+ status: "complete",
254
+ request: req,
255
+ response,
256
+ }];
235
257
  }
236
258
 
237
- return [result, { status: "complete", request: req, response }];
259
+ const nextFunc = (
260
+ responseData: unknown,
261
+ ): {
262
+ next: Paginator<
263
+ Result<
264
+ operations.ListTenantEventsResponse,
265
+ | errors.UnauthorizedError
266
+ | errors.TimeoutError
267
+ | errors.RateLimitedError
268
+ | errors.BadRequestError
269
+ | errors.NotFoundError
270
+ | errors.InternalServerError
271
+ | OutpostError
272
+ | ResponseValidationError
273
+ | ConnectionError
274
+ | RequestAbortedError
275
+ | RequestTimeoutError
276
+ | InvalidRequestError
277
+ | UnexpectedClientError
278
+ | SDKValidationError
279
+ >
280
+ >;
281
+ "~next"?: { cursor: string };
282
+ } => {
283
+ const nextCursor = dlv(responseData, "next");
284
+ if (typeof nextCursor !== "string") {
285
+ return { next: () => null };
286
+ }
287
+ if (nextCursor.trim() === "") {
288
+ return { next: () => null };
289
+ }
290
+ const results = dlv(responseData, "data");
291
+ if (!Array.isArray(results) || !results.length) {
292
+ return { next: () => null };
293
+ }
294
+ const limit = request?.limit ?? 100;
295
+ if (results.length < limit) {
296
+ return { next: () => null };
297
+ }
298
+
299
+ const nextVal = () =>
300
+ eventsList(
301
+ client,
302
+ {
303
+ ...request,
304
+ next: nextCursor,
305
+ },
306
+ options,
307
+ );
308
+
309
+ return { next: nextVal, "~next": { cursor: nextCursor } };
310
+ };
311
+
312
+ const page = { ...result, ...nextFunc(raw) };
313
+ return [{ ...page, ...createPageIterator(page, (v) => !v.ok) }, {
314
+ status: "complete",
315
+ request: req,
316
+ response,
317
+ }];
238
318
  }
@@ -2,8 +2,8 @@
2
2
  * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
3
  */
4
4
 
5
- import * as z from "zod";
6
5
  import { OutpostCore } from "../core.js";
6
+ import { dlv } from "../lib/dlv.js";
7
7
  import { encodeFormQuery, encodeSimple } from "../lib/encodings.js";
8
8
  import * as M from "../lib/matchers.js";
9
9
  import { compactMap } from "../lib/primitives.js";
@@ -11,7 +11,6 @@ import { safeParse } from "../lib/schemas.js";
11
11
  import { RequestOptions } from "../lib/sdks.js";
12
12
  import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
13
13
  import { pathToFunc } from "../lib/url.js";
14
- import * as components from "../models/components/index.js";
15
14
  import {
16
15
  ConnectionError,
17
16
  InvalidRequestError,
@@ -26,6 +25,12 @@ import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
26
25
  import * as operations from "../models/operations/index.js";
27
26
  import { APICall, APIPromise } from "../types/async.js";
28
27
  import { Result } from "../types/fp.js";
28
+ import {
29
+ createPageIterator,
30
+ haltIterator,
31
+ PageIterator,
32
+ Paginator,
33
+ } from "../types/operations.js";
29
34
 
30
35
  /**
31
36
  * List Events by Destination
@@ -38,39 +43,9 @@ export function eventsListByDestination(
38
43
  request: operations.ListTenantEventsByDestinationRequest,
39
44
  options?: RequestOptions,
40
45
  ): APIPromise<
41
- Result<
42
- Array<components.Event>,
43
- | errors.UnauthorizedError
44
- | errors.TimeoutError
45
- | errors.RateLimitedError
46
- | errors.BadRequestError
47
- | errors.NotFoundError
48
- | errors.InternalServerError
49
- | OutpostError
50
- | ResponseValidationError
51
- | ConnectionError
52
- | RequestAbortedError
53
- | RequestTimeoutError
54
- | InvalidRequestError
55
- | UnexpectedClientError
56
- | SDKValidationError
57
- >
58
- > {
59
- return new APIPromise($do(
60
- client,
61
- request,
62
- options,
63
- ));
64
- }
65
-
66
- async function $do(
67
- client: OutpostCore,
68
- request: operations.ListTenantEventsByDestinationRequest,
69
- options?: RequestOptions,
70
- ): Promise<
71
- [
46
+ PageIterator<
72
47
  Result<
73
- Array<components.Event>,
48
+ operations.ListTenantEventsByDestinationResponse,
74
49
  | errors.UnauthorizedError
75
50
  | errors.TimeoutError
76
51
  | errors.RateLimitedError
@@ -86,6 +61,42 @@ async function $do(
86
61
  | UnexpectedClientError
87
62
  | SDKValidationError
88
63
  >,
64
+ { cursor: string }
65
+ >
66
+ > {
67
+ return new APIPromise($do(
68
+ client,
69
+ request,
70
+ options,
71
+ ));
72
+ }
73
+
74
+ async function $do(
75
+ client: OutpostCore,
76
+ request: operations.ListTenantEventsByDestinationRequest,
77
+ options?: RequestOptions,
78
+ ): Promise<
79
+ [
80
+ PageIterator<
81
+ Result<
82
+ operations.ListTenantEventsByDestinationResponse,
83
+ | errors.UnauthorizedError
84
+ | errors.TimeoutError
85
+ | errors.RateLimitedError
86
+ | errors.BadRequestError
87
+ | errors.NotFoundError
88
+ | errors.InternalServerError
89
+ | OutpostError
90
+ | ResponseValidationError
91
+ | ConnectionError
92
+ | RequestAbortedError
93
+ | RequestTimeoutError
94
+ | InvalidRequestError
95
+ | UnexpectedClientError
96
+ | SDKValidationError
97
+ >,
98
+ { cursor: string }
99
+ >,
89
100
  APICall,
90
101
  ]
91
102
  > {
@@ -98,7 +109,7 @@ async function $do(
98
109
  "Input validation failed",
99
110
  );
100
111
  if (!parsed.ok) {
101
- return [parsed, { status: "invalid" }];
112
+ return [haltIterator(parsed), { status: "invalid" }];
102
113
  }
103
114
  const payload = parsed.value;
104
115
  const body = null;
@@ -120,6 +131,11 @@ async function $do(
120
131
  );
121
132
 
122
133
  const query = encodeFormQuery({
134
+ "end": payload.end,
135
+ "limit": payload.limit,
136
+ "next": payload.next,
137
+ "prev": payload.prev,
138
+ "start": payload.start,
123
139
  "status": payload.status,
124
140
  });
125
141
 
@@ -134,7 +150,7 @@ async function $do(
134
150
  options: client._options,
135
151
  baseURL: options?.serverURL ?? client._baseURL ?? "",
136
152
  operationID: "listTenantEventsByDestination",
137
- oAuth2Scopes: [],
153
+ oAuth2Scopes: null,
138
154
 
139
155
  resolvedSecurity: requestSecurity,
140
156
 
@@ -157,7 +173,7 @@ async function $do(
157
173
  timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
158
174
  }, options);
159
175
  if (!requestRes.ok) {
160
- return [requestRes, { status: "invalid" }];
176
+ return [haltIterator(requestRes), { status: "invalid" }];
161
177
  }
162
178
  const req = requestRes.value;
163
179
 
@@ -194,7 +210,7 @@ async function $do(
194
210
  retryCodes: context.retryCodes,
195
211
  });
196
212
  if (!doResult.ok) {
197
- return [doResult, { status: "request-error", request: req }];
213
+ return [haltIterator(doResult), { status: "request-error", request: req }];
198
214
  }
199
215
  const response = doResult.value;
200
216
 
@@ -202,8 +218,8 @@ async function $do(
202
218
  HttpMeta: { Response: response, Request: req },
203
219
  };
204
220
 
205
- const [result] = await M.match<
206
- Array<components.Event>,
221
+ const [result, raw] = await M.match<
222
+ operations.ListTenantEventsByDestinationResponse,
207
223
  | errors.UnauthorizedError
208
224
  | errors.TimeoutError
209
225
  | errors.RateLimitedError
@@ -219,7 +235,11 @@ async function $do(
219
235
  | UnexpectedClientError
220
236
  | SDKValidationError
221
237
  >(
222
- M.json(200, z.array(components.Event$inboundSchema)),
238
+ M.json(
239
+ 200,
240
+ operations.ListTenantEventsByDestinationResponse$inboundSchema,
241
+ { key: "Result" },
242
+ ),
223
243
  M.jsonErr([401, 403, 407], errors.UnauthorizedError$inboundSchema),
224
244
  M.jsonErr(408, errors.TimeoutError$inboundSchema),
225
245
  M.jsonErr(429, errors.RateLimitedError$inboundSchema),
@@ -239,8 +259,70 @@ async function $do(
239
259
  M.fail("5XX"),
240
260
  )(response, req, { extraFields: responseFields });
241
261
  if (!result.ok) {
242
- return [result, { status: "complete", request: req, response }];
262
+ return [haltIterator(result), {
263
+ status: "complete",
264
+ request: req,
265
+ response,
266
+ }];
243
267
  }
244
268
 
245
- return [result, { status: "complete", request: req, response }];
269
+ const nextFunc = (
270
+ responseData: unknown,
271
+ ): {
272
+ next: Paginator<
273
+ Result<
274
+ operations.ListTenantEventsByDestinationResponse,
275
+ | errors.UnauthorizedError
276
+ | errors.TimeoutError
277
+ | errors.RateLimitedError
278
+ | errors.BadRequestError
279
+ | errors.NotFoundError
280
+ | errors.InternalServerError
281
+ | OutpostError
282
+ | ResponseValidationError
283
+ | ConnectionError
284
+ | RequestAbortedError
285
+ | RequestTimeoutError
286
+ | InvalidRequestError
287
+ | UnexpectedClientError
288
+ | SDKValidationError
289
+ >
290
+ >;
291
+ "~next"?: { cursor: string };
292
+ } => {
293
+ const nextCursor = dlv(responseData, "next");
294
+ if (typeof nextCursor !== "string") {
295
+ return { next: () => null };
296
+ }
297
+ if (nextCursor.trim() === "") {
298
+ return { next: () => null };
299
+ }
300
+ const results = dlv(responseData, "data");
301
+ if (!Array.isArray(results) || !results.length) {
302
+ return { next: () => null };
303
+ }
304
+ const limit = request?.limit ?? 100;
305
+ if (results.length < limit) {
306
+ return { next: () => null };
307
+ }
308
+
309
+ const nextVal = () =>
310
+ eventsListByDestination(
311
+ client,
312
+ {
313
+ ...request,
314
+ next: nextCursor,
315
+ },
316
+ options,
317
+ );
318
+
319
+ return { next: nextVal, "~next": { cursor: nextCursor } };
320
+ };
321
+
322
+ const page = { ...result, ...nextFunc(raw) };
323
+ return [{ ...page, ...createPageIterator(page, (v) => !v.ok) }, {
324
+ status: "complete",
325
+ request: req,
326
+ response,
327
+ }];
246
328
  }
@@ -128,7 +128,7 @@ async function $do(
128
128
  options: client._options,
129
129
  baseURL: options?.serverURL ?? client._baseURL ?? "",
130
130
  operationID: "listTenantEventDeliveries",
131
- oAuth2Scopes: [],
131
+ oAuth2Scopes: null,
132
132
 
133
133
  resolvedSecurity: requestSecurity,
134
134
 
@@ -130,7 +130,7 @@ async function $do(
130
130
  options: client._options,
131
131
  baseURL: options?.serverURL ?? client._baseURL ?? "",
132
132
  operationID: "retryTenantEvent",
133
- oAuth2Scopes: [],
133
+ oAuth2Scopes: null,
134
134
 
135
135
  resolvedSecurity: requestSecurity,
136
136
 
@@ -91,7 +91,7 @@ async function $do(
91
91
  options: client._options,
92
92
  baseURL: options?.serverURL ?? client._baseURL ?? "",
93
93
  operationID: "healthCheck",
94
- oAuth2Scopes: [],
94
+ oAuth2Scopes: null,
95
95
 
96
96
  resolvedSecurity: null,
97
97
 
@@ -112,7 +112,7 @@ async function $do(
112
112
  options: client._options,
113
113
  baseURL: options?.serverURL ?? client._baseURL ?? "",
114
114
  operationID: "publishEvent",
115
- oAuth2Scopes: [],
115
+ oAuth2Scopes: null,
116
116
 
117
117
  resolvedSecurity: requestSecurity,
118
118
 
@@ -127,7 +127,7 @@ async function $do(
127
127
  options: client._options,
128
128
  baseURL: options?.serverURL ?? client._baseURL ?? "",
129
129
  operationID: "getTenantDestinationTypeSchema",
130
- oAuth2Scopes: [],
130
+ oAuth2Scopes: null,
131
131
 
132
132
  resolvedSecurity: requestSecurity,
133
133
 
@@ -120,7 +120,7 @@ async function $do(
120
120
  options: client._options,
121
121
  baseURL: options?.serverURL ?? client._baseURL ?? "",
122
122
  operationID: "getDestinationTypeSchema",
123
- oAuth2Scopes: [],
123
+ oAuth2Scopes: null,
124
124
 
125
125
  resolvedSecurity: requestSecurity,
126
126
 
@@ -96,7 +96,7 @@ async function $do(
96
96
  options: client._options,
97
97
  baseURL: options?.serverURL ?? client._baseURL ?? "",
98
98
  operationID: "listDestinationTypeSchemasJwt",
99
- oAuth2Scopes: [],
99
+ oAuth2Scopes: null,
100
100
 
101
101
  resolvedSecurity: requestSecurity,
102
102
 
@@ -124,7 +124,7 @@ async function $do(
124
124
  options: client._options,
125
125
  baseURL: options?.serverURL ?? client._baseURL ?? "",
126
126
  operationID: "listTenantDestinationTypeSchemas",
127
- oAuth2Scopes: [],
127
+ oAuth2Scopes: null,
128
128
 
129
129
  resolvedSecurity: requestSecurity,
130
130
 
@@ -120,7 +120,7 @@ async function $do(
120
120
  options: client._options,
121
121
  baseURL: options?.serverURL ?? client._baseURL ?? "",
122
122
  operationID: "deleteTenant",
123
- oAuth2Scopes: [],
123
+ oAuth2Scopes: null,
124
124
 
125
125
  resolvedSecurity: requestSecurity,
126
126
 
@@ -120,7 +120,7 @@ async function $do(
120
120
  options: client._options,
121
121
  baseURL: options?.serverURL ?? client._baseURL ?? "",
122
122
  operationID: "getTenant",
123
- oAuth2Scopes: [],
123
+ oAuth2Scopes: null,
124
124
 
125
125
  resolvedSecurity: requestSecurity,
126
126
 
@@ -124,7 +124,7 @@ async function $do(
124
124
  options: client._options,
125
125
  baseURL: options?.serverURL ?? client._baseURL ?? "",
126
126
  operationID: "getTenantPortalUrl",
127
- oAuth2Scopes: [],
127
+ oAuth2Scopes: null,
128
128
 
129
129
  resolvedSecurity: requestSecurity,
130
130
 
@@ -120,7 +120,7 @@ async function $do(
120
120
  options: client._options,
121
121
  baseURL: options?.serverURL ?? client._baseURL ?? "",
122
122
  operationID: "getTenantToken",
123
- oAuth2Scopes: [],
123
+ oAuth2Scopes: null,
124
124
 
125
125
  resolvedSecurity: requestSecurity,
126
126