@vercel/sdk 1.7.4 → 1.7.5

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.
Files changed (164) hide show
  1. package/README.md +6 -6
  2. package/bin/mcp-server.js +559 -272
  3. package/bin/mcp-server.js.map +35 -35
  4. package/docs/sdks/accessgroups/README.md +16 -0
  5. package/docs/sdks/artifacts/README.md +6 -6
  6. package/docs/sdks/authentication/README.md +1 -1
  7. package/docs/sdks/deployments/README.md +8 -14
  8. package/docs/sdks/dns/README.md +12 -26
  9. package/docs/sdks/domains/README.md +2 -2
  10. package/docs/sdks/edgeconfig/README.md +10 -2
  11. package/docs/sdks/marketplace/README.md +77 -97
  12. package/docs/sdks/security/README.md +4 -10
  13. package/docs/sdks/teams/README.md +8 -0
  14. package/docs/sdks/vercel/README.md +2 -2
  15. package/docs/sdks/webhooks/README.md +12 -4
  16. package/esm/__tests__/deployments.test.js +1 -2
  17. package/esm/__tests__/deployments.test.js.map +1 -1
  18. package/esm/__tests__/projects.test.js +13 -15
  19. package/esm/__tests__/projects.test.js.map +1 -1
  20. package/esm/funcs/authenticationExchangeSsoToken.d.ts +1 -1
  21. package/esm/funcs/authenticationExchangeSsoToken.js +1 -1
  22. package/esm/funcs/certsGetCertById.js +1 -1
  23. package/esm/funcs/certsIssueCert.js +1 -1
  24. package/esm/funcs/certsRemoveCert.js +1 -1
  25. package/esm/funcs/certsUploadCert.js +1 -1
  26. package/esm/funcs/deploymentsGetDeploymentFileContents.d.ts +2 -2
  27. package/esm/funcs/deploymentsGetDeploymentFileContents.d.ts.map +1 -1
  28. package/esm/funcs/deploymentsGetDeploymentFileContents.js +4 -3
  29. package/esm/funcs/deploymentsGetDeploymentFileContents.js.map +1 -1
  30. package/esm/funcs/marketplaceExchangeSsoToken.d.ts +1 -1
  31. package/esm/funcs/marketplaceExchangeSsoToken.js +1 -1
  32. package/esm/funcs/projectsRemoveProjectDomain.js +3 -2
  33. package/esm/funcs/projectsRemoveProjectDomain.js.map +1 -1
  34. package/esm/funcs/projectsRequestPromote.js +0 -1
  35. package/esm/funcs/projectsRequestPromote.js.map +1 -1
  36. package/esm/lib/config.d.ts +3 -3
  37. package/esm/lib/config.js +3 -3
  38. package/esm/mcp-server/cli/start/impl.js +2 -2
  39. package/esm/mcp-server/cli/start/impl.js.map +1 -1
  40. package/esm/mcp-server/mcp-server.js +1 -1
  41. package/esm/mcp-server/server.js +1 -1
  42. package/esm/mcp-server/tools/authenticationExchangeSsoToken.js +1 -1
  43. package/esm/mcp-server/tools/authenticationExchangeSsoToken.js.map +1 -1
  44. package/esm/mcp-server/tools/deploymentsGetDeploymentFileContents.d.ts.map +1 -1
  45. package/esm/mcp-server/tools/deploymentsGetDeploymentFileContents.js +1 -2
  46. package/esm/mcp-server/tools/deploymentsGetDeploymentFileContents.js.map +1 -1
  47. package/esm/mcp-server/tools/marketplaceExchangeSsoToken.js +1 -1
  48. package/esm/mcp-server/tools/marketplaceExchangeSsoToken.js.map +1 -1
  49. package/esm/models/canceldeploymentop.d.ts +10 -0
  50. package/esm/models/canceldeploymentop.d.ts.map +1 -1
  51. package/esm/models/canceldeploymentop.js +4 -0
  52. package/esm/models/canceldeploymentop.js.map +1 -1
  53. package/esm/models/createdeploymentop.d.ts +38 -28
  54. package/esm/models/createdeploymentop.d.ts.map +1 -1
  55. package/esm/models/createdeploymentop.js +16 -12
  56. package/esm/models/createdeploymentop.js.map +1 -1
  57. package/esm/models/createprojectop.d.ts +114 -2
  58. package/esm/models/createprojectop.d.ts.map +1 -1
  59. package/esm/models/createprojectop.js +108 -2
  60. package/esm/models/createprojectop.js.map +1 -1
  61. package/esm/models/getdeploymentfilecontentsop.d.ts +0 -31
  62. package/esm/models/getdeploymentfilecontentsop.d.ts.map +1 -1
  63. package/esm/models/getdeploymentfilecontentsop.js +0 -25
  64. package/esm/models/getdeploymentfilecontentsop.js.map +1 -1
  65. package/esm/models/getdeploymentop.d.ts +10 -0
  66. package/esm/models/getdeploymentop.d.ts.map +1 -1
  67. package/esm/models/getdeploymentop.js +4 -0
  68. package/esm/models/getdeploymentop.js.map +1 -1
  69. package/esm/models/getprojectsop.d.ts +114 -2
  70. package/esm/models/getprojectsop.d.ts.map +1 -1
  71. package/esm/models/getprojectsop.js +108 -2
  72. package/esm/models/getprojectsop.js.map +1 -1
  73. package/esm/models/importresourceop.d.ts +9 -0
  74. package/esm/models/importresourceop.d.ts.map +1 -1
  75. package/esm/models/importresourceop.js +2 -0
  76. package/esm/models/importresourceop.js.map +1 -1
  77. package/esm/models/issuecertop.d.ts +2 -2
  78. package/esm/models/issuecertop.d.ts.map +1 -1
  79. package/esm/models/issuecertop.js +2 -2
  80. package/esm/models/issuecertop.js.map +1 -1
  81. package/esm/models/removeprojectdomainop.d.ts +30 -0
  82. package/esm/models/removeprojectdomainop.d.ts.map +1 -1
  83. package/esm/models/removeprojectdomainop.js +38 -0
  84. package/esm/models/removeprojectdomainop.js.map +1 -1
  85. package/esm/models/requestpromoteop.d.ts +0 -5
  86. package/esm/models/requestpromoteop.d.ts.map +1 -1
  87. package/esm/models/requestpromoteop.js +0 -2
  88. package/esm/models/requestpromoteop.js.map +1 -1
  89. package/esm/models/teamlimited.d.ts +13 -13
  90. package/esm/models/teamlimited.d.ts.map +1 -1
  91. package/esm/models/teamlimited.js +6 -6
  92. package/esm/models/teamlimited.js.map +1 -1
  93. package/esm/models/updateprojectdatacacheop.d.ts +114 -2
  94. package/esm/models/updateprojectdatacacheop.d.ts.map +1 -1
  95. package/esm/models/updateprojectdatacacheop.js +108 -2
  96. package/esm/models/updateprojectdatacacheop.js.map +1 -1
  97. package/esm/models/updateprojectop.d.ts +114 -2
  98. package/esm/models/updateprojectop.d.ts.map +1 -1
  99. package/esm/models/updateprojectop.js +108 -2
  100. package/esm/models/updateprojectop.js.map +1 -1
  101. package/esm/models/updateresourcesecretsbyidop.d.ts +9 -0
  102. package/esm/models/updateresourcesecretsbyidop.d.ts.map +1 -1
  103. package/esm/models/updateresourcesecretsbyidop.js +2 -0
  104. package/esm/models/updateresourcesecretsbyidop.js.map +1 -1
  105. package/esm/models/updateresourcesecretsop.d.ts +9 -0
  106. package/esm/models/updateresourcesecretsop.d.ts.map +1 -1
  107. package/esm/models/updateresourcesecretsop.js +2 -0
  108. package/esm/models/updateresourcesecretsop.js.map +1 -1
  109. package/esm/models/uploadcertop.d.ts +2 -2
  110. package/esm/models/uploadcertop.d.ts.map +1 -1
  111. package/esm/models/uploadcertop.js +2 -2
  112. package/esm/models/uploadcertop.js.map +1 -1
  113. package/esm/models/userevent.d.ts +368 -257
  114. package/esm/models/userevent.d.ts.map +1 -1
  115. package/esm/models/userevent.js +423 -315
  116. package/esm/models/userevent.js.map +1 -1
  117. package/esm/sdk/authentication.d.ts +1 -1
  118. package/esm/sdk/authentication.js +1 -1
  119. package/esm/sdk/deployments.d.ts +2 -2
  120. package/esm/sdk/deployments.d.ts.map +1 -1
  121. package/esm/sdk/deployments.js.map +1 -1
  122. package/esm/sdk/marketplace.d.ts +1 -1
  123. package/esm/sdk/marketplace.js +1 -1
  124. package/jsr.json +1 -1
  125. package/package.json +1 -1
  126. package/src/__tests__/deployments.test.ts +1 -2
  127. package/src/__tests__/projects.test.ts +13 -15
  128. package/src/funcs/authenticationExchangeSsoToken.ts +1 -1
  129. package/src/funcs/certsGetCertById.ts +1 -1
  130. package/src/funcs/certsIssueCert.ts +1 -1
  131. package/src/funcs/certsRemoveCert.ts +1 -1
  132. package/src/funcs/certsUploadCert.ts +1 -1
  133. package/src/funcs/deploymentsGetDeploymentFileContents.ts +6 -7
  134. package/src/funcs/marketplaceExchangeSsoToken.ts +1 -1
  135. package/src/funcs/projectsRemoveProjectDomain.ts +3 -2
  136. package/src/funcs/projectsRequestPromote.ts +0 -1
  137. package/src/lib/config.ts +3 -3
  138. package/src/mcp-server/cli/start/impl.ts +2 -2
  139. package/src/mcp-server/mcp-server.ts +1 -1
  140. package/src/mcp-server/server.ts +1 -1
  141. package/src/mcp-server/tools/authenticationExchangeSsoToken.ts +1 -1
  142. package/src/mcp-server/tools/deploymentsGetDeploymentFileContents.ts +1 -3
  143. package/src/mcp-server/tools/marketplaceExchangeSsoToken.ts +1 -1
  144. package/src/models/canceldeploymentop.ts +14 -0
  145. package/src/models/createdeploymentop.ts +30 -16
  146. package/src/models/createprojectop.ts +243 -4
  147. package/src/models/getdeploymentfilecontentsop.ts +0 -69
  148. package/src/models/getdeploymentop.ts +14 -0
  149. package/src/models/getprojectsop.ts +237 -4
  150. package/src/models/importresourceop.ts +7 -0
  151. package/src/models/issuecertop.ts +4 -4
  152. package/src/models/removeprojectdomainop.ts +78 -0
  153. package/src/models/requestpromoteop.ts +0 -7
  154. package/src/models/teamlimited.ts +13 -13
  155. package/src/models/updateprojectdatacacheop.ts +260 -4
  156. package/src/models/updateprojectop.ts +243 -4
  157. package/src/models/updateresourcesecretsbyidop.ts +7 -0
  158. package/src/models/updateresourcesecretsop.ts +7 -0
  159. package/src/models/uploadcertop.ts +4 -4
  160. package/src/models/userevent.ts +798 -582
  161. package/src/sdk/authentication.ts +1 -1
  162. package/src/sdk/deployments.ts +2 -5
  163. package/src/sdk/marketplace.ts +1 -1
  164. package/vercel-spec.json +497 -94
@@ -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. This is used to verify the identity of the user during the [**Open in Provider** flow](https://vercel.com/docs/integrations/marketplace-flows#open-in-provider-button-flow). Providers should not persist the returned `id_token` in a database since the token will expire.
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,
@@ -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<GetDeploymentFileContentsResponseBody> {
186
+ ): Promise<void> {
190
187
  return unwrapAsync(deploymentsGetDeploymentFileContents(
191
188
  this,
192
189
  request,
@@ -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. This is used to verify the identity of the user during the [**Open in Provider** flow](https://vercel.com/docs/integrations/marketplace-flows#open-in-provider-button-flow). Providers should not persist the returned `id_token` in a database since the token will expire.
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,