@vercel/sdk 1.11.2 → 1.11.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (169) hide show
  1. package/README.md +45 -52
  2. package/bin/mcp-server.js +926 -870
  3. package/bin/mcp-server.js.map +29 -29
  4. package/docs/sdks/integrations/README.md +83 -0
  5. package/docs/sdks/vercel/README.md +0 -74
  6. package/esm/__tests__/checks.test.js +1 -1
  7. package/esm/__tests__/checks.test.js.map +1 -1
  8. package/esm/__tests__/domains.test.js +3 -12
  9. package/esm/__tests__/domains.test.js.map +1 -1
  10. package/esm/__tests__/integrations.test.js +28 -1
  11. package/esm/__tests__/integrations.test.js.map +1 -1
  12. package/esm/__tests__/rollingrelease.test.js +2 -6
  13. package/esm/__tests__/rollingrelease.test.js.map +1 -1
  14. package/esm/__tests__/security.test.js +1 -11
  15. package/esm/__tests__/security.test.js.map +1 -1
  16. package/esm/__tests__/vercel.test.js +3 -27
  17. package/esm/__tests__/vercel.test.js.map +1 -1
  18. package/esm/funcs/integrationsGetBillingPlans.d.ts +20 -0
  19. package/esm/funcs/integrationsGetBillingPlans.d.ts.map +1 -0
  20. package/esm/funcs/{getV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlans.js → integrationsGetBillingPlans.js} +21 -9
  21. package/esm/funcs/integrationsGetBillingPlans.js.map +1 -0
  22. package/esm/lib/config.d.ts +2 -2
  23. package/esm/lib/config.js +2 -2
  24. package/esm/mcp-server/mcp-server.js +1 -1
  25. package/esm/mcp-server/server.d.ts.map +1 -1
  26. package/esm/mcp-server/server.js +3 -3
  27. package/esm/mcp-server/server.js.map +1 -1
  28. package/esm/mcp-server/tools/integrationsGetBillingPlans.d.ts +7 -0
  29. package/esm/mcp-server/tools/integrationsGetBillingPlans.d.ts.map +1 -0
  30. package/esm/mcp-server/tools/integrationsGetBillingPlans.js +28 -0
  31. package/esm/mcp-server/tools/integrationsGetBillingPlans.js.map +1 -0
  32. package/esm/models/approverollingreleasestageop.d.ts +15 -0
  33. package/esm/models/approverollingreleasestageop.d.ts.map +1 -1
  34. package/esm/models/approverollingreleasestageop.js +6 -0
  35. package/esm/models/approverollingreleasestageop.js.map +1 -1
  36. package/esm/models/canceldeploymentop.d.ts +3 -0
  37. package/esm/models/canceldeploymentop.d.ts.map +1 -1
  38. package/esm/models/canceldeploymentop.js +1 -0
  39. package/esm/models/canceldeploymentop.js.map +1 -1
  40. package/esm/models/completerollingreleaseop.d.ts +15 -0
  41. package/esm/models/completerollingreleaseop.d.ts.map +1 -1
  42. package/esm/models/completerollingreleaseop.js +6 -0
  43. package/esm/models/completerollingreleaseop.js.map +1 -1
  44. package/esm/models/createdeploymentop.d.ts +41 -35
  45. package/esm/models/createdeploymentop.d.ts.map +1 -1
  46. package/esm/models/createdeploymentop.js +15 -13
  47. package/esm/models/createdeploymentop.js.map +1 -1
  48. package/esm/models/createintegrationstoredirectop.d.ts +243 -240
  49. package/esm/models/createintegrationstoredirectop.d.ts.map +1 -1
  50. package/esm/models/createintegrationstoredirectop.js +295 -294
  51. package/esm/models/createintegrationstoredirectop.js.map +1 -1
  52. package/esm/models/createprojectenvop.d.ts +6 -6
  53. package/esm/models/createprojectenvop.js +2 -2
  54. package/esm/models/createprojectenvop.js.map +1 -1
  55. package/esm/models/createprojectop.d.ts +11 -0
  56. package/esm/models/createprojectop.d.ts.map +1 -1
  57. package/esm/models/createprojectop.js +4 -0
  58. package/esm/models/createprojectop.js.map +1 -1
  59. package/esm/models/editprojectenvop.d.ts +3 -3
  60. package/esm/models/editprojectenvop.js +1 -1
  61. package/esm/models/editprojectenvop.js.map +1 -1
  62. package/esm/models/getbillingplansop.d.ts +257 -0
  63. package/esm/models/getbillingplansop.d.ts.map +1 -0
  64. package/esm/models/getbillingplansop.js +244 -0
  65. package/esm/models/getbillingplansop.js.map +1 -0
  66. package/esm/models/getconfigurationproductsop.d.ts +330 -330
  67. package/esm/models/getconfigurationproductsop.js +408 -408
  68. package/esm/models/getdeploymentop.d.ts +3 -0
  69. package/esm/models/getdeploymentop.d.ts.map +1 -1
  70. package/esm/models/getdeploymentop.js +1 -0
  71. package/esm/models/getdeploymentop.js.map +1 -1
  72. package/esm/models/getdeploymentsop.d.ts +3 -0
  73. package/esm/models/getdeploymentsop.d.ts.map +1 -1
  74. package/esm/models/getdeploymentsop.js +1 -0
  75. package/esm/models/getdeploymentsop.js.map +1 -1
  76. package/esm/models/getprojectsop.d.ts +8 -0
  77. package/esm/models/getprojectsop.d.ts.map +1 -1
  78. package/esm/models/getprojectsop.js +3 -0
  79. package/esm/models/getprojectsop.js.map +1 -1
  80. package/esm/models/getrollingreleaseconfigop.d.ts +5 -0
  81. package/esm/models/getrollingreleaseconfigop.d.ts.map +1 -1
  82. package/esm/models/getrollingreleaseconfigop.js +2 -0
  83. package/esm/models/getrollingreleaseconfigop.js.map +1 -1
  84. package/esm/models/getrollingreleaseop.d.ts +15 -0
  85. package/esm/models/getrollingreleaseop.d.ts.map +1 -1
  86. package/esm/models/getrollingreleaseop.js +6 -0
  87. package/esm/models/getrollingreleaseop.js.map +1 -1
  88. package/esm/models/getwebhooksop.d.ts +3 -0
  89. package/esm/models/getwebhooksop.d.ts.map +1 -1
  90. package/esm/models/getwebhooksop.js +1 -0
  91. package/esm/models/getwebhooksop.js.map +1 -1
  92. package/esm/models/importresourceop.d.ts +15 -15
  93. package/esm/models/importresourceop.d.ts.map +1 -1
  94. package/esm/models/importresourceop.js +17 -15
  95. package/esm/models/importresourceop.js.map +1 -1
  96. package/esm/models/removeprojectenvop.d.ts +9 -9
  97. package/esm/models/removeprojectenvop.js +3 -3
  98. package/esm/models/removeprojectenvop.js.map +1 -1
  99. package/esm/models/updateprojectdatacacheop.d.ts +8 -0
  100. package/esm/models/updateprojectdatacacheop.d.ts.map +1 -1
  101. package/esm/models/updateprojectdatacacheop.js +3 -0
  102. package/esm/models/updateprojectdatacacheop.js.map +1 -1
  103. package/esm/models/updateprojectop.d.ts +173 -162
  104. package/esm/models/updateprojectop.d.ts.map +1 -1
  105. package/esm/models/updateprojectop.js +158 -154
  106. package/esm/models/updateprojectop.js.map +1 -1
  107. package/esm/models/updaterollingreleaseconfigop.d.ts +5 -0
  108. package/esm/models/updaterollingreleaseconfigop.d.ts.map +1 -1
  109. package/esm/models/updaterollingreleaseconfigop.js +2 -0
  110. package/esm/models/updaterollingreleaseconfigop.js.map +1 -1
  111. package/esm/sdk/integrations.d.ts +8 -0
  112. package/esm/sdk/integrations.d.ts.map +1 -1
  113. package/esm/sdk/integrations.js +10 -0
  114. package/esm/sdk/integrations.js.map +1 -1
  115. package/esm/sdk/sdk.d.ts +1 -3
  116. package/esm/sdk/sdk.d.ts.map +1 -1
  117. package/esm/sdk/sdk.js +0 -5
  118. package/esm/sdk/sdk.js.map +1 -1
  119. package/examples/package-lock.json +1 -1
  120. package/jsr.json +1 -1
  121. package/package.json +1 -1
  122. package/src/__tests__/checks.test.ts +1 -1
  123. package/src/__tests__/domains.test.ts +3 -12
  124. package/src/__tests__/integrations.test.ts +32 -1
  125. package/src/__tests__/rollingrelease.test.ts +2 -6
  126. package/src/__tests__/security.test.ts +1 -11
  127. package/src/__tests__/vercel.test.ts +4 -33
  128. package/src/funcs/{getV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlans.ts → integrationsGetBillingPlans.ts} +30 -24
  129. package/src/lib/config.ts +2 -2
  130. package/src/mcp-server/mcp-server.ts +1 -1
  131. package/src/mcp-server/server.ts +3 -5
  132. package/src/mcp-server/tools/integrationsGetBillingPlans.ts +37 -0
  133. package/src/models/approverollingreleasestageop.ts +21 -0
  134. package/src/models/canceldeploymentop.ts +1 -0
  135. package/src/models/completerollingreleaseop.ts +21 -0
  136. package/src/models/createdeploymentop.ts +17 -15
  137. package/src/models/createintegrationstoredirectop.ts +506 -505
  138. package/src/models/createprojectenvop.ts +2 -2
  139. package/src/models/createprojectop.ts +9 -0
  140. package/src/models/editprojectenvop.ts +1 -1
  141. package/src/models/getbillingplansop.ts +508 -0
  142. package/src/models/getconfigurationproductsop.ts +703 -703
  143. package/src/models/getdeploymentop.ts +1 -0
  144. package/src/models/getdeploymentsop.ts +1 -0
  145. package/src/models/getprojectsop.ts +8 -0
  146. package/src/models/getrollingreleaseconfigop.ts +7 -0
  147. package/src/models/getrollingreleaseop.ts +21 -0
  148. package/src/models/getwebhooksop.ts +1 -0
  149. package/src/models/importresourceop.ts +27 -29
  150. package/src/models/removeprojectenvop.ts +3 -3
  151. package/src/models/updateprojectdatacacheop.ts +8 -0
  152. package/src/models/updateprojectop.ts +347 -338
  153. package/src/models/updaterollingreleaseconfigop.ts +7 -0
  154. package/src/sdk/integrations.ts +22 -0
  155. package/src/sdk/sdk.ts +1 -23
  156. package/vercel-spec.json +715 -594
  157. package/esm/funcs/getV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlans.d.ts +0 -14
  158. package/esm/funcs/getV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlans.d.ts.map +0 -1
  159. package/esm/funcs/getV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlans.js.map +0 -1
  160. package/esm/mcp-server/tools/getV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlans.d.ts +0 -7
  161. package/esm/mcp-server/tools/getV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlans.d.ts.map +0 -1
  162. package/esm/mcp-server/tools/getV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlans.js +0 -26
  163. package/esm/mcp-server/tools/getV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlans.js.map +0 -1
  164. package/esm/models/getv1integrationsintegrationintegrationidorslugproductsproductidorslugplansop.d.ts +0 -247
  165. package/esm/models/getv1integrationsintegrationintegrationidorslugproductsproductidorslugplansop.d.ts.map +0 -1
  166. package/esm/models/getv1integrationsintegrationintegrationidorslugproductsproductidorslugplansop.js +0 -246
  167. package/esm/models/getv1integrationsintegrationintegrationidorslugproductsproductidorslugplansop.js.map +0 -1
  168. package/src/mcp-server/tools/getV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlans.ts +0 -41
  169. package/src/models/getv1integrationsintegrationintegrationidorslugproductsproductidorslugplansop.ts +0 -575
package/README.md CHANGED
@@ -198,13 +198,11 @@ const vercel = new Vercel({
198
198
  });
199
199
 
200
200
  async function run() {
201
- const result = await vercel
202
- .getV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlans(
203
- {
204
- integrationIdOrSlug: "<value>",
205
- productIdOrSlug: "<value>",
206
- },
207
- );
201
+ const result = await vercel.accessGroups.readAccessGroup({
202
+ idOrName: "ag_1a2b3c4d5e6f7g8h9i0j",
203
+ teamId: "team_1a2b3c4d5e6f7g8h9i0j1k2l",
204
+ slug: "my-team-url-slug",
205
+ });
208
206
 
209
207
  console.log(result);
210
208
  }
@@ -405,6 +403,7 @@ run();
405
403
  ### [integrations](docs/sdks/integrations/README.md)
406
404
 
407
405
  * [updateIntegrationDeploymentAction](docs/sdks/integrations/README.md#updateintegrationdeploymentaction) - Update deployment integration action
406
+ * [getBillingPlans](docs/sdks/integrations/README.md#getbillingplans) - List integration billing plans
408
407
  * [connectIntegrationResourceToProject](docs/sdks/integrations/README.md#connectintegrationresourcetoproject) - Connect integration resource to project
409
408
  * [getConfigurations](docs/sdks/integrations/README.md#getconfigurations) - Get configurations for the authenticated user or team
410
409
  * [getConfiguration](docs/sdks/integrations/README.md#getconfiguration) - Retrieve an integration configuration
@@ -521,9 +520,6 @@ run();
521
520
  * [getAuthUser](docs/sdks/user/README.md#getauthuser) - Get the User
522
521
  * [requestDelete](docs/sdks/user/README.md#requestdelete) - Delete User Account
523
522
 
524
- ### [Vercel SDK](docs/sdks/vercel/README.md)
525
-
526
- * [getV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlans](docs/sdks/vercel/README.md#getv1integrationsintegrationintegrationidorslugproductsproductidorslugplans)
527
523
 
528
524
  ### [webhooks](docs/sdks/webhooks/README.md)
529
525
 
@@ -633,10 +629,10 @@ To read more about standalone functions, check [FUNCTIONS.md](./FUNCTIONS.md).
633
629
  - [`environmentGetV9ProjectsIdOrNameCustomEnvironments`](docs/sdks/environment/README.md#getv9projectsidornamecustomenvironments) - Retrieve custom environments
634
630
  - [`environmentRemoveCustomEnvironment`](docs/sdks/environment/README.md#removecustomenvironment) - Remove a custom environment
635
631
  - [`environmentUpdateCustomEnvironment`](docs/sdks/environment/README.md#updatecustomenvironment) - Update a custom environment
636
- - [`getV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlans`](docs/sdks/vercel/README.md#getv1integrationsintegrationintegrationidorslugproductsproductidorslugplans)
637
632
  - [`integrationsConnectIntegrationResourceToProject`](docs/sdks/integrations/README.md#connectintegrationresourcetoproject) - Connect integration resource to project
638
633
  - [`integrationsCreateIntegrationStoreDirect`](docs/sdks/integrations/README.md#createintegrationstoredirect) - Create integration store (free and paid plans)
639
634
  - [`integrationsDeleteConfiguration`](docs/sdks/integrations/README.md#deleteconfiguration) - Delete an integration configuration
635
+ - [`integrationsGetBillingPlans`](docs/sdks/integrations/README.md#getbillingplans) - List integration billing plans
640
636
  - [`integrationsGetConfiguration`](docs/sdks/integrations/README.md#getconfiguration) - Retrieve an integration configuration
641
637
  - [`integrationsGetConfigurationProducts`](docs/sdks/integrations/README.md#getconfigurationproducts) - List products for integration configuration
642
638
  - [`integrationsGetConfigurations`](docs/sdks/integrations/README.md#getconfigurations) - Get configurations for the authenticated user or team
@@ -783,28 +779,27 @@ To change the default retry strategy for a single API call, simply provide a ret
783
779
  ```typescript
784
780
  import { Vercel } from "@vercel/sdk";
785
781
 
786
- const vercel = new Vercel();
782
+ const vercel = new Vercel({
783
+ bearerToken: "<YOUR_BEARER_TOKEN_HERE>",
784
+ });
787
785
 
788
786
  async function run() {
789
- const result = await vercel
790
- .getV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlans(
791
- {
792
- integrationIdOrSlug: "<value>",
793
- productIdOrSlug: "<value>",
794
- },
795
- {
796
- retries: {
797
- strategy: "backoff",
798
- backoff: {
799
- initialInterval: 1,
800
- maxInterval: 50,
801
- exponent: 1.1,
802
- maxElapsedTime: 100,
803
- },
804
- retryConnectionErrors: false,
805
- },
787
+ const result = await vercel.accessGroups.readAccessGroup({
788
+ idOrName: "ag_1a2b3c4d5e6f7g8h9i0j",
789
+ teamId: "team_1a2b3c4d5e6f7g8h9i0j1k2l",
790
+ slug: "my-team-url-slug",
791
+ }, {
792
+ retries: {
793
+ strategy: "backoff",
794
+ backoff: {
795
+ initialInterval: 1,
796
+ maxInterval: 50,
797
+ exponent: 1.1,
798
+ maxElapsedTime: 100,
806
799
  },
807
- );
800
+ retryConnectionErrors: false,
801
+ },
802
+ });
808
803
 
809
804
  console.log(result);
810
805
  }
@@ -828,16 +823,15 @@ const vercel = new Vercel({
828
823
  },
829
824
  retryConnectionErrors: false,
830
825
  },
826
+ bearerToken: "<YOUR_BEARER_TOKEN_HERE>",
831
827
  });
832
828
 
833
829
  async function run() {
834
- const result = await vercel
835
- .getV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlans(
836
- {
837
- integrationIdOrSlug: "<value>",
838
- productIdOrSlug: "<value>",
839
- },
840
- );
830
+ const result = await vercel.accessGroups.readAccessGroup({
831
+ idOrName: "ag_1a2b3c4d5e6f7g8h9i0j",
832
+ teamId: "team_1a2b3c4d5e6f7g8h9i0j1k2l",
833
+ slug: "my-team-url-slug",
834
+ });
841
835
 
842
836
  console.log(result);
843
837
  }
@@ -867,17 +861,17 @@ import { Vercel } from "@vercel/sdk";
867
861
  import { VercelBadRequestError } from "@vercel/sdk/models/vercelbadrequesterror.js";
868
862
  import { VercelError } from "@vercel/sdk/models/vercelerror.js.js";
869
863
 
870
- const vercel = new Vercel();
864
+ const vercel = new Vercel({
865
+ bearerToken: "<YOUR_BEARER_TOKEN_HERE>",
866
+ });
871
867
 
872
868
  async function run() {
873
869
  try {
874
- const result = await vercel
875
- .getV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlans(
876
- {
877
- integrationIdOrSlug: "<value>",
878
- productIdOrSlug: "<value>",
879
- },
880
- );
870
+ const result = await vercel.accessGroups.readAccessGroup({
871
+ idOrName: "ag_1a2b3c4d5e6f7g8h9i0j",
872
+ teamId: "team_1a2b3c4d5e6f7g8h9i0j1k2l",
873
+ slug: "my-team-url-slug",
874
+ });
881
875
 
882
876
  console.log(result);
883
877
  } catch (error) {
@@ -939,16 +933,15 @@ import { Vercel } from "@vercel/sdk";
939
933
 
940
934
  const vercel = new Vercel({
941
935
  serverURL: "https://api.vercel.com",
936
+ bearerToken: "<YOUR_BEARER_TOKEN_HERE>",
942
937
  });
943
938
 
944
939
  async function run() {
945
- const result = await vercel
946
- .getV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlans(
947
- {
948
- integrationIdOrSlug: "<value>",
949
- productIdOrSlug: "<value>",
950
- },
951
- );
940
+ const result = await vercel.accessGroups.readAccessGroup({
941
+ idOrName: "ag_1a2b3c4d5e6f7g8h9i0j",
942
+ teamId: "team_1a2b3c4d5e6f7g8h9i0j1k2l",
943
+ slug: "my-team-url-slug",
944
+ });
952
945
 
953
946
  console.log(result);
954
947
  }