@vercel/sdk 1.13.7 → 1.13.9
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 +27 -21
- package/bin/mcp-server.js +2709 -1875
- package/bin/mcp-server.js.map +61 -54
- package/docs/sdks/domainsregistrar/README.md +73 -32
- package/docs/sdks/marketplace/README.md +150 -0
- package/esm/__tests__/accessgroups.test.js +2 -6
- package/esm/__tests__/accessgroups.test.js.map +1 -1
- package/esm/__tests__/domainsregistrar.test.js +33 -15
- package/esm/__tests__/domainsregistrar.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 +2 -6
- package/esm/__tests__/logdrains.test.js.map +1 -1
- package/esm/__tests__/marketplace.test.js +16 -0
- package/esm/__tests__/marketplace.test.js.map +1 -1
- package/esm/__tests__/rollingrelease.test.js +1 -1
- package/esm/__tests__/rollingrelease.test.js.map +1 -1
- package/esm/__tests__/security.test.js +4 -4
- package/esm/__tests__/security.test.js.map +1 -1
- package/esm/__tests__/teams.test.js +2 -2
- package/esm/__tests__/teams.test.js.map +1 -1
- package/esm/funcs/domainsRegistrarBuyDomains.d.ts +2 -2
- package/esm/funcs/domainsRegistrarBuyDomains.d.ts.map +1 -1
- package/esm/funcs/domainsRegistrarBuyDomains.js +8 -4
- package/esm/funcs/domainsRegistrarBuyDomains.js.map +1 -1
- package/esm/funcs/domainsRegistrarBuySingleDomain.js +5 -1
- package/esm/funcs/domainsRegistrarBuySingleDomain.js.map +1 -1
- package/esm/funcs/domainsRegistrarGetBulkAvailability.d.ts +2 -2
- package/esm/funcs/domainsRegistrarGetBulkAvailability.d.ts.map +1 -1
- package/esm/funcs/domainsRegistrarGetBulkAvailability.js +8 -4
- package/esm/funcs/domainsRegistrarGetBulkAvailability.js.map +1 -1
- package/esm/funcs/domainsRegistrarGetContactInfoSchema.js +5 -1
- package/esm/funcs/domainsRegistrarGetContactInfoSchema.js.map +1 -1
- package/esm/funcs/domainsRegistrarGetDomainAuthCode.js +5 -1
- package/esm/funcs/domainsRegistrarGetDomainAuthCode.js.map +1 -1
- package/esm/funcs/domainsRegistrarGetDomainAvailability.js +5 -1
- package/esm/funcs/domainsRegistrarGetDomainAvailability.js.map +1 -1
- package/esm/funcs/domainsRegistrarGetDomainPrice.js +1 -0
- package/esm/funcs/domainsRegistrarGetDomainPrice.js.map +1 -1
- package/esm/funcs/domainsRegistrarGetDomainTransferIn.js +5 -1
- package/esm/funcs/domainsRegistrarGetDomainTransferIn.js.map +1 -1
- package/esm/funcs/domainsRegistrarGetOrder.js +5 -1
- package/esm/funcs/domainsRegistrarGetOrder.js.map +1 -1
- package/esm/funcs/domainsRegistrarGetSupportedTlds.d.ts +2 -1
- package/esm/funcs/domainsRegistrarGetSupportedTlds.d.ts.map +1 -1
- package/esm/funcs/domainsRegistrarGetSupportedTlds.js +17 -3
- package/esm/funcs/domainsRegistrarGetSupportedTlds.js.map +1 -1
- package/esm/funcs/domainsRegistrarGetTldPrice.js +1 -0
- package/esm/funcs/domainsRegistrarGetTldPrice.js.map +1 -1
- package/esm/funcs/domainsRegistrarRenewDomain.js +5 -1
- package/esm/funcs/domainsRegistrarRenewDomain.js.map +1 -1
- package/esm/funcs/domainsRegistrarTransferInDomain.js +5 -1
- package/esm/funcs/domainsRegistrarTransferInDomain.js.map +1 -1
- package/esm/funcs/domainsRegistrarUpdateDomainAutoRenew.js +5 -1
- package/esm/funcs/domainsRegistrarUpdateDomainAutoRenew.js.map +1 -1
- package/esm/funcs/domainsRegistrarUpdateDomainNameservers.js +5 -1
- package/esm/funcs/domainsRegistrarUpdateDomainNameservers.js.map +1 -1
- package/esm/funcs/marketplaceUpdateInstallation.d.ts +17 -0
- package/esm/funcs/marketplaceUpdateInstallation.d.ts.map +1 -0
- package/esm/funcs/marketplaceUpdateInstallation.js +82 -0
- package/esm/funcs/marketplaceUpdateInstallation.js.map +1 -0
- package/esm/funcs/marketplaceUpdateResource.d.ts +17 -0
- package/esm/funcs/marketplaceUpdateResource.d.ts.map +1 -0
- package/esm/funcs/marketplaceUpdateResource.js +85 -0
- package/esm/funcs/marketplaceUpdateResource.js.map +1 -0
- package/esm/funcs/projectsPauseProject.js +2 -2
- package/esm/funcs/projectsPauseProject.js.map +1 -1
- package/esm/lib/config.d.ts +3 -3
- package/esm/lib/config.js +3 -3
- package/esm/lib/config.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 +5 -1
- package/esm/mcp-server/server.js.map +1 -1
- package/esm/mcp-server/tools/domainsRegistrarBuyDomains.d.ts +1 -1
- package/esm/mcp-server/tools/domainsRegistrarBuyDomains.js +2 -2
- package/esm/mcp-server/tools/domainsRegistrarBuyDomains.js.map +1 -1
- package/esm/mcp-server/tools/domainsRegistrarGetBulkAvailability.d.ts +1 -1
- package/esm/mcp-server/tools/domainsRegistrarGetBulkAvailability.js +2 -2
- package/esm/mcp-server/tools/domainsRegistrarGetBulkAvailability.js.map +1 -1
- package/esm/mcp-server/tools/domainsRegistrarGetSupportedTlds.d.ts +5 -1
- package/esm/mcp-server/tools/domainsRegistrarGetSupportedTlds.d.ts.map +1 -1
- package/esm/mcp-server/tools/domainsRegistrarGetSupportedTlds.js +7 -2
- package/esm/mcp-server/tools/domainsRegistrarGetSupportedTlds.js.map +1 -1
- package/esm/mcp-server/tools/marketplaceUpdateInstallation.d.ts +7 -0
- package/esm/mcp-server/tools/marketplaceUpdateInstallation.d.ts.map +1 -0
- package/esm/mcp-server/tools/marketplaceUpdateInstallation.js +27 -0
- package/esm/mcp-server/tools/marketplaceUpdateInstallation.js.map +1 -0
- package/esm/mcp-server/tools/marketplaceUpdateResource.d.ts +7 -0
- package/esm/mcp-server/tools/marketplaceUpdateResource.d.ts.map +1 -0
- package/esm/mcp-server/tools/marketplaceUpdateResource.js +28 -0
- package/esm/mcp-server/tools/marketplaceUpdateResource.js.map +1 -0
- package/esm/models/buydomainsop.d.ts +27 -0
- package/esm/models/buydomainsop.d.ts.map +1 -1
- package/esm/models/buydomainsop.js +35 -0
- package/esm/models/buydomainsop.js.map +1 -1
- package/esm/models/buysingledomainop.d.ts +10 -8
- package/esm/models/buysingledomainop.d.ts.map +1 -1
- package/esm/models/buysingledomainop.js +14 -13
- package/esm/models/buysingledomainop.js.map +1 -1
- package/esm/models/canceldeploymentop.d.ts +3 -10
- package/esm/models/canceldeploymentop.d.ts.map +1 -1
- package/esm/models/canceldeploymentop.js +1 -4
- package/esm/models/canceldeploymentop.js.map +1 -1
- package/esm/models/createdeploymentop.d.ts +6 -10
- package/esm/models/createdeploymentop.d.ts.map +1 -1
- package/esm/models/createdeploymentop.js +2 -4
- package/esm/models/createdeploymentop.js.map +1 -1
- package/esm/models/createintegrationstoredirectop.d.ts +415 -285
- package/esm/models/createintegrationstoredirectop.d.ts.map +1 -1
- package/esm/models/createintegrationstoredirectop.js +477 -351
- package/esm/models/createintegrationstoredirectop.js.map +1 -1
- package/esm/models/createprojectop.d.ts +130 -124
- package/esm/models/createprojectop.d.ts.map +1 -1
- package/esm/models/createprojectop.js +133 -131
- package/esm/models/createprojectop.js.map +1 -1
- package/esm/models/exchangessotokenop.d.ts +2 -0
- package/esm/models/exchangessotokenop.d.ts.map +1 -1
- package/esm/models/exchangessotokenop.js +4 -0
- package/esm/models/exchangessotokenop.js.map +1 -1
- package/esm/models/getbulkavailabilityop.d.ts +27 -0
- package/esm/models/getbulkavailabilityop.d.ts.map +1 -1
- package/esm/models/getbulkavailabilityop.js +36 -0
- package/esm/models/getbulkavailabilityop.js.map +1 -1
- package/esm/models/getconfigurationproductsop.d.ts +375 -375
- package/esm/models/getconfigurationproductsop.js +465 -465
- package/esm/models/getcontactinfoschemaop.d.ts +2 -0
- package/esm/models/getcontactinfoschemaop.d.ts.map +1 -1
- package/esm/models/getcontactinfoschemaop.js +2 -0
- package/esm/models/getcontactinfoschemaop.js.map +1 -1
- package/esm/models/getdeploymentop.d.ts +3 -10
- package/esm/models/getdeploymentop.d.ts.map +1 -1
- package/esm/models/getdeploymentop.js +1 -4
- package/esm/models/getdeploymentop.js.map +1 -1
- package/esm/models/getdeploymentsop.d.ts +3 -0
- package/esm/models/getdeploymentsop.d.ts.map +1 -1
- package/esm/models/getdeploymentsop.js +1 -0
- package/esm/models/getdeploymentsop.js.map +1 -1
- package/esm/models/getdomainauthcodeop.d.ts +2 -0
- package/esm/models/getdomainauthcodeop.d.ts.map +1 -1
- package/esm/models/getdomainauthcodeop.js +2 -0
- package/esm/models/getdomainauthcodeop.js.map +1 -1
- package/esm/models/getdomainavailabilityop.d.ts +2 -0
- package/esm/models/getdomainavailabilityop.d.ts.map +1 -1
- package/esm/models/getdomainavailabilityop.js +2 -0
- package/esm/models/getdomainavailabilityop.js.map +1 -1
- package/esm/models/getdomainpriceop.d.ts +2 -0
- package/esm/models/getdomainpriceop.d.ts.map +1 -1
- package/esm/models/getdomainpriceop.js +2 -0
- package/esm/models/getdomainpriceop.js.map +1 -1
- package/esm/models/getdomaintransferinop.d.ts +2 -0
- package/esm/models/getdomaintransferinop.d.ts.map +1 -1
- package/esm/models/getdomaintransferinop.js +2 -0
- package/esm/models/getdomaintransferinop.js.map +1 -1
- package/esm/models/getorderop.d.ts +2 -0
- package/esm/models/getorderop.d.ts.map +1 -1
- package/esm/models/getorderop.js +2 -0
- package/esm/models/getorderop.js.map +1 -1
- package/esm/models/getprojectsop.d.ts +127 -124
- package/esm/models/getprojectsop.d.ts.map +1 -1
- package/esm/models/getprojectsop.js +132 -131
- package/esm/models/getprojectsop.js.map +1 -1
- package/esm/models/getsupportedtldsop.d.ts +29 -0
- package/esm/models/getsupportedtldsop.d.ts.map +1 -0
- package/esm/models/getsupportedtldsop.js +31 -0
- package/esm/models/getsupportedtldsop.js.map +1 -0
- package/esm/models/gettldpriceop.d.ts +2 -0
- package/esm/models/gettldpriceop.d.ts.map +1 -1
- package/esm/models/gettldpriceop.js +2 -0
- package/esm/models/gettldpriceop.js.map +1 -1
- package/esm/models/getwebhooksop.d.ts +3 -0
- package/esm/models/getwebhooksop.d.ts.map +1 -1
- package/esm/models/getwebhooksop.js +1 -0
- package/esm/models/getwebhooksop.js.map +1 -1
- package/esm/models/importresourceop.d.ts +68 -68
- package/esm/models/importresourceop.d.ts.map +1 -1
- package/esm/models/importresourceop.js +75 -72
- package/esm/models/importresourceop.js.map +1 -1
- package/esm/models/renewdomainop.d.ts +2 -0
- package/esm/models/renewdomainop.d.ts.map +1 -1
- package/esm/models/renewdomainop.js +2 -0
- package/esm/models/renewdomainop.js.map +1 -1
- package/esm/models/team.d.ts +10 -10
- package/esm/models/team.d.ts.map +1 -1
- package/esm/models/team.js +5 -5
- package/esm/models/team.js.map +1 -1
- package/esm/models/transferindomainop.d.ts +2 -0
- package/esm/models/transferindomainop.d.ts.map +1 -1
- package/esm/models/transferindomainop.js +2 -0
- package/esm/models/transferindomainop.js.map +1 -1
- package/esm/models/updatedomainautorenewop.d.ts +2 -0
- package/esm/models/updatedomainautorenewop.d.ts.map +1 -1
- package/esm/models/updatedomainautorenewop.js +2 -0
- package/esm/models/updatedomainautorenewop.js.map +1 -1
- package/esm/models/updatedomainnameserversop.d.ts +2 -0
- package/esm/models/updatedomainnameserversop.d.ts.map +1 -1
- package/esm/models/updatedomainnameserversop.js +2 -0
- package/esm/models/updatedomainnameserversop.js.map +1 -1
- package/esm/models/updateinstallationop.d.ts +242 -0
- package/esm/models/updateinstallationop.d.ts.map +1 -0
- package/esm/models/updateinstallationop.js +246 -0
- package/esm/models/updateinstallationop.js.map +1 -0
- package/esm/models/updateprojectdatacacheop.d.ts +127 -124
- package/esm/models/updateprojectdatacacheop.d.ts.map +1 -1
- package/esm/models/updateprojectdatacacheop.js +132 -131
- package/esm/models/updateprojectdatacacheop.js.map +1 -1
- package/esm/models/updateprojectop.d.ts +130 -124
- package/esm/models/updateprojectop.d.ts.map +1 -1
- package/esm/models/updateprojectop.js +133 -131
- package/esm/models/updateprojectop.js.map +1 -1
- package/esm/models/updateresourceop.d.ts +432 -0
- package/esm/models/updateresourceop.d.ts.map +1 -0
- package/esm/models/updateresourceop.js +393 -0
- package/esm/models/updateresourceop.js.map +1 -0
- package/esm/models/userevent.d.ts +152 -6
- package/esm/models/userevent.d.ts.map +1 -1
- package/esm/models/userevent.js +112 -2
- package/esm/models/userevent.js.map +1 -1
- package/esm/sdk/domainsregistrar.d.ts +6 -5
- package/esm/sdk/domainsregistrar.d.ts.map +1 -1
- package/esm/sdk/domainsregistrar.js +2 -2
- package/esm/sdk/domainsregistrar.js.map +1 -1
- package/esm/sdk/marketplace.d.ts +16 -0
- package/esm/sdk/marketplace.d.ts.map +1 -1
- package/esm/sdk/marketplace.js +20 -0
- package/esm/sdk/marketplace.js.map +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 +2 -6
- package/src/__tests__/domainsregistrar.test.ts +33 -15
- package/src/__tests__/edgeconfig.test.ts +6 -6
- package/src/__tests__/integrations.test.ts +1 -1
- package/src/__tests__/logdrains.test.ts +2 -6
- package/src/__tests__/marketplace.test.ts +19 -0
- package/src/__tests__/rollingrelease.test.ts +1 -1
- package/src/__tests__/security.test.ts +4 -4
- package/src/__tests__/teams.test.ts +2 -2
- package/src/funcs/domainsRegistrarBuyDomains.ts +12 -7
- package/src/funcs/domainsRegistrarBuySingleDomain.ts +6 -1
- package/src/funcs/domainsRegistrarGetBulkAvailability.ts +12 -7
- package/src/funcs/domainsRegistrarGetContactInfoSchema.ts +6 -1
- package/src/funcs/domainsRegistrarGetDomainAuthCode.ts +6 -1
- package/src/funcs/domainsRegistrarGetDomainAvailability.ts +6 -1
- package/src/funcs/domainsRegistrarGetDomainPrice.ts +1 -0
- package/src/funcs/domainsRegistrarGetDomainTransferIn.ts +6 -1
- package/src/funcs/domainsRegistrarGetOrder.ts +6 -1
- package/src/funcs/domainsRegistrarGetSupportedTlds.ts +26 -0
- package/src/funcs/domainsRegistrarGetTldPrice.ts +1 -0
- package/src/funcs/domainsRegistrarRenewDomain.ts +6 -1
- package/src/funcs/domainsRegistrarTransferInDomain.ts +6 -1
- package/src/funcs/domainsRegistrarUpdateDomainAutoRenew.ts +6 -1
- package/src/funcs/domainsRegistrarUpdateDomainNameservers.ts +6 -1
- package/src/funcs/marketplaceUpdateInstallation.ts +174 -0
- package/src/funcs/marketplaceUpdateResource.ts +179 -0
- package/src/funcs/projectsPauseProject.ts +2 -2
- package/src/lib/config.ts +3 -3
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +5 -1
- package/src/mcp-server/tools/domainsRegistrarBuyDomains.ts +2 -2
- package/src/mcp-server/tools/domainsRegistrarGetBulkAvailability.ts +2 -2
- package/src/mcp-server/tools/domainsRegistrarGetSupportedTlds.ts +11 -2
- package/src/mcp-server/tools/marketplaceUpdateInstallation.ts +35 -0
- package/src/mcp-server/tools/marketplaceUpdateResource.ts +37 -0
- package/src/models/buydomainsop.ts +70 -0
- package/src/models/buysingledomainop.ts +20 -14
- package/src/models/canceldeploymentop.ts +1 -14
- package/src/models/createdeploymentop.ts +2 -14
- package/src/models/createintegrationstoredirectop.ts +821 -604
- package/src/models/createprojectop.ts +257 -255
- package/src/models/exchangessotokenop.ts +6 -0
- package/src/models/getbulkavailabilityop.ts +71 -0
- package/src/models/getconfigurationproductsop.ts +802 -802
- package/src/models/getcontactinfoschemaop.ts +4 -0
- package/src/models/getdeploymentop.ts +1 -14
- package/src/models/getdeploymentsop.ts +1 -0
- package/src/models/getdomainauthcodeop.ts +4 -0
- package/src/models/getdomainavailabilityop.ts +4 -0
- package/src/models/getdomainpriceop.ts +4 -0
- package/src/models/getdomaintransferinop.ts +4 -0
- package/src/models/getorderop.ts +4 -0
- package/src/models/getprojectsop.ts +256 -255
- package/src/models/getsupportedtldsop.ts +66 -0
- package/src/models/gettldpriceop.ts +4 -0
- package/src/models/getwebhooksop.ts +1 -0
- package/src/models/importresourceop.ts +142 -115
- package/src/models/renewdomainop.ts +4 -0
- package/src/models/team.ts +12 -12
- package/src/models/transferindomainop.ts +4 -0
- package/src/models/updatedomainautorenewop.ts +4 -0
- package/src/models/updatedomainnameserversop.ts +4 -0
- package/src/models/updateinstallationop.ts +488 -0
- package/src/models/updateprojectdatacacheop.ts +256 -255
- package/src/models/updateprojectop.ts +257 -255
- package/src/models/updateresourceop.ts +823 -0
- package/src/models/userevent.ts +220 -2
- package/src/sdk/domainsregistrar.ts +7 -4
- package/src/sdk/marketplace.ts +41 -0
- package/vercel-spec.json +1824 -1187
package/src/models/userevent.ts
CHANGED
|
@@ -137,10 +137,8 @@ export type Via = Via1 | Via2;
|
|
|
137
137
|
|
|
138
138
|
export const GrantType = {
|
|
139
139
|
AuthorizationCode: "authorization_code",
|
|
140
|
-
RefreshToken: "refresh_token",
|
|
141
140
|
UrnIetfParamsOauthGrantTypeDeviceCode:
|
|
142
141
|
"urn:ietf:params:oauth:grant-type:device_code",
|
|
143
|
-
ClientCredentials: "client_credentials",
|
|
144
142
|
} as const;
|
|
145
143
|
export type GrantType = ClosedEnum<typeof GrantType>;
|
|
146
144
|
|
|
@@ -160,11 +158,41 @@ export const AuthMethod = {
|
|
|
160
158
|
} as const;
|
|
161
159
|
export type AuthMethod = ClosedEnum<typeof AuthMethod>;
|
|
162
160
|
|
|
161
|
+
export const Method = {
|
|
162
|
+
ClientSecretBasic: "client_secret_basic",
|
|
163
|
+
ClientSecretPost: "client_secret_post",
|
|
164
|
+
ClientSecretJwt: "client_secret_jwt",
|
|
165
|
+
PrivateKeyJwt: "private_key_jwt",
|
|
166
|
+
OidcToken: "oidc_token",
|
|
167
|
+
None: "none",
|
|
168
|
+
} as const;
|
|
169
|
+
export type Method = ClosedEnum<typeof Method>;
|
|
170
|
+
|
|
171
|
+
export type ClientAuthenticationUsed = {
|
|
172
|
+
method: Method;
|
|
173
|
+
secretId?: string | undefined;
|
|
174
|
+
};
|
|
175
|
+
|
|
176
|
+
/**
|
|
177
|
+
* optional since entries prior to 2025-10-13 do not contain app information
|
|
178
|
+
*/
|
|
179
|
+
export type App = {
|
|
180
|
+
clientId: string;
|
|
181
|
+
/**
|
|
182
|
+
* the app's name at the time the event was published (it could have changed since then)
|
|
183
|
+
*/
|
|
184
|
+
name: string;
|
|
185
|
+
clientAuthenticationUsed: ClientAuthenticationUsed;
|
|
186
|
+
};
|
|
187
|
+
|
|
163
188
|
/**
|
|
164
189
|
* The payload of the event, if requested.
|
|
165
190
|
*/
|
|
166
191
|
export type OneHundredAndSixtyFive = {
|
|
167
192
|
grantType: GrantType;
|
|
193
|
+
/**
|
|
194
|
+
* the app's name at the time the event was published (it could have changed since then)
|
|
195
|
+
*/
|
|
168
196
|
appName: string;
|
|
169
197
|
/**
|
|
170
198
|
* access_token TTL
|
|
@@ -176,6 +204,22 @@ export type OneHundredAndSixtyFive = {
|
|
|
176
204
|
rtTTL?: number | undefined;
|
|
177
205
|
scope: string;
|
|
178
206
|
authMethod: AuthMethod;
|
|
207
|
+
/**
|
|
208
|
+
* optional since entries prior to 2025-10-13 do not contain app information
|
|
209
|
+
*/
|
|
210
|
+
app?: App | undefined;
|
|
211
|
+
/**
|
|
212
|
+
* optional since entries prior to 2025-10-13 do not contain this field
|
|
213
|
+
*/
|
|
214
|
+
includesRefreshToken?: boolean | undefined;
|
|
215
|
+
/**
|
|
216
|
+
* optional since entries prior to 2025-10-13 do not contain this field
|
|
217
|
+
*/
|
|
218
|
+
publicId?: string | undefined;
|
|
219
|
+
/**
|
|
220
|
+
* optional since entries prior to 2025-10-13 do not contain this field
|
|
221
|
+
*/
|
|
222
|
+
sessionId?: string | undefined;
|
|
179
223
|
};
|
|
180
224
|
|
|
181
225
|
export type UserEventPayload164Team = {
|
|
@@ -1501,16 +1545,24 @@ export type NinetyOne = {
|
|
|
1501
1545
|
projectId: string;
|
|
1502
1546
|
};
|
|
1503
1547
|
|
|
1548
|
+
export const PayloadReasonCode = {
|
|
1549
|
+
PublicApi: "PUBLIC_API",
|
|
1550
|
+
Backoffice: "BACKOFFICE",
|
|
1551
|
+
} as const;
|
|
1552
|
+
export type PayloadReasonCode = ClosedEnum<typeof PayloadReasonCode>;
|
|
1553
|
+
|
|
1504
1554
|
/**
|
|
1505
1555
|
* The payload of the event, if requested.
|
|
1506
1556
|
*/
|
|
1507
1557
|
export type Ninety = {
|
|
1508
1558
|
projectId: string;
|
|
1559
|
+
reasonCode?: PayloadReasonCode | undefined;
|
|
1509
1560
|
};
|
|
1510
1561
|
|
|
1511
1562
|
export const ReasonCode = {
|
|
1512
1563
|
BudgetReached: "BUDGET_REACHED",
|
|
1513
1564
|
PublicApi: "PUBLIC_API",
|
|
1565
|
+
Backoffice: "BACKOFFICE",
|
|
1514
1566
|
} as const;
|
|
1515
1567
|
export type ReasonCode = ClosedEnum<typeof ReasonCode>;
|
|
1516
1568
|
|
|
@@ -5431,6 +5483,136 @@ export namespace AuthMethod$ {
|
|
|
5431
5483
|
export const outboundSchema = AuthMethod$outboundSchema;
|
|
5432
5484
|
}
|
|
5433
5485
|
|
|
5486
|
+
/** @internal */
|
|
5487
|
+
export const Method$inboundSchema: z.ZodNativeEnum<typeof Method> = z
|
|
5488
|
+
.nativeEnum(Method);
|
|
5489
|
+
|
|
5490
|
+
/** @internal */
|
|
5491
|
+
export const Method$outboundSchema: z.ZodNativeEnum<typeof Method> =
|
|
5492
|
+
Method$inboundSchema;
|
|
5493
|
+
|
|
5494
|
+
/**
|
|
5495
|
+
* @internal
|
|
5496
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
5497
|
+
*/
|
|
5498
|
+
export namespace Method$ {
|
|
5499
|
+
/** @deprecated use `Method$inboundSchema` instead. */
|
|
5500
|
+
export const inboundSchema = Method$inboundSchema;
|
|
5501
|
+
/** @deprecated use `Method$outboundSchema` instead. */
|
|
5502
|
+
export const outboundSchema = Method$outboundSchema;
|
|
5503
|
+
}
|
|
5504
|
+
|
|
5505
|
+
/** @internal */
|
|
5506
|
+
export const ClientAuthenticationUsed$inboundSchema: z.ZodType<
|
|
5507
|
+
ClientAuthenticationUsed,
|
|
5508
|
+
z.ZodTypeDef,
|
|
5509
|
+
unknown
|
|
5510
|
+
> = z.object({
|
|
5511
|
+
method: Method$inboundSchema,
|
|
5512
|
+
secretId: z.string().optional(),
|
|
5513
|
+
});
|
|
5514
|
+
|
|
5515
|
+
/** @internal */
|
|
5516
|
+
export type ClientAuthenticationUsed$Outbound = {
|
|
5517
|
+
method: string;
|
|
5518
|
+
secretId?: string | undefined;
|
|
5519
|
+
};
|
|
5520
|
+
|
|
5521
|
+
/** @internal */
|
|
5522
|
+
export const ClientAuthenticationUsed$outboundSchema: z.ZodType<
|
|
5523
|
+
ClientAuthenticationUsed$Outbound,
|
|
5524
|
+
z.ZodTypeDef,
|
|
5525
|
+
ClientAuthenticationUsed
|
|
5526
|
+
> = z.object({
|
|
5527
|
+
method: Method$outboundSchema,
|
|
5528
|
+
secretId: z.string().optional(),
|
|
5529
|
+
});
|
|
5530
|
+
|
|
5531
|
+
/**
|
|
5532
|
+
* @internal
|
|
5533
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
5534
|
+
*/
|
|
5535
|
+
export namespace ClientAuthenticationUsed$ {
|
|
5536
|
+
/** @deprecated use `ClientAuthenticationUsed$inboundSchema` instead. */
|
|
5537
|
+
export const inboundSchema = ClientAuthenticationUsed$inboundSchema;
|
|
5538
|
+
/** @deprecated use `ClientAuthenticationUsed$outboundSchema` instead. */
|
|
5539
|
+
export const outboundSchema = ClientAuthenticationUsed$outboundSchema;
|
|
5540
|
+
/** @deprecated use `ClientAuthenticationUsed$Outbound` instead. */
|
|
5541
|
+
export type Outbound = ClientAuthenticationUsed$Outbound;
|
|
5542
|
+
}
|
|
5543
|
+
|
|
5544
|
+
export function clientAuthenticationUsedToJSON(
|
|
5545
|
+
clientAuthenticationUsed: ClientAuthenticationUsed,
|
|
5546
|
+
): string {
|
|
5547
|
+
return JSON.stringify(
|
|
5548
|
+
ClientAuthenticationUsed$outboundSchema.parse(clientAuthenticationUsed),
|
|
5549
|
+
);
|
|
5550
|
+
}
|
|
5551
|
+
|
|
5552
|
+
export function clientAuthenticationUsedFromJSON(
|
|
5553
|
+
jsonString: string,
|
|
5554
|
+
): SafeParseResult<ClientAuthenticationUsed, SDKValidationError> {
|
|
5555
|
+
return safeParse(
|
|
5556
|
+
jsonString,
|
|
5557
|
+
(x) => ClientAuthenticationUsed$inboundSchema.parse(JSON.parse(x)),
|
|
5558
|
+
`Failed to parse 'ClientAuthenticationUsed' from JSON`,
|
|
5559
|
+
);
|
|
5560
|
+
}
|
|
5561
|
+
|
|
5562
|
+
/** @internal */
|
|
5563
|
+
export const App$inboundSchema: z.ZodType<App, z.ZodTypeDef, unknown> = z
|
|
5564
|
+
.object({
|
|
5565
|
+
clientId: z.string(),
|
|
5566
|
+
name: z.string(),
|
|
5567
|
+
clientAuthenticationUsed: z.lazy(() =>
|
|
5568
|
+
ClientAuthenticationUsed$inboundSchema
|
|
5569
|
+
),
|
|
5570
|
+
});
|
|
5571
|
+
|
|
5572
|
+
/** @internal */
|
|
5573
|
+
export type App$Outbound = {
|
|
5574
|
+
clientId: string;
|
|
5575
|
+
name: string;
|
|
5576
|
+
clientAuthenticationUsed: ClientAuthenticationUsed$Outbound;
|
|
5577
|
+
};
|
|
5578
|
+
|
|
5579
|
+
/** @internal */
|
|
5580
|
+
export const App$outboundSchema: z.ZodType<App$Outbound, z.ZodTypeDef, App> = z
|
|
5581
|
+
.object({
|
|
5582
|
+
clientId: z.string(),
|
|
5583
|
+
name: z.string(),
|
|
5584
|
+
clientAuthenticationUsed: z.lazy(() =>
|
|
5585
|
+
ClientAuthenticationUsed$outboundSchema
|
|
5586
|
+
),
|
|
5587
|
+
});
|
|
5588
|
+
|
|
5589
|
+
/**
|
|
5590
|
+
* @internal
|
|
5591
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
5592
|
+
*/
|
|
5593
|
+
export namespace App$ {
|
|
5594
|
+
/** @deprecated use `App$inboundSchema` instead. */
|
|
5595
|
+
export const inboundSchema = App$inboundSchema;
|
|
5596
|
+
/** @deprecated use `App$outboundSchema` instead. */
|
|
5597
|
+
export const outboundSchema = App$outboundSchema;
|
|
5598
|
+
/** @deprecated use `App$Outbound` instead. */
|
|
5599
|
+
export type Outbound = App$Outbound;
|
|
5600
|
+
}
|
|
5601
|
+
|
|
5602
|
+
export function appToJSON(app: App): string {
|
|
5603
|
+
return JSON.stringify(App$outboundSchema.parse(app));
|
|
5604
|
+
}
|
|
5605
|
+
|
|
5606
|
+
export function appFromJSON(
|
|
5607
|
+
jsonString: string,
|
|
5608
|
+
): SafeParseResult<App, SDKValidationError> {
|
|
5609
|
+
return safeParse(
|
|
5610
|
+
jsonString,
|
|
5611
|
+
(x) => App$inboundSchema.parse(JSON.parse(x)),
|
|
5612
|
+
`Failed to parse 'App' from JSON`,
|
|
5613
|
+
);
|
|
5614
|
+
}
|
|
5615
|
+
|
|
5434
5616
|
/** @internal */
|
|
5435
5617
|
export const OneHundredAndSixtyFive$inboundSchema: z.ZodType<
|
|
5436
5618
|
OneHundredAndSixtyFive,
|
|
@@ -5443,6 +5625,10 @@ export const OneHundredAndSixtyFive$inboundSchema: z.ZodType<
|
|
|
5443
5625
|
rtTTL: z.number().optional(),
|
|
5444
5626
|
scope: z.string(),
|
|
5445
5627
|
authMethod: AuthMethod$inboundSchema,
|
|
5628
|
+
app: z.lazy(() => App$inboundSchema).optional(),
|
|
5629
|
+
includesRefreshToken: z.boolean().optional(),
|
|
5630
|
+
publicId: z.string().optional(),
|
|
5631
|
+
sessionId: z.string().optional(),
|
|
5446
5632
|
});
|
|
5447
5633
|
|
|
5448
5634
|
/** @internal */
|
|
@@ -5453,6 +5639,10 @@ export type OneHundredAndSixtyFive$Outbound = {
|
|
|
5453
5639
|
rtTTL?: number | undefined;
|
|
5454
5640
|
scope: string;
|
|
5455
5641
|
authMethod: string;
|
|
5642
|
+
app?: App$Outbound | undefined;
|
|
5643
|
+
includesRefreshToken?: boolean | undefined;
|
|
5644
|
+
publicId?: string | undefined;
|
|
5645
|
+
sessionId?: string | undefined;
|
|
5456
5646
|
};
|
|
5457
5647
|
|
|
5458
5648
|
/** @internal */
|
|
@@ -5467,6 +5657,10 @@ export const OneHundredAndSixtyFive$outboundSchema: z.ZodType<
|
|
|
5467
5657
|
rtTTL: z.number().optional(),
|
|
5468
5658
|
scope: z.string(),
|
|
5469
5659
|
authMethod: AuthMethod$outboundSchema,
|
|
5660
|
+
app: z.lazy(() => App$outboundSchema).optional(),
|
|
5661
|
+
includesRefreshToken: z.boolean().optional(),
|
|
5662
|
+
publicId: z.string().optional(),
|
|
5663
|
+
sessionId: z.string().optional(),
|
|
5470
5664
|
});
|
|
5471
5665
|
|
|
5472
5666
|
/**
|
|
@@ -13571,15 +13765,38 @@ export function ninetyOneFromJSON(
|
|
|
13571
13765
|
);
|
|
13572
13766
|
}
|
|
13573
13767
|
|
|
13768
|
+
/** @internal */
|
|
13769
|
+
export const PayloadReasonCode$inboundSchema: z.ZodNativeEnum<
|
|
13770
|
+
typeof PayloadReasonCode
|
|
13771
|
+
> = z.nativeEnum(PayloadReasonCode);
|
|
13772
|
+
|
|
13773
|
+
/** @internal */
|
|
13774
|
+
export const PayloadReasonCode$outboundSchema: z.ZodNativeEnum<
|
|
13775
|
+
typeof PayloadReasonCode
|
|
13776
|
+
> = PayloadReasonCode$inboundSchema;
|
|
13777
|
+
|
|
13778
|
+
/**
|
|
13779
|
+
* @internal
|
|
13780
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
13781
|
+
*/
|
|
13782
|
+
export namespace PayloadReasonCode$ {
|
|
13783
|
+
/** @deprecated use `PayloadReasonCode$inboundSchema` instead. */
|
|
13784
|
+
export const inboundSchema = PayloadReasonCode$inboundSchema;
|
|
13785
|
+
/** @deprecated use `PayloadReasonCode$outboundSchema` instead. */
|
|
13786
|
+
export const outboundSchema = PayloadReasonCode$outboundSchema;
|
|
13787
|
+
}
|
|
13788
|
+
|
|
13574
13789
|
/** @internal */
|
|
13575
13790
|
export const Ninety$inboundSchema: z.ZodType<Ninety, z.ZodTypeDef, unknown> = z
|
|
13576
13791
|
.object({
|
|
13577
13792
|
projectId: z.string(),
|
|
13793
|
+
reasonCode: PayloadReasonCode$inboundSchema.optional(),
|
|
13578
13794
|
});
|
|
13579
13795
|
|
|
13580
13796
|
/** @internal */
|
|
13581
13797
|
export type Ninety$Outbound = {
|
|
13582
13798
|
projectId: string;
|
|
13799
|
+
reasonCode?: string | undefined;
|
|
13583
13800
|
};
|
|
13584
13801
|
|
|
13585
13802
|
/** @internal */
|
|
@@ -13589,6 +13806,7 @@ export const Ninety$outboundSchema: z.ZodType<
|
|
|
13589
13806
|
Ninety
|
|
13590
13807
|
> = z.object({
|
|
13591
13808
|
projectId: z.string(),
|
|
13809
|
+
reasonCode: PayloadReasonCode$outboundSchema.optional(),
|
|
13592
13810
|
});
|
|
13593
13811
|
|
|
13594
13812
|
/**
|
|
@@ -19,7 +19,7 @@ import { domainsRegistrarUpdateDomainAutoRenew } from "../funcs/domainsRegistrar
|
|
|
19
19
|
import { domainsRegistrarUpdateDomainNameservers } from "../funcs/domainsRegistrarUpdateDomainNameservers.js";
|
|
20
20
|
import { ClientSDK, RequestOptions } from "../lib/sdks.js";
|
|
21
21
|
import {
|
|
22
|
-
|
|
22
|
+
BuyDomainsRequest,
|
|
23
23
|
BuyDomainsResponseBody,
|
|
24
24
|
} from "../models/buydomainsop.js";
|
|
25
25
|
import {
|
|
@@ -27,7 +27,7 @@ import {
|
|
|
27
27
|
BuySingleDomainResponseBody,
|
|
28
28
|
} from "../models/buysingledomainop.js";
|
|
29
29
|
import {
|
|
30
|
-
|
|
30
|
+
GetBulkAvailabilityRequest,
|
|
31
31
|
GetBulkAvailabilityResponseBody,
|
|
32
32
|
} from "../models/getbulkavailabilityop.js";
|
|
33
33
|
import {
|
|
@@ -51,6 +51,7 @@ import {
|
|
|
51
51
|
GetDomainTransferInResponseBody,
|
|
52
52
|
} from "../models/getdomaintransferinop.js";
|
|
53
53
|
import { GetOrderRequest, GetOrderResponseBody } from "../models/getorderop.js";
|
|
54
|
+
import { GetSupportedTldsRequest } from "../models/getsupportedtldsop.js";
|
|
54
55
|
import {
|
|
55
56
|
GetTldPriceRequest,
|
|
56
57
|
GetTldPriceResponseBody,
|
|
@@ -75,10 +76,12 @@ export class DomainsRegistrar extends ClientSDK {
|
|
|
75
76
|
* Get a list of TLDs supported by Vercel
|
|
76
77
|
*/
|
|
77
78
|
async getSupportedTlds(
|
|
79
|
+
request: GetSupportedTldsRequest,
|
|
78
80
|
options?: RequestOptions,
|
|
79
81
|
): Promise<Array<string>> {
|
|
80
82
|
return unwrapAsync(domainsRegistrarGetSupportedTlds(
|
|
81
83
|
this,
|
|
84
|
+
request,
|
|
82
85
|
options,
|
|
83
86
|
));
|
|
84
87
|
}
|
|
@@ -141,7 +144,7 @@ export class DomainsRegistrar extends ClientSDK {
|
|
|
141
144
|
* Get availability for multiple domains. If the domains are available, they can be purchased using the [Buy a domain](https://vercel.com/docs/rest-api/reference/endpoints/domains-registrar/buy-a-domain) endpoint or the [Buy multiple domains](https://vercel.com/docs/rest-api/reference/endpoints/domains-registrar/buy-multiple-domains) endpoint.
|
|
142
145
|
*/
|
|
143
146
|
async getBulkAvailability(
|
|
144
|
-
request:
|
|
147
|
+
request: GetBulkAvailabilityRequest,
|
|
145
148
|
options?: RequestOptions,
|
|
146
149
|
): Promise<GetBulkAvailabilityResponseBody> {
|
|
147
150
|
return unwrapAsync(domainsRegistrarGetBulkAvailability(
|
|
@@ -192,7 +195,7 @@ export class DomainsRegistrar extends ClientSDK {
|
|
|
192
195
|
* Buy multiple domains at once
|
|
193
196
|
*/
|
|
194
197
|
async buyDomains(
|
|
195
|
-
request:
|
|
198
|
+
request: BuyDomainsRequest,
|
|
196
199
|
options?: RequestOptions,
|
|
197
200
|
): Promise<BuyDomainsResponseBody> {
|
|
198
201
|
return unwrapAsync(domainsRegistrarBuyDomains(
|
package/src/sdk/marketplace.ts
CHANGED
|
@@ -17,9 +17,11 @@ import { marketplaceImportResource } from "../funcs/marketplaceImportResource.js
|
|
|
17
17
|
import { marketplaceSubmitBillingData } from "../funcs/marketplaceSubmitBillingData.js";
|
|
18
18
|
import { marketplaceSubmitInvoice } from "../funcs/marketplaceSubmitInvoice.js";
|
|
19
19
|
import { marketplaceSubmitPrepaymentBalances } from "../funcs/marketplaceSubmitPrepaymentBalances.js";
|
|
20
|
+
import { marketplaceUpdateInstallation } from "../funcs/marketplaceUpdateInstallation.js";
|
|
20
21
|
import { marketplaceUpdateInstallationIntegrationConfiguration } from "../funcs/marketplaceUpdateInstallationIntegrationConfiguration.js";
|
|
21
22
|
import { marketplaceUpdateInstallationIntegrationEdgeConfig } from "../funcs/marketplaceUpdateInstallationIntegrationEdgeConfig.js";
|
|
22
23
|
import { marketplaceUpdateInvoice } from "../funcs/marketplaceUpdateInvoice.js";
|
|
24
|
+
import { marketplaceUpdateResource } from "../funcs/marketplaceUpdateResource.js";
|
|
23
25
|
import { marketplaceUpdateResourceSecrets } from "../funcs/marketplaceUpdateResourceSecrets.js";
|
|
24
26
|
import { marketplaceUpdateResourceSecretsById } from "../funcs/marketplaceUpdateResourceSecretsById.js";
|
|
25
27
|
import { ClientSDK, RequestOptions } from "../lib/sdks.js";
|
|
@@ -76,12 +78,34 @@ import {
|
|
|
76
78
|
SubmitInvoiceResponseBody,
|
|
77
79
|
} from "../models/submitinvoiceop.js";
|
|
78
80
|
import { SubmitPrepaymentBalancesRequest } from "../models/submitprepaymentbalancesop.js";
|
|
81
|
+
import { UpdateInstallationRequest } from "../models/updateinstallationop.js";
|
|
79
82
|
import { UpdateInvoiceRequest } from "../models/updateinvoiceop.js";
|
|
83
|
+
import {
|
|
84
|
+
UpdateResourceRequest,
|
|
85
|
+
UpdateResourceResponseBody,
|
|
86
|
+
} from "../models/updateresourceop.js";
|
|
80
87
|
import { UpdateResourceSecretsByIdRequest } from "../models/updateresourcesecretsbyidop.js";
|
|
81
88
|
import { UpdateResourceSecretsRequest } from "../models/updateresourcesecretsop.js";
|
|
82
89
|
import { unwrapAsync } from "../types/fp.js";
|
|
83
90
|
|
|
84
91
|
export class Marketplace extends ClientSDK {
|
|
92
|
+
/**
|
|
93
|
+
* Update Installation
|
|
94
|
+
*
|
|
95
|
+
* @remarks
|
|
96
|
+
* This endpoint updates an integration installation.
|
|
97
|
+
*/
|
|
98
|
+
async updateInstallation(
|
|
99
|
+
request: UpdateInstallationRequest,
|
|
100
|
+
options?: RequestOptions,
|
|
101
|
+
): Promise<void> {
|
|
102
|
+
return unwrapAsync(marketplaceUpdateInstallation(
|
|
103
|
+
this,
|
|
104
|
+
request,
|
|
105
|
+
options,
|
|
106
|
+
));
|
|
107
|
+
}
|
|
108
|
+
|
|
85
109
|
/**
|
|
86
110
|
* Get Account Information
|
|
87
111
|
*
|
|
@@ -201,6 +225,23 @@ export class Marketplace extends ClientSDK {
|
|
|
201
225
|
));
|
|
202
226
|
}
|
|
203
227
|
|
|
228
|
+
/**
|
|
229
|
+
* Update Resource
|
|
230
|
+
*
|
|
231
|
+
* @remarks
|
|
232
|
+
* This endpoint updates an existing resource in the installation. All parameters are optional, allowing partial updates.
|
|
233
|
+
*/
|
|
234
|
+
async updateResource(
|
|
235
|
+
request: UpdateResourceRequest,
|
|
236
|
+
options?: RequestOptions,
|
|
237
|
+
): Promise<UpdateResourceResponseBody> {
|
|
238
|
+
return unwrapAsync(marketplaceUpdateResource(
|
|
239
|
+
this,
|
|
240
|
+
request,
|
|
241
|
+
options,
|
|
242
|
+
));
|
|
243
|
+
}
|
|
244
|
+
|
|
204
245
|
/**
|
|
205
246
|
* Submit Billing Data
|
|
206
247
|
*
|