@vercel/sdk 1.18.1 → 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 +1734 -1643
- package/bin/mcp-server.js.map +23 -26
- package/esm/__tests__/domains.test.js +10 -27
- 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__/security.test.js +4 -4
- package/esm/__tests__/security.test.js.map +1 -1
- package/esm/funcs/integrationsGetBillingPlans.js +1 -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/canceldeploymentop.d.ts +2 -2
- package/esm/models/canceldeploymentop.d.ts.map +1 -1
- package/esm/models/canceldeploymentop.js +2 -2
- package/esm/models/canceldeploymentop.js.map +1 -1
- package/esm/models/createdeploymentop.d.ts +2 -2
- package/esm/models/createdeploymentop.d.ts.map +1 -1
- package/esm/models/createdeploymentop.js +2 -2
- package/esm/models/createdeploymentop.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 +26 -4
- package/esm/models/createprojectop.d.ts.map +1 -1
- package/esm/models/createprojectop.js +23 -4
- package/esm/models/createprojectop.js.map +1 -1
- package/esm/models/getbillingplansop.d.ts +2 -0
- package/esm/models/getbillingplansop.d.ts.map +1 -1
- package/esm/models/getbillingplansop.js +2 -0
- package/esm/models/getbillingplansop.js.map +1 -1
- package/esm/models/getconfigurationop.d.ts +61 -1
- package/esm/models/getconfigurationop.d.ts.map +1 -1
- package/esm/models/getconfigurationop.js +44 -1
- 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 +60 -0
- package/esm/models/getconfigurationsop.d.ts.map +1 -1
- package/esm/models/getconfigurationsop.js +43 -0
- package/esm/models/getconfigurationsop.js.map +1 -1
- package/esm/models/getdeploymentop.d.ts +4 -4
- package/esm/models/getdeploymentop.d.ts.map +1 -1
- package/esm/models/getdeploymentop.js +4 -4
- package/esm/models/getdeploymentop.js.map +1 -1
- package/esm/models/getorderop.d.ts +126 -42
- 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 +21 -4
- package/esm/models/getprojectsop.d.ts.map +1 -1
- package/esm/models/getprojectsop.js +21 -4
- package/esm/models/getprojectsop.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 +21 -4
- package/esm/models/updateprojectdatacacheop.d.ts.map +1 -1
- package/esm/models/updateprojectdatacacheop.js +21 -4
- package/esm/models/updateprojectdatacacheop.js.map +1 -1
- package/esm/models/updateprojectop.d.ts +26 -4
- package/esm/models/updateprojectop.d.ts.map +1 -1
- package/esm/models/updateprojectop.js +23 -4
- package/esm/models/updateprojectop.js.map +1 -1
- package/esm/models/userevent.d.ts +38 -0
- package/esm/models/userevent.d.ts.map +1 -1
- package/esm/models/userevent.js +34 -0
- 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__/domains.test.ts +12 -29
- package/src/__tests__/edgeconfig.test.ts +6 -6
- package/src/__tests__/integrations.test.ts +1 -1
- package/src/__tests__/security.test.ts +4 -4
- package/src/funcs/integrationsGetBillingPlans.ts +1 -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/canceldeploymentop.ts +4 -4
- package/src/models/createdeploymentop.ts +4 -4
- package/src/models/createintegrationstoredirectop.ts +704 -471
- package/src/models/createprojectop.ts +53 -8
- package/src/models/getbillingplansop.ts +4 -0
- package/src/models/getconfigurationop.ts +87 -1
- package/src/models/getconfigurationproductsop.ts +627 -627
- package/src/models/getconfigurationsop.ts +86 -0
- package/src/models/getdeploymentop.ts +8 -8
- package/src/models/getorderop.ts +469 -112
- package/src/models/getprojectsop.ts +46 -8
- package/src/models/updateinstallationop.ts +30 -0
- package/src/models/updateprojectdatacacheop.ts +46 -8
- package/src/models/updateprojectop.ts +53 -8
- package/src/models/userevent.ts +80 -0
- package/src/sdk/domains.ts +0 -22
- package/vercel-spec.json +480 -258
|
@@ -78,6 +78,25 @@ export type ResponseBodyIntegration = {
|
|
|
78
78
|
tagIds?: Array<TagIds> | undefined;
|
|
79
79
|
};
|
|
80
80
|
|
|
81
|
+
/**
|
|
82
|
+
* The configuration status. Optional. If not defined, assume 'ready'.
|
|
83
|
+
*/
|
|
84
|
+
export const GetConfigurationsResponseBodyIntegrationsStatus = {
|
|
85
|
+
Pending: "pending",
|
|
86
|
+
Ready: "ready",
|
|
87
|
+
Onboarding: "onboarding",
|
|
88
|
+
Suspended: "suspended",
|
|
89
|
+
Resumed: "resumed",
|
|
90
|
+
Error: "error",
|
|
91
|
+
Uninstalled: "uninstalled",
|
|
92
|
+
} as const;
|
|
93
|
+
/**
|
|
94
|
+
* The configuration status. Optional. If not defined, assume 'ready'.
|
|
95
|
+
*/
|
|
96
|
+
export type GetConfigurationsResponseBodyIntegrationsStatus = ClosedEnum<
|
|
97
|
+
typeof GetConfigurationsResponseBodyIntegrationsStatus
|
|
98
|
+
>;
|
|
99
|
+
|
|
81
100
|
export const GetConfigurationsResponseBodyIntegrationsType = {
|
|
82
101
|
IntegrationConfiguration: "integration-configuration",
|
|
83
102
|
} as const;
|
|
@@ -132,6 +151,14 @@ export type GetConfigurationsResponseBody2 = {
|
|
|
132
151
|
* The user or team ID that owns the configuration
|
|
133
152
|
*/
|
|
134
153
|
ownerId: string;
|
|
154
|
+
/**
|
|
155
|
+
* The configuration status. Optional. If not defined, assume 'ready'.
|
|
156
|
+
*/
|
|
157
|
+
status?: GetConfigurationsResponseBodyIntegrationsStatus | undefined;
|
|
158
|
+
/**
|
|
159
|
+
* An external identifier defined by the integration vendor.
|
|
160
|
+
*/
|
|
161
|
+
externalId?: string | undefined;
|
|
135
162
|
/**
|
|
136
163
|
* When a configuration is limited to access certain projects, this will contain each of the project ID it is allowed to access. If it is not defined, the configuration has full access.
|
|
137
164
|
*/
|
|
@@ -182,6 +209,25 @@ export type GetConfigurationsResponseBody2 = {
|
|
|
182
209
|
installationType?: GetConfigurationsResponseBodyInstallationType | undefined;
|
|
183
210
|
};
|
|
184
211
|
|
|
212
|
+
/**
|
|
213
|
+
* The configuration status. Optional. If not defined, assume 'ready'.
|
|
214
|
+
*/
|
|
215
|
+
export const GetConfigurationsResponseBodyStatus = {
|
|
216
|
+
Pending: "pending",
|
|
217
|
+
Ready: "ready",
|
|
218
|
+
Onboarding: "onboarding",
|
|
219
|
+
Suspended: "suspended",
|
|
220
|
+
Resumed: "resumed",
|
|
221
|
+
Error: "error",
|
|
222
|
+
Uninstalled: "uninstalled",
|
|
223
|
+
} as const;
|
|
224
|
+
/**
|
|
225
|
+
* The configuration status. Optional. If not defined, assume 'ready'.
|
|
226
|
+
*/
|
|
227
|
+
export type GetConfigurationsResponseBodyStatus = ClosedEnum<
|
|
228
|
+
typeof GetConfigurationsResponseBodyStatus
|
|
229
|
+
>;
|
|
230
|
+
|
|
185
231
|
export const GetConfigurationsResponseBodyType = {
|
|
186
232
|
IntegrationConfiguration: "integration-configuration",
|
|
187
233
|
} as const;
|
|
@@ -239,6 +285,14 @@ export type GetConfigurationsResponseBody1 = {
|
|
|
239
285
|
* The user or team ID that owns the configuration
|
|
240
286
|
*/
|
|
241
287
|
ownerId?: string | undefined;
|
|
288
|
+
/**
|
|
289
|
+
* The configuration status. Optional. If not defined, assume 'ready'.
|
|
290
|
+
*/
|
|
291
|
+
status?: GetConfigurationsResponseBodyStatus | undefined;
|
|
292
|
+
/**
|
|
293
|
+
* An external identifier defined by the integration vendor.
|
|
294
|
+
*/
|
|
295
|
+
externalId?: string | undefined;
|
|
242
296
|
/**
|
|
243
297
|
* When a configuration is limited to access certain projects, this will contain each of the project ID it is allowed to access. If it is not defined, the configuration has full access.
|
|
244
298
|
*/
|
|
@@ -423,6 +477,15 @@ export function responseBodyIntegrationFromJSON(
|
|
|
423
477
|
);
|
|
424
478
|
}
|
|
425
479
|
|
|
480
|
+
/** @internal */
|
|
481
|
+
export const GetConfigurationsResponseBodyIntegrationsStatus$inboundSchema:
|
|
482
|
+
z.ZodNativeEnum<typeof GetConfigurationsResponseBodyIntegrationsStatus> = z
|
|
483
|
+
.nativeEnum(GetConfigurationsResponseBodyIntegrationsStatus);
|
|
484
|
+
/** @internal */
|
|
485
|
+
export const GetConfigurationsResponseBodyIntegrationsStatus$outboundSchema:
|
|
486
|
+
z.ZodNativeEnum<typeof GetConfigurationsResponseBodyIntegrationsStatus> =
|
|
487
|
+
GetConfigurationsResponseBodyIntegrationsStatus$inboundSchema;
|
|
488
|
+
|
|
426
489
|
/** @internal */
|
|
427
490
|
export const GetConfigurationsResponseBodyIntegrationsType$inboundSchema:
|
|
428
491
|
z.ZodNativeEnum<typeof GetConfigurationsResponseBodyIntegrationsType> = z
|
|
@@ -464,6 +527,9 @@ export const GetConfigurationsResponseBody2$inboundSchema: z.ZodType<
|
|
|
464
527
|
id: z.string(),
|
|
465
528
|
integrationId: z.string(),
|
|
466
529
|
ownerId: z.string(),
|
|
530
|
+
status: GetConfigurationsResponseBodyIntegrationsStatus$inboundSchema
|
|
531
|
+
.optional(),
|
|
532
|
+
externalId: z.string().optional(),
|
|
467
533
|
projects: z.array(z.string()).optional(),
|
|
468
534
|
source: z.string().optional(),
|
|
469
535
|
slug: z.string(),
|
|
@@ -489,6 +555,8 @@ export type GetConfigurationsResponseBody2$Outbound = {
|
|
|
489
555
|
id: string;
|
|
490
556
|
integrationId: string;
|
|
491
557
|
ownerId: string;
|
|
558
|
+
status?: string | undefined;
|
|
559
|
+
externalId?: string | undefined;
|
|
492
560
|
projects?: Array<string> | undefined;
|
|
493
561
|
source?: string | undefined;
|
|
494
562
|
slug: string;
|
|
@@ -516,6 +584,9 @@ export const GetConfigurationsResponseBody2$outboundSchema: z.ZodType<
|
|
|
516
584
|
id: z.string(),
|
|
517
585
|
integrationId: z.string(),
|
|
518
586
|
ownerId: z.string(),
|
|
587
|
+
status: GetConfigurationsResponseBodyIntegrationsStatus$outboundSchema
|
|
588
|
+
.optional(),
|
|
589
|
+
externalId: z.string().optional(),
|
|
519
590
|
projects: z.array(z.string()).optional(),
|
|
520
591
|
source: z.string().optional(),
|
|
521
592
|
slug: z.string(),
|
|
@@ -553,6 +624,15 @@ export function getConfigurationsResponseBody2FromJSON(
|
|
|
553
624
|
);
|
|
554
625
|
}
|
|
555
626
|
|
|
627
|
+
/** @internal */
|
|
628
|
+
export const GetConfigurationsResponseBodyStatus$inboundSchema: z.ZodNativeEnum<
|
|
629
|
+
typeof GetConfigurationsResponseBodyStatus
|
|
630
|
+
> = z.nativeEnum(GetConfigurationsResponseBodyStatus);
|
|
631
|
+
/** @internal */
|
|
632
|
+
export const GetConfigurationsResponseBodyStatus$outboundSchema:
|
|
633
|
+
z.ZodNativeEnum<typeof GetConfigurationsResponseBodyStatus> =
|
|
634
|
+
GetConfigurationsResponseBodyStatus$inboundSchema;
|
|
635
|
+
|
|
556
636
|
/** @internal */
|
|
557
637
|
export const GetConfigurationsResponseBodyType$inboundSchema: z.ZodNativeEnum<
|
|
558
638
|
typeof GetConfigurationsResponseBodyType
|
|
@@ -591,6 +671,8 @@ export const GetConfigurationsResponseBody1$inboundSchema: z.ZodType<
|
|
|
591
671
|
id: z.string().optional(),
|
|
592
672
|
integrationId: z.string().optional(),
|
|
593
673
|
ownerId: z.string().optional(),
|
|
674
|
+
status: GetConfigurationsResponseBodyStatus$inboundSchema.optional(),
|
|
675
|
+
externalId: z.string().optional(),
|
|
594
676
|
projects: z.array(z.string()).optional(),
|
|
595
677
|
source: z.string().optional(),
|
|
596
678
|
slug: z.string().optional(),
|
|
@@ -613,6 +695,8 @@ export type GetConfigurationsResponseBody1$Outbound = {
|
|
|
613
695
|
id?: string | undefined;
|
|
614
696
|
integrationId?: string | undefined;
|
|
615
697
|
ownerId?: string | undefined;
|
|
698
|
+
status?: string | undefined;
|
|
699
|
+
externalId?: string | undefined;
|
|
616
700
|
projects?: Array<string> | undefined;
|
|
617
701
|
source?: string | undefined;
|
|
618
702
|
slug?: string | undefined;
|
|
@@ -639,6 +723,8 @@ export const GetConfigurationsResponseBody1$outboundSchema: z.ZodType<
|
|
|
639
723
|
id: z.string().optional(),
|
|
640
724
|
integrationId: z.string().optional(),
|
|
641
725
|
ownerId: z.string().optional(),
|
|
726
|
+
status: GetConfigurationsResponseBodyStatus$outboundSchema.optional(),
|
|
727
|
+
externalId: z.string().optional(),
|
|
642
728
|
projects: z.array(z.string()).optional(),
|
|
643
729
|
source: z.string().optional(),
|
|
644
730
|
slug: z.string().optional(),
|
|
@@ -695,7 +695,7 @@ export type GetDeploymentResponseBodyOidcTokenClaims = {
|
|
|
695
695
|
project: string;
|
|
696
696
|
projectId: string;
|
|
697
697
|
environment: string;
|
|
698
|
-
plan
|
|
698
|
+
plan?: string | undefined;
|
|
699
699
|
};
|
|
700
700
|
|
|
701
701
|
/**
|
|
@@ -1716,7 +1716,7 @@ export type ResponseBodyOidcTokenClaims = {
|
|
|
1716
1716
|
project: string;
|
|
1717
1717
|
projectId: string;
|
|
1718
1718
|
environment: string;
|
|
1719
|
-
plan
|
|
1719
|
+
plan?: string | undefined;
|
|
1720
1720
|
};
|
|
1721
1721
|
|
|
1722
1722
|
export const ResponseBodyPlan = {
|
|
@@ -4642,7 +4642,7 @@ export const GetDeploymentResponseBodyOidcTokenClaims$inboundSchema: z.ZodType<
|
|
|
4642
4642
|
project: z.string(),
|
|
4643
4643
|
project_id: z.string(),
|
|
4644
4644
|
environment: z.string(),
|
|
4645
|
-
plan: z.string(),
|
|
4645
|
+
plan: z.string().optional(),
|
|
4646
4646
|
}).transform((v) => {
|
|
4647
4647
|
return remap$(v, {
|
|
4648
4648
|
"owner_id": "ownerId",
|
|
@@ -4660,7 +4660,7 @@ export type GetDeploymentResponseBodyOidcTokenClaims$Outbound = {
|
|
|
4660
4660
|
project: string;
|
|
4661
4661
|
project_id: string;
|
|
4662
4662
|
environment: string;
|
|
4663
|
-
plan
|
|
4663
|
+
plan?: string | undefined;
|
|
4664
4664
|
};
|
|
4665
4665
|
|
|
4666
4666
|
/** @internal */
|
|
@@ -4678,7 +4678,7 @@ export const GetDeploymentResponseBodyOidcTokenClaims$outboundSchema: z.ZodType<
|
|
|
4678
4678
|
project: z.string(),
|
|
4679
4679
|
projectId: z.string(),
|
|
4680
4680
|
environment: z.string(),
|
|
4681
|
-
plan: z.string(),
|
|
4681
|
+
plan: z.string().optional(),
|
|
4682
4682
|
}).transform((v) => {
|
|
4683
4683
|
return remap$(v, {
|
|
4684
4684
|
ownerId: "owner_id",
|
|
@@ -7711,7 +7711,7 @@ export const ResponseBodyOidcTokenClaims$inboundSchema: z.ZodType<
|
|
|
7711
7711
|
project: z.string(),
|
|
7712
7712
|
project_id: z.string(),
|
|
7713
7713
|
environment: z.string(),
|
|
7714
|
-
plan: z.string(),
|
|
7714
|
+
plan: z.string().optional(),
|
|
7715
7715
|
}).transform((v) => {
|
|
7716
7716
|
return remap$(v, {
|
|
7717
7717
|
"owner_id": "ownerId",
|
|
@@ -7729,7 +7729,7 @@ export type ResponseBodyOidcTokenClaims$Outbound = {
|
|
|
7729
7729
|
project: string;
|
|
7730
7730
|
project_id: string;
|
|
7731
7731
|
environment: string;
|
|
7732
|
-
plan
|
|
7732
|
+
plan?: string | undefined;
|
|
7733
7733
|
};
|
|
7734
7734
|
|
|
7735
7735
|
/** @internal */
|
|
@@ -7747,7 +7747,7 @@ export const ResponseBodyOidcTokenClaims$outboundSchema: z.ZodType<
|
|
|
7747
7747
|
project: z.string(),
|
|
7748
7748
|
projectId: z.string(),
|
|
7749
7749
|
environment: z.string(),
|
|
7750
|
-
plan: z.string(),
|
|
7750
|
+
plan: z.string().optional(),
|
|
7751
7751
|
}).transform((v) => {
|
|
7752
7752
|
return remap$(v, {
|
|
7753
7753
|
ownerId: "owner_id",
|