@vercel/sdk 1.6.2 → 1.6.3
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 +0 -10
- package/bin/mcp-server.js +1163 -2379
- package/bin/mcp-server.js.map +23 -38
- package/docs/sdks/integrations/README.md +0 -161
- package/docs/sdks/logdrains/README.md +0 -260
- package/esm/__tests__/integrations.test.js +5 -40
- package/esm/__tests__/integrations.test.js.map +1 -1
- package/esm/__tests__/logdrains.test.js +7 -89
- package/esm/__tests__/logdrains.test.js.map +1 -1
- package/esm/__tests__/security.test.js +1 -14
- package/esm/__tests__/security.test.js.map +1 -1
- package/esm/funcs/projectsCreateProject.js +2 -2
- package/esm/funcs/projectsCreateProject.js.map +1 -1
- package/esm/lib/config.d.ts +3 -3
- package/esm/lib/config.js +3 -3
- package/esm/lib/matchers.d.ts +3 -1
- package/esm/lib/matchers.d.ts.map +1 -1
- package/esm/lib/matchers.js +10 -0
- package/esm/lib/matchers.js.map +1 -1
- package/esm/lib/sdks.js +7 -2
- package/esm/lib/sdks.js.map +1 -1
- 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 -11
- package/esm/mcp-server/server.js.map +1 -1
- package/esm/models/authuser.d.ts +41 -0
- package/esm/models/authuser.d.ts.map +1 -1
- package/esm/models/authuser.js +29 -0
- package/esm/models/authuser.js.map +1 -1
- package/esm/models/canceldeploymentop.d.ts +3 -3
- package/esm/models/canceldeploymentop.js +1 -1
- package/esm/models/canceldeploymentop.js.map +1 -1
- package/esm/models/createlogdrainop.d.ts +51 -51
- package/esm/models/createlogdrainop.d.ts.map +1 -1
- package/esm/models/createlogdrainop.js +74 -75
- package/esm/models/createlogdrainop.js.map +1 -1
- package/esm/models/createprojectop.d.ts +46 -16
- package/esm/models/createprojectop.d.ts.map +1 -1
- package/esm/models/createprojectop.js +17 -5
- package/esm/models/createprojectop.js.map +1 -1
- package/esm/models/exchangessotokenop.d.ts +34 -0
- package/esm/models/exchangessotokenop.d.ts.map +1 -1
- package/esm/models/exchangessotokenop.js +25 -0
- package/esm/models/exchangessotokenop.js.map +1 -1
- package/esm/models/getconfigurationsop.d.ts +19 -16
- package/esm/models/getconfigurationsop.d.ts.map +1 -1
- package/esm/models/getconfigurationsop.js +25 -27
- package/esm/models/getconfigurationsop.js.map +1 -1
- package/esm/models/getcustomenvironmentop.d.ts +3 -0
- package/esm/models/getcustomenvironmentop.d.ts.map +1 -1
- package/esm/models/getcustomenvironmentop.js.map +1 -1
- package/esm/models/getintegrationlogdrainsop.d.ts +11 -11
- package/esm/models/getintegrationlogdrainsop.d.ts.map +1 -1
- package/esm/models/getintegrationlogdrainsop.js +14 -13
- package/esm/models/getintegrationlogdrainsop.js.map +1 -1
- package/esm/models/getprojectsop.d.ts +46 -16
- package/esm/models/getprojectsop.d.ts.map +1 -1
- package/esm/models/getprojectsop.js +17 -5
- package/esm/models/getprojectsop.js.map +1 -1
- package/esm/models/getteammembersop.d.ts +9 -9
- package/esm/models/getteammembersop.js +3 -3
- package/esm/models/getteammembersop.js.map +1 -1
- package/esm/models/getv9projectsidornamecustomenvironmentsop.d.ts +3 -0
- package/esm/models/getv9projectsidornamecustomenvironmentsop.d.ts.map +1 -1
- package/esm/models/getv9projectsidornamecustomenvironmentsop.js.map +1 -1
- package/esm/models/updateprojectdatacacheop.d.ts +46 -16
- package/esm/models/updateprojectdatacacheop.d.ts.map +1 -1
- package/esm/models/updateprojectdatacacheop.js +17 -5
- package/esm/models/updateprojectdatacacheop.js.map +1 -1
- package/esm/models/updateprojectop.d.ts +46 -16
- package/esm/models/updateprojectop.d.ts.map +1 -1
- package/esm/models/updateprojectop.js +17 -5
- package/esm/models/updateprojectop.js.map +1 -1
- package/esm/models/userevent.d.ts +569 -512
- package/esm/models/userevent.d.ts.map +1 -1
- package/esm/models/userevent.js +703 -645
- package/esm/models/userevent.js.map +1 -1
- package/esm/sdk/integrations.d.ts +0 -16
- package/esm/sdk/integrations.d.ts.map +1 -1
- package/esm/sdk/integrations.js +0 -20
- package/esm/sdk/integrations.js.map +1 -1
- package/esm/sdk/logdrains.d.ts +0 -24
- package/esm/sdk/logdrains.d.ts.map +1 -1
- package/esm/sdk/logdrains.js +0 -30
- package/esm/sdk/logdrains.js.map +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/__tests__/integrations.test.ts +9 -44
- package/src/__tests__/logdrains.test.ts +13 -95
- package/src/__tests__/security.test.ts +1 -14
- package/src/funcs/projectsCreateProject.ts +2 -2
- package/src/lib/config.ts +3 -3
- package/src/lib/matchers.ts +20 -0
- package/src/lib/sdks.ts +8 -2
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +1 -11
- package/src/models/authuser.ts +74 -0
- package/src/models/canceldeploymentop.ts +1 -1
- package/src/models/createlogdrainop.ts +95 -112
- package/src/models/createprojectop.ts +42 -6
- package/src/models/exchangessotokenop.ts +44 -0
- package/src/models/getconfigurationsop.ts +34 -39
- package/src/models/getcustomenvironmentop.ts +3 -0
- package/src/models/getintegrationlogdrainsop.ts +15 -20
- package/src/models/getprojectsop.ts +42 -6
- package/src/models/getteammembersop.ts +3 -3
- package/src/models/getv9projectsidornamecustomenvironmentsop.ts +3 -0
- package/src/models/updateprojectdatacacheop.ts +42 -6
- package/src/models/updateprojectop.ts +42 -6
- package/src/models/userevent.ts +1328 -1193
- package/src/sdk/integrations.ts +0 -44
- package/src/sdk/logdrains.ts +0 -66
- package/vercel-spec.json +341 -1272
- package/esm/funcs/integrationsGitNamespaces.d.ts +0 -18
- package/esm/funcs/integrationsGitNamespaces.d.ts.map +0 -1
- package/esm/funcs/integrationsGitNamespaces.js +0 -86
- package/esm/funcs/integrationsGitNamespaces.js.map +0 -1
- package/esm/funcs/integrationsSearchRepo.d.ts +0 -17
- package/esm/funcs/integrationsSearchRepo.d.ts.map +0 -1
- package/esm/funcs/integrationsSearchRepo.js +0 -89
- package/esm/funcs/integrationsSearchRepo.js.map +0 -1
- package/esm/funcs/logDrainsCreateConfigurableLogDrain.d.ts +0 -18
- package/esm/funcs/logDrainsCreateConfigurableLogDrain.d.ts.map +0 -1
- package/esm/funcs/logDrainsCreateConfigurableLogDrain.js +0 -86
- package/esm/funcs/logDrainsCreateConfigurableLogDrain.js.map +0 -1
- package/esm/funcs/logDrainsGetAllLogDrains.d.ts +0 -18
- package/esm/funcs/logDrainsGetAllLogDrains.d.ts.map +0 -1
- package/esm/funcs/logDrainsGetAllLogDrains.js +0 -88
- package/esm/funcs/logDrainsGetAllLogDrains.js.map +0 -1
- package/esm/funcs/logDrainsGetConfigurableLogDrain.d.ts +0 -19
- package/esm/funcs/logDrainsGetConfigurableLogDrain.d.ts.map +0 -1
- package/esm/funcs/logDrainsGetConfigurableLogDrain.js +0 -92
- package/esm/funcs/logDrainsGetConfigurableLogDrain.js.map +0 -1
- package/esm/mcp-server/tools/integrationsGitNamespaces.d.ts +0 -7
- package/esm/mcp-server/tools/integrationsGitNamespaces.d.ts.map +0 -1
- package/esm/mcp-server/tools/integrationsGitNamespaces.js +0 -28
- package/esm/mcp-server/tools/integrationsGitNamespaces.js.map +0 -1
- package/esm/mcp-server/tools/integrationsSearchRepo.d.ts +0 -7
- package/esm/mcp-server/tools/integrationsSearchRepo.d.ts.map +0 -1
- package/esm/mcp-server/tools/integrationsSearchRepo.js +0 -28
- package/esm/mcp-server/tools/integrationsSearchRepo.js.map +0 -1
- package/esm/mcp-server/tools/logDrainsCreateConfigurableLogDrain.d.ts +0 -7
- package/esm/mcp-server/tools/logDrainsCreateConfigurableLogDrain.d.ts.map +0 -1
- package/esm/mcp-server/tools/logDrainsCreateConfigurableLogDrain.js +0 -28
- package/esm/mcp-server/tools/logDrainsCreateConfigurableLogDrain.js.map +0 -1
- package/esm/mcp-server/tools/logDrainsGetAllLogDrains.d.ts +0 -7
- package/esm/mcp-server/tools/logDrainsGetAllLogDrains.d.ts.map +0 -1
- package/esm/mcp-server/tools/logDrainsGetAllLogDrains.js +0 -28
- package/esm/mcp-server/tools/logDrainsGetAllLogDrains.js.map +0 -1
- package/esm/mcp-server/tools/logDrainsGetConfigurableLogDrain.d.ts +0 -7
- package/esm/mcp-server/tools/logDrainsGetConfigurableLogDrain.d.ts.map +0 -1
- package/esm/mcp-server/tools/logDrainsGetConfigurableLogDrain.js +0 -28
- package/esm/mcp-server/tools/logDrainsGetConfigurableLogDrain.js.map +0 -1
- package/esm/models/createconfigurablelogdrainop.d.ts +0 -451
- package/esm/models/createconfigurablelogdrainop.d.ts.map +0 -1
- package/esm/models/createconfigurablelogdrainop.js +0 -348
- package/esm/models/createconfigurablelogdrainop.js.map +0 -1
- package/esm/models/getalllogdrainsop.d.ts +0 -294
- package/esm/models/getalllogdrainsop.d.ts.map +0 -1
- package/esm/models/getalllogdrainsop.js +0 -231
- package/esm/models/getalllogdrainsop.js.map +0 -1
- package/esm/models/getconfigurablelogdrainop.d.ts +0 -292
- package/esm/models/getconfigurablelogdrainop.d.ts.map +0 -1
- package/esm/models/getconfigurablelogdrainop.js +0 -230
- package/esm/models/getconfigurablelogdrainop.js.map +0 -1
- package/esm/models/gitnamespacesop.d.ts +0 -126
- package/esm/models/gitnamespacesop.d.ts.map +0 -1
- package/esm/models/gitnamespacesop.js +0 -115
- package/esm/models/gitnamespacesop.js.map +0 -1
- package/esm/models/searchrepoop.d.ts +0 -421
- package/esm/models/searchrepoop.d.ts.map +0 -1
- package/esm/models/searchrepoop.js +0 -385
- package/esm/models/searchrepoop.js.map +0 -1
- package/src/funcs/integrationsGitNamespaces.ts +0 -185
- package/src/funcs/integrationsSearchRepo.ts +0 -181
- package/src/funcs/logDrainsCreateConfigurableLogDrain.ts +0 -185
- package/src/funcs/logDrainsGetAllLogDrains.ts +0 -187
- package/src/funcs/logDrainsGetConfigurableLogDrain.ts +0 -199
- package/src/mcp-server/tools/integrationsGitNamespaces.ts +0 -37
- package/src/mcp-server/tools/integrationsSearchRepo.ts +0 -37
- package/src/mcp-server/tools/logDrainsCreateConfigurableLogDrain.ts +0 -39
- package/src/mcp-server/tools/logDrainsGetAllLogDrains.ts +0 -37
- package/src/mcp-server/tools/logDrainsGetConfigurableLogDrain.ts +0 -39
- package/src/models/createconfigurablelogdrainop.ts +0 -652
- package/src/models/getalllogdrainsop.ts +0 -416
- package/src/models/getconfigurablelogdrainop.ts +0 -420
- package/src/models/gitnamespacesop.ts +0 -235
- package/src/models/searchrepoop.ts +0 -784
|
@@ -720,20 +720,32 @@ export type CreateProjectAliasError = {
|
|
|
720
720
|
message: string;
|
|
721
721
|
};
|
|
722
722
|
|
|
723
|
+
/**
|
|
724
|
+
* The type of matching to perform
|
|
725
|
+
*/
|
|
723
726
|
export const CreateProjectProjectsResponse200ApplicationJSONResponseBodyLatestDeploymentsType =
|
|
724
727
|
{
|
|
725
728
|
EndsWith: "endsWith",
|
|
726
729
|
StartsWith: "startsWith",
|
|
727
730
|
Equals: "equals",
|
|
728
731
|
} as const;
|
|
732
|
+
/**
|
|
733
|
+
* The type of matching to perform
|
|
734
|
+
*/
|
|
729
735
|
export type CreateProjectProjectsResponse200ApplicationJSONResponseBodyLatestDeploymentsType =
|
|
730
736
|
ClosedEnum<
|
|
731
737
|
typeof CreateProjectProjectsResponse200ApplicationJSONResponseBodyLatestDeploymentsType
|
|
732
738
|
>;
|
|
733
739
|
|
|
734
740
|
export type CreateProjectBranchMatcher = {
|
|
741
|
+
/**
|
|
742
|
+
* The type of matching to perform
|
|
743
|
+
*/
|
|
735
744
|
type:
|
|
736
745
|
CreateProjectProjectsResponse200ApplicationJSONResponseBodyLatestDeploymentsType;
|
|
746
|
+
/**
|
|
747
|
+
* The pattern to match against branch names
|
|
748
|
+
*/
|
|
737
749
|
pattern: string;
|
|
738
750
|
};
|
|
739
751
|
|
|
@@ -982,7 +994,7 @@ export type CreateProjectMicrofrontends1 = {
|
|
|
982
994
|
*/
|
|
983
995
|
isDefaultApp?: boolean | undefined;
|
|
984
996
|
/**
|
|
985
|
-
* A path that is used to take screenshots and as the default path in preview links when a domain for this microfrontend is shown in the UI.
|
|
997
|
+
* A path that is used to take screenshots and as the default path in preview links when a domain for this microfrontend is shown in the UI. Includes the leading slash, e.g. `/docs`
|
|
986
998
|
*/
|
|
987
999
|
defaultRoute?: string | undefined;
|
|
988
1000
|
/**
|
|
@@ -1085,8 +1097,8 @@ export type CreateProjectDefaultResourceConfig = {
|
|
|
1085
1097
|
};
|
|
1086
1098
|
|
|
1087
1099
|
export const CreateProjectDeploymentType = {
|
|
1088
|
-
Preview: "preview",
|
|
1089
1100
|
All: "all",
|
|
1101
|
+
Preview: "preview",
|
|
1090
1102
|
ProdDeploymentUrlsAndAllPreviews: "prod_deployment_urls_and_all_previews",
|
|
1091
1103
|
} as const;
|
|
1092
1104
|
export type CreateProjectDeploymentType = ClosedEnum<
|
|
@@ -1104,19 +1116,31 @@ export type CreateProjectProjectsAliasError = {
|
|
|
1104
1116
|
message: string;
|
|
1105
1117
|
};
|
|
1106
1118
|
|
|
1119
|
+
/**
|
|
1120
|
+
* The type of matching to perform
|
|
1121
|
+
*/
|
|
1107
1122
|
export const CreateProjectProjectsResponse200ApplicationJSONResponseBodyTargetsType =
|
|
1108
1123
|
{
|
|
1109
1124
|
EndsWith: "endsWith",
|
|
1110
1125
|
StartsWith: "startsWith",
|
|
1111
1126
|
Equals: "equals",
|
|
1112
1127
|
} as const;
|
|
1128
|
+
/**
|
|
1129
|
+
* The type of matching to perform
|
|
1130
|
+
*/
|
|
1113
1131
|
export type CreateProjectProjectsResponse200ApplicationJSONResponseBodyTargetsType =
|
|
1114
1132
|
ClosedEnum<
|
|
1115
1133
|
typeof CreateProjectProjectsResponse200ApplicationJSONResponseBodyTargetsType
|
|
1116
1134
|
>;
|
|
1117
1135
|
|
|
1118
1136
|
export type CreateProjectProjectsBranchMatcher = {
|
|
1137
|
+
/**
|
|
1138
|
+
* The type of matching to perform
|
|
1139
|
+
*/
|
|
1119
1140
|
type: CreateProjectProjectsResponse200ApplicationJSONResponseBodyTargetsType;
|
|
1141
|
+
/**
|
|
1142
|
+
* The pattern to match against branch names
|
|
1143
|
+
*/
|
|
1120
1144
|
pattern: string;
|
|
1121
1145
|
};
|
|
1122
1146
|
|
|
@@ -1360,6 +1384,7 @@ export type CreateProjectPermissions = {
|
|
|
1360
1384
|
teamInvite?: Array<ACLAction> | undefined;
|
|
1361
1385
|
teamInviteCode?: Array<ACLAction> | undefined;
|
|
1362
1386
|
teamJoin?: Array<ACLAction> | undefined;
|
|
1387
|
+
teamMemberMfaStatus?: Array<ACLAction> | undefined;
|
|
1363
1388
|
teamMicrofrontends?: Array<ACLAction> | undefined;
|
|
1364
1389
|
teamOwnMembership?: Array<ACLAction> | undefined;
|
|
1365
1390
|
teamOwnMembershipDisconnectSAML?: Array<ACLAction> | undefined;
|
|
@@ -1377,6 +1402,8 @@ export type CreateProjectPermissions = {
|
|
|
1377
1402
|
endpointVerification?: Array<ACLAction> | undefined;
|
|
1378
1403
|
projectTransferIn?: Array<ACLAction> | undefined;
|
|
1379
1404
|
oauth2Application?: Array<ACLAction> | undefined;
|
|
1405
|
+
vercelRun?: Array<ACLAction> | undefined;
|
|
1406
|
+
vercelRunExec?: Array<ACLAction> | undefined;
|
|
1380
1407
|
aliasProject?: Array<ACLAction> | undefined;
|
|
1381
1408
|
aliasProtectionBypass?: Array<ACLAction> | undefined;
|
|
1382
1409
|
productionAliasProtectionBypass?: Array<ACLAction> | undefined;
|
|
@@ -1477,10 +1504,10 @@ export type CreateProjectProtectionBypass = {
|
|
|
1477
1504
|
};
|
|
1478
1505
|
|
|
1479
1506
|
export const CreateProjectTrustedIpsProjectsDeploymentType = {
|
|
1480
|
-
Production: "production",
|
|
1481
|
-
Preview: "preview",
|
|
1482
1507
|
All: "all",
|
|
1508
|
+
Preview: "preview",
|
|
1483
1509
|
ProdDeploymentUrlsAndAllPreviews: "prod_deployment_urls_and_all_previews",
|
|
1510
|
+
Production: "production",
|
|
1484
1511
|
} as const;
|
|
1485
1512
|
export type CreateProjectTrustedIpsProjectsDeploymentType = ClosedEnum<
|
|
1486
1513
|
typeof CreateProjectTrustedIpsProjectsDeploymentType
|
|
@@ -1491,10 +1518,10 @@ export type CreateProjectTrustedIps2 = {
|
|
|
1491
1518
|
};
|
|
1492
1519
|
|
|
1493
1520
|
export const CreateProjectTrustedIpsDeploymentType = {
|
|
1494
|
-
Production: "production",
|
|
1495
|
-
Preview: "preview",
|
|
1496
1521
|
All: "all",
|
|
1522
|
+
Preview: "preview",
|
|
1497
1523
|
ProdDeploymentUrlsAndAllPreviews: "prod_deployment_urls_and_all_previews",
|
|
1524
|
+
Production: "production",
|
|
1498
1525
|
} as const;
|
|
1499
1526
|
export type CreateProjectTrustedIpsDeploymentType = ClosedEnum<
|
|
1500
1527
|
typeof CreateProjectTrustedIpsDeploymentType
|
|
@@ -7595,6 +7622,7 @@ export const CreateProjectPermissions$inboundSchema: z.ZodType<
|
|
|
7595
7622
|
teamInvite: z.array(ACLAction$inboundSchema).optional(),
|
|
7596
7623
|
teamInviteCode: z.array(ACLAction$inboundSchema).optional(),
|
|
7597
7624
|
teamJoin: z.array(ACLAction$inboundSchema).optional(),
|
|
7625
|
+
teamMemberMfaStatus: z.array(ACLAction$inboundSchema).optional(),
|
|
7598
7626
|
teamMicrofrontends: z.array(ACLAction$inboundSchema).optional(),
|
|
7599
7627
|
teamOwnMembership: z.array(ACLAction$inboundSchema).optional(),
|
|
7600
7628
|
teamOwnMembershipDisconnectSAML: z.array(ACLAction$inboundSchema).optional(),
|
|
@@ -7612,6 +7640,8 @@ export const CreateProjectPermissions$inboundSchema: z.ZodType<
|
|
|
7612
7640
|
endpointVerification: z.array(ACLAction$inboundSchema).optional(),
|
|
7613
7641
|
projectTransferIn: z.array(ACLAction$inboundSchema).optional(),
|
|
7614
7642
|
oauth2Application: z.array(ACLAction$inboundSchema).optional(),
|
|
7643
|
+
vercelRun: z.array(ACLAction$inboundSchema).optional(),
|
|
7644
|
+
vercelRunExec: z.array(ACLAction$inboundSchema).optional(),
|
|
7615
7645
|
aliasProject: z.array(ACLAction$inboundSchema).optional(),
|
|
7616
7646
|
aliasProtectionBypass: z.array(ACLAction$inboundSchema).optional(),
|
|
7617
7647
|
productionAliasProtectionBypass: z.array(ACLAction$inboundSchema).optional(),
|
|
@@ -7797,6 +7827,7 @@ export type CreateProjectPermissions$Outbound = {
|
|
|
7797
7827
|
teamInvite?: Array<string> | undefined;
|
|
7798
7828
|
teamInviteCode?: Array<string> | undefined;
|
|
7799
7829
|
teamJoin?: Array<string> | undefined;
|
|
7830
|
+
teamMemberMfaStatus?: Array<string> | undefined;
|
|
7800
7831
|
teamMicrofrontends?: Array<string> | undefined;
|
|
7801
7832
|
teamOwnMembership?: Array<string> | undefined;
|
|
7802
7833
|
teamOwnMembershipDisconnectSAML?: Array<string> | undefined;
|
|
@@ -7814,6 +7845,8 @@ export type CreateProjectPermissions$Outbound = {
|
|
|
7814
7845
|
endpointVerification?: Array<string> | undefined;
|
|
7815
7846
|
projectTransferIn?: Array<string> | undefined;
|
|
7816
7847
|
oauth2Application?: Array<string> | undefined;
|
|
7848
|
+
vercelRun?: Array<string> | undefined;
|
|
7849
|
+
vercelRunExec?: Array<string> | undefined;
|
|
7817
7850
|
aliasProject?: Array<string> | undefined;
|
|
7818
7851
|
aliasProtectionBypass?: Array<string> | undefined;
|
|
7819
7852
|
productionAliasProtectionBypass?: Array<string> | undefined;
|
|
@@ -8000,6 +8033,7 @@ export const CreateProjectPermissions$outboundSchema: z.ZodType<
|
|
|
8000
8033
|
teamInvite: z.array(ACLAction$outboundSchema).optional(),
|
|
8001
8034
|
teamInviteCode: z.array(ACLAction$outboundSchema).optional(),
|
|
8002
8035
|
teamJoin: z.array(ACLAction$outboundSchema).optional(),
|
|
8036
|
+
teamMemberMfaStatus: z.array(ACLAction$outboundSchema).optional(),
|
|
8003
8037
|
teamMicrofrontends: z.array(ACLAction$outboundSchema).optional(),
|
|
8004
8038
|
teamOwnMembership: z.array(ACLAction$outboundSchema).optional(),
|
|
8005
8039
|
teamOwnMembershipDisconnectSAML: z.array(ACLAction$outboundSchema).optional(),
|
|
@@ -8017,6 +8051,8 @@ export const CreateProjectPermissions$outboundSchema: z.ZodType<
|
|
|
8017
8051
|
endpointVerification: z.array(ACLAction$outboundSchema).optional(),
|
|
8018
8052
|
projectTransferIn: z.array(ACLAction$outboundSchema).optional(),
|
|
8019
8053
|
oauth2Application: z.array(ACLAction$outboundSchema).optional(),
|
|
8054
|
+
vercelRun: z.array(ACLAction$outboundSchema).optional(),
|
|
8055
|
+
vercelRunExec: z.array(ACLAction$outboundSchema).optional(),
|
|
8020
8056
|
aliasProject: z.array(ACLAction$outboundSchema).optional(),
|
|
8021
8057
|
aliasProtectionBypass: z.array(ACLAction$outboundSchema).optional(),
|
|
8022
8058
|
productionAliasProtectionBypass: z.array(ACLAction$outboundSchema).optional(),
|
|
@@ -5,9 +5,23 @@
|
|
|
5
5
|
import * as z from "zod";
|
|
6
6
|
import { remap as remap$ } from "../lib/primitives.js";
|
|
7
7
|
import { safeParse } from "../lib/schemas.js";
|
|
8
|
+
import { ClosedEnum } from "../types/enums.js";
|
|
8
9
|
import { Result as SafeParseResult } from "../types/fp.js";
|
|
9
10
|
import { SDKValidationError } from "./sdkvalidationerror.js";
|
|
10
11
|
|
|
12
|
+
/**
|
|
13
|
+
* The grant type, when using x-www-form-urlencoded content type
|
|
14
|
+
*/
|
|
15
|
+
export const ExchangeSsoTokenGrantType = {
|
|
16
|
+
AuthorizationCode: "authorization_code",
|
|
17
|
+
} as const;
|
|
18
|
+
/**
|
|
19
|
+
* The grant type, when using x-www-form-urlencoded content type
|
|
20
|
+
*/
|
|
21
|
+
export type ExchangeSsoTokenGrantType = ClosedEnum<
|
|
22
|
+
typeof ExchangeSsoTokenGrantType
|
|
23
|
+
>;
|
|
24
|
+
|
|
11
25
|
export type ExchangeSsoTokenRequestBody = {
|
|
12
26
|
/**
|
|
13
27
|
* The sensitive code received from Vercel
|
|
@@ -29,6 +43,10 @@ export type ExchangeSsoTokenRequestBody = {
|
|
|
29
43
|
* The integration redirect URI
|
|
30
44
|
*/
|
|
31
45
|
redirectUri?: string | undefined;
|
|
46
|
+
/**
|
|
47
|
+
* The grant type, when using x-www-form-urlencoded content type
|
|
48
|
+
*/
|
|
49
|
+
grantType?: ExchangeSsoTokenGrantType | undefined;
|
|
32
50
|
};
|
|
33
51
|
|
|
34
52
|
export type ExchangeSsoTokenResponseBody = {
|
|
@@ -37,6 +55,27 @@ export type ExchangeSsoTokenResponseBody = {
|
|
|
37
55
|
tokenType?: any | null | undefined;
|
|
38
56
|
};
|
|
39
57
|
|
|
58
|
+
/** @internal */
|
|
59
|
+
export const ExchangeSsoTokenGrantType$inboundSchema: z.ZodNativeEnum<
|
|
60
|
+
typeof ExchangeSsoTokenGrantType
|
|
61
|
+
> = z.nativeEnum(ExchangeSsoTokenGrantType);
|
|
62
|
+
|
|
63
|
+
/** @internal */
|
|
64
|
+
export const ExchangeSsoTokenGrantType$outboundSchema: z.ZodNativeEnum<
|
|
65
|
+
typeof ExchangeSsoTokenGrantType
|
|
66
|
+
> = ExchangeSsoTokenGrantType$inboundSchema;
|
|
67
|
+
|
|
68
|
+
/**
|
|
69
|
+
* @internal
|
|
70
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
71
|
+
*/
|
|
72
|
+
export namespace ExchangeSsoTokenGrantType$ {
|
|
73
|
+
/** @deprecated use `ExchangeSsoTokenGrantType$inboundSchema` instead. */
|
|
74
|
+
export const inboundSchema = ExchangeSsoTokenGrantType$inboundSchema;
|
|
75
|
+
/** @deprecated use `ExchangeSsoTokenGrantType$outboundSchema` instead. */
|
|
76
|
+
export const outboundSchema = ExchangeSsoTokenGrantType$outboundSchema;
|
|
77
|
+
}
|
|
78
|
+
|
|
40
79
|
/** @internal */
|
|
41
80
|
export const ExchangeSsoTokenRequestBody$inboundSchema: z.ZodType<
|
|
42
81
|
ExchangeSsoTokenRequestBody,
|
|
@@ -48,11 +87,13 @@ export const ExchangeSsoTokenRequestBody$inboundSchema: z.ZodType<
|
|
|
48
87
|
client_id: z.string(),
|
|
49
88
|
client_secret: z.string(),
|
|
50
89
|
redirect_uri: z.string().optional(),
|
|
90
|
+
grant_type: ExchangeSsoTokenGrantType$inboundSchema.optional(),
|
|
51
91
|
}).transform((v) => {
|
|
52
92
|
return remap$(v, {
|
|
53
93
|
"client_id": "clientId",
|
|
54
94
|
"client_secret": "clientSecret",
|
|
55
95
|
"redirect_uri": "redirectUri",
|
|
96
|
+
"grant_type": "grantType",
|
|
56
97
|
});
|
|
57
98
|
});
|
|
58
99
|
|
|
@@ -63,6 +104,7 @@ export type ExchangeSsoTokenRequestBody$Outbound = {
|
|
|
63
104
|
client_id: string;
|
|
64
105
|
client_secret: string;
|
|
65
106
|
redirect_uri?: string | undefined;
|
|
107
|
+
grant_type?: string | undefined;
|
|
66
108
|
};
|
|
67
109
|
|
|
68
110
|
/** @internal */
|
|
@@ -76,11 +118,13 @@ export const ExchangeSsoTokenRequestBody$outboundSchema: z.ZodType<
|
|
|
76
118
|
clientId: z.string(),
|
|
77
119
|
clientSecret: z.string(),
|
|
78
120
|
redirectUri: z.string().optional(),
|
|
121
|
+
grantType: ExchangeSsoTokenGrantType$outboundSchema.optional(),
|
|
79
122
|
}).transform((v) => {
|
|
80
123
|
return remap$(v, {
|
|
81
124
|
clientId: "client_id",
|
|
82
125
|
clientSecret: "client_secret",
|
|
83
126
|
redirectUri: "redirect_uri",
|
|
127
|
+
grantType: "grant_type",
|
|
84
128
|
});
|
|
85
129
|
});
|
|
86
130
|
|
|
@@ -58,6 +58,7 @@ export const TagIds = {
|
|
|
58
58
|
TagSecurity: "tag_security",
|
|
59
59
|
TagTesting: "tag_testing",
|
|
60
60
|
TagVideo: "tag_video",
|
|
61
|
+
TagWorkflow: "tag_workflow",
|
|
61
62
|
} as const;
|
|
62
63
|
export type TagIds = ClosedEnum<typeof TagIds>;
|
|
63
64
|
|
|
@@ -93,7 +94,7 @@ export type GetConfigurationsResponseBodyIntegrationsType = ClosedEnum<
|
|
|
93
94
|
typeof GetConfigurationsResponseBodyIntegrationsType
|
|
94
95
|
>;
|
|
95
96
|
|
|
96
|
-
export const
|
|
97
|
+
export const ResponseBodyDisabledReason = {
|
|
97
98
|
DisabledByOwner: "disabled-by-owner",
|
|
98
99
|
FeatureNotAvailable: "feature-not-available",
|
|
99
100
|
DisabledByAdmin: "disabled-by-admin",
|
|
@@ -101,8 +102,8 @@ export const GetConfigurationsResponseBodyDisabledReason = {
|
|
|
101
102
|
AccountPlanDowngrade: "account-plan-downgrade",
|
|
102
103
|
OriginalOwnerRoleDowngraded: "original-owner-role-downgraded",
|
|
103
104
|
} as const;
|
|
104
|
-
export type
|
|
105
|
-
typeof
|
|
105
|
+
export type ResponseBodyDisabledReason = ClosedEnum<
|
|
106
|
+
typeof ResponseBodyDisabledReason
|
|
106
107
|
>;
|
|
107
108
|
|
|
108
109
|
/**
|
|
@@ -182,7 +183,7 @@ export type GetConfigurationsResponseBody2 = {
|
|
|
182
183
|
* A timestamp that tells you when the configuration deletion has been started for cases when the deletion needs to be settled/approved by partners, such as when marketplace invoices have been paid.
|
|
183
184
|
*/
|
|
184
185
|
deleteRequestedAt?: number | null | undefined;
|
|
185
|
-
disabledReason?:
|
|
186
|
+
disabledReason?: ResponseBodyDisabledReason | undefined;
|
|
186
187
|
/**
|
|
187
188
|
* Defines the installation type. - 'external' integrations are installed via the existing integrations flow - 'marketplace' integrations are natively installed: - when accepting the TOS of a partner during the store creation process - if undefined, assume 'external'
|
|
188
189
|
*/
|
|
@@ -212,7 +213,7 @@ export type GetConfigurationsResponseBodyType = ClosedEnum<
|
|
|
212
213
|
typeof GetConfigurationsResponseBodyType
|
|
213
214
|
>;
|
|
214
215
|
|
|
215
|
-
export const
|
|
216
|
+
export const DisabledReason = {
|
|
216
217
|
DisabledByOwner: "disabled-by-owner",
|
|
217
218
|
FeatureNotAvailable: "feature-not-available",
|
|
218
219
|
DisabledByAdmin: "disabled-by-admin",
|
|
@@ -220,9 +221,7 @@ export const ResponseBodyDisabledReason = {
|
|
|
220
221
|
AccountPlanDowngrade: "account-plan-downgrade",
|
|
221
222
|
OriginalOwnerRoleDowngraded: "original-owner-role-downgraded",
|
|
222
223
|
} as const;
|
|
223
|
-
export type
|
|
224
|
-
typeof ResponseBodyDisabledReason
|
|
225
|
-
>;
|
|
224
|
+
export type DisabledReason = ClosedEnum<typeof DisabledReason>;
|
|
226
225
|
|
|
227
226
|
/**
|
|
228
227
|
* Defines the installation type. - 'external' integrations are installed via the existing integrations flow - 'marketplace' integrations are natively installed: - when accepting the TOS of a partner during the store creation process - if undefined, assume 'external'
|
|
@@ -303,7 +302,7 @@ export type GetConfigurationsResponseBody1 = {
|
|
|
303
302
|
* A timestamp that tells you when the configuration deletion has been started for cases when the deletion needs to be settled/approved by partners, such as when marketplace invoices have been paid.
|
|
304
303
|
*/
|
|
305
304
|
deleteRequestedAt?: number | null | undefined;
|
|
306
|
-
disabledReason?:
|
|
305
|
+
disabledReason?: DisabledReason | undefined;
|
|
307
306
|
/**
|
|
308
307
|
* Defines the installation type. - 'external' integrations are installed via the existing integrations flow - 'marketplace' integrations are natively installed: - when accepting the TOS of a partner during the store creation process - if undefined, assume 'external'
|
|
309
308
|
*/
|
|
@@ -555,26 +554,24 @@ export namespace GetConfigurationsResponseBodyIntegrationsType$ {
|
|
|
555
554
|
}
|
|
556
555
|
|
|
557
556
|
/** @internal */
|
|
558
|
-
export const
|
|
559
|
-
|
|
560
|
-
|
|
557
|
+
export const ResponseBodyDisabledReason$inboundSchema: z.ZodNativeEnum<
|
|
558
|
+
typeof ResponseBodyDisabledReason
|
|
559
|
+
> = z.nativeEnum(ResponseBodyDisabledReason);
|
|
561
560
|
|
|
562
561
|
/** @internal */
|
|
563
|
-
export const
|
|
564
|
-
|
|
565
|
-
|
|
562
|
+
export const ResponseBodyDisabledReason$outboundSchema: z.ZodNativeEnum<
|
|
563
|
+
typeof ResponseBodyDisabledReason
|
|
564
|
+
> = ResponseBodyDisabledReason$inboundSchema;
|
|
566
565
|
|
|
567
566
|
/**
|
|
568
567
|
* @internal
|
|
569
568
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
570
569
|
*/
|
|
571
|
-
export namespace
|
|
572
|
-
/** @deprecated use `
|
|
573
|
-
export const inboundSchema =
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
export const outboundSchema =
|
|
577
|
-
GetConfigurationsResponseBodyDisabledReason$outboundSchema;
|
|
570
|
+
export namespace ResponseBodyDisabledReason$ {
|
|
571
|
+
/** @deprecated use `ResponseBodyDisabledReason$inboundSchema` instead. */
|
|
572
|
+
export const inboundSchema = ResponseBodyDisabledReason$inboundSchema;
|
|
573
|
+
/** @deprecated use `ResponseBodyDisabledReason$outboundSchema` instead. */
|
|
574
|
+
export const outboundSchema = ResponseBodyDisabledReason$outboundSchema;
|
|
578
575
|
}
|
|
579
576
|
|
|
580
577
|
/** @internal */
|
|
@@ -624,8 +621,7 @@ export const GetConfigurationsResponseBody2$inboundSchema: z.ZodType<
|
|
|
624
621
|
disabledAt: z.number().optional(),
|
|
625
622
|
deletedAt: z.nullable(z.number()).optional(),
|
|
626
623
|
deleteRequestedAt: z.nullable(z.number()).optional(),
|
|
627
|
-
disabledReason:
|
|
628
|
-
.optional(),
|
|
624
|
+
disabledReason: ResponseBodyDisabledReason$inboundSchema.optional(),
|
|
629
625
|
installationType: GetConfigurationsResponseBodyInstallationType$inboundSchema
|
|
630
626
|
.optional(),
|
|
631
627
|
});
|
|
@@ -677,8 +673,7 @@ export const GetConfigurationsResponseBody2$outboundSchema: z.ZodType<
|
|
|
677
673
|
disabledAt: z.number().optional(),
|
|
678
674
|
deletedAt: z.nullable(z.number()).optional(),
|
|
679
675
|
deleteRequestedAt: z.nullable(z.number()).optional(),
|
|
680
|
-
disabledReason:
|
|
681
|
-
.optional(),
|
|
676
|
+
disabledReason: ResponseBodyDisabledReason$outboundSchema.optional(),
|
|
682
677
|
installationType: GetConfigurationsResponseBodyInstallationType$outboundSchema
|
|
683
678
|
.optional(),
|
|
684
679
|
});
|
|
@@ -762,24 +757,24 @@ export namespace GetConfigurationsResponseBodyType$ {
|
|
|
762
757
|
}
|
|
763
758
|
|
|
764
759
|
/** @internal */
|
|
765
|
-
export const
|
|
766
|
-
typeof
|
|
767
|
-
> = z.nativeEnum(
|
|
760
|
+
export const DisabledReason$inboundSchema: z.ZodNativeEnum<
|
|
761
|
+
typeof DisabledReason
|
|
762
|
+
> = z.nativeEnum(DisabledReason);
|
|
768
763
|
|
|
769
764
|
/** @internal */
|
|
770
|
-
export const
|
|
771
|
-
typeof
|
|
772
|
-
> =
|
|
765
|
+
export const DisabledReason$outboundSchema: z.ZodNativeEnum<
|
|
766
|
+
typeof DisabledReason
|
|
767
|
+
> = DisabledReason$inboundSchema;
|
|
773
768
|
|
|
774
769
|
/**
|
|
775
770
|
* @internal
|
|
776
771
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
777
772
|
*/
|
|
778
|
-
export namespace
|
|
779
|
-
/** @deprecated use `
|
|
780
|
-
export const inboundSchema =
|
|
781
|
-
/** @deprecated use `
|
|
782
|
-
export const outboundSchema =
|
|
773
|
+
export namespace DisabledReason$ {
|
|
774
|
+
/** @deprecated use `DisabledReason$inboundSchema` instead. */
|
|
775
|
+
export const inboundSchema = DisabledReason$inboundSchema;
|
|
776
|
+
/** @deprecated use `DisabledReason$outboundSchema` instead. */
|
|
777
|
+
export const outboundSchema = DisabledReason$outboundSchema;
|
|
783
778
|
}
|
|
784
779
|
|
|
785
780
|
/** @internal */
|
|
@@ -825,7 +820,7 @@ export const GetConfigurationsResponseBody1$inboundSchema: z.ZodType<
|
|
|
825
820
|
disabledAt: z.number().optional(),
|
|
826
821
|
deletedAt: z.nullable(z.number()).optional(),
|
|
827
822
|
deleteRequestedAt: z.nullable(z.number()).optional(),
|
|
828
|
-
disabledReason:
|
|
823
|
+
disabledReason: DisabledReason$inboundSchema.optional(),
|
|
829
824
|
installationType: ResponseBodyInstallationType$inboundSchema.optional(),
|
|
830
825
|
});
|
|
831
826
|
|
|
@@ -873,7 +868,7 @@ export const GetConfigurationsResponseBody1$outboundSchema: z.ZodType<
|
|
|
873
868
|
disabledAt: z.number().optional(),
|
|
874
869
|
deletedAt: z.nullable(z.number()).optional(),
|
|
875
870
|
deleteRequestedAt: z.nullable(z.number()).optional(),
|
|
876
|
-
disabledReason:
|
|
871
|
+
disabledReason: DisabledReason$outboundSchema.optional(),
|
|
877
872
|
installationType: ResponseBodyInstallationType$outboundSchema.optional(),
|
|
878
873
|
});
|
|
879
874
|
|
|
@@ -56,16 +56,14 @@ export type GetIntegrationLogDrainsSources = ClosedEnum<
|
|
|
56
56
|
/**
|
|
57
57
|
* Whether the log drain was created by an integration or by a user
|
|
58
58
|
*/
|
|
59
|
-
export const
|
|
60
|
-
SelfServed: "self-served",
|
|
59
|
+
export const CreatedFrom = {
|
|
61
60
|
Integration: "integration",
|
|
61
|
+
SelfServed: "self-served",
|
|
62
62
|
} as const;
|
|
63
63
|
/**
|
|
64
64
|
* Whether the log drain was created by an integration or by a user
|
|
65
65
|
*/
|
|
66
|
-
export type
|
|
67
|
-
typeof GetIntegrationLogDrainsCreatedFrom
|
|
68
|
-
>;
|
|
66
|
+
export type CreatedFrom = ClosedEnum<typeof CreatedFrom>;
|
|
69
67
|
|
|
70
68
|
/**
|
|
71
69
|
* The environment of log drain
|
|
@@ -126,7 +124,7 @@ export type GetIntegrationLogDrainsResponseBody = {
|
|
|
126
124
|
/**
|
|
127
125
|
* Whether the log drain was created by an integration or by a user
|
|
128
126
|
*/
|
|
129
|
-
createdFrom?:
|
|
127
|
+
createdFrom?: CreatedFrom | undefined;
|
|
130
128
|
/**
|
|
131
129
|
* The headers to send with the request
|
|
132
130
|
*/
|
|
@@ -250,25 +248,22 @@ export namespace GetIntegrationLogDrainsSources$ {
|
|
|
250
248
|
}
|
|
251
249
|
|
|
252
250
|
/** @internal */
|
|
253
|
-
export const
|
|
254
|
-
|
|
255
|
-
> = z.nativeEnum(GetIntegrationLogDrainsCreatedFrom);
|
|
251
|
+
export const CreatedFrom$inboundSchema: z.ZodNativeEnum<typeof CreatedFrom> = z
|
|
252
|
+
.nativeEnum(CreatedFrom);
|
|
256
253
|
|
|
257
254
|
/** @internal */
|
|
258
|
-
export const
|
|
259
|
-
|
|
260
|
-
> = GetIntegrationLogDrainsCreatedFrom$inboundSchema;
|
|
255
|
+
export const CreatedFrom$outboundSchema: z.ZodNativeEnum<typeof CreatedFrom> =
|
|
256
|
+
CreatedFrom$inboundSchema;
|
|
261
257
|
|
|
262
258
|
/**
|
|
263
259
|
* @internal
|
|
264
260
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
265
261
|
*/
|
|
266
|
-
export namespace
|
|
267
|
-
/** @deprecated use `
|
|
268
|
-
export const inboundSchema =
|
|
269
|
-
/** @deprecated use `
|
|
270
|
-
export const outboundSchema =
|
|
271
|
-
GetIntegrationLogDrainsCreatedFrom$outboundSchema;
|
|
262
|
+
export namespace CreatedFrom$ {
|
|
263
|
+
/** @deprecated use `CreatedFrom$inboundSchema` instead. */
|
|
264
|
+
export const inboundSchema = CreatedFrom$inboundSchema;
|
|
265
|
+
/** @deprecated use `CreatedFrom$outboundSchema` instead. */
|
|
266
|
+
export const outboundSchema = CreatedFrom$outboundSchema;
|
|
272
267
|
}
|
|
273
268
|
|
|
274
269
|
/** @internal */
|
|
@@ -312,7 +307,7 @@ export const GetIntegrationLogDrainsResponseBody$inboundSchema: z.ZodType<
|
|
|
312
307
|
projectIds: z.array(z.string()).optional(),
|
|
313
308
|
url: z.string(),
|
|
314
309
|
sources: z.array(GetIntegrationLogDrainsSources$inboundSchema).optional(),
|
|
315
|
-
createdFrom:
|
|
310
|
+
createdFrom: CreatedFrom$inboundSchema.optional(),
|
|
316
311
|
headers: z.record(z.string()).optional(),
|
|
317
312
|
environments: z.array(GetIntegrationLogDrainsEnvironments$inboundSchema),
|
|
318
313
|
branch: z.string().optional(),
|
|
@@ -357,7 +352,7 @@ export const GetIntegrationLogDrainsResponseBody$outboundSchema: z.ZodType<
|
|
|
357
352
|
projectIds: z.array(z.string()).optional(),
|
|
358
353
|
url: z.string(),
|
|
359
354
|
sources: z.array(GetIntegrationLogDrainsSources$outboundSchema).optional(),
|
|
360
|
-
createdFrom:
|
|
355
|
+
createdFrom: CreatedFrom$outboundSchema.optional(),
|
|
361
356
|
headers: z.record(z.string()).optional(),
|
|
362
357
|
environments: z.array(GetIntegrationLogDrainsEnvironments$outboundSchema),
|
|
363
358
|
branch: z.string().optional(),
|