Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
398 changes: 356 additions & 42 deletions .speakeasy/gen.lock

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion .speakeasy/gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ generation:
generateNewTests: true
skipResponseBodyAssertions: false
typescript:
version: 1.10.6
version: 1.10.7
additionalDependencies:
dependencies: {}
devDependencies: {}
Expand Down
96 changes: 96 additions & 0 deletions .speakeasy/tests.arazzo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6296,3 +6296,99 @@ workflows:
type: simple
x-speakeasy-test-group: integrations
x-speakeasy-test-rebuild: true
- workflowId: get_/v1/integrations/integration/{integrationIdOrSlug}/products/{productIdOrSlug}/plans
steps:
- stepId: test
operationId: get_/v1/integrations/integration/{integrationIdOrSlug}/products/{productIdOrSlug}/plans
parameters:
- name: integrationIdOrSlug
in: path
value: <value>
- name: productIdOrSlug
in: path
value: <value>
successCriteria:
- condition: $statusCode == 200
- condition: $response.header.Content-Type == application/json
- context: $response.body
condition: |
{
"plans": [
{
"type": "prepayment",
"id": "\u003cid\u003e",
"name": "\u003cvalue\u003e",
"scope": "resource",
"description": "cope unless hierarchy versus ouch more regarding tabulate",
"paymentMethodRequired": false
}
]
}
type: simple
x-speakeasy-test-group: Vercel
x-speakeasy-test-rebuild: true
- workflowId: createIntegrationStoreDirect
steps:
- stepId: test
operationId: createIntegrationStoreDirect
parameters:
- name: teamId
in: query
value: team_1a2b3c4d5e6f7g8h9i0j1k2l
- name: slug
in: query
value: my-team-url-slug
requestBody:
contentType: application/json
payload:
billingPlanId: bp_abc123def456
externalId: dev-db-001
integrationConfigurationId: icfg_cuwj0AdCdH3BwWT4LPijCC7t
integrationProductIdOrSlug: iap_postgres_db
metadata:
environment: development
project: my-app
tags:
- database
- postgres
name: my-dev-database
paymentMethodId: pm_1AbcDefGhiJklMno
prepaymentAmountCents: 5000
protocolSettings:
experimentation:
edgeConfigSyncingEnabled: true
source: api
successCriteria:
- condition: $statusCode == 200
- condition: $response.header.Content-Type == application/json
- context: $response.body
condition: |
{
"store": {
"projectsMetadata": [
{
"id": "\u003cid\u003e",
"projectId": "\u003cid\u003e",
"name": "\u003cvalue\u003e",
"environments": [],
"envVarPrefix": "\u003cvalue\u003e",
"environmentVariables": [
"\u003cvalue 1\u003e",
"\u003cvalue 2\u003e"
]
}
],
"usageQuotaExceeded": true,
"status": "available",
"externalResourceId": "\u003cid\u003e",
"product": {
"value": {
"__@BRAND@7822": {}
}
},
"secrets": []
}
}
type: simple
x-speakeasy-test-group: integrations
x-speakeasy-test-rebuild: true
14 changes: 7 additions & 7 deletions .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
speakeasyVersion: 1.606.3
speakeasyVersion: 1.609.0
sources:
vercel-OAS:
sourceNamespace: vercel-oas
sourceRevisionDigest: sha256:262c42fd38ac0c6bc1257cac0868585776324bca611424aad7d10ee9c48b488e
sourceBlobDigest: sha256:efe36ab1258fc06ae255530750f948652c36774e9bac9ca4b1216ad3116f91f1
sourceRevisionDigest: sha256:863c453ea7e270c6702f66a8bb0efabc4a124931a789ac0a0db09eb08fc5a3b7
sourceBlobDigest: sha256:e6b3f049c2eaacc334c581863343420a97a0e0ef9a9987c40417339658a030b4
tags:
- latest
- speakeasy-sdk-regen-1755907635
- speakeasy-sdk-regen-1756917845
- 0.0.1
targets:
vercel:
source: vercel-OAS
sourceNamespace: vercel-oas
sourceRevisionDigest: sha256:262c42fd38ac0c6bc1257cac0868585776324bca611424aad7d10ee9c48b488e
sourceBlobDigest: sha256:efe36ab1258fc06ae255530750f948652c36774e9bac9ca4b1216ad3116f91f1
sourceRevisionDigest: sha256:863c453ea7e270c6702f66a8bb0efabc4a124931a789ac0a0db09eb08fc5a3b7
sourceBlobDigest: sha256:e6b3f049c2eaacc334c581863343420a97a0e0ef9a9987c40417339658a030b4
codeSamplesNamespace: vercel-oas-typescript-code-samples
codeSamplesRevisionDigest: sha256:500af4532c8a6ea5ebb2f1e744ebd83023c173477daad578cdd5532fef623654
codeSamplesRevisionDigest: sha256:2c3a2906b6aac9ee2807d438bebc972bb81a151e70cf7fadf633f252aab53787
workflow:
workflowVersion: 1.0.0
speakeasyVersion: latest
Expand Down
103 changes: 58 additions & 45 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -198,11 +198,13 @@ const vercel = new Vercel({
});

async function run() {
const result = await vercel.accessGroups.readAccessGroup({
idOrName: "ag_1a2b3c4d5e6f7g8h9i0j",
teamId: "team_1a2b3c4d5e6f7g8h9i0j1k2l",
slug: "my-team-url-slug",
});
const result = await vercel
.getV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlans(
{
integrationIdOrSlug: "<value>",
productIdOrSlug: "<value>",
},
);

console.log(result);
}
Expand Down Expand Up @@ -403,10 +405,12 @@ run();
### [integrations](docs/sdks/integrations/README.md)

* [updateIntegrationDeploymentAction](docs/sdks/integrations/README.md#updateintegrationdeploymentaction) - Update deployment integration action
* [connectIntegrationResourceToProject](docs/sdks/integrations/README.md#connectintegrationresourcetoproject) - Connect integration resource to project
* [getConfigurations](docs/sdks/integrations/README.md#getconfigurations) - Get configurations for the authenticated user or team
* [getConfiguration](docs/sdks/integrations/README.md#getconfiguration) - Retrieve an integration configuration
* [deleteConfiguration](docs/sdks/integrations/README.md#deleteconfiguration) - Delete an integration configuration
* [getConfigurationProducts](docs/sdks/integrations/README.md#getconfigurationproducts) - List products for integration configuration
* [createIntegrationStoreDirect](docs/sdks/integrations/README.md#createintegrationstoredirect) - Create integration store (free and paid plans)

### [logDrains](docs/sdks/logdrains/README.md)

Expand Down Expand Up @@ -517,6 +521,9 @@ run();
* [getAuthUser](docs/sdks/user/README.md#getauthuser) - Get the User
* [requestDelete](docs/sdks/user/README.md#requestdelete) - Delete User Account

### [Vercel SDK](docs/sdks/vercel/README.md)

* [getV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlans](docs/sdks/vercel/README.md#getv1integrationsintegrationintegrationidorslugproductsproductidorslugplans)

### [webhooks](docs/sdks/webhooks/README.md)

Expand Down Expand Up @@ -626,6 +633,9 @@ To read more about standalone functions, check [FUNCTIONS.md](./FUNCTIONS.md).
- [`environmentGetV9ProjectsIdOrNameCustomEnvironments`](docs/sdks/environment/README.md#getv9projectsidornamecustomenvironments) - Retrieve custom environments
- [`environmentRemoveCustomEnvironment`](docs/sdks/environment/README.md#removecustomenvironment) - Remove a custom environment
- [`environmentUpdateCustomEnvironment`](docs/sdks/environment/README.md#updatecustomenvironment) - Update a custom environment
- [`getV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlans`](docs/sdks/vercel/README.md#getv1integrationsintegrationintegrationidorslugproductsproductidorslugplans)
- [`integrationsConnectIntegrationResourceToProject`](docs/sdks/integrations/README.md#connectintegrationresourcetoproject) - Connect integration resource to project
- [`integrationsCreateIntegrationStoreDirect`](docs/sdks/integrations/README.md#createintegrationstoredirect) - Create integration store (free and paid plans)
- [`integrationsDeleteConfiguration`](docs/sdks/integrations/README.md#deleteconfiguration) - Delete an integration configuration
- [`integrationsGetConfiguration`](docs/sdks/integrations/README.md#getconfiguration) - Retrieve an integration configuration
- [`integrationsGetConfigurationProducts`](docs/sdks/integrations/README.md#getconfigurationproducts) - List products for integration configuration
Expand Down Expand Up @@ -773,27 +783,28 @@ To change the default retry strategy for a single API call, simply provide a ret
```typescript
import { Vercel } from "@vercel/sdk";

const vercel = new Vercel({
bearerToken: "<YOUR_BEARER_TOKEN_HERE>",
});
const vercel = new Vercel();

async function run() {
const result = await vercel.accessGroups.readAccessGroup({
idOrName: "ag_1a2b3c4d5e6f7g8h9i0j",
teamId: "team_1a2b3c4d5e6f7g8h9i0j1k2l",
slug: "my-team-url-slug",
}, {
retries: {
strategy: "backoff",
backoff: {
initialInterval: 1,
maxInterval: 50,
exponent: 1.1,
maxElapsedTime: 100,
const result = await vercel
.getV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlans(
{
integrationIdOrSlug: "<value>",
productIdOrSlug: "<value>",
},
retryConnectionErrors: false,
},
});
{
retries: {
strategy: "backoff",
backoff: {
initialInterval: 1,
maxInterval: 50,
exponent: 1.1,
maxElapsedTime: 100,
},
retryConnectionErrors: false,
},
},
);

console.log(result);
}
Expand All @@ -817,15 +828,16 @@ const vercel = new Vercel({
},
retryConnectionErrors: false,
},
bearerToken: "<YOUR_BEARER_TOKEN_HERE>",
});

async function run() {
const result = await vercel.accessGroups.readAccessGroup({
idOrName: "ag_1a2b3c4d5e6f7g8h9i0j",
teamId: "team_1a2b3c4d5e6f7g8h9i0j1k2l",
slug: "my-team-url-slug",
});
const result = await vercel
.getV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlans(
{
integrationIdOrSlug: "<value>",
productIdOrSlug: "<value>",
},
);

console.log(result);
}
Expand Down Expand Up @@ -855,17 +867,17 @@ import { Vercel } from "@vercel/sdk";
import { VercelBadRequestError } from "@vercel/sdk/models/vercelbadrequesterror.js";
import { VercelError } from "@vercel/sdk/models/vercelerror.js.js";

const vercel = new Vercel({
bearerToken: "<YOUR_BEARER_TOKEN_HERE>",
});
const vercel = new Vercel();

async function run() {
try {
const result = await vercel.accessGroups.readAccessGroup({
idOrName: "ag_1a2b3c4d5e6f7g8h9i0j",
teamId: "team_1a2b3c4d5e6f7g8h9i0j1k2l",
slug: "my-team-url-slug",
});
const result = await vercel
.getV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlans(
{
integrationIdOrSlug: "<value>",
productIdOrSlug: "<value>",
},
);

console.log(result);
} catch (error) {
Expand Down Expand Up @@ -907,8 +919,8 @@ run();


**Inherit from [`VercelError`](./src/models/vercelerror.ts)**:
* [`VercelNotFoundError`](./src/models/vercelnotfounderror.ts): Status code `404`. Applicable to 106 of 174 methods.*
* [`VercelRateLimitError`](./src/models/vercelratelimiterror.ts): . Status code `429`. Applicable to 4 of 174 methods.*
* [`VercelNotFoundError`](./src/models/vercelnotfounderror.ts): Status code `404`. Applicable to 109 of 177 methods.*
* [`VercelRateLimitError`](./src/models/vercelratelimiterror.ts): . Status code `429`. Applicable to 5 of 177 methods.*
* [`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.

</details>
Expand All @@ -927,15 +939,16 @@ import { Vercel } from "@vercel/sdk";

const vercel = new Vercel({
serverURL: "https://api.vercel.com",
bearerToken: "<YOUR_BEARER_TOKEN_HERE>",
});

async function run() {
const result = await vercel.accessGroups.readAccessGroup({
idOrName: "ag_1a2b3c4d5e6f7g8h9i0j",
teamId: "team_1a2b3c4d5e6f7g8h9i0j1k2l",
slug: "my-team-url-slug",
});
const result = await vercel
.getV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlans(
{
integrationIdOrSlug: "<value>",
productIdOrSlug: "<value>",
},
);

console.log(result);
}
Expand Down
12 changes: 11 additions & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -508,4 +508,14 @@ Based on:
### Generated
- [typescript v1.10.6] .
### Releases
- [NPM v1.10.6] https://www.npmjs.com/package/@vercel/sdk/v/1.10.6 - .
- [NPM v1.10.6] https://www.npmjs.com/package/@vercel/sdk/v/1.10.6 - .

## 2025-09-03 16:43:39
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.609.0 (2.692.0) https://github.com/speakeasy-api/speakeasy
### Generated
- [typescript v1.10.7] .
### Releases
- [NPM v1.10.7] https://www.npmjs.com/package/@vercel/sdk/v/1.10.7 - .
20 changes: 20 additions & 0 deletions docs/models/acceptedpolicies.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# AcceptedPolicies

## Example Usage

```typescript
import { AcceptedPolicies } from "@vercel/sdk/models/acceptprojecttransferrequestop.js";

let value: AcceptedPolicies = {
eula: new Date("2024-03-17T08:03:51.448Z"),
privacy: new Date("2025-01-02T10:20:13.120Z"),
};
```

## Fields

| Field | Type | Required | Description |
| ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- |
| `eula` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_check_mark: | N/A |
| `privacy` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_check_mark: | N/A |
| `additionalProperties` | Record<string, [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date)> | :heavy_minus_sign: | N/A |
9 changes: 5 additions & 4 deletions docs/models/acceptprojecttransferrequestrequestbody.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ let value: AcceptProjectTransferRequestRequestBody = {

## Fields

| Field | Type | Required | Description | Example |
| ------------------------------------------------ | ------------------------------------------------ | ------------------------------------------------ | ------------------------------------------------ | ------------------------------------------------ |
| `newProjectName` | *string* | :heavy_minus_sign: | The desired name for the project | a-project-name |
| `paidFeatures` | [models.PaidFeatures](../models/paidfeatures.md) | :heavy_minus_sign: | N/A | |
| Field | Type | Required | Description | Example |
| ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | ------------------------------------------------------------------------ |
| `newProjectName` | *string* | :heavy_minus_sign: | The desired name for the project | a-project-name |
| `paidFeatures` | [models.PaidFeatures](../models/paidfeatures.md) | :heavy_minus_sign: | N/A | |
| `acceptedPolicies` | Record<string, [models.AcceptedPolicies](../models/acceptedpolicies.md)> | :heavy_minus_sign: | N/A | |
Loading