@faable/auth-sdk 2.6.23 → 2.7.1

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.
@@ -22,6 +22,20 @@ export declare abstract class GeneratedFaableAuthApi extends FaableApi {
22
22
  * `POST /account` — operationId: `account/create`
23
23
  *
24
24
  * Create an Account
25
+ *
26
+ * Creates a new Auth Account. The slug is derived from the name and used to build the default `*.auth.faable.link` domain.
27
+ *
28
+ * @throws {FaableApiError} `team_required` (400) — An Auth Account must belong to a project (team).
29
+ * @throws {FaableApiError} `already_exists` (400) — A resource with the same unique field already exists (for a user, usually `email`). `details.fields` names the field.
30
+ * @throws {FaableApiError} `validation_error` (400) — The body, query or path failed schema validation. `details.issues` lists each failing field.
31
+ * @throws {FaableApiError} `unauthorized` (401) — The request carries no valid credentials.
32
+ * @throws {FaableApiError} `forbidden` (403) — The credentials are valid but do not allow this operation.
33
+ * @throws {FaableApiError} `insufficient_scope` (403) — The token lacks a scope this operation requires. `message` names it.
34
+ * @throws {FaableApiError} `user_suspended` (403) — The user is suspended and cannot sign in or be modified.
35
+ * @throws {FaableApiError} `account_not_found` (404) — No Auth Account matches the request (domain, header or token).
36
+ * @throws {FaableApiError} `account_limit_reached` (409) — The project already has the maximum number of Auth Accounts.
37
+ * @throws {FaableApiError} `too_many_requests` (429) — Rate limit exceeded. Honour the `Retry-After` header.
38
+ * @throws {FaableApiError} `internal_error` (500) — Unexpected server error. Retry later; the request id is logged.
25
39
  */
26
40
  accountCreate(data: OpBody<"account/create">): Promise<{
27
41
  id: string;
@@ -84,6 +98,17 @@ export declare abstract class GeneratedFaableAuthApi extends FaableApi {
84
98
  * `GET /account/current` — operationId: `account/current`
85
99
  *
86
100
  * Get current Account
101
+ *
102
+ * Returns the Account resolved from request context (header, hostname, or team id). Use `expand` to populate nested references.
103
+ *
104
+ * @throws {FaableApiError} `validation_error` (400) — The body, query or path failed schema validation. `details.issues` lists each failing field.
105
+ * @throws {FaableApiError} `unauthorized` (401) — The request carries no valid credentials.
106
+ * @throws {FaableApiError} `forbidden` (403) — The credentials are valid but do not allow this operation.
107
+ * @throws {FaableApiError} `insufficient_scope` (403) — The token lacks a scope this operation requires. `message` names it.
108
+ * @throws {FaableApiError} `user_suspended` (403) — The user is suspended and cannot sign in or be modified.
109
+ * @throws {FaableApiError} `account_not_found` (404) — No Auth Account matches the request (domain, header or token).
110
+ * @throws {FaableApiError} `too_many_requests` (429) — Rate limit exceeded. Honour the `Retry-After` header.
111
+ * @throws {FaableApiError} `internal_error` (500) — Unexpected server error. Retry later; the request id is logged.
87
112
  */
88
113
  accountCurrent(params?: OpQuery<"account/current">): Promise<{
89
114
  id: string;
@@ -146,12 +171,39 @@ export declare abstract class GeneratedFaableAuthApi extends FaableApi {
146
171
  * `DELETE /account/{account_id}` — operationId: `account/delete`
147
172
  *
148
173
  * Delete an Account
174
+ *
175
+ * Permanently removes an Account and its associated data. This action cannot be undone.
176
+ *
177
+ * @throws {FaableApiError} `invalid_id` (400) — The id in the path is not a valid id for this resource.
178
+ * @throws {FaableApiError} `validation_error` (400) — The body, query or path failed schema validation. `details.issues` lists each failing field.
179
+ * @throws {FaableApiError} `unauthorized` (401) — The request carries no valid credentials.
180
+ * @throws {FaableApiError} `forbidden` (403) — The credentials are valid but do not allow this operation.
181
+ * @throws {FaableApiError} `insufficient_scope` (403) — The token lacks a scope this operation requires. `message` names it.
182
+ * @throws {FaableApiError} `user_suspended` (403) — The user is suspended and cannot sign in or be modified.
183
+ * @throws {FaableApiError} `not_found` (404) — The resource does not exist in this account.
184
+ * @throws {FaableApiError} `account_not_found` (404) — No Auth Account matches the request (domain, header or token).
185
+ * @throws {FaableApiError} `too_many_requests` (429) — Rate limit exceeded. Honour the `Retry-After` header.
186
+ * @throws {FaableApiError} `internal_error` (500) — Unexpected server error. Retry later; the request id is logged.
149
187
  */
150
- accountDelete(account_id: string): Promise<never>;
188
+ accountDelete(account_id: string): Promise<void>;
151
189
  /**
152
190
  * `GET /account/{account_id}` — operationId: `account/get`
153
191
  *
154
192
  * Get an Account
193
+ *
194
+ * Fetch a single Account by its id. Use `expand` to populate id-only fields (e.g. `default_connection`) inline.
195
+ *
196
+ * @throws {FaableApiError} `invalid_id` (400) — The id in the path is not a valid id for this resource.
197
+ * @throws {FaableApiError} `invalid_expand` (400) — An `?expand=` path is not allowed on this resource.
198
+ * @throws {FaableApiError} `validation_error` (400) — The body, query or path failed schema validation. `details.issues` lists each failing field.
199
+ * @throws {FaableApiError} `unauthorized` (401) — The request carries no valid credentials.
200
+ * @throws {FaableApiError} `forbidden` (403) — The credentials are valid but do not allow this operation.
201
+ * @throws {FaableApiError} `insufficient_scope` (403) — The token lacks a scope this operation requires. `message` names it.
202
+ * @throws {FaableApiError} `user_suspended` (403) — The user is suspended and cannot sign in or be modified.
203
+ * @throws {FaableApiError} `not_found` (404) — The resource does not exist in this account.
204
+ * @throws {FaableApiError} `account_not_found` (404) — No Auth Account matches the request (domain, header or token).
205
+ * @throws {FaableApiError} `too_many_requests` (429) — Rate limit exceeded. Honour the `Retry-After` header.
206
+ * @throws {FaableApiError} `internal_error` (500) — Unexpected server error. Retry later; the request id is logged.
155
207
  */
156
208
  accountGet(account_id: string, params?: OpQuery<"account/get">): Promise<{
157
209
  id: string;
@@ -214,6 +266,16 @@ export declare abstract class GeneratedFaableAuthApi extends FaableApi {
214
266
  * `GET /account/keys` — operationId: `account/getKeys`
215
267
  *
216
268
  * Get Account signing keys info
269
+ *
270
+ * Returns metadata for the Account signing keys: the current production kid, the kid queued for next rotation, and all kids currently published in the JWK Set. Does not expose private key material.
271
+ *
272
+ * @throws {FaableApiError} `unauthorized` (401) — The request carries no valid credentials.
273
+ * @throws {FaableApiError} `forbidden` (403) — The credentials are valid but do not allow this operation.
274
+ * @throws {FaableApiError} `insufficient_scope` (403) — The token lacks a scope this operation requires. `message` names it.
275
+ * @throws {FaableApiError} `user_suspended` (403) — The user is suspended and cannot sign in or be modified.
276
+ * @throws {FaableApiError} `account_not_found` (404) — No Auth Account matches the request (domain, header or token).
277
+ * @throws {FaableApiError} `too_many_requests` (429) — Rate limit exceeded. Honour the `Retry-After` header.
278
+ * @throws {FaableApiError} `internal_error` (500) — Unexpected server error. Retry later; the request id is logged.
217
279
  */
218
280
  accountGetKeys(): Promise<{
219
281
  production_kid: string;
@@ -224,6 +286,20 @@ export declare abstract class GeneratedFaableAuthApi extends FaableApi {
224
286
  * `GET /account` — operationId: `account/list`
225
287
  *
226
288
  * List Accounts
289
+ *
290
+ * List Accounts owned by the requesting project/team. Supports cursor pagination and `expand`.
291
+ *
292
+ * @throws {FaableApiError} `invalid_query` (400) — The `?query=` FaableQL expression could not be parsed.
293
+ * @throws {FaableApiError} `invalid_expand` (400) — An `?expand=` path is not allowed on this resource.
294
+ * @throws {FaableApiError} `search_not_supported` (400) — This resource does not support `?search=`.
295
+ * @throws {FaableApiError} `validation_error` (400) — The body, query or path failed schema validation. `details.issues` lists each failing field.
296
+ * @throws {FaableApiError} `unauthorized` (401) — The request carries no valid credentials.
297
+ * @throws {FaableApiError} `forbidden` (403) — The credentials are valid but do not allow this operation.
298
+ * @throws {FaableApiError} `insufficient_scope` (403) — The token lacks a scope this operation requires. `message` names it.
299
+ * @throws {FaableApiError} `user_suspended` (403) — The user is suspended and cannot sign in or be modified.
300
+ * @throws {FaableApiError} `account_not_found` (404) — No Auth Account matches the request (domain, header or token).
301
+ * @throws {FaableApiError} `too_many_requests` (429) — Rate limit exceeded. Honour the `Retry-After` header.
302
+ * @throws {FaableApiError} `internal_error` (500) — Unexpected server error. Retry later; the request id is logged.
227
303
  */
228
304
  accountList(params?: Omit<OpQuery<"account/list">, "cursor" | "next">): {
229
305
  all: () => Promise<{
@@ -405,6 +481,16 @@ export declare abstract class GeneratedFaableAuthApi extends FaableApi {
405
481
  * `GET /recovery-channels/capabilities` — operationId: `account/recoveryChannelsCapabilities`
406
482
  *
407
483
  * Recovery channel capabilities for this tenant
484
+ *
485
+ * Which recovery channels the platform can send, whether the plan allows the paid ones, this month's SMS usage against the included amount, and the tenant configuration as resolved. Drives the "Recovery channels" editor in the dashboard.
486
+ *
487
+ * @throws {FaableApiError} `unauthorized` (401) — The request carries no valid credentials.
488
+ * @throws {FaableApiError} `forbidden` (403) — The credentials are valid but do not allow this operation.
489
+ * @throws {FaableApiError} `insufficient_scope` (403) — The token lacks a scope this operation requires. `message` names it.
490
+ * @throws {FaableApiError} `user_suspended` (403) — The user is suspended and cannot sign in or be modified.
491
+ * @throws {FaableApiError} `account_not_found` (404) — No Auth Account matches the request (domain, header or token).
492
+ * @throws {FaableApiError} `too_many_requests` (429) — Rate limit exceeded. Honour the `Retry-After` header.
493
+ * @throws {FaableApiError} `internal_error` (500) — Unexpected server error. Retry later; the request id is logged.
408
494
  */
409
495
  accountRecoveryChannelsCapabilities(): Promise<{
410
496
  provider: {
@@ -438,6 +524,17 @@ export declare abstract class GeneratedFaableAuthApi extends FaableApi {
438
524
  * `POST /account/keys/rotate` — operationId: `account/rotateKeys`
439
525
  *
440
526
  * Rotate Account signing keys
527
+ *
528
+ * Promotes the queued key to production and generates a fresh queued key. The previously-active key is retained inside the JWK Set so tokens already issued remain verifiable via `/.well-known/jwks.json`.
529
+ *
530
+ * @throws {FaableApiError} `validation_error` (400) — The body, query or path failed schema validation. `details.issues` lists each failing field.
531
+ * @throws {FaableApiError} `unauthorized` (401) — The request carries no valid credentials.
532
+ * @throws {FaableApiError} `forbidden` (403) — The credentials are valid but do not allow this operation.
533
+ * @throws {FaableApiError} `insufficient_scope` (403) — The token lacks a scope this operation requires. `message` names it.
534
+ * @throws {FaableApiError} `user_suspended` (403) — The user is suspended and cannot sign in or be modified.
535
+ * @throws {FaableApiError} `account_not_found` (404) — No Auth Account matches the request (domain, header or token).
536
+ * @throws {FaableApiError} `too_many_requests` (429) — Rate limit exceeded. Honour the `Retry-After` header.
537
+ * @throws {FaableApiError} `internal_error` (500) — Unexpected server error. Retry later; the request id is logged.
441
538
  */
442
539
  accountRotateKeys(data: OpBody<"account/rotateKeys">): Promise<{
443
540
  rotated_at: string;
@@ -450,6 +547,17 @@ export declare abstract class GeneratedFaableAuthApi extends FaableApi {
450
547
  * `GET /sdk-health/{account_id}` — operationId: `account/sdk-health`
451
548
  *
452
549
  * Library health for this account
550
+ *
551
+ * Which Faable client libraries this account is being called with, at which versions, and how far behind the latest published release each one is. Versions are observed from the `x-faable-client` header, so an integration that talks raw OIDC shows up only in the traffic breakdown.
552
+ *
553
+ * @throws {FaableApiError} `validation_error` (400) — The body, query or path failed schema validation. `details.issues` lists each failing field.
554
+ * @throws {FaableApiError} `unauthorized` (401) — The request carries no valid credentials.
555
+ * @throws {FaableApiError} `forbidden` (403) — The credentials are valid but do not allow this operation.
556
+ * @throws {FaableApiError} `insufficient_scope` (403) — The token lacks a scope this operation requires. `message` names it.
557
+ * @throws {FaableApiError} `user_suspended` (403) — The user is suspended and cannot sign in or be modified.
558
+ * @throws {FaableApiError} `account_not_found` (404) — No Auth Account matches the request (domain, header or token).
559
+ * @throws {FaableApiError} `too_many_requests` (429) — Rate limit exceeded. Honour the `Retry-After` header.
560
+ * @throws {FaableApiError} `internal_error` (500) — Unexpected server error. Retry later; the request id is logged.
453
561
  */
454
562
  accountSdkHealth(account_id: string): Promise<{
455
563
  libraries: {
@@ -484,6 +592,21 @@ export declare abstract class GeneratedFaableAuthApi extends FaableApi {
484
592
  * `POST /account/{account_id}` — operationId: `account/update`
485
593
  *
486
594
  * Update an Account
595
+ *
596
+ * Update the Account configuration such as branding (logo and icon URLs).
597
+ *
598
+ * @throws {FaableApiError} `invalid_id` (400) — The id in the path is not a valid id for this resource.
599
+ * @throws {FaableApiError} `already_exists` (400) — A resource with the same unique field already exists (for a user, usually `email`). `details.fields` names the field.
600
+ * @throws {FaableApiError} `validation_error` (400) — The body, query or path failed schema validation. `details.issues` lists each failing field.
601
+ * @throws {FaableApiError} `unauthorized` (401) — The request carries no valid credentials.
602
+ * @throws {FaableApiError} `plan_required` (402) — The setting requires a higher plan. `message` says which.
603
+ * @throws {FaableApiError} `forbidden` (403) — The credentials are valid but do not allow this operation.
604
+ * @throws {FaableApiError} `insufficient_scope` (403) — The token lacks a scope this operation requires. `message` names it.
605
+ * @throws {FaableApiError} `user_suspended` (403) — The user is suspended and cannot sign in or be modified.
606
+ * @throws {FaableApiError} `not_found` (404) — The resource does not exist in this account.
607
+ * @throws {FaableApiError} `account_not_found` (404) — No Auth Account matches the request (domain, header or token).
608
+ * @throws {FaableApiError} `too_many_requests` (429) — Rate limit exceeded. Honour the `Retry-After` header.
609
+ * @throws {FaableApiError} `internal_error` (500) — Unexpected server error. Retry later; the request id is logged.
487
610
  */
488
611
  accountUpdate(account_id: string, data: OpBody<"account/update">): Promise<{
489
612
  id: string;
@@ -546,6 +669,16 @@ export declare abstract class GeneratedFaableAuthApi extends FaableApi {
546
669
  * `POST /action` — operationId: `action/create`
547
670
  *
548
671
  * Create Action
672
+ *
673
+ * @throws {FaableApiError} `already_exists` (400) — A resource with the same unique field already exists (for a user, usually `email`). `details.fields` names the field.
674
+ * @throws {FaableApiError} `validation_error` (400) — The body, query or path failed schema validation. `details.issues` lists each failing field.
675
+ * @throws {FaableApiError} `unauthorized` (401) — The request carries no valid credentials.
676
+ * @throws {FaableApiError} `forbidden` (403) — The credentials are valid but do not allow this operation.
677
+ * @throws {FaableApiError} `insufficient_scope` (403) — The token lacks a scope this operation requires. `message` names it.
678
+ * @throws {FaableApiError} `user_suspended` (403) — The user is suspended and cannot sign in or be modified.
679
+ * @throws {FaableApiError} `account_not_found` (404) — No Auth Account matches the request (domain, header or token).
680
+ * @throws {FaableApiError} `too_many_requests` (429) — Rate limit exceeded. Honour the `Retry-After` header.
681
+ * @throws {FaableApiError} `internal_error` (500) — Unexpected server error. Retry later; the request id is logged.
549
682
  */
550
683
  actionCreate(data: OpBody<"action/create">): Promise<{
551
684
  id: string;
@@ -566,6 +699,17 @@ export declare abstract class GeneratedFaableAuthApi extends FaableApi {
566
699
  * `DELETE /action/{action_id}` — operationId: `action/delete`
567
700
  *
568
701
  * Delete Action
702
+ *
703
+ * @throws {FaableApiError} `invalid_id` (400) — The id in the path is not a valid id for this resource.
704
+ * @throws {FaableApiError} `validation_error` (400) — The body, query or path failed schema validation. `details.issues` lists each failing field.
705
+ * @throws {FaableApiError} `unauthorized` (401) — The request carries no valid credentials.
706
+ * @throws {FaableApiError} `forbidden` (403) — The credentials are valid but do not allow this operation.
707
+ * @throws {FaableApiError} `insufficient_scope` (403) — The token lacks a scope this operation requires. `message` names it.
708
+ * @throws {FaableApiError} `user_suspended` (403) — The user is suspended and cannot sign in or be modified.
709
+ * @throws {FaableApiError} `not_found` (404) — The resource does not exist in this account.
710
+ * @throws {FaableApiError} `account_not_found` (404) — No Auth Account matches the request (domain, header or token).
711
+ * @throws {FaableApiError} `too_many_requests` (429) — Rate limit exceeded. Honour the `Retry-After` header.
712
+ * @throws {FaableApiError} `internal_error` (500) — Unexpected server error. Retry later; the request id is logged.
569
713
  */
570
714
  actionDelete(action_id: string): Promise<{
571
715
  id: string;
@@ -586,6 +730,18 @@ export declare abstract class GeneratedFaableAuthApi extends FaableApi {
586
730
  * `GET /action/{action_id}` — operationId: `action/get`
587
731
  *
588
732
  * Get Action
733
+ *
734
+ * @throws {FaableApiError} `invalid_id` (400) — The id in the path is not a valid id for this resource.
735
+ * @throws {FaableApiError} `invalid_expand` (400) — An `?expand=` path is not allowed on this resource.
736
+ * @throws {FaableApiError} `validation_error` (400) — The body, query or path failed schema validation. `details.issues` lists each failing field.
737
+ * @throws {FaableApiError} `unauthorized` (401) — The request carries no valid credentials.
738
+ * @throws {FaableApiError} `forbidden` (403) — The credentials are valid but do not allow this operation.
739
+ * @throws {FaableApiError} `insufficient_scope` (403) — The token lacks a scope this operation requires. `message` names it.
740
+ * @throws {FaableApiError} `user_suspended` (403) — The user is suspended and cannot sign in or be modified.
741
+ * @throws {FaableApiError} `not_found` (404) — The resource does not exist in this account.
742
+ * @throws {FaableApiError} `account_not_found` (404) — No Auth Account matches the request (domain, header or token).
743
+ * @throws {FaableApiError} `too_many_requests` (429) — Rate limit exceeded. Honour the `Retry-After` header.
744
+ * @throws {FaableApiError} `internal_error` (500) — Unexpected server error. Retry later; the request id is logged.
589
745
  */
590
746
  actionGet(action_id: string): Promise<{
591
747
  id: string;
@@ -606,6 +762,18 @@ export declare abstract class GeneratedFaableAuthApi extends FaableApi {
606
762
  * `GET /action` — operationId: `action/list`
607
763
  *
608
764
  * List Actions
765
+ *
766
+ * @throws {FaableApiError} `invalid_query` (400) — The `?query=` FaableQL expression could not be parsed.
767
+ * @throws {FaableApiError} `invalid_expand` (400) — An `?expand=` path is not allowed on this resource.
768
+ * @throws {FaableApiError} `search_not_supported` (400) — This resource does not support `?search=`.
769
+ * @throws {FaableApiError} `validation_error` (400) — The body, query or path failed schema validation. `details.issues` lists each failing field.
770
+ * @throws {FaableApiError} `unauthorized` (401) — The request carries no valid credentials.
771
+ * @throws {FaableApiError} `forbidden` (403) — The credentials are valid but do not allow this operation.
772
+ * @throws {FaableApiError} `insufficient_scope` (403) — The token lacks a scope this operation requires. `message` names it.
773
+ * @throws {FaableApiError} `user_suspended` (403) — The user is suspended and cannot sign in or be modified.
774
+ * @throws {FaableApiError} `account_not_found` (404) — No Auth Account matches the request (domain, header or token).
775
+ * @throws {FaableApiError} `too_many_requests` (429) — Rate limit exceeded. Honour the `Retry-After` header.
776
+ * @throws {FaableApiError} `internal_error` (500) — Unexpected server error. Retry later; the request id is logged.
609
777
  */
610
778
  actionList(params?: Omit<OpQuery<"action/list">, "cursor" | "next">): {
611
779
  all: () => Promise<{
@@ -661,6 +829,18 @@ export declare abstract class GeneratedFaableAuthApi extends FaableApi {
661
829
  * `POST /action/{action_id}` — operationId: `action/update`
662
830
  *
663
831
  * Update Action
832
+ *
833
+ * @throws {FaableApiError} `invalid_id` (400) — The id in the path is not a valid id for this resource.
834
+ * @throws {FaableApiError} `already_exists` (400) — A resource with the same unique field already exists (for a user, usually `email`). `details.fields` names the field.
835
+ * @throws {FaableApiError} `validation_error` (400) — The body, query or path failed schema validation. `details.issues` lists each failing field.
836
+ * @throws {FaableApiError} `unauthorized` (401) — The request carries no valid credentials.
837
+ * @throws {FaableApiError} `forbidden` (403) — The credentials are valid but do not allow this operation.
838
+ * @throws {FaableApiError} `insufficient_scope` (403) — The token lacks a scope this operation requires. `message` names it.
839
+ * @throws {FaableApiError} `user_suspended` (403) — The user is suspended and cannot sign in or be modified.
840
+ * @throws {FaableApiError} `not_found` (404) — The resource does not exist in this account.
841
+ * @throws {FaableApiError} `account_not_found` (404) — No Auth Account matches the request (domain, header or token).
842
+ * @throws {FaableApiError} `too_many_requests` (429) — Rate limit exceeded. Honour the `Retry-After` header.
843
+ * @throws {FaableApiError} `internal_error` (500) — Unexpected server error. Retry later; the request id is logged.
664
844
  */
665
845
  actionUpdate(action_id: string, data: OpBody<"action/update">): Promise<{
666
846
  id: string;
@@ -681,6 +861,16 @@ export declare abstract class GeneratedFaableAuthApi extends FaableApi {
681
861
  * `POST /api` — operationId: `api/create`
682
862
  *
683
863
  * Create Api
864
+ *
865
+ * @throws {FaableApiError} `already_exists` (400) — A resource with the same unique field already exists (for a user, usually `email`). `details.fields` names the field.
866
+ * @throws {FaableApiError} `validation_error` (400) — The body, query or path failed schema validation. `details.issues` lists each failing field.
867
+ * @throws {FaableApiError} `unauthorized` (401) — The request carries no valid credentials.
868
+ * @throws {FaableApiError} `forbidden` (403) — The credentials are valid but do not allow this operation.
869
+ * @throws {FaableApiError} `insufficient_scope` (403) — The token lacks a scope this operation requires. `message` names it.
870
+ * @throws {FaableApiError} `user_suspended` (403) — The user is suspended and cannot sign in or be modified.
871
+ * @throws {FaableApiError} `account_not_found` (404) — No Auth Account matches the request (domain, header or token).
872
+ * @throws {FaableApiError} `too_many_requests` (429) — Rate limit exceeded. Honour the `Retry-After` header.
873
+ * @throws {FaableApiError} `internal_error` (500) — Unexpected server error. Retry later; the request id is logged.
684
874
  */
685
875
  apiCreate(data: OpBody<"api/create">): Promise<{
686
876
  id: string;
@@ -713,6 +903,17 @@ export declare abstract class GeneratedFaableAuthApi extends FaableApi {
713
903
  * `DELETE /api/{api_id}` — operationId: `api/delete`
714
904
  *
715
905
  * Delete Api
906
+ *
907
+ * @throws {FaableApiError} `invalid_id` (400) — The id in the path is not a valid id for this resource.
908
+ * @throws {FaableApiError} `validation_error` (400) — The body, query or path failed schema validation. `details.issues` lists each failing field.
909
+ * @throws {FaableApiError} `unauthorized` (401) — The request carries no valid credentials.
910
+ * @throws {FaableApiError} `forbidden` (403) — The credentials are valid but do not allow this operation.
911
+ * @throws {FaableApiError} `insufficient_scope` (403) — The token lacks a scope this operation requires. `message` names it.
912
+ * @throws {FaableApiError} `user_suspended` (403) — The user is suspended and cannot sign in or be modified.
913
+ * @throws {FaableApiError} `not_found` (404) — The resource does not exist in this account.
914
+ * @throws {FaableApiError} `account_not_found` (404) — No Auth Account matches the request (domain, header or token).
915
+ * @throws {FaableApiError} `too_many_requests` (429) — Rate limit exceeded. Honour the `Retry-After` header.
916
+ * @throws {FaableApiError} `internal_error` (500) — Unexpected server error. Retry later; the request id is logged.
716
917
  */
717
918
  apiDelete(api_id: string): Promise<{
718
919
  id: string;
@@ -745,6 +946,18 @@ export declare abstract class GeneratedFaableAuthApi extends FaableApi {
745
946
  * `GET /api/{api_id}` — operationId: `api/get`
746
947
  *
747
948
  * Get Api
949
+ *
950
+ * @throws {FaableApiError} `invalid_id` (400) — The id in the path is not a valid id for this resource.
951
+ * @throws {FaableApiError} `invalid_expand` (400) — An `?expand=` path is not allowed on this resource.
952
+ * @throws {FaableApiError} `validation_error` (400) — The body, query or path failed schema validation. `details.issues` lists each failing field.
953
+ * @throws {FaableApiError} `unauthorized` (401) — The request carries no valid credentials.
954
+ * @throws {FaableApiError} `forbidden` (403) — The credentials are valid but do not allow this operation.
955
+ * @throws {FaableApiError} `insufficient_scope` (403) — The token lacks a scope this operation requires. `message` names it.
956
+ * @throws {FaableApiError} `user_suspended` (403) — The user is suspended and cannot sign in or be modified.
957
+ * @throws {FaableApiError} `not_found` (404) — The resource does not exist in this account.
958
+ * @throws {FaableApiError} `account_not_found` (404) — No Auth Account matches the request (domain, header or token).
959
+ * @throws {FaableApiError} `too_many_requests` (429) — Rate limit exceeded. Honour the `Retry-After` header.
960
+ * @throws {FaableApiError} `internal_error` (500) — Unexpected server error. Retry later; the request id is logged.
748
961
  */
749
962
  apiGet(api_id: string): Promise<{
750
963
  id: string;
@@ -777,6 +990,18 @@ export declare abstract class GeneratedFaableAuthApi extends FaableApi {
777
990
  * `GET /api` — operationId: `api/list`
778
991
  *
779
992
  * List Apis
993
+ *
994
+ * @throws {FaableApiError} `invalid_query` (400) — The `?query=` FaableQL expression could not be parsed.
995
+ * @throws {FaableApiError} `invalid_expand` (400) — An `?expand=` path is not allowed on this resource.
996
+ * @throws {FaableApiError} `search_not_supported` (400) — This resource does not support `?search=`.
997
+ * @throws {FaableApiError} `validation_error` (400) — The body, query or path failed schema validation. `details.issues` lists each failing field.
998
+ * @throws {FaableApiError} `unauthorized` (401) — The request carries no valid credentials.
999
+ * @throws {FaableApiError} `forbidden` (403) — The credentials are valid but do not allow this operation.
1000
+ * @throws {FaableApiError} `insufficient_scope` (403) — The token lacks a scope this operation requires. `message` names it.
1001
+ * @throws {FaableApiError} `user_suspended` (403) — The user is suspended and cannot sign in or be modified.
1002
+ * @throws {FaableApiError} `account_not_found` (404) — No Auth Account matches the request (domain, header or token).
1003
+ * @throws {FaableApiError} `too_many_requests` (429) — Rate limit exceeded. Honour the `Retry-After` header.
1004
+ * @throws {FaableApiError} `internal_error` (500) — Unexpected server error. Retry later; the request id is logged.
780
1005
  */
781
1006
  apiList(params?: Omit<OpQuery<"api/list">, "cursor" | "next">): {
782
1007
  all: () => Promise<{
@@ -868,6 +1093,18 @@ export declare abstract class GeneratedFaableAuthApi extends FaableApi {
868
1093
  * `POST /api/{api_id}` — operationId: `api/update`
869
1094
  *
870
1095
  * Update Api
1096
+ *
1097
+ * @throws {FaableApiError} `invalid_id` (400) — The id in the path is not a valid id for this resource.
1098
+ * @throws {FaableApiError} `already_exists` (400) — A resource with the same unique field already exists (for a user, usually `email`). `details.fields` names the field.
1099
+ * @throws {FaableApiError} `validation_error` (400) — The body, query or path failed schema validation. `details.issues` lists each failing field.
1100
+ * @throws {FaableApiError} `unauthorized` (401) — The request carries no valid credentials.
1101
+ * @throws {FaableApiError} `forbidden` (403) — The credentials are valid but do not allow this operation.
1102
+ * @throws {FaableApiError} `insufficient_scope` (403) — The token lacks a scope this operation requires. `message` names it.
1103
+ * @throws {FaableApiError} `user_suspended` (403) — The user is suspended and cannot sign in or be modified.
1104
+ * @throws {FaableApiError} `not_found` (404) — The resource does not exist in this account.
1105
+ * @throws {FaableApiError} `account_not_found` (404) — No Auth Account matches the request (domain, header or token).
1106
+ * @throws {FaableApiError} `too_many_requests` (429) — Rate limit exceeded. Honour the `Retry-After` header.
1107
+ * @throws {FaableApiError} `internal_error` (500) — Unexpected server error. Retry later; the request id is logged.
871
1108
  */
872
1109
  apiUpdate(api_id: string, data: OpBody<"api/update">): Promise<{
873
1110
  id: string;
@@ -900,6 +1137,16 @@ export declare abstract class GeneratedFaableAuthApi extends FaableApi {
900
1137
  * `POST /client` — operationId: `client/create`
901
1138
  *
902
1139
  * Create Client
1140
+ *
1141
+ * @throws {FaableApiError} `already_exists` (400) — A resource with the same unique field already exists (for a user, usually `email`). `details.fields` names the field.
1142
+ * @throws {FaableApiError} `validation_error` (400) — The body, query or path failed schema validation. `details.issues` lists each failing field.
1143
+ * @throws {FaableApiError} `unauthorized` (401) — The request carries no valid credentials.
1144
+ * @throws {FaableApiError} `forbidden` (403) — The credentials are valid but do not allow this operation.
1145
+ * @throws {FaableApiError} `insufficient_scope` (403) — The token lacks a scope this operation requires. `message` names it.
1146
+ * @throws {FaableApiError} `user_suspended` (403) — The user is suspended and cannot sign in or be modified.
1147
+ * @throws {FaableApiError} `account_not_found` (404) — No Auth Account matches the request (domain, header or token).
1148
+ * @throws {FaableApiError} `too_many_requests` (429) — Rate limit exceeded. Honour the `Retry-After` header.
1149
+ * @throws {FaableApiError} `internal_error` (500) — Unexpected server error. Retry later; the request id is logged.
903
1150
  */
904
1151
  clientCreate(data: OpBody<"client/create">): Promise<{
905
1152
  id: string;
@@ -965,6 +1212,17 @@ export declare abstract class GeneratedFaableAuthApi extends FaableApi {
965
1212
  * `DELETE /client/{client_id}` — operationId: `client/delete`
966
1213
  *
967
1214
  * Delete Client
1215
+ *
1216
+ * @throws {FaableApiError} `invalid_id` (400) — The id in the path is not a valid id for this resource.
1217
+ * @throws {FaableApiError} `validation_error` (400) — The body, query or path failed schema validation. `details.issues` lists each failing field.
1218
+ * @throws {FaableApiError} `unauthorized` (401) — The request carries no valid credentials.
1219
+ * @throws {FaableApiError} `forbidden` (403) — The credentials are valid but do not allow this operation.
1220
+ * @throws {FaableApiError} `insufficient_scope` (403) — The token lacks a scope this operation requires. `message` names it.
1221
+ * @throws {FaableApiError} `user_suspended` (403) — The user is suspended and cannot sign in or be modified.
1222
+ * @throws {FaableApiError} `not_found` (404) — The resource does not exist in this account.
1223
+ * @throws {FaableApiError} `account_not_found` (404) — No Auth Account matches the request (domain, header or token).
1224
+ * @throws {FaableApiError} `too_many_requests` (429) — Rate limit exceeded. Honour the `Retry-After` header.
1225
+ * @throws {FaableApiError} `internal_error` (500) — Unexpected server error. Retry later; the request id is logged.
968
1226
  */
969
1227
  clientDelete(client_id: string): Promise<{
970
1228
  id: string;
@@ -1030,6 +1288,18 @@ export declare abstract class GeneratedFaableAuthApi extends FaableApi {
1030
1288
  * `GET /client/{client_id}` — operationId: `client/get`
1031
1289
  *
1032
1290
  * Get Client
1291
+ *
1292
+ * @throws {FaableApiError} `invalid_id` (400) — The id in the path is not a valid id for this resource.
1293
+ * @throws {FaableApiError} `invalid_expand` (400) — An `?expand=` path is not allowed on this resource.
1294
+ * @throws {FaableApiError} `validation_error` (400) — The body, query or path failed schema validation. `details.issues` lists each failing field.
1295
+ * @throws {FaableApiError} `unauthorized` (401) — The request carries no valid credentials.
1296
+ * @throws {FaableApiError} `forbidden` (403) — The credentials are valid but do not allow this operation.
1297
+ * @throws {FaableApiError} `insufficient_scope` (403) — The token lacks a scope this operation requires. `message` names it.
1298
+ * @throws {FaableApiError} `user_suspended` (403) — The user is suspended and cannot sign in or be modified.
1299
+ * @throws {FaableApiError} `not_found` (404) — The resource does not exist in this account.
1300
+ * @throws {FaableApiError} `account_not_found` (404) — No Auth Account matches the request (domain, header or token).
1301
+ * @throws {FaableApiError} `too_many_requests` (429) — Rate limit exceeded. Honour the `Retry-After` header.
1302
+ * @throws {FaableApiError} `internal_error` (500) — Unexpected server error. Retry later; the request id is logged.
1033
1303
  */
1034
1304
  clientGet(client_id: string): Promise<{
1035
1305
  id: string;
@@ -1095,6 +1365,18 @@ export declare abstract class GeneratedFaableAuthApi extends FaableApi {
1095
1365
  * `GET /client` — operationId: `client/list`
1096
1366
  *
1097
1367
  * List Clients
1368
+ *
1369
+ * @throws {FaableApiError} `invalid_query` (400) — The `?query=` FaableQL expression could not be parsed.
1370
+ * @throws {FaableApiError} `invalid_expand` (400) — An `?expand=` path is not allowed on this resource.
1371
+ * @throws {FaableApiError} `search_not_supported` (400) — This resource does not support `?search=`.
1372
+ * @throws {FaableApiError} `validation_error` (400) — The body, query or path failed schema validation. `details.issues` lists each failing field.
1373
+ * @throws {FaableApiError} `unauthorized` (401) — The request carries no valid credentials.
1374
+ * @throws {FaableApiError} `forbidden` (403) — The credentials are valid but do not allow this operation.
1375
+ * @throws {FaableApiError} `insufficient_scope` (403) — The token lacks a scope this operation requires. `message` names it.
1376
+ * @throws {FaableApiError} `user_suspended` (403) — The user is suspended and cannot sign in or be modified.
1377
+ * @throws {FaableApiError} `account_not_found` (404) — No Auth Account matches the request (domain, header or token).
1378
+ * @throws {FaableApiError} `too_many_requests` (429) — Rate limit exceeded. Honour the `Retry-After` header.
1379
+ * @throws {FaableApiError} `internal_error` (500) — Unexpected server error. Retry later; the request id is logged.
1098
1380
  */
1099
1381
  clientList(params?: Omit<OpQuery<"client/list">, "cursor" | "next">): {
1100
1382
  all: () => Promise<{
@@ -1285,6 +1567,19 @@ export declare abstract class GeneratedFaableAuthApi extends FaableApi {
1285
1567
  * `POST /client/{client_id}/rotate-secret` — operationId: `client/rotateSecret`
1286
1568
  *
1287
1569
  * Rotate a Client's secret
1570
+ *
1571
+ * Generates a fresh `client_secret` for the given Client and persists it. The previous secret is invalidated immediately — there is no grace period. Returns the full Client; the dashboard must surface the new secret to the admin once. Existing client_credentials / authorization_code integrations using the old secret will start failing at the token endpoint immediately after this call.
1572
+ *
1573
+ * @throws {FaableApiError} `validation_error` (400) — The body, query or path failed schema validation. `details.issues` lists each failing field.
1574
+ * @throws {FaableApiError} `client_mismatch` (401) — The client belongs to a different account.
1575
+ * @throws {FaableApiError} `unauthorized` (401) — The request carries no valid credentials.
1576
+ * @throws {FaableApiError} `forbidden` (403) — The credentials are valid but do not allow this operation.
1577
+ * @throws {FaableApiError} `insufficient_scope` (403) — The token lacks a scope this operation requires. `message` names it.
1578
+ * @throws {FaableApiError} `user_suspended` (403) — The user is suspended and cannot sign in or be modified.
1579
+ * @throws {FaableApiError} `client_not_found` (404) — No client with that `client_id`.
1580
+ * @throws {FaableApiError} `account_not_found` (404) — No Auth Account matches the request (domain, header or token).
1581
+ * @throws {FaableApiError} `too_many_requests` (429) — Rate limit exceeded. Honour the `Retry-After` header.
1582
+ * @throws {FaableApiError} `internal_error` (500) — Unexpected server error. Retry later; the request id is logged.
1288
1583
  */
1289
1584
  clientRotateSecret(client_id: string): Promise<{
1290
1585
  id: string;
@@ -1350,6 +1645,18 @@ export declare abstract class GeneratedFaableAuthApi extends FaableApi {
1350
1645
  * `POST /client/{client_id}` — operationId: `client/update`
1351
1646
  *
1352
1647
  * Update Client
1648
+ *
1649
+ * @throws {FaableApiError} `invalid_id` (400) — The id in the path is not a valid id for this resource.
1650
+ * @throws {FaableApiError} `already_exists` (400) — A resource with the same unique field already exists (for a user, usually `email`). `details.fields` names the field.
1651
+ * @throws {FaableApiError} `validation_error` (400) — The body, query or path failed schema validation. `details.issues` lists each failing field.
1652
+ * @throws {FaableApiError} `unauthorized` (401) — The request carries no valid credentials.
1653
+ * @throws {FaableApiError} `forbidden` (403) — The credentials are valid but do not allow this operation.
1654
+ * @throws {FaableApiError} `insufficient_scope` (403) — The token lacks a scope this operation requires. `message` names it.
1655
+ * @throws {FaableApiError} `user_suspended` (403) — The user is suspended and cannot sign in or be modified.
1656
+ * @throws {FaableApiError} `not_found` (404) — The resource does not exist in this account.
1657
+ * @throws {FaableApiError} `account_not_found` (404) — No Auth Account matches the request (domain, header or token).
1658
+ * @throws {FaableApiError} `too_many_requests` (429) — Rate limit exceeded. Honour the `Retry-After` header.
1659
+ * @throws {FaableApiError} `internal_error` (500) — Unexpected server error. Retry later; the request id is logged.
1353
1660
  */
1354
1661
  clientUpdate(client_id: string, data: OpBody<"client/update">): Promise<{
1355
1662
  id: string;
@@ -1415,6 +1722,16 @@ export declare abstract class GeneratedFaableAuthApi extends FaableApi {
1415
1722
  * `POST /connection` — operationId: `connection/create`
1416
1723
  *
1417
1724
  * Create Connection
1725
+ *
1726
+ * @throws {FaableApiError} `already_exists` (400) — A resource with the same unique field already exists (for a user, usually `email`). `details.fields` names the field.
1727
+ * @throws {FaableApiError} `validation_error` (400) — The body, query or path failed schema validation. `details.issues` lists each failing field.
1728
+ * @throws {FaableApiError} `unauthorized` (401) — The request carries no valid credentials.
1729
+ * @throws {FaableApiError} `forbidden` (403) — The credentials are valid but do not allow this operation.
1730
+ * @throws {FaableApiError} `insufficient_scope` (403) — The token lacks a scope this operation requires. `message` names it.
1731
+ * @throws {FaableApiError} `user_suspended` (403) — The user is suspended and cannot sign in or be modified.
1732
+ * @throws {FaableApiError} `account_not_found` (404) — No Auth Account matches the request (domain, header or token).
1733
+ * @throws {FaableApiError} `too_many_requests` (429) — Rate limit exceeded. Honour the `Retry-After` header.
1734
+ * @throws {FaableApiError} `internal_error` (500) — Unexpected server error. Retry later; the request id is logged.
1418
1735
  */
1419
1736
  connectionCreate(data: OpBody<"connection/create">): Promise<{
1420
1737
  id: string;
@@ -1459,6 +1776,17 @@ export declare abstract class GeneratedFaableAuthApi extends FaableApi {
1459
1776
  * `DELETE /connection/{connection_id}` — operationId: `connection/delete`
1460
1777
  *
1461
1778
  * Delete Connection
1779
+ *
1780
+ * @throws {FaableApiError} `invalid_id` (400) — The id in the path is not a valid id for this resource.
1781
+ * @throws {FaableApiError} `validation_error` (400) — The body, query or path failed schema validation. `details.issues` lists each failing field.
1782
+ * @throws {FaableApiError} `unauthorized` (401) — The request carries no valid credentials.
1783
+ * @throws {FaableApiError} `forbidden` (403) — The credentials are valid but do not allow this operation.
1784
+ * @throws {FaableApiError} `insufficient_scope` (403) — The token lacks a scope this operation requires. `message` names it.
1785
+ * @throws {FaableApiError} `user_suspended` (403) — The user is suspended and cannot sign in or be modified.
1786
+ * @throws {FaableApiError} `not_found` (404) — The resource does not exist in this account.
1787
+ * @throws {FaableApiError} `account_not_found` (404) — No Auth Account matches the request (domain, header or token).
1788
+ * @throws {FaableApiError} `too_many_requests` (429) — Rate limit exceeded. Honour the `Retry-After` header.
1789
+ * @throws {FaableApiError} `internal_error` (500) — Unexpected server error. Retry later; the request id is logged.
1462
1790
  */
1463
1791
  connectionDelete(connection_id: string): Promise<{
1464
1792
  id: string;
@@ -1503,6 +1831,18 @@ export declare abstract class GeneratedFaableAuthApi extends FaableApi {
1503
1831
  * `GET /connection/{connection_id}` — operationId: `connection/get`
1504
1832
  *
1505
1833
  * Get Connection
1834
+ *
1835
+ * @throws {FaableApiError} `invalid_id` (400) — The id in the path is not a valid id for this resource.
1836
+ * @throws {FaableApiError} `invalid_expand` (400) — An `?expand=` path is not allowed on this resource.
1837
+ * @throws {FaableApiError} `validation_error` (400) — The body, query or path failed schema validation. `details.issues` lists each failing field.
1838
+ * @throws {FaableApiError} `unauthorized` (401) — The request carries no valid credentials.
1839
+ * @throws {FaableApiError} `forbidden` (403) — The credentials are valid but do not allow this operation.
1840
+ * @throws {FaableApiError} `insufficient_scope` (403) — The token lacks a scope this operation requires. `message` names it.
1841
+ * @throws {FaableApiError} `user_suspended` (403) — The user is suspended and cannot sign in or be modified.
1842
+ * @throws {FaableApiError} `not_found` (404) — The resource does not exist in this account.
1843
+ * @throws {FaableApiError} `account_not_found` (404) — No Auth Account matches the request (domain, header or token).
1844
+ * @throws {FaableApiError} `too_many_requests` (429) — Rate limit exceeded. Honour the `Retry-After` header.
1845
+ * @throws {FaableApiError} `internal_error` (500) — Unexpected server error. Retry later; the request id is logged.
1506
1846
  */
1507
1847
  connectionGet(connection_id: string): Promise<{
1508
1848
  id: string;
@@ -1547,6 +1887,18 @@ export declare abstract class GeneratedFaableAuthApi extends FaableApi {
1547
1887
  * `GET /connection` — operationId: `connection/list`
1548
1888
  *
1549
1889
  * List Connections
1890
+ *
1891
+ * @throws {FaableApiError} `invalid_query` (400) — The `?query=` FaableQL expression could not be parsed.
1892
+ * @throws {FaableApiError} `invalid_expand` (400) — An `?expand=` path is not allowed on this resource.
1893
+ * @throws {FaableApiError} `search_not_supported` (400) — This resource does not support `?search=`.
1894
+ * @throws {FaableApiError} `validation_error` (400) — The body, query or path failed schema validation. `details.issues` lists each failing field.
1895
+ * @throws {FaableApiError} `unauthorized` (401) — The request carries no valid credentials.
1896
+ * @throws {FaableApiError} `forbidden` (403) — The credentials are valid but do not allow this operation.
1897
+ * @throws {FaableApiError} `insufficient_scope` (403) — The token lacks a scope this operation requires. `message` names it.
1898
+ * @throws {FaableApiError} `user_suspended` (403) — The user is suspended and cannot sign in or be modified.
1899
+ * @throws {FaableApiError} `account_not_found` (404) — No Auth Account matches the request (domain, header or token).
1900
+ * @throws {FaableApiError} `too_many_requests` (429) — Rate limit exceeded. Honour the `Retry-After` header.
1901
+ * @throws {FaableApiError} `internal_error` (500) — Unexpected server error. Retry later; the request id is logged.
1550
1902
  */
1551
1903
  connectionList(params?: Omit<OpQuery<"connection/list">, "cursor" | "next">): {
1552
1904
  all: () => Promise<{
@@ -1674,6 +2026,18 @@ export declare abstract class GeneratedFaableAuthApi extends FaableApi {
1674
2026
  * `POST /connection/{connection_id}` — operationId: `connection/update`
1675
2027
  *
1676
2028
  * Update Connection
2029
+ *
2030
+ * @throws {FaableApiError} `invalid_id` (400) — The id in the path is not a valid id for this resource.
2031
+ * @throws {FaableApiError} `already_exists` (400) — A resource with the same unique field already exists (for a user, usually `email`). `details.fields` names the field.
2032
+ * @throws {FaableApiError} `validation_error` (400) — The body, query or path failed schema validation. `details.issues` lists each failing field.
2033
+ * @throws {FaableApiError} `unauthorized` (401) — The request carries no valid credentials.
2034
+ * @throws {FaableApiError} `forbidden` (403) — The credentials are valid but do not allow this operation.
2035
+ * @throws {FaableApiError} `insufficient_scope` (403) — The token lacks a scope this operation requires. `message` names it.
2036
+ * @throws {FaableApiError} `user_suspended` (403) — The user is suspended and cannot sign in or be modified.
2037
+ * @throws {FaableApiError} `not_found` (404) — The resource does not exist in this account.
2038
+ * @throws {FaableApiError} `account_not_found` (404) — No Auth Account matches the request (domain, header or token).
2039
+ * @throws {FaableApiError} `too_many_requests` (429) — Rate limit exceeded. Honour the `Retry-After` header.
2040
+ * @throws {FaableApiError} `internal_error` (500) — Unexpected server error. Retry later; the request id is logged.
1677
2041
  */
1678
2042
  connectionUpdate(connection_id: string, data: OpBody<"connection/update">): Promise<{
1679
2043
  id: string;
@@ -1718,6 +2082,16 @@ export declare abstract class GeneratedFaableAuthApi extends FaableApi {
1718
2082
  * `POST /credentials` — operationId: `credentials/create`
1719
2083
  *
1720
2084
  * Create Credentials
2085
+ *
2086
+ * @throws {FaableApiError} `already_exists` (400) — A resource with the same unique field already exists (for a user, usually `email`). `details.fields` names the field.
2087
+ * @throws {FaableApiError} `validation_error` (400) — The body, query or path failed schema validation. `details.issues` lists each failing field.
2088
+ * @throws {FaableApiError} `unauthorized` (401) — The request carries no valid credentials.
2089
+ * @throws {FaableApiError} `forbidden` (403) — The credentials are valid but do not allow this operation.
2090
+ * @throws {FaableApiError} `insufficient_scope` (403) — The token lacks a scope this operation requires. `message` names it.
2091
+ * @throws {FaableApiError} `user_suspended` (403) — The user is suspended and cannot sign in or be modified.
2092
+ * @throws {FaableApiError} `account_not_found` (404) — No Auth Account matches the request (domain, header or token).
2093
+ * @throws {FaableApiError} `too_many_requests` (429) — Rate limit exceeded. Honour the `Retry-After` header.
2094
+ * @throws {FaableApiError} `internal_error` (500) — Unexpected server error. Retry later; the request id is logged.
1721
2095
  */
1722
2096
  credentialsCreate(data: OpBody<"credentials/create">): Promise<{
1723
2097
  id: string;
@@ -1736,6 +2110,17 @@ export declare abstract class GeneratedFaableAuthApi extends FaableApi {
1736
2110
  * `DELETE /credentials/{credentials_id}` — operationId: `credentials/delete`
1737
2111
  *
1738
2112
  * Delete Credentials
2113
+ *
2114
+ * @throws {FaableApiError} `invalid_id` (400) — The id in the path is not a valid id for this resource.
2115
+ * @throws {FaableApiError} `validation_error` (400) — The body, query or path failed schema validation. `details.issues` lists each failing field.
2116
+ * @throws {FaableApiError} `unauthorized` (401) — The request carries no valid credentials.
2117
+ * @throws {FaableApiError} `forbidden` (403) — The credentials are valid but do not allow this operation.
2118
+ * @throws {FaableApiError} `insufficient_scope` (403) — The token lacks a scope this operation requires. `message` names it.
2119
+ * @throws {FaableApiError} `user_suspended` (403) — The user is suspended and cannot sign in or be modified.
2120
+ * @throws {FaableApiError} `not_found` (404) — The resource does not exist in this account.
2121
+ * @throws {FaableApiError} `account_not_found` (404) — No Auth Account matches the request (domain, header or token).
2122
+ * @throws {FaableApiError} `too_many_requests` (429) — Rate limit exceeded. Honour the `Retry-After` header.
2123
+ * @throws {FaableApiError} `internal_error` (500) — Unexpected server error. Retry later; the request id is logged.
1739
2124
  */
1740
2125
  credentialsDelete(credentials_id: string): Promise<{
1741
2126
  id: string;
@@ -1754,6 +2139,18 @@ export declare abstract class GeneratedFaableAuthApi extends FaableApi {
1754
2139
  * `GET /credentials/{credentials_id}` — operationId: `credentials/get`
1755
2140
  *
1756
2141
  * Get Credentials
2142
+ *
2143
+ * @throws {FaableApiError} `invalid_id` (400) — The id in the path is not a valid id for this resource.
2144
+ * @throws {FaableApiError} `invalid_expand` (400) — An `?expand=` path is not allowed on this resource.
2145
+ * @throws {FaableApiError} `validation_error` (400) — The body, query or path failed schema validation. `details.issues` lists each failing field.
2146
+ * @throws {FaableApiError} `unauthorized` (401) — The request carries no valid credentials.
2147
+ * @throws {FaableApiError} `forbidden` (403) — The credentials are valid but do not allow this operation.
2148
+ * @throws {FaableApiError} `insufficient_scope` (403) — The token lacks a scope this operation requires. `message` names it.
2149
+ * @throws {FaableApiError} `user_suspended` (403) — The user is suspended and cannot sign in or be modified.
2150
+ * @throws {FaableApiError} `not_found` (404) — The resource does not exist in this account.
2151
+ * @throws {FaableApiError} `account_not_found` (404) — No Auth Account matches the request (domain, header or token).
2152
+ * @throws {FaableApiError} `too_many_requests` (429) — Rate limit exceeded. Honour the `Retry-After` header.
2153
+ * @throws {FaableApiError} `internal_error` (500) — Unexpected server error. Retry later; the request id is logged.
1757
2154
  */
1758
2155
  credentialsGet(credentials_id: string, params?: OpQuery<"credentials/get">): Promise<{
1759
2156
  id: string;
@@ -1772,6 +2169,18 @@ export declare abstract class GeneratedFaableAuthApi extends FaableApi {
1772
2169
  * `GET /credentials` — operationId: `credentials/list`
1773
2170
  *
1774
2171
  * List Credentialss
2172
+ *
2173
+ * @throws {FaableApiError} `invalid_query` (400) — The `?query=` FaableQL expression could not be parsed.
2174
+ * @throws {FaableApiError} `invalid_expand` (400) — An `?expand=` path is not allowed on this resource.
2175
+ * @throws {FaableApiError} `search_not_supported` (400) — This resource does not support `?search=`.
2176
+ * @throws {FaableApiError} `validation_error` (400) — The body, query or path failed schema validation. `details.issues` lists each failing field.
2177
+ * @throws {FaableApiError} `unauthorized` (401) — The request carries no valid credentials.
2178
+ * @throws {FaableApiError} `forbidden` (403) — The credentials are valid but do not allow this operation.
2179
+ * @throws {FaableApiError} `insufficient_scope` (403) — The token lacks a scope this operation requires. `message` names it.
2180
+ * @throws {FaableApiError} `user_suspended` (403) — The user is suspended and cannot sign in or be modified.
2181
+ * @throws {FaableApiError} `account_not_found` (404) — No Auth Account matches the request (domain, header or token).
2182
+ * @throws {FaableApiError} `too_many_requests` (429) — Rate limit exceeded. Honour the `Retry-After` header.
2183
+ * @throws {FaableApiError} `internal_error` (500) — Unexpected server error. Retry later; the request id is logged.
1775
2184
  */
1776
2185
  credentialsList(params?: Omit<OpQuery<"credentials/list">, "cursor" | "next">): {
1777
2186
  all: () => Promise<{
@@ -1821,6 +2230,17 @@ export declare abstract class GeneratedFaableAuthApi extends FaableApi {
1821
2230
  * `POST /credentials/{credentials_id}/set-password` — operationId: `credentials/setPassword`
1822
2231
  *
1823
2232
  * Set a credential's password
2233
+ *
2234
+ * Sets or rotates the password for a database credential. The previous password is invalidated immediately. Records a `credential.password_changed` audit entry (initiated_by=admin) for traceability. The confirmation email is only sent when an EXISTING password is rotated: setting the first password on a credential that had none is a creation, not a change. The password is never returned.
2235
+ *
2236
+ * @throws {FaableApiError} `validation_error` (400) — The body, query or path failed schema validation. `details.issues` lists each failing field.
2237
+ * @throws {FaableApiError} `unauthorized` (401) — The request carries no valid credentials.
2238
+ * @throws {FaableApiError} `forbidden` (403) — The credentials are valid but do not allow this operation.
2239
+ * @throws {FaableApiError} `insufficient_scope` (403) — The token lacks a scope this operation requires. `message` names it.
2240
+ * @throws {FaableApiError} `user_suspended` (403) — The user is suspended and cannot sign in or be modified.
2241
+ * @throws {FaableApiError} `account_not_found` (404) — No Auth Account matches the request (domain, header or token).
2242
+ * @throws {FaableApiError} `too_many_requests` (429) — Rate limit exceeded. Honour the `Retry-After` header.
2243
+ * @throws {FaableApiError} `internal_error` (500) — Unexpected server error. Retry later; the request id is logged.
1824
2244
  */
1825
2245
  credentialsSetPassword(credentials_id: string, data: OpBody<"credentials/setPassword">): Promise<{
1826
2246
  id: string;
@@ -1839,6 +2259,18 @@ export declare abstract class GeneratedFaableAuthApi extends FaableApi {
1839
2259
  * `POST /credentials/{credentials_id}` — operationId: `credentials/update`
1840
2260
  *
1841
2261
  * Update Credentials
2262
+ *
2263
+ * @throws {FaableApiError} `invalid_id` (400) — The id in the path is not a valid id for this resource.
2264
+ * @throws {FaableApiError} `already_exists` (400) — A resource with the same unique field already exists (for a user, usually `email`). `details.fields` names the field.
2265
+ * @throws {FaableApiError} `validation_error` (400) — The body, query or path failed schema validation. `details.issues` lists each failing field.
2266
+ * @throws {FaableApiError} `unauthorized` (401) — The request carries no valid credentials.
2267
+ * @throws {FaableApiError} `forbidden` (403) — The credentials are valid but do not allow this operation.
2268
+ * @throws {FaableApiError} `insufficient_scope` (403) — The token lacks a scope this operation requires. `message` names it.
2269
+ * @throws {FaableApiError} `user_suspended` (403) — The user is suspended and cannot sign in or be modified.
2270
+ * @throws {FaableApiError} `not_found` (404) — The resource does not exist in this account.
2271
+ * @throws {FaableApiError} `account_not_found` (404) — No Auth Account matches the request (domain, header or token).
2272
+ * @throws {FaableApiError} `too_many_requests` (429) — Rate limit exceeded. Honour the `Retry-After` header.
2273
+ * @throws {FaableApiError} `internal_error` (500) — Unexpected server error. Retry later; the request id is logged.
1842
2274
  */
1843
2275
  credentialsUpdate(credentials_id: string, data: OpBody<"credentials/update">): Promise<{
1844
2276
  id: string;
@@ -1857,6 +2289,16 @@ export declare abstract class GeneratedFaableAuthApi extends FaableApi {
1857
2289
  * `POST /customdomain` — operationId: `customdomain/create`
1858
2290
  *
1859
2291
  * Create Customdomain
2292
+ *
2293
+ * @throws {FaableApiError} `already_exists` (400) — A resource with the same unique field already exists (for a user, usually `email`). `details.fields` names the field.
2294
+ * @throws {FaableApiError} `validation_error` (400) — The body, query or path failed schema validation. `details.issues` lists each failing field.
2295
+ * @throws {FaableApiError} `unauthorized` (401) — The request carries no valid credentials.
2296
+ * @throws {FaableApiError} `forbidden` (403) — The credentials are valid but do not allow this operation.
2297
+ * @throws {FaableApiError} `insufficient_scope` (403) — The token lacks a scope this operation requires. `message` names it.
2298
+ * @throws {FaableApiError} `user_suspended` (403) — The user is suspended and cannot sign in or be modified.
2299
+ * @throws {FaableApiError} `account_not_found` (404) — No Auth Account matches the request (domain, header or token).
2300
+ * @throws {FaableApiError} `too_many_requests` (429) — Rate limit exceeded. Honour the `Retry-After` header.
2301
+ * @throws {FaableApiError} `internal_error` (500) — Unexpected server error. Retry later; the request id is logged.
1860
2302
  */
1861
2303
  customdomainCreate(data: OpBody<"customdomain/create">): Promise<{
1862
2304
  id: string;
@@ -1886,6 +2328,17 @@ export declare abstract class GeneratedFaableAuthApi extends FaableApi {
1886
2328
  * `DELETE /customdomain/{customdomain_id}` — operationId: `customdomain/delete`
1887
2329
  *
1888
2330
  * Delete Customdomain
2331
+ *
2332
+ * @throws {FaableApiError} `invalid_id` (400) — The id in the path is not a valid id for this resource.
2333
+ * @throws {FaableApiError} `validation_error` (400) — The body, query or path failed schema validation. `details.issues` lists each failing field.
2334
+ * @throws {FaableApiError} `unauthorized` (401) — The request carries no valid credentials.
2335
+ * @throws {FaableApiError} `forbidden` (403) — The credentials are valid but do not allow this operation.
2336
+ * @throws {FaableApiError} `insufficient_scope` (403) — The token lacks a scope this operation requires. `message` names it.
2337
+ * @throws {FaableApiError} `user_suspended` (403) — The user is suspended and cannot sign in or be modified.
2338
+ * @throws {FaableApiError} `not_found` (404) — The resource does not exist in this account.
2339
+ * @throws {FaableApiError} `account_not_found` (404) — No Auth Account matches the request (domain, header or token).
2340
+ * @throws {FaableApiError} `too_many_requests` (429) — Rate limit exceeded. Honour the `Retry-After` header.
2341
+ * @throws {FaableApiError} `internal_error` (500) — Unexpected server error. Retry later; the request id is logged.
1889
2342
  */
1890
2343
  customdomainDelete(customdomain_id: string): Promise<{
1891
2344
  id: string;
@@ -1915,6 +2368,18 @@ export declare abstract class GeneratedFaableAuthApi extends FaableApi {
1915
2368
  * `GET /customdomain/{customdomain_id}` — operationId: `customdomain/get`
1916
2369
  *
1917
2370
  * Get Customdomain
2371
+ *
2372
+ * @throws {FaableApiError} `invalid_id` (400) — The id in the path is not a valid id for this resource.
2373
+ * @throws {FaableApiError} `invalid_expand` (400) — An `?expand=` path is not allowed on this resource.
2374
+ * @throws {FaableApiError} `validation_error` (400) — The body, query or path failed schema validation. `details.issues` lists each failing field.
2375
+ * @throws {FaableApiError} `unauthorized` (401) — The request carries no valid credentials.
2376
+ * @throws {FaableApiError} `forbidden` (403) — The credentials are valid but do not allow this operation.
2377
+ * @throws {FaableApiError} `insufficient_scope` (403) — The token lacks a scope this operation requires. `message` names it.
2378
+ * @throws {FaableApiError} `user_suspended` (403) — The user is suspended and cannot sign in or be modified.
2379
+ * @throws {FaableApiError} `not_found` (404) — The resource does not exist in this account.
2380
+ * @throws {FaableApiError} `account_not_found` (404) — No Auth Account matches the request (domain, header or token).
2381
+ * @throws {FaableApiError} `too_many_requests` (429) — Rate limit exceeded. Honour the `Retry-After` header.
2382
+ * @throws {FaableApiError} `internal_error` (500) — Unexpected server error. Retry later; the request id is logged.
1918
2383
  */
1919
2384
  customdomainGet(customdomain_id: string): Promise<{
1920
2385
  id: string;
@@ -1944,6 +2409,18 @@ export declare abstract class GeneratedFaableAuthApi extends FaableApi {
1944
2409
  * `GET /customdomain` — operationId: `customdomain/list`
1945
2410
  *
1946
2411
  * List Customdomains
2412
+ *
2413
+ * @throws {FaableApiError} `invalid_query` (400) — The `?query=` FaableQL expression could not be parsed.
2414
+ * @throws {FaableApiError} `invalid_expand` (400) — An `?expand=` path is not allowed on this resource.
2415
+ * @throws {FaableApiError} `search_not_supported` (400) — This resource does not support `?search=`.
2416
+ * @throws {FaableApiError} `validation_error` (400) — The body, query or path failed schema validation. `details.issues` lists each failing field.
2417
+ * @throws {FaableApiError} `unauthorized` (401) — The request carries no valid credentials.
2418
+ * @throws {FaableApiError} `forbidden` (403) — The credentials are valid but do not allow this operation.
2419
+ * @throws {FaableApiError} `insufficient_scope` (403) — The token lacks a scope this operation requires. `message` names it.
2420
+ * @throws {FaableApiError} `user_suspended` (403) — The user is suspended and cannot sign in or be modified.
2421
+ * @throws {FaableApiError} `account_not_found` (404) — No Auth Account matches the request (domain, header or token).
2422
+ * @throws {FaableApiError} `too_many_requests` (429) — Rate limit exceeded. Honour the `Retry-After` header.
2423
+ * @throws {FaableApiError} `internal_error` (500) — Unexpected server error. Retry later; the request id is logged.
1947
2424
  */
1948
2425
  customdomainList(params?: Omit<OpQuery<"customdomain/list">, "cursor" | "next">): {
1949
2426
  all: () => Promise<{
@@ -2026,12 +2503,33 @@ export declare abstract class GeneratedFaableAuthApi extends FaableApi {
2026
2503
  * `POST /customdomain/{customdomain_id}/retry` — operationId: `customdomain/retry`
2027
2504
  *
2028
2505
  * Trigger a domain verification check now
2506
+ *
2507
+ * Forces an immediate DNS re-check of a Custom Domain in any state. Rate-limited to one check per minute. A verified (ACTIVE) domain stays ACTIVE while it is re-checked; any other state moves to VERIFYING.
2508
+ *
2509
+ * @throws {FaableApiError} `validation_error` (400) — The body, query or path failed schema validation. `details.issues` lists each failing field.
2510
+ * @throws {FaableApiError} `unauthorized` (401) — The request carries no valid credentials.
2511
+ * @throws {FaableApiError} `forbidden` (403) — The credentials are valid but do not allow this operation.
2512
+ * @throws {FaableApiError} `insufficient_scope` (403) — The token lacks a scope this operation requires. `message` names it.
2513
+ * @throws {FaableApiError} `user_suspended` (403) — The user is suspended and cannot sign in or be modified.
2514
+ * @throws {FaableApiError} `account_not_found` (404) — No Auth Account matches the request (domain, header or token).
2515
+ * @throws {FaableApiError} `too_many_requests` (429) — Rate limit exceeded. Honour the `Retry-After` header.
2516
+ * @throws {FaableApiError} `internal_error` (500) — Unexpected server error. Retry later; the request id is logged.
2029
2517
  */
2030
2518
  customdomainRetry(customdomain_id: string): Promise<void>;
2031
2519
  /**
2032
2520
  * `POST /identity` — operationId: `identity/create`
2033
2521
  *
2034
2522
  * Create Identity
2523
+ *
2524
+ * @throws {FaableApiError} `already_exists` (400) — A resource with the same unique field already exists (for a user, usually `email`). `details.fields` names the field.
2525
+ * @throws {FaableApiError} `validation_error` (400) — The body, query or path failed schema validation. `details.issues` lists each failing field.
2526
+ * @throws {FaableApiError} `unauthorized` (401) — The request carries no valid credentials.
2527
+ * @throws {FaableApiError} `forbidden` (403) — The credentials are valid but do not allow this operation.
2528
+ * @throws {FaableApiError} `insufficient_scope` (403) — The token lacks a scope this operation requires. `message` names it.
2529
+ * @throws {FaableApiError} `user_suspended` (403) — The user is suspended and cannot sign in or be modified.
2530
+ * @throws {FaableApiError} `account_not_found` (404) — No Auth Account matches the request (domain, header or token).
2531
+ * @throws {FaableApiError} `too_many_requests` (429) — Rate limit exceeded. Honour the `Retry-After` header.
2532
+ * @throws {FaableApiError} `internal_error` (500) — Unexpected server error. Retry later; the request id is logged.
2035
2533
  */
2036
2534
  identityCreate(data: OpBody<"identity/create">): Promise<{
2037
2535
  id: string;
@@ -2054,6 +2552,17 @@ export declare abstract class GeneratedFaableAuthApi extends FaableApi {
2054
2552
  * `DELETE /identity/{identity_id}` — operationId: `identity/delete`
2055
2553
  *
2056
2554
  * Delete Identity
2555
+ *
2556
+ * @throws {FaableApiError} `invalid_id` (400) — The id in the path is not a valid id for this resource.
2557
+ * @throws {FaableApiError} `validation_error` (400) — The body, query or path failed schema validation. `details.issues` lists each failing field.
2558
+ * @throws {FaableApiError} `unauthorized` (401) — The request carries no valid credentials.
2559
+ * @throws {FaableApiError} `forbidden` (403) — The credentials are valid but do not allow this operation.
2560
+ * @throws {FaableApiError} `insufficient_scope` (403) — The token lacks a scope this operation requires. `message` names it.
2561
+ * @throws {FaableApiError} `user_suspended` (403) — The user is suspended and cannot sign in or be modified.
2562
+ * @throws {FaableApiError} `not_found` (404) — The resource does not exist in this account.
2563
+ * @throws {FaableApiError} `account_not_found` (404) — No Auth Account matches the request (domain, header or token).
2564
+ * @throws {FaableApiError} `too_many_requests` (429) — Rate limit exceeded. Honour the `Retry-After` header.
2565
+ * @throws {FaableApiError} `internal_error` (500) — Unexpected server error. Retry later; the request id is logged.
2057
2566
  */
2058
2567
  identityDelete(identity_id: string): Promise<{
2059
2568
  id: string;
@@ -2076,6 +2585,18 @@ export declare abstract class GeneratedFaableAuthApi extends FaableApi {
2076
2585
  * `GET /identity/{identity_id}` — operationId: `identity/get`
2077
2586
  *
2078
2587
  * Get Identity
2588
+ *
2589
+ * @throws {FaableApiError} `invalid_id` (400) — The id in the path is not a valid id for this resource.
2590
+ * @throws {FaableApiError} `invalid_expand` (400) — An `?expand=` path is not allowed on this resource.
2591
+ * @throws {FaableApiError} `validation_error` (400) — The body, query or path failed schema validation. `details.issues` lists each failing field.
2592
+ * @throws {FaableApiError} `unauthorized` (401) — The request carries no valid credentials.
2593
+ * @throws {FaableApiError} `forbidden` (403) — The credentials are valid but do not allow this operation.
2594
+ * @throws {FaableApiError} `insufficient_scope` (403) — The token lacks a scope this operation requires. `message` names it.
2595
+ * @throws {FaableApiError} `user_suspended` (403) — The user is suspended and cannot sign in or be modified.
2596
+ * @throws {FaableApiError} `not_found` (404) — The resource does not exist in this account.
2597
+ * @throws {FaableApiError} `account_not_found` (404) — No Auth Account matches the request (domain, header or token).
2598
+ * @throws {FaableApiError} `too_many_requests` (429) — Rate limit exceeded. Honour the `Retry-After` header.
2599
+ * @throws {FaableApiError} `internal_error` (500) — Unexpected server error. Retry later; the request id is logged.
2079
2600
  */
2080
2601
  identityGet(identity_id: string, params?: OpQuery<"identity/get">): Promise<{
2081
2602
  id: string;
@@ -2098,6 +2619,21 @@ export declare abstract class GeneratedFaableAuthApi extends FaableApi {
2098
2619
  * `GET /identity/{identity_id}/provider-token` — operationId: `identity/getProviderToken`
2099
2620
  *
2100
2621
  * Get a guaranteed-valid provider access_token
2622
+ *
2623
+ * Returns the identity's upstream provider `access_token`, refreshing it transparently via the stored `refresh_token` when it is (about to be) expired. Pass `?fresh=true` to force a refresh. Fails with 400 when the token is expired and no `refresh_token` is available (the user must re-authorize).
2624
+ *
2625
+ * @throws {FaableApiError} `connection_misconfigured` (400) — The connection is missing settings needed to talk to its provider.
2626
+ * @throws {FaableApiError} `no_provider_token` (400) — The identity holds no provider access token.
2627
+ * @throws {FaableApiError} `no_refresh_token` (400) — The identity holds no provider refresh token, so it cannot be refreshed.
2628
+ * @throws {FaableApiError} `provider_error` (400) — The upstream identity provider returned an error. `message` carries it.
2629
+ * @throws {FaableApiError} `validation_error` (400) — The body, query or path failed schema validation. `details.issues` lists each failing field.
2630
+ * @throws {FaableApiError} `unauthorized` (401) — The request carries no valid credentials.
2631
+ * @throws {FaableApiError} `forbidden` (403) — The credentials are valid but do not allow this operation.
2632
+ * @throws {FaableApiError} `insufficient_scope` (403) — The token lacks a scope this operation requires. `message` names it.
2633
+ * @throws {FaableApiError} `user_suspended` (403) — The user is suspended and cannot sign in or be modified.
2634
+ * @throws {FaableApiError} `account_not_found` (404) — No Auth Account matches the request (domain, header or token).
2635
+ * @throws {FaableApiError} `too_many_requests` (429) — Rate limit exceeded. Honour the `Retry-After` header.
2636
+ * @throws {FaableApiError} `internal_error` (500) — Unexpected server error. Retry later; the request id is logged.
2101
2637
  */
2102
2638
  identityGetProviderToken(identity_id: string, params?: OpQuery<"identity/getProviderToken">): Promise<{
2103
2639
  access_token: string;
@@ -2108,6 +2644,18 @@ export declare abstract class GeneratedFaableAuthApi extends FaableApi {
2108
2644
  * `GET /identity` — operationId: `identity/list`
2109
2645
  *
2110
2646
  * List Identitys
2647
+ *
2648
+ * @throws {FaableApiError} `invalid_query` (400) — The `?query=` FaableQL expression could not be parsed.
2649
+ * @throws {FaableApiError} `invalid_expand` (400) — An `?expand=` path is not allowed on this resource.
2650
+ * @throws {FaableApiError} `search_not_supported` (400) — This resource does not support `?search=`.
2651
+ * @throws {FaableApiError} `validation_error` (400) — The body, query or path failed schema validation. `details.issues` lists each failing field.
2652
+ * @throws {FaableApiError} `unauthorized` (401) — The request carries no valid credentials.
2653
+ * @throws {FaableApiError} `forbidden` (403) — The credentials are valid but do not allow this operation.
2654
+ * @throws {FaableApiError} `insufficient_scope` (403) — The token lacks a scope this operation requires. `message` names it.
2655
+ * @throws {FaableApiError} `user_suspended` (403) — The user is suspended and cannot sign in or be modified.
2656
+ * @throws {FaableApiError} `account_not_found` (404) — No Auth Account matches the request (domain, header or token).
2657
+ * @throws {FaableApiError} `too_many_requests` (429) — Rate limit exceeded. Honour the `Retry-After` header.
2658
+ * @throws {FaableApiError} `internal_error` (500) — Unexpected server error. Retry later; the request id is logged.
2111
2659
  */
2112
2660
  identityList(params?: Omit<OpQuery<"identity/list">, "cursor" | "next">): {
2113
2661
  all: () => Promise<{
@@ -2169,6 +2717,17 @@ export declare abstract class GeneratedFaableAuthApi extends FaableApi {
2169
2717
  * `GET /internal/usage/sms` — operationId: `internal/smsUsage`
2170
2718
  *
2171
2719
  * SMS sent per tenant in a month (platform)
2720
+ *
2721
+ * Per-account count of recovery/verification SMS sent in the given month, read from the monthly quota counters. Consumed by the billing usage job. Platform token with `read:usage`.
2722
+ *
2723
+ * @throws {FaableApiError} `validation_error` (400) — The body, query or path failed schema validation. `details.issues` lists each failing field.
2724
+ * @throws {FaableApiError} `unauthorized` (401) — The request carries no valid credentials.
2725
+ * @throws {FaableApiError} `forbidden` (403) — The credentials are valid but do not allow this operation.
2726
+ * @throws {FaableApiError} `insufficient_scope` (403) — The token lacks a scope this operation requires. `message` names it.
2727
+ * @throws {FaableApiError} `user_suspended` (403) — The user is suspended and cannot sign in or be modified.
2728
+ * @throws {FaableApiError} `account_not_found` (404) — No Auth Account matches the request (domain, header or token).
2729
+ * @throws {FaableApiError} `too_many_requests` (429) — Rate limit exceeded. Honour the `Retry-After` header.
2730
+ * @throws {FaableApiError} `internal_error` (500) — Unexpected server error. Retry later; the request id is logged.
2172
2731
  */
2173
2732
  internalSmsUsage(params?: OpQuery<"internal/smsUsage">): Promise<{
2174
2733
  month: string;
@@ -2182,6 +2741,18 @@ export declare abstract class GeneratedFaableAuthApi extends FaableApi {
2182
2741
  * `GET /log/{log_id}` — operationId: `log/get`
2183
2742
  *
2184
2743
  * Get Log
2744
+ *
2745
+ * @throws {FaableApiError} `invalid_id` (400) — The id in the path is not a valid id for this resource.
2746
+ * @throws {FaableApiError} `invalid_expand` (400) — An `?expand=` path is not allowed on this resource.
2747
+ * @throws {FaableApiError} `validation_error` (400) — The body, query or path failed schema validation. `details.issues` lists each failing field.
2748
+ * @throws {FaableApiError} `unauthorized` (401) — The request carries no valid credentials.
2749
+ * @throws {FaableApiError} `forbidden` (403) — The credentials are valid but do not allow this operation.
2750
+ * @throws {FaableApiError} `insufficient_scope` (403) — The token lacks a scope this operation requires. `message` names it.
2751
+ * @throws {FaableApiError} `user_suspended` (403) — The user is suspended and cannot sign in or be modified.
2752
+ * @throws {FaableApiError} `not_found` (404) — The resource does not exist in this account.
2753
+ * @throws {FaableApiError} `account_not_found` (404) — No Auth Account matches the request (domain, header or token).
2754
+ * @throws {FaableApiError} `too_many_requests` (429) — Rate limit exceeded. Honour the `Retry-After` header.
2755
+ * @throws {FaableApiError} `internal_error` (500) — Unexpected server error. Retry later; the request id is logged.
2185
2756
  */
2186
2757
  logGet(log_id: string, params?: OpQuery<"log/get">): Promise<{
2187
2758
  id: string;
@@ -2207,6 +2778,18 @@ export declare abstract class GeneratedFaableAuthApi extends FaableApi {
2207
2778
  * `GET /log` — operationId: `log/list`
2208
2779
  *
2209
2780
  * List Logs
2781
+ *
2782
+ * @throws {FaableApiError} `invalid_query` (400) — The `?query=` FaableQL expression could not be parsed.
2783
+ * @throws {FaableApiError} `invalid_expand` (400) — An `?expand=` path is not allowed on this resource.
2784
+ * @throws {FaableApiError} `search_not_supported` (400) — This resource does not support `?search=`.
2785
+ * @throws {FaableApiError} `validation_error` (400) — The body, query or path failed schema validation. `details.issues` lists each failing field.
2786
+ * @throws {FaableApiError} `unauthorized` (401) — The request carries no valid credentials.
2787
+ * @throws {FaableApiError} `forbidden` (403) — The credentials are valid but do not allow this operation.
2788
+ * @throws {FaableApiError} `insufficient_scope` (403) — The token lacks a scope this operation requires. `message` names it.
2789
+ * @throws {FaableApiError} `user_suspended` (403) — The user is suspended and cannot sign in or be modified.
2790
+ * @throws {FaableApiError} `account_not_found` (404) — No Auth Account matches the request (domain, header or token).
2791
+ * @throws {FaableApiError} `too_many_requests` (429) — Rate limit exceeded. Honour the `Retry-After` header.
2792
+ * @throws {FaableApiError} `internal_error` (500) — Unexpected server error. Retry later; the request id is logged.
2210
2793
  */
2211
2794
  logList(params?: Omit<OpQuery<"log/list">, "cursor" | "next">): {
2212
2795
  all: () => Promise<{
@@ -2277,6 +2860,16 @@ export declare abstract class GeneratedFaableAuthApi extends FaableApi {
2277
2860
  * `POST /loginflow` — operationId: `loginflow/create`
2278
2861
  *
2279
2862
  * Create Loginflow
2863
+ *
2864
+ * @throws {FaableApiError} `already_exists` (400) — A resource with the same unique field already exists (for a user, usually `email`). `details.fields` names the field.
2865
+ * @throws {FaableApiError} `validation_error` (400) — The body, query or path failed schema validation. `details.issues` lists each failing field.
2866
+ * @throws {FaableApiError} `unauthorized` (401) — The request carries no valid credentials.
2867
+ * @throws {FaableApiError} `forbidden` (403) — The credentials are valid but do not allow this operation.
2868
+ * @throws {FaableApiError} `insufficient_scope` (403) — The token lacks a scope this operation requires. `message` names it.
2869
+ * @throws {FaableApiError} `user_suspended` (403) — The user is suspended and cannot sign in or be modified.
2870
+ * @throws {FaableApiError} `account_not_found` (404) — No Auth Account matches the request (domain, header or token).
2871
+ * @throws {FaableApiError} `too_many_requests` (429) — Rate limit exceeded. Honour the `Retry-After` header.
2872
+ * @throws {FaableApiError} `internal_error` (500) — Unexpected server error. Retry later; the request id is logged.
2280
2873
  */
2281
2874
  loginflowCreate(data: OpBody<"loginflow/create">): Promise<{
2282
2875
  id: string;
@@ -2350,6 +2943,17 @@ export declare abstract class GeneratedFaableAuthApi extends FaableApi {
2350
2943
  * `DELETE /loginflow/{loginflow_id}` — operationId: `loginflow/delete`
2351
2944
  *
2352
2945
  * Delete Loginflow
2946
+ *
2947
+ * @throws {FaableApiError} `invalid_id` (400) — The id in the path is not a valid id for this resource.
2948
+ * @throws {FaableApiError} `validation_error` (400) — The body, query or path failed schema validation. `details.issues` lists each failing field.
2949
+ * @throws {FaableApiError} `unauthorized` (401) — The request carries no valid credentials.
2950
+ * @throws {FaableApiError} `forbidden` (403) — The credentials are valid but do not allow this operation.
2951
+ * @throws {FaableApiError} `insufficient_scope` (403) — The token lacks a scope this operation requires. `message` names it.
2952
+ * @throws {FaableApiError} `user_suspended` (403) — The user is suspended and cannot sign in or be modified.
2953
+ * @throws {FaableApiError} `not_found` (404) — The resource does not exist in this account.
2954
+ * @throws {FaableApiError} `account_not_found` (404) — No Auth Account matches the request (domain, header or token).
2955
+ * @throws {FaableApiError} `too_many_requests` (429) — Rate limit exceeded. Honour the `Retry-After` header.
2956
+ * @throws {FaableApiError} `internal_error` (500) — Unexpected server error. Retry later; the request id is logged.
2353
2957
  */
2354
2958
  loginflowDelete(loginflow_id: string): Promise<{
2355
2959
  id: string;
@@ -2423,6 +3027,18 @@ export declare abstract class GeneratedFaableAuthApi extends FaableApi {
2423
3027
  * `GET /loginflow/{loginflow_id}` — operationId: `loginflow/get`
2424
3028
  *
2425
3029
  * Get Loginflow
3030
+ *
3031
+ * @throws {FaableApiError} `invalid_id` (400) — The id in the path is not a valid id for this resource.
3032
+ * @throws {FaableApiError} `invalid_expand` (400) — An `?expand=` path is not allowed on this resource.
3033
+ * @throws {FaableApiError} `validation_error` (400) — The body, query or path failed schema validation. `details.issues` lists each failing field.
3034
+ * @throws {FaableApiError} `unauthorized` (401) — The request carries no valid credentials.
3035
+ * @throws {FaableApiError} `forbidden` (403) — The credentials are valid but do not allow this operation.
3036
+ * @throws {FaableApiError} `insufficient_scope` (403) — The token lacks a scope this operation requires. `message` names it.
3037
+ * @throws {FaableApiError} `user_suspended` (403) — The user is suspended and cannot sign in or be modified.
3038
+ * @throws {FaableApiError} `not_found` (404) — The resource does not exist in this account.
3039
+ * @throws {FaableApiError} `account_not_found` (404) — No Auth Account matches the request (domain, header or token).
3040
+ * @throws {FaableApiError} `too_many_requests` (429) — Rate limit exceeded. Honour the `Retry-After` header.
3041
+ * @throws {FaableApiError} `internal_error` (500) — Unexpected server error. Retry later; the request id is logged.
2426
3042
  */
2427
3043
  loginflowGet(loginflow_id: string): Promise<{
2428
3044
  id: string;
@@ -2496,6 +3112,18 @@ export declare abstract class GeneratedFaableAuthApi extends FaableApi {
2496
3112
  * `GET /loginflow` — operationId: `loginflow/list`
2497
3113
  *
2498
3114
  * List Loginflows
3115
+ *
3116
+ * @throws {FaableApiError} `invalid_query` (400) — The `?query=` FaableQL expression could not be parsed.
3117
+ * @throws {FaableApiError} `invalid_expand` (400) — An `?expand=` path is not allowed on this resource.
3118
+ * @throws {FaableApiError} `search_not_supported` (400) — This resource does not support `?search=`.
3119
+ * @throws {FaableApiError} `validation_error` (400) — The body, query or path failed schema validation. `details.issues` lists each failing field.
3120
+ * @throws {FaableApiError} `unauthorized` (401) — The request carries no valid credentials.
3121
+ * @throws {FaableApiError} `forbidden` (403) — The credentials are valid but do not allow this operation.
3122
+ * @throws {FaableApiError} `insufficient_scope` (403) — The token lacks a scope this operation requires. `message` names it.
3123
+ * @throws {FaableApiError} `user_suspended` (403) — The user is suspended and cannot sign in or be modified.
3124
+ * @throws {FaableApiError} `account_not_found` (404) — No Auth Account matches the request (domain, header or token).
3125
+ * @throws {FaableApiError} `too_many_requests` (429) — Rate limit exceeded. Honour the `Retry-After` header.
3126
+ * @throws {FaableApiError} `internal_error` (500) — Unexpected server error. Retry later; the request id is logged.
2499
3127
  */
2500
3128
  loginflowList(params?: Omit<OpQuery<"loginflow/list">, "cursor" | "next">): {
2501
3129
  all: () => Promise<{
@@ -2710,6 +3338,17 @@ export declare abstract class GeneratedFaableAuthApi extends FaableApi {
2710
3338
  * `POST /loginflow/materialize` — operationId: `loginflow/materialize`
2711
3339
  *
2712
3340
  * Start a custom flow from what runs today
3341
+ *
3342
+ * Creates a login flow whose draft is the graph the account (or, with `client_id`, that client) currently runs — compiled from its settings — and binds it. Nothing changes for logins until the flow is published: a bound flow with no published graph keeps running the compiled one. Never a blank canvas: customising always starts from the tenant's own behaviour.
3343
+ *
3344
+ * @throws {FaableApiError} `validation_error` (400) — The body, query or path failed schema validation. `details.issues` lists each failing field.
3345
+ * @throws {FaableApiError} `unauthorized` (401) — The request carries no valid credentials.
3346
+ * @throws {FaableApiError} `forbidden` (403) — The credentials are valid but do not allow this operation.
3347
+ * @throws {FaableApiError} `insufficient_scope` (403) — The token lacks a scope this operation requires. `message` names it.
3348
+ * @throws {FaableApiError} `user_suspended` (403) — The user is suspended and cannot sign in or be modified.
3349
+ * @throws {FaableApiError} `account_not_found` (404) — No Auth Account matches the request (domain, header or token).
3350
+ * @throws {FaableApiError} `too_many_requests` (429) — Rate limit exceeded. Honour the `Retry-After` header.
3351
+ * @throws {FaableApiError} `internal_error` (500) — Unexpected server error. Retry later; the request id is logged.
2713
3352
  */
2714
3353
  loginflowMaterialize(data: OpBody<"loginflow/materialize">): Promise<{
2715
3354
  id: string;
@@ -2783,6 +3422,18 @@ export declare abstract class GeneratedFaableAuthApi extends FaableApi {
2783
3422
  * `POST /loginflow/{loginflow_id}/preview-token` — operationId: `loginflow/previewToken`
2784
3423
  *
2785
3424
  * Try the draft on a real login, in your browser only
3425
+ *
3426
+ * Returns a short-lived token. Open `/authorize?…&flow_preview=<token>` (or the hosted login with the same parameter) and that login runs the DRAFT of this flow instead of what is published, for that browser only. Nothing is published.
3427
+ *
3428
+ * @throws {FaableApiError} `flow_not_found` (400) — The login flow does not exist in this account.
3429
+ * @throws {FaableApiError} `validation_error` (400) — The body, query or path failed schema validation. `details.issues` lists each failing field.
3430
+ * @throws {FaableApiError} `unauthorized` (401) — The request carries no valid credentials.
3431
+ * @throws {FaableApiError} `forbidden` (403) — The credentials are valid but do not allow this operation.
3432
+ * @throws {FaableApiError} `insufficient_scope` (403) — The token lacks a scope this operation requires. `message` names it.
3433
+ * @throws {FaableApiError} `user_suspended` (403) — The user is suspended and cannot sign in or be modified.
3434
+ * @throws {FaableApiError} `account_not_found` (404) — No Auth Account matches the request (domain, header or token).
3435
+ * @throws {FaableApiError} `too_many_requests` (429) — Rate limit exceeded. Honour the `Retry-After` header.
3436
+ * @throws {FaableApiError} `internal_error` (500) — Unexpected server error. Retry later; the request id is logged.
2786
3437
  */
2787
3438
  loginflowPreviewToken(loginflow_id: string): Promise<{
2788
3439
  token: string;
@@ -2792,6 +3443,17 @@ export declare abstract class GeneratedFaableAuthApi extends FaableApi {
2792
3443
  * `POST /loginflow/{loginflow_id}/publish` — operationId: `loginflow/publish`
2793
3444
  *
2794
3445
  * Make the draft the graph logins run
3446
+ *
3447
+ * Validates the draft and freezes it as `published` under its current revision; the previous published graph moves to `history`. Logins already in flight keep the revision they started on. Refused with the list of issues when the draft does not validate.
3448
+ *
3449
+ * @throws {FaableApiError} `validation_error` (400) — The body, query or path failed schema validation. `details.issues` lists each failing field.
3450
+ * @throws {FaableApiError} `unauthorized` (401) — The request carries no valid credentials.
3451
+ * @throws {FaableApiError} `forbidden` (403) — The credentials are valid but do not allow this operation.
3452
+ * @throws {FaableApiError} `insufficient_scope` (403) — The token lacks a scope this operation requires. `message` names it.
3453
+ * @throws {FaableApiError} `user_suspended` (403) — The user is suspended and cannot sign in or be modified.
3454
+ * @throws {FaableApiError} `account_not_found` (404) — No Auth Account matches the request (domain, header or token).
3455
+ * @throws {FaableApiError} `too_many_requests` (429) — Rate limit exceeded. Honour the `Retry-After` header.
3456
+ * @throws {FaableApiError} `internal_error` (500) — Unexpected server error. Retry later; the request id is logged.
2795
3457
  */
2796
3458
  loginflowPublish(loginflow_id: string, data: OpBody<"loginflow/publish">): Promise<{
2797
3459
  id: string;
@@ -2865,6 +3527,17 @@ export declare abstract class GeneratedFaableAuthApi extends FaableApi {
2865
3527
  * `GET /loginflow/resolved` — operationId: `loginflow/resolved`
2866
3528
  *
2867
3529
  * The graph this account (or client) runs right now
3530
+ *
3531
+ * What a login actually walks: the published graph of the bound flow, or the graph compiled from the settings when nothing is bound or published. With `client_id`, resolved for that client (its own flow, else the account's, else compiled from its overrides). The bound flow, if any, comes along with its draft so an editor can show both.
3532
+ *
3533
+ * @throws {FaableApiError} `validation_error` (400) — The body, query or path failed schema validation. `details.issues` lists each failing field.
3534
+ * @throws {FaableApiError} `unauthorized` (401) — The request carries no valid credentials.
3535
+ * @throws {FaableApiError} `forbidden` (403) — The credentials are valid but do not allow this operation.
3536
+ * @throws {FaableApiError} `insufficient_scope` (403) — The token lacks a scope this operation requires. `message` names it.
3537
+ * @throws {FaableApiError} `user_suspended` (403) — The user is suspended and cannot sign in or be modified.
3538
+ * @throws {FaableApiError} `account_not_found` (404) — No Auth Account matches the request (domain, header or token).
3539
+ * @throws {FaableApiError} `too_many_requests` (429) — Rate limit exceeded. Honour the `Retry-After` header.
3540
+ * @throws {FaableApiError} `internal_error` (500) — Unexpected server error. Retry later; the request id is logged.
2868
3541
  */
2869
3542
  loginflowResolved(params?: OpQuery<"loginflow/resolved">): Promise<{
2870
3543
  source: "compiled" | "published";
@@ -2917,6 +3590,18 @@ export declare abstract class GeneratedFaableAuthApi extends FaableApi {
2917
3590
  * `POST /loginflow/{loginflow_id}/rollback` — operationId: `loginflow/rollback`
2918
3591
  *
2919
3592
  * Run a previously published revision again
3593
+ *
3594
+ * Makes the named revision from `history` the published graph; the one being replaced moves to `history`. The draft is not touched.
3595
+ *
3596
+ * @throws {FaableApiError} `validation_error` (400) — The body, query or path failed schema validation. `details.issues` lists each failing field.
3597
+ * @throws {FaableApiError} `unauthorized` (401) — The request carries no valid credentials.
3598
+ * @throws {FaableApiError} `forbidden` (403) — The credentials are valid but do not allow this operation.
3599
+ * @throws {FaableApiError} `insufficient_scope` (403) — The token lacks a scope this operation requires. `message` names it.
3600
+ * @throws {FaableApiError} `user_suspended` (403) — The user is suspended and cannot sign in or be modified.
3601
+ * @throws {FaableApiError} `revision_not_found` (404) — The revision is not in the flow history.
3602
+ * @throws {FaableApiError} `account_not_found` (404) — No Auth Account matches the request (domain, header or token).
3603
+ * @throws {FaableApiError} `too_many_requests` (429) — Rate limit exceeded. Honour the `Retry-After` header.
3604
+ * @throws {FaableApiError} `internal_error` (500) — Unexpected server error. Retry later; the request id is logged.
2920
3605
  */
2921
3606
  loginflowRollback(loginflow_id: string, data: OpBody<"loginflow/rollback">): Promise<{
2922
3607
  id: string;
@@ -2990,6 +3675,18 @@ export declare abstract class GeneratedFaableAuthApi extends FaableApi {
2990
3675
  * `POST /loginflow/{loginflow_id}` — operationId: `loginflow/update`
2991
3676
  *
2992
3677
  * Update Loginflow
3678
+ *
3679
+ * @throws {FaableApiError} `invalid_id` (400) — The id in the path is not a valid id for this resource.
3680
+ * @throws {FaableApiError} `already_exists` (400) — A resource with the same unique field already exists (for a user, usually `email`). `details.fields` names the field.
3681
+ * @throws {FaableApiError} `validation_error` (400) — The body, query or path failed schema validation. `details.issues` lists each failing field.
3682
+ * @throws {FaableApiError} `unauthorized` (401) — The request carries no valid credentials.
3683
+ * @throws {FaableApiError} `forbidden` (403) — The credentials are valid but do not allow this operation.
3684
+ * @throws {FaableApiError} `insufficient_scope` (403) — The token lacks a scope this operation requires. `message` names it.
3685
+ * @throws {FaableApiError} `user_suspended` (403) — The user is suspended and cannot sign in or be modified.
3686
+ * @throws {FaableApiError} `not_found` (404) — The resource does not exist in this account.
3687
+ * @throws {FaableApiError} `account_not_found` (404) — No Auth Account matches the request (domain, header or token).
3688
+ * @throws {FaableApiError} `too_many_requests` (429) — Rate limit exceeded. Honour the `Retry-After` header.
3689
+ * @throws {FaableApiError} `internal_error` (500) — Unexpected server error. Retry later; the request id is logged.
2993
3690
  */
2994
3691
  loginflowUpdate(loginflow_id: string, data: OpBody<"loginflow/update">): Promise<{
2995
3692
  id: string;
@@ -3063,6 +3760,15 @@ export declare abstract class GeneratedFaableAuthApi extends FaableApi {
3063
3760
  * `POST /loginflow/{loginflow_id}/validate` — operationId: `loginflow/validate`
3064
3761
  *
3065
3762
  * Check a draft against the rules a publish enforces
3763
+ *
3764
+ * @throws {FaableApiError} `validation_error` (400) — The body, query or path failed schema validation. `details.issues` lists each failing field.
3765
+ * @throws {FaableApiError} `unauthorized` (401) — The request carries no valid credentials.
3766
+ * @throws {FaableApiError} `forbidden` (403) — The credentials are valid but do not allow this operation.
3767
+ * @throws {FaableApiError} `insufficient_scope` (403) — The token lacks a scope this operation requires. `message` names it.
3768
+ * @throws {FaableApiError} `user_suspended` (403) — The user is suspended and cannot sign in or be modified.
3769
+ * @throws {FaableApiError} `account_not_found` (404) — No Auth Account matches the request (domain, header or token).
3770
+ * @throws {FaableApiError} `too_many_requests` (429) — Rate limit exceeded. Honour the `Retry-After` header.
3771
+ * @throws {FaableApiError} `internal_error` (500) — Unexpected server error. Retry later; the request id is logged.
3066
3772
  */
3067
3773
  loginflowValidate(loginflow_id: string, data: OpBody<"loginflow/validate">): Promise<{
3068
3774
  ok: boolean;
@@ -3077,6 +3783,16 @@ export declare abstract class GeneratedFaableAuthApi extends FaableApi {
3077
3783
  * `POST /notificationsubscription` — operationId: `notificationsubscription/create`
3078
3784
  *
3079
3785
  * Create Notificationsubscription
3786
+ *
3787
+ * @throws {FaableApiError} `already_exists` (400) — A resource with the same unique field already exists (for a user, usually `email`). `details.fields` names the field.
3788
+ * @throws {FaableApiError} `validation_error` (400) — The body, query or path failed schema validation. `details.issues` lists each failing field.
3789
+ * @throws {FaableApiError} `unauthorized` (401) — The request carries no valid credentials.
3790
+ * @throws {FaableApiError} `forbidden` (403) — The credentials are valid but do not allow this operation.
3791
+ * @throws {FaableApiError} `insufficient_scope` (403) — The token lacks a scope this operation requires. `message` names it.
3792
+ * @throws {FaableApiError} `user_suspended` (403) — The user is suspended and cannot sign in or be modified.
3793
+ * @throws {FaableApiError} `account_not_found` (404) — No Auth Account matches the request (domain, header or token).
3794
+ * @throws {FaableApiError} `too_many_requests` (429) — Rate limit exceeded. Honour the `Retry-After` header.
3795
+ * @throws {FaableApiError} `internal_error` (500) — Unexpected server error. Retry later; the request id is logged.
3080
3796
  */
3081
3797
  notificationsubscriptionCreate(data: OpBody<"notificationsubscription/create">): Promise<{
3082
3798
  id: string;
@@ -3112,6 +3828,17 @@ export declare abstract class GeneratedFaableAuthApi extends FaableApi {
3112
3828
  * `DELETE /notificationsubscription/{notificationsubscription_id}` — operationId: `notificationsubscription/delete`
3113
3829
  *
3114
3830
  * Delete Notificationsubscription
3831
+ *
3832
+ * @throws {FaableApiError} `invalid_id` (400) — The id in the path is not a valid id for this resource.
3833
+ * @throws {FaableApiError} `validation_error` (400) — The body, query or path failed schema validation. `details.issues` lists each failing field.
3834
+ * @throws {FaableApiError} `unauthorized` (401) — The request carries no valid credentials.
3835
+ * @throws {FaableApiError} `forbidden` (403) — The credentials are valid but do not allow this operation.
3836
+ * @throws {FaableApiError} `insufficient_scope` (403) — The token lacks a scope this operation requires. `message` names it.
3837
+ * @throws {FaableApiError} `user_suspended` (403) — The user is suspended and cannot sign in or be modified.
3838
+ * @throws {FaableApiError} `not_found` (404) — The resource does not exist in this account.
3839
+ * @throws {FaableApiError} `account_not_found` (404) — No Auth Account matches the request (domain, header or token).
3840
+ * @throws {FaableApiError} `too_many_requests` (429) — Rate limit exceeded. Honour the `Retry-After` header.
3841
+ * @throws {FaableApiError} `internal_error` (500) — Unexpected server error. Retry later; the request id is logged.
3115
3842
  */
3116
3843
  notificationsubscriptionDelete(notificationsubscription_id: string): Promise<{
3117
3844
  id: string;
@@ -3147,6 +3874,18 @@ export declare abstract class GeneratedFaableAuthApi extends FaableApi {
3147
3874
  * `GET /notificationsubscription/{notificationsubscription_id}` — operationId: `notificationsubscription/get`
3148
3875
  *
3149
3876
  * Get Notificationsubscription
3877
+ *
3878
+ * @throws {FaableApiError} `invalid_id` (400) — The id in the path is not a valid id for this resource.
3879
+ * @throws {FaableApiError} `invalid_expand` (400) — An `?expand=` path is not allowed on this resource.
3880
+ * @throws {FaableApiError} `validation_error` (400) — The body, query or path failed schema validation. `details.issues` lists each failing field.
3881
+ * @throws {FaableApiError} `unauthorized` (401) — The request carries no valid credentials.
3882
+ * @throws {FaableApiError} `forbidden` (403) — The credentials are valid but do not allow this operation.
3883
+ * @throws {FaableApiError} `insufficient_scope` (403) — The token lacks a scope this operation requires. `message` names it.
3884
+ * @throws {FaableApiError} `user_suspended` (403) — The user is suspended and cannot sign in or be modified.
3885
+ * @throws {FaableApiError} `not_found` (404) — The resource does not exist in this account.
3886
+ * @throws {FaableApiError} `account_not_found` (404) — No Auth Account matches the request (domain, header or token).
3887
+ * @throws {FaableApiError} `too_many_requests` (429) — Rate limit exceeded. Honour the `Retry-After` header.
3888
+ * @throws {FaableApiError} `internal_error` (500) — Unexpected server error. Retry later; the request id is logged.
3150
3889
  */
3151
3890
  notificationsubscriptionGet(notificationsubscription_id: string): Promise<{
3152
3891
  id: string;
@@ -3182,6 +3921,18 @@ export declare abstract class GeneratedFaableAuthApi extends FaableApi {
3182
3921
  * `GET /notificationsubscription` — operationId: `notificationsubscription/list`
3183
3922
  *
3184
3923
  * List Notificationsubscriptions
3924
+ *
3925
+ * @throws {FaableApiError} `invalid_query` (400) — The `?query=` FaableQL expression could not be parsed.
3926
+ * @throws {FaableApiError} `invalid_expand` (400) — An `?expand=` path is not allowed on this resource.
3927
+ * @throws {FaableApiError} `search_not_supported` (400) — This resource does not support `?search=`.
3928
+ * @throws {FaableApiError} `validation_error` (400) — The body, query or path failed schema validation. `details.issues` lists each failing field.
3929
+ * @throws {FaableApiError} `unauthorized` (401) — The request carries no valid credentials.
3930
+ * @throws {FaableApiError} `forbidden` (403) — The credentials are valid but do not allow this operation.
3931
+ * @throws {FaableApiError} `insufficient_scope` (403) — The token lacks a scope this operation requires. `message` names it.
3932
+ * @throws {FaableApiError} `user_suspended` (403) — The user is suspended and cannot sign in or be modified.
3933
+ * @throws {FaableApiError} `account_not_found` (404) — No Auth Account matches the request (domain, header or token).
3934
+ * @throws {FaableApiError} `too_many_requests` (429) — Rate limit exceeded. Honour the `Retry-After` header.
3935
+ * @throws {FaableApiError} `internal_error` (500) — Unexpected server error. Retry later; the request id is logged.
3185
3936
  */
3186
3937
  notificationsubscriptionList(params?: Omit<OpQuery<"notificationsubscription/list">, "cursor" | "next">): {
3187
3938
  all: () => Promise<({
@@ -3282,6 +4033,18 @@ export declare abstract class GeneratedFaableAuthApi extends FaableApi {
3282
4033
  * `POST /notificationsubscription/{notificationsubscription_id}` — operationId: `notificationsubscription/update`
3283
4034
  *
3284
4035
  * Update Notificationsubscription
4036
+ *
4037
+ * @throws {FaableApiError} `invalid_id` (400) — The id in the path is not a valid id for this resource.
4038
+ * @throws {FaableApiError} `already_exists` (400) — A resource with the same unique field already exists (for a user, usually `email`). `details.fields` names the field.
4039
+ * @throws {FaableApiError} `validation_error` (400) — The body, query or path failed schema validation. `details.issues` lists each failing field.
4040
+ * @throws {FaableApiError} `unauthorized` (401) — The request carries no valid credentials.
4041
+ * @throws {FaableApiError} `forbidden` (403) — The credentials are valid but do not allow this operation.
4042
+ * @throws {FaableApiError} `insufficient_scope` (403) — The token lacks a scope this operation requires. `message` names it.
4043
+ * @throws {FaableApiError} `user_suspended` (403) — The user is suspended and cannot sign in or be modified.
4044
+ * @throws {FaableApiError} `not_found` (404) — The resource does not exist in this account.
4045
+ * @throws {FaableApiError} `account_not_found` (404) — No Auth Account matches the request (domain, header or token).
4046
+ * @throws {FaableApiError} `too_many_requests` (429) — Rate limit exceeded. Honour the `Retry-After` header.
4047
+ * @throws {FaableApiError} `internal_error` (500) — Unexpected server error. Retry later; the request id is logged.
3285
4048
  */
3286
4049
  notificationsubscriptionUpdate(notificationsubscription_id: string, data: OpBody<"notificationsubscription/update">): Promise<{
3287
4050
  id: string;
@@ -3317,12 +4080,33 @@ export declare abstract class GeneratedFaableAuthApi extends FaableApi {
3317
4080
  * `POST /role/{role_id}/users` — operationId: `role/assign_users`
3318
4081
  *
3319
4082
  * Assign Users to Role
4083
+ *
4084
+ * @throws {FaableApiError} `invalid_role` (400) — The role belongs to another account.
4085
+ * @throws {FaableApiError} `validation_error` (400) — The body, query or path failed schema validation. `details.issues` lists each failing field.
4086
+ * @throws {FaableApiError} `unauthorized` (401) — The request carries no valid credentials.
4087
+ * @throws {FaableApiError} `forbidden` (403) — The credentials are valid but do not allow this operation.
4088
+ * @throws {FaableApiError} `insufficient_scope` (403) — The token lacks a scope this operation requires. `message` names it.
4089
+ * @throws {FaableApiError} `user_suspended` (403) — The user is suspended and cannot sign in or be modified.
4090
+ * @throws {FaableApiError} `role_not_found` (404) — No role with that id in this account.
4091
+ * @throws {FaableApiError} `account_not_found` (404) — No Auth Account matches the request (domain, header or token).
4092
+ * @throws {FaableApiError} `too_many_requests` (429) — Rate limit exceeded. Honour the `Retry-After` header.
4093
+ * @throws {FaableApiError} `internal_error` (500) — Unexpected server error. Retry later; the request id is logged.
3320
4094
  */
3321
4095
  roleAssignUsers(role_id: string, data: OpBody<"role/assign_users">): Promise<void>;
3322
4096
  /**
3323
4097
  * `POST /role` — operationId: `role/create`
3324
4098
  *
3325
4099
  * Create Role
4100
+ *
4101
+ * @throws {FaableApiError} `already_exists` (400) — A resource with the same unique field already exists (for a user, usually `email`). `details.fields` names the field.
4102
+ * @throws {FaableApiError} `validation_error` (400) — The body, query or path failed schema validation. `details.issues` lists each failing field.
4103
+ * @throws {FaableApiError} `unauthorized` (401) — The request carries no valid credentials.
4104
+ * @throws {FaableApiError} `forbidden` (403) — The credentials are valid but do not allow this operation.
4105
+ * @throws {FaableApiError} `insufficient_scope` (403) — The token lacks a scope this operation requires. `message` names it.
4106
+ * @throws {FaableApiError} `user_suspended` (403) — The user is suspended and cannot sign in or be modified.
4107
+ * @throws {FaableApiError} `account_not_found` (404) — No Auth Account matches the request (domain, header or token).
4108
+ * @throws {FaableApiError} `too_many_requests` (429) — Rate limit exceeded. Honour the `Retry-After` header.
4109
+ * @throws {FaableApiError} `internal_error` (500) — Unexpected server error. Retry later; the request id is logged.
3326
4110
  */
3327
4111
  roleCreate(data: OpBody<"role/create">): Promise<{
3328
4112
  id: string;
@@ -3339,6 +4123,17 @@ export declare abstract class GeneratedFaableAuthApi extends FaableApi {
3339
4123
  * `DELETE /role/{role_id}` — operationId: `role/delete`
3340
4124
  *
3341
4125
  * Delete Role
4126
+ *
4127
+ * @throws {FaableApiError} `invalid_id` (400) — The id in the path is not a valid id for this resource.
4128
+ * @throws {FaableApiError} `validation_error` (400) — The body, query or path failed schema validation. `details.issues` lists each failing field.
4129
+ * @throws {FaableApiError} `unauthorized` (401) — The request carries no valid credentials.
4130
+ * @throws {FaableApiError} `forbidden` (403) — The credentials are valid but do not allow this operation.
4131
+ * @throws {FaableApiError} `insufficient_scope` (403) — The token lacks a scope this operation requires. `message` names it.
4132
+ * @throws {FaableApiError} `user_suspended` (403) — The user is suspended and cannot sign in or be modified.
4133
+ * @throws {FaableApiError} `not_found` (404) — The resource does not exist in this account.
4134
+ * @throws {FaableApiError} `account_not_found` (404) — No Auth Account matches the request (domain, header or token).
4135
+ * @throws {FaableApiError} `too_many_requests` (429) — Rate limit exceeded. Honour the `Retry-After` header.
4136
+ * @throws {FaableApiError} `internal_error` (500) — Unexpected server error. Retry later; the request id is logged.
3342
4137
  */
3343
4138
  roleDelete(role_id: string): Promise<{
3344
4139
  id: string;
@@ -3355,6 +4150,18 @@ export declare abstract class GeneratedFaableAuthApi extends FaableApi {
3355
4150
  * `GET /role/{role_id}` — operationId: `role/get`
3356
4151
  *
3357
4152
  * Get Role
4153
+ *
4154
+ * @throws {FaableApiError} `invalid_id` (400) — The id in the path is not a valid id for this resource.
4155
+ * @throws {FaableApiError} `invalid_expand` (400) — An `?expand=` path is not allowed on this resource.
4156
+ * @throws {FaableApiError} `validation_error` (400) — The body, query or path failed schema validation. `details.issues` lists each failing field.
4157
+ * @throws {FaableApiError} `unauthorized` (401) — The request carries no valid credentials.
4158
+ * @throws {FaableApiError} `forbidden` (403) — The credentials are valid but do not allow this operation.
4159
+ * @throws {FaableApiError} `insufficient_scope` (403) — The token lacks a scope this operation requires. `message` names it.
4160
+ * @throws {FaableApiError} `user_suspended` (403) — The user is suspended and cannot sign in or be modified.
4161
+ * @throws {FaableApiError} `not_found` (404) — The resource does not exist in this account.
4162
+ * @throws {FaableApiError} `account_not_found` (404) — No Auth Account matches the request (domain, header or token).
4163
+ * @throws {FaableApiError} `too_many_requests` (429) — Rate limit exceeded. Honour the `Retry-After` header.
4164
+ * @throws {FaableApiError} `internal_error` (500) — Unexpected server error. Retry later; the request id is logged.
3358
4165
  */
3359
4166
  roleGet(role_id: string): Promise<{
3360
4167
  id: string;
@@ -3371,6 +4178,18 @@ export declare abstract class GeneratedFaableAuthApi extends FaableApi {
3371
4178
  * `GET /role` — operationId: `role/list`
3372
4179
  *
3373
4180
  * List Roles
4181
+ *
4182
+ * @throws {FaableApiError} `invalid_query` (400) — The `?query=` FaableQL expression could not be parsed.
4183
+ * @throws {FaableApiError} `invalid_expand` (400) — An `?expand=` path is not allowed on this resource.
4184
+ * @throws {FaableApiError} `search_not_supported` (400) — This resource does not support `?search=`.
4185
+ * @throws {FaableApiError} `validation_error` (400) — The body, query or path failed schema validation. `details.issues` lists each failing field.
4186
+ * @throws {FaableApiError} `unauthorized` (401) — The request carries no valid credentials.
4187
+ * @throws {FaableApiError} `forbidden` (403) — The credentials are valid but do not allow this operation.
4188
+ * @throws {FaableApiError} `insufficient_scope` (403) — The token lacks a scope this operation requires. `message` names it.
4189
+ * @throws {FaableApiError} `user_suspended` (403) — The user is suspended and cannot sign in or be modified.
4190
+ * @throws {FaableApiError} `account_not_found` (404) — No Auth Account matches the request (domain, header or token).
4191
+ * @throws {FaableApiError} `too_many_requests` (429) — Rate limit exceeded. Honour the `Retry-After` header.
4192
+ * @throws {FaableApiError} `internal_error` (500) — Unexpected server error. Retry later; the request id is logged.
3374
4193
  */
3375
4194
  roleList(params?: Omit<OpQuery<"role/list">, "cursor" | "next">): {
3376
4195
  all: () => Promise<{
@@ -3414,6 +4233,18 @@ export declare abstract class GeneratedFaableAuthApi extends FaableApi {
3414
4233
  * `POST /role/{role_id}` — operationId: `role/update`
3415
4234
  *
3416
4235
  * Update Role
4236
+ *
4237
+ * @throws {FaableApiError} `invalid_id` (400) — The id in the path is not a valid id for this resource.
4238
+ * @throws {FaableApiError} `already_exists` (400) — A resource with the same unique field already exists (for a user, usually `email`). `details.fields` names the field.
4239
+ * @throws {FaableApiError} `validation_error` (400) — The body, query or path failed schema validation. `details.issues` lists each failing field.
4240
+ * @throws {FaableApiError} `unauthorized` (401) — The request carries no valid credentials.
4241
+ * @throws {FaableApiError} `forbidden` (403) — The credentials are valid but do not allow this operation.
4242
+ * @throws {FaableApiError} `insufficient_scope` (403) — The token lacks a scope this operation requires. `message` names it.
4243
+ * @throws {FaableApiError} `user_suspended` (403) — The user is suspended and cannot sign in or be modified.
4244
+ * @throws {FaableApiError} `not_found` (404) — The resource does not exist in this account.
4245
+ * @throws {FaableApiError} `account_not_found` (404) — No Auth Account matches the request (domain, header or token).
4246
+ * @throws {FaableApiError} `too_many_requests` (429) — Rate limit exceeded. Honour the `Retry-After` header.
4247
+ * @throws {FaableApiError} `internal_error` (500) — Unexpected server error. Retry later; the request id is logged.
3417
4248
  */
3418
4249
  roleUpdate(role_id: string, data: OpBody<"role/update">): Promise<{
3419
4250
  id: string;
@@ -3430,6 +4261,16 @@ export declare abstract class GeneratedFaableAuthApi extends FaableApi {
3430
4261
  * `GET /role/{role_id}/users` — operationId: `role/users`
3431
4262
  *
3432
4263
  * List Users with Role
4264
+ *
4265
+ * @throws {FaableApiError} `validation_error` (400) — The body, query or path failed schema validation. `details.issues` lists each failing field.
4266
+ * @throws {FaableApiError} `unauthorized` (401) — The request carries no valid credentials.
4267
+ * @throws {FaableApiError} `forbidden` (403) — The credentials are valid but do not allow this operation.
4268
+ * @throws {FaableApiError} `insufficient_scope` (403) — The token lacks a scope this operation requires. `message` names it.
4269
+ * @throws {FaableApiError} `user_suspended` (403) — The user is suspended and cannot sign in or be modified.
4270
+ * @throws {FaableApiError} `role_not_found` (404) — No role with that id in this account.
4271
+ * @throws {FaableApiError} `account_not_found` (404) — No Auth Account matches the request (domain, header or token).
4272
+ * @throws {FaableApiError} `too_many_requests` (429) — Rate limit exceeded. Honour the `Retry-After` header.
4273
+ * @throws {FaableApiError} `internal_error` (500) — Unexpected server error. Retry later; the request id is logged.
3433
4274
  */
3434
4275
  roleUsers(role_id: string, params?: Omit<OpQuery<"role/users">, "cursor" | "next">): {
3435
4276
  all: () => Promise<{
@@ -3473,6 +4314,16 @@ export declare abstract class GeneratedFaableAuthApi extends FaableApi {
3473
4314
  * `POST /rolemember` — operationId: `rolemember/create`
3474
4315
  *
3475
4316
  * Create Rolemember
4317
+ *
4318
+ * @throws {FaableApiError} `already_exists` (400) — A resource with the same unique field already exists (for a user, usually `email`). `details.fields` names the field.
4319
+ * @throws {FaableApiError} `validation_error` (400) — The body, query or path failed schema validation. `details.issues` lists each failing field.
4320
+ * @throws {FaableApiError} `unauthorized` (401) — The request carries no valid credentials.
4321
+ * @throws {FaableApiError} `forbidden` (403) — The credentials are valid but do not allow this operation.
4322
+ * @throws {FaableApiError} `insufficient_scope` (403) — The token lacks a scope this operation requires. `message` names it.
4323
+ * @throws {FaableApiError} `user_suspended` (403) — The user is suspended and cannot sign in or be modified.
4324
+ * @throws {FaableApiError} `account_not_found` (404) — No Auth Account matches the request (domain, header or token).
4325
+ * @throws {FaableApiError} `too_many_requests` (429) — Rate limit exceeded. Honour the `Retry-After` header.
4326
+ * @throws {FaableApiError} `internal_error` (500) — Unexpected server error. Retry later; the request id is logged.
3476
4327
  */
3477
4328
  rolememberCreate(data: OpBody<"rolemember/create">): Promise<{
3478
4329
  id: string;
@@ -3489,6 +4340,17 @@ export declare abstract class GeneratedFaableAuthApi extends FaableApi {
3489
4340
  * `DELETE /rolemember/{rolemember_id}` — operationId: `rolemember/delete`
3490
4341
  *
3491
4342
  * Delete Rolemember
4343
+ *
4344
+ * @throws {FaableApiError} `invalid_id` (400) — The id in the path is not a valid id for this resource.
4345
+ * @throws {FaableApiError} `validation_error` (400) — The body, query or path failed schema validation. `details.issues` lists each failing field.
4346
+ * @throws {FaableApiError} `unauthorized` (401) — The request carries no valid credentials.
4347
+ * @throws {FaableApiError} `forbidden` (403) — The credentials are valid but do not allow this operation.
4348
+ * @throws {FaableApiError} `insufficient_scope` (403) — The token lacks a scope this operation requires. `message` names it.
4349
+ * @throws {FaableApiError} `user_suspended` (403) — The user is suspended and cannot sign in or be modified.
4350
+ * @throws {FaableApiError} `not_found` (404) — The resource does not exist in this account.
4351
+ * @throws {FaableApiError} `account_not_found` (404) — No Auth Account matches the request (domain, header or token).
4352
+ * @throws {FaableApiError} `too_many_requests` (429) — Rate limit exceeded. Honour the `Retry-After` header.
4353
+ * @throws {FaableApiError} `internal_error` (500) — Unexpected server error. Retry later; the request id is logged.
3492
4354
  */
3493
4355
  rolememberDelete(rolemember_id: string): Promise<{
3494
4356
  id: string;
@@ -3505,6 +4367,18 @@ export declare abstract class GeneratedFaableAuthApi extends FaableApi {
3505
4367
  * `GET /rolemember/{rolemember_id}` — operationId: `rolemember/get`
3506
4368
  *
3507
4369
  * Get Rolemember
4370
+ *
4371
+ * @throws {FaableApiError} `invalid_id` (400) — The id in the path is not a valid id for this resource.
4372
+ * @throws {FaableApiError} `invalid_expand` (400) — An `?expand=` path is not allowed on this resource.
4373
+ * @throws {FaableApiError} `validation_error` (400) — The body, query or path failed schema validation. `details.issues` lists each failing field.
4374
+ * @throws {FaableApiError} `unauthorized` (401) — The request carries no valid credentials.
4375
+ * @throws {FaableApiError} `forbidden` (403) — The credentials are valid but do not allow this operation.
4376
+ * @throws {FaableApiError} `insufficient_scope` (403) — The token lacks a scope this operation requires. `message` names it.
4377
+ * @throws {FaableApiError} `user_suspended` (403) — The user is suspended and cannot sign in or be modified.
4378
+ * @throws {FaableApiError} `not_found` (404) — The resource does not exist in this account.
4379
+ * @throws {FaableApiError} `account_not_found` (404) — No Auth Account matches the request (domain, header or token).
4380
+ * @throws {FaableApiError} `too_many_requests` (429) — Rate limit exceeded. Honour the `Retry-After` header.
4381
+ * @throws {FaableApiError} `internal_error` (500) — Unexpected server error. Retry later; the request id is logged.
3508
4382
  */
3509
4383
  rolememberGet(rolemember_id: string, params?: OpQuery<"rolemember/get">): Promise<{
3510
4384
  id: string;
@@ -3521,6 +4395,18 @@ export declare abstract class GeneratedFaableAuthApi extends FaableApi {
3521
4395
  * `GET /rolemember` — operationId: `rolemember/list`
3522
4396
  *
3523
4397
  * List Rolemembers
4398
+ *
4399
+ * @throws {FaableApiError} `invalid_query` (400) — The `?query=` FaableQL expression could not be parsed.
4400
+ * @throws {FaableApiError} `invalid_expand` (400) — An `?expand=` path is not allowed on this resource.
4401
+ * @throws {FaableApiError} `search_not_supported` (400) — This resource does not support `?search=`.
4402
+ * @throws {FaableApiError} `validation_error` (400) — The body, query or path failed schema validation. `details.issues` lists each failing field.
4403
+ * @throws {FaableApiError} `unauthorized` (401) — The request carries no valid credentials.
4404
+ * @throws {FaableApiError} `forbidden` (403) — The credentials are valid but do not allow this operation.
4405
+ * @throws {FaableApiError} `insufficient_scope` (403) — The token lacks a scope this operation requires. `message` names it.
4406
+ * @throws {FaableApiError} `user_suspended` (403) — The user is suspended and cannot sign in or be modified.
4407
+ * @throws {FaableApiError} `account_not_found` (404) — No Auth Account matches the request (domain, header or token).
4408
+ * @throws {FaableApiError} `too_many_requests` (429) — Rate limit exceeded. Honour the `Retry-After` header.
4409
+ * @throws {FaableApiError} `internal_error` (500) — Unexpected server error. Retry later; the request id is logged.
3524
4410
  */
3525
4411
  rolememberList(params?: Omit<OpQuery<"rolemember/list">, "cursor" | "next">): {
3526
4412
  all: () => Promise<{
@@ -3564,6 +4450,18 @@ export declare abstract class GeneratedFaableAuthApi extends FaableApi {
3564
4450
  * `POST /team/{team_id}/member` — operationId: `team/addMembers`
3565
4451
  *
3566
4452
  * Add Users to a Team
4453
+ *
4454
+ * Adds one or more Users as members of the given Team. Returns the resulting TeamMember record.
4455
+ *
4456
+ * @throws {FaableApiError} `already_member` (400) — The user is already a member of the team.
4457
+ * @throws {FaableApiError} `validation_error` (400) — The body, query or path failed schema validation. `details.issues` lists each failing field.
4458
+ * @throws {FaableApiError} `unauthorized` (401) — The request carries no valid credentials.
4459
+ * @throws {FaableApiError} `forbidden` (403) — The credentials are valid but do not allow this operation.
4460
+ * @throws {FaableApiError} `insufficient_scope` (403) — The token lacks a scope this operation requires. `message` names it.
4461
+ * @throws {FaableApiError} `user_suspended` (403) — The user is suspended and cannot sign in or be modified.
4462
+ * @throws {FaableApiError} `account_not_found` (404) — No Auth Account matches the request (domain, header or token).
4463
+ * @throws {FaableApiError} `too_many_requests` (429) — Rate limit exceeded. Honour the `Retry-After` header.
4464
+ * @throws {FaableApiError} `internal_error` (500) — Unexpected server error. Retry later; the request id is logged.
3567
4465
  */
3568
4466
  teamAddMembers(team_id: string, data: OpBody<"team/addMembers">): Promise<{
3569
4467
  id: string;
@@ -3581,6 +4479,18 @@ export declare abstract class GeneratedFaableAuthApi extends FaableApi {
3581
4479
  * `GET /team/{team_id}/member/check/{user_id}` — operationId: `team/checkMember`
3582
4480
  *
3583
4481
  * Check User is member of a Team
4482
+ *
4483
+ * Returns the TeamMember record if the User belongs to the given Team, or 404 otherwise.
4484
+ *
4485
+ * @throws {FaableApiError} `validation_error` (400) — The body, query or path failed schema validation. `details.issues` lists each failing field.
4486
+ * @throws {FaableApiError} `unauthorized` (401) — The request carries no valid credentials.
4487
+ * @throws {FaableApiError} `forbidden` (403) — The credentials are valid but do not allow this operation.
4488
+ * @throws {FaableApiError} `insufficient_scope` (403) — The token lacks a scope this operation requires. `message` names it.
4489
+ * @throws {FaableApiError} `user_suspended` (403) — The user is suspended and cannot sign in or be modified.
4490
+ * @throws {FaableApiError} `not_a_member` (404) — The user is not a member of the team.
4491
+ * @throws {FaableApiError} `account_not_found` (404) — No Auth Account matches the request (domain, header or token).
4492
+ * @throws {FaableApiError} `too_many_requests` (429) — Rate limit exceeded. Honour the `Retry-After` header.
4493
+ * @throws {FaableApiError} `internal_error` (500) — Unexpected server error. Retry later; the request id is logged.
3584
4494
  */
3585
4495
  teamCheckMember(team_id: string, user_id: string, params?: OpQuery<"team/checkMember">): Promise<{
3586
4496
  id: string;
@@ -3598,6 +4508,16 @@ export declare abstract class GeneratedFaableAuthApi extends FaableApi {
3598
4508
  * `POST /team` — operationId: `team/create`
3599
4509
  *
3600
4510
  * Create Team
4511
+ *
4512
+ * @throws {FaableApiError} `already_exists` (400) — A resource with the same unique field already exists (for a user, usually `email`). `details.fields` names the field.
4513
+ * @throws {FaableApiError} `validation_error` (400) — The body, query or path failed schema validation. `details.issues` lists each failing field.
4514
+ * @throws {FaableApiError} `unauthorized` (401) — The request carries no valid credentials.
4515
+ * @throws {FaableApiError} `forbidden` (403) — The credentials are valid but do not allow this operation.
4516
+ * @throws {FaableApiError} `insufficient_scope` (403) — The token lacks a scope this operation requires. `message` names it.
4517
+ * @throws {FaableApiError} `user_suspended` (403) — The user is suspended and cannot sign in or be modified.
4518
+ * @throws {FaableApiError} `account_not_found` (404) — No Auth Account matches the request (domain, header or token).
4519
+ * @throws {FaableApiError} `too_many_requests` (429) — Rate limit exceeded. Honour the `Retry-After` header.
4520
+ * @throws {FaableApiError} `internal_error` (500) — Unexpected server error. Retry later; the request id is logged.
3601
4521
  */
3602
4522
  teamCreate(data: OpBody<"team/create">): Promise<{
3603
4523
  id: string;
@@ -3616,6 +4536,17 @@ export declare abstract class GeneratedFaableAuthApi extends FaableApi {
3616
4536
  * `DELETE /team/{team_id}` — operationId: `team/delete`
3617
4537
  *
3618
4538
  * Delete Team
4539
+ *
4540
+ * @throws {FaableApiError} `invalid_id` (400) — The id in the path is not a valid id for this resource.
4541
+ * @throws {FaableApiError} `validation_error` (400) — The body, query or path failed schema validation. `details.issues` lists each failing field.
4542
+ * @throws {FaableApiError} `unauthorized` (401) — The request carries no valid credentials.
4543
+ * @throws {FaableApiError} `forbidden` (403) — The credentials are valid but do not allow this operation.
4544
+ * @throws {FaableApiError} `insufficient_scope` (403) — The token lacks a scope this operation requires. `message` names it.
4545
+ * @throws {FaableApiError} `user_suspended` (403) — The user is suspended and cannot sign in or be modified.
4546
+ * @throws {FaableApiError} `not_found` (404) — The resource does not exist in this account.
4547
+ * @throws {FaableApiError} `account_not_found` (404) — No Auth Account matches the request (domain, header or token).
4548
+ * @throws {FaableApiError} `too_many_requests` (429) — Rate limit exceeded. Honour the `Retry-After` header.
4549
+ * @throws {FaableApiError} `internal_error` (500) — Unexpected server error. Retry later; the request id is logged.
3619
4550
  */
3620
4551
  teamDelete(team_id: string): Promise<{
3621
4552
  id: string;
@@ -3634,6 +4565,18 @@ export declare abstract class GeneratedFaableAuthApi extends FaableApi {
3634
4565
  * `GET /team/{team_id}` — operationId: `team/get`
3635
4566
  *
3636
4567
  * Get Team
4568
+ *
4569
+ * @throws {FaableApiError} `invalid_id` (400) — The id in the path is not a valid id for this resource.
4570
+ * @throws {FaableApiError} `invalid_expand` (400) — An `?expand=` path is not allowed on this resource.
4571
+ * @throws {FaableApiError} `validation_error` (400) — The body, query or path failed schema validation. `details.issues` lists each failing field.
4572
+ * @throws {FaableApiError} `unauthorized` (401) — The request carries no valid credentials.
4573
+ * @throws {FaableApiError} `forbidden` (403) — The credentials are valid but do not allow this operation.
4574
+ * @throws {FaableApiError} `insufficient_scope` (403) — The token lacks a scope this operation requires. `message` names it.
4575
+ * @throws {FaableApiError} `user_suspended` (403) — The user is suspended and cannot sign in or be modified.
4576
+ * @throws {FaableApiError} `not_found` (404) — The resource does not exist in this account.
4577
+ * @throws {FaableApiError} `account_not_found` (404) — No Auth Account matches the request (domain, header or token).
4578
+ * @throws {FaableApiError} `too_many_requests` (429) — Rate limit exceeded. Honour the `Retry-After` header.
4579
+ * @throws {FaableApiError} `internal_error` (500) — Unexpected server error. Retry later; the request id is logged.
3637
4580
  */
3638
4581
  teamGet(team_id: string): Promise<{
3639
4582
  id: string;
@@ -3652,6 +4595,18 @@ export declare abstract class GeneratedFaableAuthApi extends FaableApi {
3652
4595
  * `POST /team/{team_id}/invite` — operationId: `team/invite`
3653
4596
  *
3654
4597
  * Invite a user to a Team by email
4598
+ *
4599
+ * Invites a user by email. `mode='auto'` (default) adds the user directly when the email already corresponds to a user in this tenant and falls back to a ticketed invite + email otherwise. `mode='invite'` always issues a ticket + email even when the user exists. Re-inviting the same email to the same team invalidates the previous pending invite.
4600
+ *
4601
+ * @throws {FaableApiError} `invite_used` (400) — The invite was already accepted.
4602
+ * @throws {FaableApiError} `validation_error` (400) — The body, query or path failed schema validation. `details.issues` lists each failing field.
4603
+ * @throws {FaableApiError} `unauthorized` (401) — The request carries no valid credentials.
4604
+ * @throws {FaableApiError} `forbidden` (403) — The credentials are valid but do not allow this operation.
4605
+ * @throws {FaableApiError} `insufficient_scope` (403) — The token lacks a scope this operation requires. `message` names it.
4606
+ * @throws {FaableApiError} `user_suspended` (403) — The user is suspended and cannot sign in or be modified.
4607
+ * @throws {FaableApiError} `account_not_found` (404) — No Auth Account matches the request (domain, header or token).
4608
+ * @throws {FaableApiError} `too_many_requests` (429) — Rate limit exceeded. Honour the `Retry-After` header.
4609
+ * @throws {FaableApiError} `internal_error` (500) — Unexpected server error. Retry later; the request id is logged.
3655
4610
  */
3656
4611
  teamInvite(team_id: string, data: OpBody<"team/invite">): Promise<{
3657
4612
  status: "invited" | "added";
@@ -3673,6 +4628,18 @@ export declare abstract class GeneratedFaableAuthApi extends FaableApi {
3673
4628
  * `GET /team` — operationId: `team/list`
3674
4629
  *
3675
4630
  * List Teams
4631
+ *
4632
+ * @throws {FaableApiError} `invalid_query` (400) — The `?query=` FaableQL expression could not be parsed.
4633
+ * @throws {FaableApiError} `invalid_expand` (400) — An `?expand=` path is not allowed on this resource.
4634
+ * @throws {FaableApiError} `search_not_supported` (400) — This resource does not support `?search=`.
4635
+ * @throws {FaableApiError} `validation_error` (400) — The body, query or path failed schema validation. `details.issues` lists each failing field.
4636
+ * @throws {FaableApiError} `unauthorized` (401) — The request carries no valid credentials.
4637
+ * @throws {FaableApiError} `forbidden` (403) — The credentials are valid but do not allow this operation.
4638
+ * @throws {FaableApiError} `insufficient_scope` (403) — The token lacks a scope this operation requires. `message` names it.
4639
+ * @throws {FaableApiError} `user_suspended` (403) — The user is suspended and cannot sign in or be modified.
4640
+ * @throws {FaableApiError} `account_not_found` (404) — No Auth Account matches the request (domain, header or token).
4641
+ * @throws {FaableApiError} `too_many_requests` (429) — Rate limit exceeded. Honour the `Retry-After` header.
4642
+ * @throws {FaableApiError} `internal_error` (500) — Unexpected server error. Retry later; the request id is logged.
3676
4643
  */
3677
4644
  teamList(params?: Omit<OpQuery<"team/list">, "cursor" | "next">): {
3678
4645
  all: () => Promise<{
@@ -3722,6 +4689,17 @@ export declare abstract class GeneratedFaableAuthApi extends FaableApi {
3722
4689
  * `GET /team/{team_id}/invite` — operationId: `team/listInvites`
3723
4690
  *
3724
4691
  * List pending invites for a Team
4692
+ *
4693
+ * Returns all pending (not consumed, not expired) team invites for the given team. Accepts a FaableQL `query` parameter on the `email` field.
4694
+ *
4695
+ * @throws {FaableApiError} `validation_error` (400) — The body, query or path failed schema validation. `details.issues` lists each failing field.
4696
+ * @throws {FaableApiError} `unauthorized` (401) — The request carries no valid credentials.
4697
+ * @throws {FaableApiError} `forbidden` (403) — The credentials are valid but do not allow this operation.
4698
+ * @throws {FaableApiError} `insufficient_scope` (403) — The token lacks a scope this operation requires. `message` names it.
4699
+ * @throws {FaableApiError} `user_suspended` (403) — The user is suspended and cannot sign in or be modified.
4700
+ * @throws {FaableApiError} `account_not_found` (404) — No Auth Account matches the request (domain, header or token).
4701
+ * @throws {FaableApiError} `too_many_requests` (429) — Rate limit exceeded. Honour the `Retry-After` header.
4702
+ * @throws {FaableApiError} `internal_error` (500) — Unexpected server error. Retry later; the request id is logged.
3725
4703
  */
3726
4704
  teamListInvites(team_id: string, params?: OpQuery<"team/listInvites">): Promise<{
3727
4705
  data: {
@@ -3746,6 +4724,17 @@ export declare abstract class GeneratedFaableAuthApi extends FaableApi {
3746
4724
  * `GET /team/{team_id}/member` — operationId: `team/listMembers`
3747
4725
  *
3748
4726
  * List Team Members
4727
+ *
4728
+ * List all Users that belong to the given Team in the current Account. Supports `?expand=user,team,roles` to inline referenced rows.
4729
+ *
4730
+ * @throws {FaableApiError} `validation_error` (400) — The body, query or path failed schema validation. `details.issues` lists each failing field.
4731
+ * @throws {FaableApiError} `unauthorized` (401) — The request carries no valid credentials.
4732
+ * @throws {FaableApiError} `forbidden` (403) — The credentials are valid but do not allow this operation.
4733
+ * @throws {FaableApiError} `insufficient_scope` (403) — The token lacks a scope this operation requires. `message` names it.
4734
+ * @throws {FaableApiError} `user_suspended` (403) — The user is suspended and cannot sign in or be modified.
4735
+ * @throws {FaableApiError} `account_not_found` (404) — No Auth Account matches the request (domain, header or token).
4736
+ * @throws {FaableApiError} `too_many_requests` (429) — Rate limit exceeded. Honour the `Retry-After` header.
4737
+ * @throws {FaableApiError} `internal_error` (500) — Unexpected server error. Retry later; the request id is logged.
3749
4738
  */
3750
4739
  teamListMembers(team_id: string, params?: Omit<OpQuery<"team/listMembers">, "cursor" | "next">): {
3751
4740
  all: () => Promise<{
@@ -3792,6 +4781,18 @@ export declare abstract class GeneratedFaableAuthApi extends FaableApi {
3792
4781
  * `DELETE /team/{team_id}/invite/{ticket_id}` — operationId: `team/revokeInvite`
3793
4782
  *
3794
4783
  * Revoke a pending team invite
4784
+ *
4785
+ * Marks a pending team invite as consumed so it can no longer be accepted. Returns 400 if the invite is already consumed and 404 if it does not exist or belongs to a different team.
4786
+ *
4787
+ * @throws {FaableApiError} `validation_error` (400) — The body, query or path failed schema validation. `details.issues` lists each failing field.
4788
+ * @throws {FaableApiError} `unauthorized` (401) — The request carries no valid credentials.
4789
+ * @throws {FaableApiError} `forbidden` (403) — The credentials are valid but do not allow this operation.
4790
+ * @throws {FaableApiError} `insufficient_scope` (403) — The token lacks a scope this operation requires. `message` names it.
4791
+ * @throws {FaableApiError} `user_suspended` (403) — The user is suspended and cannot sign in or be modified.
4792
+ * @throws {FaableApiError} `invite_not_found` (404) — No invite with that id in this account.
4793
+ * @throws {FaableApiError} `account_not_found` (404) — No Auth Account matches the request (domain, header or token).
4794
+ * @throws {FaableApiError} `too_many_requests` (429) — Rate limit exceeded. Honour the `Retry-After` header.
4795
+ * @throws {FaableApiError} `internal_error` (500) — Unexpected server error. Retry later; the request id is logged.
3795
4796
  */
3796
4797
  teamRevokeInvite(team_id: string, ticket_id: string): Promise<{
3797
4798
  status: "revoked";
@@ -3800,6 +4801,18 @@ export declare abstract class GeneratedFaableAuthApi extends FaableApi {
3800
4801
  * `POST /team/{team_id}` — operationId: `team/update`
3801
4802
  *
3802
4803
  * Update Team
4804
+ *
4805
+ * @throws {FaableApiError} `invalid_id` (400) — The id in the path is not a valid id for this resource.
4806
+ * @throws {FaableApiError} `already_exists` (400) — A resource with the same unique field already exists (for a user, usually `email`). `details.fields` names the field.
4807
+ * @throws {FaableApiError} `validation_error` (400) — The body, query or path failed schema validation. `details.issues` lists each failing field.
4808
+ * @throws {FaableApiError} `unauthorized` (401) — The request carries no valid credentials.
4809
+ * @throws {FaableApiError} `forbidden` (403) — The credentials are valid but do not allow this operation.
4810
+ * @throws {FaableApiError} `insufficient_scope` (403) — The token lacks a scope this operation requires. `message` names it.
4811
+ * @throws {FaableApiError} `user_suspended` (403) — The user is suspended and cannot sign in or be modified.
4812
+ * @throws {FaableApiError} `not_found` (404) — The resource does not exist in this account.
4813
+ * @throws {FaableApiError} `account_not_found` (404) — No Auth Account matches the request (domain, header or token).
4814
+ * @throws {FaableApiError} `too_many_requests` (429) — Rate limit exceeded. Honour the `Retry-After` header.
4815
+ * @throws {FaableApiError} `internal_error` (500) — Unexpected server error. Retry later; the request id is logged.
3803
4816
  */
3804
4817
  teamUpdate(team_id: string, data: OpBody<"team/update">): Promise<{
3805
4818
  id: string;
@@ -3818,6 +4831,16 @@ export declare abstract class GeneratedFaableAuthApi extends FaableApi {
3818
4831
  * `POST /teammember` — operationId: `teammember/create`
3819
4832
  *
3820
4833
  * Create Teammember
4834
+ *
4835
+ * @throws {FaableApiError} `already_exists` (400) — A resource with the same unique field already exists (for a user, usually `email`). `details.fields` names the field.
4836
+ * @throws {FaableApiError} `validation_error` (400) — The body, query or path failed schema validation. `details.issues` lists each failing field.
4837
+ * @throws {FaableApiError} `unauthorized` (401) — The request carries no valid credentials.
4838
+ * @throws {FaableApiError} `forbidden` (403) — The credentials are valid but do not allow this operation.
4839
+ * @throws {FaableApiError} `insufficient_scope` (403) — The token lacks a scope this operation requires. `message` names it.
4840
+ * @throws {FaableApiError} `user_suspended` (403) — The user is suspended and cannot sign in or be modified.
4841
+ * @throws {FaableApiError} `account_not_found` (404) — No Auth Account matches the request (domain, header or token).
4842
+ * @throws {FaableApiError} `too_many_requests` (429) — Rate limit exceeded. Honour the `Retry-After` header.
4843
+ * @throws {FaableApiError} `internal_error` (500) — Unexpected server error. Retry later; the request id is logged.
3821
4844
  */
3822
4845
  teammemberCreate(data: OpBody<"teammember/create">): Promise<{
3823
4846
  id: string;
@@ -3835,6 +4858,17 @@ export declare abstract class GeneratedFaableAuthApi extends FaableApi {
3835
4858
  * `DELETE /teammember/{teammember_id}` — operationId: `teammember/delete`
3836
4859
  *
3837
4860
  * Delete Teammember
4861
+ *
4862
+ * @throws {FaableApiError} `invalid_id` (400) — The id in the path is not a valid id for this resource.
4863
+ * @throws {FaableApiError} `validation_error` (400) — The body, query or path failed schema validation. `details.issues` lists each failing field.
4864
+ * @throws {FaableApiError} `unauthorized` (401) — The request carries no valid credentials.
4865
+ * @throws {FaableApiError} `forbidden` (403) — The credentials are valid but do not allow this operation.
4866
+ * @throws {FaableApiError} `insufficient_scope` (403) — The token lacks a scope this operation requires. `message` names it.
4867
+ * @throws {FaableApiError} `user_suspended` (403) — The user is suspended and cannot sign in or be modified.
4868
+ * @throws {FaableApiError} `not_found` (404) — The resource does not exist in this account.
4869
+ * @throws {FaableApiError} `account_not_found` (404) — No Auth Account matches the request (domain, header or token).
4870
+ * @throws {FaableApiError} `too_many_requests` (429) — Rate limit exceeded. Honour the `Retry-After` header.
4871
+ * @throws {FaableApiError} `internal_error` (500) — Unexpected server error. Retry later; the request id is logged.
3838
4872
  */
3839
4873
  teammemberDelete(teammember_id: string): Promise<{
3840
4874
  id: string;
@@ -3852,6 +4886,18 @@ export declare abstract class GeneratedFaableAuthApi extends FaableApi {
3852
4886
  * `GET /teammember/{teammember_id}` — operationId: `teammember/get`
3853
4887
  *
3854
4888
  * Get Teammember
4889
+ *
4890
+ * @throws {FaableApiError} `invalid_id` (400) — The id in the path is not a valid id for this resource.
4891
+ * @throws {FaableApiError} `invalid_expand` (400) — An `?expand=` path is not allowed on this resource.
4892
+ * @throws {FaableApiError} `validation_error` (400) — The body, query or path failed schema validation. `details.issues` lists each failing field.
4893
+ * @throws {FaableApiError} `unauthorized` (401) — The request carries no valid credentials.
4894
+ * @throws {FaableApiError} `forbidden` (403) — The credentials are valid but do not allow this operation.
4895
+ * @throws {FaableApiError} `insufficient_scope` (403) — The token lacks a scope this operation requires. `message` names it.
4896
+ * @throws {FaableApiError} `user_suspended` (403) — The user is suspended and cannot sign in or be modified.
4897
+ * @throws {FaableApiError} `not_found` (404) — The resource does not exist in this account.
4898
+ * @throws {FaableApiError} `account_not_found` (404) — No Auth Account matches the request (domain, header or token).
4899
+ * @throws {FaableApiError} `too_many_requests` (429) — Rate limit exceeded. Honour the `Retry-After` header.
4900
+ * @throws {FaableApiError} `internal_error` (500) — Unexpected server error. Retry later; the request id is logged.
3855
4901
  */
3856
4902
  teammemberGet(teammember_id: string, params?: OpQuery<"teammember/get">): Promise<{
3857
4903
  id: string;
@@ -3869,6 +4915,18 @@ export declare abstract class GeneratedFaableAuthApi extends FaableApi {
3869
4915
  * `GET /teammember` — operationId: `teammember/list`
3870
4916
  *
3871
4917
  * List Teammembers
4918
+ *
4919
+ * @throws {FaableApiError} `invalid_query` (400) — The `?query=` FaableQL expression could not be parsed.
4920
+ * @throws {FaableApiError} `invalid_expand` (400) — An `?expand=` path is not allowed on this resource.
4921
+ * @throws {FaableApiError} `search_not_supported` (400) — This resource does not support `?search=`.
4922
+ * @throws {FaableApiError} `validation_error` (400) — The body, query or path failed schema validation. `details.issues` lists each failing field.
4923
+ * @throws {FaableApiError} `unauthorized` (401) — The request carries no valid credentials.
4924
+ * @throws {FaableApiError} `forbidden` (403) — The credentials are valid but do not allow this operation.
4925
+ * @throws {FaableApiError} `insufficient_scope` (403) — The token lacks a scope this operation requires. `message` names it.
4926
+ * @throws {FaableApiError} `user_suspended` (403) — The user is suspended and cannot sign in or be modified.
4927
+ * @throws {FaableApiError} `account_not_found` (404) — No Auth Account matches the request (domain, header or token).
4928
+ * @throws {FaableApiError} `too_many_requests` (429) — Rate limit exceeded. Honour the `Retry-After` header.
4929
+ * @throws {FaableApiError} `internal_error` (500) — Unexpected server error. Retry later; the request id is logged.
3872
4930
  */
3873
4931
  teammemberList(params?: Omit<OpQuery<"teammember/list">, "cursor" | "next">): {
3874
4932
  all: () => Promise<{
@@ -3915,6 +4973,17 @@ export declare abstract class GeneratedFaableAuthApi extends FaableApi {
3915
4973
  * `POST /user` — operationId: `user/create`
3916
4974
  *
3917
4975
  * Create User
4976
+ *
4977
+ * @throws {FaableApiError} `already_exists` (400) — A resource with the same unique field already exists (for a user, usually `email`). `details.fields` names the field.
4978
+ * @throws {FaableApiError} `validation_error` (400) — The body, query or path failed schema validation. `details.issues` lists each failing field.
4979
+ * @throws {FaableApiError} `invalid_phone` (400) — The phone number is not E.164 and could not be resolved with the account default country. Include the country code.
4980
+ * @throws {FaableApiError} `unauthorized` (401) — The request carries no valid credentials.
4981
+ * @throws {FaableApiError} `forbidden` (403) — The credentials are valid but do not allow this operation.
4982
+ * @throws {FaableApiError} `insufficient_scope` (403) — The token lacks a scope this operation requires. `message` names it.
4983
+ * @throws {FaableApiError} `user_suspended` (403) — The user is suspended and cannot sign in or be modified.
4984
+ * @throws {FaableApiError} `account_not_found` (404) — No Auth Account matches the request (domain, header or token).
4985
+ * @throws {FaableApiError} `too_many_requests` (429) — Rate limit exceeded. Honour the `Retry-After` header.
4986
+ * @throws {FaableApiError} `internal_error` (500) — Unexpected server error. Retry later; the request id is logged.
3918
4987
  */
3919
4988
  userCreate(data: OpBody<"user/create">): Promise<{
3920
4989
  id: string;
@@ -3979,6 +5048,17 @@ export declare abstract class GeneratedFaableAuthApi extends FaableApi {
3979
5048
  * `DELETE /user/{user_id}` — operationId: `user/delete`
3980
5049
  *
3981
5050
  * Delete User
5051
+ *
5052
+ * @throws {FaableApiError} `invalid_id` (400) — The id in the path is not a valid id for this resource.
5053
+ * @throws {FaableApiError} `validation_error` (400) — The body, query or path failed schema validation. `details.issues` lists each failing field.
5054
+ * @throws {FaableApiError} `unauthorized` (401) — The request carries no valid credentials.
5055
+ * @throws {FaableApiError} `forbidden` (403) — The credentials are valid but do not allow this operation.
5056
+ * @throws {FaableApiError} `insufficient_scope` (403) — The token lacks a scope this operation requires. `message` names it.
5057
+ * @throws {FaableApiError} `user_suspended` (403) — The user is suspended and cannot sign in or be modified.
5058
+ * @throws {FaableApiError} `not_found` (404) — The resource does not exist in this account.
5059
+ * @throws {FaableApiError} `account_not_found` (404) — No Auth Account matches the request (domain, header or token).
5060
+ * @throws {FaableApiError} `too_many_requests` (429) — Rate limit exceeded. Honour the `Retry-After` header.
5061
+ * @throws {FaableApiError} `internal_error` (500) — Unexpected server error. Retry later; the request id is logged.
3982
5062
  */
3983
5063
  userDelete(user_id: string): Promise<{
3984
5064
  id: string;
@@ -4043,6 +5123,18 @@ export declare abstract class GeneratedFaableAuthApi extends FaableApi {
4043
5123
  * `GET /user/{user_id}` — operationId: `user/get`
4044
5124
  *
4045
5125
  * Get User
5126
+ *
5127
+ * @throws {FaableApiError} `invalid_id` (400) — The id in the path is not a valid id for this resource.
5128
+ * @throws {FaableApiError} `invalid_expand` (400) — An `?expand=` path is not allowed on this resource.
5129
+ * @throws {FaableApiError} `validation_error` (400) — The body, query or path failed schema validation. `details.issues` lists each failing field.
5130
+ * @throws {FaableApiError} `unauthorized` (401) — The request carries no valid credentials.
5131
+ * @throws {FaableApiError} `forbidden` (403) — The credentials are valid but do not allow this operation.
5132
+ * @throws {FaableApiError} `insufficient_scope` (403) — The token lacks a scope this operation requires. `message` names it.
5133
+ * @throws {FaableApiError} `user_suspended` (403) — The user is suspended and cannot sign in or be modified.
5134
+ * @throws {FaableApiError} `not_found` (404) — The resource does not exist in this account.
5135
+ * @throws {FaableApiError} `account_not_found` (404) — No Auth Account matches the request (domain, header or token).
5136
+ * @throws {FaableApiError} `too_many_requests` (429) — Rate limit exceeded. Honour the `Retry-After` header.
5137
+ * @throws {FaableApiError} `internal_error` (500) — Unexpected server error. Retry later; the request id is logged.
4046
5138
  */
4047
5139
  userGet(user_id: string): Promise<{
4048
5140
  id: string;
@@ -4107,6 +5199,18 @@ export declare abstract class GeneratedFaableAuthApi extends FaableApi {
4107
5199
  * `GET /user` — operationId: `user/list`
4108
5200
  *
4109
5201
  * List Users
5202
+ *
5203
+ * @throws {FaableApiError} `invalid_query` (400) — The `?query=` FaableQL expression could not be parsed.
5204
+ * @throws {FaableApiError} `invalid_expand` (400) — An `?expand=` path is not allowed on this resource.
5205
+ * @throws {FaableApiError} `search_not_supported` (400) — This resource does not support `?search=`.
5206
+ * @throws {FaableApiError} `validation_error` (400) — The body, query or path failed schema validation. `details.issues` lists each failing field.
5207
+ * @throws {FaableApiError} `unauthorized` (401) — The request carries no valid credentials.
5208
+ * @throws {FaableApiError} `forbidden` (403) — The credentials are valid but do not allow this operation.
5209
+ * @throws {FaableApiError} `insufficient_scope` (403) — The token lacks a scope this operation requires. `message` names it.
5210
+ * @throws {FaableApiError} `user_suspended` (403) — The user is suspended and cannot sign in or be modified.
5211
+ * @throws {FaableApiError} `account_not_found` (404) — No Auth Account matches the request (domain, header or token).
5212
+ * @throws {FaableApiError} `too_many_requests` (429) — Rate limit exceeded. Honour the `Retry-After` header.
5213
+ * @throws {FaableApiError} `internal_error` (500) — Unexpected server error. Retry later; the request id is logged.
4110
5214
  */
4111
5215
  userList(params?: Omit<OpQuery<"user/list">, "cursor" | "next">): {
4112
5216
  all: () => Promise<{
@@ -4294,6 +5398,17 @@ export declare abstract class GeneratedFaableAuthApi extends FaableApi {
4294
5398
  * `GET /user/{user_id}/tickets` — operationId: `user/listTickets`
4295
5399
  *
4296
5400
  * List the tickets issued for a user
5401
+ *
5402
+ * Returns the password-reset / verification / invitation tickets issued for this user, newest first, each with its status and — while it is still usable — the link that was emailed. Intended for handing a recovery link over by another channel when the email does not reach the person. Requires `update:credentials`: the link grants the same account access that setting a password does, and each reveal is recorded in the audit log.
5403
+ *
5404
+ * @throws {FaableApiError} `validation_error` (400) — The body, query or path failed schema validation. `details.issues` lists each failing field.
5405
+ * @throws {FaableApiError} `unauthorized` (401) — The request carries no valid credentials.
5406
+ * @throws {FaableApiError} `forbidden` (403) — The credentials are valid but do not allow this operation.
5407
+ * @throws {FaableApiError} `insufficient_scope` (403) — The token lacks a scope this operation requires. `message` names it.
5408
+ * @throws {FaableApiError} `user_suspended` (403) — The user is suspended and cannot sign in or be modified.
5409
+ * @throws {FaableApiError} `account_not_found` (404) — No Auth Account matches the request (domain, header or token).
5410
+ * @throws {FaableApiError} `too_many_requests` (429) — Rate limit exceeded. Honour the `Retry-After` header.
5411
+ * @throws {FaableApiError} `internal_error` (500) — Unexpected server error. Retry later; the request id is logged.
4297
5412
  */
4298
5413
  userListTickets(user_id: string): Promise<{
4299
5414
  results: {
@@ -4312,6 +5427,20 @@ export declare abstract class GeneratedFaableAuthApi extends FaableApi {
4312
5427
  * `POST /user/{user_id}/password-setup` — operationId: `user/passwordSetup`
4313
5428
  *
4314
5429
  * Send a password setup / reset email to the user
5430
+ *
5431
+ * Ensures the user has a database credential (provisioning a password-less one when missing, e.g. for users created via the management API) and creates a `changepassword` ticket, sending the standard password reset email. The link lands on the tenant's auth domain. Idempotent on the credential; each call emits a fresh ticket.
5432
+ *
5433
+ * @throws {FaableApiError} `invalid_client` (400) — The `client_id` in the request does not name a client of this account.
5434
+ * @throws {FaableApiError} `invalid_connection` (400) — The connection does not exist, is disabled, or is not of the type this flow needs.
5435
+ * @throws {FaableApiError} `user_has_no_email` (400) — The operation needs an email but the user has none.
5436
+ * @throws {FaableApiError} `validation_error` (400) — The body, query or path failed schema validation. `details.issues` lists each failing field.
5437
+ * @throws {FaableApiError} `unauthorized` (401) — The request carries no valid credentials.
5438
+ * @throws {FaableApiError} `forbidden` (403) — The credentials are valid but do not allow this operation.
5439
+ * @throws {FaableApiError} `insufficient_scope` (403) — The token lacks a scope this operation requires. `message` names it.
5440
+ * @throws {FaableApiError} `user_suspended` (403) — The user is suspended and cannot sign in or be modified.
5441
+ * @throws {FaableApiError} `account_not_found` (404) — No Auth Account matches the request (domain, header or token).
5442
+ * @throws {FaableApiError} `too_many_requests` (429) — Rate limit exceeded. Honour the `Retry-After` header.
5443
+ * @throws {FaableApiError} `internal_error` (500) — Unexpected server error. Retry later; the request id is logged.
4315
5444
  */
4316
5445
  userPasswordSetup(user_id: string, data: OpBody<"user/passwordSetup">): Promise<{
4317
5446
  status: "sent";
@@ -4323,6 +5452,18 @@ export declare abstract class GeneratedFaableAuthApi extends FaableApi {
4323
5452
  * `POST /user/{user_id}/tickets/{ticket_id}/revoke` — operationId: `user/revokeTicket`
4324
5453
  *
4325
5454
  * Revoke a ticket issued for a user
5455
+ *
5456
+ * Marks the ticket as consumed so its link stops working immediately. The counterpart of listing links: once a link has been copied out of the dashboard it can end up in the wrong chat window, and the TTL alone is too slow an answer.
5457
+ *
5458
+ * @throws {FaableApiError} `validation_error` (400) — The body, query or path failed schema validation. `details.issues` lists each failing field.
5459
+ * @throws {FaableApiError} `unauthorized` (401) — The request carries no valid credentials.
5460
+ * @throws {FaableApiError} `forbidden` (403) — The credentials are valid but do not allow this operation.
5461
+ * @throws {FaableApiError} `insufficient_scope` (403) — The token lacks a scope this operation requires. `message` names it.
5462
+ * @throws {FaableApiError} `user_suspended` (403) — The user is suspended and cannot sign in or be modified.
5463
+ * @throws {FaableApiError} `ticket_not_found` (404) — No ticket with that id belongs to this user.
5464
+ * @throws {FaableApiError} `account_not_found` (404) — No Auth Account matches the request (domain, header or token).
5465
+ * @throws {FaableApiError} `too_many_requests` (429) — Rate limit exceeded. Honour the `Retry-After` header.
5466
+ * @throws {FaableApiError} `internal_error` (500) — Unexpected server error. Retry later; the request id is logged.
4326
5467
  */
4327
5468
  userRevokeTicket(user_id: string, ticket_id: string): Promise<{
4328
5469
  status: "revoked" | "already_used";
@@ -4332,6 +5473,19 @@ export declare abstract class GeneratedFaableAuthApi extends FaableApi {
4332
5473
  * `POST /user/{user_id}` — operationId: `user/update`
4333
5474
  *
4334
5475
  * Update User
5476
+ *
5477
+ * @throws {FaableApiError} `invalid_id` (400) — The id in the path is not a valid id for this resource.
5478
+ * @throws {FaableApiError} `already_exists` (400) — A resource with the same unique field already exists (for a user, usually `email`). `details.fields` names the field.
5479
+ * @throws {FaableApiError} `validation_error` (400) — The body, query or path failed schema validation. `details.issues` lists each failing field.
5480
+ * @throws {FaableApiError} `invalid_phone` (400) — The phone number is not E.164 and could not be resolved with the account default country. Include the country code.
5481
+ * @throws {FaableApiError} `unauthorized` (401) — The request carries no valid credentials.
5482
+ * @throws {FaableApiError} `forbidden` (403) — The credentials are valid but do not allow this operation.
5483
+ * @throws {FaableApiError} `insufficient_scope` (403) — The token lacks a scope this operation requires. `message` names it.
5484
+ * @throws {FaableApiError} `user_suspended` (403) — The user is suspended and cannot sign in or be modified.
5485
+ * @throws {FaableApiError} `not_found` (404) — The resource does not exist in this account.
5486
+ * @throws {FaableApiError} `account_not_found` (404) — No Auth Account matches the request (domain, header or token).
5487
+ * @throws {FaableApiError} `too_many_requests` (429) — Rate limit exceeded. Honour the `Retry-After` header.
5488
+ * @throws {FaableApiError} `internal_error` (500) — Unexpected server error. Retry later; the request id is logged.
4335
5489
  */
4336
5490
  userUpdate(user_id: string, data: OpBody<"user/update">): Promise<{
4337
5491
  id: string;