@vercel/sdk 1.18.0 → 1.18.1

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 (177) hide show
  1. package/bin/mcp-server.js +462 -388
  2. package/bin/mcp-server.js.map +36 -36
  3. package/esm/__tests__/accessgroups.test.js +3 -1
  4. package/esm/__tests__/accessgroups.test.js.map +1 -1
  5. package/esm/__tests__/checks.test.js +1 -1
  6. package/esm/__tests__/checks.test.js.map +1 -1
  7. package/esm/__tests__/domains.test.js +3 -6
  8. package/esm/__tests__/domains.test.js.map +1 -1
  9. package/esm/__tests__/drains.test.js +27 -0
  10. package/esm/__tests__/drains.test.js.map +1 -1
  11. package/esm/__tests__/edgeconfig.test.js +6 -6
  12. package/esm/__tests__/edgeconfig.test.js.map +1 -1
  13. package/esm/__tests__/integrations.test.js +1 -1
  14. package/esm/__tests__/logdrains.test.js +7 -6
  15. package/esm/__tests__/logdrains.test.js.map +1 -1
  16. package/esm/__tests__/security.test.js +11 -1
  17. package/esm/__tests__/security.test.js.map +1 -1
  18. package/esm/funcs/integrationsGetBillingPlans.js +1 -0
  19. package/esm/funcs/integrationsGetBillingPlans.js.map +1 -1
  20. package/esm/lib/config.d.ts +3 -3
  21. package/esm/lib/config.js +3 -3
  22. package/esm/mcp-server/mcp-server.js +1 -1
  23. package/esm/mcp-server/server.js +1 -1
  24. package/esm/models/buydomainsop.d.ts +4 -4
  25. package/esm/models/buydomainsop.d.ts.map +1 -1
  26. package/esm/models/buysingledomainop.d.ts +1 -4
  27. package/esm/models/buysingledomainop.d.ts.map +1 -1
  28. package/esm/models/buysingledomainop.js.map +1 -1
  29. package/esm/models/canceldeploymentop.d.ts +18 -0
  30. package/esm/models/canceldeploymentop.d.ts.map +1 -1
  31. package/esm/models/canceldeploymentop.js +17 -0
  32. package/esm/models/canceldeploymentop.js.map +1 -1
  33. package/esm/models/createdeploymentop.d.ts +18 -0
  34. package/esm/models/createdeploymentop.d.ts.map +1 -1
  35. package/esm/models/createdeploymentop.js +17 -0
  36. package/esm/models/createdeploymentop.js.map +1 -1
  37. package/esm/models/createdrainop.d.ts +8 -8
  38. package/esm/models/createdrainop.d.ts.map +1 -1
  39. package/esm/models/createdrainop.js +8 -10
  40. package/esm/models/createdrainop.js.map +1 -1
  41. package/esm/models/createintegrationstoredirectop.d.ts +152 -152
  42. package/esm/models/createintegrationstoredirectop.js +218 -218
  43. package/esm/models/createprojectop.d.ts +2 -0
  44. package/esm/models/createprojectop.d.ts.map +1 -1
  45. package/esm/models/createprojectop.js +2 -0
  46. package/esm/models/createprojectop.js.map +1 -1
  47. package/esm/models/createwebhookop.d.ts +4 -0
  48. package/esm/models/createwebhookop.d.ts.map +1 -1
  49. package/esm/models/createwebhookop.js +4 -0
  50. package/esm/models/createwebhookop.js.map +1 -1
  51. package/esm/models/getalllogdrainsop.d.ts +8 -8
  52. package/esm/models/getalllogdrainsop.d.ts.map +1 -1
  53. package/esm/models/getalllogdrainsop.js +8 -10
  54. package/esm/models/getalllogdrainsop.js.map +1 -1
  55. package/esm/models/getbillingplansop.d.ts +2 -0
  56. package/esm/models/getbillingplansop.d.ts.map +1 -1
  57. package/esm/models/getbillingplansop.js +2 -0
  58. package/esm/models/getbillingplansop.js.map +1 -1
  59. package/esm/models/getbulkavailabilityop.d.ts +3 -0
  60. package/esm/models/getbulkavailabilityop.d.ts.map +1 -1
  61. package/esm/models/getbulkavailabilityop.js.map +1 -1
  62. package/esm/models/getconfigurationop.d.ts +2 -38
  63. package/esm/models/getconfigurationop.d.ts.map +1 -1
  64. package/esm/models/getconfigurationop.js +4 -35
  65. package/esm/models/getconfigurationop.js.map +1 -1
  66. package/esm/models/getconfigurationproductsop.d.ts +200 -200
  67. package/esm/models/getconfigurationproductsop.js +290 -290
  68. package/esm/models/getconfigurationsop.d.ts +2 -38
  69. package/esm/models/getconfigurationsop.d.ts.map +1 -1
  70. package/esm/models/getconfigurationsop.js +4 -35
  71. package/esm/models/getconfigurationsop.js.map +1 -1
  72. package/esm/models/getdeploymentop.d.ts +18 -0
  73. package/esm/models/getdeploymentop.d.ts.map +1 -1
  74. package/esm/models/getdeploymentop.js +20 -0
  75. package/esm/models/getdeploymentop.js.map +1 -1
  76. package/esm/models/getdomainpriceop.d.ts +36 -15
  77. package/esm/models/getdomainpriceop.d.ts.map +1 -1
  78. package/esm/models/getdomainpriceop.js +36 -6
  79. package/esm/models/getdomainpriceop.js.map +1 -1
  80. package/esm/models/getdrainop.d.ts +8 -8
  81. package/esm/models/getdrainop.d.ts.map +1 -1
  82. package/esm/models/getdrainop.js +8 -10
  83. package/esm/models/getdrainop.js.map +1 -1
  84. package/esm/models/getdrainsop.d.ts +8 -8
  85. package/esm/models/getdrainsop.d.ts.map +1 -1
  86. package/esm/models/getdrainsop.js +8 -8
  87. package/esm/models/getdrainsop.js.map +1 -1
  88. package/esm/models/getinvoiceop.d.ts +10 -0
  89. package/esm/models/getinvoiceop.d.ts.map +1 -1
  90. package/esm/models/getinvoiceop.js +4 -0
  91. package/esm/models/getinvoiceop.js.map +1 -1
  92. package/esm/models/getorderop.d.ts +9 -9
  93. package/esm/models/getorderop.d.ts.map +1 -1
  94. package/esm/models/getprojectsop.d.ts +2 -0
  95. package/esm/models/getprojectsop.d.ts.map +1 -1
  96. package/esm/models/getprojectsop.js +2 -0
  97. package/esm/models/getprojectsop.js.map +1 -1
  98. package/esm/models/gettldpriceop.d.ts +36 -15
  99. package/esm/models/gettldpriceop.d.ts.map +1 -1
  100. package/esm/models/gettldpriceop.js +36 -6
  101. package/esm/models/gettldpriceop.js.map +1 -1
  102. package/esm/models/getwebhookop.d.ts +2 -0
  103. package/esm/models/getwebhookop.d.ts.map +1 -1
  104. package/esm/models/getwebhookop.js +2 -0
  105. package/esm/models/getwebhookop.js.map +1 -1
  106. package/esm/models/getwebhooksop.d.ts +4 -0
  107. package/esm/models/getwebhooksop.d.ts.map +1 -1
  108. package/esm/models/getwebhooksop.js +4 -0
  109. package/esm/models/getwebhooksop.js.map +1 -1
  110. package/esm/models/renewdomainop.d.ts +1 -4
  111. package/esm/models/renewdomainop.d.ts.map +1 -1
  112. package/esm/models/renewdomainop.js.map +1 -1
  113. package/esm/models/transferindomainop.d.ts +4 -4
  114. package/esm/models/transferindomainop.d.ts.map +1 -1
  115. package/esm/models/updatedrainop.d.ts +8 -8
  116. package/esm/models/updatedrainop.d.ts.map +1 -1
  117. package/esm/models/updatedrainop.js +8 -12
  118. package/esm/models/updatedrainop.js.map +1 -1
  119. package/esm/models/updateprojectdatacacheop.d.ts +2 -0
  120. package/esm/models/updateprojectdatacacheop.d.ts.map +1 -1
  121. package/esm/models/updateprojectdatacacheop.js +2 -0
  122. package/esm/models/updateprojectdatacacheop.js.map +1 -1
  123. package/esm/models/updateprojectop.d.ts +2 -0
  124. package/esm/models/updateprojectop.d.ts.map +1 -1
  125. package/esm/models/updateprojectop.js +2 -0
  126. package/esm/models/updateprojectop.js.map +1 -1
  127. package/esm/models/userevent.d.ts +52 -10
  128. package/esm/models/userevent.d.ts.map +1 -1
  129. package/esm/models/userevent.js +50 -10
  130. package/esm/models/userevent.js.map +1 -1
  131. package/examples/package-lock.json +1 -1
  132. package/jsr.json +1 -1
  133. package/package.json +1 -1
  134. package/src/__tests__/accessgroups.test.ts +3 -1
  135. package/src/__tests__/checks.test.ts +1 -1
  136. package/src/__tests__/domains.test.ts +3 -6
  137. package/src/__tests__/drains.test.ts +27 -0
  138. package/src/__tests__/edgeconfig.test.ts +6 -6
  139. package/src/__tests__/integrations.test.ts +1 -1
  140. package/src/__tests__/logdrains.test.ts +7 -6
  141. package/src/__tests__/security.test.ts +11 -1
  142. package/src/funcs/integrationsGetBillingPlans.ts +1 -0
  143. package/src/lib/config.ts +3 -3
  144. package/src/mcp-server/mcp-server.ts +1 -1
  145. package/src/mcp-server/server.ts +1 -1
  146. package/src/models/buydomainsop.ts +4 -4
  147. package/src/models/buysingledomainop.ts +1 -4
  148. package/src/models/canceldeploymentop.ts +29 -0
  149. package/src/models/createdeploymentop.ts +29 -0
  150. package/src/models/createdrainop.ts +19 -29
  151. package/src/models/createintegrationstoredirectop.ts +471 -471
  152. package/src/models/createprojectop.ts +4 -0
  153. package/src/models/createwebhookop.ts +4 -0
  154. package/src/models/getalllogdrainsop.ts +20 -26
  155. package/src/models/getbillingplansop.ts +4 -0
  156. package/src/models/getbulkavailabilityop.ts +3 -0
  157. package/src/models/getconfigurationop.ts +6 -60
  158. package/src/models/getconfigurationproductsop.ts +627 -627
  159. package/src/models/getconfigurationsop.ts +6 -60
  160. package/src/models/getdeploymentop.ts +30 -0
  161. package/src/models/getdomainpriceop.ts +124 -21
  162. package/src/models/getdrainop.ts +20 -26
  163. package/src/models/getdrainsop.ts +20 -24
  164. package/src/models/getinvoiceop.ts +14 -0
  165. package/src/models/getorderop.ts +9 -9
  166. package/src/models/getprojectsop.ts +4 -0
  167. package/src/models/gettldpriceop.ts +108 -21
  168. package/src/models/getwebhookop.ts +2 -0
  169. package/src/models/getwebhooksop.ts +4 -0
  170. package/src/models/renewdomainop.ts +1 -4
  171. package/src/models/transferindomainop.ts +4 -4
  172. package/src/models/updatedrainop.ts +20 -28
  173. package/src/models/updateprojectdatacacheop.ts +4 -0
  174. package/src/models/updateprojectop.ts +4 -0
  175. package/src/models/userevent.ts +112 -22
  176. package/tsconfig.json +1 -1
  177. package/vercel-spec.json +312 -159
@@ -78,23 +78,6 @@ export type ResponseBodyIntegration = {
78
78
  tagIds?: Array<TagIds> | undefined;
79
79
  };
80
80
 
81
- /**
82
- * Source defines where the configuration was installed from. It is used to analyze user engagement for integration installations in product metrics.
83
- */
84
- export const GetConfigurationsResponseBodyIntegrationsSource = {
85
- Marketplace: "marketplace",
86
- DeployButton: "deploy-button",
87
- External: "external",
88
- V0: "v0",
89
- ResourceClaims: "resource-claims",
90
- } as const;
91
- /**
92
- * Source defines where the configuration was installed from. It is used to analyze user engagement for integration installations in product metrics.
93
- */
94
- export type GetConfigurationsResponseBodyIntegrationsSource = ClosedEnum<
95
- typeof GetConfigurationsResponseBodyIntegrationsSource
96
- >;
97
-
98
81
  export const GetConfigurationsResponseBodyIntegrationsType = {
99
82
  IntegrationConfiguration: "integration-configuration",
100
83
  } as const;
@@ -156,7 +139,7 @@ export type GetConfigurationsResponseBody2 = {
156
139
  /**
157
140
  * Source defines where the configuration was installed from. It is used to analyze user engagement for integration installations in product metrics.
158
141
  */
159
- source?: GetConfigurationsResponseBodyIntegrationsSource | undefined;
142
+ source?: string | undefined;
160
143
  /**
161
144
  * The slug of the integration the configuration is created for.
162
145
  */
@@ -199,23 +182,6 @@ export type GetConfigurationsResponseBody2 = {
199
182
  installationType?: GetConfigurationsResponseBodyInstallationType | undefined;
200
183
  };
201
184
 
202
- /**
203
- * Source defines where the configuration was installed from. It is used to analyze user engagement for integration installations in product metrics.
204
- */
205
- export const GetConfigurationsResponseBodySource = {
206
- Marketplace: "marketplace",
207
- DeployButton: "deploy-button",
208
- External: "external",
209
- V0: "v0",
210
- ResourceClaims: "resource-claims",
211
- } as const;
212
- /**
213
- * Source defines where the configuration was installed from. It is used to analyze user engagement for integration installations in product metrics.
214
- */
215
- export type GetConfigurationsResponseBodySource = ClosedEnum<
216
- typeof GetConfigurationsResponseBodySource
217
- >;
218
-
219
185
  export const GetConfigurationsResponseBodyType = {
220
186
  IntegrationConfiguration: "integration-configuration",
221
187
  } as const;
@@ -280,7 +246,7 @@ export type GetConfigurationsResponseBody1 = {
280
246
  /**
281
247
  * Source defines where the configuration was installed from. It is used to analyze user engagement for integration installations in product metrics.
282
248
  */
283
- source?: GetConfigurationsResponseBodySource | undefined;
249
+ source?: string | undefined;
284
250
  /**
285
251
  * The slug of the integration the configuration is created for.
286
252
  */
@@ -457,15 +423,6 @@ export function responseBodyIntegrationFromJSON(
457
423
  );
458
424
  }
459
425
 
460
- /** @internal */
461
- export const GetConfigurationsResponseBodyIntegrationsSource$inboundSchema:
462
- z.ZodNativeEnum<typeof GetConfigurationsResponseBodyIntegrationsSource> = z
463
- .nativeEnum(GetConfigurationsResponseBodyIntegrationsSource);
464
- /** @internal */
465
- export const GetConfigurationsResponseBodyIntegrationsSource$outboundSchema:
466
- z.ZodNativeEnum<typeof GetConfigurationsResponseBodyIntegrationsSource> =
467
- GetConfigurationsResponseBodyIntegrationsSource$inboundSchema;
468
-
469
426
  /** @internal */
470
427
  export const GetConfigurationsResponseBodyIntegrationsType$inboundSchema:
471
428
  z.ZodNativeEnum<typeof GetConfigurationsResponseBodyIntegrationsType> = z
@@ -508,8 +465,7 @@ export const GetConfigurationsResponseBody2$inboundSchema: z.ZodType<
508
465
  integrationId: z.string(),
509
466
  ownerId: z.string(),
510
467
  projects: z.array(z.string()).optional(),
511
- source: GetConfigurationsResponseBodyIntegrationsSource$inboundSchema
512
- .optional(),
468
+ source: z.string().optional(),
513
469
  slug: z.string(),
514
470
  teamId: z.nullable(z.string()).optional(),
515
471
  type: GetConfigurationsResponseBodyIntegrationsType$inboundSchema,
@@ -561,8 +517,7 @@ export const GetConfigurationsResponseBody2$outboundSchema: z.ZodType<
561
517
  integrationId: z.string(),
562
518
  ownerId: z.string(),
563
519
  projects: z.array(z.string()).optional(),
564
- source: GetConfigurationsResponseBodyIntegrationsSource$outboundSchema
565
- .optional(),
520
+ source: z.string().optional(),
566
521
  slug: z.string(),
567
522
  teamId: z.nullable(z.string()).optional(),
568
523
  type: GetConfigurationsResponseBodyIntegrationsType$outboundSchema,
@@ -598,15 +553,6 @@ export function getConfigurationsResponseBody2FromJSON(
598
553
  );
599
554
  }
600
555
 
601
- /** @internal */
602
- export const GetConfigurationsResponseBodySource$inboundSchema: z.ZodNativeEnum<
603
- typeof GetConfigurationsResponseBodySource
604
- > = z.nativeEnum(GetConfigurationsResponseBodySource);
605
- /** @internal */
606
- export const GetConfigurationsResponseBodySource$outboundSchema:
607
- z.ZodNativeEnum<typeof GetConfigurationsResponseBodySource> =
608
- GetConfigurationsResponseBodySource$inboundSchema;
609
-
610
556
  /** @internal */
611
557
  export const GetConfigurationsResponseBodyType$inboundSchema: z.ZodNativeEnum<
612
558
  typeof GetConfigurationsResponseBodyType
@@ -646,7 +592,7 @@ export const GetConfigurationsResponseBody1$inboundSchema: z.ZodType<
646
592
  integrationId: z.string().optional(),
647
593
  ownerId: z.string().optional(),
648
594
  projects: z.array(z.string()).optional(),
649
- source: GetConfigurationsResponseBodySource$inboundSchema.optional(),
595
+ source: z.string().optional(),
650
596
  slug: z.string().optional(),
651
597
  teamId: z.nullable(z.string()).optional(),
652
598
  type: GetConfigurationsResponseBodyType$inboundSchema.optional(),
@@ -694,7 +640,7 @@ export const GetConfigurationsResponseBody1$outboundSchema: z.ZodType<
694
640
  integrationId: z.string().optional(),
695
641
  ownerId: z.string().optional(),
696
642
  projects: z.array(z.string()).optional(),
697
- source: GetConfigurationsResponseBodySource$outboundSchema.optional(),
643
+ source: z.string().optional(),
698
644
  slug: z.string().optional(),
699
645
  teamId: z.nullable(z.string()).optional(),
700
646
  type: GetConfigurationsResponseBodyType$outboundSchema.optional(),
@@ -871,6 +871,21 @@ export type ResponseBodyBuilds = {
871
871
  config?: { [k: string]: any } | undefined;
872
872
  };
873
873
 
874
+ export const GetDeploymentResponseBodyDeploymentsNodeVersion = {
875
+ TwentyFourDotX: "24.x",
876
+ TwentyTwoDotX: "22.x",
877
+ TwentyDotX: "20.x",
878
+ EighteenDotX: "18.x",
879
+ SixteenDotX: "16.x",
880
+ FourteenDotX: "14.x",
881
+ TwelveDotX: "12.x",
882
+ TenDotX: "10.x",
883
+ EightDot10DotX: "8.10.x",
884
+ } as const;
885
+ export type GetDeploymentResponseBodyDeploymentsNodeVersion = ClosedEnum<
886
+ typeof GetDeploymentResponseBodyDeploymentsNodeVersion
887
+ >;
888
+
874
889
  export const ResponseBodyFramework = {
875
890
  Blitzjs: "blitzjs",
876
891
  Nextjs: "nextjs",
@@ -950,6 +965,7 @@ export type ResponseBodyWebAnalytics = {
950
965
  };
951
966
 
952
967
  export type ResponseBodyProjectSettings = {
968
+ nodeVersion?: GetDeploymentResponseBodyDeploymentsNodeVersion | undefined;
953
969
  buildCommand?: string | null | undefined;
954
970
  devCommand?: string | null | undefined;
955
971
  framework?: ResponseBodyFramework | null | undefined;
@@ -5092,6 +5108,15 @@ export function responseBodyBuildsFromJSON(
5092
5108
  );
5093
5109
  }
5094
5110
 
5111
+ /** @internal */
5112
+ export const GetDeploymentResponseBodyDeploymentsNodeVersion$inboundSchema:
5113
+ z.ZodNativeEnum<typeof GetDeploymentResponseBodyDeploymentsNodeVersion> = z
5114
+ .nativeEnum(GetDeploymentResponseBodyDeploymentsNodeVersion);
5115
+ /** @internal */
5116
+ export const GetDeploymentResponseBodyDeploymentsNodeVersion$outboundSchema:
5117
+ z.ZodNativeEnum<typeof GetDeploymentResponseBodyDeploymentsNodeVersion> =
5118
+ GetDeploymentResponseBodyDeploymentsNodeVersion$inboundSchema;
5119
+
5095
5120
  /** @internal */
5096
5121
  export const ResponseBodyFramework$inboundSchema: z.ZodNativeEnum<
5097
5122
  typeof ResponseBodyFramework
@@ -5212,6 +5237,8 @@ export const ResponseBodyProjectSettings$inboundSchema: z.ZodType<
5212
5237
  z.ZodTypeDef,
5213
5238
  unknown
5214
5239
  > = z.object({
5240
+ nodeVersion: GetDeploymentResponseBodyDeploymentsNodeVersion$inboundSchema
5241
+ .optional(),
5215
5242
  buildCommand: z.nullable(z.string()).optional(),
5216
5243
  devCommand: z.nullable(z.string()).optional(),
5217
5244
  framework: z.nullable(ResponseBodyFramework$inboundSchema).optional(),
@@ -5224,6 +5251,7 @@ export const ResponseBodyProjectSettings$inboundSchema: z.ZodType<
5224
5251
  });
5225
5252
  /** @internal */
5226
5253
  export type ResponseBodyProjectSettings$Outbound = {
5254
+ nodeVersion?: string | undefined;
5227
5255
  buildCommand?: string | null | undefined;
5228
5256
  devCommand?: string | null | undefined;
5229
5257
  framework?: string | null | undefined;
@@ -5240,6 +5268,8 @@ export const ResponseBodyProjectSettings$outboundSchema: z.ZodType<
5240
5268
  z.ZodTypeDef,
5241
5269
  ResponseBodyProjectSettings
5242
5270
  > = z.object({
5271
+ nodeVersion: GetDeploymentResponseBodyDeploymentsNodeVersion$outboundSchema
5272
+ .optional(),
5243
5273
  buildCommand: z.nullable(z.string()).optional(),
5244
5274
  devCommand: z.nullable(z.string()).optional(),
5245
5275
  framework: z.nullable(ResponseBodyFramework$outboundSchema).optional(),
@@ -33,6 +33,9 @@ import {
33
33
 
34
34
  export type GetDomainPriceRequest = {
35
35
  domain: string;
36
+ /**
37
+ * The number of years to get the price for. If not provided, the minimum number of years for the TLD will be used.
38
+ */
36
39
  years?: string | undefined;
37
40
  teamId?: string | undefined;
38
41
  };
@@ -46,23 +49,20 @@ export type GetDomainPriceDomainsRegistrarResponseBody =
46
49
  | TldNotSupported
47
50
  | HttpApiDecodeError;
48
51
 
52
+ export type GetDomainPricePurchasePrice = number | string;
53
+
54
+ export type GetDomainPriceRenewalPrice = number | string;
55
+
56
+ export type GetDomainPriceTransferPrice = number | string;
57
+
49
58
  /**
50
59
  * Success
51
60
  */
52
61
  export type GetDomainPriceResponseBody = {
53
62
  years: number;
54
- /**
55
- * The price for purchasing this domain for the given number of years. If null, the domain is not available for purchase for the given number of years.
56
- */
57
- purchasePrice: number | null;
58
- /**
59
- * The price for renewing this domain for the given number of years. If null, the domain cannot be renewed for the given number of years.
60
- */
61
- renewalPrice: number | null;
62
- /**
63
- * The price for transferring this domain in for the given number of years. If null, the domain cannot be transferred in for the given number of years.
64
- */
65
- transferPrice: number | null;
63
+ purchasePrice: number | string;
64
+ renewalPrice: number | string;
65
+ transferPrice: number | string;
66
66
  };
67
67
 
68
68
  /** @internal */
@@ -165,6 +165,109 @@ export function getDomainPriceDomainsRegistrarResponseBodyFromJSON(
165
165
  );
166
166
  }
167
167
 
168
+ /** @internal */
169
+ export const GetDomainPricePurchasePrice$inboundSchema: z.ZodType<
170
+ GetDomainPricePurchasePrice,
171
+ z.ZodTypeDef,
172
+ unknown
173
+ > = z.union([z.number(), z.string()]);
174
+ /** @internal */
175
+ export type GetDomainPricePurchasePrice$Outbound = number | string;
176
+
177
+ /** @internal */
178
+ export const GetDomainPricePurchasePrice$outboundSchema: z.ZodType<
179
+ GetDomainPricePurchasePrice$Outbound,
180
+ z.ZodTypeDef,
181
+ GetDomainPricePurchasePrice
182
+ > = z.union([z.number(), z.string()]);
183
+
184
+ export function getDomainPricePurchasePriceToJSON(
185
+ getDomainPricePurchasePrice: GetDomainPricePurchasePrice,
186
+ ): string {
187
+ return JSON.stringify(
188
+ GetDomainPricePurchasePrice$outboundSchema.parse(
189
+ getDomainPricePurchasePrice,
190
+ ),
191
+ );
192
+ }
193
+ export function getDomainPricePurchasePriceFromJSON(
194
+ jsonString: string,
195
+ ): SafeParseResult<GetDomainPricePurchasePrice, SDKValidationError> {
196
+ return safeParse(
197
+ jsonString,
198
+ (x) => GetDomainPricePurchasePrice$inboundSchema.parse(JSON.parse(x)),
199
+ `Failed to parse 'GetDomainPricePurchasePrice' from JSON`,
200
+ );
201
+ }
202
+
203
+ /** @internal */
204
+ export const GetDomainPriceRenewalPrice$inboundSchema: z.ZodType<
205
+ GetDomainPriceRenewalPrice,
206
+ z.ZodTypeDef,
207
+ unknown
208
+ > = z.union([z.number(), z.string()]);
209
+ /** @internal */
210
+ export type GetDomainPriceRenewalPrice$Outbound = number | string;
211
+
212
+ /** @internal */
213
+ export const GetDomainPriceRenewalPrice$outboundSchema: z.ZodType<
214
+ GetDomainPriceRenewalPrice$Outbound,
215
+ z.ZodTypeDef,
216
+ GetDomainPriceRenewalPrice
217
+ > = z.union([z.number(), z.string()]);
218
+
219
+ export function getDomainPriceRenewalPriceToJSON(
220
+ getDomainPriceRenewalPrice: GetDomainPriceRenewalPrice,
221
+ ): string {
222
+ return JSON.stringify(
223
+ GetDomainPriceRenewalPrice$outboundSchema.parse(getDomainPriceRenewalPrice),
224
+ );
225
+ }
226
+ export function getDomainPriceRenewalPriceFromJSON(
227
+ jsonString: string,
228
+ ): SafeParseResult<GetDomainPriceRenewalPrice, SDKValidationError> {
229
+ return safeParse(
230
+ jsonString,
231
+ (x) => GetDomainPriceRenewalPrice$inboundSchema.parse(JSON.parse(x)),
232
+ `Failed to parse 'GetDomainPriceRenewalPrice' from JSON`,
233
+ );
234
+ }
235
+
236
+ /** @internal */
237
+ export const GetDomainPriceTransferPrice$inboundSchema: z.ZodType<
238
+ GetDomainPriceTransferPrice,
239
+ z.ZodTypeDef,
240
+ unknown
241
+ > = z.union([z.number(), z.string()]);
242
+ /** @internal */
243
+ export type GetDomainPriceTransferPrice$Outbound = number | string;
244
+
245
+ /** @internal */
246
+ export const GetDomainPriceTransferPrice$outboundSchema: z.ZodType<
247
+ GetDomainPriceTransferPrice$Outbound,
248
+ z.ZodTypeDef,
249
+ GetDomainPriceTransferPrice
250
+ > = z.union([z.number(), z.string()]);
251
+
252
+ export function getDomainPriceTransferPriceToJSON(
253
+ getDomainPriceTransferPrice: GetDomainPriceTransferPrice,
254
+ ): string {
255
+ return JSON.stringify(
256
+ GetDomainPriceTransferPrice$outboundSchema.parse(
257
+ getDomainPriceTransferPrice,
258
+ ),
259
+ );
260
+ }
261
+ export function getDomainPriceTransferPriceFromJSON(
262
+ jsonString: string,
263
+ ): SafeParseResult<GetDomainPriceTransferPrice, SDKValidationError> {
264
+ return safeParse(
265
+ jsonString,
266
+ (x) => GetDomainPriceTransferPrice$inboundSchema.parse(JSON.parse(x)),
267
+ `Failed to parse 'GetDomainPriceTransferPrice' from JSON`,
268
+ );
269
+ }
270
+
168
271
  /** @internal */
169
272
  export const GetDomainPriceResponseBody$inboundSchema: z.ZodType<
170
273
  GetDomainPriceResponseBody,
@@ -172,16 +275,16 @@ export const GetDomainPriceResponseBody$inboundSchema: z.ZodType<
172
275
  unknown
173
276
  > = z.object({
174
277
  years: z.number(),
175
- purchasePrice: z.nullable(z.number()),
176
- renewalPrice: z.nullable(z.number()),
177
- transferPrice: z.nullable(z.number()),
278
+ purchasePrice: z.union([z.number(), z.string()]),
279
+ renewalPrice: z.union([z.number(), z.string()]),
280
+ transferPrice: z.union([z.number(), z.string()]),
178
281
  });
179
282
  /** @internal */
180
283
  export type GetDomainPriceResponseBody$Outbound = {
181
284
  years: number;
182
- purchasePrice: number | null;
183
- renewalPrice: number | null;
184
- transferPrice: number | null;
285
+ purchasePrice: number | string;
286
+ renewalPrice: number | string;
287
+ transferPrice: number | string;
185
288
  };
186
289
 
187
290
  /** @internal */
@@ -191,9 +294,9 @@ export const GetDomainPriceResponseBody$outboundSchema: z.ZodType<
191
294
  GetDomainPriceResponseBody
192
295
  > = z.object({
193
296
  years: z.number(),
194
- purchasePrice: z.nullable(z.number()),
195
- renewalPrice: z.nullable(z.number()),
196
- transferPrice: z.nullable(z.number()),
297
+ purchasePrice: z.union([z.number(), z.string()]),
298
+ renewalPrice: z.union([z.number(), z.string()]),
299
+ transferPrice: z.union([z.number(), z.string()]),
197
300
  });
198
301
 
199
302
  export function getDomainPriceResponseBodyToJSON(
@@ -275,13 +275,12 @@ export type GetDrainResponseBody2 = {
275
275
  createdAt: number;
276
276
  updatedAt: number;
277
277
  projectIds?: Array<string> | undefined;
278
- schemas?: GetDrainResponseBodyDrainsSchemas | undefined;
279
- delivery?:
278
+ schemas: GetDrainResponseBodyDrainsSchemas;
279
+ delivery:
280
280
  | GetDrainDeliveryDrains1
281
281
  | GetDrainDeliveryDrains2
282
282
  | GetDrainDeliveryDrains3
283
- | GetDrainDeliveryDrains4
284
- | undefined;
283
+ | GetDrainDeliveryDrains4;
285
284
  sampling?: Array<GetDrainResponseBodyDrainsSampling> | undefined;
286
285
  teamId?: string | null | undefined;
287
286
  status?: GetDrainResponseBodyDrainsStatus | undefined;
@@ -525,13 +524,12 @@ export type GetDrainResponseBody1 = {
525
524
  createdAt: number;
526
525
  updatedAt: number;
527
526
  projectIds?: Array<string> | undefined;
528
- schemas?: GetDrainResponseBodySchemas | undefined;
529
- delivery?:
527
+ schemas: GetDrainResponseBodySchemas;
528
+ delivery:
530
529
  | GetDrainDelivery1
531
530
  | GetDrainDelivery2
532
531
  | GetDrainDelivery3
533
- | GetDrainDelivery4
534
- | undefined;
532
+ | GetDrainDelivery4;
535
533
  sampling?: Array<GetDrainResponseBodySampling> | undefined;
536
534
  teamId?: string | null | undefined;
537
535
  status?: GetDrainResponseBodyStatus | undefined;
@@ -2102,14 +2100,13 @@ export const GetDrainResponseBody2$inboundSchema: z.ZodType<
2102
2100
  createdAt: z.number(),
2103
2101
  updatedAt: z.number(),
2104
2102
  projectIds: z.array(z.string()).optional(),
2105
- schemas: z.lazy(() => GetDrainResponseBodyDrainsSchemas$inboundSchema)
2106
- .optional(),
2103
+ schemas: z.lazy(() => GetDrainResponseBodyDrainsSchemas$inboundSchema),
2107
2104
  delivery: z.union([
2108
2105
  z.lazy(() => GetDrainDeliveryDrains1$inboundSchema),
2109
2106
  z.lazy(() => GetDrainDeliveryDrains2$inboundSchema),
2110
2107
  z.lazy(() => GetDrainDeliveryDrains3$inboundSchema),
2111
2108
  z.lazy(() => GetDrainDeliveryDrains4$inboundSchema),
2112
- ]).optional(),
2109
+ ]),
2113
2110
  sampling: z.array(
2114
2111
  z.lazy(() => GetDrainResponseBodyDrainsSampling$inboundSchema),
2115
2112
  ).optional(),
@@ -2145,13 +2142,12 @@ export type GetDrainResponseBody2$Outbound = {
2145
2142
  createdAt: number;
2146
2143
  updatedAt: number;
2147
2144
  projectIds?: Array<string> | undefined;
2148
- schemas?: GetDrainResponseBodyDrainsSchemas$Outbound | undefined;
2149
- delivery?:
2145
+ schemas: GetDrainResponseBodyDrainsSchemas$Outbound;
2146
+ delivery:
2150
2147
  | GetDrainDeliveryDrains1$Outbound
2151
2148
  | GetDrainDeliveryDrains2$Outbound
2152
2149
  | GetDrainDeliveryDrains3$Outbound
2153
- | GetDrainDeliveryDrains4$Outbound
2154
- | undefined;
2150
+ | GetDrainDeliveryDrains4$Outbound;
2155
2151
  sampling?: Array<GetDrainResponseBodyDrainsSampling$Outbound> | undefined;
2156
2152
  teamId?: string | null | undefined;
2157
2153
  status?: string | undefined;
@@ -2186,14 +2182,13 @@ export const GetDrainResponseBody2$outboundSchema: z.ZodType<
2186
2182
  createdAt: z.number(),
2187
2183
  updatedAt: z.number(),
2188
2184
  projectIds: z.array(z.string()).optional(),
2189
- schemas: z.lazy(() => GetDrainResponseBodyDrainsSchemas$outboundSchema)
2190
- .optional(),
2185
+ schemas: z.lazy(() => GetDrainResponseBodyDrainsSchemas$outboundSchema),
2191
2186
  delivery: z.union([
2192
2187
  z.lazy(() => GetDrainDeliveryDrains1$outboundSchema),
2193
2188
  z.lazy(() => GetDrainDeliveryDrains2$outboundSchema),
2194
2189
  z.lazy(() => GetDrainDeliveryDrains3$outboundSchema),
2195
2190
  z.lazy(() => GetDrainDeliveryDrains4$outboundSchema),
2196
- ]).optional(),
2191
+ ]),
2197
2192
  sampling: z.array(
2198
2193
  z.lazy(() => GetDrainResponseBodyDrainsSampling$outboundSchema),
2199
2194
  ).optional(),
@@ -3553,13 +3548,13 @@ export const GetDrainResponseBody1$inboundSchema: z.ZodType<
3553
3548
  createdAt: z.number(),
3554
3549
  updatedAt: z.number(),
3555
3550
  projectIds: z.array(z.string()).optional(),
3556
- schemas: z.lazy(() => GetDrainResponseBodySchemas$inboundSchema).optional(),
3551
+ schemas: z.lazy(() => GetDrainResponseBodySchemas$inboundSchema),
3557
3552
  delivery: z.union([
3558
3553
  z.lazy(() => GetDrainDelivery1$inboundSchema),
3559
3554
  z.lazy(() => GetDrainDelivery2$inboundSchema),
3560
3555
  z.lazy(() => GetDrainDelivery3$inboundSchema),
3561
3556
  z.lazy(() => GetDrainDelivery4$inboundSchema),
3562
- ]).optional(),
3557
+ ]),
3563
3558
  sampling: z.array(z.lazy(() => GetDrainResponseBodySampling$inboundSchema))
3564
3559
  .optional(),
3565
3560
  teamId: z.nullable(z.string()).optional(),
@@ -3586,13 +3581,12 @@ export type GetDrainResponseBody1$Outbound = {
3586
3581
  createdAt: number;
3587
3582
  updatedAt: number;
3588
3583
  projectIds?: Array<string> | undefined;
3589
- schemas?: GetDrainResponseBodySchemas$Outbound | undefined;
3590
- delivery?:
3584
+ schemas: GetDrainResponseBodySchemas$Outbound;
3585
+ delivery:
3591
3586
  | GetDrainDelivery1$Outbound
3592
3587
  | GetDrainDelivery2$Outbound
3593
3588
  | GetDrainDelivery3$Outbound
3594
- | GetDrainDelivery4$Outbound
3595
- | undefined;
3589
+ | GetDrainDelivery4$Outbound;
3596
3590
  sampling?: Array<GetDrainResponseBodySampling$Outbound> | undefined;
3597
3591
  teamId?: string | null | undefined;
3598
3592
  status?: string | undefined;
@@ -3620,13 +3614,13 @@ export const GetDrainResponseBody1$outboundSchema: z.ZodType<
3620
3614
  createdAt: z.number(),
3621
3615
  updatedAt: z.number(),
3622
3616
  projectIds: z.array(z.string()).optional(),
3623
- schemas: z.lazy(() => GetDrainResponseBodySchemas$outboundSchema).optional(),
3617
+ schemas: z.lazy(() => GetDrainResponseBodySchemas$outboundSchema),
3624
3618
  delivery: z.union([
3625
3619
  z.lazy(() => GetDrainDelivery1$outboundSchema),
3626
3620
  z.lazy(() => GetDrainDelivery2$outboundSchema),
3627
3621
  z.lazy(() => GetDrainDelivery3$outboundSchema),
3628
3622
  z.lazy(() => GetDrainDelivery4$outboundSchema),
3629
- ]).optional(),
3623
+ ]),
3630
3624
  sampling: z.array(z.lazy(() => GetDrainResponseBodySampling$outboundSchema))
3631
3625
  .optional(),
3632
3626
  teamId: z.nullable(z.string()).optional(),
@@ -270,13 +270,12 @@ export type Drains2 = {
270
270
  createdAt: number;
271
271
  updatedAt: number;
272
272
  projectIds?: Array<string> | undefined;
273
- schemas?: GetDrainsDrainsSchemas | undefined;
274
- delivery?:
273
+ schemas: GetDrainsDrainsSchemas;
274
+ delivery:
275
275
  | GetDrainsDeliveryDrains1
276
276
  | GetDrainsDeliveryDrains2
277
277
  | GetDrainsDeliveryDrains3
278
- | GetDrainsDeliveryDrains4
279
- | undefined;
278
+ | GetDrainsDeliveryDrains4;
280
279
  sampling?: Array<GetDrainsDrainsSampling> | undefined;
281
280
  teamId?: string | null | undefined;
282
281
  status?: GetDrainsDrainsStatus | undefined;
@@ -512,13 +511,12 @@ export type Drains1 = {
512
511
  createdAt: number;
513
512
  updatedAt: number;
514
513
  projectIds?: Array<string> | undefined;
515
- schemas?: DrainsSchemas | undefined;
516
- delivery?:
514
+ schemas: DrainsSchemas;
515
+ delivery:
517
516
  | GetDrainsDelivery1
518
517
  | GetDrainsDelivery2
519
518
  | GetDrainsDelivery3
520
- | GetDrainsDelivery4
521
- | undefined;
519
+ | GetDrainsDelivery4;
522
520
  sampling?: Array<DrainsSampling> | undefined;
523
521
  teamId?: string | null | undefined;
524
522
  status?: DrainsStatus | undefined;
@@ -2061,13 +2059,13 @@ export const Drains2$inboundSchema: z.ZodType<Drains2, z.ZodTypeDef, unknown> =
2061
2059
  createdAt: z.number(),
2062
2060
  updatedAt: z.number(),
2063
2061
  projectIds: z.array(z.string()).optional(),
2064
- schemas: z.lazy(() => GetDrainsDrainsSchemas$inboundSchema).optional(),
2062
+ schemas: z.lazy(() => GetDrainsDrainsSchemas$inboundSchema),
2065
2063
  delivery: z.union([
2066
2064
  z.lazy(() => GetDrainsDeliveryDrains1$inboundSchema),
2067
2065
  z.lazy(() => GetDrainsDeliveryDrains2$inboundSchema),
2068
2066
  z.lazy(() => GetDrainsDeliveryDrains3$inboundSchema),
2069
2067
  z.lazy(() => GetDrainsDeliveryDrains4$inboundSchema),
2070
- ]).optional(),
2068
+ ]),
2071
2069
  sampling: z.array(z.lazy(() => GetDrainsDrainsSampling$inboundSchema))
2072
2070
  .optional(),
2073
2071
  teamId: z.nullable(z.string()).optional(),
@@ -2101,13 +2099,12 @@ export type Drains2$Outbound = {
2101
2099
  createdAt: number;
2102
2100
  updatedAt: number;
2103
2101
  projectIds?: Array<string> | undefined;
2104
- schemas?: GetDrainsDrainsSchemas$Outbound | undefined;
2105
- delivery?:
2102
+ schemas: GetDrainsDrainsSchemas$Outbound;
2103
+ delivery:
2106
2104
  | GetDrainsDeliveryDrains1$Outbound
2107
2105
  | GetDrainsDeliveryDrains2$Outbound
2108
2106
  | GetDrainsDeliveryDrains3$Outbound
2109
- | GetDrainsDeliveryDrains4$Outbound
2110
- | undefined;
2107
+ | GetDrainsDeliveryDrains4$Outbound;
2111
2108
  sampling?: Array<GetDrainsDrainsSampling$Outbound> | undefined;
2112
2109
  teamId?: string | null | undefined;
2113
2110
  status?: string | undefined;
@@ -2142,13 +2139,13 @@ export const Drains2$outboundSchema: z.ZodType<
2142
2139
  createdAt: z.number(),
2143
2140
  updatedAt: z.number(),
2144
2141
  projectIds: z.array(z.string()).optional(),
2145
- schemas: z.lazy(() => GetDrainsDrainsSchemas$outboundSchema).optional(),
2142
+ schemas: z.lazy(() => GetDrainsDrainsSchemas$outboundSchema),
2146
2143
  delivery: z.union([
2147
2144
  z.lazy(() => GetDrainsDeliveryDrains1$outboundSchema),
2148
2145
  z.lazy(() => GetDrainsDeliveryDrains2$outboundSchema),
2149
2146
  z.lazy(() => GetDrainsDeliveryDrains3$outboundSchema),
2150
2147
  z.lazy(() => GetDrainsDeliveryDrains4$outboundSchema),
2151
- ]).optional(),
2148
+ ]),
2152
2149
  sampling: z.array(z.lazy(() => GetDrainsDrainsSampling$outboundSchema))
2153
2150
  .optional(),
2154
2151
  teamId: z.nullable(z.string()).optional(),
@@ -3459,13 +3456,13 @@ export const Drains1$inboundSchema: z.ZodType<Drains1, z.ZodTypeDef, unknown> =
3459
3456
  createdAt: z.number(),
3460
3457
  updatedAt: z.number(),
3461
3458
  projectIds: z.array(z.string()).optional(),
3462
- schemas: z.lazy(() => DrainsSchemas$inboundSchema).optional(),
3459
+ schemas: z.lazy(() => DrainsSchemas$inboundSchema),
3463
3460
  delivery: z.union([
3464
3461
  z.lazy(() => GetDrainsDelivery1$inboundSchema),
3465
3462
  z.lazy(() => GetDrainsDelivery2$inboundSchema),
3466
3463
  z.lazy(() => GetDrainsDelivery3$inboundSchema),
3467
3464
  z.lazy(() => GetDrainsDelivery4$inboundSchema),
3468
- ]).optional(),
3465
+ ]),
3469
3466
  sampling: z.array(z.lazy(() => DrainsSampling$inboundSchema)).optional(),
3470
3467
  teamId: z.nullable(z.string()).optional(),
3471
3468
  status: DrainsStatus$inboundSchema.optional(),
@@ -3491,13 +3488,12 @@ export type Drains1$Outbound = {
3491
3488
  createdAt: number;
3492
3489
  updatedAt: number;
3493
3490
  projectIds?: Array<string> | undefined;
3494
- schemas?: DrainsSchemas$Outbound | undefined;
3495
- delivery?:
3491
+ schemas: DrainsSchemas$Outbound;
3492
+ delivery:
3496
3493
  | GetDrainsDelivery1$Outbound
3497
3494
  | GetDrainsDelivery2$Outbound
3498
3495
  | GetDrainsDelivery3$Outbound
3499
- | GetDrainsDelivery4$Outbound
3500
- | undefined;
3496
+ | GetDrainsDelivery4$Outbound;
3501
3497
  sampling?: Array<DrainsSampling$Outbound> | undefined;
3502
3498
  teamId?: string | null | undefined;
3503
3499
  status?: string | undefined;
@@ -3525,13 +3521,13 @@ export const Drains1$outboundSchema: z.ZodType<
3525
3521
  createdAt: z.number(),
3526
3522
  updatedAt: z.number(),
3527
3523
  projectIds: z.array(z.string()).optional(),
3528
- schemas: z.lazy(() => DrainsSchemas$outboundSchema).optional(),
3524
+ schemas: z.lazy(() => DrainsSchemas$outboundSchema),
3529
3525
  delivery: z.union([
3530
3526
  z.lazy(() => GetDrainsDelivery1$outboundSchema),
3531
3527
  z.lazy(() => GetDrainsDelivery2$outboundSchema),
3532
3528
  z.lazy(() => GetDrainsDelivery3$outboundSchema),
3533
3529
  z.lazy(() => GetDrainsDelivery4$outboundSchema),
3534
- ]).optional(),
3530
+ ]),
3535
3531
  sampling: z.array(z.lazy(() => DrainsSampling$outboundSchema)).optional(),
3536
3532
  teamId: z.nullable(z.string()).optional(),
3537
3533
  status: DrainsStatus$outboundSchema.optional(),