@vercel/sdk 1.10.5 → 1.10.7
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 +58 -45
- package/bin/mcp-server.js +5829 -1512
- package/bin/mcp-server.js.map +44 -35
- package/docs/sdks/integrations/README.md +209 -0
- package/docs/sdks/projects/README.md +4 -0
- package/docs/sdks/teams/README.md +12 -0
- package/docs/sdks/vercel/README.md +74 -0
- package/esm/__tests__/domains.test.js +7 -2
- package/esm/__tests__/domains.test.js.map +1 -1
- package/esm/__tests__/edgeconfig.test.js +6 -6
- package/esm/__tests__/edgeconfig.test.js.map +1 -1
- package/esm/__tests__/integrations.test.js +62 -0
- package/esm/__tests__/integrations.test.js.map +1 -1
- package/esm/__tests__/rollingrelease.test.js +1 -1
- package/esm/__tests__/security.test.js +1 -11
- package/esm/__tests__/security.test.js.map +1 -1
- package/esm/__tests__/vercel.test.js +28 -1
- package/esm/__tests__/vercel.test.js.map +1 -1
- package/esm/funcs/domainsCheckDomainPrice.js +2 -2
- package/esm/funcs/domainsCheckDomainPrice.js.map +1 -1
- package/esm/funcs/getV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlans.d.ts +14 -0
- package/esm/funcs/getV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlans.d.ts.map +1 -0
- package/esm/funcs/getV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlans.js +84 -0
- package/esm/funcs/getV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlans.js.map +1 -0
- package/esm/funcs/integrationsConnectIntegrationResourceToProject.d.ts +20 -0
- package/esm/funcs/integrationsConnectIntegrationResourceToProject.d.ts.map +1 -0
- package/esm/funcs/integrationsConnectIntegrationResourceToProject.js +97 -0
- package/esm/funcs/integrationsConnectIntegrationResourceToProject.js.map +1 -0
- package/esm/funcs/integrationsCreateIntegrationStoreDirect.d.ts +21 -0
- package/esm/funcs/integrationsCreateIntegrationStoreDirect.d.ts.map +1 -0
- package/esm/funcs/integrationsCreateIntegrationStoreDirect.js +90 -0
- package/esm/funcs/integrationsCreateIntegrationStoreDirect.js.map +1 -0
- package/esm/funcs/marketplaceExchangeSsoToken.js +2 -2
- package/esm/funcs/marketplaceExchangeSsoToken.js.map +1 -1
- package/esm/funcs/marketplaceSubmitInvoice.js +2 -2
- package/esm/funcs/marketplaceSubmitInvoice.js.map +1 -1
- package/esm/funcs/marketplaceUpdateInvoice.js +2 -2
- package/esm/funcs/marketplaceUpdateInvoice.js.map +1 -1
- package/esm/funcs/projectsGetProjects.js +2 -0
- package/esm/funcs/projectsGetProjects.js.map +1 -1
- package/esm/lib/config.d.ts +3 -3
- package/esm/lib/config.js +3 -3
- package/esm/mcp-server/mcp-server.js +1 -1
- package/esm/mcp-server/server.d.ts.map +1 -1
- package/esm/mcp-server/server.js +7 -1
- package/esm/mcp-server/server.js.map +1 -1
- package/esm/mcp-server/tools/getV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlans.d.ts +7 -0
- package/esm/mcp-server/tools/getV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlans.d.ts.map +1 -0
- package/esm/mcp-server/tools/getV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlans.js +26 -0
- package/esm/mcp-server/tools/getV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlans.js.map +1 -0
- package/esm/mcp-server/tools/integrationsConnectIntegrationResourceToProject.d.ts +7 -0
- package/esm/mcp-server/tools/integrationsConnectIntegrationResourceToProject.d.ts.map +1 -0
- package/esm/mcp-server/tools/integrationsConnectIntegrationResourceToProject.js +27 -0
- package/esm/mcp-server/tools/integrationsConnectIntegrationResourceToProject.js.map +1 -0
- package/esm/mcp-server/tools/integrationsCreateIntegrationStoreDirect.d.ts +7 -0
- package/esm/mcp-server/tools/integrationsCreateIntegrationStoreDirect.d.ts.map +1 -0
- package/esm/mcp-server/tools/integrationsCreateIntegrationStoreDirect.js +28 -0
- package/esm/mcp-server/tools/integrationsCreateIntegrationStoreDirect.js.map +1 -0
- package/esm/models/acceptprojecttransferrequestop.d.ts +37 -0
- package/esm/models/acceptprojecttransferrequestop.d.ts.map +1 -1
- package/esm/models/acceptprojecttransferrequestop.js +40 -1
- package/esm/models/acceptprojecttransferrequestop.js.map +1 -1
- package/esm/models/authuser.d.ts +3 -3
- package/esm/models/authuser.js +1 -1
- package/esm/models/authuser.js.map +1 -1
- package/esm/models/canceldeploymentop.d.ts +45 -7
- package/esm/models/canceldeploymentop.d.ts.map +1 -1
- package/esm/models/canceldeploymentop.js +31 -2
- package/esm/models/canceldeploymentop.js.map +1 -1
- package/esm/models/connectintegrationresourcetoprojectop.d.ts +68 -0
- package/esm/models/connectintegrationresourcetoprojectop.d.ts.map +1 -0
- package/esm/models/connectintegrationresourcetoprojectop.js +73 -0
- package/esm/models/connectintegrationresourcetoprojectop.js.map +1 -0
- package/esm/models/createdeploymentop.d.ts +259 -221
- package/esm/models/createdeploymentop.d.ts.map +1 -1
- package/esm/models/createdeploymentop.js +233 -206
- package/esm/models/createdeploymentop.js.map +1 -1
- package/esm/models/createintegrationstoredirectop.d.ts +5995 -0
- package/esm/models/createintegrationstoredirectop.d.ts.map +1 -0
- package/esm/models/createintegrationstoredirectop.js +6597 -0
- package/esm/models/createintegrationstoredirectop.js.map +1 -0
- package/esm/models/createprojectop.d.ts +31 -4
- package/esm/models/createprojectop.d.ts.map +1 -1
- package/esm/models/createprojectop.js +10 -4
- package/esm/models/createprojectop.js.map +1 -1
- package/esm/models/createwebhookop.d.ts +12 -0
- package/esm/models/createwebhookop.d.ts.map +1 -1
- package/esm/models/createwebhookop.js +4 -0
- package/esm/models/createwebhookop.js.map +1 -1
- package/esm/models/getconfigurationop.d.ts +6 -0
- package/esm/models/getconfigurationop.d.ts.map +1 -1
- package/esm/models/getconfigurationop.js +2 -0
- package/esm/models/getconfigurationop.js.map +1 -1
- package/esm/models/getconfigurationproductsop.d.ts +533 -533
- package/esm/models/getconfigurationproductsop.d.ts.map +1 -1
- package/esm/models/getconfigurationproductsop.js +666 -665
- package/esm/models/getconfigurationproductsop.js.map +1 -1
- package/esm/models/getconfigurationsop.d.ts +6 -0
- package/esm/models/getconfigurationsop.d.ts.map +1 -1
- package/esm/models/getconfigurationsop.js +2 -0
- package/esm/models/getconfigurationsop.js.map +1 -1
- package/esm/models/getdeploymentop.d.ts +45 -7
- package/esm/models/getdeploymentop.d.ts.map +1 -1
- package/esm/models/getdeploymentop.js +30 -2
- package/esm/models/getdeploymentop.js.map +1 -1
- package/esm/models/getintegrationresourceop.d.ts +13 -13
- package/esm/models/getintegrationresourceop.d.ts.map +1 -1
- package/esm/models/getintegrationresourceop.js +13 -13
- package/esm/models/getintegrationresourceop.js.map +1 -1
- package/esm/models/getprojectsop.d.ts +101 -4
- package/esm/models/getprojectsop.d.ts.map +1 -1
- package/esm/models/getprojectsop.js +57 -4
- package/esm/models/getprojectsop.js.map +1 -1
- package/esm/models/getteammembersop.d.ts +102 -9
- package/esm/models/getteammembersop.d.ts.map +1 -1
- package/esm/models/getteammembersop.js +60 -3
- package/esm/models/getteammembersop.js.map +1 -1
- package/esm/models/getv1integrationsintegrationintegrationidorslugproductsproductidorslugplansop.d.ts +247 -0
- package/esm/models/getv1integrationsintegrationintegrationidorslugproductsproductidorslugplansop.d.ts.map +1 -0
- package/esm/models/getv1integrationsintegrationintegrationidorslugproductsproductidorslugplansop.js +246 -0
- package/esm/models/getv1integrationsintegrationintegrationidorslugproductsproductidorslugplansop.js.map +1 -0
- package/esm/models/getwebhookop.d.ts +6 -0
- package/esm/models/getwebhookop.d.ts.map +1 -1
- package/esm/models/getwebhookop.js +2 -0
- package/esm/models/getwebhookop.js.map +1 -1
- package/esm/models/getwebhooksop.d.ts +27 -15
- package/esm/models/getwebhooksop.d.ts.map +1 -1
- package/esm/models/getwebhooksop.js +19 -15
- package/esm/models/getwebhooksop.js.map +1 -1
- package/esm/models/inviteusertoteamop.d.ts +3 -0
- package/esm/models/inviteusertoteamop.d.ts.map +1 -1
- package/esm/models/inviteusertoteamop.js +1 -0
- package/esm/models/inviteusertoteamop.js.map +1 -1
- package/esm/models/patchteamop.d.ts +253 -0
- package/esm/models/patchteamop.d.ts.map +1 -1
- package/esm/models/patchteamop.js +150 -0
- package/esm/models/patchteamop.js.map +1 -1
- package/esm/models/team.d.ts +47 -0
- package/esm/models/team.d.ts.map +1 -1
- package/esm/models/team.js +36 -0
- package/esm/models/team.js.map +1 -1
- package/esm/models/teamlimited.d.ts +3 -0
- package/esm/models/teamlimited.d.ts.map +1 -1
- package/esm/models/teamlimited.js +1 -0
- package/esm/models/teamlimited.js.map +1 -1
- package/esm/models/updatefirewallconfigop.d.ts +32 -32
- package/esm/models/updatefirewallconfigop.d.ts.map +1 -1
- package/esm/models/updatefirewallconfigop.js +49 -49
- package/esm/models/updatefirewallconfigop.js.map +1 -1
- package/esm/models/updateinvoiceop.d.ts +36 -15
- package/esm/models/updateinvoiceop.d.ts.map +1 -1
- package/esm/models/updateinvoiceop.js +37 -16
- package/esm/models/updateinvoiceop.js.map +1 -1
- package/esm/models/updateprojectdatacacheop.d.ts +25 -0
- package/esm/models/updateprojectdatacacheop.d.ts.map +1 -1
- package/esm/models/updateprojectdatacacheop.js +4 -0
- package/esm/models/updateprojectdatacacheop.js.map +1 -1
- package/esm/models/updateprojectop.d.ts +31 -4
- package/esm/models/updateprojectop.d.ts.map +1 -1
- package/esm/models/updateprojectop.js +10 -4
- package/esm/models/updateprojectop.js.map +1 -1
- package/esm/models/userevent.d.ts +406 -305
- package/esm/models/userevent.d.ts.map +1 -1
- package/esm/models/userevent.js +467 -365
- package/esm/models/userevent.js.map +1 -1
- package/esm/sdk/integrations.d.ts +16 -0
- package/esm/sdk/integrations.d.ts.map +1 -1
- package/esm/sdk/integrations.js +20 -0
- package/esm/sdk/integrations.js.map +1 -1
- package/esm/sdk/sdk.d.ts +3 -1
- package/esm/sdk/sdk.d.ts.map +1 -1
- package/esm/sdk/sdk.js +5 -0
- package/esm/sdk/sdk.js.map +1 -1
- package/examples/package-lock.json +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/__tests__/domains.test.ts +7 -2
- package/src/__tests__/edgeconfig.test.ts +6 -6
- package/src/__tests__/integrations.test.ts +65 -0
- package/src/__tests__/rollingrelease.test.ts +1 -1
- package/src/__tests__/security.test.ts +1 -11
- package/src/__tests__/vercel.test.ts +36 -1
- package/src/funcs/domainsCheckDomainPrice.ts +2 -2
- package/src/funcs/getV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlans.ts +207 -0
- package/src/funcs/integrationsConnectIntegrationResourceToProject.ts +213 -0
- package/src/funcs/integrationsCreateIntegrationStoreDirect.ts +207 -0
- package/src/funcs/marketplaceExchangeSsoToken.ts +2 -2
- package/src/funcs/marketplaceSubmitInvoice.ts +2 -2
- package/src/funcs/marketplaceUpdateInvoice.ts +2 -2
- package/src/funcs/projectsGetProjects.ts +2 -0
- package/src/lib/config.ts +3 -3
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +9 -1
- package/src/mcp-server/tools/getV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlans.ts +41 -0
- package/src/mcp-server/tools/integrationsConnectIntegrationResourceToProject.ts +37 -0
- package/src/mcp-server/tools/integrationsCreateIntegrationStoreDirect.ts +39 -0
- package/src/models/acceptprojecttransferrequestop.ts +88 -1
- package/src/models/authuser.ts +1 -1
- package/src/models/canceldeploymentop.ts +56 -9
- package/src/models/connectintegrationresourcetoprojectop.ts +185 -0
- package/src/models/createdeploymentop.ts +540 -498
- package/src/models/createintegrationstoredirectop.ts +15739 -0
- package/src/models/createprojectop.ts +41 -8
- package/src/models/createwebhookop.ts +4 -0
- package/src/models/getconfigurationop.ts +2 -0
- package/src/models/getconfigurationproductsop.ts +1326 -1163
- package/src/models/getconfigurationsop.ts +2 -0
- package/src/models/getdeploymentop.ts +59 -9
- package/src/models/getintegrationresourceop.ts +26 -20
- package/src/models/getprojectsop.ts +122 -8
- package/src/models/getteammembersop.ts +84 -3
- package/src/models/getv1integrationsintegrationintegrationidorslugproductsproductidorslugplansop.ts +575 -0
- package/src/models/getwebhookop.ts +2 -0
- package/src/models/getwebhooksop.ts +31 -25
- package/src/models/inviteusertoteamop.ts +1 -0
- package/src/models/patchteamop.ts +254 -0
- package/src/models/team.ts +92 -0
- package/src/models/teamlimited.ts +1 -0
- package/src/models/updatefirewallconfigop.ts +74 -68
- package/src/models/updateinvoiceop.ts +78 -27
- package/src/models/updateprojectdatacacheop.ts +29 -0
- package/src/models/updateprojectop.ts +41 -8
- package/src/models/userevent.ts +918 -682
- package/src/sdk/integrations.ts +41 -0
- package/src/sdk/sdk.ts +23 -1
- package/vercel-spec.json +3689 -540
package/README.md
CHANGED
|
@@ -198,11 +198,13 @@ const vercel = new Vercel({
|
|
|
198
198
|
});
|
|
199
199
|
|
|
200
200
|
async function run() {
|
|
201
|
-
const result = await vercel
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
201
|
+
const result = await vercel
|
|
202
|
+
.getV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlans(
|
|
203
|
+
{
|
|
204
|
+
integrationIdOrSlug: "<value>",
|
|
205
|
+
productIdOrSlug: "<value>",
|
|
206
|
+
},
|
|
207
|
+
);
|
|
206
208
|
|
|
207
209
|
console.log(result);
|
|
208
210
|
}
|
|
@@ -403,10 +405,12 @@ run();
|
|
|
403
405
|
### [integrations](docs/sdks/integrations/README.md)
|
|
404
406
|
|
|
405
407
|
* [updateIntegrationDeploymentAction](docs/sdks/integrations/README.md#updateintegrationdeploymentaction) - Update deployment integration action
|
|
408
|
+
* [connectIntegrationResourceToProject](docs/sdks/integrations/README.md#connectintegrationresourcetoproject) - Connect integration resource to project
|
|
406
409
|
* [getConfigurations](docs/sdks/integrations/README.md#getconfigurations) - Get configurations for the authenticated user or team
|
|
407
410
|
* [getConfiguration](docs/sdks/integrations/README.md#getconfiguration) - Retrieve an integration configuration
|
|
408
411
|
* [deleteConfiguration](docs/sdks/integrations/README.md#deleteconfiguration) - Delete an integration configuration
|
|
409
412
|
* [getConfigurationProducts](docs/sdks/integrations/README.md#getconfigurationproducts) - List products for integration configuration
|
|
413
|
+
* [createIntegrationStoreDirect](docs/sdks/integrations/README.md#createintegrationstoredirect) - Create integration store (free and paid plans)
|
|
410
414
|
|
|
411
415
|
### [logDrains](docs/sdks/logdrains/README.md)
|
|
412
416
|
|
|
@@ -517,6 +521,9 @@ run();
|
|
|
517
521
|
* [getAuthUser](docs/sdks/user/README.md#getauthuser) - Get the User
|
|
518
522
|
* [requestDelete](docs/sdks/user/README.md#requestdelete) - Delete User Account
|
|
519
523
|
|
|
524
|
+
### [Vercel SDK](docs/sdks/vercel/README.md)
|
|
525
|
+
|
|
526
|
+
* [getV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlans](docs/sdks/vercel/README.md#getv1integrationsintegrationintegrationidorslugproductsproductidorslugplans)
|
|
520
527
|
|
|
521
528
|
### [webhooks](docs/sdks/webhooks/README.md)
|
|
522
529
|
|
|
@@ -626,6 +633,9 @@ To read more about standalone functions, check [FUNCTIONS.md](./FUNCTIONS.md).
|
|
|
626
633
|
- [`environmentGetV9ProjectsIdOrNameCustomEnvironments`](docs/sdks/environment/README.md#getv9projectsidornamecustomenvironments) - Retrieve custom environments
|
|
627
634
|
- [`environmentRemoveCustomEnvironment`](docs/sdks/environment/README.md#removecustomenvironment) - Remove a custom environment
|
|
628
635
|
- [`environmentUpdateCustomEnvironment`](docs/sdks/environment/README.md#updatecustomenvironment) - Update a custom environment
|
|
636
|
+
- [`getV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlans`](docs/sdks/vercel/README.md#getv1integrationsintegrationintegrationidorslugproductsproductidorslugplans)
|
|
637
|
+
- [`integrationsConnectIntegrationResourceToProject`](docs/sdks/integrations/README.md#connectintegrationresourcetoproject) - Connect integration resource to project
|
|
638
|
+
- [`integrationsCreateIntegrationStoreDirect`](docs/sdks/integrations/README.md#createintegrationstoredirect) - Create integration store (free and paid plans)
|
|
629
639
|
- [`integrationsDeleteConfiguration`](docs/sdks/integrations/README.md#deleteconfiguration) - Delete an integration configuration
|
|
630
640
|
- [`integrationsGetConfiguration`](docs/sdks/integrations/README.md#getconfiguration) - Retrieve an integration configuration
|
|
631
641
|
- [`integrationsGetConfigurationProducts`](docs/sdks/integrations/README.md#getconfigurationproducts) - List products for integration configuration
|
|
@@ -773,27 +783,28 @@ To change the default retry strategy for a single API call, simply provide a ret
|
|
|
773
783
|
```typescript
|
|
774
784
|
import { Vercel } from "@vercel/sdk";
|
|
775
785
|
|
|
776
|
-
const vercel = new Vercel(
|
|
777
|
-
bearerToken: "<YOUR_BEARER_TOKEN_HERE>",
|
|
778
|
-
});
|
|
786
|
+
const vercel = new Vercel();
|
|
779
787
|
|
|
780
788
|
async function run() {
|
|
781
|
-
const result = await vercel
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
retries: {
|
|
787
|
-
strategy: "backoff",
|
|
788
|
-
backoff: {
|
|
789
|
-
initialInterval: 1,
|
|
790
|
-
maxInterval: 50,
|
|
791
|
-
exponent: 1.1,
|
|
792
|
-
maxElapsedTime: 100,
|
|
789
|
+
const result = await vercel
|
|
790
|
+
.getV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlans(
|
|
791
|
+
{
|
|
792
|
+
integrationIdOrSlug: "<value>",
|
|
793
|
+
productIdOrSlug: "<value>",
|
|
793
794
|
},
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
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
|
+
},
|
|
806
|
+
},
|
|
807
|
+
);
|
|
797
808
|
|
|
798
809
|
console.log(result);
|
|
799
810
|
}
|
|
@@ -817,15 +828,16 @@ const vercel = new Vercel({
|
|
|
817
828
|
},
|
|
818
829
|
retryConnectionErrors: false,
|
|
819
830
|
},
|
|
820
|
-
bearerToken: "<YOUR_BEARER_TOKEN_HERE>",
|
|
821
831
|
});
|
|
822
832
|
|
|
823
833
|
async function run() {
|
|
824
|
-
const result = await vercel
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
834
|
+
const result = await vercel
|
|
835
|
+
.getV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlans(
|
|
836
|
+
{
|
|
837
|
+
integrationIdOrSlug: "<value>",
|
|
838
|
+
productIdOrSlug: "<value>",
|
|
839
|
+
},
|
|
840
|
+
);
|
|
829
841
|
|
|
830
842
|
console.log(result);
|
|
831
843
|
}
|
|
@@ -855,17 +867,17 @@ import { Vercel } from "@vercel/sdk";
|
|
|
855
867
|
import { VercelBadRequestError } from "@vercel/sdk/models/vercelbadrequesterror.js";
|
|
856
868
|
import { VercelError } from "@vercel/sdk/models/vercelerror.js.js";
|
|
857
869
|
|
|
858
|
-
const vercel = new Vercel(
|
|
859
|
-
bearerToken: "<YOUR_BEARER_TOKEN_HERE>",
|
|
860
|
-
});
|
|
870
|
+
const vercel = new Vercel();
|
|
861
871
|
|
|
862
872
|
async function run() {
|
|
863
873
|
try {
|
|
864
|
-
const result = await vercel
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
874
|
+
const result = await vercel
|
|
875
|
+
.getV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlans(
|
|
876
|
+
{
|
|
877
|
+
integrationIdOrSlug: "<value>",
|
|
878
|
+
productIdOrSlug: "<value>",
|
|
879
|
+
},
|
|
880
|
+
);
|
|
869
881
|
|
|
870
882
|
console.log(result);
|
|
871
883
|
} catch (error) {
|
|
@@ -907,8 +919,8 @@ run();
|
|
|
907
919
|
|
|
908
920
|
|
|
909
921
|
**Inherit from [`VercelError`](./src/models/vercelerror.ts)**:
|
|
910
|
-
* [`VercelNotFoundError`](./src/models/vercelnotfounderror.ts): Status code `404`. Applicable to
|
|
911
|
-
* [`VercelRateLimitError`](./src/models/vercelratelimiterror.ts): . Status code `429`. Applicable to
|
|
922
|
+
* [`VercelNotFoundError`](./src/models/vercelnotfounderror.ts): Status code `404`. Applicable to 109 of 177 methods.*
|
|
923
|
+
* [`VercelRateLimitError`](./src/models/vercelratelimiterror.ts): . Status code `429`. Applicable to 5 of 177 methods.*
|
|
912
924
|
* [`ResponseValidationError`](./src/models/responsevalidationerror.ts): Type mismatch between the data returned from the server and the structure expected by the SDK. See `error.rawValue` for the raw value and `error.pretty()` for a nicely formatted multi-line string.
|
|
913
925
|
|
|
914
926
|
</details>
|
|
@@ -927,15 +939,16 @@ import { Vercel } from "@vercel/sdk";
|
|
|
927
939
|
|
|
928
940
|
const vercel = new Vercel({
|
|
929
941
|
serverURL: "https://api.vercel.com",
|
|
930
|
-
bearerToken: "<YOUR_BEARER_TOKEN_HERE>",
|
|
931
942
|
});
|
|
932
943
|
|
|
933
944
|
async function run() {
|
|
934
|
-
const result = await vercel
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
945
|
+
const result = await vercel
|
|
946
|
+
.getV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlans(
|
|
947
|
+
{
|
|
948
|
+
integrationIdOrSlug: "<value>",
|
|
949
|
+
productIdOrSlug: "<value>",
|
|
950
|
+
},
|
|
951
|
+
);
|
|
939
952
|
|
|
940
953
|
console.log(result);
|
|
941
954
|
}
|