@vercel/sdk 1.18.0 → 1.18.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +51 -53
- package/bin/mcp-server.js +1918 -1753
- package/bin/mcp-server.js.map +39 -42
- package/esm/__tests__/accessgroups.test.js +3 -1
- package/esm/__tests__/accessgroups.test.js.map +1 -1
- package/esm/__tests__/checks.test.js +1 -1
- package/esm/__tests__/checks.test.js.map +1 -1
- package/esm/__tests__/domains.test.js +9 -29
- package/esm/__tests__/domains.test.js.map +1 -1
- package/esm/__tests__/drains.test.js +27 -0
- package/esm/__tests__/drains.test.js.map +1 -1
- package/esm/__tests__/edgeconfig.test.js +6 -6
- package/esm/__tests__/edgeconfig.test.js.map +1 -1
- package/esm/__tests__/integrations.test.js +1 -1
- package/esm/__tests__/logdrains.test.js +7 -6
- package/esm/__tests__/logdrains.test.js.map +1 -1
- package/esm/__tests__/security.test.js +11 -1
- package/esm/__tests__/security.test.js.map +1 -1
- package/esm/funcs/integrationsGetBillingPlans.js +2 -0
- package/esm/funcs/integrationsGetBillingPlans.js.map +1 -1
- package/esm/lib/config.d.ts +3 -3
- package/esm/lib/config.js +3 -3
- package/esm/mcp-server/mcp-server.js +1 -1
- package/esm/mcp-server/server.d.ts.map +1 -1
- package/esm/mcp-server/server.js +1 -3
- package/esm/mcp-server/server.js.map +1 -1
- package/esm/models/authuser.d.ts +5 -0
- package/esm/models/authuser.d.ts.map +1 -1
- package/esm/models/authuser.js +2 -0
- package/esm/models/authuser.js.map +1 -1
- package/esm/models/buydomainsop.d.ts +4 -4
- package/esm/models/buydomainsop.d.ts.map +1 -1
- package/esm/models/buysingledomainop.d.ts +1 -4
- package/esm/models/buysingledomainop.d.ts.map +1 -1
- package/esm/models/buysingledomainop.js.map +1 -1
- package/esm/models/canceldeploymentop.d.ts +20 -2
- package/esm/models/canceldeploymentop.d.ts.map +1 -1
- package/esm/models/canceldeploymentop.js +19 -2
- package/esm/models/canceldeploymentop.js.map +1 -1
- package/esm/models/createdeploymentop.d.ts +20 -2
- package/esm/models/createdeploymentop.d.ts.map +1 -1
- package/esm/models/createdeploymentop.js +19 -2
- package/esm/models/createdeploymentop.js.map +1 -1
- package/esm/models/createdrainop.d.ts +8 -8
- package/esm/models/createdrainop.d.ts.map +1 -1
- package/esm/models/createdrainop.js +8 -10
- package/esm/models/createdrainop.js.map +1 -1
- package/esm/models/createintegrationstoredirectop.d.ts +220 -152
- package/esm/models/createintegrationstoredirectop.d.ts.map +1 -1
- package/esm/models/createintegrationstoredirectop.js +296 -218
- package/esm/models/createintegrationstoredirectop.js.map +1 -1
- package/esm/models/createprojectop.d.ts +28 -4
- package/esm/models/createprojectop.d.ts.map +1 -1
- package/esm/models/createprojectop.js +25 -4
- package/esm/models/createprojectop.js.map +1 -1
- package/esm/models/createwebhookop.d.ts +4 -0
- package/esm/models/createwebhookop.d.ts.map +1 -1
- package/esm/models/createwebhookop.js +4 -0
- package/esm/models/createwebhookop.js.map +1 -1
- package/esm/models/getalllogdrainsop.d.ts +8 -8
- package/esm/models/getalllogdrainsop.d.ts.map +1 -1
- package/esm/models/getalllogdrainsop.js +8 -10
- package/esm/models/getalllogdrainsop.js.map +1 -1
- package/esm/models/getbillingplansop.d.ts +4 -0
- package/esm/models/getbillingplansop.d.ts.map +1 -1
- package/esm/models/getbillingplansop.js +4 -0
- package/esm/models/getbillingplansop.js.map +1 -1
- package/esm/models/getbulkavailabilityop.d.ts +3 -0
- package/esm/models/getbulkavailabilityop.d.ts.map +1 -1
- package/esm/models/getbulkavailabilityop.js.map +1 -1
- package/esm/models/getconfigurationop.d.ts +55 -31
- package/esm/models/getconfigurationop.d.ts.map +1 -1
- package/esm/models/getconfigurationop.js +42 -30
- package/esm/models/getconfigurationop.js.map +1 -1
- package/esm/models/getconfigurationproductsop.d.ts +200 -200
- package/esm/models/getconfigurationproductsop.js +290 -290
- package/esm/models/getconfigurationsop.d.ts +48 -24
- package/esm/models/getconfigurationsop.d.ts.map +1 -1
- package/esm/models/getconfigurationsop.js +37 -25
- package/esm/models/getconfigurationsop.js.map +1 -1
- package/esm/models/getdeploymentop.d.ts +22 -4
- package/esm/models/getdeploymentop.d.ts.map +1 -1
- package/esm/models/getdeploymentop.js +24 -4
- package/esm/models/getdeploymentop.js.map +1 -1
- package/esm/models/getdomainpriceop.d.ts +36 -15
- package/esm/models/getdomainpriceop.d.ts.map +1 -1
- package/esm/models/getdomainpriceop.js +36 -6
- package/esm/models/getdomainpriceop.js.map +1 -1
- package/esm/models/getdrainop.d.ts +8 -8
- package/esm/models/getdrainop.d.ts.map +1 -1
- package/esm/models/getdrainop.js +8 -10
- package/esm/models/getdrainop.js.map +1 -1
- package/esm/models/getdrainsop.d.ts +8 -8
- package/esm/models/getdrainsop.d.ts.map +1 -1
- package/esm/models/getdrainsop.js +8 -8
- package/esm/models/getdrainsop.js.map +1 -1
- package/esm/models/getinvoiceop.d.ts +10 -0
- package/esm/models/getinvoiceop.d.ts.map +1 -1
- package/esm/models/getinvoiceop.js +4 -0
- package/esm/models/getinvoiceop.js.map +1 -1
- package/esm/models/getorderop.d.ts +135 -51
- package/esm/models/getorderop.d.ts.map +1 -1
- package/esm/models/getorderop.js +138 -24
- package/esm/models/getorderop.js.map +1 -1
- package/esm/models/getprojectsop.d.ts +23 -4
- package/esm/models/getprojectsop.d.ts.map +1 -1
- package/esm/models/getprojectsop.js +23 -4
- package/esm/models/getprojectsop.js.map +1 -1
- package/esm/models/gettldpriceop.d.ts +36 -15
- package/esm/models/gettldpriceop.d.ts.map +1 -1
- package/esm/models/gettldpriceop.js +36 -6
- package/esm/models/gettldpriceop.js.map +1 -1
- package/esm/models/getwebhookop.d.ts +2 -0
- package/esm/models/getwebhookop.d.ts.map +1 -1
- package/esm/models/getwebhookop.js +2 -0
- package/esm/models/getwebhookop.js.map +1 -1
- package/esm/models/getwebhooksop.d.ts +4 -0
- package/esm/models/getwebhooksop.d.ts.map +1 -1
- package/esm/models/getwebhooksop.js +4 -0
- package/esm/models/getwebhooksop.js.map +1 -1
- package/esm/models/renewdomainop.d.ts +1 -4
- package/esm/models/renewdomainop.d.ts.map +1 -1
- package/esm/models/renewdomainop.js.map +1 -1
- package/esm/models/transferindomainop.d.ts +4 -4
- package/esm/models/transferindomainop.d.ts.map +1 -1
- package/esm/models/updatedrainop.d.ts +8 -8
- package/esm/models/updatedrainop.d.ts.map +1 -1
- package/esm/models/updatedrainop.js +8 -12
- package/esm/models/updatedrainop.js.map +1 -1
- package/esm/models/updateinstallationop.d.ts +18 -0
- package/esm/models/updateinstallationop.d.ts.map +1 -1
- package/esm/models/updateinstallationop.js +17 -0
- package/esm/models/updateinstallationop.js.map +1 -1
- package/esm/models/updateprojectdatacacheop.d.ts +23 -4
- package/esm/models/updateprojectdatacacheop.d.ts.map +1 -1
- package/esm/models/updateprojectdatacacheop.js +23 -4
- package/esm/models/updateprojectdatacacheop.js.map +1 -1
- package/esm/models/updateprojectop.d.ts +28 -4
- package/esm/models/updateprojectop.d.ts.map +1 -1
- package/esm/models/updateprojectop.js +25 -4
- package/esm/models/updateprojectop.js.map +1 -1
- package/esm/models/userevent.d.ts +90 -10
- package/esm/models/userevent.d.ts.map +1 -1
- package/esm/models/userevent.js +84 -10
- package/esm/models/userevent.js.map +1 -1
- package/esm/sdk/domains.d.ts +0 -8
- package/esm/sdk/domains.d.ts.map +1 -1
- package/esm/sdk/domains.js +0 -10
- package/esm/sdk/domains.js.map +1 -1
- package/examples/package-lock.json +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/__tests__/accessgroups.test.ts +3 -1
- package/src/__tests__/checks.test.ts +1 -1
- package/src/__tests__/domains.test.ts +11 -31
- package/src/__tests__/drains.test.ts +27 -0
- package/src/__tests__/edgeconfig.test.ts +6 -6
- package/src/__tests__/integrations.test.ts +1 -1
- package/src/__tests__/logdrains.test.ts +7 -6
- package/src/__tests__/security.test.ts +11 -1
- package/src/funcs/integrationsGetBillingPlans.ts +2 -0
- package/src/lib/config.ts +3 -3
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +1 -3
- package/src/models/authuser.ts +7 -0
- package/src/models/buydomainsop.ts +4 -4
- package/src/models/buysingledomainop.ts +1 -4
- package/src/models/canceldeploymentop.ts +33 -4
- package/src/models/createdeploymentop.ts +33 -4
- package/src/models/createdrainop.ts +19 -29
- package/src/models/createintegrationstoredirectop.ts +704 -471
- package/src/models/createprojectop.ts +57 -8
- package/src/models/createwebhookop.ts +4 -0
- package/src/models/getalllogdrainsop.ts +20 -26
- package/src/models/getbillingplansop.ts +8 -0
- package/src/models/getbulkavailabilityop.ts +3 -0
- package/src/models/getconfigurationop.ts +81 -49
- package/src/models/getconfigurationproductsop.ts +627 -627
- package/src/models/getconfigurationsop.ts +72 -40
- package/src/models/getdeploymentop.ts +38 -8
- package/src/models/getdomainpriceop.ts +124 -21
- package/src/models/getdrainop.ts +20 -26
- package/src/models/getdrainsop.ts +20 -24
- package/src/models/getinvoiceop.ts +14 -0
- package/src/models/getorderop.ts +478 -121
- package/src/models/getprojectsop.ts +50 -8
- package/src/models/gettldpriceop.ts +108 -21
- package/src/models/getwebhookop.ts +2 -0
- package/src/models/getwebhooksop.ts +4 -0
- package/src/models/renewdomainop.ts +1 -4
- package/src/models/transferindomainop.ts +4 -4
- package/src/models/updatedrainop.ts +20 -28
- package/src/models/updateinstallationop.ts +30 -0
- package/src/models/updateprojectdatacacheop.ts +50 -8
- package/src/models/updateprojectop.ts +57 -8
- package/src/models/userevent.ts +192 -22
- package/src/sdk/domains.ts +0 -22
- package/tsconfig.json +1 -1
- package/vercel-spec.json +704 -329
|
@@ -679,7 +679,7 @@ export type GetProjectsOidcTokenClaims = {
|
|
|
679
679
|
project: string;
|
|
680
680
|
projectId: string;
|
|
681
681
|
environment: string;
|
|
682
|
-
plan
|
|
682
|
+
plan?: string | undefined;
|
|
683
683
|
};
|
|
684
684
|
|
|
685
685
|
export const GetProjectsPlan = {
|
|
@@ -1119,8 +1119,22 @@ export type GetProjectsDeploymentType = ClosedEnum<
|
|
|
1119
1119
|
typeof GetProjectsDeploymentType
|
|
1120
1120
|
>;
|
|
1121
1121
|
|
|
1122
|
+
export const GetProjectsCve55182MigrationAppliedFrom = {
|
|
1123
|
+
Preview: "preview",
|
|
1124
|
+
All: "all",
|
|
1125
|
+
ProdDeploymentUrlsAndAllPreviews: "prod_deployment_urls_and_all_previews",
|
|
1126
|
+
AllExceptCustomDomains: "all_except_custom_domains",
|
|
1127
|
+
} as const;
|
|
1128
|
+
export type GetProjectsCve55182MigrationAppliedFrom = ClosedEnum<
|
|
1129
|
+
typeof GetProjectsCve55182MigrationAppliedFrom
|
|
1130
|
+
>;
|
|
1131
|
+
|
|
1122
1132
|
export type GetProjectsSsoProtection = {
|
|
1123
1133
|
deploymentType: GetProjectsDeploymentType;
|
|
1134
|
+
cve55182MigrationAppliedFrom?:
|
|
1135
|
+
| GetProjectsCve55182MigrationAppliedFrom
|
|
1136
|
+
| null
|
|
1137
|
+
| undefined;
|
|
1124
1138
|
};
|
|
1125
1139
|
|
|
1126
1140
|
export type GetProjectsProjectsAliasAssigned = number | boolean;
|
|
@@ -1201,7 +1215,7 @@ export type GetProjectsProjectsOidcTokenClaims = {
|
|
|
1201
1215
|
project: string;
|
|
1202
1216
|
projectId: string;
|
|
1203
1217
|
environment: string;
|
|
1204
|
-
plan
|
|
1218
|
+
plan?: string | undefined;
|
|
1205
1219
|
};
|
|
1206
1220
|
|
|
1207
1221
|
export const GetProjectsProjectsPlan = {
|
|
@@ -1292,6 +1306,7 @@ export type GetProjectsPermissions = {
|
|
|
1292
1306
|
accessGroup?: Array<ACLAction> | undefined;
|
|
1293
1307
|
agent?: Array<ACLAction> | undefined;
|
|
1294
1308
|
alerts?: Array<ACLAction> | undefined;
|
|
1309
|
+
alertRules?: Array<ACLAction> | undefined;
|
|
1295
1310
|
aliasGlobal?: Array<ACLAction> | undefined;
|
|
1296
1311
|
analyticsSampling?: Array<ACLAction> | undefined;
|
|
1297
1312
|
analyticsUsage?: Array<ACLAction> | undefined;
|
|
@@ -2029,6 +2044,7 @@ export type GetProjectsDismissedToasts = {
|
|
|
2029
2044
|
export type GetProjectsProjects = {
|
|
2030
2045
|
accountId: string;
|
|
2031
2046
|
analytics?: GetProjectsAnalytics | undefined;
|
|
2047
|
+
appliedCve55182Migration?: boolean | undefined;
|
|
2032
2048
|
speedInsights?: GetProjectsSpeedInsights | undefined;
|
|
2033
2049
|
autoExposeSystemEnvs?: boolean | undefined;
|
|
2034
2050
|
autoAssignCustomDomains?: boolean | undefined;
|
|
@@ -2094,6 +2110,7 @@ export type GetProjectsProjects = {
|
|
|
2094
2110
|
serverlessFunctionZeroConfigFailover?: boolean | undefined;
|
|
2095
2111
|
skewProtectionBoundaryAt?: number | undefined;
|
|
2096
2112
|
skewProtectionMaxAge?: number | undefined;
|
|
2113
|
+
skewProtectionAllowedDomains?: Array<string> | undefined;
|
|
2097
2114
|
skipGitConnectDuringLink?: boolean | undefined;
|
|
2098
2115
|
staticIps?: GetProjectsStaticIps | undefined;
|
|
2099
2116
|
sourceFilesOutsideRootDirectory?: boolean | undefined;
|
|
@@ -4292,7 +4309,7 @@ export const GetProjectsOidcTokenClaims$inboundSchema: z.ZodType<
|
|
|
4292
4309
|
project: z.string(),
|
|
4293
4310
|
project_id: z.string(),
|
|
4294
4311
|
environment: z.string(),
|
|
4295
|
-
plan: z.string(),
|
|
4312
|
+
plan: z.string().optional(),
|
|
4296
4313
|
}).transform((v) => {
|
|
4297
4314
|
return remap$(v, {
|
|
4298
4315
|
"owner_id": "ownerId",
|
|
@@ -4310,7 +4327,7 @@ export type GetProjectsOidcTokenClaims$Outbound = {
|
|
|
4310
4327
|
project: string;
|
|
4311
4328
|
project_id: string;
|
|
4312
4329
|
environment: string;
|
|
4313
|
-
plan
|
|
4330
|
+
plan?: string | undefined;
|
|
4314
4331
|
};
|
|
4315
4332
|
|
|
4316
4333
|
/** @internal */
|
|
@@ -4328,7 +4345,7 @@ export const GetProjectsOidcTokenClaims$outboundSchema: z.ZodType<
|
|
|
4328
4345
|
project: z.string(),
|
|
4329
4346
|
projectId: z.string(),
|
|
4330
4347
|
environment: z.string(),
|
|
4331
|
-
plan: z.string(),
|
|
4348
|
+
plan: z.string().optional(),
|
|
4332
4349
|
}).transform((v) => {
|
|
4333
4350
|
return remap$(v, {
|
|
4334
4351
|
ownerId: "owner_id",
|
|
@@ -5949,6 +5966,15 @@ export const GetProjectsDeploymentType$outboundSchema: z.ZodNativeEnum<
|
|
|
5949
5966
|
typeof GetProjectsDeploymentType
|
|
5950
5967
|
> = GetProjectsDeploymentType$inboundSchema;
|
|
5951
5968
|
|
|
5969
|
+
/** @internal */
|
|
5970
|
+
export const GetProjectsCve55182MigrationAppliedFrom$inboundSchema:
|
|
5971
|
+
z.ZodNativeEnum<typeof GetProjectsCve55182MigrationAppliedFrom> = z
|
|
5972
|
+
.nativeEnum(GetProjectsCve55182MigrationAppliedFrom);
|
|
5973
|
+
/** @internal */
|
|
5974
|
+
export const GetProjectsCve55182MigrationAppliedFrom$outboundSchema:
|
|
5975
|
+
z.ZodNativeEnum<typeof GetProjectsCve55182MigrationAppliedFrom> =
|
|
5976
|
+
GetProjectsCve55182MigrationAppliedFrom$inboundSchema;
|
|
5977
|
+
|
|
5952
5978
|
/** @internal */
|
|
5953
5979
|
export const GetProjectsSsoProtection$inboundSchema: z.ZodType<
|
|
5954
5980
|
GetProjectsSsoProtection,
|
|
@@ -5956,10 +5982,14 @@ export const GetProjectsSsoProtection$inboundSchema: z.ZodType<
|
|
|
5956
5982
|
unknown
|
|
5957
5983
|
> = z.object({
|
|
5958
5984
|
deploymentType: GetProjectsDeploymentType$inboundSchema,
|
|
5985
|
+
cve55182MigrationAppliedFrom: z.nullable(
|
|
5986
|
+
GetProjectsCve55182MigrationAppliedFrom$inboundSchema,
|
|
5987
|
+
).optional(),
|
|
5959
5988
|
});
|
|
5960
5989
|
/** @internal */
|
|
5961
5990
|
export type GetProjectsSsoProtection$Outbound = {
|
|
5962
5991
|
deploymentType: string;
|
|
5992
|
+
cve55182MigrationAppliedFrom?: string | null | undefined;
|
|
5963
5993
|
};
|
|
5964
5994
|
|
|
5965
5995
|
/** @internal */
|
|
@@ -5969,6 +5999,9 @@ export const GetProjectsSsoProtection$outboundSchema: z.ZodType<
|
|
|
5969
5999
|
GetProjectsSsoProtection
|
|
5970
6000
|
> = z.object({
|
|
5971
6001
|
deploymentType: GetProjectsDeploymentType$outboundSchema,
|
|
6002
|
+
cve55182MigrationAppliedFrom: z.nullable(
|
|
6003
|
+
GetProjectsCve55182MigrationAppliedFrom$outboundSchema,
|
|
6004
|
+
).optional(),
|
|
5972
6005
|
});
|
|
5973
6006
|
|
|
5974
6007
|
export function getProjectsSsoProtectionToJSON(
|
|
@@ -6263,7 +6296,7 @@ export const GetProjectsProjectsOidcTokenClaims$inboundSchema: z.ZodType<
|
|
|
6263
6296
|
project: z.string(),
|
|
6264
6297
|
project_id: z.string(),
|
|
6265
6298
|
environment: z.string(),
|
|
6266
|
-
plan: z.string(),
|
|
6299
|
+
plan: z.string().optional(),
|
|
6267
6300
|
}).transform((v) => {
|
|
6268
6301
|
return remap$(v, {
|
|
6269
6302
|
"owner_id": "ownerId",
|
|
@@ -6281,7 +6314,7 @@ export type GetProjectsProjectsOidcTokenClaims$Outbound = {
|
|
|
6281
6314
|
project: string;
|
|
6282
6315
|
project_id: string;
|
|
6283
6316
|
environment: string;
|
|
6284
|
-
plan
|
|
6317
|
+
plan?: string | undefined;
|
|
6285
6318
|
};
|
|
6286
6319
|
|
|
6287
6320
|
/** @internal */
|
|
@@ -6299,7 +6332,7 @@ export const GetProjectsProjectsOidcTokenClaims$outboundSchema: z.ZodType<
|
|
|
6299
6332
|
project: z.string(),
|
|
6300
6333
|
projectId: z.string(),
|
|
6301
6334
|
environment: z.string(),
|
|
6302
|
-
plan: z.string(),
|
|
6335
|
+
plan: z.string().optional(),
|
|
6303
6336
|
}).transform((v) => {
|
|
6304
6337
|
return remap$(v, {
|
|
6305
6338
|
ownerId: "owner_id",
|
|
@@ -6537,6 +6570,7 @@ export const GetProjectsPermissions$inboundSchema: z.ZodType<
|
|
|
6537
6570
|
accessGroup: z.array(ACLAction$inboundSchema).optional(),
|
|
6538
6571
|
agent: z.array(ACLAction$inboundSchema).optional(),
|
|
6539
6572
|
alerts: z.array(ACLAction$inboundSchema).optional(),
|
|
6573
|
+
alertRules: z.array(ACLAction$inboundSchema).optional(),
|
|
6540
6574
|
aliasGlobal: z.array(ACLAction$inboundSchema).optional(),
|
|
6541
6575
|
analyticsSampling: z.array(ACLAction$inboundSchema).optional(),
|
|
6542
6576
|
analyticsUsage: z.array(ACLAction$inboundSchema).optional(),
|
|
@@ -6770,6 +6804,7 @@ export type GetProjectsPermissions$Outbound = {
|
|
|
6770
6804
|
accessGroup?: Array<string> | undefined;
|
|
6771
6805
|
agent?: Array<string> | undefined;
|
|
6772
6806
|
alerts?: Array<string> | undefined;
|
|
6807
|
+
alertRules?: Array<string> | undefined;
|
|
6773
6808
|
aliasGlobal?: Array<string> | undefined;
|
|
6774
6809
|
analyticsSampling?: Array<string> | undefined;
|
|
6775
6810
|
analyticsUsage?: Array<string> | undefined;
|
|
@@ -6997,6 +7032,7 @@ export const GetProjectsPermissions$outboundSchema: z.ZodType<
|
|
|
6997
7032
|
accessGroup: z.array(ACLAction$outboundSchema).optional(),
|
|
6998
7033
|
agent: z.array(ACLAction$outboundSchema).optional(),
|
|
6999
7034
|
alerts: z.array(ACLAction$outboundSchema).optional(),
|
|
7035
|
+
alertRules: z.array(ACLAction$outboundSchema).optional(),
|
|
7000
7036
|
aliasGlobal: z.array(ACLAction$outboundSchema).optional(),
|
|
7001
7037
|
analyticsSampling: z.array(ACLAction$outboundSchema).optional(),
|
|
7002
7038
|
analyticsUsage: z.array(ACLAction$outboundSchema).optional(),
|
|
@@ -10213,6 +10249,7 @@ export const GetProjectsProjects$inboundSchema: z.ZodType<
|
|
|
10213
10249
|
> = z.object({
|
|
10214
10250
|
accountId: z.string(),
|
|
10215
10251
|
analytics: z.lazy(() => GetProjectsAnalytics$inboundSchema).optional(),
|
|
10252
|
+
appliedCve55182Migration: z.boolean().optional(),
|
|
10216
10253
|
speedInsights: z.lazy(() => GetProjectsSpeedInsights$inboundSchema)
|
|
10217
10254
|
.optional(),
|
|
10218
10255
|
autoExposeSystemEnvs: z.boolean().optional(),
|
|
@@ -10286,6 +10323,7 @@ export const GetProjectsProjects$inboundSchema: z.ZodType<
|
|
|
10286
10323
|
serverlessFunctionZeroConfigFailover: z.boolean().optional(),
|
|
10287
10324
|
skewProtectionBoundaryAt: z.number().optional(),
|
|
10288
10325
|
skewProtectionMaxAge: z.number().optional(),
|
|
10326
|
+
skewProtectionAllowedDomains: z.array(z.string()).optional(),
|
|
10289
10327
|
skipGitConnectDuringLink: z.boolean().optional(),
|
|
10290
10328
|
staticIps: z.lazy(() => GetProjectsStaticIps$inboundSchema).optional(),
|
|
10291
10329
|
sourceFilesOutsideRootDirectory: z.boolean().optional(),
|
|
@@ -10351,6 +10389,7 @@ export const GetProjectsProjects$inboundSchema: z.ZodType<
|
|
|
10351
10389
|
export type GetProjectsProjects$Outbound = {
|
|
10352
10390
|
accountId: string;
|
|
10353
10391
|
analytics?: GetProjectsAnalytics$Outbound | undefined;
|
|
10392
|
+
appliedCve55182Migration?: boolean | undefined;
|
|
10354
10393
|
speedInsights?: GetProjectsSpeedInsights$Outbound | undefined;
|
|
10355
10394
|
autoExposeSystemEnvs?: boolean | undefined;
|
|
10356
10395
|
autoAssignCustomDomains?: boolean | undefined;
|
|
@@ -10415,6 +10454,7 @@ export type GetProjectsProjects$Outbound = {
|
|
|
10415
10454
|
serverlessFunctionZeroConfigFailover?: boolean | undefined;
|
|
10416
10455
|
skewProtectionBoundaryAt?: number | undefined;
|
|
10417
10456
|
skewProtectionMaxAge?: number | undefined;
|
|
10457
|
+
skewProtectionAllowedDomains?: Array<string> | undefined;
|
|
10418
10458
|
skipGitConnectDuringLink?: boolean | undefined;
|
|
10419
10459
|
staticIps?: GetProjectsStaticIps$Outbound | undefined;
|
|
10420
10460
|
sourceFilesOutsideRootDirectory?: boolean | undefined;
|
|
@@ -10474,6 +10514,7 @@ export const GetProjectsProjects$outboundSchema: z.ZodType<
|
|
|
10474
10514
|
> = z.object({
|
|
10475
10515
|
accountId: z.string(),
|
|
10476
10516
|
analytics: z.lazy(() => GetProjectsAnalytics$outboundSchema).optional(),
|
|
10517
|
+
appliedCve55182Migration: z.boolean().optional(),
|
|
10477
10518
|
speedInsights: z.lazy(() => GetProjectsSpeedInsights$outboundSchema)
|
|
10478
10519
|
.optional(),
|
|
10479
10520
|
autoExposeSystemEnvs: z.boolean().optional(),
|
|
@@ -10547,6 +10588,7 @@ export const GetProjectsProjects$outboundSchema: z.ZodType<
|
|
|
10547
10588
|
serverlessFunctionZeroConfigFailover: z.boolean().optional(),
|
|
10548
10589
|
skewProtectionBoundaryAt: z.number().optional(),
|
|
10549
10590
|
skewProtectionMaxAge: z.number().optional(),
|
|
10591
|
+
skewProtectionAllowedDomains: z.array(z.string()).optional(),
|
|
10550
10592
|
skipGitConnectDuringLink: z.boolean().optional(),
|
|
10551
10593
|
staticIps: z.lazy(() => GetProjectsStaticIps$outboundSchema).optional(),
|
|
10552
10594
|
sourceFilesOutsideRootDirectory: z.boolean().optional(),
|
|
@@ -21,6 +21,9 @@ import {
|
|
|
21
21
|
|
|
22
22
|
export type GetTldPriceRequest = {
|
|
23
23
|
tld: string;
|
|
24
|
+
/**
|
|
25
|
+
* The number of years to get the price for. If not provided, the minimum number of years for the TLD will be used.
|
|
26
|
+
*/
|
|
24
27
|
years?: string | undefined;
|
|
25
28
|
teamId?: string | undefined;
|
|
26
29
|
};
|
|
@@ -32,6 +35,12 @@ export type GetTldPriceDomainsRegistrarResponseBody =
|
|
|
32
35
|
| TldNotSupported
|
|
33
36
|
| HttpApiDecodeError;
|
|
34
37
|
|
|
38
|
+
export type PurchasePrice = number | string;
|
|
39
|
+
|
|
40
|
+
export type RenewalPrice = number | string;
|
|
41
|
+
|
|
42
|
+
export type TransferPrice = number | string;
|
|
43
|
+
|
|
35
44
|
/**
|
|
36
45
|
* Success
|
|
37
46
|
*/
|
|
@@ -40,18 +49,9 @@ export type GetTldPriceResponseBody = {
|
|
|
40
49
|
* The number of years the returned price is for.
|
|
41
50
|
*/
|
|
42
51
|
years: number;
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
purchasePrice: number | null;
|
|
47
|
-
/**
|
|
48
|
-
* The base TLD price for renewing a domain for the given number of years. If null, the TLD does not support renewing domains for the given number of years.
|
|
49
|
-
*/
|
|
50
|
-
renewalPrice: number | null;
|
|
51
|
-
/**
|
|
52
|
-
* The base TLD price for transferring a domain in for the given number of years. If null, the TLD does not support transferring domains in for the given number of years.
|
|
53
|
-
*/
|
|
54
|
-
transferPrice: number | null;
|
|
52
|
+
purchasePrice: number | string;
|
|
53
|
+
renewalPrice: number | string;
|
|
54
|
+
transferPrice: number | string;
|
|
55
55
|
};
|
|
56
56
|
|
|
57
57
|
/** @internal */
|
|
@@ -146,6 +146,93 @@ export function getTldPriceDomainsRegistrarResponseBodyFromJSON(
|
|
|
146
146
|
);
|
|
147
147
|
}
|
|
148
148
|
|
|
149
|
+
/** @internal */
|
|
150
|
+
export const PurchasePrice$inboundSchema: z.ZodType<
|
|
151
|
+
PurchasePrice,
|
|
152
|
+
z.ZodTypeDef,
|
|
153
|
+
unknown
|
|
154
|
+
> = z.union([z.number(), z.string()]);
|
|
155
|
+
/** @internal */
|
|
156
|
+
export type PurchasePrice$Outbound = number | string;
|
|
157
|
+
|
|
158
|
+
/** @internal */
|
|
159
|
+
export const PurchasePrice$outboundSchema: z.ZodType<
|
|
160
|
+
PurchasePrice$Outbound,
|
|
161
|
+
z.ZodTypeDef,
|
|
162
|
+
PurchasePrice
|
|
163
|
+
> = z.union([z.number(), z.string()]);
|
|
164
|
+
|
|
165
|
+
export function purchasePriceToJSON(purchasePrice: PurchasePrice): string {
|
|
166
|
+
return JSON.stringify(PurchasePrice$outboundSchema.parse(purchasePrice));
|
|
167
|
+
}
|
|
168
|
+
export function purchasePriceFromJSON(
|
|
169
|
+
jsonString: string,
|
|
170
|
+
): SafeParseResult<PurchasePrice, SDKValidationError> {
|
|
171
|
+
return safeParse(
|
|
172
|
+
jsonString,
|
|
173
|
+
(x) => PurchasePrice$inboundSchema.parse(JSON.parse(x)),
|
|
174
|
+
`Failed to parse 'PurchasePrice' from JSON`,
|
|
175
|
+
);
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
/** @internal */
|
|
179
|
+
export const RenewalPrice$inboundSchema: z.ZodType<
|
|
180
|
+
RenewalPrice,
|
|
181
|
+
z.ZodTypeDef,
|
|
182
|
+
unknown
|
|
183
|
+
> = z.union([z.number(), z.string()]);
|
|
184
|
+
/** @internal */
|
|
185
|
+
export type RenewalPrice$Outbound = number | string;
|
|
186
|
+
|
|
187
|
+
/** @internal */
|
|
188
|
+
export const RenewalPrice$outboundSchema: z.ZodType<
|
|
189
|
+
RenewalPrice$Outbound,
|
|
190
|
+
z.ZodTypeDef,
|
|
191
|
+
RenewalPrice
|
|
192
|
+
> = z.union([z.number(), z.string()]);
|
|
193
|
+
|
|
194
|
+
export function renewalPriceToJSON(renewalPrice: RenewalPrice): string {
|
|
195
|
+
return JSON.stringify(RenewalPrice$outboundSchema.parse(renewalPrice));
|
|
196
|
+
}
|
|
197
|
+
export function renewalPriceFromJSON(
|
|
198
|
+
jsonString: string,
|
|
199
|
+
): SafeParseResult<RenewalPrice, SDKValidationError> {
|
|
200
|
+
return safeParse(
|
|
201
|
+
jsonString,
|
|
202
|
+
(x) => RenewalPrice$inboundSchema.parse(JSON.parse(x)),
|
|
203
|
+
`Failed to parse 'RenewalPrice' from JSON`,
|
|
204
|
+
);
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
/** @internal */
|
|
208
|
+
export const TransferPrice$inboundSchema: z.ZodType<
|
|
209
|
+
TransferPrice,
|
|
210
|
+
z.ZodTypeDef,
|
|
211
|
+
unknown
|
|
212
|
+
> = z.union([z.number(), z.string()]);
|
|
213
|
+
/** @internal */
|
|
214
|
+
export type TransferPrice$Outbound = number | string;
|
|
215
|
+
|
|
216
|
+
/** @internal */
|
|
217
|
+
export const TransferPrice$outboundSchema: z.ZodType<
|
|
218
|
+
TransferPrice$Outbound,
|
|
219
|
+
z.ZodTypeDef,
|
|
220
|
+
TransferPrice
|
|
221
|
+
> = z.union([z.number(), z.string()]);
|
|
222
|
+
|
|
223
|
+
export function transferPriceToJSON(transferPrice: TransferPrice): string {
|
|
224
|
+
return JSON.stringify(TransferPrice$outboundSchema.parse(transferPrice));
|
|
225
|
+
}
|
|
226
|
+
export function transferPriceFromJSON(
|
|
227
|
+
jsonString: string,
|
|
228
|
+
): SafeParseResult<TransferPrice, SDKValidationError> {
|
|
229
|
+
return safeParse(
|
|
230
|
+
jsonString,
|
|
231
|
+
(x) => TransferPrice$inboundSchema.parse(JSON.parse(x)),
|
|
232
|
+
`Failed to parse 'TransferPrice' from JSON`,
|
|
233
|
+
);
|
|
234
|
+
}
|
|
235
|
+
|
|
149
236
|
/** @internal */
|
|
150
237
|
export const GetTldPriceResponseBody$inboundSchema: z.ZodType<
|
|
151
238
|
GetTldPriceResponseBody,
|
|
@@ -153,16 +240,16 @@ export const GetTldPriceResponseBody$inboundSchema: z.ZodType<
|
|
|
153
240
|
unknown
|
|
154
241
|
> = z.object({
|
|
155
242
|
years: z.number(),
|
|
156
|
-
purchasePrice: z.
|
|
157
|
-
renewalPrice: z.
|
|
158
|
-
transferPrice: z.
|
|
243
|
+
purchasePrice: z.union([z.number(), z.string()]),
|
|
244
|
+
renewalPrice: z.union([z.number(), z.string()]),
|
|
245
|
+
transferPrice: z.union([z.number(), z.string()]),
|
|
159
246
|
});
|
|
160
247
|
/** @internal */
|
|
161
248
|
export type GetTldPriceResponseBody$Outbound = {
|
|
162
249
|
years: number;
|
|
163
|
-
purchasePrice: number |
|
|
164
|
-
renewalPrice: number |
|
|
165
|
-
transferPrice: number |
|
|
250
|
+
purchasePrice: number | string;
|
|
251
|
+
renewalPrice: number | string;
|
|
252
|
+
transferPrice: number | string;
|
|
166
253
|
};
|
|
167
254
|
|
|
168
255
|
/** @internal */
|
|
@@ -172,9 +259,9 @@ export const GetTldPriceResponseBody$outboundSchema: z.ZodType<
|
|
|
172
259
|
GetTldPriceResponseBody
|
|
173
260
|
> = z.object({
|
|
174
261
|
years: z.number(),
|
|
175
|
-
purchasePrice: z.
|
|
176
|
-
renewalPrice: z.
|
|
177
|
-
transferPrice: z.
|
|
262
|
+
purchasePrice: z.union([z.number(), z.string()]),
|
|
263
|
+
renewalPrice: z.union([z.number(), z.string()]),
|
|
264
|
+
transferPrice: z.union([z.number(), z.string()]),
|
|
178
265
|
});
|
|
179
266
|
|
|
180
267
|
export function getTldPriceResponseBodyToJSON(
|
|
@@ -56,6 +56,8 @@ export const GetWebhookEvents = {
|
|
|
56
56
|
EdgeConfigDeleted: "edge-config.deleted",
|
|
57
57
|
EdgeConfigItemsUpdated: "edge-config.items.updated",
|
|
58
58
|
FirewallAttack: "firewall.attack",
|
|
59
|
+
FirewallSystemRuleAnomaly: "firewall.system-rule-anomaly",
|
|
60
|
+
FirewallCustomRuleAnomaly: "firewall.custom-rule-anomaly",
|
|
59
61
|
IntegrationConfigurationPermissionUpgraded:
|
|
60
62
|
"integration-configuration.permission-upgraded",
|
|
61
63
|
IntegrationConfigurationRemoved: "integration-configuration.removed",
|
|
@@ -56,6 +56,8 @@ export const GetWebhooksResponseBodyEvents = {
|
|
|
56
56
|
EdgeConfigDeleted: "edge-config.deleted",
|
|
57
57
|
EdgeConfigItemsUpdated: "edge-config.items.updated",
|
|
58
58
|
FirewallAttack: "firewall.attack",
|
|
59
|
+
FirewallSystemRuleAnomaly: "firewall.system-rule-anomaly",
|
|
60
|
+
FirewallCustomRuleAnomaly: "firewall.custom-rule-anomaly",
|
|
59
61
|
IntegrationConfigurationPermissionUpgraded:
|
|
60
62
|
"integration-configuration.permission-upgraded",
|
|
61
63
|
IntegrationConfigurationRemoved: "integration-configuration.removed",
|
|
@@ -250,6 +252,8 @@ export const ResponseBodyEvents = {
|
|
|
250
252
|
EdgeConfigDeleted: "edge-config.deleted",
|
|
251
253
|
EdgeConfigItemsUpdated: "edge-config.items.updated",
|
|
252
254
|
FirewallAttack: "firewall.attack",
|
|
255
|
+
FirewallSystemRuleAnomaly: "firewall.system-rule-anomaly",
|
|
256
|
+
FirewallCustomRuleAnomaly: "firewall.custom-rule-anomaly",
|
|
253
257
|
IntegrationConfigurationPermissionUpgraded:
|
|
254
258
|
"integration-configuration.permission-upgraded",
|
|
255
259
|
IntegrationConfigurationRemoved: "integration-configuration.removed",
|
|
@@ -73,7 +73,7 @@ export type RenewDomainContactInformation = {
|
|
|
73
73
|
*/
|
|
74
74
|
lastName: string;
|
|
75
75
|
/**
|
|
76
|
-
*
|
|
76
|
+
* A valid RFC 5322 email address
|
|
77
77
|
*/
|
|
78
78
|
email: string;
|
|
79
79
|
/**
|
|
@@ -119,9 +119,6 @@ export type RenewDomainRequestBody = {
|
|
|
119
119
|
* The number of years to renew the domain for.
|
|
120
120
|
*/
|
|
121
121
|
years: number;
|
|
122
|
-
/**
|
|
123
|
-
* The expected price for the domain. Use the [Get price data for a domain](https://vercel.com/docs/rest-api/reference/endpoints/domains-registrar/get-price-data-for-a-domain) endpoint to retrieve the price data for a domain.
|
|
124
|
-
*/
|
|
125
122
|
expectedPrice: number;
|
|
126
123
|
contactInformation?: RenewDomainContactInformation | undefined;
|
|
127
124
|
};
|
|
@@ -79,7 +79,7 @@ export type TransferInDomainContactInformation = {
|
|
|
79
79
|
*/
|
|
80
80
|
lastName: string;
|
|
81
81
|
/**
|
|
82
|
-
*
|
|
82
|
+
* A valid RFC 5322 email address
|
|
83
83
|
*/
|
|
84
84
|
email: string;
|
|
85
85
|
/**
|
|
@@ -121,6 +121,9 @@ export type TransferInDomainContactInformation = {
|
|
|
121
121
|
};
|
|
122
122
|
|
|
123
123
|
export type TransferInDomainRequestBody = {
|
|
124
|
+
/**
|
|
125
|
+
* The auth code for the domain. You must obtain this code from the losing registrar.
|
|
126
|
+
*/
|
|
124
127
|
authCode: string;
|
|
125
128
|
/**
|
|
126
129
|
* Whether the domain should be auto-renewed before it expires. This can be configured later through the Vercel Dashboard or the [Update auto-renew for a domain](https://vercel.com/docs/rest-api/reference/endpoints/domains-registrar/update-auto-renew-for-a-domain) endpoint.
|
|
@@ -130,9 +133,6 @@ export type TransferInDomainRequestBody = {
|
|
|
130
133
|
* The number of years to renew the domain for once it is transferred in. This must be a valid number of transfer years for the TLD.
|
|
131
134
|
*/
|
|
132
135
|
years: number;
|
|
133
|
-
/**
|
|
134
|
-
* The expected price for the domain. Use the [Get price data for a domain](https://vercel.com/docs/rest-api/reference/endpoints/domains-registrar/get-price-data-for-a-domain) endpoint to retrieve the price data for a domain.
|
|
135
|
-
*/
|
|
136
136
|
expectedPrice: number;
|
|
137
137
|
contactInformation: TransferInDomainContactInformation;
|
|
138
138
|
};
|
|
@@ -477,13 +477,12 @@ export type UpdateDrainResponseBody2 = {
|
|
|
477
477
|
createdAt: number;
|
|
478
478
|
updatedAt: number;
|
|
479
479
|
projectIds?: Array<string> | undefined;
|
|
480
|
-
schemas
|
|
481
|
-
delivery
|
|
480
|
+
schemas: UpdateDrainResponseBodyDrainsSchemas;
|
|
481
|
+
delivery:
|
|
482
482
|
| UpdateDrainDeliveryDrainsResponse1
|
|
483
483
|
| UpdateDrainDeliveryDrainsResponse2
|
|
484
484
|
| UpdateDrainDeliveryDrains3
|
|
485
|
-
| UpdateDrainDeliveryDrains4
|
|
486
|
-
| undefined;
|
|
485
|
+
| UpdateDrainDeliveryDrains4;
|
|
487
486
|
sampling?: Array<UpdateDrainResponseBodyDrainsSampling> | undefined;
|
|
488
487
|
teamId?: string | null | undefined;
|
|
489
488
|
status?: UpdateDrainResponseBodyDrainsStatus | undefined;
|
|
@@ -741,13 +740,12 @@ export type UpdateDrainResponseBody1 = {
|
|
|
741
740
|
createdAt: number;
|
|
742
741
|
updatedAt: number;
|
|
743
742
|
projectIds?: Array<string> | undefined;
|
|
744
|
-
schemas
|
|
745
|
-
delivery
|
|
743
|
+
schemas: UpdateDrainResponseBodySchemas;
|
|
744
|
+
delivery:
|
|
746
745
|
| UpdateDrainDeliveryDrains1
|
|
747
746
|
| UpdateDrainDeliveryDrains2
|
|
748
747
|
| UpdateDrainDelivery3
|
|
749
|
-
| UpdateDrainDelivery4
|
|
750
|
-
| undefined;
|
|
748
|
+
| UpdateDrainDelivery4;
|
|
751
749
|
sampling?: Array<UpdateDrainResponseBodySampling> | undefined;
|
|
752
750
|
teamId?: string | null | undefined;
|
|
753
751
|
status?: UpdateDrainResponseBodyStatus | undefined;
|
|
@@ -3470,14 +3468,13 @@ export const UpdateDrainResponseBody2$inboundSchema: z.ZodType<
|
|
|
3470
3468
|
createdAt: z.number(),
|
|
3471
3469
|
updatedAt: z.number(),
|
|
3472
3470
|
projectIds: z.array(z.string()).optional(),
|
|
3473
|
-
schemas: z.lazy(() => UpdateDrainResponseBodyDrainsSchemas$inboundSchema)
|
|
3474
|
-
.optional(),
|
|
3471
|
+
schemas: z.lazy(() => UpdateDrainResponseBodyDrainsSchemas$inboundSchema),
|
|
3475
3472
|
delivery: z.union([
|
|
3476
3473
|
z.lazy(() => UpdateDrainDeliveryDrainsResponse1$inboundSchema),
|
|
3477
3474
|
z.lazy(() => UpdateDrainDeliveryDrainsResponse2$inboundSchema),
|
|
3478
3475
|
z.lazy(() => UpdateDrainDeliveryDrains3$inboundSchema),
|
|
3479
3476
|
z.lazy(() => UpdateDrainDeliveryDrains4$inboundSchema),
|
|
3480
|
-
])
|
|
3477
|
+
]),
|
|
3481
3478
|
sampling: z.array(
|
|
3482
3479
|
z.lazy(() => UpdateDrainResponseBodyDrainsSampling$inboundSchema),
|
|
3483
3480
|
).optional(),
|
|
@@ -3513,13 +3510,12 @@ export type UpdateDrainResponseBody2$Outbound = {
|
|
|
3513
3510
|
createdAt: number;
|
|
3514
3511
|
updatedAt: number;
|
|
3515
3512
|
projectIds?: Array<string> | undefined;
|
|
3516
|
-
schemas
|
|
3517
|
-
delivery
|
|
3513
|
+
schemas: UpdateDrainResponseBodyDrainsSchemas$Outbound;
|
|
3514
|
+
delivery:
|
|
3518
3515
|
| UpdateDrainDeliveryDrainsResponse1$Outbound
|
|
3519
3516
|
| UpdateDrainDeliveryDrainsResponse2$Outbound
|
|
3520
3517
|
| UpdateDrainDeliveryDrains3$Outbound
|
|
3521
|
-
| UpdateDrainDeliveryDrains4$Outbound
|
|
3522
|
-
| undefined;
|
|
3518
|
+
| UpdateDrainDeliveryDrains4$Outbound;
|
|
3523
3519
|
sampling?: Array<UpdateDrainResponseBodyDrainsSampling$Outbound> | undefined;
|
|
3524
3520
|
teamId?: string | null | undefined;
|
|
3525
3521
|
status?: string | undefined;
|
|
@@ -3556,14 +3552,13 @@ export const UpdateDrainResponseBody2$outboundSchema: z.ZodType<
|
|
|
3556
3552
|
createdAt: z.number(),
|
|
3557
3553
|
updatedAt: z.number(),
|
|
3558
3554
|
projectIds: z.array(z.string()).optional(),
|
|
3559
|
-
schemas: z.lazy(() => UpdateDrainResponseBodyDrainsSchemas$outboundSchema)
|
|
3560
|
-
.optional(),
|
|
3555
|
+
schemas: z.lazy(() => UpdateDrainResponseBodyDrainsSchemas$outboundSchema),
|
|
3561
3556
|
delivery: z.union([
|
|
3562
3557
|
z.lazy(() => UpdateDrainDeliveryDrainsResponse1$outboundSchema),
|
|
3563
3558
|
z.lazy(() => UpdateDrainDeliveryDrainsResponse2$outboundSchema),
|
|
3564
3559
|
z.lazy(() => UpdateDrainDeliveryDrains3$outboundSchema),
|
|
3565
3560
|
z.lazy(() => UpdateDrainDeliveryDrains4$outboundSchema),
|
|
3566
|
-
])
|
|
3561
|
+
]),
|
|
3567
3562
|
sampling: z.array(
|
|
3568
3563
|
z.lazy(() => UpdateDrainResponseBodyDrainsSampling$outboundSchema),
|
|
3569
3564
|
).optional(),
|
|
@@ -4958,14 +4953,13 @@ export const UpdateDrainResponseBody1$inboundSchema: z.ZodType<
|
|
|
4958
4953
|
createdAt: z.number(),
|
|
4959
4954
|
updatedAt: z.number(),
|
|
4960
4955
|
projectIds: z.array(z.string()).optional(),
|
|
4961
|
-
schemas: z.lazy(() => UpdateDrainResponseBodySchemas$inboundSchema)
|
|
4962
|
-
.optional(),
|
|
4956
|
+
schemas: z.lazy(() => UpdateDrainResponseBodySchemas$inboundSchema),
|
|
4963
4957
|
delivery: z.union([
|
|
4964
4958
|
z.lazy(() => UpdateDrainDeliveryDrains1$inboundSchema),
|
|
4965
4959
|
z.lazy(() => UpdateDrainDeliveryDrains2$inboundSchema),
|
|
4966
4960
|
z.lazy(() => UpdateDrainDelivery3$inboundSchema),
|
|
4967
4961
|
z.lazy(() => UpdateDrainDelivery4$inboundSchema),
|
|
4968
|
-
])
|
|
4962
|
+
]),
|
|
4969
4963
|
sampling: z.array(z.lazy(() => UpdateDrainResponseBodySampling$inboundSchema))
|
|
4970
4964
|
.optional(),
|
|
4971
4965
|
teamId: z.nullable(z.string()).optional(),
|
|
@@ -4993,13 +4987,12 @@ export type UpdateDrainResponseBody1$Outbound = {
|
|
|
4993
4987
|
createdAt: number;
|
|
4994
4988
|
updatedAt: number;
|
|
4995
4989
|
projectIds?: Array<string> | undefined;
|
|
4996
|
-
schemas
|
|
4997
|
-
delivery
|
|
4990
|
+
schemas: UpdateDrainResponseBodySchemas$Outbound;
|
|
4991
|
+
delivery:
|
|
4998
4992
|
| UpdateDrainDeliveryDrains1$Outbound
|
|
4999
4993
|
| UpdateDrainDeliveryDrains2$Outbound
|
|
5000
4994
|
| UpdateDrainDelivery3$Outbound
|
|
5001
|
-
| UpdateDrainDelivery4$Outbound
|
|
5002
|
-
| undefined;
|
|
4995
|
+
| UpdateDrainDelivery4$Outbound;
|
|
5003
4996
|
sampling?: Array<UpdateDrainResponseBodySampling$Outbound> | undefined;
|
|
5004
4997
|
teamId?: string | null | undefined;
|
|
5005
4998
|
status?: string | undefined;
|
|
@@ -5027,14 +5020,13 @@ export const UpdateDrainResponseBody1$outboundSchema: z.ZodType<
|
|
|
5027
5020
|
createdAt: z.number(),
|
|
5028
5021
|
updatedAt: z.number(),
|
|
5029
5022
|
projectIds: z.array(z.string()).optional(),
|
|
5030
|
-
schemas: z.lazy(() => UpdateDrainResponseBodySchemas$outboundSchema)
|
|
5031
|
-
.optional(),
|
|
5023
|
+
schemas: z.lazy(() => UpdateDrainResponseBodySchemas$outboundSchema),
|
|
5032
5024
|
delivery: z.union([
|
|
5033
5025
|
z.lazy(() => UpdateDrainDeliveryDrains1$outboundSchema),
|
|
5034
5026
|
z.lazy(() => UpdateDrainDeliveryDrains2$outboundSchema),
|
|
5035
5027
|
z.lazy(() => UpdateDrainDelivery3$outboundSchema),
|
|
5036
5028
|
z.lazy(() => UpdateDrainDelivery4$outboundSchema),
|
|
5037
|
-
])
|
|
5029
|
+
]),
|
|
5038
5030
|
sampling: z.array(
|
|
5039
5031
|
z.lazy(() => UpdateDrainResponseBodySampling$outboundSchema),
|
|
5040
5032
|
).optional(),
|
|
@@ -12,6 +12,19 @@ import { ClosedEnum } from "../types/enums.js";
|
|
|
12
12
|
import { Result as SafeParseResult } from "../types/fp.js";
|
|
13
13
|
import { SDKValidationError } from "./sdkvalidationerror.js";
|
|
14
14
|
|
|
15
|
+
export const UpdateInstallationStatus = {
|
|
16
|
+
Ready: "ready",
|
|
17
|
+
Pending: "pending",
|
|
18
|
+
Onboarding: "onboarding",
|
|
19
|
+
Suspended: "suspended",
|
|
20
|
+
Resumed: "resumed",
|
|
21
|
+
Uninstalled: "uninstalled",
|
|
22
|
+
Error: "error",
|
|
23
|
+
} as const;
|
|
24
|
+
export type UpdateInstallationStatus = ClosedEnum<
|
|
25
|
+
typeof UpdateInstallationStatus
|
|
26
|
+
>;
|
|
27
|
+
|
|
15
28
|
export const UpdateInstallationType = {
|
|
16
29
|
Prepayment: "prepayment",
|
|
17
30
|
Subscription: "subscription",
|
|
@@ -61,6 +74,8 @@ export type Notification1 = {
|
|
|
61
74
|
export type Notification = Notification1 | string;
|
|
62
75
|
|
|
63
76
|
export type UpdateInstallationRequestBody = {
|
|
77
|
+
status?: UpdateInstallationStatus | undefined;
|
|
78
|
+
externalId?: string | undefined;
|
|
64
79
|
billingPlan?: BillingPlan | undefined;
|
|
65
80
|
/**
|
|
66
81
|
* A notification to display to your customer. Send `null` to clear the current notification.
|
|
@@ -73,6 +88,15 @@ export type UpdateInstallationRequest = {
|
|
|
73
88
|
requestBody?: UpdateInstallationRequestBody | undefined;
|
|
74
89
|
};
|
|
75
90
|
|
|
91
|
+
/** @internal */
|
|
92
|
+
export const UpdateInstallationStatus$inboundSchema: z.ZodNativeEnum<
|
|
93
|
+
typeof UpdateInstallationStatus
|
|
94
|
+
> = z.nativeEnum(UpdateInstallationStatus);
|
|
95
|
+
/** @internal */
|
|
96
|
+
export const UpdateInstallationStatus$outboundSchema: z.ZodNativeEnum<
|
|
97
|
+
typeof UpdateInstallationStatus
|
|
98
|
+
> = UpdateInstallationStatus$inboundSchema;
|
|
99
|
+
|
|
76
100
|
/** @internal */
|
|
77
101
|
export const UpdateInstallationType$inboundSchema: z.ZodNativeEnum<
|
|
78
102
|
typeof UpdateInstallationType
|
|
@@ -320,12 +344,16 @@ export const UpdateInstallationRequestBody$inboundSchema: z.ZodType<
|
|
|
320
344
|
z.ZodTypeDef,
|
|
321
345
|
unknown
|
|
322
346
|
> = z.object({
|
|
347
|
+
status: UpdateInstallationStatus$inboundSchema.optional(),
|
|
348
|
+
externalId: z.string().optional(),
|
|
323
349
|
billingPlan: z.lazy(() => BillingPlan$inboundSchema).optional(),
|
|
324
350
|
notification: z.union([z.lazy(() => Notification1$inboundSchema), z.string()])
|
|
325
351
|
.optional(),
|
|
326
352
|
});
|
|
327
353
|
/** @internal */
|
|
328
354
|
export type UpdateInstallationRequestBody$Outbound = {
|
|
355
|
+
status?: string | undefined;
|
|
356
|
+
externalId?: string | undefined;
|
|
329
357
|
billingPlan?: BillingPlan$Outbound | undefined;
|
|
330
358
|
notification?: Notification1$Outbound | string | undefined;
|
|
331
359
|
};
|
|
@@ -336,6 +364,8 @@ export const UpdateInstallationRequestBody$outboundSchema: z.ZodType<
|
|
|
336
364
|
z.ZodTypeDef,
|
|
337
365
|
UpdateInstallationRequestBody
|
|
338
366
|
> = z.object({
|
|
367
|
+
status: UpdateInstallationStatus$outboundSchema.optional(),
|
|
368
|
+
externalId: z.string().optional(),
|
|
339
369
|
billingPlan: z.lazy(() => BillingPlan$outboundSchema).optional(),
|
|
340
370
|
notification: z.union([
|
|
341
371
|
z.lazy(() => Notification1$outboundSchema),
|