Skip to content

Commit

Permalink
SDK updates (#109)
Browse files Browse the repository at this point in the history
* SDK updates

* Change files

* Commited changelog

---------

Co-authored-by: github-actions <[email protected]>
Co-authored-by: Danilo Kaltner <[email protected]>
  • Loading branch information
3 people authored Jan 30, 2024
1 parent c0ac702 commit 1ce4cba
Show file tree
Hide file tree
Showing 9 changed files with 186 additions and 70 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "minor",
"comment": "SDK updates",
"packageName": "@passageidentity/passage-node",
"email": "[email protected]",
"dependentChangeType": "patch"
}
7 changes: 4 additions & 3 deletions src/generated/.openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,14 @@ apis/index.ts
index.ts
models/AppInfo.ts
models/AppResponse.ts
models/AppleUserSocialConnection.ts
models/AuthMethods.ts
models/CreateMagicLinkRequest.ts
models/CreateUserRequest.ts
models/ElementCustomization.ts
models/FontFamily.ts
models/GithubSocialConnection.ts
models/GoogleSocialConnection.ts
models/GithubUserSocialConnection.ts
models/GoogleUserSocialConnection.ts
models/LayoutConfig.ts
models/Layouts.ts
models/ListDevicesResponse.ts
Expand All @@ -35,10 +36,10 @@ models/UpdateMagicLinkAuthMethod.ts
models/UpdateOtpAuthMethod.ts
models/UpdatePasskeysAuthMethod.ts
models/UpdateUserRequest.ts
models/UserEventInfo.ts
models/UserInfo.ts
models/UserMetadataField.ts
models/UserMetadataFieldType.ts
models/UserRecentEvent.ts
models/UserResponse.ts
models/UserSocialConnections.ts
models/UserStatus.ts
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,39 +16,39 @@ import { exists, mapValues } from '../runtime';
/**
*
* @export
* @interface GithubSocialConnection
* @interface AppleUserSocialConnection
*/
export interface GithubSocialConnection {
export interface AppleUserSocialConnection {
/**
* The external ID of the Social Connection.
* @type {string}
* @memberof GithubSocialConnection
* @memberof AppleUserSocialConnection
*/
provider_id: string;
/**
*
* @type {Date}
* @memberof GithubSocialConnection
* @memberof AppleUserSocialConnection
*/
created_at: Date;
/**
*
* @type {Date}
* @memberof GithubSocialConnection
* @memberof AppleUserSocialConnection
*/
last_login_at: Date;
/**
* The email of connected social user.
* @type {string}
* @memberof GithubSocialConnection
* @memberof AppleUserSocialConnection
*/
provider_identifier: string;
}

/**
* Check if a given object implements the GithubSocialConnection interface.
* Check if a given object implements the AppleUserSocialConnection interface.
*/
export function instanceOfGithubSocialConnection(value: object): boolean {
export function instanceOfAppleUserSocialConnection(value: object): boolean {
let isInstance = true;
isInstance = isInstance && "provider_id" in value;
isInstance = isInstance && "created_at" in value;
Expand All @@ -58,11 +58,11 @@ export function instanceOfGithubSocialConnection(value: object): boolean {
return isInstance;
}

export function GithubSocialConnectionFromJSON(json: any): GithubSocialConnection {
return GithubSocialConnectionFromJSONTyped(json, false);
export function AppleUserSocialConnectionFromJSON(json: any): AppleUserSocialConnection {
return AppleUserSocialConnectionFromJSONTyped(json, false);
}

export function GithubSocialConnectionFromJSONTyped(json: any, ignoreDiscriminator: boolean): GithubSocialConnection {
export function AppleUserSocialConnectionFromJSONTyped(json: any, ignoreDiscriminator: boolean): AppleUserSocialConnection {
if ((json === undefined) || (json === null)) {
return json;
}
Expand All @@ -75,7 +75,7 @@ export function GithubSocialConnectionFromJSONTyped(json: any, ignoreDiscriminat
};
}

export function GithubSocialConnectionToJSON(value?: GithubSocialConnection | null): any {
export function AppleUserSocialConnectionToJSON(value?: AppleUserSocialConnection | null): any {
if (value === undefined) {
return undefined;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,39 +16,39 @@ import { exists, mapValues } from '../runtime';
/**
*
* @export
* @interface GoogleSocialConnection
* @interface GithubUserSocialConnection
*/
export interface GoogleSocialConnection {
export interface GithubUserSocialConnection {
/**
* The external ID of the Social Connection.
* @type {string}
* @memberof GoogleSocialConnection
* @memberof GithubUserSocialConnection
*/
provider_id: string;
/**
*
* @type {Date}
* @memberof GoogleSocialConnection
* @memberof GithubUserSocialConnection
*/
created_at: Date;
/**
*
* @type {Date}
* @memberof GoogleSocialConnection
* @memberof GithubUserSocialConnection
*/
last_login_at: Date;
/**
* The email of connected social user.
* @type {string}
* @memberof GoogleSocialConnection
* @memberof GithubUserSocialConnection
*/
provider_identifier: string;
}

/**
* Check if a given object implements the GoogleSocialConnection interface.
* Check if a given object implements the GithubUserSocialConnection interface.
*/
export function instanceOfGoogleSocialConnection(value: object): boolean {
export function instanceOfGithubUserSocialConnection(value: object): boolean {
let isInstance = true;
isInstance = isInstance && "provider_id" in value;
isInstance = isInstance && "created_at" in value;
Expand All @@ -58,11 +58,11 @@ export function instanceOfGoogleSocialConnection(value: object): boolean {
return isInstance;
}

export function GoogleSocialConnectionFromJSON(json: any): GoogleSocialConnection {
return GoogleSocialConnectionFromJSONTyped(json, false);
export function GithubUserSocialConnectionFromJSON(json: any): GithubUserSocialConnection {
return GithubUserSocialConnectionFromJSONTyped(json, false);
}

export function GoogleSocialConnectionFromJSONTyped(json: any, ignoreDiscriminator: boolean): GoogleSocialConnection {
export function GithubUserSocialConnectionFromJSONTyped(json: any, ignoreDiscriminator: boolean): GithubUserSocialConnection {
if ((json === undefined) || (json === null)) {
return json;
}
Expand All @@ -75,7 +75,7 @@ export function GoogleSocialConnectionFromJSONTyped(json: any, ignoreDiscriminat
};
}

export function GoogleSocialConnectionToJSON(value?: GoogleSocialConnection | null): any {
export function GithubUserSocialConnectionToJSON(value?: GithubUserSocialConnection | null): any {
if (value === undefined) {
return undefined;
}
Expand Down
93 changes: 93 additions & 0 deletions src/generated/models/GoogleUserSocialConnection.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
/* 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.
*/

import { exists, mapValues } from '../runtime';
/**
*
* @export
* @interface GoogleUserSocialConnection
*/
export interface GoogleUserSocialConnection {
/**
* The external ID of the Social Connection.
* @type {string}
* @memberof GoogleUserSocialConnection
*/
provider_id: string;
/**
*
* @type {Date}
* @memberof GoogleUserSocialConnection
*/
created_at: Date;
/**
*
* @type {Date}
* @memberof GoogleUserSocialConnection
*/
last_login_at: Date;
/**
* The email of connected social user.
* @type {string}
* @memberof GoogleUserSocialConnection
*/
provider_identifier: string;
}

/**
* Check if a given object implements the GoogleUserSocialConnection interface.
*/
export function instanceOfGoogleUserSocialConnection(value: object): boolean {
let isInstance = true;
isInstance = isInstance && "provider_id" in value;
isInstance = isInstance && "created_at" in value;
isInstance = isInstance && "last_login_at" in value;
isInstance = isInstance && "provider_identifier" in value;

return isInstance;
}

export function GoogleUserSocialConnectionFromJSON(json: any): GoogleUserSocialConnection {
return GoogleUserSocialConnectionFromJSONTyped(json, false);
}

export function GoogleUserSocialConnectionFromJSONTyped(json: any, ignoreDiscriminator: boolean): GoogleUserSocialConnection {
if ((json === undefined) || (json === null)) {
return json;
}
return {

'provider_id': json['provider_id'],
'created_at': (new Date(json['created_at'])),
'last_login_at': (new Date(json['last_login_at'])),
'provider_identifier': json['provider_identifier'],
};
}

export function GoogleUserSocialConnectionToJSON(value?: GoogleUserSocialConnection | null): any {
if (value === undefined) {
return undefined;
}
if (value === null) {
return null;
}
return {

'provider_id': value.provider_id,
'created_at': (value.created_at.toISOString()),
'last_login_at': (value.last_login_at.toISOString()),
'provider_identifier': value.provider_identifier,
};
}

18 changes: 9 additions & 9 deletions src/generated/models/UserInfo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@
*/

import { exists, mapValues } from '../runtime';
import type { UserEventInfo } from './UserEventInfo';
import type { UserRecentEvent } from './UserRecentEvent';
import {
UserEventInfoFromJSON,
UserEventInfoFromJSONTyped,
UserEventInfoToJSON,
} from './UserEventInfo';
UserRecentEventFromJSON,
UserRecentEventFromJSONTyped,
UserRecentEventToJSON,
} from './UserRecentEvent';
import type { UserSocialConnections } from './UserSocialConnections';
import {
UserSocialConnectionsFromJSON,
Expand Down Expand Up @@ -100,10 +100,10 @@ export interface UserInfo {
phone_verified: boolean;
/**
*
* @type {Array<UserEventInfo>}
* @type {Array<UserRecentEvent>}
* @memberof UserInfo
*/
recent_events: Array<UserEventInfo>;
recent_events: Array<UserRecentEvent>;
/**
*
* @type {UserSocialConnections}
Expand Down Expand Up @@ -191,7 +191,7 @@ export function UserInfoFromJSONTyped(json: any, ignoreDiscriminator: boolean):
'login_count': json['login_count'],
'phone': json['phone'],
'phone_verified': json['phone_verified'],
'recent_events': ((json['recent_events'] as Array<any>).map(UserEventInfoFromJSON)),
'recent_events': ((json['recent_events'] as Array<any>).map(UserRecentEventFromJSON)),
'social_connections': UserSocialConnectionsFromJSON(json['social_connections']),
'status': UserStatusFromJSON(json['status']),
'updated_at': (new Date(json['updated_at'])),
Expand Down Expand Up @@ -219,7 +219,7 @@ export function UserInfoToJSON(value?: UserInfo | null): any {
'login_count': value.login_count,
'phone': value.phone,
'phone_verified': value.phone_verified,
'recent_events': ((value.recent_events as Array<any>).map(UserEventInfoToJSON)),
'recent_events': ((value.recent_events as Array<any>).map(UserRecentEventToJSON)),
'social_connections': UserSocialConnectionsToJSON(value.social_connections),
'status': UserStatusToJSON(value.status),
'updated_at': (value.updated_at.toISOString()),
Expand Down
Loading

0 comments on commit 1ce4cba

Please sign in to comment.