@hookdeck/outpost-sdk 0.7.0 → 0.9.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 (749) hide show
  1. package/README.md +40 -55
  2. package/bin/mcp-server.js +1339 -1143
  3. package/bin/mcp-server.js.map +84 -82
  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 +8 -5
  9. package/dist/commonjs/funcs/attemptsList.d.ts.map +1 -1
  10. package/dist/commonjs/funcs/attemptsList.js +53 -15
  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 +23 -11
  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 +4 -2
  45. package/dist/commonjs/funcs/destinationsListAttempts.d.ts.map +1 -1
  46. package/dist/commonjs/funcs/destinationsListAttempts.js +49 -11
  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 +24 -11
  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 +8 -5
  57. package/dist/commonjs/funcs/eventsList.d.ts.map +1 -1
  58. package/dist/commonjs/funcs/eventsList.js +52 -15
  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/{esm/funcs/tenantsListTenants.d.ts → commonjs/funcs/tenantsList.d.ts} +6 -5
  87. package/dist/commonjs/funcs/tenantsList.d.ts.map +1 -0
  88. package/dist/commonjs/funcs/{tenantsListTenants.js → tenantsList.js} +50 -18
  89. package/dist/commonjs/funcs/tenantsList.js.map +1 -0
  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 +23 -11
  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 +8 -9
  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 +6 -5
  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/destinationsListAttempts.js +1 -1
  157. package/dist/commonjs/mcp-server/tools/destinationsListAttempts.js.map +1 -1
  158. package/dist/commonjs/mcp-server/tools/destinationsUpdate.d.ts +5 -2
  159. package/dist/commonjs/mcp-server/tools/destinationsUpdate.d.ts.map +1 -1
  160. package/dist/commonjs/mcp-server/tools/destinationsUpdate.js +6 -3
  161. package/dist/commonjs/mcp-server/tools/destinationsUpdate.js.map +1 -1
  162. package/dist/commonjs/mcp-server/tools/eventsGet.d.ts +2 -2
  163. package/dist/commonjs/mcp-server/tools/eventsGet.d.ts.map +1 -1
  164. package/dist/commonjs/mcp-server/tools/eventsGet.js +3 -3
  165. package/dist/commonjs/mcp-server/tools/eventsGet.js.map +1 -1
  166. package/dist/commonjs/mcp-server/tools/eventsList.d.ts +1 -1
  167. package/dist/commonjs/mcp-server/tools/eventsList.d.ts.map +1 -1
  168. package/dist/commonjs/mcp-server/tools/eventsList.js +6 -5
  169. package/dist/commonjs/mcp-server/tools/eventsList.js.map +1 -1
  170. package/dist/commonjs/mcp-server/tools/schemasGetDestinationType.d.ts +16 -0
  171. package/dist/commonjs/mcp-server/tools/schemasGetDestinationType.d.ts.map +1 -0
  172. package/dist/commonjs/mcp-server/tools/{schemasGetDestinationTypeJwt.js → schemasGetDestinationType.js} +7 -7
  173. package/dist/commonjs/mcp-server/tools/schemasGetDestinationType.js.map +1 -0
  174. package/dist/commonjs/mcp-server/tools/schemasListDestinationTypes.d.ts +3 -0
  175. package/dist/commonjs/mcp-server/tools/schemasListDestinationTypes.d.ts.map +1 -0
  176. package/dist/commonjs/mcp-server/tools/{schemasListDestinationTypesJwt.js → schemasListDestinationTypes.js} +6 -6
  177. package/dist/commonjs/mcp-server/tools/schemasListDestinationTypes.js.map +1 -0
  178. package/dist/commonjs/mcp-server/tools/tenantsDelete.d.ts +2 -2
  179. package/dist/commonjs/mcp-server/tools/tenantsDelete.d.ts.map +1 -1
  180. package/dist/commonjs/mcp-server/tools/tenantsDelete.js +3 -3
  181. package/dist/commonjs/mcp-server/tools/tenantsDelete.js.map +1 -1
  182. package/dist/commonjs/mcp-server/tools/tenantsGet.d.ts +2 -2
  183. package/dist/commonjs/mcp-server/tools/tenantsGet.d.ts.map +1 -1
  184. package/dist/commonjs/mcp-server/tools/tenantsGet.js +3 -3
  185. package/dist/commonjs/mcp-server/tools/tenantsGet.js.map +1 -1
  186. package/dist/commonjs/mcp-server/tools/tenantsGetPortalUrl.d.ts +6 -2
  187. package/dist/commonjs/mcp-server/tools/tenantsGetPortalUrl.d.ts.map +1 -1
  188. package/dist/commonjs/mcp-server/tools/tenantsGetPortalUrl.js +5 -3
  189. package/dist/commonjs/mcp-server/tools/tenantsGetPortalUrl.js.map +1 -1
  190. package/dist/commonjs/mcp-server/tools/tenantsGetToken.d.ts +2 -2
  191. package/dist/commonjs/mcp-server/tools/tenantsGetToken.d.ts.map +1 -1
  192. package/dist/commonjs/mcp-server/tools/tenantsGetToken.js +4 -4
  193. package/dist/commonjs/mcp-server/tools/tenantsGetToken.js.map +1 -1
  194. package/dist/commonjs/mcp-server/tools/{tenantsListTenants.d.ts → tenantsList.d.ts} +2 -2
  195. package/dist/commonjs/mcp-server/tools/tenantsList.d.ts.map +1 -0
  196. package/dist/commonjs/mcp-server/tools/{tenantsListTenants.js → tenantsList.js} +8 -9
  197. package/dist/commonjs/mcp-server/tools/tenantsList.js.map +1 -0
  198. package/dist/commonjs/mcp-server/tools/tenantsUpsert.d.ts +4 -2
  199. package/dist/commonjs/mcp-server/tools/tenantsUpsert.d.ts.map +1 -1
  200. package/dist/commonjs/mcp-server/tools/tenantsUpsert.js +5 -3
  201. package/dist/commonjs/mcp-server/tools/tenantsUpsert.js.map +1 -1
  202. package/dist/commonjs/models/components/event.d.ts +0 -5
  203. package/dist/commonjs/models/components/event.d.ts.map +1 -1
  204. package/dist/commonjs/models/components/event.js +0 -4
  205. package/dist/commonjs/models/components/event.js.map +1 -1
  206. package/dist/commonjs/models/components/security.d.ts +2 -4
  207. package/dist/commonjs/models/components/security.d.ts.map +1 -1
  208. package/dist/commonjs/models/components/security.js +2 -15
  209. package/dist/commonjs/models/components/security.js.map +1 -1
  210. package/dist/commonjs/models/errors/listtenants.d.ts +0 -27
  211. package/dist/commonjs/models/errors/listtenants.d.ts.map +1 -1
  212. package/dist/commonjs/models/errors/listtenants.js +1 -37
  213. package/dist/commonjs/models/errors/listtenants.js.map +1 -1
  214. package/dist/commonjs/models/operations/createtenantdestination.d.ts +4 -17
  215. package/dist/commonjs/models/operations/createtenantdestination.d.ts.map +1 -1
  216. package/dist/commonjs/models/operations/createtenantdestination.js +5 -29
  217. package/dist/commonjs/models/operations/createtenantdestination.js.map +1 -1
  218. package/dist/commonjs/models/operations/deletetenant.d.ts +2 -15
  219. package/dist/commonjs/models/operations/deletetenant.d.ts.map +1 -1
  220. package/dist/commonjs/models/operations/deletetenant.js +3 -27
  221. package/dist/commonjs/models/operations/deletetenant.js.map +1 -1
  222. package/dist/commonjs/models/operations/deletetenantdestination.d.ts +2 -15
  223. package/dist/commonjs/models/operations/deletetenantdestination.d.ts.map +1 -1
  224. package/dist/commonjs/models/operations/deletetenantdestination.js +3 -27
  225. package/dist/commonjs/models/operations/deletetenantdestination.js.map +1 -1
  226. package/dist/commonjs/models/operations/disabletenantdestination.d.ts +2 -15
  227. package/dist/commonjs/models/operations/disabletenantdestination.d.ts.map +1 -1
  228. package/dist/commonjs/models/operations/disabletenantdestination.js +3 -27
  229. package/dist/commonjs/models/operations/disabletenantdestination.js.map +1 -1
  230. package/dist/commonjs/models/operations/enabletenantdestination.d.ts +2 -15
  231. package/dist/commonjs/models/operations/enabletenantdestination.d.ts.map +1 -1
  232. package/dist/commonjs/models/operations/enabletenantdestination.js +3 -27
  233. package/dist/commonjs/models/operations/enabletenantdestination.js.map +1 -1
  234. package/dist/commonjs/models/operations/getattempt.d.ts +2 -2
  235. package/dist/commonjs/models/operations/getdestinationtypeschema.d.ts +2 -0
  236. package/dist/commonjs/models/operations/getdestinationtypeschema.d.ts.map +1 -1
  237. package/dist/commonjs/models/operations/getdestinationtypeschema.js +2 -0
  238. package/dist/commonjs/models/operations/getdestinationtypeschema.js.map +1 -1
  239. package/dist/commonjs/models/operations/gettenant.d.ts +2 -15
  240. package/dist/commonjs/models/operations/gettenant.d.ts.map +1 -1
  241. package/dist/commonjs/models/operations/gettenant.js +3 -27
  242. package/dist/commonjs/models/operations/gettenant.js.map +1 -1
  243. package/dist/commonjs/models/operations/gettenantdestination.d.ts +2 -15
  244. package/dist/commonjs/models/operations/gettenantdestination.d.ts.map +1 -1
  245. package/dist/commonjs/models/operations/gettenantdestination.js +3 -27
  246. package/dist/commonjs/models/operations/gettenantdestination.js.map +1 -1
  247. package/dist/commonjs/models/operations/gettenantdestinationattempt.d.ts +4 -17
  248. package/dist/commonjs/models/operations/gettenantdestinationattempt.d.ts.map +1 -1
  249. package/dist/commonjs/models/operations/gettenantdestinationattempt.js +3 -27
  250. package/dist/commonjs/models/operations/gettenantdestinationattempt.js.map +1 -1
  251. package/dist/commonjs/models/operations/gettenantportalurl.d.ts +2 -15
  252. package/dist/commonjs/models/operations/gettenantportalurl.d.ts.map +1 -1
  253. package/dist/commonjs/models/operations/gettenantportalurl.js +3 -27
  254. package/dist/commonjs/models/operations/gettenantportalurl.js.map +1 -1
  255. package/dist/commonjs/models/operations/gettenanttoken.d.ts +2 -15
  256. package/dist/commonjs/models/operations/gettenanttoken.d.ts.map +1 -1
  257. package/dist/commonjs/models/operations/gettenanttoken.js +3 -27
  258. package/dist/commonjs/models/operations/gettenanttoken.js.map +1 -1
  259. package/dist/commonjs/models/operations/index.d.ts +2 -2
  260. package/dist/commonjs/models/operations/index.d.ts.map +1 -1
  261. package/dist/commonjs/models/operations/index.js +2 -2
  262. package/dist/commonjs/models/operations/index.js.map +1 -1
  263. package/dist/commonjs/models/operations/listattempts.d.ts +227 -0
  264. package/dist/commonjs/models/operations/listattempts.d.ts.map +1 -0
  265. package/dist/commonjs/models/operations/listattempts.js +230 -0
  266. package/dist/commonjs/models/operations/listattempts.js.map +1 -0
  267. package/dist/commonjs/models/operations/listevents.d.ts +163 -0
  268. package/dist/commonjs/models/operations/listevents.d.ts.map +1 -0
  269. package/dist/commonjs/models/operations/listevents.js +185 -0
  270. package/dist/commonjs/models/operations/listevents.js.map +1 -0
  271. package/dist/commonjs/models/operations/listtenantdestinationattempts.d.ts +42 -19
  272. package/dist/commonjs/models/operations/listtenantdestinationattempts.d.ts.map +1 -1
  273. package/dist/commonjs/models/operations/listtenantdestinationattempts.js +48 -25
  274. package/dist/commonjs/models/operations/listtenantdestinationattempts.js.map +1 -1
  275. package/dist/commonjs/models/operations/listtenantdestinations.d.ts +6 -19
  276. package/dist/commonjs/models/operations/listtenantdestinations.d.ts.map +1 -1
  277. package/dist/commonjs/models/operations/listtenantdestinations.js +3 -27
  278. package/dist/commonjs/models/operations/listtenantdestinations.js.map +1 -1
  279. package/dist/commonjs/models/operations/listtenants.d.ts +27 -25
  280. package/dist/commonjs/models/operations/listtenants.d.ts.map +1 -1
  281. package/dist/commonjs/models/operations/listtenants.js +38 -27
  282. package/dist/commonjs/models/operations/listtenants.js.map +1 -1
  283. package/dist/commonjs/models/operations/updatetenantdestination.d.ts +4 -17
  284. package/dist/commonjs/models/operations/updatetenantdestination.d.ts.map +1 -1
  285. package/dist/commonjs/models/operations/updatetenantdestination.js +5 -29
  286. package/dist/commonjs/models/operations/updatetenantdestination.js.map +1 -1
  287. package/dist/commonjs/models/operations/upserttenant.d.ts +4 -17
  288. package/dist/commonjs/models/operations/upserttenant.d.ts.map +1 -1
  289. package/dist/commonjs/models/operations/upserttenant.js +5 -29
  290. package/dist/commonjs/models/operations/upserttenant.js.map +1 -1
  291. package/dist/commonjs/sdk/attempts.d.ts +9 -5
  292. package/dist/commonjs/sdk/attempts.d.ts.map +1 -1
  293. package/dist/commonjs/sdk/attempts.js +8 -6
  294. package/dist/commonjs/sdk/attempts.js.map +1 -1
  295. package/dist/commonjs/sdk/destinations.d.ts +12 -9
  296. package/dist/commonjs/sdk/destinations.d.ts.map +1 -1
  297. package/dist/commonjs/sdk/destinations.js +18 -17
  298. package/dist/commonjs/sdk/destinations.js.map +1 -1
  299. package/dist/commonjs/sdk/events.d.ts +9 -5
  300. package/dist/commonjs/sdk/events.d.ts.map +1 -1
  301. package/dist/commonjs/sdk/events.js +8 -6
  302. package/dist/commonjs/sdk/events.js.map +1 -1
  303. package/dist/commonjs/sdk/schemas.d.ts +2 -2
  304. package/dist/commonjs/sdk/schemas.d.ts.map +1 -1
  305. package/dist/commonjs/sdk/schemas.js +6 -6
  306. package/dist/commonjs/sdk/schemas.js.map +1 -1
  307. package/dist/commonjs/sdk/tenants.d.ts +12 -10
  308. package/dist/commonjs/sdk/tenants.d.ts.map +1 -1
  309. package/dist/commonjs/sdk/tenants.js +17 -17
  310. package/dist/commonjs/sdk/tenants.js.map +1 -1
  311. package/dist/esm/funcs/attemptsGet.d.ts +2 -1
  312. package/dist/esm/funcs/attemptsGet.d.ts.map +1 -1
  313. package/dist/esm/funcs/attemptsGet.js +17 -8
  314. package/dist/esm/funcs/attemptsGet.js.map +1 -1
  315. package/dist/esm/funcs/attemptsList.d.ts +8 -5
  316. package/dist/esm/funcs/attemptsList.d.ts.map +1 -1
  317. package/dist/esm/funcs/attemptsList.js +53 -15
  318. package/dist/esm/funcs/attemptsList.js.map +1 -1
  319. package/dist/esm/funcs/attemptsRetry.d.ts +1 -1
  320. package/dist/esm/funcs/attemptsRetry.d.ts.map +1 -1
  321. package/dist/esm/funcs/attemptsRetry.js +5 -4
  322. package/dist/esm/funcs/attemptsRetry.js.map +1 -1
  323. package/dist/esm/funcs/destinationsCreate.d.ts +2 -2
  324. package/dist/esm/funcs/destinationsCreate.d.ts.map +1 -1
  325. package/dist/esm/funcs/destinationsCreate.js +23 -11
  326. package/dist/esm/funcs/destinationsCreate.js.map +1 -1
  327. package/dist/esm/funcs/destinationsDelete.d.ts +2 -2
  328. package/dist/esm/funcs/destinationsDelete.d.ts.map +1 -1
  329. package/dist/esm/funcs/destinationsDelete.js +21 -9
  330. package/dist/esm/funcs/destinationsDelete.js.map +1 -1
  331. package/dist/esm/funcs/destinationsDisable.d.ts +2 -2
  332. package/dist/esm/funcs/destinationsDisable.d.ts.map +1 -1
  333. package/dist/esm/funcs/destinationsDisable.js +21 -9
  334. package/dist/esm/funcs/destinationsDisable.js.map +1 -1
  335. package/dist/esm/funcs/destinationsEnable.d.ts +2 -2
  336. package/dist/esm/funcs/destinationsEnable.d.ts.map +1 -1
  337. package/dist/esm/funcs/destinationsEnable.js +21 -9
  338. package/dist/esm/funcs/destinationsEnable.js.map +1 -1
  339. package/dist/esm/funcs/destinationsGet.d.ts +2 -2
  340. package/dist/esm/funcs/destinationsGet.d.ts.map +1 -1
  341. package/dist/esm/funcs/destinationsGet.js +21 -9
  342. package/dist/esm/funcs/destinationsGet.js.map +1 -1
  343. package/dist/esm/funcs/destinationsGetAttempt.d.ts +2 -1
  344. package/dist/esm/funcs/destinationsGetAttempt.d.ts.map +1 -1
  345. package/dist/esm/funcs/destinationsGetAttempt.js +23 -9
  346. package/dist/esm/funcs/destinationsGetAttempt.js.map +1 -1
  347. package/dist/esm/funcs/destinationsList.d.ts +2 -1
  348. package/dist/esm/funcs/destinationsList.d.ts.map +1 -1
  349. package/dist/esm/funcs/destinationsList.js +22 -9
  350. package/dist/esm/funcs/destinationsList.js.map +1 -1
  351. package/dist/esm/funcs/destinationsListAttempts.d.ts +4 -2
  352. package/dist/esm/funcs/destinationsListAttempts.d.ts.map +1 -1
  353. package/dist/esm/funcs/destinationsListAttempts.js +49 -11
  354. package/dist/esm/funcs/destinationsListAttempts.js.map +1 -1
  355. package/dist/esm/funcs/destinationsUpdate.d.ts +3 -1
  356. package/dist/esm/funcs/destinationsUpdate.d.ts.map +1 -1
  357. package/dist/esm/funcs/destinationsUpdate.js +24 -11
  358. package/dist/esm/funcs/destinationsUpdate.js.map +1 -1
  359. package/dist/esm/funcs/eventsGet.d.ts +2 -2
  360. package/dist/esm/funcs/eventsGet.d.ts.map +1 -1
  361. package/dist/esm/funcs/eventsGet.js +16 -8
  362. package/dist/esm/funcs/eventsGet.js.map +1 -1
  363. package/dist/esm/funcs/eventsList.d.ts +8 -5
  364. package/dist/esm/funcs/eventsList.d.ts.map +1 -1
  365. package/dist/esm/funcs/eventsList.js +52 -15
  366. package/dist/esm/funcs/eventsList.js.map +1 -1
  367. package/dist/esm/funcs/publishEvent.js +4 -4
  368. package/dist/esm/funcs/publishEvent.js.map +1 -1
  369. package/dist/esm/funcs/{schemasGetDestinationTypeJwt.d.ts → schemasGetDestinationType.d.ts} +2 -2
  370. package/dist/esm/funcs/schemasGetDestinationType.d.ts.map +1 -0
  371. package/dist/esm/funcs/{schemasGetDestinationTypeJwt.js → schemasGetDestinationType.js} +12 -8
  372. package/dist/esm/funcs/schemasGetDestinationType.js.map +1 -0
  373. package/dist/esm/funcs/{schemasListDestinationTypesJwt.d.ts → schemasListDestinationTypes.d.ts} +2 -2
  374. package/dist/esm/funcs/schemasListDestinationTypes.d.ts.map +1 -0
  375. package/dist/esm/funcs/{schemasListDestinationTypesJwt.js → schemasListDestinationTypes.js} +6 -5
  376. package/dist/esm/funcs/schemasListDestinationTypes.js.map +1 -0
  377. package/dist/esm/funcs/tenantsDelete.d.ts +2 -2
  378. package/dist/esm/funcs/tenantsDelete.d.ts.map +1 -1
  379. package/dist/esm/funcs/tenantsDelete.js +20 -9
  380. package/dist/esm/funcs/tenantsDelete.js.map +1 -1
  381. package/dist/esm/funcs/tenantsGet.d.ts +2 -2
  382. package/dist/esm/funcs/tenantsGet.d.ts.map +1 -1
  383. package/dist/esm/funcs/tenantsGet.js +20 -9
  384. package/dist/esm/funcs/tenantsGet.js.map +1 -1
  385. package/dist/esm/funcs/tenantsGetPortalUrl.d.ts +3 -2
  386. package/dist/esm/funcs/tenantsGetPortalUrl.d.ts.map +1 -1
  387. package/dist/esm/funcs/tenantsGetPortalUrl.js +22 -10
  388. package/dist/esm/funcs/tenantsGetPortalUrl.js.map +1 -1
  389. package/dist/esm/funcs/tenantsGetToken.d.ts +3 -3
  390. package/dist/esm/funcs/tenantsGetToken.d.ts.map +1 -1
  391. package/dist/esm/funcs/tenantsGetToken.js +21 -10
  392. package/dist/esm/funcs/tenantsGetToken.js.map +1 -1
  393. package/dist/{commonjs/funcs/tenantsListTenants.d.ts → esm/funcs/tenantsList.d.ts} +6 -5
  394. package/dist/esm/funcs/tenantsList.d.ts.map +1 -0
  395. package/dist/esm/funcs/{tenantsListTenants.js → tenantsList.js} +49 -17
  396. package/dist/esm/funcs/tenantsList.js.map +1 -0
  397. package/dist/esm/funcs/tenantsUpsert.d.ts +2 -2
  398. package/dist/esm/funcs/tenantsUpsert.d.ts.map +1 -1
  399. package/dist/esm/funcs/tenantsUpsert.js +23 -11
  400. package/dist/esm/funcs/tenantsUpsert.js.map +1 -1
  401. package/dist/esm/funcs/topicsList.js +4 -3
  402. package/dist/esm/funcs/topicsList.js.map +1 -1
  403. package/dist/esm/lib/config.d.ts +4 -12
  404. package/dist/esm/lib/config.d.ts.map +1 -1
  405. package/dist/esm/lib/config.js +3 -3
  406. package/dist/esm/lib/config.js.map +1 -1
  407. package/dist/esm/lib/matchers.d.ts.map +1 -1
  408. package/dist/esm/lib/matchers.js +0 -1
  409. package/dist/esm/lib/matchers.js.map +1 -1
  410. package/dist/esm/lib/security.d.ts.map +1 -1
  411. package/dist/esm/lib/security.js +2 -9
  412. package/dist/esm/lib/security.js.map +1 -1
  413. package/dist/esm/mcp-server/cli/start/command.d.ts.map +1 -1
  414. package/dist/esm/mcp-server/cli/start/command.js +2 -18
  415. package/dist/esm/mcp-server/cli/start/command.js.map +1 -1
  416. package/dist/esm/mcp-server/cli/start/impl.d.ts +1 -3
  417. package/dist/esm/mcp-server/cli/start/impl.d.ts.map +1 -1
  418. package/dist/esm/mcp-server/cli/start/impl.js +2 -10
  419. package/dist/esm/mcp-server/cli/start/impl.js.map +1 -1
  420. package/dist/esm/mcp-server/mcp-server.js +1 -1
  421. package/dist/esm/mcp-server/server.d.ts +1 -2
  422. package/dist/esm/mcp-server/server.d.ts.map +1 -1
  423. package/dist/esm/mcp-server/server.js +8 -9
  424. package/dist/esm/mcp-server/server.js.map +1 -1
  425. package/dist/esm/mcp-server/shared.js +1 -1
  426. package/dist/esm/mcp-server/shared.js.map +1 -1
  427. package/dist/esm/mcp-server/tools/attemptsGet.d.ts +3 -1
  428. package/dist/esm/mcp-server/tools/attemptsGet.d.ts.map +1 -1
  429. package/dist/esm/mcp-server/tools/attemptsGet.js +4 -2
  430. package/dist/esm/mcp-server/tools/attemptsGet.js.map +1 -1
  431. package/dist/esm/mcp-server/tools/attemptsList.d.ts +1 -1
  432. package/dist/esm/mcp-server/tools/attemptsList.d.ts.map +1 -1
  433. package/dist/esm/mcp-server/tools/attemptsList.js +6 -5
  434. package/dist/esm/mcp-server/tools/attemptsList.js.map +1 -1
  435. package/dist/esm/mcp-server/tools/destinationsCreate.d.ts +4 -2
  436. package/dist/esm/mcp-server/tools/destinationsCreate.d.ts.map +1 -1
  437. package/dist/esm/mcp-server/tools/destinationsCreate.js +5 -3
  438. package/dist/esm/mcp-server/tools/destinationsCreate.js.map +1 -1
  439. package/dist/esm/mcp-server/tools/destinationsDelete.d.ts +3 -2
  440. package/dist/esm/mcp-server/tools/destinationsDelete.d.ts.map +1 -1
  441. package/dist/esm/mcp-server/tools/destinationsDelete.js +4 -3
  442. package/dist/esm/mcp-server/tools/destinationsDelete.js.map +1 -1
  443. package/dist/esm/mcp-server/tools/destinationsDisable.d.ts +3 -2
  444. package/dist/esm/mcp-server/tools/destinationsDisable.d.ts.map +1 -1
  445. package/dist/esm/mcp-server/tools/destinationsDisable.js +4 -3
  446. package/dist/esm/mcp-server/tools/destinationsDisable.js.map +1 -1
  447. package/dist/esm/mcp-server/tools/destinationsEnable.d.ts +3 -2
  448. package/dist/esm/mcp-server/tools/destinationsEnable.d.ts.map +1 -1
  449. package/dist/esm/mcp-server/tools/destinationsEnable.js +4 -3
  450. package/dist/esm/mcp-server/tools/destinationsEnable.js.map +1 -1
  451. package/dist/esm/mcp-server/tools/destinationsGet.d.ts +3 -2
  452. package/dist/esm/mcp-server/tools/destinationsGet.d.ts.map +1 -1
  453. package/dist/esm/mcp-server/tools/destinationsGet.js +4 -3
  454. package/dist/esm/mcp-server/tools/destinationsGet.js.map +1 -1
  455. package/dist/esm/mcp-server/tools/destinationsGetAttempt.d.ts +5 -1
  456. package/dist/esm/mcp-server/tools/destinationsGetAttempt.d.ts.map +1 -1
  457. package/dist/esm/mcp-server/tools/destinationsGetAttempt.js +7 -2
  458. package/dist/esm/mcp-server/tools/destinationsGetAttempt.js.map +1 -1
  459. package/dist/esm/mcp-server/tools/destinationsList.d.ts +4 -1
  460. package/dist/esm/mcp-server/tools/destinationsList.d.ts.map +1 -1
  461. package/dist/esm/mcp-server/tools/destinationsList.js +5 -2
  462. package/dist/esm/mcp-server/tools/destinationsList.js.map +1 -1
  463. package/dist/esm/mcp-server/tools/destinationsListAttempts.js +1 -1
  464. package/dist/esm/mcp-server/tools/destinationsListAttempts.js.map +1 -1
  465. package/dist/esm/mcp-server/tools/destinationsUpdate.d.ts +5 -2
  466. package/dist/esm/mcp-server/tools/destinationsUpdate.d.ts.map +1 -1
  467. package/dist/esm/mcp-server/tools/destinationsUpdate.js +6 -3
  468. package/dist/esm/mcp-server/tools/destinationsUpdate.js.map +1 -1
  469. package/dist/esm/mcp-server/tools/eventsGet.d.ts +2 -2
  470. package/dist/esm/mcp-server/tools/eventsGet.d.ts.map +1 -1
  471. package/dist/esm/mcp-server/tools/eventsGet.js +3 -3
  472. package/dist/esm/mcp-server/tools/eventsGet.js.map +1 -1
  473. package/dist/esm/mcp-server/tools/eventsList.d.ts +1 -1
  474. package/dist/esm/mcp-server/tools/eventsList.d.ts.map +1 -1
  475. package/dist/esm/mcp-server/tools/eventsList.js +6 -5
  476. package/dist/esm/mcp-server/tools/eventsList.js.map +1 -1
  477. package/dist/esm/mcp-server/tools/schemasGetDestinationType.d.ts +16 -0
  478. package/dist/esm/mcp-server/tools/schemasGetDestinationType.d.ts.map +1 -0
  479. package/dist/esm/mcp-server/tools/{schemasGetDestinationTypeJwt.js → schemasGetDestinationType.js} +6 -6
  480. package/dist/esm/mcp-server/tools/schemasGetDestinationType.js.map +1 -0
  481. package/dist/esm/mcp-server/tools/schemasListDestinationTypes.d.ts +3 -0
  482. package/dist/esm/mcp-server/tools/schemasListDestinationTypes.d.ts.map +1 -0
  483. package/dist/esm/mcp-server/tools/{schemasListDestinationTypesJwt.js → schemasListDestinationTypes.js} +5 -5
  484. package/dist/esm/mcp-server/tools/schemasListDestinationTypes.js.map +1 -0
  485. package/dist/esm/mcp-server/tools/tenantsDelete.d.ts +2 -2
  486. package/dist/esm/mcp-server/tools/tenantsDelete.d.ts.map +1 -1
  487. package/dist/esm/mcp-server/tools/tenantsDelete.js +3 -3
  488. package/dist/esm/mcp-server/tools/tenantsDelete.js.map +1 -1
  489. package/dist/esm/mcp-server/tools/tenantsGet.d.ts +2 -2
  490. package/dist/esm/mcp-server/tools/tenantsGet.d.ts.map +1 -1
  491. package/dist/esm/mcp-server/tools/tenantsGet.js +3 -3
  492. package/dist/esm/mcp-server/tools/tenantsGet.js.map +1 -1
  493. package/dist/esm/mcp-server/tools/tenantsGetPortalUrl.d.ts +6 -2
  494. package/dist/esm/mcp-server/tools/tenantsGetPortalUrl.d.ts.map +1 -1
  495. package/dist/esm/mcp-server/tools/tenantsGetPortalUrl.js +5 -3
  496. package/dist/esm/mcp-server/tools/tenantsGetPortalUrl.js.map +1 -1
  497. package/dist/esm/mcp-server/tools/tenantsGetToken.d.ts +2 -2
  498. package/dist/esm/mcp-server/tools/tenantsGetToken.d.ts.map +1 -1
  499. package/dist/esm/mcp-server/tools/tenantsGetToken.js +4 -4
  500. package/dist/esm/mcp-server/tools/tenantsGetToken.js.map +1 -1
  501. package/dist/esm/mcp-server/tools/{tenantsListTenants.d.ts → tenantsList.d.ts} +2 -2
  502. package/dist/esm/mcp-server/tools/tenantsList.d.ts.map +1 -0
  503. package/dist/esm/mcp-server/tools/{tenantsListTenants.js → tenantsList.js} +7 -8
  504. package/dist/esm/mcp-server/tools/tenantsList.js.map +1 -0
  505. package/dist/esm/mcp-server/tools/tenantsUpsert.d.ts +4 -2
  506. package/dist/esm/mcp-server/tools/tenantsUpsert.d.ts.map +1 -1
  507. package/dist/esm/mcp-server/tools/tenantsUpsert.js +5 -3
  508. package/dist/esm/mcp-server/tools/tenantsUpsert.js.map +1 -1
  509. package/dist/esm/models/components/event.d.ts +0 -5
  510. package/dist/esm/models/components/event.d.ts.map +1 -1
  511. package/dist/esm/models/components/event.js +0 -4
  512. package/dist/esm/models/components/event.js.map +1 -1
  513. package/dist/esm/models/components/security.d.ts +2 -4
  514. package/dist/esm/models/components/security.d.ts.map +1 -1
  515. package/dist/esm/models/components/security.js +2 -15
  516. package/dist/esm/models/components/security.js.map +1 -1
  517. package/dist/esm/models/errors/listtenants.d.ts +0 -27
  518. package/dist/esm/models/errors/listtenants.d.ts.map +1 -1
  519. package/dist/esm/models/errors/listtenants.js +0 -35
  520. package/dist/esm/models/errors/listtenants.js.map +1 -1
  521. package/dist/esm/models/operations/createtenantdestination.d.ts +4 -17
  522. package/dist/esm/models/operations/createtenantdestination.d.ts.map +1 -1
  523. package/dist/esm/models/operations/createtenantdestination.js +4 -26
  524. package/dist/esm/models/operations/createtenantdestination.js.map +1 -1
  525. package/dist/esm/models/operations/deletetenant.d.ts +2 -15
  526. package/dist/esm/models/operations/deletetenant.d.ts.map +1 -1
  527. package/dist/esm/models/operations/deletetenant.js +2 -24
  528. package/dist/esm/models/operations/deletetenant.js.map +1 -1
  529. package/dist/esm/models/operations/deletetenantdestination.d.ts +2 -15
  530. package/dist/esm/models/operations/deletetenantdestination.d.ts.map +1 -1
  531. package/dist/esm/models/operations/deletetenantdestination.js +2 -24
  532. package/dist/esm/models/operations/deletetenantdestination.js.map +1 -1
  533. package/dist/esm/models/operations/disabletenantdestination.d.ts +2 -15
  534. package/dist/esm/models/operations/disabletenantdestination.d.ts.map +1 -1
  535. package/dist/esm/models/operations/disabletenantdestination.js +2 -24
  536. package/dist/esm/models/operations/disabletenantdestination.js.map +1 -1
  537. package/dist/esm/models/operations/enabletenantdestination.d.ts +2 -15
  538. package/dist/esm/models/operations/enabletenantdestination.d.ts.map +1 -1
  539. package/dist/esm/models/operations/enabletenantdestination.js +2 -24
  540. package/dist/esm/models/operations/enabletenantdestination.js.map +1 -1
  541. package/dist/esm/models/operations/getattempt.d.ts +2 -2
  542. package/dist/esm/models/operations/getdestinationtypeschema.d.ts +2 -0
  543. package/dist/esm/models/operations/getdestinationtypeschema.d.ts.map +1 -1
  544. package/dist/esm/models/operations/getdestinationtypeschema.js +2 -0
  545. package/dist/esm/models/operations/getdestinationtypeschema.js.map +1 -1
  546. package/dist/esm/models/operations/gettenant.d.ts +2 -15
  547. package/dist/esm/models/operations/gettenant.d.ts.map +1 -1
  548. package/dist/esm/models/operations/gettenant.js +2 -24
  549. package/dist/esm/models/operations/gettenant.js.map +1 -1
  550. package/dist/esm/models/operations/gettenantdestination.d.ts +2 -15
  551. package/dist/esm/models/operations/gettenantdestination.d.ts.map +1 -1
  552. package/dist/esm/models/operations/gettenantdestination.js +2 -24
  553. package/dist/esm/models/operations/gettenantdestination.js.map +1 -1
  554. package/dist/esm/models/operations/gettenantdestinationattempt.d.ts +4 -17
  555. package/dist/esm/models/operations/gettenantdestinationattempt.d.ts.map +1 -1
  556. package/dist/esm/models/operations/gettenantdestinationattempt.js +2 -24
  557. package/dist/esm/models/operations/gettenantdestinationattempt.js.map +1 -1
  558. package/dist/esm/models/operations/gettenantportalurl.d.ts +2 -15
  559. package/dist/esm/models/operations/gettenantportalurl.d.ts.map +1 -1
  560. package/dist/esm/models/operations/gettenantportalurl.js +2 -24
  561. package/dist/esm/models/operations/gettenantportalurl.js.map +1 -1
  562. package/dist/esm/models/operations/gettenanttoken.d.ts +2 -15
  563. package/dist/esm/models/operations/gettenanttoken.d.ts.map +1 -1
  564. package/dist/esm/models/operations/gettenanttoken.js +2 -24
  565. package/dist/esm/models/operations/gettenanttoken.js.map +1 -1
  566. package/dist/esm/models/operations/index.d.ts +2 -2
  567. package/dist/esm/models/operations/index.d.ts.map +1 -1
  568. package/dist/esm/models/operations/index.js +2 -2
  569. package/dist/esm/models/operations/index.js.map +1 -1
  570. package/dist/esm/models/operations/listattempts.d.ts +227 -0
  571. package/dist/esm/models/operations/listattempts.d.ts.map +1 -0
  572. package/dist/esm/models/operations/listattempts.js +180 -0
  573. package/dist/esm/models/operations/listattempts.js.map +1 -0
  574. package/dist/esm/models/operations/listevents.d.ts +163 -0
  575. package/dist/esm/models/operations/listevents.d.ts.map +1 -0
  576. package/dist/esm/models/operations/listevents.js +139 -0
  577. package/dist/esm/models/operations/listevents.js.map +1 -0
  578. package/dist/esm/models/operations/listtenantdestinationattempts.d.ts +42 -19
  579. package/dist/esm/models/operations/listtenantdestinationattempts.d.ts.map +1 -1
  580. package/dist/esm/models/operations/listtenantdestinationattempts.js +43 -22
  581. package/dist/esm/models/operations/listtenantdestinationattempts.js.map +1 -1
  582. package/dist/esm/models/operations/listtenantdestinations.d.ts +6 -19
  583. package/dist/esm/models/operations/listtenantdestinations.d.ts.map +1 -1
  584. package/dist/esm/models/operations/listtenantdestinations.js +2 -24
  585. package/dist/esm/models/operations/listtenantdestinations.js.map +1 -1
  586. package/dist/esm/models/operations/listtenants.d.ts +27 -25
  587. package/dist/esm/models/operations/listtenants.d.ts.map +1 -1
  588. package/dist/esm/models/operations/listtenants.js +33 -26
  589. package/dist/esm/models/operations/listtenants.js.map +1 -1
  590. package/dist/esm/models/operations/updatetenantdestination.d.ts +4 -17
  591. package/dist/esm/models/operations/updatetenantdestination.d.ts.map +1 -1
  592. package/dist/esm/models/operations/updatetenantdestination.js +4 -26
  593. package/dist/esm/models/operations/updatetenantdestination.js.map +1 -1
  594. package/dist/esm/models/operations/upserttenant.d.ts +4 -17
  595. package/dist/esm/models/operations/upserttenant.d.ts.map +1 -1
  596. package/dist/esm/models/operations/upserttenant.js +4 -26
  597. package/dist/esm/models/operations/upserttenant.js.map +1 -1
  598. package/dist/esm/sdk/attempts.d.ts +9 -5
  599. package/dist/esm/sdk/attempts.d.ts.map +1 -1
  600. package/dist/esm/sdk/attempts.js +8 -6
  601. package/dist/esm/sdk/attempts.js.map +1 -1
  602. package/dist/esm/sdk/destinations.d.ts +12 -9
  603. package/dist/esm/sdk/destinations.d.ts.map +1 -1
  604. package/dist/esm/sdk/destinations.js +18 -17
  605. package/dist/esm/sdk/destinations.js.map +1 -1
  606. package/dist/esm/sdk/events.d.ts +9 -5
  607. package/dist/esm/sdk/events.d.ts.map +1 -1
  608. package/dist/esm/sdk/events.js +8 -6
  609. package/dist/esm/sdk/events.js.map +1 -1
  610. package/dist/esm/sdk/schemas.d.ts +2 -2
  611. package/dist/esm/sdk/schemas.d.ts.map +1 -1
  612. package/dist/esm/sdk/schemas.js +6 -6
  613. package/dist/esm/sdk/schemas.js.map +1 -1
  614. package/dist/esm/sdk/tenants.d.ts +12 -10
  615. package/dist/esm/sdk/tenants.d.ts.map +1 -1
  616. package/dist/esm/sdk/tenants.js +17 -17
  617. package/dist/esm/sdk/tenants.js.map +1 -1
  618. package/jsr.json +1 -1
  619. package/package.json +2 -2
  620. package/src/funcs/attemptsGet.ts +35 -9
  621. package/src/funcs/attemptsList.ts +124 -44
  622. package/src/funcs/attemptsRetry.ts +17 -8
  623. package/src/funcs/destinationsCreate.ts +45 -16
  624. package/src/funcs/destinationsDelete.ts +39 -14
  625. package/src/funcs/destinationsDisable.ts +39 -14
  626. package/src/funcs/destinationsEnable.ts +39 -14
  627. package/src/funcs/destinationsGet.ts +39 -14
  628. package/src/funcs/destinationsGetAttempt.ts +47 -14
  629. package/src/funcs/destinationsList.ts +43 -14
  630. package/src/funcs/destinationsListAttempts.ts +127 -42
  631. package/src/funcs/destinationsUpdate.ts +50 -16
  632. package/src/funcs/eventsGet.ts +31 -9
  633. package/src/funcs/eventsList.ts +123 -44
  634. package/src/funcs/publishEvent.ts +5 -5
  635. package/src/funcs/{schemasGetDestinationTypeJwt.ts → schemasGetDestinationType.ts} +18 -12
  636. package/src/funcs/{schemasListDestinationTypesJwt.ts → schemasListDestinationTypes.ts} +6 -5
  637. package/src/funcs/tenantsDelete.ts +35 -14
  638. package/src/funcs/tenantsGet.ts +35 -14
  639. package/src/funcs/tenantsGetPortalUrl.ts +40 -15
  640. package/src/funcs/tenantsGetToken.ts +36 -15
  641. package/src/funcs/{tenantsListTenants.ts → tenantsList.ts} +125 -45
  642. package/src/funcs/tenantsUpsert.ts +40 -15
  643. package/src/funcs/topicsList.ts +5 -4
  644. package/src/lib/config.ts +4 -16
  645. package/src/lib/matchers.ts +3 -2
  646. package/src/lib/security.ts +2 -10
  647. package/src/mcp-server/cli/start/command.ts +2 -19
  648. package/src/mcp-server/cli/start/impl.ts +5 -13
  649. package/src/mcp-server/mcp-server.ts +1 -1
  650. package/src/mcp-server/server.ts +9 -11
  651. package/src/mcp-server/shared.ts +2 -2
  652. package/src/mcp-server/tools/attemptsGet.ts +5 -2
  653. package/src/mcp-server/tools/attemptsList.ts +6 -5
  654. package/src/mcp-server/tools/destinationsCreate.ts +6 -3
  655. package/src/mcp-server/tools/destinationsDelete.ts +5 -3
  656. package/src/mcp-server/tools/destinationsDisable.ts +5 -3
  657. package/src/mcp-server/tools/destinationsEnable.ts +5 -3
  658. package/src/mcp-server/tools/destinationsGet.ts +5 -3
  659. package/src/mcp-server/tools/destinationsGetAttempt.ts +10 -2
  660. package/src/mcp-server/tools/destinationsList.ts +7 -2
  661. package/src/mcp-server/tools/destinationsListAttempts.ts +1 -1
  662. package/src/mcp-server/tools/destinationsUpdate.ts +8 -3
  663. package/src/mcp-server/tools/eventsGet.ts +3 -3
  664. package/src/mcp-server/tools/eventsList.ts +6 -5
  665. package/src/mcp-server/tools/{schemasGetDestinationTypeJwt.ts → schemasGetDestinationType.ts} +6 -6
  666. package/src/mcp-server/tools/{schemasListDestinationTypesJwt.ts → schemasListDestinationTypes.ts} +4 -4
  667. package/src/mcp-server/tools/tenantsDelete.ts +3 -3
  668. package/src/mcp-server/tools/tenantsGet.ts +3 -3
  669. package/src/mcp-server/tools/tenantsGetPortalUrl.ts +6 -3
  670. package/src/mcp-server/tools/tenantsGetToken.ts +4 -4
  671. package/src/mcp-server/tools/{tenantsListTenants.ts → tenantsList.ts} +6 -7
  672. package/src/mcp-server/tools/tenantsUpsert.ts +6 -3
  673. package/src/models/components/event.ts +0 -11
  674. package/src/models/components/security.ts +4 -19
  675. package/src/models/errors/listtenants.ts +0 -66
  676. package/src/models/operations/createtenantdestination.ts +8 -61
  677. package/src/models/operations/deletetenant.ts +4 -55
  678. package/src/models/operations/deletetenantdestination.ts +4 -57
  679. package/src/models/operations/disabletenantdestination.ts +4 -57
  680. package/src/models/operations/enabletenantdestination.ts +4 -57
  681. package/src/models/operations/getattempt.ts +2 -2
  682. package/src/models/operations/getdestinationtypeschema.ts +2 -0
  683. package/src/models/operations/gettenant.ts +4 -55
  684. package/src/models/operations/gettenantdestination.ts +4 -57
  685. package/src/models/operations/gettenantdestinationattempt.ts +6 -60
  686. package/src/models/operations/gettenantportalurl.ts +4 -55
  687. package/src/models/operations/gettenanttoken.ts +4 -55
  688. package/src/models/operations/index.ts +2 -2
  689. package/src/models/operations/listattempts.ts +498 -0
  690. package/src/models/operations/listevents.ts +364 -0
  691. package/src/models/operations/listtenantdestinationattempts.ts +110 -46
  692. package/src/models/operations/listtenantdestinations.ts +8 -61
  693. package/src/models/operations/listtenants.ts +87 -51
  694. package/src/models/operations/updatetenantdestination.ts +8 -61
  695. package/src/models/operations/upserttenant.ts +8 -59
  696. package/src/sdk/attempts.ts +14 -8
  697. package/src/sdk/destinations.ts +48 -18
  698. package/src/sdk/events.ts +10 -8
  699. package/src/sdk/schemas.ts +8 -8
  700. package/src/sdk/tenants.ts +22 -18
  701. package/dist/commonjs/funcs/schemasGetDestinationTypeJwt.d.ts.map +0 -1
  702. package/dist/commonjs/funcs/schemasGetDestinationTypeJwt.js.map +0 -1
  703. package/dist/commonjs/funcs/schemasListDestinationTypesJwt.d.ts.map +0 -1
  704. package/dist/commonjs/funcs/schemasListDestinationTypesJwt.js.map +0 -1
  705. package/dist/commonjs/funcs/tenantsListTenants.d.ts.map +0 -1
  706. package/dist/commonjs/funcs/tenantsListTenants.js.map +0 -1
  707. package/dist/commonjs/mcp-server/tools/schemasGetDestinationTypeJwt.d.ts +0 -8
  708. package/dist/commonjs/mcp-server/tools/schemasGetDestinationTypeJwt.d.ts.map +0 -1
  709. package/dist/commonjs/mcp-server/tools/schemasGetDestinationTypeJwt.js.map +0 -1
  710. package/dist/commonjs/mcp-server/tools/schemasListDestinationTypesJwt.d.ts +0 -3
  711. package/dist/commonjs/mcp-server/tools/schemasListDestinationTypesJwt.d.ts.map +0 -1
  712. package/dist/commonjs/mcp-server/tools/schemasListDestinationTypesJwt.js.map +0 -1
  713. package/dist/commonjs/mcp-server/tools/tenantsListTenants.d.ts.map +0 -1
  714. package/dist/commonjs/mcp-server/tools/tenantsListTenants.js.map +0 -1
  715. package/dist/commonjs/models/operations/adminlistattempts.d.ts +0 -159
  716. package/dist/commonjs/models/operations/adminlistattempts.d.ts.map +0 -1
  717. package/dist/commonjs/models/operations/adminlistattempts.js +0 -159
  718. package/dist/commonjs/models/operations/adminlistattempts.js.map +0 -1
  719. package/dist/commonjs/models/operations/adminlistevents.d.ts +0 -102
  720. package/dist/commonjs/models/operations/adminlistevents.d.ts.map +0 -1
  721. package/dist/commonjs/models/operations/adminlistevents.js +0 -124
  722. package/dist/commonjs/models/operations/adminlistevents.js.map +0 -1
  723. package/dist/esm/funcs/schemasGetDestinationTypeJwt.d.ts.map +0 -1
  724. package/dist/esm/funcs/schemasGetDestinationTypeJwt.js.map +0 -1
  725. package/dist/esm/funcs/schemasListDestinationTypesJwt.d.ts.map +0 -1
  726. package/dist/esm/funcs/schemasListDestinationTypesJwt.js.map +0 -1
  727. package/dist/esm/funcs/tenantsListTenants.d.ts.map +0 -1
  728. package/dist/esm/funcs/tenantsListTenants.js.map +0 -1
  729. package/dist/esm/mcp-server/tools/schemasGetDestinationTypeJwt.d.ts +0 -8
  730. package/dist/esm/mcp-server/tools/schemasGetDestinationTypeJwt.d.ts.map +0 -1
  731. package/dist/esm/mcp-server/tools/schemasGetDestinationTypeJwt.js.map +0 -1
  732. package/dist/esm/mcp-server/tools/schemasListDestinationTypesJwt.d.ts +0 -3
  733. package/dist/esm/mcp-server/tools/schemasListDestinationTypesJwt.d.ts.map +0 -1
  734. package/dist/esm/mcp-server/tools/schemasListDestinationTypesJwt.js.map +0 -1
  735. package/dist/esm/mcp-server/tools/tenantsListTenants.d.ts.map +0 -1
  736. package/dist/esm/mcp-server/tools/tenantsListTenants.js.map +0 -1
  737. package/dist/esm/models/operations/adminlistattempts.d.ts +0 -159
  738. package/dist/esm/models/operations/adminlistattempts.d.ts.map +0 -1
  739. package/dist/esm/models/operations/adminlistattempts.js +0 -117
  740. package/dist/esm/models/operations/adminlistattempts.js.map +0 -1
  741. package/dist/esm/models/operations/adminlistevents.d.ts +0 -102
  742. package/dist/esm/models/operations/adminlistevents.d.ts.map +0 -1
  743. package/dist/esm/models/operations/adminlistevents.js +0 -84
  744. package/dist/esm/models/operations/adminlistevents.js.map +0 -1
  745. package/examples/package-lock.json +0 -620
  746. package/examples/package.json +0 -18
  747. package/src/models/operations/adminlistattempts.ts +0 -312
  748. package/src/models/operations/adminlistevents.ts +0 -207
  749. 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.9.0",
53595
+ genVersion: "2.862.0",
53596
+ userAgent: "speakeasy-sdk/typescript 0.9.0 2.862.0 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"
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$
57330
57275
  });
57331
57276
  });
57332
- CreateTenantDestinationRequest$inboundSchema = objectType({
57333
- tenant_id: stringType().optional(),
57334
- params: DestinationCreate$inboundSchema
57277
+ InternalServerError$outboundSchema = instanceOfType(InternalServerError).transform((v2) => v2.data$).pipe(objectType({
57278
+ message: stringType().optional(),
57279
+ additionalProperties: recordType(anyType())
57335
57280
  }).transform((v2) => {
57336
- return remap(v2, {
57337
- tenant_id: "tenantId"
57338
- });
57339
- });
57340
- CreateTenantDestinationRequest$outboundSchema = objectType({
57341
- tenantId: stringType().optional(),
57342
- params: DestinationCreate$outboundSchema
57281
+ return {
57282
+ ...v2.additionalProperties,
57283
+ ...remap(v2, {
57284
+ additionalProperties: null
57285
+ })
57286
+ };
57287
+ }));
57288
+ });
57289
+
57290
+ // src/models/errors/listtenants.ts
57291
+ var NotImplementedError, NotImplementedError$inboundSchema, NotImplementedError$outboundSchema;
57292
+ var init_listtenants = __esm(() => {
57293
+ init_v3();
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()
57343
57312
  }).transform((v2) => {
57344
- return remap(v2, {
57345
- tenantId: "tenant_id"
57313
+ return new NotImplementedError(v2, {
57314
+ request: v2.request$,
57315
+ response: v2.response$,
57316
+ body: v2.body$
57346
57317
  });
57347
57318
  });
57319
+ NotImplementedError$outboundSchema = instanceOfType(NotImplementedError).transform((v2) => v2.data$).pipe(objectType({
57320
+ error: stringType().optional()
57321
+ }));
57348
57322
  });
57349
57323
 
57350
- // src/models/operations/deletetenant.ts
57351
- var DeleteTenantGlobals$inboundSchema, DeleteTenantGlobals$outboundSchema, DeleteTenantRequest$inboundSchema, DeleteTenantRequest$outboundSchema;
57352
- var init_deletetenant = __esm(() => {
57324
+ // src/models/errors/notfounderror.ts
57325
+ var NotFoundError, NotFoundError$inboundSchema, NotFoundError$outboundSchema;
57326
+ var init_notfounderror = __esm(() => {
57353
57327
  init_v3();
57354
57328
  init_primitives();
57355
- DeleteTenantGlobals$inboundSchema = objectType({
57356
- tenant_id: stringType().optional()
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())
57357
57359
  }).transform((v2) => {
57358
- return remap(v2, {
57359
- tenant_id: "tenantId"
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$
57360
57399
  });
57361
57400
  });
57362
- DeleteTenantGlobals$outboundSchema = objectType({
57363
- tenantId: stringType().optional()
57401
+ RateLimitedError$outboundSchema = instanceOfType(RateLimitedError).transform((v2) => v2.data$).pipe(objectType({
57402
+ message: stringType().optional(),
57403
+ additionalProperties: recordType(anyType())
57364
57404
  }).transform((v2) => {
57365
- return remap(v2, {
57366
- tenantId: "tenant_id"
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$
57367
57444
  });
57368
57445
  });
57369
- DeleteTenantRequest$inboundSchema = objectType({
57370
- tenant_id: stringType().optional()
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
+ body: 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
+ body: 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,26 +57614,12 @@ 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()
57470
- }).transform((v2) => {
57471
- 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
57621
  EnableTenantDestinationRequest$inboundSchema = objectType({
57483
- tenant_id: stringType().optional(),
57622
+ tenant_id: stringType(),
57484
57623
  destination_id: stringType()
57485
57624
  }).transform((v2) => {
57486
57625
  return remap(v2, {
@@ -57489,7 +57628,7 @@ var init_enabletenantdestination = __esm(() => {
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
- GetTenantRequest$inboundSchema = objectType({
57590
- tenant_id: stringType().optional()
57716
+ GetTenantRequest$inboundSchema = objectType({
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,215 @@ 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, ListAttemptsTenantId$inboundSchema, ListAttemptsTenantId$outboundSchema, ListAttemptsEventId$inboundSchema, ListAttemptsEventId$outboundSchema, DestinationId$inboundSchema, DestinationId$outboundSchema, ListAttemptsStatus$inboundSchema, ListAttemptsStatus$outboundSchema, ListAttemptsTopic$inboundSchema, ListAttemptsTopic$outboundSchema, ListAttemptsInclude$inboundSchema, ListAttemptsInclude$outboundSchema, ListAttemptsOrderBy$inboundSchema, ListAttemptsOrderBy$outboundSchema, ListAttemptsDir$inboundSchema, ListAttemptsDir$outboundSchema, ListAttemptsRequest$inboundSchema, ListAttemptsRequest$outboundSchema, ListAttemptsResponse$inboundSchema, ListAttemptsResponse$outboundSchema;
57874
+ var init_listattempts = __esm(() => {
57804
57875
  init_v3();
57805
57876
  init_primitives();
57806
- ListTenantDestinationAttemptsStatus = {
57877
+ init_components();
57878
+ ListAttemptsStatus = {
57807
57879
  Success: "success",
57808
57880
  Failed: "failed"
57809
57881
  };
57810
- ListTenantDestinationAttemptsOrderBy = {
57882
+ ListAttemptsOrderBy = {
57811
57883
  Time: "time"
57812
57884
  };
57813
- ListTenantDestinationAttemptsDir = {
57885
+ ListAttemptsDir = {
57814
57886
  Asc: "asc",
57815
57887
  Desc: "desc"
57816
57888
  };
57817
- ListTenantDestinationAttemptsGlobals$inboundSchema = objectType({
57818
- tenant_id: stringType().optional()
57889
+ ListAttemptsTenantId$inboundSchema = unionType([stringType(), arrayType(stringType())]);
57890
+ ListAttemptsTenantId$outboundSchema = unionType([stringType(), arrayType(stringType())]);
57891
+ ListAttemptsEventId$inboundSchema = unionType([stringType(), arrayType(stringType())]);
57892
+ ListAttemptsEventId$outboundSchema = unionType([stringType(), arrayType(stringType())]);
57893
+ DestinationId$inboundSchema = unionType([stringType(), arrayType(stringType())]);
57894
+ DestinationId$outboundSchema = unionType([stringType(), arrayType(stringType())]);
57895
+ ListAttemptsStatus$inboundSchema = nativeEnumType(ListAttemptsStatus);
57896
+ ListAttemptsStatus$outboundSchema = ListAttemptsStatus$inboundSchema;
57897
+ ListAttemptsTopic$inboundSchema = unionType([stringType(), arrayType(stringType())]);
57898
+ ListAttemptsTopic$outboundSchema = unionType([stringType(), arrayType(stringType())]);
57899
+ ListAttemptsInclude$inboundSchema = unionType([stringType(), arrayType(stringType())]);
57900
+ ListAttemptsInclude$outboundSchema = unionType([stringType(), arrayType(stringType())]);
57901
+ ListAttemptsOrderBy$inboundSchema = nativeEnumType(ListAttemptsOrderBy);
57902
+ ListAttemptsOrderBy$outboundSchema = ListAttemptsOrderBy$inboundSchema;
57903
+ ListAttemptsDir$inboundSchema = nativeEnumType(ListAttemptsDir);
57904
+ ListAttemptsDir$outboundSchema = ListAttemptsDir$inboundSchema;
57905
+ ListAttemptsRequest$inboundSchema = objectType({
57906
+ tenant_id: unionType([stringType(), arrayType(stringType())]).optional(),
57907
+ event_id: unionType([stringType(), arrayType(stringType())]).optional(),
57908
+ destination_id: unionType([stringType(), arrayType(stringType())]).optional(),
57909
+ status: ListAttemptsStatus$inboundSchema.optional(),
57910
+ topic: unionType([stringType(), arrayType(stringType())]).optional(),
57911
+ "time[gte]": stringType().datetime({ offset: true }).transform((v2) => new Date(v2)).optional(),
57912
+ "time[lte]": stringType().datetime({ offset: true }).transform((v2) => new Date(v2)).optional(),
57913
+ "time[gt]": stringType().datetime({ offset: true }).transform((v2) => new Date(v2)).optional(),
57914
+ "time[lt]": stringType().datetime({ offset: true }).transform((v2) => new Date(v2)).optional(),
57915
+ limit: numberType().int().default(100),
57916
+ next: stringType().optional(),
57917
+ prev: stringType().optional(),
57918
+ include: unionType([stringType(), arrayType(stringType())]).optional(),
57919
+ order_by: ListAttemptsOrderBy$inboundSchema.default("time"),
57920
+ dir: ListAttemptsDir$inboundSchema.default("desc")
57819
57921
  }).transform((v2) => {
57820
57922
  return remap(v2, {
57821
- tenant_id: "tenantId"
57923
+ tenant_id: "tenantId",
57924
+ event_id: "eventId",
57925
+ destination_id: "destinationId",
57926
+ "time[gte]": "timeGte",
57927
+ "time[lte]": "timeLte",
57928
+ "time[gt]": "timeGt",
57929
+ "time[lt]": "timeLt",
57930
+ order_by: "orderBy"
57822
57931
  });
57823
57932
  });
57824
- ListTenantDestinationAttemptsGlobals$outboundSchema = objectType({
57825
- tenantId: stringType().optional()
57933
+ ListAttemptsRequest$outboundSchema = objectType({
57934
+ tenantId: unionType([stringType(), arrayType(stringType())]).optional(),
57935
+ eventId: unionType([stringType(), arrayType(stringType())]).optional(),
57936
+ destinationId: unionType([stringType(), arrayType(stringType())]).optional(),
57937
+ status: ListAttemptsStatus$outboundSchema.optional(),
57938
+ topic: unionType([stringType(), arrayType(stringType())]).optional(),
57939
+ timeGte: dateType().transform((v2) => v2.toISOString()).optional(),
57940
+ timeLte: dateType().transform((v2) => v2.toISOString()).optional(),
57941
+ timeGt: dateType().transform((v2) => v2.toISOString()).optional(),
57942
+ timeLt: dateType().transform((v2) => v2.toISOString()).optional(),
57943
+ limit: numberType().int().default(100),
57944
+ next: stringType().optional(),
57945
+ prev: stringType().optional(),
57946
+ include: unionType([stringType(), arrayType(stringType())]).optional(),
57947
+ orderBy: ListAttemptsOrderBy$outboundSchema.default("time"),
57948
+ dir: ListAttemptsDir$outboundSchema.default("desc")
57826
57949
  }).transform((v2) => {
57827
57950
  return remap(v2, {
57828
- tenantId: "tenant_id"
57951
+ tenantId: "tenant_id",
57952
+ eventId: "event_id",
57953
+ destinationId: "destination_id",
57954
+ timeGte: "time[gte]",
57955
+ timeLte: "time[lte]",
57956
+ timeGt: "time[gt]",
57957
+ timeLt: "time[lt]",
57958
+ orderBy: "order_by"
57959
+ });
57960
+ });
57961
+ ListAttemptsResponse$inboundSchema = objectType({
57962
+ Result: AttemptPaginatedResult$inboundSchema
57963
+ }).transform((v2) => {
57964
+ return remap(v2, {
57965
+ Result: "result"
57966
+ });
57967
+ });
57968
+ ListAttemptsResponse$outboundSchema = objectType({
57969
+ result: AttemptPaginatedResult$outboundSchema
57970
+ }).transform((v2) => {
57971
+ return remap(v2, {
57972
+ result: "Result"
57973
+ });
57974
+ });
57975
+ });
57976
+
57977
+ // src/models/operations/listevents.ts
57978
+ var ListEventsOrderBy, ListEventsDir, ListEventsId$inboundSchema, ListEventsId$outboundSchema, ListEventsTenantId$inboundSchema, ListEventsTenantId$outboundSchema, ListEventsTopic$inboundSchema, ListEventsTopic$outboundSchema, ListEventsOrderBy$inboundSchema, ListEventsOrderBy$outboundSchema, ListEventsDir$inboundSchema, ListEventsDir$outboundSchema, ListEventsRequest$inboundSchema, ListEventsRequest$outboundSchema, ListEventsResponse$inboundSchema, ListEventsResponse$outboundSchema;
57979
+ var init_listevents = __esm(() => {
57980
+ init_v3();
57981
+ init_primitives();
57982
+ init_components();
57983
+ ListEventsOrderBy = {
57984
+ Time: "time"
57985
+ };
57986
+ ListEventsDir = {
57987
+ Asc: "asc",
57988
+ Desc: "desc"
57989
+ };
57990
+ ListEventsId$inboundSchema = unionType([stringType(), arrayType(stringType())]);
57991
+ ListEventsId$outboundSchema = unionType([stringType(), arrayType(stringType())]);
57992
+ ListEventsTenantId$inboundSchema = unionType([stringType(), arrayType(stringType())]);
57993
+ ListEventsTenantId$outboundSchema = unionType([stringType(), arrayType(stringType())]);
57994
+ ListEventsTopic$inboundSchema = unionType([stringType(), arrayType(stringType())]);
57995
+ ListEventsTopic$outboundSchema = unionType([stringType(), arrayType(stringType())]);
57996
+ ListEventsOrderBy$inboundSchema = nativeEnumType(ListEventsOrderBy);
57997
+ ListEventsOrderBy$outboundSchema = ListEventsOrderBy$inboundSchema;
57998
+ ListEventsDir$inboundSchema = nativeEnumType(ListEventsDir);
57999
+ ListEventsDir$outboundSchema = ListEventsDir$inboundSchema;
58000
+ ListEventsRequest$inboundSchema = objectType({
58001
+ id: unionType([stringType(), arrayType(stringType())]).optional(),
58002
+ tenant_id: unionType([stringType(), arrayType(stringType())]).optional(),
58003
+ topic: unionType([stringType(), arrayType(stringType())]).optional(),
58004
+ "time[gte]": stringType().datetime({ offset: true }).transform((v2) => new Date(v2)).optional(),
58005
+ "time[lte]": stringType().datetime({ offset: true }).transform((v2) => new Date(v2)).optional(),
58006
+ "time[gt]": stringType().datetime({ offset: true }).transform((v2) => new Date(v2)).optional(),
58007
+ "time[lt]": stringType().datetime({ offset: true }).transform((v2) => new Date(v2)).optional(),
58008
+ limit: numberType().int().default(100),
58009
+ next: stringType().optional(),
58010
+ prev: stringType().optional(),
58011
+ order_by: ListEventsOrderBy$inboundSchema.default("time"),
58012
+ dir: ListEventsDir$inboundSchema.default("desc")
58013
+ }).transform((v2) => {
58014
+ return remap(v2, {
58015
+ tenant_id: "tenantId",
58016
+ "time[gte]": "timeGte",
58017
+ "time[lte]": "timeLte",
58018
+ "time[gt]": "timeGt",
58019
+ "time[lt]": "timeLt",
58020
+ order_by: "orderBy"
58021
+ });
58022
+ });
58023
+ ListEventsRequest$outboundSchema = objectType({
58024
+ id: unionType([stringType(), arrayType(stringType())]).optional(),
58025
+ tenantId: unionType([stringType(), arrayType(stringType())]).optional(),
58026
+ topic: unionType([stringType(), arrayType(stringType())]).optional(),
58027
+ timeGte: dateType().transform((v2) => v2.toISOString()).optional(),
58028
+ timeLte: dateType().transform((v2) => v2.toISOString()).optional(),
58029
+ timeGt: dateType().transform((v2) => v2.toISOString()).optional(),
58030
+ timeLt: dateType().transform((v2) => v2.toISOString()).optional(),
58031
+ limit: numberType().int().default(100),
58032
+ next: stringType().optional(),
58033
+ prev: stringType().optional(),
58034
+ orderBy: ListEventsOrderBy$outboundSchema.default("time"),
58035
+ dir: ListEventsDir$outboundSchema.default("desc")
58036
+ }).transform((v2) => {
58037
+ return remap(v2, {
58038
+ tenantId: "tenant_id",
58039
+ timeGte: "time[gte]",
58040
+ timeLte: "time[lte]",
58041
+ timeGt: "time[gt]",
58042
+ timeLt: "time[lt]",
58043
+ orderBy: "order_by"
58044
+ });
58045
+ });
58046
+ ListEventsResponse$inboundSchema = objectType({
58047
+ Result: EventPaginatedResult$inboundSchema
58048
+ }).transform((v2) => {
58049
+ return remap(v2, {
58050
+ Result: "result"
58051
+ });
58052
+ });
58053
+ ListEventsResponse$outboundSchema = objectType({
58054
+ result: EventPaginatedResult$outboundSchema
58055
+ }).transform((v2) => {
58056
+ return remap(v2, {
58057
+ result: "Result"
57829
58058
  });
57830
58059
  });
58060
+ });
58061
+
58062
+ // src/models/operations/listtenantdestinationattempts.ts
58063
+ var ListTenantDestinationAttemptsStatus, ListTenantDestinationAttemptsOrderBy, ListTenantDestinationAttemptsDir, ListTenantDestinationAttemptsEventId$inboundSchema, ListTenantDestinationAttemptsEventId$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, ListTenantDestinationAttemptsResponse$inboundSchema, ListTenantDestinationAttemptsResponse$outboundSchema;
58064
+ var init_listtenantdestinationattempts = __esm(() => {
58065
+ init_v3();
58066
+ init_primitives();
58067
+ init_components();
58068
+ ListTenantDestinationAttemptsStatus = {
58069
+ Success: "success",
58070
+ Failed: "failed"
58071
+ };
58072
+ ListTenantDestinationAttemptsOrderBy = {
58073
+ Time: "time"
58074
+ };
58075
+ ListTenantDestinationAttemptsDir = {
58076
+ Asc: "asc",
58077
+ Desc: "desc"
58078
+ };
58079
+ ListTenantDestinationAttemptsEventId$inboundSchema = unionType([stringType(), arrayType(stringType())]);
58080
+ ListTenantDestinationAttemptsEventId$outboundSchema = unionType([stringType(), arrayType(stringType())]);
57831
58081
  ListTenantDestinationAttemptsStatus$inboundSchema = nativeEnumType(ListTenantDestinationAttemptsStatus);
57832
58082
  ListTenantDestinationAttemptsStatus$outboundSchema = ListTenantDestinationAttemptsStatus$inboundSchema;
57833
58083
  ListTenantDestinationAttemptsTopic$inboundSchema = unionType([stringType(), arrayType(stringType())]);
@@ -57839,13 +58089,15 @@ var init_listtenantdestinationattempts = __esm(() => {
57839
58089
  ListTenantDestinationAttemptsDir$inboundSchema = nativeEnumType(ListTenantDestinationAttemptsDir);
57840
58090
  ListTenantDestinationAttemptsDir$outboundSchema = ListTenantDestinationAttemptsDir$inboundSchema;
57841
58091
  ListTenantDestinationAttemptsRequest$inboundSchema = objectType({
57842
- tenant_id: stringType().optional(),
58092
+ tenant_id: stringType(),
57843
58093
  destination_id: stringType(),
57844
- event_id: stringType().optional(),
58094
+ event_id: unionType([stringType(), arrayType(stringType())]).optional(),
57845
58095
  status: ListTenantDestinationAttemptsStatus$inboundSchema.optional(),
57846
58096
  topic: unionType([stringType(), arrayType(stringType())]).optional(),
57847
58097
  "time[gte]": stringType().datetime({ offset: true }).transform((v2) => new Date(v2)).optional(),
57848
58098
  "time[lte]": stringType().datetime({ offset: true }).transform((v2) => new Date(v2)).optional(),
58099
+ "time[gt]": stringType().datetime({ offset: true }).transform((v2) => new Date(v2)).optional(),
58100
+ "time[lt]": stringType().datetime({ offset: true }).transform((v2) => new Date(v2)).optional(),
57849
58101
  limit: numberType().int().default(100),
57850
58102
  next: stringType().optional(),
57851
58103
  prev: stringType().optional(),
@@ -57859,17 +58111,21 @@ var init_listtenantdestinationattempts = __esm(() => {
57859
58111
  event_id: "eventId",
57860
58112
  "time[gte]": "timeGte",
57861
58113
  "time[lte]": "timeLte",
58114
+ "time[gt]": "timeGt",
58115
+ "time[lt]": "timeLt",
57862
58116
  order_by: "orderBy"
57863
58117
  });
57864
58118
  });
57865
58119
  ListTenantDestinationAttemptsRequest$outboundSchema = objectType({
57866
- tenantId: stringType().optional(),
58120
+ tenantId: stringType(),
57867
58121
  destinationId: stringType(),
57868
- eventId: stringType().optional(),
58122
+ eventId: unionType([stringType(), arrayType(stringType())]).optional(),
57869
58123
  status: ListTenantDestinationAttemptsStatus$outboundSchema.optional(),
57870
58124
  topic: unionType([stringType(), arrayType(stringType())]).optional(),
57871
58125
  timeGte: dateType().transform((v2) => v2.toISOString()).optional(),
57872
58126
  timeLte: dateType().transform((v2) => v2.toISOString()).optional(),
58127
+ timeGt: dateType().transform((v2) => v2.toISOString()).optional(),
58128
+ timeLt: dateType().transform((v2) => v2.toISOString()).optional(),
57873
58129
  limit: numberType().int().default(100),
57874
58130
  next: stringType().optional(),
57875
58131
  prev: stringType().optional(),
@@ -57883,31 +58139,33 @@ var init_listtenantdestinationattempts = __esm(() => {
57883
58139
  eventId: "event_id",
57884
58140
  timeGte: "time[gte]",
57885
58141
  timeLte: "time[lte]",
58142
+ timeGt: "time[gt]",
58143
+ timeLt: "time[lt]",
57886
58144
  orderBy: "order_by"
57887
58145
  });
57888
58146
  });
57889
- });
57890
-
57891
- // src/models/operations/listtenantdestinations.ts
57892
- var ListTenantDestinationsGlobals$inboundSchema, ListTenantDestinationsGlobals$outboundSchema, ListTenantDestinationsType$inboundSchema, ListTenantDestinationsType$outboundSchema, Topics$inboundSchema2, Topics$outboundSchema2, ListTenantDestinationsRequest$inboundSchema, ListTenantDestinationsRequest$outboundSchema;
57893
- var init_listtenantdestinations = __esm(() => {
57894
- init_v3();
57895
- init_primitives();
57896
- init_components();
57897
- ListTenantDestinationsGlobals$inboundSchema = objectType({
57898
- tenant_id: stringType().optional()
58147
+ ListTenantDestinationAttemptsResponse$inboundSchema = objectType({
58148
+ Result: AttemptPaginatedResult$inboundSchema
57899
58149
  }).transform((v2) => {
57900
58150
  return remap(v2, {
57901
- tenant_id: "tenantId"
58151
+ Result: "result"
57902
58152
  });
57903
58153
  });
57904
- ListTenantDestinationsGlobals$outboundSchema = objectType({
57905
- tenantId: stringType().optional()
58154
+ ListTenantDestinationAttemptsResponse$outboundSchema = objectType({
58155
+ result: AttemptPaginatedResult$outboundSchema
57906
58156
  }).transform((v2) => {
57907
58157
  return remap(v2, {
57908
- tenantId: "tenant_id"
58158
+ result: "Result"
57909
58159
  });
57910
58160
  });
58161
+ });
58162
+
58163
+ // src/models/operations/listtenantdestinations.ts
58164
+ var ListTenantDestinationsType$inboundSchema, ListTenantDestinationsType$outboundSchema, Topics$inboundSchema2, Topics$outboundSchema2, ListTenantDestinationsRequest$inboundSchema, ListTenantDestinationsRequest$outboundSchema;
58165
+ var init_listtenantdestinations = __esm(() => {
58166
+ init_v3();
58167
+ init_primitives();
58168
+ init_components();
57911
58169
  ListTenantDestinationsType$inboundSchema = unionType([
57912
58170
  DestinationType$inboundSchema,
57913
58171
  arrayType(DestinationType$inboundSchema)
@@ -57919,7 +58177,7 @@ var init_listtenantdestinations = __esm(() => {
57919
58177
  Topics$inboundSchema2 = unionType([stringType(), arrayType(stringType())]);
57920
58178
  Topics$outboundSchema2 = unionType([stringType(), arrayType(stringType())]);
57921
58179
  ListTenantDestinationsRequest$inboundSchema = objectType({
57922
- tenant_id: stringType().optional(),
58180
+ tenant_id: stringType(),
57923
58181
  type: unionType([
57924
58182
  DestinationType$inboundSchema,
57925
58183
  arrayType(DestinationType$inboundSchema)
@@ -57931,7 +58189,7 @@ var init_listtenantdestinations = __esm(() => {
57931
58189
  });
57932
58190
  });
57933
58191
  ListTenantDestinationsRequest$outboundSchema = objectType({
57934
- tenantId: stringType().optional(),
58192
+ tenantId: stringType(),
57935
58193
  type: unionType([
57936
58194
  DestinationType$outboundSchema,
57937
58195
  arrayType(DestinationType$outboundSchema)
@@ -57945,77 +58203,59 @@ var init_listtenantdestinations = __esm(() => {
57945
58203
  });
57946
58204
 
57947
58205
  // 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(() => {
58206
+ var ListTenantsDir, ListTenantsId$inboundSchema, ListTenantsId$outboundSchema, ListTenantsDir$inboundSchema, ListTenantsDir$outboundSchema, ListTenantsRequest$inboundSchema, ListTenantsRequest$outboundSchema, ListTenantsResponse$inboundSchema, ListTenantsResponse$outboundSchema;
58207
+ var init_listtenants2 = __esm(() => {
57950
58208
  init_v3();
57951
58209
  init_primitives();
57952
- ListTenantsOrderBy = {
57953
- CreatedAt: "created_at"
57954
- };
58210
+ init_components();
57955
58211
  ListTenantsDir = {
57956
58212
  Asc: "asc",
57957
58213
  Desc: "desc"
57958
58214
  };
57959
- ListTenantsOrderBy$inboundSchema = nativeEnumType(ListTenantsOrderBy);
57960
- ListTenantsOrderBy$outboundSchema = ListTenantsOrderBy$inboundSchema;
58215
+ ListTenantsId$inboundSchema = unionType([stringType(), arrayType(stringType())]);
58216
+ ListTenantsId$outboundSchema = unionType([stringType(), arrayType(stringType())]);
57961
58217
  ListTenantsDir$inboundSchema = nativeEnumType(ListTenantsDir);
57962
58218
  ListTenantsDir$outboundSchema = ListTenantsDir$inboundSchema;
57963
58219
  ListTenantsRequest$inboundSchema = objectType({
58220
+ id: unionType([stringType(), arrayType(stringType())]).optional(),
57964
58221
  limit: numberType().int().default(20),
57965
- order_by: ListTenantsOrderBy$inboundSchema.default("created_at"),
57966
58222
  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
58223
  next: stringType().optional(),
57970
58224
  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
58225
  });
57978
58226
  ListTenantsRequest$outboundSchema = objectType({
58227
+ id: unionType([stringType(), arrayType(stringType())]).optional(),
57979
58228
  limit: numberType().int().default(20),
57980
- orderBy: ListTenantsOrderBy$outboundSchema.default("created_at"),
57981
58229
  dir: ListTenantsDir$outboundSchema.default("desc"),
57982
- createdAtGte: dateType().transform((v2) => v2.toISOString()).optional(),
57983
- createdAtLte: dateType().transform((v2) => v2.toISOString()).optional(),
57984
58230
  next: stringType().optional(),
57985
58231
  prev: stringType().optional()
58232
+ });
58233
+ ListTenantsResponse$inboundSchema = objectType({
58234
+ Result: TenantPaginatedResult$inboundSchema
58235
+ }).transform((v2) => {
58236
+ return remap(v2, {
58237
+ Result: "result"
58238
+ });
58239
+ });
58240
+ ListTenantsResponse$outboundSchema = objectType({
58241
+ result: TenantPaginatedResult$outboundSchema
57986
58242
  }).transform((v2) => {
57987
58243
  return remap(v2, {
57988
- orderBy: "order_by",
57989
- createdAtGte: "created_at[gte]",
57990
- createdAtLte: "created_at[lte]"
58244
+ result: "Result"
57991
58245
  });
57992
58246
  });
57993
58247
  });
57994
58248
 
57995
58249
  // src/models/operations/updatetenantdestination.ts
57996
- var UpdateTenantDestinationGlobals$inboundSchema, UpdateTenantDestinationGlobals$outboundSchema, UpdateTenantDestinationRequest$inboundSchema, UpdateTenantDestinationRequest$outboundSchema, UpdateTenantDestinationResponse$inboundSchema;
58250
+ var UpdateTenantDestinationRequest$inboundSchema, UpdateTenantDestinationRequest$outboundSchema, UpdateTenantDestinationResponse$inboundSchema;
57997
58251
  var init_updatetenantdestination = __esm(() => {
57998
58252
  init_v3();
57999
58253
  init_primitives();
58000
58254
  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
58255
  UpdateTenantDestinationRequest$inboundSchema = objectType({
58016
- tenant_id: stringType().optional(),
58256
+ tenant_id: stringType(),
58017
58257
  destination_id: stringType(),
58018
- params: DestinationUpdate$inboundSchema
58258
+ body: DestinationUpdate$inboundSchema
58019
58259
  }).transform((v2) => {
58020
58260
  return remap(v2, {
58021
58261
  tenant_id: "tenantId",
@@ -58023,9 +58263,9 @@ var init_updatetenantdestination = __esm(() => {
58023
58263
  });
58024
58264
  });
58025
58265
  UpdateTenantDestinationRequest$outboundSchema = objectType({
58026
- tenantId: stringType().optional(),
58266
+ tenantId: stringType(),
58027
58267
  destinationId: stringType(),
58028
- params: DestinationUpdate$outboundSchema
58268
+ body: DestinationUpdate$outboundSchema
58029
58269
  }).transform((v2) => {
58030
58270
  return remap(v2, {
58031
58271
  tenantId: "tenant_id",
@@ -58036,36 +58276,22 @@ var init_updatetenantdestination = __esm(() => {
58036
58276
  });
58037
58277
 
58038
58278
  // src/models/operations/upserttenant.ts
58039
- var UpsertTenantGlobals$inboundSchema, UpsertTenantGlobals$outboundSchema, UpsertTenantRequest$inboundSchema, UpsertTenantRequest$outboundSchema;
58279
+ var UpsertTenantRequest$inboundSchema, UpsertTenantRequest$outboundSchema;
58040
58280
  var init_upserttenant = __esm(() => {
58041
58281
  init_v3();
58042
58282
  init_primitives();
58043
58283
  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
58284
  UpsertTenantRequest$inboundSchema = objectType({
58059
- tenant_id: stringType().optional(),
58060
- params: TenantUpsert$inboundSchema.optional()
58285
+ tenant_id: stringType(),
58286
+ body: TenantUpsert$inboundSchema.optional()
58061
58287
  }).transform((v2) => {
58062
58288
  return remap(v2, {
58063
58289
  tenant_id: "tenantId"
58064
58290
  });
58065
58291
  });
58066
58292
  UpsertTenantRequest$outboundSchema = objectType({
58067
- tenantId: stringType().optional(),
58068
- params: TenantUpsert$outboundSchema.optional()
58293
+ tenantId: stringType(),
58294
+ body: TenantUpsert$outboundSchema.optional()
58069
58295
  }).transform((v2) => {
58070
58296
  return remap(v2, {
58071
58297
  tenantId: "tenant_id"
@@ -58075,8 +58301,6 @@ var init_upserttenant = __esm(() => {
58075
58301
 
58076
58302
  // src/models/operations/index.ts
58077
58303
  var init_operations = __esm(() => {
58078
- init_adminlistattempts();
58079
- init_adminlistevents();
58080
58304
  init_createtenantdestination();
58081
58305
  init_deletetenant();
58082
58306
  init_deletetenantdestination();
@@ -58091,9 +58315,11 @@ var init_operations = __esm(() => {
58091
58315
  init_gettenantportalurl();
58092
58316
  init_gettenanttoken();
58093
58317
  init_healthcheck();
58318
+ init_listattempts();
58319
+ init_listevents();
58094
58320
  init_listtenantdestinationattempts();
58095
58321
  init_listtenantdestinations();
58096
- init_listtenants();
58322
+ init_listtenants2();
58097
58323
  init_updatetenantdestination();
58098
58324
  init_upserttenant();
58099
58325
  });
@@ -58125,11 +58351,15 @@ var init_async = __esm(() => {
58125
58351
  });
58126
58352
 
58127
58353
  // src/funcs/attemptsGet.ts
58128
- function attemptsGet(client, request, options) {
58129
- return new APIPromise($do(client, request, options));
58354
+ function attemptsGet(client, attemptId, include, options) {
58355
+ return new APIPromise($do(client, attemptId, include, options));
58130
58356
  }
58131
- async function $do(client, request, options) {
58132
- const parsed = safeParse4(request, (value) => GetAttemptRequest$outboundSchema.parse(value), "Input validation failed");
58357
+ async function $do(client, attemptId, include, options) {
58358
+ const input = {
58359
+ attemptId,
58360
+ include
58361
+ };
58362
+ const parsed = safeParse4(input, (value) => GetAttemptRequest$outboundSchema.parse(value), "Input validation failed");
58133
58363
  if (!parsed.ok) {
58134
58364
  return [parsed, { status: "invalid" }];
58135
58365
  }
@@ -58148,7 +58378,8 @@ async function $do(client, request, options) {
58148
58378
  const headers = new Headers(compactMap({
58149
58379
  Accept: "application/json"
58150
58380
  }));
58151
- const securityInput = await extractSecurity(client._options.security);
58381
+ const secConfig = await extractSecurity(client._options.apiKey);
58382
+ const securityInput = secConfig == null ? {} : { apiKey: secConfig };
58152
58383
  const requestSecurity = resolveGlobalSecurity(securityInput);
58153
58384
  const context = {
58154
58385
  options: client._options,
@@ -58156,7 +58387,7 @@ async function $do(client, request, options) {
58156
58387
  operationID: "getAttempt",
58157
58388
  oAuth2Scopes: null,
58158
58389
  resolvedSecurity: requestSecurity,
58159
- securitySource: client._options.security,
58390
+ securitySource: client._options.apiKey,
58160
58391
  retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
58161
58392
  retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
58162
58393
  };
@@ -58177,7 +58408,7 @@ async function $do(client, request, options) {
58177
58408
  const req = requestRes.value;
58178
58409
  const doResult = await client._do(req, {
58179
58410
  context,
58180
- errorCodes: ["404", "4XX", "5XX"],
58411
+ errorCodes: ["401", "404", "4XX", "500", "5XX"],
58181
58412
  retryConfig: context.retryConfig,
58182
58413
  retryCodes: context.retryCodes
58183
58414
  });
@@ -58185,7 +58416,10 @@ async function $do(client, request, options) {
58185
58416
  return [doResult, { status: "request-error", request: req }];
58186
58417
  }
58187
58418
  const response = doResult.value;
58188
- const [result] = await match(json(200, Attempt$inboundSchema), fail([404, "4XX"]), fail("5XX"))(response, req);
58419
+ const responseFields = {
58420
+ HttpMeta: { Response: response, Request: req }
58421
+ };
58422
+ 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
58423
  if (!result.ok) {
58190
58424
  return [result, { status: "complete", request: req, response }];
58191
58425
  }
@@ -58199,6 +58433,7 @@ var init_attemptsGet = __esm(() => {
58199
58433
  init_security();
58200
58434
  init_url();
58201
58435
  init_components();
58436
+ init_errors4();
58202
58437
  init_operations();
58203
58438
  init_async();
58204
58439
  });
@@ -58206,11 +58441,13 @@ var init_attemptsGet = __esm(() => {
58206
58441
  // src/mcp-server/tools/attemptsGet.ts
58207
58442
  var args, tool$attemptsGet;
58208
58443
  var init_attemptsGet2 = __esm(() => {
58444
+ init_v3();
58209
58445
  init_attemptsGet();
58210
58446
  init_operations();
58211
58447
  init_tools();
58212
58448
  args = {
58213
- request: GetAttemptRequest$inboundSchema
58449
+ attemptId: stringType(),
58450
+ include: GetAttemptInclude$inboundSchema.optional()
58214
58451
  };
58215
58452
  tool$attemptsGet = {
58216
58453
  name: "attempts-get",
@@ -58223,7 +58460,7 @@ When authenticated with Admin API Key, attempts from any tenant can be accessed.
58223
58460
  `,
58224
58461
  args,
58225
58462
  tool: async (client, args2, ctx) => {
58226
- const [result, apiCall] = await attemptsGet(client, args2.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
58463
+ const [result, apiCall] = await attemptsGet(client, args2.attemptId, args2.include, { fetchOptions: { signal: ctx.signal } }).$inspect();
58227
58464
  if (!result.ok) {
58228
58465
  return {
58229
58466
  content: [{ type: "text", text: result.error.message }],
@@ -58236,395 +58473,46 @@ When authenticated with Admin API Key, attempts from any tenant can be accessed.
58236
58473
  };
58237
58474
  });
58238
58475
 
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(() => {
58571
- 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;
58476
+ // src/lib/dlv.ts
58477
+ function dlv(obj, key, def, p, undef) {
58478
+ key = Array.isArray(key) ? key : key.split(".");
58479
+ for (p = 0;p < key.length; p++) {
58480
+ const k2 = key[p];
58481
+ obj = k2 != null && obj ? obj[k2] : undef;
58482
+ }
58483
+ return obj === undef ? def : obj;
58484
+ }
58485
+
58486
+ // src/types/operations.ts
58487
+ function createPageIterator(page, halt) {
58488
+ return {
58489
+ [Symbol.asyncIterator]: async function* paginator() {
58490
+ yield page;
58491
+ if (halt(page)) {
58492
+ return;
58493
+ }
58494
+ let p = page;
58495
+ for (p = await p.next();p != null; p = await p.next()) {
58496
+ yield p;
58497
+ if (halt(p)) {
58498
+ return;
58499
+ }
58584
58500
  }
58585
- this.name = "UnauthorizedError";
58586
58501
  }
58587
58502
  };
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();
58503
+ }
58504
+ function haltIterator(v2) {
58505
+ return {
58506
+ ...v2,
58507
+ next: () => null,
58508
+ [Symbol.asyncIterator]: async function* paginator() {
58509
+ yield v2;
58510
+ }
58511
+ };
58512
+ }
58513
+ var URL_OVERRIDE;
58514
+ var init_operations2 = __esm(() => {
58515
+ URL_OVERRIDE = Symbol("URL_OVERRIDE");
58628
58516
  });
58629
58517
 
58630
58518
  // src/funcs/attemptsList.ts
@@ -58632,9 +58520,9 @@ function attemptsList(client, request, options) {
58632
58520
  return new APIPromise($do2(client, request, options));
58633
58521
  }
58634
58522
  async function $do2(client, request, options) {
58635
- const parsed = safeParse4(request, (value) => AdminListAttemptsRequest$outboundSchema.parse(value), "Input validation failed");
58523
+ const parsed = safeParse4(request, (value) => ListAttemptsRequest$outboundSchema.parse(value), "Input validation failed");
58636
58524
  if (!parsed.ok) {
58637
- return [parsed, { status: "invalid" }];
58525
+ return [haltIterator(parsed), { status: "invalid" }];
58638
58526
  }
58639
58527
  const payload = parsed.value;
58640
58528
  const body = null;
@@ -58650,22 +58538,25 @@ async function $do2(client, request, options) {
58650
58538
  prev: payload.prev,
58651
58539
  status: payload.status,
58652
58540
  tenant_id: payload.tenant_id,
58541
+ "time[gt]": payload["time[gt]"],
58653
58542
  "time[gte]": payload["time[gte]"],
58543
+ "time[lt]": payload["time[lt]"],
58654
58544
  "time[lte]": payload["time[lte]"],
58655
58545
  topic: payload.topic
58656
58546
  });
58657
58547
  const headers = new Headers(compactMap({
58658
58548
  Accept: "application/json"
58659
58549
  }));
58660
- const securityInput = await extractSecurity(client._options.security);
58550
+ const secConfig = await extractSecurity(client._options.apiKey);
58551
+ const securityInput = secConfig == null ? {} : { apiKey: secConfig };
58661
58552
  const requestSecurity = resolveGlobalSecurity(securityInput);
58662
58553
  const context = {
58663
58554
  options: client._options,
58664
58555
  baseURL: options?.serverURL ?? client._baseURL ?? "",
58665
- operationID: "adminListAttempts",
58556
+ operationID: "listAttempts",
58666
58557
  oAuth2Scopes: null,
58667
58558
  resolvedSecurity: requestSecurity,
58668
- securitySource: client._options.security,
58559
+ securitySource: client._options.apiKey,
58669
58560
  retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
58670
58561
  retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
58671
58562
  };
@@ -58681,27 +58572,60 @@ async function $do2(client, request, options) {
58681
58572
  timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
58682
58573
  }, options);
58683
58574
  if (!requestRes.ok) {
58684
- return [requestRes, { status: "invalid" }];
58575
+ return [haltIterator(requestRes), { status: "invalid" }];
58685
58576
  }
58686
58577
  const req = requestRes.value;
58687
58578
  const doResult = await client._do(req, {
58688
58579
  context,
58689
- errorCodes: ["401", "422", "4XX", "5XX"],
58580
+ errorCodes: ["401", "4XX", "500", "5XX"],
58690
58581
  retryConfig: context.retryConfig,
58691
58582
  retryCodes: context.retryCodes
58692
58583
  });
58693
58584
  if (!doResult.ok) {
58694
- return [doResult, { status: "request-error", request: req }];
58585
+ return [haltIterator(doResult), { status: "request-error", request: req }];
58695
58586
  }
58696
58587
  const response = doResult.value;
58697
58588
  const responseFields = {
58698
58589
  HttpMeta: { Response: response, Request: req }
58699
58590
  };
58700
- const [result] = await match(json(200, AttemptPaginatedResult$inboundSchema), jsonErr(422, APIErrorResponse$inboundSchema), fail([401, "4XX"]), fail("5XX"))(response, req, { extraFields: responseFields });
58591
+ const [result, raw] = await match(json(200, ListAttemptsResponse$inboundSchema, {
58592
+ key: "Result"
58593
+ }), jsonErr(401, UnauthorizedError$inboundSchema), jsonErr(500, InternalServerError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
58701
58594
  if (!result.ok) {
58702
- return [result, { status: "complete", request: req, response }];
58703
- }
58704
- return [result, { status: "complete", request: req, response }];
58595
+ return [haltIterator(result), {
58596
+ status: "complete",
58597
+ request: req,
58598
+ response
58599
+ }];
58600
+ }
58601
+ const nextFunc = (responseData) => {
58602
+ const nextCursor = dlv(responseData, "pagination.next");
58603
+ if (typeof nextCursor !== "string") {
58604
+ return { next: () => null };
58605
+ }
58606
+ if (nextCursor.trim() === "") {
58607
+ return { next: () => null };
58608
+ }
58609
+ const results = dlv(responseData, "models");
58610
+ if (!Array.isArray(results) || !results.length) {
58611
+ return { next: () => null };
58612
+ }
58613
+ const limit = request?.limit ?? 100;
58614
+ if (results.length < limit) {
58615
+ return { next: () => null };
58616
+ }
58617
+ const nextVal = () => attemptsList(client, {
58618
+ ...request,
58619
+ next: nextCursor
58620
+ }, options);
58621
+ return { next: nextVal, "~next": { cursor: nextCursor } };
58622
+ };
58623
+ const page = { ...result, ...nextFunc(raw) };
58624
+ return [{ ...page, ...createPageIterator(page, (v2) => !v2.ok) }, {
58625
+ status: "complete",
58626
+ request: req,
58627
+ response
58628
+ }];
58705
58629
  }
58706
58630
  var init_attemptsList = __esm(() => {
58707
58631
  init_encodings();
@@ -58710,10 +58634,10 @@ var init_attemptsList = __esm(() => {
58710
58634
  init_schemas4();
58711
58635
  init_security();
58712
58636
  init_url();
58713
- init_components();
58714
58637
  init_errors4();
58715
58638
  init_operations();
58716
58639
  init_async();
58640
+ init_operations2();
58717
58641
  });
58718
58642
 
58719
58643
  // src/mcp-server/tools/attemptsList.ts
@@ -58723,15 +58647,16 @@ var init_attemptsList2 = __esm(() => {
58723
58647
  init_operations();
58724
58648
  init_tools();
58725
58649
  args2 = {
58726
- request: AdminListAttemptsRequest$inboundSchema
58650
+ request: ListAttemptsRequest$inboundSchema
58727
58651
  };
58728
58652
  tool$attemptsList = {
58729
58653
  name: "attempts-list",
58730
- description: `List Attempts (Admin)
58654
+ description: `List Attempts
58731
58655
 
58732
- Retrieves a paginated list of attempts across all tenants. This is an admin-only endpoint that requires the Admin API Key.
58656
+ Retrieves a paginated list of attempts.
58733
58657
 
58734
- When \`tenant_id\` is not provided, returns attempts from all tenants. When \`tenant_id\` is provided, returns only attempts for that tenant.
58658
+ When authenticated with a Tenant JWT, returns only attempts belonging to that tenant.
58659
+ When authenticated with Admin API Key, returns attempts across all tenants. Use \`tenant_id\` query parameter to filter by tenant.
58735
58660
  `,
58736
58661
  args: args2,
58737
58662
  tool: async (client, args3, ctx) => {
@@ -58742,7 +58667,7 @@ When \`tenant_id\` is not provided, returns attempts from all tenants. When \`te
58742
58667
  isError: true
58743
58668
  };
58744
58669
  }
58745
- const value = result.value;
58670
+ const value = result.value.result;
58746
58671
  return formatResult(value, apiCall);
58747
58672
  }
58748
58673
  };
@@ -58764,7 +58689,8 @@ async function $do3(client, request, options) {
58764
58689
  "Content-Type": "application/json",
58765
58690
  Accept: "application/json"
58766
58691
  }));
58767
- const securityInput = await extractSecurity(client._options.security);
58692
+ const secConfig = await extractSecurity(client._options.apiKey);
58693
+ const securityInput = secConfig == null ? {} : { apiKey: secConfig };
58768
58694
  const requestSecurity = resolveGlobalSecurity(securityInput);
58769
58695
  const context = {
58770
58696
  options: client._options,
@@ -58772,7 +58698,7 @@ async function $do3(client, request, options) {
58772
58698
  operationID: "retryEvent",
58773
58699
  oAuth2Scopes: null,
58774
58700
  resolvedSecurity: requestSecurity,
58775
- securitySource: client._options.security,
58701
+ securitySource: client._options.apiKey,
58776
58702
  retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
58777
58703
  retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
58778
58704
  };
@@ -58792,7 +58718,7 @@ async function $do3(client, request, options) {
58792
58718
  const req = requestRes.value;
58793
58719
  const doResult = await client._do(req, {
58794
58720
  context,
58795
- errorCodes: ["400", "404", "422", "4XX", "5XX"],
58721
+ errorCodes: ["400", "401", "404", "4XX", "500", "5XX"],
58796
58722
  retryConfig: context.retryConfig,
58797
58723
  retryCodes: context.retryCodes
58798
58724
  });
@@ -58803,7 +58729,7 @@ async function $do3(client, request, options) {
58803
58729
  const responseFields = {
58804
58730
  HttpMeta: { Response: response, Request: req }
58805
58731
  };
58806
- const [result] = await match(json(202, SuccessResponse$inboundSchema), jsonErr(422, APIErrorResponse$inboundSchema), fail([400, 404, "4XX"]), fail("5XX"))(response, req, { extraFields: responseFields });
58732
+ 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
58733
  if (!result.ok) {
58808
58734
  return [result, { status: "complete", request: req, response }];
58809
58735
  }
@@ -58855,25 +58781,33 @@ When authenticated with Admin API Key, events from any tenant can be retried.
58855
58781
  });
58856
58782
 
58857
58783
  // src/funcs/destinationsCreate.ts
58858
- function destinationsCreate(client, request, options) {
58859
- return new APIPromise($do4(client, request, options));
58784
+ function destinationsCreate(client, tenantId, body, options) {
58785
+ return new APIPromise($do4(client, tenantId, body, options));
58860
58786
  }
58861
- async function $do4(client, request, options) {
58862
- const parsed = safeParse4(request, (value) => CreateTenantDestinationRequest$outboundSchema.parse(value), "Input validation failed");
58787
+ async function $do4(client, tenantId, body, options) {
58788
+ const input = {
58789
+ tenantId,
58790
+ body
58791
+ };
58792
+ const parsed = safeParse4(input, (value) => CreateTenantDestinationRequest$outboundSchema.parse(value), "Input validation failed");
58863
58793
  if (!parsed.ok) {
58864
58794
  return [parsed, { status: "invalid" }];
58865
58795
  }
58866
58796
  const payload = parsed.value;
58867
- const body = encodeJSON("body", payload.params, { explode: true });
58797
+ const body$ = encodeJSON("body", payload.body, { explode: true });
58868
58798
  const pathParams = {
58869
- tenant_id: encodeSimple("tenant_id", payload.tenant_id ?? client._options.tenantId, { explode: false, charEncoding: "percent" })
58799
+ tenant_id: encodeSimple("tenant_id", payload.tenant_id, {
58800
+ explode: false,
58801
+ charEncoding: "percent"
58802
+ })
58870
58803
  };
58871
58804
  const path = pathToFunc("/tenants/{tenant_id}/destinations")(pathParams);
58872
58805
  const headers = new Headers(compactMap({
58873
58806
  "Content-Type": "application/json",
58874
58807
  Accept: "application/json"
58875
58808
  }));
58876
- const securityInput = await extractSecurity(client._options.security);
58809
+ const secConfig = await extractSecurity(client._options.apiKey);
58810
+ const securityInput = secConfig == null ? {} : { apiKey: secConfig };
58877
58811
  const requestSecurity = resolveGlobalSecurity(securityInput);
58878
58812
  const context = {
58879
58813
  options: client._options,
@@ -58881,7 +58815,7 @@ async function $do4(client, request, options) {
58881
58815
  operationID: "createTenantDestination",
58882
58816
  oAuth2Scopes: null,
58883
58817
  resolvedSecurity: requestSecurity,
58884
- securitySource: client._options.security,
58818
+ securitySource: client._options.apiKey,
58885
58819
  retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
58886
58820
  retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
58887
58821
  };
@@ -58891,7 +58825,7 @@ async function $do4(client, request, options) {
58891
58825
  baseURL: options?.serverURL,
58892
58826
  path,
58893
58827
  headers,
58894
- body,
58828
+ body: body$,
58895
58829
  userAgent: client._options.userAgent,
58896
58830
  timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
58897
58831
  }, options);
@@ -58901,7 +58835,7 @@ async function $do4(client, request, options) {
58901
58835
  const req = requestRes.value;
58902
58836
  const doResult = await client._do(req, {
58903
58837
  context,
58904
- errorCodes: ["400", "404", "4XX", "5XX"],
58838
+ errorCodes: ["401", "404", "422", "4XX", "500", "5XX"],
58905
58839
  retryConfig: context.retryConfig,
58906
58840
  retryCodes: context.retryCodes
58907
58841
  });
@@ -58909,7 +58843,10 @@ async function $do4(client, request, options) {
58909
58843
  return [doResult, { status: "request-error", request: req }];
58910
58844
  }
58911
58845
  const response = doResult.value;
58912
- const [result] = await match(json(201, Destination$inboundSchema), fail([400, 404, "4XX"]), fail("5XX"))(response, req);
58846
+ const responseFields = {
58847
+ HttpMeta: { Response: response, Request: req }
58848
+ };
58849
+ 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
58850
  if (!result.ok) {
58914
58851
  return [result, { status: "complete", request: req, response }];
58915
58852
  }
@@ -58923,6 +58860,7 @@ var init_destinationsCreate = __esm(() => {
58923
58860
  init_security();
58924
58861
  init_url();
58925
58862
  init_components();
58863
+ init_errors4();
58926
58864
  init_operations();
58927
58865
  init_async();
58928
58866
  });
@@ -58930,11 +58868,13 @@ var init_destinationsCreate = __esm(() => {
58930
58868
  // src/mcp-server/tools/destinationsCreate.ts
58931
58869
  var args4, tool$destinationsCreate;
58932
58870
  var init_destinationsCreate2 = __esm(() => {
58871
+ init_v3();
58933
58872
  init_destinationsCreate();
58934
- init_operations();
58873
+ init_components();
58935
58874
  init_tools();
58936
58875
  args4 = {
58937
- request: CreateTenantDestinationRequest$inboundSchema
58876
+ tenantId: stringType(),
58877
+ body: DestinationCreate$inboundSchema
58938
58878
  };
58939
58879
  tool$destinationsCreate = {
58940
58880
  name: "destinations-create",
@@ -58943,7 +58883,7 @@ var init_destinationsCreate2 = __esm(() => {
58943
58883
  Creates a new destination for the tenant. The request body structure depends on the \`type\`.`,
58944
58884
  args: args4,
58945
58885
  tool: async (client, args5, ctx) => {
58946
- const [result, apiCall] = await destinationsCreate(client, args5.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
58886
+ const [result, apiCall] = await destinationsCreate(client, args5.tenantId, args5.body, { fetchOptions: { signal: ctx.signal } }).$inspect();
58947
58887
  if (!result.ok) {
58948
58888
  return {
58949
58889
  content: [{ type: "text", text: result.error.message }],
@@ -58957,11 +58897,15 @@ Creates a new destination for the tenant. The request body structure depends on
58957
58897
  });
58958
58898
 
58959
58899
  // src/funcs/destinationsDelete.ts
58960
- function destinationsDelete(client, request, options) {
58961
- return new APIPromise($do5(client, request, options));
58900
+ function destinationsDelete(client, tenantId, destinationId, options) {
58901
+ return new APIPromise($do5(client, tenantId, destinationId, options));
58962
58902
  }
58963
- async function $do5(client, request, options) {
58964
- const parsed = safeParse4(request, (value) => DeleteTenantDestinationRequest$outboundSchema.parse(value), "Input validation failed");
58903
+ async function $do5(client, tenantId, destinationId, options) {
58904
+ const input = {
58905
+ tenantId,
58906
+ destinationId
58907
+ };
58908
+ const parsed = safeParse4(input, (value) => DeleteTenantDestinationRequest$outboundSchema.parse(value), "Input validation failed");
58965
58909
  if (!parsed.ok) {
58966
58910
  return [parsed, { status: "invalid" }];
58967
58911
  }
@@ -58972,13 +58916,17 @@ async function $do5(client, request, options) {
58972
58916
  explode: false,
58973
58917
  charEncoding: "percent"
58974
58918
  }),
58975
- tenant_id: encodeSimple("tenant_id", payload.tenant_id ?? client._options.tenantId, { explode: false, charEncoding: "percent" })
58919
+ tenant_id: encodeSimple("tenant_id", payload.tenant_id, {
58920
+ explode: false,
58921
+ charEncoding: "percent"
58922
+ })
58976
58923
  };
58977
58924
  const path = pathToFunc("/tenants/{tenant_id}/destinations/{destination_id}")(pathParams);
58978
58925
  const headers = new Headers(compactMap({
58979
58926
  Accept: "application/json"
58980
58927
  }));
58981
- const securityInput = await extractSecurity(client._options.security);
58928
+ const secConfig = await extractSecurity(client._options.apiKey);
58929
+ const securityInput = secConfig == null ? {} : { apiKey: secConfig };
58982
58930
  const requestSecurity = resolveGlobalSecurity(securityInput);
58983
58931
  const context = {
58984
58932
  options: client._options,
@@ -58986,7 +58934,7 @@ async function $do5(client, request, options) {
58986
58934
  operationID: "deleteTenantDestination",
58987
58935
  oAuth2Scopes: null,
58988
58936
  resolvedSecurity: requestSecurity,
58989
- securitySource: client._options.security,
58937
+ securitySource: client._options.apiKey,
58990
58938
  retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
58991
58939
  retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
58992
58940
  };
@@ -59006,7 +58954,7 @@ async function $do5(client, request, options) {
59006
58954
  const req = requestRes.value;
59007
58955
  const doResult = await client._do(req, {
59008
58956
  context,
59009
- errorCodes: ["404", "4XX", "5XX"],
58957
+ errorCodes: ["401", "404", "4XX", "500", "5XX"],
59010
58958
  retryConfig: context.retryConfig,
59011
58959
  retryCodes: context.retryCodes
59012
58960
  });
@@ -59014,7 +58962,10 @@ async function $do5(client, request, options) {
59014
58962
  return [doResult, { status: "request-error", request: req }];
59015
58963
  }
59016
58964
  const response = doResult.value;
59017
- const [result] = await match(json(200, SuccessResponse$inboundSchema), fail([404, "4XX"]), fail("5XX"))(response, req);
58965
+ const responseFields = {
58966
+ HttpMeta: { Response: response, Request: req }
58967
+ };
58968
+ 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
58969
  if (!result.ok) {
59019
58970
  return [result, { status: "complete", request: req, response }];
59020
58971
  }
@@ -59028,6 +58979,7 @@ var init_destinationsDelete = __esm(() => {
59028
58979
  init_security();
59029
58980
  init_url();
59030
58981
  init_components();
58982
+ init_errors4();
59031
58983
  init_operations();
59032
58984
  init_async();
59033
58985
  });
@@ -59035,11 +58987,12 @@ var init_destinationsDelete = __esm(() => {
59035
58987
  // src/mcp-server/tools/destinationsDelete.ts
59036
58988
  var args5, tool$destinationsDelete;
59037
58989
  var init_destinationsDelete2 = __esm(() => {
58990
+ init_v3();
59038
58991
  init_destinationsDelete();
59039
- init_operations();
59040
58992
  init_tools();
59041
58993
  args5 = {
59042
- request: DeleteTenantDestinationRequest$inboundSchema
58994
+ tenantId: stringType(),
58995
+ destinationId: stringType()
59043
58996
  };
59044
58997
  tool$destinationsDelete = {
59045
58998
  name: "destinations-delete",
@@ -59048,7 +59001,7 @@ var init_destinationsDelete2 = __esm(() => {
59048
59001
  Deletes a specific destination.`,
59049
59002
  args: args5,
59050
59003
  tool: async (client, args6, ctx) => {
59051
- const [result, apiCall] = await destinationsDelete(client, args6.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
59004
+ const [result, apiCall] = await destinationsDelete(client, args6.tenantId, args6.destinationId, { fetchOptions: { signal: ctx.signal } }).$inspect();
59052
59005
  if (!result.ok) {
59053
59006
  return {
59054
59007
  content: [{ type: "text", text: result.error.message }],
@@ -59062,11 +59015,15 @@ Deletes a specific destination.`,
59062
59015
  });
59063
59016
 
59064
59017
  // src/funcs/destinationsDisable.ts
59065
- function destinationsDisable(client, request, options) {
59066
- return new APIPromise($do6(client, request, options));
59018
+ function destinationsDisable(client, tenantId, destinationId, options) {
59019
+ return new APIPromise($do6(client, tenantId, destinationId, options));
59067
59020
  }
59068
- async function $do6(client, request, options) {
59069
- const parsed = safeParse4(request, (value) => DisableTenantDestinationRequest$outboundSchema.parse(value), "Input validation failed");
59021
+ async function $do6(client, tenantId, destinationId, options) {
59022
+ const input = {
59023
+ tenantId,
59024
+ destinationId
59025
+ };
59026
+ const parsed = safeParse4(input, (value) => DisableTenantDestinationRequest$outboundSchema.parse(value), "Input validation failed");
59070
59027
  if (!parsed.ok) {
59071
59028
  return [parsed, { status: "invalid" }];
59072
59029
  }
@@ -59077,13 +59034,17 @@ async function $do6(client, request, options) {
59077
59034
  explode: false,
59078
59035
  charEncoding: "percent"
59079
59036
  }),
59080
- tenant_id: encodeSimple("tenant_id", payload.tenant_id ?? client._options.tenantId, { explode: false, charEncoding: "percent" })
59037
+ tenant_id: encodeSimple("tenant_id", payload.tenant_id, {
59038
+ explode: false,
59039
+ charEncoding: "percent"
59040
+ })
59081
59041
  };
59082
59042
  const path = pathToFunc("/tenants/{tenant_id}/destinations/{destination_id}/disable")(pathParams);
59083
59043
  const headers = new Headers(compactMap({
59084
59044
  Accept: "application/json"
59085
59045
  }));
59086
- const securityInput = await extractSecurity(client._options.security);
59046
+ const secConfig = await extractSecurity(client._options.apiKey);
59047
+ const securityInput = secConfig == null ? {} : { apiKey: secConfig };
59087
59048
  const requestSecurity = resolveGlobalSecurity(securityInput);
59088
59049
  const context = {
59089
59050
  options: client._options,
@@ -59091,7 +59052,7 @@ async function $do6(client, request, options) {
59091
59052
  operationID: "disableTenantDestination",
59092
59053
  oAuth2Scopes: null,
59093
59054
  resolvedSecurity: requestSecurity,
59094
- securitySource: client._options.security,
59055
+ securitySource: client._options.apiKey,
59095
59056
  retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
59096
59057
  retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
59097
59058
  };
@@ -59111,7 +59072,7 @@ async function $do6(client, request, options) {
59111
59072
  const req = requestRes.value;
59112
59073
  const doResult = await client._do(req, {
59113
59074
  context,
59114
- errorCodes: ["404", "4XX", "5XX"],
59075
+ errorCodes: ["401", "404", "4XX", "500", "5XX"],
59115
59076
  retryConfig: context.retryConfig,
59116
59077
  retryCodes: context.retryCodes
59117
59078
  });
@@ -59119,7 +59080,10 @@ async function $do6(client, request, options) {
59119
59080
  return [doResult, { status: "request-error", request: req }];
59120
59081
  }
59121
59082
  const response = doResult.value;
59122
- const [result] = await match(json(200, Destination$inboundSchema), fail([404, "4XX"]), fail("5XX"))(response, req);
59083
+ const responseFields = {
59084
+ HttpMeta: { Response: response, Request: req }
59085
+ };
59086
+ 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
59087
  if (!result.ok) {
59124
59088
  return [result, { status: "complete", request: req, response }];
59125
59089
  }
@@ -59133,6 +59097,7 @@ var init_destinationsDisable = __esm(() => {
59133
59097
  init_security();
59134
59098
  init_url();
59135
59099
  init_components();
59100
+ init_errors4();
59136
59101
  init_operations();
59137
59102
  init_async();
59138
59103
  });
@@ -59140,11 +59105,12 @@ var init_destinationsDisable = __esm(() => {
59140
59105
  // src/mcp-server/tools/destinationsDisable.ts
59141
59106
  var args6, tool$destinationsDisable;
59142
59107
  var init_destinationsDisable2 = __esm(() => {
59108
+ init_v3();
59143
59109
  init_destinationsDisable();
59144
- init_operations();
59145
59110
  init_tools();
59146
59111
  args6 = {
59147
- request: DisableTenantDestinationRequest$inboundSchema
59112
+ tenantId: stringType(),
59113
+ destinationId: stringType()
59148
59114
  };
59149
59115
  tool$destinationsDisable = {
59150
59116
  name: "destinations-disable",
@@ -59153,7 +59119,7 @@ var init_destinationsDisable2 = __esm(() => {
59153
59119
  Disables a previously enabled destination.`,
59154
59120
  args: args6,
59155
59121
  tool: async (client, args7, ctx) => {
59156
- const [result, apiCall] = await destinationsDisable(client, args7.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
59122
+ const [result, apiCall] = await destinationsDisable(client, args7.tenantId, args7.destinationId, { fetchOptions: { signal: ctx.signal } }).$inspect();
59157
59123
  if (!result.ok) {
59158
59124
  return {
59159
59125
  content: [{ type: "text", text: result.error.message }],
@@ -59167,11 +59133,15 @@ Disables a previously enabled destination.`,
59167
59133
  });
59168
59134
 
59169
59135
  // src/funcs/destinationsEnable.ts
59170
- function destinationsEnable(client, request, options) {
59171
- return new APIPromise($do7(client, request, options));
59136
+ function destinationsEnable(client, tenantId, destinationId, options) {
59137
+ return new APIPromise($do7(client, tenantId, destinationId, options));
59172
59138
  }
59173
- async function $do7(client, request, options) {
59174
- const parsed = safeParse4(request, (value) => EnableTenantDestinationRequest$outboundSchema.parse(value), "Input validation failed");
59139
+ async function $do7(client, tenantId, destinationId, options) {
59140
+ const input = {
59141
+ tenantId,
59142
+ destinationId
59143
+ };
59144
+ const parsed = safeParse4(input, (value) => EnableTenantDestinationRequest$outboundSchema.parse(value), "Input validation failed");
59175
59145
  if (!parsed.ok) {
59176
59146
  return [parsed, { status: "invalid" }];
59177
59147
  }
@@ -59182,13 +59152,17 @@ async function $do7(client, request, options) {
59182
59152
  explode: false,
59183
59153
  charEncoding: "percent"
59184
59154
  }),
59185
- tenant_id: encodeSimple("tenant_id", payload.tenant_id ?? client._options.tenantId, { explode: false, charEncoding: "percent" })
59155
+ tenant_id: encodeSimple("tenant_id", payload.tenant_id, {
59156
+ explode: false,
59157
+ charEncoding: "percent"
59158
+ })
59186
59159
  };
59187
59160
  const path = pathToFunc("/tenants/{tenant_id}/destinations/{destination_id}/enable")(pathParams);
59188
59161
  const headers = new Headers(compactMap({
59189
59162
  Accept: "application/json"
59190
59163
  }));
59191
- const securityInput = await extractSecurity(client._options.security);
59164
+ const secConfig = await extractSecurity(client._options.apiKey);
59165
+ const securityInput = secConfig == null ? {} : { apiKey: secConfig };
59192
59166
  const requestSecurity = resolveGlobalSecurity(securityInput);
59193
59167
  const context = {
59194
59168
  options: client._options,
@@ -59196,7 +59170,7 @@ async function $do7(client, request, options) {
59196
59170
  operationID: "enableTenantDestination",
59197
59171
  oAuth2Scopes: null,
59198
59172
  resolvedSecurity: requestSecurity,
59199
- securitySource: client._options.security,
59173
+ securitySource: client._options.apiKey,
59200
59174
  retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
59201
59175
  retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
59202
59176
  };
@@ -59216,7 +59190,7 @@ async function $do7(client, request, options) {
59216
59190
  const req = requestRes.value;
59217
59191
  const doResult = await client._do(req, {
59218
59192
  context,
59219
- errorCodes: ["404", "4XX", "5XX"],
59193
+ errorCodes: ["401", "404", "4XX", "500", "5XX"],
59220
59194
  retryConfig: context.retryConfig,
59221
59195
  retryCodes: context.retryCodes
59222
59196
  });
@@ -59224,7 +59198,10 @@ async function $do7(client, request, options) {
59224
59198
  return [doResult, { status: "request-error", request: req }];
59225
59199
  }
59226
59200
  const response = doResult.value;
59227
- const [result] = await match(json(200, Destination$inboundSchema), fail([404, "4XX"]), fail("5XX"))(response, req);
59201
+ const responseFields = {
59202
+ HttpMeta: { Response: response, Request: req }
59203
+ };
59204
+ 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
59205
  if (!result.ok) {
59229
59206
  return [result, { status: "complete", request: req, response }];
59230
59207
  }
@@ -59238,6 +59215,7 @@ var init_destinationsEnable = __esm(() => {
59238
59215
  init_security();
59239
59216
  init_url();
59240
59217
  init_components();
59218
+ init_errors4();
59241
59219
  init_operations();
59242
59220
  init_async();
59243
59221
  });
@@ -59245,11 +59223,12 @@ var init_destinationsEnable = __esm(() => {
59245
59223
  // src/mcp-server/tools/destinationsEnable.ts
59246
59224
  var args7, tool$destinationsEnable;
59247
59225
  var init_destinationsEnable2 = __esm(() => {
59226
+ init_v3();
59248
59227
  init_destinationsEnable();
59249
- init_operations();
59250
59228
  init_tools();
59251
59229
  args7 = {
59252
- request: EnableTenantDestinationRequest$inboundSchema
59230
+ tenantId: stringType(),
59231
+ destinationId: stringType()
59253
59232
  };
59254
59233
  tool$destinationsEnable = {
59255
59234
  name: "destinations-enable",
@@ -59258,7 +59237,7 @@ var init_destinationsEnable2 = __esm(() => {
59258
59237
  Enables a previously disabled destination.`,
59259
59238
  args: args7,
59260
59239
  tool: async (client, args8, ctx) => {
59261
- const [result, apiCall] = await destinationsEnable(client, args8.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
59240
+ const [result, apiCall] = await destinationsEnable(client, args8.tenantId, args8.destinationId, { fetchOptions: { signal: ctx.signal } }).$inspect();
59262
59241
  if (!result.ok) {
59263
59242
  return {
59264
59243
  content: [{ type: "text", text: result.error.message }],
@@ -59272,11 +59251,15 @@ Enables a previously disabled destination.`,
59272
59251
  });
59273
59252
 
59274
59253
  // src/funcs/destinationsGet.ts
59275
- function destinationsGet(client, request, options) {
59276
- return new APIPromise($do8(client, request, options));
59254
+ function destinationsGet(client, tenantId, destinationId, options) {
59255
+ return new APIPromise($do8(client, tenantId, destinationId, options));
59277
59256
  }
59278
- async function $do8(client, request, options) {
59279
- const parsed = safeParse4(request, (value) => GetTenantDestinationRequest$outboundSchema.parse(value), "Input validation failed");
59257
+ async function $do8(client, tenantId, destinationId, options) {
59258
+ const input = {
59259
+ tenantId,
59260
+ destinationId
59261
+ };
59262
+ const parsed = safeParse4(input, (value) => GetTenantDestinationRequest$outboundSchema.parse(value), "Input validation failed");
59280
59263
  if (!parsed.ok) {
59281
59264
  return [parsed, { status: "invalid" }];
59282
59265
  }
@@ -59287,13 +59270,17 @@ async function $do8(client, request, options) {
59287
59270
  explode: false,
59288
59271
  charEncoding: "percent"
59289
59272
  }),
59290
- tenant_id: encodeSimple("tenant_id", payload.tenant_id ?? client._options.tenantId, { explode: false, charEncoding: "percent" })
59273
+ tenant_id: encodeSimple("tenant_id", payload.tenant_id, {
59274
+ explode: false,
59275
+ charEncoding: "percent"
59276
+ })
59291
59277
  };
59292
59278
  const path = pathToFunc("/tenants/{tenant_id}/destinations/{destination_id}")(pathParams);
59293
59279
  const headers = new Headers(compactMap({
59294
59280
  Accept: "application/json"
59295
59281
  }));
59296
- const securityInput = await extractSecurity(client._options.security);
59282
+ const secConfig = await extractSecurity(client._options.apiKey);
59283
+ const securityInput = secConfig == null ? {} : { apiKey: secConfig };
59297
59284
  const requestSecurity = resolveGlobalSecurity(securityInput);
59298
59285
  const context = {
59299
59286
  options: client._options,
@@ -59301,7 +59288,7 @@ async function $do8(client, request, options) {
59301
59288
  operationID: "getTenantDestination",
59302
59289
  oAuth2Scopes: null,
59303
59290
  resolvedSecurity: requestSecurity,
59304
- securitySource: client._options.security,
59291
+ securitySource: client._options.apiKey,
59305
59292
  retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
59306
59293
  retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
59307
59294
  };
@@ -59321,7 +59308,7 @@ async function $do8(client, request, options) {
59321
59308
  const req = requestRes.value;
59322
59309
  const doResult = await client._do(req, {
59323
59310
  context,
59324
- errorCodes: ["404", "4XX", "5XX"],
59311
+ errorCodes: ["401", "404", "4XX", "500", "5XX"],
59325
59312
  retryConfig: context.retryConfig,
59326
59313
  retryCodes: context.retryCodes
59327
59314
  });
@@ -59329,7 +59316,10 @@ async function $do8(client, request, options) {
59329
59316
  return [doResult, { status: "request-error", request: req }];
59330
59317
  }
59331
59318
  const response = doResult.value;
59332
- const [result] = await match(json(200, Destination$inboundSchema), fail([404, "4XX"]), fail("5XX"))(response, req);
59319
+ const responseFields = {
59320
+ HttpMeta: { Response: response, Request: req }
59321
+ };
59322
+ 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
59323
  if (!result.ok) {
59334
59324
  return [result, { status: "complete", request: req, response }];
59335
59325
  }
@@ -59343,6 +59333,7 @@ var init_destinationsGet = __esm(() => {
59343
59333
  init_security();
59344
59334
  init_url();
59345
59335
  init_components();
59336
+ init_errors4();
59346
59337
  init_operations();
59347
59338
  init_async();
59348
59339
  });
@@ -59350,11 +59341,12 @@ var init_destinationsGet = __esm(() => {
59350
59341
  // src/mcp-server/tools/destinationsGet.ts
59351
59342
  var args8, tool$destinationsGet;
59352
59343
  var init_destinationsGet2 = __esm(() => {
59344
+ init_v3();
59353
59345
  init_destinationsGet();
59354
- init_operations();
59355
59346
  init_tools();
59356
59347
  args8 = {
59357
- request: GetTenantDestinationRequest$inboundSchema
59348
+ tenantId: stringType(),
59349
+ destinationId: stringType()
59358
59350
  };
59359
59351
  tool$destinationsGet = {
59360
59352
  name: "destinations-get",
@@ -59363,7 +59355,7 @@ var init_destinationsGet2 = __esm(() => {
59363
59355
  Retrieves details for a specific destination.`,
59364
59356
  args: args8,
59365
59357
  tool: async (client, args9, ctx) => {
59366
- const [result, apiCall] = await destinationsGet(client, args9.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
59358
+ const [result, apiCall] = await destinationsGet(client, args9.tenantId, args9.destinationId, { fetchOptions: { signal: ctx.signal } }).$inspect();
59367
59359
  if (!result.ok) {
59368
59360
  return {
59369
59361
  content: [{ type: "text", text: result.error.message }],
@@ -59377,11 +59369,17 @@ Retrieves details for a specific destination.`,
59377
59369
  });
59378
59370
 
59379
59371
  // src/funcs/destinationsGetAttempt.ts
59380
- function destinationsGetAttempt(client, request, options) {
59381
- return new APIPromise($do9(client, request, options));
59372
+ function destinationsGetAttempt(client, tenantId, destinationId, attemptId, include, options) {
59373
+ return new APIPromise($do9(client, tenantId, destinationId, attemptId, include, options));
59382
59374
  }
59383
- async function $do9(client, request, options) {
59384
- const parsed = safeParse4(request, (value) => GetTenantDestinationAttemptRequest$outboundSchema.parse(value), "Input validation failed");
59375
+ async function $do9(client, tenantId, destinationId, attemptId, include, options) {
59376
+ const input = {
59377
+ tenantId,
59378
+ destinationId,
59379
+ attemptId,
59380
+ include
59381
+ };
59382
+ const parsed = safeParse4(input, (value) => GetTenantDestinationAttemptRequest$outboundSchema.parse(value), "Input validation failed");
59385
59383
  if (!parsed.ok) {
59386
59384
  return [parsed, { status: "invalid" }];
59387
59385
  }
@@ -59396,7 +59394,10 @@ async function $do9(client, request, options) {
59396
59394
  explode: false,
59397
59395
  charEncoding: "percent"
59398
59396
  }),
59399
- tenant_id: encodeSimple("tenant_id", payload.tenant_id ?? client._options.tenantId, { explode: false, charEncoding: "percent" })
59397
+ tenant_id: encodeSimple("tenant_id", payload.tenant_id, {
59398
+ explode: false,
59399
+ charEncoding: "percent"
59400
+ })
59400
59401
  };
59401
59402
  const path = pathToFunc("/tenants/{tenant_id}/destinations/{destination_id}/attempts/{attempt_id}")(pathParams);
59402
59403
  const query = encodeFormQuery({
@@ -59405,7 +59406,8 @@ async function $do9(client, request, options) {
59405
59406
  const headers = new Headers(compactMap({
59406
59407
  Accept: "application/json"
59407
59408
  }));
59408
- const securityInput = await extractSecurity(client._options.security);
59409
+ const secConfig = await extractSecurity(client._options.apiKey);
59410
+ const securityInput = secConfig == null ? {} : { apiKey: secConfig };
59409
59411
  const requestSecurity = resolveGlobalSecurity(securityInput);
59410
59412
  const context = {
59411
59413
  options: client._options,
@@ -59413,7 +59415,7 @@ async function $do9(client, request, options) {
59413
59415
  operationID: "getTenantDestinationAttempt",
59414
59416
  oAuth2Scopes: null,
59415
59417
  resolvedSecurity: requestSecurity,
59416
- securitySource: client._options.security,
59418
+ securitySource: client._options.apiKey,
59417
59419
  retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
59418
59420
  retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
59419
59421
  };
@@ -59434,7 +59436,7 @@ async function $do9(client, request, options) {
59434
59436
  const req = requestRes.value;
59435
59437
  const doResult = await client._do(req, {
59436
59438
  context,
59437
- errorCodes: ["404", "4XX", "5XX"],
59439
+ errorCodes: ["401", "404", "4XX", "500", "5XX"],
59438
59440
  retryConfig: context.retryConfig,
59439
59441
  retryCodes: context.retryCodes
59440
59442
  });
@@ -59442,7 +59444,10 @@ async function $do9(client, request, options) {
59442
59444
  return [doResult, { status: "request-error", request: req }];
59443
59445
  }
59444
59446
  const response = doResult.value;
59445
- const [result] = await match(json(200, Attempt$inboundSchema), fail([404, "4XX"]), fail("5XX"))(response, req);
59447
+ const responseFields = {
59448
+ HttpMeta: { Response: response, Request: req }
59449
+ };
59450
+ 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
59451
  if (!result.ok) {
59447
59452
  return [result, { status: "complete", request: req, response }];
59448
59453
  }
@@ -59456,6 +59461,7 @@ var init_destinationsGetAttempt = __esm(() => {
59456
59461
  init_security();
59457
59462
  init_url();
59458
59463
  init_components();
59464
+ init_errors4();
59459
59465
  init_operations();
59460
59466
  init_async();
59461
59467
  });
@@ -59463,11 +59469,15 @@ var init_destinationsGetAttempt = __esm(() => {
59463
59469
  // src/mcp-server/tools/destinationsGetAttempt.ts
59464
59470
  var args9, tool$destinationsGetAttempt;
59465
59471
  var init_destinationsGetAttempt2 = __esm(() => {
59472
+ init_v3();
59466
59473
  init_destinationsGetAttempt();
59467
59474
  init_operations();
59468
59475
  init_tools();
59469
59476
  args9 = {
59470
- request: GetTenantDestinationAttemptRequest$inboundSchema
59477
+ tenantId: stringType(),
59478
+ destinationId: stringType(),
59479
+ attemptId: stringType(),
59480
+ include: GetTenantDestinationAttemptInclude$inboundSchema.optional()
59471
59481
  };
59472
59482
  tool$destinationsGetAttempt = {
59473
59483
  name: "destinations-get-attempt",
@@ -59476,7 +59486,7 @@ var init_destinationsGetAttempt2 = __esm(() => {
59476
59486
  Retrieves details for a specific attempt scoped to a destination.`,
59477
59487
  args: args9,
59478
59488
  tool: async (client, args10, ctx) => {
59479
- const [result, apiCall] = await destinationsGetAttempt(client, args10.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
59489
+ const [result, apiCall] = await destinationsGetAttempt(client, args10.tenantId, args10.destinationId, args10.attemptId, args10.include, { fetchOptions: { signal: ctx.signal } }).$inspect();
59480
59490
  if (!result.ok) {
59481
59491
  return {
59482
59492
  content: [{ type: "text", text: result.error.message }],
@@ -59490,18 +59500,26 @@ Retrieves details for a specific attempt scoped to a destination.`,
59490
59500
  });
59491
59501
 
59492
59502
  // src/funcs/destinationsList.ts
59493
- function destinationsList(client, request, options) {
59494
- return new APIPromise($do10(client, request, options));
59503
+ function destinationsList(client, tenantId, type, topics2, options) {
59504
+ return new APIPromise($do10(client, tenantId, type, topics2, options));
59495
59505
  }
59496
- async function $do10(client, request, options) {
59497
- const parsed = safeParse4(request, (value) => ListTenantDestinationsRequest$outboundSchema.parse(value), "Input validation failed");
59506
+ async function $do10(client, tenantId, type, topics2, options) {
59507
+ const input = {
59508
+ tenantId,
59509
+ type,
59510
+ topics: topics2
59511
+ };
59512
+ const parsed = safeParse4(input, (value) => ListTenantDestinationsRequest$outboundSchema.parse(value), "Input validation failed");
59498
59513
  if (!parsed.ok) {
59499
59514
  return [parsed, { status: "invalid" }];
59500
59515
  }
59501
59516
  const payload = parsed.value;
59502
59517
  const body = null;
59503
59518
  const pathParams = {
59504
- tenant_id: encodeSimple("tenant_id", payload.tenant_id ?? client._options.tenantId, { explode: false, charEncoding: "percent" })
59519
+ tenant_id: encodeSimple("tenant_id", payload.tenant_id, {
59520
+ explode: false,
59521
+ charEncoding: "percent"
59522
+ })
59505
59523
  };
59506
59524
  const path = pathToFunc("/tenants/{tenant_id}/destinations")(pathParams);
59507
59525
  const query = encodeFormQuery({
@@ -59511,7 +59529,8 @@ async function $do10(client, request, options) {
59511
59529
  const headers = new Headers(compactMap({
59512
59530
  Accept: "application/json"
59513
59531
  }));
59514
- const securityInput = await extractSecurity(client._options.security);
59532
+ const secConfig = await extractSecurity(client._options.apiKey);
59533
+ const securityInput = secConfig == null ? {} : { apiKey: secConfig };
59515
59534
  const requestSecurity = resolveGlobalSecurity(securityInput);
59516
59535
  const context = {
59517
59536
  options: client._options,
@@ -59519,7 +59538,7 @@ async function $do10(client, request, options) {
59519
59538
  operationID: "listTenantDestinations",
59520
59539
  oAuth2Scopes: null,
59521
59540
  resolvedSecurity: requestSecurity,
59522
- securitySource: client._options.security,
59541
+ securitySource: client._options.apiKey,
59523
59542
  retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
59524
59543
  retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
59525
59544
  };
@@ -59540,7 +59559,7 @@ async function $do10(client, request, options) {
59540
59559
  const req = requestRes.value;
59541
59560
  const doResult = await client._do(req, {
59542
59561
  context,
59543
- errorCodes: ["404", "4XX", "5XX"],
59562
+ errorCodes: ["401", "404", "4XX", "500", "5XX"],
59544
59563
  retryConfig: context.retryConfig,
59545
59564
  retryCodes: context.retryCodes
59546
59565
  });
@@ -59548,7 +59567,10 @@ async function $do10(client, request, options) {
59548
59567
  return [doResult, { status: "request-error", request: req }];
59549
59568
  }
59550
59569
  const response = doResult.value;
59551
- const [result] = await match(json(200, arrayType(Destination$inboundSchema)), fail([404, "4XX"]), fail("5XX"))(response, req);
59570
+ const responseFields = {
59571
+ HttpMeta: { Response: response, Request: req }
59572
+ };
59573
+ 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
59574
  if (!result.ok) {
59553
59575
  return [result, { status: "complete", request: req, response }];
59554
59576
  }
@@ -59563,6 +59585,7 @@ var init_destinationsList = __esm(() => {
59563
59585
  init_security();
59564
59586
  init_url();
59565
59587
  init_components();
59588
+ init_errors4();
59566
59589
  init_operations();
59567
59590
  init_async();
59568
59591
  });
@@ -59570,11 +59593,14 @@ var init_destinationsList = __esm(() => {
59570
59593
  // src/mcp-server/tools/destinationsList.ts
59571
59594
  var args10, tool$destinationsList;
59572
59595
  var init_destinationsList2 = __esm(() => {
59596
+ init_v3();
59573
59597
  init_destinationsList();
59574
59598
  init_operations();
59575
59599
  init_tools();
59576
59600
  args10 = {
59577
- request: ListTenantDestinationsRequest$inboundSchema
59601
+ tenantId: stringType(),
59602
+ type: ListTenantDestinationsType$inboundSchema.optional(),
59603
+ topics: Topics$inboundSchema2.optional()
59578
59604
  };
59579
59605
  tool$destinationsList = {
59580
59606
  name: "destinations-list",
@@ -59583,7 +59609,7 @@ var init_destinationsList2 = __esm(() => {
59583
59609
  Return a list of the destinations for the tenant. The endpoint is not paged.`,
59584
59610
  args: args10,
59585
59611
  tool: async (client, args11, ctx) => {
59586
- const [result, apiCall] = await destinationsList(client, args11.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
59612
+ const [result, apiCall] = await destinationsList(client, args11.tenantId, args11.type, args11.topics, { fetchOptions: { signal: ctx.signal } }).$inspect();
59587
59613
  if (!result.ok) {
59588
59614
  return {
59589
59615
  content: [{ type: "text", text: result.error.message }],
@@ -59603,7 +59629,7 @@ function destinationsListAttempts(client, request, options) {
59603
59629
  async function $do11(client, request, options) {
59604
59630
  const parsed = safeParse4(request, (value) => ListTenantDestinationAttemptsRequest$outboundSchema.parse(value), "Input validation failed");
59605
59631
  if (!parsed.ok) {
59606
- return [parsed, { status: "invalid" }];
59632
+ return [haltIterator(parsed), { status: "invalid" }];
59607
59633
  }
59608
59634
  const payload = parsed.value;
59609
59635
  const body = null;
@@ -59612,7 +59638,10 @@ async function $do11(client, request, options) {
59612
59638
  explode: false,
59613
59639
  charEncoding: "percent"
59614
59640
  }),
59615
- tenant_id: encodeSimple("tenant_id", payload.tenant_id ?? client._options.tenantId, { explode: false, charEncoding: "percent" })
59641
+ tenant_id: encodeSimple("tenant_id", payload.tenant_id, {
59642
+ explode: false,
59643
+ charEncoding: "percent"
59644
+ })
59616
59645
  };
59617
59646
  const path = pathToFunc("/tenants/{tenant_id}/destinations/{destination_id}/attempts")(pathParams);
59618
59647
  const query = encodeFormQuery({
@@ -59624,14 +59653,17 @@ async function $do11(client, request, options) {
59624
59653
  order_by: payload.order_by,
59625
59654
  prev: payload.prev,
59626
59655
  status: payload.status,
59656
+ "time[gt]": payload["time[gt]"],
59627
59657
  "time[gte]": payload["time[gte]"],
59658
+ "time[lt]": payload["time[lt]"],
59628
59659
  "time[lte]": payload["time[lte]"],
59629
59660
  topic: payload.topic
59630
59661
  });
59631
59662
  const headers = new Headers(compactMap({
59632
59663
  Accept: "application/json"
59633
59664
  }));
59634
- const securityInput = await extractSecurity(client._options.security);
59665
+ const secConfig = await extractSecurity(client._options.apiKey);
59666
+ const securityInput = secConfig == null ? {} : { apiKey: secConfig };
59635
59667
  const requestSecurity = resolveGlobalSecurity(securityInput);
59636
59668
  const context = {
59637
59669
  options: client._options,
@@ -59639,7 +59671,7 @@ async function $do11(client, request, options) {
59639
59671
  operationID: "listTenantDestinationAttempts",
59640
59672
  oAuth2Scopes: null,
59641
59673
  resolvedSecurity: requestSecurity,
59642
- securitySource: client._options.security,
59674
+ securitySource: client._options.apiKey,
59643
59675
  retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
59644
59676
  retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
59645
59677
  };
@@ -59655,27 +59687,58 @@ async function $do11(client, request, options) {
59655
59687
  timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
59656
59688
  }, options);
59657
59689
  if (!requestRes.ok) {
59658
- return [requestRes, { status: "invalid" }];
59690
+ return [haltIterator(requestRes), { status: "invalid" }];
59659
59691
  }
59660
59692
  const req = requestRes.value;
59661
59693
  const doResult = await client._do(req, {
59662
59694
  context,
59663
- errorCodes: ["404", "422", "4XX", "5XX"],
59695
+ errorCodes: ["401", "404", "4XX", "500", "5XX"],
59664
59696
  retryConfig: context.retryConfig,
59665
59697
  retryCodes: context.retryCodes
59666
59698
  });
59667
59699
  if (!doResult.ok) {
59668
- return [doResult, { status: "request-error", request: req }];
59700
+ return [haltIterator(doResult), { status: "request-error", request: req }];
59669
59701
  }
59670
59702
  const response = doResult.value;
59671
59703
  const responseFields = {
59672
59704
  HttpMeta: { Response: response, Request: req }
59673
59705
  };
59674
- const [result] = await match(json(200, AttemptPaginatedResult$inboundSchema), jsonErr(422, APIErrorResponse$inboundSchema), fail([404, "4XX"]), fail("5XX"))(response, req, { extraFields: responseFields });
59706
+ const [result, raw] = await match(json(200, ListTenantDestinationAttemptsResponse$inboundSchema, { key: "Result" }), jsonErr(401, UnauthorizedError$inboundSchema), jsonErr(404, NotFoundError$inboundSchema), jsonErr(500, InternalServerError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
59675
59707
  if (!result.ok) {
59676
- return [result, { status: "complete", request: req, response }];
59677
- }
59678
- return [result, { status: "complete", request: req, response }];
59708
+ return [haltIterator(result), {
59709
+ status: "complete",
59710
+ request: req,
59711
+ response
59712
+ }];
59713
+ }
59714
+ const nextFunc = (responseData) => {
59715
+ const nextCursor = dlv(responseData, "pagination.next");
59716
+ if (typeof nextCursor !== "string") {
59717
+ return { next: () => null };
59718
+ }
59719
+ if (nextCursor.trim() === "") {
59720
+ return { next: () => null };
59721
+ }
59722
+ const results = dlv(responseData, "models");
59723
+ if (!Array.isArray(results) || !results.length) {
59724
+ return { next: () => null };
59725
+ }
59726
+ const limit = request?.limit ?? 100;
59727
+ if (results.length < limit) {
59728
+ return { next: () => null };
59729
+ }
59730
+ const nextVal = () => destinationsListAttempts(client, {
59731
+ ...request,
59732
+ next: nextCursor
59733
+ }, options);
59734
+ return { next: nextVal, "~next": { cursor: nextCursor } };
59735
+ };
59736
+ const page = { ...result, ...nextFunc(raw) };
59737
+ return [{ ...page, ...createPageIterator(page, (v2) => !v2.ok) }, {
59738
+ status: "complete",
59739
+ request: req,
59740
+ response
59741
+ }];
59679
59742
  }
59680
59743
  var init_destinationsListAttempts = __esm(() => {
59681
59744
  init_encodings();
@@ -59684,10 +59747,10 @@ var init_destinationsListAttempts = __esm(() => {
59684
59747
  init_schemas4();
59685
59748
  init_security();
59686
59749
  init_url();
59687
- init_components();
59688
59750
  init_errors4();
59689
59751
  init_operations();
59690
59752
  init_async();
59753
+ init_operations2();
59691
59754
  });
59692
59755
 
59693
59756
  // src/mcp-server/tools/destinationsListAttempts.ts
@@ -59713,36 +59776,45 @@ Retrieves a paginated list of attempts scoped to a specific destination.`,
59713
59776
  isError: true
59714
59777
  };
59715
59778
  }
59716
- const value = result.value;
59779
+ const value = result.value.result;
59717
59780
  return formatResult(value, apiCall);
59718
59781
  }
59719
59782
  };
59720
59783
  });
59721
59784
 
59722
59785
  // src/funcs/destinationsUpdate.ts
59723
- function destinationsUpdate(client, request, options) {
59724
- return new APIPromise($do12(client, request, options));
59786
+ function destinationsUpdate(client, tenantId, destinationId, body, options) {
59787
+ return new APIPromise($do12(client, tenantId, destinationId, body, options));
59725
59788
  }
59726
- async function $do12(client, request, options) {
59727
- const parsed = safeParse4(request, (value) => UpdateTenantDestinationRequest$outboundSchema.parse(value), "Input validation failed");
59789
+ async function $do12(client, tenantId, destinationId, body, options) {
59790
+ const input = {
59791
+ tenantId,
59792
+ destinationId,
59793
+ body
59794
+ };
59795
+ const parsed = safeParse4(input, (value) => UpdateTenantDestinationRequest$outboundSchema.parse(value), "Input validation failed");
59728
59796
  if (!parsed.ok) {
59729
59797
  return [parsed, { status: "invalid" }];
59730
59798
  }
59731
59799
  const payload = parsed.value;
59732
- const body = encodeJSON("body", payload.params, { explode: true });
59800
+ const body$ = encodeJSON("body", payload.body, { explode: true });
59733
59801
  const pathParams = {
59734
59802
  destination_id: encodeSimple("destination_id", payload.destination_id, {
59735
59803
  explode: false,
59736
59804
  charEncoding: "percent"
59737
59805
  }),
59738
- tenant_id: encodeSimple("tenant_id", payload.tenant_id ?? client._options.tenantId, { explode: false, charEncoding: "percent" })
59806
+ tenant_id: encodeSimple("tenant_id", payload.tenant_id, {
59807
+ explode: false,
59808
+ charEncoding: "percent"
59809
+ })
59739
59810
  };
59740
59811
  const path = pathToFunc("/tenants/{tenant_id}/destinations/{destination_id}")(pathParams);
59741
59812
  const headers = new Headers(compactMap({
59742
59813
  "Content-Type": "application/json",
59743
59814
  Accept: "application/json"
59744
59815
  }));
59745
- const securityInput = await extractSecurity(client._options.security);
59816
+ const secConfig = await extractSecurity(client._options.apiKey);
59817
+ const securityInput = secConfig == null ? {} : { apiKey: secConfig };
59746
59818
  const requestSecurity = resolveGlobalSecurity(securityInput);
59747
59819
  const context = {
59748
59820
  options: client._options,
@@ -59750,7 +59822,7 @@ async function $do12(client, request, options) {
59750
59822
  operationID: "updateTenantDestination",
59751
59823
  oAuth2Scopes: null,
59752
59824
  resolvedSecurity: requestSecurity,
59753
- securitySource: client._options.security,
59825
+ securitySource: client._options.apiKey,
59754
59826
  retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
59755
59827
  retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
59756
59828
  };
@@ -59760,7 +59832,7 @@ async function $do12(client, request, options) {
59760
59832
  baseURL: options?.serverURL,
59761
59833
  path,
59762
59834
  headers,
59763
- body,
59835
+ body: body$,
59764
59836
  userAgent: client._options.userAgent,
59765
59837
  timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
59766
59838
  }, options);
@@ -59770,7 +59842,7 @@ async function $do12(client, request, options) {
59770
59842
  const req = requestRes.value;
59771
59843
  const doResult = await client._do(req, {
59772
59844
  context,
59773
- errorCodes: ["400", "404", "4XX", "5XX"],
59845
+ errorCodes: ["401", "404", "422", "4XX", "500", "5XX"],
59774
59846
  retryConfig: context.retryConfig,
59775
59847
  retryCodes: context.retryCodes
59776
59848
  });
@@ -59778,7 +59850,10 @@ async function $do12(client, request, options) {
59778
59850
  return [doResult, { status: "request-error", request: req }];
59779
59851
  }
59780
59852
  const response = doResult.value;
59781
- const [result] = await match(json(200, UpdateTenantDestinationResponse$inboundSchema), fail([400, 404, "4XX"]), fail("5XX"))(response, req);
59853
+ const responseFields = {
59854
+ HttpMeta: { Response: response, Request: req }
59855
+ };
59856
+ 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
59857
  if (!result.ok) {
59783
59858
  return [result, { status: "complete", request: req, response }];
59784
59859
  }
@@ -59791,6 +59866,7 @@ var init_destinationsUpdate = __esm(() => {
59791
59866
  init_schemas4();
59792
59867
  init_security();
59793
59868
  init_url();
59869
+ init_errors4();
59794
59870
  init_operations();
59795
59871
  init_async();
59796
59872
  });
@@ -59798,11 +59874,14 @@ var init_destinationsUpdate = __esm(() => {
59798
59874
  // src/mcp-server/tools/destinationsUpdate.ts
59799
59875
  var args12, tool$destinationsUpdate;
59800
59876
  var init_destinationsUpdate2 = __esm(() => {
59877
+ init_v3();
59801
59878
  init_destinationsUpdate();
59802
- init_operations();
59879
+ init_components();
59803
59880
  init_tools();
59804
59881
  args12 = {
59805
- request: UpdateTenantDestinationRequest$inboundSchema
59882
+ tenantId: stringType(),
59883
+ destinationId: stringType(),
59884
+ body: DestinationUpdate$inboundSchema
59806
59885
  };
59807
59886
  tool$destinationsUpdate = {
59808
59887
  name: "destinations-update",
@@ -59811,7 +59890,7 @@ var init_destinationsUpdate2 = __esm(() => {
59811
59890
  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
59891
  args: args12,
59813
59892
  tool: async (client, args13, ctx) => {
59814
- const [result, apiCall] = await destinationsUpdate(client, args13.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
59893
+ const [result, apiCall] = await destinationsUpdate(client, args13.tenantId, args13.destinationId, args13.body, { fetchOptions: { signal: ctx.signal } }).$inspect();
59815
59894
  if (!result.ok) {
59816
59895
  return {
59817
59896
  content: [{ type: "text", text: result.error.message }],
@@ -59825,11 +59904,14 @@ Updates the configuration of an existing destination. The request body structure
59825
59904
  });
59826
59905
 
59827
59906
  // src/funcs/eventsGet.ts
59828
- function eventsGet(client, request, options) {
59829
- return new APIPromise($do13(client, request, options));
59907
+ function eventsGet(client, eventId, options) {
59908
+ return new APIPromise($do13(client, eventId, options));
59830
59909
  }
59831
- async function $do13(client, request, options) {
59832
- const parsed = safeParse4(request, (value) => GetEventRequest$outboundSchema.parse(value), "Input validation failed");
59910
+ async function $do13(client, eventId, options) {
59911
+ const input = {
59912
+ eventId
59913
+ };
59914
+ const parsed = safeParse4(input, (value) => GetEventRequest$outboundSchema.parse(value), "Input validation failed");
59833
59915
  if (!parsed.ok) {
59834
59916
  return [parsed, { status: "invalid" }];
59835
59917
  }
@@ -59845,7 +59927,8 @@ async function $do13(client, request, options) {
59845
59927
  const headers = new Headers(compactMap({
59846
59928
  Accept: "application/json"
59847
59929
  }));
59848
- const securityInput = await extractSecurity(client._options.security);
59930
+ const secConfig = await extractSecurity(client._options.apiKey);
59931
+ const securityInput = secConfig == null ? {} : { apiKey: secConfig };
59849
59932
  const requestSecurity = resolveGlobalSecurity(securityInput);
59850
59933
  const context = {
59851
59934
  options: client._options,
@@ -59853,7 +59936,7 @@ async function $do13(client, request, options) {
59853
59936
  operationID: "getEvent",
59854
59937
  oAuth2Scopes: null,
59855
59938
  resolvedSecurity: requestSecurity,
59856
- securitySource: client._options.security,
59939
+ securitySource: client._options.apiKey,
59857
59940
  retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
59858
59941
  retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
59859
59942
  };
@@ -59873,7 +59956,7 @@ async function $do13(client, request, options) {
59873
59956
  const req = requestRes.value;
59874
59957
  const doResult = await client._do(req, {
59875
59958
  context,
59876
- errorCodes: ["404", "4XX", "5XX"],
59959
+ errorCodes: ["401", "404", "4XX", "500", "5XX"],
59877
59960
  retryConfig: context.retryConfig,
59878
59961
  retryCodes: context.retryCodes
59879
59962
  });
@@ -59881,7 +59964,10 @@ async function $do13(client, request, options) {
59881
59964
  return [doResult, { status: "request-error", request: req }];
59882
59965
  }
59883
59966
  const response = doResult.value;
59884
- const [result] = await match(json(200, Event$inboundSchema), fail([404, "4XX"]), fail("5XX"))(response, req);
59967
+ const responseFields = {
59968
+ HttpMeta: { Response: response, Request: req }
59969
+ };
59970
+ 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
59971
  if (!result.ok) {
59886
59972
  return [result, { status: "complete", request: req, response }];
59887
59973
  }
@@ -59895,6 +59981,7 @@ var init_eventsGet = __esm(() => {
59895
59981
  init_security();
59896
59982
  init_url();
59897
59983
  init_components();
59984
+ init_errors4();
59898
59985
  init_operations();
59899
59986
  init_async();
59900
59987
  });
@@ -59902,11 +59989,11 @@ var init_eventsGet = __esm(() => {
59902
59989
  // src/mcp-server/tools/eventsGet.ts
59903
59990
  var args13, tool$eventsGet;
59904
59991
  var init_eventsGet2 = __esm(() => {
59992
+ init_v3();
59905
59993
  init_eventsGet();
59906
- init_operations();
59907
59994
  init_tools();
59908
59995
  args13 = {
59909
- request: GetEventRequest$inboundSchema
59996
+ eventId: stringType()
59910
59997
  };
59911
59998
  tool$eventsGet = {
59912
59999
  name: "events-get",
@@ -59919,7 +60006,7 @@ When authenticated with Admin API Key, events from any tenant can be accessed.
59919
60006
  `,
59920
60007
  args: args13,
59921
60008
  tool: async (client, args14, ctx) => {
59922
- const [result, apiCall] = await eventsGet(client, args14.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
60009
+ const [result, apiCall] = await eventsGet(client, args14.eventId, { fetchOptions: { signal: ctx.signal } }).$inspect();
59923
60010
  if (!result.ok) {
59924
60011
  return {
59925
60012
  content: [{ type: "text", text: result.error.message }],
@@ -59937,36 +60024,40 @@ function eventsList(client, request, options) {
59937
60024
  return new APIPromise($do14(client, request, options));
59938
60025
  }
59939
60026
  async function $do14(client, request, options) {
59940
- const parsed = safeParse4(request, (value) => AdminListEventsRequest$outboundSchema.parse(value), "Input validation failed");
60027
+ const parsed = safeParse4(request, (value) => ListEventsRequest$outboundSchema.parse(value), "Input validation failed");
59941
60028
  if (!parsed.ok) {
59942
- return [parsed, { status: "invalid" }];
60029
+ return [haltIterator(parsed), { status: "invalid" }];
59943
60030
  }
59944
60031
  const payload = parsed.value;
59945
60032
  const body = null;
59946
60033
  const path = pathToFunc("/events")();
59947
60034
  const query = encodeFormQuery({
59948
60035
  dir: payload.dir,
60036
+ id: payload.id,
59949
60037
  limit: payload.limit,
59950
60038
  next: payload.next,
59951
60039
  order_by: payload.order_by,
59952
60040
  prev: payload.prev,
59953
60041
  tenant_id: payload.tenant_id,
60042
+ "time[gt]": payload["time[gt]"],
59954
60043
  "time[gte]": payload["time[gte]"],
60044
+ "time[lt]": payload["time[lt]"],
59955
60045
  "time[lte]": payload["time[lte]"],
59956
60046
  topic: payload.topic
59957
60047
  });
59958
60048
  const headers = new Headers(compactMap({
59959
60049
  Accept: "application/json"
59960
60050
  }));
59961
- const securityInput = await extractSecurity(client._options.security);
60051
+ const secConfig = await extractSecurity(client._options.apiKey);
60052
+ const securityInput = secConfig == null ? {} : { apiKey: secConfig };
59962
60053
  const requestSecurity = resolveGlobalSecurity(securityInput);
59963
60054
  const context = {
59964
60055
  options: client._options,
59965
60056
  baseURL: options?.serverURL ?? client._baseURL ?? "",
59966
- operationID: "adminListEvents",
60057
+ operationID: "listEvents",
59967
60058
  oAuth2Scopes: null,
59968
60059
  resolvedSecurity: requestSecurity,
59969
- securitySource: client._options.security,
60060
+ securitySource: client._options.apiKey,
59970
60061
  retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
59971
60062
  retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
59972
60063
  };
@@ -59982,27 +60073,58 @@ async function $do14(client, request, options) {
59982
60073
  timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
59983
60074
  }, options);
59984
60075
  if (!requestRes.ok) {
59985
- return [requestRes, { status: "invalid" }];
60076
+ return [haltIterator(requestRes), { status: "invalid" }];
59986
60077
  }
59987
60078
  const req = requestRes.value;
59988
60079
  const doResult = await client._do(req, {
59989
60080
  context,
59990
- errorCodes: ["401", "422", "4XX", "5XX"],
60081
+ errorCodes: ["401", "4XX", "500", "5XX"],
59991
60082
  retryConfig: context.retryConfig,
59992
60083
  retryCodes: context.retryCodes
59993
60084
  });
59994
60085
  if (!doResult.ok) {
59995
- return [doResult, { status: "request-error", request: req }];
60086
+ return [haltIterator(doResult), { status: "request-error", request: req }];
59996
60087
  }
59997
60088
  const response = doResult.value;
59998
60089
  const responseFields = {
59999
60090
  HttpMeta: { Response: response, Request: req }
60000
60091
  };
60001
- const [result] = await match(json(200, EventPaginatedResult$inboundSchema), jsonErr(422, APIErrorResponse$inboundSchema), fail([401, "4XX"]), fail("5XX"))(response, req, { extraFields: responseFields });
60092
+ const [result, raw] = await match(json(200, ListEventsResponse$inboundSchema, { key: "Result" }), jsonErr(401, UnauthorizedError$inboundSchema), jsonErr(500, InternalServerError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
60002
60093
  if (!result.ok) {
60003
- return [result, { status: "complete", request: req, response }];
60004
- }
60005
- return [result, { status: "complete", request: req, response }];
60094
+ return [haltIterator(result), {
60095
+ status: "complete",
60096
+ request: req,
60097
+ response
60098
+ }];
60099
+ }
60100
+ const nextFunc = (responseData) => {
60101
+ const nextCursor = dlv(responseData, "pagination.next");
60102
+ if (typeof nextCursor !== "string") {
60103
+ return { next: () => null };
60104
+ }
60105
+ if (nextCursor.trim() === "") {
60106
+ return { next: () => null };
60107
+ }
60108
+ const results = dlv(responseData, "models");
60109
+ if (!Array.isArray(results) || !results.length) {
60110
+ return { next: () => null };
60111
+ }
60112
+ const limit = request?.limit ?? 100;
60113
+ if (results.length < limit) {
60114
+ return { next: () => null };
60115
+ }
60116
+ const nextVal = () => eventsList(client, {
60117
+ ...request,
60118
+ next: nextCursor
60119
+ }, options);
60120
+ return { next: nextVal, "~next": { cursor: nextCursor } };
60121
+ };
60122
+ const page = { ...result, ...nextFunc(raw) };
60123
+ return [{ ...page, ...createPageIterator(page, (v2) => !v2.ok) }, {
60124
+ status: "complete",
60125
+ request: req,
60126
+ response
60127
+ }];
60006
60128
  }
60007
60129
  var init_eventsList = __esm(() => {
60008
60130
  init_encodings();
@@ -60011,10 +60133,10 @@ var init_eventsList = __esm(() => {
60011
60133
  init_schemas4();
60012
60134
  init_security();
60013
60135
  init_url();
60014
- init_components();
60015
60136
  init_errors4();
60016
60137
  init_operations();
60017
60138
  init_async();
60139
+ init_operations2();
60018
60140
  });
60019
60141
 
60020
60142
  // src/mcp-server/tools/eventsList.ts
@@ -60024,15 +60146,16 @@ var init_eventsList2 = __esm(() => {
60024
60146
  init_operations();
60025
60147
  init_tools();
60026
60148
  args14 = {
60027
- request: AdminListEventsRequest$inboundSchema
60149
+ request: ListEventsRequest$inboundSchema
60028
60150
  };
60029
60151
  tool$eventsList = {
60030
60152
  name: "events-list",
60031
- description: `List Events (Admin)
60153
+ description: `List Events
60032
60154
 
60033
- Retrieves a list of events across all tenants. This is an admin-only endpoint that requires the Admin API Key.
60155
+ Retrieves a list of events.
60034
60156
 
60035
- When \`tenant_id\` is not provided, returns events from all tenants. When \`tenant_id\` is provided, returns only events for that tenant.
60157
+ When authenticated with a Tenant JWT, returns only events belonging to that tenant.
60158
+ When authenticated with Admin API Key, returns events across all tenants. Use \`tenant_id\` query parameter to filter by tenant.
60036
60159
  `,
60037
60160
  args: args14,
60038
60161
  tool: async (client, args15, ctx) => {
@@ -60043,7 +60166,7 @@ When \`tenant_id\` is not provided, returns events from all tenants. When \`tena
60043
60166
  isError: true
60044
60167
  };
60045
60168
  }
60046
- const value = result.value;
60169
+ const value = result.value.result;
60047
60170
  return formatResult(value, apiCall);
60048
60171
  }
60049
60172
  };
@@ -60187,7 +60310,8 @@ async function $do16(client, request, options) {
60187
60310
  "Content-Type": "application/json",
60188
60311
  Accept: "application/json"
60189
60312
  }));
60190
- const securityInput = await extractSecurity(client._options.security);
60313
+ const secConfig = await extractSecurity(client._options.apiKey);
60314
+ const securityInput = secConfig == null ? {} : { apiKey: secConfig };
60191
60315
  const requestSecurity = resolveGlobalSecurity(securityInput);
60192
60316
  const context = {
60193
60317
  options: client._options,
@@ -60195,7 +60319,7 @@ async function $do16(client, request, options) {
60195
60319
  operationID: "publishEvent",
60196
60320
  oAuth2Scopes: null,
60197
60321
  resolvedSecurity: requestSecurity,
60198
- securitySource: client._options.security,
60322
+ securitySource: client._options.apiKey,
60199
60323
  retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
60200
60324
  retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
60201
60325
  };
@@ -60216,7 +60340,6 @@ async function $do16(client, request, options) {
60216
60340
  const doResult = await client._do(req, {
60217
60341
  context,
60218
60342
  errorCodes: [
60219
- "400",
60220
60343
  "401",
60221
60344
  "403",
60222
60345
  "404",
@@ -60253,7 +60376,7 @@ async function $do16(client, request, options) {
60253
60376
  const responseFields = {
60254
60377
  HttpMeta: { Response: response, Request: req }
60255
60378
  };
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 });
60379
+ 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
60380
  if (!result.ok) {
60258
60381
  return [result, { status: "complete", request: req, response }];
60259
60382
  }
@@ -60300,12 +60423,15 @@ Publishes an event to the specified topic, potentially routed to a specific dest
60300
60423
  };
60301
60424
  });
60302
60425
 
60303
- // src/funcs/schemasGetDestinationTypeJwt.ts
60304
- function schemasGetDestinationTypeJwt(client, request, options) {
60305
- return new APIPromise($do17(client, request, options));
60426
+ // src/funcs/schemasGetDestinationType.ts
60427
+ function schemasGetDestinationType(client, type, options) {
60428
+ return new APIPromise($do17(client, type, options));
60306
60429
  }
60307
- async function $do17(client, request, options) {
60308
- const parsed = safeParse4(request, (value) => GetDestinationTypeSchemaRequest$outboundSchema.parse(value), "Input validation failed");
60430
+ async function $do17(client, type, options) {
60431
+ const input = {
60432
+ type
60433
+ };
60434
+ const parsed = safeParse4(input, (value) => GetDestinationTypeSchemaRequest$outboundSchema.parse(value), "Input validation failed");
60309
60435
  if (!parsed.ok) {
60310
60436
  return [parsed, { status: "invalid" }];
60311
60437
  }
@@ -60321,7 +60447,8 @@ async function $do17(client, request, options) {
60321
60447
  const headers = new Headers(compactMap({
60322
60448
  Accept: "application/json"
60323
60449
  }));
60324
- const securityInput = await extractSecurity(client._options.security);
60450
+ const secConfig = await extractSecurity(client._options.apiKey);
60451
+ const securityInput = secConfig == null ? {} : { apiKey: secConfig };
60325
60452
  const requestSecurity = resolveGlobalSecurity(securityInput);
60326
60453
  const context = {
60327
60454
  options: client._options,
@@ -60329,7 +60456,7 @@ async function $do17(client, request, options) {
60329
60456
  operationID: "getDestinationTypeSchema",
60330
60457
  oAuth2Scopes: null,
60331
60458
  resolvedSecurity: requestSecurity,
60332
- securitySource: client._options.security,
60459
+ securitySource: client._options.apiKey,
60333
60460
  retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
60334
60461
  retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
60335
60462
  };
@@ -60386,13 +60513,13 @@ async function $do17(client, request, options) {
60386
60513
  const responseFields = {
60387
60514
  HttpMeta: { Response: response, Request: req }
60388
60515
  };
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 });
60516
+ 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
60517
  if (!result.ok) {
60391
60518
  return [result, { status: "complete", request: req, response }];
60392
60519
  }
60393
60520
  return [result, { status: "complete", request: req, response }];
60394
60521
  }
60395
- var init_schemasGetDestinationTypeJwt = __esm(() => {
60522
+ var init_schemasGetDestinationType = __esm(() => {
60396
60523
  init_encodings();
60397
60524
  init_matchers();
60398
60525
  init_primitives();
@@ -60405,23 +60532,23 @@ var init_schemasGetDestinationTypeJwt = __esm(() => {
60405
60532
  init_async();
60406
60533
  });
60407
60534
 
60408
- // src/mcp-server/tools/schemasGetDestinationTypeJwt.ts
60409
- var args16, tool$schemasGetDestinationTypeJwt;
60410
- var init_schemasGetDestinationTypeJwt2 = __esm(() => {
60411
- init_schemasGetDestinationTypeJwt();
60535
+ // src/mcp-server/tools/schemasGetDestinationType.ts
60536
+ var args16, tool$schemasGetDestinationType;
60537
+ var init_schemasGetDestinationType2 = __esm(() => {
60538
+ init_schemasGetDestinationType();
60412
60539
  init_operations();
60413
60540
  init_tools();
60414
60541
  args16 = {
60415
- request: GetDestinationTypeSchemaRequest$inboundSchema
60542
+ type: GetDestinationTypeSchemaType$inboundSchema
60416
60543
  };
60417
- tool$schemasGetDestinationTypeJwt = {
60418
- name: "schemas-get-destination-type-jwt",
60544
+ tool$schemasGetDestinationType = {
60545
+ name: "schemas-get-destination-type",
60419
60546
  description: `Get Destination Type Schema
60420
60547
 
60421
60548
  Returns the input schema for a specific destination type.`,
60422
60549
  args: args16,
60423
60550
  tool: async (client, args17, ctx) => {
60424
- const [result, apiCall] = await schemasGetDestinationTypeJwt(client, args17.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
60551
+ const [result, apiCall] = await schemasGetDestinationType(client, args17.type, { fetchOptions: { signal: ctx.signal } }).$inspect();
60425
60552
  if (!result.ok) {
60426
60553
  return {
60427
60554
  content: [{ type: "text", text: result.error.message }],
@@ -60434,8 +60561,8 @@ Returns the input schema for a specific destination type.`,
60434
60561
  };
60435
60562
  });
60436
60563
 
60437
- // src/funcs/schemasListDestinationTypesJwt.ts
60438
- function schemasListDestinationTypesJwt(client, options) {
60564
+ // src/funcs/schemasListDestinationTypes.ts
60565
+ function schemasListDestinationTypes(client, options) {
60439
60566
  return new APIPromise($do18(client, options));
60440
60567
  }
60441
60568
  async function $do18(client, options) {
@@ -60443,7 +60570,8 @@ async function $do18(client, options) {
60443
60570
  const headers = new Headers(compactMap({
60444
60571
  Accept: "application/json"
60445
60572
  }));
60446
- const securityInput = await extractSecurity(client._options.security);
60573
+ const secConfig = await extractSecurity(client._options.apiKey);
60574
+ const securityInput = secConfig == null ? {} : { apiKey: secConfig };
60447
60575
  const requestSecurity = resolveGlobalSecurity(securityInput);
60448
60576
  const context = {
60449
60577
  options: client._options,
@@ -60451,7 +60579,7 @@ async function $do18(client, options) {
60451
60579
  operationID: "listDestinationTypeSchemas",
60452
60580
  oAuth2Scopes: null,
60453
60581
  resolvedSecurity: requestSecurity,
60454
- securitySource: client._options.security,
60582
+ securitySource: client._options.apiKey,
60455
60583
  retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
60456
60584
  retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
60457
60585
  };
@@ -60507,13 +60635,13 @@ async function $do18(client, options) {
60507
60635
  const responseFields = {
60508
60636
  HttpMeta: { Response: response, Request: req }
60509
60637
  };
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 });
60638
+ 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
60639
  if (!result.ok) {
60512
60640
  return [result, { status: "complete", request: req, response }];
60513
60641
  }
60514
60642
  return [result, { status: "complete", request: req, response }];
60515
60643
  }
60516
- var init_schemasListDestinationTypesJwt = __esm(() => {
60644
+ var init_schemasListDestinationTypes = __esm(() => {
60517
60645
  init_v3();
60518
60646
  init_matchers();
60519
60647
  init_primitives();
@@ -60524,18 +60652,18 @@ var init_schemasListDestinationTypesJwt = __esm(() => {
60524
60652
  init_async();
60525
60653
  });
60526
60654
 
60527
- // src/mcp-server/tools/schemasListDestinationTypesJwt.ts
60528
- var tool$schemasListDestinationTypesJwt;
60529
- var init_schemasListDestinationTypesJwt2 = __esm(() => {
60530
- init_schemasListDestinationTypesJwt();
60655
+ // src/mcp-server/tools/schemasListDestinationTypes.ts
60656
+ var tool$schemasListDestinationTypes;
60657
+ var init_schemasListDestinationTypes2 = __esm(() => {
60658
+ init_schemasListDestinationTypes();
60531
60659
  init_tools();
60532
- tool$schemasListDestinationTypesJwt = {
60533
- name: "schemas-list-destination-types-jwt",
60660
+ tool$schemasListDestinationTypes = {
60661
+ name: "schemas-list-destination-types",
60534
60662
  description: `List Destination Type Schemas
60535
60663
 
60536
60664
  Returns a list of JSON-based input schemas for each available destination type.`,
60537
60665
  tool: async (client, ctx) => {
60538
- const [result, apiCall] = await schemasListDestinationTypesJwt(client, { fetchOptions: { signal: ctx.signal } }).$inspect();
60666
+ const [result, apiCall] = await schemasListDestinationTypes(client, { fetchOptions: { signal: ctx.signal } }).$inspect();
60539
60667
  if (!result.ok) {
60540
60668
  return {
60541
60669
  content: [{ type: "text", text: result.error.message }],
@@ -60549,24 +60677,31 @@ Returns a list of JSON-based input schemas for each available destination type.`
60549
60677
  });
60550
60678
 
60551
60679
  // src/funcs/tenantsDelete.ts
60552
- function tenantsDelete(client, request, options) {
60553
- return new APIPromise($do19(client, request, options));
60680
+ function tenantsDelete(client, tenantId, options) {
60681
+ return new APIPromise($do19(client, tenantId, options));
60554
60682
  }
60555
- async function $do19(client, request, options) {
60556
- const parsed = safeParse4(request, (value) => DeleteTenantRequest$outboundSchema.parse(value), "Input validation failed");
60683
+ async function $do19(client, tenantId, options) {
60684
+ const input = {
60685
+ tenantId
60686
+ };
60687
+ const parsed = safeParse4(input, (value) => DeleteTenantRequest$outboundSchema.parse(value), "Input validation failed");
60557
60688
  if (!parsed.ok) {
60558
60689
  return [parsed, { status: "invalid" }];
60559
60690
  }
60560
60691
  const payload = parsed.value;
60561
60692
  const body = null;
60562
60693
  const pathParams = {
60563
- tenant_id: encodeSimple("tenant_id", payload.tenant_id ?? client._options.tenantId, { explode: false, charEncoding: "percent" })
60694
+ tenant_id: encodeSimple("tenant_id", payload.tenant_id, {
60695
+ explode: false,
60696
+ charEncoding: "percent"
60697
+ })
60564
60698
  };
60565
60699
  const path = pathToFunc("/tenants/{tenant_id}")(pathParams);
60566
60700
  const headers = new Headers(compactMap({
60567
60701
  Accept: "application/json"
60568
60702
  }));
60569
- const securityInput = await extractSecurity(client._options.security);
60703
+ const secConfig = await extractSecurity(client._options.apiKey);
60704
+ const securityInput = secConfig == null ? {} : { apiKey: secConfig };
60570
60705
  const requestSecurity = resolveGlobalSecurity(securityInput);
60571
60706
  const context = {
60572
60707
  options: client._options,
@@ -60574,7 +60709,7 @@ async function $do19(client, request, options) {
60574
60709
  operationID: "deleteTenant",
60575
60710
  oAuth2Scopes: null,
60576
60711
  resolvedSecurity: requestSecurity,
60577
- securitySource: client._options.security,
60712
+ securitySource: client._options.apiKey,
60578
60713
  retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
60579
60714
  retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
60580
60715
  };
@@ -60594,7 +60729,7 @@ async function $do19(client, request, options) {
60594
60729
  const req = requestRes.value;
60595
60730
  const doResult = await client._do(req, {
60596
60731
  context,
60597
- errorCodes: ["404", "4XX", "5XX"],
60732
+ errorCodes: ["401", "404", "4XX", "500", "5XX"],
60598
60733
  retryConfig: context.retryConfig,
60599
60734
  retryCodes: context.retryCodes
60600
60735
  });
@@ -60602,7 +60737,10 @@ async function $do19(client, request, options) {
60602
60737
  return [doResult, { status: "request-error", request: req }];
60603
60738
  }
60604
60739
  const response = doResult.value;
60605
- const [result] = await match(json(200, SuccessResponse$inboundSchema), fail([404, "4XX"]), fail("5XX"))(response, req);
60740
+ const responseFields = {
60741
+ HttpMeta: { Response: response, Request: req }
60742
+ };
60743
+ 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
60744
  if (!result.ok) {
60607
60745
  return [result, { status: "complete", request: req, response }];
60608
60746
  }
@@ -60616,6 +60754,7 @@ var init_tenantsDelete = __esm(() => {
60616
60754
  init_security();
60617
60755
  init_url();
60618
60756
  init_components();
60757
+ init_errors4();
60619
60758
  init_operations();
60620
60759
  init_async();
60621
60760
  });
@@ -60623,11 +60762,11 @@ var init_tenantsDelete = __esm(() => {
60623
60762
  // src/mcp-server/tools/tenantsDelete.ts
60624
60763
  var args17, tool$tenantsDelete;
60625
60764
  var init_tenantsDelete2 = __esm(() => {
60765
+ init_v3();
60626
60766
  init_tenantsDelete();
60627
- init_operations();
60628
60767
  init_tools();
60629
60768
  args17 = {
60630
- request: DeleteTenantRequest$inboundSchema
60769
+ tenantId: stringType()
60631
60770
  };
60632
60771
  tool$tenantsDelete = {
60633
60772
  name: "tenants-delete",
@@ -60636,7 +60775,7 @@ var init_tenantsDelete2 = __esm(() => {
60636
60775
  Deletes the tenant and all associated destinations.`,
60637
60776
  args: args17,
60638
60777
  tool: async (client, args18, ctx) => {
60639
- const [result, apiCall] = await tenantsDelete(client, args18.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
60778
+ const [result, apiCall] = await tenantsDelete(client, args18.tenantId, { fetchOptions: { signal: ctx.signal } }).$inspect();
60640
60779
  if (!result.ok) {
60641
60780
  return {
60642
60781
  content: [{ type: "text", text: result.error.message }],
@@ -60650,24 +60789,31 @@ Deletes the tenant and all associated destinations.`,
60650
60789
  });
60651
60790
 
60652
60791
  // src/funcs/tenantsGet.ts
60653
- function tenantsGet(client, request, options) {
60654
- return new APIPromise($do20(client, request, options));
60792
+ function tenantsGet(client, tenantId, options) {
60793
+ return new APIPromise($do20(client, tenantId, options));
60655
60794
  }
60656
- async function $do20(client, request, options) {
60657
- const parsed = safeParse4(request, (value) => GetTenantRequest$outboundSchema.parse(value), "Input validation failed");
60795
+ async function $do20(client, tenantId, options) {
60796
+ const input = {
60797
+ tenantId
60798
+ };
60799
+ const parsed = safeParse4(input, (value) => GetTenantRequest$outboundSchema.parse(value), "Input validation failed");
60658
60800
  if (!parsed.ok) {
60659
60801
  return [parsed, { status: "invalid" }];
60660
60802
  }
60661
60803
  const payload = parsed.value;
60662
60804
  const body = null;
60663
60805
  const pathParams = {
60664
- tenant_id: encodeSimple("tenant_id", payload.tenant_id ?? client._options.tenantId, { explode: false, charEncoding: "percent" })
60806
+ tenant_id: encodeSimple("tenant_id", payload.tenant_id, {
60807
+ explode: false,
60808
+ charEncoding: "percent"
60809
+ })
60665
60810
  };
60666
60811
  const path = pathToFunc("/tenants/{tenant_id}")(pathParams);
60667
60812
  const headers = new Headers(compactMap({
60668
60813
  Accept: "application/json"
60669
60814
  }));
60670
- const securityInput = await extractSecurity(client._options.security);
60815
+ const secConfig = await extractSecurity(client._options.apiKey);
60816
+ const securityInput = secConfig == null ? {} : { apiKey: secConfig };
60671
60817
  const requestSecurity = resolveGlobalSecurity(securityInput);
60672
60818
  const context = {
60673
60819
  options: client._options,
@@ -60675,7 +60821,7 @@ async function $do20(client, request, options) {
60675
60821
  operationID: "getTenant",
60676
60822
  oAuth2Scopes: null,
60677
60823
  resolvedSecurity: requestSecurity,
60678
- securitySource: client._options.security,
60824
+ securitySource: client._options.apiKey,
60679
60825
  retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
60680
60826
  retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
60681
60827
  };
@@ -60695,7 +60841,7 @@ async function $do20(client, request, options) {
60695
60841
  const req = requestRes.value;
60696
60842
  const doResult = await client._do(req, {
60697
60843
  context,
60698
- errorCodes: ["404", "4XX", "5XX"],
60844
+ errorCodes: ["401", "404", "4XX", "500", "5XX"],
60699
60845
  retryConfig: context.retryConfig,
60700
60846
  retryCodes: context.retryCodes
60701
60847
  });
@@ -60703,7 +60849,10 @@ async function $do20(client, request, options) {
60703
60849
  return [doResult, { status: "request-error", request: req }];
60704
60850
  }
60705
60851
  const response = doResult.value;
60706
- const [result] = await match(json(200, Tenant$inboundSchema), fail([404, "4XX"]), fail("5XX"))(response, req);
60852
+ const responseFields = {
60853
+ HttpMeta: { Response: response, Request: req }
60854
+ };
60855
+ 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
60856
  if (!result.ok) {
60708
60857
  return [result, { status: "complete", request: req, response }];
60709
60858
  }
@@ -60717,6 +60866,7 @@ var init_tenantsGet = __esm(() => {
60717
60866
  init_security();
60718
60867
  init_url();
60719
60868
  init_components();
60869
+ init_errors4();
60720
60870
  init_operations();
60721
60871
  init_async();
60722
60872
  });
@@ -60724,11 +60874,11 @@ var init_tenantsGet = __esm(() => {
60724
60874
  // src/mcp-server/tools/tenantsGet.ts
60725
60875
  var args18, tool$tenantsGet;
60726
60876
  var init_tenantsGet2 = __esm(() => {
60877
+ init_v3();
60727
60878
  init_tenantsGet();
60728
- init_operations();
60729
60879
  init_tools();
60730
60880
  args18 = {
60731
- request: GetTenantRequest$inboundSchema
60881
+ tenantId: stringType()
60732
60882
  };
60733
60883
  tool$tenantsGet = {
60734
60884
  name: "tenants-get",
@@ -60737,7 +60887,7 @@ var init_tenantsGet2 = __esm(() => {
60737
60887
  Retrieves details for a specific tenant.`,
60738
60888
  args: args18,
60739
60889
  tool: async (client, args19, ctx) => {
60740
- const [result, apiCall] = await tenantsGet(client, args19.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
60890
+ const [result, apiCall] = await tenantsGet(client, args19.tenantId, { fetchOptions: { signal: ctx.signal } }).$inspect();
60741
60891
  if (!result.ok) {
60742
60892
  return {
60743
60893
  content: [{ type: "text", text: result.error.message }],
@@ -60751,18 +60901,25 @@ Retrieves details for a specific tenant.`,
60751
60901
  });
60752
60902
 
60753
60903
  // src/funcs/tenantsGetPortalUrl.ts
60754
- function tenantsGetPortalUrl(client, request, options) {
60755
- return new APIPromise($do21(client, request, options));
60904
+ function tenantsGetPortalUrl(client, tenantId, theme, options) {
60905
+ return new APIPromise($do21(client, tenantId, theme, options));
60756
60906
  }
60757
- async function $do21(client, request, options) {
60758
- const parsed = safeParse4(request, (value) => GetTenantPortalUrlRequest$outboundSchema.parse(value), "Input validation failed");
60907
+ async function $do21(client, tenantId, theme, options) {
60908
+ const input = {
60909
+ tenantId,
60910
+ theme
60911
+ };
60912
+ const parsed = safeParse4(input, (value) => GetTenantPortalUrlRequest$outboundSchema.parse(value), "Input validation failed");
60759
60913
  if (!parsed.ok) {
60760
60914
  return [parsed, { status: "invalid" }];
60761
60915
  }
60762
60916
  const payload = parsed.value;
60763
60917
  const body = null;
60764
60918
  const pathParams = {
60765
- tenant_id: encodeSimple("tenant_id", payload.tenant_id ?? client._options.tenantId, { explode: false, charEncoding: "percent" })
60919
+ tenant_id: encodeSimple("tenant_id", payload.tenant_id, {
60920
+ explode: false,
60921
+ charEncoding: "percent"
60922
+ })
60766
60923
  };
60767
60924
  const path = pathToFunc("/tenants/{tenant_id}/portal")(pathParams);
60768
60925
  const query = encodeFormQuery({
@@ -60771,7 +60928,8 @@ async function $do21(client, request, options) {
60771
60928
  const headers = new Headers(compactMap({
60772
60929
  Accept: "application/json"
60773
60930
  }));
60774
- const securityInput = await extractSecurity(client._options.security);
60931
+ const secConfig = await extractSecurity(client._options.apiKey);
60932
+ const securityInput = secConfig == null ? {} : { apiKey: secConfig };
60775
60933
  const requestSecurity = resolveGlobalSecurity(securityInput);
60776
60934
  const context = {
60777
60935
  options: client._options,
@@ -60779,7 +60937,7 @@ async function $do21(client, request, options) {
60779
60937
  operationID: "getTenantPortalUrl",
60780
60938
  oAuth2Scopes: null,
60781
60939
  resolvedSecurity: requestSecurity,
60782
- securitySource: client._options.security,
60940
+ securitySource: client._options.apiKey,
60783
60941
  retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
60784
60942
  retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
60785
60943
  };
@@ -60800,7 +60958,7 @@ async function $do21(client, request, options) {
60800
60958
  const req = requestRes.value;
60801
60959
  const doResult = await client._do(req, {
60802
60960
  context,
60803
- errorCodes: ["404", "4XX", "5XX"],
60961
+ errorCodes: ["401", "404", "4XX", "500", "5XX"],
60804
60962
  retryConfig: context.retryConfig,
60805
60963
  retryCodes: context.retryCodes
60806
60964
  });
@@ -60808,7 +60966,10 @@ async function $do21(client, request, options) {
60808
60966
  return [doResult, { status: "request-error", request: req }];
60809
60967
  }
60810
60968
  const response = doResult.value;
60811
- const [result] = await match(json(200, PortalRedirect$inboundSchema), fail([404, "4XX"]), fail("5XX"))(response, req);
60969
+ const responseFields = {
60970
+ HttpMeta: { Response: response, Request: req }
60971
+ };
60972
+ 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
60973
  if (!result.ok) {
60813
60974
  return [result, { status: "complete", request: req, response }];
60814
60975
  }
@@ -60822,6 +60983,7 @@ var init_tenantsGetPortalUrl = __esm(() => {
60822
60983
  init_security();
60823
60984
  init_url();
60824
60985
  init_components();
60986
+ init_errors4();
60825
60987
  init_operations();
60826
60988
  init_async();
60827
60989
  });
@@ -60829,20 +60991,22 @@ var init_tenantsGetPortalUrl = __esm(() => {
60829
60991
  // src/mcp-server/tools/tenantsGetPortalUrl.ts
60830
60992
  var args19, tool$tenantsGetPortalUrl;
60831
60993
  var init_tenantsGetPortalUrl2 = __esm(() => {
60994
+ init_v3();
60832
60995
  init_tenantsGetPortalUrl();
60833
60996
  init_operations();
60834
60997
  init_tools();
60835
60998
  args19 = {
60836
- request: GetTenantPortalUrlRequest$inboundSchema
60999
+ tenantId: stringType(),
61000
+ theme: Theme$inboundSchema.optional()
60837
61001
  };
60838
61002
  tool$tenantsGetPortalUrl = {
60839
61003
  name: "tenants-get-portal-url",
60840
61004
  description: `Get Portal Redirect URL
60841
61005
 
60842
- Returns a redirect URL containing a JWT to authenticate the user with the portal.`,
61006
+ Returns a redirect URL containing a JWT to authenticate the user with the portal. Requires Admin API Key.`,
60843
61007
  args: args19,
60844
61008
  tool: async (client, args20, ctx) => {
60845
- const [result, apiCall] = await tenantsGetPortalUrl(client, args20.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
61009
+ const [result, apiCall] = await tenantsGetPortalUrl(client, args20.tenantId, args20.theme, { fetchOptions: { signal: ctx.signal } }).$inspect();
60846
61010
  if (!result.ok) {
60847
61011
  return {
60848
61012
  content: [{ type: "text", text: result.error.message }],
@@ -60856,24 +61020,31 @@ Returns a redirect URL containing a JWT to authenticate the user with the portal
60856
61020
  });
60857
61021
 
60858
61022
  // src/funcs/tenantsGetToken.ts
60859
- function tenantsGetToken(client, request, options) {
60860
- return new APIPromise($do22(client, request, options));
61023
+ function tenantsGetToken(client, tenantId, options) {
61024
+ return new APIPromise($do22(client, tenantId, options));
60861
61025
  }
60862
- async function $do22(client, request, options) {
60863
- const parsed = safeParse4(request, (value) => GetTenantTokenRequest$outboundSchema.parse(value), "Input validation failed");
61026
+ async function $do22(client, tenantId, options) {
61027
+ const input = {
61028
+ tenantId
61029
+ };
61030
+ const parsed = safeParse4(input, (value) => GetTenantTokenRequest$outboundSchema.parse(value), "Input validation failed");
60864
61031
  if (!parsed.ok) {
60865
61032
  return [parsed, { status: "invalid" }];
60866
61033
  }
60867
61034
  const payload = parsed.value;
60868
61035
  const body = null;
60869
61036
  const pathParams = {
60870
- tenant_id: encodeSimple("tenant_id", payload.tenant_id ?? client._options.tenantId, { explode: false, charEncoding: "percent" })
61037
+ tenant_id: encodeSimple("tenant_id", payload.tenant_id, {
61038
+ explode: false,
61039
+ charEncoding: "percent"
61040
+ })
60871
61041
  };
60872
61042
  const path = pathToFunc("/tenants/{tenant_id}/token")(pathParams);
60873
61043
  const headers = new Headers(compactMap({
60874
61044
  Accept: "application/json"
60875
61045
  }));
60876
- const securityInput = await extractSecurity(client._options.security);
61046
+ const secConfig = await extractSecurity(client._options.apiKey);
61047
+ const securityInput = secConfig == null ? {} : { apiKey: secConfig };
60877
61048
  const requestSecurity = resolveGlobalSecurity(securityInput);
60878
61049
  const context = {
60879
61050
  options: client._options,
@@ -60881,7 +61052,7 @@ async function $do22(client, request, options) {
60881
61052
  operationID: "getTenantToken",
60882
61053
  oAuth2Scopes: null,
60883
61054
  resolvedSecurity: requestSecurity,
60884
- securitySource: client._options.security,
61055
+ securitySource: client._options.apiKey,
60885
61056
  retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
60886
61057
  retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
60887
61058
  };
@@ -60901,7 +61072,7 @@ async function $do22(client, request, options) {
60901
61072
  const req = requestRes.value;
60902
61073
  const doResult = await client._do(req, {
60903
61074
  context,
60904
- errorCodes: ["404", "4XX", "5XX"],
61075
+ errorCodes: ["401", "404", "4XX", "500", "5XX"],
60905
61076
  retryConfig: context.retryConfig,
60906
61077
  retryCodes: context.retryCodes
60907
61078
  });
@@ -60909,7 +61080,10 @@ async function $do22(client, request, options) {
60909
61080
  return [doResult, { status: "request-error", request: req }];
60910
61081
  }
60911
61082
  const response = doResult.value;
60912
- const [result] = await match(json(200, TenantToken$inboundSchema), fail([404, "4XX"]), fail("5XX"))(response, req);
61083
+ const responseFields = {
61084
+ HttpMeta: { Response: response, Request: req }
61085
+ };
61086
+ 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
61087
  if (!result.ok) {
60914
61088
  return [result, { status: "complete", request: req, response }];
60915
61089
  }
@@ -60923,6 +61097,7 @@ var init_tenantsGetToken = __esm(() => {
60923
61097
  init_security();
60924
61098
  init_url();
60925
61099
  init_components();
61100
+ init_errors4();
60926
61101
  init_operations();
60927
61102
  init_async();
60928
61103
  });
@@ -60930,20 +61105,20 @@ var init_tenantsGetToken = __esm(() => {
60930
61105
  // src/mcp-server/tools/tenantsGetToken.ts
60931
61106
  var args20, tool$tenantsGetToken;
60932
61107
  var init_tenantsGetToken2 = __esm(() => {
61108
+ init_v3();
60933
61109
  init_tenantsGetToken();
60934
- init_operations();
60935
61110
  init_tools();
60936
61111
  args20 = {
60937
- request: GetTenantTokenRequest$inboundSchema
61112
+ tenantId: stringType()
60938
61113
  };
60939
61114
  tool$tenantsGetToken = {
60940
61115
  name: "tenants-get-token",
60941
61116
  description: `Get Tenant JWT Token
60942
61117
 
60943
- Returns a JWT token scoped to the tenant for safe browser API calls.`,
61118
+ Returns a JWT token scoped to the tenant for safe browser API calls. Requires Admin API Key.`,
60944
61119
  args: args20,
60945
61120
  tool: async (client, args21, ctx) => {
60946
- const [result, apiCall] = await tenantsGetToken(client, args21.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
61121
+ const [result, apiCall] = await tenantsGetToken(client, args21.tenantId, { fetchOptions: { signal: ctx.signal } }).$inspect();
60947
61122
  if (!result.ok) {
60948
61123
  return {
60949
61124
  content: [{ type: "text", text: result.error.message }],
@@ -60956,31 +61131,30 @@ Returns a JWT token scoped to the tenant for safe browser API calls.`,
60956
61131
  };
60957
61132
  });
60958
61133
 
60959
- // src/funcs/tenantsListTenants.ts
60960
- function tenantsListTenants(client, request, options) {
61134
+ // src/funcs/tenantsList.ts
61135
+ function tenantsList(client, request, options) {
60961
61136
  return new APIPromise($do23(client, request, options));
60962
61137
  }
60963
61138
  async function $do23(client, request, options) {
60964
61139
  const parsed = safeParse4(request, (value) => ListTenantsRequest$outboundSchema.parse(value), "Input validation failed");
60965
61140
  if (!parsed.ok) {
60966
- return [parsed, { status: "invalid" }];
61141
+ return [haltIterator(parsed), { status: "invalid" }];
60967
61142
  }
60968
61143
  const payload = parsed.value;
60969
61144
  const body = null;
60970
61145
  const path = pathToFunc("/tenants")();
60971
61146
  const query = encodeFormQuery({
60972
- "created_at[gte]": payload["created_at[gte]"],
60973
- "created_at[lte]": payload["created_at[lte]"],
60974
61147
  dir: payload.dir,
61148
+ id: payload.id,
60975
61149
  limit: payload.limit,
60976
61150
  next: payload.next,
60977
- order_by: payload.order_by,
60978
61151
  prev: payload.prev
60979
61152
  });
60980
61153
  const headers = new Headers(compactMap({
60981
61154
  Accept: "application/json"
60982
61155
  }));
60983
- const securityInput = await extractSecurity(client._options.security);
61156
+ const secConfig = await extractSecurity(client._options.apiKey);
61157
+ const securityInput = secConfig == null ? {} : { apiKey: secConfig };
60984
61158
  const requestSecurity = resolveGlobalSecurity(securityInput);
60985
61159
  const context = {
60986
61160
  options: client._options,
@@ -60988,7 +61162,7 @@ async function $do23(client, request, options) {
60988
61162
  operationID: "listTenants",
60989
61163
  oAuth2Scopes: null,
60990
61164
  resolvedSecurity: requestSecurity,
60991
- securitySource: client._options.security,
61165
+ securitySource: client._options.apiKey,
60992
61166
  retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
60993
61167
  retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
60994
61168
  };
@@ -61004,52 +61178,85 @@ async function $do23(client, request, options) {
61004
61178
  timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
61005
61179
  }, options);
61006
61180
  if (!requestRes.ok) {
61007
- return [requestRes, { status: "invalid" }];
61181
+ return [haltIterator(requestRes), { status: "invalid" }];
61008
61182
  }
61009
61183
  const req = requestRes.value;
61010
61184
  const doResult = await client._do(req, {
61011
61185
  context,
61012
- errorCodes: ["400", "401", "4XX", "501", "5XX"],
61186
+ errorCodes: ["400", "401", "4XX", "500", "501", "5XX"],
61013
61187
  retryConfig: context.retryConfig,
61014
61188
  retryCodes: context.retryCodes
61015
61189
  });
61016
61190
  if (!doResult.ok) {
61017
- return [doResult, { status: "request-error", request: req }];
61191
+ return [haltIterator(doResult), { status: "request-error", request: req }];
61018
61192
  }
61019
61193
  const response = doResult.value;
61020
61194
  const responseFields = {
61021
61195
  HttpMeta: { Response: response, Request: req }
61022
61196
  };
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 });
61197
+ const [result, raw] = await match(json(200, ListTenantsResponse$inboundSchema, {
61198
+ key: "Result"
61199
+ }), 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
61200
  if (!result.ok) {
61025
- return [result, { status: "complete", request: req, response }];
61026
- }
61027
- return [result, { status: "complete", request: req, response }];
61028
- }
61029
- var init_tenantsListTenants = __esm(() => {
61201
+ return [haltIterator(result), {
61202
+ status: "complete",
61203
+ request: req,
61204
+ response
61205
+ }];
61206
+ }
61207
+ const nextFunc = (responseData) => {
61208
+ const nextCursor = dlv(responseData, "pagination.next");
61209
+ if (typeof nextCursor !== "string") {
61210
+ return { next: () => null };
61211
+ }
61212
+ if (nextCursor.trim() === "") {
61213
+ return { next: () => null };
61214
+ }
61215
+ const results = dlv(responseData, "models");
61216
+ if (!Array.isArray(results) || !results.length) {
61217
+ return { next: () => null };
61218
+ }
61219
+ const limit = request?.limit ?? 20;
61220
+ if (results.length < limit) {
61221
+ return { next: () => null };
61222
+ }
61223
+ const nextVal = () => tenantsList(client, {
61224
+ ...request,
61225
+ next: nextCursor
61226
+ }, options);
61227
+ return { next: nextVal, "~next": { cursor: nextCursor } };
61228
+ };
61229
+ const page = { ...result, ...nextFunc(raw) };
61230
+ return [{ ...page, ...createPageIterator(page, (v2) => !v2.ok) }, {
61231
+ status: "complete",
61232
+ request: req,
61233
+ response
61234
+ }];
61235
+ }
61236
+ var init_tenantsList = __esm(() => {
61030
61237
  init_encodings();
61031
61238
  init_matchers();
61032
61239
  init_primitives();
61033
61240
  init_schemas4();
61034
61241
  init_security();
61035
61242
  init_url();
61036
- init_components();
61037
61243
  init_errors4();
61038
61244
  init_operations();
61039
61245
  init_async();
61246
+ init_operations2();
61040
61247
  });
61041
61248
 
61042
- // src/mcp-server/tools/tenantsListTenants.ts
61043
- var args21, tool$tenantsListTenants;
61044
- var init_tenantsListTenants2 = __esm(() => {
61045
- init_tenantsListTenants();
61249
+ // src/mcp-server/tools/tenantsList.ts
61250
+ var args21, tool$tenantsList;
61251
+ var init_tenantsList2 = __esm(() => {
61252
+ init_tenantsList();
61046
61253
  init_operations();
61047
61254
  init_tools();
61048
61255
  args21 = {
61049
61256
  request: ListTenantsRequest$inboundSchema
61050
61257
  };
61051
- tool$tenantsListTenants = {
61052
- name: "tenants-list-tenants",
61258
+ tool$tenantsList = {
61259
+ name: "tenants-list",
61053
61260
  description: `List Tenants
61054
61261
 
61055
61262
  List all tenants with cursor-based pagination.
@@ -61057,44 +61264,51 @@ List all tenants with cursor-based pagination.
61057
61264
  **Requirements:** This endpoint requires Redis with RediSearch module (e.g., \`redis/redis-stack-server\`).
61058
61265
  If RediSearch is not available, this endpoint returns \`501 Not Implemented\`.
61059
61266
 
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.
61267
+ When authenticated with a Tenant JWT, returns only the authenticated tenant. Pagination is not used in this case.
61062
61268
  `,
61063
61269
  args: args21,
61064
61270
  tool: async (client, args22, ctx) => {
61065
- const [result, apiCall] = await tenantsListTenants(client, args22.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
61271
+ const [result, apiCall] = await tenantsList(client, args22.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
61066
61272
  if (!result.ok) {
61067
61273
  return {
61068
61274
  content: [{ type: "text", text: result.error.message }],
61069
61275
  isError: true
61070
61276
  };
61071
61277
  }
61072
- const value = result.value;
61278
+ const value = result.value.result;
61073
61279
  return formatResult(value, apiCall);
61074
61280
  }
61075
61281
  };
61076
61282
  });
61077
61283
 
61078
61284
  // src/funcs/tenantsUpsert.ts
61079
- function tenantsUpsert(client, request, options) {
61080
- return new APIPromise($do24(client, request, options));
61285
+ function tenantsUpsert(client, tenantId, body, options) {
61286
+ return new APIPromise($do24(client, tenantId, body, options));
61081
61287
  }
61082
- async function $do24(client, request, options) {
61083
- const parsed = safeParse4(request, (value) => UpsertTenantRequest$outboundSchema.parse(value), "Input validation failed");
61288
+ async function $do24(client, tenantId, body, options) {
61289
+ const input = {
61290
+ tenantId,
61291
+ body
61292
+ };
61293
+ const parsed = safeParse4(input, (value) => UpsertTenantRequest$outboundSchema.parse(value), "Input validation failed");
61084
61294
  if (!parsed.ok) {
61085
61295
  return [parsed, { status: "invalid" }];
61086
61296
  }
61087
61297
  const payload = parsed.value;
61088
- const body = encodeJSON("body", payload.params, { explode: true });
61298
+ const body$ = encodeJSON("body", payload.body, { explode: true });
61089
61299
  const pathParams = {
61090
- tenant_id: encodeSimple("tenant_id", payload.tenant_id ?? client._options.tenantId, { explode: false, charEncoding: "percent" })
61300
+ tenant_id: encodeSimple("tenant_id", payload.tenant_id, {
61301
+ explode: false,
61302
+ charEncoding: "percent"
61303
+ })
61091
61304
  };
61092
61305
  const path = pathToFunc("/tenants/{tenant_id}")(pathParams);
61093
61306
  const headers = new Headers(compactMap({
61094
61307
  "Content-Type": "application/json",
61095
61308
  Accept: "application/json"
61096
61309
  }));
61097
- const securityInput = await extractSecurity(client._options.security);
61310
+ const secConfig = await extractSecurity(client._options.apiKey);
61311
+ const securityInput = secConfig == null ? {} : { apiKey: secConfig };
61098
61312
  const requestSecurity = resolveGlobalSecurity(securityInput);
61099
61313
  const context = {
61100
61314
  options: client._options,
@@ -61102,7 +61316,7 @@ async function $do24(client, request, options) {
61102
61316
  operationID: "upsertTenant",
61103
61317
  oAuth2Scopes: null,
61104
61318
  resolvedSecurity: requestSecurity,
61105
- securitySource: client._options.security,
61319
+ securitySource: client._options.apiKey,
61106
61320
  retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
61107
61321
  retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
61108
61322
  };
@@ -61112,7 +61326,7 @@ async function $do24(client, request, options) {
61112
61326
  baseURL: options?.serverURL,
61113
61327
  path,
61114
61328
  headers,
61115
- body,
61329
+ body: body$,
61116
61330
  userAgent: client._options.userAgent,
61117
61331
  timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
61118
61332
  }, options);
@@ -61122,7 +61336,7 @@ async function $do24(client, request, options) {
61122
61336
  const req = requestRes.value;
61123
61337
  const doResult = await client._do(req, {
61124
61338
  context,
61125
- errorCodes: ["4XX", "5XX"],
61339
+ errorCodes: ["401", "422", "4XX", "500", "5XX"],
61126
61340
  retryConfig: context.retryConfig,
61127
61341
  retryCodes: context.retryCodes
61128
61342
  });
@@ -61130,7 +61344,10 @@ async function $do24(client, request, options) {
61130
61344
  return [doResult, { status: "request-error", request: req }];
61131
61345
  }
61132
61346
  const response = doResult.value;
61133
- const [result] = await match(json([200, 201], Tenant$inboundSchema), fail("4XX"), fail("5XX"))(response, req);
61347
+ const responseFields = {
61348
+ HttpMeta: { Response: response, Request: req }
61349
+ };
61350
+ 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
61351
  if (!result.ok) {
61135
61352
  return [result, { status: "complete", request: req, response }];
61136
61353
  }
@@ -61144,6 +61361,7 @@ var init_tenantsUpsert = __esm(() => {
61144
61361
  init_security();
61145
61362
  init_url();
61146
61363
  init_components();
61364
+ init_errors4();
61147
61365
  init_operations();
61148
61366
  init_async();
61149
61367
  });
@@ -61151,11 +61369,13 @@ var init_tenantsUpsert = __esm(() => {
61151
61369
  // src/mcp-server/tools/tenantsUpsert.ts
61152
61370
  var args22, tool$tenantsUpsert;
61153
61371
  var init_tenantsUpsert2 = __esm(() => {
61372
+ init_v3();
61154
61373
  init_tenantsUpsert();
61155
- init_operations();
61374
+ init_components();
61156
61375
  init_tools();
61157
61376
  args22 = {
61158
- request: UpsertTenantRequest$inboundSchema
61377
+ tenantId: stringType(),
61378
+ body: TenantUpsert$inboundSchema.optional()
61159
61379
  };
61160
61380
  tool$tenantsUpsert = {
61161
61381
  name: "tenants-upsert",
@@ -61164,7 +61384,7 @@ var init_tenantsUpsert2 = __esm(() => {
61164
61384
  Idempotently creates or updates a tenant. Required before associating destinations.`,
61165
61385
  args: args22,
61166
61386
  tool: async (client, args23, ctx) => {
61167
- const [result, apiCall] = await tenantsUpsert(client, args23.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
61387
+ const [result, apiCall] = await tenantsUpsert(client, args23.tenantId, args23.body, { fetchOptions: { signal: ctx.signal } }).$inspect();
61168
61388
  if (!result.ok) {
61169
61389
  return {
61170
61390
  content: [{ type: "text", text: result.error.message }],
@@ -61186,7 +61406,8 @@ async function $do25(client, options) {
61186
61406
  const headers = new Headers(compactMap({
61187
61407
  Accept: "application/json"
61188
61408
  }));
61189
- const securityInput = await extractSecurity(client._options.security);
61409
+ const secConfig = await extractSecurity(client._options.apiKey);
61410
+ const securityInput = secConfig == null ? {} : { apiKey: secConfig };
61190
61411
  const requestSecurity = resolveGlobalSecurity(securityInput);
61191
61412
  const context = {
61192
61413
  options: client._options,
@@ -61194,7 +61415,7 @@ async function $do25(client, options) {
61194
61415
  operationID: "listTopics",
61195
61416
  oAuth2Scopes: null,
61196
61417
  resolvedSecurity: requestSecurity,
61197
- securitySource: client._options.security,
61418
+ securitySource: client._options.apiKey,
61198
61419
  retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
61199
61420
  retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
61200
61421
  };
@@ -61250,7 +61471,7 @@ async function $do25(client, options) {
61250
61471
  const responseFields = {
61251
61472
  HttpMeta: { Response: response, Request: req }
61252
61473
  };
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 });
61474
+ 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
61475
  if (!result.ok) {
61255
61476
  return [result, { status: "complete", request: req, response }];
61256
61477
  }
@@ -61294,11 +61515,10 @@ Returns a list of available event topics configured in the Outpost instance.`,
61294
61515
  function createMCPServer(deps) {
61295
61516
  const server = new McpServer({
61296
61517
  name: "Outpost",
61297
- version: "0.7.0"
61518
+ version: "0.9.0"
61298
61519
  });
61299
61520
  const client = new OutpostCore({
61300
- security: deps.security,
61301
- tenantId: deps.tenantId,
61521
+ apiKey: deps.apiKey,
61302
61522
  serverURL: deps.serverURL,
61303
61523
  serverIdx: deps.serverIdx
61304
61524
  });
@@ -61310,7 +61530,7 @@ function createMCPServer(deps) {
61310
61530
  const prompt = createRegisterPrompt(deps.logger, server, client, scopes);
61311
61531
  const register = { tool, resource, resourceTemplate, prompt };
61312
61532
  tool(tool$healthCheck);
61313
- tool(tool$tenantsListTenants);
61533
+ tool(tool$tenantsList);
61314
61534
  tool(tool$tenantsUpsert);
61315
61535
  tool(tool$tenantsGet);
61316
61536
  tool(tool$tenantsDelete);
@@ -61331,8 +61551,8 @@ function createMCPServer(deps) {
61331
61551
  tool(tool$destinationsListAttempts);
61332
61552
  tool(tool$destinationsGetAttempt);
61333
61553
  tool(tool$publishEvent);
61334
- tool(tool$schemasListDestinationTypesJwt);
61335
- tool(tool$schemasGetDestinationTypeJwt);
61554
+ tool(tool$schemasListDestinationTypes);
61555
+ tool(tool$schemasGetDestinationType);
61336
61556
  tool(tool$topicsList);
61337
61557
  return server;
61338
61558
  }
@@ -61357,13 +61577,13 @@ var init_server2 = __esm(() => {
61357
61577
  init_eventsList2();
61358
61578
  init_healthCheck2();
61359
61579
  init_publishEvent2();
61360
- init_schemasGetDestinationTypeJwt2();
61361
- init_schemasListDestinationTypesJwt2();
61580
+ init_schemasGetDestinationType2();
61581
+ init_schemasListDestinationTypes2();
61362
61582
  init_tenantsDelete2();
61363
61583
  init_tenantsGet2();
61364
61584
  init_tenantsGetPortalUrl2();
61365
61585
  init_tenantsGetToken2();
61366
- init_tenantsListTenants2();
61586
+ init_tenantsList2();
61367
61587
  init_tenantsUpsert2();
61368
61588
  init_topicsList2();
61369
61589
  });
@@ -61394,11 +61614,7 @@ async function startStdio(flags) {
61394
61614
  const server = createMCPServer({
61395
61615
  logger,
61396
61616
  allowedTools: flags.tool,
61397
- security: {
61398
- adminApiKey: flags["admin-api-key"] ?? "",
61399
- tenantJwt: flags["tenant-jwt"] ?? ""
61400
- },
61401
- tenantId: flags["tenant-id"],
61617
+ apiKey: flags["api-key"] ?? "",
61402
61618
  serverURL: flags["server-url"],
61403
61619
  serverIdx: flags["server-index"]
61404
61620
  });
@@ -61416,11 +61632,7 @@ async function startSSE(flags) {
61416
61632
  const mcpServer = createMCPServer({
61417
61633
  logger,
61418
61634
  allowedTools: flags.tool,
61419
- security: {
61420
- adminApiKey: flags["admin-api-key"] ?? "",
61421
- tenantJwt: flags["tenant-jwt"] ?? ""
61422
- },
61423
- tenantId: flags["tenant-id"],
61635
+ apiKey: flags["api-key"] ?? "",
61424
61636
  serverURL: flags["server-url"],
61425
61637
  serverIdx: flags["server-index"]
61426
61638
  });
@@ -62481,25 +62693,9 @@ var startCommand = on({
62481
62693
  return stringType().parse(value);
62482
62694
  }
62483
62695
  },
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": {
62696
+ "api-key": {
62501
62697
  kind: "parsed",
62502
- brief: "Allows setting the tenantId parameter for all supported operations",
62698
+ brief: "Sets the apiKey auth field for the API",
62503
62699
  optional: true,
62504
62700
  parse: (value) => {
62505
62701
  return stringType().parse(value);
@@ -62564,7 +62760,7 @@ var routes = an({
62564
62760
  var app = He(routes, {
62565
62761
  name: "mcp",
62566
62762
  versionInfo: {
62567
- currentVersion: "0.7.0"
62763
+ currentVersion: "0.9.0"
62568
62764
  }
62569
62765
  });
62570
62766
  zt(app, process4.argv.slice(2), buildContext(process4));
@@ -62572,5 +62768,5 @@ export {
62572
62768
  app
62573
62769
  };
62574
62770
 
62575
- //# debugId=3013E21FDEDBF04464756E2164756E21
62771
+ //# debugId=D18442F15B9C3D4D64756E2164756E21
62576
62772
  //# sourceMappingURL=mcp-server.js.map