Skip to content

Commit

Permalink
SDK updates
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions committed Aug 26, 2024
1 parent dc8e3a5 commit e893387
Show file tree
Hide file tree
Showing 4 changed files with 65 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/generated/.openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
24 changes: 24 additions & 0 deletions src/generated/models/AppInfo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -106,6 +112,12 @@ export interface AppInfo {
* @memberof AppInfo
*/
authOrigin: string;
/**
*
* @type {boolean}
* @memberof AppInfo
*/
autoThemeEnabled: boolean;
/**
*
* @type {Date}
Expand Down Expand Up @@ -166,6 +178,12 @@ export interface AppInfo {
* @memberof AppInfo
*/
hostedSubdomain: string;
/**
*
* @type {ThemeType}
* @memberof AppInfo
*/
hostedTheme: ThemeType;
/**
*
* @type {number}
Expand Down Expand Up @@ -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;
Expand All @@ -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;
Expand Down Expand Up @@ -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'],
Expand All @@ -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'],
Expand Down Expand Up @@ -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,
Expand All @@ -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,
Expand Down
39 changes: 39 additions & 0 deletions src/generated/models/ThemeType.ts
Original file line number Diff line number Diff line change
@@ -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: [email protected]
*
* 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;
}

1 change: 1 addition & 0 deletions src/generated/models/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down

0 comments on commit e893387

Please sign in to comment.