@hookdeck/outpost-sdk 0.7.0 → 0.8.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 (727) hide show
  1. package/README.md +23 -71
  2. package/bin/mcp-server.js +1059 -1134
  3. package/bin/mcp-server.js.map +81 -81
  4. package/dist/commonjs/funcs/attemptsGet.d.ts +2 -1
  5. package/dist/commonjs/funcs/attemptsGet.d.ts.map +1 -1
  6. package/dist/commonjs/funcs/attemptsGet.js +17 -8
  7. package/dist/commonjs/funcs/attemptsGet.js.map +1 -1
  8. package/dist/commonjs/funcs/attemptsList.d.ts +5 -4
  9. package/dist/commonjs/funcs/attemptsList.d.ts.map +1 -1
  10. package/dist/commonjs/funcs/attemptsList.js +11 -9
  11. package/dist/commonjs/funcs/attemptsList.js.map +1 -1
  12. package/dist/commonjs/funcs/attemptsRetry.d.ts +1 -1
  13. package/dist/commonjs/funcs/attemptsRetry.d.ts.map +1 -1
  14. package/dist/commonjs/funcs/attemptsRetry.js +5 -4
  15. package/dist/commonjs/funcs/attemptsRetry.js.map +1 -1
  16. package/dist/commonjs/funcs/destinationsCreate.d.ts +2 -2
  17. package/dist/commonjs/funcs/destinationsCreate.d.ts.map +1 -1
  18. package/dist/commonjs/funcs/destinationsCreate.js +21 -9
  19. package/dist/commonjs/funcs/destinationsCreate.js.map +1 -1
  20. package/dist/commonjs/funcs/destinationsDelete.d.ts +2 -2
  21. package/dist/commonjs/funcs/destinationsDelete.d.ts.map +1 -1
  22. package/dist/commonjs/funcs/destinationsDelete.js +21 -9
  23. package/dist/commonjs/funcs/destinationsDelete.js.map +1 -1
  24. package/dist/commonjs/funcs/destinationsDisable.d.ts +2 -2
  25. package/dist/commonjs/funcs/destinationsDisable.d.ts.map +1 -1
  26. package/dist/commonjs/funcs/destinationsDisable.js +21 -9
  27. package/dist/commonjs/funcs/destinationsDisable.js.map +1 -1
  28. package/dist/commonjs/funcs/destinationsEnable.d.ts +2 -2
  29. package/dist/commonjs/funcs/destinationsEnable.d.ts.map +1 -1
  30. package/dist/commonjs/funcs/destinationsEnable.js +21 -9
  31. package/dist/commonjs/funcs/destinationsEnable.js.map +1 -1
  32. package/dist/commonjs/funcs/destinationsGet.d.ts +2 -2
  33. package/dist/commonjs/funcs/destinationsGet.d.ts.map +1 -1
  34. package/dist/commonjs/funcs/destinationsGet.js +21 -9
  35. package/dist/commonjs/funcs/destinationsGet.js.map +1 -1
  36. package/dist/commonjs/funcs/destinationsGetAttempt.d.ts +2 -1
  37. package/dist/commonjs/funcs/destinationsGetAttempt.d.ts.map +1 -1
  38. package/dist/commonjs/funcs/destinationsGetAttempt.js +23 -9
  39. package/dist/commonjs/funcs/destinationsGetAttempt.js.map +1 -1
  40. package/dist/commonjs/funcs/destinationsList.d.ts +2 -1
  41. package/dist/commonjs/funcs/destinationsList.d.ts.map +1 -1
  42. package/dist/commonjs/funcs/destinationsList.js +22 -9
  43. package/dist/commonjs/funcs/destinationsList.js.map +1 -1
  44. package/dist/commonjs/funcs/destinationsListAttempts.d.ts +1 -1
  45. package/dist/commonjs/funcs/destinationsListAttempts.d.ts.map +1 -1
  46. package/dist/commonjs/funcs/destinationsListAttempts.js +9 -5
  47. package/dist/commonjs/funcs/destinationsListAttempts.js.map +1 -1
  48. package/dist/commonjs/funcs/destinationsUpdate.d.ts +3 -1
  49. package/dist/commonjs/funcs/destinationsUpdate.d.ts.map +1 -1
  50. package/dist/commonjs/funcs/destinationsUpdate.js +22 -9
  51. package/dist/commonjs/funcs/destinationsUpdate.js.map +1 -1
  52. package/dist/commonjs/funcs/eventsGet.d.ts +2 -2
  53. package/dist/commonjs/funcs/eventsGet.d.ts.map +1 -1
  54. package/dist/commonjs/funcs/eventsGet.js +16 -8
  55. package/dist/commonjs/funcs/eventsGet.js.map +1 -1
  56. package/dist/commonjs/funcs/eventsList.d.ts +5 -4
  57. package/dist/commonjs/funcs/eventsList.d.ts.map +1 -1
  58. package/dist/commonjs/funcs/eventsList.js +11 -9
  59. package/dist/commonjs/funcs/eventsList.js.map +1 -1
  60. package/dist/commonjs/funcs/publishEvent.js +4 -4
  61. package/dist/commonjs/funcs/publishEvent.js.map +1 -1
  62. package/dist/commonjs/funcs/{schemasGetDestinationTypeJwt.d.ts → schemasGetDestinationType.d.ts} +2 -2
  63. package/dist/commonjs/funcs/schemasGetDestinationType.d.ts.map +1 -0
  64. package/dist/commonjs/funcs/{schemasGetDestinationTypeJwt.js → schemasGetDestinationType.js} +13 -9
  65. package/dist/commonjs/funcs/schemasGetDestinationType.js.map +1 -0
  66. package/dist/commonjs/funcs/{schemasListDestinationTypesJwt.d.ts → schemasListDestinationTypes.d.ts} +2 -2
  67. package/dist/commonjs/funcs/schemasListDestinationTypes.d.ts.map +1 -0
  68. package/dist/commonjs/funcs/{schemasListDestinationTypesJwt.js → schemasListDestinationTypes.js} +7 -6
  69. package/dist/commonjs/funcs/schemasListDestinationTypes.js.map +1 -0
  70. package/dist/commonjs/funcs/tenantsDelete.d.ts +2 -2
  71. package/dist/commonjs/funcs/tenantsDelete.d.ts.map +1 -1
  72. package/dist/commonjs/funcs/tenantsDelete.js +20 -9
  73. package/dist/commonjs/funcs/tenantsDelete.js.map +1 -1
  74. package/dist/commonjs/funcs/tenantsGet.d.ts +2 -2
  75. package/dist/commonjs/funcs/tenantsGet.d.ts.map +1 -1
  76. package/dist/commonjs/funcs/tenantsGet.js +20 -9
  77. package/dist/commonjs/funcs/tenantsGet.js.map +1 -1
  78. package/dist/commonjs/funcs/tenantsGetPortalUrl.d.ts +3 -2
  79. package/dist/commonjs/funcs/tenantsGetPortalUrl.d.ts.map +1 -1
  80. package/dist/commonjs/funcs/tenantsGetPortalUrl.js +22 -10
  81. package/dist/commonjs/funcs/tenantsGetPortalUrl.js.map +1 -1
  82. package/dist/commonjs/funcs/tenantsGetToken.d.ts +3 -3
  83. package/dist/commonjs/funcs/tenantsGetToken.d.ts.map +1 -1
  84. package/dist/commonjs/funcs/tenantsGetToken.js +21 -10
  85. package/dist/commonjs/funcs/tenantsGetToken.js.map +1 -1
  86. package/dist/commonjs/funcs/tenantsListTenants.d.ts +2 -3
  87. package/dist/commonjs/funcs/tenantsListTenants.d.ts.map +1 -1
  88. package/dist/commonjs/funcs/tenantsListTenants.js +16 -13
  89. package/dist/commonjs/funcs/tenantsListTenants.js.map +1 -1
  90. package/dist/commonjs/funcs/tenantsUpsert.d.ts +2 -2
  91. package/dist/commonjs/funcs/tenantsUpsert.d.ts.map +1 -1
  92. package/dist/commonjs/funcs/tenantsUpsert.js +21 -9
  93. package/dist/commonjs/funcs/tenantsUpsert.js.map +1 -1
  94. package/dist/commonjs/funcs/topicsList.js +4 -3
  95. package/dist/commonjs/funcs/topicsList.js.map +1 -1
  96. package/dist/commonjs/lib/config.d.ts +4 -12
  97. package/dist/commonjs/lib/config.d.ts.map +1 -1
  98. package/dist/commonjs/lib/config.js +3 -3
  99. package/dist/commonjs/lib/config.js.map +1 -1
  100. package/dist/commonjs/lib/matchers.d.ts.map +1 -1
  101. package/dist/commonjs/lib/matchers.js +0 -1
  102. package/dist/commonjs/lib/matchers.js.map +1 -1
  103. package/dist/commonjs/lib/security.d.ts.map +1 -1
  104. package/dist/commonjs/lib/security.js +2 -9
  105. package/dist/commonjs/lib/security.js.map +1 -1
  106. package/dist/commonjs/mcp-server/cli/start/command.d.ts.map +1 -1
  107. package/dist/commonjs/mcp-server/cli/start/command.js +2 -18
  108. package/dist/commonjs/mcp-server/cli/start/command.js.map +1 -1
  109. package/dist/commonjs/mcp-server/cli/start/impl.d.ts +1 -3
  110. package/dist/commonjs/mcp-server/cli/start/impl.d.ts.map +1 -1
  111. package/dist/commonjs/mcp-server/cli/start/impl.js +2 -10
  112. package/dist/commonjs/mcp-server/cli/start/impl.js.map +1 -1
  113. package/dist/commonjs/mcp-server/mcp-server.js +1 -1
  114. package/dist/commonjs/mcp-server/server.d.ts +1 -2
  115. package/dist/commonjs/mcp-server/server.d.ts.map +1 -1
  116. package/dist/commonjs/mcp-server/server.js +6 -7
  117. package/dist/commonjs/mcp-server/server.js.map +1 -1
  118. package/dist/commonjs/mcp-server/shared.js +1 -1
  119. package/dist/commonjs/mcp-server/shared.js.map +1 -1
  120. package/dist/commonjs/mcp-server/tools/attemptsGet.d.ts +3 -1
  121. package/dist/commonjs/mcp-server/tools/attemptsGet.d.ts.map +1 -1
  122. package/dist/commonjs/mcp-server/tools/attemptsGet.js +4 -2
  123. package/dist/commonjs/mcp-server/tools/attemptsGet.js.map +1 -1
  124. package/dist/commonjs/mcp-server/tools/attemptsList.d.ts +1 -1
  125. package/dist/commonjs/mcp-server/tools/attemptsList.d.ts.map +1 -1
  126. package/dist/commonjs/mcp-server/tools/attemptsList.js +5 -4
  127. package/dist/commonjs/mcp-server/tools/attemptsList.js.map +1 -1
  128. package/dist/commonjs/mcp-server/tools/destinationsCreate.d.ts +4 -2
  129. package/dist/commonjs/mcp-server/tools/destinationsCreate.d.ts.map +1 -1
  130. package/dist/commonjs/mcp-server/tools/destinationsCreate.js +5 -3
  131. package/dist/commonjs/mcp-server/tools/destinationsCreate.js.map +1 -1
  132. package/dist/commonjs/mcp-server/tools/destinationsDelete.d.ts +3 -2
  133. package/dist/commonjs/mcp-server/tools/destinationsDelete.d.ts.map +1 -1
  134. package/dist/commonjs/mcp-server/tools/destinationsDelete.js +4 -3
  135. package/dist/commonjs/mcp-server/tools/destinationsDelete.js.map +1 -1
  136. package/dist/commonjs/mcp-server/tools/destinationsDisable.d.ts +3 -2
  137. package/dist/commonjs/mcp-server/tools/destinationsDisable.d.ts.map +1 -1
  138. package/dist/commonjs/mcp-server/tools/destinationsDisable.js +4 -3
  139. package/dist/commonjs/mcp-server/tools/destinationsDisable.js.map +1 -1
  140. package/dist/commonjs/mcp-server/tools/destinationsEnable.d.ts +3 -2
  141. package/dist/commonjs/mcp-server/tools/destinationsEnable.d.ts.map +1 -1
  142. package/dist/commonjs/mcp-server/tools/destinationsEnable.js +4 -3
  143. package/dist/commonjs/mcp-server/tools/destinationsEnable.js.map +1 -1
  144. package/dist/commonjs/mcp-server/tools/destinationsGet.d.ts +3 -2
  145. package/dist/commonjs/mcp-server/tools/destinationsGet.d.ts.map +1 -1
  146. package/dist/commonjs/mcp-server/tools/destinationsGet.js +4 -3
  147. package/dist/commonjs/mcp-server/tools/destinationsGet.js.map +1 -1
  148. package/dist/commonjs/mcp-server/tools/destinationsGetAttempt.d.ts +5 -1
  149. package/dist/commonjs/mcp-server/tools/destinationsGetAttempt.d.ts.map +1 -1
  150. package/dist/commonjs/mcp-server/tools/destinationsGetAttempt.js +7 -2
  151. package/dist/commonjs/mcp-server/tools/destinationsGetAttempt.js.map +1 -1
  152. package/dist/commonjs/mcp-server/tools/destinationsList.d.ts +4 -1
  153. package/dist/commonjs/mcp-server/tools/destinationsList.d.ts.map +1 -1
  154. package/dist/commonjs/mcp-server/tools/destinationsList.js +5 -2
  155. package/dist/commonjs/mcp-server/tools/destinationsList.js.map +1 -1
  156. package/dist/commonjs/mcp-server/tools/destinationsUpdate.d.ts +5 -2
  157. package/dist/commonjs/mcp-server/tools/destinationsUpdate.d.ts.map +1 -1
  158. package/dist/commonjs/mcp-server/tools/destinationsUpdate.js +6 -3
  159. package/dist/commonjs/mcp-server/tools/destinationsUpdate.js.map +1 -1
  160. package/dist/commonjs/mcp-server/tools/eventsGet.d.ts +2 -2
  161. package/dist/commonjs/mcp-server/tools/eventsGet.d.ts.map +1 -1
  162. package/dist/commonjs/mcp-server/tools/eventsGet.js +3 -3
  163. package/dist/commonjs/mcp-server/tools/eventsGet.js.map +1 -1
  164. package/dist/commonjs/mcp-server/tools/eventsList.d.ts +1 -1
  165. package/dist/commonjs/mcp-server/tools/eventsList.d.ts.map +1 -1
  166. package/dist/commonjs/mcp-server/tools/eventsList.js +5 -4
  167. package/dist/commonjs/mcp-server/tools/eventsList.js.map +1 -1
  168. package/dist/commonjs/mcp-server/tools/schemasGetDestinationType.d.ts +16 -0
  169. package/dist/commonjs/mcp-server/tools/schemasGetDestinationType.d.ts.map +1 -0
  170. package/dist/commonjs/mcp-server/tools/{schemasGetDestinationTypeJwt.js → schemasGetDestinationType.js} +7 -7
  171. package/dist/commonjs/mcp-server/tools/schemasGetDestinationType.js.map +1 -0
  172. package/dist/commonjs/mcp-server/tools/schemasListDestinationTypes.d.ts +3 -0
  173. package/dist/commonjs/mcp-server/tools/schemasListDestinationTypes.d.ts.map +1 -0
  174. package/dist/commonjs/mcp-server/tools/{schemasListDestinationTypesJwt.js → schemasListDestinationTypes.js} +6 -6
  175. package/dist/commonjs/mcp-server/tools/schemasListDestinationTypes.js.map +1 -0
  176. package/dist/commonjs/mcp-server/tools/tenantsDelete.d.ts +2 -2
  177. package/dist/commonjs/mcp-server/tools/tenantsDelete.d.ts.map +1 -1
  178. package/dist/commonjs/mcp-server/tools/tenantsDelete.js +3 -3
  179. package/dist/commonjs/mcp-server/tools/tenantsDelete.js.map +1 -1
  180. package/dist/commonjs/mcp-server/tools/tenantsGet.d.ts +2 -2
  181. package/dist/commonjs/mcp-server/tools/tenantsGet.d.ts.map +1 -1
  182. package/dist/commonjs/mcp-server/tools/tenantsGet.js +3 -3
  183. package/dist/commonjs/mcp-server/tools/tenantsGet.js.map +1 -1
  184. package/dist/commonjs/mcp-server/tools/tenantsGetPortalUrl.d.ts +6 -2
  185. package/dist/commonjs/mcp-server/tools/tenantsGetPortalUrl.d.ts.map +1 -1
  186. package/dist/commonjs/mcp-server/tools/tenantsGetPortalUrl.js +5 -3
  187. package/dist/commonjs/mcp-server/tools/tenantsGetPortalUrl.js.map +1 -1
  188. package/dist/commonjs/mcp-server/tools/tenantsGetToken.d.ts +2 -2
  189. package/dist/commonjs/mcp-server/tools/tenantsGetToken.d.ts.map +1 -1
  190. package/dist/commonjs/mcp-server/tools/tenantsGetToken.js +4 -4
  191. package/dist/commonjs/mcp-server/tools/tenantsGetToken.js.map +1 -1
  192. package/dist/commonjs/mcp-server/tools/tenantsListTenants.d.ts +8 -2
  193. package/dist/commonjs/mcp-server/tools/tenantsListTenants.d.ts.map +1 -1
  194. package/dist/commonjs/mcp-server/tools/tenantsListTenants.js +7 -4
  195. package/dist/commonjs/mcp-server/tools/tenantsListTenants.js.map +1 -1
  196. package/dist/commonjs/mcp-server/tools/tenantsUpsert.d.ts +4 -2
  197. package/dist/commonjs/mcp-server/tools/tenantsUpsert.d.ts.map +1 -1
  198. package/dist/commonjs/mcp-server/tools/tenantsUpsert.js +5 -3
  199. package/dist/commonjs/mcp-server/tools/tenantsUpsert.js.map +1 -1
  200. package/dist/commonjs/models/components/event.d.ts +0 -5
  201. package/dist/commonjs/models/components/event.d.ts.map +1 -1
  202. package/dist/commonjs/models/components/event.js +0 -4
  203. package/dist/commonjs/models/components/event.js.map +1 -1
  204. package/dist/commonjs/models/components/security.d.ts +2 -4
  205. package/dist/commonjs/models/components/security.d.ts.map +1 -1
  206. package/dist/commonjs/models/components/security.js +2 -15
  207. package/dist/commonjs/models/components/security.js.map +1 -1
  208. package/dist/commonjs/models/errors/listtenants.d.ts +0 -27
  209. package/dist/commonjs/models/errors/listtenants.d.ts.map +1 -1
  210. package/dist/commonjs/models/errors/listtenants.js +1 -37
  211. package/dist/commonjs/models/errors/listtenants.js.map +1 -1
  212. package/dist/commonjs/models/operations/createtenantdestination.d.ts +2 -15
  213. package/dist/commonjs/models/operations/createtenantdestination.d.ts.map +1 -1
  214. package/dist/commonjs/models/operations/createtenantdestination.js +3 -27
  215. package/dist/commonjs/models/operations/createtenantdestination.js.map +1 -1
  216. package/dist/commonjs/models/operations/deletetenant.d.ts +2 -15
  217. package/dist/commonjs/models/operations/deletetenant.d.ts.map +1 -1
  218. package/dist/commonjs/models/operations/deletetenant.js +3 -27
  219. package/dist/commonjs/models/operations/deletetenant.js.map +1 -1
  220. package/dist/commonjs/models/operations/deletetenantdestination.d.ts +2 -15
  221. package/dist/commonjs/models/operations/deletetenantdestination.d.ts.map +1 -1
  222. package/dist/commonjs/models/operations/deletetenantdestination.js +3 -27
  223. package/dist/commonjs/models/operations/deletetenantdestination.js.map +1 -1
  224. package/dist/commonjs/models/operations/disabletenantdestination.d.ts +2 -15
  225. package/dist/commonjs/models/operations/disabletenantdestination.d.ts.map +1 -1
  226. package/dist/commonjs/models/operations/disabletenantdestination.js +3 -27
  227. package/dist/commonjs/models/operations/disabletenantdestination.js.map +1 -1
  228. package/dist/commonjs/models/operations/enabletenantdestination.d.ts +2 -15
  229. package/dist/commonjs/models/operations/enabletenantdestination.d.ts.map +1 -1
  230. package/dist/commonjs/models/operations/enabletenantdestination.js +3 -27
  231. package/dist/commonjs/models/operations/enabletenantdestination.js.map +1 -1
  232. package/dist/commonjs/models/operations/getdestinationtypeschema.d.ts +2 -0
  233. package/dist/commonjs/models/operations/getdestinationtypeschema.d.ts.map +1 -1
  234. package/dist/commonjs/models/operations/getdestinationtypeschema.js +2 -0
  235. package/dist/commonjs/models/operations/getdestinationtypeschema.js.map +1 -1
  236. package/dist/commonjs/models/operations/gettenant.d.ts +2 -15
  237. package/dist/commonjs/models/operations/gettenant.d.ts.map +1 -1
  238. package/dist/commonjs/models/operations/gettenant.js +3 -27
  239. package/dist/commonjs/models/operations/gettenant.js.map +1 -1
  240. package/dist/commonjs/models/operations/gettenantdestination.d.ts +2 -15
  241. package/dist/commonjs/models/operations/gettenantdestination.d.ts.map +1 -1
  242. package/dist/commonjs/models/operations/gettenantdestination.js +3 -27
  243. package/dist/commonjs/models/operations/gettenantdestination.js.map +1 -1
  244. package/dist/commonjs/models/operations/gettenantdestinationattempt.d.ts +2 -15
  245. package/dist/commonjs/models/operations/gettenantdestinationattempt.d.ts.map +1 -1
  246. package/dist/commonjs/models/operations/gettenantdestinationattempt.js +3 -27
  247. package/dist/commonjs/models/operations/gettenantdestinationattempt.js.map +1 -1
  248. package/dist/commonjs/models/operations/gettenantportalurl.d.ts +2 -15
  249. package/dist/commonjs/models/operations/gettenantportalurl.d.ts.map +1 -1
  250. package/dist/commonjs/models/operations/gettenantportalurl.js +3 -27
  251. package/dist/commonjs/models/operations/gettenantportalurl.js.map +1 -1
  252. package/dist/commonjs/models/operations/gettenanttoken.d.ts +2 -15
  253. package/dist/commonjs/models/operations/gettenanttoken.d.ts.map +1 -1
  254. package/dist/commonjs/models/operations/gettenanttoken.js +3 -27
  255. package/dist/commonjs/models/operations/gettenanttoken.js.map +1 -1
  256. package/dist/commonjs/models/operations/index.d.ts +2 -2
  257. package/dist/commonjs/models/operations/index.d.ts.map +1 -1
  258. package/dist/commonjs/models/operations/index.js +2 -2
  259. package/dist/commonjs/models/operations/index.js.map +1 -1
  260. package/dist/{esm/models/operations/adminlistattempts.d.ts → commonjs/models/operations/listattempts.d.ts} +34 -34
  261. package/dist/commonjs/models/operations/listattempts.d.ts.map +1 -0
  262. package/dist/commonjs/models/operations/{adminlistattempts.js → listattempts.js} +41 -41
  263. package/dist/commonjs/models/operations/listattempts.js.map +1 -0
  264. package/dist/commonjs/models/operations/listevents.d.ts +102 -0
  265. package/dist/commonjs/models/operations/listevents.d.ts.map +1 -0
  266. package/dist/commonjs/models/operations/{adminlistevents.js → listevents.js} +28 -28
  267. package/dist/commonjs/models/operations/listevents.js.map +1 -0
  268. package/dist/commonjs/models/operations/listtenantdestinationattempts.d.ts +2 -15
  269. package/dist/commonjs/models/operations/listtenantdestinationattempts.d.ts.map +1 -1
  270. package/dist/commonjs/models/operations/listtenantdestinationattempts.js +3 -27
  271. package/dist/commonjs/models/operations/listtenantdestinationattempts.js.map +1 -1
  272. package/dist/commonjs/models/operations/listtenantdestinations.d.ts +2 -15
  273. package/dist/commonjs/models/operations/listtenantdestinations.d.ts.map +1 -1
  274. package/dist/commonjs/models/operations/listtenantdestinations.js +3 -27
  275. package/dist/commonjs/models/operations/listtenantdestinations.js.map +1 -1
  276. package/dist/commonjs/models/operations/listtenants.d.ts +0 -29
  277. package/dist/commonjs/models/operations/listtenants.d.ts.map +1 -1
  278. package/dist/commonjs/models/operations/listtenants.js +1 -30
  279. package/dist/commonjs/models/operations/listtenants.js.map +1 -1
  280. package/dist/commonjs/models/operations/updatetenantdestination.d.ts +2 -15
  281. package/dist/commonjs/models/operations/updatetenantdestination.d.ts.map +1 -1
  282. package/dist/commonjs/models/operations/updatetenantdestination.js +3 -27
  283. package/dist/commonjs/models/operations/updatetenantdestination.js.map +1 -1
  284. package/dist/commonjs/models/operations/upserttenant.d.ts +2 -15
  285. package/dist/commonjs/models/operations/upserttenant.d.ts.map +1 -1
  286. package/dist/commonjs/models/operations/upserttenant.js +3 -27
  287. package/dist/commonjs/models/operations/upserttenant.js.map +1 -1
  288. package/dist/commonjs/sdk/attempts.d.ts +6 -5
  289. package/dist/commonjs/sdk/attempts.d.ts.map +1 -1
  290. package/dist/commonjs/sdk/attempts.js +6 -5
  291. package/dist/commonjs/sdk/attempts.js.map +1 -1
  292. package/dist/commonjs/sdk/destinations.d.ts +8 -8
  293. package/dist/commonjs/sdk/destinations.d.ts.map +1 -1
  294. package/dist/commonjs/sdk/destinations.js +16 -16
  295. package/dist/commonjs/sdk/destinations.js.map +1 -1
  296. package/dist/commonjs/sdk/events.d.ts +6 -5
  297. package/dist/commonjs/sdk/events.d.ts.map +1 -1
  298. package/dist/commonjs/sdk/events.js +6 -5
  299. package/dist/commonjs/sdk/events.js.map +1 -1
  300. package/dist/commonjs/sdk/schemas.d.ts +2 -2
  301. package/dist/commonjs/sdk/schemas.d.ts.map +1 -1
  302. package/dist/commonjs/sdk/schemas.js +6 -6
  303. package/dist/commonjs/sdk/schemas.js.map +1 -1
  304. package/dist/commonjs/sdk/tenants.d.ts +9 -10
  305. package/dist/commonjs/sdk/tenants.d.ts.map +1 -1
  306. package/dist/commonjs/sdk/tenants.js +15 -16
  307. package/dist/commonjs/sdk/tenants.js.map +1 -1
  308. package/dist/esm/funcs/attemptsGet.d.ts +2 -1
  309. package/dist/esm/funcs/attemptsGet.d.ts.map +1 -1
  310. package/dist/esm/funcs/attemptsGet.js +17 -8
  311. package/dist/esm/funcs/attemptsGet.js.map +1 -1
  312. package/dist/esm/funcs/attemptsList.d.ts +5 -4
  313. package/dist/esm/funcs/attemptsList.d.ts.map +1 -1
  314. package/dist/esm/funcs/attemptsList.js +11 -9
  315. package/dist/esm/funcs/attemptsList.js.map +1 -1
  316. package/dist/esm/funcs/attemptsRetry.d.ts +1 -1
  317. package/dist/esm/funcs/attemptsRetry.d.ts.map +1 -1
  318. package/dist/esm/funcs/attemptsRetry.js +5 -4
  319. package/dist/esm/funcs/attemptsRetry.js.map +1 -1
  320. package/dist/esm/funcs/destinationsCreate.d.ts +2 -2
  321. package/dist/esm/funcs/destinationsCreate.d.ts.map +1 -1
  322. package/dist/esm/funcs/destinationsCreate.js +21 -9
  323. package/dist/esm/funcs/destinationsCreate.js.map +1 -1
  324. package/dist/esm/funcs/destinationsDelete.d.ts +2 -2
  325. package/dist/esm/funcs/destinationsDelete.d.ts.map +1 -1
  326. package/dist/esm/funcs/destinationsDelete.js +21 -9
  327. package/dist/esm/funcs/destinationsDelete.js.map +1 -1
  328. package/dist/esm/funcs/destinationsDisable.d.ts +2 -2
  329. package/dist/esm/funcs/destinationsDisable.d.ts.map +1 -1
  330. package/dist/esm/funcs/destinationsDisable.js +21 -9
  331. package/dist/esm/funcs/destinationsDisable.js.map +1 -1
  332. package/dist/esm/funcs/destinationsEnable.d.ts +2 -2
  333. package/dist/esm/funcs/destinationsEnable.d.ts.map +1 -1
  334. package/dist/esm/funcs/destinationsEnable.js +21 -9
  335. package/dist/esm/funcs/destinationsEnable.js.map +1 -1
  336. package/dist/esm/funcs/destinationsGet.d.ts +2 -2
  337. package/dist/esm/funcs/destinationsGet.d.ts.map +1 -1
  338. package/dist/esm/funcs/destinationsGet.js +21 -9
  339. package/dist/esm/funcs/destinationsGet.js.map +1 -1
  340. package/dist/esm/funcs/destinationsGetAttempt.d.ts +2 -1
  341. package/dist/esm/funcs/destinationsGetAttempt.d.ts.map +1 -1
  342. package/dist/esm/funcs/destinationsGetAttempt.js +23 -9
  343. package/dist/esm/funcs/destinationsGetAttempt.js.map +1 -1
  344. package/dist/esm/funcs/destinationsList.d.ts +2 -1
  345. package/dist/esm/funcs/destinationsList.d.ts.map +1 -1
  346. package/dist/esm/funcs/destinationsList.js +22 -9
  347. package/dist/esm/funcs/destinationsList.js.map +1 -1
  348. package/dist/esm/funcs/destinationsListAttempts.d.ts +1 -1
  349. package/dist/esm/funcs/destinationsListAttempts.d.ts.map +1 -1
  350. package/dist/esm/funcs/destinationsListAttempts.js +9 -5
  351. package/dist/esm/funcs/destinationsListAttempts.js.map +1 -1
  352. package/dist/esm/funcs/destinationsUpdate.d.ts +3 -1
  353. package/dist/esm/funcs/destinationsUpdate.d.ts.map +1 -1
  354. package/dist/esm/funcs/destinationsUpdate.js +22 -9
  355. package/dist/esm/funcs/destinationsUpdate.js.map +1 -1
  356. package/dist/esm/funcs/eventsGet.d.ts +2 -2
  357. package/dist/esm/funcs/eventsGet.d.ts.map +1 -1
  358. package/dist/esm/funcs/eventsGet.js +16 -8
  359. package/dist/esm/funcs/eventsGet.js.map +1 -1
  360. package/dist/esm/funcs/eventsList.d.ts +5 -4
  361. package/dist/esm/funcs/eventsList.d.ts.map +1 -1
  362. package/dist/esm/funcs/eventsList.js +11 -9
  363. package/dist/esm/funcs/eventsList.js.map +1 -1
  364. package/dist/esm/funcs/publishEvent.js +4 -4
  365. package/dist/esm/funcs/publishEvent.js.map +1 -1
  366. package/dist/esm/funcs/{schemasGetDestinationTypeJwt.d.ts → schemasGetDestinationType.d.ts} +2 -2
  367. package/dist/esm/funcs/schemasGetDestinationType.d.ts.map +1 -0
  368. package/dist/esm/funcs/{schemasGetDestinationTypeJwt.js → schemasGetDestinationType.js} +12 -8
  369. package/dist/esm/funcs/schemasGetDestinationType.js.map +1 -0
  370. package/dist/esm/funcs/{schemasListDestinationTypesJwt.d.ts → schemasListDestinationTypes.d.ts} +2 -2
  371. package/dist/esm/funcs/schemasListDestinationTypes.d.ts.map +1 -0
  372. package/dist/esm/funcs/{schemasListDestinationTypesJwt.js → schemasListDestinationTypes.js} +6 -5
  373. package/dist/esm/funcs/schemasListDestinationTypes.js.map +1 -0
  374. package/dist/esm/funcs/tenantsDelete.d.ts +2 -2
  375. package/dist/esm/funcs/tenantsDelete.d.ts.map +1 -1
  376. package/dist/esm/funcs/tenantsDelete.js +20 -9
  377. package/dist/esm/funcs/tenantsDelete.js.map +1 -1
  378. package/dist/esm/funcs/tenantsGet.d.ts +2 -2
  379. package/dist/esm/funcs/tenantsGet.d.ts.map +1 -1
  380. package/dist/esm/funcs/tenantsGet.js +20 -9
  381. package/dist/esm/funcs/tenantsGet.js.map +1 -1
  382. package/dist/esm/funcs/tenantsGetPortalUrl.d.ts +3 -2
  383. package/dist/esm/funcs/tenantsGetPortalUrl.d.ts.map +1 -1
  384. package/dist/esm/funcs/tenantsGetPortalUrl.js +22 -10
  385. package/dist/esm/funcs/tenantsGetPortalUrl.js.map +1 -1
  386. package/dist/esm/funcs/tenantsGetToken.d.ts +3 -3
  387. package/dist/esm/funcs/tenantsGetToken.d.ts.map +1 -1
  388. package/dist/esm/funcs/tenantsGetToken.js +21 -10
  389. package/dist/esm/funcs/tenantsGetToken.js.map +1 -1
  390. package/dist/esm/funcs/tenantsListTenants.d.ts +2 -3
  391. package/dist/esm/funcs/tenantsListTenants.d.ts.map +1 -1
  392. package/dist/esm/funcs/tenantsListTenants.js +16 -13
  393. package/dist/esm/funcs/tenantsListTenants.js.map +1 -1
  394. package/dist/esm/funcs/tenantsUpsert.d.ts +2 -2
  395. package/dist/esm/funcs/tenantsUpsert.d.ts.map +1 -1
  396. package/dist/esm/funcs/tenantsUpsert.js +21 -9
  397. package/dist/esm/funcs/tenantsUpsert.js.map +1 -1
  398. package/dist/esm/funcs/topicsList.js +4 -3
  399. package/dist/esm/funcs/topicsList.js.map +1 -1
  400. package/dist/esm/lib/config.d.ts +4 -12
  401. package/dist/esm/lib/config.d.ts.map +1 -1
  402. package/dist/esm/lib/config.js +3 -3
  403. package/dist/esm/lib/config.js.map +1 -1
  404. package/dist/esm/lib/matchers.d.ts.map +1 -1
  405. package/dist/esm/lib/matchers.js +0 -1
  406. package/dist/esm/lib/matchers.js.map +1 -1
  407. package/dist/esm/lib/security.d.ts.map +1 -1
  408. package/dist/esm/lib/security.js +2 -9
  409. package/dist/esm/lib/security.js.map +1 -1
  410. package/dist/esm/mcp-server/cli/start/command.d.ts.map +1 -1
  411. package/dist/esm/mcp-server/cli/start/command.js +2 -18
  412. package/dist/esm/mcp-server/cli/start/command.js.map +1 -1
  413. package/dist/esm/mcp-server/cli/start/impl.d.ts +1 -3
  414. package/dist/esm/mcp-server/cli/start/impl.d.ts.map +1 -1
  415. package/dist/esm/mcp-server/cli/start/impl.js +2 -10
  416. package/dist/esm/mcp-server/cli/start/impl.js.map +1 -1
  417. package/dist/esm/mcp-server/mcp-server.js +1 -1
  418. package/dist/esm/mcp-server/server.d.ts +1 -2
  419. package/dist/esm/mcp-server/server.d.ts.map +1 -1
  420. package/dist/esm/mcp-server/server.js +6 -7
  421. package/dist/esm/mcp-server/server.js.map +1 -1
  422. package/dist/esm/mcp-server/shared.js +1 -1
  423. package/dist/esm/mcp-server/shared.js.map +1 -1
  424. package/dist/esm/mcp-server/tools/attemptsGet.d.ts +3 -1
  425. package/dist/esm/mcp-server/tools/attemptsGet.d.ts.map +1 -1
  426. package/dist/esm/mcp-server/tools/attemptsGet.js +4 -2
  427. package/dist/esm/mcp-server/tools/attemptsGet.js.map +1 -1
  428. package/dist/esm/mcp-server/tools/attemptsList.d.ts +1 -1
  429. package/dist/esm/mcp-server/tools/attemptsList.d.ts.map +1 -1
  430. package/dist/esm/mcp-server/tools/attemptsList.js +5 -4
  431. package/dist/esm/mcp-server/tools/attemptsList.js.map +1 -1
  432. package/dist/esm/mcp-server/tools/destinationsCreate.d.ts +4 -2
  433. package/dist/esm/mcp-server/tools/destinationsCreate.d.ts.map +1 -1
  434. package/dist/esm/mcp-server/tools/destinationsCreate.js +5 -3
  435. package/dist/esm/mcp-server/tools/destinationsCreate.js.map +1 -1
  436. package/dist/esm/mcp-server/tools/destinationsDelete.d.ts +3 -2
  437. package/dist/esm/mcp-server/tools/destinationsDelete.d.ts.map +1 -1
  438. package/dist/esm/mcp-server/tools/destinationsDelete.js +4 -3
  439. package/dist/esm/mcp-server/tools/destinationsDelete.js.map +1 -1
  440. package/dist/esm/mcp-server/tools/destinationsDisable.d.ts +3 -2
  441. package/dist/esm/mcp-server/tools/destinationsDisable.d.ts.map +1 -1
  442. package/dist/esm/mcp-server/tools/destinationsDisable.js +4 -3
  443. package/dist/esm/mcp-server/tools/destinationsDisable.js.map +1 -1
  444. package/dist/esm/mcp-server/tools/destinationsEnable.d.ts +3 -2
  445. package/dist/esm/mcp-server/tools/destinationsEnable.d.ts.map +1 -1
  446. package/dist/esm/mcp-server/tools/destinationsEnable.js +4 -3
  447. package/dist/esm/mcp-server/tools/destinationsEnable.js.map +1 -1
  448. package/dist/esm/mcp-server/tools/destinationsGet.d.ts +3 -2
  449. package/dist/esm/mcp-server/tools/destinationsGet.d.ts.map +1 -1
  450. package/dist/esm/mcp-server/tools/destinationsGet.js +4 -3
  451. package/dist/esm/mcp-server/tools/destinationsGet.js.map +1 -1
  452. package/dist/esm/mcp-server/tools/destinationsGetAttempt.d.ts +5 -1
  453. package/dist/esm/mcp-server/tools/destinationsGetAttempt.d.ts.map +1 -1
  454. package/dist/esm/mcp-server/tools/destinationsGetAttempt.js +7 -2
  455. package/dist/esm/mcp-server/tools/destinationsGetAttempt.js.map +1 -1
  456. package/dist/esm/mcp-server/tools/destinationsList.d.ts +4 -1
  457. package/dist/esm/mcp-server/tools/destinationsList.d.ts.map +1 -1
  458. package/dist/esm/mcp-server/tools/destinationsList.js +5 -2
  459. package/dist/esm/mcp-server/tools/destinationsList.js.map +1 -1
  460. package/dist/esm/mcp-server/tools/destinationsUpdate.d.ts +5 -2
  461. package/dist/esm/mcp-server/tools/destinationsUpdate.d.ts.map +1 -1
  462. package/dist/esm/mcp-server/tools/destinationsUpdate.js +6 -3
  463. package/dist/esm/mcp-server/tools/destinationsUpdate.js.map +1 -1
  464. package/dist/esm/mcp-server/tools/eventsGet.d.ts +2 -2
  465. package/dist/esm/mcp-server/tools/eventsGet.d.ts.map +1 -1
  466. package/dist/esm/mcp-server/tools/eventsGet.js +3 -3
  467. package/dist/esm/mcp-server/tools/eventsGet.js.map +1 -1
  468. package/dist/esm/mcp-server/tools/eventsList.d.ts +1 -1
  469. package/dist/esm/mcp-server/tools/eventsList.d.ts.map +1 -1
  470. package/dist/esm/mcp-server/tools/eventsList.js +5 -4
  471. package/dist/esm/mcp-server/tools/eventsList.js.map +1 -1
  472. package/dist/esm/mcp-server/tools/schemasGetDestinationType.d.ts +16 -0
  473. package/dist/esm/mcp-server/tools/schemasGetDestinationType.d.ts.map +1 -0
  474. package/dist/esm/mcp-server/tools/{schemasGetDestinationTypeJwt.js → schemasGetDestinationType.js} +6 -6
  475. package/dist/esm/mcp-server/tools/schemasGetDestinationType.js.map +1 -0
  476. package/dist/esm/mcp-server/tools/schemasListDestinationTypes.d.ts +3 -0
  477. package/dist/esm/mcp-server/tools/schemasListDestinationTypes.d.ts.map +1 -0
  478. package/dist/esm/mcp-server/tools/{schemasListDestinationTypesJwt.js → schemasListDestinationTypes.js} +5 -5
  479. package/dist/esm/mcp-server/tools/schemasListDestinationTypes.js.map +1 -0
  480. package/dist/esm/mcp-server/tools/tenantsDelete.d.ts +2 -2
  481. package/dist/esm/mcp-server/tools/tenantsDelete.d.ts.map +1 -1
  482. package/dist/esm/mcp-server/tools/tenantsDelete.js +3 -3
  483. package/dist/esm/mcp-server/tools/tenantsDelete.js.map +1 -1
  484. package/dist/esm/mcp-server/tools/tenantsGet.d.ts +2 -2
  485. package/dist/esm/mcp-server/tools/tenantsGet.d.ts.map +1 -1
  486. package/dist/esm/mcp-server/tools/tenantsGet.js +3 -3
  487. package/dist/esm/mcp-server/tools/tenantsGet.js.map +1 -1
  488. package/dist/esm/mcp-server/tools/tenantsGetPortalUrl.d.ts +6 -2
  489. package/dist/esm/mcp-server/tools/tenantsGetPortalUrl.d.ts.map +1 -1
  490. package/dist/esm/mcp-server/tools/tenantsGetPortalUrl.js +5 -3
  491. package/dist/esm/mcp-server/tools/tenantsGetPortalUrl.js.map +1 -1
  492. package/dist/esm/mcp-server/tools/tenantsGetToken.d.ts +2 -2
  493. package/dist/esm/mcp-server/tools/tenantsGetToken.d.ts.map +1 -1
  494. package/dist/esm/mcp-server/tools/tenantsGetToken.js +4 -4
  495. package/dist/esm/mcp-server/tools/tenantsGetToken.js.map +1 -1
  496. package/dist/esm/mcp-server/tools/tenantsListTenants.d.ts +8 -2
  497. package/dist/esm/mcp-server/tools/tenantsListTenants.d.ts.map +1 -1
  498. package/dist/esm/mcp-server/tools/tenantsListTenants.js +7 -4
  499. package/dist/esm/mcp-server/tools/tenantsListTenants.js.map +1 -1
  500. package/dist/esm/mcp-server/tools/tenantsUpsert.d.ts +4 -2
  501. package/dist/esm/mcp-server/tools/tenantsUpsert.d.ts.map +1 -1
  502. package/dist/esm/mcp-server/tools/tenantsUpsert.js +5 -3
  503. package/dist/esm/mcp-server/tools/tenantsUpsert.js.map +1 -1
  504. package/dist/esm/models/components/event.d.ts +0 -5
  505. package/dist/esm/models/components/event.d.ts.map +1 -1
  506. package/dist/esm/models/components/event.js +0 -4
  507. package/dist/esm/models/components/event.js.map +1 -1
  508. package/dist/esm/models/components/security.d.ts +2 -4
  509. package/dist/esm/models/components/security.d.ts.map +1 -1
  510. package/dist/esm/models/components/security.js +2 -15
  511. package/dist/esm/models/components/security.js.map +1 -1
  512. package/dist/esm/models/errors/listtenants.d.ts +0 -27
  513. package/dist/esm/models/errors/listtenants.d.ts.map +1 -1
  514. package/dist/esm/models/errors/listtenants.js +0 -35
  515. package/dist/esm/models/errors/listtenants.js.map +1 -1
  516. package/dist/esm/models/operations/createtenantdestination.d.ts +2 -15
  517. package/dist/esm/models/operations/createtenantdestination.d.ts.map +1 -1
  518. package/dist/esm/models/operations/createtenantdestination.js +2 -24
  519. package/dist/esm/models/operations/createtenantdestination.js.map +1 -1
  520. package/dist/esm/models/operations/deletetenant.d.ts +2 -15
  521. package/dist/esm/models/operations/deletetenant.d.ts.map +1 -1
  522. package/dist/esm/models/operations/deletetenant.js +2 -24
  523. package/dist/esm/models/operations/deletetenant.js.map +1 -1
  524. package/dist/esm/models/operations/deletetenantdestination.d.ts +2 -15
  525. package/dist/esm/models/operations/deletetenantdestination.d.ts.map +1 -1
  526. package/dist/esm/models/operations/deletetenantdestination.js +2 -24
  527. package/dist/esm/models/operations/deletetenantdestination.js.map +1 -1
  528. package/dist/esm/models/operations/disabletenantdestination.d.ts +2 -15
  529. package/dist/esm/models/operations/disabletenantdestination.d.ts.map +1 -1
  530. package/dist/esm/models/operations/disabletenantdestination.js +2 -24
  531. package/dist/esm/models/operations/disabletenantdestination.js.map +1 -1
  532. package/dist/esm/models/operations/enabletenantdestination.d.ts +2 -15
  533. package/dist/esm/models/operations/enabletenantdestination.d.ts.map +1 -1
  534. package/dist/esm/models/operations/enabletenantdestination.js +2 -24
  535. package/dist/esm/models/operations/enabletenantdestination.js.map +1 -1
  536. package/dist/esm/models/operations/getdestinationtypeschema.d.ts +2 -0
  537. package/dist/esm/models/operations/getdestinationtypeschema.d.ts.map +1 -1
  538. package/dist/esm/models/operations/getdestinationtypeschema.js +2 -0
  539. package/dist/esm/models/operations/getdestinationtypeschema.js.map +1 -1
  540. package/dist/esm/models/operations/gettenant.d.ts +2 -15
  541. package/dist/esm/models/operations/gettenant.d.ts.map +1 -1
  542. package/dist/esm/models/operations/gettenant.js +2 -24
  543. package/dist/esm/models/operations/gettenant.js.map +1 -1
  544. package/dist/esm/models/operations/gettenantdestination.d.ts +2 -15
  545. package/dist/esm/models/operations/gettenantdestination.d.ts.map +1 -1
  546. package/dist/esm/models/operations/gettenantdestination.js +2 -24
  547. package/dist/esm/models/operations/gettenantdestination.js.map +1 -1
  548. package/dist/esm/models/operations/gettenantdestinationattempt.d.ts +2 -15
  549. package/dist/esm/models/operations/gettenantdestinationattempt.d.ts.map +1 -1
  550. package/dist/esm/models/operations/gettenantdestinationattempt.js +2 -24
  551. package/dist/esm/models/operations/gettenantdestinationattempt.js.map +1 -1
  552. package/dist/esm/models/operations/gettenantportalurl.d.ts +2 -15
  553. package/dist/esm/models/operations/gettenantportalurl.d.ts.map +1 -1
  554. package/dist/esm/models/operations/gettenantportalurl.js +2 -24
  555. package/dist/esm/models/operations/gettenantportalurl.js.map +1 -1
  556. package/dist/esm/models/operations/gettenanttoken.d.ts +2 -15
  557. package/dist/esm/models/operations/gettenanttoken.d.ts.map +1 -1
  558. package/dist/esm/models/operations/gettenanttoken.js +2 -24
  559. package/dist/esm/models/operations/gettenanttoken.js.map +1 -1
  560. package/dist/esm/models/operations/index.d.ts +2 -2
  561. package/dist/esm/models/operations/index.d.ts.map +1 -1
  562. package/dist/esm/models/operations/index.js +2 -2
  563. package/dist/esm/models/operations/index.js.map +1 -1
  564. package/dist/{commonjs/models/operations/adminlistattempts.d.ts → esm/models/operations/listattempts.d.ts} +34 -34
  565. package/dist/esm/models/operations/listattempts.d.ts.map +1 -0
  566. package/dist/esm/models/operations/listattempts.js +117 -0
  567. package/dist/esm/models/operations/listattempts.js.map +1 -0
  568. package/dist/esm/models/operations/listevents.d.ts +102 -0
  569. package/dist/esm/models/operations/listevents.d.ts.map +1 -0
  570. package/dist/esm/models/operations/listevents.js +84 -0
  571. package/dist/esm/models/operations/listevents.js.map +1 -0
  572. package/dist/esm/models/operations/listtenantdestinationattempts.d.ts +2 -15
  573. package/dist/esm/models/operations/listtenantdestinationattempts.d.ts.map +1 -1
  574. package/dist/esm/models/operations/listtenantdestinationattempts.js +2 -24
  575. package/dist/esm/models/operations/listtenantdestinationattempts.js.map +1 -1
  576. package/dist/esm/models/operations/listtenantdestinations.d.ts +2 -15
  577. package/dist/esm/models/operations/listtenantdestinations.d.ts.map +1 -1
  578. package/dist/esm/models/operations/listtenantdestinations.js +2 -24
  579. package/dist/esm/models/operations/listtenantdestinations.js.map +1 -1
  580. package/dist/esm/models/operations/listtenants.d.ts +0 -29
  581. package/dist/esm/models/operations/listtenants.d.ts.map +1 -1
  582. package/dist/esm/models/operations/listtenants.js +0 -29
  583. package/dist/esm/models/operations/listtenants.js.map +1 -1
  584. package/dist/esm/models/operations/updatetenantdestination.d.ts +2 -15
  585. package/dist/esm/models/operations/updatetenantdestination.d.ts.map +1 -1
  586. package/dist/esm/models/operations/updatetenantdestination.js +2 -24
  587. package/dist/esm/models/operations/updatetenantdestination.js.map +1 -1
  588. package/dist/esm/models/operations/upserttenant.d.ts +2 -15
  589. package/dist/esm/models/operations/upserttenant.d.ts.map +1 -1
  590. package/dist/esm/models/operations/upserttenant.js +2 -24
  591. package/dist/esm/models/operations/upserttenant.js.map +1 -1
  592. package/dist/esm/sdk/attempts.d.ts +6 -5
  593. package/dist/esm/sdk/attempts.d.ts.map +1 -1
  594. package/dist/esm/sdk/attempts.js +6 -5
  595. package/dist/esm/sdk/attempts.js.map +1 -1
  596. package/dist/esm/sdk/destinations.d.ts +8 -8
  597. package/dist/esm/sdk/destinations.d.ts.map +1 -1
  598. package/dist/esm/sdk/destinations.js +16 -16
  599. package/dist/esm/sdk/destinations.js.map +1 -1
  600. package/dist/esm/sdk/events.d.ts +6 -5
  601. package/dist/esm/sdk/events.d.ts.map +1 -1
  602. package/dist/esm/sdk/events.js +6 -5
  603. package/dist/esm/sdk/events.js.map +1 -1
  604. package/dist/esm/sdk/schemas.d.ts +2 -2
  605. package/dist/esm/sdk/schemas.d.ts.map +1 -1
  606. package/dist/esm/sdk/schemas.js +6 -6
  607. package/dist/esm/sdk/schemas.js.map +1 -1
  608. package/dist/esm/sdk/tenants.d.ts +9 -10
  609. package/dist/esm/sdk/tenants.d.ts.map +1 -1
  610. package/dist/esm/sdk/tenants.js +15 -16
  611. package/dist/esm/sdk/tenants.js.map +1 -1
  612. package/jsr.json +1 -1
  613. package/package.json +2 -2
  614. package/src/funcs/attemptsGet.ts +35 -9
  615. package/src/funcs/attemptsList.ts +21 -15
  616. package/src/funcs/attemptsRetry.ts +17 -8
  617. package/src/funcs/destinationsCreate.ts +43 -14
  618. package/src/funcs/destinationsDelete.ts +39 -14
  619. package/src/funcs/destinationsDisable.ts +39 -14
  620. package/src/funcs/destinationsEnable.ts +39 -14
  621. package/src/funcs/destinationsGet.ts +39 -14
  622. package/src/funcs/destinationsGetAttempt.ts +47 -14
  623. package/src/funcs/destinationsList.ts +43 -14
  624. package/src/funcs/destinationsListAttempts.ts +21 -13
  625. package/src/funcs/destinationsUpdate.ts +48 -14
  626. package/src/funcs/eventsGet.ts +31 -9
  627. package/src/funcs/eventsList.ts +21 -15
  628. package/src/funcs/publishEvent.ts +5 -5
  629. package/src/funcs/{schemasGetDestinationTypeJwt.ts → schemasGetDestinationType.ts} +18 -12
  630. package/src/funcs/{schemasListDestinationTypesJwt.ts → schemasListDestinationTypes.ts} +6 -5
  631. package/src/funcs/tenantsDelete.ts +35 -14
  632. package/src/funcs/tenantsGet.ts +35 -14
  633. package/src/funcs/tenantsGetPortalUrl.ts +40 -15
  634. package/src/funcs/tenantsGetToken.ts +36 -15
  635. package/src/funcs/tenantsListTenants.ts +38 -17
  636. package/src/funcs/tenantsUpsert.ts +38 -13
  637. package/src/funcs/topicsList.ts +5 -4
  638. package/src/lib/config.ts +4 -16
  639. package/src/lib/matchers.ts +3 -2
  640. package/src/lib/security.ts +2 -10
  641. package/src/mcp-server/cli/start/command.ts +2 -19
  642. package/src/mcp-server/cli/start/impl.ts +5 -13
  643. package/src/mcp-server/mcp-server.ts +1 -1
  644. package/src/mcp-server/server.ts +7 -9
  645. package/src/mcp-server/shared.ts +2 -2
  646. package/src/mcp-server/tools/attemptsGet.ts +5 -2
  647. package/src/mcp-server/tools/attemptsList.ts +5 -4
  648. package/src/mcp-server/tools/destinationsCreate.ts +6 -3
  649. package/src/mcp-server/tools/destinationsDelete.ts +5 -3
  650. package/src/mcp-server/tools/destinationsDisable.ts +5 -3
  651. package/src/mcp-server/tools/destinationsEnable.ts +5 -3
  652. package/src/mcp-server/tools/destinationsGet.ts +5 -3
  653. package/src/mcp-server/tools/destinationsGetAttempt.ts +10 -2
  654. package/src/mcp-server/tools/destinationsList.ts +7 -2
  655. package/src/mcp-server/tools/destinationsUpdate.ts +8 -3
  656. package/src/mcp-server/tools/eventsGet.ts +3 -3
  657. package/src/mcp-server/tools/eventsList.ts +5 -4
  658. package/src/mcp-server/tools/{schemasGetDestinationTypeJwt.ts → schemasGetDestinationType.ts} +6 -6
  659. package/src/mcp-server/tools/{schemasListDestinationTypesJwt.ts → schemasListDestinationTypes.ts} +4 -4
  660. package/src/mcp-server/tools/tenantsDelete.ts +3 -3
  661. package/src/mcp-server/tools/tenantsGet.ts +3 -3
  662. package/src/mcp-server/tools/tenantsGetPortalUrl.ts +6 -3
  663. package/src/mcp-server/tools/tenantsGetToken.ts +4 -4
  664. package/src/mcp-server/tools/tenantsListTenants.ts +10 -4
  665. package/src/mcp-server/tools/tenantsUpsert.ts +6 -3
  666. package/src/models/components/event.ts +0 -11
  667. package/src/models/components/security.ts +4 -19
  668. package/src/models/errors/listtenants.ts +0 -66
  669. package/src/models/operations/createtenantdestination.ts +4 -57
  670. package/src/models/operations/deletetenant.ts +4 -55
  671. package/src/models/operations/deletetenantdestination.ts +4 -57
  672. package/src/models/operations/disabletenantdestination.ts +4 -57
  673. package/src/models/operations/enabletenantdestination.ts +4 -57
  674. package/src/models/operations/getdestinationtypeschema.ts +2 -0
  675. package/src/models/operations/gettenant.ts +4 -55
  676. package/src/models/operations/gettenantdestination.ts +4 -57
  677. package/src/models/operations/gettenantdestinationattempt.ts +4 -58
  678. package/src/models/operations/gettenantportalurl.ts +4 -55
  679. package/src/models/operations/gettenanttoken.ts +4 -55
  680. package/src/models/operations/index.ts +2 -2
  681. package/src/models/operations/{adminlistattempts.ts → listattempts.ts} +75 -79
  682. package/src/models/operations/{adminlistevents.ts → listevents.ts} +50 -52
  683. package/src/models/operations/listtenantdestinationattempts.ts +4 -58
  684. package/src/models/operations/listtenantdestinations.ts +4 -57
  685. package/src/models/operations/listtenants.ts +0 -58
  686. package/src/models/operations/updatetenantdestination.ts +4 -57
  687. package/src/models/operations/upserttenant.ts +4 -55
  688. package/src/sdk/attempts.ts +9 -6
  689. package/src/sdk/destinations.ts +40 -16
  690. package/src/sdk/events.ts +7 -6
  691. package/src/sdk/schemas.ts +8 -8
  692. package/src/sdk/tenants.ts +25 -16
  693. package/dist/commonjs/funcs/schemasGetDestinationTypeJwt.d.ts.map +0 -1
  694. package/dist/commonjs/funcs/schemasGetDestinationTypeJwt.js.map +0 -1
  695. package/dist/commonjs/funcs/schemasListDestinationTypesJwt.d.ts.map +0 -1
  696. package/dist/commonjs/funcs/schemasListDestinationTypesJwt.js.map +0 -1
  697. package/dist/commonjs/mcp-server/tools/schemasGetDestinationTypeJwt.d.ts +0 -8
  698. package/dist/commonjs/mcp-server/tools/schemasGetDestinationTypeJwt.d.ts.map +0 -1
  699. package/dist/commonjs/mcp-server/tools/schemasGetDestinationTypeJwt.js.map +0 -1
  700. package/dist/commonjs/mcp-server/tools/schemasListDestinationTypesJwt.d.ts +0 -3
  701. package/dist/commonjs/mcp-server/tools/schemasListDestinationTypesJwt.d.ts.map +0 -1
  702. package/dist/commonjs/mcp-server/tools/schemasListDestinationTypesJwt.js.map +0 -1
  703. package/dist/commonjs/models/operations/adminlistattempts.d.ts.map +0 -1
  704. package/dist/commonjs/models/operations/adminlistattempts.js.map +0 -1
  705. package/dist/commonjs/models/operations/adminlistevents.d.ts +0 -102
  706. package/dist/commonjs/models/operations/adminlistevents.d.ts.map +0 -1
  707. package/dist/commonjs/models/operations/adminlistevents.js.map +0 -1
  708. package/dist/esm/funcs/schemasGetDestinationTypeJwt.d.ts.map +0 -1
  709. package/dist/esm/funcs/schemasGetDestinationTypeJwt.js.map +0 -1
  710. package/dist/esm/funcs/schemasListDestinationTypesJwt.d.ts.map +0 -1
  711. package/dist/esm/funcs/schemasListDestinationTypesJwt.js.map +0 -1
  712. package/dist/esm/mcp-server/tools/schemasGetDestinationTypeJwt.d.ts +0 -8
  713. package/dist/esm/mcp-server/tools/schemasGetDestinationTypeJwt.d.ts.map +0 -1
  714. package/dist/esm/mcp-server/tools/schemasGetDestinationTypeJwt.js.map +0 -1
  715. package/dist/esm/mcp-server/tools/schemasListDestinationTypesJwt.d.ts +0 -3
  716. package/dist/esm/mcp-server/tools/schemasListDestinationTypesJwt.d.ts.map +0 -1
  717. package/dist/esm/mcp-server/tools/schemasListDestinationTypesJwt.js.map +0 -1
  718. package/dist/esm/models/operations/adminlistattempts.d.ts.map +0 -1
  719. package/dist/esm/models/operations/adminlistattempts.js +0 -117
  720. package/dist/esm/models/operations/adminlistattempts.js.map +0 -1
  721. package/dist/esm/models/operations/adminlistevents.d.ts +0 -102
  722. package/dist/esm/models/operations/adminlistevents.d.ts.map +0 -1
  723. package/dist/esm/models/operations/adminlistevents.js +0 -84
  724. package/dist/esm/models/operations/adminlistevents.js.map +0 -1
  725. package/examples/package-lock.json +0 -620
  726. package/examples/package.json +0 -18
  727. package/tsconfig.json +0 -40
package/bin/mcp-server.js CHANGED
@@ -53591,9 +53591,9 @@ var init_config = __esm(() => {
53591
53591
  SDK_METADATA = {
53592
53592
  language: "typescript",
53593
53593
  openapiDocVersion: "0.0.1",
53594
- sdkVersion: "0.7.0",
53595
- genVersion: "2.818.4",
53596
- userAgent: "speakeasy-sdk/typescript 0.7.0 2.818.4 0.0.1 @hookdeck/outpost-sdk"
53594
+ sdkVersion: "0.8.0",
53595
+ genVersion: "2.849.10",
53596
+ userAgent: "speakeasy-sdk/typescript 0.8.0 2.849.10 0.0.1 @hookdeck/outpost-sdk"
53597
53597
  };
53598
53598
  });
53599
53599
 
@@ -54404,7 +54404,7 @@ async function consumeStream(stream) {
54404
54404
  while (true) {
54405
54405
  const { done, value } = await reader.read();
54406
54406
  if (value != null)
54407
- chunks.push(value);
54407
+ chunks.push(new Uint8Array(value).buffer);
54408
54408
  if (done)
54409
54409
  break;
54410
54410
  }
@@ -54993,7 +54993,7 @@ function resolveSecurity(...options) {
54993
54993
  applyBearer(state, spec);
54994
54994
  break;
54995
54995
  default:
54996
- throw SecurityError.unrecognizedType(type);
54996
+ throw SecurityError.unrecognizedType((spec, type));
54997
54997
  }
54998
54998
  });
54999
54999
  return state;
@@ -55021,13 +55021,7 @@ function resolveGlobalSecurity(security) {
55021
55021
  {
55022
55022
  fieldName: "Authorization",
55023
55023
  type: "http:bearer",
55024
- value: security?.adminApiKey
55025
- }
55026
- ], [
55027
- {
55028
- fieldName: "Authorization",
55029
- type: "http:bearer",
55030
- value: security?.tenantJwt
55024
+ value: security?.apiKey
55031
55025
  }
55032
55026
  ]);
55033
55027
  }
@@ -56826,14 +56820,12 @@ var init_event = __esm(() => {
56826
56820
  destination_id: stringType().optional(),
56827
56821
  topic: stringType().optional(),
56828
56822
  time: stringType().datetime({ offset: true }).transform((v2) => new Date(v2)).optional(),
56829
- successful_at: nullableType(stringType().datetime({ offset: true }).transform((v2) => new Date(v2))).optional(),
56830
56823
  metadata: nullableType(recordType(stringType())).optional(),
56831
56824
  data: recordType(anyType()).optional()
56832
56825
  }).transform((v2) => {
56833
56826
  return remap(v2, {
56834
56827
  tenant_id: "tenantId",
56835
- destination_id: "destinationId",
56836
- successful_at: "successfulAt"
56828
+ destination_id: "destinationId"
56837
56829
  });
56838
56830
  });
56839
56831
  Event$outboundSchema = objectType({
@@ -56842,14 +56834,12 @@ var init_event = __esm(() => {
56842
56834
  destinationId: stringType().optional(),
56843
56835
  topic: stringType().optional(),
56844
56836
  time: dateType().transform((v2) => v2.toISOString()).optional(),
56845
- successfulAt: nullableType(dateType().transform((v2) => v2.toISOString())).optional(),
56846
56837
  metadata: nullableType(recordType(stringType())).optional(),
56847
56838
  data: recordType(anyType()).optional()
56848
56839
  }).transform((v2) => {
56849
56840
  return remap(v2, {
56850
56841
  tenantId: "tenant_id",
56851
- destinationId: "destination_id",
56852
- successfulAt: "successful_at"
56842
+ destinationId: "destination_id"
56853
56843
  });
56854
56844
  });
56855
56845
  });
@@ -56988,24 +56978,11 @@ var init_retryrequest = __esm(() => {
56988
56978
  var Security$inboundSchema, Security$outboundSchema;
56989
56979
  var init_security2 = __esm(() => {
56990
56980
  init_v3();
56991
- init_primitives();
56992
56981
  Security$inboundSchema = objectType({
56993
- AdminApiKey: stringType().optional(),
56994
- TenantJwt: stringType().optional()
56995
- }).transform((v2) => {
56996
- return remap(v2, {
56997
- AdminApiKey: "adminApiKey",
56998
- TenantJwt: "tenantJwt"
56999
- });
56982
+ apiKey: stringType().optional()
57000
56983
  });
57001
56984
  Security$outboundSchema = objectType({
57002
- adminApiKey: stringType().optional(),
57003
- tenantJwt: stringType().optional()
57004
- }).transform((v2) => {
57005
- return remap(v2, {
57006
- adminApiKey: "AdminApiKey",
57007
- tenantJwt: "TenantJwt"
57008
- });
56985
+ apiKey: stringType().optional()
57009
56986
  });
57010
56987
  });
57011
56988
 
@@ -57177,204 +57154,387 @@ var init_components = __esm(() => {
57177
57154
  init_webhookcredentialsupdate();
57178
57155
  });
57179
57156
 
57180
- // src/models/operations/adminlistattempts.ts
57181
- var AdminListAttemptsStatus, AdminListAttemptsOrderBy, AdminListAttemptsDir, AdminListAttemptsStatus$inboundSchema, AdminListAttemptsStatus$outboundSchema, AdminListAttemptsTopic$inboundSchema, AdminListAttemptsTopic$outboundSchema, AdminListAttemptsInclude$inboundSchema, AdminListAttemptsInclude$outboundSchema, AdminListAttemptsOrderBy$inboundSchema, AdminListAttemptsOrderBy$outboundSchema, AdminListAttemptsDir$inboundSchema, AdminListAttemptsDir$outboundSchema, AdminListAttemptsRequest$inboundSchema, AdminListAttemptsRequest$outboundSchema;
57182
- var init_adminlistattempts = __esm(() => {
57157
+ // src/models/errors/apierrorresponse.ts
57158
+ var APIErrorResponse, Data$inboundSchema, Data$outboundSchema, APIErrorResponse$inboundSchema, APIErrorResponse$outboundSchema;
57159
+ var init_apierrorresponse = __esm(() => {
57183
57160
  init_v3();
57184
- init_primitives();
57185
- AdminListAttemptsStatus = {
57186
- Success: "success",
57187
- Failed: "failed"
57188
- };
57189
- AdminListAttemptsOrderBy = {
57190
- Time: "time"
57191
- };
57192
- AdminListAttemptsDir = {
57193
- Asc: "asc",
57194
- Desc: "desc"
57161
+ init_outposterror();
57162
+ APIErrorResponse = class APIErrorResponse extends OutpostError {
57163
+ status;
57164
+ data;
57165
+ data$;
57166
+ constructor(err, httpMeta) {
57167
+ const message = err.message || `API error occurred: ${JSON.stringify(err)}`;
57168
+ super(message, httpMeta);
57169
+ this.data$ = err;
57170
+ if (err.status != null)
57171
+ this.status = err.status;
57172
+ if (err.data != null)
57173
+ this.data = err.data;
57174
+ this.name = "APIErrorResponse";
57175
+ }
57195
57176
  };
57196
- AdminListAttemptsStatus$inboundSchema = nativeEnumType(AdminListAttemptsStatus);
57197
- AdminListAttemptsStatus$outboundSchema = AdminListAttemptsStatus$inboundSchema;
57198
- AdminListAttemptsTopic$inboundSchema = unionType([stringType(), arrayType(stringType())]);
57199
- AdminListAttemptsTopic$outboundSchema = unionType([stringType(), arrayType(stringType())]);
57200
- AdminListAttemptsInclude$inboundSchema = unionType([stringType(), arrayType(stringType())]);
57201
- AdminListAttemptsInclude$outboundSchema = unionType([stringType(), arrayType(stringType())]);
57202
- AdminListAttemptsOrderBy$inboundSchema = nativeEnumType(AdminListAttemptsOrderBy);
57203
- AdminListAttemptsOrderBy$outboundSchema = AdminListAttemptsOrderBy$inboundSchema;
57204
- AdminListAttemptsDir$inboundSchema = nativeEnumType(AdminListAttemptsDir);
57205
- AdminListAttemptsDir$outboundSchema = AdminListAttemptsDir$inboundSchema;
57206
- AdminListAttemptsRequest$inboundSchema = objectType({
57207
- tenant_id: stringType().optional(),
57208
- event_id: stringType().optional(),
57209
- destination_id: stringType().optional(),
57210
- status: AdminListAttemptsStatus$inboundSchema.optional(),
57211
- topic: unionType([stringType(), arrayType(stringType())]).optional(),
57212
- "time[gte]": stringType().datetime({ offset: true }).transform((v2) => new Date(v2)).optional(),
57213
- "time[lte]": stringType().datetime({ offset: true }).transform((v2) => new Date(v2)).optional(),
57214
- limit: numberType().int().default(100),
57215
- next: stringType().optional(),
57216
- prev: stringType().optional(),
57217
- include: unionType([stringType(), arrayType(stringType())]).optional(),
57218
- order_by: AdminListAttemptsOrderBy$inboundSchema.default("time"),
57219
- dir: AdminListAttemptsDir$inboundSchema.default("desc")
57220
- }).transform((v2) => {
57221
- return remap(v2, {
57222
- tenant_id: "tenantId",
57223
- event_id: "eventId",
57224
- destination_id: "destinationId",
57225
- "time[gte]": "timeGte",
57226
- "time[lte]": "timeLte",
57227
- order_by: "orderBy"
57228
- });
57229
- });
57230
- AdminListAttemptsRequest$outboundSchema = objectType({
57231
- tenantId: stringType().optional(),
57232
- eventId: stringType().optional(),
57233
- destinationId: stringType().optional(),
57234
- status: AdminListAttemptsStatus$outboundSchema.optional(),
57235
- topic: unionType([stringType(), arrayType(stringType())]).optional(),
57236
- timeGte: dateType().transform((v2) => v2.toISOString()).optional(),
57237
- timeLte: dateType().transform((v2) => v2.toISOString()).optional(),
57238
- limit: numberType().int().default(100),
57239
- next: stringType().optional(),
57240
- prev: stringType().optional(),
57241
- include: unionType([stringType(), arrayType(stringType())]).optional(),
57242
- orderBy: AdminListAttemptsOrderBy$outboundSchema.default("time"),
57243
- dir: AdminListAttemptsDir$outboundSchema.default("desc")
57177
+ Data$inboundSchema = unionType([arrayType(stringType()), recordType(anyType())]);
57178
+ Data$outboundSchema = unionType([arrayType(stringType()), recordType(anyType())]);
57179
+ APIErrorResponse$inboundSchema = objectType({
57180
+ status: numberType().int().optional(),
57181
+ message: stringType().optional(),
57182
+ data: unionType([arrayType(stringType()), recordType(anyType())]).optional(),
57183
+ request$: instanceOfType(Request),
57184
+ response$: instanceOfType(Response),
57185
+ body$: stringType()
57244
57186
  }).transform((v2) => {
57245
- return remap(v2, {
57246
- tenantId: "tenant_id",
57247
- eventId: "event_id",
57248
- destinationId: "destination_id",
57249
- timeGte: "time[gte]",
57250
- timeLte: "time[lte]",
57251
- orderBy: "order_by"
57187
+ return new APIErrorResponse(v2, {
57188
+ request: v2.request$,
57189
+ response: v2.response$,
57190
+ body: v2.body$
57252
57191
  });
57253
57192
  });
57193
+ APIErrorResponse$outboundSchema = instanceOfType(APIErrorResponse).transform((v2) => v2.data$).pipe(objectType({
57194
+ status: numberType().int().optional(),
57195
+ message: stringType().optional(),
57196
+ data: unionType([arrayType(stringType()), recordType(anyType())]).optional()
57197
+ }));
57254
57198
  });
57255
57199
 
57256
- // src/models/operations/adminlistevents.ts
57257
- var AdminListEventsOrderBy, AdminListEventsDir, AdminListEventsTopic$inboundSchema, AdminListEventsTopic$outboundSchema, AdminListEventsOrderBy$inboundSchema, AdminListEventsOrderBy$outboundSchema, AdminListEventsDir$inboundSchema, AdminListEventsDir$outboundSchema, AdminListEventsRequest$inboundSchema, AdminListEventsRequest$outboundSchema;
57258
- var init_adminlistevents = __esm(() => {
57200
+ // src/models/errors/badrequesterror.ts
57201
+ var BadRequestError, BadRequestError$inboundSchema, BadRequestError$outboundSchema;
57202
+ var init_badrequesterror = __esm(() => {
57259
57203
  init_v3();
57260
57204
  init_primitives();
57261
- AdminListEventsOrderBy = {
57262
- Time: "time"
57263
- };
57264
- AdminListEventsDir = {
57265
- Asc: "asc",
57266
- Desc: "desc"
57205
+ init_schemas4();
57206
+ init_outposterror();
57207
+ BadRequestError = class BadRequestError extends OutpostError {
57208
+ additionalProperties = {};
57209
+ data$;
57210
+ constructor(err, httpMeta) {
57211
+ const message = err.message || `API error occurred: ${JSON.stringify(err)}`;
57212
+ super(message, httpMeta);
57213
+ this.data$ = err;
57214
+ if (err.additionalProperties != null) {
57215
+ this.additionalProperties = err.additionalProperties;
57216
+ }
57217
+ this.name = "BadRequestError";
57218
+ }
57267
57219
  };
57268
- AdminListEventsTopic$inboundSchema = unionType([stringType(), arrayType(stringType())]);
57269
- AdminListEventsTopic$outboundSchema = unionType([stringType(), arrayType(stringType())]);
57270
- AdminListEventsOrderBy$inboundSchema = nativeEnumType(AdminListEventsOrderBy);
57271
- AdminListEventsOrderBy$outboundSchema = AdminListEventsOrderBy$inboundSchema;
57272
- AdminListEventsDir$inboundSchema = nativeEnumType(AdminListEventsDir);
57273
- AdminListEventsDir$outboundSchema = AdminListEventsDir$inboundSchema;
57274
- AdminListEventsRequest$inboundSchema = objectType({
57275
- tenant_id: stringType().optional(),
57276
- topic: unionType([stringType(), arrayType(stringType())]).optional(),
57277
- "time[gte]": stringType().datetime({ offset: true }).transform((v2) => new Date(v2)).optional(),
57278
- "time[lte]": stringType().datetime({ offset: true }).transform((v2) => new Date(v2)).optional(),
57279
- limit: numberType().int().default(100),
57280
- next: stringType().optional(),
57281
- prev: stringType().optional(),
57282
- order_by: AdminListEventsOrderBy$inboundSchema.default("time"),
57283
- dir: AdminListEventsDir$inboundSchema.default("desc")
57284
- }).transform((v2) => {
57285
- return remap(v2, {
57286
- tenant_id: "tenantId",
57287
- "time[gte]": "timeGte",
57288
- "time[lte]": "timeLte",
57289
- order_by: "orderBy"
57220
+ BadRequestError$inboundSchema = collectExtraKeys(objectType({
57221
+ message: stringType().optional(),
57222
+ request$: instanceOfType(Request),
57223
+ response$: instanceOfType(Response),
57224
+ body$: stringType()
57225
+ }).catchall(anyType()), "additionalProperties", false).transform((v2) => {
57226
+ return new BadRequestError(v2, {
57227
+ request: v2.request$,
57228
+ response: v2.response$,
57229
+ body: v2.body$
57290
57230
  });
57291
57231
  });
57292
- AdminListEventsRequest$outboundSchema = objectType({
57293
- tenantId: stringType().optional(),
57294
- topic: unionType([stringType(), arrayType(stringType())]).optional(),
57295
- timeGte: dateType().transform((v2) => v2.toISOString()).optional(),
57296
- timeLte: dateType().transform((v2) => v2.toISOString()).optional(),
57297
- limit: numberType().int().default(100),
57298
- next: stringType().optional(),
57299
- prev: stringType().optional(),
57300
- orderBy: AdminListEventsOrderBy$outboundSchema.default("time"),
57301
- dir: AdminListEventsDir$outboundSchema.default("desc")
57232
+ BadRequestError$outboundSchema = instanceOfType(BadRequestError).transform((v2) => v2.data$).pipe(objectType({
57233
+ message: stringType().optional(),
57234
+ additionalProperties: recordType(anyType())
57302
57235
  }).transform((v2) => {
57303
- return remap(v2, {
57304
- tenantId: "tenant_id",
57305
- timeGte: "time[gte]",
57306
- timeLte: "time[lte]",
57307
- orderBy: "order_by"
57308
- });
57309
- });
57236
+ return {
57237
+ ...v2.additionalProperties,
57238
+ ...remap(v2, {
57239
+ additionalProperties: null
57240
+ })
57241
+ };
57242
+ }));
57310
57243
  });
57311
57244
 
57312
- // src/models/operations/createtenantdestination.ts
57313
- var CreateTenantDestinationGlobals$inboundSchema, CreateTenantDestinationGlobals$outboundSchema, CreateTenantDestinationRequest$inboundSchema, CreateTenantDestinationRequest$outboundSchema;
57314
- var init_createtenantdestination = __esm(() => {
57245
+ // src/models/errors/internalservererror.ts
57246
+ var InternalServerError, InternalServerError$inboundSchema, InternalServerError$outboundSchema;
57247
+ var init_internalservererror = __esm(() => {
57315
57248
  init_v3();
57316
57249
  init_primitives();
57317
- init_components();
57318
- CreateTenantDestinationGlobals$inboundSchema = objectType({
57319
- tenant_id: stringType().optional()
57320
- }).transform((v2) => {
57321
- return remap(v2, {
57322
- tenant_id: "tenantId"
57323
- });
57324
- });
57325
- CreateTenantDestinationGlobals$outboundSchema = objectType({
57326
- tenantId: stringType().optional()
57327
- }).transform((v2) => {
57328
- return remap(v2, {
57329
- tenantId: "tenant_id"
57330
- });
57331
- });
57332
- CreateTenantDestinationRequest$inboundSchema = objectType({
57333
- tenant_id: stringType().optional(),
57334
- params: DestinationCreate$inboundSchema
57335
- }).transform((v2) => {
57336
- return remap(v2, {
57337
- tenant_id: "tenantId"
57250
+ init_schemas4();
57251
+ init_outposterror();
57252
+ InternalServerError = class InternalServerError extends OutpostError {
57253
+ additionalProperties = {};
57254
+ data$;
57255
+ constructor(err, httpMeta) {
57256
+ const message = err.message || `API error occurred: ${JSON.stringify(err)}`;
57257
+ super(message, httpMeta);
57258
+ this.data$ = err;
57259
+ if (err.additionalProperties != null) {
57260
+ this.additionalProperties = err.additionalProperties;
57261
+ }
57262
+ this.name = "InternalServerError";
57263
+ }
57264
+ };
57265
+ InternalServerError$inboundSchema = collectExtraKeys(objectType({
57266
+ message: stringType().optional(),
57267
+ request$: instanceOfType(Request),
57268
+ response$: instanceOfType(Response),
57269
+ body$: stringType()
57270
+ }).catchall(anyType()), "additionalProperties", false).transform((v2) => {
57271
+ return new InternalServerError(v2, {
57272
+ request: v2.request$,
57273
+ response: v2.response$,
57274
+ body: v2.body$
57338
57275
  });
57339
57276
  });
57340
- CreateTenantDestinationRequest$outboundSchema = objectType({
57341
- tenantId: stringType().optional(),
57342
- params: DestinationCreate$outboundSchema
57277
+ InternalServerError$outboundSchema = instanceOfType(InternalServerError).transform((v2) => v2.data$).pipe(objectType({
57278
+ message: stringType().optional(),
57279
+ additionalProperties: recordType(anyType())
57343
57280
  }).transform((v2) => {
57344
- return remap(v2, {
57345
- tenantId: "tenant_id"
57346
- });
57347
- });
57281
+ return {
57282
+ ...v2.additionalProperties,
57283
+ ...remap(v2, {
57284
+ additionalProperties: null
57285
+ })
57286
+ };
57287
+ }));
57348
57288
  });
57349
57289
 
57350
- // src/models/operations/deletetenant.ts
57351
- var DeleteTenantGlobals$inboundSchema, DeleteTenantGlobals$outboundSchema, DeleteTenantRequest$inboundSchema, DeleteTenantRequest$outboundSchema;
57352
- var init_deletetenant = __esm(() => {
57290
+ // src/models/errors/listtenants.ts
57291
+ var NotImplementedError, NotImplementedError$inboundSchema, NotImplementedError$outboundSchema;
57292
+ var init_listtenants = __esm(() => {
57353
57293
  init_v3();
57354
- init_primitives();
57355
- DeleteTenantGlobals$inboundSchema = objectType({
57356
- tenant_id: stringType().optional()
57294
+ init_outposterror();
57295
+ NotImplementedError = class NotImplementedError extends OutpostError {
57296
+ error;
57297
+ data$;
57298
+ constructor(err, httpMeta) {
57299
+ const message = "message" in err && typeof err.message === "string" ? err.message : `API error occurred: ${JSON.stringify(err)}`;
57300
+ super(message, httpMeta);
57301
+ this.data$ = err;
57302
+ if (err.error != null)
57303
+ this.error = err.error;
57304
+ this.name = "NotImplementedError";
57305
+ }
57306
+ };
57307
+ NotImplementedError$inboundSchema = objectType({
57308
+ error: stringType().optional(),
57309
+ request$: instanceOfType(Request),
57310
+ response$: instanceOfType(Response),
57311
+ body$: stringType()
57357
57312
  }).transform((v2) => {
57358
- return remap(v2, {
57359
- tenant_id: "tenantId"
57313
+ return new NotImplementedError(v2, {
57314
+ request: v2.request$,
57315
+ response: v2.response$,
57316
+ body: v2.body$
57360
57317
  });
57361
57318
  });
57362
- DeleteTenantGlobals$outboundSchema = objectType({
57363
- tenantId: stringType().optional()
57319
+ NotImplementedError$outboundSchema = instanceOfType(NotImplementedError).transform((v2) => v2.data$).pipe(objectType({
57320
+ error: stringType().optional()
57321
+ }));
57322
+ });
57323
+
57324
+ // src/models/errors/notfounderror.ts
57325
+ var NotFoundError, NotFoundError$inboundSchema, NotFoundError$outboundSchema;
57326
+ var init_notfounderror = __esm(() => {
57327
+ init_v3();
57328
+ init_primitives();
57329
+ init_schemas4();
57330
+ init_outposterror();
57331
+ NotFoundError = class NotFoundError extends OutpostError {
57332
+ additionalProperties = {};
57333
+ data$;
57334
+ constructor(err, httpMeta) {
57335
+ const message = err.message || `API error occurred: ${JSON.stringify(err)}`;
57336
+ super(message, httpMeta);
57337
+ this.data$ = err;
57338
+ if (err.additionalProperties != null) {
57339
+ this.additionalProperties = err.additionalProperties;
57340
+ }
57341
+ this.name = "NotFoundError";
57342
+ }
57343
+ };
57344
+ NotFoundError$inboundSchema = collectExtraKeys(objectType({
57345
+ message: stringType().optional(),
57346
+ request$: instanceOfType(Request),
57347
+ response$: instanceOfType(Response),
57348
+ body$: stringType()
57349
+ }).catchall(anyType()), "additionalProperties", false).transform((v2) => {
57350
+ return new NotFoundError(v2, {
57351
+ request: v2.request$,
57352
+ response: v2.response$,
57353
+ body: v2.body$
57354
+ });
57355
+ });
57356
+ NotFoundError$outboundSchema = instanceOfType(NotFoundError).transform((v2) => v2.data$).pipe(objectType({
57357
+ message: stringType().optional(),
57358
+ additionalProperties: recordType(anyType())
57364
57359
  }).transform((v2) => {
57365
- return remap(v2, {
57366
- tenantId: "tenant_id"
57360
+ return {
57361
+ ...v2.additionalProperties,
57362
+ ...remap(v2, {
57363
+ additionalProperties: null
57364
+ })
57365
+ };
57366
+ }));
57367
+ });
57368
+
57369
+ // src/models/errors/ratelimitederror.ts
57370
+ var RateLimitedError, RateLimitedError$inboundSchema, RateLimitedError$outboundSchema;
57371
+ var init_ratelimitederror = __esm(() => {
57372
+ init_v3();
57373
+ init_primitives();
57374
+ init_schemas4();
57375
+ init_outposterror();
57376
+ RateLimitedError = class RateLimitedError extends OutpostError {
57377
+ additionalProperties = {};
57378
+ data$;
57379
+ constructor(err, httpMeta) {
57380
+ const message = err.message || `API error occurred: ${JSON.stringify(err)}`;
57381
+ super(message, httpMeta);
57382
+ this.data$ = err;
57383
+ if (err.additionalProperties != null) {
57384
+ this.additionalProperties = err.additionalProperties;
57385
+ }
57386
+ this.name = "RateLimitedError";
57387
+ }
57388
+ };
57389
+ RateLimitedError$inboundSchema = collectExtraKeys(objectType({
57390
+ message: stringType().optional(),
57391
+ request$: instanceOfType(Request),
57392
+ response$: instanceOfType(Response),
57393
+ body$: stringType()
57394
+ }).catchall(anyType()), "additionalProperties", false).transform((v2) => {
57395
+ return new RateLimitedError(v2, {
57396
+ request: v2.request$,
57397
+ response: v2.response$,
57398
+ body: v2.body$
57367
57399
  });
57368
57400
  });
57369
- DeleteTenantRequest$inboundSchema = objectType({
57370
- tenant_id: stringType().optional()
57401
+ RateLimitedError$outboundSchema = instanceOfType(RateLimitedError).transform((v2) => v2.data$).pipe(objectType({
57402
+ message: stringType().optional(),
57403
+ additionalProperties: recordType(anyType())
57404
+ }).transform((v2) => {
57405
+ return {
57406
+ ...v2.additionalProperties,
57407
+ ...remap(v2, {
57408
+ additionalProperties: null
57409
+ })
57410
+ };
57411
+ }));
57412
+ });
57413
+
57414
+ // src/models/errors/timeouterror.ts
57415
+ var TimeoutError, TimeoutError$inboundSchema, TimeoutError$outboundSchema;
57416
+ var init_timeouterror = __esm(() => {
57417
+ init_v3();
57418
+ init_primitives();
57419
+ init_schemas4();
57420
+ init_outposterror();
57421
+ TimeoutError = class TimeoutError extends OutpostError {
57422
+ additionalProperties = {};
57423
+ data$;
57424
+ constructor(err, httpMeta) {
57425
+ const message = err.message || `API error occurred: ${JSON.stringify(err)}`;
57426
+ super(message, httpMeta);
57427
+ this.data$ = err;
57428
+ if (err.additionalProperties != null) {
57429
+ this.additionalProperties = err.additionalProperties;
57430
+ }
57431
+ this.name = "TimeoutError";
57432
+ }
57433
+ };
57434
+ TimeoutError$inboundSchema = collectExtraKeys(objectType({
57435
+ message: stringType().optional(),
57436
+ request$: instanceOfType(Request),
57437
+ response$: instanceOfType(Response),
57438
+ body$: stringType()
57439
+ }).catchall(anyType()), "additionalProperties", false).transform((v2) => {
57440
+ return new TimeoutError(v2, {
57441
+ request: v2.request$,
57442
+ response: v2.response$,
57443
+ body: v2.body$
57444
+ });
57445
+ });
57446
+ TimeoutError$outboundSchema = instanceOfType(TimeoutError).transform((v2) => v2.data$).pipe(objectType({
57447
+ message: stringType().optional(),
57448
+ additionalProperties: recordType(anyType())
57449
+ }).transform((v2) => {
57450
+ return {
57451
+ ...v2.additionalProperties,
57452
+ ...remap(v2, {
57453
+ additionalProperties: null
57454
+ })
57455
+ };
57456
+ }));
57457
+ });
57458
+
57459
+ // src/models/errors/unauthorizederror.ts
57460
+ var UnauthorizedError, UnauthorizedError$inboundSchema, UnauthorizedError$outboundSchema;
57461
+ var init_unauthorizederror = __esm(() => {
57462
+ init_v3();
57463
+ init_primitives();
57464
+ init_schemas4();
57465
+ init_outposterror();
57466
+ UnauthorizedError = class UnauthorizedError extends OutpostError {
57467
+ additionalProperties = {};
57468
+ data$;
57469
+ constructor(err, httpMeta) {
57470
+ const message = err.message || `API error occurred: ${JSON.stringify(err)}`;
57471
+ super(message, httpMeta);
57472
+ this.data$ = err;
57473
+ if (err.additionalProperties != null) {
57474
+ this.additionalProperties = err.additionalProperties;
57475
+ }
57476
+ this.name = "UnauthorizedError";
57477
+ }
57478
+ };
57479
+ UnauthorizedError$inboundSchema = collectExtraKeys(objectType({
57480
+ message: stringType().optional(),
57481
+ request$: instanceOfType(Request),
57482
+ response$: instanceOfType(Response),
57483
+ body$: stringType()
57484
+ }).catchall(anyType()), "additionalProperties", false).transform((v2) => {
57485
+ return new UnauthorizedError(v2, {
57486
+ request: v2.request$,
57487
+ response: v2.response$,
57488
+ body: v2.body$
57489
+ });
57490
+ });
57491
+ UnauthorizedError$outboundSchema = instanceOfType(UnauthorizedError).transform((v2) => v2.data$).pipe(objectType({
57492
+ message: stringType().optional(),
57493
+ additionalProperties: recordType(anyType())
57494
+ }).transform((v2) => {
57495
+ return {
57496
+ ...v2.additionalProperties,
57497
+ ...remap(v2, {
57498
+ additionalProperties: null
57499
+ })
57500
+ };
57501
+ }));
57502
+ });
57503
+
57504
+ // src/models/errors/index.ts
57505
+ var init_errors4 = __esm(() => {
57506
+ init_apierror();
57507
+ init_apierrorresponse();
57508
+ init_badrequesterror();
57509
+ init_httpclienterrors();
57510
+ init_internalservererror();
57511
+ init_listtenants();
57512
+ init_notfounderror();
57513
+ init_outposterror();
57514
+ init_ratelimitederror();
57515
+ init_responsevalidationerror();
57516
+ init_sdkvalidationerror();
57517
+ init_timeouterror();
57518
+ init_unauthorizederror();
57519
+ });
57520
+
57521
+ // src/models/operations/createtenantdestination.ts
57522
+ var CreateTenantDestinationRequest$inboundSchema, CreateTenantDestinationRequest$outboundSchema;
57523
+ var init_createtenantdestination = __esm(() => {
57524
+ init_v3();
57525
+ init_primitives();
57526
+ init_components();
57527
+ CreateTenantDestinationRequest$inboundSchema = objectType({
57528
+ tenant_id: stringType(),
57529
+ params: DestinationCreate$inboundSchema
57371
57530
  }).transform((v2) => {
57372
57531
  return remap(v2, {
57373
57532
  tenant_id: "tenantId"
57374
57533
  });
57375
57534
  });
57376
- DeleteTenantRequest$outboundSchema = objectType({
57377
- tenantId: stringType().optional()
57535
+ CreateTenantDestinationRequest$outboundSchema = objectType({
57536
+ tenantId: stringType(),
57537
+ params: DestinationCreate$outboundSchema
57378
57538
  }).transform((v2) => {
57379
57539
  return remap(v2, {
57380
57540
  tenantId: "tenant_id"
@@ -57382,27 +57542,34 @@ var init_deletetenant = __esm(() => {
57382
57542
  });
57383
57543
  });
57384
57544
 
57385
- // src/models/operations/deletetenantdestination.ts
57386
- var DeleteTenantDestinationGlobals$inboundSchema, DeleteTenantDestinationGlobals$outboundSchema, DeleteTenantDestinationRequest$inboundSchema, DeleteTenantDestinationRequest$outboundSchema;
57387
- var init_deletetenantdestination = __esm(() => {
57545
+ // src/models/operations/deletetenant.ts
57546
+ var DeleteTenantRequest$inboundSchema, DeleteTenantRequest$outboundSchema;
57547
+ var init_deletetenant = __esm(() => {
57388
57548
  init_v3();
57389
57549
  init_primitives();
57390
- DeleteTenantDestinationGlobals$inboundSchema = objectType({
57391
- tenant_id: stringType().optional()
57550
+ DeleteTenantRequest$inboundSchema = objectType({
57551
+ tenant_id: stringType()
57392
57552
  }).transform((v2) => {
57393
57553
  return remap(v2, {
57394
57554
  tenant_id: "tenantId"
57395
57555
  });
57396
57556
  });
57397
- DeleteTenantDestinationGlobals$outboundSchema = objectType({
57398
- tenantId: stringType().optional()
57557
+ DeleteTenantRequest$outboundSchema = objectType({
57558
+ tenantId: stringType()
57399
57559
  }).transform((v2) => {
57400
57560
  return remap(v2, {
57401
57561
  tenantId: "tenant_id"
57402
57562
  });
57403
57563
  });
57564
+ });
57565
+
57566
+ // src/models/operations/deletetenantdestination.ts
57567
+ var DeleteTenantDestinationRequest$inboundSchema, DeleteTenantDestinationRequest$outboundSchema;
57568
+ var init_deletetenantdestination = __esm(() => {
57569
+ init_v3();
57570
+ init_primitives();
57404
57571
  DeleteTenantDestinationRequest$inboundSchema = objectType({
57405
- tenant_id: stringType().optional(),
57572
+ tenant_id: stringType(),
57406
57573
  destination_id: stringType()
57407
57574
  }).transform((v2) => {
57408
57575
  return remap(v2, {
@@ -57411,7 +57578,7 @@ var init_deletetenantdestination = __esm(() => {
57411
57578
  });
57412
57579
  });
57413
57580
  DeleteTenantDestinationRequest$outboundSchema = objectType({
57414
- tenantId: stringType().optional(),
57581
+ tenantId: stringType(),
57415
57582
  destinationId: stringType()
57416
57583
  }).transform((v2) => {
57417
57584
  return remap(v2, {
@@ -57422,26 +57589,12 @@ var init_deletetenantdestination = __esm(() => {
57422
57589
  });
57423
57590
 
57424
57591
  // src/models/operations/disabletenantdestination.ts
57425
- var DisableTenantDestinationGlobals$inboundSchema, DisableTenantDestinationGlobals$outboundSchema, DisableTenantDestinationRequest$inboundSchema, DisableTenantDestinationRequest$outboundSchema;
57592
+ var DisableTenantDestinationRequest$inboundSchema, DisableTenantDestinationRequest$outboundSchema;
57426
57593
  var init_disabletenantdestination = __esm(() => {
57427
57594
  init_v3();
57428
57595
  init_primitives();
57429
- DisableTenantDestinationGlobals$inboundSchema = objectType({
57430
- tenant_id: stringType().optional()
57431
- }).transform((v2) => {
57432
- return remap(v2, {
57433
- tenant_id: "tenantId"
57434
- });
57435
- });
57436
- DisableTenantDestinationGlobals$outboundSchema = objectType({
57437
- tenantId: stringType().optional()
57438
- }).transform((v2) => {
57439
- return remap(v2, {
57440
- tenantId: "tenant_id"
57441
- });
57442
- });
57443
57596
  DisableTenantDestinationRequest$inboundSchema = objectType({
57444
- tenant_id: stringType().optional(),
57597
+ tenant_id: stringType(),
57445
57598
  destination_id: stringType()
57446
57599
  }).transform((v2) => {
57447
57600
  return remap(v2, {
@@ -57450,7 +57603,7 @@ var init_disabletenantdestination = __esm(() => {
57450
57603
  });
57451
57604
  });
57452
57605
  DisableTenantDestinationRequest$outboundSchema = objectType({
57453
- tenantId: stringType().optional(),
57606
+ tenantId: stringType(),
57454
57607
  destinationId: stringType()
57455
57608
  }).transform((v2) => {
57456
57609
  return remap(v2, {
@@ -57461,35 +57614,21 @@ var init_disabletenantdestination = __esm(() => {
57461
57614
  });
57462
57615
 
57463
57616
  // src/models/operations/enabletenantdestination.ts
57464
- var EnableTenantDestinationGlobals$inboundSchema, EnableTenantDestinationGlobals$outboundSchema, EnableTenantDestinationRequest$inboundSchema, EnableTenantDestinationRequest$outboundSchema;
57617
+ var EnableTenantDestinationRequest$inboundSchema, EnableTenantDestinationRequest$outboundSchema;
57465
57618
  var init_enabletenantdestination = __esm(() => {
57466
57619
  init_v3();
57467
57620
  init_primitives();
57468
- EnableTenantDestinationGlobals$inboundSchema = objectType({
57469
- tenant_id: stringType().optional()
57621
+ EnableTenantDestinationRequest$inboundSchema = objectType({
57622
+ tenant_id: stringType(),
57623
+ destination_id: stringType()
57470
57624
  }).transform((v2) => {
57471
57625
  return remap(v2, {
57472
- tenant_id: "tenantId"
57473
- });
57474
- });
57475
- EnableTenantDestinationGlobals$outboundSchema = objectType({
57476
- tenantId: stringType().optional()
57477
- }).transform((v2) => {
57478
- return remap(v2, {
57479
- tenantId: "tenant_id"
57480
- });
57481
- });
57482
- EnableTenantDestinationRequest$inboundSchema = objectType({
57483
- tenant_id: stringType().optional(),
57484
- destination_id: stringType()
57485
- }).transform((v2) => {
57486
- return remap(v2, {
57487
- tenant_id: "tenantId",
57488
- destination_id: "destinationId"
57626
+ tenant_id: "tenantId",
57627
+ destination_id: "destinationId"
57489
57628
  });
57490
57629
  });
57491
57630
  EnableTenantDestinationRequest$outboundSchema = objectType({
57492
- tenantId: stringType().optional(),
57631
+ tenantId: stringType(),
57493
57632
  destinationId: stringType()
57494
57633
  }).transform((v2) => {
57495
57634
  return remap(v2, {
@@ -57534,7 +57673,9 @@ var init_getdestinationtypeschema = __esm(() => {
57534
57673
  Rabbitmq: "rabbitmq",
57535
57674
  Hookdeck: "hookdeck",
57536
57675
  AwsKinesis: "aws_kinesis",
57537
- AwsS3: "aws_s3"
57676
+ AzureServicebus: "azure_servicebus",
57677
+ AwsS3: "aws_s3",
57678
+ GcpPubsub: "gcp_pubsub"
57538
57679
  };
57539
57680
  GetDestinationTypeSchemaType$inboundSchema = nativeEnumType(GetDestinationTypeSchemaType);
57540
57681
  GetDestinationTypeSchemaType$outboundSchema = GetDestinationTypeSchemaType$inboundSchema;
@@ -57568,33 +57709,19 @@ var init_getevent = __esm(() => {
57568
57709
  });
57569
57710
 
57570
57711
  // src/models/operations/gettenant.ts
57571
- var GetTenantGlobals$inboundSchema, GetTenantGlobals$outboundSchema, GetTenantRequest$inboundSchema, GetTenantRequest$outboundSchema;
57712
+ var GetTenantRequest$inboundSchema, GetTenantRequest$outboundSchema;
57572
57713
  var init_gettenant = __esm(() => {
57573
57714
  init_v3();
57574
57715
  init_primitives();
57575
- GetTenantGlobals$inboundSchema = objectType({
57576
- tenant_id: stringType().optional()
57577
- }).transform((v2) => {
57578
- return remap(v2, {
57579
- tenant_id: "tenantId"
57580
- });
57581
- });
57582
- GetTenantGlobals$outboundSchema = objectType({
57583
- tenantId: stringType().optional()
57584
- }).transform((v2) => {
57585
- return remap(v2, {
57586
- tenantId: "tenant_id"
57587
- });
57588
- });
57589
57716
  GetTenantRequest$inboundSchema = objectType({
57590
- tenant_id: stringType().optional()
57717
+ tenant_id: stringType()
57591
57718
  }).transform((v2) => {
57592
57719
  return remap(v2, {
57593
57720
  tenant_id: "tenantId"
57594
57721
  });
57595
57722
  });
57596
57723
  GetTenantRequest$outboundSchema = objectType({
57597
- tenantId: stringType().optional()
57724
+ tenantId: stringType()
57598
57725
  }).transform((v2) => {
57599
57726
  return remap(v2, {
57600
57727
  tenantId: "tenant_id"
@@ -57603,26 +57730,12 @@ var init_gettenant = __esm(() => {
57603
57730
  });
57604
57731
 
57605
57732
  // src/models/operations/gettenantdestination.ts
57606
- var GetTenantDestinationGlobals$inboundSchema, GetTenantDestinationGlobals$outboundSchema, GetTenantDestinationRequest$inboundSchema, GetTenantDestinationRequest$outboundSchema;
57733
+ var GetTenantDestinationRequest$inboundSchema, GetTenantDestinationRequest$outboundSchema;
57607
57734
  var init_gettenantdestination = __esm(() => {
57608
57735
  init_v3();
57609
57736
  init_primitives();
57610
- GetTenantDestinationGlobals$inboundSchema = objectType({
57611
- tenant_id: stringType().optional()
57612
- }).transform((v2) => {
57613
- return remap(v2, {
57614
- tenant_id: "tenantId"
57615
- });
57616
- });
57617
- GetTenantDestinationGlobals$outboundSchema = objectType({
57618
- tenantId: stringType().optional()
57619
- }).transform((v2) => {
57620
- return remap(v2, {
57621
- tenantId: "tenant_id"
57622
- });
57623
- });
57624
57737
  GetTenantDestinationRequest$inboundSchema = objectType({
57625
- tenant_id: stringType().optional(),
57738
+ tenant_id: stringType(),
57626
57739
  destination_id: stringType()
57627
57740
  }).transform((v2) => {
57628
57741
  return remap(v2, {
@@ -57631,7 +57744,7 @@ var init_gettenantdestination = __esm(() => {
57631
57744
  });
57632
57745
  });
57633
57746
  GetTenantDestinationRequest$outboundSchema = objectType({
57634
- tenantId: stringType().optional(),
57747
+ tenantId: stringType(),
57635
57748
  destinationId: stringType()
57636
57749
  }).transform((v2) => {
57637
57750
  return remap(v2, {
@@ -57642,28 +57755,14 @@ var init_gettenantdestination = __esm(() => {
57642
57755
  });
57643
57756
 
57644
57757
  // src/models/operations/gettenantdestinationattempt.ts
57645
- var GetTenantDestinationAttemptGlobals$inboundSchema, GetTenantDestinationAttemptGlobals$outboundSchema, GetTenantDestinationAttemptInclude$inboundSchema, GetTenantDestinationAttemptInclude$outboundSchema, GetTenantDestinationAttemptRequest$inboundSchema, GetTenantDestinationAttemptRequest$outboundSchema;
57758
+ var GetTenantDestinationAttemptInclude$inboundSchema, GetTenantDestinationAttemptInclude$outboundSchema, GetTenantDestinationAttemptRequest$inboundSchema, GetTenantDestinationAttemptRequest$outboundSchema;
57646
57759
  var init_gettenantdestinationattempt = __esm(() => {
57647
57760
  init_v3();
57648
57761
  init_primitives();
57649
- GetTenantDestinationAttemptGlobals$inboundSchema = objectType({
57650
- tenant_id: stringType().optional()
57651
- }).transform((v2) => {
57652
- return remap(v2, {
57653
- tenant_id: "tenantId"
57654
- });
57655
- });
57656
- GetTenantDestinationAttemptGlobals$outboundSchema = objectType({
57657
- tenantId: stringType().optional()
57658
- }).transform((v2) => {
57659
- return remap(v2, {
57660
- tenantId: "tenant_id"
57661
- });
57662
- });
57663
57762
  GetTenantDestinationAttemptInclude$inboundSchema = unionType([stringType(), arrayType(stringType())]);
57664
57763
  GetTenantDestinationAttemptInclude$outboundSchema = unionType([stringType(), arrayType(stringType())]);
57665
57764
  GetTenantDestinationAttemptRequest$inboundSchema = objectType({
57666
- tenant_id: stringType().optional(),
57765
+ tenant_id: stringType(),
57667
57766
  destination_id: stringType(),
57668
57767
  attempt_id: stringType(),
57669
57768
  include: unionType([stringType(), arrayType(stringType())]).optional()
@@ -57675,7 +57774,7 @@ var init_gettenantdestinationattempt = __esm(() => {
57675
57774
  });
57676
57775
  });
57677
57776
  GetTenantDestinationAttemptRequest$outboundSchema = objectType({
57678
- tenantId: stringType().optional(),
57777
+ tenantId: stringType(),
57679
57778
  destinationId: stringType(),
57680
57779
  attemptId: stringType(),
57681
57780
  include: unionType([stringType(), arrayType(stringType())]).optional()
@@ -57689,7 +57788,7 @@ var init_gettenantdestinationattempt = __esm(() => {
57689
57788
  });
57690
57789
 
57691
57790
  // src/models/operations/gettenantportalurl.ts
57692
- var Theme, GetTenantPortalUrlGlobals$inboundSchema, GetTenantPortalUrlGlobals$outboundSchema, Theme$inboundSchema, Theme$outboundSchema, GetTenantPortalUrlRequest$inboundSchema, GetTenantPortalUrlRequest$outboundSchema;
57791
+ var Theme, Theme$inboundSchema, Theme$outboundSchema, GetTenantPortalUrlRequest$inboundSchema, GetTenantPortalUrlRequest$outboundSchema;
57693
57792
  var init_gettenantportalurl = __esm(() => {
57694
57793
  init_v3();
57695
57794
  init_primitives();
@@ -57697,24 +57796,10 @@ var init_gettenantportalurl = __esm(() => {
57697
57796
  Light: "light",
57698
57797
  Dark: "dark"
57699
57798
  };
57700
- GetTenantPortalUrlGlobals$inboundSchema = objectType({
57701
- tenant_id: stringType().optional()
57702
- }).transform((v2) => {
57703
- return remap(v2, {
57704
- tenant_id: "tenantId"
57705
- });
57706
- });
57707
- GetTenantPortalUrlGlobals$outboundSchema = objectType({
57708
- tenantId: stringType().optional()
57709
- }).transform((v2) => {
57710
- return remap(v2, {
57711
- tenantId: "tenant_id"
57712
- });
57713
- });
57714
57799
  Theme$inboundSchema = nativeEnumType(Theme);
57715
57800
  Theme$outboundSchema = Theme$inboundSchema;
57716
57801
  GetTenantPortalUrlRequest$inboundSchema = objectType({
57717
- tenant_id: stringType().optional(),
57802
+ tenant_id: stringType(),
57718
57803
  theme: Theme$inboundSchema.optional()
57719
57804
  }).transform((v2) => {
57720
57805
  return remap(v2, {
@@ -57722,7 +57807,7 @@ var init_gettenantportalurl = __esm(() => {
57722
57807
  });
57723
57808
  });
57724
57809
  GetTenantPortalUrlRequest$outboundSchema = objectType({
57725
- tenantId: stringType().optional(),
57810
+ tenantId: stringType(),
57726
57811
  theme: Theme$outboundSchema.optional()
57727
57812
  }).transform((v2) => {
57728
57813
  return remap(v2, {
@@ -57732,33 +57817,19 @@ var init_gettenantportalurl = __esm(() => {
57732
57817
  });
57733
57818
 
57734
57819
  // src/models/operations/gettenanttoken.ts
57735
- var GetTenantTokenGlobals$inboundSchema, GetTenantTokenGlobals$outboundSchema, GetTenantTokenRequest$inboundSchema, GetTenantTokenRequest$outboundSchema;
57820
+ var GetTenantTokenRequest$inboundSchema, GetTenantTokenRequest$outboundSchema;
57736
57821
  var init_gettenanttoken = __esm(() => {
57737
57822
  init_v3();
57738
57823
  init_primitives();
57739
- GetTenantTokenGlobals$inboundSchema = objectType({
57740
- tenant_id: stringType().optional()
57741
- }).transform((v2) => {
57742
- return remap(v2, {
57743
- tenant_id: "tenantId"
57744
- });
57745
- });
57746
- GetTenantTokenGlobals$outboundSchema = objectType({
57747
- tenantId: stringType().optional()
57748
- }).transform((v2) => {
57749
- return remap(v2, {
57750
- tenantId: "tenant_id"
57751
- });
57752
- });
57753
57824
  GetTenantTokenRequest$inboundSchema = objectType({
57754
- tenant_id: stringType().optional()
57825
+ tenant_id: stringType()
57755
57826
  }).transform((v2) => {
57756
57827
  return remap(v2, {
57757
57828
  tenant_id: "tenantId"
57758
57829
  });
57759
57830
  });
57760
57831
  GetTenantTokenRequest$outboundSchema = objectType({
57761
- tenantId: stringType().optional()
57832
+ tenantId: stringType()
57762
57833
  }).transform((v2) => {
57763
57834
  return remap(v2, {
57764
57835
  tenantId: "tenant_id"
@@ -57798,36 +57869,154 @@ var init_healthcheck = __esm(() => {
57798
57869
  });
57799
57870
  });
57800
57871
 
57801
- // src/models/operations/listtenantdestinationattempts.ts
57802
- var ListTenantDestinationAttemptsStatus, ListTenantDestinationAttemptsOrderBy, ListTenantDestinationAttemptsDir, ListTenantDestinationAttemptsGlobals$inboundSchema, ListTenantDestinationAttemptsGlobals$outboundSchema, ListTenantDestinationAttemptsStatus$inboundSchema, ListTenantDestinationAttemptsStatus$outboundSchema, ListTenantDestinationAttemptsTopic$inboundSchema, ListTenantDestinationAttemptsTopic$outboundSchema, ListTenantDestinationAttemptsInclude$inboundSchema, ListTenantDestinationAttemptsInclude$outboundSchema, ListTenantDestinationAttemptsOrderBy$inboundSchema, ListTenantDestinationAttemptsOrderBy$outboundSchema, ListTenantDestinationAttemptsDir$inboundSchema, ListTenantDestinationAttemptsDir$outboundSchema, ListTenantDestinationAttemptsRequest$inboundSchema, ListTenantDestinationAttemptsRequest$outboundSchema;
57803
- var init_listtenantdestinationattempts = __esm(() => {
57872
+ // src/models/operations/listattempts.ts
57873
+ var ListAttemptsStatus, ListAttemptsOrderBy, ListAttemptsDir, ListAttemptsStatus$inboundSchema, ListAttemptsStatus$outboundSchema, ListAttemptsTopic$inboundSchema, ListAttemptsTopic$outboundSchema, ListAttemptsInclude$inboundSchema, ListAttemptsInclude$outboundSchema, ListAttemptsOrderBy$inboundSchema, ListAttemptsOrderBy$outboundSchema, ListAttemptsDir$inboundSchema, ListAttemptsDir$outboundSchema, ListAttemptsRequest$inboundSchema, ListAttemptsRequest$outboundSchema;
57874
+ var init_listattempts = __esm(() => {
57804
57875
  init_v3();
57805
57876
  init_primitives();
57806
- ListTenantDestinationAttemptsStatus = {
57877
+ ListAttemptsStatus = {
57807
57878
  Success: "success",
57808
57879
  Failed: "failed"
57809
57880
  };
57810
- ListTenantDestinationAttemptsOrderBy = {
57881
+ ListAttemptsOrderBy = {
57811
57882
  Time: "time"
57812
57883
  };
57813
- ListTenantDestinationAttemptsDir = {
57884
+ ListAttemptsDir = {
57814
57885
  Asc: "asc",
57815
57886
  Desc: "desc"
57816
57887
  };
57817
- ListTenantDestinationAttemptsGlobals$inboundSchema = objectType({
57818
- tenant_id: stringType().optional()
57888
+ ListAttemptsStatus$inboundSchema = nativeEnumType(ListAttemptsStatus);
57889
+ ListAttemptsStatus$outboundSchema = ListAttemptsStatus$inboundSchema;
57890
+ ListAttemptsTopic$inboundSchema = unionType([stringType(), arrayType(stringType())]);
57891
+ ListAttemptsTopic$outboundSchema = unionType([stringType(), arrayType(stringType())]);
57892
+ ListAttemptsInclude$inboundSchema = unionType([stringType(), arrayType(stringType())]);
57893
+ ListAttemptsInclude$outboundSchema = unionType([stringType(), arrayType(stringType())]);
57894
+ ListAttemptsOrderBy$inboundSchema = nativeEnumType(ListAttemptsOrderBy);
57895
+ ListAttemptsOrderBy$outboundSchema = ListAttemptsOrderBy$inboundSchema;
57896
+ ListAttemptsDir$inboundSchema = nativeEnumType(ListAttemptsDir);
57897
+ ListAttemptsDir$outboundSchema = ListAttemptsDir$inboundSchema;
57898
+ ListAttemptsRequest$inboundSchema = objectType({
57899
+ tenant_id: stringType().optional(),
57900
+ event_id: stringType().optional(),
57901
+ destination_id: stringType().optional(),
57902
+ status: ListAttemptsStatus$inboundSchema.optional(),
57903
+ topic: unionType([stringType(), arrayType(stringType())]).optional(),
57904
+ "time[gte]": stringType().datetime({ offset: true }).transform((v2) => new Date(v2)).optional(),
57905
+ "time[lte]": stringType().datetime({ offset: true }).transform((v2) => new Date(v2)).optional(),
57906
+ limit: numberType().int().default(100),
57907
+ next: stringType().optional(),
57908
+ prev: stringType().optional(),
57909
+ include: unionType([stringType(), arrayType(stringType())]).optional(),
57910
+ order_by: ListAttemptsOrderBy$inboundSchema.default("time"),
57911
+ dir: ListAttemptsDir$inboundSchema.default("desc")
57819
57912
  }).transform((v2) => {
57820
57913
  return remap(v2, {
57821
- tenant_id: "tenantId"
57914
+ tenant_id: "tenantId",
57915
+ event_id: "eventId",
57916
+ destination_id: "destinationId",
57917
+ "time[gte]": "timeGte",
57918
+ "time[lte]": "timeLte",
57919
+ order_by: "orderBy"
57822
57920
  });
57823
57921
  });
57824
- ListTenantDestinationAttemptsGlobals$outboundSchema = objectType({
57825
- tenantId: stringType().optional()
57922
+ ListAttemptsRequest$outboundSchema = objectType({
57923
+ tenantId: stringType().optional(),
57924
+ eventId: stringType().optional(),
57925
+ destinationId: stringType().optional(),
57926
+ status: ListAttemptsStatus$outboundSchema.optional(),
57927
+ topic: unionType([stringType(), arrayType(stringType())]).optional(),
57928
+ timeGte: dateType().transform((v2) => v2.toISOString()).optional(),
57929
+ timeLte: dateType().transform((v2) => v2.toISOString()).optional(),
57930
+ limit: numberType().int().default(100),
57931
+ next: stringType().optional(),
57932
+ prev: stringType().optional(),
57933
+ include: unionType([stringType(), arrayType(stringType())]).optional(),
57934
+ orderBy: ListAttemptsOrderBy$outboundSchema.default("time"),
57935
+ dir: ListAttemptsDir$outboundSchema.default("desc")
57826
57936
  }).transform((v2) => {
57827
57937
  return remap(v2, {
57828
- tenantId: "tenant_id"
57938
+ tenantId: "tenant_id",
57939
+ eventId: "event_id",
57940
+ destinationId: "destination_id",
57941
+ timeGte: "time[gte]",
57942
+ timeLte: "time[lte]",
57943
+ orderBy: "order_by"
57944
+ });
57945
+ });
57946
+ });
57947
+
57948
+ // src/models/operations/listevents.ts
57949
+ var ListEventsOrderBy, ListEventsDir, ListEventsTopic$inboundSchema, ListEventsTopic$outboundSchema, ListEventsOrderBy$inboundSchema, ListEventsOrderBy$outboundSchema, ListEventsDir$inboundSchema, ListEventsDir$outboundSchema, ListEventsRequest$inboundSchema, ListEventsRequest$outboundSchema;
57950
+ var init_listevents = __esm(() => {
57951
+ init_v3();
57952
+ init_primitives();
57953
+ ListEventsOrderBy = {
57954
+ Time: "time"
57955
+ };
57956
+ ListEventsDir = {
57957
+ Asc: "asc",
57958
+ Desc: "desc"
57959
+ };
57960
+ ListEventsTopic$inboundSchema = unionType([stringType(), arrayType(stringType())]);
57961
+ ListEventsTopic$outboundSchema = unionType([stringType(), arrayType(stringType())]);
57962
+ ListEventsOrderBy$inboundSchema = nativeEnumType(ListEventsOrderBy);
57963
+ ListEventsOrderBy$outboundSchema = ListEventsOrderBy$inboundSchema;
57964
+ ListEventsDir$inboundSchema = nativeEnumType(ListEventsDir);
57965
+ ListEventsDir$outboundSchema = ListEventsDir$inboundSchema;
57966
+ ListEventsRequest$inboundSchema = objectType({
57967
+ tenant_id: stringType().optional(),
57968
+ topic: unionType([stringType(), arrayType(stringType())]).optional(),
57969
+ "time[gte]": stringType().datetime({ offset: true }).transform((v2) => new Date(v2)).optional(),
57970
+ "time[lte]": stringType().datetime({ offset: true }).transform((v2) => new Date(v2)).optional(),
57971
+ limit: numberType().int().default(100),
57972
+ next: stringType().optional(),
57973
+ prev: stringType().optional(),
57974
+ order_by: ListEventsOrderBy$inboundSchema.default("time"),
57975
+ dir: ListEventsDir$inboundSchema.default("desc")
57976
+ }).transform((v2) => {
57977
+ return remap(v2, {
57978
+ tenant_id: "tenantId",
57979
+ "time[gte]": "timeGte",
57980
+ "time[lte]": "timeLte",
57981
+ order_by: "orderBy"
57982
+ });
57983
+ });
57984
+ ListEventsRequest$outboundSchema = objectType({
57985
+ tenantId: stringType().optional(),
57986
+ topic: unionType([stringType(), arrayType(stringType())]).optional(),
57987
+ timeGte: dateType().transform((v2) => v2.toISOString()).optional(),
57988
+ timeLte: dateType().transform((v2) => v2.toISOString()).optional(),
57989
+ limit: numberType().int().default(100),
57990
+ next: stringType().optional(),
57991
+ prev: stringType().optional(),
57992
+ orderBy: ListEventsOrderBy$outboundSchema.default("time"),
57993
+ dir: ListEventsDir$outboundSchema.default("desc")
57994
+ }).transform((v2) => {
57995
+ return remap(v2, {
57996
+ tenantId: "tenant_id",
57997
+ timeGte: "time[gte]",
57998
+ timeLte: "time[lte]",
57999
+ orderBy: "order_by"
57829
58000
  });
57830
58001
  });
58002
+ });
58003
+
58004
+ // src/models/operations/listtenantdestinationattempts.ts
58005
+ var ListTenantDestinationAttemptsStatus, ListTenantDestinationAttemptsOrderBy, ListTenantDestinationAttemptsDir, ListTenantDestinationAttemptsStatus$inboundSchema, ListTenantDestinationAttemptsStatus$outboundSchema, ListTenantDestinationAttemptsTopic$inboundSchema, ListTenantDestinationAttemptsTopic$outboundSchema, ListTenantDestinationAttemptsInclude$inboundSchema, ListTenantDestinationAttemptsInclude$outboundSchema, ListTenantDestinationAttemptsOrderBy$inboundSchema, ListTenantDestinationAttemptsOrderBy$outboundSchema, ListTenantDestinationAttemptsDir$inboundSchema, ListTenantDestinationAttemptsDir$outboundSchema, ListTenantDestinationAttemptsRequest$inboundSchema, ListTenantDestinationAttemptsRequest$outboundSchema;
58006
+ var init_listtenantdestinationattempts = __esm(() => {
58007
+ init_v3();
58008
+ init_primitives();
58009
+ ListTenantDestinationAttemptsStatus = {
58010
+ Success: "success",
58011
+ Failed: "failed"
58012
+ };
58013
+ ListTenantDestinationAttemptsOrderBy = {
58014
+ Time: "time"
58015
+ };
58016
+ ListTenantDestinationAttemptsDir = {
58017
+ Asc: "asc",
58018
+ Desc: "desc"
58019
+ };
57831
58020
  ListTenantDestinationAttemptsStatus$inboundSchema = nativeEnumType(ListTenantDestinationAttemptsStatus);
57832
58021
  ListTenantDestinationAttemptsStatus$outboundSchema = ListTenantDestinationAttemptsStatus$inboundSchema;
57833
58022
  ListTenantDestinationAttemptsTopic$inboundSchema = unionType([stringType(), arrayType(stringType())]);
@@ -57839,7 +58028,7 @@ var init_listtenantdestinationattempts = __esm(() => {
57839
58028
  ListTenantDestinationAttemptsDir$inboundSchema = nativeEnumType(ListTenantDestinationAttemptsDir);
57840
58029
  ListTenantDestinationAttemptsDir$outboundSchema = ListTenantDestinationAttemptsDir$inboundSchema;
57841
58030
  ListTenantDestinationAttemptsRequest$inboundSchema = objectType({
57842
- tenant_id: stringType().optional(),
58031
+ tenant_id: stringType(),
57843
58032
  destination_id: stringType(),
57844
58033
  event_id: stringType().optional(),
57845
58034
  status: ListTenantDestinationAttemptsStatus$inboundSchema.optional(),
@@ -57863,7 +58052,7 @@ var init_listtenantdestinationattempts = __esm(() => {
57863
58052
  });
57864
58053
  });
57865
58054
  ListTenantDestinationAttemptsRequest$outboundSchema = objectType({
57866
- tenantId: stringType().optional(),
58055
+ tenantId: stringType(),
57867
58056
  destinationId: stringType(),
57868
58057
  eventId: stringType().optional(),
57869
58058
  status: ListTenantDestinationAttemptsStatus$outboundSchema.optional(),
@@ -57889,25 +58078,11 @@ var init_listtenantdestinationattempts = __esm(() => {
57889
58078
  });
57890
58079
 
57891
58080
  // src/models/operations/listtenantdestinations.ts
57892
- var ListTenantDestinationsGlobals$inboundSchema, ListTenantDestinationsGlobals$outboundSchema, ListTenantDestinationsType$inboundSchema, ListTenantDestinationsType$outboundSchema, Topics$inboundSchema2, Topics$outboundSchema2, ListTenantDestinationsRequest$inboundSchema, ListTenantDestinationsRequest$outboundSchema;
58081
+ var ListTenantDestinationsType$inboundSchema, ListTenantDestinationsType$outboundSchema, Topics$inboundSchema2, Topics$outboundSchema2, ListTenantDestinationsRequest$inboundSchema, ListTenantDestinationsRequest$outboundSchema;
57893
58082
  var init_listtenantdestinations = __esm(() => {
57894
58083
  init_v3();
57895
58084
  init_primitives();
57896
58085
  init_components();
57897
- ListTenantDestinationsGlobals$inboundSchema = objectType({
57898
- tenant_id: stringType().optional()
57899
- }).transform((v2) => {
57900
- return remap(v2, {
57901
- tenant_id: "tenantId"
57902
- });
57903
- });
57904
- ListTenantDestinationsGlobals$outboundSchema = objectType({
57905
- tenantId: stringType().optional()
57906
- }).transform((v2) => {
57907
- return remap(v2, {
57908
- tenantId: "tenant_id"
57909
- });
57910
- });
57911
58086
  ListTenantDestinationsType$inboundSchema = unionType([
57912
58087
  DestinationType$inboundSchema,
57913
58088
  arrayType(DestinationType$inboundSchema)
@@ -57919,7 +58094,7 @@ var init_listtenantdestinations = __esm(() => {
57919
58094
  Topics$inboundSchema2 = unionType([stringType(), arrayType(stringType())]);
57920
58095
  Topics$outboundSchema2 = unionType([stringType(), arrayType(stringType())]);
57921
58096
  ListTenantDestinationsRequest$inboundSchema = objectType({
57922
- tenant_id: stringType().optional(),
58097
+ tenant_id: stringType(),
57923
58098
  type: unionType([
57924
58099
  DestinationType$inboundSchema,
57925
58100
  arrayType(DestinationType$inboundSchema)
@@ -57931,7 +58106,7 @@ var init_listtenantdestinations = __esm(() => {
57931
58106
  });
57932
58107
  });
57933
58108
  ListTenantDestinationsRequest$outboundSchema = objectType({
57934
- tenantId: stringType().optional(),
58109
+ tenantId: stringType(),
57935
58110
  type: unionType([
57936
58111
  DestinationType$outboundSchema,
57937
58112
  arrayType(DestinationType$outboundSchema)
@@ -57945,75 +58120,37 @@ var init_listtenantdestinations = __esm(() => {
57945
58120
  });
57946
58121
 
57947
58122
  // src/models/operations/listtenants.ts
57948
- var ListTenantsOrderBy, ListTenantsDir, ListTenantsOrderBy$inboundSchema, ListTenantsOrderBy$outboundSchema, ListTenantsDir$inboundSchema, ListTenantsDir$outboundSchema, ListTenantsRequest$inboundSchema, ListTenantsRequest$outboundSchema;
57949
- var init_listtenants = __esm(() => {
58123
+ var ListTenantsDir, ListTenantsDir$inboundSchema, ListTenantsDir$outboundSchema, ListTenantsRequest$inboundSchema, ListTenantsRequest$outboundSchema;
58124
+ var init_listtenants2 = __esm(() => {
57950
58125
  init_v3();
57951
- init_primitives();
57952
- ListTenantsOrderBy = {
57953
- CreatedAt: "created_at"
57954
- };
57955
58126
  ListTenantsDir = {
57956
58127
  Asc: "asc",
57957
58128
  Desc: "desc"
57958
58129
  };
57959
- ListTenantsOrderBy$inboundSchema = nativeEnumType(ListTenantsOrderBy);
57960
- ListTenantsOrderBy$outboundSchema = ListTenantsOrderBy$inboundSchema;
57961
58130
  ListTenantsDir$inboundSchema = nativeEnumType(ListTenantsDir);
57962
58131
  ListTenantsDir$outboundSchema = ListTenantsDir$inboundSchema;
57963
58132
  ListTenantsRequest$inboundSchema = objectType({
57964
58133
  limit: numberType().int().default(20),
57965
- order_by: ListTenantsOrderBy$inboundSchema.default("created_at"),
57966
58134
  dir: ListTenantsDir$inboundSchema.default("desc"),
57967
- "created_at[gte]": stringType().datetime({ offset: true }).transform((v2) => new Date(v2)).optional(),
57968
- "created_at[lte]": stringType().datetime({ offset: true }).transform((v2) => new Date(v2)).optional(),
57969
58135
  next: stringType().optional(),
57970
58136
  prev: stringType().optional()
57971
- }).transform((v2) => {
57972
- return remap(v2, {
57973
- order_by: "orderBy",
57974
- "created_at[gte]": "createdAtGte",
57975
- "created_at[lte]": "createdAtLte"
57976
- });
57977
58137
  });
57978
58138
  ListTenantsRequest$outboundSchema = objectType({
57979
58139
  limit: numberType().int().default(20),
57980
- orderBy: ListTenantsOrderBy$outboundSchema.default("created_at"),
57981
58140
  dir: ListTenantsDir$outboundSchema.default("desc"),
57982
- createdAtGte: dateType().transform((v2) => v2.toISOString()).optional(),
57983
- createdAtLte: dateType().transform((v2) => v2.toISOString()).optional(),
57984
58141
  next: stringType().optional(),
57985
58142
  prev: stringType().optional()
57986
- }).transform((v2) => {
57987
- return remap(v2, {
57988
- orderBy: "order_by",
57989
- createdAtGte: "created_at[gte]",
57990
- createdAtLte: "created_at[lte]"
57991
- });
57992
58143
  });
57993
58144
  });
57994
58145
 
57995
58146
  // src/models/operations/updatetenantdestination.ts
57996
- var UpdateTenantDestinationGlobals$inboundSchema, UpdateTenantDestinationGlobals$outboundSchema, UpdateTenantDestinationRequest$inboundSchema, UpdateTenantDestinationRequest$outboundSchema, UpdateTenantDestinationResponse$inboundSchema;
58147
+ var UpdateTenantDestinationRequest$inboundSchema, UpdateTenantDestinationRequest$outboundSchema, UpdateTenantDestinationResponse$inboundSchema;
57997
58148
  var init_updatetenantdestination = __esm(() => {
57998
58149
  init_v3();
57999
58150
  init_primitives();
58000
58151
  init_components();
58001
- UpdateTenantDestinationGlobals$inboundSchema = objectType({
58002
- tenant_id: stringType().optional()
58003
- }).transform((v2) => {
58004
- return remap(v2, {
58005
- tenant_id: "tenantId"
58006
- });
58007
- });
58008
- UpdateTenantDestinationGlobals$outboundSchema = objectType({
58009
- tenantId: stringType().optional()
58010
- }).transform((v2) => {
58011
- return remap(v2, {
58012
- tenantId: "tenant_id"
58013
- });
58014
- });
58015
58152
  UpdateTenantDestinationRequest$inboundSchema = objectType({
58016
- tenant_id: stringType().optional(),
58153
+ tenant_id: stringType(),
58017
58154
  destination_id: stringType(),
58018
58155
  params: DestinationUpdate$inboundSchema
58019
58156
  }).transform((v2) => {
@@ -58023,7 +58160,7 @@ var init_updatetenantdestination = __esm(() => {
58023
58160
  });
58024
58161
  });
58025
58162
  UpdateTenantDestinationRequest$outboundSchema = objectType({
58026
- tenantId: stringType().optional(),
58163
+ tenantId: stringType(),
58027
58164
  destinationId: stringType(),
58028
58165
  params: DestinationUpdate$outboundSchema
58029
58166
  }).transform((v2) => {
@@ -58036,27 +58173,13 @@ var init_updatetenantdestination = __esm(() => {
58036
58173
  });
58037
58174
 
58038
58175
  // src/models/operations/upserttenant.ts
58039
- var UpsertTenantGlobals$inboundSchema, UpsertTenantGlobals$outboundSchema, UpsertTenantRequest$inboundSchema, UpsertTenantRequest$outboundSchema;
58176
+ var UpsertTenantRequest$inboundSchema, UpsertTenantRequest$outboundSchema;
58040
58177
  var init_upserttenant = __esm(() => {
58041
58178
  init_v3();
58042
58179
  init_primitives();
58043
58180
  init_components();
58044
- UpsertTenantGlobals$inboundSchema = objectType({
58045
- tenant_id: stringType().optional()
58046
- }).transform((v2) => {
58047
- return remap(v2, {
58048
- tenant_id: "tenantId"
58049
- });
58050
- });
58051
- UpsertTenantGlobals$outboundSchema = objectType({
58052
- tenantId: stringType().optional()
58053
- }).transform((v2) => {
58054
- return remap(v2, {
58055
- tenantId: "tenant_id"
58056
- });
58057
- });
58058
58181
  UpsertTenantRequest$inboundSchema = objectType({
58059
- tenant_id: stringType().optional(),
58182
+ tenant_id: stringType(),
58060
58183
  params: TenantUpsert$inboundSchema.optional()
58061
58184
  }).transform((v2) => {
58062
58185
  return remap(v2, {
@@ -58064,7 +58187,7 @@ var init_upserttenant = __esm(() => {
58064
58187
  });
58065
58188
  });
58066
58189
  UpsertTenantRequest$outboundSchema = objectType({
58067
- tenantId: stringType().optional(),
58190
+ tenantId: stringType(),
58068
58191
  params: TenantUpsert$outboundSchema.optional()
58069
58192
  }).transform((v2) => {
58070
58193
  return remap(v2, {
@@ -58075,8 +58198,6 @@ var init_upserttenant = __esm(() => {
58075
58198
 
58076
58199
  // src/models/operations/index.ts
58077
58200
  var init_operations = __esm(() => {
58078
- init_adminlistattempts();
58079
- init_adminlistevents();
58080
58201
  init_createtenantdestination();
58081
58202
  init_deletetenant();
58082
58203
  init_deletetenantdestination();
@@ -58091,9 +58212,11 @@ var init_operations = __esm(() => {
58091
58212
  init_gettenantportalurl();
58092
58213
  init_gettenanttoken();
58093
58214
  init_healthcheck();
58215
+ init_listattempts();
58216
+ init_listevents();
58094
58217
  init_listtenantdestinationattempts();
58095
58218
  init_listtenantdestinations();
58096
- init_listtenants();
58219
+ init_listtenants2();
58097
58220
  init_updatetenantdestination();
58098
58221
  init_upserttenant();
58099
58222
  });
@@ -58125,11 +58248,15 @@ var init_async = __esm(() => {
58125
58248
  });
58126
58249
 
58127
58250
  // src/funcs/attemptsGet.ts
58128
- function attemptsGet(client, request, options) {
58129
- return new APIPromise($do(client, request, options));
58251
+ function attemptsGet(client, attemptId, include, options) {
58252
+ return new APIPromise($do(client, attemptId, include, options));
58130
58253
  }
58131
- async function $do(client, request, options) {
58132
- const parsed = safeParse4(request, (value) => GetAttemptRequest$outboundSchema.parse(value), "Input validation failed");
58254
+ async function $do(client, attemptId, include, options) {
58255
+ const input = {
58256
+ attemptId,
58257
+ include
58258
+ };
58259
+ const parsed = safeParse4(input, (value) => GetAttemptRequest$outboundSchema.parse(value), "Input validation failed");
58133
58260
  if (!parsed.ok) {
58134
58261
  return [parsed, { status: "invalid" }];
58135
58262
  }
@@ -58148,7 +58275,8 @@ async function $do(client, request, options) {
58148
58275
  const headers = new Headers(compactMap({
58149
58276
  Accept: "application/json"
58150
58277
  }));
58151
- const securityInput = await extractSecurity(client._options.security);
58278
+ const secConfig = await extractSecurity(client._options.apiKey);
58279
+ const securityInput = secConfig == null ? {} : { apiKey: secConfig };
58152
58280
  const requestSecurity = resolveGlobalSecurity(securityInput);
58153
58281
  const context = {
58154
58282
  options: client._options,
@@ -58156,7 +58284,7 @@ async function $do(client, request, options) {
58156
58284
  operationID: "getAttempt",
58157
58285
  oAuth2Scopes: null,
58158
58286
  resolvedSecurity: requestSecurity,
58159
- securitySource: client._options.security,
58287
+ securitySource: client._options.apiKey,
58160
58288
  retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
58161
58289
  retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
58162
58290
  };
@@ -58177,7 +58305,7 @@ async function $do(client, request, options) {
58177
58305
  const req = requestRes.value;
58178
58306
  const doResult = await client._do(req, {
58179
58307
  context,
58180
- errorCodes: ["404", "4XX", "5XX"],
58308
+ errorCodes: ["401", "404", "4XX", "500", "5XX"],
58181
58309
  retryConfig: context.retryConfig,
58182
58310
  retryCodes: context.retryCodes
58183
58311
  });
@@ -58185,7 +58313,10 @@ async function $do(client, request, options) {
58185
58313
  return [doResult, { status: "request-error", request: req }];
58186
58314
  }
58187
58315
  const response = doResult.value;
58188
- const [result] = await match(json(200, Attempt$inboundSchema), fail([404, "4XX"]), fail("5XX"))(response, req);
58316
+ const responseFields = {
58317
+ HttpMeta: { Response: response, Request: req }
58318
+ };
58319
+ const [result] = await match(json(200, Attempt$inboundSchema), jsonErr(401, UnauthorizedError$inboundSchema), jsonErr(404, NotFoundError$inboundSchema), jsonErr(500, InternalServerError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
58189
58320
  if (!result.ok) {
58190
58321
  return [result, { status: "complete", request: req, response }];
58191
58322
  }
@@ -58199,432 +58330,44 @@ var init_attemptsGet = __esm(() => {
58199
58330
  init_security();
58200
58331
  init_url();
58201
58332
  init_components();
58333
+ init_errors4();
58202
58334
  init_operations();
58203
58335
  init_async();
58204
58336
  });
58205
58337
 
58206
- // src/mcp-server/tools/attemptsGet.ts
58207
- var args, tool$attemptsGet;
58208
- var init_attemptsGet2 = __esm(() => {
58209
- init_attemptsGet();
58210
- init_operations();
58211
- init_tools();
58212
- args = {
58213
- request: GetAttemptRequest$inboundSchema
58214
- };
58215
- tool$attemptsGet = {
58216
- name: "attempts-get",
58217
- description: `Get Attempt
58218
-
58219
- Retrieves details for a specific attempt.
58220
-
58221
- When authenticated with a Tenant JWT, only attempts belonging to that tenant can be accessed.
58222
- When authenticated with Admin API Key, attempts from any tenant can be accessed.
58223
- `,
58224
- args,
58225
- tool: async (client, args2, ctx) => {
58226
- const [result, apiCall] = await attemptsGet(client, args2.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
58227
- if (!result.ok) {
58228
- return {
58229
- content: [{ type: "text", text: result.error.message }],
58230
- isError: true
58231
- };
58232
- }
58233
- const value = result.value;
58234
- return formatResult(value, apiCall);
58235
- }
58236
- };
58237
- });
58238
-
58239
- // src/models/errors/apierrorresponse.ts
58240
- var APIErrorResponse, Data$inboundSchema, Data$outboundSchema, APIErrorResponse$inboundSchema, APIErrorResponse$outboundSchema;
58241
- var init_apierrorresponse = __esm(() => {
58242
- init_v3();
58243
- init_outposterror();
58244
- APIErrorResponse = class APIErrorResponse extends OutpostError {
58245
- status;
58246
- data;
58247
- data$;
58248
- constructor(err, httpMeta) {
58249
- const message = err.message || `API error occurred: ${JSON.stringify(err)}`;
58250
- super(message, httpMeta);
58251
- this.data$ = err;
58252
- if (err.status != null)
58253
- this.status = err.status;
58254
- if (err.data != null)
58255
- this.data = err.data;
58256
- this.name = "APIErrorResponse";
58257
- }
58258
- };
58259
- Data$inboundSchema = unionType([arrayType(stringType()), recordType(anyType())]);
58260
- Data$outboundSchema = unionType([arrayType(stringType()), recordType(anyType())]);
58261
- APIErrorResponse$inboundSchema = objectType({
58262
- status: numberType().int().optional(),
58263
- message: stringType().optional(),
58264
- data: unionType([arrayType(stringType()), recordType(anyType())]).optional(),
58265
- request$: instanceOfType(Request),
58266
- response$: instanceOfType(Response),
58267
- body$: stringType()
58268
- }).transform((v2) => {
58269
- return new APIErrorResponse(v2, {
58270
- request: v2.request$,
58271
- response: v2.response$,
58272
- body: v2.body$
58273
- });
58274
- });
58275
- APIErrorResponse$outboundSchema = instanceOfType(APIErrorResponse).transform((v2) => v2.data$).pipe(objectType({
58276
- status: numberType().int().optional(),
58277
- message: stringType().optional(),
58278
- data: unionType([arrayType(stringType()), recordType(anyType())]).optional()
58279
- }));
58280
- });
58281
-
58282
- // src/models/errors/badrequesterror.ts
58283
- var BadRequestError, BadRequestError$inboundSchema, BadRequestError$outboundSchema;
58284
- var init_badrequesterror = __esm(() => {
58285
- init_v3();
58286
- init_primitives();
58287
- init_schemas4();
58288
- init_outposterror();
58289
- BadRequestError = class BadRequestError extends OutpostError {
58290
- additionalProperties = {};
58291
- data$;
58292
- constructor(err, httpMeta) {
58293
- const message = err.message || `API error occurred: ${JSON.stringify(err)}`;
58294
- super(message, httpMeta);
58295
- this.data$ = err;
58296
- if (err.additionalProperties != null) {
58297
- this.additionalProperties = err.additionalProperties;
58298
- }
58299
- this.name = "BadRequestError";
58300
- }
58301
- };
58302
- BadRequestError$inboundSchema = collectExtraKeys(objectType({
58303
- message: stringType().optional(),
58304
- request$: instanceOfType(Request),
58305
- response$: instanceOfType(Response),
58306
- body$: stringType()
58307
- }).catchall(anyType()), "additionalProperties", false).transform((v2) => {
58308
- return new BadRequestError(v2, {
58309
- request: v2.request$,
58310
- response: v2.response$,
58311
- body: v2.body$
58312
- });
58313
- });
58314
- BadRequestError$outboundSchema = instanceOfType(BadRequestError).transform((v2) => v2.data$).pipe(objectType({
58315
- message: stringType().optional(),
58316
- additionalProperties: recordType(anyType())
58317
- }).transform((v2) => {
58318
- return {
58319
- ...v2.additionalProperties,
58320
- ...remap(v2, {
58321
- additionalProperties: null
58322
- })
58323
- };
58324
- }));
58325
- });
58326
-
58327
- // src/models/errors/internalservererror.ts
58328
- var InternalServerError, InternalServerError$inboundSchema, InternalServerError$outboundSchema;
58329
- var init_internalservererror = __esm(() => {
58330
- init_v3();
58331
- init_primitives();
58332
- init_schemas4();
58333
- init_outposterror();
58334
- InternalServerError = class InternalServerError extends OutpostError {
58335
- additionalProperties = {};
58336
- data$;
58337
- constructor(err, httpMeta) {
58338
- const message = err.message || `API error occurred: ${JSON.stringify(err)}`;
58339
- super(message, httpMeta);
58340
- this.data$ = err;
58341
- if (err.additionalProperties != null) {
58342
- this.additionalProperties = err.additionalProperties;
58343
- }
58344
- this.name = "InternalServerError";
58345
- }
58346
- };
58347
- InternalServerError$inboundSchema = collectExtraKeys(objectType({
58348
- message: stringType().optional(),
58349
- request$: instanceOfType(Request),
58350
- response$: instanceOfType(Response),
58351
- body$: stringType()
58352
- }).catchall(anyType()), "additionalProperties", false).transform((v2) => {
58353
- return new InternalServerError(v2, {
58354
- request: v2.request$,
58355
- response: v2.response$,
58356
- body: v2.body$
58357
- });
58358
- });
58359
- InternalServerError$outboundSchema = instanceOfType(InternalServerError).transform((v2) => v2.data$).pipe(objectType({
58360
- message: stringType().optional(),
58361
- additionalProperties: recordType(anyType())
58362
- }).transform((v2) => {
58363
- return {
58364
- ...v2.additionalProperties,
58365
- ...remap(v2, {
58366
- additionalProperties: null
58367
- })
58368
- };
58369
- }));
58370
- });
58371
-
58372
- // src/models/errors/listtenants.ts
58373
- var NotImplementedError, ListTenantsBadRequestError, NotImplementedError$inboundSchema, NotImplementedError$outboundSchema, ListTenantsBadRequestError$inboundSchema, ListTenantsBadRequestError$outboundSchema;
58374
- var init_listtenants2 = __esm(() => {
58375
- init_v3();
58376
- init_outposterror();
58377
- NotImplementedError = class NotImplementedError extends OutpostError {
58378
- error;
58379
- data$;
58380
- constructor(err, httpMeta) {
58381
- const message = "message" in err && typeof err.message === "string" ? err.message : `API error occurred: ${JSON.stringify(err)}`;
58382
- super(message, httpMeta);
58383
- this.data$ = err;
58384
- if (err.error != null)
58385
- this.error = err.error;
58386
- this.name = "NotImplementedError";
58387
- }
58388
- };
58389
- ListTenantsBadRequestError = class ListTenantsBadRequestError extends OutpostError {
58390
- error;
58391
- data$;
58392
- constructor(err, httpMeta) {
58393
- const message = "message" in err && typeof err.message === "string" ? err.message : `API error occurred: ${JSON.stringify(err)}`;
58394
- super(message, httpMeta);
58395
- this.data$ = err;
58396
- if (err.error != null)
58397
- this.error = err.error;
58398
- this.name = "ListTenantsBadRequestError";
58399
- }
58400
- };
58401
- NotImplementedError$inboundSchema = objectType({
58402
- error: stringType().optional(),
58403
- request$: instanceOfType(Request),
58404
- response$: instanceOfType(Response),
58405
- body$: stringType()
58406
- }).transform((v2) => {
58407
- return new NotImplementedError(v2, {
58408
- request: v2.request$,
58409
- response: v2.response$,
58410
- body: v2.body$
58411
- });
58412
- });
58413
- NotImplementedError$outboundSchema = instanceOfType(NotImplementedError).transform((v2) => v2.data$).pipe(objectType({
58414
- error: stringType().optional()
58415
- }));
58416
- ListTenantsBadRequestError$inboundSchema = objectType({
58417
- error: stringType().optional(),
58418
- request$: instanceOfType(Request),
58419
- response$: instanceOfType(Response),
58420
- body$: stringType()
58421
- }).transform((v2) => {
58422
- return new ListTenantsBadRequestError(v2, {
58423
- request: v2.request$,
58424
- response: v2.response$,
58425
- body: v2.body$
58426
- });
58427
- });
58428
- ListTenantsBadRequestError$outboundSchema = instanceOfType(ListTenantsBadRequestError).transform((v2) => v2.data$).pipe(objectType({
58429
- error: stringType().optional()
58430
- }));
58431
- });
58432
-
58433
- // src/models/errors/notfounderror.ts
58434
- var NotFoundError, NotFoundError$inboundSchema, NotFoundError$outboundSchema;
58435
- var init_notfounderror = __esm(() => {
58436
- init_v3();
58437
- init_primitives();
58438
- init_schemas4();
58439
- init_outposterror();
58440
- NotFoundError = class NotFoundError extends OutpostError {
58441
- additionalProperties = {};
58442
- data$;
58443
- constructor(err, httpMeta) {
58444
- const message = err.message || `API error occurred: ${JSON.stringify(err)}`;
58445
- super(message, httpMeta);
58446
- this.data$ = err;
58447
- if (err.additionalProperties != null) {
58448
- this.additionalProperties = err.additionalProperties;
58449
- }
58450
- this.name = "NotFoundError";
58451
- }
58452
- };
58453
- NotFoundError$inboundSchema = collectExtraKeys(objectType({
58454
- message: stringType().optional(),
58455
- request$: instanceOfType(Request),
58456
- response$: instanceOfType(Response),
58457
- body$: stringType()
58458
- }).catchall(anyType()), "additionalProperties", false).transform((v2) => {
58459
- return new NotFoundError(v2, {
58460
- request: v2.request$,
58461
- response: v2.response$,
58462
- body: v2.body$
58463
- });
58464
- });
58465
- NotFoundError$outboundSchema = instanceOfType(NotFoundError).transform((v2) => v2.data$).pipe(objectType({
58466
- message: stringType().optional(),
58467
- additionalProperties: recordType(anyType())
58468
- }).transform((v2) => {
58469
- return {
58470
- ...v2.additionalProperties,
58471
- ...remap(v2, {
58472
- additionalProperties: null
58473
- })
58474
- };
58475
- }));
58476
- });
58477
-
58478
- // src/models/errors/ratelimitederror.ts
58479
- var RateLimitedError, RateLimitedError$inboundSchema, RateLimitedError$outboundSchema;
58480
- var init_ratelimitederror = __esm(() => {
58481
- init_v3();
58482
- init_primitives();
58483
- init_schemas4();
58484
- init_outposterror();
58485
- RateLimitedError = class RateLimitedError extends OutpostError {
58486
- additionalProperties = {};
58487
- data$;
58488
- constructor(err, httpMeta) {
58489
- const message = err.message || `API error occurred: ${JSON.stringify(err)}`;
58490
- super(message, httpMeta);
58491
- this.data$ = err;
58492
- if (err.additionalProperties != null) {
58493
- this.additionalProperties = err.additionalProperties;
58494
- }
58495
- this.name = "RateLimitedError";
58496
- }
58497
- };
58498
- RateLimitedError$inboundSchema = collectExtraKeys(objectType({
58499
- message: stringType().optional(),
58500
- request$: instanceOfType(Request),
58501
- response$: instanceOfType(Response),
58502
- body$: stringType()
58503
- }).catchall(anyType()), "additionalProperties", false).transform((v2) => {
58504
- return new RateLimitedError(v2, {
58505
- request: v2.request$,
58506
- response: v2.response$,
58507
- body: v2.body$
58508
- });
58509
- });
58510
- RateLimitedError$outboundSchema = instanceOfType(RateLimitedError).transform((v2) => v2.data$).pipe(objectType({
58511
- message: stringType().optional(),
58512
- additionalProperties: recordType(anyType())
58513
- }).transform((v2) => {
58514
- return {
58515
- ...v2.additionalProperties,
58516
- ...remap(v2, {
58517
- additionalProperties: null
58518
- })
58519
- };
58520
- }));
58521
- });
58522
-
58523
- // src/models/errors/timeouterror.ts
58524
- var TimeoutError, TimeoutError$inboundSchema, TimeoutError$outboundSchema;
58525
- var init_timeouterror = __esm(() => {
58526
- init_v3();
58527
- init_primitives();
58528
- init_schemas4();
58529
- init_outposterror();
58530
- TimeoutError = class TimeoutError extends OutpostError {
58531
- additionalProperties = {};
58532
- data$;
58533
- constructor(err, httpMeta) {
58534
- const message = err.message || `API error occurred: ${JSON.stringify(err)}`;
58535
- super(message, httpMeta);
58536
- this.data$ = err;
58537
- if (err.additionalProperties != null) {
58538
- this.additionalProperties = err.additionalProperties;
58539
- }
58540
- this.name = "TimeoutError";
58541
- }
58542
- };
58543
- TimeoutError$inboundSchema = collectExtraKeys(objectType({
58544
- message: stringType().optional(),
58545
- request$: instanceOfType(Request),
58546
- response$: instanceOfType(Response),
58547
- body$: stringType()
58548
- }).catchall(anyType()), "additionalProperties", false).transform((v2) => {
58549
- return new TimeoutError(v2, {
58550
- request: v2.request$,
58551
- response: v2.response$,
58552
- body: v2.body$
58553
- });
58554
- });
58555
- TimeoutError$outboundSchema = instanceOfType(TimeoutError).transform((v2) => v2.data$).pipe(objectType({
58556
- message: stringType().optional(),
58557
- additionalProperties: recordType(anyType())
58558
- }).transform((v2) => {
58559
- return {
58560
- ...v2.additionalProperties,
58561
- ...remap(v2, {
58562
- additionalProperties: null
58563
- })
58564
- };
58565
- }));
58566
- });
58567
-
58568
- // src/models/errors/unauthorizederror.ts
58569
- var UnauthorizedError, UnauthorizedError$inboundSchema, UnauthorizedError$outboundSchema;
58570
- var init_unauthorizederror = __esm(() => {
58338
+ // src/mcp-server/tools/attemptsGet.ts
58339
+ var args, tool$attemptsGet;
58340
+ var init_attemptsGet2 = __esm(() => {
58571
58341
  init_v3();
58572
- init_primitives();
58573
- init_schemas4();
58574
- init_outposterror();
58575
- UnauthorizedError = class UnauthorizedError extends OutpostError {
58576
- additionalProperties = {};
58577
- data$;
58578
- constructor(err, httpMeta) {
58579
- const message = err.message || `API error occurred: ${JSON.stringify(err)}`;
58580
- super(message, httpMeta);
58581
- this.data$ = err;
58582
- if (err.additionalProperties != null) {
58583
- this.additionalProperties = err.additionalProperties;
58342
+ init_attemptsGet();
58343
+ init_operations();
58344
+ init_tools();
58345
+ args = {
58346
+ attemptId: stringType(),
58347
+ include: GetAttemptInclude$inboundSchema.optional()
58348
+ };
58349
+ tool$attemptsGet = {
58350
+ name: "attempts-get",
58351
+ description: `Get Attempt
58352
+
58353
+ Retrieves details for a specific attempt.
58354
+
58355
+ When authenticated with a Tenant JWT, only attempts belonging to that tenant can be accessed.
58356
+ When authenticated with Admin API Key, attempts from any tenant can be accessed.
58357
+ `,
58358
+ args,
58359
+ tool: async (client, args2, ctx) => {
58360
+ const [result, apiCall] = await attemptsGet(client, args2.attemptId, args2.include, { fetchOptions: { signal: ctx.signal } }).$inspect();
58361
+ if (!result.ok) {
58362
+ return {
58363
+ content: [{ type: "text", text: result.error.message }],
58364
+ isError: true
58365
+ };
58584
58366
  }
58585
- this.name = "UnauthorizedError";
58367
+ const value = result.value;
58368
+ return formatResult(value, apiCall);
58586
58369
  }
58587
58370
  };
58588
- UnauthorizedError$inboundSchema = collectExtraKeys(objectType({
58589
- message: stringType().optional(),
58590
- request$: instanceOfType(Request),
58591
- response$: instanceOfType(Response),
58592
- body$: stringType()
58593
- }).catchall(anyType()), "additionalProperties", false).transform((v2) => {
58594
- return new UnauthorizedError(v2, {
58595
- request: v2.request$,
58596
- response: v2.response$,
58597
- body: v2.body$
58598
- });
58599
- });
58600
- UnauthorizedError$outboundSchema = instanceOfType(UnauthorizedError).transform((v2) => v2.data$).pipe(objectType({
58601
- message: stringType().optional(),
58602
- additionalProperties: recordType(anyType())
58603
- }).transform((v2) => {
58604
- return {
58605
- ...v2.additionalProperties,
58606
- ...remap(v2, {
58607
- additionalProperties: null
58608
- })
58609
- };
58610
- }));
58611
- });
58612
-
58613
- // src/models/errors/index.ts
58614
- var init_errors4 = __esm(() => {
58615
- init_apierror();
58616
- init_apierrorresponse();
58617
- init_badrequesterror();
58618
- init_httpclienterrors();
58619
- init_internalservererror();
58620
- init_listtenants2();
58621
- init_notfounderror();
58622
- init_outposterror();
58623
- init_ratelimitederror();
58624
- init_responsevalidationerror();
58625
- init_sdkvalidationerror();
58626
- init_timeouterror();
58627
- init_unauthorizederror();
58628
58371
  });
58629
58372
 
58630
58373
  // src/funcs/attemptsList.ts
@@ -58632,7 +58375,7 @@ function attemptsList(client, request, options) {
58632
58375
  return new APIPromise($do2(client, request, options));
58633
58376
  }
58634
58377
  async function $do2(client, request, options) {
58635
- const parsed = safeParse4(request, (value) => AdminListAttemptsRequest$outboundSchema.parse(value), "Input validation failed");
58378
+ const parsed = safeParse4(request, (value) => ListAttemptsRequest$outboundSchema.parse(value), "Input validation failed");
58636
58379
  if (!parsed.ok) {
58637
58380
  return [parsed, { status: "invalid" }];
58638
58381
  }
@@ -58657,15 +58400,16 @@ async function $do2(client, request, options) {
58657
58400
  const headers = new Headers(compactMap({
58658
58401
  Accept: "application/json"
58659
58402
  }));
58660
- const securityInput = await extractSecurity(client._options.security);
58403
+ const secConfig = await extractSecurity(client._options.apiKey);
58404
+ const securityInput = secConfig == null ? {} : { apiKey: secConfig };
58661
58405
  const requestSecurity = resolveGlobalSecurity(securityInput);
58662
58406
  const context = {
58663
58407
  options: client._options,
58664
58408
  baseURL: options?.serverURL ?? client._baseURL ?? "",
58665
- operationID: "adminListAttempts",
58409
+ operationID: "listAttempts",
58666
58410
  oAuth2Scopes: null,
58667
58411
  resolvedSecurity: requestSecurity,
58668
- securitySource: client._options.security,
58412
+ securitySource: client._options.apiKey,
58669
58413
  retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
58670
58414
  retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
58671
58415
  };
@@ -58686,7 +58430,7 @@ async function $do2(client, request, options) {
58686
58430
  const req = requestRes.value;
58687
58431
  const doResult = await client._do(req, {
58688
58432
  context,
58689
- errorCodes: ["401", "422", "4XX", "5XX"],
58433
+ errorCodes: ["401", "4XX", "500", "5XX"],
58690
58434
  retryConfig: context.retryConfig,
58691
58435
  retryCodes: context.retryCodes
58692
58436
  });
@@ -58697,7 +58441,7 @@ async function $do2(client, request, options) {
58697
58441
  const responseFields = {
58698
58442
  HttpMeta: { Response: response, Request: req }
58699
58443
  };
58700
- const [result] = await match(json(200, AttemptPaginatedResult$inboundSchema), jsonErr(422, APIErrorResponse$inboundSchema), fail([401, "4XX"]), fail("5XX"))(response, req, { extraFields: responseFields });
58444
+ const [result] = await match(json(200, AttemptPaginatedResult$inboundSchema), jsonErr(401, UnauthorizedError$inboundSchema), jsonErr(500, InternalServerError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
58701
58445
  if (!result.ok) {
58702
58446
  return [result, { status: "complete", request: req, response }];
58703
58447
  }
@@ -58723,15 +58467,16 @@ var init_attemptsList2 = __esm(() => {
58723
58467
  init_operations();
58724
58468
  init_tools();
58725
58469
  args2 = {
58726
- request: AdminListAttemptsRequest$inboundSchema
58470
+ request: ListAttemptsRequest$inboundSchema
58727
58471
  };
58728
58472
  tool$attemptsList = {
58729
58473
  name: "attempts-list",
58730
- description: `List Attempts (Admin)
58474
+ description: `List Attempts
58731
58475
 
58732
- Retrieves a paginated list of attempts across all tenants. This is an admin-only endpoint that requires the Admin API Key.
58476
+ Retrieves a paginated list of attempts.
58733
58477
 
58734
- When \`tenant_id\` is not provided, returns attempts from all tenants. When \`tenant_id\` is provided, returns only attempts for that tenant.
58478
+ When authenticated with a Tenant JWT, returns only attempts belonging to that tenant.
58479
+ When authenticated with Admin API Key, returns attempts across all tenants. Use \`tenant_id\` query parameter to filter by tenant.
58735
58480
  `,
58736
58481
  args: args2,
58737
58482
  tool: async (client, args3, ctx) => {
@@ -58764,7 +58509,8 @@ async function $do3(client, request, options) {
58764
58509
  "Content-Type": "application/json",
58765
58510
  Accept: "application/json"
58766
58511
  }));
58767
- const securityInput = await extractSecurity(client._options.security);
58512
+ const secConfig = await extractSecurity(client._options.apiKey);
58513
+ const securityInput = secConfig == null ? {} : { apiKey: secConfig };
58768
58514
  const requestSecurity = resolveGlobalSecurity(securityInput);
58769
58515
  const context = {
58770
58516
  options: client._options,
@@ -58772,7 +58518,7 @@ async function $do3(client, request, options) {
58772
58518
  operationID: "retryEvent",
58773
58519
  oAuth2Scopes: null,
58774
58520
  resolvedSecurity: requestSecurity,
58775
- securitySource: client._options.security,
58521
+ securitySource: client._options.apiKey,
58776
58522
  retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
58777
58523
  retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
58778
58524
  };
@@ -58792,7 +58538,7 @@ async function $do3(client, request, options) {
58792
58538
  const req = requestRes.value;
58793
58539
  const doResult = await client._do(req, {
58794
58540
  context,
58795
- errorCodes: ["400", "404", "422", "4XX", "5XX"],
58541
+ errorCodes: ["400", "401", "404", "4XX", "500", "5XX"],
58796
58542
  retryConfig: context.retryConfig,
58797
58543
  retryCodes: context.retryCodes
58798
58544
  });
@@ -58803,7 +58549,7 @@ async function $do3(client, request, options) {
58803
58549
  const responseFields = {
58804
58550
  HttpMeta: { Response: response, Request: req }
58805
58551
  };
58806
- const [result] = await match(json(202, SuccessResponse$inboundSchema), jsonErr(422, APIErrorResponse$inboundSchema), fail([400, 404, "4XX"]), fail("5XX"))(response, req, { extraFields: responseFields });
58552
+ const [result] = await match(json(202, SuccessResponse$inboundSchema), jsonErr(401, UnauthorizedError$inboundSchema), jsonErr(404, NotFoundError$inboundSchema), jsonErr(500, InternalServerError$inboundSchema), fail([400, "4XX"]), fail("5XX"))(response, req, { extraFields: responseFields });
58807
58553
  if (!result.ok) {
58808
58554
  return [result, { status: "complete", request: req, response }];
58809
58555
  }
@@ -58855,25 +58601,33 @@ When authenticated with Admin API Key, events from any tenant can be retried.
58855
58601
  });
58856
58602
 
58857
58603
  // src/funcs/destinationsCreate.ts
58858
- function destinationsCreate(client, request, options) {
58859
- return new APIPromise($do4(client, request, options));
58604
+ function destinationsCreate(client, tenantId, params, options) {
58605
+ return new APIPromise($do4(client, tenantId, params, options));
58860
58606
  }
58861
- async function $do4(client, request, options) {
58862
- const parsed = safeParse4(request, (value) => CreateTenantDestinationRequest$outboundSchema.parse(value), "Input validation failed");
58607
+ async function $do4(client, tenantId, params, options) {
58608
+ const input = {
58609
+ tenantId,
58610
+ params
58611
+ };
58612
+ const parsed = safeParse4(input, (value) => CreateTenantDestinationRequest$outboundSchema.parse(value), "Input validation failed");
58863
58613
  if (!parsed.ok) {
58864
58614
  return [parsed, { status: "invalid" }];
58865
58615
  }
58866
58616
  const payload = parsed.value;
58867
58617
  const body = encodeJSON("body", payload.params, { explode: true });
58868
58618
  const pathParams = {
58869
- tenant_id: encodeSimple("tenant_id", payload.tenant_id ?? client._options.tenantId, { explode: false, charEncoding: "percent" })
58619
+ tenant_id: encodeSimple("tenant_id", payload.tenant_id, {
58620
+ explode: false,
58621
+ charEncoding: "percent"
58622
+ })
58870
58623
  };
58871
58624
  const path = pathToFunc("/tenants/{tenant_id}/destinations")(pathParams);
58872
58625
  const headers = new Headers(compactMap({
58873
58626
  "Content-Type": "application/json",
58874
58627
  Accept: "application/json"
58875
58628
  }));
58876
- const securityInput = await extractSecurity(client._options.security);
58629
+ const secConfig = await extractSecurity(client._options.apiKey);
58630
+ const securityInput = secConfig == null ? {} : { apiKey: secConfig };
58877
58631
  const requestSecurity = resolveGlobalSecurity(securityInput);
58878
58632
  const context = {
58879
58633
  options: client._options,
@@ -58881,7 +58635,7 @@ async function $do4(client, request, options) {
58881
58635
  operationID: "createTenantDestination",
58882
58636
  oAuth2Scopes: null,
58883
58637
  resolvedSecurity: requestSecurity,
58884
- securitySource: client._options.security,
58638
+ securitySource: client._options.apiKey,
58885
58639
  retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
58886
58640
  retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
58887
58641
  };
@@ -58901,7 +58655,7 @@ async function $do4(client, request, options) {
58901
58655
  const req = requestRes.value;
58902
58656
  const doResult = await client._do(req, {
58903
58657
  context,
58904
- errorCodes: ["400", "404", "4XX", "5XX"],
58658
+ errorCodes: ["401", "404", "422", "4XX", "500", "5XX"],
58905
58659
  retryConfig: context.retryConfig,
58906
58660
  retryCodes: context.retryCodes
58907
58661
  });
@@ -58909,7 +58663,10 @@ async function $do4(client, request, options) {
58909
58663
  return [doResult, { status: "request-error", request: req }];
58910
58664
  }
58911
58665
  const response = doResult.value;
58912
- const [result] = await match(json(201, Destination$inboundSchema), fail([400, 404, "4XX"]), fail("5XX"))(response, req);
58666
+ const responseFields = {
58667
+ HttpMeta: { Response: response, Request: req }
58668
+ };
58669
+ const [result] = await match(json(201, Destination$inboundSchema), jsonErr(401, UnauthorizedError$inboundSchema), jsonErr(404, NotFoundError$inboundSchema), jsonErr(422, APIErrorResponse$inboundSchema), jsonErr(500, InternalServerError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
58913
58670
  if (!result.ok) {
58914
58671
  return [result, { status: "complete", request: req, response }];
58915
58672
  }
@@ -58923,6 +58680,7 @@ var init_destinationsCreate = __esm(() => {
58923
58680
  init_security();
58924
58681
  init_url();
58925
58682
  init_components();
58683
+ init_errors4();
58926
58684
  init_operations();
58927
58685
  init_async();
58928
58686
  });
@@ -58930,11 +58688,13 @@ var init_destinationsCreate = __esm(() => {
58930
58688
  // src/mcp-server/tools/destinationsCreate.ts
58931
58689
  var args4, tool$destinationsCreate;
58932
58690
  var init_destinationsCreate2 = __esm(() => {
58691
+ init_v3();
58933
58692
  init_destinationsCreate();
58934
- init_operations();
58693
+ init_components();
58935
58694
  init_tools();
58936
58695
  args4 = {
58937
- request: CreateTenantDestinationRequest$inboundSchema
58696
+ tenantId: stringType(),
58697
+ params: DestinationCreate$inboundSchema
58938
58698
  };
58939
58699
  tool$destinationsCreate = {
58940
58700
  name: "destinations-create",
@@ -58943,7 +58703,7 @@ var init_destinationsCreate2 = __esm(() => {
58943
58703
  Creates a new destination for the tenant. The request body structure depends on the \`type\`.`,
58944
58704
  args: args4,
58945
58705
  tool: async (client, args5, ctx) => {
58946
- const [result, apiCall] = await destinationsCreate(client, args5.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
58706
+ const [result, apiCall] = await destinationsCreate(client, args5.tenantId, args5.params, { fetchOptions: { signal: ctx.signal } }).$inspect();
58947
58707
  if (!result.ok) {
58948
58708
  return {
58949
58709
  content: [{ type: "text", text: result.error.message }],
@@ -58957,11 +58717,15 @@ Creates a new destination for the tenant. The request body structure depends on
58957
58717
  });
58958
58718
 
58959
58719
  // src/funcs/destinationsDelete.ts
58960
- function destinationsDelete(client, request, options) {
58961
- return new APIPromise($do5(client, request, options));
58720
+ function destinationsDelete(client, tenantId, destinationId, options) {
58721
+ return new APIPromise($do5(client, tenantId, destinationId, options));
58962
58722
  }
58963
- async function $do5(client, request, options) {
58964
- const parsed = safeParse4(request, (value) => DeleteTenantDestinationRequest$outboundSchema.parse(value), "Input validation failed");
58723
+ async function $do5(client, tenantId, destinationId, options) {
58724
+ const input = {
58725
+ tenantId,
58726
+ destinationId
58727
+ };
58728
+ const parsed = safeParse4(input, (value) => DeleteTenantDestinationRequest$outboundSchema.parse(value), "Input validation failed");
58965
58729
  if (!parsed.ok) {
58966
58730
  return [parsed, { status: "invalid" }];
58967
58731
  }
@@ -58972,13 +58736,17 @@ async function $do5(client, request, options) {
58972
58736
  explode: false,
58973
58737
  charEncoding: "percent"
58974
58738
  }),
58975
- tenant_id: encodeSimple("tenant_id", payload.tenant_id ?? client._options.tenantId, { explode: false, charEncoding: "percent" })
58739
+ tenant_id: encodeSimple("tenant_id", payload.tenant_id, {
58740
+ explode: false,
58741
+ charEncoding: "percent"
58742
+ })
58976
58743
  };
58977
58744
  const path = pathToFunc("/tenants/{tenant_id}/destinations/{destination_id}")(pathParams);
58978
58745
  const headers = new Headers(compactMap({
58979
58746
  Accept: "application/json"
58980
58747
  }));
58981
- const securityInput = await extractSecurity(client._options.security);
58748
+ const secConfig = await extractSecurity(client._options.apiKey);
58749
+ const securityInput = secConfig == null ? {} : { apiKey: secConfig };
58982
58750
  const requestSecurity = resolveGlobalSecurity(securityInput);
58983
58751
  const context = {
58984
58752
  options: client._options,
@@ -58986,7 +58754,7 @@ async function $do5(client, request, options) {
58986
58754
  operationID: "deleteTenantDestination",
58987
58755
  oAuth2Scopes: null,
58988
58756
  resolvedSecurity: requestSecurity,
58989
- securitySource: client._options.security,
58757
+ securitySource: client._options.apiKey,
58990
58758
  retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
58991
58759
  retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
58992
58760
  };
@@ -59006,7 +58774,7 @@ async function $do5(client, request, options) {
59006
58774
  const req = requestRes.value;
59007
58775
  const doResult = await client._do(req, {
59008
58776
  context,
59009
- errorCodes: ["404", "4XX", "5XX"],
58777
+ errorCodes: ["401", "404", "4XX", "500", "5XX"],
59010
58778
  retryConfig: context.retryConfig,
59011
58779
  retryCodes: context.retryCodes
59012
58780
  });
@@ -59014,7 +58782,10 @@ async function $do5(client, request, options) {
59014
58782
  return [doResult, { status: "request-error", request: req }];
59015
58783
  }
59016
58784
  const response = doResult.value;
59017
- const [result] = await match(json(200, SuccessResponse$inboundSchema), fail([404, "4XX"]), fail("5XX"))(response, req);
58785
+ const responseFields = {
58786
+ HttpMeta: { Response: response, Request: req }
58787
+ };
58788
+ const [result] = await match(json(200, SuccessResponse$inboundSchema), jsonErr(401, UnauthorizedError$inboundSchema), jsonErr(404, NotFoundError$inboundSchema), jsonErr(500, InternalServerError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
59018
58789
  if (!result.ok) {
59019
58790
  return [result, { status: "complete", request: req, response }];
59020
58791
  }
@@ -59028,6 +58799,7 @@ var init_destinationsDelete = __esm(() => {
59028
58799
  init_security();
59029
58800
  init_url();
59030
58801
  init_components();
58802
+ init_errors4();
59031
58803
  init_operations();
59032
58804
  init_async();
59033
58805
  });
@@ -59035,11 +58807,12 @@ var init_destinationsDelete = __esm(() => {
59035
58807
  // src/mcp-server/tools/destinationsDelete.ts
59036
58808
  var args5, tool$destinationsDelete;
59037
58809
  var init_destinationsDelete2 = __esm(() => {
58810
+ init_v3();
59038
58811
  init_destinationsDelete();
59039
- init_operations();
59040
58812
  init_tools();
59041
58813
  args5 = {
59042
- request: DeleteTenantDestinationRequest$inboundSchema
58814
+ tenantId: stringType(),
58815
+ destinationId: stringType()
59043
58816
  };
59044
58817
  tool$destinationsDelete = {
59045
58818
  name: "destinations-delete",
@@ -59048,7 +58821,7 @@ var init_destinationsDelete2 = __esm(() => {
59048
58821
  Deletes a specific destination.`,
59049
58822
  args: args5,
59050
58823
  tool: async (client, args6, ctx) => {
59051
- const [result, apiCall] = await destinationsDelete(client, args6.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
58824
+ const [result, apiCall] = await destinationsDelete(client, args6.tenantId, args6.destinationId, { fetchOptions: { signal: ctx.signal } }).$inspect();
59052
58825
  if (!result.ok) {
59053
58826
  return {
59054
58827
  content: [{ type: "text", text: result.error.message }],
@@ -59062,11 +58835,15 @@ Deletes a specific destination.`,
59062
58835
  });
59063
58836
 
59064
58837
  // src/funcs/destinationsDisable.ts
59065
- function destinationsDisable(client, request, options) {
59066
- return new APIPromise($do6(client, request, options));
58838
+ function destinationsDisable(client, tenantId, destinationId, options) {
58839
+ return new APIPromise($do6(client, tenantId, destinationId, options));
59067
58840
  }
59068
- async function $do6(client, request, options) {
59069
- const parsed = safeParse4(request, (value) => DisableTenantDestinationRequest$outboundSchema.parse(value), "Input validation failed");
58841
+ async function $do6(client, tenantId, destinationId, options) {
58842
+ const input = {
58843
+ tenantId,
58844
+ destinationId
58845
+ };
58846
+ const parsed = safeParse4(input, (value) => DisableTenantDestinationRequest$outboundSchema.parse(value), "Input validation failed");
59070
58847
  if (!parsed.ok) {
59071
58848
  return [parsed, { status: "invalid" }];
59072
58849
  }
@@ -59077,13 +58854,17 @@ async function $do6(client, request, options) {
59077
58854
  explode: false,
59078
58855
  charEncoding: "percent"
59079
58856
  }),
59080
- tenant_id: encodeSimple("tenant_id", payload.tenant_id ?? client._options.tenantId, { explode: false, charEncoding: "percent" })
58857
+ tenant_id: encodeSimple("tenant_id", payload.tenant_id, {
58858
+ explode: false,
58859
+ charEncoding: "percent"
58860
+ })
59081
58861
  };
59082
58862
  const path = pathToFunc("/tenants/{tenant_id}/destinations/{destination_id}/disable")(pathParams);
59083
58863
  const headers = new Headers(compactMap({
59084
58864
  Accept: "application/json"
59085
58865
  }));
59086
- const securityInput = await extractSecurity(client._options.security);
58866
+ const secConfig = await extractSecurity(client._options.apiKey);
58867
+ const securityInput = secConfig == null ? {} : { apiKey: secConfig };
59087
58868
  const requestSecurity = resolveGlobalSecurity(securityInput);
59088
58869
  const context = {
59089
58870
  options: client._options,
@@ -59091,7 +58872,7 @@ async function $do6(client, request, options) {
59091
58872
  operationID: "disableTenantDestination",
59092
58873
  oAuth2Scopes: null,
59093
58874
  resolvedSecurity: requestSecurity,
59094
- securitySource: client._options.security,
58875
+ securitySource: client._options.apiKey,
59095
58876
  retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
59096
58877
  retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
59097
58878
  };
@@ -59111,7 +58892,7 @@ async function $do6(client, request, options) {
59111
58892
  const req = requestRes.value;
59112
58893
  const doResult = await client._do(req, {
59113
58894
  context,
59114
- errorCodes: ["404", "4XX", "5XX"],
58895
+ errorCodes: ["401", "404", "4XX", "500", "5XX"],
59115
58896
  retryConfig: context.retryConfig,
59116
58897
  retryCodes: context.retryCodes
59117
58898
  });
@@ -59119,7 +58900,10 @@ async function $do6(client, request, options) {
59119
58900
  return [doResult, { status: "request-error", request: req }];
59120
58901
  }
59121
58902
  const response = doResult.value;
59122
- const [result] = await match(json(200, Destination$inboundSchema), fail([404, "4XX"]), fail("5XX"))(response, req);
58903
+ const responseFields = {
58904
+ HttpMeta: { Response: response, Request: req }
58905
+ };
58906
+ const [result] = await match(json(200, Destination$inboundSchema), jsonErr(401, UnauthorizedError$inboundSchema), jsonErr(404, NotFoundError$inboundSchema), jsonErr(500, InternalServerError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
59123
58907
  if (!result.ok) {
59124
58908
  return [result, { status: "complete", request: req, response }];
59125
58909
  }
@@ -59133,6 +58917,7 @@ var init_destinationsDisable = __esm(() => {
59133
58917
  init_security();
59134
58918
  init_url();
59135
58919
  init_components();
58920
+ init_errors4();
59136
58921
  init_operations();
59137
58922
  init_async();
59138
58923
  });
@@ -59140,11 +58925,12 @@ var init_destinationsDisable = __esm(() => {
59140
58925
  // src/mcp-server/tools/destinationsDisable.ts
59141
58926
  var args6, tool$destinationsDisable;
59142
58927
  var init_destinationsDisable2 = __esm(() => {
58928
+ init_v3();
59143
58929
  init_destinationsDisable();
59144
- init_operations();
59145
58930
  init_tools();
59146
58931
  args6 = {
59147
- request: DisableTenantDestinationRequest$inboundSchema
58932
+ tenantId: stringType(),
58933
+ destinationId: stringType()
59148
58934
  };
59149
58935
  tool$destinationsDisable = {
59150
58936
  name: "destinations-disable",
@@ -59153,7 +58939,7 @@ var init_destinationsDisable2 = __esm(() => {
59153
58939
  Disables a previously enabled destination.`,
59154
58940
  args: args6,
59155
58941
  tool: async (client, args7, ctx) => {
59156
- const [result, apiCall] = await destinationsDisable(client, args7.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
58942
+ const [result, apiCall] = await destinationsDisable(client, args7.tenantId, args7.destinationId, { fetchOptions: { signal: ctx.signal } }).$inspect();
59157
58943
  if (!result.ok) {
59158
58944
  return {
59159
58945
  content: [{ type: "text", text: result.error.message }],
@@ -59167,11 +58953,15 @@ Disables a previously enabled destination.`,
59167
58953
  });
59168
58954
 
59169
58955
  // src/funcs/destinationsEnable.ts
59170
- function destinationsEnable(client, request, options) {
59171
- return new APIPromise($do7(client, request, options));
58956
+ function destinationsEnable(client, tenantId, destinationId, options) {
58957
+ return new APIPromise($do7(client, tenantId, destinationId, options));
59172
58958
  }
59173
- async function $do7(client, request, options) {
59174
- const parsed = safeParse4(request, (value) => EnableTenantDestinationRequest$outboundSchema.parse(value), "Input validation failed");
58959
+ async function $do7(client, tenantId, destinationId, options) {
58960
+ const input = {
58961
+ tenantId,
58962
+ destinationId
58963
+ };
58964
+ const parsed = safeParse4(input, (value) => EnableTenantDestinationRequest$outboundSchema.parse(value), "Input validation failed");
59175
58965
  if (!parsed.ok) {
59176
58966
  return [parsed, { status: "invalid" }];
59177
58967
  }
@@ -59182,13 +58972,17 @@ async function $do7(client, request, options) {
59182
58972
  explode: false,
59183
58973
  charEncoding: "percent"
59184
58974
  }),
59185
- tenant_id: encodeSimple("tenant_id", payload.tenant_id ?? client._options.tenantId, { explode: false, charEncoding: "percent" })
58975
+ tenant_id: encodeSimple("tenant_id", payload.tenant_id, {
58976
+ explode: false,
58977
+ charEncoding: "percent"
58978
+ })
59186
58979
  };
59187
58980
  const path = pathToFunc("/tenants/{tenant_id}/destinations/{destination_id}/enable")(pathParams);
59188
58981
  const headers = new Headers(compactMap({
59189
58982
  Accept: "application/json"
59190
58983
  }));
59191
- const securityInput = await extractSecurity(client._options.security);
58984
+ const secConfig = await extractSecurity(client._options.apiKey);
58985
+ const securityInput = secConfig == null ? {} : { apiKey: secConfig };
59192
58986
  const requestSecurity = resolveGlobalSecurity(securityInput);
59193
58987
  const context = {
59194
58988
  options: client._options,
@@ -59196,7 +58990,7 @@ async function $do7(client, request, options) {
59196
58990
  operationID: "enableTenantDestination",
59197
58991
  oAuth2Scopes: null,
59198
58992
  resolvedSecurity: requestSecurity,
59199
- securitySource: client._options.security,
58993
+ securitySource: client._options.apiKey,
59200
58994
  retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
59201
58995
  retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
59202
58996
  };
@@ -59216,7 +59010,7 @@ async function $do7(client, request, options) {
59216
59010
  const req = requestRes.value;
59217
59011
  const doResult = await client._do(req, {
59218
59012
  context,
59219
- errorCodes: ["404", "4XX", "5XX"],
59013
+ errorCodes: ["401", "404", "4XX", "500", "5XX"],
59220
59014
  retryConfig: context.retryConfig,
59221
59015
  retryCodes: context.retryCodes
59222
59016
  });
@@ -59224,7 +59018,10 @@ async function $do7(client, request, options) {
59224
59018
  return [doResult, { status: "request-error", request: req }];
59225
59019
  }
59226
59020
  const response = doResult.value;
59227
- const [result] = await match(json(200, Destination$inboundSchema), fail([404, "4XX"]), fail("5XX"))(response, req);
59021
+ const responseFields = {
59022
+ HttpMeta: { Response: response, Request: req }
59023
+ };
59024
+ const [result] = await match(json(200, Destination$inboundSchema), jsonErr(401, UnauthorizedError$inboundSchema), jsonErr(404, NotFoundError$inboundSchema), jsonErr(500, InternalServerError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
59228
59025
  if (!result.ok) {
59229
59026
  return [result, { status: "complete", request: req, response }];
59230
59027
  }
@@ -59238,6 +59035,7 @@ var init_destinationsEnable = __esm(() => {
59238
59035
  init_security();
59239
59036
  init_url();
59240
59037
  init_components();
59038
+ init_errors4();
59241
59039
  init_operations();
59242
59040
  init_async();
59243
59041
  });
@@ -59245,11 +59043,12 @@ var init_destinationsEnable = __esm(() => {
59245
59043
  // src/mcp-server/tools/destinationsEnable.ts
59246
59044
  var args7, tool$destinationsEnable;
59247
59045
  var init_destinationsEnable2 = __esm(() => {
59046
+ init_v3();
59248
59047
  init_destinationsEnable();
59249
- init_operations();
59250
59048
  init_tools();
59251
59049
  args7 = {
59252
- request: EnableTenantDestinationRequest$inboundSchema
59050
+ tenantId: stringType(),
59051
+ destinationId: stringType()
59253
59052
  };
59254
59053
  tool$destinationsEnable = {
59255
59054
  name: "destinations-enable",
@@ -59258,7 +59057,7 @@ var init_destinationsEnable2 = __esm(() => {
59258
59057
  Enables a previously disabled destination.`,
59259
59058
  args: args7,
59260
59059
  tool: async (client, args8, ctx) => {
59261
- const [result, apiCall] = await destinationsEnable(client, args8.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
59060
+ const [result, apiCall] = await destinationsEnable(client, args8.tenantId, args8.destinationId, { fetchOptions: { signal: ctx.signal } }).$inspect();
59262
59061
  if (!result.ok) {
59263
59062
  return {
59264
59063
  content: [{ type: "text", text: result.error.message }],
@@ -59272,11 +59071,15 @@ Enables a previously disabled destination.`,
59272
59071
  });
59273
59072
 
59274
59073
  // src/funcs/destinationsGet.ts
59275
- function destinationsGet(client, request, options) {
59276
- return new APIPromise($do8(client, request, options));
59074
+ function destinationsGet(client, tenantId, destinationId, options) {
59075
+ return new APIPromise($do8(client, tenantId, destinationId, options));
59277
59076
  }
59278
- async function $do8(client, request, options) {
59279
- const parsed = safeParse4(request, (value) => GetTenantDestinationRequest$outboundSchema.parse(value), "Input validation failed");
59077
+ async function $do8(client, tenantId, destinationId, options) {
59078
+ const input = {
59079
+ tenantId,
59080
+ destinationId
59081
+ };
59082
+ const parsed = safeParse4(input, (value) => GetTenantDestinationRequest$outboundSchema.parse(value), "Input validation failed");
59280
59083
  if (!parsed.ok) {
59281
59084
  return [parsed, { status: "invalid" }];
59282
59085
  }
@@ -59287,13 +59090,17 @@ async function $do8(client, request, options) {
59287
59090
  explode: false,
59288
59091
  charEncoding: "percent"
59289
59092
  }),
59290
- tenant_id: encodeSimple("tenant_id", payload.tenant_id ?? client._options.tenantId, { explode: false, charEncoding: "percent" })
59093
+ tenant_id: encodeSimple("tenant_id", payload.tenant_id, {
59094
+ explode: false,
59095
+ charEncoding: "percent"
59096
+ })
59291
59097
  };
59292
59098
  const path = pathToFunc("/tenants/{tenant_id}/destinations/{destination_id}")(pathParams);
59293
59099
  const headers = new Headers(compactMap({
59294
59100
  Accept: "application/json"
59295
59101
  }));
59296
- const securityInput = await extractSecurity(client._options.security);
59102
+ const secConfig = await extractSecurity(client._options.apiKey);
59103
+ const securityInput = secConfig == null ? {} : { apiKey: secConfig };
59297
59104
  const requestSecurity = resolveGlobalSecurity(securityInput);
59298
59105
  const context = {
59299
59106
  options: client._options,
@@ -59301,7 +59108,7 @@ async function $do8(client, request, options) {
59301
59108
  operationID: "getTenantDestination",
59302
59109
  oAuth2Scopes: null,
59303
59110
  resolvedSecurity: requestSecurity,
59304
- securitySource: client._options.security,
59111
+ securitySource: client._options.apiKey,
59305
59112
  retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
59306
59113
  retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
59307
59114
  };
@@ -59321,7 +59128,7 @@ async function $do8(client, request, options) {
59321
59128
  const req = requestRes.value;
59322
59129
  const doResult = await client._do(req, {
59323
59130
  context,
59324
- errorCodes: ["404", "4XX", "5XX"],
59131
+ errorCodes: ["401", "404", "4XX", "500", "5XX"],
59325
59132
  retryConfig: context.retryConfig,
59326
59133
  retryCodes: context.retryCodes
59327
59134
  });
@@ -59329,7 +59136,10 @@ async function $do8(client, request, options) {
59329
59136
  return [doResult, { status: "request-error", request: req }];
59330
59137
  }
59331
59138
  const response = doResult.value;
59332
- const [result] = await match(json(200, Destination$inboundSchema), fail([404, "4XX"]), fail("5XX"))(response, req);
59139
+ const responseFields = {
59140
+ HttpMeta: { Response: response, Request: req }
59141
+ };
59142
+ const [result] = await match(json(200, Destination$inboundSchema), jsonErr(401, UnauthorizedError$inboundSchema), jsonErr(404, NotFoundError$inboundSchema), jsonErr(500, InternalServerError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
59333
59143
  if (!result.ok) {
59334
59144
  return [result, { status: "complete", request: req, response }];
59335
59145
  }
@@ -59343,6 +59153,7 @@ var init_destinationsGet = __esm(() => {
59343
59153
  init_security();
59344
59154
  init_url();
59345
59155
  init_components();
59156
+ init_errors4();
59346
59157
  init_operations();
59347
59158
  init_async();
59348
59159
  });
@@ -59350,11 +59161,12 @@ var init_destinationsGet = __esm(() => {
59350
59161
  // src/mcp-server/tools/destinationsGet.ts
59351
59162
  var args8, tool$destinationsGet;
59352
59163
  var init_destinationsGet2 = __esm(() => {
59164
+ init_v3();
59353
59165
  init_destinationsGet();
59354
- init_operations();
59355
59166
  init_tools();
59356
59167
  args8 = {
59357
- request: GetTenantDestinationRequest$inboundSchema
59168
+ tenantId: stringType(),
59169
+ destinationId: stringType()
59358
59170
  };
59359
59171
  tool$destinationsGet = {
59360
59172
  name: "destinations-get",
@@ -59363,7 +59175,7 @@ var init_destinationsGet2 = __esm(() => {
59363
59175
  Retrieves details for a specific destination.`,
59364
59176
  args: args8,
59365
59177
  tool: async (client, args9, ctx) => {
59366
- const [result, apiCall] = await destinationsGet(client, args9.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
59178
+ const [result, apiCall] = await destinationsGet(client, args9.tenantId, args9.destinationId, { fetchOptions: { signal: ctx.signal } }).$inspect();
59367
59179
  if (!result.ok) {
59368
59180
  return {
59369
59181
  content: [{ type: "text", text: result.error.message }],
@@ -59377,11 +59189,17 @@ Retrieves details for a specific destination.`,
59377
59189
  });
59378
59190
 
59379
59191
  // src/funcs/destinationsGetAttempt.ts
59380
- function destinationsGetAttempt(client, request, options) {
59381
- return new APIPromise($do9(client, request, options));
59192
+ function destinationsGetAttempt(client, tenantId, destinationId, attemptId, include, options) {
59193
+ return new APIPromise($do9(client, tenantId, destinationId, attemptId, include, options));
59382
59194
  }
59383
- async function $do9(client, request, options) {
59384
- const parsed = safeParse4(request, (value) => GetTenantDestinationAttemptRequest$outboundSchema.parse(value), "Input validation failed");
59195
+ async function $do9(client, tenantId, destinationId, attemptId, include, options) {
59196
+ const input = {
59197
+ tenantId,
59198
+ destinationId,
59199
+ attemptId,
59200
+ include
59201
+ };
59202
+ const parsed = safeParse4(input, (value) => GetTenantDestinationAttemptRequest$outboundSchema.parse(value), "Input validation failed");
59385
59203
  if (!parsed.ok) {
59386
59204
  return [parsed, { status: "invalid" }];
59387
59205
  }
@@ -59396,7 +59214,10 @@ async function $do9(client, request, options) {
59396
59214
  explode: false,
59397
59215
  charEncoding: "percent"
59398
59216
  }),
59399
- tenant_id: encodeSimple("tenant_id", payload.tenant_id ?? client._options.tenantId, { explode: false, charEncoding: "percent" })
59217
+ tenant_id: encodeSimple("tenant_id", payload.tenant_id, {
59218
+ explode: false,
59219
+ charEncoding: "percent"
59220
+ })
59400
59221
  };
59401
59222
  const path = pathToFunc("/tenants/{tenant_id}/destinations/{destination_id}/attempts/{attempt_id}")(pathParams);
59402
59223
  const query = encodeFormQuery({
@@ -59405,7 +59226,8 @@ async function $do9(client, request, options) {
59405
59226
  const headers = new Headers(compactMap({
59406
59227
  Accept: "application/json"
59407
59228
  }));
59408
- const securityInput = await extractSecurity(client._options.security);
59229
+ const secConfig = await extractSecurity(client._options.apiKey);
59230
+ const securityInput = secConfig == null ? {} : { apiKey: secConfig };
59409
59231
  const requestSecurity = resolveGlobalSecurity(securityInput);
59410
59232
  const context = {
59411
59233
  options: client._options,
@@ -59413,7 +59235,7 @@ async function $do9(client, request, options) {
59413
59235
  operationID: "getTenantDestinationAttempt",
59414
59236
  oAuth2Scopes: null,
59415
59237
  resolvedSecurity: requestSecurity,
59416
- securitySource: client._options.security,
59238
+ securitySource: client._options.apiKey,
59417
59239
  retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
59418
59240
  retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
59419
59241
  };
@@ -59434,7 +59256,7 @@ async function $do9(client, request, options) {
59434
59256
  const req = requestRes.value;
59435
59257
  const doResult = await client._do(req, {
59436
59258
  context,
59437
- errorCodes: ["404", "4XX", "5XX"],
59259
+ errorCodes: ["401", "404", "4XX", "500", "5XX"],
59438
59260
  retryConfig: context.retryConfig,
59439
59261
  retryCodes: context.retryCodes
59440
59262
  });
@@ -59442,7 +59264,10 @@ async function $do9(client, request, options) {
59442
59264
  return [doResult, { status: "request-error", request: req }];
59443
59265
  }
59444
59266
  const response = doResult.value;
59445
- const [result] = await match(json(200, Attempt$inboundSchema), fail([404, "4XX"]), fail("5XX"))(response, req);
59267
+ const responseFields = {
59268
+ HttpMeta: { Response: response, Request: req }
59269
+ };
59270
+ const [result] = await match(json(200, Attempt$inboundSchema), jsonErr(401, UnauthorizedError$inboundSchema), jsonErr(404, NotFoundError$inboundSchema), jsonErr(500, InternalServerError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
59446
59271
  if (!result.ok) {
59447
59272
  return [result, { status: "complete", request: req, response }];
59448
59273
  }
@@ -59456,6 +59281,7 @@ var init_destinationsGetAttempt = __esm(() => {
59456
59281
  init_security();
59457
59282
  init_url();
59458
59283
  init_components();
59284
+ init_errors4();
59459
59285
  init_operations();
59460
59286
  init_async();
59461
59287
  });
@@ -59463,11 +59289,15 @@ var init_destinationsGetAttempt = __esm(() => {
59463
59289
  // src/mcp-server/tools/destinationsGetAttempt.ts
59464
59290
  var args9, tool$destinationsGetAttempt;
59465
59291
  var init_destinationsGetAttempt2 = __esm(() => {
59292
+ init_v3();
59466
59293
  init_destinationsGetAttempt();
59467
59294
  init_operations();
59468
59295
  init_tools();
59469
59296
  args9 = {
59470
- request: GetTenantDestinationAttemptRequest$inboundSchema
59297
+ tenantId: stringType(),
59298
+ destinationId: stringType(),
59299
+ attemptId: stringType(),
59300
+ include: GetTenantDestinationAttemptInclude$inboundSchema.optional()
59471
59301
  };
59472
59302
  tool$destinationsGetAttempt = {
59473
59303
  name: "destinations-get-attempt",
@@ -59476,7 +59306,7 @@ var init_destinationsGetAttempt2 = __esm(() => {
59476
59306
  Retrieves details for a specific attempt scoped to a destination.`,
59477
59307
  args: args9,
59478
59308
  tool: async (client, args10, ctx) => {
59479
- const [result, apiCall] = await destinationsGetAttempt(client, args10.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
59309
+ const [result, apiCall] = await destinationsGetAttempt(client, args10.tenantId, args10.destinationId, args10.attemptId, args10.include, { fetchOptions: { signal: ctx.signal } }).$inspect();
59480
59310
  if (!result.ok) {
59481
59311
  return {
59482
59312
  content: [{ type: "text", text: result.error.message }],
@@ -59490,18 +59320,26 @@ Retrieves details for a specific attempt scoped to a destination.`,
59490
59320
  });
59491
59321
 
59492
59322
  // src/funcs/destinationsList.ts
59493
- function destinationsList(client, request, options) {
59494
- return new APIPromise($do10(client, request, options));
59323
+ function destinationsList(client, tenantId, type, topics2, options) {
59324
+ return new APIPromise($do10(client, tenantId, type, topics2, options));
59495
59325
  }
59496
- async function $do10(client, request, options) {
59497
- const parsed = safeParse4(request, (value) => ListTenantDestinationsRequest$outboundSchema.parse(value), "Input validation failed");
59326
+ async function $do10(client, tenantId, type, topics2, options) {
59327
+ const input = {
59328
+ tenantId,
59329
+ type,
59330
+ topics: topics2
59331
+ };
59332
+ const parsed = safeParse4(input, (value) => ListTenantDestinationsRequest$outboundSchema.parse(value), "Input validation failed");
59498
59333
  if (!parsed.ok) {
59499
59334
  return [parsed, { status: "invalid" }];
59500
59335
  }
59501
59336
  const payload = parsed.value;
59502
59337
  const body = null;
59503
59338
  const pathParams = {
59504
- tenant_id: encodeSimple("tenant_id", payload.tenant_id ?? client._options.tenantId, { explode: false, charEncoding: "percent" })
59339
+ tenant_id: encodeSimple("tenant_id", payload.tenant_id, {
59340
+ explode: false,
59341
+ charEncoding: "percent"
59342
+ })
59505
59343
  };
59506
59344
  const path = pathToFunc("/tenants/{tenant_id}/destinations")(pathParams);
59507
59345
  const query = encodeFormQuery({
@@ -59511,7 +59349,8 @@ async function $do10(client, request, options) {
59511
59349
  const headers = new Headers(compactMap({
59512
59350
  Accept: "application/json"
59513
59351
  }));
59514
- const securityInput = await extractSecurity(client._options.security);
59352
+ const secConfig = await extractSecurity(client._options.apiKey);
59353
+ const securityInput = secConfig == null ? {} : { apiKey: secConfig };
59515
59354
  const requestSecurity = resolveGlobalSecurity(securityInput);
59516
59355
  const context = {
59517
59356
  options: client._options,
@@ -59519,7 +59358,7 @@ async function $do10(client, request, options) {
59519
59358
  operationID: "listTenantDestinations",
59520
59359
  oAuth2Scopes: null,
59521
59360
  resolvedSecurity: requestSecurity,
59522
- securitySource: client._options.security,
59361
+ securitySource: client._options.apiKey,
59523
59362
  retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
59524
59363
  retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
59525
59364
  };
@@ -59540,7 +59379,7 @@ async function $do10(client, request, options) {
59540
59379
  const req = requestRes.value;
59541
59380
  const doResult = await client._do(req, {
59542
59381
  context,
59543
- errorCodes: ["404", "4XX", "5XX"],
59382
+ errorCodes: ["401", "404", "4XX", "500", "5XX"],
59544
59383
  retryConfig: context.retryConfig,
59545
59384
  retryCodes: context.retryCodes
59546
59385
  });
@@ -59548,7 +59387,10 @@ async function $do10(client, request, options) {
59548
59387
  return [doResult, { status: "request-error", request: req }];
59549
59388
  }
59550
59389
  const response = doResult.value;
59551
- const [result] = await match(json(200, arrayType(Destination$inboundSchema)), fail([404, "4XX"]), fail("5XX"))(response, req);
59390
+ const responseFields = {
59391
+ HttpMeta: { Response: response, Request: req }
59392
+ };
59393
+ const [result] = await match(json(200, arrayType(Destination$inboundSchema)), jsonErr(401, UnauthorizedError$inboundSchema), jsonErr(404, NotFoundError$inboundSchema), jsonErr(500, InternalServerError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
59552
59394
  if (!result.ok) {
59553
59395
  return [result, { status: "complete", request: req, response }];
59554
59396
  }
@@ -59563,6 +59405,7 @@ var init_destinationsList = __esm(() => {
59563
59405
  init_security();
59564
59406
  init_url();
59565
59407
  init_components();
59408
+ init_errors4();
59566
59409
  init_operations();
59567
59410
  init_async();
59568
59411
  });
@@ -59570,11 +59413,14 @@ var init_destinationsList = __esm(() => {
59570
59413
  // src/mcp-server/tools/destinationsList.ts
59571
59414
  var args10, tool$destinationsList;
59572
59415
  var init_destinationsList2 = __esm(() => {
59416
+ init_v3();
59573
59417
  init_destinationsList();
59574
59418
  init_operations();
59575
59419
  init_tools();
59576
59420
  args10 = {
59577
- request: ListTenantDestinationsRequest$inboundSchema
59421
+ tenantId: stringType(),
59422
+ type: ListTenantDestinationsType$inboundSchema.optional(),
59423
+ topics: Topics$inboundSchema2.optional()
59578
59424
  };
59579
59425
  tool$destinationsList = {
59580
59426
  name: "destinations-list",
@@ -59583,7 +59429,7 @@ var init_destinationsList2 = __esm(() => {
59583
59429
  Return a list of the destinations for the tenant. The endpoint is not paged.`,
59584
59430
  args: args10,
59585
59431
  tool: async (client, args11, ctx) => {
59586
- const [result, apiCall] = await destinationsList(client, args11.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
59432
+ const [result, apiCall] = await destinationsList(client, args11.tenantId, args11.type, args11.topics, { fetchOptions: { signal: ctx.signal } }).$inspect();
59587
59433
  if (!result.ok) {
59588
59434
  return {
59589
59435
  content: [{ type: "text", text: result.error.message }],
@@ -59612,7 +59458,10 @@ async function $do11(client, request, options) {
59612
59458
  explode: false,
59613
59459
  charEncoding: "percent"
59614
59460
  }),
59615
- tenant_id: encodeSimple("tenant_id", payload.tenant_id ?? client._options.tenantId, { explode: false, charEncoding: "percent" })
59461
+ tenant_id: encodeSimple("tenant_id", payload.tenant_id, {
59462
+ explode: false,
59463
+ charEncoding: "percent"
59464
+ })
59616
59465
  };
59617
59466
  const path = pathToFunc("/tenants/{tenant_id}/destinations/{destination_id}/attempts")(pathParams);
59618
59467
  const query = encodeFormQuery({
@@ -59631,7 +59480,8 @@ async function $do11(client, request, options) {
59631
59480
  const headers = new Headers(compactMap({
59632
59481
  Accept: "application/json"
59633
59482
  }));
59634
- const securityInput = await extractSecurity(client._options.security);
59483
+ const secConfig = await extractSecurity(client._options.apiKey);
59484
+ const securityInput = secConfig == null ? {} : { apiKey: secConfig };
59635
59485
  const requestSecurity = resolveGlobalSecurity(securityInput);
59636
59486
  const context = {
59637
59487
  options: client._options,
@@ -59639,7 +59489,7 @@ async function $do11(client, request, options) {
59639
59489
  operationID: "listTenantDestinationAttempts",
59640
59490
  oAuth2Scopes: null,
59641
59491
  resolvedSecurity: requestSecurity,
59642
- securitySource: client._options.security,
59492
+ securitySource: client._options.apiKey,
59643
59493
  retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
59644
59494
  retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
59645
59495
  };
@@ -59660,7 +59510,7 @@ async function $do11(client, request, options) {
59660
59510
  const req = requestRes.value;
59661
59511
  const doResult = await client._do(req, {
59662
59512
  context,
59663
- errorCodes: ["404", "422", "4XX", "5XX"],
59513
+ errorCodes: ["401", "404", "4XX", "500", "5XX"],
59664
59514
  retryConfig: context.retryConfig,
59665
59515
  retryCodes: context.retryCodes
59666
59516
  });
@@ -59671,7 +59521,7 @@ async function $do11(client, request, options) {
59671
59521
  const responseFields = {
59672
59522
  HttpMeta: { Response: response, Request: req }
59673
59523
  };
59674
- const [result] = await match(json(200, AttemptPaginatedResult$inboundSchema), jsonErr(422, APIErrorResponse$inboundSchema), fail([404, "4XX"]), fail("5XX"))(response, req, { extraFields: responseFields });
59524
+ const [result] = await match(json(200, AttemptPaginatedResult$inboundSchema), jsonErr(401, UnauthorizedError$inboundSchema), jsonErr(404, NotFoundError$inboundSchema), jsonErr(500, InternalServerError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
59675
59525
  if (!result.ok) {
59676
59526
  return [result, { status: "complete", request: req, response }];
59677
59527
  }
@@ -59720,11 +59570,16 @@ Retrieves a paginated list of attempts scoped to a specific destination.`,
59720
59570
  });
59721
59571
 
59722
59572
  // src/funcs/destinationsUpdate.ts
59723
- function destinationsUpdate(client, request, options) {
59724
- return new APIPromise($do12(client, request, options));
59573
+ function destinationsUpdate(client, tenantId, destinationId, params, options) {
59574
+ return new APIPromise($do12(client, tenantId, destinationId, params, options));
59725
59575
  }
59726
- async function $do12(client, request, options) {
59727
- const parsed = safeParse4(request, (value) => UpdateTenantDestinationRequest$outboundSchema.parse(value), "Input validation failed");
59576
+ async function $do12(client, tenantId, destinationId, params, options) {
59577
+ const input = {
59578
+ tenantId,
59579
+ destinationId,
59580
+ params
59581
+ };
59582
+ const parsed = safeParse4(input, (value) => UpdateTenantDestinationRequest$outboundSchema.parse(value), "Input validation failed");
59728
59583
  if (!parsed.ok) {
59729
59584
  return [parsed, { status: "invalid" }];
59730
59585
  }
@@ -59735,14 +59590,18 @@ async function $do12(client, request, options) {
59735
59590
  explode: false,
59736
59591
  charEncoding: "percent"
59737
59592
  }),
59738
- tenant_id: encodeSimple("tenant_id", payload.tenant_id ?? client._options.tenantId, { explode: false, charEncoding: "percent" })
59593
+ tenant_id: encodeSimple("tenant_id", payload.tenant_id, {
59594
+ explode: false,
59595
+ charEncoding: "percent"
59596
+ })
59739
59597
  };
59740
59598
  const path = pathToFunc("/tenants/{tenant_id}/destinations/{destination_id}")(pathParams);
59741
59599
  const headers = new Headers(compactMap({
59742
59600
  "Content-Type": "application/json",
59743
59601
  Accept: "application/json"
59744
59602
  }));
59745
- const securityInput = await extractSecurity(client._options.security);
59603
+ const secConfig = await extractSecurity(client._options.apiKey);
59604
+ const securityInput = secConfig == null ? {} : { apiKey: secConfig };
59746
59605
  const requestSecurity = resolveGlobalSecurity(securityInput);
59747
59606
  const context = {
59748
59607
  options: client._options,
@@ -59750,7 +59609,7 @@ async function $do12(client, request, options) {
59750
59609
  operationID: "updateTenantDestination",
59751
59610
  oAuth2Scopes: null,
59752
59611
  resolvedSecurity: requestSecurity,
59753
- securitySource: client._options.security,
59612
+ securitySource: client._options.apiKey,
59754
59613
  retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
59755
59614
  retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
59756
59615
  };
@@ -59770,7 +59629,7 @@ async function $do12(client, request, options) {
59770
59629
  const req = requestRes.value;
59771
59630
  const doResult = await client._do(req, {
59772
59631
  context,
59773
- errorCodes: ["400", "404", "4XX", "5XX"],
59632
+ errorCodes: ["401", "404", "422", "4XX", "500", "5XX"],
59774
59633
  retryConfig: context.retryConfig,
59775
59634
  retryCodes: context.retryCodes
59776
59635
  });
@@ -59778,7 +59637,10 @@ async function $do12(client, request, options) {
59778
59637
  return [doResult, { status: "request-error", request: req }];
59779
59638
  }
59780
59639
  const response = doResult.value;
59781
- const [result] = await match(json(200, UpdateTenantDestinationResponse$inboundSchema), fail([400, 404, "4XX"]), fail("5XX"))(response, req);
59640
+ const responseFields = {
59641
+ HttpMeta: { Response: response, Request: req }
59642
+ };
59643
+ const [result] = await match(json(200, UpdateTenantDestinationResponse$inboundSchema), jsonErr(401, UnauthorizedError$inboundSchema), jsonErr(404, NotFoundError$inboundSchema), jsonErr(422, APIErrorResponse$inboundSchema), jsonErr(500, InternalServerError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
59782
59644
  if (!result.ok) {
59783
59645
  return [result, { status: "complete", request: req, response }];
59784
59646
  }
@@ -59791,6 +59653,7 @@ var init_destinationsUpdate = __esm(() => {
59791
59653
  init_schemas4();
59792
59654
  init_security();
59793
59655
  init_url();
59656
+ init_errors4();
59794
59657
  init_operations();
59795
59658
  init_async();
59796
59659
  });
@@ -59798,11 +59661,14 @@ var init_destinationsUpdate = __esm(() => {
59798
59661
  // src/mcp-server/tools/destinationsUpdate.ts
59799
59662
  var args12, tool$destinationsUpdate;
59800
59663
  var init_destinationsUpdate2 = __esm(() => {
59664
+ init_v3();
59801
59665
  init_destinationsUpdate();
59802
- init_operations();
59666
+ init_components();
59803
59667
  init_tools();
59804
59668
  args12 = {
59805
- request: UpdateTenantDestinationRequest$inboundSchema
59669
+ tenantId: stringType(),
59670
+ destinationId: stringType(),
59671
+ params: DestinationUpdate$inboundSchema
59806
59672
  };
59807
59673
  tool$destinationsUpdate = {
59808
59674
  name: "destinations-update",
@@ -59811,7 +59677,7 @@ var init_destinationsUpdate2 = __esm(() => {
59811
59677
  Updates the configuration of an existing destination. The request body structure depends on the destination's \`type\`. Type itself cannot be updated. May return an OAuth redirect URL for certain types.`,
59812
59678
  args: args12,
59813
59679
  tool: async (client, args13, ctx) => {
59814
- const [result, apiCall] = await destinationsUpdate(client, args13.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
59680
+ const [result, apiCall] = await destinationsUpdate(client, args13.tenantId, args13.destinationId, args13.params, { fetchOptions: { signal: ctx.signal } }).$inspect();
59815
59681
  if (!result.ok) {
59816
59682
  return {
59817
59683
  content: [{ type: "text", text: result.error.message }],
@@ -59825,11 +59691,14 @@ Updates the configuration of an existing destination. The request body structure
59825
59691
  });
59826
59692
 
59827
59693
  // src/funcs/eventsGet.ts
59828
- function eventsGet(client, request, options) {
59829
- return new APIPromise($do13(client, request, options));
59694
+ function eventsGet(client, eventId, options) {
59695
+ return new APIPromise($do13(client, eventId, options));
59830
59696
  }
59831
- async function $do13(client, request, options) {
59832
- const parsed = safeParse4(request, (value) => GetEventRequest$outboundSchema.parse(value), "Input validation failed");
59697
+ async function $do13(client, eventId, options) {
59698
+ const input = {
59699
+ eventId
59700
+ };
59701
+ const parsed = safeParse4(input, (value) => GetEventRequest$outboundSchema.parse(value), "Input validation failed");
59833
59702
  if (!parsed.ok) {
59834
59703
  return [parsed, { status: "invalid" }];
59835
59704
  }
@@ -59845,7 +59714,8 @@ async function $do13(client, request, options) {
59845
59714
  const headers = new Headers(compactMap({
59846
59715
  Accept: "application/json"
59847
59716
  }));
59848
- const securityInput = await extractSecurity(client._options.security);
59717
+ const secConfig = await extractSecurity(client._options.apiKey);
59718
+ const securityInput = secConfig == null ? {} : { apiKey: secConfig };
59849
59719
  const requestSecurity = resolveGlobalSecurity(securityInput);
59850
59720
  const context = {
59851
59721
  options: client._options,
@@ -59853,7 +59723,7 @@ async function $do13(client, request, options) {
59853
59723
  operationID: "getEvent",
59854
59724
  oAuth2Scopes: null,
59855
59725
  resolvedSecurity: requestSecurity,
59856
- securitySource: client._options.security,
59726
+ securitySource: client._options.apiKey,
59857
59727
  retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
59858
59728
  retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
59859
59729
  };
@@ -59873,7 +59743,7 @@ async function $do13(client, request, options) {
59873
59743
  const req = requestRes.value;
59874
59744
  const doResult = await client._do(req, {
59875
59745
  context,
59876
- errorCodes: ["404", "4XX", "5XX"],
59746
+ errorCodes: ["401", "404", "4XX", "500", "5XX"],
59877
59747
  retryConfig: context.retryConfig,
59878
59748
  retryCodes: context.retryCodes
59879
59749
  });
@@ -59881,7 +59751,10 @@ async function $do13(client, request, options) {
59881
59751
  return [doResult, { status: "request-error", request: req }];
59882
59752
  }
59883
59753
  const response = doResult.value;
59884
- const [result] = await match(json(200, Event$inboundSchema), fail([404, "4XX"]), fail("5XX"))(response, req);
59754
+ const responseFields = {
59755
+ HttpMeta: { Response: response, Request: req }
59756
+ };
59757
+ const [result] = await match(json(200, Event$inboundSchema), jsonErr(401, UnauthorizedError$inboundSchema), jsonErr(404, NotFoundError$inboundSchema), jsonErr(500, InternalServerError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
59885
59758
  if (!result.ok) {
59886
59759
  return [result, { status: "complete", request: req, response }];
59887
59760
  }
@@ -59895,6 +59768,7 @@ var init_eventsGet = __esm(() => {
59895
59768
  init_security();
59896
59769
  init_url();
59897
59770
  init_components();
59771
+ init_errors4();
59898
59772
  init_operations();
59899
59773
  init_async();
59900
59774
  });
@@ -59902,11 +59776,11 @@ var init_eventsGet = __esm(() => {
59902
59776
  // src/mcp-server/tools/eventsGet.ts
59903
59777
  var args13, tool$eventsGet;
59904
59778
  var init_eventsGet2 = __esm(() => {
59779
+ init_v3();
59905
59780
  init_eventsGet();
59906
- init_operations();
59907
59781
  init_tools();
59908
59782
  args13 = {
59909
- request: GetEventRequest$inboundSchema
59783
+ eventId: stringType()
59910
59784
  };
59911
59785
  tool$eventsGet = {
59912
59786
  name: "events-get",
@@ -59919,7 +59793,7 @@ When authenticated with Admin API Key, events from any tenant can be accessed.
59919
59793
  `,
59920
59794
  args: args13,
59921
59795
  tool: async (client, args14, ctx) => {
59922
- const [result, apiCall] = await eventsGet(client, args14.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
59796
+ const [result, apiCall] = await eventsGet(client, args14.eventId, { fetchOptions: { signal: ctx.signal } }).$inspect();
59923
59797
  if (!result.ok) {
59924
59798
  return {
59925
59799
  content: [{ type: "text", text: result.error.message }],
@@ -59937,7 +59811,7 @@ function eventsList(client, request, options) {
59937
59811
  return new APIPromise($do14(client, request, options));
59938
59812
  }
59939
59813
  async function $do14(client, request, options) {
59940
- const parsed = safeParse4(request, (value) => AdminListEventsRequest$outboundSchema.parse(value), "Input validation failed");
59814
+ const parsed = safeParse4(request, (value) => ListEventsRequest$outboundSchema.parse(value), "Input validation failed");
59941
59815
  if (!parsed.ok) {
59942
59816
  return [parsed, { status: "invalid" }];
59943
59817
  }
@@ -59958,15 +59832,16 @@ async function $do14(client, request, options) {
59958
59832
  const headers = new Headers(compactMap({
59959
59833
  Accept: "application/json"
59960
59834
  }));
59961
- const securityInput = await extractSecurity(client._options.security);
59835
+ const secConfig = await extractSecurity(client._options.apiKey);
59836
+ const securityInput = secConfig == null ? {} : { apiKey: secConfig };
59962
59837
  const requestSecurity = resolveGlobalSecurity(securityInput);
59963
59838
  const context = {
59964
59839
  options: client._options,
59965
59840
  baseURL: options?.serverURL ?? client._baseURL ?? "",
59966
- operationID: "adminListEvents",
59841
+ operationID: "listEvents",
59967
59842
  oAuth2Scopes: null,
59968
59843
  resolvedSecurity: requestSecurity,
59969
- securitySource: client._options.security,
59844
+ securitySource: client._options.apiKey,
59970
59845
  retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
59971
59846
  retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
59972
59847
  };
@@ -59987,7 +59862,7 @@ async function $do14(client, request, options) {
59987
59862
  const req = requestRes.value;
59988
59863
  const doResult = await client._do(req, {
59989
59864
  context,
59990
- errorCodes: ["401", "422", "4XX", "5XX"],
59865
+ errorCodes: ["401", "4XX", "500", "5XX"],
59991
59866
  retryConfig: context.retryConfig,
59992
59867
  retryCodes: context.retryCodes
59993
59868
  });
@@ -59998,7 +59873,7 @@ async function $do14(client, request, options) {
59998
59873
  const responseFields = {
59999
59874
  HttpMeta: { Response: response, Request: req }
60000
59875
  };
60001
- const [result] = await match(json(200, EventPaginatedResult$inboundSchema), jsonErr(422, APIErrorResponse$inboundSchema), fail([401, "4XX"]), fail("5XX"))(response, req, { extraFields: responseFields });
59876
+ const [result] = await match(json(200, EventPaginatedResult$inboundSchema), jsonErr(401, UnauthorizedError$inboundSchema), jsonErr(500, InternalServerError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
60002
59877
  if (!result.ok) {
60003
59878
  return [result, { status: "complete", request: req, response }];
60004
59879
  }
@@ -60024,15 +59899,16 @@ var init_eventsList2 = __esm(() => {
60024
59899
  init_operations();
60025
59900
  init_tools();
60026
59901
  args14 = {
60027
- request: AdminListEventsRequest$inboundSchema
59902
+ request: ListEventsRequest$inboundSchema
60028
59903
  };
60029
59904
  tool$eventsList = {
60030
59905
  name: "events-list",
60031
- description: `List Events (Admin)
59906
+ description: `List Events
60032
59907
 
60033
- Retrieves a list of events across all tenants. This is an admin-only endpoint that requires the Admin API Key.
59908
+ Retrieves a list of events.
60034
59909
 
60035
- When \`tenant_id\` is not provided, returns events from all tenants. When \`tenant_id\` is provided, returns only events for that tenant.
59910
+ When authenticated with a Tenant JWT, returns only events belonging to that tenant.
59911
+ When authenticated with Admin API Key, returns events across all tenants. Use \`tenant_id\` query parameter to filter by tenant.
60036
59912
  `,
60037
59913
  args: args14,
60038
59914
  tool: async (client, args15, ctx) => {
@@ -60187,7 +60063,8 @@ async function $do16(client, request, options) {
60187
60063
  "Content-Type": "application/json",
60188
60064
  Accept: "application/json"
60189
60065
  }));
60190
- const securityInput = await extractSecurity(client._options.security);
60066
+ const secConfig = await extractSecurity(client._options.apiKey);
60067
+ const securityInput = secConfig == null ? {} : { apiKey: secConfig };
60191
60068
  const requestSecurity = resolveGlobalSecurity(securityInput);
60192
60069
  const context = {
60193
60070
  options: client._options,
@@ -60195,7 +60072,7 @@ async function $do16(client, request, options) {
60195
60072
  operationID: "publishEvent",
60196
60073
  oAuth2Scopes: null,
60197
60074
  resolvedSecurity: requestSecurity,
60198
- securitySource: client._options.security,
60075
+ securitySource: client._options.apiKey,
60199
60076
  retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
60200
60077
  retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
60201
60078
  };
@@ -60216,7 +60093,6 @@ async function $do16(client, request, options) {
60216
60093
  const doResult = await client._do(req, {
60217
60094
  context,
60218
60095
  errorCodes: [
60219
- "400",
60220
60096
  "401",
60221
60097
  "403",
60222
60098
  "404",
@@ -60253,7 +60129,7 @@ async function $do16(client, request, options) {
60253
60129
  const responseFields = {
60254
60130
  HttpMeta: { Response: response, Request: req }
60255
60131
  };
60256
- const [result] = await match(json(202, PublishResponse$inboundSchema), jsonErr(404, NotFoundError$inboundSchema), jsonErr([403, 407], UnauthorizedError$inboundSchema), jsonErr(408, TimeoutError$inboundSchema), jsonErr(429, RateLimitedError$inboundSchema), jsonErr([413, 414, 415, 422, 431], BadRequestError$inboundSchema), jsonErr(504, TimeoutError$inboundSchema), jsonErr([501, 505], NotFoundError$inboundSchema), jsonErr([500, 502, 503, 506, 507, 508], InternalServerError$inboundSchema), jsonErr(510, BadRequestError$inboundSchema), jsonErr(511, UnauthorizedError$inboundSchema), fail([400, 401, 409, "4XX"]), fail("5XX"))(response, req, { extraFields: responseFields });
60132
+ const [result] = await match(json(202, PublishResponse$inboundSchema), jsonErr(404, NotFoundError$inboundSchema), jsonErr([401, 403, 407], UnauthorizedError$inboundSchema), jsonErr(408, TimeoutError$inboundSchema), jsonErr(429, RateLimitedError$inboundSchema), jsonErr([413, 414, 415, 422, 431], BadRequestError$inboundSchema), jsonErr(504, TimeoutError$inboundSchema), jsonErr([501, 505], NotFoundError$inboundSchema), jsonErr([500, 502, 503, 506, 507, 508], InternalServerError$inboundSchema), jsonErr(510, BadRequestError$inboundSchema), jsonErr(511, UnauthorizedError$inboundSchema), fail([409, "4XX"]), fail("5XX"))(response, req, { extraFields: responseFields });
60257
60133
  if (!result.ok) {
60258
60134
  return [result, { status: "complete", request: req, response }];
60259
60135
  }
@@ -60300,12 +60176,15 @@ Publishes an event to the specified topic, potentially routed to a specific dest
60300
60176
  };
60301
60177
  });
60302
60178
 
60303
- // src/funcs/schemasGetDestinationTypeJwt.ts
60304
- function schemasGetDestinationTypeJwt(client, request, options) {
60305
- return new APIPromise($do17(client, request, options));
60179
+ // src/funcs/schemasGetDestinationType.ts
60180
+ function schemasGetDestinationType(client, type, options) {
60181
+ return new APIPromise($do17(client, type, options));
60306
60182
  }
60307
- async function $do17(client, request, options) {
60308
- const parsed = safeParse4(request, (value) => GetDestinationTypeSchemaRequest$outboundSchema.parse(value), "Input validation failed");
60183
+ async function $do17(client, type, options) {
60184
+ const input = {
60185
+ type
60186
+ };
60187
+ const parsed = safeParse4(input, (value) => GetDestinationTypeSchemaRequest$outboundSchema.parse(value), "Input validation failed");
60309
60188
  if (!parsed.ok) {
60310
60189
  return [parsed, { status: "invalid" }];
60311
60190
  }
@@ -60321,7 +60200,8 @@ async function $do17(client, request, options) {
60321
60200
  const headers = new Headers(compactMap({
60322
60201
  Accept: "application/json"
60323
60202
  }));
60324
- const securityInput = await extractSecurity(client._options.security);
60203
+ const secConfig = await extractSecurity(client._options.apiKey);
60204
+ const securityInput = secConfig == null ? {} : { apiKey: secConfig };
60325
60205
  const requestSecurity = resolveGlobalSecurity(securityInput);
60326
60206
  const context = {
60327
60207
  options: client._options,
@@ -60329,7 +60209,7 @@ async function $do17(client, request, options) {
60329
60209
  operationID: "getDestinationTypeSchema",
60330
60210
  oAuth2Scopes: null,
60331
60211
  resolvedSecurity: requestSecurity,
60332
- securitySource: client._options.security,
60212
+ securitySource: client._options.apiKey,
60333
60213
  retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
60334
60214
  retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
60335
60215
  };
@@ -60386,13 +60266,13 @@ async function $do17(client, request, options) {
60386
60266
  const responseFields = {
60387
60267
  HttpMeta: { Response: response, Request: req }
60388
60268
  };
60389
- const [result] = await match(json(200, DestinationTypeSchema$inboundSchema), jsonErr([403, 407], UnauthorizedError$inboundSchema), jsonErr(408, TimeoutError$inboundSchema), jsonErr(429, RateLimitedError$inboundSchema), jsonErr([400, 413, 414, 415, 422, 431], BadRequestError$inboundSchema), jsonErr(504, TimeoutError$inboundSchema), jsonErr([501, 505], NotFoundError$inboundSchema), jsonErr([500, 502, 503, 506, 507, 508], InternalServerError$inboundSchema), jsonErr(510, BadRequestError$inboundSchema), jsonErr(511, UnauthorizedError$inboundSchema), fail([401, 404, "4XX"]), fail("5XX"))(response, req, { extraFields: responseFields });
60269
+ const [result] = await match(json(200, DestinationTypeSchema$inboundSchema), jsonErr(404, NotFoundError$inboundSchema), jsonErr([401, 403, 407], UnauthorizedError$inboundSchema), jsonErr(408, TimeoutError$inboundSchema), jsonErr(429, RateLimitedError$inboundSchema), jsonErr([400, 413, 414, 415, 422, 431], BadRequestError$inboundSchema), jsonErr(504, TimeoutError$inboundSchema), jsonErr([501, 505], NotFoundError$inboundSchema), jsonErr([500, 502, 503, 506, 507, 508], InternalServerError$inboundSchema), jsonErr(510, BadRequestError$inboundSchema), jsonErr(511, UnauthorizedError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
60390
60270
  if (!result.ok) {
60391
60271
  return [result, { status: "complete", request: req, response }];
60392
60272
  }
60393
60273
  return [result, { status: "complete", request: req, response }];
60394
60274
  }
60395
- var init_schemasGetDestinationTypeJwt = __esm(() => {
60275
+ var init_schemasGetDestinationType = __esm(() => {
60396
60276
  init_encodings();
60397
60277
  init_matchers();
60398
60278
  init_primitives();
@@ -60405,23 +60285,23 @@ var init_schemasGetDestinationTypeJwt = __esm(() => {
60405
60285
  init_async();
60406
60286
  });
60407
60287
 
60408
- // src/mcp-server/tools/schemasGetDestinationTypeJwt.ts
60409
- var args16, tool$schemasGetDestinationTypeJwt;
60410
- var init_schemasGetDestinationTypeJwt2 = __esm(() => {
60411
- init_schemasGetDestinationTypeJwt();
60288
+ // src/mcp-server/tools/schemasGetDestinationType.ts
60289
+ var args16, tool$schemasGetDestinationType;
60290
+ var init_schemasGetDestinationType2 = __esm(() => {
60291
+ init_schemasGetDestinationType();
60412
60292
  init_operations();
60413
60293
  init_tools();
60414
60294
  args16 = {
60415
- request: GetDestinationTypeSchemaRequest$inboundSchema
60295
+ type: GetDestinationTypeSchemaType$inboundSchema
60416
60296
  };
60417
- tool$schemasGetDestinationTypeJwt = {
60418
- name: "schemas-get-destination-type-jwt",
60297
+ tool$schemasGetDestinationType = {
60298
+ name: "schemas-get-destination-type",
60419
60299
  description: `Get Destination Type Schema
60420
60300
 
60421
60301
  Returns the input schema for a specific destination type.`,
60422
60302
  args: args16,
60423
60303
  tool: async (client, args17, ctx) => {
60424
- const [result, apiCall] = await schemasGetDestinationTypeJwt(client, args17.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
60304
+ const [result, apiCall] = await schemasGetDestinationType(client, args17.type, { fetchOptions: { signal: ctx.signal } }).$inspect();
60425
60305
  if (!result.ok) {
60426
60306
  return {
60427
60307
  content: [{ type: "text", text: result.error.message }],
@@ -60434,8 +60314,8 @@ Returns the input schema for a specific destination type.`,
60434
60314
  };
60435
60315
  });
60436
60316
 
60437
- // src/funcs/schemasListDestinationTypesJwt.ts
60438
- function schemasListDestinationTypesJwt(client, options) {
60317
+ // src/funcs/schemasListDestinationTypes.ts
60318
+ function schemasListDestinationTypes(client, options) {
60439
60319
  return new APIPromise($do18(client, options));
60440
60320
  }
60441
60321
  async function $do18(client, options) {
@@ -60443,7 +60323,8 @@ async function $do18(client, options) {
60443
60323
  const headers = new Headers(compactMap({
60444
60324
  Accept: "application/json"
60445
60325
  }));
60446
- const securityInput = await extractSecurity(client._options.security);
60326
+ const secConfig = await extractSecurity(client._options.apiKey);
60327
+ const securityInput = secConfig == null ? {} : { apiKey: secConfig };
60447
60328
  const requestSecurity = resolveGlobalSecurity(securityInput);
60448
60329
  const context = {
60449
60330
  options: client._options,
@@ -60451,7 +60332,7 @@ async function $do18(client, options) {
60451
60332
  operationID: "listDestinationTypeSchemas",
60452
60333
  oAuth2Scopes: null,
60453
60334
  resolvedSecurity: requestSecurity,
60454
- securitySource: client._options.security,
60335
+ securitySource: client._options.apiKey,
60455
60336
  retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
60456
60337
  retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
60457
60338
  };
@@ -60507,13 +60388,13 @@ async function $do18(client, options) {
60507
60388
  const responseFields = {
60508
60389
  HttpMeta: { Response: response, Request: req }
60509
60390
  };
60510
- const [result] = await match(json(200, arrayType(DestinationTypeSchema$inboundSchema)), jsonErr(404, NotFoundError$inboundSchema), jsonErr([403, 407], UnauthorizedError$inboundSchema), jsonErr(408, TimeoutError$inboundSchema), jsonErr(429, RateLimitedError$inboundSchema), jsonErr([400, 413, 414, 415, 422, 431], BadRequestError$inboundSchema), jsonErr(504, TimeoutError$inboundSchema), jsonErr([501, 505], NotFoundError$inboundSchema), jsonErr([500, 502, 503, 506, 507, 508], InternalServerError$inboundSchema), jsonErr(510, BadRequestError$inboundSchema), jsonErr(511, UnauthorizedError$inboundSchema), fail([401, "4XX"]), fail("5XX"))(response, req, { extraFields: responseFields });
60391
+ const [result] = await match(json(200, arrayType(DestinationTypeSchema$inboundSchema)), jsonErr(404, NotFoundError$inboundSchema), jsonErr([401, 403, 407], UnauthorizedError$inboundSchema), jsonErr(408, TimeoutError$inboundSchema), jsonErr(429, RateLimitedError$inboundSchema), jsonErr([400, 413, 414, 415, 422, 431], BadRequestError$inboundSchema), jsonErr(504, TimeoutError$inboundSchema), jsonErr([501, 505], NotFoundError$inboundSchema), jsonErr([500, 502, 503, 506, 507, 508], InternalServerError$inboundSchema), jsonErr(510, BadRequestError$inboundSchema), jsonErr(511, UnauthorizedError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
60511
60392
  if (!result.ok) {
60512
60393
  return [result, { status: "complete", request: req, response }];
60513
60394
  }
60514
60395
  return [result, { status: "complete", request: req, response }];
60515
60396
  }
60516
- var init_schemasListDestinationTypesJwt = __esm(() => {
60397
+ var init_schemasListDestinationTypes = __esm(() => {
60517
60398
  init_v3();
60518
60399
  init_matchers();
60519
60400
  init_primitives();
@@ -60524,18 +60405,18 @@ var init_schemasListDestinationTypesJwt = __esm(() => {
60524
60405
  init_async();
60525
60406
  });
60526
60407
 
60527
- // src/mcp-server/tools/schemasListDestinationTypesJwt.ts
60528
- var tool$schemasListDestinationTypesJwt;
60529
- var init_schemasListDestinationTypesJwt2 = __esm(() => {
60530
- init_schemasListDestinationTypesJwt();
60408
+ // src/mcp-server/tools/schemasListDestinationTypes.ts
60409
+ var tool$schemasListDestinationTypes;
60410
+ var init_schemasListDestinationTypes2 = __esm(() => {
60411
+ init_schemasListDestinationTypes();
60531
60412
  init_tools();
60532
- tool$schemasListDestinationTypesJwt = {
60533
- name: "schemas-list-destination-types-jwt",
60413
+ tool$schemasListDestinationTypes = {
60414
+ name: "schemas-list-destination-types",
60534
60415
  description: `List Destination Type Schemas
60535
60416
 
60536
60417
  Returns a list of JSON-based input schemas for each available destination type.`,
60537
60418
  tool: async (client, ctx) => {
60538
- const [result, apiCall] = await schemasListDestinationTypesJwt(client, { fetchOptions: { signal: ctx.signal } }).$inspect();
60419
+ const [result, apiCall] = await schemasListDestinationTypes(client, { fetchOptions: { signal: ctx.signal } }).$inspect();
60539
60420
  if (!result.ok) {
60540
60421
  return {
60541
60422
  content: [{ type: "text", text: result.error.message }],
@@ -60549,24 +60430,31 @@ Returns a list of JSON-based input schemas for each available destination type.`
60549
60430
  });
60550
60431
 
60551
60432
  // src/funcs/tenantsDelete.ts
60552
- function tenantsDelete(client, request, options) {
60553
- return new APIPromise($do19(client, request, options));
60433
+ function tenantsDelete(client, tenantId, options) {
60434
+ return new APIPromise($do19(client, tenantId, options));
60554
60435
  }
60555
- async function $do19(client, request, options) {
60556
- const parsed = safeParse4(request, (value) => DeleteTenantRequest$outboundSchema.parse(value), "Input validation failed");
60436
+ async function $do19(client, tenantId, options) {
60437
+ const input = {
60438
+ tenantId
60439
+ };
60440
+ const parsed = safeParse4(input, (value) => DeleteTenantRequest$outboundSchema.parse(value), "Input validation failed");
60557
60441
  if (!parsed.ok) {
60558
60442
  return [parsed, { status: "invalid" }];
60559
60443
  }
60560
60444
  const payload = parsed.value;
60561
60445
  const body = null;
60562
60446
  const pathParams = {
60563
- tenant_id: encodeSimple("tenant_id", payload.tenant_id ?? client._options.tenantId, { explode: false, charEncoding: "percent" })
60447
+ tenant_id: encodeSimple("tenant_id", payload.tenant_id, {
60448
+ explode: false,
60449
+ charEncoding: "percent"
60450
+ })
60564
60451
  };
60565
60452
  const path = pathToFunc("/tenants/{tenant_id}")(pathParams);
60566
60453
  const headers = new Headers(compactMap({
60567
60454
  Accept: "application/json"
60568
60455
  }));
60569
- const securityInput = await extractSecurity(client._options.security);
60456
+ const secConfig = await extractSecurity(client._options.apiKey);
60457
+ const securityInput = secConfig == null ? {} : { apiKey: secConfig };
60570
60458
  const requestSecurity = resolveGlobalSecurity(securityInput);
60571
60459
  const context = {
60572
60460
  options: client._options,
@@ -60574,7 +60462,7 @@ async function $do19(client, request, options) {
60574
60462
  operationID: "deleteTenant",
60575
60463
  oAuth2Scopes: null,
60576
60464
  resolvedSecurity: requestSecurity,
60577
- securitySource: client._options.security,
60465
+ securitySource: client._options.apiKey,
60578
60466
  retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
60579
60467
  retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
60580
60468
  };
@@ -60594,7 +60482,7 @@ async function $do19(client, request, options) {
60594
60482
  const req = requestRes.value;
60595
60483
  const doResult = await client._do(req, {
60596
60484
  context,
60597
- errorCodes: ["404", "4XX", "5XX"],
60485
+ errorCodes: ["401", "404", "4XX", "500", "5XX"],
60598
60486
  retryConfig: context.retryConfig,
60599
60487
  retryCodes: context.retryCodes
60600
60488
  });
@@ -60602,7 +60490,10 @@ async function $do19(client, request, options) {
60602
60490
  return [doResult, { status: "request-error", request: req }];
60603
60491
  }
60604
60492
  const response = doResult.value;
60605
- const [result] = await match(json(200, SuccessResponse$inboundSchema), fail([404, "4XX"]), fail("5XX"))(response, req);
60493
+ const responseFields = {
60494
+ HttpMeta: { Response: response, Request: req }
60495
+ };
60496
+ const [result] = await match(json(200, SuccessResponse$inboundSchema), jsonErr(401, UnauthorizedError$inboundSchema), jsonErr(404, NotFoundError$inboundSchema), jsonErr(500, InternalServerError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
60606
60497
  if (!result.ok) {
60607
60498
  return [result, { status: "complete", request: req, response }];
60608
60499
  }
@@ -60616,6 +60507,7 @@ var init_tenantsDelete = __esm(() => {
60616
60507
  init_security();
60617
60508
  init_url();
60618
60509
  init_components();
60510
+ init_errors4();
60619
60511
  init_operations();
60620
60512
  init_async();
60621
60513
  });
@@ -60623,11 +60515,11 @@ var init_tenantsDelete = __esm(() => {
60623
60515
  // src/mcp-server/tools/tenantsDelete.ts
60624
60516
  var args17, tool$tenantsDelete;
60625
60517
  var init_tenantsDelete2 = __esm(() => {
60518
+ init_v3();
60626
60519
  init_tenantsDelete();
60627
- init_operations();
60628
60520
  init_tools();
60629
60521
  args17 = {
60630
- request: DeleteTenantRequest$inboundSchema
60522
+ tenantId: stringType()
60631
60523
  };
60632
60524
  tool$tenantsDelete = {
60633
60525
  name: "tenants-delete",
@@ -60636,7 +60528,7 @@ var init_tenantsDelete2 = __esm(() => {
60636
60528
  Deletes the tenant and all associated destinations.`,
60637
60529
  args: args17,
60638
60530
  tool: async (client, args18, ctx) => {
60639
- const [result, apiCall] = await tenantsDelete(client, args18.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
60531
+ const [result, apiCall] = await tenantsDelete(client, args18.tenantId, { fetchOptions: { signal: ctx.signal } }).$inspect();
60640
60532
  if (!result.ok) {
60641
60533
  return {
60642
60534
  content: [{ type: "text", text: result.error.message }],
@@ -60650,24 +60542,31 @@ Deletes the tenant and all associated destinations.`,
60650
60542
  });
60651
60543
 
60652
60544
  // src/funcs/tenantsGet.ts
60653
- function tenantsGet(client, request, options) {
60654
- return new APIPromise($do20(client, request, options));
60545
+ function tenantsGet(client, tenantId, options) {
60546
+ return new APIPromise($do20(client, tenantId, options));
60655
60547
  }
60656
- async function $do20(client, request, options) {
60657
- const parsed = safeParse4(request, (value) => GetTenantRequest$outboundSchema.parse(value), "Input validation failed");
60548
+ async function $do20(client, tenantId, options) {
60549
+ const input = {
60550
+ tenantId
60551
+ };
60552
+ const parsed = safeParse4(input, (value) => GetTenantRequest$outboundSchema.parse(value), "Input validation failed");
60658
60553
  if (!parsed.ok) {
60659
60554
  return [parsed, { status: "invalid" }];
60660
60555
  }
60661
60556
  const payload = parsed.value;
60662
60557
  const body = null;
60663
60558
  const pathParams = {
60664
- tenant_id: encodeSimple("tenant_id", payload.tenant_id ?? client._options.tenantId, { explode: false, charEncoding: "percent" })
60559
+ tenant_id: encodeSimple("tenant_id", payload.tenant_id, {
60560
+ explode: false,
60561
+ charEncoding: "percent"
60562
+ })
60665
60563
  };
60666
60564
  const path = pathToFunc("/tenants/{tenant_id}")(pathParams);
60667
60565
  const headers = new Headers(compactMap({
60668
60566
  Accept: "application/json"
60669
60567
  }));
60670
- const securityInput = await extractSecurity(client._options.security);
60568
+ const secConfig = await extractSecurity(client._options.apiKey);
60569
+ const securityInput = secConfig == null ? {} : { apiKey: secConfig };
60671
60570
  const requestSecurity = resolveGlobalSecurity(securityInput);
60672
60571
  const context = {
60673
60572
  options: client._options,
@@ -60675,7 +60574,7 @@ async function $do20(client, request, options) {
60675
60574
  operationID: "getTenant",
60676
60575
  oAuth2Scopes: null,
60677
60576
  resolvedSecurity: requestSecurity,
60678
- securitySource: client._options.security,
60577
+ securitySource: client._options.apiKey,
60679
60578
  retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
60680
60579
  retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
60681
60580
  };
@@ -60695,7 +60594,7 @@ async function $do20(client, request, options) {
60695
60594
  const req = requestRes.value;
60696
60595
  const doResult = await client._do(req, {
60697
60596
  context,
60698
- errorCodes: ["404", "4XX", "5XX"],
60597
+ errorCodes: ["401", "404", "4XX", "500", "5XX"],
60699
60598
  retryConfig: context.retryConfig,
60700
60599
  retryCodes: context.retryCodes
60701
60600
  });
@@ -60703,7 +60602,10 @@ async function $do20(client, request, options) {
60703
60602
  return [doResult, { status: "request-error", request: req }];
60704
60603
  }
60705
60604
  const response = doResult.value;
60706
- const [result] = await match(json(200, Tenant$inboundSchema), fail([404, "4XX"]), fail("5XX"))(response, req);
60605
+ const responseFields = {
60606
+ HttpMeta: { Response: response, Request: req }
60607
+ };
60608
+ const [result] = await match(json(200, Tenant$inboundSchema), jsonErr(401, UnauthorizedError$inboundSchema), jsonErr(404, NotFoundError$inboundSchema), jsonErr(500, InternalServerError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
60707
60609
  if (!result.ok) {
60708
60610
  return [result, { status: "complete", request: req, response }];
60709
60611
  }
@@ -60717,6 +60619,7 @@ var init_tenantsGet = __esm(() => {
60717
60619
  init_security();
60718
60620
  init_url();
60719
60621
  init_components();
60622
+ init_errors4();
60720
60623
  init_operations();
60721
60624
  init_async();
60722
60625
  });
@@ -60724,11 +60627,11 @@ var init_tenantsGet = __esm(() => {
60724
60627
  // src/mcp-server/tools/tenantsGet.ts
60725
60628
  var args18, tool$tenantsGet;
60726
60629
  var init_tenantsGet2 = __esm(() => {
60630
+ init_v3();
60727
60631
  init_tenantsGet();
60728
- init_operations();
60729
60632
  init_tools();
60730
60633
  args18 = {
60731
- request: GetTenantRequest$inboundSchema
60634
+ tenantId: stringType()
60732
60635
  };
60733
60636
  tool$tenantsGet = {
60734
60637
  name: "tenants-get",
@@ -60737,7 +60640,7 @@ var init_tenantsGet2 = __esm(() => {
60737
60640
  Retrieves details for a specific tenant.`,
60738
60641
  args: args18,
60739
60642
  tool: async (client, args19, ctx) => {
60740
- const [result, apiCall] = await tenantsGet(client, args19.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
60643
+ const [result, apiCall] = await tenantsGet(client, args19.tenantId, { fetchOptions: { signal: ctx.signal } }).$inspect();
60741
60644
  if (!result.ok) {
60742
60645
  return {
60743
60646
  content: [{ type: "text", text: result.error.message }],
@@ -60751,18 +60654,25 @@ Retrieves details for a specific tenant.`,
60751
60654
  });
60752
60655
 
60753
60656
  // src/funcs/tenantsGetPortalUrl.ts
60754
- function tenantsGetPortalUrl(client, request, options) {
60755
- return new APIPromise($do21(client, request, options));
60657
+ function tenantsGetPortalUrl(client, tenantId, theme, options) {
60658
+ return new APIPromise($do21(client, tenantId, theme, options));
60756
60659
  }
60757
- async function $do21(client, request, options) {
60758
- const parsed = safeParse4(request, (value) => GetTenantPortalUrlRequest$outboundSchema.parse(value), "Input validation failed");
60660
+ async function $do21(client, tenantId, theme, options) {
60661
+ const input = {
60662
+ tenantId,
60663
+ theme
60664
+ };
60665
+ const parsed = safeParse4(input, (value) => GetTenantPortalUrlRequest$outboundSchema.parse(value), "Input validation failed");
60759
60666
  if (!parsed.ok) {
60760
60667
  return [parsed, { status: "invalid" }];
60761
60668
  }
60762
60669
  const payload = parsed.value;
60763
60670
  const body = null;
60764
60671
  const pathParams = {
60765
- tenant_id: encodeSimple("tenant_id", payload.tenant_id ?? client._options.tenantId, { explode: false, charEncoding: "percent" })
60672
+ tenant_id: encodeSimple("tenant_id", payload.tenant_id, {
60673
+ explode: false,
60674
+ charEncoding: "percent"
60675
+ })
60766
60676
  };
60767
60677
  const path = pathToFunc("/tenants/{tenant_id}/portal")(pathParams);
60768
60678
  const query = encodeFormQuery({
@@ -60771,7 +60681,8 @@ async function $do21(client, request, options) {
60771
60681
  const headers = new Headers(compactMap({
60772
60682
  Accept: "application/json"
60773
60683
  }));
60774
- const securityInput = await extractSecurity(client._options.security);
60684
+ const secConfig = await extractSecurity(client._options.apiKey);
60685
+ const securityInput = secConfig == null ? {} : { apiKey: secConfig };
60775
60686
  const requestSecurity = resolveGlobalSecurity(securityInput);
60776
60687
  const context = {
60777
60688
  options: client._options,
@@ -60779,7 +60690,7 @@ async function $do21(client, request, options) {
60779
60690
  operationID: "getTenantPortalUrl",
60780
60691
  oAuth2Scopes: null,
60781
60692
  resolvedSecurity: requestSecurity,
60782
- securitySource: client._options.security,
60693
+ securitySource: client._options.apiKey,
60783
60694
  retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
60784
60695
  retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
60785
60696
  };
@@ -60800,7 +60711,7 @@ async function $do21(client, request, options) {
60800
60711
  const req = requestRes.value;
60801
60712
  const doResult = await client._do(req, {
60802
60713
  context,
60803
- errorCodes: ["404", "4XX", "5XX"],
60714
+ errorCodes: ["401", "404", "4XX", "500", "5XX"],
60804
60715
  retryConfig: context.retryConfig,
60805
60716
  retryCodes: context.retryCodes
60806
60717
  });
@@ -60808,7 +60719,10 @@ async function $do21(client, request, options) {
60808
60719
  return [doResult, { status: "request-error", request: req }];
60809
60720
  }
60810
60721
  const response = doResult.value;
60811
- const [result] = await match(json(200, PortalRedirect$inboundSchema), fail([404, "4XX"]), fail("5XX"))(response, req);
60722
+ const responseFields = {
60723
+ HttpMeta: { Response: response, Request: req }
60724
+ };
60725
+ const [result] = await match(json(200, PortalRedirect$inboundSchema), jsonErr(401, UnauthorizedError$inboundSchema), jsonErr(404, NotFoundError$inboundSchema), jsonErr(500, InternalServerError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
60812
60726
  if (!result.ok) {
60813
60727
  return [result, { status: "complete", request: req, response }];
60814
60728
  }
@@ -60822,6 +60736,7 @@ var init_tenantsGetPortalUrl = __esm(() => {
60822
60736
  init_security();
60823
60737
  init_url();
60824
60738
  init_components();
60739
+ init_errors4();
60825
60740
  init_operations();
60826
60741
  init_async();
60827
60742
  });
@@ -60829,20 +60744,22 @@ var init_tenantsGetPortalUrl = __esm(() => {
60829
60744
  // src/mcp-server/tools/tenantsGetPortalUrl.ts
60830
60745
  var args19, tool$tenantsGetPortalUrl;
60831
60746
  var init_tenantsGetPortalUrl2 = __esm(() => {
60747
+ init_v3();
60832
60748
  init_tenantsGetPortalUrl();
60833
60749
  init_operations();
60834
60750
  init_tools();
60835
60751
  args19 = {
60836
- request: GetTenantPortalUrlRequest$inboundSchema
60752
+ tenantId: stringType(),
60753
+ theme: Theme$inboundSchema.optional()
60837
60754
  };
60838
60755
  tool$tenantsGetPortalUrl = {
60839
60756
  name: "tenants-get-portal-url",
60840
60757
  description: `Get Portal Redirect URL
60841
60758
 
60842
- Returns a redirect URL containing a JWT to authenticate the user with the portal.`,
60759
+ Returns a redirect URL containing a JWT to authenticate the user with the portal. Requires Admin API Key.`,
60843
60760
  args: args19,
60844
60761
  tool: async (client, args20, ctx) => {
60845
- const [result, apiCall] = await tenantsGetPortalUrl(client, args20.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
60762
+ const [result, apiCall] = await tenantsGetPortalUrl(client, args20.tenantId, args20.theme, { fetchOptions: { signal: ctx.signal } }).$inspect();
60846
60763
  if (!result.ok) {
60847
60764
  return {
60848
60765
  content: [{ type: "text", text: result.error.message }],
@@ -60856,24 +60773,31 @@ Returns a redirect URL containing a JWT to authenticate the user with the portal
60856
60773
  });
60857
60774
 
60858
60775
  // src/funcs/tenantsGetToken.ts
60859
- function tenantsGetToken(client, request, options) {
60860
- return new APIPromise($do22(client, request, options));
60776
+ function tenantsGetToken(client, tenantId, options) {
60777
+ return new APIPromise($do22(client, tenantId, options));
60861
60778
  }
60862
- async function $do22(client, request, options) {
60863
- const parsed = safeParse4(request, (value) => GetTenantTokenRequest$outboundSchema.parse(value), "Input validation failed");
60779
+ async function $do22(client, tenantId, options) {
60780
+ const input = {
60781
+ tenantId
60782
+ };
60783
+ const parsed = safeParse4(input, (value) => GetTenantTokenRequest$outboundSchema.parse(value), "Input validation failed");
60864
60784
  if (!parsed.ok) {
60865
60785
  return [parsed, { status: "invalid" }];
60866
60786
  }
60867
60787
  const payload = parsed.value;
60868
60788
  const body = null;
60869
60789
  const pathParams = {
60870
- tenant_id: encodeSimple("tenant_id", payload.tenant_id ?? client._options.tenantId, { explode: false, charEncoding: "percent" })
60790
+ tenant_id: encodeSimple("tenant_id", payload.tenant_id, {
60791
+ explode: false,
60792
+ charEncoding: "percent"
60793
+ })
60871
60794
  };
60872
60795
  const path = pathToFunc("/tenants/{tenant_id}/token")(pathParams);
60873
60796
  const headers = new Headers(compactMap({
60874
60797
  Accept: "application/json"
60875
60798
  }));
60876
- const securityInput = await extractSecurity(client._options.security);
60799
+ const secConfig = await extractSecurity(client._options.apiKey);
60800
+ const securityInput = secConfig == null ? {} : { apiKey: secConfig };
60877
60801
  const requestSecurity = resolveGlobalSecurity(securityInput);
60878
60802
  const context = {
60879
60803
  options: client._options,
@@ -60881,7 +60805,7 @@ async function $do22(client, request, options) {
60881
60805
  operationID: "getTenantToken",
60882
60806
  oAuth2Scopes: null,
60883
60807
  resolvedSecurity: requestSecurity,
60884
- securitySource: client._options.security,
60808
+ securitySource: client._options.apiKey,
60885
60809
  retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
60886
60810
  retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
60887
60811
  };
@@ -60901,7 +60825,7 @@ async function $do22(client, request, options) {
60901
60825
  const req = requestRes.value;
60902
60826
  const doResult = await client._do(req, {
60903
60827
  context,
60904
- errorCodes: ["404", "4XX", "5XX"],
60828
+ errorCodes: ["401", "404", "4XX", "500", "5XX"],
60905
60829
  retryConfig: context.retryConfig,
60906
60830
  retryCodes: context.retryCodes
60907
60831
  });
@@ -60909,7 +60833,10 @@ async function $do22(client, request, options) {
60909
60833
  return [doResult, { status: "request-error", request: req }];
60910
60834
  }
60911
60835
  const response = doResult.value;
60912
- const [result] = await match(json(200, TenantToken$inboundSchema), fail([404, "4XX"]), fail("5XX"))(response, req);
60836
+ const responseFields = {
60837
+ HttpMeta: { Response: response, Request: req }
60838
+ };
60839
+ const [result] = await match(json(200, TenantToken$inboundSchema), jsonErr(401, UnauthorizedError$inboundSchema), jsonErr(404, NotFoundError$inboundSchema), jsonErr(500, InternalServerError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
60913
60840
  if (!result.ok) {
60914
60841
  return [result, { status: "complete", request: req, response }];
60915
60842
  }
@@ -60923,6 +60850,7 @@ var init_tenantsGetToken = __esm(() => {
60923
60850
  init_security();
60924
60851
  init_url();
60925
60852
  init_components();
60853
+ init_errors4();
60926
60854
  init_operations();
60927
60855
  init_async();
60928
60856
  });
@@ -60930,20 +60858,20 @@ var init_tenantsGetToken = __esm(() => {
60930
60858
  // src/mcp-server/tools/tenantsGetToken.ts
60931
60859
  var args20, tool$tenantsGetToken;
60932
60860
  var init_tenantsGetToken2 = __esm(() => {
60861
+ init_v3();
60933
60862
  init_tenantsGetToken();
60934
- init_operations();
60935
60863
  init_tools();
60936
60864
  args20 = {
60937
- request: GetTenantTokenRequest$inboundSchema
60865
+ tenantId: stringType()
60938
60866
  };
60939
60867
  tool$tenantsGetToken = {
60940
60868
  name: "tenants-get-token",
60941
60869
  description: `Get Tenant JWT Token
60942
60870
 
60943
- Returns a JWT token scoped to the tenant for safe browser API calls.`,
60871
+ Returns a JWT token scoped to the tenant for safe browser API calls. Requires Admin API Key.`,
60944
60872
  args: args20,
60945
60873
  tool: async (client, args21, ctx) => {
60946
- const [result, apiCall] = await tenantsGetToken(client, args21.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
60874
+ const [result, apiCall] = await tenantsGetToken(client, args21.tenantId, { fetchOptions: { signal: ctx.signal } }).$inspect();
60947
60875
  if (!result.ok) {
60948
60876
  return {
60949
60877
  content: [{ type: "text", text: result.error.message }],
@@ -60957,11 +60885,17 @@ Returns a JWT token scoped to the tenant for safe browser API calls.`,
60957
60885
  });
60958
60886
 
60959
60887
  // src/funcs/tenantsListTenants.ts
60960
- function tenantsListTenants(client, request, options) {
60961
- return new APIPromise($do23(client, request, options));
60888
+ function tenantsListTenants(client, limit, dir, next, prev, options) {
60889
+ return new APIPromise($do23(client, limit, dir, next, prev, options));
60962
60890
  }
60963
- async function $do23(client, request, options) {
60964
- const parsed = safeParse4(request, (value) => ListTenantsRequest$outboundSchema.parse(value), "Input validation failed");
60891
+ async function $do23(client, limit, dir, next, prev, options) {
60892
+ const input = {
60893
+ limit,
60894
+ dir,
60895
+ next,
60896
+ prev
60897
+ };
60898
+ const parsed = safeParse4(input, (value) => ListTenantsRequest$outboundSchema.parse(value), "Input validation failed");
60965
60899
  if (!parsed.ok) {
60966
60900
  return [parsed, { status: "invalid" }];
60967
60901
  }
@@ -60969,18 +60903,16 @@ async function $do23(client, request, options) {
60969
60903
  const body = null;
60970
60904
  const path = pathToFunc("/tenants")();
60971
60905
  const query = encodeFormQuery({
60972
- "created_at[gte]": payload["created_at[gte]"],
60973
- "created_at[lte]": payload["created_at[lte]"],
60974
60906
  dir: payload.dir,
60975
60907
  limit: payload.limit,
60976
60908
  next: payload.next,
60977
- order_by: payload.order_by,
60978
60909
  prev: payload.prev
60979
60910
  });
60980
60911
  const headers = new Headers(compactMap({
60981
60912
  Accept: "application/json"
60982
60913
  }));
60983
- const securityInput = await extractSecurity(client._options.security);
60914
+ const secConfig = await extractSecurity(client._options.apiKey);
60915
+ const securityInput = secConfig == null ? {} : { apiKey: secConfig };
60984
60916
  const requestSecurity = resolveGlobalSecurity(securityInput);
60985
60917
  const context = {
60986
60918
  options: client._options,
@@ -60988,7 +60920,7 @@ async function $do23(client, request, options) {
60988
60920
  operationID: "listTenants",
60989
60921
  oAuth2Scopes: null,
60990
60922
  resolvedSecurity: requestSecurity,
60991
- securitySource: client._options.security,
60923
+ securitySource: client._options.apiKey,
60992
60924
  retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
60993
60925
  retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
60994
60926
  };
@@ -61009,7 +60941,7 @@ async function $do23(client, request, options) {
61009
60941
  const req = requestRes.value;
61010
60942
  const doResult = await client._do(req, {
61011
60943
  context,
61012
- errorCodes: ["400", "401", "4XX", "501", "5XX"],
60944
+ errorCodes: ["400", "401", "4XX", "500", "501", "5XX"],
61013
60945
  retryConfig: context.retryConfig,
61014
60946
  retryCodes: context.retryCodes
61015
60947
  });
@@ -61020,7 +60952,7 @@ async function $do23(client, request, options) {
61020
60952
  const responseFields = {
61021
60953
  HttpMeta: { Response: response, Request: req }
61022
60954
  };
61023
- const [result] = await match(json(200, TenantPaginatedResult$inboundSchema), jsonErr(400, ListTenantsBadRequestError$inboundSchema), jsonErr(501, NotImplementedError$inboundSchema), fail([401, "4XX"]), fail("5XX"))(response, req, { extraFields: responseFields });
60955
+ const [result] = await match(json(200, TenantPaginatedResult$inboundSchema), jsonErr(400, BadRequestError$inboundSchema), jsonErr(401, UnauthorizedError$inboundSchema), jsonErr(500, InternalServerError$inboundSchema), jsonErr(501, NotImplementedError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
61024
60956
  if (!result.ok) {
61025
60957
  return [result, { status: "complete", request: req, response }];
61026
60958
  }
@@ -61042,11 +60974,15 @@ var init_tenantsListTenants = __esm(() => {
61042
60974
  // src/mcp-server/tools/tenantsListTenants.ts
61043
60975
  var args21, tool$tenantsListTenants;
61044
60976
  var init_tenantsListTenants2 = __esm(() => {
60977
+ init_v3();
61045
60978
  init_tenantsListTenants();
61046
60979
  init_operations();
61047
60980
  init_tools();
61048
60981
  args21 = {
61049
- request: ListTenantsRequest$inboundSchema
60982
+ limit: numberType().int().default(20),
60983
+ dir: ListTenantsDir$inboundSchema.default("desc"),
60984
+ next: stringType().optional(),
60985
+ prev: stringType().optional()
61050
60986
  };
61051
60987
  tool$tenantsListTenants = {
61052
60988
  name: "tenants-list-tenants",
@@ -61057,12 +60993,11 @@ List all tenants with cursor-based pagination.
61057
60993
  **Requirements:** This endpoint requires Redis with RediSearch module (e.g., \`redis/redis-stack-server\`).
61058
60994
  If RediSearch is not available, this endpoint returns \`501 Not Implemented\`.
61059
60995
 
61060
- The response includes lightweight tenant objects without computed fields like \`destinations_count\` and \`topics\`.
61061
- Use \`GET /tenants/{tenant_id}\` to retrieve full tenant details including these fields.
60996
+ When authenticated with a Tenant JWT, returns only the authenticated tenant. Pagination is not used in this case.
61062
60997
  `,
61063
60998
  args: args21,
61064
60999
  tool: async (client, args22, ctx) => {
61065
- const [result, apiCall] = await tenantsListTenants(client, args22.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
61000
+ const [result, apiCall] = await tenantsListTenants(client, args22.limit, args22.dir, args22.next, args22.prev, { fetchOptions: { signal: ctx.signal } }).$inspect();
61066
61001
  if (!result.ok) {
61067
61002
  return {
61068
61003
  content: [{ type: "text", text: result.error.message }],
@@ -61076,25 +61011,33 @@ Use \`GET /tenants/{tenant_id}\` to retrieve full tenant details including these
61076
61011
  });
61077
61012
 
61078
61013
  // src/funcs/tenantsUpsert.ts
61079
- function tenantsUpsert(client, request, options) {
61080
- return new APIPromise($do24(client, request, options));
61014
+ function tenantsUpsert(client, tenantId, params, options) {
61015
+ return new APIPromise($do24(client, tenantId, params, options));
61081
61016
  }
61082
- async function $do24(client, request, options) {
61083
- const parsed = safeParse4(request, (value) => UpsertTenantRequest$outboundSchema.parse(value), "Input validation failed");
61017
+ async function $do24(client, tenantId, params, options) {
61018
+ const input = {
61019
+ tenantId,
61020
+ params
61021
+ };
61022
+ const parsed = safeParse4(input, (value) => UpsertTenantRequest$outboundSchema.parse(value), "Input validation failed");
61084
61023
  if (!parsed.ok) {
61085
61024
  return [parsed, { status: "invalid" }];
61086
61025
  }
61087
61026
  const payload = parsed.value;
61088
61027
  const body = encodeJSON("body", payload.params, { explode: true });
61089
61028
  const pathParams = {
61090
- tenant_id: encodeSimple("tenant_id", payload.tenant_id ?? client._options.tenantId, { explode: false, charEncoding: "percent" })
61029
+ tenant_id: encodeSimple("tenant_id", payload.tenant_id, {
61030
+ explode: false,
61031
+ charEncoding: "percent"
61032
+ })
61091
61033
  };
61092
61034
  const path = pathToFunc("/tenants/{tenant_id}")(pathParams);
61093
61035
  const headers = new Headers(compactMap({
61094
61036
  "Content-Type": "application/json",
61095
61037
  Accept: "application/json"
61096
61038
  }));
61097
- const securityInput = await extractSecurity(client._options.security);
61039
+ const secConfig = await extractSecurity(client._options.apiKey);
61040
+ const securityInput = secConfig == null ? {} : { apiKey: secConfig };
61098
61041
  const requestSecurity = resolveGlobalSecurity(securityInput);
61099
61042
  const context = {
61100
61043
  options: client._options,
@@ -61102,7 +61045,7 @@ async function $do24(client, request, options) {
61102
61045
  operationID: "upsertTenant",
61103
61046
  oAuth2Scopes: null,
61104
61047
  resolvedSecurity: requestSecurity,
61105
- securitySource: client._options.security,
61048
+ securitySource: client._options.apiKey,
61106
61049
  retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
61107
61050
  retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
61108
61051
  };
@@ -61122,7 +61065,7 @@ async function $do24(client, request, options) {
61122
61065
  const req = requestRes.value;
61123
61066
  const doResult = await client._do(req, {
61124
61067
  context,
61125
- errorCodes: ["4XX", "5XX"],
61068
+ errorCodes: ["401", "422", "4XX", "500", "5XX"],
61126
61069
  retryConfig: context.retryConfig,
61127
61070
  retryCodes: context.retryCodes
61128
61071
  });
@@ -61130,7 +61073,10 @@ async function $do24(client, request, options) {
61130
61073
  return [doResult, { status: "request-error", request: req }];
61131
61074
  }
61132
61075
  const response = doResult.value;
61133
- const [result] = await match(json([200, 201], Tenant$inboundSchema), fail("4XX"), fail("5XX"))(response, req);
61076
+ const responseFields = {
61077
+ HttpMeta: { Response: response, Request: req }
61078
+ };
61079
+ const [result] = await match(json([200, 201], Tenant$inboundSchema), jsonErr(401, UnauthorizedError$inboundSchema), jsonErr(422, APIErrorResponse$inboundSchema), jsonErr(500, InternalServerError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
61134
61080
  if (!result.ok) {
61135
61081
  return [result, { status: "complete", request: req, response }];
61136
61082
  }
@@ -61144,6 +61090,7 @@ var init_tenantsUpsert = __esm(() => {
61144
61090
  init_security();
61145
61091
  init_url();
61146
61092
  init_components();
61093
+ init_errors4();
61147
61094
  init_operations();
61148
61095
  init_async();
61149
61096
  });
@@ -61151,11 +61098,13 @@ var init_tenantsUpsert = __esm(() => {
61151
61098
  // src/mcp-server/tools/tenantsUpsert.ts
61152
61099
  var args22, tool$tenantsUpsert;
61153
61100
  var init_tenantsUpsert2 = __esm(() => {
61101
+ init_v3();
61154
61102
  init_tenantsUpsert();
61155
- init_operations();
61103
+ init_components();
61156
61104
  init_tools();
61157
61105
  args22 = {
61158
- request: UpsertTenantRequest$inboundSchema
61106
+ tenantId: stringType(),
61107
+ params: TenantUpsert$inboundSchema.optional()
61159
61108
  };
61160
61109
  tool$tenantsUpsert = {
61161
61110
  name: "tenants-upsert",
@@ -61164,7 +61113,7 @@ var init_tenantsUpsert2 = __esm(() => {
61164
61113
  Idempotently creates or updates a tenant. Required before associating destinations.`,
61165
61114
  args: args22,
61166
61115
  tool: async (client, args23, ctx) => {
61167
- const [result, apiCall] = await tenantsUpsert(client, args23.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
61116
+ const [result, apiCall] = await tenantsUpsert(client, args23.tenantId, args23.params, { fetchOptions: { signal: ctx.signal } }).$inspect();
61168
61117
  if (!result.ok) {
61169
61118
  return {
61170
61119
  content: [{ type: "text", text: result.error.message }],
@@ -61186,7 +61135,8 @@ async function $do25(client, options) {
61186
61135
  const headers = new Headers(compactMap({
61187
61136
  Accept: "application/json"
61188
61137
  }));
61189
- const securityInput = await extractSecurity(client._options.security);
61138
+ const secConfig = await extractSecurity(client._options.apiKey);
61139
+ const securityInput = secConfig == null ? {} : { apiKey: secConfig };
61190
61140
  const requestSecurity = resolveGlobalSecurity(securityInput);
61191
61141
  const context = {
61192
61142
  options: client._options,
@@ -61194,7 +61144,7 @@ async function $do25(client, options) {
61194
61144
  operationID: "listTopics",
61195
61145
  oAuth2Scopes: null,
61196
61146
  resolvedSecurity: requestSecurity,
61197
- securitySource: client._options.security,
61147
+ securitySource: client._options.apiKey,
61198
61148
  retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
61199
61149
  retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
61200
61150
  };
@@ -61250,7 +61200,7 @@ async function $do25(client, options) {
61250
61200
  const responseFields = {
61251
61201
  HttpMeta: { Response: response, Request: req }
61252
61202
  };
61253
- const [result] = await match(json(200, arrayType(stringType())), jsonErr(404, NotFoundError$inboundSchema), jsonErr([403, 407], UnauthorizedError$inboundSchema), jsonErr(408, TimeoutError$inboundSchema), jsonErr(429, RateLimitedError$inboundSchema), jsonErr([400, 413, 414, 415, 422, 431], BadRequestError$inboundSchema), jsonErr(504, TimeoutError$inboundSchema), jsonErr([501, 505], NotFoundError$inboundSchema), jsonErr([500, 502, 503, 506, 507, 508], InternalServerError$inboundSchema), jsonErr(510, BadRequestError$inboundSchema), jsonErr(511, UnauthorizedError$inboundSchema), fail([401, "4XX"]), fail("5XX"))(response, req, { extraFields: responseFields });
61203
+ const [result] = await match(json(200, arrayType(stringType())), jsonErr(404, NotFoundError$inboundSchema), jsonErr([401, 403, 407], UnauthorizedError$inboundSchema), jsonErr(408, TimeoutError$inboundSchema), jsonErr(429, RateLimitedError$inboundSchema), jsonErr([400, 413, 414, 415, 422, 431], BadRequestError$inboundSchema), jsonErr(504, TimeoutError$inboundSchema), jsonErr([501, 505], NotFoundError$inboundSchema), jsonErr([500, 502, 503, 506, 507, 508], InternalServerError$inboundSchema), jsonErr(510, BadRequestError$inboundSchema), jsonErr(511, UnauthorizedError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
61254
61204
  if (!result.ok) {
61255
61205
  return [result, { status: "complete", request: req, response }];
61256
61206
  }
@@ -61294,11 +61244,10 @@ Returns a list of available event topics configured in the Outpost instance.`,
61294
61244
  function createMCPServer(deps) {
61295
61245
  const server = new McpServer({
61296
61246
  name: "Outpost",
61297
- version: "0.7.0"
61247
+ version: "0.8.0"
61298
61248
  });
61299
61249
  const client = new OutpostCore({
61300
- security: deps.security,
61301
- tenantId: deps.tenantId,
61250
+ apiKey: deps.apiKey,
61302
61251
  serverURL: deps.serverURL,
61303
61252
  serverIdx: deps.serverIdx
61304
61253
  });
@@ -61331,8 +61280,8 @@ function createMCPServer(deps) {
61331
61280
  tool(tool$destinationsListAttempts);
61332
61281
  tool(tool$destinationsGetAttempt);
61333
61282
  tool(tool$publishEvent);
61334
- tool(tool$schemasListDestinationTypesJwt);
61335
- tool(tool$schemasGetDestinationTypeJwt);
61283
+ tool(tool$schemasListDestinationTypes);
61284
+ tool(tool$schemasGetDestinationType);
61336
61285
  tool(tool$topicsList);
61337
61286
  return server;
61338
61287
  }
@@ -61357,8 +61306,8 @@ var init_server2 = __esm(() => {
61357
61306
  init_eventsList2();
61358
61307
  init_healthCheck2();
61359
61308
  init_publishEvent2();
61360
- init_schemasGetDestinationTypeJwt2();
61361
- init_schemasListDestinationTypesJwt2();
61309
+ init_schemasGetDestinationType2();
61310
+ init_schemasListDestinationTypes2();
61362
61311
  init_tenantsDelete2();
61363
61312
  init_tenantsGet2();
61364
61313
  init_tenantsGetPortalUrl2();
@@ -61394,11 +61343,7 @@ async function startStdio(flags) {
61394
61343
  const server = createMCPServer({
61395
61344
  logger,
61396
61345
  allowedTools: flags.tool,
61397
- security: {
61398
- adminApiKey: flags["admin-api-key"] ?? "",
61399
- tenantJwt: flags["tenant-jwt"] ?? ""
61400
- },
61401
- tenantId: flags["tenant-id"],
61346
+ apiKey: flags["api-key"] ?? "",
61402
61347
  serverURL: flags["server-url"],
61403
61348
  serverIdx: flags["server-index"]
61404
61349
  });
@@ -61416,11 +61361,7 @@ async function startSSE(flags) {
61416
61361
  const mcpServer = createMCPServer({
61417
61362
  logger,
61418
61363
  allowedTools: flags.tool,
61419
- security: {
61420
- adminApiKey: flags["admin-api-key"] ?? "",
61421
- tenantJwt: flags["tenant-jwt"] ?? ""
61422
- },
61423
- tenantId: flags["tenant-id"],
61364
+ apiKey: flags["api-key"] ?? "",
61424
61365
  serverURL: flags["server-url"],
61425
61366
  serverIdx: flags["server-index"]
61426
61367
  });
@@ -62481,25 +62422,9 @@ var startCommand = on({
62481
62422
  return stringType().parse(value);
62482
62423
  }
62483
62424
  },
62484
- "admin-api-key": {
62485
- kind: "parsed",
62486
- brief: "Sets the adminApiKey auth field for the API",
62487
- optional: true,
62488
- parse: (value) => {
62489
- return stringType().parse(value);
62490
- }
62491
- },
62492
- "tenant-jwt": {
62493
- kind: "parsed",
62494
- brief: "Sets the tenantJwt auth field for the API",
62495
- optional: true,
62496
- parse: (value) => {
62497
- return stringType().parse(value);
62498
- }
62499
- },
62500
- "tenant-id": {
62425
+ "api-key": {
62501
62426
  kind: "parsed",
62502
- brief: "Allows setting the tenantId parameter for all supported operations",
62427
+ brief: "Sets the apiKey auth field for the API",
62503
62428
  optional: true,
62504
62429
  parse: (value) => {
62505
62430
  return stringType().parse(value);
@@ -62564,7 +62489,7 @@ var routes = an({
62564
62489
  var app = He(routes, {
62565
62490
  name: "mcp",
62566
62491
  versionInfo: {
62567
- currentVersion: "0.7.0"
62492
+ currentVersion: "0.8.0"
62568
62493
  }
62569
62494
  });
62570
62495
  zt(app, process4.argv.slice(2), buildContext(process4));
@@ -62572,5 +62497,5 @@ export {
62572
62497
  app
62573
62498
  };
62574
62499
 
62575
- //# debugId=3013E21FDEDBF04464756E2164756E21
62500
+ //# debugId=A9161213084EAF8664756E2164756E21
62576
62501
  //# sourceMappingURL=mcp-server.js.map