From cb87e6e15600af9e4e534817ca75f0d7f9f665eb Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Fri, 22 Mar 2024 00:04:41 +0000 Subject: [PATCH] ci: regenerated with OpenAPI Doc v1.0.0, Speakeasy CLI 1.219.2 --- .speakeasy/gen.lock | 10 ++-- RELEASES.md | 12 ++++- docs/sdk/models/operations/userdetails.md | 20 ++++--- docs/sdk/models/operations/users.md | 8 +-- gen.yaml | 2 +- package.json | 2 +- src/lib/config.ts | 6 +-- src/sdk/models/operations/getuserself.ts | 66 +++++++++++++++++++++++ 8 files changed, 103 insertions(+), 23 deletions(-) diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock index b4cb827c..710a7e5c 100755 --- a/.speakeasy/gen.lock +++ b/.speakeasy/gen.lock @@ -1,12 +1,12 @@ lockVersion: 2.0.0 id: edadaac9-e645-4ef4-a6c7-a1f73bc19385 management: - docChecksum: c6e01eef340658dd735b895efcca8c2d + docChecksum: da07040501d19189b5e669e85eb53c2d docVersion: v1.0.0 - speakeasyVersion: 1.213.0 - generationVersion: 2.283.1 - releaseVersion: 4.4.5 - configChecksum: dbf7302a5402521b10d035df48703d48 + speakeasyVersion: 1.219.2 + generationVersion: 2.286.7 + releaseVersion: 4.4.6 + configChecksum: ec0b59d1d103be82749b083c1b5a42d7 repoURL: https://github.com/Leonardo-Interactive/leonardo-ts-sdk.git repoSubDirectory: . installationURL: https://github.com/Leonardo-Interactive/leonardo-ts-sdk diff --git a/RELEASES.md b/RELEASES.md index 00489c41..448ed0b8 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -1929,4 +1929,14 @@ Based on: ### Generated - [typescript v4.4.5] . ### Releases -- [NPM v4.4.5] https://www.npmjs.com/package/@leonardo-ai/sdk/v/4.4.5 - . \ No newline at end of file +- [NPM v4.4.5] https://www.npmjs.com/package/@leonardo-ai/sdk/v/4.4.5 - . + +## 2024-03-22 00:04:06 +### Changes +Based on: +- OpenAPI Doc v1.0.0 https://api-docs-nine-delta.vercel.app/cloud/openapi.json +- Speakeasy CLI 1.219.2 (2.286.7) https://github.com/speakeasy-api/speakeasy +### Generated +- [typescript v4.4.6] . +### Releases +- [NPM v4.4.6] https://www.npmjs.com/package/@leonardo-ai/sdk/v/4.4.6 - . \ No newline at end of file diff --git a/docs/sdk/models/operations/userdetails.md b/docs/sdk/models/operations/userdetails.md index 2c4dc819..f7af9fb5 100644 --- a/docs/sdk/models/operations/userdetails.md +++ b/docs/sdk/models/operations/userdetails.md @@ -5,11 +5,15 @@ columns and relationships of "user_details" ## Fields -| Field | Type | Required | Description | -| ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | -| `apiConcurrencySlots` | *number* | :heavy_minus_sign: | N/A | -| `subscriptionGptTokens` | *number* | :heavy_minus_sign: | N/A | -| `subscriptionModelTokens` | *number* | :heavy_minus_sign: | N/A | -| `subscriptionTokens` | *number* | :heavy_minus_sign: | N/A | -| `tokenRenewalDate` | *string* | :heavy_minus_sign: | N/A | -| `user` | [operations.Users](../../../sdk/models/operations/users.md) | :heavy_minus_sign: | columns and relationships of "users" | \ No newline at end of file +| Field | Type | Required | Description | +| -------------------------------------------------------------------- | -------------------------------------------------------------------- | -------------------------------------------------------------------- | -------------------------------------------------------------------- | +| `apiConcurrencySlots` | *number* | :heavy_minus_sign: | API Concurrency Slots. | +| `apiPaidTokens` | *number* | :heavy_minus_sign: | Current balance of API paid tokens the user has. | +| `apiPlanTokenRenewalDate` | *string* | :heavy_minus_sign: | API Plan Token Renewal Date. | +| `apiSubscriptionTokens` | *number* | :heavy_minus_sign: | Current balance of Enterprise API subscriptions tokens the user has. | +| `paidTokens` | *number* | :heavy_minus_sign: | Current balance of paid tokens the user has. | +| `subscriptionGptTokens` | *number* | :heavy_minus_sign: | Current balance of user plan GPT tokens the user has. | +| `subscriptionModelTokens` | *number* | :heavy_minus_sign: | Current balance of model training tokens the user has. | +| `subscriptionTokens` | *number* | :heavy_minus_sign: | Current balance of user plan subscription tokens the user has. | +| `tokenRenewalDate` | *string* | :heavy_minus_sign: | User Plan Token Renewal Date. | +| `user` | [operations.Users](../../../sdk/models/operations/users.md) | :heavy_minus_sign: | columns and relationships of "users" | \ No newline at end of file diff --git a/docs/sdk/models/operations/users.md b/docs/sdk/models/operations/users.md index af3afbaf..b74b91b9 100644 --- a/docs/sdk/models/operations/users.md +++ b/docs/sdk/models/operations/users.md @@ -5,7 +5,7 @@ columns and relationships of "users" ## Fields -| Field | Type | Required | Description | -| ------------------ | ------------------ | ------------------ | ------------------ | -| `id` | *string* | :heavy_minus_sign: | N/A | -| `username` | *string* | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| --------------------- | --------------------- | --------------------- | --------------------- | +| `id` | *string* | :heavy_minus_sign: | N/A | +| `username` | *string* | :heavy_minus_sign: | Username of the user. | \ No newline at end of file diff --git a/gen.yaml b/gen.yaml index a826b991..d4398b27 100644 --- a/gen.yaml +++ b/gen.yaml @@ -13,7 +13,7 @@ generation: auth: oAuth2ClientCredentialsEnabled: false typescript: - version: 4.4.5 + version: 4.4.6 additionalDependencies: dependencies: {} devDependencies: {} diff --git a/package.json b/package.json index 9d1ebc7b..29cfb8ad 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@leonardo-ai/sdk", - "version": "4.4.5", + "version": "4.4.6", "author": "leonardoai", "main": "./index.js", "sideEffects": false, diff --git a/src/lib/config.ts b/src/lib/config.ts index 3d0e10ec..5c594baf 100644 --- a/src/lib/config.ts +++ b/src/lib/config.ts @@ -54,7 +54,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null { export const SDK_METADATA = Object.freeze({ language: "typescript", openapiDocVersion: "v1.0.0", - sdkVersion: "4.4.5", - genVersion: "2.283.1", - userAgent: "speakeasy-sdk/typescript 4.4.5 2.283.1 v1.0.0 @leonardo-ai/sdk", + sdkVersion: "4.4.6", + genVersion: "2.286.7", + userAgent: "speakeasy-sdk/typescript 4.4.6 2.286.7 v1.0.0 @leonardo-ai/sdk", }); diff --git a/src/sdk/models/operations/getuserself.ts b/src/sdk/models/operations/getuserself.ts index e301628d..588d2d6a 100644 --- a/src/sdk/models/operations/getuserself.ts +++ b/src/sdk/models/operations/getuserself.ts @@ -9,6 +9,9 @@ import * as z from "zod"; */ export type Users = { id?: string | null | undefined; + /** + * Username of the user. + */ username?: string | null | undefined; }; @@ -16,10 +19,41 @@ export type Users = { * columns and relationships of "user_details" */ export type UserDetails = { + /** + * API Concurrency Slots. + */ apiConcurrencySlots?: number | undefined; + /** + * Current balance of API paid tokens the user has. + */ + apiPaidTokens?: number | undefined; + /** + * API Plan Token Renewal Date. + */ + apiPlanTokenRenewalDate?: string | null | undefined; + /** + * Current balance of Enterprise API subscriptions tokens the user has. + */ + apiSubscriptionTokens?: number | undefined; + /** + * Current balance of paid tokens the user has. + */ + paidTokens?: number | undefined; + /** + * Current balance of user plan GPT tokens the user has. + */ subscriptionGptTokens?: number | undefined; + /** + * Current balance of model training tokens the user has. + */ subscriptionModelTokens?: number | undefined; + /** + * Current balance of user plan subscription tokens the user has. + */ subscriptionTokens?: number | undefined; + /** + * User Plan Token Renewal Date. + */ tokenRenewalDate?: string | null | undefined; /** * columns and relationships of "users" @@ -94,6 +128,10 @@ export namespace Users$ { export namespace UserDetails$ { export type Inbound = { apiConcurrencySlots?: number | undefined; + apiPaidTokens?: number | undefined; + apiPlanTokenRenewalDate?: string | null | undefined; + apiSubscriptionTokens?: number | undefined; + paidTokens?: number | undefined; subscriptionGptTokens?: number | undefined; subscriptionModelTokens?: number | undefined; subscriptionTokens?: number | undefined; @@ -104,6 +142,10 @@ export namespace UserDetails$ { export const inboundSchema: z.ZodType = z .object({ apiConcurrencySlots: z.number().int().optional(), + apiPaidTokens: z.number().int().optional(), + apiPlanTokenRenewalDate: z.nullable(z.string()).optional(), + apiSubscriptionTokens: z.number().int().optional(), + paidTokens: z.number().int().optional(), subscriptionGptTokens: z.number().int().optional(), subscriptionModelTokens: z.number().int().optional(), subscriptionTokens: z.number().int().optional(), @@ -115,6 +157,14 @@ export namespace UserDetails$ { ...(v.apiConcurrencySlots === undefined ? null : { apiConcurrencySlots: v.apiConcurrencySlots }), + ...(v.apiPaidTokens === undefined ? null : { apiPaidTokens: v.apiPaidTokens }), + ...(v.apiPlanTokenRenewalDate === undefined + ? null + : { apiPlanTokenRenewalDate: v.apiPlanTokenRenewalDate }), + ...(v.apiSubscriptionTokens === undefined + ? null + : { apiSubscriptionTokens: v.apiSubscriptionTokens }), + ...(v.paidTokens === undefined ? null : { paidTokens: v.paidTokens }), ...(v.subscriptionGptTokens === undefined ? null : { subscriptionGptTokens: v.subscriptionGptTokens }), @@ -133,6 +183,10 @@ export namespace UserDetails$ { export type Outbound = { apiConcurrencySlots?: number | undefined; + apiPaidTokens?: number | undefined; + apiPlanTokenRenewalDate?: string | null | undefined; + apiSubscriptionTokens?: number | undefined; + paidTokens?: number | undefined; subscriptionGptTokens?: number | undefined; subscriptionModelTokens?: number | undefined; subscriptionTokens?: number | undefined; @@ -143,6 +197,10 @@ export namespace UserDetails$ { export const outboundSchema: z.ZodType = z .object({ apiConcurrencySlots: z.number().int().optional(), + apiPaidTokens: z.number().int().optional(), + apiPlanTokenRenewalDate: z.nullable(z.string()).optional(), + apiSubscriptionTokens: z.number().int().optional(), + paidTokens: z.number().int().optional(), subscriptionGptTokens: z.number().int().optional(), subscriptionModelTokens: z.number().int().optional(), subscriptionTokens: z.number().int().optional(), @@ -154,6 +212,14 @@ export namespace UserDetails$ { ...(v.apiConcurrencySlots === undefined ? null : { apiConcurrencySlots: v.apiConcurrencySlots }), + ...(v.apiPaidTokens === undefined ? null : { apiPaidTokens: v.apiPaidTokens }), + ...(v.apiPlanTokenRenewalDate === undefined + ? null + : { apiPlanTokenRenewalDate: v.apiPlanTokenRenewalDate }), + ...(v.apiSubscriptionTokens === undefined + ? null + : { apiSubscriptionTokens: v.apiSubscriptionTokens }), + ...(v.paidTokens === undefined ? null : { paidTokens: v.paidTokens }), ...(v.subscriptionGptTokens === undefined ? null : { subscriptionGptTokens: v.subscriptionGptTokens }),