@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
@@ -120,7 +120,7 @@ async function $do(
120
120
  options: client._options,
121
121
  baseURL: options?.serverURL ?? client._baseURL ?? "",
122
122
  operationID: "upsertTenant",
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: "listTenantTopics",
123
- oAuth2Scopes: [],
123
+ oAuth2Scopes: null,
124
124
 
125
125
  resolvedSecurity: requestSecurity,
126
126
 
@@ -95,7 +95,7 @@ async function $do(
95
95
  options: client._options,
96
96
  baseURL: options?.serverURL ?? client._baseURL ?? "",
97
97
  operationID: "listTopics",
98
- oAuth2Scopes: [],
98
+ oAuth2Scopes: null,
99
99
 
100
100
  resolvedSecurity: requestSecurity,
101
101
 
package/src/lib/config.ts CHANGED
@@ -73,8 +73,8 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
73
73
  export const SDK_METADATA = {
74
74
  language: "typescript",
75
75
  openapiDocVersion: "0.0.1",
76
- sdkVersion: "0.3.0",
77
- genVersion: "2.669.0",
76
+ sdkVersion: "0.5.0",
77
+ genVersion: "2.723.11",
78
78
  userAgent:
79
- "speakeasy-sdk/typescript 0.3.0 2.669.0 0.0.1 @hookdeck/outpost-sdk",
79
+ "speakeasy-sdk/typescript 0.5.0 2.723.11 0.0.1 @hookdeck/outpost-sdk",
80
80
  } as const;
@@ -83,7 +83,10 @@ type SecurityInputOAuth2 = {
83
83
  type SecurityInputOAuth2ClientCredentials = {
84
84
  type: "oauth2:client_credentials";
85
85
  value:
86
- | { clientID?: string | undefined; clientSecret?: string | undefined }
86
+ | {
87
+ clientID?: string | undefined;
88
+ clientSecret?: string | undefined;
89
+ }
87
90
  | null
88
91
  | string
89
92
  | undefined;
package/src/lib/url.ts CHANGED
@@ -10,7 +10,7 @@ export function pathToFunc(
10
10
  pathPattern: string,
11
11
  options?: { charEncoding?: "percent" | "none" },
12
12
  ): (params?: Params) => string {
13
- const paramRE = /\{([a-zA-Z0-9_]+?)\}/g;
13
+ const paramRE = /\{([a-zA-Z0-9_][a-zA-Z0-9_-]*?)\}/g;
14
14
 
15
15
  return function buildURLPath(params: Record<string, unknown> = {}): string {
16
16
  return pathPattern.replace(paramRE, function (_, placeholder) {
@@ -19,7 +19,7 @@ const routes = buildRouteMap({
19
19
  export const app = buildApplication(routes, {
20
20
  name: "mcp",
21
21
  versionInfo: {
22
- currentVersion: "0.3.0",
22
+ currentVersion: "0.5.0",
23
23
  },
24
24
  });
25
25
 
@@ -51,7 +51,7 @@ export function createMCPServer(deps: {
51
51
  }) {
52
52
  const server = new McpServer({
53
53
  name: "Outpost",
54
- version: "0.3.0",
54
+ version: "0.5.0",
55
55
  });
56
56
 
57
57
  const client = new OutpostCore({
@@ -30,7 +30,7 @@ Retrieves a list of events for the tenant, supporting cursor navigation (details
30
30
  };
31
31
  }
32
32
 
33
- const value = result.value;
33
+ const value = result.value.result;
34
34
 
35
35
  return formatResult(value, apiCall);
36
36
  },
@@ -30,7 +30,7 @@ Retrieves events associated with a specific destination for the tenant.`,
30
30
  };
31
31
  }
32
32
 
33
- const value = result.value;
33
+ const value = result.value.result;
34
34
 
35
35
  return formatResult(value, apiCall);
36
36
  },
@@ -0,0 +1,97 @@
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 { Result as SafeParseResult } from "../../types/fp.js";
9
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
10
+
11
+ export type Awss3Config = {
12
+ /**
13
+ * The name of your AWS S3 bucket.
14
+ */
15
+ bucket: string;
16
+ /**
17
+ * The AWS region where your bucket is located.
18
+ */
19
+ region: string;
20
+ /**
21
+ * JMESPath expression for generating S3 object keys. Default is join('', [time.rfc3339_nano, '_', metadata."event-id", '.json']).
22
+ */
23
+ keyTemplate?: string | undefined;
24
+ /**
25
+ * The storage class for the S3 objects (e.g., STANDARD, INTELLIGENT_TIERING, GLACIER, etc.). Defaults to "STANDARD".
26
+ */
27
+ storageClass?: string | undefined;
28
+ };
29
+
30
+ /** @internal */
31
+ export const Awss3Config$inboundSchema: z.ZodType<
32
+ Awss3Config,
33
+ z.ZodTypeDef,
34
+ unknown
35
+ > = z.object({
36
+ bucket: z.string(),
37
+ region: z.string(),
38
+ key_template: z.string().optional(),
39
+ storage_class: z.string().optional(),
40
+ }).transform((v) => {
41
+ return remap$(v, {
42
+ "key_template": "keyTemplate",
43
+ "storage_class": "storageClass",
44
+ });
45
+ });
46
+
47
+ /** @internal */
48
+ export type Awss3Config$Outbound = {
49
+ bucket: string;
50
+ region: string;
51
+ key_template?: string | undefined;
52
+ storage_class?: string | undefined;
53
+ };
54
+
55
+ /** @internal */
56
+ export const Awss3Config$outboundSchema: z.ZodType<
57
+ Awss3Config$Outbound,
58
+ z.ZodTypeDef,
59
+ Awss3Config
60
+ > = z.object({
61
+ bucket: z.string(),
62
+ region: z.string(),
63
+ keyTemplate: z.string().optional(),
64
+ storageClass: z.string().optional(),
65
+ }).transform((v) => {
66
+ return remap$(v, {
67
+ keyTemplate: "key_template",
68
+ storageClass: "storage_class",
69
+ });
70
+ });
71
+
72
+ /**
73
+ * @internal
74
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
75
+ */
76
+ export namespace Awss3Config$ {
77
+ /** @deprecated use `Awss3Config$inboundSchema` instead. */
78
+ export const inboundSchema = Awss3Config$inboundSchema;
79
+ /** @deprecated use `Awss3Config$outboundSchema` instead. */
80
+ export const outboundSchema = Awss3Config$outboundSchema;
81
+ /** @deprecated use `Awss3Config$Outbound` instead. */
82
+ export type Outbound = Awss3Config$Outbound;
83
+ }
84
+
85
+ export function awss3ConfigToJSON(awss3Config: Awss3Config): string {
86
+ return JSON.stringify(Awss3Config$outboundSchema.parse(awss3Config));
87
+ }
88
+
89
+ export function awss3ConfigFromJSON(
90
+ jsonString: string,
91
+ ): SafeParseResult<Awss3Config, SDKValidationError> {
92
+ return safeParse(
93
+ jsonString,
94
+ (x) => Awss3Config$inboundSchema.parse(JSON.parse(x)),
95
+ `Failed to parse 'Awss3Config' from JSON`,
96
+ );
97
+ }
@@ -0,0 +1,83 @@
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 { Result as SafeParseResult } from "../../types/fp.js";
8
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
9
+
10
+ export type Awss3Credentials = {
11
+ /**
12
+ * AWS Access Key ID.
13
+ */
14
+ key: string;
15
+ /**
16
+ * AWS Secret Access Key.
17
+ */
18
+ secret: string;
19
+ /**
20
+ * Optional AWS Session Token (for temporary credentials).
21
+ */
22
+ session?: string | undefined;
23
+ };
24
+
25
+ /** @internal */
26
+ export const Awss3Credentials$inboundSchema: z.ZodType<
27
+ Awss3Credentials,
28
+ z.ZodTypeDef,
29
+ unknown
30
+ > = z.object({
31
+ key: z.string(),
32
+ secret: z.string(),
33
+ session: z.string().optional(),
34
+ });
35
+
36
+ /** @internal */
37
+ export type Awss3Credentials$Outbound = {
38
+ key: string;
39
+ secret: string;
40
+ session?: string | undefined;
41
+ };
42
+
43
+ /** @internal */
44
+ export const Awss3Credentials$outboundSchema: z.ZodType<
45
+ Awss3Credentials$Outbound,
46
+ z.ZodTypeDef,
47
+ Awss3Credentials
48
+ > = z.object({
49
+ key: z.string(),
50
+ secret: z.string(),
51
+ session: z.string().optional(),
52
+ });
53
+
54
+ /**
55
+ * @internal
56
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
57
+ */
58
+ export namespace Awss3Credentials$ {
59
+ /** @deprecated use `Awss3Credentials$inboundSchema` instead. */
60
+ export const inboundSchema = Awss3Credentials$inboundSchema;
61
+ /** @deprecated use `Awss3Credentials$outboundSchema` instead. */
62
+ export const outboundSchema = Awss3Credentials$outboundSchema;
63
+ /** @deprecated use `Awss3Credentials$Outbound` instead. */
64
+ export type Outbound = Awss3Credentials$Outbound;
65
+ }
66
+
67
+ export function awss3CredentialsToJSON(
68
+ awss3Credentials: Awss3Credentials,
69
+ ): string {
70
+ return JSON.stringify(
71
+ Awss3Credentials$outboundSchema.parse(awss3Credentials),
72
+ );
73
+ }
74
+
75
+ export function awss3CredentialsFromJSON(
76
+ jsonString: string,
77
+ ): SafeParseResult<Awss3Credentials, SDKValidationError> {
78
+ return safeParse(
79
+ jsonString,
80
+ (x) => Awss3Credentials$inboundSchema.parse(JSON.parse(x)),
81
+ `Failed to parse 'Awss3Credentials' from JSON`,
82
+ );
83
+ }
@@ -9,37 +9,39 @@ import { ClosedEnum } from "../../types/enums.js";
9
9
  import { Result as SafeParseResult } from "../../types/fp.js";
10
10
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
11
11
 
12
- export const Status = {
12
+ export const DeliveryAttemptStatus = {
13
13
  Success: "success",
14
14
  Failed: "failed",
15
15
  } as const;
16
- export type Status = ClosedEnum<typeof Status>;
16
+ export type DeliveryAttemptStatus = ClosedEnum<typeof DeliveryAttemptStatus>;
17
17
 
18
18
  export type DeliveryAttempt = {
19
19
  deliveredAt?: Date | undefined;
20
- status?: Status | undefined;
20
+ status?: DeliveryAttemptStatus | undefined;
21
21
  responseStatusCode?: number | undefined;
22
22
  responseBody?: string | undefined;
23
23
  responseHeaders?: { [k: string]: string } | undefined;
24
24
  };
25
25
 
26
26
  /** @internal */
27
- export const Status$inboundSchema: z.ZodNativeEnum<typeof Status> = z
28
- .nativeEnum(Status);
27
+ export const DeliveryAttemptStatus$inboundSchema: z.ZodNativeEnum<
28
+ typeof DeliveryAttemptStatus
29
+ > = z.nativeEnum(DeliveryAttemptStatus);
29
30
 
30
31
  /** @internal */
31
- export const Status$outboundSchema: z.ZodNativeEnum<typeof Status> =
32
- Status$inboundSchema;
32
+ export const DeliveryAttemptStatus$outboundSchema: z.ZodNativeEnum<
33
+ typeof DeliveryAttemptStatus
34
+ > = DeliveryAttemptStatus$inboundSchema;
33
35
 
34
36
  /**
35
37
  * @internal
36
38
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
37
39
  */
38
- export namespace Status$ {
39
- /** @deprecated use `Status$inboundSchema` instead. */
40
- export const inboundSchema = Status$inboundSchema;
41
- /** @deprecated use `Status$outboundSchema` instead. */
42
- export const outboundSchema = Status$outboundSchema;
40
+ export namespace DeliveryAttemptStatus$ {
41
+ /** @deprecated use `DeliveryAttemptStatus$inboundSchema` instead. */
42
+ export const inboundSchema = DeliveryAttemptStatus$inboundSchema;
43
+ /** @deprecated use `DeliveryAttemptStatus$outboundSchema` instead. */
44
+ export const outboundSchema = DeliveryAttemptStatus$outboundSchema;
43
45
  }
44
46
 
45
47
  /** @internal */
@@ -51,7 +53,7 @@ export const DeliveryAttempt$inboundSchema: z.ZodType<
51
53
  delivered_at: z.string().datetime({ offset: true }).transform(v =>
52
54
  new Date(v)
53
55
  ).optional(),
54
- status: Status$inboundSchema.optional(),
56
+ status: DeliveryAttemptStatus$inboundSchema.optional(),
55
57
  response_status_code: z.number().int().optional(),
56
58
  response_body: z.string().optional(),
57
59
  response_headers: z.record(z.string()).optional(),
@@ -80,7 +82,7 @@ export const DeliveryAttempt$outboundSchema: z.ZodType<
80
82
  DeliveryAttempt
81
83
  > = z.object({
82
84
  deliveredAt: z.date().transform(v => v.toISOString()).optional(),
83
- status: Status$outboundSchema.optional(),
85
+ status: DeliveryAttemptStatus$outboundSchema.optional(),
84
86
  responseStatusCode: z.number().int().optional(),
85
87
  responseBody: z.string().optional(),
86
88
  responseHeaders: z.record(z.string()).optional(),
@@ -12,6 +12,12 @@ import {
12
12
  DestinationAWSKinesis$Outbound,
13
13
  DestinationAWSKinesis$outboundSchema,
14
14
  } from "./destinationawskinesis.js";
15
+ import {
16
+ DestinationAwss3,
17
+ DestinationAwss3$inboundSchema,
18
+ DestinationAwss3$Outbound,
19
+ DestinationAwss3$outboundSchema,
20
+ } from "./destinationawss3.js";
15
21
  import {
16
22
  DestinationAWSSQS,
17
23
  DestinationAWSSQS$inboundSchema,
@@ -24,6 +30,12 @@ import {
24
30
  DestinationAzureServiceBus$Outbound,
25
31
  DestinationAzureServiceBus$outboundSchema,
26
32
  } from "./destinationazureservicebus.js";
33
+ import {
34
+ DestinationGCPPubSub,
35
+ DestinationGCPPubSub$inboundSchema,
36
+ DestinationGCPPubSub$Outbound,
37
+ DestinationGCPPubSub$outboundSchema,
38
+ } from "./destinationgcppubsub.js";
27
39
  import {
28
40
  DestinationHookdeck,
29
41
  DestinationHookdeck$inboundSchema,
@@ -49,6 +61,8 @@ export type Destination =
49
61
  | (DestinationRabbitMQ & { type: "rabbitmq" })
50
62
  | (DestinationAWSKinesis & { type: "aws_kinesis" })
51
63
  | (DestinationAzureServiceBus & { type: "azure_servicebus" })
64
+ | (DestinationAwss3 & { type: "aws_s3" })
65
+ | (DestinationGCPPubSub & { type: "gcp_pubsub" })
52
66
  | (DestinationHookdeck & { type: "hookdeck" });
53
67
 
54
68
  /** @internal */
@@ -82,6 +96,16 @@ export const Destination$inboundSchema: z.ZodType<
82
96
  type: v.type,
83
97
  })),
84
98
  ),
99
+ DestinationAwss3$inboundSchema.and(
100
+ z.object({ type: z.literal("aws_s3") }).transform((v) => ({
101
+ type: v.type,
102
+ })),
103
+ ),
104
+ DestinationGCPPubSub$inboundSchema.and(
105
+ z.object({ type: z.literal("gcp_pubsub") }).transform((v) => ({
106
+ type: v.type,
107
+ })),
108
+ ),
85
109
  DestinationHookdeck$inboundSchema.and(
86
110
  z.object({ type: z.literal("hookdeck") }).transform((v) => ({
87
111
  type: v.type,
@@ -96,6 +120,8 @@ export type Destination$Outbound =
96
120
  | (DestinationRabbitMQ$Outbound & { type: "rabbitmq" })
97
121
  | (DestinationAWSKinesis$Outbound & { type: "aws_kinesis" })
98
122
  | (DestinationAzureServiceBus$Outbound & { type: "azure_servicebus" })
123
+ | (DestinationAwss3$Outbound & { type: "aws_s3" })
124
+ | (DestinationGCPPubSub$Outbound & { type: "gcp_pubsub" })
99
125
  | (DestinationHookdeck$Outbound & { type: "hookdeck" });
100
126
 
101
127
  /** @internal */
@@ -129,6 +155,16 @@ export const Destination$outboundSchema: z.ZodType<
129
155
  type: v.type,
130
156
  })),
131
157
  ),
158
+ DestinationAwss3$outboundSchema.and(
159
+ z.object({ type: z.literal("aws_s3") }).transform((v) => ({
160
+ type: v.type,
161
+ })),
162
+ ),
163
+ DestinationGCPPubSub$outboundSchema.and(
164
+ z.object({ type: z.literal("gcp_pubsub") }).transform((v) => ({
165
+ type: v.type,
166
+ })),
167
+ ),
132
168
  DestinationHookdeck$outboundSchema.and(
133
169
  z.object({ type: z.literal("hookdeck") }).transform((v) => ({
134
170
  type: v.type,
@@ -0,0 +1,185 @@
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
+ Awss3Config,
13
+ Awss3Config$inboundSchema,
14
+ Awss3Config$Outbound,
15
+ Awss3Config$outboundSchema,
16
+ } from "./awss3config.js";
17
+ import {
18
+ Awss3Credentials,
19
+ Awss3Credentials$inboundSchema,
20
+ Awss3Credentials$Outbound,
21
+ Awss3Credentials$outboundSchema,
22
+ } from "./awss3credentials.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 DestinationAwss3Type = {
34
+ AwsS3: "aws_s3",
35
+ } as const;
36
+ /**
37
+ * Type of the destination.
38
+ */
39
+ export type DestinationAwss3Type = ClosedEnum<typeof DestinationAwss3Type>;
40
+
41
+ export type DestinationAwss3 = {
42
+ /**
43
+ * Control plane generated ID or user provided ID for the destination.
44
+ */
45
+ id: string;
46
+ /**
47
+ * Type of the destination.
48
+ */
49
+ type: DestinationAwss3Type;
50
+ /**
51
+ * "*" or an array of enabled topics.
52
+ */
53
+ topics: Topics;
54
+ /**
55
+ * ISO Date when the destination was disabled, or null if enabled.
56
+ */
57
+ disabledAt: Date | null;
58
+ /**
59
+ * ISO Date when the destination was created.
60
+ */
61
+ createdAt: Date;
62
+ config: Awss3Config;
63
+ credentials: Awss3Credentials;
64
+ /**
65
+ * A human-readable representation of the destination target (bucket and region). Read-only.
66
+ */
67
+ target?: string | undefined;
68
+ /**
69
+ * A URL link to the destination target (AWS Console link to the bucket). Read-only.
70
+ */
71
+ targetUrl?: string | null | undefined;
72
+ };
73
+
74
+ /** @internal */
75
+ export const DestinationAwss3Type$inboundSchema: z.ZodNativeEnum<
76
+ typeof DestinationAwss3Type
77
+ > = z.nativeEnum(DestinationAwss3Type);
78
+
79
+ /** @internal */
80
+ export const DestinationAwss3Type$outboundSchema: z.ZodNativeEnum<
81
+ typeof DestinationAwss3Type
82
+ > = DestinationAwss3Type$inboundSchema;
83
+
84
+ /**
85
+ * @internal
86
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
87
+ */
88
+ export namespace DestinationAwss3Type$ {
89
+ /** @deprecated use `DestinationAwss3Type$inboundSchema` instead. */
90
+ export const inboundSchema = DestinationAwss3Type$inboundSchema;
91
+ /** @deprecated use `DestinationAwss3Type$outboundSchema` instead. */
92
+ export const outboundSchema = DestinationAwss3Type$outboundSchema;
93
+ }
94
+
95
+ /** @internal */
96
+ export const DestinationAwss3$inboundSchema: z.ZodType<
97
+ DestinationAwss3,
98
+ z.ZodTypeDef,
99
+ unknown
100
+ > = z.object({
101
+ id: z.string(),
102
+ type: DestinationAwss3Type$inboundSchema,
103
+ topics: Topics$inboundSchema,
104
+ disabled_at: z.nullable(
105
+ z.string().datetime({ offset: true }).transform(v => new Date(v)),
106
+ ),
107
+ created_at: z.string().datetime({ offset: true }).transform(v => new Date(v)),
108
+ config: Awss3Config$inboundSchema,
109
+ credentials: Awss3Credentials$inboundSchema,
110
+ target: z.string().optional(),
111
+ target_url: z.nullable(z.string()).optional(),
112
+ }).transform((v) => {
113
+ return remap$(v, {
114
+ "disabled_at": "disabledAt",
115
+ "created_at": "createdAt",
116
+ "target_url": "targetUrl",
117
+ });
118
+ });
119
+
120
+ /** @internal */
121
+ export type DestinationAwss3$Outbound = {
122
+ id: string;
123
+ type: string;
124
+ topics: Topics$Outbound;
125
+ disabled_at: string | null;
126
+ created_at: string;
127
+ config: Awss3Config$Outbound;
128
+ credentials: Awss3Credentials$Outbound;
129
+ target?: string | undefined;
130
+ target_url?: string | null | undefined;
131
+ };
132
+
133
+ /** @internal */
134
+ export const DestinationAwss3$outboundSchema: z.ZodType<
135
+ DestinationAwss3$Outbound,
136
+ z.ZodTypeDef,
137
+ DestinationAwss3
138
+ > = z.object({
139
+ id: z.string(),
140
+ type: DestinationAwss3Type$outboundSchema,
141
+ topics: Topics$outboundSchema,
142
+ disabledAt: z.nullable(z.date().transform(v => v.toISOString())),
143
+ createdAt: z.date().transform(v => v.toISOString()),
144
+ config: Awss3Config$outboundSchema,
145
+ credentials: Awss3Credentials$outboundSchema,
146
+ target: z.string().optional(),
147
+ targetUrl: z.nullable(z.string()).optional(),
148
+ }).transform((v) => {
149
+ return remap$(v, {
150
+ disabledAt: "disabled_at",
151
+ createdAt: "created_at",
152
+ targetUrl: "target_url",
153
+ });
154
+ });
155
+
156
+ /**
157
+ * @internal
158
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
159
+ */
160
+ export namespace DestinationAwss3$ {
161
+ /** @deprecated use `DestinationAwss3$inboundSchema` instead. */
162
+ export const inboundSchema = DestinationAwss3$inboundSchema;
163
+ /** @deprecated use `DestinationAwss3$outboundSchema` instead. */
164
+ export const outboundSchema = DestinationAwss3$outboundSchema;
165
+ /** @deprecated use `DestinationAwss3$Outbound` instead. */
166
+ export type Outbound = DestinationAwss3$Outbound;
167
+ }
168
+
169
+ export function destinationAwss3ToJSON(
170
+ destinationAwss3: DestinationAwss3,
171
+ ): string {
172
+ return JSON.stringify(
173
+ DestinationAwss3$outboundSchema.parse(destinationAwss3),
174
+ );
175
+ }
176
+
177
+ export function destinationAwss3FromJSON(
178
+ jsonString: string,
179
+ ): SafeParseResult<DestinationAwss3, SDKValidationError> {
180
+ return safeParse(
181
+ jsonString,
182
+ (x) => DestinationAwss3$inboundSchema.parse(JSON.parse(x)),
183
+ `Failed to parse 'DestinationAwss3' from JSON`,
184
+ );
185
+ }