Skip to content

Commit

Permalink
ci: regenerated with OpenAPI Doc v1.0.0, Speakeasy CLI 1.219.2
Browse files Browse the repository at this point in the history
  • Loading branch information
speakeasybot committed Mar 22, 2024
1 parent f4f43de commit cb87e6e
Show file tree
Hide file tree
Showing 8 changed files with 103 additions and 23 deletions.
10 changes: 5 additions & 5 deletions .speakeasy/gen.lock
Original file line number Diff line number Diff line change
@@ -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
Expand Down
12 changes: 11 additions & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 - .
- [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 - .
20 changes: 12 additions & 8 deletions docs/sdk/models/operations/userdetails.md
Original file line number Diff line number Diff line change
Expand Up @@ -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" |
| 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" |
8 changes: 4 additions & 4 deletions docs/sdk/models/operations/users.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 |
| Field | Type | Required | Description |
| --------------------- | --------------------- | --------------------- | --------------------- |
| `id` | *string* | :heavy_minus_sign: | N/A |
| `username` | *string* | :heavy_minus_sign: | Username of the user. |
2 changes: 1 addition & 1 deletion gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ generation:
auth:
oAuth2ClientCredentialsEnabled: false
typescript:
version: 4.4.5
version: 4.4.6
additionalDependencies:
dependencies: {}
devDependencies: {}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@leonardo-ai/sdk",
"version": "4.4.5",
"version": "4.4.6",
"author": "leonardoai",
"main": "./index.js",
"sideEffects": false,
Expand Down
6 changes: 3 additions & 3 deletions src/lib/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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",
});
66 changes: 66 additions & 0 deletions src/sdk/models/operations/getuserself.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,51 @@ import * as z from "zod";
*/
export type Users = {
id?: string | null | undefined;
/**
* Username of the user.
*/
username?: string | null | undefined;
};

/**
* 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"
Expand Down Expand Up @@ -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;
Expand All @@ -104,6 +142,10 @@ export namespace UserDetails$ {
export const inboundSchema: z.ZodType<UserDetails, z.ZodTypeDef, Inbound> = 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(),
Expand All @@ -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 }),
Expand All @@ -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;
Expand All @@ -143,6 +197,10 @@ export namespace UserDetails$ {
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, UserDetails> = 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(),
Expand All @@ -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 }),
Expand Down

0 comments on commit cb87e6e

Please sign in to comment.