@vercel/sdk 1.7.4 → 1.7.6
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 +6 -6
- package/bin/mcp-server.js +590 -349
- package/bin/mcp-server.js.map +37 -37
- package/docs/sdks/accessgroups/README.md +16 -0
- package/docs/sdks/artifacts/README.md +6 -6
- package/docs/sdks/authentication/README.md +1 -1
- package/docs/sdks/deployments/README.md +8 -14
- package/docs/sdks/dns/README.md +12 -26
- package/docs/sdks/domains/README.md +2 -2
- package/docs/sdks/edgeconfig/README.md +10 -2
- package/docs/sdks/marketplace/README.md +77 -97
- package/docs/sdks/security/README.md +4 -10
- package/docs/sdks/teams/README.md +8 -0
- package/docs/sdks/vercel/README.md +2 -2
- package/docs/sdks/webhooks/README.md +12 -4
- package/esm/__tests__/deployments.test.js +1 -2
- package/esm/__tests__/deployments.test.js.map +1 -1
- package/esm/funcs/authenticationExchangeSsoToken.d.ts +1 -1
- package/esm/funcs/authenticationExchangeSsoToken.js +1 -1
- package/esm/funcs/certsGetCertById.js +1 -1
- package/esm/funcs/certsIssueCert.js +1 -1
- package/esm/funcs/certsRemoveCert.js +1 -1
- package/esm/funcs/certsUploadCert.js +1 -1
- package/esm/funcs/deploymentsGetDeploymentFileContents.d.ts +2 -2
- package/esm/funcs/deploymentsGetDeploymentFileContents.d.ts.map +1 -1
- package/esm/funcs/deploymentsGetDeploymentFileContents.js +4 -3
- package/esm/funcs/deploymentsGetDeploymentFileContents.js.map +1 -1
- package/esm/funcs/marketplaceExchangeSsoToken.d.ts +1 -1
- package/esm/funcs/marketplaceExchangeSsoToken.js +1 -1
- package/esm/funcs/projectsRemoveProjectDomain.js +3 -2
- package/esm/funcs/projectsRemoveProjectDomain.js.map +1 -1
- package/esm/funcs/projectsRequestPromote.js +0 -1
- package/esm/funcs/projectsRequestPromote.js.map +1 -1
- package/esm/lib/config.d.ts +3 -3
- package/esm/lib/config.js +3 -3
- package/esm/mcp-server/cli/start/impl.js +2 -2
- package/esm/mcp-server/cli/start/impl.js.map +1 -1
- package/esm/mcp-server/mcp-server.js +1 -1
- package/esm/mcp-server/server.js +1 -1
- package/esm/mcp-server/tools/authenticationExchangeSsoToken.js +1 -1
- package/esm/mcp-server/tools/authenticationExchangeSsoToken.js.map +1 -1
- package/esm/mcp-server/tools/deploymentsGetDeploymentFileContents.d.ts.map +1 -1
- package/esm/mcp-server/tools/deploymentsGetDeploymentFileContents.js +1 -2
- package/esm/mcp-server/tools/deploymentsGetDeploymentFileContents.js.map +1 -1
- package/esm/mcp-server/tools/marketplaceExchangeSsoToken.js +1 -1
- package/esm/mcp-server/tools/marketplaceExchangeSsoToken.js.map +1 -1
- package/esm/models/authuser.d.ts +0 -93
- package/esm/models/authuser.d.ts.map +1 -1
- package/esm/models/authuser.js +0 -64
- package/esm/models/authuser.js.map +1 -1
- package/esm/models/authuserlimited.d.ts +0 -34
- package/esm/models/authuserlimited.d.ts.map +1 -1
- package/esm/models/authuserlimited.js +0 -23
- package/esm/models/authuserlimited.js.map +1 -1
- package/esm/models/canceldeploymentop.d.ts +10 -0
- package/esm/models/canceldeploymentop.d.ts.map +1 -1
- package/esm/models/canceldeploymentop.js +4 -0
- package/esm/models/canceldeploymentop.js.map +1 -1
- package/esm/models/createdeploymentop.d.ts +38 -28
- package/esm/models/createdeploymentop.d.ts.map +1 -1
- package/esm/models/createdeploymentop.js +16 -12
- package/esm/models/createdeploymentop.js.map +1 -1
- package/esm/models/createprojectop.d.ts +123 -11
- package/esm/models/createprojectop.d.ts.map +1 -1
- package/esm/models/createprojectop.js +111 -5
- package/esm/models/createprojectop.js.map +1 -1
- package/esm/models/getdeploymentfilecontentsop.d.ts +0 -31
- package/esm/models/getdeploymentfilecontentsop.d.ts.map +1 -1
- package/esm/models/getdeploymentfilecontentsop.js +0 -25
- package/esm/models/getdeploymentfilecontentsop.js.map +1 -1
- package/esm/models/getdeploymentop.d.ts +10 -0
- package/esm/models/getdeploymentop.d.ts.map +1 -1
- package/esm/models/getdeploymentop.js +4 -0
- package/esm/models/getdeploymentop.js.map +1 -1
- package/esm/models/getprojectsop.d.ts +114 -2
- package/esm/models/getprojectsop.d.ts.map +1 -1
- package/esm/models/getprojectsop.js +108 -2
- package/esm/models/getprojectsop.js.map +1 -1
- package/esm/models/importresourceop.d.ts +9 -0
- package/esm/models/importresourceop.d.ts.map +1 -1
- package/esm/models/importresourceop.js +2 -0
- package/esm/models/importresourceop.js.map +1 -1
- package/esm/models/issuecertop.d.ts +2 -2
- package/esm/models/issuecertop.d.ts.map +1 -1
- package/esm/models/issuecertop.js +2 -2
- package/esm/models/issuecertop.js.map +1 -1
- package/esm/models/removeprojectdomainop.d.ts +30 -0
- package/esm/models/removeprojectdomainop.d.ts.map +1 -1
- package/esm/models/removeprojectdomainop.js +38 -0
- package/esm/models/removeprojectdomainop.js.map +1 -1
- package/esm/models/requestpromoteop.d.ts +0 -5
- package/esm/models/requestpromoteop.d.ts.map +1 -1
- package/esm/models/requestpromoteop.js +0 -2
- 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 +114 -2
- package/esm/models/updateprojectdatacacheop.d.ts.map +1 -1
- package/esm/models/updateprojectdatacacheop.js +108 -2
- package/esm/models/updateprojectdatacacheop.js.map +1 -1
- package/esm/models/updateprojectop.d.ts +123 -11
- package/esm/models/updateprojectop.d.ts.map +1 -1
- package/esm/models/updateprojectop.js +111 -5
- package/esm/models/updateprojectop.js.map +1 -1
- package/esm/models/updateresourcesecretsbyidop.d.ts +10 -1
- package/esm/models/updateresourcesecretsbyidop.d.ts.map +1 -1
- package/esm/models/updateresourcesecretsbyidop.js +2 -0
- package/esm/models/updateresourcesecretsbyidop.js.map +1 -1
- package/esm/models/updateresourcesecretsop.d.ts +9 -0
- package/esm/models/updateresourcesecretsop.d.ts.map +1 -1
- package/esm/models/updateresourcesecretsop.js +2 -0
- package/esm/models/updateresourcesecretsop.js.map +1 -1
- package/esm/models/uploadcertop.d.ts +2 -2
- package/esm/models/uploadcertop.d.ts.map +1 -1
- package/esm/models/uploadcertop.js +2 -2
- package/esm/models/uploadcertop.js.map +1 -1
- package/esm/models/userevent.d.ts +391 -280
- package/esm/models/userevent.d.ts.map +1 -1
- package/esm/models/userevent.js +450 -342
- package/esm/models/userevent.js.map +1 -1
- package/esm/sdk/authentication.d.ts +1 -1
- package/esm/sdk/authentication.js +1 -1
- package/esm/sdk/deployments.d.ts +2 -2
- package/esm/sdk/deployments.d.ts.map +1 -1
- package/esm/sdk/deployments.js.map +1 -1
- package/esm/sdk/marketplace.d.ts +1 -1
- package/esm/sdk/marketplace.js +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/__tests__/deployments.test.ts +1 -2
- package/src/funcs/authenticationExchangeSsoToken.ts +1 -1
- package/src/funcs/certsGetCertById.ts +1 -1
- package/src/funcs/certsIssueCert.ts +1 -1
- package/src/funcs/certsRemoveCert.ts +1 -1
- package/src/funcs/certsUploadCert.ts +1 -1
- package/src/funcs/deploymentsGetDeploymentFileContents.ts +6 -7
- package/src/funcs/marketplaceExchangeSsoToken.ts +1 -1
- package/src/funcs/projectsRemoveProjectDomain.ts +3 -2
- package/src/funcs/projectsRequestPromote.ts +0 -1
- package/src/lib/config.ts +3 -3
- package/src/mcp-server/cli/start/impl.ts +2 -2
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +1 -1
- package/src/mcp-server/tools/authenticationExchangeSsoToken.ts +1 -1
- package/src/mcp-server/tools/deploymentsGetDeploymentFileContents.ts +1 -3
- package/src/mcp-server/tools/marketplaceExchangeSsoToken.ts +1 -1
- package/src/models/authuser.ts +0 -145
- package/src/models/authuserlimited.ts +0 -40
- package/src/models/canceldeploymentop.ts +14 -0
- package/src/models/createdeploymentop.ts +30 -16
- package/src/models/createprojectop.ts +246 -7
- package/src/models/getdeploymentfilecontentsop.ts +0 -69
- package/src/models/getdeploymentop.ts +14 -0
- package/src/models/getprojectsop.ts +237 -4
- package/src/models/importresourceop.ts +7 -0
- package/src/models/issuecertop.ts +4 -4
- package/src/models/removeprojectdomainop.ts +78 -0
- package/src/models/requestpromoteop.ts +0 -7
- package/src/models/teamlimited.ts +13 -13
- package/src/models/updateprojectdatacacheop.ts +260 -4
- package/src/models/updateprojectop.ts +246 -7
- package/src/models/updateresourcesecretsbyidop.ts +8 -1
- package/src/models/updateresourcesecretsop.ts +7 -0
- package/src/models/uploadcertop.ts +4 -4
- package/src/models/userevent.ts +837 -624
- package/src/sdk/authentication.ts +1 -1
- package/src/sdk/deployments.ts +2 -5
- package/src/sdk/marketplace.ts +1 -1
- package/vercel-spec.json +508 -163
|
@@ -32,7 +32,7 @@ export class Authentication extends ClientSDK {
|
|
|
32
32
|
* SSO Token Exchange
|
|
33
33
|
*
|
|
34
34
|
* @remarks
|
|
35
|
-
* During the autorization process, Vercel sends the user to the provider [redirectLoginUrl](https://vercel.com/docs/integrations/create-integration/submit-integration#redirect-login-url), that includes the OAuth authorization `code` parameter. The provider then calls the SSO Token Exchange endpoint with the sent code and receives the OIDC token. They log the user in based on this token and redirects the user back to the Vercel account using deep-link parameters included the redirectLoginUrl.
|
|
35
|
+
* During the autorization process, Vercel sends the user to the provider [redirectLoginUrl](https://vercel.com/docs/integrations/create-integration/submit-integration#redirect-login-url), that includes the OAuth authorization `code` parameter. The provider then calls the SSO Token Exchange endpoint with the sent code and receives the OIDC token. They log the user in based on this token and redirects the user back to the Vercel account using deep-link parameters included the redirectLoginUrl. Providers should not persist the returned `id_token` in a database since the token will expire. See [**Authentication with SSO**](https://vercel.com/docs/integrations/create-integration/marketplace-api#authentication-with-sso) for more details.
|
|
36
36
|
*/
|
|
37
37
|
async exchangeSsoToken(
|
|
38
38
|
request: ExchangeSsoTokenRequestBody,
|
package/src/sdk/deployments.ts
CHANGED
|
@@ -33,10 +33,7 @@ import {
|
|
|
33
33
|
GetDeploymentEventsRequest,
|
|
34
34
|
GetDeploymentEventsResponse,
|
|
35
35
|
} from "../models/getdeploymenteventsop.js";
|
|
36
|
-
import {
|
|
37
|
-
GetDeploymentFileContentsRequest,
|
|
38
|
-
GetDeploymentFileContentsResponseBody,
|
|
39
|
-
} from "../models/getdeploymentfilecontentsop.js";
|
|
36
|
+
import { GetDeploymentFileContentsRequest } from "../models/getdeploymentfilecontentsop.js";
|
|
40
37
|
import {
|
|
41
38
|
GetDeploymentRequest,
|
|
42
39
|
GetDeploymentResponseBody,
|
|
@@ -186,7 +183,7 @@ export class Deployments extends ClientSDK {
|
|
|
186
183
|
async getDeploymentFileContents(
|
|
187
184
|
request: GetDeploymentFileContentsRequest,
|
|
188
185
|
options?: RequestOptions,
|
|
189
|
-
): Promise<
|
|
186
|
+
): Promise<void> {
|
|
190
187
|
return unwrapAsync(deploymentsGetDeploymentFileContents(
|
|
191
188
|
this,
|
|
192
189
|
request,
|
package/src/sdk/marketplace.ts
CHANGED
|
@@ -261,7 +261,7 @@ export class Marketplace extends ClientSDK {
|
|
|
261
261
|
* SSO Token Exchange
|
|
262
262
|
*
|
|
263
263
|
* @remarks
|
|
264
|
-
* During the autorization process, Vercel sends the user to the provider [redirectLoginUrl](https://vercel.com/docs/integrations/create-integration/submit-integration#redirect-login-url), that includes the OAuth authorization `code` parameter. The provider then calls the SSO Token Exchange endpoint with the sent code and receives the OIDC token. They log the user in based on this token and redirects the user back to the Vercel account using deep-link parameters included the redirectLoginUrl.
|
|
264
|
+
* During the autorization process, Vercel sends the user to the provider [redirectLoginUrl](https://vercel.com/docs/integrations/create-integration/submit-integration#redirect-login-url), that includes the OAuth authorization `code` parameter. The provider then calls the SSO Token Exchange endpoint with the sent code and receives the OIDC token. They log the user in based on this token and redirects the user back to the Vercel account using deep-link parameters included the redirectLoginUrl. Providers should not persist the returned `id_token` in a database since the token will expire. See [**Authentication with SSO**](https://vercel.com/docs/integrations/create-integration/marketplace-api#authentication-with-sso) for more details.
|
|
265
265
|
*/
|
|
266
266
|
async exchangeSsoToken(
|
|
267
267
|
request: ExchangeSsoTokenRequestBody,
|