@vercel/sdk 1.7.3 → 1.7.4
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 +30 -13
- package/bin/mcp-server.js +714 -744
- package/bin/mcp-server.js.map +20 -20
- package/docs/sdks/domains/README.md +0 -94
- package/docs/sdks/vercel/README.md +78 -0
- package/esm/__tests__/domains.test.js +3 -19
- package/esm/__tests__/domains.test.js.map +1 -1
- package/esm/__tests__/projects.test.js +15 -13
- package/esm/__tests__/projects.test.js.map +1 -1
- package/esm/__tests__/vercel.test.js +13 -0
- package/esm/__tests__/vercel.test.js.map +1 -1
- package/esm/funcs/postDomains.d.ts +13 -0
- package/esm/funcs/postDomains.d.ts.map +1 -0
- package/esm/funcs/{domainsCreateOrTransferDomain.js → postDomains.js} +13 -27
- package/esm/funcs/postDomains.js.map +1 -0
- package/esm/funcs/projectsRequestPromote.js +1 -0
- package/esm/funcs/projectsRequestPromote.js.map +1 -1
- package/esm/lib/config.d.ts +2 -2
- package/esm/lib/config.js +2 -2
- package/esm/mcp-server/mcp-server.js +1 -1
- package/esm/mcp-server/server.js +3 -3
- package/esm/mcp-server/server.js.map +1 -1
- package/esm/mcp-server/tools/postDomains.d.ts +7 -0
- package/esm/mcp-server/tools/postDomains.d.ts.map +1 -0
- package/esm/mcp-server/tools/postDomains.js +26 -0
- package/esm/mcp-server/tools/postDomains.js.map +1 -0
- package/esm/models/createdeploymentop.d.ts +28 -28
- package/esm/models/createdeploymentop.d.ts.map +1 -1
- package/esm/models/createdeploymentop.js +12 -12
- package/esm/models/createdeploymentop.js.map +1 -1
- package/esm/models/createprojectop.d.ts +2 -0
- package/esm/models/createprojectop.d.ts.map +1 -1
- package/esm/models/createprojectop.js +2 -0
- package/esm/models/createprojectop.js.map +1 -1
- package/esm/models/createrecordop.d.ts +43 -43
- package/esm/models/createrecordop.d.ts.map +1 -1
- package/esm/models/createrecordop.js +51 -51
- package/esm/models/createrecordop.js.map +1 -1
- package/esm/models/getdomainop.d.ts +8 -8
- package/esm/models/getdomainop.d.ts.map +1 -1
- package/esm/models/getdomainop.js +12 -13
- package/esm/models/getdomainop.js.map +1 -1
- package/esm/models/getprojectsop.d.ts +2 -0
- package/esm/models/getprojectsop.d.ts.map +1 -1
- package/esm/models/getprojectsop.js +2 -0
- package/esm/models/getprojectsop.js.map +1 -1
- package/esm/models/postdomainsop.d.ts +353 -0
- package/esm/models/postdomainsop.d.ts.map +1 -0
- package/esm/models/postdomainsop.js +265 -0
- package/esm/models/postdomainsop.js.map +1 -0
- package/esm/models/requestpromoteop.d.ts +5 -0
- package/esm/models/requestpromoteop.d.ts.map +1 -1
- package/esm/models/requestpromoteop.js +2 -0
- package/esm/models/requestpromoteop.js.map +1 -1
- package/esm/models/teamlimited.d.ts +13 -13
- package/esm/models/teamlimited.d.ts.map +1 -1
- package/esm/models/teamlimited.js +6 -6
- package/esm/models/teamlimited.js.map +1 -1
- package/esm/models/updateprojectdatacacheop.d.ts +2 -0
- package/esm/models/updateprojectdatacacheop.d.ts.map +1 -1
- package/esm/models/updateprojectdatacacheop.js +2 -0
- package/esm/models/updateprojectdatacacheop.js.map +1 -1
- package/esm/models/updateprojectop.d.ts +2 -0
- package/esm/models/updateprojectop.d.ts.map +1 -1
- package/esm/models/updateprojectop.js +2 -0
- package/esm/models/updateprojectop.js.map +1 -1
- package/esm/models/userevent.d.ts +5 -0
- package/esm/models/userevent.d.ts.map +1 -1
- package/esm/models/userevent.js +2 -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/esm/sdk/sdk.d.ts +2 -0
- package/esm/sdk/sdk.d.ts.map +1 -1
- package/esm/sdk/sdk.js +4 -0
- package/esm/sdk/sdk.js.map +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/__tests__/domains.test.ts +5 -21
- package/src/__tests__/projects.test.ts +15 -13
- package/src/__tests__/vercel.test.ts +16 -0
- package/src/funcs/{domainsCreateOrTransferDomain.ts → postDomains.ts} +22 -38
- package/src/funcs/projectsRequestPromote.ts +1 -0
- package/src/lib/config.ts +2 -2
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +3 -3
- package/src/mcp-server/tools/postDomains.ts +35 -0
- package/src/models/createdeploymentop.ts +16 -16
- package/src/models/createprojectop.ts +4 -0
- package/src/models/createrecordop.ts +96 -84
- package/src/models/getdomainop.ts +16 -14
- package/src/models/getprojectsop.ts +4 -0
- package/src/models/postdomainsop.ts +637 -0
- package/src/models/requestpromoteop.ts +7 -0
- package/src/models/teamlimited.ts +13 -13
- package/src/models/updateprojectdatacacheop.ts +4 -0
- package/src/models/updateprojectop.ts +4 -0
- package/src/models/userevent.ts +7 -0
- package/src/sdk/domains.ts +0 -22
- package/src/sdk/sdk.ts +16 -0
- package/vercel-spec.json +83 -65
- package/esm/funcs/domainsCreateOrTransferDomain.d.ts +0 -19
- package/esm/funcs/domainsCreateOrTransferDomain.d.ts.map +0 -1
- package/esm/funcs/domainsCreateOrTransferDomain.js.map +0 -1
- package/esm/mcp-server/tools/domainsCreateOrTransferDomain.d.ts +0 -7
- package/esm/mcp-server/tools/domainsCreateOrTransferDomain.d.ts.map +0 -1
- package/esm/mcp-server/tools/domainsCreateOrTransferDomain.js +0 -28
- package/esm/mcp-server/tools/domainsCreateOrTransferDomain.js.map +0 -1
- package/esm/models/createortransferdomainop.d.ts +0 -388
- package/esm/models/createortransferdomainop.d.ts.map +0 -1
- package/esm/models/createortransferdomainop.js +0 -310
- package/esm/models/createortransferdomainop.js.map +0 -1
- package/src/mcp-server/tools/domainsCreateOrTransferDomain.ts +0 -37
- package/src/models/createortransferdomainop.ts +0 -777
|
@@ -9,8 +9,8 @@ import { Result as SafeParseResult } from "../types/fp.js";
|
|
|
9
9
|
import { SDKValidationError } from "./sdkvalidationerror.js";
|
|
10
10
|
|
|
11
11
|
export const LimitedBy = {
|
|
12
|
-
Scope: "scope",
|
|
13
12
|
Mfa: "mfa",
|
|
13
|
+
Scope: "scope",
|
|
14
14
|
} as const;
|
|
15
15
|
export type LimitedBy = ClosedEnum<typeof LimitedBy>;
|
|
16
16
|
|
|
@@ -18,14 +18,14 @@ export type LimitedBy = ClosedEnum<typeof LimitedBy>;
|
|
|
18
18
|
* Information for the SAML Single Sign-On configuration.
|
|
19
19
|
*/
|
|
20
20
|
export type Connection = {
|
|
21
|
-
/**
|
|
22
|
-
* The Identity Provider "type", for example Okta.
|
|
23
|
-
*/
|
|
24
|
-
type: string;
|
|
25
21
|
/**
|
|
26
22
|
* Current status of the connection.
|
|
27
23
|
*/
|
|
28
24
|
status: string;
|
|
25
|
+
/**
|
|
26
|
+
* The Identity Provider "type", for example Okta.
|
|
27
|
+
*/
|
|
28
|
+
type: string;
|
|
29
29
|
/**
|
|
30
30
|
* Current state of the connection.
|
|
31
31
|
*/
|
|
@@ -116,6 +116,7 @@ export const TeamPermissions = {
|
|
|
116
116
|
export type TeamPermissions = ClosedEnum<typeof TeamPermissions>;
|
|
117
117
|
|
|
118
118
|
export const Origin = {
|
|
119
|
+
Saml: "saml",
|
|
119
120
|
Mail: "mail",
|
|
120
121
|
Link: "link",
|
|
121
122
|
Import: "import",
|
|
@@ -123,7 +124,6 @@ export const Origin = {
|
|
|
123
124
|
Github: "github",
|
|
124
125
|
Gitlab: "gitlab",
|
|
125
126
|
Bitbucket: "bitbucket",
|
|
126
|
-
Saml: "saml",
|
|
127
127
|
Dsync: "dsync",
|
|
128
128
|
Feedback: "feedback",
|
|
129
129
|
OrganizationTeams: "organization-teams",
|
|
@@ -152,13 +152,13 @@ export type JoinedFrom = {
|
|
|
152
152
|
export type Membership = {
|
|
153
153
|
uid?: string | undefined;
|
|
154
154
|
entitlements?: Array<Entitlements> | undefined;
|
|
155
|
-
teamId?: string | undefined;
|
|
156
155
|
confirmed: boolean;
|
|
157
156
|
confirmedAt: number;
|
|
158
157
|
accessRequestedAt?: number | undefined;
|
|
159
158
|
role: Role;
|
|
160
159
|
teamRoles?: Array<TeamRoles> | undefined;
|
|
161
160
|
teamPermissions?: Array<TeamPermissions> | undefined;
|
|
161
|
+
teamId?: string | undefined;
|
|
162
162
|
createdAt: number;
|
|
163
163
|
created: number;
|
|
164
164
|
joinedFrom?: JoinedFrom | undefined;
|
|
@@ -233,8 +233,8 @@ export const Connection$inboundSchema: z.ZodType<
|
|
|
233
233
|
z.ZodTypeDef,
|
|
234
234
|
unknown
|
|
235
235
|
> = z.object({
|
|
236
|
-
type: z.string(),
|
|
237
236
|
status: z.string(),
|
|
237
|
+
type: z.string(),
|
|
238
238
|
state: z.string(),
|
|
239
239
|
connectedAt: z.number(),
|
|
240
240
|
lastReceivedWebhookEvent: z.number().optional(),
|
|
@@ -242,8 +242,8 @@ export const Connection$inboundSchema: z.ZodType<
|
|
|
242
242
|
|
|
243
243
|
/** @internal */
|
|
244
244
|
export type Connection$Outbound = {
|
|
245
|
-
type: string;
|
|
246
245
|
status: string;
|
|
246
|
+
type: string;
|
|
247
247
|
state: string;
|
|
248
248
|
connectedAt: number;
|
|
249
249
|
lastReceivedWebhookEvent?: number | undefined;
|
|
@@ -255,8 +255,8 @@ export const Connection$outboundSchema: z.ZodType<
|
|
|
255
255
|
z.ZodTypeDef,
|
|
256
256
|
Connection
|
|
257
257
|
> = z.object({
|
|
258
|
-
type: z.string(),
|
|
259
258
|
status: z.string(),
|
|
259
|
+
type: z.string(),
|
|
260
260
|
state: z.string(),
|
|
261
261
|
connectedAt: z.number(),
|
|
262
262
|
lastReceivedWebhookEvent: z.number().optional(),
|
|
@@ -659,13 +659,13 @@ export const Membership$inboundSchema: z.ZodType<
|
|
|
659
659
|
> = z.object({
|
|
660
660
|
uid: z.string().optional(),
|
|
661
661
|
entitlements: z.array(z.lazy(() => Entitlements$inboundSchema)).optional(),
|
|
662
|
-
teamId: z.string().optional(),
|
|
663
662
|
confirmed: z.boolean(),
|
|
664
663
|
confirmedAt: z.number(),
|
|
665
664
|
accessRequestedAt: z.number().optional(),
|
|
666
665
|
role: Role$inboundSchema,
|
|
667
666
|
teamRoles: z.array(TeamRoles$inboundSchema).optional(),
|
|
668
667
|
teamPermissions: z.array(TeamPermissions$inboundSchema).optional(),
|
|
668
|
+
teamId: z.string().optional(),
|
|
669
669
|
createdAt: z.number(),
|
|
670
670
|
created: z.number(),
|
|
671
671
|
joinedFrom: z.lazy(() => JoinedFrom$inboundSchema).optional(),
|
|
@@ -675,13 +675,13 @@ export const Membership$inboundSchema: z.ZodType<
|
|
|
675
675
|
export type Membership$Outbound = {
|
|
676
676
|
uid?: string | undefined;
|
|
677
677
|
entitlements?: Array<Entitlements$Outbound> | undefined;
|
|
678
|
-
teamId?: string | undefined;
|
|
679
678
|
confirmed: boolean;
|
|
680
679
|
confirmedAt: number;
|
|
681
680
|
accessRequestedAt?: number | undefined;
|
|
682
681
|
role: string;
|
|
683
682
|
teamRoles?: Array<string> | undefined;
|
|
684
683
|
teamPermissions?: Array<string> | undefined;
|
|
684
|
+
teamId?: string | undefined;
|
|
685
685
|
createdAt: number;
|
|
686
686
|
created: number;
|
|
687
687
|
joinedFrom?: JoinedFrom$Outbound | undefined;
|
|
@@ -695,13 +695,13 @@ export const Membership$outboundSchema: z.ZodType<
|
|
|
695
695
|
> = z.object({
|
|
696
696
|
uid: z.string().optional(),
|
|
697
697
|
entitlements: z.array(z.lazy(() => Entitlements$outboundSchema)).optional(),
|
|
698
|
-
teamId: z.string().optional(),
|
|
699
698
|
confirmed: z.boolean(),
|
|
700
699
|
confirmedAt: z.number(),
|
|
701
700
|
accessRequestedAt: z.number().optional(),
|
|
702
701
|
role: Role$outboundSchema,
|
|
703
702
|
teamRoles: z.array(TeamRoles$outboundSchema).optional(),
|
|
704
703
|
teamPermissions: z.array(TeamPermissions$outboundSchema).optional(),
|
|
704
|
+
teamId: z.string().optional(),
|
|
705
705
|
createdAt: z.number(),
|
|
706
706
|
created: z.number(),
|
|
707
707
|
joinedFrom: z.lazy(() => JoinedFrom$outboundSchema).optional(),
|
|
@@ -1383,6 +1383,7 @@ export type Permissions = {
|
|
|
1383
1383
|
deploymentPrivate?: Array<ACLAction> | undefined;
|
|
1384
1384
|
deploymentPromote?: Array<ACLAction> | undefined;
|
|
1385
1385
|
deploymentRollback?: Array<ACLAction> | undefined;
|
|
1386
|
+
edgeCacheNamespace?: Array<ACLAction> | undefined;
|
|
1386
1387
|
environments?: Array<ACLAction> | undefined;
|
|
1387
1388
|
logs?: Array<ACLAction> | undefined;
|
|
1388
1389
|
logsPreset?: Array<ACLAction> | undefined;
|
|
@@ -7768,6 +7769,7 @@ export const Permissions$inboundSchema: z.ZodType<
|
|
|
7768
7769
|
deploymentPrivate: z.array(ACLAction$inboundSchema).optional(),
|
|
7769
7770
|
deploymentPromote: z.array(ACLAction$inboundSchema).optional(),
|
|
7770
7771
|
deploymentRollback: z.array(ACLAction$inboundSchema).optional(),
|
|
7772
|
+
edgeCacheNamespace: z.array(ACLAction$inboundSchema).optional(),
|
|
7771
7773
|
environments: z.array(ACLAction$inboundSchema).optional(),
|
|
7772
7774
|
logs: z.array(ACLAction$inboundSchema).optional(),
|
|
7773
7775
|
logsPreset: z.array(ACLAction$inboundSchema).optional(),
|
|
@@ -7974,6 +7976,7 @@ export type Permissions$Outbound = {
|
|
|
7974
7976
|
deploymentPrivate?: Array<string> | undefined;
|
|
7975
7977
|
deploymentPromote?: Array<string> | undefined;
|
|
7976
7978
|
deploymentRollback?: Array<string> | undefined;
|
|
7979
|
+
edgeCacheNamespace?: Array<string> | undefined;
|
|
7977
7980
|
environments?: Array<string> | undefined;
|
|
7978
7981
|
logs?: Array<string> | undefined;
|
|
7979
7982
|
logsPreset?: Array<string> | undefined;
|
|
@@ -8183,6 +8186,7 @@ export const Permissions$outboundSchema: z.ZodType<
|
|
|
8183
8186
|
deploymentPrivate: z.array(ACLAction$outboundSchema).optional(),
|
|
8184
8187
|
deploymentPromote: z.array(ACLAction$outboundSchema).optional(),
|
|
8185
8188
|
deploymentRollback: z.array(ACLAction$outboundSchema).optional(),
|
|
8189
|
+
edgeCacheNamespace: z.array(ACLAction$outboundSchema).optional(),
|
|
8186
8190
|
environments: z.array(ACLAction$outboundSchema).optional(),
|
|
8187
8191
|
logs: z.array(ACLAction$outboundSchema).optional(),
|
|
8188
8192
|
logsPreset: z.array(ACLAction$outboundSchema).optional(),
|
|
@@ -1761,6 +1761,7 @@ export type UpdateProjectPermissions = {
|
|
|
1761
1761
|
deploymentPrivate?: Array<ACLAction> | undefined;
|
|
1762
1762
|
deploymentPromote?: Array<ACLAction> | undefined;
|
|
1763
1763
|
deploymentRollback?: Array<ACLAction> | undefined;
|
|
1764
|
+
edgeCacheNamespace?: Array<ACLAction> | undefined;
|
|
1764
1765
|
environments?: Array<ACLAction> | undefined;
|
|
1765
1766
|
logs?: Array<ACLAction> | undefined;
|
|
1766
1767
|
logsPreset?: Array<ACLAction> | undefined;
|
|
@@ -9113,6 +9114,7 @@ export const UpdateProjectPermissions$inboundSchema: z.ZodType<
|
|
|
9113
9114
|
deploymentPrivate: z.array(ACLAction$inboundSchema).optional(),
|
|
9114
9115
|
deploymentPromote: z.array(ACLAction$inboundSchema).optional(),
|
|
9115
9116
|
deploymentRollback: z.array(ACLAction$inboundSchema).optional(),
|
|
9117
|
+
edgeCacheNamespace: z.array(ACLAction$inboundSchema).optional(),
|
|
9116
9118
|
environments: z.array(ACLAction$inboundSchema).optional(),
|
|
9117
9119
|
logs: z.array(ACLAction$inboundSchema).optional(),
|
|
9118
9120
|
logsPreset: z.array(ACLAction$inboundSchema).optional(),
|
|
@@ -9319,6 +9321,7 @@ export type UpdateProjectPermissions$Outbound = {
|
|
|
9319
9321
|
deploymentPrivate?: Array<string> | undefined;
|
|
9320
9322
|
deploymentPromote?: Array<string> | undefined;
|
|
9321
9323
|
deploymentRollback?: Array<string> | undefined;
|
|
9324
|
+
edgeCacheNamespace?: Array<string> | undefined;
|
|
9322
9325
|
environments?: Array<string> | undefined;
|
|
9323
9326
|
logs?: Array<string> | undefined;
|
|
9324
9327
|
logsPreset?: Array<string> | undefined;
|
|
@@ -9528,6 +9531,7 @@ export const UpdateProjectPermissions$outboundSchema: z.ZodType<
|
|
|
9528
9531
|
deploymentPrivate: z.array(ACLAction$outboundSchema).optional(),
|
|
9529
9532
|
deploymentPromote: z.array(ACLAction$outboundSchema).optional(),
|
|
9530
9533
|
deploymentRollback: z.array(ACLAction$outboundSchema).optional(),
|
|
9534
|
+
edgeCacheNamespace: z.array(ACLAction$outboundSchema).optional(),
|
|
9531
9535
|
environments: z.array(ACLAction$outboundSchema).optional(),
|
|
9532
9536
|
logs: z.array(ACLAction$outboundSchema).optional(),
|
|
9533
9537
|
logsPreset: z.array(ACLAction$outboundSchema).optional(),
|
package/src/models/userevent.ts
CHANGED
|
@@ -2566,6 +2566,10 @@ export type OverageMetadata = {
|
|
|
2566
2566
|
* Tracks the last time we sent a summary email.
|
|
2567
2567
|
*/
|
|
2568
2568
|
overageSummaryEmailSentAt?: number | undefined;
|
|
2569
|
+
/**
|
|
2570
|
+
* Tracks the last time we sent a increased on-demand email.
|
|
2571
|
+
*/
|
|
2572
|
+
increasedOnDemandEmailSentAt?: number | undefined;
|
|
2569
2573
|
};
|
|
2570
2574
|
|
|
2571
2575
|
/**
|
|
@@ -20856,12 +20860,14 @@ export const OverageMetadata$inboundSchema: z.ZodType<
|
|
|
20856
20860
|
> = z.object({
|
|
20857
20861
|
firstTimeOnDemandNotificationSentAt: z.number().optional(),
|
|
20858
20862
|
overageSummaryEmailSentAt: z.number().optional(),
|
|
20863
|
+
increasedOnDemandEmailSentAt: z.number().optional(),
|
|
20859
20864
|
});
|
|
20860
20865
|
|
|
20861
20866
|
/** @internal */
|
|
20862
20867
|
export type OverageMetadata$Outbound = {
|
|
20863
20868
|
firstTimeOnDemandNotificationSentAt?: number | undefined;
|
|
20864
20869
|
overageSummaryEmailSentAt?: number | undefined;
|
|
20870
|
+
increasedOnDemandEmailSentAt?: number | undefined;
|
|
20865
20871
|
};
|
|
20866
20872
|
|
|
20867
20873
|
/** @internal */
|
|
@@ -20872,6 +20878,7 @@ export const OverageMetadata$outboundSchema: z.ZodType<
|
|
|
20872
20878
|
> = z.object({
|
|
20873
20879
|
firstTimeOnDemandNotificationSentAt: z.number().optional(),
|
|
20874
20880
|
overageSummaryEmailSentAt: z.number().optional(),
|
|
20881
|
+
increasedOnDemandEmailSentAt: z.number().optional(),
|
|
20875
20882
|
});
|
|
20876
20883
|
|
|
20877
20884
|
/**
|
package/src/sdk/domains.ts
CHANGED
|
@@ -5,7 +5,6 @@
|
|
|
5
5
|
import { domainsBuyDomain } from "../funcs/domainsBuyDomain.js";
|
|
6
6
|
import { domainsCheckDomainPrice } from "../funcs/domainsCheckDomainPrice.js";
|
|
7
7
|
import { domainsCheckDomainStatus } from "../funcs/domainsCheckDomainStatus.js";
|
|
8
|
-
import { domainsCreateOrTransferDomain } from "../funcs/domainsCreateOrTransferDomain.js";
|
|
9
8
|
import { domainsDeleteDomain } from "../funcs/domainsDeleteDomain.js";
|
|
10
9
|
import { domainsGetDomain } from "../funcs/domainsGetDomain.js";
|
|
11
10
|
import { domainsGetDomainConfig } from "../funcs/domainsGetDomainConfig.js";
|
|
@@ -22,10 +21,6 @@ import {
|
|
|
22
21
|
CheckDomainStatusRequest,
|
|
23
22
|
CheckDomainStatusResponseBody,
|
|
24
23
|
} from "../models/checkdomainstatusop.js";
|
|
25
|
-
import {
|
|
26
|
-
CreateOrTransferDomainRequest,
|
|
27
|
-
CreateOrTransferDomainResponseBody,
|
|
28
|
-
} from "../models/createortransferdomainop.js";
|
|
29
24
|
import {
|
|
30
25
|
DeleteDomainRequest,
|
|
31
26
|
DeleteDomainResponseBody,
|
|
@@ -172,23 +167,6 @@ export class Domains extends ClientSDK {
|
|
|
172
167
|
));
|
|
173
168
|
}
|
|
174
169
|
|
|
175
|
-
/**
|
|
176
|
-
* Register or transfer-in a new Domain
|
|
177
|
-
*
|
|
178
|
-
* @remarks
|
|
179
|
-
* This endpoint is used for adding a new apex domain name with Vercel for the authenticating user. Can also be used for initiating a domain transfer request from an external Registrar to Vercel.
|
|
180
|
-
*/
|
|
181
|
-
async createOrTransferDomain(
|
|
182
|
-
request: CreateOrTransferDomainRequest,
|
|
183
|
-
options?: RequestOptions,
|
|
184
|
-
): Promise<CreateOrTransferDomainResponseBody> {
|
|
185
|
-
return unwrapAsync(domainsCreateOrTransferDomain(
|
|
186
|
-
this,
|
|
187
|
-
request,
|
|
188
|
-
options,
|
|
189
|
-
));
|
|
190
|
-
}
|
|
191
|
-
|
|
192
170
|
/**
|
|
193
171
|
* Update or move apex domain
|
|
194
172
|
*
|
package/src/sdk/sdk.ts
CHANGED
|
@@ -5,11 +5,16 @@
|
|
|
5
5
|
import { deleteProjectsProjectIdLogsPresetsId } from "../funcs/deleteProjectsProjectIdLogsPresetsId.js";
|
|
6
6
|
import { getProjectsProjectIdLogsPresets } from "../funcs/getProjectsProjectIdLogsPresets.js";
|
|
7
7
|
import { patchProjectsProjectIdLogsPresetsId } from "../funcs/patchProjectsProjectIdLogsPresetsId.js";
|
|
8
|
+
import { postDomains } from "../funcs/postDomains.js";
|
|
8
9
|
import { postProjectsProjectIdLogsPresets } from "../funcs/postProjectsProjectIdLogsPresets.js";
|
|
9
10
|
import { ClientSDK, RequestOptions } from "../lib/sdks.js";
|
|
10
11
|
import { DeleteProjectsProjectIdLogsPresetsIdRequest } from "../models/deleteprojectsprojectidlogspresetsidop.js";
|
|
11
12
|
import { GetProjectsProjectIdLogsPresetsRequest } from "../models/getprojectsprojectidlogspresetsop.js";
|
|
12
13
|
import { PatchProjectsProjectIdLogsPresetsIdRequest } from "../models/patchprojectsprojectidlogspresetsidop.js";
|
|
14
|
+
import {
|
|
15
|
+
PostDomainsRequestBody,
|
|
16
|
+
PostDomainsResponseBody,
|
|
17
|
+
} from "../models/postdomainsop.js";
|
|
13
18
|
import { PostProjectsProjectIdLogsPresetsRequest } from "../models/postprojectsprojectidlogspresetsop.js";
|
|
14
19
|
import { Team } from "../models/team.js";
|
|
15
20
|
import { unwrapAsync } from "../types/fp.js";
|
|
@@ -141,6 +146,17 @@ export class Vercel extends ClientSDK {
|
|
|
141
146
|
return (this._certs ??= new Certs(this._options));
|
|
142
147
|
}
|
|
143
148
|
|
|
149
|
+
async postDomains(
|
|
150
|
+
request?: PostDomainsRequestBody | undefined,
|
|
151
|
+
options?: RequestOptions,
|
|
152
|
+
): Promise<PostDomainsResponseBody> {
|
|
153
|
+
return unwrapAsync(postDomains(
|
|
154
|
+
this,
|
|
155
|
+
request,
|
|
156
|
+
options,
|
|
157
|
+
));
|
|
158
|
+
}
|
|
159
|
+
|
|
144
160
|
async getProjectsProjectIdLogsPresets(
|
|
145
161
|
request: GetProjectsProjectIdLogsPresetsRequest,
|
|
146
162
|
options?: RequestOptions,
|
package/vercel-spec.json
CHANGED
|
@@ -7186,6 +7186,12 @@
|
|
|
7186
7186
|
},
|
|
7187
7187
|
"type": "array"
|
|
7188
7188
|
},
|
|
7189
|
+
"edgeCacheNamespace": {
|
|
7190
|
+
"items": {
|
|
7191
|
+
"$ref": "#/components/schemas/ACLAction"
|
|
7192
|
+
},
|
|
7193
|
+
"type": "array"
|
|
7194
|
+
},
|
|
7189
7195
|
"environments": {
|
|
7190
7196
|
"items": {
|
|
7191
7197
|
"$ref": "#/components/schemas/ACLAction"
|
|
@@ -12537,25 +12543,25 @@
|
|
|
12537
12543
|
"lambdas": {
|
|
12538
12544
|
"items": {
|
|
12539
12545
|
"properties": {
|
|
12540
|
-
"id": {
|
|
12541
|
-
"type": "string"
|
|
12542
|
-
},
|
|
12543
12546
|
"createdAt": {
|
|
12544
12547
|
"type": "number"
|
|
12545
12548
|
},
|
|
12546
|
-
"
|
|
12547
|
-
"nullable": true,
|
|
12549
|
+
"id": {
|
|
12548
12550
|
"type": "string"
|
|
12549
12551
|
},
|
|
12550
12552
|
"readyState": {
|
|
12551
12553
|
"type": "string",
|
|
12552
12554
|
"enum": [
|
|
12553
|
-
"BUILDING",
|
|
12554
12555
|
"ERROR",
|
|
12556
|
+
"BUILDING",
|
|
12555
12557
|
"INITIALIZING",
|
|
12556
12558
|
"READY"
|
|
12557
12559
|
]
|
|
12558
12560
|
},
|
|
12561
|
+
"entrypoint": {
|
|
12562
|
+
"nullable": true,
|
|
12563
|
+
"type": "string"
|
|
12564
|
+
},
|
|
12559
12565
|
"readyStateAt": {
|
|
12560
12566
|
"type": "number"
|
|
12561
12567
|
},
|
|
@@ -12667,9 +12673,9 @@
|
|
|
12667
12673
|
"type": {
|
|
12668
12674
|
"type": "string",
|
|
12669
12675
|
"enum": [
|
|
12676
|
+
"endsWith",
|
|
12670
12677
|
"startsWith",
|
|
12671
|
-
"equals"
|
|
12672
|
-
"endsWith"
|
|
12678
|
+
"equals"
|
|
12673
12679
|
],
|
|
12674
12680
|
"description": "The type of matching to perform"
|
|
12675
12681
|
},
|
|
@@ -13586,15 +13592,15 @@
|
|
|
13586
13592
|
"functionType": {
|
|
13587
13593
|
"type": "string",
|
|
13588
13594
|
"enum": [
|
|
13589
|
-
"
|
|
13590
|
-
"
|
|
13595
|
+
"standard",
|
|
13596
|
+
"fluid"
|
|
13591
13597
|
]
|
|
13592
13598
|
},
|
|
13593
13599
|
"functionMemoryType": {
|
|
13594
13600
|
"type": "string",
|
|
13595
13601
|
"enum": [
|
|
13596
|
-
"standard",
|
|
13597
13602
|
"standard_legacy",
|
|
13603
|
+
"standard",
|
|
13598
13604
|
"performance"
|
|
13599
13605
|
]
|
|
13600
13606
|
},
|
|
@@ -13824,11 +13830,11 @@
|
|
|
13824
13830
|
"type": "string",
|
|
13825
13831
|
"enum": [
|
|
13826
13832
|
"error",
|
|
13833
|
+
"resource",
|
|
13827
13834
|
"filesystem",
|
|
13828
13835
|
"hit",
|
|
13829
13836
|
"miss",
|
|
13830
|
-
"rewrite"
|
|
13831
|
-
"resource"
|
|
13837
|
+
"rewrite"
|
|
13832
13838
|
]
|
|
13833
13839
|
},
|
|
13834
13840
|
"src": {
|
|
@@ -13938,8 +13944,8 @@
|
|
|
13938
13944
|
"ownerType": {
|
|
13939
13945
|
"type": "string",
|
|
13940
13946
|
"enum": [
|
|
13941
|
-
"
|
|
13942
|
-
"
|
|
13947
|
+
"user",
|
|
13948
|
+
"team"
|
|
13943
13949
|
]
|
|
13944
13950
|
}
|
|
13945
13951
|
},
|
|
@@ -13991,8 +13997,8 @@
|
|
|
13991
13997
|
"ownerType": {
|
|
13992
13998
|
"type": "string",
|
|
13993
13999
|
"enum": [
|
|
13994
|
-
"
|
|
13995
|
-
"
|
|
14000
|
+
"user",
|
|
14001
|
+
"team"
|
|
13996
14002
|
]
|
|
13997
14003
|
}
|
|
13998
14004
|
},
|
|
@@ -14045,8 +14051,8 @@
|
|
|
14045
14051
|
"ownerType": {
|
|
14046
14052
|
"type": "string",
|
|
14047
14053
|
"enum": [
|
|
14048
|
-
"
|
|
14049
|
-
"
|
|
14054
|
+
"user",
|
|
14055
|
+
"team"
|
|
14050
14056
|
]
|
|
14051
14057
|
}
|
|
14052
14058
|
},
|
|
@@ -19347,19 +19353,13 @@
|
|
|
19347
19353
|
}
|
|
19348
19354
|
}
|
|
19349
19355
|
]
|
|
19350
|
-
}
|
|
19356
|
+
}
|
|
19357
|
+
},
|
|
19358
|
+
"/domains": {
|
|
19351
19359
|
"post": {
|
|
19352
|
-
"description": "
|
|
19353
|
-
"
|
|
19354
|
-
"
|
|
19355
|
-
{
|
|
19356
|
-
"bearerToken": []
|
|
19357
|
-
}
|
|
19358
|
-
],
|
|
19359
|
-
"summary": "Register or transfer-in a new Domain",
|
|
19360
|
-
"tags": [
|
|
19361
|
-
"domains"
|
|
19362
|
-
],
|
|
19360
|
+
"description": "",
|
|
19361
|
+
"security": [],
|
|
19362
|
+
"tags": [],
|
|
19363
19363
|
"responses": {
|
|
19364
19364
|
"200": {
|
|
19365
19365
|
"description": "",
|
|
@@ -19573,26 +19573,7 @@
|
|
|
19573
19573
|
"description": ""
|
|
19574
19574
|
}
|
|
19575
19575
|
},
|
|
19576
|
-
"parameters": [
|
|
19577
|
-
{
|
|
19578
|
-
"description": "The Team identifier to perform the request on behalf of.",
|
|
19579
|
-
"in": "query",
|
|
19580
|
-
"name": "teamId",
|
|
19581
|
-
"schema": {
|
|
19582
|
-
"type": "string",
|
|
19583
|
-
"example": "team_1a2b3c4d5e6f7g8h9i0j1k2l"
|
|
19584
|
-
}
|
|
19585
|
-
},
|
|
19586
|
-
{
|
|
19587
|
-
"description": "The Team slug to perform the request on behalf of.",
|
|
19588
|
-
"in": "query",
|
|
19589
|
-
"name": "slug",
|
|
19590
|
-
"schema": {
|
|
19591
|
-
"type": "string",
|
|
19592
|
-
"example": "my-team-url-slug"
|
|
19593
|
-
}
|
|
19594
|
-
}
|
|
19595
|
-
],
|
|
19576
|
+
"parameters": [],
|
|
19596
19577
|
"requestBody": {
|
|
19597
19578
|
"content": {
|
|
19598
19579
|
"application/json": {
|
|
@@ -19693,8 +19674,7 @@
|
|
|
19693
19674
|
]
|
|
19694
19675
|
}
|
|
19695
19676
|
}
|
|
19696
|
-
}
|
|
19697
|
-
"required": true
|
|
19677
|
+
}
|
|
19698
19678
|
}
|
|
19699
19679
|
}
|
|
19700
19680
|
},
|
|
@@ -30728,6 +30708,12 @@
|
|
|
30728
30708
|
},
|
|
30729
30709
|
"type": "array"
|
|
30730
30710
|
},
|
|
30711
|
+
"edgeCacheNamespace": {
|
|
30712
|
+
"items": {
|
|
30713
|
+
"$ref": "#/components/schemas/ACLAction"
|
|
30714
|
+
},
|
|
30715
|
+
"type": "array"
|
|
30716
|
+
},
|
|
30731
30717
|
"environments": {
|
|
30732
30718
|
"items": {
|
|
30733
30719
|
"$ref": "#/components/schemas/ACLAction"
|
|
@@ -34795,6 +34781,12 @@
|
|
|
34795
34781
|
},
|
|
34796
34782
|
"type": "array"
|
|
34797
34783
|
},
|
|
34784
|
+
"edgeCacheNamespace": {
|
|
34785
|
+
"items": {
|
|
34786
|
+
"$ref": "#/components/schemas/ACLAction"
|
|
34787
|
+
},
|
|
34788
|
+
"type": "array"
|
|
34789
|
+
},
|
|
34798
34790
|
"environments": {
|
|
34799
34791
|
"items": {
|
|
34800
34792
|
"$ref": "#/components/schemas/ACLAction"
|
|
@@ -39047,6 +39039,12 @@
|
|
|
39047
39039
|
},
|
|
39048
39040
|
"type": "array"
|
|
39049
39041
|
},
|
|
39042
|
+
"edgeCacheNamespace": {
|
|
39043
|
+
"items": {
|
|
39044
|
+
"$ref": "#/components/schemas/ACLAction"
|
|
39045
|
+
},
|
|
39046
|
+
"type": "array"
|
|
39047
|
+
},
|
|
39050
39048
|
"environments": {
|
|
39051
39049
|
"items": {
|
|
39052
39050
|
"$ref": "#/components/schemas/ACLAction"
|
|
@@ -43003,6 +43001,12 @@
|
|
|
43003
43001
|
},
|
|
43004
43002
|
"type": "array"
|
|
43005
43003
|
},
|
|
43004
|
+
"edgeCacheNamespace": {
|
|
43005
|
+
"items": {
|
|
43006
|
+
"$ref": "#/components/schemas/ACLAction"
|
|
43007
|
+
},
|
|
43008
|
+
"type": "array"
|
|
43009
|
+
},
|
|
43006
43010
|
"environments": {
|
|
43007
43011
|
"items": {
|
|
43008
43012
|
"$ref": "#/components/schemas/ACLAction"
|
|
@@ -53596,6 +53600,16 @@
|
|
|
53596
53600
|
"type": "string"
|
|
53597
53601
|
}
|
|
53598
53602
|
},
|
|
53603
|
+
{
|
|
53604
|
+
"name": "dangerouslyForcePromoteCanary",
|
|
53605
|
+
"description": "Skip the rolling release process and promote directly to production",
|
|
53606
|
+
"in": "query",
|
|
53607
|
+
"required": false,
|
|
53608
|
+
"schema": {
|
|
53609
|
+
"type": "boolean",
|
|
53610
|
+
"description": "Skip the rolling release process and promote directly to production"
|
|
53611
|
+
}
|
|
53612
|
+
},
|
|
53599
53613
|
{
|
|
53600
53614
|
"description": "The Team identifier to perform the request on behalf of.",
|
|
53601
53615
|
"in": "query",
|
|
@@ -69075,6 +69089,10 @@
|
|
|
69075
69089
|
"overageSummaryEmailSentAt": {
|
|
69076
69090
|
"type": "number",
|
|
69077
69091
|
"description": "Tracks the last time we sent a summary email."
|
|
69092
|
+
},
|
|
69093
|
+
"increasedOnDemandEmailSentAt": {
|
|
69094
|
+
"type": "number",
|
|
69095
|
+
"description": "Tracks the last time we sent a increased on-demand email."
|
|
69078
69096
|
}
|
|
69079
69097
|
},
|
|
69080
69098
|
"type": "object",
|
|
@@ -72868,8 +72886,8 @@
|
|
|
72868
72886
|
"items": {
|
|
72869
72887
|
"type": "string",
|
|
72870
72888
|
"enum": [
|
|
72871
|
-
"
|
|
72872
|
-
"
|
|
72889
|
+
"mfa",
|
|
72890
|
+
"scope"
|
|
72873
72891
|
]
|
|
72874
72892
|
},
|
|
72875
72893
|
"type": "array"
|
|
@@ -72878,16 +72896,16 @@
|
|
|
72878
72896
|
"properties": {
|
|
72879
72897
|
"connection": {
|
|
72880
72898
|
"properties": {
|
|
72881
|
-
"type": {
|
|
72882
|
-
"type": "string",
|
|
72883
|
-
"description": "The Identity Provider \"type\", for example Okta.",
|
|
72884
|
-
"example": "OktaSAML"
|
|
72885
|
-
},
|
|
72886
72899
|
"status": {
|
|
72887
72900
|
"type": "string",
|
|
72888
72901
|
"description": "Current status of the connection.",
|
|
72889
72902
|
"example": "linked"
|
|
72890
72903
|
},
|
|
72904
|
+
"type": {
|
|
72905
|
+
"type": "string",
|
|
72906
|
+
"description": "The Identity Provider \"type\", for example Okta.",
|
|
72907
|
+
"example": "OktaSAML"
|
|
72908
|
+
},
|
|
72891
72909
|
"state": {
|
|
72892
72910
|
"type": "string",
|
|
72893
72911
|
"description": "Current state of the connection.",
|
|
@@ -72905,8 +72923,8 @@
|
|
|
72905
72923
|
}
|
|
72906
72924
|
},
|
|
72907
72925
|
"required": [
|
|
72908
|
-
"type",
|
|
72909
72926
|
"status",
|
|
72927
|
+
"type",
|
|
72910
72928
|
"state",
|
|
72911
72929
|
"connectedAt"
|
|
72912
72930
|
],
|
|
@@ -72999,9 +73017,6 @@
|
|
|
72999
73017
|
},
|
|
73000
73018
|
"type": "array"
|
|
73001
73019
|
},
|
|
73002
|
-
"teamId": {
|
|
73003
|
-
"type": "string"
|
|
73004
|
-
},
|
|
73005
73020
|
"confirmed": {
|
|
73006
73021
|
"type": "boolean"
|
|
73007
73022
|
},
|
|
@@ -73051,6 +73066,9 @@
|
|
|
73051
73066
|
},
|
|
73052
73067
|
"type": "array"
|
|
73053
73068
|
},
|
|
73069
|
+
"teamId": {
|
|
73070
|
+
"type": "string"
|
|
73071
|
+
},
|
|
73054
73072
|
"createdAt": {
|
|
73055
73073
|
"type": "number"
|
|
73056
73074
|
},
|
|
@@ -73062,6 +73080,7 @@
|
|
|
73062
73080
|
"origin": {
|
|
73063
73081
|
"type": "string",
|
|
73064
73082
|
"enum": [
|
|
73083
|
+
"saml",
|
|
73065
73084
|
"mail",
|
|
73066
73085
|
"link",
|
|
73067
73086
|
"import",
|
|
@@ -73069,7 +73088,6 @@
|
|
|
73069
73088
|
"github",
|
|
73070
73089
|
"gitlab",
|
|
73071
73090
|
"bitbucket",
|
|
73072
|
-
"saml",
|
|
73073
73091
|
"dsync",
|
|
73074
73092
|
"feedback",
|
|
73075
73093
|
"organization-teams"
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { VercelCore } from "../core.js";
|
|
2
|
-
import { RequestOptions } from "../lib/sdks.js";
|
|
3
|
-
import { CreateOrTransferDomainRequest, CreateOrTransferDomainResponseBody } from "../models/createortransferdomainop.js";
|
|
4
|
-
import { ConnectionError, InvalidRequestError, RequestAbortedError, RequestTimeoutError, UnexpectedClientError } from "../models/httpclienterrors.js";
|
|
5
|
-
import { SDKError } from "../models/sdkerror.js";
|
|
6
|
-
import { SDKValidationError } from "../models/sdkvalidationerror.js";
|
|
7
|
-
import { VercelBadRequestError } from "../models/vercelbadrequesterror.js";
|
|
8
|
-
import { VercelForbiddenError } from "../models/vercelforbiddenerror.js";
|
|
9
|
-
import { VercelNotFoundError } from "../models/vercelnotfounderror.js";
|
|
10
|
-
import { APIPromise } from "../types/async.js";
|
|
11
|
-
import { Result } from "../types/fp.js";
|
|
12
|
-
/**
|
|
13
|
-
* Register or transfer-in a new Domain
|
|
14
|
-
*
|
|
15
|
-
* @remarks
|
|
16
|
-
* This endpoint is used for adding a new apex domain name with Vercel for the authenticating user. Can also be used for initiating a domain transfer request from an external Registrar to Vercel.
|
|
17
|
-
*/
|
|
18
|
-
export declare function domainsCreateOrTransferDomain(client: VercelCore, request: CreateOrTransferDomainRequest, options?: RequestOptions): APIPromise<Result<CreateOrTransferDomainResponseBody, VercelBadRequestError | VercelForbiddenError | VercelNotFoundError | SDKError | SDKValidationError | UnexpectedClientError | InvalidRequestError | RequestAbortedError | RequestTimeoutError | ConnectionError>>;
|
|
19
|
-
//# sourceMappingURL=domainsCreateOrTransferDomain.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"domainsCreateOrTransferDomain.d.ts","sourceRoot":"","sources":["../../src/funcs/domainsCreateOrTransferDomain.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAKxC,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGhD,OAAO,EACL,6BAA6B,EAE7B,kCAAkC,EAEnC,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACtB,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACjD,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EACL,qBAAqB,EAEtB,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EACL,oBAAoB,EAErB,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EACL,mBAAmB,EAEpB,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EAAW,UAAU,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAExC;;;;;GAKG;AACH,wBAAgB,6BAA6B,CAC3C,MAAM,EAAE,UAAU,EAClB,OAAO,EAAE,6BAA6B,EACtC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CACX,MAAM,CACJ,kCAAkC,EAChC,qBAAqB,GACrB,oBAAoB,GACpB,mBAAmB,GACnB,QAAQ,GACR,kBAAkB,GAClB,qBAAqB,GACrB,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,eAAe,CAClB,CACF,CAMA"}
|