@hookdeck/outpost-sdk 0.4.0 → 0.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (283) hide show
  1. package/README.md +2 -6
  2. package/RUNTIMES.md +6 -6
  3. package/bin/mcp-server.js +286 -50
  4. package/bin/mcp-server.js.map +47 -41
  5. package/dist/commonjs/funcs/destinationsCreate.js +1 -1
  6. package/dist/commonjs/funcs/destinationsCreate.js.map +1 -1
  7. package/dist/commonjs/funcs/destinationsDelete.js +1 -1
  8. package/dist/commonjs/funcs/destinationsDelete.js.map +1 -1
  9. package/dist/commonjs/funcs/destinationsDisable.js +1 -1
  10. package/dist/commonjs/funcs/destinationsDisable.js.map +1 -1
  11. package/dist/commonjs/funcs/destinationsEnable.js +1 -1
  12. package/dist/commonjs/funcs/destinationsEnable.js.map +1 -1
  13. package/dist/commonjs/funcs/destinationsGet.js +1 -1
  14. package/dist/commonjs/funcs/destinationsGet.js.map +1 -1
  15. package/dist/commonjs/funcs/destinationsList.js +1 -1
  16. package/dist/commonjs/funcs/destinationsList.js.map +1 -1
  17. package/dist/commonjs/funcs/destinationsUpdate.js +1 -1
  18. package/dist/commonjs/funcs/destinationsUpdate.js.map +1 -1
  19. package/dist/commonjs/funcs/eventsGet.js +1 -1
  20. package/dist/commonjs/funcs/eventsGet.js.map +1 -1
  21. package/dist/commonjs/funcs/eventsGetByDestination.js +1 -1
  22. package/dist/commonjs/funcs/eventsGetByDestination.js.map +1 -1
  23. package/dist/commonjs/funcs/eventsList.js +1 -1
  24. package/dist/commonjs/funcs/eventsList.js.map +1 -1
  25. package/dist/commonjs/funcs/eventsListByDestination.js +1 -1
  26. package/dist/commonjs/funcs/eventsListByDestination.js.map +1 -1
  27. package/dist/commonjs/funcs/eventsListDeliveries.js +1 -1
  28. package/dist/commonjs/funcs/eventsListDeliveries.js.map +1 -1
  29. package/dist/commonjs/funcs/eventsRetry.js +1 -1
  30. package/dist/commonjs/funcs/eventsRetry.js.map +1 -1
  31. package/dist/commonjs/funcs/healthCheck.js +1 -1
  32. package/dist/commonjs/funcs/healthCheck.js.map +1 -1
  33. package/dist/commonjs/funcs/publishEvent.js +1 -1
  34. package/dist/commonjs/funcs/publishEvent.js.map +1 -1
  35. package/dist/commonjs/funcs/schemasGet.js +1 -1
  36. package/dist/commonjs/funcs/schemasGet.js.map +1 -1
  37. package/dist/commonjs/funcs/schemasGetDestinationTypeJwt.js +1 -1
  38. package/dist/commonjs/funcs/schemasGetDestinationTypeJwt.js.map +1 -1
  39. package/dist/commonjs/funcs/schemasListDestinationTypesJwt.js +1 -1
  40. package/dist/commonjs/funcs/schemasListDestinationTypesJwt.js.map +1 -1
  41. package/dist/commonjs/funcs/schemasListTenantDestinationTypes.js +1 -1
  42. package/dist/commonjs/funcs/schemasListTenantDestinationTypes.js.map +1 -1
  43. package/dist/commonjs/funcs/tenantsDelete.js +1 -1
  44. package/dist/commonjs/funcs/tenantsDelete.js.map +1 -1
  45. package/dist/commonjs/funcs/tenantsGet.js +1 -1
  46. package/dist/commonjs/funcs/tenantsGet.js.map +1 -1
  47. package/dist/commonjs/funcs/tenantsGetPortalUrl.js +1 -1
  48. package/dist/commonjs/funcs/tenantsGetPortalUrl.js.map +1 -1
  49. package/dist/commonjs/funcs/tenantsGetToken.js +1 -1
  50. package/dist/commonjs/funcs/tenantsGetToken.js.map +1 -1
  51. package/dist/commonjs/funcs/tenantsUpsert.js +1 -1
  52. package/dist/commonjs/funcs/tenantsUpsert.js.map +1 -1
  53. package/dist/commonjs/funcs/topicsList.js +1 -1
  54. package/dist/commonjs/funcs/topicsList.js.map +1 -1
  55. package/dist/commonjs/funcs/topicsListJwt.js +1 -1
  56. package/dist/commonjs/funcs/topicsListJwt.js.map +1 -1
  57. package/dist/commonjs/lib/config.d.ts +3 -3
  58. package/dist/commonjs/lib/config.js +3 -3
  59. package/dist/commonjs/lib/config.js.map +1 -1
  60. package/dist/commonjs/lib/url.js +1 -1
  61. package/dist/commonjs/lib/url.js.map +1 -1
  62. package/dist/commonjs/mcp-server/mcp-server.js +1 -1
  63. package/dist/commonjs/mcp-server/server.js +1 -1
  64. package/dist/commonjs/models/components/deliveryattempt.d.ts +8 -8
  65. package/dist/commonjs/models/components/deliveryattempt.d.ts.map +1 -1
  66. package/dist/commonjs/models/components/deliveryattempt.js +13 -14
  67. package/dist/commonjs/models/components/deliveryattempt.js.map +1 -1
  68. package/dist/commonjs/models/components/destination.d.ts +5 -0
  69. package/dist/commonjs/models/components/destination.d.ts.map +1 -1
  70. package/dist/commonjs/models/components/destination.js +7 -0
  71. package/dist/commonjs/models/components/destination.js.map +1 -1
  72. package/dist/commonjs/models/components/destinationcreate.d.ts +5 -0
  73. package/dist/commonjs/models/components/destinationcreate.d.ts.map +1 -1
  74. package/dist/commonjs/models/components/destinationcreate.js +7 -0
  75. package/dist/commonjs/models/components/destinationcreate.js.map +1 -1
  76. package/dist/commonjs/models/components/destinationcreategcppubsub.d.ts +78 -0
  77. package/dist/commonjs/models/components/destinationcreategcppubsub.d.ts.map +1 -0
  78. package/dist/commonjs/models/components/destinationcreategcppubsub.js +101 -0
  79. package/dist/commonjs/models/components/destinationcreategcppubsub.js.map +1 -0
  80. package/dist/commonjs/models/components/destinationgcppubsub.d.ts +98 -0
  81. package/dist/commonjs/models/components/destinationgcppubsub.d.ts.map +1 -0
  82. package/dist/commonjs/models/components/destinationgcppubsub.js +122 -0
  83. package/dist/commonjs/models/components/destinationgcppubsub.js.map +1 -0
  84. package/dist/commonjs/models/components/destinationupdate.d.ts +4 -2
  85. package/dist/commonjs/models/components/destinationupdate.d.ts.map +1 -1
  86. package/dist/commonjs/models/components/destinationupdate.js +6 -0
  87. package/dist/commonjs/models/components/destinationupdate.js.map +1 -1
  88. package/dist/commonjs/models/components/destinationupdateazureservicebus.d.ts +39 -0
  89. package/dist/commonjs/models/components/destinationupdateazureservicebus.d.ts.map +1 -0
  90. package/dist/commonjs/models/components/destinationupdateazureservicebus.js +76 -0
  91. package/dist/commonjs/models/components/destinationupdateazureservicebus.js.map +1 -0
  92. package/dist/commonjs/models/components/destinationupdategcppubsub.d.ts +39 -0
  93. package/dist/commonjs/models/components/destinationupdategcppubsub.d.ts.map +1 -0
  94. package/dist/commonjs/models/components/destinationupdategcppubsub.js +76 -0
  95. package/dist/commonjs/models/components/destinationupdategcppubsub.js.map +1 -0
  96. package/dist/commonjs/models/components/event.d.ts +30 -2
  97. package/dist/commonjs/models/components/event.d.ts.map +1 -1
  98. package/dist/commonjs/models/components/event.js +25 -3
  99. package/dist/commonjs/models/components/event.js.map +1 -1
  100. package/dist/commonjs/models/components/gcppubsubconfig.d.ts +42 -0
  101. package/dist/commonjs/models/components/gcppubsubconfig.d.ts.map +1 -0
  102. package/dist/commonjs/models/components/gcppubsubconfig.js +82 -0
  103. package/dist/commonjs/models/components/gcppubsubconfig.js.map +1 -0
  104. package/dist/commonjs/models/components/gcppubsubcredentials.d.ts +32 -0
  105. package/dist/commonjs/models/components/gcppubsubcredentials.d.ts.map +1 -0
  106. package/dist/commonjs/models/components/gcppubsubcredentials.js +78 -0
  107. package/dist/commonjs/models/components/gcppubsubcredentials.js.map +1 -0
  108. package/dist/commonjs/models/components/index.d.ts +6 -0
  109. package/dist/commonjs/models/components/index.d.ts.map +1 -1
  110. package/dist/commonjs/models/components/index.js +6 -0
  111. package/dist/commonjs/models/components/index.js.map +1 -1
  112. package/dist/commonjs/models/errors/index.d.ts +1 -0
  113. package/dist/commonjs/models/errors/index.d.ts.map +1 -1
  114. package/dist/commonjs/models/errors/index.js +1 -0
  115. package/dist/commonjs/models/errors/index.js.map +1 -1
  116. package/dist/commonjs/models/operations/listtenantdestinations.d.ts +12 -0
  117. package/dist/commonjs/models/operations/listtenantdestinations.d.ts.map +1 -1
  118. package/dist/commonjs/models/operations/listtenantdestinations.js +4 -0
  119. package/dist/commonjs/models/operations/listtenantdestinations.js.map +1 -1
  120. package/dist/esm/funcs/destinationsCreate.js +1 -1
  121. package/dist/esm/funcs/destinationsCreate.js.map +1 -1
  122. package/dist/esm/funcs/destinationsDelete.js +1 -1
  123. package/dist/esm/funcs/destinationsDelete.js.map +1 -1
  124. package/dist/esm/funcs/destinationsDisable.js +1 -1
  125. package/dist/esm/funcs/destinationsDisable.js.map +1 -1
  126. package/dist/esm/funcs/destinationsEnable.js +1 -1
  127. package/dist/esm/funcs/destinationsEnable.js.map +1 -1
  128. package/dist/esm/funcs/destinationsGet.js +1 -1
  129. package/dist/esm/funcs/destinationsGet.js.map +1 -1
  130. package/dist/esm/funcs/destinationsList.js +1 -1
  131. package/dist/esm/funcs/destinationsList.js.map +1 -1
  132. package/dist/esm/funcs/destinationsUpdate.js +1 -1
  133. package/dist/esm/funcs/destinationsUpdate.js.map +1 -1
  134. package/dist/esm/funcs/eventsGet.js +1 -1
  135. package/dist/esm/funcs/eventsGet.js.map +1 -1
  136. package/dist/esm/funcs/eventsGetByDestination.js +1 -1
  137. package/dist/esm/funcs/eventsGetByDestination.js.map +1 -1
  138. package/dist/esm/funcs/eventsList.js +1 -1
  139. package/dist/esm/funcs/eventsList.js.map +1 -1
  140. package/dist/esm/funcs/eventsListByDestination.js +1 -1
  141. package/dist/esm/funcs/eventsListByDestination.js.map +1 -1
  142. package/dist/esm/funcs/eventsListDeliveries.js +1 -1
  143. package/dist/esm/funcs/eventsListDeliveries.js.map +1 -1
  144. package/dist/esm/funcs/eventsRetry.js +1 -1
  145. package/dist/esm/funcs/eventsRetry.js.map +1 -1
  146. package/dist/esm/funcs/healthCheck.js +1 -1
  147. package/dist/esm/funcs/healthCheck.js.map +1 -1
  148. package/dist/esm/funcs/publishEvent.js +1 -1
  149. package/dist/esm/funcs/publishEvent.js.map +1 -1
  150. package/dist/esm/funcs/schemasGet.js +1 -1
  151. package/dist/esm/funcs/schemasGet.js.map +1 -1
  152. package/dist/esm/funcs/schemasGetDestinationTypeJwt.js +1 -1
  153. package/dist/esm/funcs/schemasGetDestinationTypeJwt.js.map +1 -1
  154. package/dist/esm/funcs/schemasListDestinationTypesJwt.js +1 -1
  155. package/dist/esm/funcs/schemasListDestinationTypesJwt.js.map +1 -1
  156. package/dist/esm/funcs/schemasListTenantDestinationTypes.js +1 -1
  157. package/dist/esm/funcs/schemasListTenantDestinationTypes.js.map +1 -1
  158. package/dist/esm/funcs/tenantsDelete.js +1 -1
  159. package/dist/esm/funcs/tenantsDelete.js.map +1 -1
  160. package/dist/esm/funcs/tenantsGet.js +1 -1
  161. package/dist/esm/funcs/tenantsGet.js.map +1 -1
  162. package/dist/esm/funcs/tenantsGetPortalUrl.js +1 -1
  163. package/dist/esm/funcs/tenantsGetPortalUrl.js.map +1 -1
  164. package/dist/esm/funcs/tenantsGetToken.js +1 -1
  165. package/dist/esm/funcs/tenantsGetToken.js.map +1 -1
  166. package/dist/esm/funcs/tenantsUpsert.js +1 -1
  167. package/dist/esm/funcs/tenantsUpsert.js.map +1 -1
  168. package/dist/esm/funcs/topicsList.js +1 -1
  169. package/dist/esm/funcs/topicsList.js.map +1 -1
  170. package/dist/esm/funcs/topicsListJwt.js +1 -1
  171. package/dist/esm/funcs/topicsListJwt.js.map +1 -1
  172. package/dist/esm/lib/config.d.ts +3 -3
  173. package/dist/esm/lib/config.js +3 -3
  174. package/dist/esm/lib/config.js.map +1 -1
  175. package/dist/esm/lib/url.js +1 -1
  176. package/dist/esm/lib/url.js.map +1 -1
  177. package/dist/esm/mcp-server/mcp-server.js +1 -1
  178. package/dist/esm/mcp-server/server.js +1 -1
  179. package/dist/esm/models/components/deliveryattempt.d.ts +8 -8
  180. package/dist/esm/models/components/deliveryattempt.d.ts.map +1 -1
  181. package/dist/esm/models/components/deliveryattempt.js +12 -13
  182. package/dist/esm/models/components/deliveryattempt.js.map +1 -1
  183. package/dist/esm/models/components/destination.d.ts +5 -0
  184. package/dist/esm/models/components/destination.d.ts.map +1 -1
  185. package/dist/esm/models/components/destination.js +7 -0
  186. package/dist/esm/models/components/destination.js.map +1 -1
  187. package/dist/esm/models/components/destinationcreate.d.ts +5 -0
  188. package/dist/esm/models/components/destinationcreate.d.ts.map +1 -1
  189. package/dist/esm/models/components/destinationcreate.js +7 -0
  190. package/dist/esm/models/components/destinationcreate.js.map +1 -1
  191. package/dist/esm/models/components/destinationcreategcppubsub.d.ts +78 -0
  192. package/dist/esm/models/components/destinationcreategcppubsub.d.ts.map +1 -0
  193. package/dist/esm/models/components/destinationcreategcppubsub.js +63 -0
  194. package/dist/esm/models/components/destinationcreategcppubsub.js.map +1 -0
  195. package/dist/esm/models/components/destinationgcppubsub.d.ts +98 -0
  196. package/dist/esm/models/components/destinationgcppubsub.d.ts.map +1 -0
  197. package/dist/esm/models/components/destinationgcppubsub.js +84 -0
  198. package/dist/esm/models/components/destinationgcppubsub.js.map +1 -0
  199. package/dist/esm/models/components/destinationupdate.d.ts +4 -2
  200. package/dist/esm/models/components/destinationupdate.d.ts.map +1 -1
  201. package/dist/esm/models/components/destinationupdate.js +6 -0
  202. package/dist/esm/models/components/destinationupdate.js.map +1 -1
  203. package/dist/esm/models/components/destinationupdateazureservicebus.d.ts +39 -0
  204. package/dist/esm/models/components/destinationupdateazureservicebus.d.ts.map +1 -0
  205. package/dist/esm/models/components/destinationupdateazureservicebus.js +38 -0
  206. package/dist/esm/models/components/destinationupdateazureservicebus.js.map +1 -0
  207. package/dist/esm/models/components/destinationupdategcppubsub.d.ts +39 -0
  208. package/dist/esm/models/components/destinationupdategcppubsub.d.ts.map +1 -0
  209. package/dist/esm/models/components/destinationupdategcppubsub.js +38 -0
  210. package/dist/esm/models/components/destinationupdategcppubsub.js.map +1 -0
  211. package/dist/esm/models/components/event.d.ts +30 -2
  212. package/dist/esm/models/components/event.d.ts.map +1 -1
  213. package/dist/esm/models/components/event.js +24 -2
  214. package/dist/esm/models/components/event.js.map +1 -1
  215. package/dist/esm/models/components/gcppubsubconfig.d.ts +42 -0
  216. package/dist/esm/models/components/gcppubsubconfig.d.ts.map +1 -0
  217. package/dist/esm/models/components/gcppubsubconfig.js +44 -0
  218. package/dist/esm/models/components/gcppubsubconfig.js.map +1 -0
  219. package/dist/esm/models/components/gcppubsubcredentials.d.ts +32 -0
  220. package/dist/esm/models/components/gcppubsubcredentials.d.ts.map +1 -0
  221. package/dist/esm/models/components/gcppubsubcredentials.js +40 -0
  222. package/dist/esm/models/components/gcppubsubcredentials.js.map +1 -0
  223. package/dist/esm/models/components/index.d.ts +6 -0
  224. package/dist/esm/models/components/index.d.ts.map +1 -1
  225. package/dist/esm/models/components/index.js +6 -0
  226. package/dist/esm/models/components/index.js.map +1 -1
  227. package/dist/esm/models/errors/index.d.ts +1 -0
  228. package/dist/esm/models/errors/index.d.ts.map +1 -1
  229. package/dist/esm/models/errors/index.js +1 -0
  230. package/dist/esm/models/errors/index.js.map +1 -1
  231. package/dist/esm/models/operations/listtenantdestinations.d.ts +12 -0
  232. package/dist/esm/models/operations/listtenantdestinations.d.ts.map +1 -1
  233. package/dist/esm/models/operations/listtenantdestinations.js +4 -0
  234. package/dist/esm/models/operations/listtenantdestinations.js.map +1 -1
  235. package/examples/healthCheck.example.ts +1 -1
  236. package/examples/package-lock.json +1 -1
  237. package/jsr.json +1 -1
  238. package/package.json +1 -1
  239. package/src/funcs/destinationsCreate.ts +1 -1
  240. package/src/funcs/destinationsDelete.ts +1 -1
  241. package/src/funcs/destinationsDisable.ts +1 -1
  242. package/src/funcs/destinationsEnable.ts +1 -1
  243. package/src/funcs/destinationsGet.ts +1 -1
  244. package/src/funcs/destinationsList.ts +1 -1
  245. package/src/funcs/destinationsUpdate.ts +1 -1
  246. package/src/funcs/eventsGet.ts +1 -1
  247. package/src/funcs/eventsGetByDestination.ts +1 -1
  248. package/src/funcs/eventsList.ts +1 -1
  249. package/src/funcs/eventsListByDestination.ts +1 -1
  250. package/src/funcs/eventsListDeliveries.ts +1 -1
  251. package/src/funcs/eventsRetry.ts +1 -1
  252. package/src/funcs/healthCheck.ts +1 -1
  253. package/src/funcs/publishEvent.ts +1 -1
  254. package/src/funcs/schemasGet.ts +1 -1
  255. package/src/funcs/schemasGetDestinationTypeJwt.ts +1 -1
  256. package/src/funcs/schemasListDestinationTypesJwt.ts +1 -1
  257. package/src/funcs/schemasListTenantDestinationTypes.ts +1 -1
  258. package/src/funcs/tenantsDelete.ts +1 -1
  259. package/src/funcs/tenantsGet.ts +1 -1
  260. package/src/funcs/tenantsGetPortalUrl.ts +1 -1
  261. package/src/funcs/tenantsGetToken.ts +1 -1
  262. package/src/funcs/tenantsUpsert.ts +1 -1
  263. package/src/funcs/topicsList.ts +1 -1
  264. package/src/funcs/topicsListJwt.ts +1 -1
  265. package/src/lib/config.ts +3 -3
  266. package/src/lib/url.ts +1 -1
  267. package/src/mcp-server/mcp-server.ts +1 -1
  268. package/src/mcp-server/server.ts +1 -1
  269. package/src/models/components/deliveryattempt.ts +16 -14
  270. package/src/models/components/destination.ts +18 -0
  271. package/src/models/components/destinationcreate.ts +18 -0
  272. package/src/models/components/destinationcreategcppubsub.ts +144 -0
  273. package/src/models/components/destinationgcppubsub.ts +187 -0
  274. package/src/models/components/destinationupdate.ts +22 -2
  275. package/src/models/components/destinationupdateazureservicebus.ts +97 -0
  276. package/src/models/components/destinationupdategcppubsub.ts +95 -0
  277. package/src/models/components/event.ts +34 -4
  278. package/src/models/components/gcppubsubconfig.ts +90 -0
  279. package/src/models/components/gcppubsubcredentials.ts +78 -0
  280. package/src/models/components/index.ts +6 -0
  281. package/src/models/errors/index.ts +1 -0
  282. package/src/models/operations/listtenantdestinations.ts +4 -0
  283. package/docs/sdks/outpost/README.md +0 -7
@@ -0,0 +1,95 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod";
6
+ import { safeParse } from "../../lib/schemas.js";
7
+ import { Result as SafeParseResult } from "../../types/fp.js";
8
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
9
+ import {
10
+ GCPPubSubConfig,
11
+ GCPPubSubConfig$inboundSchema,
12
+ GCPPubSubConfig$Outbound,
13
+ GCPPubSubConfig$outboundSchema,
14
+ } from "./gcppubsubconfig.js";
15
+ import {
16
+ GCPPubSubCredentials,
17
+ GCPPubSubCredentials$inboundSchema,
18
+ GCPPubSubCredentials$Outbound,
19
+ GCPPubSubCredentials$outboundSchema,
20
+ } from "./gcppubsubcredentials.js";
21
+ import {
22
+ Topics,
23
+ Topics$inboundSchema,
24
+ Topics$Outbound,
25
+ Topics$outboundSchema,
26
+ } from "./topics.js";
27
+
28
+ export type DestinationUpdateGCPPubSub = {
29
+ /**
30
+ * "*" or an array of enabled topics.
31
+ */
32
+ topics?: Topics | undefined;
33
+ config?: GCPPubSubConfig | undefined;
34
+ credentials?: GCPPubSubCredentials | undefined;
35
+ };
36
+
37
+ /** @internal */
38
+ export const DestinationUpdateGCPPubSub$inboundSchema: z.ZodType<
39
+ DestinationUpdateGCPPubSub,
40
+ z.ZodTypeDef,
41
+ unknown
42
+ > = z.object({
43
+ topics: Topics$inboundSchema.optional(),
44
+ config: GCPPubSubConfig$inboundSchema.optional(),
45
+ credentials: GCPPubSubCredentials$inboundSchema.optional(),
46
+ });
47
+
48
+ /** @internal */
49
+ export type DestinationUpdateGCPPubSub$Outbound = {
50
+ topics?: Topics$Outbound | undefined;
51
+ config?: GCPPubSubConfig$Outbound | undefined;
52
+ credentials?: GCPPubSubCredentials$Outbound | undefined;
53
+ };
54
+
55
+ /** @internal */
56
+ export const DestinationUpdateGCPPubSub$outboundSchema: z.ZodType<
57
+ DestinationUpdateGCPPubSub$Outbound,
58
+ z.ZodTypeDef,
59
+ DestinationUpdateGCPPubSub
60
+ > = z.object({
61
+ topics: Topics$outboundSchema.optional(),
62
+ config: GCPPubSubConfig$outboundSchema.optional(),
63
+ credentials: GCPPubSubCredentials$outboundSchema.optional(),
64
+ });
65
+
66
+ /**
67
+ * @internal
68
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
69
+ */
70
+ export namespace DestinationUpdateGCPPubSub$ {
71
+ /** @deprecated use `DestinationUpdateGCPPubSub$inboundSchema` instead. */
72
+ export const inboundSchema = DestinationUpdateGCPPubSub$inboundSchema;
73
+ /** @deprecated use `DestinationUpdateGCPPubSub$outboundSchema` instead. */
74
+ export const outboundSchema = DestinationUpdateGCPPubSub$outboundSchema;
75
+ /** @deprecated use `DestinationUpdateGCPPubSub$Outbound` instead. */
76
+ export type Outbound = DestinationUpdateGCPPubSub$Outbound;
77
+ }
78
+
79
+ export function destinationUpdateGCPPubSubToJSON(
80
+ destinationUpdateGCPPubSub: DestinationUpdateGCPPubSub,
81
+ ): string {
82
+ return JSON.stringify(
83
+ DestinationUpdateGCPPubSub$outboundSchema.parse(destinationUpdateGCPPubSub),
84
+ );
85
+ }
86
+
87
+ export function destinationUpdateGCPPubSubFromJSON(
88
+ jsonString: string,
89
+ ): SafeParseResult<DestinationUpdateGCPPubSub, SDKValidationError> {
90
+ return safeParse(
91
+ jsonString,
92
+ (x) => DestinationUpdateGCPPubSub$inboundSchema.parse(JSON.parse(x)),
93
+ `Failed to parse 'DestinationUpdateGCPPubSub' from JSON`,
94
+ );
95
+ }
@@ -5,9 +5,16 @@
5
5
  import * as z from "zod";
6
6
  import { remap as remap$ } from "../../lib/primitives.js";
7
7
  import { safeParse } from "../../lib/schemas.js";
8
+ import { ClosedEnum } from "../../types/enums.js";
8
9
  import { Result as SafeParseResult } from "../../types/fp.js";
9
10
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
10
11
 
12
+ export const EventStatus = {
13
+ Success: "success",
14
+ Failed: "failed",
15
+ } as const;
16
+ export type EventStatus = ClosedEnum<typeof EventStatus>;
17
+
11
18
  export type Event = {
12
19
  id?: string | undefined;
13
20
  destinationId?: string | undefined;
@@ -23,13 +30,33 @@ export type Event = {
23
30
  /**
24
31
  * Key-value string pairs of metadata associated with the event.
25
32
  */
26
- metadata?: { [k: string]: string } | undefined;
33
+ metadata?: { [k: string]: string } | null | undefined;
34
+ status?: EventStatus | undefined;
27
35
  /**
28
36
  * Freeform JSON data of the event.
29
37
  */
30
38
  data?: { [k: string]: any } | undefined;
31
39
  };
32
40
 
41
+ /** @internal */
42
+ export const EventStatus$inboundSchema: z.ZodNativeEnum<typeof EventStatus> = z
43
+ .nativeEnum(EventStatus);
44
+
45
+ /** @internal */
46
+ export const EventStatus$outboundSchema: z.ZodNativeEnum<typeof EventStatus> =
47
+ EventStatus$inboundSchema;
48
+
49
+ /**
50
+ * @internal
51
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
52
+ */
53
+ export namespace EventStatus$ {
54
+ /** @deprecated use `EventStatus$inboundSchema` instead. */
55
+ export const inboundSchema = EventStatus$inboundSchema;
56
+ /** @deprecated use `EventStatus$outboundSchema` instead. */
57
+ export const outboundSchema = EventStatus$outboundSchema;
58
+ }
59
+
33
60
  /** @internal */
34
61
  export const Event$inboundSchema: z.ZodType<Event, z.ZodTypeDef, unknown> = z
35
62
  .object({
@@ -41,7 +68,8 @@ export const Event$inboundSchema: z.ZodType<Event, z.ZodTypeDef, unknown> = z
41
68
  successful_at: z.nullable(
42
69
  z.string().datetime({ offset: true }).transform(v => new Date(v)),
43
70
  ).optional(),
44
- metadata: z.record(z.string()).optional(),
71
+ metadata: z.nullable(z.record(z.string())).optional(),
72
+ status: EventStatus$inboundSchema.optional(),
45
73
  data: z.record(z.any()).optional(),
46
74
  }).transform((v) => {
47
75
  return remap$(v, {
@@ -57,7 +85,8 @@ export type Event$Outbound = {
57
85
  topic?: string | undefined;
58
86
  time?: string | undefined;
59
87
  successful_at?: string | null | undefined;
60
- metadata?: { [k: string]: string } | undefined;
88
+ metadata?: { [k: string]: string } | null | undefined;
89
+ status?: string | undefined;
61
90
  data?: { [k: string]: any } | undefined;
62
91
  };
63
92
 
@@ -72,7 +101,8 @@ export const Event$outboundSchema: z.ZodType<
72
101
  topic: z.string().optional(),
73
102
  time: z.date().transform(v => v.toISOString()).optional(),
74
103
  successfulAt: z.nullable(z.date().transform(v => v.toISOString())).optional(),
75
- metadata: z.record(z.string()).optional(),
104
+ metadata: z.nullable(z.record(z.string())).optional(),
105
+ status: EventStatus$outboundSchema.optional(),
76
106
  data: z.record(z.any()).optional(),
77
107
  }).transform((v) => {
78
108
  return remap$(v, {
@@ -0,0 +1,90 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod";
6
+ import { remap as remap$ } from "../../lib/primitives.js";
7
+ import { safeParse } from "../../lib/schemas.js";
8
+ import { Result as SafeParseResult } from "../../types/fp.js";
9
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
10
+
11
+ export type GCPPubSubConfig = {
12
+ /**
13
+ * The GCP project ID.
14
+ */
15
+ projectId: string;
16
+ /**
17
+ * The Pub/Sub topic name.
18
+ */
19
+ topic: string;
20
+ /**
21
+ * Optional. Custom endpoint URL (e.g., localhost:8085 for emulator).
22
+ */
23
+ endpoint?: string | undefined;
24
+ };
25
+
26
+ /** @internal */
27
+ export const GCPPubSubConfig$inboundSchema: z.ZodType<
28
+ GCPPubSubConfig,
29
+ z.ZodTypeDef,
30
+ unknown
31
+ > = z.object({
32
+ project_id: z.string(),
33
+ topic: z.string(),
34
+ endpoint: z.string().optional(),
35
+ }).transform((v) => {
36
+ return remap$(v, {
37
+ "project_id": "projectId",
38
+ });
39
+ });
40
+
41
+ /** @internal */
42
+ export type GCPPubSubConfig$Outbound = {
43
+ project_id: string;
44
+ topic: string;
45
+ endpoint?: string | undefined;
46
+ };
47
+
48
+ /** @internal */
49
+ export const GCPPubSubConfig$outboundSchema: z.ZodType<
50
+ GCPPubSubConfig$Outbound,
51
+ z.ZodTypeDef,
52
+ GCPPubSubConfig
53
+ > = z.object({
54
+ projectId: z.string(),
55
+ topic: z.string(),
56
+ endpoint: z.string().optional(),
57
+ }).transform((v) => {
58
+ return remap$(v, {
59
+ projectId: "project_id",
60
+ });
61
+ });
62
+
63
+ /**
64
+ * @internal
65
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
66
+ */
67
+ export namespace GCPPubSubConfig$ {
68
+ /** @deprecated use `GCPPubSubConfig$inboundSchema` instead. */
69
+ export const inboundSchema = GCPPubSubConfig$inboundSchema;
70
+ /** @deprecated use `GCPPubSubConfig$outboundSchema` instead. */
71
+ export const outboundSchema = GCPPubSubConfig$outboundSchema;
72
+ /** @deprecated use `GCPPubSubConfig$Outbound` instead. */
73
+ export type Outbound = GCPPubSubConfig$Outbound;
74
+ }
75
+
76
+ export function gcpPubSubConfigToJSON(
77
+ gcpPubSubConfig: GCPPubSubConfig,
78
+ ): string {
79
+ return JSON.stringify(GCPPubSubConfig$outboundSchema.parse(gcpPubSubConfig));
80
+ }
81
+
82
+ export function gcpPubSubConfigFromJSON(
83
+ jsonString: string,
84
+ ): SafeParseResult<GCPPubSubConfig, SDKValidationError> {
85
+ return safeParse(
86
+ jsonString,
87
+ (x) => GCPPubSubConfig$inboundSchema.parse(JSON.parse(x)),
88
+ `Failed to parse 'GCPPubSubConfig' from JSON`,
89
+ );
90
+ }
@@ -0,0 +1,78 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod";
6
+ import { remap as remap$ } from "../../lib/primitives.js";
7
+ import { safeParse } from "../../lib/schemas.js";
8
+ import { Result as SafeParseResult } from "../../types/fp.js";
9
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
10
+
11
+ export type GCPPubSubCredentials = {
12
+ /**
13
+ * Service account key JSON. The entire JSON key file content as a string.
14
+ */
15
+ serviceAccountJson: string;
16
+ };
17
+
18
+ /** @internal */
19
+ export const GCPPubSubCredentials$inboundSchema: z.ZodType<
20
+ GCPPubSubCredentials,
21
+ z.ZodTypeDef,
22
+ unknown
23
+ > = z.object({
24
+ service_account_json: z.string(),
25
+ }).transform((v) => {
26
+ return remap$(v, {
27
+ "service_account_json": "serviceAccountJson",
28
+ });
29
+ });
30
+
31
+ /** @internal */
32
+ export type GCPPubSubCredentials$Outbound = {
33
+ service_account_json: string;
34
+ };
35
+
36
+ /** @internal */
37
+ export const GCPPubSubCredentials$outboundSchema: z.ZodType<
38
+ GCPPubSubCredentials$Outbound,
39
+ z.ZodTypeDef,
40
+ GCPPubSubCredentials
41
+ > = z.object({
42
+ serviceAccountJson: z.string(),
43
+ }).transform((v) => {
44
+ return remap$(v, {
45
+ serviceAccountJson: "service_account_json",
46
+ });
47
+ });
48
+
49
+ /**
50
+ * @internal
51
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
52
+ */
53
+ export namespace GCPPubSubCredentials$ {
54
+ /** @deprecated use `GCPPubSubCredentials$inboundSchema` instead. */
55
+ export const inboundSchema = GCPPubSubCredentials$inboundSchema;
56
+ /** @deprecated use `GCPPubSubCredentials$outboundSchema` instead. */
57
+ export const outboundSchema = GCPPubSubCredentials$outboundSchema;
58
+ /** @deprecated use `GCPPubSubCredentials$Outbound` instead. */
59
+ export type Outbound = GCPPubSubCredentials$Outbound;
60
+ }
61
+
62
+ export function gcpPubSubCredentialsToJSON(
63
+ gcpPubSubCredentials: GCPPubSubCredentials,
64
+ ): string {
65
+ return JSON.stringify(
66
+ GCPPubSubCredentials$outboundSchema.parse(gcpPubSubCredentials),
67
+ );
68
+ }
69
+
70
+ export function gcpPubSubCredentialsFromJSON(
71
+ jsonString: string,
72
+ ): SafeParseResult<GCPPubSubCredentials, SDKValidationError> {
73
+ return safeParse(
74
+ jsonString,
75
+ (x) => GCPPubSubCredentials$inboundSchema.parse(JSON.parse(x)),
76
+ `Failed to parse 'GCPPubSubCredentials' from JSON`,
77
+ );
78
+ }
@@ -21,9 +21,11 @@ export * from "./destinationcreateawskinesis.js";
21
21
  export * from "./destinationcreateawss3.js";
22
22
  export * from "./destinationcreateawssqs.js";
23
23
  export * from "./destinationcreateazureservicebus.js";
24
+ export * from "./destinationcreategcppubsub.js";
24
25
  export * from "./destinationcreatehookdeck.js";
25
26
  export * from "./destinationcreaterabbitmq.js";
26
27
  export * from "./destinationcreatewebhook.js";
28
+ export * from "./destinationgcppubsub.js";
27
29
  export * from "./destinationhookdeck.js";
28
30
  export * from "./destinationrabbitmq.js";
29
31
  export * from "./destinationschemafield.js";
@@ -32,11 +34,15 @@ export * from "./destinationupdate.js";
32
34
  export * from "./destinationupdateawskinesis.js";
33
35
  export * from "./destinationupdateawss3.js";
34
36
  export * from "./destinationupdateawssqs.js";
37
+ export * from "./destinationupdateazureservicebus.js";
38
+ export * from "./destinationupdategcppubsub.js";
35
39
  export * from "./destinationupdatehookdeck.js";
36
40
  export * from "./destinationupdaterabbitmq.js";
37
41
  export * from "./destinationupdatewebhook.js";
38
42
  export * from "./destinationwebhook.js";
39
43
  export * from "./event.js";
44
+ export * from "./gcppubsubconfig.js";
45
+ export * from "./gcppubsubcredentials.js";
40
46
  export * from "./hookdeckcredentials.js";
41
47
  export * from "./portalredirect.js";
42
48
  export * from "./publishrequest.js";
@@ -7,6 +7,7 @@ export * from "./badrequesterror.js";
7
7
  export * from "./httpclienterrors.js";
8
8
  export * from "./internalservererror.js";
9
9
  export * from "./notfounderror.js";
10
+ export * from "./outposterror.js";
10
11
  export * from "./ratelimitederror.js";
11
12
  export * from "./responsevalidationerror.js";
12
13
  export * from "./sdkvalidationerror.js";
@@ -19,7 +19,9 @@ export const ListTenantDestinationsTypeEnum2 = {
19
19
  Rabbitmq: "rabbitmq",
20
20
  Hookdeck: "hookdeck",
21
21
  AwsKinesis: "aws_kinesis",
22
+ AzureServicebus: "azure_servicebus",
22
23
  AwsS3: "aws_s3",
24
+ GcpPubsub: "gcp_pubsub",
23
25
  } as const;
24
26
  export type ListTenantDestinationsTypeEnum2 = ClosedEnum<
25
27
  typeof ListTenantDestinationsTypeEnum2
@@ -31,7 +33,9 @@ export const ListTenantDestinationsTypeEnum1 = {
31
33
  Rabbitmq: "rabbitmq",
32
34
  Hookdeck: "hookdeck",
33
35
  AwsKinesis: "aws_kinesis",
36
+ AzureServicebus: "azure_servicebus",
34
37
  AwsS3: "aws_s3",
38
+ GcpPubsub: "gcp_pubsub",
35
39
  } as const;
36
40
  export type ListTenantDestinationsTypeEnum1 = ClosedEnum<
37
41
  typeof ListTenantDestinationsTypeEnum1
@@ -1,7 +0,0 @@
1
- # Outpost SDK
2
-
3
- ## Overview
4
-
5
- Outpost API: The Outpost API is a REST-based JSON API for managing tenants, destinations, and publishing events.
6
-
7
- ### Available Operations