@faable/auth-sdk 1.0.16 → 1.0.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/FaableAuthApi.d.ts +62 -0
- package/dist/paginator.d.ts +4 -0
- package/dist/paginator.js +10 -0
- package/package.json +1 -1
package/dist/FaableAuthApi.d.ts
CHANGED
|
@@ -70,6 +70,37 @@ export declare class FaableAuthApi {
|
|
|
70
70
|
createdAt: string;
|
|
71
71
|
updatedAt?: string;
|
|
72
72
|
}>>;
|
|
73
|
+
pass: (params?: {
|
|
74
|
+
cursor?: string;
|
|
75
|
+
pageSize?: string;
|
|
76
|
+
}) => Promise<Page<{
|
|
77
|
+
id: string;
|
|
78
|
+
name?: string;
|
|
79
|
+
username?: string;
|
|
80
|
+
given_name?: string;
|
|
81
|
+
family_name?: string;
|
|
82
|
+
email?: string;
|
|
83
|
+
email_verified: boolean;
|
|
84
|
+
phone?: string;
|
|
85
|
+
phone_verified: boolean;
|
|
86
|
+
country_iso?: string;
|
|
87
|
+
birth_date?: string;
|
|
88
|
+
locale: string;
|
|
89
|
+
region?: string;
|
|
90
|
+
picture?: string;
|
|
91
|
+
logins_count: number;
|
|
92
|
+
last_ip?: string;
|
|
93
|
+
last_login?: string;
|
|
94
|
+
user_metadata: {
|
|
95
|
+
[key: string]: unknown;
|
|
96
|
+
};
|
|
97
|
+
app_metadata: {
|
|
98
|
+
[key: string]: unknown;
|
|
99
|
+
};
|
|
100
|
+
account: string;
|
|
101
|
+
createdAt: string;
|
|
102
|
+
updatedAt?: string;
|
|
103
|
+
}>>;
|
|
73
104
|
};
|
|
74
105
|
getUser(user_id: any): Promise<{
|
|
75
106
|
id: string;
|
|
@@ -210,6 +241,22 @@ export declare class FaableAuthApi {
|
|
|
210
241
|
createdAt: string;
|
|
211
242
|
updatedAt?: string;
|
|
212
243
|
}>>;
|
|
244
|
+
pass: (params?: {
|
|
245
|
+
cursor?: string;
|
|
246
|
+
pageSize?: string;
|
|
247
|
+
}) => Promise<Page<{
|
|
248
|
+
id: string;
|
|
249
|
+
name: string;
|
|
250
|
+
slug: string;
|
|
251
|
+
description: string;
|
|
252
|
+
logo_url: string;
|
|
253
|
+
metadata: {
|
|
254
|
+
[key: string]: unknown;
|
|
255
|
+
};
|
|
256
|
+
account: string;
|
|
257
|
+
createdAt: string;
|
|
258
|
+
updatedAt?: string;
|
|
259
|
+
}>>;
|
|
213
260
|
};
|
|
214
261
|
listTeamMembers(params: {
|
|
215
262
|
query?: string;
|
|
@@ -238,6 +285,21 @@ export declare class FaableAuthApi {
|
|
|
238
285
|
createdAt: string;
|
|
239
286
|
updatedAt?: string;
|
|
240
287
|
}>>;
|
|
288
|
+
pass: (params?: {
|
|
289
|
+
cursor?: string;
|
|
290
|
+
pageSize?: string;
|
|
291
|
+
}) => Promise<Page<{
|
|
292
|
+
id: string;
|
|
293
|
+
user: unknown;
|
|
294
|
+
team: unknown;
|
|
295
|
+
roles: unknown[];
|
|
296
|
+
metadata: {
|
|
297
|
+
[key: string]: unknown;
|
|
298
|
+
};
|
|
299
|
+
account: string;
|
|
300
|
+
createdAt: string;
|
|
301
|
+
updatedAt?: string;
|
|
302
|
+
}>>;
|
|
241
303
|
};
|
|
242
304
|
isUserMemberOfTeam(user_id: string, team_id: string): Promise<boolean>;
|
|
243
305
|
}
|
package/dist/paginator.d.ts
CHANGED
package/dist/paginator.js
CHANGED
|
@@ -24,6 +24,16 @@ class FaablePaginator {
|
|
|
24
24
|
const res = await this.client.request(req);
|
|
25
25
|
return res.data;
|
|
26
26
|
},
|
|
27
|
+
pass: async (params = {}) => {
|
|
28
|
+
const res = await this.client.request({
|
|
29
|
+
...req,
|
|
30
|
+
params: {
|
|
31
|
+
...req.params,
|
|
32
|
+
...params,
|
|
33
|
+
},
|
|
34
|
+
});
|
|
35
|
+
return res.data;
|
|
36
|
+
},
|
|
27
37
|
};
|
|
28
38
|
}
|
|
29
39
|
}
|