Skip to content

Commit 1ce4cba

Browse files
passage-beachball-botgithub-actionsdanilo-kaltner
authored
SDK updates (#109)
* SDK updates * Change files * Commited changelog --------- Co-authored-by: github-actions <[email protected]> Co-authored-by: Danilo Kaltner <[email protected]>
1 parent c0ac702 commit 1ce4cba

9 files changed

+186
-70
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"type": "minor",
3+
"comment": "SDK updates",
4+
"packageName": "@passageidentity/passage-node",
5+
"email": "[email protected]",
6+
"dependentChangeType": "patch"
7+
}

src/generated/.openapi-generator/FILES

+4-3
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,14 @@ apis/index.ts
88
index.ts
99
models/AppInfo.ts
1010
models/AppResponse.ts
11+
models/AppleUserSocialConnection.ts
1112
models/AuthMethods.ts
1213
models/CreateMagicLinkRequest.ts
1314
models/CreateUserRequest.ts
1415
models/ElementCustomization.ts
1516
models/FontFamily.ts
16-
models/GithubSocialConnection.ts
17-
models/GoogleSocialConnection.ts
17+
models/GithubUserSocialConnection.ts
18+
models/GoogleUserSocialConnection.ts
1819
models/LayoutConfig.ts
1920
models/Layouts.ts
2021
models/ListDevicesResponse.ts
@@ -35,10 +36,10 @@ models/UpdateMagicLinkAuthMethod.ts
3536
models/UpdateOtpAuthMethod.ts
3637
models/UpdatePasskeysAuthMethod.ts
3738
models/UpdateUserRequest.ts
38-
models/UserEventInfo.ts
3939
models/UserInfo.ts
4040
models/UserMetadataField.ts
4141
models/UserMetadataFieldType.ts
42+
models/UserRecentEvent.ts
4243
models/UserResponse.ts
4344
models/UserSocialConnections.ts
4445
models/UserStatus.ts

src/generated/models/GithubSocialConnection.ts src/generated/models/AppleUserSocialConnection.ts

+12-12
Original file line numberDiff line numberDiff line change
@@ -16,39 +16,39 @@ import { exists, mapValues } from '../runtime';
1616
/**
1717
*
1818
* @export
19-
* @interface GithubSocialConnection
19+
* @interface AppleUserSocialConnection
2020
*/
21-
export interface GithubSocialConnection {
21+
export interface AppleUserSocialConnection {
2222
/**
2323
* The external ID of the Social Connection.
2424
* @type {string}
25-
* @memberof GithubSocialConnection
25+
* @memberof AppleUserSocialConnection
2626
*/
2727
provider_id: string;
2828
/**
2929
*
3030
* @type {Date}
31-
* @memberof GithubSocialConnection
31+
* @memberof AppleUserSocialConnection
3232
*/
3333
created_at: Date;
3434
/**
3535
*
3636
* @type {Date}
37-
* @memberof GithubSocialConnection
37+
* @memberof AppleUserSocialConnection
3838
*/
3939
last_login_at: Date;
4040
/**
4141
* The email of connected social user.
4242
* @type {string}
43-
* @memberof GithubSocialConnection
43+
* @memberof AppleUserSocialConnection
4444
*/
4545
provider_identifier: string;
4646
}
4747

4848
/**
49-
* Check if a given object implements the GithubSocialConnection interface.
49+
* Check if a given object implements the AppleUserSocialConnection interface.
5050
*/
51-
export function instanceOfGithubSocialConnection(value: object): boolean {
51+
export function instanceOfAppleUserSocialConnection(value: object): boolean {
5252
let isInstance = true;
5353
isInstance = isInstance && "provider_id" in value;
5454
isInstance = isInstance && "created_at" in value;
@@ -58,11 +58,11 @@ export function instanceOfGithubSocialConnection(value: object): boolean {
5858
return isInstance;
5959
}
6060

61-
export function GithubSocialConnectionFromJSON(json: any): GithubSocialConnection {
62-
return GithubSocialConnectionFromJSONTyped(json, false);
61+
export function AppleUserSocialConnectionFromJSON(json: any): AppleUserSocialConnection {
62+
return AppleUserSocialConnectionFromJSONTyped(json, false);
6363
}
6464

65-
export function GithubSocialConnectionFromJSONTyped(json: any, ignoreDiscriminator: boolean): GithubSocialConnection {
65+
export function AppleUserSocialConnectionFromJSONTyped(json: any, ignoreDiscriminator: boolean): AppleUserSocialConnection {
6666
if ((json === undefined) || (json === null)) {
6767
return json;
6868
}
@@ -75,7 +75,7 @@ export function GithubSocialConnectionFromJSONTyped(json: any, ignoreDiscriminat
7575
};
7676
}
7777

78-
export function GithubSocialConnectionToJSON(value?: GithubSocialConnection | null): any {
78+
export function AppleUserSocialConnectionToJSON(value?: AppleUserSocialConnection | null): any {
7979
if (value === undefined) {
8080
return undefined;
8181
}

src/generated/models/GoogleSocialConnection.ts src/generated/models/GithubUserSocialConnection.ts

+12-12
Original file line numberDiff line numberDiff line change
@@ -16,39 +16,39 @@ import { exists, mapValues } from '../runtime';
1616
/**
1717
*
1818
* @export
19-
* @interface GoogleSocialConnection
19+
* @interface GithubUserSocialConnection
2020
*/
21-
export interface GoogleSocialConnection {
21+
export interface GithubUserSocialConnection {
2222
/**
2323
* The external ID of the Social Connection.
2424
* @type {string}
25-
* @memberof GoogleSocialConnection
25+
* @memberof GithubUserSocialConnection
2626
*/
2727
provider_id: string;
2828
/**
2929
*
3030
* @type {Date}
31-
* @memberof GoogleSocialConnection
31+
* @memberof GithubUserSocialConnection
3232
*/
3333
created_at: Date;
3434
/**
3535
*
3636
* @type {Date}
37-
* @memberof GoogleSocialConnection
37+
* @memberof GithubUserSocialConnection
3838
*/
3939
last_login_at: Date;
4040
/**
4141
* The email of connected social user.
4242
* @type {string}
43-
* @memberof GoogleSocialConnection
43+
* @memberof GithubUserSocialConnection
4444
*/
4545
provider_identifier: string;
4646
}
4747

4848
/**
49-
* Check if a given object implements the GoogleSocialConnection interface.
49+
* Check if a given object implements the GithubUserSocialConnection interface.
5050
*/
51-
export function instanceOfGoogleSocialConnection(value: object): boolean {
51+
export function instanceOfGithubUserSocialConnection(value: object): boolean {
5252
let isInstance = true;
5353
isInstance = isInstance && "provider_id" in value;
5454
isInstance = isInstance && "created_at" in value;
@@ -58,11 +58,11 @@ export function instanceOfGoogleSocialConnection(value: object): boolean {
5858
return isInstance;
5959
}
6060

61-
export function GoogleSocialConnectionFromJSON(json: any): GoogleSocialConnection {
62-
return GoogleSocialConnectionFromJSONTyped(json, false);
61+
export function GithubUserSocialConnectionFromJSON(json: any): GithubUserSocialConnection {
62+
return GithubUserSocialConnectionFromJSONTyped(json, false);
6363
}
6464

65-
export function GoogleSocialConnectionFromJSONTyped(json: any, ignoreDiscriminator: boolean): GoogleSocialConnection {
65+
export function GithubUserSocialConnectionFromJSONTyped(json: any, ignoreDiscriminator: boolean): GithubUserSocialConnection {
6666
if ((json === undefined) || (json === null)) {
6767
return json;
6868
}
@@ -75,7 +75,7 @@ export function GoogleSocialConnectionFromJSONTyped(json: any, ignoreDiscriminat
7575
};
7676
}
7777

78-
export function GoogleSocialConnectionToJSON(value?: GoogleSocialConnection | null): any {
78+
export function GithubUserSocialConnectionToJSON(value?: GithubUserSocialConnection | null): any {
7979
if (value === undefined) {
8080
return undefined;
8181
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,93 @@
1+
/* tslint:disable */
2+
/* eslint-disable */
3+
/**
4+
* Passage Management API
5+
* Passage\'s management API to manage your Passage apps and users.
6+
*
7+
* The version of the OpenAPI document: 1
8+
* Contact: [email protected]
9+
*
10+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11+
* https://openapi-generator.tech
12+
* Do not edit the class manually.
13+
*/
14+
15+
import { exists, mapValues } from '../runtime';
16+
/**
17+
*
18+
* @export
19+
* @interface GoogleUserSocialConnection
20+
*/
21+
export interface GoogleUserSocialConnection {
22+
/**
23+
* The external ID of the Social Connection.
24+
* @type {string}
25+
* @memberof GoogleUserSocialConnection
26+
*/
27+
provider_id: string;
28+
/**
29+
*
30+
* @type {Date}
31+
* @memberof GoogleUserSocialConnection
32+
*/
33+
created_at: Date;
34+
/**
35+
*
36+
* @type {Date}
37+
* @memberof GoogleUserSocialConnection
38+
*/
39+
last_login_at: Date;
40+
/**
41+
* The email of connected social user.
42+
* @type {string}
43+
* @memberof GoogleUserSocialConnection
44+
*/
45+
provider_identifier: string;
46+
}
47+
48+
/**
49+
* Check if a given object implements the GoogleUserSocialConnection interface.
50+
*/
51+
export function instanceOfGoogleUserSocialConnection(value: object): boolean {
52+
let isInstance = true;
53+
isInstance = isInstance && "provider_id" in value;
54+
isInstance = isInstance && "created_at" in value;
55+
isInstance = isInstance && "last_login_at" in value;
56+
isInstance = isInstance && "provider_identifier" in value;
57+
58+
return isInstance;
59+
}
60+
61+
export function GoogleUserSocialConnectionFromJSON(json: any): GoogleUserSocialConnection {
62+
return GoogleUserSocialConnectionFromJSONTyped(json, false);
63+
}
64+
65+
export function GoogleUserSocialConnectionFromJSONTyped(json: any, ignoreDiscriminator: boolean): GoogleUserSocialConnection {
66+
if ((json === undefined) || (json === null)) {
67+
return json;
68+
}
69+
return {
70+
71+
'provider_id': json['provider_id'],
72+
'created_at': (new Date(json['created_at'])),
73+
'last_login_at': (new Date(json['last_login_at'])),
74+
'provider_identifier': json['provider_identifier'],
75+
};
76+
}
77+
78+
export function GoogleUserSocialConnectionToJSON(value?: GoogleUserSocialConnection | null): any {
79+
if (value === undefined) {
80+
return undefined;
81+
}
82+
if (value === null) {
83+
return null;
84+
}
85+
return {
86+
87+
'provider_id': value.provider_id,
88+
'created_at': (value.created_at.toISOString()),
89+
'last_login_at': (value.last_login_at.toISOString()),
90+
'provider_identifier': value.provider_identifier,
91+
};
92+
}
93+

src/generated/models/UserInfo.ts

+9-9
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@
1313
*/
1414

1515
import { exists, mapValues } from '../runtime';
16-
import type { UserEventInfo } from './UserEventInfo';
16+
import type { UserRecentEvent } from './UserRecentEvent';
1717
import {
18-
UserEventInfoFromJSON,
19-
UserEventInfoFromJSONTyped,
20-
UserEventInfoToJSON,
21-
} from './UserEventInfo';
18+
UserRecentEventFromJSON,
19+
UserRecentEventFromJSONTyped,
20+
UserRecentEventToJSON,
21+
} from './UserRecentEvent';
2222
import type { UserSocialConnections } from './UserSocialConnections';
2323
import {
2424
UserSocialConnectionsFromJSON,
@@ -100,10 +100,10 @@ export interface UserInfo {
100100
phone_verified: boolean;
101101
/**
102102
*
103-
* @type {Array<UserEventInfo>}
103+
* @type {Array<UserRecentEvent>}
104104
* @memberof UserInfo
105105
*/
106-
recent_events: Array<UserEventInfo>;
106+
recent_events: Array<UserRecentEvent>;
107107
/**
108108
*
109109
* @type {UserSocialConnections}
@@ -191,7 +191,7 @@ export function UserInfoFromJSONTyped(json: any, ignoreDiscriminator: boolean):
191191
'login_count': json['login_count'],
192192
'phone': json['phone'],
193193
'phone_verified': json['phone_verified'],
194-
'recent_events': ((json['recent_events'] as Array<any>).map(UserEventInfoFromJSON)),
194+
'recent_events': ((json['recent_events'] as Array<any>).map(UserRecentEventFromJSON)),
195195
'social_connections': UserSocialConnectionsFromJSON(json['social_connections']),
196196
'status': UserStatusFromJSON(json['status']),
197197
'updated_at': (new Date(json['updated_at'])),
@@ -219,7 +219,7 @@ export function UserInfoToJSON(value?: UserInfo | null): any {
219219
'login_count': value.login_count,
220220
'phone': value.phone,
221221
'phone_verified': value.phone_verified,
222-
'recent_events': ((value.recent_events as Array<any>).map(UserEventInfoToJSON)),
222+
'recent_events': ((value.recent_events as Array<any>).map(UserRecentEventToJSON)),
223223
'social_connections': UserSocialConnectionsToJSON(value.social_connections),
224224
'status': UserStatusToJSON(value.status),
225225
'updated_at': (value.updated_at.toISOString()),

0 commit comments

Comments
 (0)