diff --git a/.gitignore b/.gitignore index 434543b3..542e4237 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ +/.speakeasy/reports /react-query /models /models/errors diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock index 859f8363..4d634574 100644 --- a/.speakeasy/gen.lock +++ b/.speakeasy/gen.lock @@ -1,12 +1,12 @@ lockVersion: 2.0.0 id: 79567c4a-05f9-4d65-864d-dfe107aa4e9d management: - docChecksum: 197e1b3e71481df542d00fe90e09e782 + docChecksum: 53b3a2c569506446ace146aa7cf48d28 docVersion: 0.0.1 - speakeasyVersion: 1.460.6 - generationVersion: 2.484.4 - releaseVersion: 1.2.1 - configChecksum: 0e20c0a7fc7915461e9b03812bc4ccb9 + speakeasyVersion: 1.463.1 + generationVersion: 2.486.6 + releaseVersion: 1.2.2 + configChecksum: f8999a74e1a63f3c167f0ca6e1c8db53 repoURL: https://github.com/vercel/sdk.git installationURL: https://github.com/vercel/sdk published: true @@ -3951,7 +3951,7 @@ examples: slug: "my-team-url-slug" responses: "200": - application/json: {"domain": {"suffix": true, "verified": true, "nameservers": ["ns1.nameserver.net", "ns2.nameserver.net"], "intendedNameservers": ["ns1.vercel-dns.com", "ns2.vercel-dns.com"], "customNameservers": ["ns1.nameserver.net", "ns2.nameserver.net"], "creator": {"username": "vercel_user", "email": "demo@example.com", "id": "ZspSRT4ljIEEmMHgoDwKWDei"}, "teamId": "", "userId": "", "boughtAt": 1613602938882, "createdAt": 1613602938882, "expiresAt": 1613602938882, "id": "EmTbe5CEJyTk2yVAHBUWy4A3sRusca3GCwRjTC1bpeVnt1", "name": "example.com", "orderedAt": 1613602938882, "renew": true, "serviceType": "zeit.world", "transferredAt": 1613602938882, "transferStartedAt": 1613602938882}} + application/json: {"domain": {"suffix": true, "verified": true, "nameservers": ["ns1.nameserver.net", "ns2.nameserver.net"], "intendedNameservers": ["ns1.vercel-dns.com", "ns2.vercel-dns.com"], "customNameservers": ["ns1.nameserver.net", "ns2.nameserver.net"], "creator": {"username": "vercel_user", "email": "demo@example.com", "id": "ZspSRT4ljIEEmMHgoDwKWDei"}, "teamId": "", "boughtAt": 1613602938882, "createdAt": 1613602938882, "expiresAt": 1613602938882, "id": "EmTbe5CEJyTk2yVAHBUWy4A3sRusca3GCwRjTC1bpeVnt1", "name": "example.com", "orderedAt": 1613602938882, "renew": true, "serviceType": "zeit.world", "transferredAt": 1613602938882, "transferStartedAt": 1613602938882, "userId": ""}} "400": application/json: {} "401": diff --git a/.speakeasy/gen.yaml b/.speakeasy/gen.yaml index 0bf97802..a431ebde 100644 --- a/.speakeasy/gen.yaml +++ b/.speakeasy/gen.yaml @@ -16,7 +16,7 @@ generation: oAuth2ClientCredentialsEnabled: false oAuth2PasswordEnabled: false typescript: - version: 1.2.1 + version: 1.2.2 additionalDependencies: dependencies: {} devDependencies: {} diff --git a/.speakeasy/workflow.lock b/.speakeasy/workflow.lock index 34e94785..fbc349fa 100644 --- a/.speakeasy/workflow.lock +++ b/.speakeasy/workflow.lock @@ -1,21 +1,21 @@ -speakeasyVersion: 1.460.6 +speakeasyVersion: 1.463.1 sources: vercel-OAS: sourceNamespace: vercel-oas - sourceRevisionDigest: sha256:89f884ef6b932849af515bfc581a672a28baedb345e2dca3997cbf590d8cddba - sourceBlobDigest: sha256:ed2afad145ab2f50fd92a3192cfea740dd9da08a0ace088fb94a93eb916bf1f6 + sourceRevisionDigest: sha256:97cbbce568f6b86d68c6fd972b584dd0ec7e1bbed47d7ebf2bed95aa7ae06d5b + sourceBlobDigest: sha256:90ecea7dfccdc0744d8c11d16c531a9e8a8e37506f566a9f76f743994271ec20 tags: - latest - - speakeasy-sdk-regen-1735916911 + - speakeasy-sdk-regen-1736200310 - 0.0.1 targets: vercel: source: vercel-OAS sourceNamespace: vercel-oas - sourceRevisionDigest: sha256:89f884ef6b932849af515bfc581a672a28baedb345e2dca3997cbf590d8cddba - sourceBlobDigest: sha256:ed2afad145ab2f50fd92a3192cfea740dd9da08a0ace088fb94a93eb916bf1f6 + sourceRevisionDigest: sha256:97cbbce568f6b86d68c6fd972b584dd0ec7e1bbed47d7ebf2bed95aa7ae06d5b + sourceBlobDigest: sha256:90ecea7dfccdc0744d8c11d16c531a9e8a8e37506f566a9f76f743994271ec20 codeSamplesNamespace: vercel-oas-typescript-code-samples - codeSamplesRevisionDigest: sha256:a70eefb65a4b023e978de963f4752c02924820e3514f3d3a0f89ab45a717c429 + codeSamplesRevisionDigest: sha256:21a1dd643d957187fe51196844c5714a6b5ff12d1eac1fc36703af94c34c0075 workflow: workflowVersion: 1.0.0 speakeasyVersion: latest diff --git a/RELEASES.md b/RELEASES.md index eca4df3d..7558805b 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -108,4 +108,14 @@ Based on: ### Generated - [typescript v1.2.1] . ### Releases -- [NPM v1.2.1] https://www.npmjs.com/package/@vercel/sdk/v/1.2.1 - . \ No newline at end of file +- [NPM v1.2.1] https://www.npmjs.com/package/@vercel/sdk/v/1.2.1 - . + +## 2025-01-06 23:17:31 +### Changes +Based on: +- OpenAPI Doc +- Speakeasy CLI 1.463.1 (2.486.6) https://github.com/speakeasy-api/speakeasy +### Generated +- [typescript v1.2.2] . +### Releases +- [NPM v1.2.2] https://www.npmjs.com/package/@vercel/sdk/v/1.2.2 - . \ No newline at end of file diff --git a/docs/models/active.md b/docs/models/active.md index a4f0067d..fdfe3204 100644 --- a/docs/models/active.md +++ b/docs/models/active.md @@ -10,7 +10,7 @@ let value: Active = { projectKey: "", id: "", version: 1902.61, - updatedAt: "1735916182190", + updatedAt: "1736204728913", firewallEnabled: false, crs: { sd: { diff --git a/docs/models/blockedduetooveragetype.md b/docs/models/blockedduetooveragetype.md index c36bfe98..648d7c57 100644 --- a/docs/models/blockedduetooveragetype.md +++ b/docs/models/blockedduetooveragetype.md @@ -11,5 +11,5 @@ let value: BlockedDueToOverageType = "buildMinute"; ## Values ```typescript -"analyticsUsage" | "artifacts" | "bandwidth" | "blobStores" | "blobTotalAdvancedRequests" | "blobTotalAvgSizeInBytes" | "blobTotalGetResponseObjectSizeInBytes" | "blobTotalSimpleRequests" | "buildMinute" | "dataCacheRead" | "dataCacheRevalidation" | "dataCacheWrite" | "edgeConfigRead" | "edgeConfigWrite" | "edgeFunctionExecutionUnits" | "edgeMiddlewareInvocations" | "edgeRequestAdditionalCpuDuration" | "edgeRequest" | "fastDataTransfer" | "fastOriginTransfer" | "functionDuration" | "functionInvocation" | "logDrainsVolume" | "monitoringMetric" | "observabilityEvent" | "postgresComputeTime" | "postgresDataStorage" | "postgresDataTransfer" | "postgresDatabase" | "postgresWrittenData" | "serverlessFunctionExecution" | "sourceImages" | "storageRedisTotalBandwidthInBytes" | "storageRedisTotalCommands" | "storageRedisTotalDailyAvgStorageInBytes" | "storageRedisTotalDatabases" | "wafOwaspExcessBytes" | "wafOwaspRequests" | "wafRateLimitRequest" | "webAnalyticsEvent" +"analyticsUsage" | "artifacts" | "bandwidth" | "blobStores" | "blobTotalAdvancedRequests" | "blobTotalAvgSizeInBytes" | "blobTotalGetResponseObjectSizeInBytes" | "blobTotalSimpleRequests" | "buildMinute" | "dataCacheRead" | "dataCacheRevalidation" | "dataCacheWrite" | "edgeConfigRead" | "edgeConfigWrite" | "edgeFunctionExecutionUnits" | "edgeMiddlewareInvocations" | "edgeRequestAdditionalCpuDuration" | "edgeRequest" | "elasticConcurrencyBuildSlots" | "fastDataTransfer" | "fastOriginTransfer" | "functionDuration" | "functionInvocation" | "logDrainsVolume" | "monitoringMetric" | "observabilityEvent" | "postgresComputeTime" | "postgresDataStorage" | "postgresDataTransfer" | "postgresDatabase" | "postgresWrittenData" | "serverlessFunctionExecution" | "sourceImages" | "storageRedisTotalBandwidthInBytes" | "storageRedisTotalCommands" | "storageRedisTotalDailyAvgStorageInBytes" | "storageRedisTotalDatabases" | "wafOwaspExcessBytes" | "wafOwaspRequests" | "wafRateLimitRequest" | "webAnalyticsEvent" ``` \ No newline at end of file diff --git a/docs/models/canceldeploymentdeploymentsstatus.md b/docs/models/canceldeploymentdeploymentsstatus.md index 52c1583d..9aa805f0 100644 --- a/docs/models/canceldeploymentdeploymentsstatus.md +++ b/docs/models/canceldeploymentdeploymentsstatus.md @@ -5,11 +5,11 @@ ```typescript import { CancelDeploymentDeploymentsStatus } from "@vercel/sdk/models/canceldeploymentop.js"; -let value: CancelDeploymentDeploymentsStatus = "error"; +let value: CancelDeploymentDeploymentsStatus = "pending"; ``` ## Values ```typescript -"pending" | "ready" | "error" | "skipped" | "timeout" +"error" | "skipped" | "pending" | "ready" | "timeout" ``` \ No newline at end of file diff --git a/docs/models/checkdomainpriceresponsebody.md b/docs/models/checkdomainpriceresponsebody.md index 8e2307e6..787d0cce 100644 --- a/docs/models/checkdomainpriceresponsebody.md +++ b/docs/models/checkdomainpriceresponsebody.md @@ -7,10 +7,15 @@ Successful response which returns the price of the domain and the period. ```typescript import { CheckDomainPriceResponseBody } from "@vercel/sdk/models/checkdomainpriceop.js"; -let value: CheckDomainPriceResponseBody = {}; +let value: CheckDomainPriceResponseBody = { + price: 20, + period: 1, +}; ``` ## Fields -| Field | Type | Required | Description | -| ----------- | ----------- | ----------- | ----------- | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ----------------------------------------------------------------- | ----------------------------------------------------------------- | ----------------------------------------------------------------- | ----------------------------------------------------------------- | ----------------------------------------------------------------- | +| `price` | *number* | :heavy_check_mark: | The domain price in USD. | 20 | +| `period` | *number* | :heavy_check_mark: | The number of years the domain could be held before paying again. | 1 | \ No newline at end of file diff --git a/docs/models/createaccessgroupprojectresponsebody.md b/docs/models/createaccessgroupprojectresponsebody.md index 9ad0463d..2ef49377 100644 --- a/docs/models/createaccessgroupprojectresponsebody.md +++ b/docs/models/createaccessgroupprojectresponsebody.md @@ -10,8 +10,8 @@ let value: CreateAccessGroupProjectResponseBody = { accessGroupId: "", projectId: "", role: "ADMIN", - createdAt: "1708446812092", - updatedAt: "1735857845193", + createdAt: "1708735358443", + updatedAt: "1736146391543", }; ``` diff --git a/docs/models/createdeploymentrequest.md b/docs/models/createdeploymentrequest.md index a5d211e1..e564bd35 100644 --- a/docs/models/createdeploymentrequest.md +++ b/docs/models/createdeploymentrequest.md @@ -49,8 +49,8 @@ let value: CreateDeploymentRequest = { | Field | Type | Required | Description | Example | | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | -| `skipAutoDetectionConfirmation` | [models.SkipAutoDetectionConfirmation](../models/skipautodetectionconfirmation.md) | :heavy_minus_sign: | Allows to skip framework detection so the API would not fail to ask for confirmation | | | `forceNew` | [models.ForceNew](../models/forcenew.md) | :heavy_minus_sign: | Forces a new deployment even if there is a previous similar deployment | | +| `skipAutoDetectionConfirmation` | [models.SkipAutoDetectionConfirmation](../models/skipautodetectionconfirmation.md) | :heavy_minus_sign: | Allows to skip framework detection so the API would not fail to ask for confirmation | | | `teamId` | *string* | :heavy_minus_sign: | The Team identifier to perform the request on behalf of. | team_1a2b3c4d5e6f7g8h9i0j1k2l | | `slug` | *string* | :heavy_minus_sign: | The Team slug to perform the request on behalf of. | my-team-url-slug | | `requestBody` | [models.CreateDeploymentRequestBody](../models/createdeploymentrequestbody.md) | :heavy_check_mark: | N/A | | \ No newline at end of file diff --git a/docs/models/createprojectjobstatus.md b/docs/models/createprojectjobstatus.md index 5ed39b43..3f1634af 100644 --- a/docs/models/createprojectjobstatus.md +++ b/docs/models/createprojectjobstatus.md @@ -5,11 +5,11 @@ ```typescript import { CreateProjectJobStatus } from "@vercel/sdk/models/createprojectop.js"; -let value: CreateProjectJobStatus = "in-progress"; +let value: CreateProjectJobStatus = "failed"; ``` ## Values ```typescript -"pending" | "in-progress" | "succeeded" | "failed" | "skipped" +"succeeded" | "failed" | "skipped" | "pending" | "in-progress" ``` \ No newline at end of file diff --git a/docs/models/createprojectlastaliasrequest.md b/docs/models/createprojectlastaliasrequest.md index 1a01254f..ccec5ce1 100644 --- a/docs/models/createprojectlastaliasrequest.md +++ b/docs/models/createprojectlastaliasrequest.md @@ -8,7 +8,7 @@ import { CreateProjectLastAliasRequest } from "@vercel/sdk/models/createprojecto let value: CreateProjectLastAliasRequest = { fromDeploymentId: "", toDeploymentId: "", - jobStatus: "succeeded", + jobStatus: "skipped", requestedAt: 6817.40, type: "promote", }; diff --git a/docs/models/deployments.md b/docs/models/deployments.md index f8bf7f50..15de98a1 100644 --- a/docs/models/deployments.md +++ b/docs/models/deployments.md @@ -10,6 +10,7 @@ let value: Deployments = { name: "docs", url: "docs-9jaeg38me.vercel.app", created: 1609492210000, + defaultRoute: "/docs", deleted: 1609492210000, undeleted: 1609492210000, softDeletedByRetention: true, @@ -40,6 +41,7 @@ let value: Deployments = { | `name` | *string* | :heavy_check_mark: | The name of the deployment. | docs | | `url` | *string* | :heavy_check_mark: | The URL of the deployment. | docs-9jaeg38me.vercel.app | | `created` | *number* | :heavy_check_mark: | Timestamp of when the deployment got created. | 1609492210000 | +| `defaultRoute` | *string* | :heavy_minus_sign: | The default route that should be used for screenshots and links if configured with microfrontends. | /docs | | `deleted` | *number* | :heavy_minus_sign: | Timestamp of when the deployment got deleted. | 1609492210000 | | `undeleted` | *number* | :heavy_minus_sign: | Timestamp of when the deployment was undeleted. | 1609492210000 | | `softDeletedByRetention` | *boolean* | :heavy_minus_sign: | Optional flag to indicate if the deployment was soft deleted by retention policy. | true | diff --git a/docs/models/getdeploymentsresponsebody.md b/docs/models/getdeploymentsresponsebody.md index 788011c4..51f87446 100644 --- a/docs/models/getdeploymentsresponsebody.md +++ b/docs/models/getdeploymentsresponsebody.md @@ -17,6 +17,7 @@ let value: GetDeploymentsResponseBody = { name: "docs", url: "docs-9jaeg38me.vercel.app", created: 1609492210000, + defaultRoute: "/docs", deleted: 1609492210000, undeleted: 1609492210000, softDeletedByRetention: true, diff --git a/docs/models/getdomaindomain.md b/docs/models/getdomaindomain.md index c93b0791..2129f5bb 100644 --- a/docs/models/getdomaindomain.md +++ b/docs/models/getdomaindomain.md @@ -26,7 +26,6 @@ let value: GetDomainDomain = { id: "ZspSRT4ljIEEmMHgoDwKWDei", }, teamId: "", - userId: "", boughtAt: 1613602938882, createdAt: 1613602938882, expiresAt: 1613602938882, @@ -37,6 +36,7 @@ let value: GetDomainDomain = { serviceType: "zeit.world", transferredAt: 1613602938882, transferStartedAt: 1613602938882, + userId: "", }; ``` @@ -51,7 +51,6 @@ let value: GetDomainDomain = { | `customNameservers` | *string*[] | :heavy_minus_sign: | A list of custom nameservers for the domain to point to. Only applies to domains purchased with Vercel. | [
"ns1.nameserver.net",
"ns2.nameserver.net"
] | | `creator` | [models.GetDomainCreator](../models/getdomaincreator.md) | :heavy_check_mark: | An object containing information of the domain creator, including the user's id, username, and email. | {
"id": "ZspSRT4ljIEEmMHgoDwKWDei",
"username": "vercel_user",
"email": "demo@example.com"
} | | `teamId` | *string* | :heavy_check_mark: | N/A | | -| `userId` | *string* | :heavy_check_mark: | N/A | | | `boughtAt` | *number* | :heavy_check_mark: | If it was purchased through Vercel, the timestamp in milliseconds when it was purchased. | 1613602938882 | | `createdAt` | *number* | :heavy_check_mark: | Timestamp in milliseconds when the domain was created in the registry. | 1613602938882 | | `expiresAt` | *number* | :heavy_check_mark: | Timestamp in milliseconds at which the domain is set to expire. `null` if not bought with Vercel. | 1613602938882 | @@ -61,4 +60,5 @@ let value: GetDomainDomain = { | `renew` | *boolean* | :heavy_minus_sign: | Indicates whether the domain is set to automatically renew. | true | | `serviceType` | [models.ServiceType](../models/servicetype.md) | :heavy_check_mark: | The type of service the domain is handled by. `external` if the DNS is externally handled, `zeit.world` if handled with Vercel, or `na` if the service is not available. | zeit.world | | `transferredAt` | *number* | :heavy_minus_sign: | Timestamp in milliseconds at which the domain was successfully transferred into Vercel. `null` if the transfer is still processing or was never transferred in. | 1613602938882 | -| `transferStartedAt` | *number* | :heavy_minus_sign: | If transferred into Vercel, timestamp in milliseconds when the domain transfer was initiated. | 1613602938882 | \ No newline at end of file +| `transferStartedAt` | *number* | :heavy_minus_sign: | If transferred into Vercel, timestamp in milliseconds when the domain transfer was initiated. | 1613602938882 | +| `userId` | *string* | :heavy_check_mark: | N/A | | \ No newline at end of file diff --git a/docs/models/getdomainresponsebody.md b/docs/models/getdomainresponsebody.md index fb1204e5..4fc414c2 100644 --- a/docs/models/getdomainresponsebody.md +++ b/docs/models/getdomainresponsebody.md @@ -29,7 +29,6 @@ let value: GetDomainResponseBody = { id: "ZspSRT4ljIEEmMHgoDwKWDei", }, teamId: "", - userId: "", boughtAt: 1613602938882, createdAt: 1613602938882, expiresAt: 1613602938882, @@ -40,6 +39,7 @@ let value: GetDomainResponseBody = { serviceType: "zeit.world", transferredAt: 1613602938882, transferStartedAt: 1613602938882, + userId: "", }, }; ``` diff --git a/docs/models/getfirewallconfigresponsebody.md b/docs/models/getfirewallconfigresponsebody.md index a413034e..ee43988d 100644 --- a/docs/models/getfirewallconfigresponsebody.md +++ b/docs/models/getfirewallconfigresponsebody.md @@ -12,7 +12,7 @@ let value: GetFirewallConfigResponseBody = { projectKey: "", id: "", version: 9651.16, - updatedAt: "1735899418915", + updatedAt: "1736187965656", firewallEnabled: false, crs: { sd: { diff --git a/docs/models/getteamrequest.md b/docs/models/getteamrequest.md index cf880c01..3b3d28b2 100644 --- a/docs/models/getteamrequest.md +++ b/docs/models/getteamrequest.md @@ -6,8 +6,8 @@ import { GetTeamRequest } from "@vercel/sdk/models/getteamop.js"; let value: GetTeamRequest = { - teamId: "team_1a2b3c4d5e6f7g8h9i0j1k2l", slug: "my-team-url-slug", + teamId: "team_1a2b3c4d5e6f7g8h9i0j1k2l", }; ``` @@ -15,5 +15,5 @@ let value: GetTeamRequest = { | Field | Type | Required | Description | Example | | -------------------------------------------------------- | -------------------------------------------------------- | -------------------------------------------------------- | -------------------------------------------------------- | -------------------------------------------------------- | -| `teamId` | *string* | :heavy_check_mark: | The Team identifier to perform the request on behalf of. | team_1a2b3c4d5e6f7g8h9i0j1k2l | -| `slug` | *string* | :heavy_minus_sign: | The Team slug to perform the request on behalf of. | my-team-url-slug | \ No newline at end of file +| `slug` | *string* | :heavy_minus_sign: | N/A | my-team-url-slug | +| `teamId` | *string* | :heavy_check_mark: | The Team identifier to perform the request on behalf of. | team_1a2b3c4d5e6f7g8h9i0j1k2l | \ No newline at end of file diff --git a/docs/models/listaccessgroupprojectsprojects.md b/docs/models/listaccessgroupprojectsprojects.md index 7370e2d6..33d2d222 100644 --- a/docs/models/listaccessgroupprojectsprojects.md +++ b/docs/models/listaccessgroupprojectsprojects.md @@ -8,8 +8,8 @@ import { ListAccessGroupProjectsProjects } from "@vercel/sdk/models/listaccessgr let value: ListAccessGroupProjectsProjects = { projectId: "", role: "PROJECT_DEVELOPER", - createdAt: "1734143030936", - updatedAt: "1735889501068", + createdAt: "1734431577285", + updatedAt: "1736178047417", project: {}, }; ``` diff --git a/docs/models/listaccessgroupprojectsresponsebody.md b/docs/models/listaccessgroupprojectsresponsebody.md index cde9cfb1..31913ead 100644 --- a/docs/models/listaccessgroupprojectsresponsebody.md +++ b/docs/models/listaccessgroupprojectsresponsebody.md @@ -10,8 +10,8 @@ let value: ListAccessGroupProjectsResponseBody = { { projectId: "", role: "PROJECT_DEVELOPER", - createdAt: "1726381489180", - updatedAt: "1735835795903", + createdAt: "1726670035529", + updatedAt: "1736124342252", project: {}, }, ], diff --git a/docs/models/putfirewallconfigresponsebody.md b/docs/models/putfirewallconfigresponsebody.md index 5c8ff92a..28035ba9 100644 --- a/docs/models/putfirewallconfigresponsebody.md +++ b/docs/models/putfirewallconfigresponsebody.md @@ -11,7 +11,7 @@ let value: PutFirewallConfigResponseBody = { projectKey: "", id: "", version: 9747.87, - updatedAt: "1735869468194", + updatedAt: "1736158014918", firewallEnabled: false, crs: { sd: { diff --git a/docs/models/readaccessgroupprojectresponsebody.md b/docs/models/readaccessgroupprojectresponsebody.md index 16116da7..98c600a8 100644 --- a/docs/models/readaccessgroupprojectresponsebody.md +++ b/docs/models/readaccessgroupprojectresponsebody.md @@ -10,8 +10,8 @@ let value: ReadAccessGroupProjectResponseBody = { accessGroupId: "", projectId: "", role: "PROJECT_DEVELOPER", - createdAt: "1718212729398", - updatedAt: "1735915987020", + createdAt: "1718501275749", + updatedAt: "1736204533372", }; ``` diff --git a/docs/models/updateaccessgroupprojectresponsebody.md b/docs/models/updateaccessgroupprojectresponsebody.md index e30e7e64..6cb59ff6 100644 --- a/docs/models/updateaccessgroupprojectresponsebody.md +++ b/docs/models/updateaccessgroupprojectresponsebody.md @@ -10,8 +10,8 @@ let value: UpdateAccessGroupProjectResponseBody = { accessGroupId: "", projectId: "", role: "ADMIN", - createdAt: "1709468049318", - updatedAt: "1735887020430", + createdAt: "1709756595670", + updatedAt: "1736175566782", }; ``` diff --git a/docs/sdks/teams/README.md b/docs/sdks/teams/README.md index c1b3eb21..67c1fe21 100644 --- a/docs/sdks/teams/README.md +++ b/docs/sdks/teams/README.md @@ -679,8 +679,8 @@ const vercel = new Vercel({ async function run() { const result = await vercel.teams.getTeam({ - teamId: "team_1a2b3c4d5e6f7g8h9i0j1k2l", slug: "my-team-url-slug", + teamId: "team_1a2b3c4d5e6f7g8h9i0j1k2l", }); // Handle the result @@ -706,8 +706,8 @@ const vercel = new VercelCore({ async function run() { const res = await teamsGetTeam(vercel, { - teamId: "team_1a2b3c4d5e6f7g8h9i0j1k2l", slug: "my-team-url-slug", + teamId: "team_1a2b3c4d5e6f7g8h9i0j1k2l", }); if (!res.ok) { diff --git a/jsr.json b/jsr.json index 52d3e960..d3d15e74 100644 --- a/jsr.json +++ b/jsr.json @@ -2,7 +2,7 @@ { "name": "@vercel/sdk", - "version": "1.2.1", + "version": "1.2.2", "exports": { ".": "./src/index.ts", "./models": "./src/models/index.ts", diff --git a/package.json b/package.json index f8a91f58..85308167 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@vercel/sdk", - "version": "1.2.1", + "version": "1.2.2", "author": "Speakeasy", "type": "module", "main": "./esm/index.js", diff --git a/src/lib/config.ts b/src/lib/config.ts index b7e35790..4ea67d88 100644 --- a/src/lib/config.ts +++ b/src/lib/config.ts @@ -57,7 +57,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null { export const SDK_METADATA = { language: "typescript", openapiDocVersion: "0.0.1", - sdkVersion: "1.2.1", - genVersion: "2.484.4", - userAgent: "speakeasy-sdk/typescript 1.2.1 2.484.4 0.0.1 @vercel/sdk", + sdkVersion: "1.2.2", + genVersion: "2.486.6", + userAgent: "speakeasy-sdk/typescript 1.2.2 2.486.6 0.0.1 @vercel/sdk", } as const; diff --git a/src/models/authuser.ts b/src/models/authuser.ts index 1d004e3f..557819f4 100644 --- a/src/models/authuser.ts +++ b/src/models/authuser.ts @@ -38,6 +38,7 @@ export const BlockedDueToOverageType = { EdgeMiddlewareInvocations: "edgeMiddlewareInvocations", EdgeRequestAdditionalCpuDuration: "edgeRequestAdditionalCpuDuration", EdgeRequest: "edgeRequest", + ElasticConcurrencyBuildSlots: "elasticConcurrencyBuildSlots", FastDataTransfer: "fastDataTransfer", FastOriginTransfer: "fastOriginTransfer", FunctionDuration: "functionDuration", diff --git a/src/models/canceldeploymentop.ts b/src/models/canceldeploymentop.ts index 5ad451e9..8d228d01 100644 --- a/src/models/canceldeploymentop.ts +++ b/src/models/canceldeploymentop.ts @@ -118,10 +118,10 @@ export type CancelDeploymentProjectSettings = { }; export const CancelDeploymentDeploymentsStatus = { - Pending: "pending", - Ready: "ready", Error: "error", Skipped: "skipped", + Pending: "pending", + Ready: "ready", Timeout: "timeout", } as const; export type CancelDeploymentDeploymentsStatus = ClosedEnum< diff --git a/src/models/checkdomainpriceop.ts b/src/models/checkdomainpriceop.ts index 07b4fd28..4648cbed 100644 --- a/src/models/checkdomainpriceop.ts +++ b/src/models/checkdomainpriceop.ts @@ -44,7 +44,16 @@ export type CheckDomainPriceRequest = { /** * Successful response which returns the price of the domain and the period. */ -export type CheckDomainPriceResponseBody = {}; +export type CheckDomainPriceResponseBody = { + /** + * The domain price in USD. + */ + price: number; + /** + * The number of years the domain could be held before paying again. + */ + period: number; +}; /** @internal */ export const QueryParamType$inboundSchema: z.ZodNativeEnum< @@ -135,17 +144,26 @@ export const CheckDomainPriceResponseBody$inboundSchema: z.ZodType< CheckDomainPriceResponseBody, z.ZodTypeDef, unknown -> = z.object({}); +> = z.object({ + price: z.number(), + period: z.number(), +}); /** @internal */ -export type CheckDomainPriceResponseBody$Outbound = {}; +export type CheckDomainPriceResponseBody$Outbound = { + price: number; + period: number; +}; /** @internal */ export const CheckDomainPriceResponseBody$outboundSchema: z.ZodType< CheckDomainPriceResponseBody$Outbound, z.ZodTypeDef, CheckDomainPriceResponseBody -> = z.object({}); +> = z.object({ + price: z.number(), + period: z.number(), +}); /** * @internal diff --git a/src/models/createdeploymentop.ts b/src/models/createdeploymentop.ts index cdd1c26d..a51f1352 100644 --- a/src/models/createdeploymentop.ts +++ b/src/models/createdeploymentop.ts @@ -16,30 +16,30 @@ import { import { SDKValidationError } from "./sdkvalidationerror.js"; /** - * Allows to skip framework detection so the API would not fail to ask for confirmation + * Forces a new deployment even if there is a previous similar deployment */ -export const SkipAutoDetectionConfirmation = { +export const ForceNew = { Zero: "0", One: "1", } as const; /** - * Allows to skip framework detection so the API would not fail to ask for confirmation + * Forces a new deployment even if there is a previous similar deployment */ -export type SkipAutoDetectionConfirmation = ClosedEnum< - typeof SkipAutoDetectionConfirmation ->; +export type ForceNew = ClosedEnum; /** - * Forces a new deployment even if there is a previous similar deployment + * Allows to skip framework detection so the API would not fail to ask for confirmation */ -export const ForceNew = { +export const SkipAutoDetectionConfirmation = { Zero: "0", One: "1", } as const; /** - * Forces a new deployment even if there is a previous similar deployment + * Allows to skip framework detection so the API would not fail to ask for confirmation */ -export type ForceNew = ClosedEnum; +export type SkipAutoDetectionConfirmation = ClosedEnum< + typeof SkipAutoDetectionConfirmation +>; /** * Used in the case you want to reference a file that was already uploaded @@ -382,14 +382,14 @@ export type CreateDeploymentRequestBody = { }; export type CreateDeploymentRequest = { - /** - * Allows to skip framework detection so the API would not fail to ask for confirmation - */ - skipAutoDetectionConfirmation?: SkipAutoDetectionConfirmation | undefined; /** * Forces a new deployment even if there is a previous similar deployment */ forceNew?: ForceNew | undefined; + /** + * Allows to skip framework detection so the API would not fail to ask for confirmation + */ + skipAutoDetectionConfirmation?: SkipAutoDetectionConfirmation | undefined; /** * The Team identifier to perform the request on behalf of. */ @@ -1296,6 +1296,25 @@ export type CreateDeploymentResponseBody = { flags?: Flags1 | Array | undefined; }; +/** @internal */ +export const ForceNew$inboundSchema: z.ZodNativeEnum = z + .nativeEnum(ForceNew); + +/** @internal */ +export const ForceNew$outboundSchema: z.ZodNativeEnum = + ForceNew$inboundSchema; + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ForceNew$ { + /** @deprecated use `ForceNew$inboundSchema` instead. */ + export const inboundSchema = ForceNew$inboundSchema; + /** @deprecated use `ForceNew$outboundSchema` instead. */ + export const outboundSchema = ForceNew$outboundSchema; +} + /** @internal */ export const SkipAutoDetectionConfirmation$inboundSchema: z.ZodNativeEnum< typeof SkipAutoDetectionConfirmation @@ -1317,25 +1336,6 @@ export namespace SkipAutoDetectionConfirmation$ { export const outboundSchema = SkipAutoDetectionConfirmation$outboundSchema; } -/** @internal */ -export const ForceNew$inboundSchema: z.ZodNativeEnum = z - .nativeEnum(ForceNew); - -/** @internal */ -export const ForceNew$outboundSchema: z.ZodNativeEnum = - ForceNew$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ForceNew$ { - /** @deprecated use `ForceNew$inboundSchema` instead. */ - export const inboundSchema = ForceNew$inboundSchema; - /** @deprecated use `ForceNew$outboundSchema` instead. */ - export const outboundSchema = ForceNew$outboundSchema; -} - /** @internal */ export const UploadedFile$inboundSchema: z.ZodType< UploadedFile, @@ -2388,9 +2388,9 @@ export const CreateDeploymentRequest$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ + forceNew: ForceNew$inboundSchema.optional(), skipAutoDetectionConfirmation: SkipAutoDetectionConfirmation$inboundSchema .optional(), - forceNew: ForceNew$inboundSchema.optional(), teamId: z.string().optional(), slug: z.string().optional(), RequestBody: z.lazy(() => CreateDeploymentRequestBody$inboundSchema), @@ -2402,8 +2402,8 @@ export const CreateDeploymentRequest$inboundSchema: z.ZodType< /** @internal */ export type CreateDeploymentRequest$Outbound = { - skipAutoDetectionConfirmation?: string | undefined; forceNew?: string | undefined; + skipAutoDetectionConfirmation?: string | undefined; teamId?: string | undefined; slug?: string | undefined; RequestBody: CreateDeploymentRequestBody$Outbound; @@ -2415,9 +2415,9 @@ export const CreateDeploymentRequest$outboundSchema: z.ZodType< z.ZodTypeDef, CreateDeploymentRequest > = z.object({ + forceNew: ForceNew$outboundSchema.optional(), skipAutoDetectionConfirmation: SkipAutoDetectionConfirmation$outboundSchema .optional(), - forceNew: ForceNew$outboundSchema.optional(), teamId: z.string().optional(), slug: z.string().optional(), requestBody: z.lazy(() => CreateDeploymentRequestBody$outboundSchema), diff --git a/src/models/createprojectop.ts b/src/models/createprojectop.ts index fba0dce1..fb0fa85e 100644 --- a/src/models/createprojectop.ts +++ b/src/models/createprojectop.ts @@ -1358,11 +1358,11 @@ export type CreateProjectPermissions = { export type CreateProjectLastRollbackTarget = {}; export const CreateProjectJobStatus = { - Pending: "pending", - InProgress: "in-progress", Succeeded: "succeeded", Failed: "failed", Skipped: "skipped", + Pending: "pending", + InProgress: "in-progress", } as const; export type CreateProjectJobStatus = ClosedEnum; diff --git a/src/models/getdeploymentsop.ts b/src/models/getdeploymentsop.ts index 44056ee8..ce6846ac 100644 --- a/src/models/getdeploymentsop.ts +++ b/src/models/getdeploymentsop.ts @@ -376,6 +376,10 @@ export type Deployments = { * Timestamp of when the deployment got created. */ created: number; + /** + * The default route that should be used for screenshots and links if configured with microfrontends. + */ + defaultRoute?: string | undefined; /** * Timestamp of when the deployment got deleted. */ @@ -1342,6 +1346,7 @@ export const Deployments$inboundSchema: z.ZodType< name: z.string(), url: z.string(), created: z.number(), + defaultRoute: z.string().optional(), deleted: z.number().optional(), undeleted: z.number().optional(), softDeletedByRetention: z.boolean().optional(), @@ -1380,6 +1385,7 @@ export type Deployments$Outbound = { name: string; url: string; created: number; + defaultRoute?: string | undefined; deleted?: number | undefined; undeleted?: number | undefined; softDeletedByRetention?: boolean | undefined; @@ -1419,6 +1425,7 @@ export const Deployments$outboundSchema: z.ZodType< name: z.string(), url: z.string(), created: z.number(), + defaultRoute: z.string().optional(), deleted: z.number().optional(), undeleted: z.number().optional(), softDeletedByRetention: z.boolean().optional(), diff --git a/src/models/getdomainop.ts b/src/models/getdomainop.ts index f9eda8bd..715ceee3 100644 --- a/src/models/getdomainop.ts +++ b/src/models/getdomainop.ts @@ -70,7 +70,6 @@ export type GetDomainDomain = { */ creator: GetDomainCreator; teamId: string | null; - userId: string; /** * If it was purchased through Vercel, the timestamp in milliseconds when it was purchased. */ @@ -111,6 +110,7 @@ export type GetDomainDomain = { * If transferred into Vercel, timestamp in milliseconds when the domain transfer was initiated. */ transferStartedAt?: number | undefined; + userId: string; }; /** @@ -278,7 +278,6 @@ export const GetDomainDomain$inboundSchema: z.ZodType< customNameservers: z.array(z.string()).optional(), creator: z.lazy(() => GetDomainCreator$inboundSchema), teamId: z.nullable(z.string()), - userId: z.string(), boughtAt: z.nullable(z.number()), createdAt: z.number(), expiresAt: z.nullable(z.number()), @@ -289,6 +288,7 @@ export const GetDomainDomain$inboundSchema: z.ZodType< serviceType: ServiceType$inboundSchema, transferredAt: z.nullable(z.number()).optional(), transferStartedAt: z.number().optional(), + userId: z.string(), }); /** @internal */ @@ -300,7 +300,6 @@ export type GetDomainDomain$Outbound = { customNameservers?: Array | undefined; creator: GetDomainCreator$Outbound; teamId: string | null; - userId: string; boughtAt: number | null; createdAt: number; expiresAt: number | null; @@ -311,6 +310,7 @@ export type GetDomainDomain$Outbound = { serviceType: string; transferredAt?: number | null | undefined; transferStartedAt?: number | undefined; + userId: string; }; /** @internal */ @@ -326,7 +326,6 @@ export const GetDomainDomain$outboundSchema: z.ZodType< customNameservers: z.array(z.string()).optional(), creator: z.lazy(() => GetDomainCreator$outboundSchema), teamId: z.nullable(z.string()), - userId: z.string(), boughtAt: z.nullable(z.number()), createdAt: z.number(), expiresAt: z.nullable(z.number()), @@ -337,6 +336,7 @@ export const GetDomainDomain$outboundSchema: z.ZodType< serviceType: ServiceType$outboundSchema, transferredAt: z.nullable(z.number()).optional(), transferStartedAt: z.number().optional(), + userId: z.string(), }); /** diff --git a/src/models/getteamop.ts b/src/models/getteamop.ts index 4ce15371..c6c4b44d 100644 --- a/src/models/getteamop.ts +++ b/src/models/getteamop.ts @@ -8,14 +8,11 @@ import { Result as SafeParseResult } from "../types/fp.js"; import { SDKValidationError } from "./sdkvalidationerror.js"; export type GetTeamRequest = { + slug?: string | undefined; /** * The Team identifier to perform the request on behalf of. */ teamId: string; - /** - * The Team slug to perform the request on behalf of. - */ - slug?: string | undefined; }; /** @internal */ @@ -24,14 +21,14 @@ export const GetTeamRequest$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - teamId: z.string(), slug: z.string().optional(), + teamId: z.string(), }); /** @internal */ export type GetTeamRequest$Outbound = { - teamId: string; slug?: string | undefined; + teamId: string; }; /** @internal */ @@ -40,8 +37,8 @@ export const GetTeamRequest$outboundSchema: z.ZodType< z.ZodTypeDef, GetTeamRequest > = z.object({ - teamId: z.string(), slug: z.string().optional(), + teamId: z.string(), }); /** diff --git a/vercel-spec.json b/vercel-spec.json index e6f48d86..144f9415 100644 --- a/vercel-spec.json +++ b/vercel-spec.json @@ -11851,11 +11851,11 @@ }, "parameters": [ { - "name": "skipAutoDetectionConfirmation", - "description": "Allows to skip framework detection so the API would not fail to ask for confirmation", + "name": "forceNew", + "description": "Forces a new deployment even if there is a previous similar deployment", "in": "query", "schema": { - "description": "Allows to skip framework detection so the API would not fail to ask for confirmation", + "description": "Forces a new deployment even if there is a previous similar deployment", "enum": [ "0", "1" @@ -11863,11 +11863,11 @@ } }, { - "name": "forceNew", - "description": "Forces a new deployment even if there is a previous similar deployment", + "name": "skipAutoDetectionConfirmation", + "description": "Allows to skip framework detection so the API would not fail to ask for confirmation", "in": "query", "schema": { - "description": "Forces a new deployment even if there is a previous similar deployment", + "description": "Allows to skip framework detection so the API would not fail to ask for confirmation", "enum": [ "0", "1" @@ -12559,10 +12559,10 @@ "status": { "type": "string", "enum": [ - "pending", - "ready", "error", "skipped", + "pending", + "ready", "timeout" ] }, @@ -14348,6 +14348,22 @@ "content": { "application/json": { "schema": { + "properties": { + "price": { + "type": "number", + "description": "The domain price in USD.", + "example": 20 + }, + "period": { + "type": "number", + "description": "The number of years the domain could be held before paying again.", + "example": 1 + } + }, + "required": [ + "price", + "period" + ], "type": "object", "description": "Successful response which returns the price of the domain and the period." } @@ -16133,9 +16149,6 @@ "nullable": true, "type": "string" }, - "userId": { - "type": "string" - }, "boughtAt": { "nullable": true, "type": "number", @@ -16193,6 +16206,9 @@ "type": "number", "description": "If transferred into Vercel, timestamp in milliseconds when the domain transfer was initiated.", "example": 1613602938882 + }, + "userId": { + "type": "string" } }, "required": [ @@ -16202,13 +16218,13 @@ "intendedNameservers", "creator", "teamId", - "userId", "boughtAt", "createdAt", "expiresAt", "id", "name", - "serviceType" + "serviceType", + "userId" ], "type": "object" } @@ -18108,14 +18124,6 @@ "pattern": "^ecfg_" } }, - { - "name": "edgeConfigId", - "in": "query", - "required": true, - "schema": { - "type": "string" - } - }, { "name": "dryRun", "in": "query", @@ -30837,11 +30845,11 @@ "jobStatus": { "type": "string", "enum": [ - "pending", - "in-progress", "succeeded", "failed", - "skipped" + "skipped", + "pending", + "in-progress" ] }, "requestedAt": { @@ -50603,6 +50611,14 @@ } }, "parameters": [ + { + "name": "slug", + "in": "query", + "schema": { + "type": "string", + "example": "my-team-url-slug" + } + }, { "description": "The Team identifier to perform the request on behalf of.", "in": "path", @@ -50612,15 +50628,6 @@ "example": "team_1a2b3c4d5e6f7g8h9i0j1k2l" }, "required": true - }, - { - "description": "The Team slug to perform the request on behalf of.", - "in": "query", - "name": "slug", - "schema": { - "type": "string", - "example": "my-team-url-slug" - } } ] }, @@ -53675,8 +53682,7 @@ "deploymentId", "projectId", "uid" - ], - "type": "object" + ] } } } @@ -54990,6 +54996,11 @@ "description": "Timestamp of when the deployment got created.", "example": 1609492210000 }, + "defaultRoute": { + "type": "string", + "description": "The default route that should be used for screenshots and links if configured with microfrontends.", + "example": "/docs" + }, "deleted": { "type": "number", "description": "Timestamp of when the deployment got deleted.", @@ -56186,6 +56197,7 @@ "edgeMiddlewareInvocations", "edgeRequestAdditionalCpuDuration", "edgeRequest", + "elasticConcurrencyBuildSlots", "fastDataTransfer", "fastOriginTransfer", "functionDuration",