@faable/auth-sdk 1.1.2 → 1.1.3

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/README.md CHANGED
@@ -13,7 +13,7 @@
13
13
 
14
14
  Programmatically perform FaableAuth administrative tasks though our REST API.
15
15
 
16
- > ⚠️ Use server side only. Otherwise administrative credentials may be exposed in client side.
16
+ > ⚠️ Use this library in server side only. Otherwise administrative credentials may be exposed.
17
17
 
18
18
  ## Install
19
19
 
@@ -15,6 +15,7 @@ export declare class FaableAuthApi extends FaableApi {
15
15
  id: string;
16
16
  name: string;
17
17
  domain: string;
18
+ slug: string;
18
19
  logo_src?: string | null | undefined;
19
20
  callback_hostnames: string[];
20
21
  token_signature: string;
@@ -52,6 +53,9 @@ export declare class FaableAuthApi extends FaableApi {
52
53
  [key: string]: unknown;
53
54
  };
54
55
  account: string;
56
+ metadata: {
57
+ [key: string]: unknown;
58
+ };
55
59
  createdAt: string;
56
60
  updatedAt?: string | undefined;
57
61
  }[]>;
@@ -80,6 +84,9 @@ export declare class FaableAuthApi extends FaableApi {
80
84
  [key: string]: unknown;
81
85
  };
82
86
  account: string;
87
+ metadata: {
88
+ [key: string]: unknown;
89
+ };
83
90
  createdAt: string;
84
91
  updatedAt?: string | undefined;
85
92
  }>>;
@@ -111,6 +118,9 @@ export declare class FaableAuthApi extends FaableApi {
111
118
  [key: string]: unknown;
112
119
  };
113
120
  account: string;
121
+ metadata: {
122
+ [key: string]: unknown;
123
+ };
114
124
  createdAt: string;
115
125
  updatedAt?: string | undefined;
116
126
  }>>;
@@ -140,6 +150,9 @@ export declare class FaableAuthApi extends FaableApi {
140
150
  [key: string]: unknown;
141
151
  };
142
152
  account: string;
153
+ metadata: {
154
+ [key: string]: unknown;
155
+ };
143
156
  createdAt: string;
144
157
  updatedAt?: string | undefined;
145
158
  }>;
@@ -168,6 +181,9 @@ export declare class FaableAuthApi extends FaableApi {
168
181
  [key: string]: unknown;
169
182
  };
170
183
  account: string;
184
+ metadata: {
185
+ [key: string]: unknown;
186
+ };
171
187
  createdAt: string;
172
188
  updatedAt?: string | undefined;
173
189
  }>;
@@ -196,6 +212,9 @@ export declare class FaableAuthApi extends FaableApi {
196
212
  [key: string]: unknown;
197
213
  };
198
214
  account: string;
215
+ metadata: {
216
+ [key: string]: unknown;
217
+ };
199
218
  createdAt: string;
200
219
  updatedAt?: string | undefined;
201
220
  }>;
@@ -205,10 +224,10 @@ export declare class FaableAuthApi extends FaableApi {
205
224
  slug: string;
206
225
  description: string | null;
207
226
  logo_url: string | null;
227
+ account: string;
208
228
  metadata: {
209
229
  [key: string]: unknown;
210
230
  };
211
- account: string;
212
231
  createdAt: string;
213
232
  updatedAt?: string | undefined;
214
233
  }>;
@@ -218,10 +237,10 @@ export declare class FaableAuthApi extends FaableApi {
218
237
  slug: string;
219
238
  description: string | null;
220
239
  logo_url: string | null;
240
+ account: string;
221
241
  metadata: {
222
242
  [key: string]: unknown;
223
243
  };
224
- account: string;
225
244
  createdAt: string;
226
245
  updatedAt?: string | undefined;
227
246
  }>;
@@ -234,10 +253,10 @@ export declare class FaableAuthApi extends FaableApi {
234
253
  slug: string;
235
254
  description: string | null;
236
255
  logo_url: string | null;
256
+ account: string;
237
257
  metadata: {
238
258
  [key: string]: unknown;
239
259
  };
240
- account: string;
241
260
  createdAt: string;
242
261
  updatedAt?: string | undefined;
243
262
  }[]>;
@@ -247,10 +266,10 @@ export declare class FaableAuthApi extends FaableApi {
247
266
  slug: string;
248
267
  description: string | null;
249
268
  logo_url: string | null;
269
+ account: string;
250
270
  metadata: {
251
271
  [key: string]: unknown;
252
272
  };
253
- account: string;
254
273
  createdAt: string;
255
274
  updatedAt?: string | undefined;
256
275
  }>>;
@@ -263,10 +282,10 @@ export declare class FaableAuthApi extends FaableApi {
263
282
  slug: string;
264
283
  description: string | null;
265
284
  logo_url: string | null;
285
+ account: string;
266
286
  metadata: {
267
287
  [key: string]: unknown;
268
288
  };
269
- account: string;
270
289
  createdAt: string;
271
290
  updatedAt?: string | undefined;
272
291
  }>>;
@@ -279,10 +298,10 @@ export declare class FaableAuthApi extends FaableApi {
279
298
  user: unknown;
280
299
  team: unknown;
281
300
  roles: unknown[];
301
+ account: string;
282
302
  metadata: {
283
303
  [key: string]: unknown;
284
304
  };
285
- account: string;
286
305
  createdAt: string;
287
306
  updatedAt?: string | undefined;
288
307
  }[]>;
@@ -291,10 +310,10 @@ export declare class FaableAuthApi extends FaableApi {
291
310
  user: unknown;
292
311
  team: unknown;
293
312
  roles: unknown[];
313
+ account: string;
294
314
  metadata: {
295
315
  [key: string]: unknown;
296
316
  };
297
- account: string;
298
317
  createdAt: string;
299
318
  updatedAt?: string | undefined;
300
319
  }>>;
@@ -306,10 +325,10 @@ export declare class FaableAuthApi extends FaableApi {
306
325
  user: unknown;
307
326
  team: unknown;
308
327
  roles: unknown[];
328
+ account: string;
309
329
  metadata: {
310
330
  [key: string]: unknown;
311
331
  };
312
- account: string;
313
332
  createdAt: string;
314
333
  updatedAt?: string | undefined;
315
334
  }>>;
@@ -49,11 +49,8 @@ export class FaableAuthApi extends FaableApi {
49
49
  }
50
50
  listTeamMembers(params) {
51
51
  return this.paginator({
52
- url: `/member`,
53
- params: {
54
- ...params,
55
- expand: "team",
56
- },
52
+ url: `/teammember`,
53
+ params,
57
54
  });
58
55
  }
59
56
  isUserMemberOfTeam(user_id, team_id) {