@vercel/sdk 1.2.1 → 1.2.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/docs/sdks/teams/README.md +2 -2
- package/esm/lib/config.d.ts +3 -3
- package/esm/lib/config.js +3 -3
- package/esm/models/authuser.d.ts +3 -0
- package/esm/models/authuser.d.ts.map +1 -1
- package/esm/models/authuser.js +1 -0
- package/esm/models/authuser.js.map +1 -1
- package/esm/models/canceldeploymentop.d.ts +6 -6
- package/esm/models/canceldeploymentop.js +2 -2
- package/esm/models/canceldeploymentop.js.map +1 -1
- package/esm/models/checkdomainpriceop.d.ts +14 -2
- package/esm/models/checkdomainpriceop.d.ts.map +1 -1
- package/esm/models/checkdomainpriceop.js +8 -2
- package/esm/models/checkdomainpriceop.js.map +1 -1
- package/esm/models/createdeploymentop.d.ts +23 -23
- package/esm/models/createdeploymentop.d.ts.map +1 -1
- package/esm/models/createdeploymentop.js +21 -21
- package/esm/models/createdeploymentop.js.map +1 -1
- package/esm/models/createprojectop.d.ts +6 -6
- package/esm/models/createprojectop.js +2 -2
- package/esm/models/createprojectop.js.map +1 -1
- package/esm/models/getdeploymentsop.d.ts +5 -0
- package/esm/models/getdeploymentsop.d.ts.map +1 -1
- package/esm/models/getdeploymentsop.js +2 -0
- package/esm/models/getdeploymentsop.js.map +1 -1
- package/esm/models/getdomainop.d.ts +2 -2
- package/esm/models/getdomainop.d.ts.map +1 -1
- package/esm/models/getdomainop.js +2 -2
- package/esm/models/getdomainop.js.map +1 -1
- package/esm/models/getteamop.d.ts +2 -5
- package/esm/models/getteamop.d.ts.map +1 -1
- package/esm/models/getteamop.js +2 -2
- package/esm/models/getteamop.js.map +1 -1
- package/package.json +1 -1
- package/src/lib/config.ts +3 -3
- package/src/models/authuser.ts +1 -0
- package/src/models/canceldeploymentop.ts +2 -2
- package/src/models/checkdomainpriceop.ts +22 -4
- package/src/models/createdeploymentop.ts +36 -36
- package/src/models/createprojectop.ts +2 -2
- package/src/models/getdeploymentsop.ts +7 -0
- package/src/models/getdomainop.ts +4 -4
- package/src/models/getteamop.ts +4 -7
|
@@ -16,30 +16,30 @@ import {
|
|
|
16
16
|
import { SDKValidationError } from "./sdkvalidationerror.js";
|
|
17
17
|
|
|
18
18
|
/**
|
|
19
|
-
*
|
|
19
|
+
* Forces a new deployment even if there is a previous similar deployment
|
|
20
20
|
*/
|
|
21
|
-
export const
|
|
21
|
+
export const ForceNew = {
|
|
22
22
|
Zero: "0",
|
|
23
23
|
One: "1",
|
|
24
24
|
} as const;
|
|
25
25
|
/**
|
|
26
|
-
*
|
|
26
|
+
* Forces a new deployment even if there is a previous similar deployment
|
|
27
27
|
*/
|
|
28
|
-
export type
|
|
29
|
-
typeof SkipAutoDetectionConfirmation
|
|
30
|
-
>;
|
|
28
|
+
export type ForceNew = ClosedEnum<typeof ForceNew>;
|
|
31
29
|
|
|
32
30
|
/**
|
|
33
|
-
*
|
|
31
|
+
* Allows to skip framework detection so the API would not fail to ask for confirmation
|
|
34
32
|
*/
|
|
35
|
-
export const
|
|
33
|
+
export const SkipAutoDetectionConfirmation = {
|
|
36
34
|
Zero: "0",
|
|
37
35
|
One: "1",
|
|
38
36
|
} as const;
|
|
39
37
|
/**
|
|
40
|
-
*
|
|
38
|
+
* Allows to skip framework detection so the API would not fail to ask for confirmation
|
|
41
39
|
*/
|
|
42
|
-
export type
|
|
40
|
+
export type SkipAutoDetectionConfirmation = ClosedEnum<
|
|
41
|
+
typeof SkipAutoDetectionConfirmation
|
|
42
|
+
>;
|
|
43
43
|
|
|
44
44
|
/**
|
|
45
45
|
* Used in the case you want to reference a file that was already uploaded
|
|
@@ -382,14 +382,14 @@ export type CreateDeploymentRequestBody = {
|
|
|
382
382
|
};
|
|
383
383
|
|
|
384
384
|
export type CreateDeploymentRequest = {
|
|
385
|
-
/**
|
|
386
|
-
* Allows to skip framework detection so the API would not fail to ask for confirmation
|
|
387
|
-
*/
|
|
388
|
-
skipAutoDetectionConfirmation?: SkipAutoDetectionConfirmation | undefined;
|
|
389
385
|
/**
|
|
390
386
|
* Forces a new deployment even if there is a previous similar deployment
|
|
391
387
|
*/
|
|
392
388
|
forceNew?: ForceNew | undefined;
|
|
389
|
+
/**
|
|
390
|
+
* Allows to skip framework detection so the API would not fail to ask for confirmation
|
|
391
|
+
*/
|
|
392
|
+
skipAutoDetectionConfirmation?: SkipAutoDetectionConfirmation | undefined;
|
|
393
393
|
/**
|
|
394
394
|
* The Team identifier to perform the request on behalf of.
|
|
395
395
|
*/
|
|
@@ -1296,6 +1296,25 @@ export type CreateDeploymentResponseBody = {
|
|
|
1296
1296
|
flags?: Flags1 | Array<Flags2> | undefined;
|
|
1297
1297
|
};
|
|
1298
1298
|
|
|
1299
|
+
/** @internal */
|
|
1300
|
+
export const ForceNew$inboundSchema: z.ZodNativeEnum<typeof ForceNew> = z
|
|
1301
|
+
.nativeEnum(ForceNew);
|
|
1302
|
+
|
|
1303
|
+
/** @internal */
|
|
1304
|
+
export const ForceNew$outboundSchema: z.ZodNativeEnum<typeof ForceNew> =
|
|
1305
|
+
ForceNew$inboundSchema;
|
|
1306
|
+
|
|
1307
|
+
/**
|
|
1308
|
+
* @internal
|
|
1309
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1310
|
+
*/
|
|
1311
|
+
export namespace ForceNew$ {
|
|
1312
|
+
/** @deprecated use `ForceNew$inboundSchema` instead. */
|
|
1313
|
+
export const inboundSchema = ForceNew$inboundSchema;
|
|
1314
|
+
/** @deprecated use `ForceNew$outboundSchema` instead. */
|
|
1315
|
+
export const outboundSchema = ForceNew$outboundSchema;
|
|
1316
|
+
}
|
|
1317
|
+
|
|
1299
1318
|
/** @internal */
|
|
1300
1319
|
export const SkipAutoDetectionConfirmation$inboundSchema: z.ZodNativeEnum<
|
|
1301
1320
|
typeof SkipAutoDetectionConfirmation
|
|
@@ -1317,25 +1336,6 @@ export namespace SkipAutoDetectionConfirmation$ {
|
|
|
1317
1336
|
export const outboundSchema = SkipAutoDetectionConfirmation$outboundSchema;
|
|
1318
1337
|
}
|
|
1319
1338
|
|
|
1320
|
-
/** @internal */
|
|
1321
|
-
export const ForceNew$inboundSchema: z.ZodNativeEnum<typeof ForceNew> = z
|
|
1322
|
-
.nativeEnum(ForceNew);
|
|
1323
|
-
|
|
1324
|
-
/** @internal */
|
|
1325
|
-
export const ForceNew$outboundSchema: z.ZodNativeEnum<typeof ForceNew> =
|
|
1326
|
-
ForceNew$inboundSchema;
|
|
1327
|
-
|
|
1328
|
-
/**
|
|
1329
|
-
* @internal
|
|
1330
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1331
|
-
*/
|
|
1332
|
-
export namespace ForceNew$ {
|
|
1333
|
-
/** @deprecated use `ForceNew$inboundSchema` instead. */
|
|
1334
|
-
export const inboundSchema = ForceNew$inboundSchema;
|
|
1335
|
-
/** @deprecated use `ForceNew$outboundSchema` instead. */
|
|
1336
|
-
export const outboundSchema = ForceNew$outboundSchema;
|
|
1337
|
-
}
|
|
1338
|
-
|
|
1339
1339
|
/** @internal */
|
|
1340
1340
|
export const UploadedFile$inboundSchema: z.ZodType<
|
|
1341
1341
|
UploadedFile,
|
|
@@ -2388,9 +2388,9 @@ export const CreateDeploymentRequest$inboundSchema: z.ZodType<
|
|
|
2388
2388
|
z.ZodTypeDef,
|
|
2389
2389
|
unknown
|
|
2390
2390
|
> = z.object({
|
|
2391
|
+
forceNew: ForceNew$inboundSchema.optional(),
|
|
2391
2392
|
skipAutoDetectionConfirmation: SkipAutoDetectionConfirmation$inboundSchema
|
|
2392
2393
|
.optional(),
|
|
2393
|
-
forceNew: ForceNew$inboundSchema.optional(),
|
|
2394
2394
|
teamId: z.string().optional(),
|
|
2395
2395
|
slug: z.string().optional(),
|
|
2396
2396
|
RequestBody: z.lazy(() => CreateDeploymentRequestBody$inboundSchema),
|
|
@@ -2402,8 +2402,8 @@ export const CreateDeploymentRequest$inboundSchema: z.ZodType<
|
|
|
2402
2402
|
|
|
2403
2403
|
/** @internal */
|
|
2404
2404
|
export type CreateDeploymentRequest$Outbound = {
|
|
2405
|
-
skipAutoDetectionConfirmation?: string | undefined;
|
|
2406
2405
|
forceNew?: string | undefined;
|
|
2406
|
+
skipAutoDetectionConfirmation?: string | undefined;
|
|
2407
2407
|
teamId?: string | undefined;
|
|
2408
2408
|
slug?: string | undefined;
|
|
2409
2409
|
RequestBody: CreateDeploymentRequestBody$Outbound;
|
|
@@ -2415,9 +2415,9 @@ export const CreateDeploymentRequest$outboundSchema: z.ZodType<
|
|
|
2415
2415
|
z.ZodTypeDef,
|
|
2416
2416
|
CreateDeploymentRequest
|
|
2417
2417
|
> = z.object({
|
|
2418
|
+
forceNew: ForceNew$outboundSchema.optional(),
|
|
2418
2419
|
skipAutoDetectionConfirmation: SkipAutoDetectionConfirmation$outboundSchema
|
|
2419
2420
|
.optional(),
|
|
2420
|
-
forceNew: ForceNew$outboundSchema.optional(),
|
|
2421
2421
|
teamId: z.string().optional(),
|
|
2422
2422
|
slug: z.string().optional(),
|
|
2423
2423
|
requestBody: z.lazy(() => CreateDeploymentRequestBody$outboundSchema),
|
|
@@ -1358,11 +1358,11 @@ export type CreateProjectPermissions = {
|
|
|
1358
1358
|
export type CreateProjectLastRollbackTarget = {};
|
|
1359
1359
|
|
|
1360
1360
|
export const CreateProjectJobStatus = {
|
|
1361
|
-
Pending: "pending",
|
|
1362
|
-
InProgress: "in-progress",
|
|
1363
1361
|
Succeeded: "succeeded",
|
|
1364
1362
|
Failed: "failed",
|
|
1365
1363
|
Skipped: "skipped",
|
|
1364
|
+
Pending: "pending",
|
|
1365
|
+
InProgress: "in-progress",
|
|
1366
1366
|
} as const;
|
|
1367
1367
|
export type CreateProjectJobStatus = ClosedEnum<typeof CreateProjectJobStatus>;
|
|
1368
1368
|
|
|
@@ -376,6 +376,10 @@ export type Deployments = {
|
|
|
376
376
|
* Timestamp of when the deployment got created.
|
|
377
377
|
*/
|
|
378
378
|
created: number;
|
|
379
|
+
/**
|
|
380
|
+
* The default route that should be used for screenshots and links if configured with microfrontends.
|
|
381
|
+
*/
|
|
382
|
+
defaultRoute?: string | undefined;
|
|
379
383
|
/**
|
|
380
384
|
* Timestamp of when the deployment got deleted.
|
|
381
385
|
*/
|
|
@@ -1342,6 +1346,7 @@ export const Deployments$inboundSchema: z.ZodType<
|
|
|
1342
1346
|
name: z.string(),
|
|
1343
1347
|
url: z.string(),
|
|
1344
1348
|
created: z.number(),
|
|
1349
|
+
defaultRoute: z.string().optional(),
|
|
1345
1350
|
deleted: z.number().optional(),
|
|
1346
1351
|
undeleted: z.number().optional(),
|
|
1347
1352
|
softDeletedByRetention: z.boolean().optional(),
|
|
@@ -1380,6 +1385,7 @@ export type Deployments$Outbound = {
|
|
|
1380
1385
|
name: string;
|
|
1381
1386
|
url: string;
|
|
1382
1387
|
created: number;
|
|
1388
|
+
defaultRoute?: string | undefined;
|
|
1383
1389
|
deleted?: number | undefined;
|
|
1384
1390
|
undeleted?: number | undefined;
|
|
1385
1391
|
softDeletedByRetention?: boolean | undefined;
|
|
@@ -1419,6 +1425,7 @@ export const Deployments$outboundSchema: z.ZodType<
|
|
|
1419
1425
|
name: z.string(),
|
|
1420
1426
|
url: z.string(),
|
|
1421
1427
|
created: z.number(),
|
|
1428
|
+
defaultRoute: z.string().optional(),
|
|
1422
1429
|
deleted: z.number().optional(),
|
|
1423
1430
|
undeleted: z.number().optional(),
|
|
1424
1431
|
softDeletedByRetention: z.boolean().optional(),
|
|
@@ -70,7 +70,6 @@ export type GetDomainDomain = {
|
|
|
70
70
|
*/
|
|
71
71
|
creator: GetDomainCreator;
|
|
72
72
|
teamId: string | null;
|
|
73
|
-
userId: string;
|
|
74
73
|
/**
|
|
75
74
|
* If it was purchased through Vercel, the timestamp in milliseconds when it was purchased.
|
|
76
75
|
*/
|
|
@@ -111,6 +110,7 @@ export type GetDomainDomain = {
|
|
|
111
110
|
* If transferred into Vercel, timestamp in milliseconds when the domain transfer was initiated.
|
|
112
111
|
*/
|
|
113
112
|
transferStartedAt?: number | undefined;
|
|
113
|
+
userId: string;
|
|
114
114
|
};
|
|
115
115
|
|
|
116
116
|
/**
|
|
@@ -278,7 +278,6 @@ export const GetDomainDomain$inboundSchema: z.ZodType<
|
|
|
278
278
|
customNameservers: z.array(z.string()).optional(),
|
|
279
279
|
creator: z.lazy(() => GetDomainCreator$inboundSchema),
|
|
280
280
|
teamId: z.nullable(z.string()),
|
|
281
|
-
userId: z.string(),
|
|
282
281
|
boughtAt: z.nullable(z.number()),
|
|
283
282
|
createdAt: z.number(),
|
|
284
283
|
expiresAt: z.nullable(z.number()),
|
|
@@ -289,6 +288,7 @@ export const GetDomainDomain$inboundSchema: z.ZodType<
|
|
|
289
288
|
serviceType: ServiceType$inboundSchema,
|
|
290
289
|
transferredAt: z.nullable(z.number()).optional(),
|
|
291
290
|
transferStartedAt: z.number().optional(),
|
|
291
|
+
userId: z.string(),
|
|
292
292
|
});
|
|
293
293
|
|
|
294
294
|
/** @internal */
|
|
@@ -300,7 +300,6 @@ export type GetDomainDomain$Outbound = {
|
|
|
300
300
|
customNameservers?: Array<string> | undefined;
|
|
301
301
|
creator: GetDomainCreator$Outbound;
|
|
302
302
|
teamId: string | null;
|
|
303
|
-
userId: string;
|
|
304
303
|
boughtAt: number | null;
|
|
305
304
|
createdAt: number;
|
|
306
305
|
expiresAt: number | null;
|
|
@@ -311,6 +310,7 @@ export type GetDomainDomain$Outbound = {
|
|
|
311
310
|
serviceType: string;
|
|
312
311
|
transferredAt?: number | null | undefined;
|
|
313
312
|
transferStartedAt?: number | undefined;
|
|
313
|
+
userId: string;
|
|
314
314
|
};
|
|
315
315
|
|
|
316
316
|
/** @internal */
|
|
@@ -326,7 +326,6 @@ export const GetDomainDomain$outboundSchema: z.ZodType<
|
|
|
326
326
|
customNameservers: z.array(z.string()).optional(),
|
|
327
327
|
creator: z.lazy(() => GetDomainCreator$outboundSchema),
|
|
328
328
|
teamId: z.nullable(z.string()),
|
|
329
|
-
userId: z.string(),
|
|
330
329
|
boughtAt: z.nullable(z.number()),
|
|
331
330
|
createdAt: z.number(),
|
|
332
331
|
expiresAt: z.nullable(z.number()),
|
|
@@ -337,6 +336,7 @@ export const GetDomainDomain$outboundSchema: z.ZodType<
|
|
|
337
336
|
serviceType: ServiceType$outboundSchema,
|
|
338
337
|
transferredAt: z.nullable(z.number()).optional(),
|
|
339
338
|
transferStartedAt: z.number().optional(),
|
|
339
|
+
userId: z.string(),
|
|
340
340
|
});
|
|
341
341
|
|
|
342
342
|
/**
|
package/src/models/getteamop.ts
CHANGED
|
@@ -8,14 +8,11 @@ import { Result as SafeParseResult } from "../types/fp.js";
|
|
|
8
8
|
import { SDKValidationError } from "./sdkvalidationerror.js";
|
|
9
9
|
|
|
10
10
|
export type GetTeamRequest = {
|
|
11
|
+
slug?: string | undefined;
|
|
11
12
|
/**
|
|
12
13
|
* The Team identifier to perform the request on behalf of.
|
|
13
14
|
*/
|
|
14
15
|
teamId: string;
|
|
15
|
-
/**
|
|
16
|
-
* The Team slug to perform the request on behalf of.
|
|
17
|
-
*/
|
|
18
|
-
slug?: string | undefined;
|
|
19
16
|
};
|
|
20
17
|
|
|
21
18
|
/** @internal */
|
|
@@ -24,14 +21,14 @@ export const GetTeamRequest$inboundSchema: z.ZodType<
|
|
|
24
21
|
z.ZodTypeDef,
|
|
25
22
|
unknown
|
|
26
23
|
> = z.object({
|
|
27
|
-
teamId: z.string(),
|
|
28
24
|
slug: z.string().optional(),
|
|
25
|
+
teamId: z.string(),
|
|
29
26
|
});
|
|
30
27
|
|
|
31
28
|
/** @internal */
|
|
32
29
|
export type GetTeamRequest$Outbound = {
|
|
33
|
-
teamId: string;
|
|
34
30
|
slug?: string | undefined;
|
|
31
|
+
teamId: string;
|
|
35
32
|
};
|
|
36
33
|
|
|
37
34
|
/** @internal */
|
|
@@ -40,8 +37,8 @@ export const GetTeamRequest$outboundSchema: z.ZodType<
|
|
|
40
37
|
z.ZodTypeDef,
|
|
41
38
|
GetTeamRequest
|
|
42
39
|
> = z.object({
|
|
43
|
-
teamId: z.string(),
|
|
44
40
|
slug: z.string().optional(),
|
|
41
|
+
teamId: z.string(),
|
|
45
42
|
});
|
|
46
43
|
|
|
47
44
|
/**
|