@faable/auth-sdk 2.9.54 → 2.9.56

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.
@@ -712,23 +712,7 @@ export declare abstract class GeneratedFaableAuthApi extends FaableApi {
712
712
  social_links?: {
713
713
  label: string;
714
714
  url: string;
715
- }[] | null | undefined; /**
716
- * `DELETE /user/{user_id}/factors/{factor_id}` — operationId: `user/deleteFactor`
717
- *
718
- * Remove one of a user's second factors
719
- *
720
- * The support path out of a lockout: with the factor gone, a `required` policy sends the user through enrolment on their next login instead of refusing it.
721
- *
722
- * @throws {FaableApiError} `factor_not_found` (400) — No factor with that id belongs to this user.
723
- * @throws {FaableApiError} `validation_error` (400) — The body, query or path failed schema validation. `details.issues` lists each failing field.
724
- * @throws {FaableApiError} `unauthorized` (401) — The request carries no valid credentials.
725
- * @throws {FaableApiError} `forbidden` (403) — The credentials are valid but do not allow this operation.
726
- * @throws {FaableApiError} `insufficient_scope` (403) — The token lacks a scope this operation requires. `message` names it.
727
- * @throws {FaableApiError} `user_suspended` (403) — The user is suspended and cannot sign in or be modified.
728
- * @throws {FaableApiError} `account_not_found` (404) — No Auth Account matches the request (domain, header or token).
729
- * @throws {FaableApiError} `too_many_requests` (429) — Rate limit exceeded. Honour the `Retry-After` header.
730
- * @throws {FaableApiError} `internal_error` (500) — Unexpected server error. Retry later; the request id is logged.
731
- */
715
+ }[] | null | undefined;
732
716
  } | null | undefined;
733
717
  email_footer?: {
734
718
  text: string;
@@ -807,23 +791,7 @@ export declare abstract class GeneratedFaableAuthApi extends FaableApi {
807
791
  social_links?: {
808
792
  label: string;
809
793
  url: string;
810
- }[] | null | undefined; /**
811
- * `DELETE /user/{user_id}/factors/{factor_id}` — operationId: `user/deleteFactor`
812
- *
813
- * Remove one of a user's second factors
814
- *
815
- * The support path out of a lockout: with the factor gone, a `required` policy sends the user through enrolment on their next login instead of refusing it.
816
- *
817
- * @throws {FaableApiError} `factor_not_found` (400) — No factor with that id belongs to this user.
818
- * @throws {FaableApiError} `validation_error` (400) — The body, query or path failed schema validation. `details.issues` lists each failing field.
819
- * @throws {FaableApiError} `unauthorized` (401) — The request carries no valid credentials.
820
- * @throws {FaableApiError} `forbidden` (403) — The credentials are valid but do not allow this operation.
821
- * @throws {FaableApiError} `insufficient_scope` (403) — The token lacks a scope this operation requires. `message` names it.
822
- * @throws {FaableApiError} `user_suspended` (403) — The user is suspended and cannot sign in or be modified.
823
- * @throws {FaableApiError} `account_not_found` (404) — No Auth Account matches the request (domain, header or token).
824
- * @throws {FaableApiError} `too_many_requests` (429) — Rate limit exceeded. Honour the `Retry-After` header.
825
- * @throws {FaableApiError} `internal_error` (500) — Unexpected server error. Retry later; the request id is logged.
826
- */
794
+ }[] | null | undefined;
827
795
  } | null | undefined;
828
796
  email_footer?: {
829
797
  text: string;
@@ -905,23 +873,7 @@ export declare abstract class GeneratedFaableAuthApi extends FaableApi {
905
873
  social_links?: {
906
874
  label: string;
907
875
  url: string;
908
- }[] | null | undefined; /**
909
- * `DELETE /user/{user_id}/factors/{factor_id}` — operationId: `user/deleteFactor`
910
- *
911
- * Remove one of a user's second factors
912
- *
913
- * The support path out of a lockout: with the factor gone, a `required` policy sends the user through enrolment on their next login instead of refusing it.
914
- *
915
- * @throws {FaableApiError} `factor_not_found` (400) — No factor with that id belongs to this user.
916
- * @throws {FaableApiError} `validation_error` (400) — The body, query or path failed schema validation. `details.issues` lists each failing field.
917
- * @throws {FaableApiError} `unauthorized` (401) — The request carries no valid credentials.
918
- * @throws {FaableApiError} `forbidden` (403) — The credentials are valid but do not allow this operation.
919
- * @throws {FaableApiError} `insufficient_scope` (403) — The token lacks a scope this operation requires. `message` names it.
920
- * @throws {FaableApiError} `user_suspended` (403) — The user is suspended and cannot sign in or be modified.
921
- * @throws {FaableApiError} `account_not_found` (404) — No Auth Account matches the request (domain, header or token).
922
- * @throws {FaableApiError} `too_many_requests` (429) — Rate limit exceeded. Honour the `Retry-After` header.
923
- * @throws {FaableApiError} `internal_error` (500) — Unexpected server error. Retry later; the request id is logged.
924
- */
876
+ }[] | null | undefined;
925
877
  } | null | undefined;
926
878
  email_footer?: {
927
879
  text: string;
@@ -4024,6 +3976,47 @@ export declare abstract class GeneratedFaableAuthApi extends FaableApi {
4024
3976
  token_type: "Bearer";
4025
3977
  expires_in: number;
4026
3978
  }>;
3979
+ /**
3980
+ * `POST /internal/sequences/lookups/{name}` — operationId: `internal/sequenceLookup`
3981
+ *
3982
+ * Answer one lookup of a sequence (platform)
3983
+ *
3984
+ * A data object or a predicate `{result, data}` about a tenant. 400 or 404 when it cannot answer: the service does not retry those.
3985
+ *
3986
+ * @throws {FaableApiError} `validation_error` (400) — The body, query or path failed schema validation. `details.issues` lists each failing field.
3987
+ * @throws {FaableApiError} `unauthorized` (401) — The request carries no valid credentials.
3988
+ * @throws {FaableApiError} `forbidden` (403) — The credentials are valid but do not allow this operation.
3989
+ * @throws {FaableApiError} `insufficient_scope` (403) — The token lacks a scope this operation requires. `message` names it.
3990
+ * @throws {FaableApiError} `user_suspended` (403) — The user is suspended and cannot sign in or be modified.
3991
+ * @throws {FaableApiError} `account_not_found` (404) — No Auth Account matches the request (domain, header or token).
3992
+ * @throws {FaableApiError} `too_many_requests` (429) — Rate limit exceeded. Honour the `Retry-After` header.
3993
+ * @throws {FaableApiError} `internal_error` (500) — Unexpected server error. Retry later; the request id is logged.
3994
+ */
3995
+ internalSequenceLookup(name: string, data: OpBody<"internal/sequenceLookup">): Promise<void>;
3996
+ /**
3997
+ * `GET /internal/sequences/lookups` — operationId: `internal/sequenceLookupsCatalog`
3998
+ *
3999
+ * The lookups Auth answers for sequences (platform)
4000
+ *
4001
+ * What the notifications service may ask Auth about a tenant while it runs a sequence. Platform token.
4002
+ *
4003
+ * @throws {FaableApiError} `unauthorized` (401) — The request carries no valid credentials.
4004
+ * @throws {FaableApiError} `forbidden` (403) — The credentials are valid but do not allow this operation.
4005
+ * @throws {FaableApiError} `insufficient_scope` (403) — The token lacks a scope this operation requires. `message` names it.
4006
+ * @throws {FaableApiError} `user_suspended` (403) — The user is suspended and cannot sign in or be modified.
4007
+ * @throws {FaableApiError} `account_not_found` (404) — No Auth Account matches the request (domain, header or token).
4008
+ * @throws {FaableApiError} `too_many_requests` (429) — Rate limit exceeded. Honour the `Retry-After` header.
4009
+ * @throws {FaableApiError} `internal_error` (500) — Unexpected server error. Retry later; the request id is logged.
4010
+ */
4011
+ internalSequenceLookupsCatalog(): Promise<{
4012
+ items: {
4013
+ name: string;
4014
+ kind: string;
4015
+ description: string;
4016
+ params_schema: unknown;
4017
+ example: unknown;
4018
+ }[];
4019
+ }>;
4027
4020
  /**
4028
4021
  * `GET /internal/usage/sms` — operationId: `internal/smsUsage`
4029
4022
  *
@@ -1230,6 +1230,44 @@ export class GeneratedFaableAuthApi extends FaableApi {
1230
1230
  internalMintMgmtToken(data) {
1231
1231
  return this.fetcher.post(`/internal/mgmt-token`, data);
1232
1232
  }
1233
+ /**
1234
+ * `POST /internal/sequences/lookups/{name}` — operationId: `internal/sequenceLookup`
1235
+ *
1236
+ * Answer one lookup of a sequence (platform)
1237
+ *
1238
+ * A data object or a predicate `{result, data}` about a tenant. 400 or 404 when it cannot answer: the service does not retry those.
1239
+ *
1240
+ * @throws {FaableApiError} `validation_error` (400) — The body, query or path failed schema validation. `details.issues` lists each failing field.
1241
+ * @throws {FaableApiError} `unauthorized` (401) — The request carries no valid credentials.
1242
+ * @throws {FaableApiError} `forbidden` (403) — The credentials are valid but do not allow this operation.
1243
+ * @throws {FaableApiError} `insufficient_scope` (403) — The token lacks a scope this operation requires. `message` names it.
1244
+ * @throws {FaableApiError} `user_suspended` (403) — The user is suspended and cannot sign in or be modified.
1245
+ * @throws {FaableApiError} `account_not_found` (404) — No Auth Account matches the request (domain, header or token).
1246
+ * @throws {FaableApiError} `too_many_requests` (429) — Rate limit exceeded. Honour the `Retry-After` header.
1247
+ * @throws {FaableApiError} `internal_error` (500) — Unexpected server error. Retry later; the request id is logged.
1248
+ */
1249
+ internalSequenceLookup(name, data) {
1250
+ requireId("name", name);
1251
+ return this.fetcher.post(`/internal/sequences/lookups/${name}`, data);
1252
+ }
1253
+ /**
1254
+ * `GET /internal/sequences/lookups` — operationId: `internal/sequenceLookupsCatalog`
1255
+ *
1256
+ * The lookups Auth answers for sequences (platform)
1257
+ *
1258
+ * What the notifications service may ask Auth about a tenant while it runs a sequence. Platform token.
1259
+ *
1260
+ * @throws {FaableApiError} `unauthorized` (401) — The request carries no valid credentials.
1261
+ * @throws {FaableApiError} `forbidden` (403) — The credentials are valid but do not allow this operation.
1262
+ * @throws {FaableApiError} `insufficient_scope` (403) — The token lacks a scope this operation requires. `message` names it.
1263
+ * @throws {FaableApiError} `user_suspended` (403) — The user is suspended and cannot sign in or be modified.
1264
+ * @throws {FaableApiError} `account_not_found` (404) — No Auth Account matches the request (domain, header or token).
1265
+ * @throws {FaableApiError} `too_many_requests` (429) — Rate limit exceeded. Honour the `Retry-After` header.
1266
+ * @throws {FaableApiError} `internal_error` (500) — Unexpected server error. Retry later; the request id is logged.
1267
+ */
1268
+ internalSequenceLookupsCatalog() {
1269
+ return this.fetcher.get(`/internal/sequences/lookups`);
1270
+ }
1233
1271
  /**
1234
1272
  * `GET /internal/usage/sms` — operationId: `internal/smsUsage`
1235
1273
  *
@@ -235,6 +235,46 @@ export interface paths {
235
235
  patch?: never;
236
236
  trace?: never;
237
237
  };
238
+ "/internal/sequences/lookups": {
239
+ parameters: {
240
+ query?: never;
241
+ header?: never;
242
+ path?: never;
243
+ cookie?: never;
244
+ };
245
+ /**
246
+ * The lookups Auth answers for sequences (platform)
247
+ * @description What the notifications service may ask Auth about a tenant while it runs a sequence. Platform token.
248
+ */
249
+ get: operations["internal/sequenceLookupsCatalog"];
250
+ put?: never;
251
+ post?: never;
252
+ delete?: never;
253
+ options?: never;
254
+ head?: never;
255
+ patch?: never;
256
+ trace?: never;
257
+ };
258
+ "/internal/sequences/lookups/{name}": {
259
+ parameters: {
260
+ query?: never;
261
+ header?: never;
262
+ path?: never;
263
+ cookie?: never;
264
+ };
265
+ get?: never;
266
+ put?: never;
267
+ /**
268
+ * Answer one lookup of a sequence (platform)
269
+ * @description A data object or a predicate `{result, data}` about a tenant. 400 or 404 when it cannot answer: the service does not retry those.
270
+ */
271
+ post: operations["internal/sequenceLookup"];
272
+ delete?: never;
273
+ options?: never;
274
+ head?: never;
275
+ patch?: never;
276
+ trace?: never;
277
+ };
238
278
  "/account/{account_id}/transfer": {
239
279
  parameters: {
240
280
  query?: never;
@@ -11346,6 +11386,210 @@ export interface operations {
11346
11386
  };
11347
11387
  };
11348
11388
  };
11389
+ "internal/sequenceLookupsCatalog": {
11390
+ parameters: {
11391
+ query?: never;
11392
+ header?: never;
11393
+ path?: never;
11394
+ cookie?: never;
11395
+ };
11396
+ requestBody?: never;
11397
+ responses: {
11398
+ /** @description Default Response */
11399
+ 200: {
11400
+ headers: {
11401
+ [name: string]: unknown;
11402
+ };
11403
+ content: {
11404
+ "application/json": {
11405
+ items: {
11406
+ name: string;
11407
+ kind: string;
11408
+ description: string;
11409
+ params_schema: unknown;
11410
+ example: unknown;
11411
+ }[];
11412
+ };
11413
+ };
11414
+ };
11415
+ /** @description `unauthorized` — The request carries no valid credentials. */
11416
+ 401: {
11417
+ headers: {
11418
+ [name: string]: unknown;
11419
+ };
11420
+ content: {
11421
+ "application/json": components["schemas"]["ErrorResponse"] & {
11422
+ /** @enum {string} */
11423
+ error_code?: "unauthorized";
11424
+ };
11425
+ };
11426
+ };
11427
+ /**
11428
+ * @description `forbidden` — The credentials are valid but do not allow this operation.
11429
+ *
11430
+ * `insufficient_scope` — The token lacks a scope this operation requires. `message` names it.
11431
+ *
11432
+ * `user_suspended` — The user is suspended and cannot sign in or be modified.
11433
+ */
11434
+ 403: {
11435
+ headers: {
11436
+ [name: string]: unknown;
11437
+ };
11438
+ content: {
11439
+ "application/json": components["schemas"]["ErrorResponse"] & {
11440
+ /** @enum {string} */
11441
+ error_code?: "forbidden" | "insufficient_scope" | "user_suspended";
11442
+ };
11443
+ };
11444
+ };
11445
+ /** @description `account_not_found` — No Auth Account matches the request (domain, header or token). */
11446
+ 404: {
11447
+ headers: {
11448
+ [name: string]: unknown;
11449
+ };
11450
+ content: {
11451
+ "application/json": components["schemas"]["ErrorResponse"] & {
11452
+ /** @enum {string} */
11453
+ error_code?: "account_not_found";
11454
+ };
11455
+ };
11456
+ };
11457
+ /** @description `too_many_requests` — Rate limit exceeded. Honour the `Retry-After` header. */
11458
+ 429: {
11459
+ headers: {
11460
+ [name: string]: unknown;
11461
+ };
11462
+ content: {
11463
+ "application/json": components["schemas"]["ErrorResponse"] & {
11464
+ /** @enum {string} */
11465
+ error_code?: "too_many_requests";
11466
+ };
11467
+ };
11468
+ };
11469
+ /** @description `internal_error` — Unexpected server error. Retry later; the request id is logged. */
11470
+ 500: {
11471
+ headers: {
11472
+ [name: string]: unknown;
11473
+ };
11474
+ content: {
11475
+ "application/json": components["schemas"]["ErrorResponse"] & {
11476
+ /** @enum {string} */
11477
+ error_code?: "internal_error";
11478
+ };
11479
+ };
11480
+ };
11481
+ };
11482
+ };
11483
+ "internal/sequenceLookup": {
11484
+ parameters: {
11485
+ query?: never;
11486
+ header?: never;
11487
+ path: {
11488
+ name: string;
11489
+ };
11490
+ cookie?: never;
11491
+ };
11492
+ requestBody: {
11493
+ content: {
11494
+ "application/json": {
11495
+ params?: {
11496
+ [key: string]: unknown;
11497
+ };
11498
+ subject?: {
11499
+ type: string;
11500
+ id: string;
11501
+ };
11502
+ };
11503
+ };
11504
+ };
11505
+ responses: {
11506
+ /** @description Default Response */
11507
+ 200: {
11508
+ headers: {
11509
+ [name: string]: unknown;
11510
+ };
11511
+ content?: never;
11512
+ };
11513
+ /** @description `validation_error` — The body, query or path failed schema validation. `details.issues` lists each failing field. */
11514
+ 400: {
11515
+ headers: {
11516
+ [name: string]: unknown;
11517
+ };
11518
+ content: {
11519
+ "application/json": components["schemas"]["ErrorResponse"] & {
11520
+ /** @enum {string} */
11521
+ error_code?: "validation_error";
11522
+ };
11523
+ };
11524
+ };
11525
+ /** @description `unauthorized` — The request carries no valid credentials. */
11526
+ 401: {
11527
+ headers: {
11528
+ [name: string]: unknown;
11529
+ };
11530
+ content: {
11531
+ "application/json": components["schemas"]["ErrorResponse"] & {
11532
+ /** @enum {string} */
11533
+ error_code?: "unauthorized";
11534
+ };
11535
+ };
11536
+ };
11537
+ /**
11538
+ * @description `forbidden` — The credentials are valid but do not allow this operation.
11539
+ *
11540
+ * `insufficient_scope` — The token lacks a scope this operation requires. `message` names it.
11541
+ *
11542
+ * `user_suspended` — The user is suspended and cannot sign in or be modified.
11543
+ */
11544
+ 403: {
11545
+ headers: {
11546
+ [name: string]: unknown;
11547
+ };
11548
+ content: {
11549
+ "application/json": components["schemas"]["ErrorResponse"] & {
11550
+ /** @enum {string} */
11551
+ error_code?: "forbidden" | "insufficient_scope" | "user_suspended";
11552
+ };
11553
+ };
11554
+ };
11555
+ /** @description `account_not_found` — No Auth Account matches the request (domain, header or token). */
11556
+ 404: {
11557
+ headers: {
11558
+ [name: string]: unknown;
11559
+ };
11560
+ content: {
11561
+ "application/json": components["schemas"]["ErrorResponse"] & {
11562
+ /** @enum {string} */
11563
+ error_code?: "account_not_found";
11564
+ };
11565
+ };
11566
+ };
11567
+ /** @description `too_many_requests` — Rate limit exceeded. Honour the `Retry-After` header. */
11568
+ 429: {
11569
+ headers: {
11570
+ [name: string]: unknown;
11571
+ };
11572
+ content: {
11573
+ "application/json": components["schemas"]["ErrorResponse"] & {
11574
+ /** @enum {string} */
11575
+ error_code?: "too_many_requests";
11576
+ };
11577
+ };
11578
+ };
11579
+ /** @description `internal_error` — Unexpected server error. Retry later; the request id is logged. */
11580
+ 500: {
11581
+ headers: {
11582
+ [name: string]: unknown;
11583
+ };
11584
+ content: {
11585
+ "application/json": components["schemas"]["ErrorResponse"] & {
11586
+ /** @enum {string} */
11587
+ error_code?: "internal_error";
11588
+ };
11589
+ };
11590
+ };
11591
+ };
11592
+ };
11349
11593
  "account/transfer": {
11350
11594
  parameters: {
11351
11595
  query?: never;
package/dist/version.js CHANGED
@@ -9,13 +9,13 @@
9
9
  // login pages could not import the SDK at all. Same pattern as auth-js.
10
10
  //
11
11
  // The sentinels MUST stay byte-identical to the `from` values in `.releaserc`.
12
- export const version = "2.9.54";
12
+ export const version = "2.9.56";
13
13
  // Short git SHA of the released commit. The version dates a build; this names
14
14
  // the exact tree, so a canonical log line or an audit entry leads straight to
15
15
  // `git show <sha>`. Deliberately NOT hex: an unreleased build (dev, a local
16
16
  // link) cannot be mistaken for a real commit — auth only records values that
17
17
  // look like a SHA, and this one never will.
18
- export const commit = "2b27eb7";
18
+ export const commit = "8936377";
19
19
  // What this SDK writes in `x-faable-client`. Exported for a consumer that
20
20
  // builds a strategy on its own (outside `FaableAuthApi`) and still wants the
21
21
  // token request attributed — a bare `authClientCredentials` stamps only what
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@faable/auth-sdk",
3
- "version": "2.9.54",
3
+ "version": "2.9.56",
4
4
  "author": "Marc Pomar <marc@faable.com>",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
package/spec/openapi.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "info": {
4
4
  "title": "@faablecloud/auth",
5
5
  "description": "Auth Platform made by Faable. Manage Users and Roles",
6
- "version": "2.126.0",
6
+ "version": "2.127.1",
7
7
  "license": {
8
8
  "name": "private",
9
9
  "url": "https://faable.com/docs/platform/privacy-policy"
@@ -16804,6 +16804,407 @@
16804
16804
  }
16805
16805
  }
16806
16806
  },
16807
+ "/internal/sequences/lookups": {
16808
+ "get": {
16809
+ "operationId": "internal/sequenceLookupsCatalog",
16810
+ "summary": "The lookups Auth answers for sequences (platform)",
16811
+ "tags": [
16812
+ "account"
16813
+ ],
16814
+ "description": "What the notifications service may ask Auth about a tenant while it runs a sequence. Platform token.",
16815
+ "security": [
16816
+ {
16817
+ "bearerAuth": []
16818
+ }
16819
+ ],
16820
+ "responses": {
16821
+ "200": {
16822
+ "description": "Default Response",
16823
+ "content": {
16824
+ "application/json": {
16825
+ "schema": {
16826
+ "type": "object",
16827
+ "required": [
16828
+ "items"
16829
+ ],
16830
+ "properties": {
16831
+ "items": {
16832
+ "type": "array",
16833
+ "items": {
16834
+ "type": "object",
16835
+ "required": [
16836
+ "name",
16837
+ "kind",
16838
+ "description",
16839
+ "params_schema",
16840
+ "example"
16841
+ ],
16842
+ "properties": {
16843
+ "name": {
16844
+ "type": "string"
16845
+ },
16846
+ "kind": {
16847
+ "type": "string"
16848
+ },
16849
+ "description": {
16850
+ "type": "string"
16851
+ },
16852
+ "params_schema": {},
16853
+ "example": {}
16854
+ }
16855
+ }
16856
+ }
16857
+ }
16858
+ }
16859
+ }
16860
+ }
16861
+ },
16862
+ "401": {
16863
+ "description": "`unauthorized` — The request carries no valid credentials.",
16864
+ "content": {
16865
+ "application/json": {
16866
+ "schema": {
16867
+ "allOf": [
16868
+ {
16869
+ "$ref": "#/components/schemas/ErrorResponse"
16870
+ },
16871
+ {
16872
+ "type": "object",
16873
+ "properties": {
16874
+ "error_code": {
16875
+ "type": "string",
16876
+ "enum": [
16877
+ "unauthorized"
16878
+ ]
16879
+ }
16880
+ }
16881
+ }
16882
+ ]
16883
+ }
16884
+ }
16885
+ }
16886
+ },
16887
+ "403": {
16888
+ "description": "`forbidden` — The credentials are valid but do not allow this operation.\n\n`insufficient_scope` — The token lacks a scope this operation requires. `message` names it.\n\n`user_suspended` — The user is suspended and cannot sign in or be modified.",
16889
+ "content": {
16890
+ "application/json": {
16891
+ "schema": {
16892
+ "allOf": [
16893
+ {
16894
+ "$ref": "#/components/schemas/ErrorResponse"
16895
+ },
16896
+ {
16897
+ "type": "object",
16898
+ "properties": {
16899
+ "error_code": {
16900
+ "type": "string",
16901
+ "enum": [
16902
+ "forbidden",
16903
+ "insufficient_scope",
16904
+ "user_suspended"
16905
+ ]
16906
+ }
16907
+ }
16908
+ }
16909
+ ]
16910
+ }
16911
+ }
16912
+ }
16913
+ },
16914
+ "404": {
16915
+ "description": "`account_not_found` — No Auth Account matches the request (domain, header or token).",
16916
+ "content": {
16917
+ "application/json": {
16918
+ "schema": {
16919
+ "allOf": [
16920
+ {
16921
+ "$ref": "#/components/schemas/ErrorResponse"
16922
+ },
16923
+ {
16924
+ "type": "object",
16925
+ "properties": {
16926
+ "error_code": {
16927
+ "type": "string",
16928
+ "enum": [
16929
+ "account_not_found"
16930
+ ]
16931
+ }
16932
+ }
16933
+ }
16934
+ ]
16935
+ }
16936
+ }
16937
+ }
16938
+ },
16939
+ "429": {
16940
+ "description": "`too_many_requests` — Rate limit exceeded. Honour the `Retry-After` header.",
16941
+ "content": {
16942
+ "application/json": {
16943
+ "schema": {
16944
+ "allOf": [
16945
+ {
16946
+ "$ref": "#/components/schemas/ErrorResponse"
16947
+ },
16948
+ {
16949
+ "type": "object",
16950
+ "properties": {
16951
+ "error_code": {
16952
+ "type": "string",
16953
+ "enum": [
16954
+ "too_many_requests"
16955
+ ]
16956
+ }
16957
+ }
16958
+ }
16959
+ ]
16960
+ }
16961
+ }
16962
+ }
16963
+ },
16964
+ "500": {
16965
+ "description": "`internal_error` — Unexpected server error. Retry later; the request id is logged.",
16966
+ "content": {
16967
+ "application/json": {
16968
+ "schema": {
16969
+ "allOf": [
16970
+ {
16971
+ "$ref": "#/components/schemas/ErrorResponse"
16972
+ },
16973
+ {
16974
+ "type": "object",
16975
+ "properties": {
16976
+ "error_code": {
16977
+ "type": "string",
16978
+ "enum": [
16979
+ "internal_error"
16980
+ ]
16981
+ }
16982
+ }
16983
+ }
16984
+ ]
16985
+ }
16986
+ }
16987
+ }
16988
+ }
16989
+ }
16990
+ }
16991
+ },
16992
+ "/internal/sequences/lookups/{name}": {
16993
+ "post": {
16994
+ "operationId": "internal/sequenceLookup",
16995
+ "summary": "Answer one lookup of a sequence (platform)",
16996
+ "tags": [
16997
+ "account"
16998
+ ],
16999
+ "description": "A data object or a predicate `{result, data}` about a tenant. 400 or 404 when it cannot answer: the service does not retry those.",
17000
+ "requestBody": {
17001
+ "required": true,
17002
+ "content": {
17003
+ "application/json": {
17004
+ "schema": {
17005
+ "type": "object",
17006
+ "properties": {
17007
+ "params": {
17008
+ "type": "object",
17009
+ "additionalProperties": {}
17010
+ },
17011
+ "subject": {
17012
+ "type": "object",
17013
+ "required": [
17014
+ "type",
17015
+ "id"
17016
+ ],
17017
+ "properties": {
17018
+ "type": {
17019
+ "type": "string",
17020
+ "maxLength": 20
17021
+ },
17022
+ "id": {
17023
+ "type": "string",
17024
+ "maxLength": 80
17025
+ }
17026
+ }
17027
+ }
17028
+ }
17029
+ }
17030
+ }
17031
+ }
17032
+ },
17033
+ "parameters": [
17034
+ {
17035
+ "schema": {
17036
+ "type": "string",
17037
+ "pattern": "^[a-z][a-z0-9_]*\\.[a-z][a-z0-9_]*$"
17038
+ },
17039
+ "in": "path",
17040
+ "name": "name",
17041
+ "required": true
17042
+ }
17043
+ ],
17044
+ "security": [
17045
+ {
17046
+ "bearerAuth": []
17047
+ }
17048
+ ],
17049
+ "responses": {
17050
+ "200": {
17051
+ "description": "Default Response"
17052
+ },
17053
+ "400": {
17054
+ "description": "`validation_error` — The body, query or path failed schema validation. `details.issues` lists each failing field.",
17055
+ "content": {
17056
+ "application/json": {
17057
+ "schema": {
17058
+ "allOf": [
17059
+ {
17060
+ "$ref": "#/components/schemas/ErrorResponse"
17061
+ },
17062
+ {
17063
+ "type": "object",
17064
+ "properties": {
17065
+ "error_code": {
17066
+ "type": "string",
17067
+ "enum": [
17068
+ "validation_error"
17069
+ ]
17070
+ }
17071
+ }
17072
+ }
17073
+ ]
17074
+ }
17075
+ }
17076
+ }
17077
+ },
17078
+ "401": {
17079
+ "description": "`unauthorized` — The request carries no valid credentials.",
17080
+ "content": {
17081
+ "application/json": {
17082
+ "schema": {
17083
+ "allOf": [
17084
+ {
17085
+ "$ref": "#/components/schemas/ErrorResponse"
17086
+ },
17087
+ {
17088
+ "type": "object",
17089
+ "properties": {
17090
+ "error_code": {
17091
+ "type": "string",
17092
+ "enum": [
17093
+ "unauthorized"
17094
+ ]
17095
+ }
17096
+ }
17097
+ }
17098
+ ]
17099
+ }
17100
+ }
17101
+ }
17102
+ },
17103
+ "403": {
17104
+ "description": "`forbidden` — The credentials are valid but do not allow this operation.\n\n`insufficient_scope` — The token lacks a scope this operation requires. `message` names it.\n\n`user_suspended` — The user is suspended and cannot sign in or be modified.",
17105
+ "content": {
17106
+ "application/json": {
17107
+ "schema": {
17108
+ "allOf": [
17109
+ {
17110
+ "$ref": "#/components/schemas/ErrorResponse"
17111
+ },
17112
+ {
17113
+ "type": "object",
17114
+ "properties": {
17115
+ "error_code": {
17116
+ "type": "string",
17117
+ "enum": [
17118
+ "forbidden",
17119
+ "insufficient_scope",
17120
+ "user_suspended"
17121
+ ]
17122
+ }
17123
+ }
17124
+ }
17125
+ ]
17126
+ }
17127
+ }
17128
+ }
17129
+ },
17130
+ "404": {
17131
+ "description": "`account_not_found` — No Auth Account matches the request (domain, header or token).",
17132
+ "content": {
17133
+ "application/json": {
17134
+ "schema": {
17135
+ "allOf": [
17136
+ {
17137
+ "$ref": "#/components/schemas/ErrorResponse"
17138
+ },
17139
+ {
17140
+ "type": "object",
17141
+ "properties": {
17142
+ "error_code": {
17143
+ "type": "string",
17144
+ "enum": [
17145
+ "account_not_found"
17146
+ ]
17147
+ }
17148
+ }
17149
+ }
17150
+ ]
17151
+ }
17152
+ }
17153
+ }
17154
+ },
17155
+ "429": {
17156
+ "description": "`too_many_requests` — Rate limit exceeded. Honour the `Retry-After` header.",
17157
+ "content": {
17158
+ "application/json": {
17159
+ "schema": {
17160
+ "allOf": [
17161
+ {
17162
+ "$ref": "#/components/schemas/ErrorResponse"
17163
+ },
17164
+ {
17165
+ "type": "object",
17166
+ "properties": {
17167
+ "error_code": {
17168
+ "type": "string",
17169
+ "enum": [
17170
+ "too_many_requests"
17171
+ ]
17172
+ }
17173
+ }
17174
+ }
17175
+ ]
17176
+ }
17177
+ }
17178
+ }
17179
+ },
17180
+ "500": {
17181
+ "description": "`internal_error` — Unexpected server error. Retry later; the request id is logged.",
17182
+ "content": {
17183
+ "application/json": {
17184
+ "schema": {
17185
+ "allOf": [
17186
+ {
17187
+ "$ref": "#/components/schemas/ErrorResponse"
17188
+ },
17189
+ {
17190
+ "type": "object",
17191
+ "properties": {
17192
+ "error_code": {
17193
+ "type": "string",
17194
+ "enum": [
17195
+ "internal_error"
17196
+ ]
17197
+ }
17198
+ }
17199
+ }
17200
+ ]
17201
+ }
17202
+ }
17203
+ }
17204
+ }
17205
+ }
17206
+ }
17207
+ },
16807
17208
  "/account/{account_id}/transfer": {
16808
17209
  "post": {
16809
17210
  "operationId": "account/transfer",