@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
@@ -12,6 +12,12 @@ import {
12
12
  DestinationCreateAWSKinesis$Outbound,
13
13
  DestinationCreateAWSKinesis$outboundSchema,
14
14
  } from "./destinationcreateawskinesis.js";
15
+ import {
16
+ DestinationCreateAwss3,
17
+ DestinationCreateAwss3$inboundSchema,
18
+ DestinationCreateAwss3$Outbound,
19
+ DestinationCreateAwss3$outboundSchema,
20
+ } from "./destinationcreateawss3.js";
15
21
  import {
16
22
  DestinationCreateAWSSQS,
17
23
  DestinationCreateAWSSQS$inboundSchema,
@@ -24,6 +30,12 @@ import {
24
30
  DestinationCreateAzureServiceBus$Outbound,
25
31
  DestinationCreateAzureServiceBus$outboundSchema,
26
32
  } from "./destinationcreateazureservicebus.js";
33
+ import {
34
+ DestinationCreateGCPPubSub,
35
+ DestinationCreateGCPPubSub$inboundSchema,
36
+ DestinationCreateGCPPubSub$Outbound,
37
+ DestinationCreateGCPPubSub$outboundSchema,
38
+ } from "./destinationcreategcppubsub.js";
27
39
  import {
28
40
  DestinationCreateHookdeck,
29
41
  DestinationCreateHookdeck$inboundSchema,
@@ -48,6 +60,8 @@ export type DestinationCreate =
48
60
  | (DestinationCreateRabbitMQ & { type: "rabbitmq" })
49
61
  | (DestinationCreateAWSKinesis & { type: "aws_kinesis" })
50
62
  | (DestinationCreateAzureServiceBus & { type: "azure_servicebus" })
63
+ | (DestinationCreateAwss3 & { type: "aws_s3" })
64
+ | (DestinationCreateGCPPubSub & { type: "gcp_pubsub" })
51
65
  | (DestinationCreateWebhook & { type: "webhook" })
52
66
  | (DestinationCreateHookdeck & { type: "hookdeck" });
53
67
 
@@ -77,6 +91,16 @@ export const DestinationCreate$inboundSchema: z.ZodType<
77
91
  type: v.type,
78
92
  })),
79
93
  ),
94
+ DestinationCreateAwss3$inboundSchema.and(
95
+ z.object({ type: z.literal("aws_s3") }).transform((v) => ({
96
+ type: v.type,
97
+ })),
98
+ ),
99
+ DestinationCreateGCPPubSub$inboundSchema.and(
100
+ z.object({ type: z.literal("gcp_pubsub") }).transform((v) => ({
101
+ type: v.type,
102
+ })),
103
+ ),
80
104
  DestinationCreateWebhook$inboundSchema.and(
81
105
  z.object({ type: z.literal("webhook") }).transform((v) => ({
82
106
  type: v.type,
@@ -95,6 +119,8 @@ export type DestinationCreate$Outbound =
95
119
  | (DestinationCreateRabbitMQ$Outbound & { type: "rabbitmq" })
96
120
  | (DestinationCreateAWSKinesis$Outbound & { type: "aws_kinesis" })
97
121
  | (DestinationCreateAzureServiceBus$Outbound & { type: "azure_servicebus" })
122
+ | (DestinationCreateAwss3$Outbound & { type: "aws_s3" })
123
+ | (DestinationCreateGCPPubSub$Outbound & { type: "gcp_pubsub" })
98
124
  | (DestinationCreateWebhook$Outbound & { type: "webhook" })
99
125
  | (DestinationCreateHookdeck$Outbound & { type: "hookdeck" });
100
126
 
@@ -124,6 +150,16 @@ export const DestinationCreate$outboundSchema: z.ZodType<
124
150
  type: v.type,
125
151
  })),
126
152
  ),
153
+ DestinationCreateAwss3$outboundSchema.and(
154
+ z.object({ type: z.literal("aws_s3") }).transform((v) => ({
155
+ type: v.type,
156
+ })),
157
+ ),
158
+ DestinationCreateGCPPubSub$outboundSchema.and(
159
+ z.object({ type: z.literal("gcp_pubsub") }).transform((v) => ({
160
+ type: v.type,
161
+ })),
162
+ ),
127
163
  DestinationCreateWebhook$outboundSchema.and(
128
164
  z.object({ type: z.literal("webhook") }).transform((v) => ({
129
165
  type: v.type,
@@ -0,0 +1,144 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod";
6
+ import { safeParse } from "../../lib/schemas.js";
7
+ import { ClosedEnum } from "../../types/enums.js";
8
+ import { Result as SafeParseResult } from "../../types/fp.js";
9
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
10
+ import {
11
+ Awss3Config,
12
+ Awss3Config$inboundSchema,
13
+ Awss3Config$Outbound,
14
+ Awss3Config$outboundSchema,
15
+ } from "./awss3config.js";
16
+ import {
17
+ Awss3Credentials,
18
+ Awss3Credentials$inboundSchema,
19
+ Awss3Credentials$Outbound,
20
+ Awss3Credentials$outboundSchema,
21
+ } from "./awss3credentials.js";
22
+ import {
23
+ Topics,
24
+ Topics$inboundSchema,
25
+ Topics$Outbound,
26
+ Topics$outboundSchema,
27
+ } from "./topics.js";
28
+
29
+ /**
30
+ * Type of the destination. Must be 'aws_s3'.
31
+ */
32
+ export const DestinationCreateAwss3Type = {
33
+ AwsS3: "aws_s3",
34
+ } as const;
35
+ /**
36
+ * Type of the destination. Must be 'aws_s3'.
37
+ */
38
+ export type DestinationCreateAwss3Type = ClosedEnum<
39
+ typeof DestinationCreateAwss3Type
40
+ >;
41
+
42
+ export type DestinationCreateAwss3 = {
43
+ /**
44
+ * Optional user-provided ID. A UUID will be generated if empty.
45
+ */
46
+ id?: string | undefined;
47
+ /**
48
+ * Type of the destination. Must be 'aws_s3'.
49
+ */
50
+ type: DestinationCreateAwss3Type;
51
+ /**
52
+ * "*" or an array of enabled topics.
53
+ */
54
+ topics: Topics;
55
+ config: Awss3Config;
56
+ credentials: Awss3Credentials;
57
+ };
58
+
59
+ /** @internal */
60
+ export const DestinationCreateAwss3Type$inboundSchema: z.ZodNativeEnum<
61
+ typeof DestinationCreateAwss3Type
62
+ > = z.nativeEnum(DestinationCreateAwss3Type);
63
+
64
+ /** @internal */
65
+ export const DestinationCreateAwss3Type$outboundSchema: z.ZodNativeEnum<
66
+ typeof DestinationCreateAwss3Type
67
+ > = DestinationCreateAwss3Type$inboundSchema;
68
+
69
+ /**
70
+ * @internal
71
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
72
+ */
73
+ export namespace DestinationCreateAwss3Type$ {
74
+ /** @deprecated use `DestinationCreateAwss3Type$inboundSchema` instead. */
75
+ export const inboundSchema = DestinationCreateAwss3Type$inboundSchema;
76
+ /** @deprecated use `DestinationCreateAwss3Type$outboundSchema` instead. */
77
+ export const outboundSchema = DestinationCreateAwss3Type$outboundSchema;
78
+ }
79
+
80
+ /** @internal */
81
+ export const DestinationCreateAwss3$inboundSchema: z.ZodType<
82
+ DestinationCreateAwss3,
83
+ z.ZodTypeDef,
84
+ unknown
85
+ > = z.object({
86
+ id: z.string().optional(),
87
+ type: DestinationCreateAwss3Type$inboundSchema,
88
+ topics: Topics$inboundSchema,
89
+ config: Awss3Config$inboundSchema,
90
+ credentials: Awss3Credentials$inboundSchema,
91
+ });
92
+
93
+ /** @internal */
94
+ export type DestinationCreateAwss3$Outbound = {
95
+ id?: string | undefined;
96
+ type: string;
97
+ topics: Topics$Outbound;
98
+ config: Awss3Config$Outbound;
99
+ credentials: Awss3Credentials$Outbound;
100
+ };
101
+
102
+ /** @internal */
103
+ export const DestinationCreateAwss3$outboundSchema: z.ZodType<
104
+ DestinationCreateAwss3$Outbound,
105
+ z.ZodTypeDef,
106
+ DestinationCreateAwss3
107
+ > = z.object({
108
+ id: z.string().optional(),
109
+ type: DestinationCreateAwss3Type$outboundSchema,
110
+ topics: Topics$outboundSchema,
111
+ config: Awss3Config$outboundSchema,
112
+ credentials: Awss3Credentials$outboundSchema,
113
+ });
114
+
115
+ /**
116
+ * @internal
117
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
118
+ */
119
+ export namespace DestinationCreateAwss3$ {
120
+ /** @deprecated use `DestinationCreateAwss3$inboundSchema` instead. */
121
+ export const inboundSchema = DestinationCreateAwss3$inboundSchema;
122
+ /** @deprecated use `DestinationCreateAwss3$outboundSchema` instead. */
123
+ export const outboundSchema = DestinationCreateAwss3$outboundSchema;
124
+ /** @deprecated use `DestinationCreateAwss3$Outbound` instead. */
125
+ export type Outbound = DestinationCreateAwss3$Outbound;
126
+ }
127
+
128
+ export function destinationCreateAwss3ToJSON(
129
+ destinationCreateAwss3: DestinationCreateAwss3,
130
+ ): string {
131
+ return JSON.stringify(
132
+ DestinationCreateAwss3$outboundSchema.parse(destinationCreateAwss3),
133
+ );
134
+ }
135
+
136
+ export function destinationCreateAwss3FromJSON(
137
+ jsonString: string,
138
+ ): SafeParseResult<DestinationCreateAwss3, SDKValidationError> {
139
+ return safeParse(
140
+ jsonString,
141
+ (x) => DestinationCreateAwss3$inboundSchema.parse(JSON.parse(x)),
142
+ `Failed to parse 'DestinationCreateAwss3' from JSON`,
143
+ );
144
+ }
@@ -0,0 +1,144 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod";
6
+ import { safeParse } from "../../lib/schemas.js";
7
+ import { ClosedEnum } from "../../types/enums.js";
8
+ import { Result as SafeParseResult } from "../../types/fp.js";
9
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
10
+ import {
11
+ GCPPubSubConfig,
12
+ GCPPubSubConfig$inboundSchema,
13
+ GCPPubSubConfig$Outbound,
14
+ GCPPubSubConfig$outboundSchema,
15
+ } from "./gcppubsubconfig.js";
16
+ import {
17
+ GCPPubSubCredentials,
18
+ GCPPubSubCredentials$inboundSchema,
19
+ GCPPubSubCredentials$Outbound,
20
+ GCPPubSubCredentials$outboundSchema,
21
+ } from "./gcppubsubcredentials.js";
22
+ import {
23
+ Topics,
24
+ Topics$inboundSchema,
25
+ Topics$Outbound,
26
+ Topics$outboundSchema,
27
+ } from "./topics.js";
28
+
29
+ /**
30
+ * Type of the destination. Must be 'gcp_pubsub'.
31
+ */
32
+ export const DestinationCreateGCPPubSubType = {
33
+ GcpPubsub: "gcp_pubsub",
34
+ } as const;
35
+ /**
36
+ * Type of the destination. Must be 'gcp_pubsub'.
37
+ */
38
+ export type DestinationCreateGCPPubSubType = ClosedEnum<
39
+ typeof DestinationCreateGCPPubSubType
40
+ >;
41
+
42
+ export type DestinationCreateGCPPubSub = {
43
+ /**
44
+ * Optional user-provided ID. A UUID will be generated if empty.
45
+ */
46
+ id?: string | undefined;
47
+ /**
48
+ * Type of the destination. Must be 'gcp_pubsub'.
49
+ */
50
+ type: DestinationCreateGCPPubSubType;
51
+ /**
52
+ * "*" or an array of enabled topics.
53
+ */
54
+ topics: Topics;
55
+ config: GCPPubSubConfig;
56
+ credentials: GCPPubSubCredentials;
57
+ };
58
+
59
+ /** @internal */
60
+ export const DestinationCreateGCPPubSubType$inboundSchema: z.ZodNativeEnum<
61
+ typeof DestinationCreateGCPPubSubType
62
+ > = z.nativeEnum(DestinationCreateGCPPubSubType);
63
+
64
+ /** @internal */
65
+ export const DestinationCreateGCPPubSubType$outboundSchema: z.ZodNativeEnum<
66
+ typeof DestinationCreateGCPPubSubType
67
+ > = DestinationCreateGCPPubSubType$inboundSchema;
68
+
69
+ /**
70
+ * @internal
71
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
72
+ */
73
+ export namespace DestinationCreateGCPPubSubType$ {
74
+ /** @deprecated use `DestinationCreateGCPPubSubType$inboundSchema` instead. */
75
+ export const inboundSchema = DestinationCreateGCPPubSubType$inboundSchema;
76
+ /** @deprecated use `DestinationCreateGCPPubSubType$outboundSchema` instead. */
77
+ export const outboundSchema = DestinationCreateGCPPubSubType$outboundSchema;
78
+ }
79
+
80
+ /** @internal */
81
+ export const DestinationCreateGCPPubSub$inboundSchema: z.ZodType<
82
+ DestinationCreateGCPPubSub,
83
+ z.ZodTypeDef,
84
+ unknown
85
+ > = z.object({
86
+ id: z.string().optional(),
87
+ type: DestinationCreateGCPPubSubType$inboundSchema,
88
+ topics: Topics$inboundSchema,
89
+ config: GCPPubSubConfig$inboundSchema,
90
+ credentials: GCPPubSubCredentials$inboundSchema,
91
+ });
92
+
93
+ /** @internal */
94
+ export type DestinationCreateGCPPubSub$Outbound = {
95
+ id?: string | undefined;
96
+ type: string;
97
+ topics: Topics$Outbound;
98
+ config: GCPPubSubConfig$Outbound;
99
+ credentials: GCPPubSubCredentials$Outbound;
100
+ };
101
+
102
+ /** @internal */
103
+ export const DestinationCreateGCPPubSub$outboundSchema: z.ZodType<
104
+ DestinationCreateGCPPubSub$Outbound,
105
+ z.ZodTypeDef,
106
+ DestinationCreateGCPPubSub
107
+ > = z.object({
108
+ id: z.string().optional(),
109
+ type: DestinationCreateGCPPubSubType$outboundSchema,
110
+ topics: Topics$outboundSchema,
111
+ config: GCPPubSubConfig$outboundSchema,
112
+ credentials: GCPPubSubCredentials$outboundSchema,
113
+ });
114
+
115
+ /**
116
+ * @internal
117
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
118
+ */
119
+ export namespace DestinationCreateGCPPubSub$ {
120
+ /** @deprecated use `DestinationCreateGCPPubSub$inboundSchema` instead. */
121
+ export const inboundSchema = DestinationCreateGCPPubSub$inboundSchema;
122
+ /** @deprecated use `DestinationCreateGCPPubSub$outboundSchema` instead. */
123
+ export const outboundSchema = DestinationCreateGCPPubSub$outboundSchema;
124
+ /** @deprecated use `DestinationCreateGCPPubSub$Outbound` instead. */
125
+ export type Outbound = DestinationCreateGCPPubSub$Outbound;
126
+ }
127
+
128
+ export function destinationCreateGCPPubSubToJSON(
129
+ destinationCreateGCPPubSub: DestinationCreateGCPPubSub,
130
+ ): string {
131
+ return JSON.stringify(
132
+ DestinationCreateGCPPubSub$outboundSchema.parse(destinationCreateGCPPubSub),
133
+ );
134
+ }
135
+
136
+ export function destinationCreateGCPPubSubFromJSON(
137
+ jsonString: string,
138
+ ): SafeParseResult<DestinationCreateGCPPubSub, SDKValidationError> {
139
+ return safeParse(
140
+ jsonString,
141
+ (x) => DestinationCreateGCPPubSub$inboundSchema.parse(JSON.parse(x)),
142
+ `Failed to parse 'DestinationCreateGCPPubSub' from JSON`,
143
+ );
144
+ }
@@ -0,0 +1,187 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod";
6
+ import { remap as remap$ } from "../../lib/primitives.js";
7
+ import { safeParse } from "../../lib/schemas.js";
8
+ import { ClosedEnum } from "../../types/enums.js";
9
+ import { Result as SafeParseResult } from "../../types/fp.js";
10
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
11
+ import {
12
+ GCPPubSubConfig,
13
+ GCPPubSubConfig$inboundSchema,
14
+ GCPPubSubConfig$Outbound,
15
+ GCPPubSubConfig$outboundSchema,
16
+ } from "./gcppubsubconfig.js";
17
+ import {
18
+ GCPPubSubCredentials,
19
+ GCPPubSubCredentials$inboundSchema,
20
+ GCPPubSubCredentials$Outbound,
21
+ GCPPubSubCredentials$outboundSchema,
22
+ } from "./gcppubsubcredentials.js";
23
+ import {
24
+ Topics,
25
+ Topics$inboundSchema,
26
+ Topics$Outbound,
27
+ Topics$outboundSchema,
28
+ } from "./topics.js";
29
+
30
+ /**
31
+ * Type of the destination.
32
+ */
33
+ export const DestinationGCPPubSubType = {
34
+ GcpPubsub: "gcp_pubsub",
35
+ } as const;
36
+ /**
37
+ * Type of the destination.
38
+ */
39
+ export type DestinationGCPPubSubType = ClosedEnum<
40
+ typeof DestinationGCPPubSubType
41
+ >;
42
+
43
+ export type DestinationGCPPubSub = {
44
+ /**
45
+ * Control plane generated ID or user provided ID for the destination.
46
+ */
47
+ id: string;
48
+ /**
49
+ * Type of the destination.
50
+ */
51
+ type: DestinationGCPPubSubType;
52
+ /**
53
+ * "*" or an array of enabled topics.
54
+ */
55
+ topics: Topics;
56
+ /**
57
+ * ISO Date when the destination was disabled, or null if enabled.
58
+ */
59
+ disabledAt: Date | null;
60
+ /**
61
+ * ISO Date when the destination was created.
62
+ */
63
+ createdAt: Date;
64
+ config: GCPPubSubConfig;
65
+ credentials: GCPPubSubCredentials;
66
+ /**
67
+ * A human-readable representation of the destination target (project/topic). Read-only.
68
+ */
69
+ target?: string | undefined;
70
+ /**
71
+ * A URL link to the destination target (GCP Console link to the topic). Read-only.
72
+ */
73
+ targetUrl?: string | null | undefined;
74
+ };
75
+
76
+ /** @internal */
77
+ export const DestinationGCPPubSubType$inboundSchema: z.ZodNativeEnum<
78
+ typeof DestinationGCPPubSubType
79
+ > = z.nativeEnum(DestinationGCPPubSubType);
80
+
81
+ /** @internal */
82
+ export const DestinationGCPPubSubType$outboundSchema: z.ZodNativeEnum<
83
+ typeof DestinationGCPPubSubType
84
+ > = DestinationGCPPubSubType$inboundSchema;
85
+
86
+ /**
87
+ * @internal
88
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
89
+ */
90
+ export namespace DestinationGCPPubSubType$ {
91
+ /** @deprecated use `DestinationGCPPubSubType$inboundSchema` instead. */
92
+ export const inboundSchema = DestinationGCPPubSubType$inboundSchema;
93
+ /** @deprecated use `DestinationGCPPubSubType$outboundSchema` instead. */
94
+ export const outboundSchema = DestinationGCPPubSubType$outboundSchema;
95
+ }
96
+
97
+ /** @internal */
98
+ export const DestinationGCPPubSub$inboundSchema: z.ZodType<
99
+ DestinationGCPPubSub,
100
+ z.ZodTypeDef,
101
+ unknown
102
+ > = z.object({
103
+ id: z.string(),
104
+ type: DestinationGCPPubSubType$inboundSchema,
105
+ topics: Topics$inboundSchema,
106
+ disabled_at: z.nullable(
107
+ z.string().datetime({ offset: true }).transform(v => new Date(v)),
108
+ ),
109
+ created_at: z.string().datetime({ offset: true }).transform(v => new Date(v)),
110
+ config: GCPPubSubConfig$inboundSchema,
111
+ credentials: GCPPubSubCredentials$inboundSchema,
112
+ target: z.string().optional(),
113
+ target_url: z.nullable(z.string()).optional(),
114
+ }).transform((v) => {
115
+ return remap$(v, {
116
+ "disabled_at": "disabledAt",
117
+ "created_at": "createdAt",
118
+ "target_url": "targetUrl",
119
+ });
120
+ });
121
+
122
+ /** @internal */
123
+ export type DestinationGCPPubSub$Outbound = {
124
+ id: string;
125
+ type: string;
126
+ topics: Topics$Outbound;
127
+ disabled_at: string | null;
128
+ created_at: string;
129
+ config: GCPPubSubConfig$Outbound;
130
+ credentials: GCPPubSubCredentials$Outbound;
131
+ target?: string | undefined;
132
+ target_url?: string | null | undefined;
133
+ };
134
+
135
+ /** @internal */
136
+ export const DestinationGCPPubSub$outboundSchema: z.ZodType<
137
+ DestinationGCPPubSub$Outbound,
138
+ z.ZodTypeDef,
139
+ DestinationGCPPubSub
140
+ > = z.object({
141
+ id: z.string(),
142
+ type: DestinationGCPPubSubType$outboundSchema,
143
+ topics: Topics$outboundSchema,
144
+ disabledAt: z.nullable(z.date().transform(v => v.toISOString())),
145
+ createdAt: z.date().transform(v => v.toISOString()),
146
+ config: GCPPubSubConfig$outboundSchema,
147
+ credentials: GCPPubSubCredentials$outboundSchema,
148
+ target: z.string().optional(),
149
+ targetUrl: z.nullable(z.string()).optional(),
150
+ }).transform((v) => {
151
+ return remap$(v, {
152
+ disabledAt: "disabled_at",
153
+ createdAt: "created_at",
154
+ targetUrl: "target_url",
155
+ });
156
+ });
157
+
158
+ /**
159
+ * @internal
160
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
161
+ */
162
+ export namespace DestinationGCPPubSub$ {
163
+ /** @deprecated use `DestinationGCPPubSub$inboundSchema` instead. */
164
+ export const inboundSchema = DestinationGCPPubSub$inboundSchema;
165
+ /** @deprecated use `DestinationGCPPubSub$outboundSchema` instead. */
166
+ export const outboundSchema = DestinationGCPPubSub$outboundSchema;
167
+ /** @deprecated use `DestinationGCPPubSub$Outbound` instead. */
168
+ export type Outbound = DestinationGCPPubSub$Outbound;
169
+ }
170
+
171
+ export function destinationGCPPubSubToJSON(
172
+ destinationGCPPubSub: DestinationGCPPubSub,
173
+ ): string {
174
+ return JSON.stringify(
175
+ DestinationGCPPubSub$outboundSchema.parse(destinationGCPPubSub),
176
+ );
177
+ }
178
+
179
+ export function destinationGCPPubSubFromJSON(
180
+ jsonString: string,
181
+ ): SafeParseResult<DestinationGCPPubSub, SDKValidationError> {
182
+ return safeParse(
183
+ jsonString,
184
+ (x) => DestinationGCPPubSub$inboundSchema.parse(JSON.parse(x)),
185
+ `Failed to parse 'DestinationGCPPubSub' from JSON`,
186
+ );
187
+ }
@@ -12,12 +12,30 @@ import {
12
12
  DestinationUpdateAWSKinesis$Outbound,
13
13
  DestinationUpdateAWSKinesis$outboundSchema,
14
14
  } from "./destinationupdateawskinesis.js";
15
+ import {
16
+ DestinationUpdateAwss3,
17
+ DestinationUpdateAwss3$inboundSchema,
18
+ DestinationUpdateAwss3$Outbound,
19
+ DestinationUpdateAwss3$outboundSchema,
20
+ } from "./destinationupdateawss3.js";
15
21
  import {
16
22
  DestinationUpdateAWSSQS,
17
23
  DestinationUpdateAWSSQS$inboundSchema,
18
24
  DestinationUpdateAWSSQS$Outbound,
19
25
  DestinationUpdateAWSSQS$outboundSchema,
20
26
  } from "./destinationupdateawssqs.js";
27
+ import {
28
+ DestinationUpdateAzureServiceBus,
29
+ DestinationUpdateAzureServiceBus$inboundSchema,
30
+ DestinationUpdateAzureServiceBus$Outbound,
31
+ DestinationUpdateAzureServiceBus$outboundSchema,
32
+ } from "./destinationupdateazureservicebus.js";
33
+ import {
34
+ DestinationUpdateGCPPubSub,
35
+ DestinationUpdateGCPPubSub$inboundSchema,
36
+ DestinationUpdateGCPPubSub$Outbound,
37
+ DestinationUpdateGCPPubSub$outboundSchema,
38
+ } from "./destinationupdategcppubsub.js";
21
39
  import {
22
40
  DestinationUpdateHookdeck,
23
41
  DestinationUpdateHookdeck$inboundSchema,
@@ -42,7 +60,10 @@ export type DestinationUpdate =
42
60
  | DestinationUpdateAWSSQS
43
61
  | DestinationUpdateRabbitMQ
44
62
  | DestinationUpdateHookdeck
45
- | DestinationUpdateAWSKinesis;
63
+ | DestinationUpdateAWSKinesis
64
+ | DestinationUpdateAzureServiceBus
65
+ | DestinationUpdateAwss3
66
+ | DestinationUpdateGCPPubSub;
46
67
 
47
68
  /** @internal */
48
69
  export const DestinationUpdate$inboundSchema: z.ZodType<
@@ -55,6 +76,9 @@ export const DestinationUpdate$inboundSchema: z.ZodType<
55
76
  DestinationUpdateRabbitMQ$inboundSchema,
56
77
  DestinationUpdateHookdeck$inboundSchema,
57
78
  DestinationUpdateAWSKinesis$inboundSchema,
79
+ DestinationUpdateAzureServiceBus$inboundSchema,
80
+ DestinationUpdateAwss3$inboundSchema,
81
+ DestinationUpdateGCPPubSub$inboundSchema,
58
82
  ]);
59
83
 
60
84
  /** @internal */
@@ -63,7 +87,10 @@ export type DestinationUpdate$Outbound =
63
87
  | DestinationUpdateAWSSQS$Outbound
64
88
  | DestinationUpdateRabbitMQ$Outbound
65
89
  | DestinationUpdateHookdeck$Outbound
66
- | DestinationUpdateAWSKinesis$Outbound;
90
+ | DestinationUpdateAWSKinesis$Outbound
91
+ | DestinationUpdateAzureServiceBus$Outbound
92
+ | DestinationUpdateAwss3$Outbound
93
+ | DestinationUpdateGCPPubSub$Outbound;
67
94
 
68
95
  /** @internal */
69
96
  export const DestinationUpdate$outboundSchema: z.ZodType<
@@ -76,6 +103,9 @@ export const DestinationUpdate$outboundSchema: z.ZodType<
76
103
  DestinationUpdateRabbitMQ$outboundSchema,
77
104
  DestinationUpdateHookdeck$outboundSchema,
78
105
  DestinationUpdateAWSKinesis$outboundSchema,
106
+ DestinationUpdateAzureServiceBus$outboundSchema,
107
+ DestinationUpdateAwss3$outboundSchema,
108
+ DestinationUpdateGCPPubSub$outboundSchema,
79
109
  ]);
80
110
 
81
111
  /**