@vercel/sdk 1.16.0 → 1.16.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.
- package/README.md +39 -37
- package/bin/mcp-server.js +1263 -912
- package/bin/mcp-server.js.map +42 -39
- package/docs/sdks/logdrains/README.md +7 -7
- package/docs/sdks/projects/README.md +78 -0
- package/docs/sdks/teams/README.md +1 -1
- package/esm/__tests__/accessgroups.test.js +6 -2
- package/esm/__tests__/accessgroups.test.js.map +1 -1
- package/esm/__tests__/domains.test.js +5 -5
- package/esm/__tests__/domains.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 +4 -4
- package/esm/__tests__/logdrains.test.js.map +1 -1
- package/esm/__tests__/projects.test.js +17 -0
- package/esm/__tests__/projects.test.js.map +1 -1
- package/esm/__tests__/rollingrelease.test.js +2 -7
- package/esm/__tests__/rollingrelease.test.js.map +1 -1
- package/esm/__tests__/security.test.js +1 -11
- package/esm/__tests__/security.test.js.map +1 -1
- package/esm/funcs/logDrainsCreateConfigurableLogDrain.d.ts +1 -1
- package/esm/funcs/logDrainsCreateConfigurableLogDrain.js +1 -1
- package/esm/funcs/logDrainsCreateLogDrain.d.ts +1 -1
- package/esm/funcs/logDrainsCreateLogDrain.js +1 -1
- package/esm/funcs/logDrainsDeleteConfigurableLogDrain.d.ts +1 -1
- package/esm/funcs/logDrainsDeleteConfigurableLogDrain.js +1 -1
- package/esm/funcs/logDrainsDeleteIntegrationLogDrain.d.ts +1 -1
- package/esm/funcs/logDrainsDeleteIntegrationLogDrain.js +1 -1
- package/esm/funcs/logDrainsGetAllLogDrains.d.ts +1 -1
- package/esm/funcs/logDrainsGetAllLogDrains.js +1 -1
- package/esm/funcs/logDrainsGetConfigurableLogDrain.d.ts +1 -1
- package/esm/funcs/logDrainsGetConfigurableLogDrain.js +1 -1
- package/esm/funcs/logDrainsGetIntegrationLogDrains.d.ts +1 -1
- package/esm/funcs/logDrainsGetIntegrationLogDrains.js +1 -1
- package/esm/funcs/projectsGetProjectClientCerts.d.ts +17 -0
- package/esm/funcs/projectsGetProjectClientCerts.d.ts.map +1 -0
- package/esm/funcs/projectsGetProjectClientCerts.js +88 -0
- package/esm/funcs/projectsGetProjectClientCerts.js.map +1 -0
- package/esm/funcs/teamsInviteUserToTeam.d.ts +1 -1
- package/esm/funcs/teamsInviteUserToTeam.js +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 +3 -1
- package/esm/mcp-server/server.js.map +1 -1
- package/esm/mcp-server/tools/logDrainsCreateConfigurableLogDrain.js +1 -1
- package/esm/mcp-server/tools/logDrainsCreateLogDrain.js +1 -1
- package/esm/mcp-server/tools/logDrainsDeleteConfigurableLogDrain.js +1 -1
- package/esm/mcp-server/tools/logDrainsDeleteIntegrationLogDrain.d.ts.map +1 -1
- package/esm/mcp-server/tools/logDrainsDeleteIntegrationLogDrain.js +1 -1
- package/esm/mcp-server/tools/logDrainsDeleteIntegrationLogDrain.js.map +1 -1
- package/esm/mcp-server/tools/logDrainsGetAllLogDrains.js +1 -1
- package/esm/mcp-server/tools/logDrainsGetConfigurableLogDrain.js +1 -1
- package/esm/mcp-server/tools/logDrainsGetIntegrationLogDrains.js +1 -1
- package/esm/mcp-server/tools/projectsGetProjectClientCerts.d.ts +7 -0
- package/esm/mcp-server/tools/projectsGetProjectClientCerts.d.ts.map +1 -0
- package/esm/mcp-server/tools/projectsGetProjectClientCerts.js +28 -0
- package/esm/mcp-server/tools/projectsGetProjectClientCerts.js.map +1 -0
- package/esm/mcp-server/tools/teamsInviteUserToTeam.js +1 -1
- package/esm/mcp-server/tools/teamsInviteUserToTeam.js.map +1 -1
- package/esm/models/approverollingreleasestageop.d.ts +78 -0
- package/esm/models/approverollingreleasestageop.d.ts.map +1 -1
- package/esm/models/approverollingreleasestageop.js +18 -0
- package/esm/models/approverollingreleasestageop.js.map +1 -1
- package/esm/models/authuser.d.ts +67 -0
- package/esm/models/authuser.d.ts.map +1 -1
- package/esm/models/authuser.js +49 -0
- package/esm/models/authuser.js.map +1 -1
- package/esm/models/canceldeploymentop.d.ts +106 -1
- package/esm/models/canceldeploymentop.d.ts.map +1 -1
- package/esm/models/canceldeploymentop.js +9 -0
- package/esm/models/canceldeploymentop.js.map +1 -1
- package/esm/models/completerollingreleaseop.d.ts +78 -0
- package/esm/models/completerollingreleaseop.d.ts.map +1 -1
- package/esm/models/completerollingreleaseop.js +18 -0
- package/esm/models/completerollingreleaseop.js.map +1 -1
- package/esm/models/createdeploymentop.d.ts +106 -1
- package/esm/models/createdeploymentop.d.ts.map +1 -1
- package/esm/models/createdeploymentop.js +9 -0
- package/esm/models/createdeploymentop.js.map +1 -1
- package/esm/models/createintegrationstoredirectop.d.ts +285 -285
- package/esm/models/createintegrationstoredirectop.js +351 -351
- package/esm/models/createlogdrainop.d.ts +3 -0
- package/esm/models/createlogdrainop.d.ts.map +1 -1
- package/esm/models/createlogdrainop.js +1 -0
- package/esm/models/createlogdrainop.js.map +1 -1
- package/esm/models/createprojectop.d.ts +67 -15
- package/esm/models/createprojectop.d.ts.map +1 -1
- package/esm/models/createprojectop.js +47 -6
- package/esm/models/createprojectop.js.map +1 -1
- package/esm/models/getconfigurationproductsop.d.ts +375 -375
- package/esm/models/getconfigurationproductsop.js +465 -465
- package/esm/models/getdeploymentop.d.ts +212 -2
- package/esm/models/getdeploymentop.d.ts.map +1 -1
- package/esm/models/getdeploymentop.js +18 -0
- package/esm/models/getdeploymentop.js.map +1 -1
- package/esm/models/getintegrationlogdrainsop.d.ts +3 -0
- package/esm/models/getintegrationlogdrainsop.d.ts.map +1 -1
- package/esm/models/getintegrationlogdrainsop.js +1 -0
- package/esm/models/getintegrationlogdrainsop.js.map +1 -1
- package/esm/models/getprojectclientcertsop.d.ts +97 -0
- package/esm/models/getprojectclientcertsop.d.ts.map +1 -0
- package/esm/models/getprojectclientcertsop.js +87 -0
- package/esm/models/getprojectclientcertsop.js.map +1 -0
- package/esm/models/getprojectsop.d.ts +67 -15
- package/esm/models/getprojectsop.d.ts.map +1 -1
- package/esm/models/getprojectsop.js +47 -6
- package/esm/models/getprojectsop.js.map +1 -1
- package/esm/models/getrollingreleaseop.d.ts +78 -0
- package/esm/models/getrollingreleaseop.d.ts.map +1 -1
- package/esm/models/getrollingreleaseop.js +18 -0
- package/esm/models/getrollingreleaseop.js.map +1 -1
- package/esm/models/updateprojectdatacacheop.d.ts +67 -15
- package/esm/models/updateprojectdatacacheop.d.ts.map +1 -1
- package/esm/models/updateprojectdatacacheop.js +47 -6
- package/esm/models/updateprojectdatacacheop.js.map +1 -1
- package/esm/models/updateprojectop.d.ts +67 -15
- package/esm/models/updateprojectop.d.ts.map +1 -1
- package/esm/models/updateprojectop.js +47 -6
- package/esm/models/updateprojectop.js.map +1 -1
- package/esm/models/updatestaticipsop.d.ts +3 -3
- package/esm/models/updatestaticipsop.js +1 -1
- package/esm/models/updatestaticipsop.js.map +1 -1
- package/esm/models/userevent.d.ts +176 -30
- package/esm/models/userevent.d.ts.map +1 -1
- package/esm/models/userevent.js +136 -12
- package/esm/models/userevent.js.map +1 -1
- package/esm/sdk/logdrains.d.ts +7 -7
- package/esm/sdk/logdrains.js +7 -7
- package/esm/sdk/projects.d.ts +8 -0
- package/esm/sdk/projects.d.ts.map +1 -1
- package/esm/sdk/projects.js +10 -0
- package/esm/sdk/projects.js.map +1 -1
- package/esm/sdk/teams.d.ts +1 -1
- package/esm/sdk/teams.js +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 +6 -2
- package/src/__tests__/domains.test.ts +5 -5
- package/src/__tests__/edgeconfig.test.ts +6 -6
- package/src/__tests__/integrations.test.ts +1 -1
- package/src/__tests__/logdrains.test.ts +4 -4
- package/src/__tests__/projects.test.ts +20 -0
- package/src/__tests__/rollingrelease.test.ts +2 -7
- package/src/__tests__/security.test.ts +1 -11
- package/src/funcs/logDrainsCreateConfigurableLogDrain.ts +1 -1
- package/src/funcs/logDrainsCreateLogDrain.ts +1 -1
- package/src/funcs/logDrainsDeleteConfigurableLogDrain.ts +1 -1
- package/src/funcs/logDrainsDeleteIntegrationLogDrain.ts +1 -1
- package/src/funcs/logDrainsGetAllLogDrains.ts +1 -1
- package/src/funcs/logDrainsGetConfigurableLogDrain.ts +1 -1
- package/src/funcs/logDrainsGetIntegrationLogDrains.ts +1 -1
- package/src/funcs/projectsGetProjectClientCerts.ts +177 -0
- package/src/funcs/teamsInviteUserToTeam.ts +1 -1
- package/src/lib/config.ts +3 -3
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +3 -1
- package/src/mcp-server/tools/logDrainsCreateConfigurableLogDrain.ts +1 -1
- package/src/mcp-server/tools/logDrainsCreateLogDrain.ts +1 -1
- package/src/mcp-server/tools/logDrainsDeleteConfigurableLogDrain.ts +1 -1
- package/src/mcp-server/tools/logDrainsDeleteIntegrationLogDrain.ts +2 -1
- package/src/mcp-server/tools/logDrainsGetAllLogDrains.ts +1 -1
- package/src/mcp-server/tools/logDrainsGetConfigurableLogDrain.ts +1 -1
- package/src/mcp-server/tools/logDrainsGetIntegrationLogDrains.ts +1 -1
- package/src/mcp-server/tools/projectsGetProjectClientCerts.ts +37 -0
- package/src/mcp-server/tools/teamsInviteUserToTeam.ts +1 -1
- package/src/models/approverollingreleasestageop.ts +78 -0
- package/src/models/authuser.ts +100 -0
- package/src/models/canceldeploymentop.ts +106 -1
- package/src/models/completerollingreleaseop.ts +78 -0
- package/src/models/createdeploymentop.ts +106 -1
- package/src/models/createintegrationstoredirectop.ts +604 -604
- package/src/models/createlogdrainop.ts +1 -0
- package/src/models/createprojectop.ts +126 -19
- package/src/models/getconfigurationproductsop.ts +802 -802
- package/src/models/getdeploymentop.ts +212 -2
- package/src/models/getintegrationlogdrainsop.ts +1 -0
- package/src/models/getprojectclientcertsop.ts +207 -0
- package/src/models/getprojectsop.ts +124 -19
- package/src/models/getrollingreleaseop.ts +78 -0
- package/src/models/updateprojectdatacacheop.ts +129 -19
- package/src/models/updateprojectop.ts +126 -19
- package/src/models/updatestaticipsop.ts +1 -1
- package/src/models/userevent.ts +329 -39
- package/src/sdk/logdrains.ts +7 -7
- package/src/sdk/projects.ts +22 -0
- package/src/sdk/teams.ts +1 -1
- package/vercel-spec.json +1092 -278
|
@@ -21,9 +21,21 @@ export type GetDeploymentRequest = {
|
|
|
21
21
|
*/
|
|
22
22
|
slug?: string | undefined;
|
|
23
23
|
};
|
|
24
|
+
/**
|
|
25
|
+
* Information about the deployment creator
|
|
26
|
+
*/
|
|
24
27
|
export type GetDeploymentResponseBodyCreator = {
|
|
28
|
+
/**
|
|
29
|
+
* The ID of the user that created the deployment
|
|
30
|
+
*/
|
|
25
31
|
uid: string;
|
|
32
|
+
/**
|
|
33
|
+
* The username of the user that created the deployment
|
|
34
|
+
*/
|
|
26
35
|
username?: string | undefined;
|
|
36
|
+
/**
|
|
37
|
+
* The avatar of the user that created the deployment
|
|
38
|
+
*/
|
|
27
39
|
avatar?: string | undefined;
|
|
28
40
|
};
|
|
29
41
|
export declare const GetDeploymentResponseBodyDeploymentsReadyState: {
|
|
@@ -57,12 +69,18 @@ export declare const GetDeploymentResponseBodyStatus: {
|
|
|
57
69
|
readonly Canceled: "CANCELED";
|
|
58
70
|
};
|
|
59
71
|
export type GetDeploymentResponseBodyStatus = ClosedEnum<typeof GetDeploymentResponseBodyStatus>;
|
|
72
|
+
/**
|
|
73
|
+
* The team that owns the deployment if any
|
|
74
|
+
*/
|
|
60
75
|
export type ResponseBodyTeam = {
|
|
61
76
|
id: string;
|
|
62
77
|
name: string;
|
|
63
78
|
slug: string;
|
|
64
79
|
avatar?: string | undefined;
|
|
65
80
|
};
|
|
81
|
+
/**
|
|
82
|
+
* If the deployment was created using a Custom Environment, then this property contains information regarding the environment used.
|
|
83
|
+
*/
|
|
66
84
|
export type GetDeploymentCustomEnvironment2 = {
|
|
67
85
|
id: string;
|
|
68
86
|
};
|
|
@@ -135,7 +153,7 @@ export type GetDeploymentCustomEnvironmentDomains = {
|
|
|
135
153
|
verification?: Array<GetDeploymentCustomEnvironmentVerification> | undefined;
|
|
136
154
|
};
|
|
137
155
|
/**
|
|
138
|
-
*
|
|
156
|
+
* If the deployment was created using a Custom Environment, then this property contains information regarding the environment used.
|
|
139
157
|
*/
|
|
140
158
|
export type GetDeploymentCustomEnvironment1 = {
|
|
141
159
|
/**
|
|
@@ -186,6 +204,9 @@ export type ResponseBodyAliasWarning = {
|
|
|
186
204
|
link?: string | undefined;
|
|
187
205
|
action?: string | undefined;
|
|
188
206
|
};
|
|
207
|
+
/**
|
|
208
|
+
* The state of the deployment depending on the process of deploying, or if it is ready or in an error state
|
|
209
|
+
*/
|
|
189
210
|
export declare const GetDeploymentResponseBodyReadyState: {
|
|
190
211
|
readonly Queued: "QUEUED";
|
|
191
212
|
readonly Building: "BUILDING";
|
|
@@ -194,11 +215,17 @@ export declare const GetDeploymentResponseBodyReadyState: {
|
|
|
194
215
|
readonly Ready: "READY";
|
|
195
216
|
readonly Canceled: "CANCELED";
|
|
196
217
|
};
|
|
218
|
+
/**
|
|
219
|
+
* The state of the deployment depending on the process of deploying, or if it is ready or in an error state
|
|
220
|
+
*/
|
|
197
221
|
export type GetDeploymentResponseBodyReadyState = ClosedEnum<typeof GetDeploymentResponseBodyReadyState>;
|
|
198
222
|
export declare const GetDeploymentResponseBodyDeploymentsType: {
|
|
199
223
|
readonly Lambdas: "LAMBDAS";
|
|
200
224
|
};
|
|
201
225
|
export type GetDeploymentResponseBodyDeploymentsType = ClosedEnum<typeof GetDeploymentResponseBodyDeploymentsType>;
|
|
226
|
+
/**
|
|
227
|
+
* An object that will contain a `code` and a `message` when the aliasing fails, otherwise the value will be `null`
|
|
228
|
+
*/
|
|
202
229
|
export type GetDeploymentResponseBodyAliasError = {
|
|
203
230
|
code: string;
|
|
204
231
|
message: string;
|
|
@@ -417,6 +444,9 @@ export declare const GetDeploymentResponseBodyNodeVersion: {
|
|
|
417
444
|
* If set it overrides the `projectSettings.nodeVersion` for this deployment.
|
|
418
445
|
*/
|
|
419
446
|
export type GetDeploymentResponseBodyNodeVersion = ClosedEnum<typeof GetDeploymentResponseBodyNodeVersion>;
|
|
447
|
+
/**
|
|
448
|
+
* The public project information associated with the deployment.
|
|
449
|
+
*/
|
|
420
450
|
export type GetDeploymentResponseBodyProject = {
|
|
421
451
|
id: string;
|
|
422
452
|
name: string;
|
|
@@ -434,6 +464,9 @@ export declare const GetDeploymentResponseBodyReadySubstate: {
|
|
|
434
464
|
* Substate of deployment when readyState is 'READY' Tracks whether or not deployment has seen production traffic: - STAGED: never seen production traffic - ROLLING: in the process of having production traffic gradually transitioned. - PROMOTED: has seen production traffic
|
|
435
465
|
*/
|
|
436
466
|
export type GetDeploymentResponseBodyReadySubstate = ClosedEnum<typeof GetDeploymentResponseBodyReadySubstate>;
|
|
467
|
+
/**
|
|
468
|
+
* Where was the deployment created from
|
|
469
|
+
*/
|
|
437
470
|
export declare const GetDeploymentResponseBodySource: {
|
|
438
471
|
readonly ApiTriggerGitDeploy: "api-trigger-git-deploy";
|
|
439
472
|
readonly Cli: "cli";
|
|
@@ -444,11 +477,20 @@ export declare const GetDeploymentResponseBodySource: {
|
|
|
444
477
|
readonly Redeploy: "redeploy";
|
|
445
478
|
readonly V0Web: "v0-web";
|
|
446
479
|
};
|
|
480
|
+
/**
|
|
481
|
+
* Where was the deployment created from
|
|
482
|
+
*/
|
|
447
483
|
export type GetDeploymentResponseBodySource = ClosedEnum<typeof GetDeploymentResponseBodySource>;
|
|
484
|
+
/**
|
|
485
|
+
* If defined, either `staging` if a staging alias in the format `<project>.<team>.now.sh` was assigned upon creation, or `production` if the aliases from `alias` were assigned. `null` value indicates the "preview" deployment.
|
|
486
|
+
*/
|
|
448
487
|
export declare const GetDeploymentResponseBodyTarget: {
|
|
449
488
|
readonly Staging: "staging";
|
|
450
489
|
readonly Production: "production";
|
|
451
490
|
};
|
|
491
|
+
/**
|
|
492
|
+
* If defined, either `staging` if a staging alias in the format `<project>.<team>.now.sh` was assigned upon creation, or `production` if the aliases from `alias` were assigned. `null` value indicates the "preview" deployment.
|
|
493
|
+
*/
|
|
452
494
|
export type GetDeploymentResponseBodyTarget = ClosedEnum<typeof GetDeploymentResponseBodyTarget>;
|
|
453
495
|
export type GetDeploymentResponseBodyOidcTokenClaims = {
|
|
454
496
|
iss: string;
|
|
@@ -465,7 +507,13 @@ export type GetDeploymentResponseBodyOidcTokenClaims = {
|
|
|
465
507
|
* The deployment including only public information
|
|
466
508
|
*/
|
|
467
509
|
export type GetDeploymentResponseBody2 = {
|
|
510
|
+
/**
|
|
511
|
+
* A list of all the aliases (default aliases, staging aliases and production aliases) that were assigned upon deployment creation
|
|
512
|
+
*/
|
|
468
513
|
alias?: Array<string> | undefined;
|
|
514
|
+
/**
|
|
515
|
+
* A boolean that will be true when the aliases from the alias property were assigned successfully
|
|
516
|
+
*/
|
|
469
517
|
aliasAssigned: boolean;
|
|
470
518
|
bootedAt: number;
|
|
471
519
|
buildingAt: number;
|
|
@@ -474,25 +522,55 @@ export type GetDeploymentResponseBody2 = {
|
|
|
474
522
|
*/
|
|
475
523
|
buildContainerFinishedAt?: number | undefined;
|
|
476
524
|
buildSkipped: boolean;
|
|
525
|
+
/**
|
|
526
|
+
* Information about the deployment creator
|
|
527
|
+
*/
|
|
477
528
|
creator: GetDeploymentResponseBodyCreator;
|
|
478
529
|
initReadyAt?: number | undefined;
|
|
479
530
|
isFirstBranchDeployment?: boolean | undefined;
|
|
480
531
|
lambdas?: Array<ResponseBodyLambdas> | undefined;
|
|
532
|
+
/**
|
|
533
|
+
* A boolean representing if the deployment is public or not. By default this is `false`
|
|
534
|
+
*/
|
|
481
535
|
public: boolean;
|
|
482
536
|
ready?: number | undefined;
|
|
483
537
|
status: GetDeploymentResponseBodyStatus;
|
|
538
|
+
/**
|
|
539
|
+
* The team that owns the deployment if any
|
|
540
|
+
*/
|
|
484
541
|
team?: ResponseBodyTeam | undefined;
|
|
542
|
+
/**
|
|
543
|
+
* An array of domains that were provided by the user when creating the Deployment.
|
|
544
|
+
*/
|
|
485
545
|
userAliases?: Array<string> | undefined;
|
|
546
|
+
/**
|
|
547
|
+
* Whether or not preview comments are enabled for the deployment
|
|
548
|
+
*/
|
|
486
549
|
previewCommentsEnabled?: boolean | undefined;
|
|
487
550
|
ttyBuildLogs?: boolean | undefined;
|
|
488
551
|
customEnvironment?: GetDeploymentCustomEnvironment1 | GetDeploymentCustomEnvironment2 | undefined;
|
|
489
552
|
oomReport?: ResponseBodyOomReport | undefined;
|
|
490
553
|
aliasWarning?: ResponseBodyAliasWarning | null | undefined;
|
|
554
|
+
/**
|
|
555
|
+
* A string holding the unique ID of the deployment
|
|
556
|
+
*/
|
|
491
557
|
id: string;
|
|
558
|
+
/**
|
|
559
|
+
* A number containing the date when the deployment was created in milliseconds
|
|
560
|
+
*/
|
|
492
561
|
createdAt: number;
|
|
562
|
+
/**
|
|
563
|
+
* The state of the deployment depending on the process of deploying, or if it is ready or in an error state
|
|
564
|
+
*/
|
|
493
565
|
readyState: GetDeploymentResponseBodyReadyState;
|
|
566
|
+
/**
|
|
567
|
+
* The name of the project associated with the deployment at the time that the deployment was created
|
|
568
|
+
*/
|
|
494
569
|
name: string;
|
|
495
570
|
type: GetDeploymentResponseBodyDeploymentsType;
|
|
571
|
+
/**
|
|
572
|
+
* An object that will contain a `code` and a `message` when the aliasing fails, otherwise the value will be `null`
|
|
573
|
+
*/
|
|
496
574
|
aliasError?: GetDeploymentResponseBodyAliasError | null | undefined;
|
|
497
575
|
aliasFinal?: string | null | undefined;
|
|
498
576
|
/**
|
|
@@ -503,6 +581,9 @@ export type GetDeploymentResponseBody2 = {
|
|
|
503
581
|
buildErrorAt?: number | undefined;
|
|
504
582
|
checksState?: GetDeploymentResponseBodyChecksState | undefined;
|
|
505
583
|
checksConclusion?: GetDeploymentResponseBodyChecksConclusion | undefined;
|
|
584
|
+
/**
|
|
585
|
+
* A number containing the date when the deployment was deleted at milliseconds
|
|
586
|
+
*/
|
|
506
587
|
deletedAt?: number | null | undefined;
|
|
507
588
|
/**
|
|
508
589
|
* Computed field that is only available for deployments with a microfrontend configuration.
|
|
@@ -526,17 +607,41 @@ export type GetDeploymentResponseBody2 = {
|
|
|
526
607
|
* If set it overrides the `projectSettings.nodeVersion` for this deployment.
|
|
527
608
|
*/
|
|
528
609
|
nodeVersion?: GetDeploymentResponseBodyNodeVersion | undefined;
|
|
610
|
+
/**
|
|
611
|
+
* The public project information associated with the deployment.
|
|
612
|
+
*/
|
|
529
613
|
project?: GetDeploymentResponseBodyProject | undefined;
|
|
530
614
|
/**
|
|
531
615
|
* Substate of deployment when readyState is 'READY' Tracks whether or not deployment has seen production traffic: - STAGED: never seen production traffic - ROLLING: in the process of having production traffic gradually transitioned. - PROMOTED: has seen production traffic
|
|
532
616
|
*/
|
|
533
617
|
readySubstate?: GetDeploymentResponseBodyReadySubstate | undefined;
|
|
618
|
+
/**
|
|
619
|
+
* The regions the deployment exists in
|
|
620
|
+
*/
|
|
534
621
|
regions: Array<string>;
|
|
622
|
+
/**
|
|
623
|
+
* flag to indicate if the deployment was deleted by retention policy
|
|
624
|
+
*/
|
|
535
625
|
softDeletedByRetention?: boolean | undefined;
|
|
626
|
+
/**
|
|
627
|
+
* Where was the deployment created from
|
|
628
|
+
*/
|
|
536
629
|
source?: GetDeploymentResponseBodySource | undefined;
|
|
630
|
+
/**
|
|
631
|
+
* If defined, either `staging` if a staging alias in the format `<project>.<team>.now.sh` was assigned upon creation, or `production` if the aliases from `alias` were assigned. `null` value indicates the "preview" deployment.
|
|
632
|
+
*/
|
|
537
633
|
target?: GetDeploymentResponseBodyTarget | null | undefined;
|
|
634
|
+
/**
|
|
635
|
+
* A number containing the date when the deployment was undeleted at milliseconds
|
|
636
|
+
*/
|
|
538
637
|
undeletedAt?: number | undefined;
|
|
638
|
+
/**
|
|
639
|
+
* A string with the unique URL of the deployment
|
|
640
|
+
*/
|
|
539
641
|
url: string;
|
|
642
|
+
/**
|
|
643
|
+
* The platform version that was used to create the deployment.
|
|
644
|
+
*/
|
|
540
645
|
version: number;
|
|
541
646
|
oidcTokenClaims?: GetDeploymentResponseBodyOidcTokenClaims | undefined;
|
|
542
647
|
};
|
|
@@ -714,9 +819,21 @@ export type ResponseBodyImages = {
|
|
|
714
819
|
contentSecurityPolicy?: string | undefined;
|
|
715
820
|
contentDispositionType?: ResponseBodyContentDispositionType | undefined;
|
|
716
821
|
};
|
|
822
|
+
/**
|
|
823
|
+
* Information about the deployment creator
|
|
824
|
+
*/
|
|
717
825
|
export type ResponseBodyCreator = {
|
|
826
|
+
/**
|
|
827
|
+
* The ID of the user that created the deployment
|
|
828
|
+
*/
|
|
718
829
|
uid: string;
|
|
830
|
+
/**
|
|
831
|
+
* The username of the user that created the deployment
|
|
832
|
+
*/
|
|
719
833
|
username?: string | undefined;
|
|
834
|
+
/**
|
|
835
|
+
* The avatar of the user that created the deployment
|
|
836
|
+
*/
|
|
720
837
|
avatar?: string | undefined;
|
|
721
838
|
};
|
|
722
839
|
export declare const GetDeploymentResponseBodyDeploymentsResponseReadyState: {
|
|
@@ -750,12 +867,18 @@ export declare const ResponseBodyStatus: {
|
|
|
750
867
|
readonly Canceled: "CANCELED";
|
|
751
868
|
};
|
|
752
869
|
export type ResponseBodyStatus = ClosedEnum<typeof ResponseBodyStatus>;
|
|
870
|
+
/**
|
|
871
|
+
* The team that owns the deployment if any
|
|
872
|
+
*/
|
|
753
873
|
export type GetDeploymentResponseBodyTeam = {
|
|
754
874
|
id: string;
|
|
755
875
|
name: string;
|
|
756
876
|
slug: string;
|
|
757
877
|
avatar?: string | undefined;
|
|
758
878
|
};
|
|
879
|
+
/**
|
|
880
|
+
* If the deployment was created using a Custom Environment, then this property contains information regarding the environment used.
|
|
881
|
+
*/
|
|
759
882
|
export type GetDeploymentCustomEnvironmentDeployments2 = {
|
|
760
883
|
id: string;
|
|
761
884
|
};
|
|
@@ -828,7 +951,7 @@ export type GetDeploymentCustomEnvironmentDeploymentsDomains = {
|
|
|
828
951
|
verification?: Array<GetDeploymentCustomEnvironmentDeploymentsVerification> | undefined;
|
|
829
952
|
};
|
|
830
953
|
/**
|
|
831
|
-
*
|
|
954
|
+
* If the deployment was created using a Custom Environment, then this property contains information regarding the environment used.
|
|
832
955
|
*/
|
|
833
956
|
export type GetDeploymentCustomEnvironmentDeployments1 = {
|
|
834
957
|
/**
|
|
@@ -879,6 +1002,9 @@ export type GetDeploymentResponseBodyAliasWarning = {
|
|
|
879
1002
|
link?: string | undefined;
|
|
880
1003
|
action?: string | undefined;
|
|
881
1004
|
};
|
|
1005
|
+
/**
|
|
1006
|
+
* The state of the deployment depending on the process of deploying, or if it is ready or in an error state
|
|
1007
|
+
*/
|
|
882
1008
|
export declare const ResponseBodyReadyState: {
|
|
883
1009
|
readonly Queued: "QUEUED";
|
|
884
1010
|
readonly Building: "BUILDING";
|
|
@@ -887,11 +1013,17 @@ export declare const ResponseBodyReadyState: {
|
|
|
887
1013
|
readonly Ready: "READY";
|
|
888
1014
|
readonly Canceled: "CANCELED";
|
|
889
1015
|
};
|
|
1016
|
+
/**
|
|
1017
|
+
* The state of the deployment depending on the process of deploying, or if it is ready or in an error state
|
|
1018
|
+
*/
|
|
890
1019
|
export type ResponseBodyReadyState = ClosedEnum<typeof ResponseBodyReadyState>;
|
|
891
1020
|
export declare const GetDeploymentResponseBodyType: {
|
|
892
1021
|
readonly Lambdas: "LAMBDAS";
|
|
893
1022
|
};
|
|
894
1023
|
export type GetDeploymentResponseBodyType = ClosedEnum<typeof GetDeploymentResponseBodyType>;
|
|
1024
|
+
/**
|
|
1025
|
+
* An object that will contain a `code` and a `message` when the aliasing fails, otherwise the value will be `null`
|
|
1026
|
+
*/
|
|
895
1027
|
export type ResponseBodyAliasError = {
|
|
896
1028
|
code: string;
|
|
897
1029
|
message: string;
|
|
@@ -1110,6 +1242,9 @@ export declare const ResponseBodyNodeVersion: {
|
|
|
1110
1242
|
* If set it overrides the `projectSettings.nodeVersion` for this deployment.
|
|
1111
1243
|
*/
|
|
1112
1244
|
export type ResponseBodyNodeVersion = ClosedEnum<typeof ResponseBodyNodeVersion>;
|
|
1245
|
+
/**
|
|
1246
|
+
* The public project information associated with the deployment.
|
|
1247
|
+
*/
|
|
1113
1248
|
export type ResponseBodyProject = {
|
|
1114
1249
|
id: string;
|
|
1115
1250
|
name: string;
|
|
@@ -1127,6 +1262,9 @@ export declare const ResponseBodyReadySubstate: {
|
|
|
1127
1262
|
* Substate of deployment when readyState is 'READY' Tracks whether or not deployment has seen production traffic: - STAGED: never seen production traffic - ROLLING: in the process of having production traffic gradually transitioned. - PROMOTED: has seen production traffic
|
|
1128
1263
|
*/
|
|
1129
1264
|
export type ResponseBodyReadySubstate = ClosedEnum<typeof ResponseBodyReadySubstate>;
|
|
1265
|
+
/**
|
|
1266
|
+
* Where was the deployment created from
|
|
1267
|
+
*/
|
|
1130
1268
|
export declare const ResponseBodySource: {
|
|
1131
1269
|
readonly ApiTriggerGitDeploy: "api-trigger-git-deploy";
|
|
1132
1270
|
readonly Cli: "cli";
|
|
@@ -1137,11 +1275,20 @@ export declare const ResponseBodySource: {
|
|
|
1137
1275
|
readonly Redeploy: "redeploy";
|
|
1138
1276
|
readonly V0Web: "v0-web";
|
|
1139
1277
|
};
|
|
1278
|
+
/**
|
|
1279
|
+
* Where was the deployment created from
|
|
1280
|
+
*/
|
|
1140
1281
|
export type ResponseBodySource = ClosedEnum<typeof ResponseBodySource>;
|
|
1282
|
+
/**
|
|
1283
|
+
* If defined, either `staging` if a staging alias in the format `<project>.<team>.now.sh` was assigned upon creation, or `production` if the aliases from `alias` were assigned. `null` value indicates the "preview" deployment.
|
|
1284
|
+
*/
|
|
1141
1285
|
export declare const ResponseBodyTarget: {
|
|
1142
1286
|
readonly Staging: "staging";
|
|
1143
1287
|
readonly Production: "production";
|
|
1144
1288
|
};
|
|
1289
|
+
/**
|
|
1290
|
+
* If defined, either `staging` if a staging alias in the format `<project>.<team>.now.sh` was assigned upon creation, or `production` if the aliases from `alias` were assigned. `null` value indicates the "preview" deployment.
|
|
1291
|
+
*/
|
|
1145
1292
|
export type ResponseBodyTarget = ClosedEnum<typeof ResponseBodyTarget>;
|
|
1146
1293
|
export type ResponseBodyOidcTokenClaims = {
|
|
1147
1294
|
iss: string;
|
|
@@ -1641,7 +1788,13 @@ export type GetDeploymentResponseBody1 = {
|
|
|
1641
1788
|
readyStateReason?: string | undefined;
|
|
1642
1789
|
integrations?: ResponseBodyIntegrations | undefined;
|
|
1643
1790
|
images?: ResponseBodyImages | undefined;
|
|
1791
|
+
/**
|
|
1792
|
+
* A list of all the aliases (default aliases, staging aliases and production aliases) that were assigned upon deployment creation
|
|
1793
|
+
*/
|
|
1644
1794
|
alias?: Array<string> | undefined;
|
|
1795
|
+
/**
|
|
1796
|
+
* A boolean that will be true when the aliases from the alias property were assigned successfully
|
|
1797
|
+
*/
|
|
1645
1798
|
aliasAssigned: boolean;
|
|
1646
1799
|
bootedAt: number;
|
|
1647
1800
|
buildingAt: number;
|
|
@@ -1650,25 +1803,55 @@ export type GetDeploymentResponseBody1 = {
|
|
|
1650
1803
|
*/
|
|
1651
1804
|
buildContainerFinishedAt?: number | undefined;
|
|
1652
1805
|
buildSkipped: boolean;
|
|
1806
|
+
/**
|
|
1807
|
+
* Information about the deployment creator
|
|
1808
|
+
*/
|
|
1653
1809
|
creator: ResponseBodyCreator;
|
|
1654
1810
|
initReadyAt?: number | undefined;
|
|
1655
1811
|
isFirstBranchDeployment?: boolean | undefined;
|
|
1656
1812
|
lambdas?: Array<GetDeploymentResponseBodyLambdas> | undefined;
|
|
1813
|
+
/**
|
|
1814
|
+
* A boolean representing if the deployment is public or not. By default this is `false`
|
|
1815
|
+
*/
|
|
1657
1816
|
public: boolean;
|
|
1658
1817
|
ready?: number | undefined;
|
|
1659
1818
|
status: ResponseBodyStatus;
|
|
1819
|
+
/**
|
|
1820
|
+
* The team that owns the deployment if any
|
|
1821
|
+
*/
|
|
1660
1822
|
team?: GetDeploymentResponseBodyTeam | undefined;
|
|
1823
|
+
/**
|
|
1824
|
+
* An array of domains that were provided by the user when creating the Deployment.
|
|
1825
|
+
*/
|
|
1661
1826
|
userAliases?: Array<string> | undefined;
|
|
1827
|
+
/**
|
|
1828
|
+
* Whether or not preview comments are enabled for the deployment
|
|
1829
|
+
*/
|
|
1662
1830
|
previewCommentsEnabled?: boolean | undefined;
|
|
1663
1831
|
ttyBuildLogs?: boolean | undefined;
|
|
1664
1832
|
customEnvironment?: GetDeploymentCustomEnvironmentDeployments1 | GetDeploymentCustomEnvironmentDeployments2 | undefined;
|
|
1665
1833
|
oomReport?: GetDeploymentResponseBodyOomReport | undefined;
|
|
1666
1834
|
aliasWarning?: GetDeploymentResponseBodyAliasWarning | null | undefined;
|
|
1835
|
+
/**
|
|
1836
|
+
* A string holding the unique ID of the deployment
|
|
1837
|
+
*/
|
|
1667
1838
|
id: string;
|
|
1839
|
+
/**
|
|
1840
|
+
* A number containing the date when the deployment was created in milliseconds
|
|
1841
|
+
*/
|
|
1668
1842
|
createdAt: number;
|
|
1843
|
+
/**
|
|
1844
|
+
* The state of the deployment depending on the process of deploying, or if it is ready or in an error state
|
|
1845
|
+
*/
|
|
1669
1846
|
readyState: ResponseBodyReadyState;
|
|
1847
|
+
/**
|
|
1848
|
+
* The name of the project associated with the deployment at the time that the deployment was created
|
|
1849
|
+
*/
|
|
1670
1850
|
name: string;
|
|
1671
1851
|
type: GetDeploymentResponseBodyType;
|
|
1852
|
+
/**
|
|
1853
|
+
* An object that will contain a `code` and a `message` when the aliasing fails, otherwise the value will be `null`
|
|
1854
|
+
*/
|
|
1672
1855
|
aliasError?: ResponseBodyAliasError | null | undefined;
|
|
1673
1856
|
aliasFinal?: string | null | undefined;
|
|
1674
1857
|
/**
|
|
@@ -1679,6 +1862,9 @@ export type GetDeploymentResponseBody1 = {
|
|
|
1679
1862
|
buildErrorAt?: number | undefined;
|
|
1680
1863
|
checksState?: ResponseBodyChecksState | undefined;
|
|
1681
1864
|
checksConclusion?: ResponseBodyChecksConclusion | undefined;
|
|
1865
|
+
/**
|
|
1866
|
+
* A number containing the date when the deployment was deleted at milliseconds
|
|
1867
|
+
*/
|
|
1682
1868
|
deletedAt?: number | null | undefined;
|
|
1683
1869
|
/**
|
|
1684
1870
|
* Computed field that is only available for deployments with a microfrontend configuration.
|
|
@@ -1702,17 +1888,41 @@ export type GetDeploymentResponseBody1 = {
|
|
|
1702
1888
|
* If set it overrides the `projectSettings.nodeVersion` for this deployment.
|
|
1703
1889
|
*/
|
|
1704
1890
|
nodeVersion?: ResponseBodyNodeVersion | undefined;
|
|
1891
|
+
/**
|
|
1892
|
+
* The public project information associated with the deployment.
|
|
1893
|
+
*/
|
|
1705
1894
|
project?: ResponseBodyProject | undefined;
|
|
1706
1895
|
/**
|
|
1707
1896
|
* Substate of deployment when readyState is 'READY' Tracks whether or not deployment has seen production traffic: - STAGED: never seen production traffic - ROLLING: in the process of having production traffic gradually transitioned. - PROMOTED: has seen production traffic
|
|
1708
1897
|
*/
|
|
1709
1898
|
readySubstate?: ResponseBodyReadySubstate | undefined;
|
|
1899
|
+
/**
|
|
1900
|
+
* The regions the deployment exists in
|
|
1901
|
+
*/
|
|
1710
1902
|
regions: Array<string>;
|
|
1903
|
+
/**
|
|
1904
|
+
* flag to indicate if the deployment was deleted by retention policy
|
|
1905
|
+
*/
|
|
1711
1906
|
softDeletedByRetention?: boolean | undefined;
|
|
1907
|
+
/**
|
|
1908
|
+
* Where was the deployment created from
|
|
1909
|
+
*/
|
|
1712
1910
|
source?: ResponseBodySource | undefined;
|
|
1911
|
+
/**
|
|
1912
|
+
* If defined, either `staging` if a staging alias in the format `<project>.<team>.now.sh` was assigned upon creation, or `production` if the aliases from `alias` were assigned. `null` value indicates the "preview" deployment.
|
|
1913
|
+
*/
|
|
1713
1914
|
target?: ResponseBodyTarget | null | undefined;
|
|
1915
|
+
/**
|
|
1916
|
+
* A number containing the date when the deployment was undeleted at milliseconds
|
|
1917
|
+
*/
|
|
1714
1918
|
undeletedAt?: number | undefined;
|
|
1919
|
+
/**
|
|
1920
|
+
* A string with the unique URL of the deployment
|
|
1921
|
+
*/
|
|
1715
1922
|
url: string;
|
|
1923
|
+
/**
|
|
1924
|
+
* The platform version that was used to create the deployment.
|
|
1925
|
+
*/
|
|
1716
1926
|
version: number;
|
|
1717
1927
|
oidcTokenClaims?: ResponseBodyOidcTokenClaims | undefined;
|
|
1718
1928
|
projectId: string;
|