From e893387c0c7402c7ad066700785facdf0127d7bf Mon Sep 17 00:00:00 2001 From: github-actions Date: Mon, 26 Aug 2024 18:11:08 +0000 Subject: [PATCH] SDK updates --- src/generated/.openapi-generator/FILES | 1 + src/generated/models/AppInfo.ts | 24 ++++++++++++++++ src/generated/models/ThemeType.ts | 39 ++++++++++++++++++++++++++ src/generated/models/index.ts | 1 + 4 files changed, 65 insertions(+) create mode 100644 src/generated/models/ThemeType.ts diff --git a/src/generated/.openapi-generator/FILES b/src/generated/.openapi-generator/FILES index 607cd4b..195fbbf 100644 --- a/src/generated/.openapi-generator/FILES +++ b/src/generated/.openapi-generator/FILES @@ -36,6 +36,7 @@ models/OtpAuthMethod.ts models/PaginatedLinks.ts models/PasskeysAuthMethod.ts models/Technologies.ts +models/ThemeType.ts models/TtlDisplayUnit.ts models/UserEventStatus.ts models/UserInfo.ts diff --git a/src/generated/models/AppInfo.ts b/src/generated/models/AppInfo.ts index 3bb4de5..5b6476f 100644 --- a/src/generated/models/AppInfo.ts +++ b/src/generated/models/AppInfo.ts @@ -37,6 +37,12 @@ import { TechnologiesFromJSONTyped, TechnologiesToJSON, } from './Technologies'; +import type { ThemeType } from './ThemeType'; +import { + ThemeTypeFromJSON, + ThemeTypeFromJSONTyped, + ThemeTypeToJSON, +} from './ThemeType'; import type { UserMetadataField } from './UserMetadataField'; import { UserMetadataFieldFromJSON, @@ -106,6 +112,12 @@ export interface AppInfo { * @memberof AppInfo */ authOrigin: string; + /** + * + * @type {boolean} + * @memberof AppInfo + */ + autoThemeEnabled: boolean; /** * * @type {Date} @@ -166,6 +178,12 @@ export interface AppInfo { * @memberof AppInfo */ hostedSubdomain: string; + /** + * + * @type {ThemeType} + * @memberof AppInfo + */ + hostedTheme: ThemeType; /** * * @type {number} @@ -313,6 +331,7 @@ export function instanceOfAppInfo(value: object): boolean { isInstance = isInstance && "authFallbackMethodTtl" in value; isInstance = isInstance && "authMethods" in value; isInstance = isInstance && "authOrigin" in value; + isInstance = isInstance && "autoThemeEnabled" in value; isInstance = isInstance && "createdAt" in value; isInstance = isInstance && "defaultLanguage" in value; isInstance = isInstance && "id" in value; @@ -321,6 +340,7 @@ export function instanceOfAppInfo(value: object): boolean { isInstance = isInstance && "name" in value; isInstance = isInstance && "hosted" in value; isInstance = isInstance && "hostedSubdomain" in value; + isInstance = isInstance && "hostedTheme" in value; isInstance = isInstance && "passageBranding" in value; isInstance = isInstance && "profileManagement" in value; isInstance = isInstance && "publicSignup" in value; @@ -362,6 +382,7 @@ export function AppInfoFromJSONTyped(json: any, ignoreDiscriminator: boolean): A 'authFallbackMethodTtl': json['auth_fallback_method_ttl'], 'authMethods': AuthMethodsFromJSON(json['auth_methods']), 'authOrigin': json['auth_origin'], + 'autoThemeEnabled': json['auto_theme_enabled'], 'createdAt': (new Date(json['created_at'])), 'defaultLanguage': json['default_language'], 'id': json['id'], @@ -372,6 +393,7 @@ export function AppInfoFromJSONTyped(json: any, ignoreDiscriminator: boolean): A 'name': json['name'], 'hosted': json['hosted'], 'hostedSubdomain': json['hosted_subdomain'], + 'hostedTheme': ThemeTypeFromJSON(json['hosted_theme']), 'idTokenLifetime': !exists(json, 'id_token_lifetime') ? undefined : json['id_token_lifetime'], 'passageBranding': json['passage_branding'], 'profileManagement': json['profile_management'], @@ -413,6 +435,7 @@ export function AppInfoToJSON(value?: AppInfo | null): any { 'auth_fallback_method_ttl': value.authFallbackMethodTtl, 'auth_methods': AuthMethodsToJSON(value.authMethods), 'auth_origin': value.authOrigin, + 'auto_theme_enabled': value.autoThemeEnabled, 'created_at': (value.createdAt.toISOString()), 'default_language': value.defaultLanguage, 'id': value.id, @@ -423,6 +446,7 @@ export function AppInfoToJSON(value?: AppInfo | null): any { 'name': value.name, 'hosted': value.hosted, 'hosted_subdomain': value.hostedSubdomain, + 'hosted_theme': ThemeTypeToJSON(value.hostedTheme), 'id_token_lifetime': value.idTokenLifetime, 'passage_branding': value.passageBranding, 'profile_management': value.profileManagement, diff --git a/src/generated/models/ThemeType.ts b/src/generated/models/ThemeType.ts new file mode 100644 index 0000000..cd08e4d --- /dev/null +++ b/src/generated/models/ThemeType.ts @@ -0,0 +1,39 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Passage Management API + * Passage\'s management API to manage your Passage apps and users. + * + * The version of the OpenAPI document: 1 + * Contact: support@passage.id + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +/** + * + * @export + */ +export const ThemeType = { + Auto: 'auto', + Light: 'light', + Dark: 'dark' +} as const; +export type ThemeType = typeof ThemeType[keyof typeof ThemeType]; + + +export function ThemeTypeFromJSON(json: any): ThemeType { + return ThemeTypeFromJSONTyped(json, false); +} + +export function ThemeTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): ThemeType { + return json as ThemeType; +} + +export function ThemeTypeToJSON(value?: ThemeType | null): any { + return value as any; +} + diff --git a/src/generated/models/index.ts b/src/generated/models/index.ts index 0d40f9f..973cadb 100644 --- a/src/generated/models/index.ts +++ b/src/generated/models/index.ts @@ -30,6 +30,7 @@ export * from './OtpAuthMethod'; export * from './PaginatedLinks'; export * from './PasskeysAuthMethod'; export * from './Technologies'; +export * from './ThemeType'; export * from './TtlDisplayUnit'; export * from './UserEventStatus'; export * from './UserInfo';