@vercel/sdk 1.10.4 → 1.10.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.
- package/README.md +4 -2
- package/bin/mcp-server.js +5378 -1443
- package/bin/mcp-server.js.map +43 -40
- package/docs/sdks/integrations/README.md +81 -0
- package/docs/sdks/projects/README.md +6 -0
- package/docs/sdks/teams/README.md +0 -2
- package/esm/__tests__/accessgroups.test.js +6 -0
- package/esm/__tests__/accessgroups.test.js.map +1 -1
- package/esm/__tests__/deployments.test.js +2 -2
- package/esm/__tests__/deployments.test.js.map +1 -1
- package/esm/__tests__/domains.test.js +6 -0
- package/esm/__tests__/domains.test.js.map +1 -1
- package/esm/__tests__/edgeconfig.test.js +18 -0
- package/esm/__tests__/edgeconfig.test.js.map +1 -1
- package/esm/__tests__/integrations.test.js +25 -0
- package/esm/__tests__/integrations.test.js.map +1 -1
- package/esm/__tests__/rollingrelease.test.js +2 -6
- package/esm/__tests__/rollingrelease.test.js.map +1 -1
- package/esm/funcs/integrationsGetConfigurationProducts.d.ts +20 -0
- package/esm/funcs/integrationsGetConfigurationProducts.d.ts.map +1 -0
- package/esm/funcs/integrationsGetConfigurationProducts.js +94 -0
- package/esm/funcs/integrationsGetConfigurationProducts.js.map +1 -0
- package/esm/funcs/projectsCreateProject.d.ts +3 -1
- package/esm/funcs/projectsCreateProject.d.ts.map +1 -1
- package/esm/funcs/projectsCreateProject.js +16 -2
- package/esm/funcs/projectsCreateProject.js.map +1 -1
- package/esm/funcs/projectsCreateProjectEnv.d.ts +3 -1
- package/esm/funcs/projectsCreateProjectEnv.d.ts.map +1 -1
- package/esm/funcs/projectsCreateProjectEnv.js +15 -2
- package/esm/funcs/projectsCreateProjectEnv.js.map +1 -1
- package/esm/funcs/projectsEditProjectEnv.d.ts +3 -1
- package/esm/funcs/projectsEditProjectEnv.d.ts.map +1 -1
- package/esm/funcs/projectsEditProjectEnv.js +4 -2
- package/esm/funcs/projectsEditProjectEnv.js.map +1 -1
- package/esm/lib/config.d.ts +3 -3
- package/esm/lib/config.js +3 -3
- package/esm/lib/security.d.ts.map +1 -1
- package/esm/lib/security.js.map +1 -1
- 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 +3 -1
- package/esm/mcp-server/server.js.map +1 -1
- package/esm/mcp-server/tools/integrationsGetConfigurationProducts.d.ts +7 -0
- package/esm/mcp-server/tools/integrationsGetConfigurationProducts.d.ts.map +1 -0
- package/esm/mcp-server/tools/integrationsGetConfigurationProducts.js +28 -0
- package/esm/mcp-server/tools/integrationsGetConfigurationProducts.js.map +1 -0
- package/esm/models/canceldeploymentop.d.ts +10 -4
- package/esm/models/canceldeploymentop.d.ts.map +1 -1
- package/esm/models/canceldeploymentop.js +6 -4
- package/esm/models/canceldeploymentop.js.map +1 -1
- package/esm/models/createaccessgroupop.d.ts +24 -0
- package/esm/models/createaccessgroupop.d.ts.map +1 -1
- package/esm/models/createaccessgroupop.js +20 -0
- package/esm/models/createaccessgroupop.js.map +1 -1
- package/esm/models/createdeploymentop.d.ts +16 -4
- package/esm/models/createdeploymentop.d.ts.map +1 -1
- package/esm/models/createdeploymentop.js +8 -4
- package/esm/models/createdeploymentop.js.map +1 -1
- package/esm/models/createedgeconfigop.d.ts +17 -12
- package/esm/models/createedgeconfigop.d.ts.map +1 -1
- package/esm/models/createedgeconfigop.js +14 -12
- package/esm/models/createedgeconfigop.js.map +1 -1
- package/esm/models/createprojectenvop.d.ts +12 -12
- package/esm/models/createprojectenvop.d.ts.map +1 -1
- package/esm/models/createprojectenvop.js +12 -12
- package/esm/models/createprojectenvop.js.map +1 -1
- package/esm/models/createprojectop.d.ts +81 -62
- package/esm/models/createprojectop.d.ts.map +1 -1
- package/esm/models/createprojectop.js +74 -68
- package/esm/models/createprojectop.js.map +1 -1
- package/esm/models/filterprojectenvsop.d.ts +20 -20
- package/esm/models/filterprojectenvsop.d.ts.map +1 -1
- package/esm/models/filterprojectenvsop.js +20 -24
- package/esm/models/filterprojectenvsop.js.map +1 -1
- package/esm/models/getaliasop.d.ts +2 -0
- package/esm/models/getaliasop.d.ts.map +1 -1
- package/esm/models/getaliasop.js +2 -0
- package/esm/models/getaliasop.js.map +1 -1
- package/esm/models/getconfigurationproductsop.d.ts +6435 -0
- package/esm/models/getconfigurationproductsop.d.ts.map +1 -0
- package/esm/models/getconfigurationproductsop.js +7314 -0
- package/esm/models/getconfigurationproductsop.js.map +1 -0
- package/esm/models/getconfigurationsop.d.ts +15 -15
- package/esm/models/getconfigurationsop.d.ts.map +1 -1
- package/esm/models/getconfigurationsop.js +15 -15
- package/esm/models/getconfigurationsop.js.map +1 -1
- package/esm/models/getdeploymentop.d.ts +66 -60
- package/esm/models/getdeploymentop.d.ts.map +1 -1
- package/esm/models/getdeploymentop.js +54 -52
- package/esm/models/getdeploymentop.js.map +1 -1
- package/esm/models/getdeploymentsop.d.ts +49 -0
- package/esm/models/getdeploymentsop.d.ts.map +1 -1
- package/esm/models/getdeploymentsop.js +29 -0
- package/esm/models/getdeploymentsop.js.map +1 -1
- package/esm/models/getdomainconfigop.d.ts +24 -12
- package/esm/models/getdomainconfigop.d.ts.map +1 -1
- package/esm/models/getdomainconfigop.js +24 -16
- package/esm/models/getdomainconfigop.js.map +1 -1
- package/esm/models/getedgeconfigop.d.ts +17 -12
- package/esm/models/getedgeconfigop.d.ts.map +1 -1
- package/esm/models/getedgeconfigop.js +14 -12
- package/esm/models/getedgeconfigop.js.map +1 -1
- package/esm/models/getfirewallconfigop.d.ts +6 -0
- package/esm/models/getfirewallconfigop.d.ts.map +1 -1
- package/esm/models/getfirewallconfigop.js +2 -0
- package/esm/models/getfirewallconfigop.js.map +1 -1
- package/esm/models/getprojectmembersop.d.ts +8 -8
- package/esm/models/getprojectmembersop.d.ts.map +1 -1
- package/esm/models/getprojectmembersop.js +12 -12
- package/esm/models/getprojectmembersop.js.map +1 -1
- package/esm/models/getprojectsop.d.ts +70 -62
- package/esm/models/getprojectsop.d.ts.map +1 -1
- package/esm/models/getprojectsop.js +70 -68
- package/esm/models/getprojectsop.js.map +1 -1
- package/esm/models/getteammembersop.d.ts +4 -4
- package/esm/models/getteammembersop.d.ts.map +1 -1
- package/esm/models/getteammembersop.js +4 -4
- package/esm/models/getteammembersop.js.map +1 -1
- package/esm/models/getwebhooksop.d.ts +6 -0
- package/esm/models/getwebhooksop.d.ts.map +1 -1
- package/esm/models/getwebhooksop.js +2 -0
- package/esm/models/getwebhooksop.js.map +1 -1
- package/esm/models/inviteusertoteamop.d.ts +32 -223
- package/esm/models/inviteusertoteamop.d.ts.map +1 -1
- package/esm/models/inviteusertoteamop.js +42 -182
- package/esm/models/inviteusertoteamop.js.map +1 -1
- package/esm/models/listaliasesop.d.ts +2 -0
- package/esm/models/listaliasesop.d.ts.map +1 -1
- package/esm/models/listaliasesop.js +2 -0
- package/esm/models/listaliasesop.js.map +1 -1
- package/esm/models/listdeploymentaliasesop.d.ts +2 -0
- package/esm/models/listdeploymentaliasesop.d.ts.map +1 -1
- package/esm/models/listdeploymentaliasesop.js +2 -0
- package/esm/models/listdeploymentaliasesop.js.map +1 -1
- package/esm/models/patchurlprotectionbypassop.d.ts +5 -0
- package/esm/models/patchurlprotectionbypassop.d.ts.map +1 -1
- package/esm/models/patchurlprotectionbypassop.js +2 -0
- package/esm/models/patchurlprotectionbypassop.js.map +1 -1
- package/esm/models/putfirewallconfigop.d.ts +9 -0
- package/esm/models/putfirewallconfigop.d.ts.map +1 -1
- package/esm/models/putfirewallconfigop.js +3 -0
- package/esm/models/putfirewallconfigop.js.map +1 -1
- package/esm/models/team.d.ts +23 -0
- package/esm/models/team.d.ts.map +1 -1
- package/esm/models/team.js +23 -0
- package/esm/models/team.js.map +1 -1
- package/esm/models/updateaccessgroupop.d.ts +2 -2
- package/esm/models/updateaccessgroupop.d.ts.map +1 -1
- package/esm/models/updateaccessgroupop.js +2 -3
- package/esm/models/updateaccessgroupop.js.map +1 -1
- package/esm/models/updateedgeconfigop.d.ts +17 -12
- package/esm/models/updateedgeconfigop.d.ts.map +1 -1
- package/esm/models/updateedgeconfigop.js +14 -12
- package/esm/models/updateedgeconfigop.js.map +1 -1
- package/esm/models/updatefirewallconfigop.d.ts +78 -4
- package/esm/models/updatefirewallconfigop.d.ts.map +1 -1
- package/esm/models/updatefirewallconfigop.js +50 -4
- package/esm/models/updatefirewallconfigop.js.map +1 -1
- package/esm/models/updateprojectdatacacheop.d.ts +70 -62
- package/esm/models/updateprojectdatacacheop.d.ts.map +1 -1
- package/esm/models/updateprojectdatacacheop.js +70 -70
- package/esm/models/updateprojectdatacacheop.js.map +1 -1
- package/esm/models/updateprojectop.d.ts +76 -62
- package/esm/models/updateprojectop.d.ts.map +1 -1
- package/esm/models/updateprojectop.js +72 -68
- package/esm/models/updateprojectop.js.map +1 -1
- package/esm/models/userevent.d.ts +56 -56
- package/esm/models/userevent.d.ts.map +1 -1
- package/esm/models/userevent.js +56 -62
- package/esm/models/userevent.js.map +1 -1
- package/esm/sdk/integrations.d.ts +8 -0
- package/esm/sdk/integrations.d.ts.map +1 -1
- package/esm/sdk/integrations.js +10 -0
- package/esm/sdk/integrations.js.map +1 -1
- package/examples/package-lock.json +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/__tests__/accessgroups.test.ts +6 -0
- package/src/__tests__/deployments.test.ts +2 -2
- package/src/__tests__/domains.test.ts +6 -0
- package/src/__tests__/edgeconfig.test.ts +18 -0
- package/src/__tests__/integrations.test.ts +28 -0
- package/src/__tests__/rollingrelease.test.ts +2 -6
- package/src/funcs/integrationsGetConfigurationProducts.ts +207 -0
- package/src/funcs/projectsCreateProject.ts +30 -2
- package/src/funcs/projectsCreateProjectEnv.ts +29 -2
- package/src/funcs/projectsEditProjectEnv.ts +18 -2
- package/src/lib/config.ts +3 -3
- package/src/lib/security.ts +4 -1
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +3 -1
- package/src/mcp-server/tools/integrationsGetConfigurationProducts.ts +39 -0
- package/src/models/canceldeploymentop.ts +10 -8
- package/src/models/createaccessgroupop.ts +32 -0
- package/src/models/createdeploymentop.ts +12 -8
- package/src/models/createedgeconfigop.ts +31 -24
- package/src/models/createprojectenvop.ts +24 -24
- package/src/models/createprojectop.ts +149 -136
- package/src/models/filterprojectenvsop.ts +42 -46
- package/src/models/getaliasop.ts +4 -0
- package/src/models/getconfigurationproductsop.ts +16739 -0
- package/src/models/getconfigurationsop.ts +28 -24
- package/src/models/getdeploymentop.ts +91 -89
- package/src/models/getdeploymentsop.ts +57 -0
- package/src/models/getdomainconfigop.ts +48 -28
- package/src/models/getedgeconfigop.ts +31 -24
- package/src/models/getfirewallconfigop.ts +2 -0
- package/src/models/getprojectmembersop.ts +16 -19
- package/src/models/getprojectsop.ts +140 -136
- package/src/models/getteammembersop.ts +8 -8
- package/src/models/getwebhooksop.ts +2 -0
- package/src/models/inviteusertoteamop.ts +69 -330
- package/src/models/listaliasesop.ts +4 -0
- package/src/models/listdeploymentaliasesop.ts +4 -0
- package/src/models/patchurlprotectionbypassop.ts +7 -0
- package/src/models/putfirewallconfigop.ts +3 -0
- package/src/models/team.ts +54 -0
- package/src/models/updateaccessgroupop.ts +4 -5
- package/src/models/updateedgeconfigop.ts +31 -24
- package/src/models/updatefirewallconfigop.ts +73 -8
- package/src/models/updateprojectdatacacheop.ts +137 -135
- package/src/models/updateprojectop.ts +142 -136
- package/src/models/userevent.ts +112 -124
- package/src/sdk/integrations.ts +22 -0
- package/vercel-spec.json +3354 -585
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { ClientSDK, RequestOptions } from "../lib/sdks.js";
|
|
2
2
|
import { DeleteConfigurationRequest } from "../models/deleteconfigurationop.js";
|
|
3
3
|
import { GetConfigurationRequest, GetConfigurationResponseBody } from "../models/getconfigurationop.js";
|
|
4
|
+
import { GetConfigurationProductsRequest, GetConfigurationProductsResponseBody } from "../models/getconfigurationproductsop.js";
|
|
4
5
|
import { GetConfigurationsRequest, GetConfigurationsResponseBody } from "../models/getconfigurationsop.js";
|
|
5
6
|
import { UpdateIntegrationDeploymentActionRequest } from "../models/updateintegrationdeploymentactionop.js";
|
|
6
7
|
export declare class Integrations extends ClientSDK {
|
|
@@ -32,5 +33,12 @@ export declare class Integrations extends ClientSDK {
|
|
|
32
33
|
* Allows to remove the configuration with the `id` provided in the parameters. The configuration and all of its resources will be removed. This includes Webhooks, LogDrains and Project Env variables.
|
|
33
34
|
*/
|
|
34
35
|
deleteConfiguration(request: DeleteConfigurationRequest, options?: RequestOptions): Promise<void>;
|
|
36
|
+
/**
|
|
37
|
+
* List products for integration configuration
|
|
38
|
+
*
|
|
39
|
+
* @remarks
|
|
40
|
+
* Lists all products available for an integration configuration. Use this endpoint to discover what integration products are available for your integration configuration. The returned product IDs or slugs can then be used with storage provisioning endpoints like `POST /v1/storage/stores/integration/direct`. ## Workflow 1. Get your integration configurations: `GET /v1/integrations/configurations` 2. **Use this endpoint**: Get products for a configuration: `GET /v1/integrations/configuration/{id}/products` 3. Create storage resource: `POST /v1/storage/stores/integration/direct` ## Response Returns an array of products with their IDs, slugs, names, supported protocols, and metadata requirements. Each product represents a different type of resource you can provision. The `metadataSchema` field contains a JSON Schema that defines: - **Required metadata**: Fields that must be provided during storage creation - **Optional metadata**: Fields that can be provided but are not mandatory - **Field validation**: Data types, allowed values, and constraints Use this schema to validate metadata before calling the storage creation endpoint.
|
|
41
|
+
*/
|
|
42
|
+
getConfigurationProducts(request: GetConfigurationProductsRequest, options?: RequestOptions): Promise<GetConfigurationProductsResponseBody>;
|
|
35
43
|
}
|
|
36
44
|
//# sourceMappingURL=integrations.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"integrations.d.ts","sourceRoot":"","sources":["../../src/sdk/integrations.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"integrations.d.ts","sourceRoot":"","sources":["../../src/sdk/integrations.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,EAAE,0BAA0B,EAAE,MAAM,oCAAoC,CAAC;AAChF,OAAO,EACL,uBAAuB,EACvB,4BAA4B,EAC7B,MAAM,iCAAiC,CAAC;AACzC,OAAO,EACL,+BAA+B,EAC/B,oCAAoC,EACrC,MAAM,yCAAyC,CAAC;AACjD,OAAO,EACL,wBAAwB,EACxB,6BAA6B,EAC9B,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EAAE,wCAAwC,EAAE,MAAM,kDAAkD,CAAC;AAG5G,qBAAa,YAAa,SAAQ,SAAS;IACzC;;;;;OAKG;IACG,iCAAiC,CACrC,OAAO,EAAE,wCAAwC,EACjD,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,IAAI,CAAC;IAQhB;;;;;OAKG;IACG,iBAAiB,CACrB,OAAO,EAAE,wBAAwB,EACjC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,6BAA6B,CAAC;IAQzC;;;;;OAKG;IACG,gBAAgB,CACpB,OAAO,EAAE,uBAAuB,EAChC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,4BAA4B,CAAC;IAQxC;;;;;OAKG;IACG,mBAAmB,CACvB,OAAO,EAAE,0BAA0B,EACnC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,IAAI,CAAC;IAQhB;;;;;OAKG;IACG,wBAAwB,CAC5B,OAAO,EAAE,+BAA+B,EACxC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,oCAAoC,CAAC;CAOjD"}
|
package/esm/sdk/integrations.js
CHANGED
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
import { deploymentsUpdateIntegrationDeploymentAction } from "../funcs/deploymentsUpdateIntegrationDeploymentAction.js";
|
|
5
5
|
import { integrationsDeleteConfiguration } from "../funcs/integrationsDeleteConfiguration.js";
|
|
6
6
|
import { integrationsGetConfiguration } from "../funcs/integrationsGetConfiguration.js";
|
|
7
|
+
import { integrationsGetConfigurationProducts } from "../funcs/integrationsGetConfigurationProducts.js";
|
|
7
8
|
import { integrationsGetConfigurations } from "../funcs/integrationsGetConfigurations.js";
|
|
8
9
|
import { ClientSDK } from "../lib/sdks.js";
|
|
9
10
|
import { unwrapAsync } from "../types/fp.js";
|
|
@@ -44,5 +45,14 @@ export class Integrations extends ClientSDK {
|
|
|
44
45
|
async deleteConfiguration(request, options) {
|
|
45
46
|
return unwrapAsync(integrationsDeleteConfiguration(this, request, options));
|
|
46
47
|
}
|
|
48
|
+
/**
|
|
49
|
+
* List products for integration configuration
|
|
50
|
+
*
|
|
51
|
+
* @remarks
|
|
52
|
+
* Lists all products available for an integration configuration. Use this endpoint to discover what integration products are available for your integration configuration. The returned product IDs or slugs can then be used with storage provisioning endpoints like `POST /v1/storage/stores/integration/direct`. ## Workflow 1. Get your integration configurations: `GET /v1/integrations/configurations` 2. **Use this endpoint**: Get products for a configuration: `GET /v1/integrations/configuration/{id}/products` 3. Create storage resource: `POST /v1/storage/stores/integration/direct` ## Response Returns an array of products with their IDs, slugs, names, supported protocols, and metadata requirements. Each product represents a different type of resource you can provision. The `metadataSchema` field contains a JSON Schema that defines: - **Required metadata**: Fields that must be provided during storage creation - **Optional metadata**: Fields that can be provided but are not mandatory - **Field validation**: Data types, allowed values, and constraints Use this schema to validate metadata before calling the storage creation endpoint.
|
|
53
|
+
*/
|
|
54
|
+
async getConfigurationProducts(request, options) {
|
|
55
|
+
return unwrapAsync(integrationsGetConfigurationProducts(this, request, options));
|
|
56
|
+
}
|
|
47
57
|
}
|
|
48
58
|
//# sourceMappingURL=integrations.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"integrations.js","sourceRoot":"","sources":["../../src/sdk/integrations.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,4CAA4C,EAAE,MAAM,0DAA0D,CAAC;AACxH,OAAO,EAAE,+BAA+B,EAAE,MAAM,6CAA6C,CAAC;AAC9F,OAAO,EAAE,4BAA4B,EAAE,MAAM,0CAA0C,CAAC;AACxF,OAAO,EAAE,6BAA6B,EAAE,MAAM,2CAA2C,CAAC;AAC1F,OAAO,EAAE,SAAS,EAAkB,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"integrations.js","sourceRoot":"","sources":["../../src/sdk/integrations.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,4CAA4C,EAAE,MAAM,0DAA0D,CAAC;AACxH,OAAO,EAAE,+BAA+B,EAAE,MAAM,6CAA6C,CAAC;AAC9F,OAAO,EAAE,4BAA4B,EAAE,MAAM,0CAA0C,CAAC;AACxF,OAAO,EAAE,oCAAoC,EAAE,MAAM,kDAAkD,CAAC;AACxG,OAAO,EAAE,6BAA6B,EAAE,MAAM,2CAA2C,CAAC;AAC1F,OAAO,EAAE,SAAS,EAAkB,MAAM,gBAAgB,CAAC;AAe3D,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,MAAM,OAAO,YAAa,SAAQ,SAAS;IACzC;;;;;OAKG;IACH,KAAK,CAAC,iCAAiC,CACrC,OAAiD,EACjD,OAAwB;QAExB,OAAO,WAAW,CAAC,4CAA4C,CAC7D,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,iBAAiB,CACrB,OAAiC,EACjC,OAAwB;QAExB,OAAO,WAAW,CAAC,6BAA6B,CAC9C,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,gBAAgB,CACpB,OAAgC,EAChC,OAAwB;QAExB,OAAO,WAAW,CAAC,4BAA4B,CAC7C,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,mBAAmB,CACvB,OAAmC,EACnC,OAAwB;QAExB,OAAO,WAAW,CAAC,+BAA+B,CAChD,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,wBAAwB,CAC5B,OAAwC,EACxC,OAAwB;QAExB,OAAO,WAAW,CAAC,oCAAoC,CACrD,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;CACF"}
|
package/jsr.json
CHANGED
package/package.json
CHANGED
|
@@ -107,6 +107,9 @@ test("Access Groups Update Access Group", async () => {
|
|
|
107
107
|
});
|
|
108
108
|
expect(result).toBeDefined();
|
|
109
109
|
expect(result).toEqual({
|
|
110
|
+
entitlements: [
|
|
111
|
+
"v0",
|
|
112
|
+
],
|
|
110
113
|
name: "my-access-group",
|
|
111
114
|
createdAt: "1588720733602",
|
|
112
115
|
teamId: "team_123a6c5209bc3778245d011443644c8d27dc2c50",
|
|
@@ -242,6 +245,9 @@ test("Access Groups Create Access Group", async () => {
|
|
|
242
245
|
});
|
|
243
246
|
expect(result).toBeDefined();
|
|
244
247
|
expect(result).toEqual({
|
|
248
|
+
entitlements: [
|
|
249
|
+
"v0",
|
|
250
|
+
],
|
|
245
251
|
membersCount: 446.92,
|
|
246
252
|
projectsCount: 5113.22,
|
|
247
253
|
name: "my-access-group",
|
|
@@ -113,10 +113,10 @@ test("Deployments Get Deployment", async () => {
|
|
|
113
113
|
public: false,
|
|
114
114
|
status: "BUILDING",
|
|
115
115
|
id: "<id>",
|
|
116
|
-
name: "<value>",
|
|
117
|
-
type: "LAMBDAS",
|
|
118
116
|
createdAt: 548.4,
|
|
119
117
|
readyState: "ERROR",
|
|
118
|
+
name: "<value>",
|
|
119
|
+
type: "LAMBDAS",
|
|
120
120
|
meta: {
|
|
121
121
|
"key": "<value>",
|
|
122
122
|
"key1": "<value>",
|
|
@@ -130,6 +130,12 @@ test("Domains Get Domain Config", async () => {
|
|
|
130
130
|
});
|
|
131
131
|
expect(result).toBeDefined();
|
|
132
132
|
expect(result).toEqual({
|
|
133
|
+
configuredBy: null,
|
|
134
|
+
acceptedChallenges: [
|
|
135
|
+
"http-01",
|
|
136
|
+
],
|
|
137
|
+
recommendedIPv4: [],
|
|
138
|
+
recommendedCNAME: [],
|
|
133
139
|
misconfigured: false,
|
|
134
140
|
});
|
|
135
141
|
});
|
|
@@ -50,6 +50,12 @@ test("Edge Config Create Edge Config", async () => {
|
|
|
50
50
|
});
|
|
51
51
|
expect(result).toBeDefined();
|
|
52
52
|
expect(result).toEqual({
|
|
53
|
+
createdAt: 1351.77,
|
|
54
|
+
updatedAt: 3491.64,
|
|
55
|
+
id: "<id>",
|
|
56
|
+
slug: "<value>",
|
|
57
|
+
ownerId: "<id>",
|
|
58
|
+
digest: "<value>",
|
|
53
59
|
sizeInBytes: 9972.06,
|
|
54
60
|
itemCount: 9113.46,
|
|
55
61
|
});
|
|
@@ -71,6 +77,12 @@ test("Edge Config Get Edge Config", async () => {
|
|
|
71
77
|
});
|
|
72
78
|
expect(result).toBeDefined();
|
|
73
79
|
expect(result).toEqual({
|
|
80
|
+
createdAt: 6466.73,
|
|
81
|
+
updatedAt: 5470.28,
|
|
82
|
+
id: "<id>",
|
|
83
|
+
slug: "<value>",
|
|
84
|
+
ownerId: "<id>",
|
|
85
|
+
digest: "<value>",
|
|
74
86
|
sizeInBytes: 3866.06,
|
|
75
87
|
itemCount: 4529.9,
|
|
76
88
|
});
|
|
@@ -95,6 +107,12 @@ test("Edge Config Update Edge Config", async () => {
|
|
|
95
107
|
});
|
|
96
108
|
expect(result).toBeDefined();
|
|
97
109
|
expect(result).toEqual({
|
|
110
|
+
createdAt: 5982.38,
|
|
111
|
+
updatedAt: 4599.8,
|
|
112
|
+
id: "<id>",
|
|
113
|
+
slug: "<value>",
|
|
114
|
+
ownerId: "<id>",
|
|
115
|
+
digest: "<value>",
|
|
98
116
|
sizeInBytes: 7731.03,
|
|
99
117
|
itemCount: 3563.67,
|
|
100
118
|
});
|
|
@@ -38,3 +38,31 @@ test("Integrations Delete Configuration", async () => {
|
|
|
38
38
|
slug: "my-team-url-slug",
|
|
39
39
|
});
|
|
40
40
|
});
|
|
41
|
+
|
|
42
|
+
test("Integrations Get Configuration Products", async () => {
|
|
43
|
+
const testHttpClient = createTestHTTPClient("getConfigurationProducts");
|
|
44
|
+
|
|
45
|
+
const vercel = new Vercel({
|
|
46
|
+
serverURL: process.env["TEST_SERVER_URL"] ?? "http://localhost:18080",
|
|
47
|
+
httpClient: testHttpClient,
|
|
48
|
+
bearerToken: "<YOUR_BEARER_TOKEN_HERE>",
|
|
49
|
+
});
|
|
50
|
+
|
|
51
|
+
const result = await vercel.integrations.getConfigurationProducts({
|
|
52
|
+
id: "icfg_cuwj0AdCdH3BwWT4LPijCC7t",
|
|
53
|
+
teamId: "team_1a2b3c4d5e6f7g8h9i0j1k2l",
|
|
54
|
+
slug: "my-team-url-slug",
|
|
55
|
+
});
|
|
56
|
+
expect(result).toBeDefined();
|
|
57
|
+
expect(result).toEqual({
|
|
58
|
+
products: [],
|
|
59
|
+
integration: {
|
|
60
|
+
id: "<id>",
|
|
61
|
+
slug: "<value>",
|
|
62
|
+
name: "<value>",
|
|
63
|
+
},
|
|
64
|
+
configuration: {
|
|
65
|
+
id: "<id>",
|
|
66
|
+
},
|
|
67
|
+
});
|
|
68
|
+
});
|
|
@@ -362,12 +362,8 @@ test("Rolling Release Get Rolling Release Billing Status", async () => {
|
|
|
362
362
|
});
|
|
363
363
|
expect(result).toBeDefined();
|
|
364
364
|
expect(result).toEqual({
|
|
365
|
-
availableSlots:
|
|
366
|
-
reason: "
|
|
365
|
+
availableSlots: 2289.64,
|
|
366
|
+
reason: "available_slots",
|
|
367
367
|
message: "<value>",
|
|
368
|
-
enabledProjects: [
|
|
369
|
-
"<value 1>",
|
|
370
|
-
"<value 2>",
|
|
371
|
-
],
|
|
372
368
|
});
|
|
373
369
|
});
|
|
@@ -0,0 +1,207 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { VercelCore } from "../core.js";
|
|
6
|
+
import { encodeFormQuery, encodeSimple } from "../lib/encodings.js";
|
|
7
|
+
import * as M from "../lib/matchers.js";
|
|
8
|
+
import { compactMap } from "../lib/primitives.js";
|
|
9
|
+
import { safeParse } from "../lib/schemas.js";
|
|
10
|
+
import { RequestOptions } from "../lib/sdks.js";
|
|
11
|
+
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
12
|
+
import { pathToFunc } from "../lib/url.js";
|
|
13
|
+
import {
|
|
14
|
+
GetConfigurationProductsRequest,
|
|
15
|
+
GetConfigurationProductsRequest$outboundSchema,
|
|
16
|
+
GetConfigurationProductsResponseBody,
|
|
17
|
+
GetConfigurationProductsResponseBody$inboundSchema,
|
|
18
|
+
} from "../models/getconfigurationproductsop.js";
|
|
19
|
+
import {
|
|
20
|
+
ConnectionError,
|
|
21
|
+
InvalidRequestError,
|
|
22
|
+
RequestAbortedError,
|
|
23
|
+
RequestTimeoutError,
|
|
24
|
+
UnexpectedClientError,
|
|
25
|
+
} from "../models/httpclienterrors.js";
|
|
26
|
+
import { ResponseValidationError } from "../models/responsevalidationerror.js";
|
|
27
|
+
import { SDKValidationError } from "../models/sdkvalidationerror.js";
|
|
28
|
+
import {
|
|
29
|
+
VercelBadRequestError,
|
|
30
|
+
VercelBadRequestError$inboundSchema,
|
|
31
|
+
} from "../models/vercelbadrequesterror.js";
|
|
32
|
+
import { VercelError } from "../models/vercelerror.js";
|
|
33
|
+
import {
|
|
34
|
+
VercelForbiddenError,
|
|
35
|
+
VercelForbiddenError$inboundSchema,
|
|
36
|
+
} from "../models/vercelforbiddenerror.js";
|
|
37
|
+
import {
|
|
38
|
+
VercelNotFoundError,
|
|
39
|
+
VercelNotFoundError$inboundSchema,
|
|
40
|
+
} from "../models/vercelnotfounderror.js";
|
|
41
|
+
import { APICall, APIPromise } from "../types/async.js";
|
|
42
|
+
import { Result } from "../types/fp.js";
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* List products for integration configuration
|
|
46
|
+
*
|
|
47
|
+
* @remarks
|
|
48
|
+
* Lists all products available for an integration configuration. Use this endpoint to discover what integration products are available for your integration configuration. The returned product IDs or slugs can then be used with storage provisioning endpoints like `POST /v1/storage/stores/integration/direct`. ## Workflow 1. Get your integration configurations: `GET /v1/integrations/configurations` 2. **Use this endpoint**: Get products for a configuration: `GET /v1/integrations/configuration/{id}/products` 3. Create storage resource: `POST /v1/storage/stores/integration/direct` ## Response Returns an array of products with their IDs, slugs, names, supported protocols, and metadata requirements. Each product represents a different type of resource you can provision. The `metadataSchema` field contains a JSON Schema that defines: - **Required metadata**: Fields that must be provided during storage creation - **Optional metadata**: Fields that can be provided but are not mandatory - **Field validation**: Data types, allowed values, and constraints Use this schema to validate metadata before calling the storage creation endpoint.
|
|
49
|
+
*/
|
|
50
|
+
export function integrationsGetConfigurationProducts(
|
|
51
|
+
client: VercelCore,
|
|
52
|
+
request: GetConfigurationProductsRequest,
|
|
53
|
+
options?: RequestOptions,
|
|
54
|
+
): APIPromise<
|
|
55
|
+
Result<
|
|
56
|
+
GetConfigurationProductsResponseBody,
|
|
57
|
+
| VercelBadRequestError
|
|
58
|
+
| VercelForbiddenError
|
|
59
|
+
| VercelNotFoundError
|
|
60
|
+
| VercelError
|
|
61
|
+
| ResponseValidationError
|
|
62
|
+
| ConnectionError
|
|
63
|
+
| RequestAbortedError
|
|
64
|
+
| RequestTimeoutError
|
|
65
|
+
| InvalidRequestError
|
|
66
|
+
| UnexpectedClientError
|
|
67
|
+
| SDKValidationError
|
|
68
|
+
>
|
|
69
|
+
> {
|
|
70
|
+
return new APIPromise($do(
|
|
71
|
+
client,
|
|
72
|
+
request,
|
|
73
|
+
options,
|
|
74
|
+
));
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
async function $do(
|
|
78
|
+
client: VercelCore,
|
|
79
|
+
request: GetConfigurationProductsRequest,
|
|
80
|
+
options?: RequestOptions,
|
|
81
|
+
): Promise<
|
|
82
|
+
[
|
|
83
|
+
Result<
|
|
84
|
+
GetConfigurationProductsResponseBody,
|
|
85
|
+
| VercelBadRequestError
|
|
86
|
+
| VercelForbiddenError
|
|
87
|
+
| VercelNotFoundError
|
|
88
|
+
| VercelError
|
|
89
|
+
| ResponseValidationError
|
|
90
|
+
| ConnectionError
|
|
91
|
+
| RequestAbortedError
|
|
92
|
+
| RequestTimeoutError
|
|
93
|
+
| InvalidRequestError
|
|
94
|
+
| UnexpectedClientError
|
|
95
|
+
| SDKValidationError
|
|
96
|
+
>,
|
|
97
|
+
APICall,
|
|
98
|
+
]
|
|
99
|
+
> {
|
|
100
|
+
const parsed = safeParse(
|
|
101
|
+
request,
|
|
102
|
+
(value) => GetConfigurationProductsRequest$outboundSchema.parse(value),
|
|
103
|
+
"Input validation failed",
|
|
104
|
+
);
|
|
105
|
+
if (!parsed.ok) {
|
|
106
|
+
return [parsed, { status: "invalid" }];
|
|
107
|
+
}
|
|
108
|
+
const payload = parsed.value;
|
|
109
|
+
const body = null;
|
|
110
|
+
|
|
111
|
+
const pathParams = {
|
|
112
|
+
id: encodeSimple("id", payload.id, {
|
|
113
|
+
explode: false,
|
|
114
|
+
charEncoding: "percent",
|
|
115
|
+
}),
|
|
116
|
+
};
|
|
117
|
+
|
|
118
|
+
const path = pathToFunc("/v1/integrations/configuration/{id}/products")(
|
|
119
|
+
pathParams,
|
|
120
|
+
);
|
|
121
|
+
|
|
122
|
+
const query = encodeFormQuery({
|
|
123
|
+
"slug": payload.slug,
|
|
124
|
+
"teamId": payload.teamId,
|
|
125
|
+
});
|
|
126
|
+
|
|
127
|
+
const headers = new Headers(compactMap({
|
|
128
|
+
Accept: "application/json",
|
|
129
|
+
}));
|
|
130
|
+
|
|
131
|
+
const secConfig = await extractSecurity(client._options.bearerToken);
|
|
132
|
+
const securityInput = secConfig == null ? {} : { bearerToken: secConfig };
|
|
133
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
134
|
+
|
|
135
|
+
const context = {
|
|
136
|
+
options: client._options,
|
|
137
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
138
|
+
operationID: "getConfigurationProducts",
|
|
139
|
+
oAuth2Scopes: [],
|
|
140
|
+
|
|
141
|
+
resolvedSecurity: requestSecurity,
|
|
142
|
+
|
|
143
|
+
securitySource: client._options.bearerToken,
|
|
144
|
+
retryConfig: options?.retries
|
|
145
|
+
|| client._options.retryConfig
|
|
146
|
+
|| { strategy: "none" },
|
|
147
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
148
|
+
};
|
|
149
|
+
|
|
150
|
+
const requestRes = client._createRequest(context, {
|
|
151
|
+
security: requestSecurity,
|
|
152
|
+
method: "GET",
|
|
153
|
+
baseURL: options?.serverURL,
|
|
154
|
+
path: path,
|
|
155
|
+
headers: headers,
|
|
156
|
+
query: query,
|
|
157
|
+
body: body,
|
|
158
|
+
userAgent: client._options.userAgent,
|
|
159
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
160
|
+
}, options);
|
|
161
|
+
if (!requestRes.ok) {
|
|
162
|
+
return [requestRes, { status: "invalid" }];
|
|
163
|
+
}
|
|
164
|
+
const req = requestRes.value;
|
|
165
|
+
|
|
166
|
+
const doResult = await client._do(req, {
|
|
167
|
+
context,
|
|
168
|
+
errorCodes: ["400", "401", "403", "404", "4XX", "500", "5XX"],
|
|
169
|
+
retryConfig: context.retryConfig,
|
|
170
|
+
retryCodes: context.retryCodes,
|
|
171
|
+
});
|
|
172
|
+
if (!doResult.ok) {
|
|
173
|
+
return [doResult, { status: "request-error", request: req }];
|
|
174
|
+
}
|
|
175
|
+
const response = doResult.value;
|
|
176
|
+
|
|
177
|
+
const responseFields = {
|
|
178
|
+
HttpMeta: { Response: response, Request: req },
|
|
179
|
+
};
|
|
180
|
+
|
|
181
|
+
const [result] = await M.match<
|
|
182
|
+
GetConfigurationProductsResponseBody,
|
|
183
|
+
| VercelBadRequestError
|
|
184
|
+
| VercelForbiddenError
|
|
185
|
+
| VercelNotFoundError
|
|
186
|
+
| VercelError
|
|
187
|
+
| ResponseValidationError
|
|
188
|
+
| ConnectionError
|
|
189
|
+
| RequestAbortedError
|
|
190
|
+
| RequestTimeoutError
|
|
191
|
+
| InvalidRequestError
|
|
192
|
+
| UnexpectedClientError
|
|
193
|
+
| SDKValidationError
|
|
194
|
+
>(
|
|
195
|
+
M.json(200, GetConfigurationProductsResponseBody$inboundSchema),
|
|
196
|
+
M.jsonErr(400, VercelBadRequestError$inboundSchema),
|
|
197
|
+
M.jsonErr(401, VercelForbiddenError$inboundSchema),
|
|
198
|
+
M.jsonErr(404, VercelNotFoundError$inboundSchema),
|
|
199
|
+
M.fail([403, "4XX"]),
|
|
200
|
+
M.fail([500, "5XX"]),
|
|
201
|
+
)(response, req, { extraFields: responseFields });
|
|
202
|
+
if (!result.ok) {
|
|
203
|
+
return [result, { status: "complete", request: req, response }];
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
return [result, { status: "complete", request: req, response }];
|
|
207
|
+
}
|
|
@@ -34,6 +34,14 @@ import {
|
|
|
34
34
|
VercelForbiddenError,
|
|
35
35
|
VercelForbiddenError$inboundSchema,
|
|
36
36
|
} from "../models/vercelforbiddenerror.js";
|
|
37
|
+
import {
|
|
38
|
+
VercelNotFoundError,
|
|
39
|
+
VercelNotFoundError$inboundSchema,
|
|
40
|
+
} from "../models/vercelnotfounderror.js";
|
|
41
|
+
import {
|
|
42
|
+
VercelRateLimitError,
|
|
43
|
+
VercelRateLimitError$inboundSchema,
|
|
44
|
+
} from "../models/vercelratelimiterror.js";
|
|
37
45
|
import { APICall, APIPromise } from "../types/async.js";
|
|
38
46
|
import { Result } from "../types/fp.js";
|
|
39
47
|
|
|
@@ -52,6 +60,8 @@ export function projectsCreateProject(
|
|
|
52
60
|
CreateProjectResponseBody,
|
|
53
61
|
| VercelBadRequestError
|
|
54
62
|
| VercelForbiddenError
|
|
63
|
+
| VercelNotFoundError
|
|
64
|
+
| VercelRateLimitError
|
|
55
65
|
| VercelError
|
|
56
66
|
| ResponseValidationError
|
|
57
67
|
| ConnectionError
|
|
@@ -79,6 +89,8 @@ async function $do(
|
|
|
79
89
|
CreateProjectResponseBody,
|
|
80
90
|
| VercelBadRequestError
|
|
81
91
|
| VercelForbiddenError
|
|
92
|
+
| VercelNotFoundError
|
|
93
|
+
| VercelRateLimitError
|
|
82
94
|
| VercelError
|
|
83
95
|
| ResponseValidationError
|
|
84
96
|
| ConnectionError
|
|
@@ -151,7 +163,19 @@ async function $do(
|
|
|
151
163
|
|
|
152
164
|
const doResult = await client._do(req, {
|
|
153
165
|
context,
|
|
154
|
-
errorCodes: [
|
|
166
|
+
errorCodes: [
|
|
167
|
+
"400",
|
|
168
|
+
"401",
|
|
169
|
+
"402",
|
|
170
|
+
"403",
|
|
171
|
+
"404",
|
|
172
|
+
"409",
|
|
173
|
+
"428",
|
|
174
|
+
"429",
|
|
175
|
+
"4XX",
|
|
176
|
+
"500",
|
|
177
|
+
"5XX",
|
|
178
|
+
],
|
|
155
179
|
retryConfig: context.retryConfig,
|
|
156
180
|
retryCodes: context.retryCodes,
|
|
157
181
|
});
|
|
@@ -168,6 +192,8 @@ async function $do(
|
|
|
168
192
|
CreateProjectResponseBody,
|
|
169
193
|
| VercelBadRequestError
|
|
170
194
|
| VercelForbiddenError
|
|
195
|
+
| VercelNotFoundError
|
|
196
|
+
| VercelRateLimitError
|
|
171
197
|
| VercelError
|
|
172
198
|
| ResponseValidationError
|
|
173
199
|
| ConnectionError
|
|
@@ -180,8 +206,10 @@ async function $do(
|
|
|
180
206
|
M.json(200, CreateProjectResponseBody$inboundSchema),
|
|
181
207
|
M.jsonErr(400, VercelBadRequestError$inboundSchema),
|
|
182
208
|
M.jsonErr(401, VercelForbiddenError$inboundSchema),
|
|
209
|
+
M.jsonErr(404, VercelNotFoundError$inboundSchema),
|
|
210
|
+
M.jsonErr(429, VercelRateLimitError$inboundSchema),
|
|
183
211
|
M.fail([402, 403, 409, 428, "4XX"]),
|
|
184
|
-
M.fail("5XX"),
|
|
212
|
+
M.fail([500, "5XX"]),
|
|
185
213
|
)(response, req, { extraFields: responseFields });
|
|
186
214
|
if (!result.ok) {
|
|
187
215
|
return [result, { status: "complete", request: req, response }];
|
|
@@ -34,6 +34,14 @@ import {
|
|
|
34
34
|
VercelForbiddenError,
|
|
35
35
|
VercelForbiddenError$inboundSchema,
|
|
36
36
|
} from "../models/vercelforbiddenerror.js";
|
|
37
|
+
import {
|
|
38
|
+
VercelNotFoundError,
|
|
39
|
+
VercelNotFoundError$inboundSchema,
|
|
40
|
+
} from "../models/vercelnotfounderror.js";
|
|
41
|
+
import {
|
|
42
|
+
VercelRateLimitError,
|
|
43
|
+
VercelRateLimitError$inboundSchema,
|
|
44
|
+
} from "../models/vercelratelimiterror.js";
|
|
37
45
|
import { APICall, APIPromise } from "../types/async.js";
|
|
38
46
|
import { Result } from "../types/fp.js";
|
|
39
47
|
|
|
@@ -52,6 +60,8 @@ export function projectsCreateProjectEnv(
|
|
|
52
60
|
CreateProjectEnvResponseBody,
|
|
53
61
|
| VercelBadRequestError
|
|
54
62
|
| VercelForbiddenError
|
|
63
|
+
| VercelNotFoundError
|
|
64
|
+
| VercelRateLimitError
|
|
55
65
|
| VercelError
|
|
56
66
|
| ResponseValidationError
|
|
57
67
|
| ConnectionError
|
|
@@ -79,6 +89,8 @@ async function $do(
|
|
|
79
89
|
CreateProjectEnvResponseBody,
|
|
80
90
|
| VercelBadRequestError
|
|
81
91
|
| VercelForbiddenError
|
|
92
|
+
| VercelNotFoundError
|
|
93
|
+
| VercelRateLimitError
|
|
82
94
|
| VercelError
|
|
83
95
|
| ResponseValidationError
|
|
84
96
|
| ConnectionError
|
|
@@ -159,7 +171,18 @@ async function $do(
|
|
|
159
171
|
|
|
160
172
|
const doResult = await client._do(req, {
|
|
161
173
|
context,
|
|
162
|
-
errorCodes: [
|
|
174
|
+
errorCodes: [
|
|
175
|
+
"400",
|
|
176
|
+
"401",
|
|
177
|
+
"402",
|
|
178
|
+
"403",
|
|
179
|
+
"404",
|
|
180
|
+
"409",
|
|
181
|
+
"429",
|
|
182
|
+
"4XX",
|
|
183
|
+
"500",
|
|
184
|
+
"5XX",
|
|
185
|
+
],
|
|
163
186
|
retryConfig: context.retryConfig,
|
|
164
187
|
retryCodes: context.retryCodes,
|
|
165
188
|
});
|
|
@@ -176,6 +199,8 @@ async function $do(
|
|
|
176
199
|
CreateProjectEnvResponseBody,
|
|
177
200
|
| VercelBadRequestError
|
|
178
201
|
| VercelForbiddenError
|
|
202
|
+
| VercelNotFoundError
|
|
203
|
+
| VercelRateLimitError
|
|
179
204
|
| VercelError
|
|
180
205
|
| ResponseValidationError
|
|
181
206
|
| ConnectionError
|
|
@@ -188,8 +213,10 @@ async function $do(
|
|
|
188
213
|
M.json(201, CreateProjectEnvResponseBody$inboundSchema),
|
|
189
214
|
M.jsonErr(400, VercelBadRequestError$inboundSchema),
|
|
190
215
|
M.jsonErr(401, VercelForbiddenError$inboundSchema),
|
|
216
|
+
M.jsonErr(404, VercelNotFoundError$inboundSchema),
|
|
217
|
+
M.jsonErr(429, VercelRateLimitError$inboundSchema),
|
|
191
218
|
M.fail([402, 403, 409, "4XX"]),
|
|
192
|
-
M.fail("5XX"),
|
|
219
|
+
M.fail([500, "5XX"]),
|
|
193
220
|
)(response, req, { extraFields: responseFields });
|
|
194
221
|
if (!result.ok) {
|
|
195
222
|
return [result, { status: "complete", request: req, response }];
|
|
@@ -34,6 +34,14 @@ import {
|
|
|
34
34
|
VercelForbiddenError,
|
|
35
35
|
VercelForbiddenError$inboundSchema,
|
|
36
36
|
} from "../models/vercelforbiddenerror.js";
|
|
37
|
+
import {
|
|
38
|
+
VercelNotFoundError,
|
|
39
|
+
VercelNotFoundError$inboundSchema,
|
|
40
|
+
} from "../models/vercelnotfounderror.js";
|
|
41
|
+
import {
|
|
42
|
+
VercelRateLimitError,
|
|
43
|
+
VercelRateLimitError$inboundSchema,
|
|
44
|
+
} from "../models/vercelratelimiterror.js";
|
|
37
45
|
import { APICall, APIPromise } from "../types/async.js";
|
|
38
46
|
import { Result } from "../types/fp.js";
|
|
39
47
|
|
|
@@ -52,6 +60,8 @@ export function projectsEditProjectEnv(
|
|
|
52
60
|
EditProjectEnvResponseBody,
|
|
53
61
|
| VercelBadRequestError
|
|
54
62
|
| VercelForbiddenError
|
|
63
|
+
| VercelNotFoundError
|
|
64
|
+
| VercelRateLimitError
|
|
55
65
|
| VercelError
|
|
56
66
|
| ResponseValidationError
|
|
57
67
|
| ConnectionError
|
|
@@ -79,6 +89,8 @@ async function $do(
|
|
|
79
89
|
EditProjectEnvResponseBody,
|
|
80
90
|
| VercelBadRequestError
|
|
81
91
|
| VercelForbiddenError
|
|
92
|
+
| VercelNotFoundError
|
|
93
|
+
| VercelRateLimitError
|
|
82
94
|
| VercelError
|
|
83
95
|
| ResponseValidationError
|
|
84
96
|
| ConnectionError
|
|
@@ -162,7 +174,7 @@ async function $do(
|
|
|
162
174
|
|
|
163
175
|
const doResult = await client._do(req, {
|
|
164
176
|
context,
|
|
165
|
-
errorCodes: ["400", "401", "403", "409", "4XX", "5XX"],
|
|
177
|
+
errorCodes: ["400", "401", "403", "404", "409", "429", "4XX", "500", "5XX"],
|
|
166
178
|
retryConfig: context.retryConfig,
|
|
167
179
|
retryCodes: context.retryCodes,
|
|
168
180
|
});
|
|
@@ -179,6 +191,8 @@ async function $do(
|
|
|
179
191
|
EditProjectEnvResponseBody,
|
|
180
192
|
| VercelBadRequestError
|
|
181
193
|
| VercelForbiddenError
|
|
194
|
+
| VercelNotFoundError
|
|
195
|
+
| VercelRateLimitError
|
|
182
196
|
| VercelError
|
|
183
197
|
| ResponseValidationError
|
|
184
198
|
| ConnectionError
|
|
@@ -191,8 +205,10 @@ async function $do(
|
|
|
191
205
|
M.json(200, EditProjectEnvResponseBody$inboundSchema),
|
|
192
206
|
M.jsonErr(400, VercelBadRequestError$inboundSchema),
|
|
193
207
|
M.jsonErr(401, VercelForbiddenError$inboundSchema),
|
|
208
|
+
M.jsonErr(404, VercelNotFoundError$inboundSchema),
|
|
209
|
+
M.jsonErr(429, VercelRateLimitError$inboundSchema),
|
|
194
210
|
M.fail([403, 409, "4XX"]),
|
|
195
|
-
M.fail("5XX"),
|
|
211
|
+
M.fail([500, "5XX"]),
|
|
196
212
|
)(response, req, { extraFields: responseFields });
|
|
197
213
|
if (!result.ok) {
|
|
198
214
|
return [result, { status: "complete", request: req, response }];
|
package/src/lib/config.ts
CHANGED
|
@@ -61,7 +61,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
|
|
|
61
61
|
export const SDK_METADATA = {
|
|
62
62
|
language: "typescript",
|
|
63
63
|
openapiDocVersion: "0.0.1",
|
|
64
|
-
sdkVersion: "1.10.
|
|
65
|
-
genVersion: "2.
|
|
66
|
-
userAgent: "speakeasy-sdk/typescript 1.10.
|
|
64
|
+
sdkVersion: "1.10.5",
|
|
65
|
+
genVersion: "2.686.7",
|
|
66
|
+
userAgent: "speakeasy-sdk/typescript 1.10.5 2.686.7 0.0.1 @vercel/sdk",
|
|
67
67
|
} as const;
|
package/src/lib/security.ts
CHANGED
|
@@ -83,7 +83,10 @@ type SecurityInputOAuth2 = {
|
|
|
83
83
|
type SecurityInputOAuth2ClientCredentials = {
|
|
84
84
|
type: "oauth2:client_credentials";
|
|
85
85
|
value:
|
|
86
|
-
| {
|
|
86
|
+
| {
|
|
87
|
+
clientID?: string | undefined;
|
|
88
|
+
clientSecret?: string | undefined;
|
|
89
|
+
}
|
|
87
90
|
| null
|
|
88
91
|
| string
|
|
89
92
|
| undefined;
|