@vercel/sdk 1.11.2 → 1.12.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 (257) hide show
  1. package/README.md +60 -59
  2. package/bin/mcp-server.js +4502 -3066
  3. package/bin/mcp-server.js.map +46 -40
  4. package/docs/sdks/deployments/README.md +8 -0
  5. package/docs/sdks/edgecache/README.md +169 -0
  6. package/docs/sdks/integrations/README.md +83 -0
  7. package/docs/sdks/projects/README.md +0 -2
  8. package/docs/sdks/vercel/README.md +0 -74
  9. package/esm/__tests__/deployments.test.js +1 -1
  10. package/esm/__tests__/deployments.test.js.map +1 -1
  11. package/esm/__tests__/domains.test.js +3 -12
  12. package/esm/__tests__/domains.test.js.map +1 -1
  13. package/esm/__tests__/integrations.test.js +28 -1
  14. package/esm/__tests__/integrations.test.js.map +1 -1
  15. package/esm/__tests__/logdrains.test.js +9 -0
  16. package/esm/__tests__/logdrains.test.js.map +1 -1
  17. package/esm/__tests__/rollingrelease.test.js +2 -6
  18. package/esm/__tests__/rollingrelease.test.js.map +1 -1
  19. package/esm/__tests__/security.test.js +4 -4
  20. package/esm/__tests__/security.test.js.map +1 -1
  21. package/esm/__tests__/vercel.test.js +3 -27
  22. package/esm/__tests__/vercel.test.js.map +1 -1
  23. package/esm/funcs/deploymentsGetDeployments.js +1 -0
  24. package/esm/funcs/deploymentsGetDeployments.js.map +1 -1
  25. package/esm/funcs/edgeCacheDangerouslyDeleteByTags.d.ts +20 -0
  26. package/esm/funcs/edgeCacheDangerouslyDeleteByTags.d.ts.map +1 -0
  27. package/esm/funcs/edgeCacheDangerouslyDeleteByTags.js +91 -0
  28. package/esm/funcs/edgeCacheDangerouslyDeleteByTags.js.map +1 -0
  29. package/esm/funcs/{getV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlans.d.ts → edgeCacheInvalidateByTags.d.ts} +9 -3
  30. package/esm/funcs/edgeCacheInvalidateByTags.d.ts.map +1 -0
  31. package/esm/funcs/edgeCacheInvalidateByTags.js +91 -0
  32. package/esm/funcs/edgeCacheInvalidateByTags.js.map +1 -0
  33. package/esm/funcs/integrationsGetBillingPlans.d.ts +20 -0
  34. package/esm/funcs/integrationsGetBillingPlans.d.ts.map +1 -0
  35. package/esm/funcs/{getV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlans.js → integrationsGetBillingPlans.js} +21 -9
  36. package/esm/funcs/integrationsGetBillingPlans.js.map +1 -0
  37. package/esm/funcs/marketplaceImportResource.js +2 -2
  38. package/esm/funcs/marketplaceImportResource.js.map +1 -1
  39. package/esm/funcs/marketplaceUpdateResourceSecrets.js +2 -2
  40. package/esm/funcs/marketplaceUpdateResourceSecrets.js.map +1 -1
  41. package/esm/funcs/marketplaceUpdateResourceSecretsById.js +2 -2
  42. package/esm/funcs/marketplaceUpdateResourceSecretsById.js.map +1 -1
  43. package/esm/funcs/projectsGetProjects.js +0 -1
  44. package/esm/funcs/projectsGetProjects.js.map +1 -1
  45. package/esm/lib/config.d.ts +3 -3
  46. package/esm/lib/config.js +3 -3
  47. package/esm/lib/url.js +1 -1
  48. package/esm/lib/url.js.map +1 -1
  49. package/esm/mcp-server/mcp-server.js +1 -1
  50. package/esm/mcp-server/server.d.ts.map +1 -1
  51. package/esm/mcp-server/server.js +7 -3
  52. package/esm/mcp-server/server.js.map +1 -1
  53. package/esm/mcp-server/tools/edgeCacheDangerouslyDeleteByTags.d.ts +7 -0
  54. package/esm/mcp-server/tools/edgeCacheDangerouslyDeleteByTags.d.ts.map +1 -0
  55. package/esm/mcp-server/tools/edgeCacheDangerouslyDeleteByTags.js +27 -0
  56. package/esm/mcp-server/tools/edgeCacheDangerouslyDeleteByTags.js.map +1 -0
  57. package/esm/mcp-server/tools/edgeCacheInvalidateByTags.d.ts +7 -0
  58. package/esm/mcp-server/tools/edgeCacheInvalidateByTags.d.ts.map +1 -0
  59. package/esm/mcp-server/tools/edgeCacheInvalidateByTags.js +27 -0
  60. package/esm/mcp-server/tools/edgeCacheInvalidateByTags.js.map +1 -0
  61. package/esm/mcp-server/tools/integrationsGetBillingPlans.d.ts +7 -0
  62. package/esm/mcp-server/tools/integrationsGetBillingPlans.d.ts.map +1 -0
  63. package/esm/mcp-server/tools/integrationsGetBillingPlans.js +28 -0
  64. package/esm/mcp-server/tools/integrationsGetBillingPlans.js.map +1 -0
  65. package/esm/models/approverollingreleasestageop.d.ts +15 -0
  66. package/esm/models/approverollingreleasestageop.d.ts.map +1 -1
  67. package/esm/models/approverollingreleasestageop.js +6 -0
  68. package/esm/models/approverollingreleasestageop.js.map +1 -1
  69. package/esm/models/canceldeploymentop.d.ts +63 -50
  70. package/esm/models/canceldeploymentop.d.ts.map +1 -1
  71. package/esm/models/canceldeploymentop.js +59 -54
  72. package/esm/models/canceldeploymentop.js.map +1 -1
  73. package/esm/models/completerollingreleaseop.d.ts +15 -0
  74. package/esm/models/completerollingreleaseop.d.ts.map +1 -1
  75. package/esm/models/completerollingreleaseop.js +6 -0
  76. package/esm/models/completerollingreleaseop.js.map +1 -1
  77. package/esm/models/createdeploymentop.d.ts +289 -144
  78. package/esm/models/createdeploymentop.d.ts.map +1 -1
  79. package/esm/models/createdeploymentop.js +259 -124
  80. package/esm/models/createdeploymentop.js.map +1 -1
  81. package/esm/models/createedgeconfigop.d.ts +2 -2
  82. package/esm/models/createedgeconfigop.d.ts.map +1 -1
  83. package/esm/models/createedgeconfigop.js +2 -2
  84. package/esm/models/createedgeconfigop.js.map +1 -1
  85. package/esm/models/createintegrationstoredirectop.d.ts +906 -308
  86. package/esm/models/createintegrationstoredirectop.d.ts.map +1 -1
  87. package/esm/models/createintegrationstoredirectop.js +1077 -371
  88. package/esm/models/createintegrationstoredirectop.js.map +1 -1
  89. package/esm/models/createlogdrainop.d.ts +126 -4
  90. package/esm/models/createlogdrainop.d.ts.map +1 -1
  91. package/esm/models/createlogdrainop.js +129 -1
  92. package/esm/models/createlogdrainop.js.map +1 -1
  93. package/esm/models/createprojectop.d.ts +43 -30
  94. package/esm/models/createprojectop.d.ts.map +1 -1
  95. package/esm/models/createprojectop.js +24 -18
  96. package/esm/models/createprojectop.js.map +1 -1
  97. package/esm/models/dangerouslydeletebytagsop.d.ts +117 -0
  98. package/esm/models/dangerouslydeletebytagsop.d.ts.map +1 -0
  99. package/esm/models/dangerouslydeletebytagsop.js +117 -0
  100. package/esm/models/dangerouslydeletebytagsop.js.map +1 -0
  101. package/esm/models/getbillingplansop.d.ts +257 -0
  102. package/esm/models/getbillingplansop.d.ts.map +1 -0
  103. package/esm/models/getbillingplansop.js +244 -0
  104. package/esm/models/getbillingplansop.js.map +1 -0
  105. package/esm/models/getconfigurationop.d.ts +8 -8
  106. package/esm/models/getconfigurationop.d.ts.map +1 -1
  107. package/esm/models/getconfigurationop.js +12 -12
  108. package/esm/models/getconfigurationop.js.map +1 -1
  109. package/esm/models/getconfigurationproductsop.d.ts +909 -390
  110. package/esm/models/getconfigurationproductsop.d.ts.map +1 -1
  111. package/esm/models/getconfigurationproductsop.js +1104 -471
  112. package/esm/models/getconfigurationproductsop.js.map +1 -1
  113. package/esm/models/getconfigurationsop.d.ts +3 -0
  114. package/esm/models/getconfigurationsop.d.ts.map +1 -1
  115. package/esm/models/getconfigurationsop.js +1 -0
  116. package/esm/models/getconfigurationsop.js.map +1 -1
  117. package/esm/models/getdeploymentop.d.ts +33 -20
  118. package/esm/models/getdeploymentop.d.ts.map +1 -1
  119. package/esm/models/getdeploymentop.js +25 -20
  120. package/esm/models/getdeploymentop.js.map +1 -1
  121. package/esm/models/getdeploymentsop.d.ts +8 -0
  122. package/esm/models/getdeploymentsop.d.ts.map +1 -1
  123. package/esm/models/getdeploymentsop.js +3 -0
  124. package/esm/models/getdeploymentsop.js.map +1 -1
  125. package/esm/models/getedgeconfigop.d.ts +2 -2
  126. package/esm/models/getedgeconfigop.d.ts.map +1 -1
  127. package/esm/models/getedgeconfigop.js +2 -2
  128. package/esm/models/getedgeconfigop.js.map +1 -1
  129. package/esm/models/getintegrationlogdrainsop.d.ts +125 -0
  130. package/esm/models/getintegrationlogdrainsop.d.ts.map +1 -1
  131. package/esm/models/getintegrationlogdrainsop.js +130 -0
  132. package/esm/models/getintegrationlogdrainsop.js.map +1 -1
  133. package/esm/models/getprojectsop.d.ts +206 -178
  134. package/esm/models/getprojectsop.d.ts.map +1 -1
  135. package/esm/models/getprojectsop.js +207 -166
  136. package/esm/models/getprojectsop.js.map +1 -1
  137. package/esm/models/getrollingreleaseconfigop.d.ts +5 -0
  138. package/esm/models/getrollingreleaseconfigop.d.ts.map +1 -1
  139. package/esm/models/getrollingreleaseconfigop.js +2 -0
  140. package/esm/models/getrollingreleaseconfigop.js.map +1 -1
  141. package/esm/models/getrollingreleaseop.d.ts +15 -0
  142. package/esm/models/getrollingreleaseop.d.ts.map +1 -1
  143. package/esm/models/getrollingreleaseop.js +6 -0
  144. package/esm/models/getrollingreleaseop.js.map +1 -1
  145. package/esm/models/getwebhooksop.d.ts +3 -0
  146. package/esm/models/getwebhooksop.d.ts.map +1 -1
  147. package/esm/models/getwebhooksop.js +1 -0
  148. package/esm/models/getwebhooksop.js.map +1 -1
  149. package/esm/models/importresourceop.d.ts +15 -15
  150. package/esm/models/importresourceop.d.ts.map +1 -1
  151. package/esm/models/importresourceop.js +17 -15
  152. package/esm/models/importresourceop.js.map +1 -1
  153. package/esm/models/invalidatebytagsop.d.ts +115 -0
  154. package/esm/models/invalidatebytagsop.d.ts.map +1 -0
  155. package/esm/models/invalidatebytagsop.js +116 -0
  156. package/esm/models/invalidatebytagsop.js.map +1 -0
  157. package/esm/models/updateedgeconfigop.d.ts +2 -2
  158. package/esm/models/updateedgeconfigop.d.ts.map +1 -1
  159. package/esm/models/updateedgeconfigop.js +2 -2
  160. package/esm/models/updateedgeconfigop.js.map +1 -1
  161. package/esm/models/updateprojectdatacacheop.d.ts +10 -0
  162. package/esm/models/updateprojectdatacacheop.d.ts.map +1 -1
  163. package/esm/models/updateprojectdatacacheop.js +5 -0
  164. package/esm/models/updateprojectdatacacheop.js.map +1 -1
  165. package/esm/models/updateprojectop.d.ts +149 -136
  166. package/esm/models/updateprojectop.d.ts.map +1 -1
  167. package/esm/models/updateprojectop.js +146 -140
  168. package/esm/models/updateprojectop.js.map +1 -1
  169. package/esm/models/updaterollingreleaseconfigop.d.ts +5 -0
  170. package/esm/models/updaterollingreleaseconfigop.d.ts.map +1 -1
  171. package/esm/models/updaterollingreleaseconfigop.js +2 -0
  172. package/esm/models/updaterollingreleaseconfigop.js.map +1 -1
  173. package/esm/models/userevent.d.ts +1300 -1049
  174. package/esm/models/userevent.d.ts.map +1 -1
  175. package/esm/models/userevent.js +1654 -1406
  176. package/esm/models/userevent.js.map +1 -1
  177. package/esm/sdk/edgecache.d.ts +20 -0
  178. package/esm/sdk/edgecache.d.ts.map +1 -0
  179. package/esm/sdk/edgecache.js +28 -0
  180. package/esm/sdk/edgecache.js.map +1 -0
  181. package/esm/sdk/integrations.d.ts +8 -0
  182. package/esm/sdk/integrations.d.ts.map +1 -1
  183. package/esm/sdk/integrations.js +10 -0
  184. package/esm/sdk/integrations.js.map +1 -1
  185. package/esm/sdk/sdk.d.ts +4 -3
  186. package/esm/sdk/sdk.d.ts.map +1 -1
  187. package/esm/sdk/sdk.js +4 -5
  188. package/esm/sdk/sdk.js.map +1 -1
  189. package/examples/package-lock.json +1 -1
  190. package/jsr.json +1 -1
  191. package/package.json +1 -1
  192. package/src/__tests__/deployments.test.ts +1 -1
  193. package/src/__tests__/domains.test.ts +3 -12
  194. package/src/__tests__/integrations.test.ts +32 -1
  195. package/src/__tests__/logdrains.test.ts +9 -0
  196. package/src/__tests__/rollingrelease.test.ts +2 -6
  197. package/src/__tests__/security.test.ts +4 -4
  198. package/src/__tests__/vercel.test.ts +4 -33
  199. package/src/funcs/deploymentsGetDeployments.ts +1 -0
  200. package/src/funcs/edgeCacheDangerouslyDeleteByTags.ts +199 -0
  201. package/src/funcs/edgeCacheInvalidateByTags.ts +199 -0
  202. package/src/funcs/{getV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlans.ts → integrationsGetBillingPlans.ts} +30 -24
  203. package/src/funcs/marketplaceImportResource.ts +2 -2
  204. package/src/funcs/marketplaceUpdateResourceSecrets.ts +2 -2
  205. package/src/funcs/marketplaceUpdateResourceSecretsById.ts +2 -2
  206. package/src/funcs/projectsGetProjects.ts +0 -1
  207. package/src/lib/config.ts +3 -3
  208. package/src/lib/url.ts +1 -1
  209. package/src/mcp-server/mcp-server.ts +1 -1
  210. package/src/mcp-server/server.ts +7 -5
  211. package/src/mcp-server/tools/edgeCacheDangerouslyDeleteByTags.ts +37 -0
  212. package/src/mcp-server/tools/edgeCacheInvalidateByTags.ts +35 -0
  213. package/src/mcp-server/tools/integrationsGetBillingPlans.ts +37 -0
  214. package/src/models/approverollingreleasestageop.ts +21 -0
  215. package/src/models/canceldeploymentop.ts +127 -104
  216. package/src/models/completerollingreleaseop.ts +21 -0
  217. package/src/models/createdeploymentop.ts +532 -226
  218. package/src/models/createedgeconfigop.ts +4 -4
  219. package/src/models/createintegrationstoredirectop.ts +2459 -673
  220. package/src/models/createlogdrainop.ts +260 -2
  221. package/src/models/createprojectop.ts +43 -30
  222. package/src/models/dangerouslydeletebytagsop.ts +249 -0
  223. package/src/models/getbillingplansop.ts +508 -0
  224. package/src/models/getconfigurationop.ts +20 -15
  225. package/src/models/getconfigurationproductsop.ts +2433 -838
  226. package/src/models/getconfigurationsop.ts +1 -0
  227. package/src/models/getdeploymentop.ts +63 -48
  228. package/src/models/getdeploymentsop.ts +8 -0
  229. package/src/models/getedgeconfigop.ts +4 -4
  230. package/src/models/getintegrationlogdrainsop.ts +237 -0
  231. package/src/models/getprojectsop.ts +434 -336
  232. package/src/models/getrollingreleaseconfigop.ts +7 -0
  233. package/src/models/getrollingreleaseop.ts +21 -0
  234. package/src/models/getwebhooksop.ts +1 -0
  235. package/src/models/importresourceop.ts +27 -29
  236. package/src/models/invalidatebytagsop.ts +227 -0
  237. package/src/models/updateedgeconfigop.ts +4 -4
  238. package/src/models/updateprojectdatacacheop.ts +12 -0
  239. package/src/models/updateprojectop.ts +299 -286
  240. package/src/models/updaterollingreleaseconfigop.ts +7 -0
  241. package/src/models/userevent.ts +3017 -2473
  242. package/src/sdk/edgecache.ts +46 -0
  243. package/src/sdk/integrations.ts +22 -0
  244. package/src/sdk/sdk.ts +7 -23
  245. package/vercel-spec.json +3578 -2444
  246. package/esm/funcs/getV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlans.d.ts.map +0 -1
  247. package/esm/funcs/getV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlans.js.map +0 -1
  248. package/esm/mcp-server/tools/getV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlans.d.ts +0 -7
  249. package/esm/mcp-server/tools/getV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlans.d.ts.map +0 -1
  250. package/esm/mcp-server/tools/getV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlans.js +0 -26
  251. package/esm/mcp-server/tools/getV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlans.js.map +0 -1
  252. package/esm/models/getv1integrationsintegrationintegrationidorslugproductsproductidorslugplansop.d.ts +0 -247
  253. package/esm/models/getv1integrationsintegrationintegrationidorslugproductsproductidorslugplansop.d.ts.map +0 -1
  254. package/esm/models/getv1integrationsintegrationintegrationidorslugproductsproductidorslugplansop.js +0 -246
  255. package/esm/models/getv1integrationsintegrationintegrationidorslugproductsproductidorslugplansop.js.map +0 -1
  256. package/src/mcp-server/tools/getV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlans.ts +0 -41
  257. package/src/models/getv1integrationsintegrationintegrationidorslugproductsproductidorslugplansop.ts +0 -575
@@ -0,0 +1,508 @@
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 { ClosedEnum } from "../types/enums.js";
8
+ import { Result as SafeParseResult } from "../types/fp.js";
9
+ import { SDKValidationError } from "./sdkvalidationerror.js";
10
+
11
+ export type GetBillingPlansRequest = {
12
+ integrationIdOrSlug: string;
13
+ productIdOrSlug: string;
14
+ metadata?: string | undefined;
15
+ /**
16
+ * The Team identifier to perform the request on behalf of.
17
+ */
18
+ teamId?: string | undefined;
19
+ /**
20
+ * The Team slug to perform the request on behalf of.
21
+ */
22
+ slug?: string | undefined;
23
+ };
24
+
25
+ export const GetBillingPlansType = {
26
+ Prepayment: "prepayment",
27
+ Subscription: "subscription",
28
+ } as const;
29
+ export type GetBillingPlansType = ClosedEnum<typeof GetBillingPlansType>;
30
+
31
+ export const GetBillingPlansScope = {
32
+ Installation: "installation",
33
+ Resource: "resource",
34
+ } as const;
35
+ export type GetBillingPlansScope = ClosedEnum<typeof GetBillingPlansScope>;
36
+
37
+ export type GetBillingPlansDetails = {
38
+ label: string;
39
+ value?: string | undefined;
40
+ };
41
+
42
+ export type GetBillingPlansHighlightedDetails = {
43
+ label: string;
44
+ value?: string | undefined;
45
+ };
46
+
47
+ export type Quote = {
48
+ line: string;
49
+ amount: string;
50
+ };
51
+
52
+ export type Plans = {
53
+ type: GetBillingPlansType;
54
+ id: string;
55
+ name: string;
56
+ scope: GetBillingPlansScope;
57
+ description: string;
58
+ paymentMethodRequired: boolean;
59
+ preauthorizationAmount?: number | undefined;
60
+ initialCharge?: string | undefined;
61
+ minimumAmount?: string | undefined;
62
+ maximumAmount?: string | undefined;
63
+ maximumAmountAutoPurchasePerPeriod?: string | undefined;
64
+ cost?: string | undefined;
65
+ details?: Array<GetBillingPlansDetails> | undefined;
66
+ highlightedDetails?: Array<GetBillingPlansHighlightedDetails> | undefined;
67
+ quote?: Array<Quote> | undefined;
68
+ effectiveDate?: string | undefined;
69
+ disabled?: boolean | undefined;
70
+ };
71
+
72
+ export type GetBillingPlansResponseBody = {
73
+ plans: Array<Plans>;
74
+ };
75
+
76
+ /** @internal */
77
+ export const GetBillingPlansRequest$inboundSchema: z.ZodType<
78
+ GetBillingPlansRequest,
79
+ z.ZodTypeDef,
80
+ unknown
81
+ > = z.object({
82
+ integrationIdOrSlug: z.string(),
83
+ productIdOrSlug: z.string(),
84
+ metadata: z.string().optional(),
85
+ teamId: z.string().optional(),
86
+ slug: z.string().optional(),
87
+ });
88
+
89
+ /** @internal */
90
+ export type GetBillingPlansRequest$Outbound = {
91
+ integrationIdOrSlug: string;
92
+ productIdOrSlug: string;
93
+ metadata?: string | undefined;
94
+ teamId?: string | undefined;
95
+ slug?: string | undefined;
96
+ };
97
+
98
+ /** @internal */
99
+ export const GetBillingPlansRequest$outboundSchema: z.ZodType<
100
+ GetBillingPlansRequest$Outbound,
101
+ z.ZodTypeDef,
102
+ GetBillingPlansRequest
103
+ > = z.object({
104
+ integrationIdOrSlug: z.string(),
105
+ productIdOrSlug: z.string(),
106
+ metadata: z.string().optional(),
107
+ teamId: z.string().optional(),
108
+ slug: z.string().optional(),
109
+ });
110
+
111
+ /**
112
+ * @internal
113
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
114
+ */
115
+ export namespace GetBillingPlansRequest$ {
116
+ /** @deprecated use `GetBillingPlansRequest$inboundSchema` instead. */
117
+ export const inboundSchema = GetBillingPlansRequest$inboundSchema;
118
+ /** @deprecated use `GetBillingPlansRequest$outboundSchema` instead. */
119
+ export const outboundSchema = GetBillingPlansRequest$outboundSchema;
120
+ /** @deprecated use `GetBillingPlansRequest$Outbound` instead. */
121
+ export type Outbound = GetBillingPlansRequest$Outbound;
122
+ }
123
+
124
+ export function getBillingPlansRequestToJSON(
125
+ getBillingPlansRequest: GetBillingPlansRequest,
126
+ ): string {
127
+ return JSON.stringify(
128
+ GetBillingPlansRequest$outboundSchema.parse(getBillingPlansRequest),
129
+ );
130
+ }
131
+
132
+ export function getBillingPlansRequestFromJSON(
133
+ jsonString: string,
134
+ ): SafeParseResult<GetBillingPlansRequest, SDKValidationError> {
135
+ return safeParse(
136
+ jsonString,
137
+ (x) => GetBillingPlansRequest$inboundSchema.parse(JSON.parse(x)),
138
+ `Failed to parse 'GetBillingPlansRequest' from JSON`,
139
+ );
140
+ }
141
+
142
+ /** @internal */
143
+ export const GetBillingPlansType$inboundSchema: z.ZodNativeEnum<
144
+ typeof GetBillingPlansType
145
+ > = z.nativeEnum(GetBillingPlansType);
146
+
147
+ /** @internal */
148
+ export const GetBillingPlansType$outboundSchema: z.ZodNativeEnum<
149
+ typeof GetBillingPlansType
150
+ > = GetBillingPlansType$inboundSchema;
151
+
152
+ /**
153
+ * @internal
154
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
155
+ */
156
+ export namespace GetBillingPlansType$ {
157
+ /** @deprecated use `GetBillingPlansType$inboundSchema` instead. */
158
+ export const inboundSchema = GetBillingPlansType$inboundSchema;
159
+ /** @deprecated use `GetBillingPlansType$outboundSchema` instead. */
160
+ export const outboundSchema = GetBillingPlansType$outboundSchema;
161
+ }
162
+
163
+ /** @internal */
164
+ export const GetBillingPlansScope$inboundSchema: z.ZodNativeEnum<
165
+ typeof GetBillingPlansScope
166
+ > = z.nativeEnum(GetBillingPlansScope);
167
+
168
+ /** @internal */
169
+ export const GetBillingPlansScope$outboundSchema: z.ZodNativeEnum<
170
+ typeof GetBillingPlansScope
171
+ > = GetBillingPlansScope$inboundSchema;
172
+
173
+ /**
174
+ * @internal
175
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
176
+ */
177
+ export namespace GetBillingPlansScope$ {
178
+ /** @deprecated use `GetBillingPlansScope$inboundSchema` instead. */
179
+ export const inboundSchema = GetBillingPlansScope$inboundSchema;
180
+ /** @deprecated use `GetBillingPlansScope$outboundSchema` instead. */
181
+ export const outboundSchema = GetBillingPlansScope$outboundSchema;
182
+ }
183
+
184
+ /** @internal */
185
+ export const GetBillingPlansDetails$inboundSchema: z.ZodType<
186
+ GetBillingPlansDetails,
187
+ z.ZodTypeDef,
188
+ unknown
189
+ > = z.object({
190
+ label: z.string(),
191
+ value: z.string().optional(),
192
+ });
193
+
194
+ /** @internal */
195
+ export type GetBillingPlansDetails$Outbound = {
196
+ label: string;
197
+ value?: string | undefined;
198
+ };
199
+
200
+ /** @internal */
201
+ export const GetBillingPlansDetails$outboundSchema: z.ZodType<
202
+ GetBillingPlansDetails$Outbound,
203
+ z.ZodTypeDef,
204
+ GetBillingPlansDetails
205
+ > = z.object({
206
+ label: z.string(),
207
+ value: z.string().optional(),
208
+ });
209
+
210
+ /**
211
+ * @internal
212
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
213
+ */
214
+ export namespace GetBillingPlansDetails$ {
215
+ /** @deprecated use `GetBillingPlansDetails$inboundSchema` instead. */
216
+ export const inboundSchema = GetBillingPlansDetails$inboundSchema;
217
+ /** @deprecated use `GetBillingPlansDetails$outboundSchema` instead. */
218
+ export const outboundSchema = GetBillingPlansDetails$outboundSchema;
219
+ /** @deprecated use `GetBillingPlansDetails$Outbound` instead. */
220
+ export type Outbound = GetBillingPlansDetails$Outbound;
221
+ }
222
+
223
+ export function getBillingPlansDetailsToJSON(
224
+ getBillingPlansDetails: GetBillingPlansDetails,
225
+ ): string {
226
+ return JSON.stringify(
227
+ GetBillingPlansDetails$outboundSchema.parse(getBillingPlansDetails),
228
+ );
229
+ }
230
+
231
+ export function getBillingPlansDetailsFromJSON(
232
+ jsonString: string,
233
+ ): SafeParseResult<GetBillingPlansDetails, SDKValidationError> {
234
+ return safeParse(
235
+ jsonString,
236
+ (x) => GetBillingPlansDetails$inboundSchema.parse(JSON.parse(x)),
237
+ `Failed to parse 'GetBillingPlansDetails' from JSON`,
238
+ );
239
+ }
240
+
241
+ /** @internal */
242
+ export const GetBillingPlansHighlightedDetails$inboundSchema: z.ZodType<
243
+ GetBillingPlansHighlightedDetails,
244
+ z.ZodTypeDef,
245
+ unknown
246
+ > = z.object({
247
+ label: z.string(),
248
+ value: z.string().optional(),
249
+ });
250
+
251
+ /** @internal */
252
+ export type GetBillingPlansHighlightedDetails$Outbound = {
253
+ label: string;
254
+ value?: string | undefined;
255
+ };
256
+
257
+ /** @internal */
258
+ export const GetBillingPlansHighlightedDetails$outboundSchema: z.ZodType<
259
+ GetBillingPlansHighlightedDetails$Outbound,
260
+ z.ZodTypeDef,
261
+ GetBillingPlansHighlightedDetails
262
+ > = z.object({
263
+ label: z.string(),
264
+ value: z.string().optional(),
265
+ });
266
+
267
+ /**
268
+ * @internal
269
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
270
+ */
271
+ export namespace GetBillingPlansHighlightedDetails$ {
272
+ /** @deprecated use `GetBillingPlansHighlightedDetails$inboundSchema` instead. */
273
+ export const inboundSchema = GetBillingPlansHighlightedDetails$inboundSchema;
274
+ /** @deprecated use `GetBillingPlansHighlightedDetails$outboundSchema` instead. */
275
+ export const outboundSchema =
276
+ GetBillingPlansHighlightedDetails$outboundSchema;
277
+ /** @deprecated use `GetBillingPlansHighlightedDetails$Outbound` instead. */
278
+ export type Outbound = GetBillingPlansHighlightedDetails$Outbound;
279
+ }
280
+
281
+ export function getBillingPlansHighlightedDetailsToJSON(
282
+ getBillingPlansHighlightedDetails: GetBillingPlansHighlightedDetails,
283
+ ): string {
284
+ return JSON.stringify(
285
+ GetBillingPlansHighlightedDetails$outboundSchema.parse(
286
+ getBillingPlansHighlightedDetails,
287
+ ),
288
+ );
289
+ }
290
+
291
+ export function getBillingPlansHighlightedDetailsFromJSON(
292
+ jsonString: string,
293
+ ): SafeParseResult<GetBillingPlansHighlightedDetails, SDKValidationError> {
294
+ return safeParse(
295
+ jsonString,
296
+ (x) => GetBillingPlansHighlightedDetails$inboundSchema.parse(JSON.parse(x)),
297
+ `Failed to parse 'GetBillingPlansHighlightedDetails' from JSON`,
298
+ );
299
+ }
300
+
301
+ /** @internal */
302
+ export const Quote$inboundSchema: z.ZodType<Quote, z.ZodTypeDef, unknown> = z
303
+ .object({
304
+ line: z.string(),
305
+ amount: z.string(),
306
+ });
307
+
308
+ /** @internal */
309
+ export type Quote$Outbound = {
310
+ line: string;
311
+ amount: string;
312
+ };
313
+
314
+ /** @internal */
315
+ export const Quote$outboundSchema: z.ZodType<
316
+ Quote$Outbound,
317
+ z.ZodTypeDef,
318
+ Quote
319
+ > = z.object({
320
+ line: z.string(),
321
+ amount: z.string(),
322
+ });
323
+
324
+ /**
325
+ * @internal
326
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
327
+ */
328
+ export namespace Quote$ {
329
+ /** @deprecated use `Quote$inboundSchema` instead. */
330
+ export const inboundSchema = Quote$inboundSchema;
331
+ /** @deprecated use `Quote$outboundSchema` instead. */
332
+ export const outboundSchema = Quote$outboundSchema;
333
+ /** @deprecated use `Quote$Outbound` instead. */
334
+ export type Outbound = Quote$Outbound;
335
+ }
336
+
337
+ export function quoteToJSON(quote: Quote): string {
338
+ return JSON.stringify(Quote$outboundSchema.parse(quote));
339
+ }
340
+
341
+ export function quoteFromJSON(
342
+ jsonString: string,
343
+ ): SafeParseResult<Quote, SDKValidationError> {
344
+ return safeParse(
345
+ jsonString,
346
+ (x) => Quote$inboundSchema.parse(JSON.parse(x)),
347
+ `Failed to parse 'Quote' from JSON`,
348
+ );
349
+ }
350
+
351
+ /** @internal */
352
+ export const Plans$inboundSchema: z.ZodType<Plans, z.ZodTypeDef, unknown> = z
353
+ .object({
354
+ type: GetBillingPlansType$inboundSchema,
355
+ id: z.string(),
356
+ name: z.string(),
357
+ scope: GetBillingPlansScope$inboundSchema,
358
+ description: z.string(),
359
+ paymentMethodRequired: z.boolean(),
360
+ preauthorizationAmount: z.number().optional(),
361
+ initialCharge: z.string().optional(),
362
+ minimumAmount: z.string().optional(),
363
+ maximumAmount: z.string().optional(),
364
+ maximumAmountAutoPurchasePerPeriod: z.string().optional(),
365
+ cost: z.string().optional(),
366
+ details: z.array(z.lazy(() => GetBillingPlansDetails$inboundSchema))
367
+ .optional(),
368
+ highlightedDetails: z.array(
369
+ z.lazy(() => GetBillingPlansHighlightedDetails$inboundSchema),
370
+ ).optional(),
371
+ quote: z.array(z.lazy(() => Quote$inboundSchema)).optional(),
372
+ effectiveDate: z.string().optional(),
373
+ disabled: z.boolean().optional(),
374
+ });
375
+
376
+ /** @internal */
377
+ export type Plans$Outbound = {
378
+ type: string;
379
+ id: string;
380
+ name: string;
381
+ scope: string;
382
+ description: string;
383
+ paymentMethodRequired: boolean;
384
+ preauthorizationAmount?: number | undefined;
385
+ initialCharge?: string | undefined;
386
+ minimumAmount?: string | undefined;
387
+ maximumAmount?: string | undefined;
388
+ maximumAmountAutoPurchasePerPeriod?: string | undefined;
389
+ cost?: string | undefined;
390
+ details?: Array<GetBillingPlansDetails$Outbound> | undefined;
391
+ highlightedDetails?:
392
+ | Array<GetBillingPlansHighlightedDetails$Outbound>
393
+ | undefined;
394
+ quote?: Array<Quote$Outbound> | undefined;
395
+ effectiveDate?: string | undefined;
396
+ disabled?: boolean | undefined;
397
+ };
398
+
399
+ /** @internal */
400
+ export const Plans$outboundSchema: z.ZodType<
401
+ Plans$Outbound,
402
+ z.ZodTypeDef,
403
+ Plans
404
+ > = z.object({
405
+ type: GetBillingPlansType$outboundSchema,
406
+ id: z.string(),
407
+ name: z.string(),
408
+ scope: GetBillingPlansScope$outboundSchema,
409
+ description: z.string(),
410
+ paymentMethodRequired: z.boolean(),
411
+ preauthorizationAmount: z.number().optional(),
412
+ initialCharge: z.string().optional(),
413
+ minimumAmount: z.string().optional(),
414
+ maximumAmount: z.string().optional(),
415
+ maximumAmountAutoPurchasePerPeriod: z.string().optional(),
416
+ cost: z.string().optional(),
417
+ details: z.array(z.lazy(() => GetBillingPlansDetails$outboundSchema))
418
+ .optional(),
419
+ highlightedDetails: z.array(
420
+ z.lazy(() => GetBillingPlansHighlightedDetails$outboundSchema),
421
+ ).optional(),
422
+ quote: z.array(z.lazy(() => Quote$outboundSchema)).optional(),
423
+ effectiveDate: z.string().optional(),
424
+ disabled: z.boolean().optional(),
425
+ });
426
+
427
+ /**
428
+ * @internal
429
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
430
+ */
431
+ export namespace Plans$ {
432
+ /** @deprecated use `Plans$inboundSchema` instead. */
433
+ export const inboundSchema = Plans$inboundSchema;
434
+ /** @deprecated use `Plans$outboundSchema` instead. */
435
+ export const outboundSchema = Plans$outboundSchema;
436
+ /** @deprecated use `Plans$Outbound` instead. */
437
+ export type Outbound = Plans$Outbound;
438
+ }
439
+
440
+ export function plansToJSON(plans: Plans): string {
441
+ return JSON.stringify(Plans$outboundSchema.parse(plans));
442
+ }
443
+
444
+ export function plansFromJSON(
445
+ jsonString: string,
446
+ ): SafeParseResult<Plans, SDKValidationError> {
447
+ return safeParse(
448
+ jsonString,
449
+ (x) => Plans$inboundSchema.parse(JSON.parse(x)),
450
+ `Failed to parse 'Plans' from JSON`,
451
+ );
452
+ }
453
+
454
+ /** @internal */
455
+ export const GetBillingPlansResponseBody$inboundSchema: z.ZodType<
456
+ GetBillingPlansResponseBody,
457
+ z.ZodTypeDef,
458
+ unknown
459
+ > = z.object({
460
+ plans: z.array(z.lazy(() => Plans$inboundSchema)),
461
+ });
462
+
463
+ /** @internal */
464
+ export type GetBillingPlansResponseBody$Outbound = {
465
+ plans: Array<Plans$Outbound>;
466
+ };
467
+
468
+ /** @internal */
469
+ export const GetBillingPlansResponseBody$outboundSchema: z.ZodType<
470
+ GetBillingPlansResponseBody$Outbound,
471
+ z.ZodTypeDef,
472
+ GetBillingPlansResponseBody
473
+ > = z.object({
474
+ plans: z.array(z.lazy(() => Plans$outboundSchema)),
475
+ });
476
+
477
+ /**
478
+ * @internal
479
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
480
+ */
481
+ export namespace GetBillingPlansResponseBody$ {
482
+ /** @deprecated use `GetBillingPlansResponseBody$inboundSchema` instead. */
483
+ export const inboundSchema = GetBillingPlansResponseBody$inboundSchema;
484
+ /** @deprecated use `GetBillingPlansResponseBody$outboundSchema` instead. */
485
+ export const outboundSchema = GetBillingPlansResponseBody$outboundSchema;
486
+ /** @deprecated use `GetBillingPlansResponseBody$Outbound` instead. */
487
+ export type Outbound = GetBillingPlansResponseBody$Outbound;
488
+ }
489
+
490
+ export function getBillingPlansResponseBodyToJSON(
491
+ getBillingPlansResponseBody: GetBillingPlansResponseBody,
492
+ ): string {
493
+ return JSON.stringify(
494
+ GetBillingPlansResponseBody$outboundSchema.parse(
495
+ getBillingPlansResponseBody,
496
+ ),
497
+ );
498
+ }
499
+
500
+ export function getBillingPlansResponseBodyFromJSON(
501
+ jsonString: string,
502
+ ): SafeParseResult<GetBillingPlansResponseBody, SDKValidationError> {
503
+ return safeParse(
504
+ jsonString,
505
+ (x) => GetBillingPlansResponseBody$inboundSchema.parse(JSON.parse(x)),
506
+ `Failed to parse 'GetBillingPlansResponseBody' from JSON`,
507
+ );
508
+ }
@@ -75,10 +75,12 @@ export type TransferRequest2 = {
75
75
  authorizationId?: string | undefined;
76
76
  };
77
77
 
78
- export const Kind = {
78
+ export const GetConfigurationTransferRequestKind = {
79
79
  TransferToMarketplace: "transfer-to-marketplace",
80
80
  } as const;
81
- export type Kind = ClosedEnum<typeof Kind>;
81
+ export type GetConfigurationTransferRequestKind = ClosedEnum<
82
+ typeof GetConfigurationTransferRequestKind
83
+ >;
82
84
 
83
85
  export const TransferRequestType = {
84
86
  Subscription: "subscription",
@@ -108,7 +110,7 @@ export type Requester = {
108
110
  };
109
111
 
110
112
  export type TransferRequest1 = {
111
- kind: Kind;
113
+ kind: GetConfigurationTransferRequestKind;
112
114
  metadata?: { [k: string]: any } | undefined;
113
115
  billingPlan?: TransferRequestBillingPlan | undefined;
114
116
  requestId: string;
@@ -712,23 +714,26 @@ export function transferRequest2FromJSON(
712
714
  }
713
715
 
714
716
  /** @internal */
715
- export const Kind$inboundSchema: z.ZodNativeEnum<typeof Kind> = z.nativeEnum(
716
- Kind,
717
- );
717
+ export const GetConfigurationTransferRequestKind$inboundSchema: z.ZodNativeEnum<
718
+ typeof GetConfigurationTransferRequestKind
719
+ > = z.nativeEnum(GetConfigurationTransferRequestKind);
718
720
 
719
721
  /** @internal */
720
- export const Kind$outboundSchema: z.ZodNativeEnum<typeof Kind> =
721
- Kind$inboundSchema;
722
+ export const GetConfigurationTransferRequestKind$outboundSchema:
723
+ z.ZodNativeEnum<typeof GetConfigurationTransferRequestKind> =
724
+ GetConfigurationTransferRequestKind$inboundSchema;
722
725
 
723
726
  /**
724
727
  * @internal
725
728
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
726
729
  */
727
- export namespace Kind$ {
728
- /** @deprecated use `Kind$inboundSchema` instead. */
729
- export const inboundSchema = Kind$inboundSchema;
730
- /** @deprecated use `Kind$outboundSchema` instead. */
731
- export const outboundSchema = Kind$outboundSchema;
730
+ export namespace GetConfigurationTransferRequestKind$ {
731
+ /** @deprecated use `GetConfigurationTransferRequestKind$inboundSchema` instead. */
732
+ export const inboundSchema =
733
+ GetConfigurationTransferRequestKind$inboundSchema;
734
+ /** @deprecated use `GetConfigurationTransferRequestKind$outboundSchema` instead. */
735
+ export const outboundSchema =
736
+ GetConfigurationTransferRequestKind$outboundSchema;
732
737
  }
733
738
 
734
739
  /** @internal */
@@ -904,7 +909,7 @@ export const TransferRequest1$inboundSchema: z.ZodType<
904
909
  z.ZodTypeDef,
905
910
  unknown
906
911
  > = z.object({
907
- kind: Kind$inboundSchema,
912
+ kind: GetConfigurationTransferRequestKind$inboundSchema,
908
913
  metadata: z.record(z.any()).optional(),
909
914
  billingPlan: z.lazy(() => TransferRequestBillingPlan$inboundSchema)
910
915
  .optional(),
@@ -943,7 +948,7 @@ export const TransferRequest1$outboundSchema: z.ZodType<
943
948
  z.ZodTypeDef,
944
949
  TransferRequest1
945
950
  > = z.object({
946
- kind: Kind$outboundSchema,
951
+ kind: GetConfigurationTransferRequestKind$outboundSchema,
947
952
  metadata: z.record(z.any()).optional(),
948
953
  billingPlan: z.lazy(() => TransferRequestBillingPlan$outboundSchema)
949
954
  .optional(),