@hookdeck/outpost-sdk 0.9.1 → 0.9.2

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 (266) hide show
  1. package/README.md +14 -7
  2. package/bin/mcp-server.js +1024 -407
  3. package/bin/mcp-server.js.map +47 -40
  4. package/dist/commonjs/funcs/attemptsGet.js.map +1 -1
  5. package/dist/commonjs/funcs/destinationsCreate.js.map +1 -1
  6. package/dist/commonjs/funcs/destinationsDelete.js.map +1 -1
  7. package/dist/commonjs/funcs/destinationsDisable.js.map +1 -1
  8. package/dist/commonjs/funcs/destinationsEnable.js.map +1 -1
  9. package/dist/commonjs/funcs/destinationsGet.js.map +1 -1
  10. package/dist/commonjs/funcs/destinationsGetAttempt.js.map +1 -1
  11. package/dist/commonjs/funcs/destinationsList.js.map +1 -1
  12. package/dist/commonjs/funcs/destinationsListAttempts.js.map +1 -1
  13. package/dist/commonjs/funcs/destinationsUpdate.js.map +1 -1
  14. package/dist/commonjs/funcs/eventsGet.js.map +1 -1
  15. package/dist/commonjs/funcs/metricsGetAttemptMetrics.d.ts +28 -0
  16. package/dist/commonjs/funcs/metricsGetAttemptMetrics.d.ts.map +1 -0
  17. package/dist/commonjs/funcs/metricsGetAttemptMetrics.js +142 -0
  18. package/dist/commonjs/funcs/metricsGetAttemptMetrics.js.map +1 -0
  19. package/dist/commonjs/funcs/metricsGetEventMetrics.d.ts +26 -0
  20. package/dist/commonjs/funcs/metricsGetEventMetrics.d.ts.map +1 -0
  21. package/dist/commonjs/funcs/metricsGetEventMetrics.js +136 -0
  22. package/dist/commonjs/funcs/metricsGetEventMetrics.js.map +1 -0
  23. package/dist/commonjs/funcs/schemasGetDestinationType.js.map +1 -1
  24. package/dist/commonjs/funcs/tenantsDelete.js.map +1 -1
  25. package/dist/commonjs/funcs/tenantsGet.js.map +1 -1
  26. package/dist/commonjs/funcs/tenantsGetPortalUrl.js.map +1 -1
  27. package/dist/commonjs/funcs/tenantsGetToken.js.map +1 -1
  28. package/dist/commonjs/funcs/tenantsUpsert.js.map +1 -1
  29. package/dist/commonjs/lib/config.d.ts +3 -3
  30. package/dist/commonjs/lib/config.js +3 -3
  31. package/dist/commonjs/lib/config.js.map +1 -1
  32. package/dist/commonjs/lib/files.d.ts +13 -0
  33. package/dist/commonjs/lib/files.d.ts.map +1 -1
  34. package/dist/commonjs/lib/files.js +19 -0
  35. package/dist/commonjs/lib/files.js.map +1 -1
  36. package/dist/commonjs/lib/sdks.d.ts.map +1 -1
  37. package/dist/commonjs/lib/sdks.js +8 -4
  38. package/dist/commonjs/lib/sdks.js.map +1 -1
  39. package/dist/commonjs/lib/url.d.ts.map +1 -1
  40. package/dist/commonjs/lib/url.js +4 -2
  41. package/dist/commonjs/lib/url.js.map +1 -1
  42. package/dist/commonjs/mcp-server/mcp-server.js +1 -1
  43. package/dist/commonjs/mcp-server/server.d.ts.map +1 -1
  44. package/dist/commonjs/mcp-server/server.js +5 -1
  45. package/dist/commonjs/mcp-server/server.js.map +1 -1
  46. package/dist/commonjs/mcp-server/tools/metricsGetAttemptMetrics.d.ts +8 -0
  47. package/dist/commonjs/mcp-server/tools/metricsGetAttemptMetrics.d.ts.map +1 -0
  48. package/dist/commonjs/mcp-server/tools/metricsGetAttemptMetrics.js +74 -0
  49. package/dist/commonjs/mcp-server/tools/metricsGetAttemptMetrics.js.map +1 -0
  50. package/dist/commonjs/mcp-server/tools/metricsGetEventMetrics.d.ts +8 -0
  51. package/dist/commonjs/mcp-server/tools/metricsGetEventMetrics.d.ts.map +1 -0
  52. package/dist/commonjs/mcp-server/tools/metricsGetEventMetrics.js +72 -0
  53. package/dist/commonjs/mcp-server/tools/metricsGetEventMetrics.js.map +1 -0
  54. package/dist/commonjs/models/components/attempt.d.ts +104 -6
  55. package/dist/commonjs/models/components/attempt.d.ts.map +1 -1
  56. package/dist/commonjs/models/components/attempt.js +106 -11
  57. package/dist/commonjs/models/components/attempt.js.map +1 -1
  58. package/dist/commonjs/models/components/index.d.ts +3 -2
  59. package/dist/commonjs/models/components/index.d.ts.map +1 -1
  60. package/dist/commonjs/models/components/index.js +3 -2
  61. package/dist/commonjs/models/components/index.js.map +1 -1
  62. package/dist/commonjs/models/components/metricsdatapoint.d.ts +38 -0
  63. package/dist/commonjs/models/components/metricsdatapoint.d.ts.map +1 -0
  64. package/dist/commonjs/models/components/{eventsummary.js → metricsdatapoint.js} +18 -31
  65. package/dist/commonjs/models/components/metricsdatapoint.js.map +1 -0
  66. package/dist/commonjs/models/components/metricsmetadata.d.ts +40 -0
  67. package/dist/commonjs/models/components/metricsmetadata.d.ts.map +1 -0
  68. package/dist/commonjs/models/components/{eventfull.js → metricsmetadata.js} +26 -33
  69. package/dist/commonjs/models/components/metricsmetadata.js.map +1 -0
  70. package/dist/commonjs/models/components/metricsresponse.d.ts +24 -0
  71. package/dist/commonjs/models/components/metricsresponse.d.ts.map +1 -0
  72. package/dist/commonjs/models/components/metricsresponse.js +62 -0
  73. package/dist/commonjs/models/components/metricsresponse.js.map +1 -0
  74. package/dist/commonjs/models/operations/getattempt.d.ts +2 -0
  75. package/dist/commonjs/models/operations/getattempt.d.ts.map +1 -1
  76. package/dist/commonjs/models/operations/getattempt.js.map +1 -1
  77. package/dist/commonjs/models/operations/getattemptmetrics.d.ts +273 -0
  78. package/dist/commonjs/models/operations/getattemptmetrics.d.ts.map +1 -0
  79. package/dist/commonjs/models/operations/getattemptmetrics.js +326 -0
  80. package/dist/commonjs/models/operations/getattemptmetrics.js.map +1 -0
  81. package/dist/commonjs/models/operations/geteventmetrics.d.ts +158 -0
  82. package/dist/commonjs/models/operations/geteventmetrics.d.ts.map +1 -0
  83. package/dist/commonjs/models/operations/geteventmetrics.js +208 -0
  84. package/dist/commonjs/models/operations/geteventmetrics.js.map +1 -0
  85. package/dist/commonjs/models/operations/gettenantdestinationattempt.d.ts +2 -0
  86. package/dist/commonjs/models/operations/gettenantdestinationattempt.d.ts.map +1 -1
  87. package/dist/commonjs/models/operations/gettenantdestinationattempt.js.map +1 -1
  88. package/dist/commonjs/models/operations/index.d.ts +2 -0
  89. package/dist/commonjs/models/operations/index.d.ts.map +1 -1
  90. package/dist/commonjs/models/operations/index.js +2 -0
  91. package/dist/commonjs/models/operations/index.js.map +1 -1
  92. package/dist/commonjs/models/operations/listattempts.d.ts +2 -0
  93. package/dist/commonjs/models/operations/listattempts.d.ts.map +1 -1
  94. package/dist/commonjs/models/operations/listattempts.js.map +1 -1
  95. package/dist/commonjs/models/operations/listtenantdestinationattempts.d.ts +2 -0
  96. package/dist/commonjs/models/operations/listtenantdestinationattempts.d.ts.map +1 -1
  97. package/dist/commonjs/models/operations/listtenantdestinationattempts.js.map +1 -1
  98. package/dist/commonjs/sdk/metrics.d.ts +36 -0
  99. package/dist/commonjs/sdk/metrics.d.ts.map +1 -0
  100. package/dist/commonjs/sdk/metrics.js +48 -0
  101. package/dist/commonjs/sdk/metrics.js.map +1 -0
  102. package/dist/commonjs/sdk/sdk.d.ts +3 -0
  103. package/dist/commonjs/sdk/sdk.d.ts.map +1 -1
  104. package/dist/commonjs/sdk/sdk.js +4 -0
  105. package/dist/commonjs/sdk/sdk.js.map +1 -1
  106. package/dist/esm/funcs/attemptsGet.js.map +1 -1
  107. package/dist/esm/funcs/destinationsCreate.js.map +1 -1
  108. package/dist/esm/funcs/destinationsDelete.js.map +1 -1
  109. package/dist/esm/funcs/destinationsDisable.js.map +1 -1
  110. package/dist/esm/funcs/destinationsEnable.js.map +1 -1
  111. package/dist/esm/funcs/destinationsGet.js.map +1 -1
  112. package/dist/esm/funcs/destinationsGetAttempt.js.map +1 -1
  113. package/dist/esm/funcs/destinationsList.js.map +1 -1
  114. package/dist/esm/funcs/destinationsListAttempts.js.map +1 -1
  115. package/dist/esm/funcs/destinationsUpdate.js.map +1 -1
  116. package/dist/esm/funcs/eventsGet.js.map +1 -1
  117. package/dist/esm/funcs/metricsGetAttemptMetrics.d.ts +28 -0
  118. package/dist/esm/funcs/metricsGetAttemptMetrics.d.ts.map +1 -0
  119. package/dist/esm/funcs/metricsGetAttemptMetrics.js +106 -0
  120. package/dist/esm/funcs/metricsGetAttemptMetrics.js.map +1 -0
  121. package/dist/esm/funcs/metricsGetEventMetrics.d.ts +26 -0
  122. package/dist/esm/funcs/metricsGetEventMetrics.d.ts.map +1 -0
  123. package/dist/esm/funcs/metricsGetEventMetrics.js +100 -0
  124. package/dist/esm/funcs/metricsGetEventMetrics.js.map +1 -0
  125. package/dist/esm/funcs/schemasGetDestinationType.js.map +1 -1
  126. package/dist/esm/funcs/tenantsDelete.js.map +1 -1
  127. package/dist/esm/funcs/tenantsGet.js.map +1 -1
  128. package/dist/esm/funcs/tenantsGetPortalUrl.js.map +1 -1
  129. package/dist/esm/funcs/tenantsGetToken.js.map +1 -1
  130. package/dist/esm/funcs/tenantsUpsert.js.map +1 -1
  131. package/dist/esm/lib/config.d.ts +3 -3
  132. package/dist/esm/lib/config.js +3 -3
  133. package/dist/esm/lib/config.js.map +1 -1
  134. package/dist/esm/lib/files.d.ts +13 -0
  135. package/dist/esm/lib/files.d.ts.map +1 -1
  136. package/dist/esm/lib/files.js +18 -0
  137. package/dist/esm/lib/files.js.map +1 -1
  138. package/dist/esm/lib/sdks.d.ts.map +1 -1
  139. package/dist/esm/lib/sdks.js +8 -4
  140. package/dist/esm/lib/sdks.js.map +1 -1
  141. package/dist/esm/lib/url.d.ts.map +1 -1
  142. package/dist/esm/lib/url.js +4 -2
  143. package/dist/esm/lib/url.js.map +1 -1
  144. package/dist/esm/mcp-server/mcp-server.js +1 -1
  145. package/dist/esm/mcp-server/server.d.ts.map +1 -1
  146. package/dist/esm/mcp-server/server.js +5 -1
  147. package/dist/esm/mcp-server/server.js.map +1 -1
  148. package/dist/esm/mcp-server/tools/metricsGetAttemptMetrics.d.ts +8 -0
  149. package/dist/esm/mcp-server/tools/metricsGetAttemptMetrics.d.ts.map +1 -0
  150. package/dist/esm/mcp-server/tools/metricsGetAttemptMetrics.js +38 -0
  151. package/dist/esm/mcp-server/tools/metricsGetAttemptMetrics.js.map +1 -0
  152. package/dist/esm/mcp-server/tools/metricsGetEventMetrics.d.ts +8 -0
  153. package/dist/esm/mcp-server/tools/metricsGetEventMetrics.d.ts.map +1 -0
  154. package/dist/esm/mcp-server/tools/metricsGetEventMetrics.js +36 -0
  155. package/dist/esm/mcp-server/tools/metricsGetEventMetrics.js.map +1 -0
  156. package/dist/esm/models/components/attempt.d.ts +104 -6
  157. package/dist/esm/models/components/attempt.d.ts.map +1 -1
  158. package/dist/esm/models/components/attempt.js +101 -10
  159. package/dist/esm/models/components/attempt.js.map +1 -1
  160. package/dist/esm/models/components/index.d.ts +3 -2
  161. package/dist/esm/models/components/index.d.ts.map +1 -1
  162. package/dist/esm/models/components/index.js +3 -2
  163. package/dist/esm/models/components/index.js.map +1 -1
  164. package/dist/esm/models/components/metricsdatapoint.d.ts +38 -0
  165. package/dist/esm/models/components/metricsdatapoint.d.ts.map +1 -0
  166. package/dist/esm/models/components/metricsdatapoint.js +33 -0
  167. package/dist/esm/models/components/metricsdatapoint.js.map +1 -0
  168. package/dist/esm/models/components/metricsmetadata.d.ts +40 -0
  169. package/dist/esm/models/components/metricsmetadata.d.ts.map +1 -0
  170. package/dist/esm/models/components/metricsmetadata.js +41 -0
  171. package/dist/esm/models/components/metricsmetadata.js.map +1 -0
  172. package/dist/esm/models/components/metricsresponse.d.ts +24 -0
  173. package/dist/esm/models/components/metricsresponse.d.ts.map +1 -0
  174. package/dist/esm/models/components/metricsresponse.js +24 -0
  175. package/dist/esm/models/components/metricsresponse.js.map +1 -0
  176. package/dist/esm/models/operations/getattempt.d.ts +2 -0
  177. package/dist/esm/models/operations/getattempt.d.ts.map +1 -1
  178. package/dist/esm/models/operations/getattempt.js.map +1 -1
  179. package/dist/esm/models/operations/getattemptmetrics.d.ts +273 -0
  180. package/dist/esm/models/operations/getattemptmetrics.d.ts.map +1 -0
  181. package/dist/esm/models/operations/getattemptmetrics.js +272 -0
  182. package/dist/esm/models/operations/getattemptmetrics.js.map +1 -0
  183. package/dist/esm/models/operations/geteventmetrics.d.ts +158 -0
  184. package/dist/esm/models/operations/geteventmetrics.d.ts.map +1 -0
  185. package/dist/esm/models/operations/geteventmetrics.js +160 -0
  186. package/dist/esm/models/operations/geteventmetrics.js.map +1 -0
  187. package/dist/esm/models/operations/gettenantdestinationattempt.d.ts +2 -0
  188. package/dist/esm/models/operations/gettenantdestinationattempt.d.ts.map +1 -1
  189. package/dist/esm/models/operations/gettenantdestinationattempt.js.map +1 -1
  190. package/dist/esm/models/operations/index.d.ts +2 -0
  191. package/dist/esm/models/operations/index.d.ts.map +1 -1
  192. package/dist/esm/models/operations/index.js +2 -0
  193. package/dist/esm/models/operations/index.js.map +1 -1
  194. package/dist/esm/models/operations/listattempts.d.ts +2 -0
  195. package/dist/esm/models/operations/listattempts.d.ts.map +1 -1
  196. package/dist/esm/models/operations/listattempts.js.map +1 -1
  197. package/dist/esm/models/operations/listtenantdestinationattempts.d.ts +2 -0
  198. package/dist/esm/models/operations/listtenantdestinationattempts.d.ts.map +1 -1
  199. package/dist/esm/models/operations/listtenantdestinationattempts.js.map +1 -1
  200. package/dist/esm/sdk/metrics.d.ts +36 -0
  201. package/dist/esm/sdk/metrics.d.ts.map +1 -0
  202. package/dist/esm/sdk/metrics.js +44 -0
  203. package/dist/esm/sdk/metrics.js.map +1 -0
  204. package/dist/esm/sdk/sdk.d.ts +3 -0
  205. package/dist/esm/sdk/sdk.d.ts.map +1 -1
  206. package/dist/esm/sdk/sdk.js +4 -0
  207. package/dist/esm/sdk/sdk.js.map +1 -1
  208. package/jsr.json +1 -1
  209. package/package.json +1 -1
  210. package/src/funcs/attemptsGet.ts +0 -1
  211. package/src/funcs/destinationsCreate.ts +0 -1
  212. package/src/funcs/destinationsDelete.ts +0 -1
  213. package/src/funcs/destinationsDisable.ts +0 -1
  214. package/src/funcs/destinationsEnable.ts +0 -1
  215. package/src/funcs/destinationsGet.ts +0 -1
  216. package/src/funcs/destinationsGetAttempt.ts +0 -1
  217. package/src/funcs/destinationsList.ts +0 -1
  218. package/src/funcs/destinationsListAttempts.ts +0 -1
  219. package/src/funcs/destinationsUpdate.ts +0 -1
  220. package/src/funcs/eventsGet.ts +0 -1
  221. package/src/funcs/metricsGetAttemptMetrics.ts +206 -0
  222. package/src/funcs/metricsGetEventMetrics.ts +200 -0
  223. package/src/funcs/schemasGetDestinationType.ts +0 -1
  224. package/src/funcs/tenantsDelete.ts +0 -1
  225. package/src/funcs/tenantsGet.ts +0 -1
  226. package/src/funcs/tenantsGetPortalUrl.ts +0 -1
  227. package/src/funcs/tenantsGetToken.ts +0 -1
  228. package/src/funcs/tenantsUpsert.ts +0 -1
  229. package/src/lib/config.ts +3 -3
  230. package/src/lib/files.ts +22 -0
  231. package/src/lib/sdks.ts +7 -5
  232. package/src/lib/url.ts +16 -14
  233. package/src/mcp-server/mcp-server.ts +1 -1
  234. package/src/mcp-server/server.ts +5 -1
  235. package/src/mcp-server/tools/metricsGetAttemptMetrics.ts +47 -0
  236. package/src/mcp-server/tools/metricsGetEventMetrics.ts +45 -0
  237. package/src/models/components/attempt.ts +224 -23
  238. package/src/models/components/index.ts +3 -2
  239. package/src/models/components/metricsdatapoint.ts +79 -0
  240. package/src/models/components/metricsmetadata.ts +93 -0
  241. package/src/models/components/metricsresponse.ts +68 -0
  242. package/src/models/operations/getattempt.ts +2 -0
  243. package/src/models/operations/getattemptmetrics.ts +668 -0
  244. package/src/models/operations/geteventmetrics.ts +434 -0
  245. package/src/models/operations/gettenantdestinationattempt.ts +2 -0
  246. package/src/models/operations/index.ts +2 -0
  247. package/src/models/operations/listattempts.ts +2 -0
  248. package/src/models/operations/listtenantdestinationattempts.ts +2 -0
  249. package/src/sdk/metrics.ts +62 -0
  250. package/src/sdk/sdk.ts +6 -0
  251. package/dist/commonjs/models/components/eventfull.d.ts +0 -57
  252. package/dist/commonjs/models/components/eventfull.d.ts.map +0 -1
  253. package/dist/commonjs/models/components/eventfull.js.map +0 -1
  254. package/dist/commonjs/models/components/eventsummary.d.ts +0 -48
  255. package/dist/commonjs/models/components/eventsummary.d.ts.map +0 -1
  256. package/dist/commonjs/models/components/eventsummary.js.map +0 -1
  257. package/dist/esm/models/components/eventfull.d.ts +0 -57
  258. package/dist/esm/models/components/eventfull.d.ts.map +0 -1
  259. package/dist/esm/models/components/eventfull.js +0 -48
  260. package/dist/esm/models/components/eventfull.js.map +0 -1
  261. package/dist/esm/models/components/eventsummary.d.ts +0 -48
  262. package/dist/esm/models/components/eventsummary.d.ts.map +0 -1
  263. package/dist/esm/models/components/eventsummary.js +0 -46
  264. package/dist/esm/models/components/eventsummary.js.map +0 -1
  265. package/src/models/components/eventfull.ts +0 -107
  266. package/src/models/components/eventsummary.ts +0 -100
package/bin/mcp-server.js CHANGED
@@ -53559,7 +53559,7 @@ function pathToFunc(pathPattern, options) {
53559
53559
  throw new Error(`Parameter '${placeholder}' must be a string or number`);
53560
53560
  }
53561
53561
  return options?.charEncoding === "percent" ? encodeURIComponent(`${value}`) : `${value}`;
53562
- });
53562
+ }).replace(/^\/+/, "");
53563
53563
  };
53564
53564
  }
53565
53565
  var hasOwn;
@@ -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.9.1",
53595
- genVersion: "2.865.2",
53596
- userAgent: "speakeasy-sdk/typescript 0.9.1 2.865.2 0.0.1 @hookdeck/outpost-sdk"
53594
+ sdkVersion: "0.9.2",
53595
+ genVersion: "2.869.10",
53596
+ userAgent: "speakeasy-sdk/typescript 0.9.2 2.869.10 0.0.1 @hookdeck/outpost-sdk"
53597
53597
  };
53598
53598
  });
53599
53599
 
@@ -54156,12 +54156,15 @@ class ClientSDK {
54156
54156
  if (!base) {
54157
54157
  return ERR(new InvalidRequestError("No base URL provided for operation"));
54158
54158
  }
54159
- const reqURL = new URL(base);
54160
- const inputURL = new URL(path, reqURL);
54159
+ const baseURL = new URL(base);
54160
+ let reqURL;
54161
54161
  if (path) {
54162
- reqURL.pathname += reqURL.pathname.endsWith("/") ? "" : "/";
54163
- reqURL.pathname += inputURL.pathname.replace(/^\/+/, "");
54162
+ baseURL.pathname = baseURL.pathname.replace(/\/+$/, "") + "/";
54163
+ reqURL = new URL(path, baseURL);
54164
+ } else {
54165
+ reqURL = baseURL;
54164
54166
  }
54167
+ reqURL.hash = "";
54165
54168
  let finalQuery = query || "";
54166
54169
  const secQuery = [];
54167
54170
  for (const [k2, v2] of Object.entries(security?.queryParams || {})) {
@@ -55049,192 +55052,6 @@ var init_security = __esm(() => {
55049
55052
  };
55050
55053
  });
55051
55054
 
55052
- // src/models/components/eventfull.ts
55053
- var EventFull$inboundSchema, EventFull$outboundSchema;
55054
- var init_eventfull = __esm(() => {
55055
- init_v3();
55056
- init_primitives();
55057
- EventFull$inboundSchema = objectType({
55058
- id: stringType().optional(),
55059
- tenant_id: stringType().optional(),
55060
- destination_id: stringType().optional(),
55061
- topic: stringType().optional(),
55062
- time: stringType().datetime({ offset: true }).transform((v2) => new Date(v2)).optional(),
55063
- eligible_for_retry: booleanType().optional(),
55064
- metadata: nullableType(recordType(stringType())).optional(),
55065
- data: recordType(anyType()).optional()
55066
- }).transform((v2) => {
55067
- return remap(v2, {
55068
- tenant_id: "tenantId",
55069
- destination_id: "destinationId",
55070
- eligible_for_retry: "eligibleForRetry"
55071
- });
55072
- });
55073
- EventFull$outboundSchema = objectType({
55074
- id: stringType().optional(),
55075
- tenantId: stringType().optional(),
55076
- destinationId: stringType().optional(),
55077
- topic: stringType().optional(),
55078
- time: dateType().transform((v2) => v2.toISOString()).optional(),
55079
- eligibleForRetry: booleanType().optional(),
55080
- metadata: nullableType(recordType(stringType())).optional(),
55081
- data: recordType(anyType()).optional()
55082
- }).transform((v2) => {
55083
- return remap(v2, {
55084
- tenantId: "tenant_id",
55085
- destinationId: "destination_id",
55086
- eligibleForRetry: "eligible_for_retry"
55087
- });
55088
- });
55089
- });
55090
-
55091
- // src/models/components/eventsummary.ts
55092
- var EventSummary$inboundSchema, EventSummary$outboundSchema;
55093
- var init_eventsummary = __esm(() => {
55094
- init_v3();
55095
- init_primitives();
55096
- EventSummary$inboundSchema = objectType({
55097
- id: stringType().optional(),
55098
- tenant_id: stringType().optional(),
55099
- destination_id: stringType().optional(),
55100
- topic: stringType().optional(),
55101
- time: stringType().datetime({ offset: true }).transform((v2) => new Date(v2)).optional(),
55102
- eligible_for_retry: booleanType().optional(),
55103
- metadata: nullableType(recordType(stringType())).optional()
55104
- }).transform((v2) => {
55105
- return remap(v2, {
55106
- tenant_id: "tenantId",
55107
- destination_id: "destinationId",
55108
- eligible_for_retry: "eligibleForRetry"
55109
- });
55110
- });
55111
- EventSummary$outboundSchema = objectType({
55112
- id: stringType().optional(),
55113
- tenantId: stringType().optional(),
55114
- destinationId: stringType().optional(),
55115
- topic: stringType().optional(),
55116
- time: dateType().transform((v2) => v2.toISOString()).optional(),
55117
- eligibleForRetry: booleanType().optional(),
55118
- metadata: nullableType(recordType(stringType())).optional()
55119
- }).transform((v2) => {
55120
- return remap(v2, {
55121
- tenantId: "tenant_id",
55122
- destinationId: "destination_id",
55123
- eligibleForRetry: "eligible_for_retry"
55124
- });
55125
- });
55126
- });
55127
-
55128
- // src/models/components/attempt.ts
55129
- var Status, Status$inboundSchema, Status$outboundSchema, EventUnion$inboundSchema, EventUnion$outboundSchema, Attempt$inboundSchema, Attempt$outboundSchema;
55130
- var init_attempt = __esm(() => {
55131
- init_v3();
55132
- init_primitives();
55133
- init_eventfull();
55134
- init_eventsummary();
55135
- Status = {
55136
- Success: "success",
55137
- Failed: "failed"
55138
- };
55139
- Status$inboundSchema = nativeEnumType(Status);
55140
- Status$outboundSchema = Status$inboundSchema;
55141
- EventUnion$inboundSchema = unionType([EventSummary$inboundSchema, EventFull$inboundSchema]);
55142
- EventUnion$outboundSchema = unionType([EventSummary$outboundSchema, EventFull$outboundSchema]);
55143
- Attempt$inboundSchema = objectType({
55144
- id: stringType().optional(),
55145
- tenant_id: stringType().optional(),
55146
- status: Status$inboundSchema.optional(),
55147
- time: stringType().datetime({ offset: true }).transform((v2) => new Date(v2)).optional(),
55148
- code: stringType().optional(),
55149
- response_data: recordType(anyType()).optional(),
55150
- attempt_number: numberType().int().optional(),
55151
- manual: booleanType().optional(),
55152
- event_id: stringType().optional(),
55153
- destination_id: stringType().optional(),
55154
- event: unionType([EventSummary$inboundSchema, EventFull$inboundSchema]).optional()
55155
- }).transform((v2) => {
55156
- return remap(v2, {
55157
- tenant_id: "tenantId",
55158
- response_data: "responseData",
55159
- attempt_number: "attemptNumber",
55160
- event_id: "eventId",
55161
- destination_id: "destinationId"
55162
- });
55163
- });
55164
- Attempt$outboundSchema = objectType({
55165
- id: stringType().optional(),
55166
- tenantId: stringType().optional(),
55167
- status: Status$outboundSchema.optional(),
55168
- time: dateType().transform((v2) => v2.toISOString()).optional(),
55169
- code: stringType().optional(),
55170
- responseData: recordType(anyType()).optional(),
55171
- attemptNumber: numberType().int().optional(),
55172
- manual: booleanType().optional(),
55173
- eventId: stringType().optional(),
55174
- destinationId: stringType().optional(),
55175
- event: unionType([EventSummary$outboundSchema, EventFull$outboundSchema]).optional()
55176
- }).transform((v2) => {
55177
- return remap(v2, {
55178
- tenantId: "tenant_id",
55179
- responseData: "response_data",
55180
- attemptNumber: "attempt_number",
55181
- eventId: "event_id",
55182
- destinationId: "destination_id"
55183
- });
55184
- });
55185
- });
55186
-
55187
- // src/models/components/seekpagination.ts
55188
- var Dir, Dir$inboundSchema, Dir$outboundSchema, SeekPagination$inboundSchema, SeekPagination$outboundSchema;
55189
- var init_seekpagination = __esm(() => {
55190
- init_v3();
55191
- init_primitives();
55192
- Dir = {
55193
- Asc: "asc",
55194
- Desc: "desc"
55195
- };
55196
- Dir$inboundSchema = nativeEnumType(Dir);
55197
- Dir$outboundSchema = Dir$inboundSchema;
55198
- SeekPagination$inboundSchema = objectType({
55199
- order_by: stringType().optional(),
55200
- dir: Dir$inboundSchema.optional(),
55201
- limit: numberType().int().optional(),
55202
- next: nullableType(stringType()).optional(),
55203
- prev: nullableType(stringType()).optional()
55204
- }).transform((v2) => {
55205
- return remap(v2, {
55206
- order_by: "orderBy"
55207
- });
55208
- });
55209
- SeekPagination$outboundSchema = objectType({
55210
- orderBy: stringType().optional(),
55211
- dir: Dir$outboundSchema.optional(),
55212
- limit: numberType().int().optional(),
55213
- next: nullableType(stringType()).optional(),
55214
- prev: nullableType(stringType()).optional()
55215
- }).transform((v2) => {
55216
- return remap(v2, {
55217
- orderBy: "order_by"
55218
- });
55219
- });
55220
- });
55221
-
55222
- // src/models/components/attemptpaginatedresult.ts
55223
- var AttemptPaginatedResult$inboundSchema, AttemptPaginatedResult$outboundSchema;
55224
- var init_attemptpaginatedresult = __esm(() => {
55225
- init_v3();
55226
- init_attempt();
55227
- init_seekpagination();
55228
- AttemptPaginatedResult$inboundSchema = objectType({
55229
- models: arrayType(Attempt$inboundSchema).optional(),
55230
- pagination: SeekPagination$inboundSchema.optional()
55231
- });
55232
- AttemptPaginatedResult$outboundSchema = objectType({
55233
- models: arrayType(Attempt$outboundSchema).optional(),
55234
- pagination: SeekPagination$outboundSchema.optional()
55235
- });
55236
- });
55237
-
55238
55055
  // src/models/components/awskinesisconfig.ts
55239
55056
  var AWSKinesisConfig$inboundSchema, AWSKinesisConfig$outboundSchema;
55240
55057
  var init_awskinesisconfig = __esm(() => {
@@ -55280,123 +55097,6 @@ var init_awskinesiscredentials = __esm(() => {
55280
55097
  });
55281
55098
  });
55282
55099
 
55283
- // src/models/components/awss3config.ts
55284
- var Awss3Config$inboundSchema, Awss3Config$outboundSchema;
55285
- var init_awss3config = __esm(() => {
55286
- init_v3();
55287
- init_primitives();
55288
- Awss3Config$inboundSchema = objectType({
55289
- bucket: stringType(),
55290
- region: stringType(),
55291
- key_template: stringType().optional(),
55292
- storage_class: stringType().optional()
55293
- }).transform((v2) => {
55294
- return remap(v2, {
55295
- key_template: "keyTemplate",
55296
- storage_class: "storageClass"
55297
- });
55298
- });
55299
- Awss3Config$outboundSchema = objectType({
55300
- bucket: stringType(),
55301
- region: stringType(),
55302
- keyTemplate: stringType().optional(),
55303
- storageClass: stringType().optional()
55304
- }).transform((v2) => {
55305
- return remap(v2, {
55306
- keyTemplate: "key_template",
55307
- storageClass: "storage_class"
55308
- });
55309
- });
55310
- });
55311
-
55312
- // src/models/components/awss3credentials.ts
55313
- var Awss3Credentials$inboundSchema, Awss3Credentials$outboundSchema;
55314
- var init_awss3credentials = __esm(() => {
55315
- init_v3();
55316
- Awss3Credentials$inboundSchema = objectType({
55317
- key: stringType(),
55318
- secret: stringType(),
55319
- session: stringType().optional()
55320
- });
55321
- Awss3Credentials$outboundSchema = objectType({
55322
- key: stringType(),
55323
- secret: stringType(),
55324
- session: stringType().optional()
55325
- });
55326
- });
55327
-
55328
- // src/models/components/awssqsconfig.ts
55329
- var AWSSQSConfig$inboundSchema, AWSSQSConfig$outboundSchema;
55330
- var init_awssqsconfig = __esm(() => {
55331
- init_v3();
55332
- init_primitives();
55333
- AWSSQSConfig$inboundSchema = objectType({
55334
- endpoint: stringType().optional(),
55335
- queue_url: stringType()
55336
- }).transform((v2) => {
55337
- return remap(v2, {
55338
- queue_url: "queueUrl"
55339
- });
55340
- });
55341
- AWSSQSConfig$outboundSchema = objectType({
55342
- endpoint: stringType().optional(),
55343
- queueUrl: stringType()
55344
- }).transform((v2) => {
55345
- return remap(v2, {
55346
- queueUrl: "queue_url"
55347
- });
55348
- });
55349
- });
55350
-
55351
- // src/models/components/awssqscredentials.ts
55352
- var AWSSQSCredentials$inboundSchema, AWSSQSCredentials$outboundSchema;
55353
- var init_awssqscredentials = __esm(() => {
55354
- init_v3();
55355
- AWSSQSCredentials$inboundSchema = objectType({
55356
- key: stringType(),
55357
- secret: stringType(),
55358
- session: stringType().optional()
55359
- });
55360
- AWSSQSCredentials$outboundSchema = objectType({
55361
- key: stringType(),
55362
- secret: stringType(),
55363
- session: stringType().optional()
55364
- });
55365
- });
55366
-
55367
- // src/models/components/azureservicebusconfig.ts
55368
- var AzureServiceBusConfig$inboundSchema, AzureServiceBusConfig$outboundSchema;
55369
- var init_azureservicebusconfig = __esm(() => {
55370
- init_v3();
55371
- AzureServiceBusConfig$inboundSchema = objectType({
55372
- name: stringType()
55373
- });
55374
- AzureServiceBusConfig$outboundSchema = objectType({
55375
- name: stringType()
55376
- });
55377
- });
55378
-
55379
- // src/models/components/azureservicebuscredentials.ts
55380
- var AzureServiceBusCredentials$inboundSchema, AzureServiceBusCredentials$outboundSchema;
55381
- var init_azureservicebuscredentials = __esm(() => {
55382
- init_v3();
55383
- init_primitives();
55384
- AzureServiceBusCredentials$inboundSchema = objectType({
55385
- connection_string: stringType()
55386
- }).transform((v2) => {
55387
- return remap(v2, {
55388
- connection_string: "connectionString"
55389
- });
55390
- });
55391
- AzureServiceBusCredentials$outboundSchema = objectType({
55392
- connectionString: stringType()
55393
- }).transform((v2) => {
55394
- return remap(v2, {
55395
- connectionString: "connection_string"
55396
- });
55397
- });
55398
- });
55399
-
55400
55100
  // src/models/components/topics.ts
55401
55101
  var TopicsEnum, TopicsEnum$inboundSchema, TopicsEnum$outboundSchema, Topics$inboundSchema, Topics$outboundSchema;
55402
55102
  var init_topics = __esm(() => {
@@ -55466,6 +55166,51 @@ var init_destinationawskinesis = __esm(() => {
55466
55166
  });
55467
55167
  });
55468
55168
 
55169
+ // src/models/components/awss3config.ts
55170
+ var Awss3Config$inboundSchema, Awss3Config$outboundSchema;
55171
+ var init_awss3config = __esm(() => {
55172
+ init_v3();
55173
+ init_primitives();
55174
+ Awss3Config$inboundSchema = objectType({
55175
+ bucket: stringType(),
55176
+ region: stringType(),
55177
+ key_template: stringType().optional(),
55178
+ storage_class: stringType().optional()
55179
+ }).transform((v2) => {
55180
+ return remap(v2, {
55181
+ key_template: "keyTemplate",
55182
+ storage_class: "storageClass"
55183
+ });
55184
+ });
55185
+ Awss3Config$outboundSchema = objectType({
55186
+ bucket: stringType(),
55187
+ region: stringType(),
55188
+ keyTemplate: stringType().optional(),
55189
+ storageClass: stringType().optional()
55190
+ }).transform((v2) => {
55191
+ return remap(v2, {
55192
+ keyTemplate: "key_template",
55193
+ storageClass: "storage_class"
55194
+ });
55195
+ });
55196
+ });
55197
+
55198
+ // src/models/components/awss3credentials.ts
55199
+ var Awss3Credentials$inboundSchema, Awss3Credentials$outboundSchema;
55200
+ var init_awss3credentials = __esm(() => {
55201
+ init_v3();
55202
+ Awss3Credentials$inboundSchema = objectType({
55203
+ key: stringType(),
55204
+ secret: stringType(),
55205
+ session: stringType().optional()
55206
+ });
55207
+ Awss3Credentials$outboundSchema = objectType({
55208
+ key: stringType(),
55209
+ secret: stringType(),
55210
+ session: stringType().optional()
55211
+ });
55212
+ });
55213
+
55469
55214
  // src/models/components/destinationawss3.ts
55470
55215
  var DestinationAwss3$inboundSchema, DestinationAwss3$outboundSchema;
55471
55216
  var init_destinationawss3 = __esm(() => {
@@ -55522,6 +55267,45 @@ var init_destinationawss3 = __esm(() => {
55522
55267
  });
55523
55268
  });
55524
55269
 
55270
+ // src/models/components/awssqsconfig.ts
55271
+ var AWSSQSConfig$inboundSchema, AWSSQSConfig$outboundSchema;
55272
+ var init_awssqsconfig = __esm(() => {
55273
+ init_v3();
55274
+ init_primitives();
55275
+ AWSSQSConfig$inboundSchema = objectType({
55276
+ endpoint: stringType().optional(),
55277
+ queue_url: stringType()
55278
+ }).transform((v2) => {
55279
+ return remap(v2, {
55280
+ queue_url: "queueUrl"
55281
+ });
55282
+ });
55283
+ AWSSQSConfig$outboundSchema = objectType({
55284
+ endpoint: stringType().optional(),
55285
+ queueUrl: stringType()
55286
+ }).transform((v2) => {
55287
+ return remap(v2, {
55288
+ queueUrl: "queue_url"
55289
+ });
55290
+ });
55291
+ });
55292
+
55293
+ // src/models/components/awssqscredentials.ts
55294
+ var AWSSQSCredentials$inboundSchema, AWSSQSCredentials$outboundSchema;
55295
+ var init_awssqscredentials = __esm(() => {
55296
+ init_v3();
55297
+ AWSSQSCredentials$inboundSchema = objectType({
55298
+ key: stringType(),
55299
+ secret: stringType(),
55300
+ session: stringType().optional()
55301
+ });
55302
+ AWSSQSCredentials$outboundSchema = objectType({
55303
+ key: stringType(),
55304
+ secret: stringType(),
55305
+ session: stringType().optional()
55306
+ });
55307
+ });
55308
+
55525
55309
  // src/models/components/destinationawssqs.ts
55526
55310
  var DestinationAWSSQS$inboundSchema, DestinationAWSSQS$outboundSchema;
55527
55311
  var init_destinationawssqs = __esm(() => {
@@ -55546,34 +55330,67 @@ var init_destinationawssqs = __esm(() => {
55546
55330
  target_url: nullableType(stringType()).optional()
55547
55331
  }).transform((v2) => {
55548
55332
  return remap(v2, {
55549
- disabled_at: "disabledAt",
55550
- created_at: "createdAt",
55551
- updated_at: "updatedAt",
55552
- delivery_metadata: "deliveryMetadata",
55553
- target_url: "targetUrl"
55333
+ disabled_at: "disabledAt",
55334
+ created_at: "createdAt",
55335
+ updated_at: "updatedAt",
55336
+ delivery_metadata: "deliveryMetadata",
55337
+ target_url: "targetUrl"
55338
+ });
55339
+ });
55340
+ DestinationAWSSQS$outboundSchema = objectType({
55341
+ id: stringType(),
55342
+ type: literalType("aws_sqs"),
55343
+ topics: Topics$outboundSchema,
55344
+ filter: nullableType(recordType(anyType())).optional(),
55345
+ disabledAt: nullableType(dateType().transform((v2) => v2.toISOString())),
55346
+ createdAt: dateType().transform((v2) => v2.toISOString()),
55347
+ updatedAt: dateType().transform((v2) => v2.toISOString()),
55348
+ config: AWSSQSConfig$outboundSchema,
55349
+ credentials: AWSSQSCredentials$outboundSchema,
55350
+ deliveryMetadata: nullableType(recordType(stringType())).optional(),
55351
+ metadata: nullableType(recordType(stringType())).optional(),
55352
+ target: stringType().optional(),
55353
+ targetUrl: nullableType(stringType()).optional()
55354
+ }).transform((v2) => {
55355
+ return remap(v2, {
55356
+ disabledAt: "disabled_at",
55357
+ createdAt: "created_at",
55358
+ updatedAt: "updated_at",
55359
+ deliveryMetadata: "delivery_metadata",
55360
+ targetUrl: "target_url"
55361
+ });
55362
+ });
55363
+ });
55364
+
55365
+ // src/models/components/azureservicebusconfig.ts
55366
+ var AzureServiceBusConfig$inboundSchema, AzureServiceBusConfig$outboundSchema;
55367
+ var init_azureservicebusconfig = __esm(() => {
55368
+ init_v3();
55369
+ AzureServiceBusConfig$inboundSchema = objectType({
55370
+ name: stringType()
55371
+ });
55372
+ AzureServiceBusConfig$outboundSchema = objectType({
55373
+ name: stringType()
55374
+ });
55375
+ });
55376
+
55377
+ // src/models/components/azureservicebuscredentials.ts
55378
+ var AzureServiceBusCredentials$inboundSchema, AzureServiceBusCredentials$outboundSchema;
55379
+ var init_azureservicebuscredentials = __esm(() => {
55380
+ init_v3();
55381
+ init_primitives();
55382
+ AzureServiceBusCredentials$inboundSchema = objectType({
55383
+ connection_string: stringType()
55384
+ }).transform((v2) => {
55385
+ return remap(v2, {
55386
+ connection_string: "connectionString"
55554
55387
  });
55555
55388
  });
55556
- DestinationAWSSQS$outboundSchema = objectType({
55557
- id: stringType(),
55558
- type: literalType("aws_sqs"),
55559
- topics: Topics$outboundSchema,
55560
- filter: nullableType(recordType(anyType())).optional(),
55561
- disabledAt: nullableType(dateType().transform((v2) => v2.toISOString())),
55562
- createdAt: dateType().transform((v2) => v2.toISOString()),
55563
- updatedAt: dateType().transform((v2) => v2.toISOString()),
55564
- config: AWSSQSConfig$outboundSchema,
55565
- credentials: AWSSQSCredentials$outboundSchema,
55566
- deliveryMetadata: nullableType(recordType(stringType())).optional(),
55567
- metadata: nullableType(recordType(stringType())).optional(),
55568
- target: stringType().optional(),
55569
- targetUrl: nullableType(stringType()).optional()
55389
+ AzureServiceBusCredentials$outboundSchema = objectType({
55390
+ connectionString: stringType()
55570
55391
  }).transform((v2) => {
55571
55392
  return remap(v2, {
55572
- disabledAt: "disabled_at",
55573
- createdAt: "created_at",
55574
- updatedAt: "updated_at",
55575
- deliveryMetadata: "delivery_metadata",
55576
- targetUrl: "target_url"
55393
+ connectionString: "connection_string"
55577
55394
  });
55578
55395
  });
55579
55396
  });
@@ -56044,6 +55861,191 @@ var init_destination = __esm(() => {
56044
55861
  ]);
56045
55862
  });
56046
55863
 
55864
+ // src/models/components/attempt.ts
55865
+ var Status, Status$inboundSchema, Status$outboundSchema, EventFull$inboundSchema, EventFull$outboundSchema, EventSummary$inboundSchema, EventSummary$outboundSchema, EventUnion$inboundSchema, EventUnion$outboundSchema, Attempt$inboundSchema, Attempt$outboundSchema;
55866
+ var init_attempt = __esm(() => {
55867
+ init_v3();
55868
+ init_primitives();
55869
+ init_destination();
55870
+ Status = {
55871
+ Success: "success",
55872
+ Failed: "failed"
55873
+ };
55874
+ Status$inboundSchema = nativeEnumType(Status);
55875
+ Status$outboundSchema = Status$inboundSchema;
55876
+ EventFull$inboundSchema = objectType({
55877
+ id: stringType().optional(),
55878
+ tenant_id: stringType().optional(),
55879
+ destination_id: stringType().optional(),
55880
+ topic: stringType().optional(),
55881
+ time: stringType().datetime({ offset: true }).transform((v2) => new Date(v2)).optional(),
55882
+ eligible_for_retry: booleanType().optional(),
55883
+ metadata: nullableType(recordType(stringType())).optional(),
55884
+ data: recordType(anyType()).optional()
55885
+ }).transform((v2) => {
55886
+ return remap(v2, {
55887
+ tenant_id: "tenantId",
55888
+ destination_id: "destinationId",
55889
+ eligible_for_retry: "eligibleForRetry"
55890
+ });
55891
+ });
55892
+ EventFull$outboundSchema = objectType({
55893
+ id: stringType().optional(),
55894
+ tenantId: stringType().optional(),
55895
+ destinationId: stringType().optional(),
55896
+ topic: stringType().optional(),
55897
+ time: dateType().transform((v2) => v2.toISOString()).optional(),
55898
+ eligibleForRetry: booleanType().optional(),
55899
+ metadata: nullableType(recordType(stringType())).optional(),
55900
+ data: recordType(anyType()).optional()
55901
+ }).transform((v2) => {
55902
+ return remap(v2, {
55903
+ tenantId: "tenant_id",
55904
+ destinationId: "destination_id",
55905
+ eligibleForRetry: "eligible_for_retry"
55906
+ });
55907
+ });
55908
+ EventSummary$inboundSchema = objectType({
55909
+ id: stringType().optional(),
55910
+ tenant_id: stringType().optional(),
55911
+ destination_id: stringType().optional(),
55912
+ topic: stringType().optional(),
55913
+ time: stringType().datetime({ offset: true }).transform((v2) => new Date(v2)).optional(),
55914
+ eligible_for_retry: booleanType().optional(),
55915
+ metadata: nullableType(recordType(stringType())).optional()
55916
+ }).transform((v2) => {
55917
+ return remap(v2, {
55918
+ tenant_id: "tenantId",
55919
+ destination_id: "destinationId",
55920
+ eligible_for_retry: "eligibleForRetry"
55921
+ });
55922
+ });
55923
+ EventSummary$outboundSchema = objectType({
55924
+ id: stringType().optional(),
55925
+ tenantId: stringType().optional(),
55926
+ destinationId: stringType().optional(),
55927
+ topic: stringType().optional(),
55928
+ time: dateType().transform((v2) => v2.toISOString()).optional(),
55929
+ eligibleForRetry: booleanType().optional(),
55930
+ metadata: nullableType(recordType(stringType())).optional()
55931
+ }).transform((v2) => {
55932
+ return remap(v2, {
55933
+ tenantId: "tenant_id",
55934
+ destinationId: "destination_id",
55935
+ eligibleForRetry: "eligible_for_retry"
55936
+ });
55937
+ });
55938
+ EventUnion$inboundSchema = unionType([
55939
+ lazyType(() => EventSummary$inboundSchema),
55940
+ lazyType(() => EventFull$inboundSchema)
55941
+ ]);
55942
+ EventUnion$outboundSchema = unionType([
55943
+ lazyType(() => EventSummary$outboundSchema),
55944
+ lazyType(() => EventFull$outboundSchema)
55945
+ ]);
55946
+ Attempt$inboundSchema = objectType({
55947
+ id: stringType().optional(),
55948
+ tenant_id: stringType().optional(),
55949
+ status: Status$inboundSchema.optional(),
55950
+ time: stringType().datetime({ offset: true }).transform((v2) => new Date(v2)).optional(),
55951
+ code: stringType().optional(),
55952
+ response_data: nullableType(recordType(anyType())).optional(),
55953
+ attempt_number: numberType().int().optional(),
55954
+ manual: booleanType().optional(),
55955
+ event_id: stringType().optional(),
55956
+ destination_id: stringType().optional(),
55957
+ event: nullableType(unionType([
55958
+ lazyType(() => EventSummary$inboundSchema),
55959
+ lazyType(() => EventFull$inboundSchema)
55960
+ ])).optional(),
55961
+ destination: Destination$inboundSchema.optional()
55962
+ }).transform((v2) => {
55963
+ return remap(v2, {
55964
+ tenant_id: "tenantId",
55965
+ response_data: "responseData",
55966
+ attempt_number: "attemptNumber",
55967
+ event_id: "eventId",
55968
+ destination_id: "destinationId"
55969
+ });
55970
+ });
55971
+ Attempt$outboundSchema = objectType({
55972
+ id: stringType().optional(),
55973
+ tenantId: stringType().optional(),
55974
+ status: Status$outboundSchema.optional(),
55975
+ time: dateType().transform((v2) => v2.toISOString()).optional(),
55976
+ code: stringType().optional(),
55977
+ responseData: nullableType(recordType(anyType())).optional(),
55978
+ attemptNumber: numberType().int().optional(),
55979
+ manual: booleanType().optional(),
55980
+ eventId: stringType().optional(),
55981
+ destinationId: stringType().optional(),
55982
+ event: nullableType(unionType([
55983
+ lazyType(() => EventSummary$outboundSchema),
55984
+ lazyType(() => EventFull$outboundSchema)
55985
+ ])).optional(),
55986
+ destination: Destination$outboundSchema.optional()
55987
+ }).transform((v2) => {
55988
+ return remap(v2, {
55989
+ tenantId: "tenant_id",
55990
+ responseData: "response_data",
55991
+ attemptNumber: "attempt_number",
55992
+ eventId: "event_id",
55993
+ destinationId: "destination_id"
55994
+ });
55995
+ });
55996
+ });
55997
+
55998
+ // src/models/components/seekpagination.ts
55999
+ var Dir, Dir$inboundSchema, Dir$outboundSchema, SeekPagination$inboundSchema, SeekPagination$outboundSchema;
56000
+ var init_seekpagination = __esm(() => {
56001
+ init_v3();
56002
+ init_primitives();
56003
+ Dir = {
56004
+ Asc: "asc",
56005
+ Desc: "desc"
56006
+ };
56007
+ Dir$inboundSchema = nativeEnumType(Dir);
56008
+ Dir$outboundSchema = Dir$inboundSchema;
56009
+ SeekPagination$inboundSchema = objectType({
56010
+ order_by: stringType().optional(),
56011
+ dir: Dir$inboundSchema.optional(),
56012
+ limit: numberType().int().optional(),
56013
+ next: nullableType(stringType()).optional(),
56014
+ prev: nullableType(stringType()).optional()
56015
+ }).transform((v2) => {
56016
+ return remap(v2, {
56017
+ order_by: "orderBy"
56018
+ });
56019
+ });
56020
+ SeekPagination$outboundSchema = objectType({
56021
+ orderBy: stringType().optional(),
56022
+ dir: Dir$outboundSchema.optional(),
56023
+ limit: numberType().int().optional(),
56024
+ next: nullableType(stringType()).optional(),
56025
+ prev: nullableType(stringType()).optional()
56026
+ }).transform((v2) => {
56027
+ return remap(v2, {
56028
+ orderBy: "order_by"
56029
+ });
56030
+ });
56031
+ });
56032
+
56033
+ // src/models/components/attemptpaginatedresult.ts
56034
+ var AttemptPaginatedResult$inboundSchema, AttemptPaginatedResult$outboundSchema;
56035
+ var init_attemptpaginatedresult = __esm(() => {
56036
+ init_v3();
56037
+ init_attempt();
56038
+ init_seekpagination();
56039
+ AttemptPaginatedResult$inboundSchema = objectType({
56040
+ models: arrayType(Attempt$inboundSchema).optional(),
56041
+ pagination: SeekPagination$inboundSchema.optional()
56042
+ });
56043
+ AttemptPaginatedResult$outboundSchema = objectType({
56044
+ models: arrayType(Attempt$outboundSchema).optional(),
56045
+ pagination: SeekPagination$outboundSchema.optional()
56046
+ });
56047
+ });
56048
+
56047
56049
  // src/models/components/destinationcreateawskinesis.ts
56048
56050
  var DestinationCreateAWSKinesis$inboundSchema, DestinationCreateAWSKinesis$outboundSchema;
56049
56051
  var init_destinationcreateawskinesis = __esm(() => {
@@ -56861,6 +56863,80 @@ var init_eventpaginatedresult = __esm(() => {
56861
56863
  });
56862
56864
  });
56863
56865
 
56866
+ // src/models/components/metricsdatapoint.ts
56867
+ var MetricsDataPoint$inboundSchema, MetricsDataPoint$outboundSchema;
56868
+ var init_metricsdatapoint = __esm(() => {
56869
+ init_v3();
56870
+ init_primitives();
56871
+ MetricsDataPoint$inboundSchema = objectType({
56872
+ time_bucket: nullableType(stringType().datetime({ offset: true }).transform((v2) => new Date(v2))).optional(),
56873
+ dimensions: recordType(stringType()).optional(),
56874
+ metrics: recordType(anyType()).optional()
56875
+ }).transform((v2) => {
56876
+ return remap(v2, {
56877
+ time_bucket: "timeBucket"
56878
+ });
56879
+ });
56880
+ MetricsDataPoint$outboundSchema = objectType({
56881
+ timeBucket: nullableType(dateType().transform((v2) => v2.toISOString())).optional(),
56882
+ dimensions: recordType(stringType()).optional(),
56883
+ metrics: recordType(anyType()).optional()
56884
+ }).transform((v2) => {
56885
+ return remap(v2, {
56886
+ timeBucket: "time_bucket"
56887
+ });
56888
+ });
56889
+ });
56890
+
56891
+ // src/models/components/metricsmetadata.ts
56892
+ var MetricsMetadata$inboundSchema, MetricsMetadata$outboundSchema;
56893
+ var init_metricsmetadata = __esm(() => {
56894
+ init_v3();
56895
+ init_primitives();
56896
+ MetricsMetadata$inboundSchema = objectType({
56897
+ granularity: nullableType(stringType()).optional(),
56898
+ query_time_ms: numberType().int().optional(),
56899
+ row_count: numberType().int().optional(),
56900
+ row_limit: numberType().int().optional(),
56901
+ truncated: booleanType().optional()
56902
+ }).transform((v2) => {
56903
+ return remap(v2, {
56904
+ query_time_ms: "queryTimeMs",
56905
+ row_count: "rowCount",
56906
+ row_limit: "rowLimit"
56907
+ });
56908
+ });
56909
+ MetricsMetadata$outboundSchema = objectType({
56910
+ granularity: nullableType(stringType()).optional(),
56911
+ queryTimeMs: numberType().int().optional(),
56912
+ rowCount: numberType().int().optional(),
56913
+ rowLimit: numberType().int().optional(),
56914
+ truncated: booleanType().optional()
56915
+ }).transform((v2) => {
56916
+ return remap(v2, {
56917
+ queryTimeMs: "query_time_ms",
56918
+ rowCount: "row_count",
56919
+ rowLimit: "row_limit"
56920
+ });
56921
+ });
56922
+ });
56923
+
56924
+ // src/models/components/metricsresponse.ts
56925
+ var MetricsResponse$inboundSchema, MetricsResponse$outboundSchema;
56926
+ var init_metricsresponse = __esm(() => {
56927
+ init_v3();
56928
+ init_metricsdatapoint();
56929
+ init_metricsmetadata();
56930
+ MetricsResponse$inboundSchema = objectType({
56931
+ data: arrayType(MetricsDataPoint$inboundSchema).optional(),
56932
+ metadata: MetricsMetadata$inboundSchema.optional()
56933
+ });
56934
+ MetricsResponse$outboundSchema = objectType({
56935
+ data: arrayType(MetricsDataPoint$outboundSchema).optional(),
56936
+ metadata: MetricsMetadata$outboundSchema.optional()
56937
+ });
56938
+ });
56939
+
56864
56940
  // src/models/components/portalredirect.ts
56865
56941
  var PortalRedirect$inboundSchema, PortalRedirect$outboundSchema;
56866
56942
  var init_portalredirect = __esm(() => {
@@ -57130,12 +57206,13 @@ var init_components = __esm(() => {
57130
57206
  init_destinationupdatewebhook();
57131
57207
  init_destinationwebhook();
57132
57208
  init_event();
57133
- init_eventfull();
57134
57209
  init_eventpaginatedresult();
57135
- init_eventsummary();
57136
57210
  init_gcppubsubconfig();
57137
57211
  init_gcppubsubcredentials();
57138
57212
  init_hookdeckcredentials();
57213
+ init_metricsdatapoint();
57214
+ init_metricsmetadata();
57215
+ init_metricsresponse();
57139
57216
  init_portalredirect();
57140
57217
  init_publishrequest();
57141
57218
  init_publishresponse();
@@ -57651,15 +57728,196 @@ var init_getattempt = __esm(() => {
57651
57728
  include: unionType([stringType(), arrayType(stringType())]).optional()
57652
57729
  }).transform((v2) => {
57653
57730
  return remap(v2, {
57654
- attempt_id: "attemptId"
57655
- });
57656
- });
57657
- GetAttemptRequest$outboundSchema = objectType({
57658
- attemptId: stringType(),
57659
- include: unionType([stringType(), arrayType(stringType())]).optional()
57731
+ attempt_id: "attemptId"
57732
+ });
57733
+ });
57734
+ GetAttemptRequest$outboundSchema = objectType({
57735
+ attemptId: stringType(),
57736
+ include: unionType([stringType(), arrayType(stringType())]).optional()
57737
+ }).transform((v2) => {
57738
+ return remap(v2, {
57739
+ attemptId: "attempt_id"
57740
+ });
57741
+ });
57742
+ });
57743
+
57744
+ // src/models/operations/getattemptmetrics.ts
57745
+ var GetAttemptMetricsMeasuresEnum2, GetAttemptMetricsMeasuresEnum1, GetAttemptMetricsDimensionsEnum2, GetAttemptMetricsDimensionsEnum1, FiltersStatusEnum2, FiltersStatusEnum1, FiltersManual, GetAttemptMetricsMeasuresEnum2$inboundSchema, GetAttemptMetricsMeasuresEnum2$outboundSchema, GetAttemptMetricsMeasuresEnum1$inboundSchema, GetAttemptMetricsMeasuresEnum1$outboundSchema, GetAttemptMetricsMeasuresUnion$inboundSchema, GetAttemptMetricsMeasuresUnion$outboundSchema, GetAttemptMetricsDimensionsEnum2$inboundSchema, GetAttemptMetricsDimensionsEnum2$outboundSchema, GetAttemptMetricsDimensionsEnum1$inboundSchema, GetAttemptMetricsDimensionsEnum1$outboundSchema, GetAttemptMetricsDimensionsUnion$inboundSchema, GetAttemptMetricsDimensionsUnion$outboundSchema, GetAttemptMetricsFiltersDestinationId$inboundSchema, GetAttemptMetricsFiltersDestinationId$outboundSchema, GetAttemptMetricsFiltersTopic$inboundSchema, GetAttemptMetricsFiltersTopic$outboundSchema, FiltersStatusEnum2$inboundSchema, FiltersStatusEnum2$outboundSchema, FiltersStatusEnum1$inboundSchema, FiltersStatusEnum1$outboundSchema, FiltersStatus$inboundSchema, FiltersStatus$outboundSchema, FiltersCode$inboundSchema, FiltersCode$outboundSchema, FiltersManual$inboundSchema, FiltersManual$outboundSchema, FiltersAttemptNumber$inboundSchema, FiltersAttemptNumber$outboundSchema, GetAttemptMetricsFiltersTenantId$inboundSchema, GetAttemptMetricsFiltersTenantId$outboundSchema, GetAttemptMetricsRequest$inboundSchema, GetAttemptMetricsRequest$outboundSchema;
57746
+ var init_getattemptmetrics = __esm(() => {
57747
+ init_v3();
57748
+ init_primitives();
57749
+ GetAttemptMetricsMeasuresEnum2 = {
57750
+ Count: "count",
57751
+ SuccessfulCount: "successful_count",
57752
+ FailedCount: "failed_count",
57753
+ ErrorRate: "error_rate",
57754
+ FirstAttemptCount: "first_attempt_count",
57755
+ RetryCount: "retry_count",
57756
+ ManualRetryCount: "manual_retry_count",
57757
+ AvgAttemptNumber: "avg_attempt_number",
57758
+ Rate: "rate",
57759
+ SuccessfulRate: "successful_rate",
57760
+ FailedRate: "failed_rate"
57761
+ };
57762
+ GetAttemptMetricsMeasuresEnum1 = {
57763
+ Count: "count",
57764
+ SuccessfulCount: "successful_count",
57765
+ FailedCount: "failed_count",
57766
+ ErrorRate: "error_rate",
57767
+ FirstAttemptCount: "first_attempt_count",
57768
+ RetryCount: "retry_count",
57769
+ ManualRetryCount: "manual_retry_count",
57770
+ AvgAttemptNumber: "avg_attempt_number",
57771
+ Rate: "rate",
57772
+ SuccessfulRate: "successful_rate",
57773
+ FailedRate: "failed_rate"
57774
+ };
57775
+ GetAttemptMetricsDimensionsEnum2 = {
57776
+ TenantId: "tenant_id",
57777
+ DestinationId: "destination_id",
57778
+ Topic: "topic",
57779
+ Status: "status",
57780
+ Code: "code",
57781
+ Manual: "manual",
57782
+ AttemptNumber: "attempt_number"
57783
+ };
57784
+ GetAttemptMetricsDimensionsEnum1 = {
57785
+ TenantId: "tenant_id",
57786
+ DestinationId: "destination_id",
57787
+ Topic: "topic",
57788
+ Status: "status",
57789
+ Code: "code",
57790
+ Manual: "manual",
57791
+ AttemptNumber: "attempt_number"
57792
+ };
57793
+ FiltersStatusEnum2 = {
57794
+ Success: "success",
57795
+ Failed: "failed"
57796
+ };
57797
+ FiltersStatusEnum1 = {
57798
+ Success: "success",
57799
+ Failed: "failed"
57800
+ };
57801
+ FiltersManual = {
57802
+ True: "true",
57803
+ False: "false"
57804
+ };
57805
+ GetAttemptMetricsMeasuresEnum2$inboundSchema = nativeEnumType(GetAttemptMetricsMeasuresEnum2);
57806
+ GetAttemptMetricsMeasuresEnum2$outboundSchema = GetAttemptMetricsMeasuresEnum2$inboundSchema;
57807
+ GetAttemptMetricsMeasuresEnum1$inboundSchema = nativeEnumType(GetAttemptMetricsMeasuresEnum1);
57808
+ GetAttemptMetricsMeasuresEnum1$outboundSchema = GetAttemptMetricsMeasuresEnum1$inboundSchema;
57809
+ GetAttemptMetricsMeasuresUnion$inboundSchema = unionType([
57810
+ GetAttemptMetricsMeasuresEnum1$inboundSchema,
57811
+ arrayType(GetAttemptMetricsMeasuresEnum2$inboundSchema)
57812
+ ]);
57813
+ GetAttemptMetricsMeasuresUnion$outboundSchema = unionType([
57814
+ GetAttemptMetricsMeasuresEnum1$outboundSchema,
57815
+ arrayType(GetAttemptMetricsMeasuresEnum2$outboundSchema)
57816
+ ]);
57817
+ GetAttemptMetricsDimensionsEnum2$inboundSchema = nativeEnumType(GetAttemptMetricsDimensionsEnum2);
57818
+ GetAttemptMetricsDimensionsEnum2$outboundSchema = GetAttemptMetricsDimensionsEnum2$inboundSchema;
57819
+ GetAttemptMetricsDimensionsEnum1$inboundSchema = nativeEnumType(GetAttemptMetricsDimensionsEnum1);
57820
+ GetAttemptMetricsDimensionsEnum1$outboundSchema = GetAttemptMetricsDimensionsEnum1$inboundSchema;
57821
+ GetAttemptMetricsDimensionsUnion$inboundSchema = unionType([
57822
+ GetAttemptMetricsDimensionsEnum1$inboundSchema,
57823
+ arrayType(GetAttemptMetricsDimensionsEnum2$inboundSchema)
57824
+ ]);
57825
+ GetAttemptMetricsDimensionsUnion$outboundSchema = unionType([
57826
+ GetAttemptMetricsDimensionsEnum1$outboundSchema,
57827
+ arrayType(GetAttemptMetricsDimensionsEnum2$outboundSchema)
57828
+ ]);
57829
+ GetAttemptMetricsFiltersDestinationId$inboundSchema = unionType([stringType(), arrayType(stringType())]);
57830
+ GetAttemptMetricsFiltersDestinationId$outboundSchema = unionType([stringType(), arrayType(stringType())]);
57831
+ GetAttemptMetricsFiltersTopic$inboundSchema = unionType([stringType(), arrayType(stringType())]);
57832
+ GetAttemptMetricsFiltersTopic$outboundSchema = unionType([stringType(), arrayType(stringType())]);
57833
+ FiltersStatusEnum2$inboundSchema = nativeEnumType(FiltersStatusEnum2);
57834
+ FiltersStatusEnum2$outboundSchema = FiltersStatusEnum2$inboundSchema;
57835
+ FiltersStatusEnum1$inboundSchema = nativeEnumType(FiltersStatusEnum1);
57836
+ FiltersStatusEnum1$outboundSchema = FiltersStatusEnum1$inboundSchema;
57837
+ FiltersStatus$inboundSchema = unionType([
57838
+ FiltersStatusEnum1$inboundSchema,
57839
+ arrayType(FiltersStatusEnum2$inboundSchema)
57840
+ ]);
57841
+ FiltersStatus$outboundSchema = unionType([
57842
+ FiltersStatusEnum1$outboundSchema,
57843
+ arrayType(FiltersStatusEnum2$outboundSchema)
57844
+ ]);
57845
+ FiltersCode$inboundSchema = unionType([stringType(), arrayType(stringType())]);
57846
+ FiltersCode$outboundSchema = unionType([stringType(), arrayType(stringType())]);
57847
+ FiltersManual$inboundSchema = nativeEnumType(FiltersManual);
57848
+ FiltersManual$outboundSchema = FiltersManual$inboundSchema;
57849
+ FiltersAttemptNumber$inboundSchema = unionType([stringType(), arrayType(stringType())]);
57850
+ FiltersAttemptNumber$outboundSchema = unionType([stringType(), arrayType(stringType())]);
57851
+ GetAttemptMetricsFiltersTenantId$inboundSchema = unionType([stringType(), arrayType(stringType())]);
57852
+ GetAttemptMetricsFiltersTenantId$outboundSchema = unionType([stringType(), arrayType(stringType())]);
57853
+ GetAttemptMetricsRequest$inboundSchema = objectType({
57854
+ "time[start]": stringType().datetime({ offset: true }).transform((v2) => new Date(v2)),
57855
+ "time[end]": stringType().datetime({ offset: true }).transform((v2) => new Date(v2)),
57856
+ granularity: stringType().optional(),
57857
+ measures: unionType([
57858
+ GetAttemptMetricsMeasuresEnum1$inboundSchema,
57859
+ arrayType(GetAttemptMetricsMeasuresEnum2$inboundSchema)
57860
+ ]),
57861
+ dimensions: unionType([
57862
+ GetAttemptMetricsDimensionsEnum1$inboundSchema,
57863
+ arrayType(GetAttemptMetricsDimensionsEnum2$inboundSchema)
57864
+ ]).optional(),
57865
+ "filters[destination_id]": unionType([stringType(), arrayType(stringType())]).optional(),
57866
+ "filters[topic]": unionType([stringType(), arrayType(stringType())]).optional(),
57867
+ "filters[status]": unionType([
57868
+ FiltersStatusEnum1$inboundSchema,
57869
+ arrayType(FiltersStatusEnum2$inboundSchema)
57870
+ ]).optional(),
57871
+ "filters[code]": unionType([stringType(), arrayType(stringType())]).optional(),
57872
+ "filters[manual]": FiltersManual$inboundSchema.optional(),
57873
+ "filters[attempt_number]": unionType([stringType(), arrayType(stringType())]).optional(),
57874
+ "filters[tenant_id]": unionType([stringType(), arrayType(stringType())]).optional()
57875
+ }).transform((v2) => {
57876
+ return remap(v2, {
57877
+ "time[start]": "timeStart",
57878
+ "time[end]": "timeEnd",
57879
+ "filters[destination_id]": "filtersDestinationId",
57880
+ "filters[topic]": "filtersTopic",
57881
+ "filters[status]": "filtersStatus",
57882
+ "filters[code]": "filtersCode",
57883
+ "filters[manual]": "filtersManual",
57884
+ "filters[attempt_number]": "filtersAttemptNumber",
57885
+ "filters[tenant_id]": "filtersTenantId"
57886
+ });
57887
+ });
57888
+ GetAttemptMetricsRequest$outboundSchema = objectType({
57889
+ timeStart: dateType().transform((v2) => v2.toISOString()),
57890
+ timeEnd: dateType().transform((v2) => v2.toISOString()),
57891
+ granularity: stringType().optional(),
57892
+ measures: unionType([
57893
+ GetAttemptMetricsMeasuresEnum1$outboundSchema,
57894
+ arrayType(GetAttemptMetricsMeasuresEnum2$outboundSchema)
57895
+ ]),
57896
+ dimensions: unionType([
57897
+ GetAttemptMetricsDimensionsEnum1$outboundSchema,
57898
+ arrayType(GetAttemptMetricsDimensionsEnum2$outboundSchema)
57899
+ ]).optional(),
57900
+ filtersDestinationId: unionType([stringType(), arrayType(stringType())]).optional(),
57901
+ filtersTopic: unionType([stringType(), arrayType(stringType())]).optional(),
57902
+ filtersStatus: unionType([
57903
+ FiltersStatusEnum1$outboundSchema,
57904
+ arrayType(FiltersStatusEnum2$outboundSchema)
57905
+ ]).optional(),
57906
+ filtersCode: unionType([stringType(), arrayType(stringType())]).optional(),
57907
+ filtersManual: FiltersManual$outboundSchema.optional(),
57908
+ filtersAttemptNumber: unionType([stringType(), arrayType(stringType())]).optional(),
57909
+ filtersTenantId: unionType([stringType(), arrayType(stringType())]).optional()
57660
57910
  }).transform((v2) => {
57661
57911
  return remap(v2, {
57662
- attemptId: "attempt_id"
57912
+ timeStart: "time[start]",
57913
+ timeEnd: "time[end]",
57914
+ filtersDestinationId: "filters[destination_id]",
57915
+ filtersTopic: "filters[topic]",
57916
+ filtersStatus: "filters[status]",
57917
+ filtersCode: "filters[code]",
57918
+ filtersManual: "filters[manual]",
57919
+ filtersAttemptNumber: "filters[attempt_number]",
57920
+ filtersTenantId: "filters[tenant_id]"
57663
57921
  });
57664
57922
  });
57665
57923
  });
@@ -57709,6 +57967,109 @@ var init_getevent = __esm(() => {
57709
57967
  });
57710
57968
  });
57711
57969
 
57970
+ // src/models/operations/geteventmetrics.ts
57971
+ var GetEventMetricsMeasuresEnum2, GetEventMetricsMeasuresEnum1, GetEventMetricsDimensionsEnum2, GetEventMetricsDimensionsEnum1, GetEventMetricsMeasuresEnum2$inboundSchema, GetEventMetricsMeasuresEnum2$outboundSchema, GetEventMetricsMeasuresEnum1$inboundSchema, GetEventMetricsMeasuresEnum1$outboundSchema, GetEventMetricsMeasuresUnion$inboundSchema, GetEventMetricsMeasuresUnion$outboundSchema, GetEventMetricsDimensionsEnum2$inboundSchema, GetEventMetricsDimensionsEnum2$outboundSchema, GetEventMetricsDimensionsEnum1$inboundSchema, GetEventMetricsDimensionsEnum1$outboundSchema, GetEventMetricsDimensionsUnion$inboundSchema, GetEventMetricsDimensionsUnion$outboundSchema, GetEventMetricsFiltersTopic$inboundSchema, GetEventMetricsFiltersTopic$outboundSchema, GetEventMetricsFiltersDestinationId$inboundSchema, GetEventMetricsFiltersDestinationId$outboundSchema, GetEventMetricsFiltersTenantId$inboundSchema, GetEventMetricsFiltersTenantId$outboundSchema, GetEventMetricsRequest$inboundSchema, GetEventMetricsRequest$outboundSchema;
57972
+ var init_geteventmetrics = __esm(() => {
57973
+ init_v3();
57974
+ init_primitives();
57975
+ GetEventMetricsMeasuresEnum2 = {
57976
+ Count: "count",
57977
+ Rate: "rate"
57978
+ };
57979
+ GetEventMetricsMeasuresEnum1 = {
57980
+ Count: "count",
57981
+ Rate: "rate"
57982
+ };
57983
+ GetEventMetricsDimensionsEnum2 = {
57984
+ TenantId: "tenant_id",
57985
+ Topic: "topic",
57986
+ DestinationId: "destination_id"
57987
+ };
57988
+ GetEventMetricsDimensionsEnum1 = {
57989
+ TenantId: "tenant_id",
57990
+ Topic: "topic",
57991
+ DestinationId: "destination_id"
57992
+ };
57993
+ GetEventMetricsMeasuresEnum2$inboundSchema = nativeEnumType(GetEventMetricsMeasuresEnum2);
57994
+ GetEventMetricsMeasuresEnum2$outboundSchema = GetEventMetricsMeasuresEnum2$inboundSchema;
57995
+ GetEventMetricsMeasuresEnum1$inboundSchema = nativeEnumType(GetEventMetricsMeasuresEnum1);
57996
+ GetEventMetricsMeasuresEnum1$outboundSchema = GetEventMetricsMeasuresEnum1$inboundSchema;
57997
+ GetEventMetricsMeasuresUnion$inboundSchema = unionType([
57998
+ GetEventMetricsMeasuresEnum1$inboundSchema,
57999
+ arrayType(GetEventMetricsMeasuresEnum2$inboundSchema)
58000
+ ]);
58001
+ GetEventMetricsMeasuresUnion$outboundSchema = unionType([
58002
+ GetEventMetricsMeasuresEnum1$outboundSchema,
58003
+ arrayType(GetEventMetricsMeasuresEnum2$outboundSchema)
58004
+ ]);
58005
+ GetEventMetricsDimensionsEnum2$inboundSchema = nativeEnumType(GetEventMetricsDimensionsEnum2);
58006
+ GetEventMetricsDimensionsEnum2$outboundSchema = GetEventMetricsDimensionsEnum2$inboundSchema;
58007
+ GetEventMetricsDimensionsEnum1$inboundSchema = nativeEnumType(GetEventMetricsDimensionsEnum1);
58008
+ GetEventMetricsDimensionsEnum1$outboundSchema = GetEventMetricsDimensionsEnum1$inboundSchema;
58009
+ GetEventMetricsDimensionsUnion$inboundSchema = unionType([
58010
+ GetEventMetricsDimensionsEnum1$inboundSchema,
58011
+ arrayType(GetEventMetricsDimensionsEnum2$inboundSchema)
58012
+ ]);
58013
+ GetEventMetricsDimensionsUnion$outboundSchema = unionType([
58014
+ GetEventMetricsDimensionsEnum1$outboundSchema,
58015
+ arrayType(GetEventMetricsDimensionsEnum2$outboundSchema)
58016
+ ]);
58017
+ GetEventMetricsFiltersTopic$inboundSchema = unionType([stringType(), arrayType(stringType())]);
58018
+ GetEventMetricsFiltersTopic$outboundSchema = unionType([stringType(), arrayType(stringType())]);
58019
+ GetEventMetricsFiltersDestinationId$inboundSchema = unionType([stringType(), arrayType(stringType())]);
58020
+ GetEventMetricsFiltersDestinationId$outboundSchema = unionType([stringType(), arrayType(stringType())]);
58021
+ GetEventMetricsFiltersTenantId$inboundSchema = unionType([stringType(), arrayType(stringType())]);
58022
+ GetEventMetricsFiltersTenantId$outboundSchema = unionType([stringType(), arrayType(stringType())]);
58023
+ GetEventMetricsRequest$inboundSchema = objectType({
58024
+ "time[start]": stringType().datetime({ offset: true }).transform((v2) => new Date(v2)),
58025
+ "time[end]": stringType().datetime({ offset: true }).transform((v2) => new Date(v2)),
58026
+ granularity: stringType().optional(),
58027
+ measures: unionType([
58028
+ GetEventMetricsMeasuresEnum1$inboundSchema,
58029
+ arrayType(GetEventMetricsMeasuresEnum2$inboundSchema)
58030
+ ]),
58031
+ dimensions: unionType([
58032
+ GetEventMetricsDimensionsEnum1$inboundSchema,
58033
+ arrayType(GetEventMetricsDimensionsEnum2$inboundSchema)
58034
+ ]).optional(),
58035
+ "filters[topic]": unionType([stringType(), arrayType(stringType())]).optional(),
58036
+ "filters[destination_id]": unionType([stringType(), arrayType(stringType())]).optional(),
58037
+ "filters[tenant_id]": unionType([stringType(), arrayType(stringType())]).optional()
58038
+ }).transform((v2) => {
58039
+ return remap(v2, {
58040
+ "time[start]": "timeStart",
58041
+ "time[end]": "timeEnd",
58042
+ "filters[topic]": "filtersTopic",
58043
+ "filters[destination_id]": "filtersDestinationId",
58044
+ "filters[tenant_id]": "filtersTenantId"
58045
+ });
58046
+ });
58047
+ GetEventMetricsRequest$outboundSchema = objectType({
58048
+ timeStart: dateType().transform((v2) => v2.toISOString()),
58049
+ timeEnd: dateType().transform((v2) => v2.toISOString()),
58050
+ granularity: stringType().optional(),
58051
+ measures: unionType([
58052
+ GetEventMetricsMeasuresEnum1$outboundSchema,
58053
+ arrayType(GetEventMetricsMeasuresEnum2$outboundSchema)
58054
+ ]),
58055
+ dimensions: unionType([
58056
+ GetEventMetricsDimensionsEnum1$outboundSchema,
58057
+ arrayType(GetEventMetricsDimensionsEnum2$outboundSchema)
58058
+ ]).optional(),
58059
+ filtersTopic: unionType([stringType(), arrayType(stringType())]).optional(),
58060
+ filtersDestinationId: unionType([stringType(), arrayType(stringType())]).optional(),
58061
+ filtersTenantId: unionType([stringType(), arrayType(stringType())]).optional()
58062
+ }).transform((v2) => {
58063
+ return remap(v2, {
58064
+ timeStart: "time[start]",
58065
+ timeEnd: "time[end]",
58066
+ filtersTopic: "filters[topic]",
58067
+ filtersDestinationId: "filters[destination_id]",
58068
+ filtersTenantId: "filters[tenant_id]"
58069
+ });
58070
+ });
58071
+ });
58072
+
57712
58073
  // src/models/operations/gettenant.ts
57713
58074
  var GetTenantRequest$inboundSchema, GetTenantRequest$outboundSchema;
57714
58075
  var init_gettenant = __esm(() => {
@@ -58308,8 +58669,10 @@ var init_operations = __esm(() => {
58308
58669
  init_disabletenantdestination();
58309
58670
  init_enabletenantdestination();
58310
58671
  init_getattempt();
58672
+ init_getattemptmetrics();
58311
58673
  init_getdestinationtypeschema();
58312
58674
  init_getevent();
58675
+ init_geteventmetrics();
58313
58676
  init_gettenant();
58314
58677
  init_gettenantdestination();
58315
58678
  init_gettenantdestinationattempt();
@@ -60295,11 +60658,261 @@ Note: Error details are not exposed for security reasons. Check application logs
60295
60658
  };
60296
60659
  });
60297
60660
 
60298
- // src/funcs/publishEvent.ts
60299
- function publishEvent(client, request, options) {
60661
+ // src/funcs/metricsGetAttemptMetrics.ts
60662
+ function metricsGetAttemptMetrics(client, request, options) {
60300
60663
  return new APIPromise($do16(client, request, options));
60301
60664
  }
60302
60665
  async function $do16(client, request, options) {
60666
+ const parsed = safeParse4(request, (value) => GetAttemptMetricsRequest$outboundSchema.parse(value), "Input validation failed");
60667
+ if (!parsed.ok) {
60668
+ return [parsed, { status: "invalid" }];
60669
+ }
60670
+ const payload = parsed.value;
60671
+ const body = null;
60672
+ const path = pathToFunc("/metrics/attempts")();
60673
+ const query = encodeFormQuery({
60674
+ dimensions: payload.dimensions,
60675
+ "filters[attempt_number]": payload["filters[attempt_number]"],
60676
+ "filters[code]": payload["filters[code]"],
60677
+ "filters[destination_id]": payload["filters[destination_id]"],
60678
+ "filters[manual]": payload["filters[manual]"],
60679
+ "filters[status]": payload["filters[status]"],
60680
+ "filters[tenant_id]": payload["filters[tenant_id]"],
60681
+ "filters[topic]": payload["filters[topic]"],
60682
+ granularity: payload.granularity,
60683
+ measures: payload.measures,
60684
+ "time[end]": payload["time[end]"],
60685
+ "time[start]": payload["time[start]"]
60686
+ });
60687
+ const headers = new Headers(compactMap({
60688
+ Accept: "application/json"
60689
+ }));
60690
+ const secConfig = await extractSecurity(client._options.apiKey);
60691
+ const securityInput = secConfig == null ? {} : { apiKey: secConfig };
60692
+ const requestSecurity = resolveGlobalSecurity(securityInput);
60693
+ const context = {
60694
+ options: client._options,
60695
+ baseURL: options?.serverURL ?? client._baseURL ?? "",
60696
+ operationID: "getAttemptMetrics",
60697
+ oAuth2Scopes: null,
60698
+ resolvedSecurity: requestSecurity,
60699
+ securitySource: client._options.apiKey,
60700
+ retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
60701
+ retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
60702
+ };
60703
+ const requestRes = client._createRequest(context, {
60704
+ security: requestSecurity,
60705
+ method: "GET",
60706
+ baseURL: options?.serverURL,
60707
+ path,
60708
+ headers,
60709
+ query,
60710
+ body,
60711
+ userAgent: client._options.userAgent,
60712
+ timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
60713
+ }, options);
60714
+ if (!requestRes.ok) {
60715
+ return [requestRes, { status: "invalid" }];
60716
+ }
60717
+ const req = requestRes.value;
60718
+ const doResult = await client._do(req, {
60719
+ context,
60720
+ errorCodes: ["400", "401", "403", "4XX", "500", "5XX"],
60721
+ retryConfig: context.retryConfig,
60722
+ retryCodes: context.retryCodes
60723
+ });
60724
+ if (!doResult.ok) {
60725
+ return [doResult, { status: "request-error", request: req }];
60726
+ }
60727
+ const response = doResult.value;
60728
+ const responseFields = {
60729
+ HttpMeta: { Response: response, Request: req }
60730
+ };
60731
+ const [result] = await match(json(200, MetricsResponse$inboundSchema), jsonErr(400, BadRequestError$inboundSchema), jsonErr(401, UnauthorizedError$inboundSchema), jsonErr(403, APIErrorResponse$inboundSchema), jsonErr(500, InternalServerError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
60732
+ if (!result.ok) {
60733
+ return [result, { status: "complete", request: req, response }];
60734
+ }
60735
+ return [result, { status: "complete", request: req, response }];
60736
+ }
60737
+ var init_metricsGetAttemptMetrics = __esm(() => {
60738
+ init_encodings();
60739
+ init_matchers();
60740
+ init_primitives();
60741
+ init_schemas4();
60742
+ init_security();
60743
+ init_url();
60744
+ init_components();
60745
+ init_errors4();
60746
+ init_operations();
60747
+ init_async();
60748
+ });
60749
+
60750
+ // src/mcp-server/tools/metricsGetAttemptMetrics.ts
60751
+ var args15, tool$metricsGetAttemptMetrics;
60752
+ var init_metricsGetAttemptMetrics2 = __esm(() => {
60753
+ init_metricsGetAttemptMetrics();
60754
+ init_operations();
60755
+ init_tools();
60756
+ args15 = {
60757
+ request: GetAttemptMetricsRequest$inboundSchema
60758
+ };
60759
+ tool$metricsGetAttemptMetrics = {
60760
+ name: "metrics-get-attempt-metrics",
60761
+ description: `Get Attempt Metrics
60762
+
60763
+ Returns aggregated delivery attempt metrics. Supports time bucketing via granularity,
60764
+ dimensional grouping, and filtering.
60765
+
60766
+ **Measures:** \`count\`, \`successful_count\`, \`failed_count\`, \`error_rate\`,
60767
+ \`first_attempt_count\`, \`retry_count\`, \`manual_retry_count\`, \`avg_attempt_number\`,
60768
+ \`rate\`, \`successful_rate\`, \`failed_rate\`
60769
+
60770
+ **Dimensions:** \`tenant_id\` (admin-only), \`destination_id\`, \`topic\`, \`status\`, \`code\`, \`manual\`, \`attempt_number\`
60771
+
60772
+ **Filters:** \`tenant_id\` (admin-only), \`destination_id\`, \`topic\`, \`status\`, \`code\`, \`manual\`, \`attempt_number\`
60773
+ `,
60774
+ args: args15,
60775
+ tool: async (client, args16, ctx) => {
60776
+ const [result, apiCall] = await metricsGetAttemptMetrics(client, args16.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
60777
+ if (!result.ok) {
60778
+ return {
60779
+ content: [{ type: "text", text: result.error.message }],
60780
+ isError: true
60781
+ };
60782
+ }
60783
+ const value = result.value;
60784
+ return formatResult(value, apiCall);
60785
+ }
60786
+ };
60787
+ });
60788
+
60789
+ // src/funcs/metricsGetEventMetrics.ts
60790
+ function metricsGetEventMetrics(client, request, options) {
60791
+ return new APIPromise($do17(client, request, options));
60792
+ }
60793
+ async function $do17(client, request, options) {
60794
+ const parsed = safeParse4(request, (value) => GetEventMetricsRequest$outboundSchema.parse(value), "Input validation failed");
60795
+ if (!parsed.ok) {
60796
+ return [parsed, { status: "invalid" }];
60797
+ }
60798
+ const payload = parsed.value;
60799
+ const body = null;
60800
+ const path = pathToFunc("/metrics/events")();
60801
+ const query = encodeFormQuery({
60802
+ dimensions: payload.dimensions,
60803
+ "filters[destination_id]": payload["filters[destination_id]"],
60804
+ "filters[tenant_id]": payload["filters[tenant_id]"],
60805
+ "filters[topic]": payload["filters[topic]"],
60806
+ granularity: payload.granularity,
60807
+ measures: payload.measures,
60808
+ "time[end]": payload["time[end]"],
60809
+ "time[start]": payload["time[start]"]
60810
+ });
60811
+ const headers = new Headers(compactMap({
60812
+ Accept: "application/json"
60813
+ }));
60814
+ const secConfig = await extractSecurity(client._options.apiKey);
60815
+ const securityInput = secConfig == null ? {} : { apiKey: secConfig };
60816
+ const requestSecurity = resolveGlobalSecurity(securityInput);
60817
+ const context = {
60818
+ options: client._options,
60819
+ baseURL: options?.serverURL ?? client._baseURL ?? "",
60820
+ operationID: "getEventMetrics",
60821
+ oAuth2Scopes: null,
60822
+ resolvedSecurity: requestSecurity,
60823
+ securitySource: client._options.apiKey,
60824
+ retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
60825
+ retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
60826
+ };
60827
+ const requestRes = client._createRequest(context, {
60828
+ security: requestSecurity,
60829
+ method: "GET",
60830
+ baseURL: options?.serverURL,
60831
+ path,
60832
+ headers,
60833
+ query,
60834
+ body,
60835
+ userAgent: client._options.userAgent,
60836
+ timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
60837
+ }, options);
60838
+ if (!requestRes.ok) {
60839
+ return [requestRes, { status: "invalid" }];
60840
+ }
60841
+ const req = requestRes.value;
60842
+ const doResult = await client._do(req, {
60843
+ context,
60844
+ errorCodes: ["400", "401", "403", "4XX", "500", "5XX"],
60845
+ retryConfig: context.retryConfig,
60846
+ retryCodes: context.retryCodes
60847
+ });
60848
+ if (!doResult.ok) {
60849
+ return [doResult, { status: "request-error", request: req }];
60850
+ }
60851
+ const response = doResult.value;
60852
+ const responseFields = {
60853
+ HttpMeta: { Response: response, Request: req }
60854
+ };
60855
+ const [result] = await match(json(200, MetricsResponse$inboundSchema), jsonErr(400, BadRequestError$inboundSchema), jsonErr(401, UnauthorizedError$inboundSchema), jsonErr(403, APIErrorResponse$inboundSchema), jsonErr(500, InternalServerError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
60856
+ if (!result.ok) {
60857
+ return [result, { status: "complete", request: req, response }];
60858
+ }
60859
+ return [result, { status: "complete", request: req, response }];
60860
+ }
60861
+ var init_metricsGetEventMetrics = __esm(() => {
60862
+ init_encodings();
60863
+ init_matchers();
60864
+ init_primitives();
60865
+ init_schemas4();
60866
+ init_security();
60867
+ init_url();
60868
+ init_components();
60869
+ init_errors4();
60870
+ init_operations();
60871
+ init_async();
60872
+ });
60873
+
60874
+ // src/mcp-server/tools/metricsGetEventMetrics.ts
60875
+ var args16, tool$metricsGetEventMetrics;
60876
+ var init_metricsGetEventMetrics2 = __esm(() => {
60877
+ init_metricsGetEventMetrics();
60878
+ init_operations();
60879
+ init_tools();
60880
+ args16 = {
60881
+ request: GetEventMetricsRequest$inboundSchema
60882
+ };
60883
+ tool$metricsGetEventMetrics = {
60884
+ name: "metrics-get-event-metrics",
60885
+ description: `Get Event Metrics
60886
+
60887
+ Returns aggregated event publish metrics. Supports time bucketing via granularity,
60888
+ dimensional grouping, and filtering.
60889
+
60890
+ **Measures:** \`count\`, \`rate\`
60891
+
60892
+ **Dimensions:** \`tenant_id\` (admin-only), \`topic\`, \`destination_id\`
60893
+
60894
+ **Filters:** \`tenant_id\` (admin-only), \`topic\`, \`destination_id\`
60895
+ `,
60896
+ args: args16,
60897
+ tool: async (client, args17, ctx) => {
60898
+ const [result, apiCall] = await metricsGetEventMetrics(client, args17.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
60899
+ if (!result.ok) {
60900
+ return {
60901
+ content: [{ type: "text", text: result.error.message }],
60902
+ isError: true
60903
+ };
60904
+ }
60905
+ const value = result.value;
60906
+ return formatResult(value, apiCall);
60907
+ }
60908
+ };
60909
+ });
60910
+
60911
+ // src/funcs/publishEvent.ts
60912
+ function publishEvent(client, request, options) {
60913
+ return new APIPromise($do18(client, request, options));
60914
+ }
60915
+ async function $do18(client, request, options) {
60303
60916
  const parsed = safeParse4(request, (value) => PublishRequest$outboundSchema.parse(value), "Input validation failed");
60304
60917
  if (!parsed.ok) {
60305
60918
  return [parsed, { status: "invalid" }];
@@ -60396,12 +61009,12 @@ var init_publishEvent = __esm(() => {
60396
61009
  });
60397
61010
 
60398
61011
  // src/mcp-server/tools/publishEvent.ts
60399
- var args15, tool$publishEvent;
61012
+ var args17, tool$publishEvent;
60400
61013
  var init_publishEvent2 = __esm(() => {
60401
61014
  init_publishEvent();
60402
61015
  init_components();
60403
61016
  init_tools();
60404
- args15 = {
61017
+ args17 = {
60405
61018
  request: PublishRequest$inboundSchema
60406
61019
  };
60407
61020
  tool$publishEvent = {
@@ -60409,9 +61022,9 @@ var init_publishEvent2 = __esm(() => {
60409
61022
  description: `Publish Event
60410
61023
 
60411
61024
  Publishes an event to the specified topic, potentially routed to a specific destination. Requires Admin API Key.`,
60412
- args: args15,
60413
- tool: async (client, args16, ctx) => {
60414
- const [result, apiCall] = await publishEvent(client, args16.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
61025
+ args: args17,
61026
+ tool: async (client, args18, ctx) => {
61027
+ const [result, apiCall] = await publishEvent(client, args18.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
60415
61028
  if (!result.ok) {
60416
61029
  return {
60417
61030
  content: [{ type: "text", text: result.error.message }],
@@ -60426,9 +61039,9 @@ Publishes an event to the specified topic, potentially routed to a specific dest
60426
61039
 
60427
61040
  // src/funcs/schemasGetDestinationType.ts
60428
61041
  function schemasGetDestinationType(client, type, options) {
60429
- return new APIPromise($do17(client, type, options));
61042
+ return new APIPromise($do19(client, type, options));
60430
61043
  }
60431
- async function $do17(client, type, options) {
61044
+ async function $do19(client, type, options) {
60432
61045
  const input = {
60433
61046
  type
60434
61047
  };
@@ -60534,12 +61147,12 @@ var init_schemasGetDestinationType = __esm(() => {
60534
61147
  });
60535
61148
 
60536
61149
  // src/mcp-server/tools/schemasGetDestinationType.ts
60537
- var args16, tool$schemasGetDestinationType;
61150
+ var args18, tool$schemasGetDestinationType;
60538
61151
  var init_schemasGetDestinationType2 = __esm(() => {
60539
61152
  init_schemasGetDestinationType();
60540
61153
  init_operations();
60541
61154
  init_tools();
60542
- args16 = {
61155
+ args18 = {
60543
61156
  type: GetDestinationTypeSchemaType$inboundSchema
60544
61157
  };
60545
61158
  tool$schemasGetDestinationType = {
@@ -60547,9 +61160,9 @@ var init_schemasGetDestinationType2 = __esm(() => {
60547
61160
  description: `Get Destination Type Schema
60548
61161
 
60549
61162
  Returns the input schema for a specific destination type.`,
60550
- args: args16,
60551
- tool: async (client, args17, ctx) => {
60552
- const [result, apiCall] = await schemasGetDestinationType(client, args17.type, { fetchOptions: { signal: ctx.signal } }).$inspect();
61163
+ args: args18,
61164
+ tool: async (client, args19, ctx) => {
61165
+ const [result, apiCall] = await schemasGetDestinationType(client, args19.type, { fetchOptions: { signal: ctx.signal } }).$inspect();
60553
61166
  if (!result.ok) {
60554
61167
  return {
60555
61168
  content: [{ type: "text", text: result.error.message }],
@@ -60564,9 +61177,9 @@ Returns the input schema for a specific destination type.`,
60564
61177
 
60565
61178
  // src/funcs/schemasListDestinationTypes.ts
60566
61179
  function schemasListDestinationTypes(client, options) {
60567
- return new APIPromise($do18(client, options));
61180
+ return new APIPromise($do20(client, options));
60568
61181
  }
60569
- async function $do18(client, options) {
61182
+ async function $do20(client, options) {
60570
61183
  const path = pathToFunc("/destination-types")();
60571
61184
  const headers = new Headers(compactMap({
60572
61185
  Accept: "application/json"
@@ -60679,9 +61292,9 @@ Returns a list of JSON-based input schemas for each available destination type.`
60679
61292
 
60680
61293
  // src/funcs/tenantsDelete.ts
60681
61294
  function tenantsDelete(client, tenantId, options) {
60682
- return new APIPromise($do19(client, tenantId, options));
61295
+ return new APIPromise($do21(client, tenantId, options));
60683
61296
  }
60684
- async function $do19(client, tenantId, options) {
61297
+ async function $do21(client, tenantId, options) {
60685
61298
  const input = {
60686
61299
  tenantId
60687
61300
  };
@@ -60761,12 +61374,12 @@ var init_tenantsDelete = __esm(() => {
60761
61374
  });
60762
61375
 
60763
61376
  // src/mcp-server/tools/tenantsDelete.ts
60764
- var args17, tool$tenantsDelete;
61377
+ var args19, tool$tenantsDelete;
60765
61378
  var init_tenantsDelete2 = __esm(() => {
60766
61379
  init_v3();
60767
61380
  init_tenantsDelete();
60768
61381
  init_tools();
60769
- args17 = {
61382
+ args19 = {
60770
61383
  tenantId: stringType()
60771
61384
  };
60772
61385
  tool$tenantsDelete = {
@@ -60774,9 +61387,9 @@ var init_tenantsDelete2 = __esm(() => {
60774
61387
  description: `Delete Tenant
60775
61388
 
60776
61389
  Deletes the tenant and all associated destinations.`,
60777
- args: args17,
60778
- tool: async (client, args18, ctx) => {
60779
- const [result, apiCall] = await tenantsDelete(client, args18.tenantId, { fetchOptions: { signal: ctx.signal } }).$inspect();
61390
+ args: args19,
61391
+ tool: async (client, args20, ctx) => {
61392
+ const [result, apiCall] = await tenantsDelete(client, args20.tenantId, { fetchOptions: { signal: ctx.signal } }).$inspect();
60780
61393
  if (!result.ok) {
60781
61394
  return {
60782
61395
  content: [{ type: "text", text: result.error.message }],
@@ -60791,9 +61404,9 @@ Deletes the tenant and all associated destinations.`,
60791
61404
 
60792
61405
  // src/funcs/tenantsGet.ts
60793
61406
  function tenantsGet(client, tenantId, options) {
60794
- return new APIPromise($do20(client, tenantId, options));
61407
+ return new APIPromise($do22(client, tenantId, options));
60795
61408
  }
60796
- async function $do20(client, tenantId, options) {
61409
+ async function $do22(client, tenantId, options) {
60797
61410
  const input = {
60798
61411
  tenantId
60799
61412
  };
@@ -60873,12 +61486,12 @@ var init_tenantsGet = __esm(() => {
60873
61486
  });
60874
61487
 
60875
61488
  // src/mcp-server/tools/tenantsGet.ts
60876
- var args18, tool$tenantsGet;
61489
+ var args20, tool$tenantsGet;
60877
61490
  var init_tenantsGet2 = __esm(() => {
60878
61491
  init_v3();
60879
61492
  init_tenantsGet();
60880
61493
  init_tools();
60881
- args18 = {
61494
+ args20 = {
60882
61495
  tenantId: stringType()
60883
61496
  };
60884
61497
  tool$tenantsGet = {
@@ -60886,9 +61499,9 @@ var init_tenantsGet2 = __esm(() => {
60886
61499
  description: `Get Tenant
60887
61500
 
60888
61501
  Retrieves details for a specific tenant.`,
60889
- args: args18,
60890
- tool: async (client, args19, ctx) => {
60891
- const [result, apiCall] = await tenantsGet(client, args19.tenantId, { fetchOptions: { signal: ctx.signal } }).$inspect();
61502
+ args: args20,
61503
+ tool: async (client, args21, ctx) => {
61504
+ const [result, apiCall] = await tenantsGet(client, args21.tenantId, { fetchOptions: { signal: ctx.signal } }).$inspect();
60892
61505
  if (!result.ok) {
60893
61506
  return {
60894
61507
  content: [{ type: "text", text: result.error.message }],
@@ -60903,9 +61516,9 @@ Retrieves details for a specific tenant.`,
60903
61516
 
60904
61517
  // src/funcs/tenantsGetPortalUrl.ts
60905
61518
  function tenantsGetPortalUrl(client, tenantId, theme, options) {
60906
- return new APIPromise($do21(client, tenantId, theme, options));
61519
+ return new APIPromise($do23(client, tenantId, theme, options));
60907
61520
  }
60908
- async function $do21(client, tenantId, theme, options) {
61521
+ async function $do23(client, tenantId, theme, options) {
60909
61522
  const input = {
60910
61523
  tenantId,
60911
61524
  theme
@@ -60990,13 +61603,13 @@ var init_tenantsGetPortalUrl = __esm(() => {
60990
61603
  });
60991
61604
 
60992
61605
  // src/mcp-server/tools/tenantsGetPortalUrl.ts
60993
- var args19, tool$tenantsGetPortalUrl;
61606
+ var args21, tool$tenantsGetPortalUrl;
60994
61607
  var init_tenantsGetPortalUrl2 = __esm(() => {
60995
61608
  init_v3();
60996
61609
  init_tenantsGetPortalUrl();
60997
61610
  init_operations();
60998
61611
  init_tools();
60999
- args19 = {
61612
+ args21 = {
61000
61613
  tenantId: stringType(),
61001
61614
  theme: Theme$inboundSchema.optional()
61002
61615
  };
@@ -61005,9 +61618,9 @@ var init_tenantsGetPortalUrl2 = __esm(() => {
61005
61618
  description: `Get Portal Redirect URL
61006
61619
 
61007
61620
  Returns a redirect URL containing a JWT to authenticate the user with the portal. Requires Admin API Key.`,
61008
- args: args19,
61009
- tool: async (client, args20, ctx) => {
61010
- const [result, apiCall] = await tenantsGetPortalUrl(client, args20.tenantId, args20.theme, { fetchOptions: { signal: ctx.signal } }).$inspect();
61621
+ args: args21,
61622
+ tool: async (client, args22, ctx) => {
61623
+ const [result, apiCall] = await tenantsGetPortalUrl(client, args22.tenantId, args22.theme, { fetchOptions: { signal: ctx.signal } }).$inspect();
61011
61624
  if (!result.ok) {
61012
61625
  return {
61013
61626
  content: [{ type: "text", text: result.error.message }],
@@ -61022,9 +61635,9 @@ Returns a redirect URL containing a JWT to authenticate the user with the portal
61022
61635
 
61023
61636
  // src/funcs/tenantsGetToken.ts
61024
61637
  function tenantsGetToken(client, tenantId, options) {
61025
- return new APIPromise($do22(client, tenantId, options));
61638
+ return new APIPromise($do24(client, tenantId, options));
61026
61639
  }
61027
- async function $do22(client, tenantId, options) {
61640
+ async function $do24(client, tenantId, options) {
61028
61641
  const input = {
61029
61642
  tenantId
61030
61643
  };
@@ -61104,12 +61717,12 @@ var init_tenantsGetToken = __esm(() => {
61104
61717
  });
61105
61718
 
61106
61719
  // src/mcp-server/tools/tenantsGetToken.ts
61107
- var args20, tool$tenantsGetToken;
61720
+ var args22, tool$tenantsGetToken;
61108
61721
  var init_tenantsGetToken2 = __esm(() => {
61109
61722
  init_v3();
61110
61723
  init_tenantsGetToken();
61111
61724
  init_tools();
61112
- args20 = {
61725
+ args22 = {
61113
61726
  tenantId: stringType()
61114
61727
  };
61115
61728
  tool$tenantsGetToken = {
@@ -61117,9 +61730,9 @@ var init_tenantsGetToken2 = __esm(() => {
61117
61730
  description: `Get Tenant JWT Token
61118
61731
 
61119
61732
  Returns a JWT token scoped to the tenant for safe browser API calls. Requires Admin API Key.`,
61120
- args: args20,
61121
- tool: async (client, args21, ctx) => {
61122
- const [result, apiCall] = await tenantsGetToken(client, args21.tenantId, { fetchOptions: { signal: ctx.signal } }).$inspect();
61733
+ args: args22,
61734
+ tool: async (client, args23, ctx) => {
61735
+ const [result, apiCall] = await tenantsGetToken(client, args23.tenantId, { fetchOptions: { signal: ctx.signal } }).$inspect();
61123
61736
  if (!result.ok) {
61124
61737
  return {
61125
61738
  content: [{ type: "text", text: result.error.message }],
@@ -61134,9 +61747,9 @@ Returns a JWT token scoped to the tenant for safe browser API calls. Requires Ad
61134
61747
 
61135
61748
  // src/funcs/tenantsList.ts
61136
61749
  function tenantsList(client, request, options) {
61137
- return new APIPromise($do23(client, request, options));
61750
+ return new APIPromise($do25(client, request, options));
61138
61751
  }
61139
- async function $do23(client, request, options) {
61752
+ async function $do25(client, request, options) {
61140
61753
  const parsed = safeParse4(request, (value) => ListTenantsRequest$outboundSchema.parse(value), "Input validation failed");
61141
61754
  if (!parsed.ok) {
61142
61755
  return [haltIterator(parsed), { status: "invalid" }];
@@ -61248,12 +61861,12 @@ var init_tenantsList = __esm(() => {
61248
61861
  });
61249
61862
 
61250
61863
  // src/mcp-server/tools/tenantsList.ts
61251
- var args21, tool$tenantsList;
61864
+ var args23, tool$tenantsList;
61252
61865
  var init_tenantsList2 = __esm(() => {
61253
61866
  init_tenantsList();
61254
61867
  init_operations();
61255
61868
  init_tools();
61256
- args21 = {
61869
+ args23 = {
61257
61870
  request: ListTenantsRequest$inboundSchema
61258
61871
  };
61259
61872
  tool$tenantsList = {
@@ -61267,9 +61880,9 @@ If RediSearch is not available, this endpoint returns \`501 Not Implemented\`.
61267
61880
 
61268
61881
  When authenticated with a Tenant JWT, returns only the authenticated tenant. Pagination is not used in this case.
61269
61882
  `,
61270
- args: args21,
61271
- tool: async (client, args22, ctx) => {
61272
- const [result, apiCall] = await tenantsList(client, args22.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
61883
+ args: args23,
61884
+ tool: async (client, args24, ctx) => {
61885
+ const [result, apiCall] = await tenantsList(client, args24.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
61273
61886
  if (!result.ok) {
61274
61887
  return {
61275
61888
  content: [{ type: "text", text: result.error.message }],
@@ -61284,9 +61897,9 @@ When authenticated with a Tenant JWT, returns only the authenticated tenant. Pag
61284
61897
 
61285
61898
  // src/funcs/tenantsUpsert.ts
61286
61899
  function tenantsUpsert(client, tenantId, body, options) {
61287
- return new APIPromise($do24(client, tenantId, body, options));
61900
+ return new APIPromise($do26(client, tenantId, body, options));
61288
61901
  }
61289
- async function $do24(client, tenantId, body, options) {
61902
+ async function $do26(client, tenantId, body, options) {
61290
61903
  const input = {
61291
61904
  tenantId,
61292
61905
  body
@@ -61368,13 +61981,13 @@ var init_tenantsUpsert = __esm(() => {
61368
61981
  });
61369
61982
 
61370
61983
  // src/mcp-server/tools/tenantsUpsert.ts
61371
- var args22, tool$tenantsUpsert;
61984
+ var args24, tool$tenantsUpsert;
61372
61985
  var init_tenantsUpsert2 = __esm(() => {
61373
61986
  init_v3();
61374
61987
  init_tenantsUpsert();
61375
61988
  init_components();
61376
61989
  init_tools();
61377
- args22 = {
61990
+ args24 = {
61378
61991
  tenantId: stringType(),
61379
61992
  body: TenantUpsert$inboundSchema.optional()
61380
61993
  };
@@ -61383,9 +61996,9 @@ var init_tenantsUpsert2 = __esm(() => {
61383
61996
  description: `Create or Update Tenant
61384
61997
 
61385
61998
  Idempotently creates or updates a tenant. Required before associating destinations.`,
61386
- args: args22,
61387
- tool: async (client, args23, ctx) => {
61388
- const [result, apiCall] = await tenantsUpsert(client, args23.tenantId, args23.body, { fetchOptions: { signal: ctx.signal } }).$inspect();
61999
+ args: args24,
62000
+ tool: async (client, args25, ctx) => {
62001
+ const [result, apiCall] = await tenantsUpsert(client, args25.tenantId, args25.body, { fetchOptions: { signal: ctx.signal } }).$inspect();
61389
62002
  if (!result.ok) {
61390
62003
  return {
61391
62004
  content: [{ type: "text", text: result.error.message }],
@@ -61400,9 +62013,9 @@ Idempotently creates or updates a tenant. Required before associating destinatio
61400
62013
 
61401
62014
  // src/funcs/topicsList.ts
61402
62015
  function topicsList(client, options) {
61403
- return new APIPromise($do25(client, options));
62016
+ return new APIPromise($do27(client, options));
61404
62017
  }
61405
- async function $do25(client, options) {
62018
+ async function $do27(client, options) {
61406
62019
  const path = pathToFunc("/topics")();
61407
62020
  const headers = new Headers(compactMap({
61408
62021
  Accept: "application/json"
@@ -61516,7 +62129,7 @@ Returns a list of available event topics configured in the Outpost instance.`,
61516
62129
  function createMCPServer(deps) {
61517
62130
  const server = new McpServer({
61518
62131
  name: "Outpost",
61519
- version: "0.9.1"
62132
+ version: "0.9.2"
61520
62133
  });
61521
62134
  const client = new OutpostCore({
61522
62135
  apiKey: deps.apiKey,
@@ -61555,6 +62168,8 @@ function createMCPServer(deps) {
61555
62168
  tool(tool$schemasListDestinationTypes);
61556
62169
  tool(tool$schemasGetDestinationType);
61557
62170
  tool(tool$topicsList);
62171
+ tool(tool$metricsGetEventMetrics);
62172
+ tool(tool$metricsGetAttemptMetrics);
61558
62173
  return server;
61559
62174
  }
61560
62175
  var init_server2 = __esm(() => {
@@ -61577,6 +62192,8 @@ var init_server2 = __esm(() => {
61577
62192
  init_eventsGet2();
61578
62193
  init_eventsList2();
61579
62194
  init_healthCheck2();
62195
+ init_metricsGetAttemptMetrics2();
62196
+ init_metricsGetEventMetrics2();
61580
62197
  init_publishEvent2();
61581
62198
  init_schemasGetDestinationType2();
61582
62199
  init_schemasListDestinationTypes2();
@@ -62761,7 +63378,7 @@ var routes = an({
62761
63378
  var app = He(routes, {
62762
63379
  name: "mcp",
62763
63380
  versionInfo: {
62764
- currentVersion: "0.9.1"
63381
+ currentVersion: "0.9.2"
62765
63382
  }
62766
63383
  });
62767
63384
  zt(app, process4.argv.slice(2), buildContext(process4));
@@ -62769,5 +63386,5 @@ export {
62769
63386
  app
62770
63387
  };
62771
63388
 
62772
- //# debugId=1D7AEBCD128A36AE64756E2164756E21
63389
+ //# debugId=C4BDF434B9FAC7F464756E2164756E21
62773
63390
  //# sourceMappingURL=mcp-server.js.map