@vercel/sdk 1.2.0 → 1.2.1
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/FUNCTIONS.md +2 -0
- package/README.md +21 -5
- package/RUNTIMES.md +27 -1
- package/docs/sdks/accessgroups/README.md +58 -14
- package/docs/sdks/aliases/README.md +20 -0
- package/docs/sdks/artifacts/README.md +32 -8
- package/docs/sdks/authentication/README.md +4 -0
- package/docs/sdks/certs/README.md +16 -0
- package/docs/sdks/checks/README.md +20 -0
- package/docs/sdks/deployments/README.md +40 -2
- package/docs/sdks/dns/README.md +16 -0
- package/docs/sdks/domains/README.md +40 -0
- package/docs/sdks/edgeconfig/README.md +68 -2
- package/docs/sdks/integrations/README.md +16 -0
- package/docs/sdks/logdrains/README.md +36 -4
- package/docs/sdks/projectmembers/README.md +12 -0
- package/docs/sdks/projects/README.md +76 -0
- package/docs/sdks/security/README.md +16 -0
- package/docs/sdks/teams/README.md +28 -22
- package/docs/sdks/user/README.md +4 -0
- package/docs/sdks/vercel/README.md +1 -1
- package/docs/sdks/webhooks/README.md +20 -2
- package/esm/funcs/accessGroupsCreateAccessGroup.js +4 -4
- package/esm/funcs/accessGroupsCreateAccessGroup.js.map +1 -1
- package/esm/funcs/accessGroupsCreateAccessGroupProject.js +4 -4
- package/esm/funcs/accessGroupsCreateAccessGroupProject.js.map +1 -1
- package/esm/funcs/accessGroupsDeleteAccessGroup.js +4 -4
- package/esm/funcs/accessGroupsDeleteAccessGroup.js.map +1 -1
- package/esm/funcs/accessGroupsDeleteAccessGroupProject.js +4 -4
- package/esm/funcs/accessGroupsDeleteAccessGroupProject.js.map +1 -1
- package/esm/funcs/accessGroupsListAccessGroupMembers.js +4 -4
- package/esm/funcs/accessGroupsListAccessGroupMembers.js.map +1 -1
- package/esm/funcs/accessGroupsListAccessGroupProjects.js +4 -4
- package/esm/funcs/accessGroupsListAccessGroupProjects.js.map +1 -1
- package/esm/funcs/accessGroupsListAccessGroups.js +4 -4
- package/esm/funcs/accessGroupsListAccessGroups.js.map +1 -1
- package/esm/funcs/accessGroupsReadAccessGroup.js +4 -4
- package/esm/funcs/accessGroupsReadAccessGroup.js.map +1 -1
- package/esm/funcs/accessGroupsReadAccessGroupProject.js +4 -4
- package/esm/funcs/accessGroupsReadAccessGroupProject.js.map +1 -1
- package/esm/funcs/accessGroupsUpdateAccessGroup.js +4 -4
- package/esm/funcs/accessGroupsUpdateAccessGroup.js.map +1 -1
- package/esm/funcs/accessGroupsUpdateAccessGroupProject.js +4 -4
- package/esm/funcs/accessGroupsUpdateAccessGroupProject.js.map +1 -1
- package/esm/funcs/aliasesAssignAlias.js +4 -4
- package/esm/funcs/aliasesAssignAlias.js.map +1 -1
- package/esm/funcs/aliasesDeleteAlias.js +4 -4
- package/esm/funcs/aliasesDeleteAlias.js.map +1 -1
- package/esm/funcs/aliasesGetAlias.js +4 -4
- package/esm/funcs/aliasesGetAlias.js.map +1 -1
- package/esm/funcs/aliasesListAliases.js +4 -4
- package/esm/funcs/aliasesListAliases.js.map +1 -1
- package/esm/funcs/aliasesListDeploymentAliases.js +4 -4
- package/esm/funcs/aliasesListDeploymentAliases.js.map +1 -1
- package/esm/funcs/artifactsArtifactExists.js +4 -4
- package/esm/funcs/artifactsArtifactExists.js.map +1 -1
- package/esm/funcs/artifactsArtifactQuery.js +4 -4
- package/esm/funcs/artifactsArtifactQuery.js.map +1 -1
- package/esm/funcs/artifactsDownloadArtifact.js +4 -4
- package/esm/funcs/artifactsDownloadArtifact.js.map +1 -1
- package/esm/funcs/artifactsRecordEvents.js +4 -4
- package/esm/funcs/artifactsRecordEvents.js.map +1 -1
- package/esm/funcs/artifactsStatus.js +4 -4
- package/esm/funcs/artifactsStatus.js.map +1 -1
- package/esm/funcs/artifactsUploadArtifact.js +4 -4
- package/esm/funcs/artifactsUploadArtifact.js.map +1 -1
- package/esm/funcs/authenticationCreateAuthToken.js +4 -4
- package/esm/funcs/authenticationCreateAuthToken.js.map +1 -1
- package/esm/funcs/authenticationDeleteAuthToken.js +4 -4
- package/esm/funcs/authenticationDeleteAuthToken.js.map +1 -1
- package/esm/funcs/authenticationExchangeSsoToken.js +4 -4
- package/esm/funcs/authenticationExchangeSsoToken.js.map +1 -1
- package/esm/funcs/authenticationGetAuthToken.js +4 -4
- package/esm/funcs/authenticationGetAuthToken.js.map +1 -1
- package/esm/funcs/authenticationListAuthTokens.js +4 -4
- package/esm/funcs/authenticationListAuthTokens.js.map +1 -1
- package/esm/funcs/certsGetCertById.js +4 -4
- package/esm/funcs/certsGetCertById.js.map +1 -1
- package/esm/funcs/certsIssueCert.js +4 -4
- package/esm/funcs/certsIssueCert.js.map +1 -1
- package/esm/funcs/certsRemoveCert.js +4 -4
- package/esm/funcs/certsRemoveCert.js.map +1 -1
- package/esm/funcs/certsUploadCert.js +4 -4
- package/esm/funcs/certsUploadCert.js.map +1 -1
- package/esm/funcs/checksCreateCheck.js +4 -4
- package/esm/funcs/checksCreateCheck.js.map +1 -1
- package/esm/funcs/checksGetAllChecks.js +4 -4
- package/esm/funcs/checksGetAllChecks.js.map +1 -1
- package/esm/funcs/checksGetCheck.js +4 -4
- package/esm/funcs/checksGetCheck.js.map +1 -1
- package/esm/funcs/checksRerequestCheck.js +4 -4
- package/esm/funcs/checksRerequestCheck.js.map +1 -1
- package/esm/funcs/checksUpdateCheck.js +4 -4
- package/esm/funcs/checksUpdateCheck.js.map +1 -1
- package/esm/funcs/deploymentsCancelDeployment.js +4 -4
- package/esm/funcs/deploymentsCancelDeployment.js.map +1 -1
- package/esm/funcs/deploymentsCreateDeployment.js +4 -4
- package/esm/funcs/deploymentsCreateDeployment.js.map +1 -1
- package/esm/funcs/deploymentsDeleteDeployment.js +4 -4
- package/esm/funcs/deploymentsDeleteDeployment.js.map +1 -1
- package/esm/funcs/deploymentsGetDeployment.js +4 -4
- package/esm/funcs/deploymentsGetDeployment.js.map +1 -1
- package/esm/funcs/deploymentsGetDeploymentEvents.js +4 -4
- package/esm/funcs/deploymentsGetDeploymentEvents.js.map +1 -1
- package/esm/funcs/deploymentsGetDeploymentFileContents.js +4 -4
- package/esm/funcs/deploymentsGetDeploymentFileContents.js.map +1 -1
- package/esm/funcs/deploymentsGetDeployments.js +4 -4
- package/esm/funcs/deploymentsGetDeployments.js.map +1 -1
- package/esm/funcs/deploymentsListDeploymentFiles.js +4 -4
- package/esm/funcs/deploymentsListDeploymentFiles.js.map +1 -1
- package/esm/funcs/deploymentsUploadFile.js +4 -4
- package/esm/funcs/deploymentsUploadFile.js.map +1 -1
- package/esm/funcs/dnsCreateRecord.js +4 -4
- package/esm/funcs/dnsCreateRecord.js.map +1 -1
- package/esm/funcs/dnsGetRecords.js +4 -4
- package/esm/funcs/dnsGetRecords.js.map +1 -1
- package/esm/funcs/dnsRemoveRecord.js +4 -4
- package/esm/funcs/dnsRemoveRecord.js.map +1 -1
- package/esm/funcs/dnsUpdateRecord.js +4 -4
- package/esm/funcs/dnsUpdateRecord.js.map +1 -1
- package/esm/funcs/domainsBuyDomain.js +4 -4
- package/esm/funcs/domainsBuyDomain.js.map +1 -1
- package/esm/funcs/domainsCheckDomainPrice.js +4 -4
- package/esm/funcs/domainsCheckDomainPrice.js.map +1 -1
- package/esm/funcs/domainsCheckDomainStatus.js +4 -4
- package/esm/funcs/domainsCheckDomainStatus.js.map +1 -1
- package/esm/funcs/domainsCreateOrTransferDomain.js +4 -4
- package/esm/funcs/domainsCreateOrTransferDomain.js.map +1 -1
- package/esm/funcs/domainsDeleteDomain.js +4 -4
- package/esm/funcs/domainsDeleteDomain.js.map +1 -1
- package/esm/funcs/domainsGetDomain.js +4 -4
- package/esm/funcs/domainsGetDomain.js.map +1 -1
- package/esm/funcs/domainsGetDomainConfig.js +4 -4
- package/esm/funcs/domainsGetDomainConfig.js.map +1 -1
- package/esm/funcs/domainsGetDomainTransfer.js +4 -4
- package/esm/funcs/domainsGetDomainTransfer.js.map +1 -1
- package/esm/funcs/domainsGetDomains.js +4 -4
- package/esm/funcs/domainsGetDomains.js.map +1 -1
- package/esm/funcs/domainsPatchDomain.js +4 -4
- package/esm/funcs/domainsPatchDomain.js.map +1 -1
- package/esm/funcs/edgeConfigCreateEdgeConfig.js +4 -4
- package/esm/funcs/edgeConfigCreateEdgeConfig.js.map +1 -1
- package/esm/funcs/edgeConfigCreateEdgeConfigToken.js +4 -4
- package/esm/funcs/edgeConfigCreateEdgeConfigToken.js.map +1 -1
- package/esm/funcs/edgeConfigDeleteEdgeConfig.js +4 -4
- package/esm/funcs/edgeConfigDeleteEdgeConfig.js.map +1 -1
- package/esm/funcs/edgeConfigDeleteEdgeConfigSchema.js +4 -4
- package/esm/funcs/edgeConfigDeleteEdgeConfigSchema.js.map +1 -1
- package/esm/funcs/edgeConfigDeleteEdgeConfigTokens.js +4 -4
- package/esm/funcs/edgeConfigDeleteEdgeConfigTokens.js.map +1 -1
- package/esm/funcs/edgeConfigGetEdgeConfig.js +4 -4
- package/esm/funcs/edgeConfigGetEdgeConfig.js.map +1 -1
- package/esm/funcs/edgeConfigGetEdgeConfigBackup.js +4 -4
- package/esm/funcs/edgeConfigGetEdgeConfigBackup.js.map +1 -1
- package/esm/funcs/edgeConfigGetEdgeConfigBackups.js +4 -4
- package/esm/funcs/edgeConfigGetEdgeConfigBackups.js.map +1 -1
- package/esm/funcs/edgeConfigGetEdgeConfigItem.js +4 -4
- package/esm/funcs/edgeConfigGetEdgeConfigItem.js.map +1 -1
- package/esm/funcs/edgeConfigGetEdgeConfigItems.js +4 -4
- package/esm/funcs/edgeConfigGetEdgeConfigItems.js.map +1 -1
- package/esm/funcs/edgeConfigGetEdgeConfigSchema.js +4 -4
- package/esm/funcs/edgeConfigGetEdgeConfigSchema.js.map +1 -1
- package/esm/funcs/edgeConfigGetEdgeConfigToken.js +4 -4
- package/esm/funcs/edgeConfigGetEdgeConfigToken.js.map +1 -1
- package/esm/funcs/edgeConfigGetEdgeConfigTokens.js +4 -4
- package/esm/funcs/edgeConfigGetEdgeConfigTokens.js.map +1 -1
- package/esm/funcs/edgeConfigGetEdgeConfigs.js +4 -4
- package/esm/funcs/edgeConfigGetEdgeConfigs.js.map +1 -1
- package/esm/funcs/edgeConfigPatchEdgeConfigSchema.js +4 -4
- package/esm/funcs/edgeConfigPatchEdgeConfigSchema.js.map +1 -1
- package/esm/funcs/edgeConfigUpdateEdgeConfig.js +4 -4
- package/esm/funcs/edgeConfigUpdateEdgeConfig.js.map +1 -1
- package/esm/funcs/integrationsDeleteConfiguration.js +4 -4
- package/esm/funcs/integrationsDeleteConfiguration.js.map +1 -1
- package/esm/funcs/integrationsGetConfiguration.js +4 -4
- package/esm/funcs/integrationsGetConfiguration.js.map +1 -1
- package/esm/funcs/integrationsGetConfigurations.js +4 -4
- package/esm/funcs/integrationsGetConfigurations.js.map +1 -1
- package/esm/funcs/integrationsGitNamespaces.js +4 -4
- package/esm/funcs/integrationsGitNamespaces.js.map +1 -1
- package/esm/funcs/integrationsSearchRepo.js +4 -4
- package/esm/funcs/integrationsSearchRepo.js.map +1 -1
- package/esm/funcs/logDrainsCreateConfigurableLogDrain.js +4 -4
- package/esm/funcs/logDrainsCreateConfigurableLogDrain.js.map +1 -1
- package/esm/funcs/logDrainsCreateLogDrain.js +4 -4
- package/esm/funcs/logDrainsCreateLogDrain.js.map +1 -1
- package/esm/funcs/logDrainsDeleteConfigurableLogDrain.js +4 -4
- package/esm/funcs/logDrainsDeleteConfigurableLogDrain.js.map +1 -1
- package/esm/funcs/logDrainsDeleteIntegrationLogDrain.js +4 -4
- package/esm/funcs/logDrainsDeleteIntegrationLogDrain.js.map +1 -1
- package/esm/funcs/logDrainsGetAllLogDrains.js +4 -4
- package/esm/funcs/logDrainsGetAllLogDrains.js.map +1 -1
- package/esm/funcs/logDrainsGetConfigurableLogDrain.js +4 -4
- package/esm/funcs/logDrainsGetConfigurableLogDrain.js.map +1 -1
- package/esm/funcs/logDrainsGetIntegrationLogDrains.js +4 -4
- package/esm/funcs/logDrainsGetIntegrationLogDrains.js.map +1 -1
- package/esm/funcs/marketplaceCreateEvent.js +4 -4
- package/esm/funcs/marketplaceCreateEvent.js.map +1 -1
- package/esm/funcs/marketplaceExchangeSsoToken.js +4 -4
- package/esm/funcs/marketplaceExchangeSsoToken.js.map +1 -1
- package/esm/funcs/marketplaceGetAccountInfo.js +4 -4
- package/esm/funcs/marketplaceGetAccountInfo.js.map +1 -1
- package/esm/funcs/marketplaceGetInvoice.js +4 -4
- package/esm/funcs/marketplaceGetInvoice.js.map +1 -1
- package/esm/funcs/marketplaceGetMember.js +4 -4
- package/esm/funcs/marketplaceGetMember.js.map +1 -1
- package/esm/funcs/marketplaceSubmitBillingData.js +4 -4
- package/esm/funcs/marketplaceSubmitBillingData.js.map +1 -1
- package/esm/funcs/marketplaceSubmitInvoice.js +4 -4
- package/esm/funcs/marketplaceSubmitInvoice.js.map +1 -1
- package/esm/funcs/marketplaceUpdateInvoice.js +4 -4
- package/esm/funcs/marketplaceUpdateInvoice.js.map +1 -1
- package/esm/funcs/marketplaceUpdateResourceSecrets.js +4 -4
- package/esm/funcs/marketplaceUpdateResourceSecrets.js.map +1 -1
- package/esm/funcs/projectMembersAddProjectMember.js +4 -4
- package/esm/funcs/projectMembersAddProjectMember.js.map +1 -1
- package/esm/funcs/projectMembersGetProjectMembers.js +4 -4
- package/esm/funcs/projectMembersGetProjectMembers.js.map +1 -1
- package/esm/funcs/projectMembersRemoveProjectMember.js +4 -4
- package/esm/funcs/projectMembersRemoveProjectMember.js.map +1 -1
- package/esm/funcs/projectsAddProjectDomain.js +4 -4
- package/esm/funcs/projectsAddProjectDomain.js.map +1 -1
- package/esm/funcs/projectsCreateProject.js +4 -4
- package/esm/funcs/projectsCreateProject.js.map +1 -1
- package/esm/funcs/projectsCreateProjectEnv.js +4 -4
- package/esm/funcs/projectsCreateProjectEnv.js.map +1 -1
- package/esm/funcs/projectsDeleteProject.js +4 -4
- package/esm/funcs/projectsDeleteProject.js.map +1 -1
- package/esm/funcs/projectsEditProjectEnv.js +4 -4
- package/esm/funcs/projectsEditProjectEnv.js.map +1 -1
- package/esm/funcs/projectsFilterProjectEnvs.js +4 -4
- package/esm/funcs/projectsFilterProjectEnvs.js.map +1 -1
- package/esm/funcs/projectsGetProjectDomain.js +4 -4
- package/esm/funcs/projectsGetProjectDomain.js.map +1 -1
- package/esm/funcs/projectsGetProjectDomains.js +4 -4
- package/esm/funcs/projectsGetProjectDomains.js.map +1 -1
- package/esm/funcs/projectsGetProjectEnv.js +4 -4
- package/esm/funcs/projectsGetProjectEnv.js.map +1 -1
- package/esm/funcs/projectsGetProjects.js +4 -4
- package/esm/funcs/projectsGetProjects.js.map +1 -1
- package/esm/funcs/projectsListPromoteAliases.js +4 -4
- package/esm/funcs/projectsListPromoteAliases.js.map +1 -1
- package/esm/funcs/projectsRemoveProjectDomain.js +4 -4
- package/esm/funcs/projectsRemoveProjectDomain.js.map +1 -1
- package/esm/funcs/projectsRemoveProjectEnv.js +4 -4
- package/esm/funcs/projectsRemoveProjectEnv.js.map +1 -1
- package/esm/funcs/projectsRequestPromote.js +4 -4
- package/esm/funcs/projectsRequestPromote.js.map +1 -1
- package/esm/funcs/projectsUpdateProject.js +4 -4
- package/esm/funcs/projectsUpdateProject.js.map +1 -1
- package/esm/funcs/projectsUpdateProjectDataCache.js +4 -4
- package/esm/funcs/projectsUpdateProjectDataCache.js.map +1 -1
- package/esm/funcs/projectsUpdateProjectDomain.js +4 -4
- package/esm/funcs/projectsUpdateProjectDomain.js.map +1 -1
- package/esm/funcs/projectsUpdateProjectProtectionBypass.js +4 -4
- package/esm/funcs/projectsUpdateProjectProtectionBypass.js.map +1 -1
- package/esm/funcs/projectsVerifyProjectDomain.js +4 -4
- package/esm/funcs/projectsVerifyProjectDomain.js.map +1 -1
- package/esm/funcs/securityGetFirewallConfig.js +4 -4
- package/esm/funcs/securityGetFirewallConfig.js.map +1 -1
- package/esm/funcs/securityPutFirewallConfig.js +4 -4
- package/esm/funcs/securityPutFirewallConfig.js.map +1 -1
- package/esm/funcs/securityUpdateAttackChallengeMode.js +4 -4
- package/esm/funcs/securityUpdateAttackChallengeMode.js.map +1 -1
- package/esm/funcs/securityUpdateFirewallConfig.js +4 -4
- package/esm/funcs/securityUpdateFirewallConfig.js.map +1 -1
- package/esm/funcs/teamsCreateTeam.js +4 -4
- package/esm/funcs/teamsCreateTeam.js.map +1 -1
- package/esm/funcs/teamsDeleteTeam.js +4 -4
- package/esm/funcs/teamsDeleteTeam.js.map +1 -1
- package/esm/funcs/teamsDeleteTeamInviteCode.js +4 -4
- package/esm/funcs/teamsDeleteTeamInviteCode.js.map +1 -1
- package/esm/funcs/teamsGetTeam.js +4 -4
- package/esm/funcs/teamsGetTeam.js.map +1 -1
- package/esm/funcs/teamsGetTeamAccessRequest.js +4 -4
- package/esm/funcs/teamsGetTeamAccessRequest.js.map +1 -1
- package/esm/funcs/teamsGetTeamMembers.js +4 -4
- package/esm/funcs/teamsGetTeamMembers.js.map +1 -1
- package/esm/funcs/teamsGetTeams.js +4 -4
- package/esm/funcs/teamsGetTeams.js.map +1 -1
- package/esm/funcs/teamsInviteUserToTeam.js +4 -4
- package/esm/funcs/teamsInviteUserToTeam.js.map +1 -1
- package/esm/funcs/teamsJoinTeam.js +4 -4
- package/esm/funcs/teamsJoinTeam.js.map +1 -1
- package/esm/funcs/teamsPatchTeam.js +4 -4
- package/esm/funcs/teamsPatchTeam.js.map +1 -1
- package/esm/funcs/teamsRemoveTeamMember.js +4 -4
- package/esm/funcs/teamsRemoveTeamMember.js.map +1 -1
- package/esm/funcs/teamsRequestAccessToTeam.js +4 -4
- package/esm/funcs/teamsRequestAccessToTeam.js.map +1 -1
- package/esm/funcs/teamsUpdateTeamMember.js +4 -4
- package/esm/funcs/teamsUpdateTeamMember.js.map +1 -1
- package/esm/funcs/userGetAuthUser.js +4 -4
- package/esm/funcs/userGetAuthUser.js.map +1 -1
- package/esm/funcs/userListUserEvents.js +4 -4
- package/esm/funcs/userListUserEvents.js.map +1 -1
- package/esm/funcs/userRequestDelete.js +4 -4
- package/esm/funcs/userRequestDelete.js.map +1 -1
- package/esm/funcs/webhooksCreateWebhook.js +4 -4
- package/esm/funcs/webhooksCreateWebhook.js.map +1 -1
- package/esm/funcs/webhooksDeleteWebhook.js +4 -4
- package/esm/funcs/webhooksDeleteWebhook.js.map +1 -1
- package/esm/funcs/webhooksGetWebhook.js +4 -4
- package/esm/funcs/webhooksGetWebhook.js.map +1 -1
- package/esm/funcs/webhooksGetWebhooks.js +4 -4
- package/esm/funcs/webhooksGetWebhooks.js.map +1 -1
- package/esm/lib/config.d.ts +3 -3
- package/esm/lib/config.js +4 -5
- package/esm/lib/config.js.map +1 -1
- package/esm/lib/encodings.js +18 -19
- package/esm/lib/encodings.js.map +1 -1
- package/esm/lib/http.js +1 -2
- package/esm/lib/http.js.map +1 -1
- package/esm/lib/matchers.js +5 -6
- package/esm/lib/matchers.js.map +1 -1
- package/esm/lib/primitives.js +1 -1
- package/esm/lib/primitives.js.map +1 -1
- package/esm/lib/retries.js +3 -4
- package/esm/lib/retries.js.map +1 -1
- package/esm/lib/sdks.js +15 -16
- package/esm/lib/sdks.js.map +1 -1
- package/esm/lib/security.js +2 -2
- package/esm/lib/security.js.map +1 -1
- package/esm/lib/url.js +1 -1
- package/esm/lib/url.js.map +1 -1
- package/esm/models/canceldeploymentop.d.ts +207 -0
- package/esm/models/canceldeploymentop.d.ts.map +1 -1
- package/esm/models/canceldeploymentop.js +167 -0
- package/esm/models/canceldeploymentop.js.map +1 -1
- package/esm/models/createdeploymentop.d.ts +207 -0
- package/esm/models/createdeploymentop.d.ts.map +1 -1
- package/esm/models/createdeploymentop.js +171 -0
- package/esm/models/createdeploymentop.js.map +1 -1
- package/esm/models/createprojectenvop.d.ts +6 -6
- package/esm/models/createprojectenvop.js +2 -2
- package/esm/models/createprojectenvop.js.map +1 -1
- package/esm/models/createprojectop.d.ts +9 -9
- package/esm/models/createprojectop.js +3 -3
- package/esm/models/createprojectop.js.map +1 -1
- package/esm/models/editprojectenvop.d.ts +3 -3
- package/esm/models/editprojectenvop.js +1 -1
- package/esm/models/editprojectenvop.js.map +1 -1
- package/esm/models/filterprojectenvsop.d.ts +9 -9
- package/esm/models/filterprojectenvsop.js +3 -3
- package/esm/models/filterprojectenvsop.js.map +1 -1
- package/esm/models/getdeploymentop.d.ts +207 -0
- package/esm/models/getdeploymentop.d.ts.map +1 -1
- package/esm/models/getdeploymentop.js +169 -0
- package/esm/models/getdeploymentop.js.map +1 -1
- package/esm/models/getfirewallconfigop.d.ts +3 -0
- package/esm/models/getfirewallconfigop.d.ts.map +1 -1
- package/esm/models/getfirewallconfigop.js.map +1 -1
- package/esm/models/httpclienterrors.js +2 -2
- package/esm/models/httpclienterrors.js.map +1 -1
- package/esm/models/removeprojectenvop.d.ts +9 -9
- package/esm/models/removeprojectenvop.js +3 -3
- package/esm/models/removeprojectenvop.js.map +1 -1
- package/esm/models/updateprojectop.d.ts +9 -9
- package/esm/models/updateprojectop.js +3 -3
- package/esm/models/updateprojectop.js.map +1 -1
- package/esm/models/verifyprojectdomainop.d.ts +0 -39
- package/esm/models/verifyprojectdomainop.d.ts.map +1 -1
- package/esm/models/verifyprojectdomainop.js +0 -33
- package/esm/models/verifyprojectdomainop.js.map +1 -1
- package/esm/sdk/sdk.js +19 -38
- package/esm/sdk/sdk.js.map +1 -1
- package/package.json +1 -1
- package/src/lib/config.ts +3 -3
- package/src/lib/security.ts +1 -1
- package/src/models/canceldeploymentop.ts +365 -0
- package/src/models/createdeploymentop.ts +326 -0
- package/src/models/createprojectenvop.ts +2 -2
- package/src/models/createprojectop.ts +3 -3
- package/src/models/editprojectenvop.ts +1 -1
- package/src/models/filterprojectenvsop.ts +3 -3
- package/src/models/getdeploymentop.ts +353 -0
- package/src/models/getfirewallconfigop.ts +3 -0
- package/src/models/removeprojectenvop.ts +3 -3
- package/src/models/updateprojectop.ts +3 -3
- package/src/models/verifyprojectdomainop.ts +0 -86
|
@@ -41,6 +41,8 @@ const vercel = new Vercel({
|
|
|
41
41
|
async function run() {
|
|
42
42
|
const result = await vercel.projects.updateProjectDataCache({
|
|
43
43
|
projectId: "prj_12HKQaOmR5t5Uy6vdcQsNIiZgHGB",
|
|
44
|
+
teamId: "team_1a2b3c4d5e6f7g8h9i0j1k2l",
|
|
45
|
+
slug: "my-team-url-slug",
|
|
44
46
|
requestBody: {
|
|
45
47
|
disabled: true,
|
|
46
48
|
},
|
|
@@ -70,6 +72,8 @@ const vercel = new VercelCore({
|
|
|
70
72
|
async function run() {
|
|
71
73
|
const res = await projectsUpdateProjectDataCache(vercel, {
|
|
72
74
|
projectId: "prj_12HKQaOmR5t5Uy6vdcQsNIiZgHGB",
|
|
75
|
+
teamId: "team_1a2b3c4d5e6f7g8h9i0j1k2l",
|
|
76
|
+
slug: "my-team-url-slug",
|
|
73
77
|
requestBody: {
|
|
74
78
|
disabled: true,
|
|
75
79
|
},
|
|
@@ -127,6 +131,8 @@ async function run() {
|
|
|
127
131
|
const result = await vercel.projects.getProjects({
|
|
128
132
|
gitForkProtection: "1",
|
|
129
133
|
repoUrl: "https://github.com/vercel/next.js",
|
|
134
|
+
teamId: "team_1a2b3c4d5e6f7g8h9i0j1k2l",
|
|
135
|
+
slug: "my-team-url-slug",
|
|
130
136
|
});
|
|
131
137
|
|
|
132
138
|
// Handle the result
|
|
@@ -154,6 +160,8 @@ async function run() {
|
|
|
154
160
|
const res = await projectsGetProjects(vercel, {
|
|
155
161
|
gitForkProtection: "1",
|
|
156
162
|
repoUrl: "https://github.com/vercel/next.js",
|
|
163
|
+
teamId: "team_1a2b3c4d5e6f7g8h9i0j1k2l",
|
|
164
|
+
slug: "my-team-url-slug",
|
|
157
165
|
});
|
|
158
166
|
|
|
159
167
|
if (!res.ok) {
|
|
@@ -205,6 +213,8 @@ const vercel = new Vercel({
|
|
|
205
213
|
|
|
206
214
|
async function run() {
|
|
207
215
|
const result = await vercel.projects.createProject({
|
|
216
|
+
teamId: "team_1a2b3c4d5e6f7g8h9i0j1k2l",
|
|
217
|
+
slug: "my-team-url-slug",
|
|
208
218
|
requestBody: {
|
|
209
219
|
name: "a-project-name",
|
|
210
220
|
},
|
|
@@ -233,6 +243,8 @@ const vercel = new VercelCore({
|
|
|
233
243
|
|
|
234
244
|
async function run() {
|
|
235
245
|
const res = await projectsCreateProject(vercel, {
|
|
246
|
+
teamId: "team_1a2b3c4d5e6f7g8h9i0j1k2l",
|
|
247
|
+
slug: "my-team-url-slug",
|
|
236
248
|
requestBody: {
|
|
237
249
|
name: "a-project-name",
|
|
238
250
|
},
|
|
@@ -288,6 +300,8 @@ const vercel = new Vercel({
|
|
|
288
300
|
async function run() {
|
|
289
301
|
const result = await vercel.projects.updateProject({
|
|
290
302
|
idOrName: "prj_12HKQaOmR5t5Uy6vdcQsNIiZgHGB",
|
|
303
|
+
teamId: "team_1a2b3c4d5e6f7g8h9i0j1k2l",
|
|
304
|
+
slug: "my-team-url-slug",
|
|
291
305
|
requestBody: {
|
|
292
306
|
name: "a-project-name",
|
|
293
307
|
},
|
|
@@ -317,6 +331,8 @@ const vercel = new VercelCore({
|
|
|
317
331
|
async function run() {
|
|
318
332
|
const res = await projectsUpdateProject(vercel, {
|
|
319
333
|
idOrName: "prj_12HKQaOmR5t5Uy6vdcQsNIiZgHGB",
|
|
334
|
+
teamId: "team_1a2b3c4d5e6f7g8h9i0j1k2l",
|
|
335
|
+
slug: "my-team-url-slug",
|
|
320
336
|
requestBody: {
|
|
321
337
|
name: "a-project-name",
|
|
322
338
|
},
|
|
@@ -372,6 +388,8 @@ const vercel = new Vercel({
|
|
|
372
388
|
async function run() {
|
|
373
389
|
await vercel.projects.deleteProject({
|
|
374
390
|
idOrName: "prj_12HKQaOmR5t5Uy6vdcQsNIiZgHGB",
|
|
391
|
+
teamId: "team_1a2b3c4d5e6f7g8h9i0j1k2l",
|
|
392
|
+
slug: "my-team-url-slug",
|
|
375
393
|
});
|
|
376
394
|
|
|
377
395
|
|
|
@@ -397,6 +415,8 @@ const vercel = new VercelCore({
|
|
|
397
415
|
async function run() {
|
|
398
416
|
const res = await projectsDeleteProject(vercel, {
|
|
399
417
|
idOrName: "prj_12HKQaOmR5t5Uy6vdcQsNIiZgHGB",
|
|
418
|
+
teamId: "team_1a2b3c4d5e6f7g8h9i0j1k2l",
|
|
419
|
+
slug: "my-team-url-slug",
|
|
400
420
|
});
|
|
401
421
|
|
|
402
422
|
if (!res.ok) {
|
|
@@ -452,6 +472,8 @@ async function run() {
|
|
|
452
472
|
limit: 20,
|
|
453
473
|
since: 1609499532000,
|
|
454
474
|
until: 1612264332000,
|
|
475
|
+
teamId: "team_1a2b3c4d5e6f7g8h9i0j1k2l",
|
|
476
|
+
slug: "my-team-url-slug",
|
|
455
477
|
});
|
|
456
478
|
|
|
457
479
|
// Handle the result
|
|
@@ -482,6 +504,8 @@ async function run() {
|
|
|
482
504
|
limit: 20,
|
|
483
505
|
since: 1609499532000,
|
|
484
506
|
until: 1612264332000,
|
|
507
|
+
teamId: "team_1a2b3c4d5e6f7g8h9i0j1k2l",
|
|
508
|
+
slug: "my-team-url-slug",
|
|
485
509
|
});
|
|
486
510
|
|
|
487
511
|
if (!res.ok) {
|
|
@@ -535,6 +559,8 @@ async function run() {
|
|
|
535
559
|
const result = await vercel.projects.getProjectDomain({
|
|
536
560
|
idOrName: "<value>",
|
|
537
561
|
domain: "www.example.com",
|
|
562
|
+
teamId: "team_1a2b3c4d5e6f7g8h9i0j1k2l",
|
|
563
|
+
slug: "my-team-url-slug",
|
|
538
564
|
});
|
|
539
565
|
|
|
540
566
|
// Handle the result
|
|
@@ -562,6 +588,8 @@ async function run() {
|
|
|
562
588
|
const res = await projectsGetProjectDomain(vercel, {
|
|
563
589
|
idOrName: "<value>",
|
|
564
590
|
domain: "www.example.com",
|
|
591
|
+
teamId: "team_1a2b3c4d5e6f7g8h9i0j1k2l",
|
|
592
|
+
slug: "my-team-url-slug",
|
|
565
593
|
});
|
|
566
594
|
|
|
567
595
|
if (!res.ok) {
|
|
@@ -615,6 +643,8 @@ async function run() {
|
|
|
615
643
|
const result = await vercel.projects.updateProjectDomain({
|
|
616
644
|
idOrName: "<value>",
|
|
617
645
|
domain: "www.example.com",
|
|
646
|
+
teamId: "team_1a2b3c4d5e6f7g8h9i0j1k2l",
|
|
647
|
+
slug: "my-team-url-slug",
|
|
618
648
|
requestBody: {
|
|
619
649
|
gitBranch: null,
|
|
620
650
|
redirect: "foobar.com",
|
|
@@ -647,6 +677,8 @@ async function run() {
|
|
|
647
677
|
const res = await projectsUpdateProjectDomain(vercel, {
|
|
648
678
|
idOrName: "<value>",
|
|
649
679
|
domain: "www.example.com",
|
|
680
|
+
teamId: "team_1a2b3c4d5e6f7g8h9i0j1k2l",
|
|
681
|
+
slug: "my-team-url-slug",
|
|
650
682
|
requestBody: {
|
|
651
683
|
gitBranch: null,
|
|
652
684
|
redirect: "foobar.com",
|
|
@@ -705,6 +737,8 @@ async function run() {
|
|
|
705
737
|
const result = await vercel.projects.removeProjectDomain({
|
|
706
738
|
idOrName: "<value>",
|
|
707
739
|
domain: "www.example.com",
|
|
740
|
+
teamId: "team_1a2b3c4d5e6f7g8h9i0j1k2l",
|
|
741
|
+
slug: "my-team-url-slug",
|
|
708
742
|
});
|
|
709
743
|
|
|
710
744
|
// Handle the result
|
|
@@ -732,6 +766,8 @@ async function run() {
|
|
|
732
766
|
const res = await projectsRemoveProjectDomain(vercel, {
|
|
733
767
|
idOrName: "<value>",
|
|
734
768
|
domain: "www.example.com",
|
|
769
|
+
teamId: "team_1a2b3c4d5e6f7g8h9i0j1k2l",
|
|
770
|
+
slug: "my-team-url-slug",
|
|
735
771
|
});
|
|
736
772
|
|
|
737
773
|
if (!res.ok) {
|
|
@@ -785,6 +821,8 @@ const vercel = new Vercel({
|
|
|
785
821
|
async function run() {
|
|
786
822
|
const result = await vercel.projects.addProjectDomain({
|
|
787
823
|
idOrName: "<value>",
|
|
824
|
+
teamId: "team_1a2b3c4d5e6f7g8h9i0j1k2l",
|
|
825
|
+
slug: "my-team-url-slug",
|
|
788
826
|
requestBody: {
|
|
789
827
|
name: "www.example.com",
|
|
790
828
|
gitBranch: null,
|
|
@@ -817,6 +855,8 @@ const vercel = new VercelCore({
|
|
|
817
855
|
async function run() {
|
|
818
856
|
const res = await projectsAddProjectDomain(vercel, {
|
|
819
857
|
idOrName: "<value>",
|
|
858
|
+
teamId: "team_1a2b3c4d5e6f7g8h9i0j1k2l",
|
|
859
|
+
slug: "my-team-url-slug",
|
|
820
860
|
requestBody: {
|
|
821
861
|
name: "www.example.com",
|
|
822
862
|
gitBranch: null,
|
|
@@ -876,6 +916,8 @@ async function run() {
|
|
|
876
916
|
const result = await vercel.projects.verifyProjectDomain({
|
|
877
917
|
idOrName: "prj_12HKQaOmR5t5Uy6vdcQsNIiZgHGB",
|
|
878
918
|
domain: "example.com",
|
|
919
|
+
teamId: "team_1a2b3c4d5e6f7g8h9i0j1k2l",
|
|
920
|
+
slug: "my-team-url-slug",
|
|
879
921
|
});
|
|
880
922
|
|
|
881
923
|
// Handle the result
|
|
@@ -903,6 +945,8 @@ async function run() {
|
|
|
903
945
|
const res = await projectsVerifyProjectDomain(vercel, {
|
|
904
946
|
idOrName: "prj_12HKQaOmR5t5Uy6vdcQsNIiZgHGB",
|
|
905
947
|
domain: "example.com",
|
|
948
|
+
teamId: "team_1a2b3c4d5e6f7g8h9i0j1k2l",
|
|
949
|
+
slug: "my-team-url-slug",
|
|
906
950
|
});
|
|
907
951
|
|
|
908
952
|
if (!res.ok) {
|
|
@@ -958,6 +1002,8 @@ async function run() {
|
|
|
958
1002
|
gitBranch: "feature-1",
|
|
959
1003
|
decrypt: "true",
|
|
960
1004
|
source: "vercel-cli:pull",
|
|
1005
|
+
teamId: "team_1a2b3c4d5e6f7g8h9i0j1k2l",
|
|
1006
|
+
slug: "my-team-url-slug",
|
|
961
1007
|
});
|
|
962
1008
|
|
|
963
1009
|
// Handle the result
|
|
@@ -987,6 +1033,8 @@ async function run() {
|
|
|
987
1033
|
gitBranch: "feature-1",
|
|
988
1034
|
decrypt: "true",
|
|
989
1035
|
source: "vercel-cli:pull",
|
|
1036
|
+
teamId: "team_1a2b3c4d5e6f7g8h9i0j1k2l",
|
|
1037
|
+
slug: "my-team-url-slug",
|
|
990
1038
|
});
|
|
991
1039
|
|
|
992
1040
|
if (!res.ok) {
|
|
@@ -1040,6 +1088,8 @@ async function run() {
|
|
|
1040
1088
|
const result = await vercel.projects.getProjectEnv({
|
|
1041
1089
|
idOrName: "prj_XLKmu1DyR1eY7zq8UgeRKbA7yVLA",
|
|
1042
1090
|
id: "<id>",
|
|
1091
|
+
teamId: "team_1a2b3c4d5e6f7g8h9i0j1k2l",
|
|
1092
|
+
slug: "my-team-url-slug",
|
|
1043
1093
|
});
|
|
1044
1094
|
|
|
1045
1095
|
// Handle the result
|
|
@@ -1067,6 +1117,8 @@ async function run() {
|
|
|
1067
1117
|
const res = await projectsGetProjectEnv(vercel, {
|
|
1068
1118
|
idOrName: "prj_XLKmu1DyR1eY7zq8UgeRKbA7yVLA",
|
|
1069
1119
|
id: "<id>",
|
|
1120
|
+
teamId: "team_1a2b3c4d5e6f7g8h9i0j1k2l",
|
|
1121
|
+
slug: "my-team-url-slug",
|
|
1070
1122
|
});
|
|
1071
1123
|
|
|
1072
1124
|
if (!res.ok) {
|
|
@@ -1120,6 +1172,8 @@ async function run() {
|
|
|
1120
1172
|
const result = await vercel.projects.createProjectEnv({
|
|
1121
1173
|
idOrName: "prj_XLKmu1DyR1eY7zq8UgeRKbA7yVLA",
|
|
1122
1174
|
upsert: "true",
|
|
1175
|
+
teamId: "team_1a2b3c4d5e6f7g8h9i0j1k2l",
|
|
1176
|
+
slug: "my-team-url-slug",
|
|
1123
1177
|
requestBody: {
|
|
1124
1178
|
key: "API_URL",
|
|
1125
1179
|
value: "https://api.vercel.com",
|
|
@@ -1157,6 +1211,8 @@ async function run() {
|
|
|
1157
1211
|
const res = await projectsCreateProjectEnv(vercel, {
|
|
1158
1212
|
idOrName: "prj_XLKmu1DyR1eY7zq8UgeRKbA7yVLA",
|
|
1159
1213
|
upsert: "true",
|
|
1214
|
+
teamId: "team_1a2b3c4d5e6f7g8h9i0j1k2l",
|
|
1215
|
+
slug: "my-team-url-slug",
|
|
1160
1216
|
requestBody: {
|
|
1161
1217
|
key: "API_URL",
|
|
1162
1218
|
value: "https://api.vercel.com",
|
|
@@ -1220,6 +1276,8 @@ async function run() {
|
|
|
1220
1276
|
const result = await vercel.projects.removeProjectEnv({
|
|
1221
1277
|
idOrName: "prj_XLKmu1DyR1eY7zq8UgeRKbA7yVLA",
|
|
1222
1278
|
id: "XMbOEya1gUUO1ir4",
|
|
1279
|
+
teamId: "team_1a2b3c4d5e6f7g8h9i0j1k2l",
|
|
1280
|
+
slug: "my-team-url-slug",
|
|
1223
1281
|
});
|
|
1224
1282
|
|
|
1225
1283
|
// Handle the result
|
|
@@ -1247,6 +1305,8 @@ async function run() {
|
|
|
1247
1305
|
const res = await projectsRemoveProjectEnv(vercel, {
|
|
1248
1306
|
idOrName: "prj_XLKmu1DyR1eY7zq8UgeRKbA7yVLA",
|
|
1249
1307
|
id: "XMbOEya1gUUO1ir4",
|
|
1308
|
+
teamId: "team_1a2b3c4d5e6f7g8h9i0j1k2l",
|
|
1309
|
+
slug: "my-team-url-slug",
|
|
1250
1310
|
});
|
|
1251
1311
|
|
|
1252
1312
|
if (!res.ok) {
|
|
@@ -1301,6 +1361,8 @@ async function run() {
|
|
|
1301
1361
|
const result = await vercel.projects.editProjectEnv({
|
|
1302
1362
|
idOrName: "prj_XLKmu1DyR1eY7zq8UgeRKbA7yVLA",
|
|
1303
1363
|
id: "XMbOEya1gUUO1ir4",
|
|
1364
|
+
teamId: "team_1a2b3c4d5e6f7g8h9i0j1k2l",
|
|
1365
|
+
slug: "my-team-url-slug",
|
|
1304
1366
|
requestBody: {
|
|
1305
1367
|
key: "GITHUB_APP_ID",
|
|
1306
1368
|
target: [
|
|
@@ -1341,6 +1403,8 @@ async function run() {
|
|
|
1341
1403
|
const res = await projectsEditProjectEnv(vercel, {
|
|
1342
1404
|
idOrName: "prj_XLKmu1DyR1eY7zq8UgeRKbA7yVLA",
|
|
1343
1405
|
id: "XMbOEya1gUUO1ir4",
|
|
1406
|
+
teamId: "team_1a2b3c4d5e6f7g8h9i0j1k2l",
|
|
1407
|
+
slug: "my-team-url-slug",
|
|
1344
1408
|
requestBody: {
|
|
1345
1409
|
key: "GITHUB_APP_ID",
|
|
1346
1410
|
target: [
|
|
@@ -1406,6 +1470,8 @@ const vercel = new Vercel({
|
|
|
1406
1470
|
async function run() {
|
|
1407
1471
|
const result = await vercel.projects.updateProjectProtectionBypass({
|
|
1408
1472
|
idOrName: "<value>",
|
|
1473
|
+
teamId: "team_1a2b3c4d5e6f7g8h9i0j1k2l",
|
|
1474
|
+
slug: "my-team-url-slug",
|
|
1409
1475
|
requestBody: {},
|
|
1410
1476
|
});
|
|
1411
1477
|
|
|
@@ -1433,6 +1499,8 @@ const vercel = new VercelCore({
|
|
|
1433
1499
|
async function run() {
|
|
1434
1500
|
const res = await projectsUpdateProjectProtectionBypass(vercel, {
|
|
1435
1501
|
idOrName: "<value>",
|
|
1502
|
+
teamId: "team_1a2b3c4d5e6f7g8h9i0j1k2l",
|
|
1503
|
+
slug: "my-team-url-slug",
|
|
1436
1504
|
requestBody: {},
|
|
1437
1505
|
});
|
|
1438
1506
|
|
|
@@ -1488,6 +1556,8 @@ async function run() {
|
|
|
1488
1556
|
await vercel.projects.requestPromote({
|
|
1489
1557
|
projectId: "<id>",
|
|
1490
1558
|
deploymentId: "<id>",
|
|
1559
|
+
teamId: "team_1a2b3c4d5e6f7g8h9i0j1k2l",
|
|
1560
|
+
slug: "my-team-url-slug",
|
|
1491
1561
|
});
|
|
1492
1562
|
|
|
1493
1563
|
|
|
@@ -1514,6 +1584,8 @@ async function run() {
|
|
|
1514
1584
|
const res = await projectsRequestPromote(vercel, {
|
|
1515
1585
|
projectId: "<id>",
|
|
1516
1586
|
deploymentId: "<id>",
|
|
1587
|
+
teamId: "team_1a2b3c4d5e6f7g8h9i0j1k2l",
|
|
1588
|
+
slug: "my-team-url-slug",
|
|
1517
1589
|
});
|
|
1518
1590
|
|
|
1519
1591
|
if (!res.ok) {
|
|
@@ -1568,6 +1640,8 @@ async function run() {
|
|
|
1568
1640
|
limit: 20,
|
|
1569
1641
|
since: 1609499532000,
|
|
1570
1642
|
until: 1612264332000,
|
|
1643
|
+
teamId: "team_1a2b3c4d5e6f7g8h9i0j1k2l",
|
|
1644
|
+
slug: "my-team-url-slug",
|
|
1571
1645
|
});
|
|
1572
1646
|
|
|
1573
1647
|
// Handle the result
|
|
@@ -1597,6 +1671,8 @@ async function run() {
|
|
|
1597
1671
|
limit: 20,
|
|
1598
1672
|
since: 1609499532000,
|
|
1599
1673
|
until: 1612264332000,
|
|
1674
|
+
teamId: "team_1a2b3c4d5e6f7g8h9i0j1k2l",
|
|
1675
|
+
slug: "my-team-url-slug",
|
|
1600
1676
|
});
|
|
1601
1677
|
|
|
1602
1678
|
if (!res.ok) {
|
|
@@ -25,6 +25,8 @@ const vercel = new Vercel({
|
|
|
25
25
|
|
|
26
26
|
async function run() {
|
|
27
27
|
const result = await vercel.security.updateAttackChallengeMode({
|
|
28
|
+
teamId: "team_1a2b3c4d5e6f7g8h9i0j1k2l",
|
|
29
|
+
slug: "my-team-url-slug",
|
|
28
30
|
requestBody: {
|
|
29
31
|
projectId: "<id>",
|
|
30
32
|
attackModeEnabled: true,
|
|
@@ -54,6 +56,8 @@ const vercel = new VercelCore({
|
|
|
54
56
|
|
|
55
57
|
async function run() {
|
|
56
58
|
const res = await securityUpdateAttackChallengeMode(vercel, {
|
|
59
|
+
teamId: "team_1a2b3c4d5e6f7g8h9i0j1k2l",
|
|
60
|
+
slug: "my-team-url-slug",
|
|
57
61
|
requestBody: {
|
|
58
62
|
projectId: "<id>",
|
|
59
63
|
attackModeEnabled: true,
|
|
@@ -111,6 +115,8 @@ const vercel = new Vercel({
|
|
|
111
115
|
async function run() {
|
|
112
116
|
const result = await vercel.security.putFirewallConfig({
|
|
113
117
|
projectId: "<id>",
|
|
118
|
+
teamId: "team_1a2b3c4d5e6f7g8h9i0j1k2l",
|
|
119
|
+
slug: "my-team-url-slug",
|
|
114
120
|
requestBody: {
|
|
115
121
|
firewallEnabled: true,
|
|
116
122
|
},
|
|
@@ -140,6 +146,8 @@ const vercel = new VercelCore({
|
|
|
140
146
|
async function run() {
|
|
141
147
|
const res = await securityPutFirewallConfig(vercel, {
|
|
142
148
|
projectId: "<id>",
|
|
149
|
+
teamId: "team_1a2b3c4d5e6f7g8h9i0j1k2l",
|
|
150
|
+
slug: "my-team-url-slug",
|
|
143
151
|
requestBody: {
|
|
144
152
|
firewallEnabled: true,
|
|
145
153
|
},
|
|
@@ -196,6 +204,8 @@ const vercel = new Vercel({
|
|
|
196
204
|
async function run() {
|
|
197
205
|
const result = await vercel.security.updateFirewallConfig({
|
|
198
206
|
projectId: "<id>",
|
|
207
|
+
teamId: "team_1a2b3c4d5e6f7g8h9i0j1k2l",
|
|
208
|
+
slug: "my-team-url-slug",
|
|
199
209
|
requestBody: {
|
|
200
210
|
action: "ip.remove",
|
|
201
211
|
id: "<id>",
|
|
@@ -226,6 +236,8 @@ const vercel = new VercelCore({
|
|
|
226
236
|
async function run() {
|
|
227
237
|
const res = await securityUpdateFirewallConfig(vercel, {
|
|
228
238
|
projectId: "<id>",
|
|
239
|
+
teamId: "team_1a2b3c4d5e6f7g8h9i0j1k2l",
|
|
240
|
+
slug: "my-team-url-slug",
|
|
229
241
|
requestBody: {
|
|
230
242
|
action: "ip.remove",
|
|
231
243
|
id: "<id>",
|
|
@@ -283,6 +295,8 @@ const vercel = new Vercel({
|
|
|
283
295
|
async function run() {
|
|
284
296
|
const result = await vercel.security.getFirewallConfig({
|
|
285
297
|
projectId: "<id>",
|
|
298
|
+
teamId: "team_1a2b3c4d5e6f7g8h9i0j1k2l",
|
|
299
|
+
slug: "my-team-url-slug",
|
|
286
300
|
configVersion: "<value>",
|
|
287
301
|
});
|
|
288
302
|
|
|
@@ -310,6 +324,8 @@ const vercel = new VercelCore({
|
|
|
310
324
|
async function run() {
|
|
311
325
|
const res = await securityGetFirewallConfig(vercel, {
|
|
312
326
|
projectId: "<id>",
|
|
327
|
+
teamId: "team_1a2b3c4d5e6f7g8h9i0j1k2l",
|
|
328
|
+
slug: "my-team-url-slug",
|
|
313
329
|
configVersion: "<value>",
|
|
314
330
|
});
|
|
315
331
|
|
|
@@ -38,7 +38,7 @@ async function run() {
|
|
|
38
38
|
since: 1540095775951,
|
|
39
39
|
until: 1540095775951,
|
|
40
40
|
role: "OWNER",
|
|
41
|
-
teamId: "
|
|
41
|
+
teamId: "team_1a2b3c4d5e6f7g8h9i0j1k2l",
|
|
42
42
|
});
|
|
43
43
|
|
|
44
44
|
// Handle the result
|
|
@@ -68,7 +68,7 @@ async function run() {
|
|
|
68
68
|
since: 1540095775951,
|
|
69
69
|
until: 1540095775951,
|
|
70
70
|
role: "OWNER",
|
|
71
|
-
teamId: "
|
|
71
|
+
teamId: "team_1a2b3c4d5e6f7g8h9i0j1k2l",
|
|
72
72
|
});
|
|
73
73
|
|
|
74
74
|
if (!res.ok) {
|
|
@@ -121,7 +121,7 @@ const vercel = new Vercel({
|
|
|
121
121
|
|
|
122
122
|
async function run() {
|
|
123
123
|
const result = await vercel.teams.inviteUserToTeam({
|
|
124
|
-
teamId: "
|
|
124
|
+
teamId: "team_1a2b3c4d5e6f7g8h9i0j1k2l",
|
|
125
125
|
requestBody: {
|
|
126
126
|
uid: "kr1PsOIzqEL5Xg6M4VZcZosf",
|
|
127
127
|
email: "john@example.com",
|
|
@@ -162,7 +162,7 @@ const vercel = new VercelCore({
|
|
|
162
162
|
|
|
163
163
|
async function run() {
|
|
164
164
|
const res = await teamsInviteUserToTeam(vercel, {
|
|
165
|
-
teamId: "
|
|
165
|
+
teamId: "team_1a2b3c4d5e6f7g8h9i0j1k2l",
|
|
166
166
|
requestBody: {
|
|
167
167
|
uid: "kr1PsOIzqEL5Xg6M4VZcZosf",
|
|
168
168
|
email: "john@example.com",
|
|
@@ -230,7 +230,7 @@ const vercel = new Vercel({
|
|
|
230
230
|
|
|
231
231
|
async function run() {
|
|
232
232
|
const result = await vercel.teams.requestAccessToTeam({
|
|
233
|
-
teamId: "
|
|
233
|
+
teamId: "team_1a2b3c4d5e6f7g8h9i0j1k2l",
|
|
234
234
|
requestBody: {
|
|
235
235
|
joinedFrom: {
|
|
236
236
|
origin: "github",
|
|
@@ -266,7 +266,7 @@ const vercel = new VercelCore({
|
|
|
266
266
|
|
|
267
267
|
async function run() {
|
|
268
268
|
const res = await teamsRequestAccessToTeam(vercel, {
|
|
269
|
-
teamId: "
|
|
269
|
+
teamId: "team_1a2b3c4d5e6f7g8h9i0j1k2l",
|
|
270
270
|
requestBody: {
|
|
271
271
|
joinedFrom: {
|
|
272
272
|
origin: "github",
|
|
@@ -330,7 +330,7 @@ const vercel = new Vercel({
|
|
|
330
330
|
async function run() {
|
|
331
331
|
const result = await vercel.teams.getTeamAccessRequest({
|
|
332
332
|
userId: "<id>",
|
|
333
|
-
teamId: "
|
|
333
|
+
teamId: "team_1a2b3c4d5e6f7g8h9i0j1k2l",
|
|
334
334
|
});
|
|
335
335
|
|
|
336
336
|
// Handle the result
|
|
@@ -357,7 +357,7 @@ const vercel = new VercelCore({
|
|
|
357
357
|
async function run() {
|
|
358
358
|
const res = await teamsGetTeamAccessRequest(vercel, {
|
|
359
359
|
userId: "<id>",
|
|
360
|
-
teamId: "
|
|
360
|
+
teamId: "team_1a2b3c4d5e6f7g8h9i0j1k2l",
|
|
361
361
|
});
|
|
362
362
|
|
|
363
363
|
if (!res.ok) {
|
|
@@ -410,7 +410,7 @@ const vercel = new Vercel({
|
|
|
410
410
|
|
|
411
411
|
async function run() {
|
|
412
412
|
const result = await vercel.teams.joinTeam({
|
|
413
|
-
teamId: "
|
|
413
|
+
teamId: "team_1a2b3c4d5e6f7g8h9i0j1k2l",
|
|
414
414
|
requestBody: {
|
|
415
415
|
inviteCode: "fisdh38aejkeivn34nslfore9vjtn4ls",
|
|
416
416
|
},
|
|
@@ -439,7 +439,7 @@ const vercel = new VercelCore({
|
|
|
439
439
|
|
|
440
440
|
async function run() {
|
|
441
441
|
const res = await teamsJoinTeam(vercel, {
|
|
442
|
-
teamId: "
|
|
442
|
+
teamId: "team_1a2b3c4d5e6f7g8h9i0j1k2l",
|
|
443
443
|
requestBody: {
|
|
444
444
|
inviteCode: "fisdh38aejkeivn34nslfore9vjtn4ls",
|
|
445
445
|
},
|
|
@@ -496,7 +496,7 @@ const vercel = new Vercel({
|
|
|
496
496
|
async function run() {
|
|
497
497
|
const result = await vercel.teams.updateTeamMember({
|
|
498
498
|
uid: "ndfasllgPyCtREAqxxdyFKb",
|
|
499
|
-
teamId: "
|
|
499
|
+
teamId: "team_1a2b3c4d5e6f7g8h9i0j1k2l",
|
|
500
500
|
requestBody: {
|
|
501
501
|
confirmed: true,
|
|
502
502
|
role: "[\"MEMBER\",\"VIEWER\"]",
|
|
@@ -533,7 +533,7 @@ const vercel = new VercelCore({
|
|
|
533
533
|
async function run() {
|
|
534
534
|
const res = await teamsUpdateTeamMember(vercel, {
|
|
535
535
|
uid: "ndfasllgPyCtREAqxxdyFKb",
|
|
536
|
-
teamId: "
|
|
536
|
+
teamId: "team_1a2b3c4d5e6f7g8h9i0j1k2l",
|
|
537
537
|
requestBody: {
|
|
538
538
|
confirmed: true,
|
|
539
539
|
role: "[\"MEMBER\",\"VIEWER\"]",
|
|
@@ -598,7 +598,7 @@ async function run() {
|
|
|
598
598
|
const result = await vercel.teams.removeTeamMember({
|
|
599
599
|
uid: "ndlgr43fadlPyCtREAqxxdyFK",
|
|
600
600
|
newDefaultTeamId: "team_nllPyCtREAqxxdyFKbbMDlxd",
|
|
601
|
-
teamId: "
|
|
601
|
+
teamId: "team_1a2b3c4d5e6f7g8h9i0j1k2l",
|
|
602
602
|
});
|
|
603
603
|
|
|
604
604
|
// Handle the result
|
|
@@ -626,7 +626,7 @@ async function run() {
|
|
|
626
626
|
const res = await teamsRemoveTeamMember(vercel, {
|
|
627
627
|
uid: "ndlgr43fadlPyCtREAqxxdyFK",
|
|
628
628
|
newDefaultTeamId: "team_nllPyCtREAqxxdyFKbbMDlxd",
|
|
629
|
-
teamId: "
|
|
629
|
+
teamId: "team_1a2b3c4d5e6f7g8h9i0j1k2l",
|
|
630
630
|
});
|
|
631
631
|
|
|
632
632
|
if (!res.ok) {
|
|
@@ -679,7 +679,8 @@ const vercel = new Vercel({
|
|
|
679
679
|
|
|
680
680
|
async function run() {
|
|
681
681
|
const result = await vercel.teams.getTeam({
|
|
682
|
-
teamId: "
|
|
682
|
+
teamId: "team_1a2b3c4d5e6f7g8h9i0j1k2l",
|
|
683
|
+
slug: "my-team-url-slug",
|
|
683
684
|
});
|
|
684
685
|
|
|
685
686
|
// Handle the result
|
|
@@ -705,7 +706,8 @@ const vercel = new VercelCore({
|
|
|
705
706
|
|
|
706
707
|
async function run() {
|
|
707
708
|
const res = await teamsGetTeam(vercel, {
|
|
708
|
-
teamId: "
|
|
709
|
+
teamId: "team_1a2b3c4d5e6f7g8h9i0j1k2l",
|
|
710
|
+
slug: "my-team-url-slug",
|
|
709
711
|
});
|
|
710
712
|
|
|
711
713
|
if (!res.ok) {
|
|
@@ -758,7 +760,8 @@ const vercel = new Vercel({
|
|
|
758
760
|
|
|
759
761
|
async function run() {
|
|
760
762
|
const result = await vercel.teams.patchTeam({
|
|
761
|
-
teamId: "
|
|
763
|
+
teamId: "team_1a2b3c4d5e6f7g8h9i0j1k2l",
|
|
764
|
+
slug: "my-team-url-slug",
|
|
762
765
|
requestBody: {
|
|
763
766
|
description: "Our mission is to make cloud computing accessible to everyone",
|
|
764
767
|
emailDomain: "example.com",
|
|
@@ -803,7 +806,8 @@ const vercel = new VercelCore({
|
|
|
803
806
|
|
|
804
807
|
async function run() {
|
|
805
808
|
const res = await teamsPatchTeam(vercel, {
|
|
806
|
-
teamId: "
|
|
809
|
+
teamId: "team_1a2b3c4d5e6f7g8h9i0j1k2l",
|
|
810
|
+
slug: "my-team-url-slug",
|
|
807
811
|
requestBody: {
|
|
808
812
|
description: "Our mission is to make cloud computing accessible to everyone",
|
|
809
813
|
emailDomain: "example.com",
|
|
@@ -1038,7 +1042,8 @@ const vercel = new Vercel({
|
|
|
1038
1042
|
async function run() {
|
|
1039
1043
|
const result = await vercel.teams.deleteTeam({
|
|
1040
1044
|
newDefaultTeamId: "team_LLHUOMOoDlqOp8wPE4kFo9pE",
|
|
1041
|
-
teamId: "
|
|
1045
|
+
teamId: "team_1a2b3c4d5e6f7g8h9i0j1k2l",
|
|
1046
|
+
slug: "my-team-url-slug",
|
|
1042
1047
|
requestBody: {},
|
|
1043
1048
|
});
|
|
1044
1049
|
|
|
@@ -1066,7 +1071,8 @@ const vercel = new VercelCore({
|
|
|
1066
1071
|
async function run() {
|
|
1067
1072
|
const res = await teamsDeleteTeam(vercel, {
|
|
1068
1073
|
newDefaultTeamId: "team_LLHUOMOoDlqOp8wPE4kFo9pE",
|
|
1069
|
-
teamId: "
|
|
1074
|
+
teamId: "team_1a2b3c4d5e6f7g8h9i0j1k2l",
|
|
1075
|
+
slug: "my-team-url-slug",
|
|
1070
1076
|
requestBody: {},
|
|
1071
1077
|
});
|
|
1072
1078
|
|
|
@@ -1121,7 +1127,7 @@ const vercel = new Vercel({
|
|
|
1121
1127
|
async function run() {
|
|
1122
1128
|
const result = await vercel.teams.deleteTeamInviteCode({
|
|
1123
1129
|
inviteId: "2wn2hudbr4chb1ecywo9dvzo7g9sscs6mzcz8htdde0txyom4l",
|
|
1124
|
-
teamId: "
|
|
1130
|
+
teamId: "team_1a2b3c4d5e6f7g8h9i0j1k2l",
|
|
1125
1131
|
});
|
|
1126
1132
|
|
|
1127
1133
|
// Handle the result
|
|
@@ -1148,7 +1154,7 @@ const vercel = new VercelCore({
|
|
|
1148
1154
|
async function run() {
|
|
1149
1155
|
const res = await teamsDeleteTeamInviteCode(vercel, {
|
|
1150
1156
|
inviteId: "2wn2hudbr4chb1ecywo9dvzo7g9sscs6mzcz8htdde0txyom4l",
|
|
1151
|
-
teamId: "
|
|
1157
|
+
teamId: "team_1a2b3c4d5e6f7g8h9i0j1k2l",
|
|
1152
1158
|
});
|
|
1153
1159
|
|
|
1154
1160
|
if (!res.ok) {
|
package/docs/sdks/user/README.md
CHANGED
|
@@ -30,6 +30,8 @@ async function run() {
|
|
|
30
30
|
types: "login,team-member-join,domain-buy",
|
|
31
31
|
userId: "aeIInYVk59zbFF2SxfyxxmuO",
|
|
32
32
|
withPayload: "true",
|
|
33
|
+
teamId: "team_1a2b3c4d5e6f7g8h9i0j1k2l",
|
|
34
|
+
slug: "my-team-url-slug",
|
|
33
35
|
});
|
|
34
36
|
|
|
35
37
|
// Handle the result
|
|
@@ -61,6 +63,8 @@ async function run() {
|
|
|
61
63
|
types: "login,team-member-join,domain-buy",
|
|
62
64
|
userId: "aeIInYVk59zbFF2SxfyxxmuO",
|
|
63
65
|
withPayload: "true",
|
|
66
|
+
teamId: "team_1a2b3c4d5e6f7g8h9i0j1k2l",
|
|
67
|
+
slug: "my-team-url-slug",
|
|
64
68
|
});
|
|
65
69
|
|
|
66
70
|
if (!res.ok) {
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
## Overview
|
|
4
4
|
|
|
5
|
-
Vercel
|
|
5
|
+
Vercel SDK: The [`@vercel/sdk`](https://www.npmjs.com/package/@vercel/sdk) is a type-safe Typescript SDK that allows you to access the resources and methods of the Vercel REST API. Learn how to [install it](https://vercel.com/docs/rest-api/sdk#installing-vercel-sdk) and [authenticate](https://vercel.com/docs/rest-api/sdk#authentication) with a Vercel access token.
|
|
6
6
|
|
|
7
7
|
### Available Operations
|
|
@@ -25,6 +25,8 @@ const vercel = new Vercel({
|
|
|
25
25
|
|
|
26
26
|
async function run() {
|
|
27
27
|
const result = await vercel.webhooks.createWebhook({
|
|
28
|
+
teamId: "team_1a2b3c4d5e6f7g8h9i0j1k2l",
|
|
29
|
+
slug: "my-team-url-slug",
|
|
28
30
|
requestBody: {
|
|
29
31
|
url: "https://woeful-yin.biz",
|
|
30
32
|
events: [
|
|
@@ -56,6 +58,8 @@ const vercel = new VercelCore({
|
|
|
56
58
|
|
|
57
59
|
async function run() {
|
|
58
60
|
const res = await webhooksCreateWebhook(vercel, {
|
|
61
|
+
teamId: "team_1a2b3c4d5e6f7g8h9i0j1k2l",
|
|
62
|
+
slug: "my-team-url-slug",
|
|
59
63
|
requestBody: {
|
|
60
64
|
url: "https://woeful-yin.biz",
|
|
61
65
|
events: [
|
|
@@ -112,7 +116,10 @@ const vercel = new Vercel({
|
|
|
112
116
|
});
|
|
113
117
|
|
|
114
118
|
async function run() {
|
|
115
|
-
const result = await vercel.webhooks.getWebhooks({
|
|
119
|
+
const result = await vercel.webhooks.getWebhooks({
|
|
120
|
+
teamId: "team_1a2b3c4d5e6f7g8h9i0j1k2l",
|
|
121
|
+
slug: "my-team-url-slug",
|
|
122
|
+
});
|
|
116
123
|
|
|
117
124
|
// Handle the result
|
|
118
125
|
console.log(result);
|
|
@@ -136,7 +143,10 @@ const vercel = new VercelCore({
|
|
|
136
143
|
});
|
|
137
144
|
|
|
138
145
|
async function run() {
|
|
139
|
-
const res = await webhooksGetWebhooks(vercel, {
|
|
146
|
+
const res = await webhooksGetWebhooks(vercel, {
|
|
147
|
+
teamId: "team_1a2b3c4d5e6f7g8h9i0j1k2l",
|
|
148
|
+
slug: "my-team-url-slug",
|
|
149
|
+
});
|
|
140
150
|
|
|
141
151
|
if (!res.ok) {
|
|
142
152
|
throw res.error;
|
|
@@ -188,6 +198,8 @@ const vercel = new Vercel({
|
|
|
188
198
|
async function run() {
|
|
189
199
|
const result = await vercel.webhooks.getWebhook({
|
|
190
200
|
id: "<id>",
|
|
201
|
+
teamId: "team_1a2b3c4d5e6f7g8h9i0j1k2l",
|
|
202
|
+
slug: "my-team-url-slug",
|
|
191
203
|
});
|
|
192
204
|
|
|
193
205
|
// Handle the result
|
|
@@ -214,6 +226,8 @@ const vercel = new VercelCore({
|
|
|
214
226
|
async function run() {
|
|
215
227
|
const res = await webhooksGetWebhook(vercel, {
|
|
216
228
|
id: "<id>",
|
|
229
|
+
teamId: "team_1a2b3c4d5e6f7g8h9i0j1k2l",
|
|
230
|
+
slug: "my-team-url-slug",
|
|
217
231
|
});
|
|
218
232
|
|
|
219
233
|
if (!res.ok) {
|
|
@@ -266,6 +280,8 @@ const vercel = new Vercel({
|
|
|
266
280
|
async function run() {
|
|
267
281
|
await vercel.webhooks.deleteWebhook({
|
|
268
282
|
id: "<id>",
|
|
283
|
+
teamId: "team_1a2b3c4d5e6f7g8h9i0j1k2l",
|
|
284
|
+
slug: "my-team-url-slug",
|
|
269
285
|
});
|
|
270
286
|
|
|
271
287
|
|
|
@@ -291,6 +307,8 @@ const vercel = new VercelCore({
|
|
|
291
307
|
async function run() {
|
|
292
308
|
const res = await webhooksDeleteWebhook(vercel, {
|
|
293
309
|
id: "<id>",
|
|
310
|
+
teamId: "team_1a2b3c4d5e6f7g8h9i0j1k2l",
|
|
311
|
+
slug: "my-team-url-slug",
|
|
294
312
|
});
|
|
295
313
|
|
|
296
314
|
if (!res.ok) {
|