@faable/auth-sdk 1.1.1 → 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.
@@ -29,15 +29,22 @@ export interface paths {
29
29
  query?: {
30
30
  /** @description Start from this cursor */
31
31
  cursor?: string;
32
+ /** @description Start from this cursor */
33
+ next?: string;
32
34
  /** @description Size of the results array */
33
35
  pageSize?: number;
34
36
  };
35
37
  };
36
38
  responses: {
37
- /** @description Default Response */
39
+ /** @description PaginatedResponse */
38
40
  200: {
39
41
  content: {
40
- "application/json": components["schemas"]["AuthAccountPage"];
42
+ "application/json": {
43
+ /** @description next cursor */
44
+ next: string | null;
45
+ /** @description List of results */
46
+ results: components["schemas"]["AuthAccount"][];
47
+ };
41
48
  };
42
49
  };
43
50
  };
@@ -82,6 +89,7 @@ export interface paths {
82
89
  id: string;
83
90
  name: string;
84
91
  domain: string;
92
+ slug: string;
85
93
  logo_src?: string | null;
86
94
  callback_hostnames: string[];
87
95
  token_signature: string;
@@ -118,6 +126,7 @@ export interface paths {
118
126
  id: string;
119
127
  name: string;
120
128
  domain: string;
129
+ slug: string;
121
130
  logo_src?: string | null;
122
131
  callback_hostnames: string[];
123
132
  token_signature: string;
@@ -140,21 +149,11 @@ export interface paths {
140
149
  * @description List Connections in Account
141
150
  */
142
151
  get: operations["connection/list"];
143
- post: {
144
- requestBody?: {
145
- content: {
146
- "application/json": components["schemas"]["ConnectionCreate"];
147
- };
148
- };
149
- responses: {
150
- /** @description Default Response */
151
- 200: {
152
- content: {
153
- "application/json": components["schemas"]["Connection"];
154
- };
155
- };
156
- };
157
- };
152
+ /**
153
+ * Create Connection in Account
154
+ * @description Create Connection in Account
155
+ */
156
+ post: operations["connection/create"];
158
157
  };
159
158
  "/connection/{connection_id}": {
160
159
  /**
@@ -168,72 +167,6 @@ export interface paths {
168
167
  */
169
168
  delete: operations["connection/remove"];
170
169
  };
171
- "/keys/rotate": {
172
- /**
173
- * Rotate Account Keys
174
- * @description Rotate Account Keys
175
- */
176
- post: {
177
- requestBody?: {
178
- content: {
179
- "application/json": Record<string, never>;
180
- };
181
- };
182
- responses: {
183
- /** @description Default Response */
184
- 200: {
185
- content: never;
186
- };
187
- };
188
- };
189
- };
190
- "/passwordless/start": {
191
- /**
192
- * Start Passwordless authentication flow
193
- * @description Start Passwordless authentication flow
194
- */
195
- post: operations["passwordless/start"];
196
- };
197
- "/passwordless/magic": {
198
- /** @description Receive a passwordless token and convert it to a valid session */
199
- get: operations["passwordless/login"];
200
- };
201
- "/me": {
202
- /**
203
- * Introspection endpoint for current User in session
204
- * @description Introspection endpoint for current User in session
205
- */
206
- get: {
207
- responses: {
208
- /** @description Default Response */
209
- 200: {
210
- content: {
211
- "application/json": components["schemas"]["User"];
212
- };
213
- };
214
- };
215
- };
216
- };
217
- "/logout": {
218
- /**
219
- * Logout current user
220
- * @description Logout current user
221
- */
222
- get: {
223
- parameters: {
224
- query?: {
225
- client_id?: string;
226
- returnTo?: string;
227
- };
228
- };
229
- responses: {
230
- /** @description Default Response */
231
- 200: {
232
- content: never;
233
- };
234
- };
235
- };
236
- };
237
170
  "/client": {
238
171
  /**
239
172
  * List Clients in Account
@@ -241,24 +174,10 @@ export interface paths {
241
174
  */
242
175
  get: operations["client/list"];
243
176
  /**
244
- * Create an OAuth Client
245
- * @description Create an OAuth Client
177
+ * Create Client in Account
178
+ * @description Create Client in Account
246
179
  */
247
- post: {
248
- requestBody?: {
249
- content: {
250
- "application/json": components["schemas"]["ClientCreate"];
251
- };
252
- };
253
- responses: {
254
- /** @description Default Response */
255
- 201: {
256
- content: {
257
- "application/json": components["schemas"]["Client"];
258
- };
259
- };
260
- };
261
- };
180
+ post: operations["client/create"];
262
181
  };
263
182
  "/client/{client_id}": {
264
183
  /**
@@ -272,97 +191,6 @@ export interface paths {
272
191
  */
273
192
  delete: operations["client/remove"];
274
193
  };
275
- "/authorize": {
276
- /**
277
- * Authorization request
278
- * @description Authorization request
279
- */
280
- get: operations["authorize"];
281
- };
282
- "/oauth/token": {
283
- /**
284
- * Token exchange
285
- * @description Token exchange
286
- */
287
- post: {
288
- requestBody?: {
289
- content: {
290
- "application/json": components["schemas"]["OAuthToken Body"];
291
- };
292
- };
293
- responses: {
294
- /** @description Default Response */
295
- 200: {
296
- content: never;
297
- };
298
- };
299
- };
300
- };
301
- "/callback": {
302
- /**
303
- * OAuth2 Callback URL
304
- * @description OAuth2 Callback URL
305
- */
306
- get: operations["callback"];
307
- };
308
- "/.well-known/openid-configuration": {
309
- /**
310
- * OpenID Discovery
311
- * @description OpenID Discovery
312
- */
313
- get: {
314
- responses: {
315
- /** @description Default Response */
316
- 200: {
317
- content: never;
318
- };
319
- };
320
- };
321
- };
322
- "/.well-known/jwks.json": {
323
- /**
324
- * JWKS endpoint
325
- * @description JWKS endpoint
326
- */
327
- get: {
328
- responses: {
329
- /** @description Default Response */
330
- 200: {
331
- content: never;
332
- };
333
- };
334
- };
335
- };
336
- "/usernamepassword/login": {
337
- post: {
338
- requestBody?: {
339
- content: {
340
- "application/json": components["schemas"]["UsernamepasswordLoginBody"];
341
- };
342
- };
343
- responses: {
344
- /** @description Default Response */
345
- 200: {
346
- content: never;
347
- };
348
- };
349
- };
350
- };
351
- "/login/callback": {
352
- post: {
353
- requestBody?: {
354
- content: {
355
- "application/json": components["schemas"]["LoginCallbackBody"];
356
- };
357
- };
358
- responses: {
359
- /** @description Default Response */
360
- 200: {
361
- content: never;
362
- };
363
- };
364
- };
365
- };
366
194
  "/user": {
367
195
  /**
368
196
  * List Users in Account
@@ -370,8 +198,8 @@ export interface paths {
370
198
  */
371
199
  get: operations["user/list"];
372
200
  /**
373
- * Create a user
374
- * @description Create a user
201
+ * Create User in Account
202
+ * @description Create User in Account
375
203
  */
376
204
  post: operations["user/create"];
377
205
  };
@@ -382,8 +210,8 @@ export interface paths {
382
210
  */
383
211
  get: operations["user/get"];
384
212
  /**
385
- * Update a user
386
- * @description Update a user
213
+ * Update Users in Account
214
+ * @description Update Users in Account
387
215
  */
388
216
  post: operations["user/update"];
389
217
  /**
@@ -398,6 +226,11 @@ export interface paths {
398
226
  * @description List Identitys in Account
399
227
  */
400
228
  get: operations["identity/list"];
229
+ /**
230
+ * Create Identity in Account
231
+ * @description Create Identity in Account
232
+ */
233
+ post: operations["identity/create"];
401
234
  };
402
235
  "/identity/{identity_id}": {
403
236
  /**
@@ -418,11 +251,23 @@ export interface paths {
418
251
  */
419
252
  get: operations["role/list"];
420
253
  /**
421
- * Create a Role
422
- * @description Create a Role
254
+ * Create Role in Account
255
+ * @description Create Role in Account
423
256
  */
424
257
  post: operations["role/create"];
425
258
  };
259
+ "/role/{role_id}": {
260
+ /**
261
+ * Get Role in Account
262
+ * @description Get Role in Account
263
+ */
264
+ get: operations["role/get"];
265
+ /**
266
+ * Delete Role in Account
267
+ * @description Delete Role in Account
268
+ */
269
+ delete: operations["role/remove"];
270
+ };
426
271
  "/role/{role_id}/users": {
427
272
  /**
428
273
  * List Users with Role
@@ -435,17 +280,29 @@ export interface paths {
435
280
  */
436
281
  post: operations["role/assign_users"];
437
282
  };
438
- "/role/{role_id}": {
283
+ "/rolemember": {
439
284
  /**
440
- * Get Role in Account
441
- * @description Get Role in Account
285
+ * List Rolemembers in Account
286
+ * @description List Rolemembers in Account
442
287
  */
443
- get: operations["role/get"];
288
+ get: operations["rolemember/list"];
444
289
  /**
445
- * Delete Role in Account
446
- * @description Delete Role in Account
290
+ * Create Rolemember in Account
291
+ * @description Create Rolemember in Account
447
292
  */
448
- delete: operations["role/remove"];
293
+ post: operations["rolemember/create"];
294
+ };
295
+ "/rolemember/{rolemember_id}": {
296
+ /**
297
+ * Get Rolemember in Account
298
+ * @description Get Rolemember in Account
299
+ */
300
+ get: operations["rolemember/get"];
301
+ /**
302
+ * Delete Rolemember in Account
303
+ * @description Delete Rolemember in Account
304
+ */
305
+ delete: operations["rolemember/remove"];
449
306
  };
450
307
  "/team": {
451
308
  /**
@@ -454,24 +311,10 @@ export interface paths {
454
311
  */
455
312
  get: operations["team/list"];
456
313
  /**
457
- * Create a Team
458
- * @description Create a Team
314
+ * Create Team in Account
315
+ * @description Create Team in Account
459
316
  */
460
- post: {
461
- requestBody?: {
462
- content: {
463
- "application/json": components["schemas"]["TeamCreate"];
464
- };
465
- };
466
- responses: {
467
- /** @description Default Response */
468
- 201: {
469
- content: {
470
- "application/json": components["schemas"]["Team"];
471
- };
472
- };
473
- };
474
- };
317
+ post: operations["team/create"];
475
318
  };
476
319
  "/team/{team_id}": {
477
320
  /**
@@ -479,35 +322,35 @@ export interface paths {
479
322
  * @description Get Team in Account
480
323
  */
481
324
  get: operations["team/get"];
482
- /**
483
- * Update a team
484
- * @description Update a team
485
- */
486
- post: operations["team/update"];
487
325
  /**
488
326
  * Delete Team in Account
489
327
  * @description Delete Team in Account
490
328
  */
491
329
  delete: operations["team/remove"];
492
330
  };
493
- "/member": {
331
+ "/teammember": {
494
332
  /**
495
- * List Members in Account
496
- * @description List Members in Account
333
+ * List Teammembers in Account
334
+ * @description List Teammembers in Account
497
335
  */
498
- get: operations["member/list"];
336
+ get: operations["teammember/list"];
337
+ /**
338
+ * Create Teammember in Account
339
+ * @description Create Teammember in Account
340
+ */
341
+ post: operations["teammember/create"];
499
342
  };
500
- "/member/{member_id}": {
343
+ "/teammember/{teammember_id}": {
501
344
  /**
502
- * Get Member in Account
503
- * @description Get Member in Account
345
+ * Get Teammember in Account
346
+ * @description Get Teammember in Account
504
347
  */
505
- get: operations["member/get"];
348
+ get: operations["teammember/get"];
506
349
  /**
507
- * Delete Member in Account
508
- * @description Delete Member in Account
350
+ * Delete Teammember in Account
351
+ * @description Delete Teammember in Account
509
352
  */
510
- delete: operations["member/remove"];
353
+ delete: operations["teammember/remove"];
511
354
  };
512
355
  "/team/{team_id}/member": {
513
356
  /**
@@ -519,6 +362,8 @@ export interface paths {
519
362
  query?: {
520
363
  /** @description Start from this cursor */
521
364
  cursor?: string;
365
+ /** @description Start from this cursor */
366
+ next?: string;
522
367
  /** @description Size of the results array */
523
368
  pageSize?: number;
524
369
  };
@@ -527,10 +372,15 @@ export interface paths {
527
372
  };
528
373
  };
529
374
  responses: {
530
- /** @description Default Response */
375
+ /** @description PaginatedResponse */
531
376
  200: {
532
377
  content: {
533
- "application/json": components["schemas"]["TeamMemberPage"];
378
+ "application/json": {
379
+ /** @description next cursor */
380
+ next: string | null;
381
+ /** @description List of results */
382
+ results: components["schemas"]["TeamMember"][];
383
+ };
534
384
  };
535
385
  };
536
386
  };
@@ -570,6 +420,8 @@ export interface paths {
570
420
  query?: {
571
421
  /** @description Start from this cursor */
572
422
  cursor?: string;
423
+ /** @description Start from this cursor */
424
+ next?: string;
573
425
  /** @description Size of the results array */
574
426
  pageSize?: number;
575
427
  };
@@ -595,24 +447,10 @@ export interface paths {
595
447
  */
596
448
  get: operations["webhook/list"];
597
449
  /**
598
- * Create a Webhook
599
- * @description Create a Webhook
450
+ * Create Webhook in Account
451
+ * @description Create Webhook in Account
600
452
  */
601
- post: {
602
- requestBody?: {
603
- content: {
604
- "application/json": components["schemas"]["WebhookCreate"];
605
- };
606
- };
607
- responses: {
608
- /** @description Default Response */
609
- 201: {
610
- content: {
611
- "application/json": components["schemas"]["Webhook"];
612
- };
613
- };
614
- };
615
- };
453
+ post: operations["webhook/create"];
616
454
  };
617
455
  "/webhook/{webhook_id}": {
618
456
  /**
@@ -633,36 +471,215 @@ export interface paths {
633
471
  */
634
472
  get: operations["api/list"];
635
473
  /**
636
- * Create an API
637
- * @description Create an API
474
+ * Create Api in Account
475
+ * @description Create Api in Account
476
+ */
477
+ post: operations["api/create"];
478
+ };
479
+ "/api/{api_id}": {
480
+ /**
481
+ * Get Api in Account
482
+ * @description Get Api in Account
483
+ */
484
+ get: operations["api/get"];
485
+ /**
486
+ * Delete Api in Account
487
+ * @description Delete Api in Account
488
+ */
489
+ delete: operations["api/remove"];
490
+ };
491
+ "/account/keys/rotate": {
492
+ /**
493
+ * Rotate Account Keys
494
+ * @description Rotate Account Keys
638
495
  */
639
496
  post: {
640
497
  requestBody?: {
641
498
  content: {
642
- "application/json": components["schemas"]["ApiCreate"];
499
+ "application/json": Record<string, never>;
643
500
  };
644
501
  };
645
502
  responses: {
646
503
  /** @description Default Response */
647
- 201: {
504
+ 200: {
505
+ content: never;
506
+ };
507
+ };
508
+ };
509
+ };
510
+ "/passwordless/magic": {
511
+ /** @description Receive a passwordless token and convert it to a valid session */
512
+ get: operations["passwordless/login"];
513
+ };
514
+ "/passwordless/start": {
515
+ /**
516
+ * Start Passwordless authentication flow
517
+ * @description Start Passwordless authentication flow
518
+ */
519
+ post: operations["passwordless/start"];
520
+ };
521
+ "/me": {
522
+ /**
523
+ * Introspection endpoint for current User in session
524
+ * @description Introspection endpoint for current User in session
525
+ */
526
+ get: {
527
+ responses: {
528
+ /** @description Default Response */
529
+ 200: {
648
530
  content: {
649
- "application/json": components["schemas"]["Api"];
531
+ "application/json": components["schemas"]["User"];
650
532
  };
651
533
  };
652
534
  };
653
535
  };
654
536
  };
655
- "/api/{api_id}": {
537
+ "/logout": {
656
538
  /**
657
- * Get Api in Account
658
- * @description Get Api in Account
539
+ * Logout current user
540
+ * @description Logout current user
659
541
  */
660
- get: operations["api/get"];
542
+ get: {
543
+ parameters: {
544
+ query?: {
545
+ client_id?: string;
546
+ returnTo?: string;
547
+ };
548
+ };
549
+ responses: {
550
+ /** @description Default Response */
551
+ 200: {
552
+ content: never;
553
+ };
554
+ };
555
+ };
556
+ };
557
+ "/authorize": {
661
558
  /**
662
- * Delete Api in Account
663
- * @description Delete Api in Account
559
+ * Authorization request
560
+ * @description Authorization request
664
561
  */
665
- delete: operations["api/remove"];
562
+ get: operations["authorize"];
563
+ };
564
+ "/oauth/token": {
565
+ /**
566
+ * Token exchange
567
+ * @description Token exchange
568
+ */
569
+ get: {
570
+ parameters: {
571
+ query?: {
572
+ /** @description Grant Type. https://oauth.net/2/grant-types/ */
573
+ grant_type?: "authorization_code" | "client_credentials" | "refresh_token" | "password";
574
+ client_id?: string;
575
+ client_secret?: string;
576
+ scope?: string;
577
+ code?: string;
578
+ code_verifier?: string;
579
+ refresh_token?: string;
580
+ };
581
+ };
582
+ responses: {
583
+ /** @description Default Response */
584
+ 200: {
585
+ content: never;
586
+ };
587
+ };
588
+ };
589
+ /**
590
+ * Token exchange
591
+ * @description Token exchange
592
+ */
593
+ post: {
594
+ parameters: {
595
+ query?: {
596
+ /** @description Grant Type. https://oauth.net/2/grant-types/ */
597
+ grant_type?: "authorization_code" | "client_credentials" | "refresh_token" | "password";
598
+ client_id?: string;
599
+ client_secret?: string;
600
+ scope?: string;
601
+ code?: string;
602
+ code_verifier?: string;
603
+ refresh_token?: string;
604
+ };
605
+ };
606
+ requestBody?: {
607
+ content: {
608
+ "application/json": components["schemas"]["OAuthTokenParams"];
609
+ };
610
+ };
611
+ responses: {
612
+ /** @description Default Response */
613
+ 200: {
614
+ content: never;
615
+ };
616
+ };
617
+ };
618
+ };
619
+ "/callback": {
620
+ /**
621
+ * OAuth2 Callback URL
622
+ * @description OAuth2 Callback URL
623
+ */
624
+ get: operations["callback"];
625
+ };
626
+ "/.well-known/openid-configuration": {
627
+ /**
628
+ * OpenID Discovery
629
+ * @description OpenID Discovery
630
+ */
631
+ get: {
632
+ responses: {
633
+ /** @description Default Response */
634
+ 200: {
635
+ content: never;
636
+ };
637
+ };
638
+ };
639
+ };
640
+ "/.well-known/jwks.json": {
641
+ /**
642
+ * JWKS endpoint
643
+ * @description JWKS endpoint
644
+ */
645
+ get: {
646
+ responses: {
647
+ /** @description Default Response */
648
+ 200: {
649
+ content: never;
650
+ };
651
+ };
652
+ };
653
+ };
654
+ "/usernamepassword/login": {
655
+ post: {
656
+ requestBody?: {
657
+ content: {
658
+ "application/json": components["schemas"]["UsernamepasswordLoginBody"];
659
+ };
660
+ };
661
+ responses: {
662
+ /** @description Default Response */
663
+ 200: {
664
+ content: never;
665
+ };
666
+ };
667
+ };
668
+ };
669
+ "/login/callback": {
670
+ post: {
671
+ requestBody?: {
672
+ content: {
673
+ "application/json": components["schemas"]["LoginCallbackBody"];
674
+ };
675
+ };
676
+ responses: {
677
+ /** @description Default Response */
678
+ 200: {
679
+ content: never;
680
+ };
681
+ };
682
+ };
666
683
  };
667
684
  }
668
685
  export type webhooks = Record<string, never>;
@@ -674,6 +691,7 @@ export interface components {
674
691
  id: string;
675
692
  name: string;
676
693
  domain: string;
694
+ slug: string;
677
695
  logo_src?: string | null;
678
696
  callback_hostnames: string[];
679
697
  token_signature: string;
@@ -685,24 +703,6 @@ export interface components {
685
703
  /** @description AuthAccount updated date */
686
704
  updatedAt?: string;
687
705
  };
688
- /** @description AuthAccount paginated response */
689
- AuthAccountPage: {
690
- /** @description next cursor */
691
- next: string | null;
692
- /** @description list of results */
693
- results: components["schemas"]["AuthAccount"][];
694
- };
695
- /** @description AuthAccountCreate */
696
- AuthAccountCreate: {
697
- name: string;
698
- email: string;
699
- logo_src?: string;
700
- callback_hostnames: string[];
701
- default_connection?: string;
702
- metadata?: {
703
- [key: string]: unknown;
704
- };
705
- };
706
706
  /** @description Connection */
707
707
  Connection: {
708
708
  /** @description Connection ID */
@@ -713,39 +713,57 @@ export interface components {
713
713
  client_id: string;
714
714
  client_secret: string;
715
715
  scope: string[];
716
- /** @description Authorize params */
716
+ /**
717
+ * @description Authorize params
718
+ * @default {}
719
+ */
717
720
  authorize_params: {
718
721
  [key: string]: string;
719
722
  };
720
- /** @description Connection creation date */
723
+ /** @description Object is related with this account */
721
724
  account: string;
725
+ /**
726
+ * @description ConnectionMetadata
727
+ * @default {}
728
+ */
729
+ metadata: {
730
+ [key: string]: unknown;
731
+ };
722
732
  /** @description Connection creation date */
723
733
  createdAt: string;
724
734
  /** @description Connection updated date */
725
735
  updatedAt?: string;
726
736
  };
737
+ /**
738
+ * @description ConnectionMetadata
739
+ * @default {}
740
+ */
741
+ ConnectionMetadata: {
742
+ [key: string]: unknown;
743
+ };
727
744
  /** @description ConnectionCreate */
728
745
  ConnectionCreate: {
729
746
  connection_name: string;
730
- connection_type: "github" | "google_oauth2" | "database" | "custom";
747
+ connection_type: "database" | "custom" | "github" | "figma" | "google_oauth2";
731
748
  authorize_url?: string;
732
749
  client_id?: string;
733
750
  client_secret?: string;
734
751
  scope?: string[];
735
- /** @description Authorize params */
752
+ /**
753
+ * @description Authorize params
754
+ * @default {}
755
+ */
736
756
  authorize_params?: {
737
757
  [key: string]: string;
738
758
  };
759
+ /** @description Add Metadata */
739
760
  metadata?: {
740
761
  [key: string]: unknown;
741
762
  };
742
763
  };
743
- /** @description Connection paginated response */
744
- ConnectionPage: {
745
- /** @description next cursor */
746
- next: string | null;
747
- /** @description list of results */
748
- results: components["schemas"]["Connection"][];
764
+ /** @description Add Metadata */
765
+ ConnectionMetadataCreate: {
766
+ [key: string]: unknown;
749
767
  };
750
768
  /** @description Client */
751
769
  Client: {
@@ -762,29 +780,41 @@ export interface components {
762
780
  infinite_token_lifetime: boolean;
763
781
  token_lifetime: number;
764
782
  };
765
- /** @description Client creation date */
783
+ /** @description Object is related with this account */
766
784
  account: string;
785
+ /**
786
+ * @description ClientMetadata
787
+ * @default {}
788
+ */
789
+ metadata: {
790
+ [key: string]: unknown;
791
+ };
767
792
  /** @description Client creation date */
768
793
  createdAt: string;
769
794
  /** @description Client updated date */
770
795
  updatedAt?: string;
771
796
  };
797
+ /**
798
+ * @description ClientMetadata
799
+ * @default {}
800
+ */
801
+ ClientMetadata: {
802
+ [key: string]: unknown;
803
+ };
772
804
  /** @description ClientCreate */
773
805
  ClientCreate: {
774
806
  name: string;
775
807
  description?: string;
776
808
  callbacks?: string[];
777
809
  logout_urls?: string[];
810
+ /** @description Add Metadata */
778
811
  metadata?: {
779
812
  [key: string]: unknown;
780
813
  };
781
814
  };
782
- /** @description Client paginated response */
783
- ClientPage: {
784
- /** @description next cursor */
785
- next: string | null;
786
- /** @description list of results */
787
- results: components["schemas"]["Client"][];
815
+ /** @description Add Metadata */
816
+ ClientMetadataCreate: {
817
+ [key: string]: unknown;
788
818
  };
789
819
  /** @description User */
790
820
  User: {
@@ -822,19 +852,55 @@ export interface components {
822
852
  last_ip?: string | null;
823
853
  /** @description Last date and time this user logged in (ISO_8601 format) */
824
854
  last_login?: string | null;
855
+ /**
856
+ * @description User Metadata
857
+ * @default {}
858
+ */
825
859
  user_metadata: {
826
860
  [key: string]: unknown;
827
861
  };
862
+ /**
863
+ * @description App Metadata
864
+ * @default {}
865
+ */
828
866
  app_metadata: {
829
867
  [key: string]: unknown;
830
868
  };
831
- /** @description User creation date */
869
+ /** @description Object is related with this account */
832
870
  account: string;
871
+ /**
872
+ * @description UserMetadata
873
+ * @default {}
874
+ */
875
+ metadata: {
876
+ [key: string]: unknown;
877
+ };
833
878
  /** @description User creation date */
834
879
  createdAt: string;
835
880
  /** @description User updated date */
836
881
  updatedAt?: string;
837
882
  };
883
+ /**
884
+ * @description User Metadata
885
+ * @default {}
886
+ */
887
+ UserUserMetadata: {
888
+ [key: string]: unknown;
889
+ };
890
+ /**
891
+ * @description App Metadata
892
+ * @default {}
893
+ */
894
+ UserAppMetadata: {
895
+ [key: string]: unknown;
896
+ };
897
+ /**
898
+ * @description UserMetadata
899
+ * @default {}
900
+ */
901
+ UserMetadata: {
902
+ [key: string]: unknown;
903
+ };
838
904
  /** @description UserCreate */
839
905
  UserCreate: {
840
906
  /** @description The user's full name. */
@@ -855,13 +921,23 @@ export interface components {
855
921
  picture?: string;
856
922
  /** @description Initial password for this user (mandatory only for auth0 connection strategy) */
857
923
  password?: string;
924
+ /** @description User Metadata */
858
925
  user_metadata?: {
859
926
  [key: string]: unknown;
860
927
  };
928
+ /** @description App Metadata */
861
929
  app_metadata?: {
862
930
  [key: string]: unknown;
863
931
  };
864
932
  };
933
+ /** @description User Metadata */
934
+ UserUserCreate: {
935
+ [key: string]: unknown;
936
+ };
937
+ /** @description App Metadata */
938
+ UserAppCreate: {
939
+ [key: string]: unknown;
940
+ };
865
941
  /** @description UserUpdate */
866
942
  UserUpdate: {
867
943
  /** @description name */
@@ -870,6 +946,8 @@ export interface components {
870
946
  given_name?: string;
871
947
  /** @description family name */
872
948
  family_name?: string;
949
+ /** @description contact email */
950
+ email?: string;
873
951
  /** @description New password for this user */
874
952
  password?: string;
875
953
  /** @description contact phone number */
@@ -882,19 +960,22 @@ export interface components {
882
960
  locale?: string;
883
961
  /** @description User picture url */
884
962
  picture?: string;
963
+ /** @description User defined metadata */
885
964
  user_metadata?: {
886
965
  [key: string]: unknown;
887
966
  };
967
+ /** @description App defined metadata */
888
968
  app_metadata?: {
889
969
  [key: string]: unknown;
890
970
  };
891
971
  };
892
- /** @description User paginated response */
893
- UserPage: {
894
- /** @description next cursor */
895
- next: string | null;
896
- /** @description list of results */
897
- results: components["schemas"]["User"][];
972
+ /** @description User defined metadata */
973
+ UserUserMetadataUpdate: {
974
+ [key: string]: unknown;
975
+ };
976
+ /** @description App defined metadata */
977
+ UserAppMetadataUpdate: {
978
+ [key: string]: unknown;
898
979
  };
899
980
  /** @description Identity */
900
981
  Identity: {
@@ -907,19 +988,36 @@ export interface components {
907
988
  access_token_secret?: string;
908
989
  refresh_token?: string;
909
990
  profile_data: unknown;
910
- /** @description Identity creation date */
991
+ /** @description Object is related with this account */
911
992
  account: string;
993
+ /**
994
+ * @description IdentityMetadata
995
+ * @default {}
996
+ */
997
+ metadata: {
998
+ [key: string]: unknown;
999
+ };
912
1000
  /** @description Identity creation date */
913
1001
  createdAt: string;
914
1002
  /** @description Identity updated date */
915
1003
  updatedAt?: string;
916
1004
  };
917
- /** @description Identity paginated response */
918
- IdentityPage: {
919
- /** @description next cursor */
920
- next: string | null;
921
- /** @description list of results */
922
- results: components["schemas"]["Identity"][];
1005
+ /**
1006
+ * @description IdentityMetadata
1007
+ * @default {}
1008
+ */
1009
+ IdentityMetadata: {
1010
+ [key: string]: unknown;
1011
+ };
1012
+ IdentityCreate: {
1013
+ account: string;
1014
+ user: string;
1015
+ identity_id: string;
1016
+ connection: string;
1017
+ access_token?: string;
1018
+ access_token_secret?: string;
1019
+ refresh_token?: string;
1020
+ profile_data: unknown;
923
1021
  };
924
1022
  /** @description Role */
925
1023
  Role: {
@@ -929,39 +1027,69 @@ export interface components {
929
1027
  name: string;
930
1028
  /** @description Description of this role */
931
1029
  description: string;
932
- /** @description Role creation date */
1030
+ /** @description Object is related with this account */
933
1031
  account: string;
1032
+ /**
1033
+ * @description RoleMetadata
1034
+ * @default {}
1035
+ */
1036
+ metadata: {
1037
+ [key: string]: unknown;
1038
+ };
934
1039
  /** @description Role creation date */
935
1040
  createdAt: string;
936
1041
  /** @description Role updated date */
937
1042
  updatedAt?: string;
938
1043
  };
1044
+ /**
1045
+ * @description RoleMetadata
1046
+ * @default {}
1047
+ */
1048
+ RoleMetadata: {
1049
+ [key: string]: unknown;
1050
+ };
1051
+ /** @description RoleCreate */
1052
+ RoleCreate: {
1053
+ name: string;
1054
+ description?: string;
1055
+ /** @description Add Metadata */
1056
+ metadata?: {
1057
+ [key: string]: unknown;
1058
+ };
1059
+ };
1060
+ /** @description Add Metadata */
1061
+ RoleMetadataCreate: {
1062
+ [key: string]: unknown;
1063
+ };
939
1064
  /** @description RoleMember */
940
1065
  RoleMember: {
941
1066
  /** @description RoleMember ID */
942
1067
  id: string;
943
1068
  role: unknown;
944
1069
  user: unknown;
945
- /** @description RoleMember creation date */
1070
+ /** @description Object is related with this account */
946
1071
  account: string;
1072
+ /**
1073
+ * @description RoleMemberMetadata
1074
+ * @default {}
1075
+ */
1076
+ metadata: {
1077
+ [key: string]: unknown;
1078
+ };
947
1079
  /** @description RoleMember creation date */
948
1080
  createdAt: string;
949
1081
  /** @description RoleMember updated date */
950
1082
  updatedAt?: string;
951
1083
  };
952
- /** @description RoleMember paginated response */
953
- RoleMemberPage: {
954
- /** @description next cursor */
955
- next: string | null;
956
- /** @description list of results */
957
- results: components["schemas"]["RoleMember"][];
1084
+ /**
1085
+ * @description RoleMemberMetadata
1086
+ * @default {}
1087
+ */
1088
+ RoleMemberMetadata: {
1089
+ [key: string]: unknown;
958
1090
  };
959
- /** @description Role paginated response */
960
- RolePage: {
961
- /** @description next cursor */
962
- next: string | null;
963
- /** @description list of results */
964
- results: components["schemas"]["Role"][];
1091
+ RoleMemberCreate: {
1092
+ users: string[];
965
1093
  };
966
1094
  /** @description Team */
967
1095
  Team: {
@@ -971,16 +1099,40 @@ export interface components {
971
1099
  slug: string;
972
1100
  description: string | null;
973
1101
  logo_url: string | null;
1102
+ /** @description Object is related with this account */
1103
+ account: string;
1104
+ /**
1105
+ * @description TeamMetadata
1106
+ * @default {}
1107
+ */
974
1108
  metadata: {
975
1109
  [key: string]: unknown;
976
1110
  };
977
1111
  /** @description Team creation date */
978
- account: string;
979
- /** @description Team creation date */
980
1112
  createdAt: string;
981
1113
  /** @description Team updated date */
982
1114
  updatedAt?: string;
983
1115
  };
1116
+ /**
1117
+ * @description TeamMetadata
1118
+ * @default {}
1119
+ */
1120
+ TeamMetadata: {
1121
+ [key: string]: unknown;
1122
+ };
1123
+ /** @description TeamCreate */
1124
+ TeamCreate: {
1125
+ name: string;
1126
+ description?: string;
1127
+ /** @description Add Metadata */
1128
+ metadata?: {
1129
+ [key: string]: unknown;
1130
+ };
1131
+ };
1132
+ /** @description Add Metadata */
1133
+ TeamMetadataCreate: {
1134
+ [key: string]: unknown;
1135
+ };
984
1136
  /** @description TeamMember */
985
1137
  TeamMember: {
986
1138
  /** @description TeamMember ID */
@@ -988,37 +1140,26 @@ export interface components {
988
1140
  user: unknown;
989
1141
  team: unknown;
990
1142
  roles: unknown[];
1143
+ /** @description Object is related with this account */
1144
+ account: string;
1145
+ /**
1146
+ * @description TeamMemberMetadata
1147
+ * @default {}
1148
+ */
991
1149
  metadata: {
992
1150
  [key: string]: unknown;
993
1151
  };
994
1152
  /** @description TeamMember creation date */
995
- account: string;
996
- /** @description TeamMember creation date */
997
1153
  createdAt: string;
998
1154
  /** @description TeamMember updated date */
999
1155
  updatedAt?: string;
1000
1156
  };
1001
- /** @description Team paginated response */
1002
- TeamPage: {
1003
- /** @description next cursor */
1004
- next: string | null;
1005
- /** @description list of results */
1006
- results: components["schemas"]["Team"][];
1007
- };
1008
- /** @description TeamMember paginated response */
1009
- TeamMemberPage: {
1010
- /** @description next cursor */
1011
- next: string | null;
1012
- /** @description list of results */
1013
- results: components["schemas"]["TeamMember"][];
1014
- };
1015
- /** @description TeamCreate */
1016
- TeamCreate: {
1017
- name: string;
1018
- description?: string;
1019
- metadata?: {
1020
- [key: string]: unknown;
1021
- };
1157
+ /**
1158
+ * @description TeamMemberMetadata
1159
+ * @default {}
1160
+ */
1161
+ TeamMemberMetadata: {
1162
+ [key: string]: unknown;
1022
1163
  };
1023
1164
  TeamMemberCreate: {
1024
1165
  users: string[];
@@ -1028,27 +1169,39 @@ export interface components {
1028
1169
  /** @description Webhook ID */
1029
1170
  id: string;
1030
1171
  name: string;
1031
- /** @description Webhook creation date */
1172
+ /** @description Object is related with this account */
1032
1173
  account: string;
1174
+ /**
1175
+ * @description WebhookMetadata
1176
+ * @default {}
1177
+ */
1178
+ metadata: {
1179
+ [key: string]: unknown;
1180
+ };
1033
1181
  /** @description Webhook creation date */
1034
1182
  createdAt: string;
1035
1183
  /** @description Webhook updated date */
1036
1184
  updatedAt?: string;
1037
1185
  };
1186
+ /**
1187
+ * @description WebhookMetadata
1188
+ * @default {}
1189
+ */
1190
+ WebhookMetadata: {
1191
+ [key: string]: unknown;
1192
+ };
1038
1193
  /** @description WebhookCreate */
1039
1194
  WebhookCreate: {
1040
1195
  name: string;
1041
1196
  url: string;
1197
+ /** @description Add Metadata */
1042
1198
  metadata?: {
1043
1199
  [key: string]: unknown;
1044
1200
  };
1045
1201
  };
1046
- /** @description Webhook paginated response */
1047
- WebhookPage: {
1048
- /** @description next cursor */
1049
- next: string | null;
1050
- /** @description list of results */
1051
- results: components["schemas"]["Webhook"][];
1202
+ /** @description Add Metadata */
1203
+ WebhookMetadataCreate: {
1204
+ [key: string]: unknown;
1052
1205
  };
1053
1206
  Permission: {
1054
1207
  value: string;
@@ -1065,28 +1218,51 @@ export interface components {
1065
1218
  name: string;
1066
1219
  description?: string;
1067
1220
  permissions: components["schemas"]["Permission"][];
1068
- /** @description Api creation date */
1221
+ /** @description Object is related with this account */
1069
1222
  account: string;
1223
+ /**
1224
+ * @description ApiMetadata
1225
+ * @default {}
1226
+ */
1227
+ metadata: {
1228
+ [key: string]: unknown;
1229
+ };
1070
1230
  /** @description Api creation date */
1071
1231
  createdAt: string;
1072
1232
  /** @description Api updated date */
1073
1233
  updatedAt?: string;
1074
1234
  };
1235
+ /**
1236
+ * @description ApiMetadata
1237
+ * @default {}
1238
+ */
1239
+ ApiMetadata: {
1240
+ [key: string]: unknown;
1241
+ };
1075
1242
  ApiCreate: {
1076
1243
  name: string;
1077
1244
  description?: string;
1078
1245
  permissions: components["schemas"]["PermissionCreate"][];
1079
1246
  };
1080
- /** @description Api paginated response */
1081
- ApiPage: {
1082
- /** @description next cursor */
1083
- next: string | null;
1084
- /** @description list of results */
1085
- results: components["schemas"]["Api"][];
1247
+ /** @description AuthAccountCreate */
1248
+ AuthAccountCreate: {
1249
+ name: string;
1250
+ team: string;
1251
+ logo_src?: string;
1252
+ callback_hostnames?: string[];
1253
+ default_connection?: string;
1254
+ /** @description Add Metadata */
1255
+ metadata?: {
1256
+ [key: string]: unknown;
1257
+ };
1258
+ };
1259
+ /** @description Add Metadata */
1260
+ AuthAccountMetadataCreate: {
1261
+ [key: string]: unknown;
1086
1262
  };
1087
- "OAuthToken Body": {
1263
+ OAuthTokenParams: {
1088
1264
  /** @description Grant Type. https://oauth.net/2/grant-types/ */
1089
- grant_type: "authorization_code" | "client_credentials" | "refresh_token" | "password";
1265
+ grant_type?: "authorization_code" | "client_credentials" | "refresh_token" | "password";
1090
1266
  client_id?: string;
1091
1267
  client_secret?: string;
1092
1268
  scope?: string;
@@ -1099,17 +1275,18 @@ export interface components {
1099
1275
  UsernamepasswordLoginBody: {
1100
1276
  username: string;
1101
1277
  password: string;
1102
- response_type: "code" | "token";
1278
+ response_type: string;
1103
1279
  client_id: string;
1104
- /** @description Which oauth connection to use. Leave empty to use default connection */
1280
+ /** @description Deprecated. Use connection_id */
1105
1281
  connection?: string;
1282
+ /** @description Which oauth connection to use. Leave empty to use default connection */
1283
+ connection_id?: string;
1106
1284
  scope?: string;
1107
1285
  /** @description The URL to which Faable will redirect the browser after authorization has been granted by the user. */
1108
1286
  redirect_uri: string;
1109
1287
  /** @description An opaque value the applications adds to the initial request that the authorization server includes when redirecting the back to the application. This value must be used by the application to prevent CSRF attacks. */
1110
1288
  state?: string;
1111
- /** @description whether to prompt the end user for authentication and consent */
1112
- prompt?: "login" | "consent" | "none";
1289
+ prompt?: string;
1113
1290
  };
1114
1291
  LoginCallbackBody: {
1115
1292
  /** @description is always wsignin1.0 */
@@ -1119,27 +1296,6 @@ export interface components {
1119
1296
  /** @description Serialized JSON with context */
1120
1297
  wctx: string;
1121
1298
  };
1122
- /** @description RoleCreate */
1123
- RoleCreate: {
1124
- name: string;
1125
- description?: string;
1126
- metadata?: {
1127
- [key: string]: unknown;
1128
- };
1129
- };
1130
- RoleMemberCreate: {
1131
- users: string[];
1132
- };
1133
- /** @description TeamUpdate */
1134
- TeamUpdate: {
1135
- /** @description name */
1136
- name?: string;
1137
- /** @description description */
1138
- description?: string;
1139
- metadata?: {
1140
- [key: string]: unknown;
1141
- };
1142
- };
1143
1299
  };
1144
1300
  responses: never;
1145
1301
  parameters: never;
@@ -1157,32 +1313,39 @@ export interface operations {
1157
1313
  "connection/list": {
1158
1314
  parameters: {
1159
1315
  query?: {
1160
- /** @description Filter using a FaableQL query */
1161
- query?: string;
1162
1316
  /** @description Start from this cursor */
1163
1317
  cursor?: string;
1318
+ /** @description Start from this cursor */
1319
+ next?: string;
1164
1320
  /** @description Size of the results array */
1165
1321
  pageSize?: number;
1322
+ /** @description Filter using a FaableQL query */
1323
+ query?: string;
1166
1324
  expand?: string[];
1167
1325
  };
1168
1326
  };
1169
1327
  responses: {
1170
- /** @description Default Response */
1328
+ /** @description PaginatedResponse */
1171
1329
  200: {
1172
1330
  content: {
1173
- "application/json": components["schemas"]["ConnectionPage"];
1331
+ "application/json": {
1332
+ /** @description next cursor */
1333
+ next: string | null;
1334
+ /** @description List of results */
1335
+ results: components["schemas"]["Connection"][];
1336
+ };
1174
1337
  };
1175
1338
  };
1176
1339
  };
1177
1340
  };
1178
1341
  /**
1179
- * Get Connection in Account
1180
- * @description Get Connection in Account
1342
+ * Create Connection in Account
1343
+ * @description Create Connection in Account
1181
1344
  */
1182
- "connection/get": {
1183
- parameters: {
1184
- path: {
1185
- connection_id: string;
1345
+ "connection/create": {
1346
+ requestBody?: {
1347
+ content: {
1348
+ "application/json": components["schemas"]["ConnectionCreate"];
1186
1349
  };
1187
1350
  };
1188
1351
  responses: {
@@ -1195,10 +1358,10 @@ export interface operations {
1195
1358
  };
1196
1359
  };
1197
1360
  /**
1198
- * Delete Connection in Account
1199
- * @description Delete Connection in Account
1361
+ * Get Connection in Account
1362
+ * @description Get Connection in Account
1200
1363
  */
1201
- "connection/remove": {
1364
+ "connection/get": {
1202
1365
  parameters: {
1203
1366
  path: {
1204
1367
  connection_id: string;
@@ -1207,32 +1370,22 @@ export interface operations {
1207
1370
  responses: {
1208
1371
  /** @description Default Response */
1209
1372
  200: {
1210
- content: never;
1373
+ content: {
1374
+ "application/json": components["schemas"]["Connection"];
1375
+ };
1211
1376
  };
1212
1377
  };
1213
1378
  };
1214
1379
  /**
1215
- * Start Passwordless authentication flow
1216
- * @description Start Passwordless authentication flow
1380
+ * Delete Connection in Account
1381
+ * @description Delete Connection in Account
1217
1382
  */
1218
- "passwordless/start": {
1219
- requestBody: {
1220
- content: {
1221
- "application/json": {
1222
- email: string;
1223
- returnTo: string;
1224
- };
1225
- };
1226
- };
1227
- responses: {
1228
- /** @description Default Response */
1229
- 200: {
1230
- content: never;
1383
+ "connection/remove": {
1384
+ parameters: {
1385
+ path: {
1386
+ connection_id: string;
1231
1387
  };
1232
1388
  };
1233
- };
1234
- /** @description Receive a passwordless token and convert it to a valid session */
1235
- "passwordless/login": {
1236
1389
  responses: {
1237
1390
  /** @description Default Response */
1238
1391
  200: {
@@ -1247,32 +1400,39 @@ export interface operations {
1247
1400
  "client/list": {
1248
1401
  parameters: {
1249
1402
  query?: {
1250
- /** @description Filter using a FaableQL query */
1251
- query?: string;
1252
1403
  /** @description Start from this cursor */
1253
1404
  cursor?: string;
1405
+ /** @description Start from this cursor */
1406
+ next?: string;
1254
1407
  /** @description Size of the results array */
1255
1408
  pageSize?: number;
1409
+ /** @description Filter using a FaableQL query */
1410
+ query?: string;
1256
1411
  expand?: string[];
1257
1412
  };
1258
1413
  };
1259
1414
  responses: {
1260
- /** @description Default Response */
1415
+ /** @description PaginatedResponse */
1261
1416
  200: {
1262
1417
  content: {
1263
- "application/json": components["schemas"]["ClientPage"];
1418
+ "application/json": {
1419
+ /** @description next cursor */
1420
+ next: string | null;
1421
+ /** @description List of results */
1422
+ results: components["schemas"]["Client"][];
1423
+ };
1264
1424
  };
1265
1425
  };
1266
1426
  };
1267
1427
  };
1268
1428
  /**
1269
- * Get Client in Account
1270
- * @description Get Client in Account
1429
+ * Create Client in Account
1430
+ * @description Create Client in Account
1271
1431
  */
1272
- "client/get": {
1273
- parameters: {
1274
- path: {
1275
- client_id: string;
1432
+ "client/create": {
1433
+ requestBody?: {
1434
+ content: {
1435
+ "application/json": components["schemas"]["ClientCreate"];
1276
1436
  };
1277
1437
  };
1278
1438
  responses: {
@@ -1285,10 +1445,10 @@ export interface operations {
1285
1445
  };
1286
1446
  };
1287
1447
  /**
1288
- * Delete Client in Account
1289
- * @description Delete Client in Account
1448
+ * Get Client in Account
1449
+ * @description Get Client in Account
1290
1450
  */
1291
- "client/remove": {
1451
+ "client/get": {
1292
1452
  parameters: {
1293
1453
  path: {
1294
1454
  client_id: string;
@@ -1297,53 +1457,20 @@ export interface operations {
1297
1457
  responses: {
1298
1458
  /** @description Default Response */
1299
1459
  200: {
1300
- content: never;
1460
+ content: {
1461
+ "application/json": components["schemas"]["Client"];
1462
+ };
1301
1463
  };
1302
1464
  };
1303
1465
  };
1304
1466
  /**
1305
- * Authorization request
1306
- * @description Authorization request
1467
+ * Delete Client in Account
1468
+ * @description Delete Client in Account
1307
1469
  */
1308
- authorize: {
1470
+ "client/remove": {
1309
1471
  parameters: {
1310
- query: {
1311
- response_type: "code" | "token";
1312
- /** @description Challenge method for PKCE. Only S256 is supported. */
1313
- code_challenge_method?: string;
1314
- /** @description Challenge for PKCE authorization code flow */
1315
- code_challenge?: string;
1472
+ path: {
1316
1473
  client_id: string;
1317
- /** @description Which oauth connection to use. Leave empty to use default connection */
1318
- connection?: string;
1319
- scope?: string;
1320
- /** @description The URL to which Faable will redirect the browser after authorization has been granted by the user. */
1321
- redirect_uri: string;
1322
- /** @description An opaque value the applications adds to the initial request that the authorization server includes when redirecting the back to the application. This value must be used by the application to prevent CSRF attacks. */
1323
- state?: string;
1324
- /** @description whether to prompt the end user for authentication and consent */
1325
- prompt?: "login" | "consent" | "none";
1326
- };
1327
- };
1328
- responses: {
1329
- /** @description Default Response */
1330
- 200: {
1331
- content: never;
1332
- };
1333
- };
1334
- };
1335
- /**
1336
- * OAuth2 Callback URL
1337
- * @description OAuth2 Callback URL
1338
- */
1339
- callback: {
1340
- parameters: {
1341
- query?: {
1342
- code?: string;
1343
- state?: string;
1344
- error?: string;
1345
- error_uri?: string;
1346
- error_description?: string;
1347
1474
  };
1348
1475
  };
1349
1476
  responses: {
@@ -1360,27 +1487,34 @@ export interface operations {
1360
1487
  "user/list": {
1361
1488
  parameters: {
1362
1489
  query?: {
1363
- /** @description Filter using a FaableQL query */
1364
- query?: string;
1365
1490
  /** @description Start from this cursor */
1366
1491
  cursor?: string;
1492
+ /** @description Start from this cursor */
1493
+ next?: string;
1367
1494
  /** @description Size of the results array */
1368
1495
  pageSize?: number;
1496
+ /** @description Filter using a FaableQL query */
1497
+ query?: string;
1369
1498
  expand?: string[];
1370
1499
  };
1371
1500
  };
1372
1501
  responses: {
1373
- /** @description Default Response */
1502
+ /** @description PaginatedResponse */
1374
1503
  200: {
1375
1504
  content: {
1376
- "application/json": components["schemas"]["UserPage"];
1505
+ "application/json": {
1506
+ /** @description next cursor */
1507
+ next: string | null;
1508
+ /** @description List of results */
1509
+ results: components["schemas"]["User"][];
1510
+ };
1377
1511
  };
1378
1512
  };
1379
1513
  };
1380
1514
  };
1381
1515
  /**
1382
- * Create a user
1383
- * @description Create a user
1516
+ * Create User in Account
1517
+ * @description Create User in Account
1384
1518
  */
1385
1519
  "user/create": {
1386
1520
  requestBody?: {
@@ -1390,7 +1524,7 @@ export interface operations {
1390
1524
  };
1391
1525
  responses: {
1392
1526
  /** @description Default Response */
1393
- 201: {
1527
+ 200: {
1394
1528
  content: {
1395
1529
  "application/json": components["schemas"]["User"];
1396
1530
  };
@@ -1417,8 +1551,8 @@ export interface operations {
1417
1551
  };
1418
1552
  };
1419
1553
  /**
1420
- * Update a user
1421
- * @description Update a user
1554
+ * Update Users in Account
1555
+ * @description Update Users in Account
1422
1556
  */
1423
1557
  "user/update": {
1424
1558
  parameters: {
@@ -1464,20 +1598,46 @@ export interface operations {
1464
1598
  "identity/list": {
1465
1599
  parameters: {
1466
1600
  query?: {
1467
- /** @description Filter using a FaableQL query */
1468
- query?: string;
1469
1601
  /** @description Start from this cursor */
1470
1602
  cursor?: string;
1603
+ /** @description Start from this cursor */
1604
+ next?: string;
1471
1605
  /** @description Size of the results array */
1472
1606
  pageSize?: number;
1607
+ /** @description Filter using a FaableQL query */
1608
+ query?: string;
1473
1609
  expand?: string[];
1474
1610
  };
1475
1611
  };
1612
+ responses: {
1613
+ /** @description PaginatedResponse */
1614
+ 200: {
1615
+ content: {
1616
+ "application/json": {
1617
+ /** @description next cursor */
1618
+ next: string | null;
1619
+ /** @description List of results */
1620
+ results: components["schemas"]["Identity"][];
1621
+ };
1622
+ };
1623
+ };
1624
+ };
1625
+ };
1626
+ /**
1627
+ * Create Identity in Account
1628
+ * @description Create Identity in Account
1629
+ */
1630
+ "identity/create": {
1631
+ requestBody?: {
1632
+ content: {
1633
+ "application/json": components["schemas"]["IdentityCreate"];
1634
+ };
1635
+ };
1476
1636
  responses: {
1477
1637
  /** @description Default Response */
1478
1638
  200: {
1479
1639
  content: {
1480
- "application/json": components["schemas"]["IdentityPage"];
1640
+ "application/json": components["schemas"]["Identity"];
1481
1641
  };
1482
1642
  };
1483
1643
  };
@@ -1525,27 +1685,34 @@ export interface operations {
1525
1685
  "role/list": {
1526
1686
  parameters: {
1527
1687
  query?: {
1528
- /** @description Filter using a FaableQL query */
1529
- query?: string;
1530
1688
  /** @description Start from this cursor */
1531
1689
  cursor?: string;
1690
+ /** @description Start from this cursor */
1691
+ next?: string;
1532
1692
  /** @description Size of the results array */
1533
1693
  pageSize?: number;
1694
+ /** @description Filter using a FaableQL query */
1695
+ query?: string;
1534
1696
  expand?: string[];
1535
1697
  };
1536
1698
  };
1537
1699
  responses: {
1538
- /** @description Default Response */
1700
+ /** @description PaginatedResponse */
1539
1701
  200: {
1540
1702
  content: {
1541
- "application/json": components["schemas"]["RolePage"];
1703
+ "application/json": {
1704
+ /** @description next cursor */
1705
+ next: string | null;
1706
+ /** @description List of results */
1707
+ results: components["schemas"]["Role"][];
1708
+ };
1542
1709
  };
1543
1710
  };
1544
1711
  };
1545
1712
  };
1546
1713
  /**
1547
- * Create a Role
1548
- * @description Create a Role
1714
+ * Create Role in Account
1715
+ * @description Create Role in Account
1549
1716
  */
1550
1717
  "role/create": {
1551
1718
  requestBody?: {
@@ -1555,13 +1722,49 @@ export interface operations {
1555
1722
  };
1556
1723
  responses: {
1557
1724
  /** @description Default Response */
1558
- 201: {
1725
+ 200: {
1726
+ content: {
1727
+ "application/json": components["schemas"]["Role"];
1728
+ };
1729
+ };
1730
+ };
1731
+ };
1732
+ /**
1733
+ * Get Role in Account
1734
+ * @description Get Role in Account
1735
+ */
1736
+ "role/get": {
1737
+ parameters: {
1738
+ path: {
1739
+ role_id: string;
1740
+ };
1741
+ };
1742
+ responses: {
1743
+ /** @description Default Response */
1744
+ 200: {
1559
1745
  content: {
1560
1746
  "application/json": components["schemas"]["Role"];
1561
1747
  };
1562
1748
  };
1563
1749
  };
1564
1750
  };
1751
+ /**
1752
+ * Delete Role in Account
1753
+ * @description Delete Role in Account
1754
+ */
1755
+ "role/remove": {
1756
+ parameters: {
1757
+ path: {
1758
+ role_id: string;
1759
+ };
1760
+ };
1761
+ responses: {
1762
+ /** @description Default Response */
1763
+ 200: {
1764
+ content: never;
1765
+ };
1766
+ };
1767
+ };
1565
1768
  /**
1566
1769
  * List Users with Role
1567
1770
  * @description List Users with Role
@@ -1571,6 +1774,8 @@ export interface operations {
1571
1774
  query?: {
1572
1775
  /** @description Start from this cursor */
1573
1776
  cursor?: string;
1777
+ /** @description Start from this cursor */
1778
+ next?: string;
1574
1779
  /** @description Size of the results array */
1575
1780
  pageSize?: number;
1576
1781
  };
@@ -1579,10 +1784,15 @@ export interface operations {
1579
1784
  };
1580
1785
  };
1581
1786
  responses: {
1582
- /** @description Default Response */
1787
+ /** @description PaginatedResponse */
1583
1788
  200: {
1584
1789
  content: {
1585
- "application/json": components["schemas"]["RoleMemberPage"];
1790
+ "application/json": {
1791
+ /** @description next cursor */
1792
+ next: string | null;
1793
+ /** @description List of results */
1794
+ results: components["schemas"]["RoleMember"][];
1795
+ };
1586
1796
  };
1587
1797
  };
1588
1798
  };
@@ -1610,32 +1820,83 @@ export interface operations {
1610
1820
  };
1611
1821
  };
1612
1822
  /**
1613
- * Get Role in Account
1614
- * @description Get Role in Account
1823
+ * List Rolemembers in Account
1824
+ * @description List Rolemembers in Account
1615
1825
  */
1616
- "role/get": {
1826
+ "rolemember/list": {
1827
+ parameters: {
1828
+ query?: {
1829
+ /** @description Start from this cursor */
1830
+ cursor?: string;
1831
+ /** @description Start from this cursor */
1832
+ next?: string;
1833
+ /** @description Size of the results array */
1834
+ pageSize?: number;
1835
+ /** @description Filter using a FaableQL query */
1836
+ query?: string;
1837
+ expand?: string[];
1838
+ };
1839
+ };
1840
+ responses: {
1841
+ /** @description PaginatedResponse */
1842
+ 200: {
1843
+ content: {
1844
+ "application/json": {
1845
+ /** @description next cursor */
1846
+ next: string | null;
1847
+ /** @description List of results */
1848
+ results: components["schemas"]["RoleMember"][];
1849
+ };
1850
+ };
1851
+ };
1852
+ };
1853
+ };
1854
+ /**
1855
+ * Create Rolemember in Account
1856
+ * @description Create Rolemember in Account
1857
+ */
1858
+ "rolemember/create": {
1859
+ requestBody?: {
1860
+ content: {
1861
+ "application/json": components["schemas"]["RoleMemberCreate"];
1862
+ };
1863
+ };
1864
+ responses: {
1865
+ /** @description Default Response */
1866
+ 200: {
1867
+ content: {
1868
+ "application/json": components["schemas"]["RoleMember"];
1869
+ };
1870
+ };
1871
+ };
1872
+ };
1873
+ /**
1874
+ * Get Rolemember in Account
1875
+ * @description Get Rolemember in Account
1876
+ */
1877
+ "rolemember/get": {
1617
1878
  parameters: {
1618
1879
  path: {
1619
- role_id: string;
1880
+ rolemember_id: string;
1620
1881
  };
1621
1882
  };
1622
1883
  responses: {
1623
1884
  /** @description Default Response */
1624
1885
  200: {
1625
1886
  content: {
1626
- "application/json": components["schemas"]["Role"];
1887
+ "application/json": components["schemas"]["RoleMember"];
1627
1888
  };
1628
1889
  };
1629
1890
  };
1630
1891
  };
1631
1892
  /**
1632
- * Delete Role in Account
1633
- * @description Delete Role in Account
1893
+ * Delete Rolemember in Account
1894
+ * @description Delete Rolemember in Account
1634
1895
  */
1635
- "role/remove": {
1896
+ "rolemember/remove": {
1636
1897
  parameters: {
1637
1898
  path: {
1638
- role_id: string;
1899
+ rolemember_id: string;
1639
1900
  };
1640
1901
  };
1641
1902
  responses: {
@@ -1652,32 +1913,39 @@ export interface operations {
1652
1913
  "team/list": {
1653
1914
  parameters: {
1654
1915
  query?: {
1655
- /** @description Filter using a FaableQL query */
1656
- query?: string;
1657
1916
  /** @description Start from this cursor */
1658
1917
  cursor?: string;
1918
+ /** @description Start from this cursor */
1919
+ next?: string;
1659
1920
  /** @description Size of the results array */
1660
1921
  pageSize?: number;
1922
+ /** @description Filter using a FaableQL query */
1923
+ query?: string;
1661
1924
  expand?: string[];
1662
1925
  };
1663
1926
  };
1664
1927
  responses: {
1665
- /** @description Default Response */
1928
+ /** @description PaginatedResponse */
1666
1929
  200: {
1667
1930
  content: {
1668
- "application/json": components["schemas"]["TeamPage"];
1931
+ "application/json": {
1932
+ /** @description next cursor */
1933
+ next: string | null;
1934
+ /** @description List of results */
1935
+ results: components["schemas"]["Team"][];
1936
+ };
1669
1937
  };
1670
1938
  };
1671
1939
  };
1672
1940
  };
1673
1941
  /**
1674
- * Get Team in Account
1675
- * @description Get Team in Account
1942
+ * Create Team in Account
1943
+ * @description Create Team in Account
1676
1944
  */
1677
- "team/get": {
1678
- parameters: {
1679
- path: {
1680
- team_id: string;
1945
+ "team/create": {
1946
+ requestBody?: {
1947
+ content: {
1948
+ "application/json": components["schemas"]["TeamCreate"];
1681
1949
  };
1682
1950
  };
1683
1951
  responses: {
@@ -1690,20 +1958,15 @@ export interface operations {
1690
1958
  };
1691
1959
  };
1692
1960
  /**
1693
- * Update a team
1694
- * @description Update a team
1961
+ * Get Team in Account
1962
+ * @description Get Team in Account
1695
1963
  */
1696
- "team/update": {
1964
+ "team/get": {
1697
1965
  parameters: {
1698
1966
  path: {
1699
1967
  team_id: string;
1700
1968
  };
1701
1969
  };
1702
- requestBody?: {
1703
- content: {
1704
- "application/json": components["schemas"]["TeamUpdate"];
1705
- };
1706
- };
1707
1970
  responses: {
1708
1971
  /** @description Default Response */
1709
1972
  200: {
@@ -1731,38 +1994,64 @@ export interface operations {
1731
1994
  };
1732
1995
  };
1733
1996
  /**
1734
- * List Members in Account
1735
- * @description List Members in Account
1997
+ * List Teammembers in Account
1998
+ * @description List Teammembers in Account
1736
1999
  */
1737
- "member/list": {
2000
+ "teammember/list": {
1738
2001
  parameters: {
1739
2002
  query?: {
1740
- /** @description Filter using a FaableQL query */
1741
- query?: string;
1742
2003
  /** @description Start from this cursor */
1743
2004
  cursor?: string;
2005
+ /** @description Start from this cursor */
2006
+ next?: string;
1744
2007
  /** @description Size of the results array */
1745
2008
  pageSize?: number;
2009
+ /** @description Filter using a FaableQL query */
2010
+ query?: string;
1746
2011
  expand?: string[];
1747
2012
  };
1748
2013
  };
2014
+ responses: {
2015
+ /** @description PaginatedResponse */
2016
+ 200: {
2017
+ content: {
2018
+ "application/json": {
2019
+ /** @description next cursor */
2020
+ next: string | null;
2021
+ /** @description List of results */
2022
+ results: components["schemas"]["TeamMember"][];
2023
+ };
2024
+ };
2025
+ };
2026
+ };
2027
+ };
2028
+ /**
2029
+ * Create Teammember in Account
2030
+ * @description Create Teammember in Account
2031
+ */
2032
+ "teammember/create": {
2033
+ requestBody?: {
2034
+ content: {
2035
+ "application/json": components["schemas"]["TeamMemberCreate"];
2036
+ };
2037
+ };
1749
2038
  responses: {
1750
2039
  /** @description Default Response */
1751
2040
  200: {
1752
2041
  content: {
1753
- "application/json": components["schemas"]["TeamMemberPage"];
2042
+ "application/json": components["schemas"]["TeamMember"];
1754
2043
  };
1755
2044
  };
1756
2045
  };
1757
2046
  };
1758
2047
  /**
1759
- * Get Member in Account
1760
- * @description Get Member in Account
2048
+ * Get Teammember in Account
2049
+ * @description Get Teammember in Account
1761
2050
  */
1762
- "member/get": {
2051
+ "teammember/get": {
1763
2052
  parameters: {
1764
2053
  path: {
1765
- member_id: string;
2054
+ teammember_id: string;
1766
2055
  };
1767
2056
  };
1768
2057
  responses: {
@@ -1775,13 +2064,13 @@ export interface operations {
1775
2064
  };
1776
2065
  };
1777
2066
  /**
1778
- * Delete Member in Account
1779
- * @description Delete Member in Account
2067
+ * Delete Teammember in Account
2068
+ * @description Delete Teammember in Account
1780
2069
  */
1781
- "member/remove": {
2070
+ "teammember/remove": {
1782
2071
  parameters: {
1783
2072
  path: {
1784
- member_id: string;
2073
+ teammember_id: string;
1785
2074
  };
1786
2075
  };
1787
2076
  responses: {
@@ -1798,20 +2087,46 @@ export interface operations {
1798
2087
  "webhook/list": {
1799
2088
  parameters: {
1800
2089
  query?: {
1801
- /** @description Filter using a FaableQL query */
1802
- query?: string;
1803
2090
  /** @description Start from this cursor */
1804
2091
  cursor?: string;
2092
+ /** @description Start from this cursor */
2093
+ next?: string;
1805
2094
  /** @description Size of the results array */
1806
2095
  pageSize?: number;
2096
+ /** @description Filter using a FaableQL query */
2097
+ query?: string;
1807
2098
  expand?: string[];
1808
2099
  };
1809
2100
  };
2101
+ responses: {
2102
+ /** @description PaginatedResponse */
2103
+ 200: {
2104
+ content: {
2105
+ "application/json": {
2106
+ /** @description next cursor */
2107
+ next: string | null;
2108
+ /** @description List of results */
2109
+ results: components["schemas"]["Webhook"][];
2110
+ };
2111
+ };
2112
+ };
2113
+ };
2114
+ };
2115
+ /**
2116
+ * Create Webhook in Account
2117
+ * @description Create Webhook in Account
2118
+ */
2119
+ "webhook/create": {
2120
+ requestBody?: {
2121
+ content: {
2122
+ "application/json": components["schemas"]["WebhookCreate"];
2123
+ };
2124
+ };
1810
2125
  responses: {
1811
2126
  /** @description Default Response */
1812
2127
  200: {
1813
2128
  content: {
1814
- "application/json": components["schemas"]["WebhookPage"];
2129
+ "application/json": components["schemas"]["Webhook"];
1815
2130
  };
1816
2131
  };
1817
2132
  };
@@ -1859,20 +2174,46 @@ export interface operations {
1859
2174
  "api/list": {
1860
2175
  parameters: {
1861
2176
  query?: {
1862
- /** @description Filter using a FaableQL query */
1863
- query?: string;
1864
2177
  /** @description Start from this cursor */
1865
2178
  cursor?: string;
2179
+ /** @description Start from this cursor */
2180
+ next?: string;
1866
2181
  /** @description Size of the results array */
1867
2182
  pageSize?: number;
2183
+ /** @description Filter using a FaableQL query */
2184
+ query?: string;
1868
2185
  expand?: string[];
1869
2186
  };
1870
2187
  };
2188
+ responses: {
2189
+ /** @description PaginatedResponse */
2190
+ 200: {
2191
+ content: {
2192
+ "application/json": {
2193
+ /** @description next cursor */
2194
+ next: string | null;
2195
+ /** @description List of results */
2196
+ results: components["schemas"]["Api"][];
2197
+ };
2198
+ };
2199
+ };
2200
+ };
2201
+ };
2202
+ /**
2203
+ * Create Api in Account
2204
+ * @description Create Api in Account
2205
+ */
2206
+ "api/create": {
2207
+ requestBody?: {
2208
+ content: {
2209
+ "application/json": components["schemas"]["ApiCreate"];
2210
+ };
2211
+ };
1871
2212
  responses: {
1872
2213
  /** @description Default Response */
1873
2214
  200: {
1874
2215
  content: {
1875
- "application/json": components["schemas"]["ApiPage"];
2216
+ "application/json": components["schemas"]["Api"];
1876
2217
  };
1877
2218
  };
1878
2219
  };
@@ -1913,4 +2254,86 @@ export interface operations {
1913
2254
  };
1914
2255
  };
1915
2256
  };
2257
+ /** @description Receive a passwordless token and convert it to a valid session */
2258
+ "passwordless/login": {
2259
+ responses: {
2260
+ /** @description Default Response */
2261
+ 200: {
2262
+ content: never;
2263
+ };
2264
+ };
2265
+ };
2266
+ /**
2267
+ * Start Passwordless authentication flow
2268
+ * @description Start Passwordless authentication flow
2269
+ */
2270
+ "passwordless/start": {
2271
+ requestBody: {
2272
+ content: {
2273
+ "application/json": {
2274
+ email: string;
2275
+ returnTo: string;
2276
+ };
2277
+ };
2278
+ };
2279
+ responses: {
2280
+ /** @description Default Response */
2281
+ 200: {
2282
+ content: never;
2283
+ };
2284
+ };
2285
+ };
2286
+ /**
2287
+ * Authorization request
2288
+ * @description Authorization request
2289
+ */
2290
+ authorize: {
2291
+ parameters: {
2292
+ query: {
2293
+ response_type: string;
2294
+ /** @description Challenge method for PKCE. Only S256 is supported. */
2295
+ code_challenge_method?: string;
2296
+ /** @description Challenge for PKCE authorization code flow */
2297
+ code_challenge?: string;
2298
+ client_id: string;
2299
+ /** @description Deprecated. Use connection_id */
2300
+ connection?: string;
2301
+ /** @description Which oauth connection to use. Leave empty to use default connection */
2302
+ connection_id?: string;
2303
+ scope?: string;
2304
+ /** @description The URL to which Faable will redirect the browser after authorization has been granted by the user. */
2305
+ redirect_uri: string;
2306
+ /** @description An opaque value the applications adds to the initial request that the authorization server includes when redirecting the back to the application. This value must be used by the application to prevent CSRF attacks. */
2307
+ state?: string;
2308
+ prompt?: string;
2309
+ };
2310
+ };
2311
+ responses: {
2312
+ /** @description Default Response */
2313
+ 200: {
2314
+ content: never;
2315
+ };
2316
+ };
2317
+ };
2318
+ /**
2319
+ * OAuth2 Callback URL
2320
+ * @description OAuth2 Callback URL
2321
+ */
2322
+ callback: {
2323
+ parameters: {
2324
+ query?: {
2325
+ code?: string;
2326
+ state?: string;
2327
+ error?: string;
2328
+ error_uri?: string;
2329
+ error_description?: string;
2330
+ };
2331
+ };
2332
+ responses: {
2333
+ /** @description Default Response */
2334
+ 200: {
2335
+ content: never;
2336
+ };
2337
+ };
2338
+ };
1916
2339
  }