@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.
@@ -13,6 +13,20 @@ export class GeneratedFaableAuthApi extends FaableApi {
13
13
  * `POST /account` — operationId: `account/create`
14
14
  *
15
15
  * Create an Account
16
+ *
17
+ * Creates a new Auth Account. The slug is derived from the name and used to build the default `*.auth.faable.link` domain.
18
+ *
19
+ * @throws {FaableApiError} `team_required` (400) — An Auth Account must belong to a project (team).
20
+ * @throws {FaableApiError} `already_exists` (400) — A resource with the same unique field already exists (for a user, usually `email`). `details.fields` names the field.
21
+ * @throws {FaableApiError} `validation_error` (400) — The body, query or path failed schema validation. `details.issues` lists each failing field.
22
+ * @throws {FaableApiError} `unauthorized` (401) — The request carries no valid credentials.
23
+ * @throws {FaableApiError} `forbidden` (403) — The credentials are valid but do not allow this operation.
24
+ * @throws {FaableApiError} `insufficient_scope` (403) — The token lacks a scope this operation requires. `message` names it.
25
+ * @throws {FaableApiError} `user_suspended` (403) — The user is suspended and cannot sign in or be modified.
26
+ * @throws {FaableApiError} `account_not_found` (404) — No Auth Account matches the request (domain, header or token).
27
+ * @throws {FaableApiError} `account_limit_reached` (409) — The project already has the maximum number of Auth Accounts.
28
+ * @throws {FaableApiError} `too_many_requests` (429) — Rate limit exceeded. Honour the `Retry-After` header.
29
+ * @throws {FaableApiError} `internal_error` (500) — Unexpected server error. Retry later; the request id is logged.
16
30
  */
17
31
  accountCreate(data) {
18
32
  return this.fetcher.post(`/account`, data);
@@ -21,6 +35,17 @@ export class GeneratedFaableAuthApi extends FaableApi {
21
35
  * `GET /account/current` — operationId: `account/current`
22
36
  *
23
37
  * Get current Account
38
+ *
39
+ * Returns the Account resolved from request context (header, hostname, or team id). Use `expand` to populate nested references.
40
+ *
41
+ * @throws {FaableApiError} `validation_error` (400) — The body, query or path failed schema validation. `details.issues` lists each failing field.
42
+ * @throws {FaableApiError} `unauthorized` (401) — The request carries no valid credentials.
43
+ * @throws {FaableApiError} `forbidden` (403) — The credentials are valid but do not allow this operation.
44
+ * @throws {FaableApiError} `insufficient_scope` (403) — The token lacks a scope this operation requires. `message` names it.
45
+ * @throws {FaableApiError} `user_suspended` (403) — The user is suspended and cannot sign in or be modified.
46
+ * @throws {FaableApiError} `account_not_found` (404) — No Auth Account matches the request (domain, header or token).
47
+ * @throws {FaableApiError} `too_many_requests` (429) — Rate limit exceeded. Honour the `Retry-After` header.
48
+ * @throws {FaableApiError} `internal_error` (500) — Unexpected server error. Retry later; the request id is logged.
24
49
  */
25
50
  accountCurrent(params) {
26
51
  return this.fetcher.request({ method: "GET", url: `/account/current`, params });
@@ -29,6 +54,19 @@ export class GeneratedFaableAuthApi extends FaableApi {
29
54
  * `DELETE /account/{account_id}` — operationId: `account/delete`
30
55
  *
31
56
  * Delete an Account
57
+ *
58
+ * Permanently removes an Account and its associated data. This action cannot be undone.
59
+ *
60
+ * @throws {FaableApiError} `invalid_id` (400) — The id in the path is not a valid id for this resource.
61
+ * @throws {FaableApiError} `validation_error` (400) — The body, query or path failed schema validation. `details.issues` lists each failing field.
62
+ * @throws {FaableApiError} `unauthorized` (401) — The request carries no valid credentials.
63
+ * @throws {FaableApiError} `forbidden` (403) — The credentials are valid but do not allow this operation.
64
+ * @throws {FaableApiError} `insufficient_scope` (403) — The token lacks a scope this operation requires. `message` names it.
65
+ * @throws {FaableApiError} `user_suspended` (403) — The user is suspended and cannot sign in or be modified.
66
+ * @throws {FaableApiError} `not_found` (404) — The resource does not exist in this account.
67
+ * @throws {FaableApiError} `account_not_found` (404) — No Auth Account matches the request (domain, header or token).
68
+ * @throws {FaableApiError} `too_many_requests` (429) — Rate limit exceeded. Honour the `Retry-After` header.
69
+ * @throws {FaableApiError} `internal_error` (500) — Unexpected server error. Retry later; the request id is logged.
32
70
  */
33
71
  accountDelete(account_id) {
34
72
  requireId("account_id", account_id);
@@ -38,6 +76,20 @@ export class GeneratedFaableAuthApi extends FaableApi {
38
76
  * `GET /account/{account_id}` — operationId: `account/get`
39
77
  *
40
78
  * Get an Account
79
+ *
80
+ * Fetch a single Account by its id. Use `expand` to populate id-only fields (e.g. `default_connection`) inline.
81
+ *
82
+ * @throws {FaableApiError} `invalid_id` (400) — The id in the path is not a valid id for this resource.
83
+ * @throws {FaableApiError} `invalid_expand` (400) — An `?expand=` path is not allowed on this resource.
84
+ * @throws {FaableApiError} `validation_error` (400) — The body, query or path failed schema validation. `details.issues` lists each failing field.
85
+ * @throws {FaableApiError} `unauthorized` (401) — The request carries no valid credentials.
86
+ * @throws {FaableApiError} `forbidden` (403) — The credentials are valid but do not allow this operation.
87
+ * @throws {FaableApiError} `insufficient_scope` (403) — The token lacks a scope this operation requires. `message` names it.
88
+ * @throws {FaableApiError} `user_suspended` (403) — The user is suspended and cannot sign in or be modified.
89
+ * @throws {FaableApiError} `not_found` (404) — The resource does not exist in this account.
90
+ * @throws {FaableApiError} `account_not_found` (404) — No Auth Account matches the request (domain, header or token).
91
+ * @throws {FaableApiError} `too_many_requests` (429) — Rate limit exceeded. Honour the `Retry-After` header.
92
+ * @throws {FaableApiError} `internal_error` (500) — Unexpected server error. Retry later; the request id is logged.
41
93
  */
42
94
  accountGet(account_id, params) {
43
95
  requireId("account_id", account_id);
@@ -47,6 +99,16 @@ export class GeneratedFaableAuthApi extends FaableApi {
47
99
  * `GET /account/keys` — operationId: `account/getKeys`
48
100
  *
49
101
  * Get Account signing keys info
102
+ *
103
+ * 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.
104
+ *
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.
50
112
  */
51
113
  accountGetKeys() {
52
114
  return this.fetcher.get(`/account/keys`);
@@ -55,6 +117,20 @@ export class GeneratedFaableAuthApi extends FaableApi {
55
117
  * `GET /account` — operationId: `account/list`
56
118
  *
57
119
  * List Accounts
120
+ *
121
+ * List Accounts owned by the requesting project/team. Supports cursor pagination and `expand`.
122
+ *
123
+ * @throws {FaableApiError} `invalid_query` (400) — The `?query=` FaableQL expression could not be parsed.
124
+ * @throws {FaableApiError} `invalid_expand` (400) — An `?expand=` path is not allowed on this resource.
125
+ * @throws {FaableApiError} `search_not_supported` (400) — This resource does not support `?search=`.
126
+ * @throws {FaableApiError} `validation_error` (400) — The body, query or path failed schema validation. `details.issues` lists each failing field.
127
+ * @throws {FaableApiError} `unauthorized` (401) — The request carries no valid credentials.
128
+ * @throws {FaableApiError} `forbidden` (403) — The credentials are valid but do not allow this operation.
129
+ * @throws {FaableApiError} `insufficient_scope` (403) — The token lacks a scope this operation requires. `message` names it.
130
+ * @throws {FaableApiError} `user_suspended` (403) — The user is suspended and cannot sign in or be modified.
131
+ * @throws {FaableApiError} `account_not_found` (404) — No Auth Account matches the request (domain, header or token).
132
+ * @throws {FaableApiError} `too_many_requests` (429) — Rate limit exceeded. Honour the `Retry-After` header.
133
+ * @throws {FaableApiError} `internal_error` (500) — Unexpected server error. Retry later; the request id is logged.
58
134
  */
59
135
  accountList(params) {
60
136
  return this.paginator({ url: `/account`, params });
@@ -63,6 +139,16 @@ export class GeneratedFaableAuthApi extends FaableApi {
63
139
  * `GET /recovery-channels/capabilities` — operationId: `account/recoveryChannelsCapabilities`
64
140
  *
65
141
  * Recovery channel capabilities for this tenant
142
+ *
143
+ * 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.
144
+ *
145
+ * @throws {FaableApiError} `unauthorized` (401) — The request carries no valid credentials.
146
+ * @throws {FaableApiError} `forbidden` (403) — The credentials are valid but do not allow this operation.
147
+ * @throws {FaableApiError} `insufficient_scope` (403) — The token lacks a scope this operation requires. `message` names it.
148
+ * @throws {FaableApiError} `user_suspended` (403) — The user is suspended and cannot sign in or be modified.
149
+ * @throws {FaableApiError} `account_not_found` (404) — No Auth Account matches the request (domain, header or token).
150
+ * @throws {FaableApiError} `too_many_requests` (429) — Rate limit exceeded. Honour the `Retry-After` header.
151
+ * @throws {FaableApiError} `internal_error` (500) — Unexpected server error. Retry later; the request id is logged.
66
152
  */
67
153
  accountRecoveryChannelsCapabilities() {
68
154
  return this.fetcher.get(`/recovery-channels/capabilities`);
@@ -71,6 +157,17 @@ export class GeneratedFaableAuthApi extends FaableApi {
71
157
  * `POST /account/keys/rotate` — operationId: `account/rotateKeys`
72
158
  *
73
159
  * Rotate Account signing keys
160
+ *
161
+ * 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`.
162
+ *
163
+ * @throws {FaableApiError} `validation_error` (400) — The body, query or path failed schema validation. `details.issues` lists each failing field.
164
+ * @throws {FaableApiError} `unauthorized` (401) — The request carries no valid credentials.
165
+ * @throws {FaableApiError} `forbidden` (403) — The credentials are valid but do not allow this operation.
166
+ * @throws {FaableApiError} `insufficient_scope` (403) — The token lacks a scope this operation requires. `message` names it.
167
+ * @throws {FaableApiError} `user_suspended` (403) — The user is suspended and cannot sign in or be modified.
168
+ * @throws {FaableApiError} `account_not_found` (404) — No Auth Account matches the request (domain, header or token).
169
+ * @throws {FaableApiError} `too_many_requests` (429) — Rate limit exceeded. Honour the `Retry-After` header.
170
+ * @throws {FaableApiError} `internal_error` (500) — Unexpected server error. Retry later; the request id is logged.
74
171
  */
75
172
  accountRotateKeys(data) {
76
173
  return this.fetcher.post(`/account/keys/rotate`, data);
@@ -79,6 +176,17 @@ export class GeneratedFaableAuthApi extends FaableApi {
79
176
  * `GET /sdk-health/{account_id}` — operationId: `account/sdk-health`
80
177
  *
81
178
  * Library health for this account
179
+ *
180
+ * 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.
181
+ *
182
+ * @throws {FaableApiError} `validation_error` (400) — The body, query or path failed schema validation. `details.issues` lists each failing field.
183
+ * @throws {FaableApiError} `unauthorized` (401) — The request carries no valid credentials.
184
+ * @throws {FaableApiError} `forbidden` (403) — The credentials are valid but do not allow this operation.
185
+ * @throws {FaableApiError} `insufficient_scope` (403) — The token lacks a scope this operation requires. `message` names it.
186
+ * @throws {FaableApiError} `user_suspended` (403) — The user is suspended and cannot sign in or be modified.
187
+ * @throws {FaableApiError} `account_not_found` (404) — No Auth Account matches the request (domain, header or token).
188
+ * @throws {FaableApiError} `too_many_requests` (429) — Rate limit exceeded. Honour the `Retry-After` header.
189
+ * @throws {FaableApiError} `internal_error` (500) — Unexpected server error. Retry later; the request id is logged.
82
190
  */
83
191
  accountSdkHealth(account_id) {
84
192
  requireId("account_id", account_id);
@@ -88,6 +196,21 @@ export class GeneratedFaableAuthApi extends FaableApi {
88
196
  * `POST /account/{account_id}` — operationId: `account/update`
89
197
  *
90
198
  * Update an Account
199
+ *
200
+ * Update the Account configuration such as branding (logo and icon URLs).
201
+ *
202
+ * @throws {FaableApiError} `invalid_id` (400) — The id in the path is not a valid id for this resource.
203
+ * @throws {FaableApiError} `already_exists` (400) — A resource with the same unique field already exists (for a user, usually `email`). `details.fields` names the field.
204
+ * @throws {FaableApiError} `validation_error` (400) — The body, query or path failed schema validation. `details.issues` lists each failing field.
205
+ * @throws {FaableApiError} `unauthorized` (401) — The request carries no valid credentials.
206
+ * @throws {FaableApiError} `plan_required` (402) — The setting requires a higher plan. `message` says which.
207
+ * @throws {FaableApiError} `forbidden` (403) — The credentials are valid but do not allow this operation.
208
+ * @throws {FaableApiError} `insufficient_scope` (403) — The token lacks a scope this operation requires. `message` names it.
209
+ * @throws {FaableApiError} `user_suspended` (403) — The user is suspended and cannot sign in or be modified.
210
+ * @throws {FaableApiError} `not_found` (404) — The resource does not exist in this account.
211
+ * @throws {FaableApiError} `account_not_found` (404) — No Auth Account matches the request (domain, header or token).
212
+ * @throws {FaableApiError} `too_many_requests` (429) — Rate limit exceeded. Honour the `Retry-After` header.
213
+ * @throws {FaableApiError} `internal_error` (500) — Unexpected server error. Retry later; the request id is logged.
91
214
  */
92
215
  accountUpdate(account_id, data) {
93
216
  requireId("account_id", account_id);
@@ -97,6 +220,16 @@ export class GeneratedFaableAuthApi extends FaableApi {
97
220
  * `POST /action` — operationId: `action/create`
98
221
  *
99
222
  * Create Action
223
+ *
224
+ * @throws {FaableApiError} `already_exists` (400) — A resource with the same unique field already exists (for a user, usually `email`). `details.fields` names the field.
225
+ * @throws {FaableApiError} `validation_error` (400) — The body, query or path failed schema validation. `details.issues` lists each failing field.
226
+ * @throws {FaableApiError} `unauthorized` (401) — The request carries no valid credentials.
227
+ * @throws {FaableApiError} `forbidden` (403) — The credentials are valid but do not allow this operation.
228
+ * @throws {FaableApiError} `insufficient_scope` (403) — The token lacks a scope this operation requires. `message` names it.
229
+ * @throws {FaableApiError} `user_suspended` (403) — The user is suspended and cannot sign in or be modified.
230
+ * @throws {FaableApiError} `account_not_found` (404) — No Auth Account matches the request (domain, header or token).
231
+ * @throws {FaableApiError} `too_many_requests` (429) — Rate limit exceeded. Honour the `Retry-After` header.
232
+ * @throws {FaableApiError} `internal_error` (500) — Unexpected server error. Retry later; the request id is logged.
100
233
  */
101
234
  actionCreate(data) {
102
235
  return this.fetcher.post(`/action`, data);
@@ -105,6 +238,17 @@ export class GeneratedFaableAuthApi extends FaableApi {
105
238
  * `DELETE /action/{action_id}` — operationId: `action/delete`
106
239
  *
107
240
  * Delete Action
241
+ *
242
+ * @throws {FaableApiError} `invalid_id` (400) — The id in the path is not a valid id for this resource.
243
+ * @throws {FaableApiError} `validation_error` (400) — The body, query or path failed schema validation. `details.issues` lists each failing field.
244
+ * @throws {FaableApiError} `unauthorized` (401) — The request carries no valid credentials.
245
+ * @throws {FaableApiError} `forbidden` (403) — The credentials are valid but do not allow this operation.
246
+ * @throws {FaableApiError} `insufficient_scope` (403) — The token lacks a scope this operation requires. `message` names it.
247
+ * @throws {FaableApiError} `user_suspended` (403) — The user is suspended and cannot sign in or be modified.
248
+ * @throws {FaableApiError} `not_found` (404) — The resource does not exist in this account.
249
+ * @throws {FaableApiError} `account_not_found` (404) — No Auth Account matches the request (domain, header or token).
250
+ * @throws {FaableApiError} `too_many_requests` (429) — Rate limit exceeded. Honour the `Retry-After` header.
251
+ * @throws {FaableApiError} `internal_error` (500) — Unexpected server error. Retry later; the request id is logged.
108
252
  */
109
253
  actionDelete(action_id) {
110
254
  requireId("action_id", action_id);
@@ -114,6 +258,18 @@ export class GeneratedFaableAuthApi extends FaableApi {
114
258
  * `GET /action/{action_id}` — operationId: `action/get`
115
259
  *
116
260
  * Get Action
261
+ *
262
+ * @throws {FaableApiError} `invalid_id` (400) — The id in the path is not a valid id for this resource.
263
+ * @throws {FaableApiError} `invalid_expand` (400) — An `?expand=` path is not allowed on this resource.
264
+ * @throws {FaableApiError} `validation_error` (400) — The body, query or path failed schema validation. `details.issues` lists each failing field.
265
+ * @throws {FaableApiError} `unauthorized` (401) — The request carries no valid credentials.
266
+ * @throws {FaableApiError} `forbidden` (403) — The credentials are valid but do not allow this operation.
267
+ * @throws {FaableApiError} `insufficient_scope` (403) — The token lacks a scope this operation requires. `message` names it.
268
+ * @throws {FaableApiError} `user_suspended` (403) — The user is suspended and cannot sign in or be modified.
269
+ * @throws {FaableApiError} `not_found` (404) — The resource does not exist in this account.
270
+ * @throws {FaableApiError} `account_not_found` (404) — No Auth Account matches the request (domain, header or token).
271
+ * @throws {FaableApiError} `too_many_requests` (429) — Rate limit exceeded. Honour the `Retry-After` header.
272
+ * @throws {FaableApiError} `internal_error` (500) — Unexpected server error. Retry later; the request id is logged.
117
273
  */
118
274
  actionGet(action_id) {
119
275
  requireId("action_id", action_id);
@@ -123,6 +279,18 @@ export class GeneratedFaableAuthApi extends FaableApi {
123
279
  * `GET /action` — operationId: `action/list`
124
280
  *
125
281
  * List Actions
282
+ *
283
+ * @throws {FaableApiError} `invalid_query` (400) — The `?query=` FaableQL expression could not be parsed.
284
+ * @throws {FaableApiError} `invalid_expand` (400) — An `?expand=` path is not allowed on this resource.
285
+ * @throws {FaableApiError} `search_not_supported` (400) — This resource does not support `?search=`.
286
+ * @throws {FaableApiError} `validation_error` (400) — The body, query or path failed schema validation. `details.issues` lists each failing field.
287
+ * @throws {FaableApiError} `unauthorized` (401) — The request carries no valid credentials.
288
+ * @throws {FaableApiError} `forbidden` (403) — The credentials are valid but do not allow this operation.
289
+ * @throws {FaableApiError} `insufficient_scope` (403) — The token lacks a scope this operation requires. `message` names it.
290
+ * @throws {FaableApiError} `user_suspended` (403) — The user is suspended and cannot sign in or be modified.
291
+ * @throws {FaableApiError} `account_not_found` (404) — No Auth Account matches the request (domain, header or token).
292
+ * @throws {FaableApiError} `too_many_requests` (429) — Rate limit exceeded. Honour the `Retry-After` header.
293
+ * @throws {FaableApiError} `internal_error` (500) — Unexpected server error. Retry later; the request id is logged.
126
294
  */
127
295
  actionList(params) {
128
296
  return this.paginator({ url: `/action`, params });
@@ -131,6 +299,18 @@ export class GeneratedFaableAuthApi extends FaableApi {
131
299
  * `POST /action/{action_id}` — operationId: `action/update`
132
300
  *
133
301
  * Update Action
302
+ *
303
+ * @throws {FaableApiError} `invalid_id` (400) — The id in the path is not a valid id for this resource.
304
+ * @throws {FaableApiError} `already_exists` (400) — A resource with the same unique field already exists (for a user, usually `email`). `details.fields` names the field.
305
+ * @throws {FaableApiError} `validation_error` (400) — The body, query or path failed schema validation. `details.issues` lists each failing field.
306
+ * @throws {FaableApiError} `unauthorized` (401) — The request carries no valid credentials.
307
+ * @throws {FaableApiError} `forbidden` (403) — The credentials are valid but do not allow this operation.
308
+ * @throws {FaableApiError} `insufficient_scope` (403) — The token lacks a scope this operation requires. `message` names it.
309
+ * @throws {FaableApiError} `user_suspended` (403) — The user is suspended and cannot sign in or be modified.
310
+ * @throws {FaableApiError} `not_found` (404) — The resource does not exist in this account.
311
+ * @throws {FaableApiError} `account_not_found` (404) — No Auth Account matches the request (domain, header or token).
312
+ * @throws {FaableApiError} `too_many_requests` (429) — Rate limit exceeded. Honour the `Retry-After` header.
313
+ * @throws {FaableApiError} `internal_error` (500) — Unexpected server error. Retry later; the request id is logged.
134
314
  */
135
315
  actionUpdate(action_id, data) {
136
316
  requireId("action_id", action_id);
@@ -140,6 +320,16 @@ export class GeneratedFaableAuthApi extends FaableApi {
140
320
  * `POST /api` — operationId: `api/create`
141
321
  *
142
322
  * Create Api
323
+ *
324
+ * @throws {FaableApiError} `already_exists` (400) — A resource with the same unique field already exists (for a user, usually `email`). `details.fields` names the field.
325
+ * @throws {FaableApiError} `validation_error` (400) — The body, query or path failed schema validation. `details.issues` lists each failing field.
326
+ * @throws {FaableApiError} `unauthorized` (401) — The request carries no valid credentials.
327
+ * @throws {FaableApiError} `forbidden` (403) — The credentials are valid but do not allow this operation.
328
+ * @throws {FaableApiError} `insufficient_scope` (403) — The token lacks a scope this operation requires. `message` names it.
329
+ * @throws {FaableApiError} `user_suspended` (403) — The user is suspended and cannot sign in or be modified.
330
+ * @throws {FaableApiError} `account_not_found` (404) — No Auth Account matches the request (domain, header or token).
331
+ * @throws {FaableApiError} `too_many_requests` (429) — Rate limit exceeded. Honour the `Retry-After` header.
332
+ * @throws {FaableApiError} `internal_error` (500) — Unexpected server error. Retry later; the request id is logged.
143
333
  */
144
334
  apiCreate(data) {
145
335
  return this.fetcher.post(`/api`, data);
@@ -148,6 +338,17 @@ export class GeneratedFaableAuthApi extends FaableApi {
148
338
  * `DELETE /api/{api_id}` — operationId: `api/delete`
149
339
  *
150
340
  * Delete Api
341
+ *
342
+ * @throws {FaableApiError} `invalid_id` (400) — The id in the path is not a valid id for this resource.
343
+ * @throws {FaableApiError} `validation_error` (400) — The body, query or path failed schema validation. `details.issues` lists each failing field.
344
+ * @throws {FaableApiError} `unauthorized` (401) — The request carries no valid credentials.
345
+ * @throws {FaableApiError} `forbidden` (403) — The credentials are valid but do not allow this operation.
346
+ * @throws {FaableApiError} `insufficient_scope` (403) — The token lacks a scope this operation requires. `message` names it.
347
+ * @throws {FaableApiError} `user_suspended` (403) — The user is suspended and cannot sign in or be modified.
348
+ * @throws {FaableApiError} `not_found` (404) — The resource does not exist in this account.
349
+ * @throws {FaableApiError} `account_not_found` (404) — No Auth Account matches the request (domain, header or token).
350
+ * @throws {FaableApiError} `too_many_requests` (429) — Rate limit exceeded. Honour the `Retry-After` header.
351
+ * @throws {FaableApiError} `internal_error` (500) — Unexpected server error. Retry later; the request id is logged.
151
352
  */
152
353
  apiDelete(api_id) {
153
354
  requireId("api_id", api_id);
@@ -157,6 +358,18 @@ export class GeneratedFaableAuthApi extends FaableApi {
157
358
  * `GET /api/{api_id}` — operationId: `api/get`
158
359
  *
159
360
  * Get Api
361
+ *
362
+ * @throws {FaableApiError} `invalid_id` (400) — The id in the path is not a valid id for this resource.
363
+ * @throws {FaableApiError} `invalid_expand` (400) — An `?expand=` path is not allowed on this resource.
364
+ * @throws {FaableApiError} `validation_error` (400) — The body, query or path failed schema validation. `details.issues` lists each failing field.
365
+ * @throws {FaableApiError} `unauthorized` (401) — The request carries no valid credentials.
366
+ * @throws {FaableApiError} `forbidden` (403) — The credentials are valid but do not allow this operation.
367
+ * @throws {FaableApiError} `insufficient_scope` (403) — The token lacks a scope this operation requires. `message` names it.
368
+ * @throws {FaableApiError} `user_suspended` (403) — The user is suspended and cannot sign in or be modified.
369
+ * @throws {FaableApiError} `not_found` (404) — The resource does not exist in this account.
370
+ * @throws {FaableApiError} `account_not_found` (404) — No Auth Account matches the request (domain, header or token).
371
+ * @throws {FaableApiError} `too_many_requests` (429) — Rate limit exceeded. Honour the `Retry-After` header.
372
+ * @throws {FaableApiError} `internal_error` (500) — Unexpected server error. Retry later; the request id is logged.
160
373
  */
161
374
  apiGet(api_id) {
162
375
  requireId("api_id", api_id);
@@ -166,6 +379,18 @@ export class GeneratedFaableAuthApi extends FaableApi {
166
379
  * `GET /api` — operationId: `api/list`
167
380
  *
168
381
  * List Apis
382
+ *
383
+ * @throws {FaableApiError} `invalid_query` (400) — The `?query=` FaableQL expression could not be parsed.
384
+ * @throws {FaableApiError} `invalid_expand` (400) — An `?expand=` path is not allowed on this resource.
385
+ * @throws {FaableApiError} `search_not_supported` (400) — This resource does not support `?search=`.
386
+ * @throws {FaableApiError} `validation_error` (400) — The body, query or path failed schema validation. `details.issues` lists each failing field.
387
+ * @throws {FaableApiError} `unauthorized` (401) — The request carries no valid credentials.
388
+ * @throws {FaableApiError} `forbidden` (403) — The credentials are valid but do not allow this operation.
389
+ * @throws {FaableApiError} `insufficient_scope` (403) — The token lacks a scope this operation requires. `message` names it.
390
+ * @throws {FaableApiError} `user_suspended` (403) — The user is suspended and cannot sign in or be modified.
391
+ * @throws {FaableApiError} `account_not_found` (404) — No Auth Account matches the request (domain, header or token).
392
+ * @throws {FaableApiError} `too_many_requests` (429) — Rate limit exceeded. Honour the `Retry-After` header.
393
+ * @throws {FaableApiError} `internal_error` (500) — Unexpected server error. Retry later; the request id is logged.
169
394
  */
170
395
  apiList(params) {
171
396
  return this.paginator({ url: `/api`, params });
@@ -174,6 +399,18 @@ export class GeneratedFaableAuthApi extends FaableApi {
174
399
  * `POST /api/{api_id}` — operationId: `api/update`
175
400
  *
176
401
  * Update Api
402
+ *
403
+ * @throws {FaableApiError} `invalid_id` (400) — The id in the path is not a valid id for this resource.
404
+ * @throws {FaableApiError} `already_exists` (400) — A resource with the same unique field already exists (for a user, usually `email`). `details.fields` names the field.
405
+ * @throws {FaableApiError} `validation_error` (400) — The body, query or path failed schema validation. `details.issues` lists each failing field.
406
+ * @throws {FaableApiError} `unauthorized` (401) — The request carries no valid credentials.
407
+ * @throws {FaableApiError} `forbidden` (403) — The credentials are valid but do not allow this operation.
408
+ * @throws {FaableApiError} `insufficient_scope` (403) — The token lacks a scope this operation requires. `message` names it.
409
+ * @throws {FaableApiError} `user_suspended` (403) — The user is suspended and cannot sign in or be modified.
410
+ * @throws {FaableApiError} `not_found` (404) — The resource does not exist in this account.
411
+ * @throws {FaableApiError} `account_not_found` (404) — No Auth Account matches the request (domain, header or token).
412
+ * @throws {FaableApiError} `too_many_requests` (429) — Rate limit exceeded. Honour the `Retry-After` header.
413
+ * @throws {FaableApiError} `internal_error` (500) — Unexpected server error. Retry later; the request id is logged.
177
414
  */
178
415
  apiUpdate(api_id, data) {
179
416
  requireId("api_id", api_id);
@@ -183,6 +420,16 @@ export class GeneratedFaableAuthApi extends FaableApi {
183
420
  * `POST /client` — operationId: `client/create`
184
421
  *
185
422
  * Create Client
423
+ *
424
+ * @throws {FaableApiError} `already_exists` (400) — A resource with the same unique field already exists (for a user, usually `email`). `details.fields` names the field.
425
+ * @throws {FaableApiError} `validation_error` (400) — The body, query or path failed schema validation. `details.issues` lists each failing field.
426
+ * @throws {FaableApiError} `unauthorized` (401) — The request carries no valid credentials.
427
+ * @throws {FaableApiError} `forbidden` (403) — The credentials are valid but do not allow this operation.
428
+ * @throws {FaableApiError} `insufficient_scope` (403) — The token lacks a scope this operation requires. `message` names it.
429
+ * @throws {FaableApiError} `user_suspended` (403) — The user is suspended and cannot sign in or be modified.
430
+ * @throws {FaableApiError} `account_not_found` (404) — No Auth Account matches the request (domain, header or token).
431
+ * @throws {FaableApiError} `too_many_requests` (429) — Rate limit exceeded. Honour the `Retry-After` header.
432
+ * @throws {FaableApiError} `internal_error` (500) — Unexpected server error. Retry later; the request id is logged.
186
433
  */
187
434
  clientCreate(data) {
188
435
  return this.fetcher.post(`/client`, data);
@@ -191,6 +438,17 @@ export class GeneratedFaableAuthApi extends FaableApi {
191
438
  * `DELETE /client/{client_id}` — operationId: `client/delete`
192
439
  *
193
440
  * Delete Client
441
+ *
442
+ * @throws {FaableApiError} `invalid_id` (400) — The id in the path is not a valid id for this resource.
443
+ * @throws {FaableApiError} `validation_error` (400) — The body, query or path failed schema validation. `details.issues` lists each failing field.
444
+ * @throws {FaableApiError} `unauthorized` (401) — The request carries no valid credentials.
445
+ * @throws {FaableApiError} `forbidden` (403) — The credentials are valid but do not allow this operation.
446
+ * @throws {FaableApiError} `insufficient_scope` (403) — The token lacks a scope this operation requires. `message` names it.
447
+ * @throws {FaableApiError} `user_suspended` (403) — The user is suspended and cannot sign in or be modified.
448
+ * @throws {FaableApiError} `not_found` (404) — The resource does not exist in this account.
449
+ * @throws {FaableApiError} `account_not_found` (404) — No Auth Account matches the request (domain, header or token).
450
+ * @throws {FaableApiError} `too_many_requests` (429) — Rate limit exceeded. Honour the `Retry-After` header.
451
+ * @throws {FaableApiError} `internal_error` (500) — Unexpected server error. Retry later; the request id is logged.
194
452
  */
195
453
  clientDelete(client_id) {
196
454
  requireId("client_id", client_id);
@@ -200,6 +458,18 @@ export class GeneratedFaableAuthApi extends FaableApi {
200
458
  * `GET /client/{client_id}` — operationId: `client/get`
201
459
  *
202
460
  * Get Client
461
+ *
462
+ * @throws {FaableApiError} `invalid_id` (400) — The id in the path is not a valid id for this resource.
463
+ * @throws {FaableApiError} `invalid_expand` (400) — An `?expand=` path is not allowed on this resource.
464
+ * @throws {FaableApiError} `validation_error` (400) — The body, query or path failed schema validation. `details.issues` lists each failing field.
465
+ * @throws {FaableApiError} `unauthorized` (401) — The request carries no valid credentials.
466
+ * @throws {FaableApiError} `forbidden` (403) — The credentials are valid but do not allow this operation.
467
+ * @throws {FaableApiError} `insufficient_scope` (403) — The token lacks a scope this operation requires. `message` names it.
468
+ * @throws {FaableApiError} `user_suspended` (403) — The user is suspended and cannot sign in or be modified.
469
+ * @throws {FaableApiError} `not_found` (404) — The resource does not exist in this account.
470
+ * @throws {FaableApiError} `account_not_found` (404) — No Auth Account matches the request (domain, header or token).
471
+ * @throws {FaableApiError} `too_many_requests` (429) — Rate limit exceeded. Honour the `Retry-After` header.
472
+ * @throws {FaableApiError} `internal_error` (500) — Unexpected server error. Retry later; the request id is logged.
203
473
  */
204
474
  clientGet(client_id) {
205
475
  requireId("client_id", client_id);
@@ -209,6 +479,18 @@ export class GeneratedFaableAuthApi extends FaableApi {
209
479
  * `GET /client` — operationId: `client/list`
210
480
  *
211
481
  * List Clients
482
+ *
483
+ * @throws {FaableApiError} `invalid_query` (400) — The `?query=` FaableQL expression could not be parsed.
484
+ * @throws {FaableApiError} `invalid_expand` (400) — An `?expand=` path is not allowed on this resource.
485
+ * @throws {FaableApiError} `search_not_supported` (400) — This resource does not support `?search=`.
486
+ * @throws {FaableApiError} `validation_error` (400) — The body, query or path failed schema validation. `details.issues` lists each failing field.
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.
212
494
  */
213
495
  clientList(params) {
214
496
  return this.paginator({ url: `/client`, params });
@@ -217,6 +499,19 @@ export class GeneratedFaableAuthApi extends FaableApi {
217
499
  * `POST /client/{client_id}/rotate-secret` — operationId: `client/rotateSecret`
218
500
  *
219
501
  * Rotate a Client's secret
502
+ *
503
+ * 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.
504
+ *
505
+ * @throws {FaableApiError} `validation_error` (400) — The body, query or path failed schema validation. `details.issues` lists each failing field.
506
+ * @throws {FaableApiError} `client_mismatch` (401) — The client belongs to a different account.
507
+ * @throws {FaableApiError} `unauthorized` (401) — The request carries no valid credentials.
508
+ * @throws {FaableApiError} `forbidden` (403) — The credentials are valid but do not allow this operation.
509
+ * @throws {FaableApiError} `insufficient_scope` (403) — The token lacks a scope this operation requires. `message` names it.
510
+ * @throws {FaableApiError} `user_suspended` (403) — The user is suspended and cannot sign in or be modified.
511
+ * @throws {FaableApiError} `client_not_found` (404) — No client with that `client_id`.
512
+ * @throws {FaableApiError} `account_not_found` (404) — No Auth Account matches the request (domain, header or token).
513
+ * @throws {FaableApiError} `too_many_requests` (429) — Rate limit exceeded. Honour the `Retry-After` header.
514
+ * @throws {FaableApiError} `internal_error` (500) — Unexpected server error. Retry later; the request id is logged.
220
515
  */
221
516
  clientRotateSecret(client_id) {
222
517
  requireId("client_id", client_id);
@@ -226,6 +521,18 @@ export class GeneratedFaableAuthApi extends FaableApi {
226
521
  * `POST /client/{client_id}` — operationId: `client/update`
227
522
  *
228
523
  * Update Client
524
+ *
525
+ * @throws {FaableApiError} `invalid_id` (400) — The id in the path is not a valid id for this resource.
526
+ * @throws {FaableApiError} `already_exists` (400) — A resource with the same unique field already exists (for a user, usually `email`). `details.fields` names the field.
527
+ * @throws {FaableApiError} `validation_error` (400) — The body, query or path failed schema validation. `details.issues` lists each failing field.
528
+ * @throws {FaableApiError} `unauthorized` (401) — The request carries no valid credentials.
529
+ * @throws {FaableApiError} `forbidden` (403) — The credentials are valid but do not allow this operation.
530
+ * @throws {FaableApiError} `insufficient_scope` (403) — The token lacks a scope this operation requires. `message` names it.
531
+ * @throws {FaableApiError} `user_suspended` (403) — The user is suspended and cannot sign in or be modified.
532
+ * @throws {FaableApiError} `not_found` (404) — The resource does not exist in this account.
533
+ * @throws {FaableApiError} `account_not_found` (404) — No Auth Account matches the request (domain, header or token).
534
+ * @throws {FaableApiError} `too_many_requests` (429) — Rate limit exceeded. Honour the `Retry-After` header.
535
+ * @throws {FaableApiError} `internal_error` (500) — Unexpected server error. Retry later; the request id is logged.
229
536
  */
230
537
  clientUpdate(client_id, data) {
231
538
  requireId("client_id", client_id);
@@ -235,6 +542,16 @@ export class GeneratedFaableAuthApi extends FaableApi {
235
542
  * `POST /connection` — operationId: `connection/create`
236
543
  *
237
544
  * Create Connection
545
+ *
546
+ * @throws {FaableApiError} `already_exists` (400) — A resource with the same unique field already exists (for a user, usually `email`). `details.fields` names the field.
547
+ * @throws {FaableApiError} `validation_error` (400) — The body, query or path failed schema validation. `details.issues` lists each failing field.
548
+ * @throws {FaableApiError} `unauthorized` (401) — The request carries no valid credentials.
549
+ * @throws {FaableApiError} `forbidden` (403) — The credentials are valid but do not allow this operation.
550
+ * @throws {FaableApiError} `insufficient_scope` (403) — The token lacks a scope this operation requires. `message` names it.
551
+ * @throws {FaableApiError} `user_suspended` (403) — The user is suspended and cannot sign in or be modified.
552
+ * @throws {FaableApiError} `account_not_found` (404) — No Auth Account matches the request (domain, header or token).
553
+ * @throws {FaableApiError} `too_many_requests` (429) — Rate limit exceeded. Honour the `Retry-After` header.
554
+ * @throws {FaableApiError} `internal_error` (500) — Unexpected server error. Retry later; the request id is logged.
238
555
  */
239
556
  connectionCreate(data) {
240
557
  return this.fetcher.post(`/connection`, data);
@@ -243,6 +560,17 @@ export class GeneratedFaableAuthApi extends FaableApi {
243
560
  * `DELETE /connection/{connection_id}` — operationId: `connection/delete`
244
561
  *
245
562
  * Delete Connection
563
+ *
564
+ * @throws {FaableApiError} `invalid_id` (400) — The id in the path is not a valid id for this resource.
565
+ * @throws {FaableApiError} `validation_error` (400) — The body, query or path failed schema validation. `details.issues` lists each failing field.
566
+ * @throws {FaableApiError} `unauthorized` (401) — The request carries no valid credentials.
567
+ * @throws {FaableApiError} `forbidden` (403) — The credentials are valid but do not allow this operation.
568
+ * @throws {FaableApiError} `insufficient_scope` (403) — The token lacks a scope this operation requires. `message` names it.
569
+ * @throws {FaableApiError} `user_suspended` (403) — The user is suspended and cannot sign in or be modified.
570
+ * @throws {FaableApiError} `not_found` (404) — The resource does not exist in this account.
571
+ * @throws {FaableApiError} `account_not_found` (404) — No Auth Account matches the request (domain, header or token).
572
+ * @throws {FaableApiError} `too_many_requests` (429) — Rate limit exceeded. Honour the `Retry-After` header.
573
+ * @throws {FaableApiError} `internal_error` (500) — Unexpected server error. Retry later; the request id is logged.
246
574
  */
247
575
  connectionDelete(connection_id) {
248
576
  requireId("connection_id", connection_id);
@@ -252,6 +580,18 @@ export class GeneratedFaableAuthApi extends FaableApi {
252
580
  * `GET /connection/{connection_id}` — operationId: `connection/get`
253
581
  *
254
582
  * Get Connection
583
+ *
584
+ * @throws {FaableApiError} `invalid_id` (400) — The id in the path is not a valid id for this resource.
585
+ * @throws {FaableApiError} `invalid_expand` (400) — An `?expand=` path is not allowed on this resource.
586
+ * @throws {FaableApiError} `validation_error` (400) — The body, query or path failed schema validation. `details.issues` lists each failing field.
587
+ * @throws {FaableApiError} `unauthorized` (401) — The request carries no valid credentials.
588
+ * @throws {FaableApiError} `forbidden` (403) — The credentials are valid but do not allow this operation.
589
+ * @throws {FaableApiError} `insufficient_scope` (403) — The token lacks a scope this operation requires. `message` names it.
590
+ * @throws {FaableApiError} `user_suspended` (403) — The user is suspended and cannot sign in or be modified.
591
+ * @throws {FaableApiError} `not_found` (404) — The resource does not exist in this account.
592
+ * @throws {FaableApiError} `account_not_found` (404) — No Auth Account matches the request (domain, header or token).
593
+ * @throws {FaableApiError} `too_many_requests` (429) — Rate limit exceeded. Honour the `Retry-After` header.
594
+ * @throws {FaableApiError} `internal_error` (500) — Unexpected server error. Retry later; the request id is logged.
255
595
  */
256
596
  connectionGet(connection_id) {
257
597
  requireId("connection_id", connection_id);
@@ -261,6 +601,18 @@ export class GeneratedFaableAuthApi extends FaableApi {
261
601
  * `GET /connection` — operationId: `connection/list`
262
602
  *
263
603
  * List Connections
604
+ *
605
+ * @throws {FaableApiError} `invalid_query` (400) — The `?query=` FaableQL expression could not be parsed.
606
+ * @throws {FaableApiError} `invalid_expand` (400) — An `?expand=` path is not allowed on this resource.
607
+ * @throws {FaableApiError} `search_not_supported` (400) — This resource does not support `?search=`.
608
+ * @throws {FaableApiError} `validation_error` (400) — The body, query or path failed schema validation. `details.issues` lists each failing field.
609
+ * @throws {FaableApiError} `unauthorized` (401) — The request carries no valid credentials.
610
+ * @throws {FaableApiError} `forbidden` (403) — The credentials are valid but do not allow this operation.
611
+ * @throws {FaableApiError} `insufficient_scope` (403) — The token lacks a scope this operation requires. `message` names it.
612
+ * @throws {FaableApiError} `user_suspended` (403) — The user is suspended and cannot sign in or be modified.
613
+ * @throws {FaableApiError} `account_not_found` (404) — No Auth Account matches the request (domain, header or token).
614
+ * @throws {FaableApiError} `too_many_requests` (429) — Rate limit exceeded. Honour the `Retry-After` header.
615
+ * @throws {FaableApiError} `internal_error` (500) — Unexpected server error. Retry later; the request id is logged.
264
616
  */
265
617
  connectionList(params) {
266
618
  return this.paginator({ url: `/connection`, params });
@@ -269,6 +621,18 @@ export class GeneratedFaableAuthApi extends FaableApi {
269
621
  * `POST /connection/{connection_id}` — operationId: `connection/update`
270
622
  *
271
623
  * Update Connection
624
+ *
625
+ * @throws {FaableApiError} `invalid_id` (400) — The id in the path is not a valid id for this resource.
626
+ * @throws {FaableApiError} `already_exists` (400) — A resource with the same unique field already exists (for a user, usually `email`). `details.fields` names the field.
627
+ * @throws {FaableApiError} `validation_error` (400) — The body, query or path failed schema validation. `details.issues` lists each failing field.
628
+ * @throws {FaableApiError} `unauthorized` (401) — The request carries no valid credentials.
629
+ * @throws {FaableApiError} `forbidden` (403) — The credentials are valid but do not allow this operation.
630
+ * @throws {FaableApiError} `insufficient_scope` (403) — The token lacks a scope this operation requires. `message` names it.
631
+ * @throws {FaableApiError} `user_suspended` (403) — The user is suspended and cannot sign in or be modified.
632
+ * @throws {FaableApiError} `not_found` (404) — The resource does not exist in this account.
633
+ * @throws {FaableApiError} `account_not_found` (404) — No Auth Account matches the request (domain, header or token).
634
+ * @throws {FaableApiError} `too_many_requests` (429) — Rate limit exceeded. Honour the `Retry-After` header.
635
+ * @throws {FaableApiError} `internal_error` (500) — Unexpected server error. Retry later; the request id is logged.
272
636
  */
273
637
  connectionUpdate(connection_id, data) {
274
638
  requireId("connection_id", connection_id);
@@ -278,6 +642,16 @@ export class GeneratedFaableAuthApi extends FaableApi {
278
642
  * `POST /credentials` — operationId: `credentials/create`
279
643
  *
280
644
  * Create Credentials
645
+ *
646
+ * @throws {FaableApiError} `already_exists` (400) — A resource with the same unique field already exists (for a user, usually `email`). `details.fields` names the field.
647
+ * @throws {FaableApiError} `validation_error` (400) — The body, query or path failed schema validation. `details.issues` lists each failing field.
648
+ * @throws {FaableApiError} `unauthorized` (401) — The request carries no valid credentials.
649
+ * @throws {FaableApiError} `forbidden` (403) — The credentials are valid but do not allow this operation.
650
+ * @throws {FaableApiError} `insufficient_scope` (403) — The token lacks a scope this operation requires. `message` names it.
651
+ * @throws {FaableApiError} `user_suspended` (403) — The user is suspended and cannot sign in or be modified.
652
+ * @throws {FaableApiError} `account_not_found` (404) — No Auth Account matches the request (domain, header or token).
653
+ * @throws {FaableApiError} `too_many_requests` (429) — Rate limit exceeded. Honour the `Retry-After` header.
654
+ * @throws {FaableApiError} `internal_error` (500) — Unexpected server error. Retry later; the request id is logged.
281
655
  */
282
656
  credentialsCreate(data) {
283
657
  return this.fetcher.post(`/credentials`, data);
@@ -286,6 +660,17 @@ export class GeneratedFaableAuthApi extends FaableApi {
286
660
  * `DELETE /credentials/{credentials_id}` — operationId: `credentials/delete`
287
661
  *
288
662
  * Delete Credentials
663
+ *
664
+ * @throws {FaableApiError} `invalid_id` (400) — The id in the path is not a valid id for this resource.
665
+ * @throws {FaableApiError} `validation_error` (400) — The body, query or path failed schema validation. `details.issues` lists each failing field.
666
+ * @throws {FaableApiError} `unauthorized` (401) — The request carries no valid credentials.
667
+ * @throws {FaableApiError} `forbidden` (403) — The credentials are valid but do not allow this operation.
668
+ * @throws {FaableApiError} `insufficient_scope` (403) — The token lacks a scope this operation requires. `message` names it.
669
+ * @throws {FaableApiError} `user_suspended` (403) — The user is suspended and cannot sign in or be modified.
670
+ * @throws {FaableApiError} `not_found` (404) — The resource does not exist in this account.
671
+ * @throws {FaableApiError} `account_not_found` (404) — No Auth Account matches the request (domain, header or token).
672
+ * @throws {FaableApiError} `too_many_requests` (429) — Rate limit exceeded. Honour the `Retry-After` header.
673
+ * @throws {FaableApiError} `internal_error` (500) — Unexpected server error. Retry later; the request id is logged.
289
674
  */
290
675
  credentialsDelete(credentials_id) {
291
676
  requireId("credentials_id", credentials_id);
@@ -295,6 +680,18 @@ export class GeneratedFaableAuthApi extends FaableApi {
295
680
  * `GET /credentials/{credentials_id}` — operationId: `credentials/get`
296
681
  *
297
682
  * Get Credentials
683
+ *
684
+ * @throws {FaableApiError} `invalid_id` (400) — The id in the path is not a valid id for this resource.
685
+ * @throws {FaableApiError} `invalid_expand` (400) — An `?expand=` path is not allowed on this resource.
686
+ * @throws {FaableApiError} `validation_error` (400) — The body, query or path failed schema validation. `details.issues` lists each failing field.
687
+ * @throws {FaableApiError} `unauthorized` (401) — The request carries no valid credentials.
688
+ * @throws {FaableApiError} `forbidden` (403) — The credentials are valid but do not allow this operation.
689
+ * @throws {FaableApiError} `insufficient_scope` (403) — The token lacks a scope this operation requires. `message` names it.
690
+ * @throws {FaableApiError} `user_suspended` (403) — The user is suspended and cannot sign in or be modified.
691
+ * @throws {FaableApiError} `not_found` (404) — The resource does not exist in this account.
692
+ * @throws {FaableApiError} `account_not_found` (404) — No Auth Account matches the request (domain, header or token).
693
+ * @throws {FaableApiError} `too_many_requests` (429) — Rate limit exceeded. Honour the `Retry-After` header.
694
+ * @throws {FaableApiError} `internal_error` (500) — Unexpected server error. Retry later; the request id is logged.
298
695
  */
299
696
  credentialsGet(credentials_id, params) {
300
697
  requireId("credentials_id", credentials_id);
@@ -304,6 +701,18 @@ export class GeneratedFaableAuthApi extends FaableApi {
304
701
  * `GET /credentials` — operationId: `credentials/list`
305
702
  *
306
703
  * List Credentialss
704
+ *
705
+ * @throws {FaableApiError} `invalid_query` (400) — The `?query=` FaableQL expression could not be parsed.
706
+ * @throws {FaableApiError} `invalid_expand` (400) — An `?expand=` path is not allowed on this resource.
707
+ * @throws {FaableApiError} `search_not_supported` (400) — This resource does not support `?search=`.
708
+ * @throws {FaableApiError} `validation_error` (400) — The body, query or path failed schema validation. `details.issues` lists each failing field.
709
+ * @throws {FaableApiError} `unauthorized` (401) — The request carries no valid credentials.
710
+ * @throws {FaableApiError} `forbidden` (403) — The credentials are valid but do not allow this operation.
711
+ * @throws {FaableApiError} `insufficient_scope` (403) — The token lacks a scope this operation requires. `message` names it.
712
+ * @throws {FaableApiError} `user_suspended` (403) — The user is suspended and cannot sign in or be modified.
713
+ * @throws {FaableApiError} `account_not_found` (404) — No Auth Account matches the request (domain, header or token).
714
+ * @throws {FaableApiError} `too_many_requests` (429) — Rate limit exceeded. Honour the `Retry-After` header.
715
+ * @throws {FaableApiError} `internal_error` (500) — Unexpected server error. Retry later; the request id is logged.
307
716
  */
308
717
  credentialsList(params) {
309
718
  return this.paginator({ url: `/credentials`, params });
@@ -312,6 +721,17 @@ export class GeneratedFaableAuthApi extends FaableApi {
312
721
  * `POST /credentials/{credentials_id}/set-password` — operationId: `credentials/setPassword`
313
722
  *
314
723
  * Set a credential's password
724
+ *
725
+ * 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.
726
+ *
727
+ * @throws {FaableApiError} `validation_error` (400) — The body, query or path failed schema validation. `details.issues` lists each failing field.
728
+ * @throws {FaableApiError} `unauthorized` (401) — The request carries no valid credentials.
729
+ * @throws {FaableApiError} `forbidden` (403) — The credentials are valid but do not allow this operation.
730
+ * @throws {FaableApiError} `insufficient_scope` (403) — The token lacks a scope this operation requires. `message` names it.
731
+ * @throws {FaableApiError} `user_suspended` (403) — The user is suspended and cannot sign in or be modified.
732
+ * @throws {FaableApiError} `account_not_found` (404) — No Auth Account matches the request (domain, header or token).
733
+ * @throws {FaableApiError} `too_many_requests` (429) — Rate limit exceeded. Honour the `Retry-After` header.
734
+ * @throws {FaableApiError} `internal_error` (500) — Unexpected server error. Retry later; the request id is logged.
315
735
  */
316
736
  credentialsSetPassword(credentials_id, data) {
317
737
  requireId("credentials_id", credentials_id);
@@ -321,6 +741,18 @@ export class GeneratedFaableAuthApi extends FaableApi {
321
741
  * `POST /credentials/{credentials_id}` — operationId: `credentials/update`
322
742
  *
323
743
  * Update Credentials
744
+ *
745
+ * @throws {FaableApiError} `invalid_id` (400) — The id in the path is not a valid id for this resource.
746
+ * @throws {FaableApiError} `already_exists` (400) — A resource with the same unique field already exists (for a user, usually `email`). `details.fields` names the field.
747
+ * @throws {FaableApiError} `validation_error` (400) — The body, query or path failed schema validation. `details.issues` lists each failing field.
748
+ * @throws {FaableApiError} `unauthorized` (401) — The request carries no valid credentials.
749
+ * @throws {FaableApiError} `forbidden` (403) — The credentials are valid but do not allow this operation.
750
+ * @throws {FaableApiError} `insufficient_scope` (403) — The token lacks a scope this operation requires. `message` names it.
751
+ * @throws {FaableApiError} `user_suspended` (403) — The user is suspended and cannot sign in or be modified.
752
+ * @throws {FaableApiError} `not_found` (404) — The resource does not exist in this account.
753
+ * @throws {FaableApiError} `account_not_found` (404) — No Auth Account matches the request (domain, header or token).
754
+ * @throws {FaableApiError} `too_many_requests` (429) — Rate limit exceeded. Honour the `Retry-After` header.
755
+ * @throws {FaableApiError} `internal_error` (500) — Unexpected server error. Retry later; the request id is logged.
324
756
  */
325
757
  credentialsUpdate(credentials_id, data) {
326
758
  requireId("credentials_id", credentials_id);
@@ -330,6 +762,16 @@ export class GeneratedFaableAuthApi extends FaableApi {
330
762
  * `POST /customdomain` — operationId: `customdomain/create`
331
763
  *
332
764
  * Create Customdomain
765
+ *
766
+ * @throws {FaableApiError} `already_exists` (400) — A resource with the same unique field already exists (for a user, usually `email`). `details.fields` names the field.
767
+ * @throws {FaableApiError} `validation_error` (400) — The body, query or path failed schema validation. `details.issues` lists each failing field.
768
+ * @throws {FaableApiError} `unauthorized` (401) — The request carries no valid credentials.
769
+ * @throws {FaableApiError} `forbidden` (403) — The credentials are valid but do not allow this operation.
770
+ * @throws {FaableApiError} `insufficient_scope` (403) — The token lacks a scope this operation requires. `message` names it.
771
+ * @throws {FaableApiError} `user_suspended` (403) — The user is suspended and cannot sign in or be modified.
772
+ * @throws {FaableApiError} `account_not_found` (404) — No Auth Account matches the request (domain, header or token).
773
+ * @throws {FaableApiError} `too_many_requests` (429) — Rate limit exceeded. Honour the `Retry-After` header.
774
+ * @throws {FaableApiError} `internal_error` (500) — Unexpected server error. Retry later; the request id is logged.
333
775
  */
334
776
  customdomainCreate(data) {
335
777
  return this.fetcher.post(`/customdomain`, data);
@@ -338,6 +780,17 @@ export class GeneratedFaableAuthApi extends FaableApi {
338
780
  * `DELETE /customdomain/{customdomain_id}` — operationId: `customdomain/delete`
339
781
  *
340
782
  * Delete Customdomain
783
+ *
784
+ * @throws {FaableApiError} `invalid_id` (400) — The id in the path is not a valid id for this resource.
785
+ * @throws {FaableApiError} `validation_error` (400) — The body, query or path failed schema validation. `details.issues` lists each failing field.
786
+ * @throws {FaableApiError} `unauthorized` (401) — The request carries no valid credentials.
787
+ * @throws {FaableApiError} `forbidden` (403) — The credentials are valid but do not allow this operation.
788
+ * @throws {FaableApiError} `insufficient_scope` (403) — The token lacks a scope this operation requires. `message` names it.
789
+ * @throws {FaableApiError} `user_suspended` (403) — The user is suspended and cannot sign in or be modified.
790
+ * @throws {FaableApiError} `not_found` (404) — The resource does not exist in this account.
791
+ * @throws {FaableApiError} `account_not_found` (404) — No Auth Account matches the request (domain, header or token).
792
+ * @throws {FaableApiError} `too_many_requests` (429) — Rate limit exceeded. Honour the `Retry-After` header.
793
+ * @throws {FaableApiError} `internal_error` (500) — Unexpected server error. Retry later; the request id is logged.
341
794
  */
342
795
  customdomainDelete(customdomain_id) {
343
796
  requireId("customdomain_id", customdomain_id);
@@ -347,6 +800,18 @@ export class GeneratedFaableAuthApi extends FaableApi {
347
800
  * `GET /customdomain/{customdomain_id}` — operationId: `customdomain/get`
348
801
  *
349
802
  * Get Customdomain
803
+ *
804
+ * @throws {FaableApiError} `invalid_id` (400) — The id in the path is not a valid id for this resource.
805
+ * @throws {FaableApiError} `invalid_expand` (400) — An `?expand=` path is not allowed on this resource.
806
+ * @throws {FaableApiError} `validation_error` (400) — The body, query or path failed schema validation. `details.issues` lists each failing field.
807
+ * @throws {FaableApiError} `unauthorized` (401) — The request carries no valid credentials.
808
+ * @throws {FaableApiError} `forbidden` (403) — The credentials are valid but do not allow this operation.
809
+ * @throws {FaableApiError} `insufficient_scope` (403) — The token lacks a scope this operation requires. `message` names it.
810
+ * @throws {FaableApiError} `user_suspended` (403) — The user is suspended and cannot sign in or be modified.
811
+ * @throws {FaableApiError} `not_found` (404) — The resource does not exist in this account.
812
+ * @throws {FaableApiError} `account_not_found` (404) — No Auth Account matches the request (domain, header or token).
813
+ * @throws {FaableApiError} `too_many_requests` (429) — Rate limit exceeded. Honour the `Retry-After` header.
814
+ * @throws {FaableApiError} `internal_error` (500) — Unexpected server error. Retry later; the request id is logged.
350
815
  */
351
816
  customdomainGet(customdomain_id) {
352
817
  requireId("customdomain_id", customdomain_id);
@@ -356,6 +821,18 @@ export class GeneratedFaableAuthApi extends FaableApi {
356
821
  * `GET /customdomain` — operationId: `customdomain/list`
357
822
  *
358
823
  * List Customdomains
824
+ *
825
+ * @throws {FaableApiError} `invalid_query` (400) — The `?query=` FaableQL expression could not be parsed.
826
+ * @throws {FaableApiError} `invalid_expand` (400) — An `?expand=` path is not allowed on this resource.
827
+ * @throws {FaableApiError} `search_not_supported` (400) — This resource does not support `?search=`.
828
+ * @throws {FaableApiError} `validation_error` (400) — The body, query or path failed schema validation. `details.issues` lists each failing field.
829
+ * @throws {FaableApiError} `unauthorized` (401) — The request carries no valid credentials.
830
+ * @throws {FaableApiError} `forbidden` (403) — The credentials are valid but do not allow this operation.
831
+ * @throws {FaableApiError} `insufficient_scope` (403) — The token lacks a scope this operation requires. `message` names it.
832
+ * @throws {FaableApiError} `user_suspended` (403) — The user is suspended and cannot sign in or be modified.
833
+ * @throws {FaableApiError} `account_not_found` (404) — No Auth Account matches the request (domain, header or token).
834
+ * @throws {FaableApiError} `too_many_requests` (429) — Rate limit exceeded. Honour the `Retry-After` header.
835
+ * @throws {FaableApiError} `internal_error` (500) — Unexpected server error. Retry later; the request id is logged.
359
836
  */
360
837
  customdomainList(params) {
361
838
  return this.paginator({ url: `/customdomain`, params });
@@ -364,6 +841,17 @@ export class GeneratedFaableAuthApi extends FaableApi {
364
841
  * `POST /customdomain/{customdomain_id}/retry` — operationId: `customdomain/retry`
365
842
  *
366
843
  * Trigger a domain verification check now
844
+ *
845
+ * 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.
846
+ *
847
+ * @throws {FaableApiError} `validation_error` (400) — The body, query or path failed schema validation. `details.issues` lists each failing field.
848
+ * @throws {FaableApiError} `unauthorized` (401) — The request carries no valid credentials.
849
+ * @throws {FaableApiError} `forbidden` (403) — The credentials are valid but do not allow this operation.
850
+ * @throws {FaableApiError} `insufficient_scope` (403) — The token lacks a scope this operation requires. `message` names it.
851
+ * @throws {FaableApiError} `user_suspended` (403) — The user is suspended and cannot sign in or be modified.
852
+ * @throws {FaableApiError} `account_not_found` (404) — No Auth Account matches the request (domain, header or token).
853
+ * @throws {FaableApiError} `too_many_requests` (429) — Rate limit exceeded. Honour the `Retry-After` header.
854
+ * @throws {FaableApiError} `internal_error` (500) — Unexpected server error. Retry later; the request id is logged.
367
855
  */
368
856
  customdomainRetry(customdomain_id) {
369
857
  requireId("customdomain_id", customdomain_id);
@@ -373,6 +861,16 @@ export class GeneratedFaableAuthApi extends FaableApi {
373
861
  * `POST /identity` — operationId: `identity/create`
374
862
  *
375
863
  * Create Identity
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.
376
874
  */
377
875
  identityCreate(data) {
378
876
  return this.fetcher.post(`/identity`, data);
@@ -381,6 +879,17 @@ export class GeneratedFaableAuthApi extends FaableApi {
381
879
  * `DELETE /identity/{identity_id}` — operationId: `identity/delete`
382
880
  *
383
881
  * Delete Identity
882
+ *
883
+ * @throws {FaableApiError} `invalid_id` (400) — The id in the path is not a valid id for this resource.
884
+ * @throws {FaableApiError} `validation_error` (400) — The body, query or path failed schema validation. `details.issues` lists each failing field.
885
+ * @throws {FaableApiError} `unauthorized` (401) — The request carries no valid credentials.
886
+ * @throws {FaableApiError} `forbidden` (403) — The credentials are valid but do not allow this operation.
887
+ * @throws {FaableApiError} `insufficient_scope` (403) — The token lacks a scope this operation requires. `message` names it.
888
+ * @throws {FaableApiError} `user_suspended` (403) — The user is suspended and cannot sign in or be modified.
889
+ * @throws {FaableApiError} `not_found` (404) — The resource does not exist in this account.
890
+ * @throws {FaableApiError} `account_not_found` (404) — No Auth Account matches the request (domain, header or token).
891
+ * @throws {FaableApiError} `too_many_requests` (429) — Rate limit exceeded. Honour the `Retry-After` header.
892
+ * @throws {FaableApiError} `internal_error` (500) — Unexpected server error. Retry later; the request id is logged.
384
893
  */
385
894
  identityDelete(identity_id) {
386
895
  requireId("identity_id", identity_id);
@@ -390,6 +899,18 @@ export class GeneratedFaableAuthApi extends FaableApi {
390
899
  * `GET /identity/{identity_id}` — operationId: `identity/get`
391
900
  *
392
901
  * Get Identity
902
+ *
903
+ * @throws {FaableApiError} `invalid_id` (400) — The id in the path is not a valid id for this resource.
904
+ * @throws {FaableApiError} `invalid_expand` (400) — An `?expand=` path is not allowed on this resource.
905
+ * @throws {FaableApiError} `validation_error` (400) — The body, query or path failed schema validation. `details.issues` lists each failing field.
906
+ * @throws {FaableApiError} `unauthorized` (401) — The request carries no valid credentials.
907
+ * @throws {FaableApiError} `forbidden` (403) — The credentials are valid but do not allow this operation.
908
+ * @throws {FaableApiError} `insufficient_scope` (403) — The token lacks a scope this operation requires. `message` names it.
909
+ * @throws {FaableApiError} `user_suspended` (403) — The user is suspended and cannot sign in or be modified.
910
+ * @throws {FaableApiError} `not_found` (404) — The resource does not exist in this account.
911
+ * @throws {FaableApiError} `account_not_found` (404) — No Auth Account matches the request (domain, header or token).
912
+ * @throws {FaableApiError} `too_many_requests` (429) — Rate limit exceeded. Honour the `Retry-After` header.
913
+ * @throws {FaableApiError} `internal_error` (500) — Unexpected server error. Retry later; the request id is logged.
393
914
  */
394
915
  identityGet(identity_id, params) {
395
916
  requireId("identity_id", identity_id);
@@ -399,6 +920,21 @@ export class GeneratedFaableAuthApi extends FaableApi {
399
920
  * `GET /identity/{identity_id}/provider-token` — operationId: `identity/getProviderToken`
400
921
  *
401
922
  * Get a guaranteed-valid provider access_token
923
+ *
924
+ * 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).
925
+ *
926
+ * @throws {FaableApiError} `connection_misconfigured` (400) — The connection is missing settings needed to talk to its provider.
927
+ * @throws {FaableApiError} `no_provider_token` (400) — The identity holds no provider access token.
928
+ * @throws {FaableApiError} `no_refresh_token` (400) — The identity holds no provider refresh token, so it cannot be refreshed.
929
+ * @throws {FaableApiError} `provider_error` (400) — The upstream identity provider returned an error. `message` carries it.
930
+ * @throws {FaableApiError} `validation_error` (400) — The body, query or path failed schema validation. `details.issues` lists each failing field.
931
+ * @throws {FaableApiError} `unauthorized` (401) — The request carries no valid credentials.
932
+ * @throws {FaableApiError} `forbidden` (403) — The credentials are valid but do not allow this operation.
933
+ * @throws {FaableApiError} `insufficient_scope` (403) — The token lacks a scope this operation requires. `message` names it.
934
+ * @throws {FaableApiError} `user_suspended` (403) — The user is suspended and cannot sign in or be modified.
935
+ * @throws {FaableApiError} `account_not_found` (404) — No Auth Account matches the request (domain, header or token).
936
+ * @throws {FaableApiError} `too_many_requests` (429) — Rate limit exceeded. Honour the `Retry-After` header.
937
+ * @throws {FaableApiError} `internal_error` (500) — Unexpected server error. Retry later; the request id is logged.
402
938
  */
403
939
  identityGetProviderToken(identity_id, params) {
404
940
  requireId("identity_id", identity_id);
@@ -408,6 +944,18 @@ export class GeneratedFaableAuthApi extends FaableApi {
408
944
  * `GET /identity` — operationId: `identity/list`
409
945
  *
410
946
  * List Identitys
947
+ *
948
+ * @throws {FaableApiError} `invalid_query` (400) — The `?query=` FaableQL expression could not be parsed.
949
+ * @throws {FaableApiError} `invalid_expand` (400) — An `?expand=` path is not allowed on this resource.
950
+ * @throws {FaableApiError} `search_not_supported` (400) — This resource does not support `?search=`.
951
+ * @throws {FaableApiError} `validation_error` (400) — The body, query or path failed schema validation. `details.issues` lists each failing field.
952
+ * @throws {FaableApiError} `unauthorized` (401) — The request carries no valid credentials.
953
+ * @throws {FaableApiError} `forbidden` (403) — The credentials are valid but do not allow this operation.
954
+ * @throws {FaableApiError} `insufficient_scope` (403) — The token lacks a scope this operation requires. `message` names it.
955
+ * @throws {FaableApiError} `user_suspended` (403) — The user is suspended and cannot sign in or be modified.
956
+ * @throws {FaableApiError} `account_not_found` (404) — No Auth Account matches the request (domain, header or token).
957
+ * @throws {FaableApiError} `too_many_requests` (429) — Rate limit exceeded. Honour the `Retry-After` header.
958
+ * @throws {FaableApiError} `internal_error` (500) — Unexpected server error. Retry later; the request id is logged.
411
959
  */
412
960
  identityList(params) {
413
961
  return this.paginator({ url: `/identity`, params });
@@ -416,6 +964,17 @@ export class GeneratedFaableAuthApi extends FaableApi {
416
964
  * `GET /internal/usage/sms` — operationId: `internal/smsUsage`
417
965
  *
418
966
  * SMS sent per tenant in a month (platform)
967
+ *
968
+ * 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`.
969
+ *
970
+ * @throws {FaableApiError} `validation_error` (400) — The body, query or path failed schema validation. `details.issues` lists each failing field.
971
+ * @throws {FaableApiError} `unauthorized` (401) — The request carries no valid credentials.
972
+ * @throws {FaableApiError} `forbidden` (403) — The credentials are valid but do not allow this operation.
973
+ * @throws {FaableApiError} `insufficient_scope` (403) — The token lacks a scope this operation requires. `message` names it.
974
+ * @throws {FaableApiError} `user_suspended` (403) — The user is suspended and cannot sign in or be modified.
975
+ * @throws {FaableApiError} `account_not_found` (404) — No Auth Account matches the request (domain, header or token).
976
+ * @throws {FaableApiError} `too_many_requests` (429) — Rate limit exceeded. Honour the `Retry-After` header.
977
+ * @throws {FaableApiError} `internal_error` (500) — Unexpected server error. Retry later; the request id is logged.
419
978
  */
420
979
  internalSmsUsage(params) {
421
980
  return this.fetcher.request({ method: "GET", url: `/internal/usage/sms`, params });
@@ -424,6 +983,18 @@ export class GeneratedFaableAuthApi extends FaableApi {
424
983
  * `GET /log/{log_id}` — operationId: `log/get`
425
984
  *
426
985
  * Get Log
986
+ *
987
+ * @throws {FaableApiError} `invalid_id` (400) — The id in the path is not a valid id for this resource.
988
+ * @throws {FaableApiError} `invalid_expand` (400) — An `?expand=` path is not allowed on this resource.
989
+ * @throws {FaableApiError} `validation_error` (400) — The body, query or path failed schema validation. `details.issues` lists each failing field.
990
+ * @throws {FaableApiError} `unauthorized` (401) — The request carries no valid credentials.
991
+ * @throws {FaableApiError} `forbidden` (403) — The credentials are valid but do not allow this operation.
992
+ * @throws {FaableApiError} `insufficient_scope` (403) — The token lacks a scope this operation requires. `message` names it.
993
+ * @throws {FaableApiError} `user_suspended` (403) — The user is suspended and cannot sign in or be modified.
994
+ * @throws {FaableApiError} `not_found` (404) — The resource does not exist in this account.
995
+ * @throws {FaableApiError} `account_not_found` (404) — No Auth Account matches the request (domain, header or token).
996
+ * @throws {FaableApiError} `too_many_requests` (429) — Rate limit exceeded. Honour the `Retry-After` header.
997
+ * @throws {FaableApiError} `internal_error` (500) — Unexpected server error. Retry later; the request id is logged.
427
998
  */
428
999
  logGet(log_id, params) {
429
1000
  requireId("log_id", log_id);
@@ -433,6 +1004,18 @@ export class GeneratedFaableAuthApi extends FaableApi {
433
1004
  * `GET /log` — operationId: `log/list`
434
1005
  *
435
1006
  * List Logs
1007
+ *
1008
+ * @throws {FaableApiError} `invalid_query` (400) — The `?query=` FaableQL expression could not be parsed.
1009
+ * @throws {FaableApiError} `invalid_expand` (400) — An `?expand=` path is not allowed on this resource.
1010
+ * @throws {FaableApiError} `search_not_supported` (400) — This resource does not support `?search=`.
1011
+ * @throws {FaableApiError} `validation_error` (400) — The body, query or path failed schema validation. `details.issues` lists each failing field.
1012
+ * @throws {FaableApiError} `unauthorized` (401) — The request carries no valid credentials.
1013
+ * @throws {FaableApiError} `forbidden` (403) — The credentials are valid but do not allow this operation.
1014
+ * @throws {FaableApiError} `insufficient_scope` (403) — The token lacks a scope this operation requires. `message` names it.
1015
+ * @throws {FaableApiError} `user_suspended` (403) — The user is suspended and cannot sign in or be modified.
1016
+ * @throws {FaableApiError} `account_not_found` (404) — No Auth Account matches the request (domain, header or token).
1017
+ * @throws {FaableApiError} `too_many_requests` (429) — Rate limit exceeded. Honour the `Retry-After` header.
1018
+ * @throws {FaableApiError} `internal_error` (500) — Unexpected server error. Retry later; the request id is logged.
436
1019
  */
437
1020
  logList(params) {
438
1021
  return this.paginator({ url: `/log`, params });
@@ -441,6 +1024,16 @@ export class GeneratedFaableAuthApi extends FaableApi {
441
1024
  * `POST /loginflow` — operationId: `loginflow/create`
442
1025
  *
443
1026
  * Create Loginflow
1027
+ *
1028
+ * @throws {FaableApiError} `already_exists` (400) — A resource with the same unique field already exists (for a user, usually `email`). `details.fields` names the field.
1029
+ * @throws {FaableApiError} `validation_error` (400) — The body, query or path failed schema validation. `details.issues` lists each failing field.
1030
+ * @throws {FaableApiError} `unauthorized` (401) — The request carries no valid credentials.
1031
+ * @throws {FaableApiError} `forbidden` (403) — The credentials are valid but do not allow this operation.
1032
+ * @throws {FaableApiError} `insufficient_scope` (403) — The token lacks a scope this operation requires. `message` names it.
1033
+ * @throws {FaableApiError} `user_suspended` (403) — The user is suspended and cannot sign in or be modified.
1034
+ * @throws {FaableApiError} `account_not_found` (404) — No Auth Account matches the request (domain, header or token).
1035
+ * @throws {FaableApiError} `too_many_requests` (429) — Rate limit exceeded. Honour the `Retry-After` header.
1036
+ * @throws {FaableApiError} `internal_error` (500) — Unexpected server error. Retry later; the request id is logged.
444
1037
  */
445
1038
  loginflowCreate(data) {
446
1039
  return this.fetcher.post(`/loginflow`, data);
@@ -449,6 +1042,17 @@ export class GeneratedFaableAuthApi extends FaableApi {
449
1042
  * `DELETE /loginflow/{loginflow_id}` — operationId: `loginflow/delete`
450
1043
  *
451
1044
  * Delete Loginflow
1045
+ *
1046
+ * @throws {FaableApiError} `invalid_id` (400) — The id in the path is not a valid id for this resource.
1047
+ * @throws {FaableApiError} `validation_error` (400) — The body, query or path failed schema validation. `details.issues` lists each failing field.
1048
+ * @throws {FaableApiError} `unauthorized` (401) — The request carries no valid credentials.
1049
+ * @throws {FaableApiError} `forbidden` (403) — The credentials are valid but do not allow this operation.
1050
+ * @throws {FaableApiError} `insufficient_scope` (403) — The token lacks a scope this operation requires. `message` names it.
1051
+ * @throws {FaableApiError} `user_suspended` (403) — The user is suspended and cannot sign in or be modified.
1052
+ * @throws {FaableApiError} `not_found` (404) — The resource does not exist in this account.
1053
+ * @throws {FaableApiError} `account_not_found` (404) — No Auth Account matches the request (domain, header or token).
1054
+ * @throws {FaableApiError} `too_many_requests` (429) — Rate limit exceeded. Honour the `Retry-After` header.
1055
+ * @throws {FaableApiError} `internal_error` (500) — Unexpected server error. Retry later; the request id is logged.
452
1056
  */
453
1057
  loginflowDelete(loginflow_id) {
454
1058
  requireId("loginflow_id", loginflow_id);
@@ -458,6 +1062,18 @@ export class GeneratedFaableAuthApi extends FaableApi {
458
1062
  * `GET /loginflow/{loginflow_id}` — operationId: `loginflow/get`
459
1063
  *
460
1064
  * Get Loginflow
1065
+ *
1066
+ * @throws {FaableApiError} `invalid_id` (400) — The id in the path is not a valid id for this resource.
1067
+ * @throws {FaableApiError} `invalid_expand` (400) — An `?expand=` path is not allowed on this resource.
1068
+ * @throws {FaableApiError} `validation_error` (400) — The body, query or path failed schema validation. `details.issues` lists each failing field.
1069
+ * @throws {FaableApiError} `unauthorized` (401) — The request carries no valid credentials.
1070
+ * @throws {FaableApiError} `forbidden` (403) — The credentials are valid but do not allow this operation.
1071
+ * @throws {FaableApiError} `insufficient_scope` (403) — The token lacks a scope this operation requires. `message` names it.
1072
+ * @throws {FaableApiError} `user_suspended` (403) — The user is suspended and cannot sign in or be modified.
1073
+ * @throws {FaableApiError} `not_found` (404) — The resource does not exist in this account.
1074
+ * @throws {FaableApiError} `account_not_found` (404) — No Auth Account matches the request (domain, header or token).
1075
+ * @throws {FaableApiError} `too_many_requests` (429) — Rate limit exceeded. Honour the `Retry-After` header.
1076
+ * @throws {FaableApiError} `internal_error` (500) — Unexpected server error. Retry later; the request id is logged.
461
1077
  */
462
1078
  loginflowGet(loginflow_id) {
463
1079
  requireId("loginflow_id", loginflow_id);
@@ -467,6 +1083,18 @@ export class GeneratedFaableAuthApi extends FaableApi {
467
1083
  * `GET /loginflow` — operationId: `loginflow/list`
468
1084
  *
469
1085
  * List Loginflows
1086
+ *
1087
+ * @throws {FaableApiError} `invalid_query` (400) — The `?query=` FaableQL expression could not be parsed.
1088
+ * @throws {FaableApiError} `invalid_expand` (400) — An `?expand=` path is not allowed on this resource.
1089
+ * @throws {FaableApiError} `search_not_supported` (400) — This resource does not support `?search=`.
1090
+ * @throws {FaableApiError} `validation_error` (400) — The body, query or path failed schema validation. `details.issues` lists each failing field.
1091
+ * @throws {FaableApiError} `unauthorized` (401) — The request carries no valid credentials.
1092
+ * @throws {FaableApiError} `forbidden` (403) — The credentials are valid but do not allow this operation.
1093
+ * @throws {FaableApiError} `insufficient_scope` (403) — The token lacks a scope this operation requires. `message` names it.
1094
+ * @throws {FaableApiError} `user_suspended` (403) — The user is suspended and cannot sign in or be modified.
1095
+ * @throws {FaableApiError} `account_not_found` (404) — No Auth Account matches the request (domain, header or token).
1096
+ * @throws {FaableApiError} `too_many_requests` (429) — Rate limit exceeded. Honour the `Retry-After` header.
1097
+ * @throws {FaableApiError} `internal_error` (500) — Unexpected server error. Retry later; the request id is logged.
470
1098
  */
471
1099
  loginflowList(params) {
472
1100
  return this.paginator({ url: `/loginflow`, params });
@@ -475,6 +1103,17 @@ export class GeneratedFaableAuthApi extends FaableApi {
475
1103
  * `POST /loginflow/materialize` — operationId: `loginflow/materialize`
476
1104
  *
477
1105
  * Start a custom flow from what runs today
1106
+ *
1107
+ * 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.
1108
+ *
1109
+ * @throws {FaableApiError} `validation_error` (400) — The body, query or path failed schema validation. `details.issues` lists each failing field.
1110
+ * @throws {FaableApiError} `unauthorized` (401) — The request carries no valid credentials.
1111
+ * @throws {FaableApiError} `forbidden` (403) — The credentials are valid but do not allow this operation.
1112
+ * @throws {FaableApiError} `insufficient_scope` (403) — The token lacks a scope this operation requires. `message` names it.
1113
+ * @throws {FaableApiError} `user_suspended` (403) — The user is suspended and cannot sign in or be modified.
1114
+ * @throws {FaableApiError} `account_not_found` (404) — No Auth Account matches the request (domain, header or token).
1115
+ * @throws {FaableApiError} `too_many_requests` (429) — Rate limit exceeded. Honour the `Retry-After` header.
1116
+ * @throws {FaableApiError} `internal_error` (500) — Unexpected server error. Retry later; the request id is logged.
478
1117
  */
479
1118
  loginflowMaterialize(data) {
480
1119
  return this.fetcher.post(`/loginflow/materialize`, data);
@@ -483,6 +1122,18 @@ export class GeneratedFaableAuthApi extends FaableApi {
483
1122
  * `POST /loginflow/{loginflow_id}/preview-token` — operationId: `loginflow/previewToken`
484
1123
  *
485
1124
  * Try the draft on a real login, in your browser only
1125
+ *
1126
+ * 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.
1127
+ *
1128
+ * @throws {FaableApiError} `flow_not_found` (400) — The login flow does not exist in this account.
1129
+ * @throws {FaableApiError} `validation_error` (400) — The body, query or path failed schema validation. `details.issues` lists each failing field.
1130
+ * @throws {FaableApiError} `unauthorized` (401) — The request carries no valid credentials.
1131
+ * @throws {FaableApiError} `forbidden` (403) — The credentials are valid but do not allow this operation.
1132
+ * @throws {FaableApiError} `insufficient_scope` (403) — The token lacks a scope this operation requires. `message` names it.
1133
+ * @throws {FaableApiError} `user_suspended` (403) — The user is suspended and cannot sign in or be modified.
1134
+ * @throws {FaableApiError} `account_not_found` (404) — No Auth Account matches the request (domain, header or token).
1135
+ * @throws {FaableApiError} `too_many_requests` (429) — Rate limit exceeded. Honour the `Retry-After` header.
1136
+ * @throws {FaableApiError} `internal_error` (500) — Unexpected server error. Retry later; the request id is logged.
486
1137
  */
487
1138
  loginflowPreviewToken(loginflow_id) {
488
1139
  requireId("loginflow_id", loginflow_id);
@@ -492,6 +1143,17 @@ export class GeneratedFaableAuthApi extends FaableApi {
492
1143
  * `POST /loginflow/{loginflow_id}/publish` — operationId: `loginflow/publish`
493
1144
  *
494
1145
  * Make the draft the graph logins run
1146
+ *
1147
+ * 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.
1148
+ *
1149
+ * @throws {FaableApiError} `validation_error` (400) — The body, query or path failed schema validation. `details.issues` lists each failing field.
1150
+ * @throws {FaableApiError} `unauthorized` (401) — The request carries no valid credentials.
1151
+ * @throws {FaableApiError} `forbidden` (403) — The credentials are valid but do not allow this operation.
1152
+ * @throws {FaableApiError} `insufficient_scope` (403) — The token lacks a scope this operation requires. `message` names it.
1153
+ * @throws {FaableApiError} `user_suspended` (403) — The user is suspended and cannot sign in or be modified.
1154
+ * @throws {FaableApiError} `account_not_found` (404) — No Auth Account matches the request (domain, header or token).
1155
+ * @throws {FaableApiError} `too_many_requests` (429) — Rate limit exceeded. Honour the `Retry-After` header.
1156
+ * @throws {FaableApiError} `internal_error` (500) — Unexpected server error. Retry later; the request id is logged.
495
1157
  */
496
1158
  loginflowPublish(loginflow_id, data) {
497
1159
  requireId("loginflow_id", loginflow_id);
@@ -501,6 +1163,17 @@ export class GeneratedFaableAuthApi extends FaableApi {
501
1163
  * `GET /loginflow/resolved` — operationId: `loginflow/resolved`
502
1164
  *
503
1165
  * The graph this account (or client) runs right now
1166
+ *
1167
+ * 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.
1168
+ *
1169
+ * @throws {FaableApiError} `validation_error` (400) — The body, query or path failed schema validation. `details.issues` lists each failing field.
1170
+ * @throws {FaableApiError} `unauthorized` (401) — The request carries no valid credentials.
1171
+ * @throws {FaableApiError} `forbidden` (403) — The credentials are valid but do not allow this operation.
1172
+ * @throws {FaableApiError} `insufficient_scope` (403) — The token lacks a scope this operation requires. `message` names it.
1173
+ * @throws {FaableApiError} `user_suspended` (403) — The user is suspended and cannot sign in or be modified.
1174
+ * @throws {FaableApiError} `account_not_found` (404) — No Auth Account matches the request (domain, header or token).
1175
+ * @throws {FaableApiError} `too_many_requests` (429) — Rate limit exceeded. Honour the `Retry-After` header.
1176
+ * @throws {FaableApiError} `internal_error` (500) — Unexpected server error. Retry later; the request id is logged.
504
1177
  */
505
1178
  loginflowResolved(params) {
506
1179
  return this.fetcher.request({ method: "GET", url: `/loginflow/resolved`, params });
@@ -509,6 +1182,18 @@ export class GeneratedFaableAuthApi extends FaableApi {
509
1182
  * `POST /loginflow/{loginflow_id}/rollback` — operationId: `loginflow/rollback`
510
1183
  *
511
1184
  * Run a previously published revision again
1185
+ *
1186
+ * Makes the named revision from `history` the published graph; the one being replaced moves to `history`. The draft is not touched.
1187
+ *
1188
+ * @throws {FaableApiError} `validation_error` (400) — The body, query or path failed schema validation. `details.issues` lists each failing field.
1189
+ * @throws {FaableApiError} `unauthorized` (401) — The request carries no valid credentials.
1190
+ * @throws {FaableApiError} `forbidden` (403) — The credentials are valid but do not allow this operation.
1191
+ * @throws {FaableApiError} `insufficient_scope` (403) — The token lacks a scope this operation requires. `message` names it.
1192
+ * @throws {FaableApiError} `user_suspended` (403) — The user is suspended and cannot sign in or be modified.
1193
+ * @throws {FaableApiError} `revision_not_found` (404) — The revision is not in the flow history.
1194
+ * @throws {FaableApiError} `account_not_found` (404) — No Auth Account matches the request (domain, header or token).
1195
+ * @throws {FaableApiError} `too_many_requests` (429) — Rate limit exceeded. Honour the `Retry-After` header.
1196
+ * @throws {FaableApiError} `internal_error` (500) — Unexpected server error. Retry later; the request id is logged.
512
1197
  */
513
1198
  loginflowRollback(loginflow_id, data) {
514
1199
  requireId("loginflow_id", loginflow_id);
@@ -518,6 +1203,18 @@ export class GeneratedFaableAuthApi extends FaableApi {
518
1203
  * `POST /loginflow/{loginflow_id}` — operationId: `loginflow/update`
519
1204
  *
520
1205
  * Update Loginflow
1206
+ *
1207
+ * @throws {FaableApiError} `invalid_id` (400) — The id in the path is not a valid id for this resource.
1208
+ * @throws {FaableApiError} `already_exists` (400) — A resource with the same unique field already exists (for a user, usually `email`). `details.fields` names the field.
1209
+ * @throws {FaableApiError} `validation_error` (400) — The body, query or path failed schema validation. `details.issues` lists each failing field.
1210
+ * @throws {FaableApiError} `unauthorized` (401) — The request carries no valid credentials.
1211
+ * @throws {FaableApiError} `forbidden` (403) — The credentials are valid but do not allow this operation.
1212
+ * @throws {FaableApiError} `insufficient_scope` (403) — The token lacks a scope this operation requires. `message` names it.
1213
+ * @throws {FaableApiError} `user_suspended` (403) — The user is suspended and cannot sign in or be modified.
1214
+ * @throws {FaableApiError} `not_found` (404) — The resource does not exist in this account.
1215
+ * @throws {FaableApiError} `account_not_found` (404) — No Auth Account matches the request (domain, header or token).
1216
+ * @throws {FaableApiError} `too_many_requests` (429) — Rate limit exceeded. Honour the `Retry-After` header.
1217
+ * @throws {FaableApiError} `internal_error` (500) — Unexpected server error. Retry later; the request id is logged.
521
1218
  */
522
1219
  loginflowUpdate(loginflow_id, data) {
523
1220
  requireId("loginflow_id", loginflow_id);
@@ -527,6 +1224,15 @@ export class GeneratedFaableAuthApi extends FaableApi {
527
1224
  * `POST /loginflow/{loginflow_id}/validate` — operationId: `loginflow/validate`
528
1225
  *
529
1226
  * Check a draft against the rules a publish enforces
1227
+ *
1228
+ * @throws {FaableApiError} `validation_error` (400) — The body, query or path failed schema validation. `details.issues` lists each failing field.
1229
+ * @throws {FaableApiError} `unauthorized` (401) — The request carries no valid credentials.
1230
+ * @throws {FaableApiError} `forbidden` (403) — The credentials are valid but do not allow this operation.
1231
+ * @throws {FaableApiError} `insufficient_scope` (403) — The token lacks a scope this operation requires. `message` names it.
1232
+ * @throws {FaableApiError} `user_suspended` (403) — The user is suspended and cannot sign in or be modified.
1233
+ * @throws {FaableApiError} `account_not_found` (404) — No Auth Account matches the request (domain, header or token).
1234
+ * @throws {FaableApiError} `too_many_requests` (429) — Rate limit exceeded. Honour the `Retry-After` header.
1235
+ * @throws {FaableApiError} `internal_error` (500) — Unexpected server error. Retry later; the request id is logged.
530
1236
  */
531
1237
  loginflowValidate(loginflow_id, data) {
532
1238
  requireId("loginflow_id", loginflow_id);
@@ -536,6 +1242,16 @@ export class GeneratedFaableAuthApi extends FaableApi {
536
1242
  * `POST /notificationsubscription` — operationId: `notificationsubscription/create`
537
1243
  *
538
1244
  * Create Notificationsubscription
1245
+ *
1246
+ * @throws {FaableApiError} `already_exists` (400) — A resource with the same unique field already exists (for a user, usually `email`). `details.fields` names the field.
1247
+ * @throws {FaableApiError} `validation_error` (400) — The body, query or path failed schema validation. `details.issues` lists each failing field.
1248
+ * @throws {FaableApiError} `unauthorized` (401) — The request carries no valid credentials.
1249
+ * @throws {FaableApiError} `forbidden` (403) — The credentials are valid but do not allow this operation.
1250
+ * @throws {FaableApiError} `insufficient_scope` (403) — The token lacks a scope this operation requires. `message` names it.
1251
+ * @throws {FaableApiError} `user_suspended` (403) — The user is suspended and cannot sign in or be modified.
1252
+ * @throws {FaableApiError} `account_not_found` (404) — No Auth Account matches the request (domain, header or token).
1253
+ * @throws {FaableApiError} `too_many_requests` (429) — Rate limit exceeded. Honour the `Retry-After` header.
1254
+ * @throws {FaableApiError} `internal_error` (500) — Unexpected server error. Retry later; the request id is logged.
539
1255
  */
540
1256
  notificationsubscriptionCreate(data) {
541
1257
  return this.fetcher.post(`/notificationsubscription`, data);
@@ -544,6 +1260,17 @@ export class GeneratedFaableAuthApi extends FaableApi {
544
1260
  * `DELETE /notificationsubscription/{notificationsubscription_id}` — operationId: `notificationsubscription/delete`
545
1261
  *
546
1262
  * Delete Notificationsubscription
1263
+ *
1264
+ * @throws {FaableApiError} `invalid_id` (400) — The id in the path is not a valid id for this resource.
1265
+ * @throws {FaableApiError} `validation_error` (400) — The body, query or path failed schema validation. `details.issues` lists each failing field.
1266
+ * @throws {FaableApiError} `unauthorized` (401) — The request carries no valid credentials.
1267
+ * @throws {FaableApiError} `forbidden` (403) — The credentials are valid but do not allow this operation.
1268
+ * @throws {FaableApiError} `insufficient_scope` (403) — The token lacks a scope this operation requires. `message` names it.
1269
+ * @throws {FaableApiError} `user_suspended` (403) — The user is suspended and cannot sign in or be modified.
1270
+ * @throws {FaableApiError} `not_found` (404) — The resource does not exist in this account.
1271
+ * @throws {FaableApiError} `account_not_found` (404) — No Auth Account matches the request (domain, header or token).
1272
+ * @throws {FaableApiError} `too_many_requests` (429) — Rate limit exceeded. Honour the `Retry-After` header.
1273
+ * @throws {FaableApiError} `internal_error` (500) — Unexpected server error. Retry later; the request id is logged.
547
1274
  */
548
1275
  notificationsubscriptionDelete(notificationsubscription_id) {
549
1276
  requireId("notificationsubscription_id", notificationsubscription_id);
@@ -553,6 +1280,18 @@ export class GeneratedFaableAuthApi extends FaableApi {
553
1280
  * `GET /notificationsubscription/{notificationsubscription_id}` — operationId: `notificationsubscription/get`
554
1281
  *
555
1282
  * Get Notificationsubscription
1283
+ *
1284
+ * @throws {FaableApiError} `invalid_id` (400) — The id in the path is not a valid id for this resource.
1285
+ * @throws {FaableApiError} `invalid_expand` (400) — An `?expand=` path is not allowed on this resource.
1286
+ * @throws {FaableApiError} `validation_error` (400) — The body, query or path failed schema validation. `details.issues` lists each failing field.
1287
+ * @throws {FaableApiError} `unauthorized` (401) — The request carries no valid credentials.
1288
+ * @throws {FaableApiError} `forbidden` (403) — The credentials are valid but do not allow this operation.
1289
+ * @throws {FaableApiError} `insufficient_scope` (403) — The token lacks a scope this operation requires. `message` names it.
1290
+ * @throws {FaableApiError} `user_suspended` (403) — The user is suspended and cannot sign in or be modified.
1291
+ * @throws {FaableApiError} `not_found` (404) — The resource does not exist in this account.
1292
+ * @throws {FaableApiError} `account_not_found` (404) — No Auth Account matches the request (domain, header or token).
1293
+ * @throws {FaableApiError} `too_many_requests` (429) — Rate limit exceeded. Honour the `Retry-After` header.
1294
+ * @throws {FaableApiError} `internal_error` (500) — Unexpected server error. Retry later; the request id is logged.
556
1295
  */
557
1296
  notificationsubscriptionGet(notificationsubscription_id) {
558
1297
  requireId("notificationsubscription_id", notificationsubscription_id);
@@ -562,6 +1301,18 @@ export class GeneratedFaableAuthApi extends FaableApi {
562
1301
  * `GET /notificationsubscription` — operationId: `notificationsubscription/list`
563
1302
  *
564
1303
  * List Notificationsubscriptions
1304
+ *
1305
+ * @throws {FaableApiError} `invalid_query` (400) — The `?query=` FaableQL expression could not be parsed.
1306
+ * @throws {FaableApiError} `invalid_expand` (400) — An `?expand=` path is not allowed on this resource.
1307
+ * @throws {FaableApiError} `search_not_supported` (400) — This resource does not support `?search=`.
1308
+ * @throws {FaableApiError} `validation_error` (400) — The body, query or path failed schema validation. `details.issues` lists each failing field.
1309
+ * @throws {FaableApiError} `unauthorized` (401) — The request carries no valid credentials.
1310
+ * @throws {FaableApiError} `forbidden` (403) — The credentials are valid but do not allow this operation.
1311
+ * @throws {FaableApiError} `insufficient_scope` (403) — The token lacks a scope this operation requires. `message` names it.
1312
+ * @throws {FaableApiError} `user_suspended` (403) — The user is suspended and cannot sign in or be modified.
1313
+ * @throws {FaableApiError} `account_not_found` (404) — No Auth Account matches the request (domain, header or token).
1314
+ * @throws {FaableApiError} `too_many_requests` (429) — Rate limit exceeded. Honour the `Retry-After` header.
1315
+ * @throws {FaableApiError} `internal_error` (500) — Unexpected server error. Retry later; the request id is logged.
565
1316
  */
566
1317
  notificationsubscriptionList(params) {
567
1318
  return this.paginator({ url: `/notificationsubscription`, params });
@@ -570,6 +1321,18 @@ export class GeneratedFaableAuthApi extends FaableApi {
570
1321
  * `POST /notificationsubscription/{notificationsubscription_id}` — operationId: `notificationsubscription/update`
571
1322
  *
572
1323
  * Update Notificationsubscription
1324
+ *
1325
+ * @throws {FaableApiError} `invalid_id` (400) — The id in the path is not a valid id for this resource.
1326
+ * @throws {FaableApiError} `already_exists` (400) — A resource with the same unique field already exists (for a user, usually `email`). `details.fields` names the field.
1327
+ * @throws {FaableApiError} `validation_error` (400) — The body, query or path failed schema validation. `details.issues` lists each failing field.
1328
+ * @throws {FaableApiError} `unauthorized` (401) — The request carries no valid credentials.
1329
+ * @throws {FaableApiError} `forbidden` (403) — The credentials are valid but do not allow this operation.
1330
+ * @throws {FaableApiError} `insufficient_scope` (403) — The token lacks a scope this operation requires. `message` names it.
1331
+ * @throws {FaableApiError} `user_suspended` (403) — The user is suspended and cannot sign in or be modified.
1332
+ * @throws {FaableApiError} `not_found` (404) — The resource does not exist in this account.
1333
+ * @throws {FaableApiError} `account_not_found` (404) — No Auth Account matches the request (domain, header or token).
1334
+ * @throws {FaableApiError} `too_many_requests` (429) — Rate limit exceeded. Honour the `Retry-After` header.
1335
+ * @throws {FaableApiError} `internal_error` (500) — Unexpected server error. Retry later; the request id is logged.
573
1336
  */
574
1337
  notificationsubscriptionUpdate(notificationsubscription_id, data) {
575
1338
  requireId("notificationsubscription_id", notificationsubscription_id);
@@ -579,6 +1342,17 @@ export class GeneratedFaableAuthApi extends FaableApi {
579
1342
  * `POST /role/{role_id}/users` — operationId: `role/assign_users`
580
1343
  *
581
1344
  * Assign Users to Role
1345
+ *
1346
+ * @throws {FaableApiError} `invalid_role` (400) — The role belongs to another account.
1347
+ * @throws {FaableApiError} `validation_error` (400) — The body, query or path failed schema validation. `details.issues` lists each failing field.
1348
+ * @throws {FaableApiError} `unauthorized` (401) — The request carries no valid credentials.
1349
+ * @throws {FaableApiError} `forbidden` (403) — The credentials are valid but do not allow this operation.
1350
+ * @throws {FaableApiError} `insufficient_scope` (403) — The token lacks a scope this operation requires. `message` names it.
1351
+ * @throws {FaableApiError} `user_suspended` (403) — The user is suspended and cannot sign in or be modified.
1352
+ * @throws {FaableApiError} `role_not_found` (404) — No role with that id in this account.
1353
+ * @throws {FaableApiError} `account_not_found` (404) — No Auth Account matches the request (domain, header or token).
1354
+ * @throws {FaableApiError} `too_many_requests` (429) — Rate limit exceeded. Honour the `Retry-After` header.
1355
+ * @throws {FaableApiError} `internal_error` (500) — Unexpected server error. Retry later; the request id is logged.
582
1356
  */
583
1357
  roleAssignUsers(role_id, data) {
584
1358
  requireId("role_id", role_id);
@@ -588,6 +1362,16 @@ export class GeneratedFaableAuthApi extends FaableApi {
588
1362
  * `POST /role` — operationId: `role/create`
589
1363
  *
590
1364
  * Create Role
1365
+ *
1366
+ * @throws {FaableApiError} `already_exists` (400) — A resource with the same unique field already exists (for a user, usually `email`). `details.fields` names the field.
1367
+ * @throws {FaableApiError} `validation_error` (400) — The body, query or path failed schema validation. `details.issues` lists each failing field.
1368
+ * @throws {FaableApiError} `unauthorized` (401) — The request carries no valid credentials.
1369
+ * @throws {FaableApiError} `forbidden` (403) — The credentials are valid but do not allow this operation.
1370
+ * @throws {FaableApiError} `insufficient_scope` (403) — The token lacks a scope this operation requires. `message` names it.
1371
+ * @throws {FaableApiError} `user_suspended` (403) — The user is suspended and cannot sign in or be modified.
1372
+ * @throws {FaableApiError} `account_not_found` (404) — No Auth Account matches the request (domain, header or token).
1373
+ * @throws {FaableApiError} `too_many_requests` (429) — Rate limit exceeded. Honour the `Retry-After` header.
1374
+ * @throws {FaableApiError} `internal_error` (500) — Unexpected server error. Retry later; the request id is logged.
591
1375
  */
592
1376
  roleCreate(data) {
593
1377
  return this.fetcher.post(`/role`, data);
@@ -596,6 +1380,17 @@ export class GeneratedFaableAuthApi extends FaableApi {
596
1380
  * `DELETE /role/{role_id}` — operationId: `role/delete`
597
1381
  *
598
1382
  * Delete Role
1383
+ *
1384
+ * @throws {FaableApiError} `invalid_id` (400) — The id in the path is not a valid id for this resource.
1385
+ * @throws {FaableApiError} `validation_error` (400) — The body, query or path failed schema validation. `details.issues` lists each failing field.
1386
+ * @throws {FaableApiError} `unauthorized` (401) — The request carries no valid credentials.
1387
+ * @throws {FaableApiError} `forbidden` (403) — The credentials are valid but do not allow this operation.
1388
+ * @throws {FaableApiError} `insufficient_scope` (403) — The token lacks a scope this operation requires. `message` names it.
1389
+ * @throws {FaableApiError} `user_suspended` (403) — The user is suspended and cannot sign in or be modified.
1390
+ * @throws {FaableApiError} `not_found` (404) — The resource does not exist in this account.
1391
+ * @throws {FaableApiError} `account_not_found` (404) — No Auth Account matches the request (domain, header or token).
1392
+ * @throws {FaableApiError} `too_many_requests` (429) — Rate limit exceeded. Honour the `Retry-After` header.
1393
+ * @throws {FaableApiError} `internal_error` (500) — Unexpected server error. Retry later; the request id is logged.
599
1394
  */
600
1395
  roleDelete(role_id) {
601
1396
  requireId("role_id", role_id);
@@ -605,6 +1400,18 @@ export class GeneratedFaableAuthApi extends FaableApi {
605
1400
  * `GET /role/{role_id}` — operationId: `role/get`
606
1401
  *
607
1402
  * Get Role
1403
+ *
1404
+ * @throws {FaableApiError} `invalid_id` (400) — The id in the path is not a valid id for this resource.
1405
+ * @throws {FaableApiError} `invalid_expand` (400) — An `?expand=` path is not allowed on this resource.
1406
+ * @throws {FaableApiError} `validation_error` (400) — The body, query or path failed schema validation. `details.issues` lists each failing field.
1407
+ * @throws {FaableApiError} `unauthorized` (401) — The request carries no valid credentials.
1408
+ * @throws {FaableApiError} `forbidden` (403) — The credentials are valid but do not allow this operation.
1409
+ * @throws {FaableApiError} `insufficient_scope` (403) — The token lacks a scope this operation requires. `message` names it.
1410
+ * @throws {FaableApiError} `user_suspended` (403) — The user is suspended and cannot sign in or be modified.
1411
+ * @throws {FaableApiError} `not_found` (404) — The resource does not exist in this account.
1412
+ * @throws {FaableApiError} `account_not_found` (404) — No Auth Account matches the request (domain, header or token).
1413
+ * @throws {FaableApiError} `too_many_requests` (429) — Rate limit exceeded. Honour the `Retry-After` header.
1414
+ * @throws {FaableApiError} `internal_error` (500) — Unexpected server error. Retry later; the request id is logged.
608
1415
  */
609
1416
  roleGet(role_id) {
610
1417
  requireId("role_id", role_id);
@@ -614,6 +1421,18 @@ export class GeneratedFaableAuthApi extends FaableApi {
614
1421
  * `GET /role` — operationId: `role/list`
615
1422
  *
616
1423
  * List Roles
1424
+ *
1425
+ * @throws {FaableApiError} `invalid_query` (400) — The `?query=` FaableQL expression could not be parsed.
1426
+ * @throws {FaableApiError} `invalid_expand` (400) — An `?expand=` path is not allowed on this resource.
1427
+ * @throws {FaableApiError} `search_not_supported` (400) — This resource does not support `?search=`.
1428
+ * @throws {FaableApiError} `validation_error` (400) — The body, query or path failed schema validation. `details.issues` lists each failing field.
1429
+ * @throws {FaableApiError} `unauthorized` (401) — The request carries no valid credentials.
1430
+ * @throws {FaableApiError} `forbidden` (403) — The credentials are valid but do not allow this operation.
1431
+ * @throws {FaableApiError} `insufficient_scope` (403) — The token lacks a scope this operation requires. `message` names it.
1432
+ * @throws {FaableApiError} `user_suspended` (403) — The user is suspended and cannot sign in or be modified.
1433
+ * @throws {FaableApiError} `account_not_found` (404) — No Auth Account matches the request (domain, header or token).
1434
+ * @throws {FaableApiError} `too_many_requests` (429) — Rate limit exceeded. Honour the `Retry-After` header.
1435
+ * @throws {FaableApiError} `internal_error` (500) — Unexpected server error. Retry later; the request id is logged.
617
1436
  */
618
1437
  roleList(params) {
619
1438
  return this.paginator({ url: `/role`, params });
@@ -622,6 +1441,18 @@ export class GeneratedFaableAuthApi extends FaableApi {
622
1441
  * `POST /role/{role_id}` — operationId: `role/update`
623
1442
  *
624
1443
  * Update Role
1444
+ *
1445
+ * @throws {FaableApiError} `invalid_id` (400) — The id in the path is not a valid id for this resource.
1446
+ * @throws {FaableApiError} `already_exists` (400) — A resource with the same unique field already exists (for a user, usually `email`). `details.fields` names the field.
1447
+ * @throws {FaableApiError} `validation_error` (400) — The body, query or path failed schema validation. `details.issues` lists each failing field.
1448
+ * @throws {FaableApiError} `unauthorized` (401) — The request carries no valid credentials.
1449
+ * @throws {FaableApiError} `forbidden` (403) — The credentials are valid but do not allow this operation.
1450
+ * @throws {FaableApiError} `insufficient_scope` (403) — The token lacks a scope this operation requires. `message` names it.
1451
+ * @throws {FaableApiError} `user_suspended` (403) — The user is suspended and cannot sign in or be modified.
1452
+ * @throws {FaableApiError} `not_found` (404) — The resource does not exist in this account.
1453
+ * @throws {FaableApiError} `account_not_found` (404) — No Auth Account matches the request (domain, header or token).
1454
+ * @throws {FaableApiError} `too_many_requests` (429) — Rate limit exceeded. Honour the `Retry-After` header.
1455
+ * @throws {FaableApiError} `internal_error` (500) — Unexpected server error. Retry later; the request id is logged.
625
1456
  */
626
1457
  roleUpdate(role_id, data) {
627
1458
  requireId("role_id", role_id);
@@ -631,6 +1462,16 @@ export class GeneratedFaableAuthApi extends FaableApi {
631
1462
  * `GET /role/{role_id}/users` — operationId: `role/users`
632
1463
  *
633
1464
  * List Users with Role
1465
+ *
1466
+ * @throws {FaableApiError} `validation_error` (400) — The body, query or path failed schema validation. `details.issues` lists each failing field.
1467
+ * @throws {FaableApiError} `unauthorized` (401) — The request carries no valid credentials.
1468
+ * @throws {FaableApiError} `forbidden` (403) — The credentials are valid but do not allow this operation.
1469
+ * @throws {FaableApiError} `insufficient_scope` (403) — The token lacks a scope this operation requires. `message` names it.
1470
+ * @throws {FaableApiError} `user_suspended` (403) — The user is suspended and cannot sign in or be modified.
1471
+ * @throws {FaableApiError} `role_not_found` (404) — No role with that id in this account.
1472
+ * @throws {FaableApiError} `account_not_found` (404) — No Auth Account matches the request (domain, header or token).
1473
+ * @throws {FaableApiError} `too_many_requests` (429) — Rate limit exceeded. Honour the `Retry-After` header.
1474
+ * @throws {FaableApiError} `internal_error` (500) — Unexpected server error. Retry later; the request id is logged.
634
1475
  */
635
1476
  roleUsers(role_id, params) {
636
1477
  requireId("role_id", role_id);
@@ -640,6 +1481,16 @@ export class GeneratedFaableAuthApi extends FaableApi {
640
1481
  * `POST /rolemember` — operationId: `rolemember/create`
641
1482
  *
642
1483
  * Create Rolemember
1484
+ *
1485
+ * @throws {FaableApiError} `already_exists` (400) — A resource with the same unique field already exists (for a user, usually `email`). `details.fields` names the field.
1486
+ * @throws {FaableApiError} `validation_error` (400) — The body, query or path failed schema validation. `details.issues` lists each failing field.
1487
+ * @throws {FaableApiError} `unauthorized` (401) — The request carries no valid credentials.
1488
+ * @throws {FaableApiError} `forbidden` (403) — The credentials are valid but do not allow this operation.
1489
+ * @throws {FaableApiError} `insufficient_scope` (403) — The token lacks a scope this operation requires. `message` names it.
1490
+ * @throws {FaableApiError} `user_suspended` (403) — The user is suspended and cannot sign in or be modified.
1491
+ * @throws {FaableApiError} `account_not_found` (404) — No Auth Account matches the request (domain, header or token).
1492
+ * @throws {FaableApiError} `too_many_requests` (429) — Rate limit exceeded. Honour the `Retry-After` header.
1493
+ * @throws {FaableApiError} `internal_error` (500) — Unexpected server error. Retry later; the request id is logged.
643
1494
  */
644
1495
  rolememberCreate(data) {
645
1496
  return this.fetcher.post(`/rolemember`, data);
@@ -648,6 +1499,17 @@ export class GeneratedFaableAuthApi extends FaableApi {
648
1499
  * `DELETE /rolemember/{rolemember_id}` — operationId: `rolemember/delete`
649
1500
  *
650
1501
  * Delete Rolemember
1502
+ *
1503
+ * @throws {FaableApiError} `invalid_id` (400) — The id in the path is not a valid id for this resource.
1504
+ * @throws {FaableApiError} `validation_error` (400) — The body, query or path failed schema validation. `details.issues` lists each failing field.
1505
+ * @throws {FaableApiError} `unauthorized` (401) — The request carries no valid credentials.
1506
+ * @throws {FaableApiError} `forbidden` (403) — The credentials are valid but do not allow this operation.
1507
+ * @throws {FaableApiError} `insufficient_scope` (403) — The token lacks a scope this operation requires. `message` names it.
1508
+ * @throws {FaableApiError} `user_suspended` (403) — The user is suspended and cannot sign in or be modified.
1509
+ * @throws {FaableApiError} `not_found` (404) — The resource does not exist in this account.
1510
+ * @throws {FaableApiError} `account_not_found` (404) — No Auth Account matches the request (domain, header or token).
1511
+ * @throws {FaableApiError} `too_many_requests` (429) — Rate limit exceeded. Honour the `Retry-After` header.
1512
+ * @throws {FaableApiError} `internal_error` (500) — Unexpected server error. Retry later; the request id is logged.
651
1513
  */
652
1514
  rolememberDelete(rolemember_id) {
653
1515
  requireId("rolemember_id", rolemember_id);
@@ -657,6 +1519,18 @@ export class GeneratedFaableAuthApi extends FaableApi {
657
1519
  * `GET /rolemember/{rolemember_id}` — operationId: `rolemember/get`
658
1520
  *
659
1521
  * Get Rolemember
1522
+ *
1523
+ * @throws {FaableApiError} `invalid_id` (400) — The id in the path is not a valid id for this resource.
1524
+ * @throws {FaableApiError} `invalid_expand` (400) — An `?expand=` path is not allowed on this resource.
1525
+ * @throws {FaableApiError} `validation_error` (400) — The body, query or path failed schema validation. `details.issues` lists each failing field.
1526
+ * @throws {FaableApiError} `unauthorized` (401) — The request carries no valid credentials.
1527
+ * @throws {FaableApiError} `forbidden` (403) — The credentials are valid but do not allow this operation.
1528
+ * @throws {FaableApiError} `insufficient_scope` (403) — The token lacks a scope this operation requires. `message` names it.
1529
+ * @throws {FaableApiError} `user_suspended` (403) — The user is suspended and cannot sign in or be modified.
1530
+ * @throws {FaableApiError} `not_found` (404) — The resource does not exist in this account.
1531
+ * @throws {FaableApiError} `account_not_found` (404) — No Auth Account matches the request (domain, header or token).
1532
+ * @throws {FaableApiError} `too_many_requests` (429) — Rate limit exceeded. Honour the `Retry-After` header.
1533
+ * @throws {FaableApiError} `internal_error` (500) — Unexpected server error. Retry later; the request id is logged.
660
1534
  */
661
1535
  rolememberGet(rolemember_id, params) {
662
1536
  requireId("rolemember_id", rolemember_id);
@@ -666,6 +1540,18 @@ export class GeneratedFaableAuthApi extends FaableApi {
666
1540
  * `GET /rolemember` — operationId: `rolemember/list`
667
1541
  *
668
1542
  * List Rolemembers
1543
+ *
1544
+ * @throws {FaableApiError} `invalid_query` (400) — The `?query=` FaableQL expression could not be parsed.
1545
+ * @throws {FaableApiError} `invalid_expand` (400) — An `?expand=` path is not allowed on this resource.
1546
+ * @throws {FaableApiError} `search_not_supported` (400) — This resource does not support `?search=`.
1547
+ * @throws {FaableApiError} `validation_error` (400) — The body, query or path failed schema validation. `details.issues` lists each failing field.
1548
+ * @throws {FaableApiError} `unauthorized` (401) — The request carries no valid credentials.
1549
+ * @throws {FaableApiError} `forbidden` (403) — The credentials are valid but do not allow this operation.
1550
+ * @throws {FaableApiError} `insufficient_scope` (403) — The token lacks a scope this operation requires. `message` names it.
1551
+ * @throws {FaableApiError} `user_suspended` (403) — The user is suspended and cannot sign in or be modified.
1552
+ * @throws {FaableApiError} `account_not_found` (404) — No Auth Account matches the request (domain, header or token).
1553
+ * @throws {FaableApiError} `too_many_requests` (429) — Rate limit exceeded. Honour the `Retry-After` header.
1554
+ * @throws {FaableApiError} `internal_error` (500) — Unexpected server error. Retry later; the request id is logged.
669
1555
  */
670
1556
  rolememberList(params) {
671
1557
  return this.paginator({ url: `/rolemember`, params });
@@ -674,6 +1560,18 @@ export class GeneratedFaableAuthApi extends FaableApi {
674
1560
  * `POST /team/{team_id}/member` — operationId: `team/addMembers`
675
1561
  *
676
1562
  * Add Users to a Team
1563
+ *
1564
+ * Adds one or more Users as members of the given Team. Returns the resulting TeamMember record.
1565
+ *
1566
+ * @throws {FaableApiError} `already_member` (400) — The user is already a member of the team.
1567
+ * @throws {FaableApiError} `validation_error` (400) — The body, query or path failed schema validation. `details.issues` lists each failing field.
1568
+ * @throws {FaableApiError} `unauthorized` (401) — The request carries no valid credentials.
1569
+ * @throws {FaableApiError} `forbidden` (403) — The credentials are valid but do not allow this operation.
1570
+ * @throws {FaableApiError} `insufficient_scope` (403) — The token lacks a scope this operation requires. `message` names it.
1571
+ * @throws {FaableApiError} `user_suspended` (403) — The user is suspended and cannot sign in or be modified.
1572
+ * @throws {FaableApiError} `account_not_found` (404) — No Auth Account matches the request (domain, header or token).
1573
+ * @throws {FaableApiError} `too_many_requests` (429) — Rate limit exceeded. Honour the `Retry-After` header.
1574
+ * @throws {FaableApiError} `internal_error` (500) — Unexpected server error. Retry later; the request id is logged.
677
1575
  */
678
1576
  teamAddMembers(team_id, data) {
679
1577
  requireId("team_id", team_id);
@@ -683,6 +1581,18 @@ export class GeneratedFaableAuthApi extends FaableApi {
683
1581
  * `GET /team/{team_id}/member/check/{user_id}` — operationId: `team/checkMember`
684
1582
  *
685
1583
  * Check User is member of a Team
1584
+ *
1585
+ * Returns the TeamMember record if the User belongs to the given Team, or 404 otherwise.
1586
+ *
1587
+ * @throws {FaableApiError} `validation_error` (400) — The body, query or path failed schema validation. `details.issues` lists each failing field.
1588
+ * @throws {FaableApiError} `unauthorized` (401) — The request carries no valid credentials.
1589
+ * @throws {FaableApiError} `forbidden` (403) — The credentials are valid but do not allow this operation.
1590
+ * @throws {FaableApiError} `insufficient_scope` (403) — The token lacks a scope this operation requires. `message` names it.
1591
+ * @throws {FaableApiError} `user_suspended` (403) — The user is suspended and cannot sign in or be modified.
1592
+ * @throws {FaableApiError} `not_a_member` (404) — The user is not a member of the team.
1593
+ * @throws {FaableApiError} `account_not_found` (404) — No Auth Account matches the request (domain, header or token).
1594
+ * @throws {FaableApiError} `too_many_requests` (429) — Rate limit exceeded. Honour the `Retry-After` header.
1595
+ * @throws {FaableApiError} `internal_error` (500) — Unexpected server error. Retry later; the request id is logged.
686
1596
  */
687
1597
  teamCheckMember(team_id, user_id, params) {
688
1598
  requireId("team_id", team_id);
@@ -693,6 +1603,16 @@ export class GeneratedFaableAuthApi extends FaableApi {
693
1603
  * `POST /team` — operationId: `team/create`
694
1604
  *
695
1605
  * Create Team
1606
+ *
1607
+ * @throws {FaableApiError} `already_exists` (400) — A resource with the same unique field already exists (for a user, usually `email`). `details.fields` names the field.
1608
+ * @throws {FaableApiError} `validation_error` (400) — The body, query or path failed schema validation. `details.issues` lists each failing field.
1609
+ * @throws {FaableApiError} `unauthorized` (401) — The request carries no valid credentials.
1610
+ * @throws {FaableApiError} `forbidden` (403) — The credentials are valid but do not allow this operation.
1611
+ * @throws {FaableApiError} `insufficient_scope` (403) — The token lacks a scope this operation requires. `message` names it.
1612
+ * @throws {FaableApiError} `user_suspended` (403) — The user is suspended and cannot sign in or be modified.
1613
+ * @throws {FaableApiError} `account_not_found` (404) — No Auth Account matches the request (domain, header or token).
1614
+ * @throws {FaableApiError} `too_many_requests` (429) — Rate limit exceeded. Honour the `Retry-After` header.
1615
+ * @throws {FaableApiError} `internal_error` (500) — Unexpected server error. Retry later; the request id is logged.
696
1616
  */
697
1617
  teamCreate(data) {
698
1618
  return this.fetcher.post(`/team`, data);
@@ -701,6 +1621,17 @@ export class GeneratedFaableAuthApi extends FaableApi {
701
1621
  * `DELETE /team/{team_id}` — operationId: `team/delete`
702
1622
  *
703
1623
  * Delete Team
1624
+ *
1625
+ * @throws {FaableApiError} `invalid_id` (400) — The id in the path is not a valid id for this resource.
1626
+ * @throws {FaableApiError} `validation_error` (400) — The body, query or path failed schema validation. `details.issues` lists each failing field.
1627
+ * @throws {FaableApiError} `unauthorized` (401) — The request carries no valid credentials.
1628
+ * @throws {FaableApiError} `forbidden` (403) — The credentials are valid but do not allow this operation.
1629
+ * @throws {FaableApiError} `insufficient_scope` (403) — The token lacks a scope this operation requires. `message` names it.
1630
+ * @throws {FaableApiError} `user_suspended` (403) — The user is suspended and cannot sign in or be modified.
1631
+ * @throws {FaableApiError} `not_found` (404) — The resource does not exist in this account.
1632
+ * @throws {FaableApiError} `account_not_found` (404) — No Auth Account matches the request (domain, header or token).
1633
+ * @throws {FaableApiError} `too_many_requests` (429) — Rate limit exceeded. Honour the `Retry-After` header.
1634
+ * @throws {FaableApiError} `internal_error` (500) — Unexpected server error. Retry later; the request id is logged.
704
1635
  */
705
1636
  teamDelete(team_id) {
706
1637
  requireId("team_id", team_id);
@@ -710,6 +1641,18 @@ export class GeneratedFaableAuthApi extends FaableApi {
710
1641
  * `GET /team/{team_id}` — operationId: `team/get`
711
1642
  *
712
1643
  * Get Team
1644
+ *
1645
+ * @throws {FaableApiError} `invalid_id` (400) — The id in the path is not a valid id for this resource.
1646
+ * @throws {FaableApiError} `invalid_expand` (400) — An `?expand=` path is not allowed on this resource.
1647
+ * @throws {FaableApiError} `validation_error` (400) — The body, query or path failed schema validation. `details.issues` lists each failing field.
1648
+ * @throws {FaableApiError} `unauthorized` (401) — The request carries no valid credentials.
1649
+ * @throws {FaableApiError} `forbidden` (403) — The credentials are valid but do not allow this operation.
1650
+ * @throws {FaableApiError} `insufficient_scope` (403) — The token lacks a scope this operation requires. `message` names it.
1651
+ * @throws {FaableApiError} `user_suspended` (403) — The user is suspended and cannot sign in or be modified.
1652
+ * @throws {FaableApiError} `not_found` (404) — The resource does not exist in this account.
1653
+ * @throws {FaableApiError} `account_not_found` (404) — No Auth Account matches the request (domain, header or token).
1654
+ * @throws {FaableApiError} `too_many_requests` (429) — Rate limit exceeded. Honour the `Retry-After` header.
1655
+ * @throws {FaableApiError} `internal_error` (500) — Unexpected server error. Retry later; the request id is logged.
713
1656
  */
714
1657
  teamGet(team_id) {
715
1658
  requireId("team_id", team_id);
@@ -719,6 +1662,18 @@ export class GeneratedFaableAuthApi extends FaableApi {
719
1662
  * `POST /team/{team_id}/invite` — operationId: `team/invite`
720
1663
  *
721
1664
  * Invite a user to a Team by email
1665
+ *
1666
+ * 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.
1667
+ *
1668
+ * @throws {FaableApiError} `invite_used` (400) — The invite was already accepted.
1669
+ * @throws {FaableApiError} `validation_error` (400) — The body, query or path failed schema validation. `details.issues` lists each failing field.
1670
+ * @throws {FaableApiError} `unauthorized` (401) — The request carries no valid credentials.
1671
+ * @throws {FaableApiError} `forbidden` (403) — The credentials are valid but do not allow this operation.
1672
+ * @throws {FaableApiError} `insufficient_scope` (403) — The token lacks a scope this operation requires. `message` names it.
1673
+ * @throws {FaableApiError} `user_suspended` (403) — The user is suspended and cannot sign in or be modified.
1674
+ * @throws {FaableApiError} `account_not_found` (404) — No Auth Account matches the request (domain, header or token).
1675
+ * @throws {FaableApiError} `too_many_requests` (429) — Rate limit exceeded. Honour the `Retry-After` header.
1676
+ * @throws {FaableApiError} `internal_error` (500) — Unexpected server error. Retry later; the request id is logged.
722
1677
  */
723
1678
  teamInvite(team_id, data) {
724
1679
  requireId("team_id", team_id);
@@ -728,6 +1683,18 @@ export class GeneratedFaableAuthApi extends FaableApi {
728
1683
  * `GET /team` — operationId: `team/list`
729
1684
  *
730
1685
  * List Teams
1686
+ *
1687
+ * @throws {FaableApiError} `invalid_query` (400) — The `?query=` FaableQL expression could not be parsed.
1688
+ * @throws {FaableApiError} `invalid_expand` (400) — An `?expand=` path is not allowed on this resource.
1689
+ * @throws {FaableApiError} `search_not_supported` (400) — This resource does not support `?search=`.
1690
+ * @throws {FaableApiError} `validation_error` (400) — The body, query or path failed schema validation. `details.issues` lists each failing field.
1691
+ * @throws {FaableApiError} `unauthorized` (401) — The request carries no valid credentials.
1692
+ * @throws {FaableApiError} `forbidden` (403) — The credentials are valid but do not allow this operation.
1693
+ * @throws {FaableApiError} `insufficient_scope` (403) — The token lacks a scope this operation requires. `message` names it.
1694
+ * @throws {FaableApiError} `user_suspended` (403) — The user is suspended and cannot sign in or be modified.
1695
+ * @throws {FaableApiError} `account_not_found` (404) — No Auth Account matches the request (domain, header or token).
1696
+ * @throws {FaableApiError} `too_many_requests` (429) — Rate limit exceeded. Honour the `Retry-After` header.
1697
+ * @throws {FaableApiError} `internal_error` (500) — Unexpected server error. Retry later; the request id is logged.
731
1698
  */
732
1699
  teamList(params) {
733
1700
  return this.paginator({ url: `/team`, params });
@@ -736,6 +1703,17 @@ export class GeneratedFaableAuthApi extends FaableApi {
736
1703
  * `GET /team/{team_id}/invite` — operationId: `team/listInvites`
737
1704
  *
738
1705
  * List pending invites for a Team
1706
+ *
1707
+ * Returns all pending (not consumed, not expired) team invites for the given team. Accepts a FaableQL `query` parameter on the `email` field.
1708
+ *
1709
+ * @throws {FaableApiError} `validation_error` (400) — The body, query or path failed schema validation. `details.issues` lists each failing field.
1710
+ * @throws {FaableApiError} `unauthorized` (401) — The request carries no valid credentials.
1711
+ * @throws {FaableApiError} `forbidden` (403) — The credentials are valid but do not allow this operation.
1712
+ * @throws {FaableApiError} `insufficient_scope` (403) — The token lacks a scope this operation requires. `message` names it.
1713
+ * @throws {FaableApiError} `user_suspended` (403) — The user is suspended and cannot sign in or be modified.
1714
+ * @throws {FaableApiError} `account_not_found` (404) — No Auth Account matches the request (domain, header or token).
1715
+ * @throws {FaableApiError} `too_many_requests` (429) — Rate limit exceeded. Honour the `Retry-After` header.
1716
+ * @throws {FaableApiError} `internal_error` (500) — Unexpected server error. Retry later; the request id is logged.
739
1717
  */
740
1718
  teamListInvites(team_id, params) {
741
1719
  requireId("team_id", team_id);
@@ -745,6 +1723,17 @@ export class GeneratedFaableAuthApi extends FaableApi {
745
1723
  * `GET /team/{team_id}/member` — operationId: `team/listMembers`
746
1724
  *
747
1725
  * List Team Members
1726
+ *
1727
+ * List all Users that belong to the given Team in the current Account. Supports `?expand=user,team,roles` to inline referenced rows.
1728
+ *
1729
+ * @throws {FaableApiError} `validation_error` (400) — The body, query or path failed schema validation. `details.issues` lists each failing field.
1730
+ * @throws {FaableApiError} `unauthorized` (401) — The request carries no valid credentials.
1731
+ * @throws {FaableApiError} `forbidden` (403) — The credentials are valid but do not allow this operation.
1732
+ * @throws {FaableApiError} `insufficient_scope` (403) — The token lacks a scope this operation requires. `message` names it.
1733
+ * @throws {FaableApiError} `user_suspended` (403) — The user is suspended and cannot sign in or be modified.
1734
+ * @throws {FaableApiError} `account_not_found` (404) — No Auth Account matches the request (domain, header or token).
1735
+ * @throws {FaableApiError} `too_many_requests` (429) — Rate limit exceeded. Honour the `Retry-After` header.
1736
+ * @throws {FaableApiError} `internal_error` (500) — Unexpected server error. Retry later; the request id is logged.
748
1737
  */
749
1738
  teamListMembers(team_id, params) {
750
1739
  requireId("team_id", team_id);
@@ -754,6 +1743,18 @@ export class GeneratedFaableAuthApi extends FaableApi {
754
1743
  * `DELETE /team/{team_id}/invite/{ticket_id}` — operationId: `team/revokeInvite`
755
1744
  *
756
1745
  * Revoke a pending team invite
1746
+ *
1747
+ * 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.
1748
+ *
1749
+ * @throws {FaableApiError} `validation_error` (400) — The body, query or path failed schema validation. `details.issues` lists each failing field.
1750
+ * @throws {FaableApiError} `unauthorized` (401) — The request carries no valid credentials.
1751
+ * @throws {FaableApiError} `forbidden` (403) — The credentials are valid but do not allow this operation.
1752
+ * @throws {FaableApiError} `insufficient_scope` (403) — The token lacks a scope this operation requires. `message` names it.
1753
+ * @throws {FaableApiError} `user_suspended` (403) — The user is suspended and cannot sign in or be modified.
1754
+ * @throws {FaableApiError} `invite_not_found` (404) — No invite with that id in this account.
1755
+ * @throws {FaableApiError} `account_not_found` (404) — No Auth Account matches the request (domain, header or token).
1756
+ * @throws {FaableApiError} `too_many_requests` (429) — Rate limit exceeded. Honour the `Retry-After` header.
1757
+ * @throws {FaableApiError} `internal_error` (500) — Unexpected server error. Retry later; the request id is logged.
757
1758
  */
758
1759
  teamRevokeInvite(team_id, ticket_id) {
759
1760
  requireId("team_id", team_id);
@@ -764,6 +1765,18 @@ export class GeneratedFaableAuthApi extends FaableApi {
764
1765
  * `POST /team/{team_id}` — operationId: `team/update`
765
1766
  *
766
1767
  * Update Team
1768
+ *
1769
+ * @throws {FaableApiError} `invalid_id` (400) — The id in the path is not a valid id for this resource.
1770
+ * @throws {FaableApiError} `already_exists` (400) — A resource with the same unique field already exists (for a user, usually `email`). `details.fields` names the field.
1771
+ * @throws {FaableApiError} `validation_error` (400) — The body, query or path failed schema validation. `details.issues` lists each failing field.
1772
+ * @throws {FaableApiError} `unauthorized` (401) — The request carries no valid credentials.
1773
+ * @throws {FaableApiError} `forbidden` (403) — The credentials are valid but do not allow this operation.
1774
+ * @throws {FaableApiError} `insufficient_scope` (403) — The token lacks a scope this operation requires. `message` names it.
1775
+ * @throws {FaableApiError} `user_suspended` (403) — The user is suspended and cannot sign in or be modified.
1776
+ * @throws {FaableApiError} `not_found` (404) — The resource does not exist in this account.
1777
+ * @throws {FaableApiError} `account_not_found` (404) — No Auth Account matches the request (domain, header or token).
1778
+ * @throws {FaableApiError} `too_many_requests` (429) — Rate limit exceeded. Honour the `Retry-After` header.
1779
+ * @throws {FaableApiError} `internal_error` (500) — Unexpected server error. Retry later; the request id is logged.
767
1780
  */
768
1781
  teamUpdate(team_id, data) {
769
1782
  requireId("team_id", team_id);
@@ -773,6 +1786,16 @@ export class GeneratedFaableAuthApi extends FaableApi {
773
1786
  * `POST /teammember` — operationId: `teammember/create`
774
1787
  *
775
1788
  * Create Teammember
1789
+ *
1790
+ * @throws {FaableApiError} `already_exists` (400) — A resource with the same unique field already exists (for a user, usually `email`). `details.fields` names the field.
1791
+ * @throws {FaableApiError} `validation_error` (400) — The body, query or path failed schema validation. `details.issues` lists each failing field.
1792
+ * @throws {FaableApiError} `unauthorized` (401) — The request carries no valid credentials.
1793
+ * @throws {FaableApiError} `forbidden` (403) — The credentials are valid but do not allow this operation.
1794
+ * @throws {FaableApiError} `insufficient_scope` (403) — The token lacks a scope this operation requires. `message` names it.
1795
+ * @throws {FaableApiError} `user_suspended` (403) — The user is suspended and cannot sign in or be modified.
1796
+ * @throws {FaableApiError} `account_not_found` (404) — No Auth Account matches the request (domain, header or token).
1797
+ * @throws {FaableApiError} `too_many_requests` (429) — Rate limit exceeded. Honour the `Retry-After` header.
1798
+ * @throws {FaableApiError} `internal_error` (500) — Unexpected server error. Retry later; the request id is logged.
776
1799
  */
777
1800
  teammemberCreate(data) {
778
1801
  return this.fetcher.post(`/teammember`, data);
@@ -781,6 +1804,17 @@ export class GeneratedFaableAuthApi extends FaableApi {
781
1804
  * `DELETE /teammember/{teammember_id}` — operationId: `teammember/delete`
782
1805
  *
783
1806
  * Delete Teammember
1807
+ *
1808
+ * @throws {FaableApiError} `invalid_id` (400) — The id in the path is not a valid id for this resource.
1809
+ * @throws {FaableApiError} `validation_error` (400) — The body, query or path failed schema validation. `details.issues` lists each failing field.
1810
+ * @throws {FaableApiError} `unauthorized` (401) — The request carries no valid credentials.
1811
+ * @throws {FaableApiError} `forbidden` (403) — The credentials are valid but do not allow this operation.
1812
+ * @throws {FaableApiError} `insufficient_scope` (403) — The token lacks a scope this operation requires. `message` names it.
1813
+ * @throws {FaableApiError} `user_suspended` (403) — The user is suspended and cannot sign in or be modified.
1814
+ * @throws {FaableApiError} `not_found` (404) — The resource does not exist in this account.
1815
+ * @throws {FaableApiError} `account_not_found` (404) — No Auth Account matches the request (domain, header or token).
1816
+ * @throws {FaableApiError} `too_many_requests` (429) — Rate limit exceeded. Honour the `Retry-After` header.
1817
+ * @throws {FaableApiError} `internal_error` (500) — Unexpected server error. Retry later; the request id is logged.
784
1818
  */
785
1819
  teammemberDelete(teammember_id) {
786
1820
  requireId("teammember_id", teammember_id);
@@ -790,6 +1824,18 @@ export class GeneratedFaableAuthApi extends FaableApi {
790
1824
  * `GET /teammember/{teammember_id}` — operationId: `teammember/get`
791
1825
  *
792
1826
  * Get Teammember
1827
+ *
1828
+ * @throws {FaableApiError} `invalid_id` (400) — The id in the path is not a valid id for this resource.
1829
+ * @throws {FaableApiError} `invalid_expand` (400) — An `?expand=` path is not allowed on this resource.
1830
+ * @throws {FaableApiError} `validation_error` (400) — The body, query or path failed schema validation. `details.issues` lists each failing field.
1831
+ * @throws {FaableApiError} `unauthorized` (401) — The request carries no valid credentials.
1832
+ * @throws {FaableApiError} `forbidden` (403) — The credentials are valid but do not allow this operation.
1833
+ * @throws {FaableApiError} `insufficient_scope` (403) — The token lacks a scope this operation requires. `message` names it.
1834
+ * @throws {FaableApiError} `user_suspended` (403) — The user is suspended and cannot sign in or be modified.
1835
+ * @throws {FaableApiError} `not_found` (404) — The resource does not exist in this account.
1836
+ * @throws {FaableApiError} `account_not_found` (404) — No Auth Account matches the request (domain, header or token).
1837
+ * @throws {FaableApiError} `too_many_requests` (429) — Rate limit exceeded. Honour the `Retry-After` header.
1838
+ * @throws {FaableApiError} `internal_error` (500) — Unexpected server error. Retry later; the request id is logged.
793
1839
  */
794
1840
  teammemberGet(teammember_id, params) {
795
1841
  requireId("teammember_id", teammember_id);
@@ -799,6 +1845,18 @@ export class GeneratedFaableAuthApi extends FaableApi {
799
1845
  * `GET /teammember` — operationId: `teammember/list`
800
1846
  *
801
1847
  * List Teammembers
1848
+ *
1849
+ * @throws {FaableApiError} `invalid_query` (400) — The `?query=` FaableQL expression could not be parsed.
1850
+ * @throws {FaableApiError} `invalid_expand` (400) — An `?expand=` path is not allowed on this resource.
1851
+ * @throws {FaableApiError} `search_not_supported` (400) — This resource does not support `?search=`.
1852
+ * @throws {FaableApiError} `validation_error` (400) — The body, query or path failed schema validation. `details.issues` lists each failing field.
1853
+ * @throws {FaableApiError} `unauthorized` (401) — The request carries no valid credentials.
1854
+ * @throws {FaableApiError} `forbidden` (403) — The credentials are valid but do not allow this operation.
1855
+ * @throws {FaableApiError} `insufficient_scope` (403) — The token lacks a scope this operation requires. `message` names it.
1856
+ * @throws {FaableApiError} `user_suspended` (403) — The user is suspended and cannot sign in or be modified.
1857
+ * @throws {FaableApiError} `account_not_found` (404) — No Auth Account matches the request (domain, header or token).
1858
+ * @throws {FaableApiError} `too_many_requests` (429) — Rate limit exceeded. Honour the `Retry-After` header.
1859
+ * @throws {FaableApiError} `internal_error` (500) — Unexpected server error. Retry later; the request id is logged.
802
1860
  */
803
1861
  teammemberList(params) {
804
1862
  return this.paginator({ url: `/teammember`, params });
@@ -807,6 +1865,17 @@ export class GeneratedFaableAuthApi extends FaableApi {
807
1865
  * `POST /user` — operationId: `user/create`
808
1866
  *
809
1867
  * Create User
1868
+ *
1869
+ * @throws {FaableApiError} `already_exists` (400) — A resource with the same unique field already exists (for a user, usually `email`). `details.fields` names the field.
1870
+ * @throws {FaableApiError} `validation_error` (400) — The body, query or path failed schema validation. `details.issues` lists each failing field.
1871
+ * @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.
1872
+ * @throws {FaableApiError} `unauthorized` (401) — The request carries no valid credentials.
1873
+ * @throws {FaableApiError} `forbidden` (403) — The credentials are valid but do not allow this operation.
1874
+ * @throws {FaableApiError} `insufficient_scope` (403) — The token lacks a scope this operation requires. `message` names it.
1875
+ * @throws {FaableApiError} `user_suspended` (403) — The user is suspended and cannot sign in or be modified.
1876
+ * @throws {FaableApiError} `account_not_found` (404) — No Auth Account matches the request (domain, header or token).
1877
+ * @throws {FaableApiError} `too_many_requests` (429) — Rate limit exceeded. Honour the `Retry-After` header.
1878
+ * @throws {FaableApiError} `internal_error` (500) — Unexpected server error. Retry later; the request id is logged.
810
1879
  */
811
1880
  userCreate(data) {
812
1881
  return this.fetcher.post(`/user`, data);
@@ -815,6 +1884,17 @@ export class GeneratedFaableAuthApi extends FaableApi {
815
1884
  * `DELETE /user/{user_id}` — operationId: `user/delete`
816
1885
  *
817
1886
  * Delete User
1887
+ *
1888
+ * @throws {FaableApiError} `invalid_id` (400) — The id in the path is not a valid id for this resource.
1889
+ * @throws {FaableApiError} `validation_error` (400) — The body, query or path failed schema validation. `details.issues` lists each failing field.
1890
+ * @throws {FaableApiError} `unauthorized` (401) — The request carries no valid credentials.
1891
+ * @throws {FaableApiError} `forbidden` (403) — The credentials are valid but do not allow this operation.
1892
+ * @throws {FaableApiError} `insufficient_scope` (403) — The token lacks a scope this operation requires. `message` names it.
1893
+ * @throws {FaableApiError} `user_suspended` (403) — The user is suspended and cannot sign in or be modified.
1894
+ * @throws {FaableApiError} `not_found` (404) — The resource does not exist in this account.
1895
+ * @throws {FaableApiError} `account_not_found` (404) — No Auth Account matches the request (domain, header or token).
1896
+ * @throws {FaableApiError} `too_many_requests` (429) — Rate limit exceeded. Honour the `Retry-After` header.
1897
+ * @throws {FaableApiError} `internal_error` (500) — Unexpected server error. Retry later; the request id is logged.
818
1898
  */
819
1899
  userDelete(user_id) {
820
1900
  requireId("user_id", user_id);
@@ -824,6 +1904,18 @@ export class GeneratedFaableAuthApi extends FaableApi {
824
1904
  * `GET /user/{user_id}` — operationId: `user/get`
825
1905
  *
826
1906
  * Get User
1907
+ *
1908
+ * @throws {FaableApiError} `invalid_id` (400) — The id in the path is not a valid id for this resource.
1909
+ * @throws {FaableApiError} `invalid_expand` (400) — An `?expand=` path is not allowed on this resource.
1910
+ * @throws {FaableApiError} `validation_error` (400) — The body, query or path failed schema validation. `details.issues` lists each failing field.
1911
+ * @throws {FaableApiError} `unauthorized` (401) — The request carries no valid credentials.
1912
+ * @throws {FaableApiError} `forbidden` (403) — The credentials are valid but do not allow this operation.
1913
+ * @throws {FaableApiError} `insufficient_scope` (403) — The token lacks a scope this operation requires. `message` names it.
1914
+ * @throws {FaableApiError} `user_suspended` (403) — The user is suspended and cannot sign in or be modified.
1915
+ * @throws {FaableApiError} `not_found` (404) — The resource does not exist in this account.
1916
+ * @throws {FaableApiError} `account_not_found` (404) — No Auth Account matches the request (domain, header or token).
1917
+ * @throws {FaableApiError} `too_many_requests` (429) — Rate limit exceeded. Honour the `Retry-After` header.
1918
+ * @throws {FaableApiError} `internal_error` (500) — Unexpected server error. Retry later; the request id is logged.
827
1919
  */
828
1920
  userGet(user_id) {
829
1921
  requireId("user_id", user_id);
@@ -833,6 +1925,18 @@ export class GeneratedFaableAuthApi extends FaableApi {
833
1925
  * `GET /user` — operationId: `user/list`
834
1926
  *
835
1927
  * List Users
1928
+ *
1929
+ * @throws {FaableApiError} `invalid_query` (400) — The `?query=` FaableQL expression could not be parsed.
1930
+ * @throws {FaableApiError} `invalid_expand` (400) — An `?expand=` path is not allowed on this resource.
1931
+ * @throws {FaableApiError} `search_not_supported` (400) — This resource does not support `?search=`.
1932
+ * @throws {FaableApiError} `validation_error` (400) — The body, query or path failed schema validation. `details.issues` lists each failing field.
1933
+ * @throws {FaableApiError} `unauthorized` (401) — The request carries no valid credentials.
1934
+ * @throws {FaableApiError} `forbidden` (403) — The credentials are valid but do not allow this operation.
1935
+ * @throws {FaableApiError} `insufficient_scope` (403) — The token lacks a scope this operation requires. `message` names it.
1936
+ * @throws {FaableApiError} `user_suspended` (403) — The user is suspended and cannot sign in or be modified.
1937
+ * @throws {FaableApiError} `account_not_found` (404) — No Auth Account matches the request (domain, header or token).
1938
+ * @throws {FaableApiError} `too_many_requests` (429) — Rate limit exceeded. Honour the `Retry-After` header.
1939
+ * @throws {FaableApiError} `internal_error` (500) — Unexpected server error. Retry later; the request id is logged.
836
1940
  */
837
1941
  userList(params) {
838
1942
  return this.paginator({ url: `/user`, params });
@@ -841,6 +1945,17 @@ export class GeneratedFaableAuthApi extends FaableApi {
841
1945
  * `GET /user/{user_id}/tickets` — operationId: `user/listTickets`
842
1946
  *
843
1947
  * List the tickets issued for a user
1948
+ *
1949
+ * 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.
1950
+ *
1951
+ * @throws {FaableApiError} `validation_error` (400) — The body, query or path failed schema validation. `details.issues` lists each failing field.
1952
+ * @throws {FaableApiError} `unauthorized` (401) — The request carries no valid credentials.
1953
+ * @throws {FaableApiError} `forbidden` (403) — The credentials are valid but do not allow this operation.
1954
+ * @throws {FaableApiError} `insufficient_scope` (403) — The token lacks a scope this operation requires. `message` names it.
1955
+ * @throws {FaableApiError} `user_suspended` (403) — The user is suspended and cannot sign in or be modified.
1956
+ * @throws {FaableApiError} `account_not_found` (404) — No Auth Account matches the request (domain, header or token).
1957
+ * @throws {FaableApiError} `too_many_requests` (429) — Rate limit exceeded. Honour the `Retry-After` header.
1958
+ * @throws {FaableApiError} `internal_error` (500) — Unexpected server error. Retry later; the request id is logged.
844
1959
  */
845
1960
  userListTickets(user_id) {
846
1961
  requireId("user_id", user_id);
@@ -850,6 +1965,20 @@ export class GeneratedFaableAuthApi extends FaableApi {
850
1965
  * `POST /user/{user_id}/password-setup` — operationId: `user/passwordSetup`
851
1966
  *
852
1967
  * Send a password setup / reset email to the user
1968
+ *
1969
+ * 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.
1970
+ *
1971
+ * @throws {FaableApiError} `invalid_client` (400) — The `client_id` in the request does not name a client of this account.
1972
+ * @throws {FaableApiError} `invalid_connection` (400) — The connection does not exist, is disabled, or is not of the type this flow needs.
1973
+ * @throws {FaableApiError} `user_has_no_email` (400) — The operation needs an email but the user has none.
1974
+ * @throws {FaableApiError} `validation_error` (400) — The body, query or path failed schema validation. `details.issues` lists each failing field.
1975
+ * @throws {FaableApiError} `unauthorized` (401) — The request carries no valid credentials.
1976
+ * @throws {FaableApiError} `forbidden` (403) — The credentials are valid but do not allow this operation.
1977
+ * @throws {FaableApiError} `insufficient_scope` (403) — The token lacks a scope this operation requires. `message` names it.
1978
+ * @throws {FaableApiError} `user_suspended` (403) — The user is suspended and cannot sign in or be modified.
1979
+ * @throws {FaableApiError} `account_not_found` (404) — No Auth Account matches the request (domain, header or token).
1980
+ * @throws {FaableApiError} `too_many_requests` (429) — Rate limit exceeded. Honour the `Retry-After` header.
1981
+ * @throws {FaableApiError} `internal_error` (500) — Unexpected server error. Retry later; the request id is logged.
853
1982
  */
854
1983
  userPasswordSetup(user_id, data) {
855
1984
  requireId("user_id", user_id);
@@ -859,6 +1988,18 @@ export class GeneratedFaableAuthApi extends FaableApi {
859
1988
  * `POST /user/{user_id}/tickets/{ticket_id}/revoke` — operationId: `user/revokeTicket`
860
1989
  *
861
1990
  * Revoke a ticket issued for a user
1991
+ *
1992
+ * 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.
1993
+ *
1994
+ * @throws {FaableApiError} `validation_error` (400) — The body, query or path failed schema validation. `details.issues` lists each failing field.
1995
+ * @throws {FaableApiError} `unauthorized` (401) — The request carries no valid credentials.
1996
+ * @throws {FaableApiError} `forbidden` (403) — The credentials are valid but do not allow this operation.
1997
+ * @throws {FaableApiError} `insufficient_scope` (403) — The token lacks a scope this operation requires. `message` names it.
1998
+ * @throws {FaableApiError} `user_suspended` (403) — The user is suspended and cannot sign in or be modified.
1999
+ * @throws {FaableApiError} `ticket_not_found` (404) — No ticket with that id belongs to this user.
2000
+ * @throws {FaableApiError} `account_not_found` (404) — No Auth Account matches the request (domain, header or token).
2001
+ * @throws {FaableApiError} `too_many_requests` (429) — Rate limit exceeded. Honour the `Retry-After` header.
2002
+ * @throws {FaableApiError} `internal_error` (500) — Unexpected server error. Retry later; the request id is logged.
862
2003
  */
863
2004
  userRevokeTicket(user_id, ticket_id) {
864
2005
  requireId("user_id", user_id);
@@ -869,6 +2010,19 @@ export class GeneratedFaableAuthApi extends FaableApi {
869
2010
  * `POST /user/{user_id}` — operationId: `user/update`
870
2011
  *
871
2012
  * Update User
2013
+ *
2014
+ * @throws {FaableApiError} `invalid_id` (400) — The id in the path is not a valid id for this resource.
2015
+ * @throws {FaableApiError} `already_exists` (400) — A resource with the same unique field already exists (for a user, usually `email`). `details.fields` names the field.
2016
+ * @throws {FaableApiError} `validation_error` (400) — The body, query or path failed schema validation. `details.issues` lists each failing field.
2017
+ * @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.
2018
+ * @throws {FaableApiError} `unauthorized` (401) — The request carries no valid credentials.
2019
+ * @throws {FaableApiError} `forbidden` (403) — The credentials are valid but do not allow this operation.
2020
+ * @throws {FaableApiError} `insufficient_scope` (403) — The token lacks a scope this operation requires. `message` names it.
2021
+ * @throws {FaableApiError} `user_suspended` (403) — The user is suspended and cannot sign in or be modified.
2022
+ * @throws {FaableApiError} `not_found` (404) — The resource does not exist in this account.
2023
+ * @throws {FaableApiError} `account_not_found` (404) — No Auth Account matches the request (domain, header or token).
2024
+ * @throws {FaableApiError} `too_many_requests` (429) — Rate limit exceeded. Honour the `Retry-After` header.
2025
+ * @throws {FaableApiError} `internal_error` (500) — Unexpected server error. Retry later; the request id is logged.
872
2026
  */
873
2027
  userUpdate(user_id, data) {
874
2028
  requireId("user_id", user_id);