From cc02dc9f9712c327fce9d59bb35b6a5bdbbc040b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Voron?= Date: Mon, 28 Oct 2024 16:56:54 +0100 Subject: [PATCH] clients/sdk: update OpenAPI client --- clients/packages/sdk/openapi/source.json | 52 ++++++------------- clients/packages/sdk/openapi/updated.json | 52 ++++++------------- .../packages/sdk/src/client/models/index.ts | 30 ++--------- 3 files changed, 33 insertions(+), 101 deletions(-) diff --git a/clients/packages/sdk/openapi/source.json b/clients/packages/sdk/openapi/source.json index 3cddfe3ecb..496e5f71a1 100644 --- a/clients/packages/sdk/openapi/source.json +++ b/clients/packages/sdk/openapi/source.json @@ -8489,8 +8489,8 @@ "description": "Filter by the type of purchase the customer made.", "default": [ "donation", - "order", "free_subscription", + "order", "paid_subscription" ], "title": "Customer Types" @@ -19226,10 +19226,6 @@ "format": "uuid4", "title": "Id" }, - "username": { - "type": "string", - "title": "Username" - }, "email": { "type": "string", "format": "email", @@ -19250,7 +19246,6 @@ "type": "object", "required": [ "id", - "username", "email", "avatar_url" ], @@ -29975,20 +29970,9 @@ }, "OrganizationMember": { "properties": { - "name": { + "email": { "type": "string", - "title": "Name" - }, - "github_username": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], - "title": "Github Username" + "title": "Email" }, "avatar_url": { "anyOf": [ @@ -30004,8 +29988,7 @@ }, "type": "object", "required": [ - "name", - "github_username", + "email", "avatar_url" ], "title": "OrganizationMember" @@ -35315,18 +35298,25 @@ }, "User": { "properties": { - "username": { + "public_name": { "type": "string", - "title": "Username" + "title": "Public Name" }, "avatar_url": { - "type": "string", + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], "title": "Avatar Url" } }, "type": "object", "required": [ - "username", + "public_name", "avatar_url" ], "title": "User" @@ -35554,11 +35544,6 @@ }, "UserBase": { "properties": { - "username": { - "type": "string", - "maxLength": 50, - "title": "Username" - }, "email": { "type": "string", "format": "email", @@ -35590,7 +35575,6 @@ }, "type": "object", "required": [ - "username", "email", "avatar_url", "account_id" @@ -36088,11 +36072,6 @@ "title": "Modified At", "description": "Last modification timestamp of the object." }, - "username": { - "type": "string", - "maxLength": 50, - "title": "Username" - }, "email": { "type": "string", "format": "email", @@ -36142,7 +36121,6 @@ "required": [ "created_at", "modified_at", - "username", "email", "avatar_url", "account_id", diff --git a/clients/packages/sdk/openapi/updated.json b/clients/packages/sdk/openapi/updated.json index 72a1a0e1ff..1d868fee85 100644 --- a/clients/packages/sdk/openapi/updated.json +++ b/clients/packages/sdk/openapi/updated.json @@ -8413,8 +8413,8 @@ "description": "Filter by the type of purchase the customer made.", "default": [ "donation", - "order", "free_subscription", + "order", "paid_subscription" ], "title": "Customer Types" @@ -18347,10 +18347,6 @@ "format": "uuid4", "title": "Id" }, - "username": { - "type": "string", - "title": "Username" - }, "email": { "type": "string", "format": "email", @@ -18371,7 +18367,6 @@ "type": "object", "required": [ "id", - "username", "email", "avatar_url" ], @@ -29096,20 +29091,9 @@ }, "OrganizationMember": { "properties": { - "name": { + "email": { "type": "string", - "title": "Name" - }, - "github_username": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], - "title": "Github Username" + "title": "Email" }, "avatar_url": { "anyOf": [ @@ -29125,8 +29109,7 @@ }, "type": "object", "required": [ - "name", - "github_username", + "email", "avatar_url" ], "title": "OrganizationMember" @@ -34436,18 +34419,25 @@ }, "User": { "properties": { - "username": { + "public_name": { "type": "string", - "title": "Username" + "title": "Public Name" }, "avatar_url": { - "type": "string", + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], "title": "Avatar Url" } }, "type": "object", "required": [ - "username", + "public_name", "avatar_url" ], "title": "User" @@ -34675,11 +34665,6 @@ }, "UserBase": { "properties": { - "username": { - "type": "string", - "maxLength": 50, - "title": "Username" - }, "email": { "type": "string", "format": "email", @@ -34711,7 +34696,6 @@ }, "type": "object", "required": [ - "username", "email", "avatar_url", "account_id" @@ -35209,11 +35193,6 @@ "title": "Modified At", "description": "Last modification timestamp of the object." }, - "username": { - "type": "string", - "maxLength": 50, - "title": "Username" - }, "email": { "type": "string", "format": "email", @@ -35263,7 +35242,6 @@ "required": [ "created_at", "modified_at", - "username", "email", "avatar_url", "account_id", diff --git a/clients/packages/sdk/src/client/models/index.ts b/clients/packages/sdk/src/client/models/index.ts index dbb6eb25bb..a69416bc38 100644 --- a/clients/packages/sdk/src/client/models/index.ts +++ b/clients/packages/sdk/src/client/models/index.ts @@ -1580,12 +1580,6 @@ export interface AuthorizeUser { * @memberof AuthorizeUser */ id: string; - /** - * - * @type {string} - * @memberof AuthorizeUser - */ - username: string; /** * * @type {string} @@ -10696,13 +10690,7 @@ export interface OrganizationMember { * @type {string} * @memberof OrganizationMember */ - name: string; - /** - * - * @type {string} - * @memberof OrganizationMember - */ - github_username: string | null; + email: string; /** * * @type {string} @@ -15497,13 +15485,13 @@ export interface User { * @type {string} * @memberof User */ - username: string; + public_name: string; /** * * @type {string} * @memberof User */ - avatar_url: string; + avatar_url: string | null; } /** * @@ -15668,12 +15656,6 @@ export type UserAdvertisementSortProperty = typeof UserAdvertisementSortProperty * @interface UserBase */ export interface UserBase { - /** - * - * @type {string} - * @memberof UserBase - */ - username: string; /** * * @type {string} @@ -16084,12 +16066,6 @@ export interface UserRead { * @memberof UserRead */ modified_at: string | null; - /** - * - * @type {string} - * @memberof UserRead - */ - username: string; /** * * @type {string}