@faable/auth-sdk 2.9.33 → 2.9.35
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/api/generated-client.d.ts +3 -48
- package/dist/api/types.d.ts +127 -0
- package/dist/version.js +2 -2
- package/package.json +1 -1
- package/spec/openapi.json +215 -1
|
@@ -2709,22 +2709,7 @@ export declare abstract class GeneratedFaableAuthApi extends FaableApi {
|
|
|
2709
2709
|
provider_options?: {
|
|
2710
2710
|
team_id?: string | undefined;
|
|
2711
2711
|
key_id?: string | undefined;
|
|
2712
|
-
} | undefined;
|
|
2713
|
-
* `POST /user/{user_id}/passkey-prompt/reset` — operationId: `user/resetPasskeyPrompt`
|
|
2714
|
-
*
|
|
2715
|
-
* Reset a user's passkey offer counter
|
|
2716
|
-
*
|
|
2717
|
-
* The post-login "create a passkey" offer stops after `login_methods.passkey_promotion_max_prompts` times and snoozes between them. This clears both, so the user is offered a passkey again on their next login — for "why does it keep asking" and "please ask me again" alike.
|
|
2718
|
-
*
|
|
2719
|
-
* @throws {FaableApiError} `validation_error` (400) — The body, query or path failed schema validation. `details.issues` lists each failing field.
|
|
2720
|
-
* @throws {FaableApiError} `unauthorized` (401) — The request carries no valid credentials.
|
|
2721
|
-
* @throws {FaableApiError} `forbidden` (403) — The credentials are valid but do not allow this operation.
|
|
2722
|
-
* @throws {FaableApiError} `insufficient_scope` (403) — The token lacks a scope this operation requires. `message` names it.
|
|
2723
|
-
* @throws {FaableApiError} `user_suspended` (403) — The user is suspended and cannot sign in or be modified.
|
|
2724
|
-
* @throws {FaableApiError} `account_not_found` (404) — No Auth Account matches the request (domain, header or token).
|
|
2725
|
-
* @throws {FaableApiError} `too_many_requests` (429) — Rate limit exceeded. Honour the `Retry-After` header.
|
|
2726
|
-
* @throws {FaableApiError} `internal_error` (500) — Unexpected server error. Retry later; the request id is logged.
|
|
2727
|
-
*/
|
|
2712
|
+
} | undefined;
|
|
2728
2713
|
claims_mapping?: {
|
|
2729
2714
|
[key: string]: string;
|
|
2730
2715
|
} | undefined;
|
|
@@ -2769,22 +2754,7 @@ export declare abstract class GeneratedFaableAuthApi extends FaableApi {
|
|
|
2769
2754
|
provider_options?: {
|
|
2770
2755
|
team_id?: string | undefined;
|
|
2771
2756
|
key_id?: string | undefined;
|
|
2772
|
-
} | undefined;
|
|
2773
|
-
* `POST /user/{user_id}/passkey-prompt/reset` — operationId: `user/resetPasskeyPrompt`
|
|
2774
|
-
*
|
|
2775
|
-
* Reset a user's passkey offer counter
|
|
2776
|
-
*
|
|
2777
|
-
* The post-login "create a passkey" offer stops after `login_methods.passkey_promotion_max_prompts` times and snoozes between them. This clears both, so the user is offered a passkey again on their next login — for "why does it keep asking" and "please ask me again" alike.
|
|
2778
|
-
*
|
|
2779
|
-
* @throws {FaableApiError} `validation_error` (400) — The body, query or path failed schema validation. `details.issues` lists each failing field.
|
|
2780
|
-
* @throws {FaableApiError} `unauthorized` (401) — The request carries no valid credentials.
|
|
2781
|
-
* @throws {FaableApiError} `forbidden` (403) — The credentials are valid but do not allow this operation.
|
|
2782
|
-
* @throws {FaableApiError} `insufficient_scope` (403) — The token lacks a scope this operation requires. `message` names it.
|
|
2783
|
-
* @throws {FaableApiError} `user_suspended` (403) — The user is suspended and cannot sign in or be modified.
|
|
2784
|
-
* @throws {FaableApiError} `account_not_found` (404) — No Auth Account matches the request (domain, header or token).
|
|
2785
|
-
* @throws {FaableApiError} `too_many_requests` (429) — Rate limit exceeded. Honour the `Retry-After` header.
|
|
2786
|
-
* @throws {FaableApiError} `internal_error` (500) — Unexpected server error. Retry later; the request id is logged.
|
|
2787
|
-
*/
|
|
2757
|
+
} | undefined;
|
|
2788
2758
|
claims_mapping?: {
|
|
2789
2759
|
[key: string]: string;
|
|
2790
2760
|
} | undefined;
|
|
@@ -2832,22 +2802,7 @@ export declare abstract class GeneratedFaableAuthApi extends FaableApi {
|
|
|
2832
2802
|
provider_options?: {
|
|
2833
2803
|
team_id?: string | undefined;
|
|
2834
2804
|
key_id?: string | undefined;
|
|
2835
|
-
} | undefined;
|
|
2836
|
-
* `POST /user/{user_id}/passkey-prompt/reset` — operationId: `user/resetPasskeyPrompt`
|
|
2837
|
-
*
|
|
2838
|
-
* Reset a user's passkey offer counter
|
|
2839
|
-
*
|
|
2840
|
-
* The post-login "create a passkey" offer stops after `login_methods.passkey_promotion_max_prompts` times and snoozes between them. This clears both, so the user is offered a passkey again on their next login — for "why does it keep asking" and "please ask me again" alike.
|
|
2841
|
-
*
|
|
2842
|
-
* @throws {FaableApiError} `validation_error` (400) — The body, query or path failed schema validation. `details.issues` lists each failing field.
|
|
2843
|
-
* @throws {FaableApiError} `unauthorized` (401) — The request carries no valid credentials.
|
|
2844
|
-
* @throws {FaableApiError} `forbidden` (403) — The credentials are valid but do not allow this operation.
|
|
2845
|
-
* @throws {FaableApiError} `insufficient_scope` (403) — The token lacks a scope this operation requires. `message` names it.
|
|
2846
|
-
* @throws {FaableApiError} `user_suspended` (403) — The user is suspended and cannot sign in or be modified.
|
|
2847
|
-
* @throws {FaableApiError} `account_not_found` (404) — No Auth Account matches the request (domain, header or token).
|
|
2848
|
-
* @throws {FaableApiError} `too_many_requests` (429) — Rate limit exceeded. Honour the `Retry-After` header.
|
|
2849
|
-
* @throws {FaableApiError} `internal_error` (500) — Unexpected server error. Retry later; the request id is logged.
|
|
2850
|
-
*/
|
|
2805
|
+
} | undefined;
|
|
2851
2806
|
claims_mapping?: {
|
|
2852
2807
|
[key: string]: string;
|
|
2853
2808
|
} | undefined;
|
package/dist/api/types.d.ts
CHANGED
|
@@ -407,6 +407,26 @@ export interface paths {
|
|
|
407
407
|
patch?: never;
|
|
408
408
|
trace?: never;
|
|
409
409
|
};
|
|
410
|
+
"/login/transaction": {
|
|
411
|
+
parameters: {
|
|
412
|
+
query?: never;
|
|
413
|
+
header?: never;
|
|
414
|
+
path?: never;
|
|
415
|
+
cookie?: never;
|
|
416
|
+
};
|
|
417
|
+
/**
|
|
418
|
+
* Start a form transaction
|
|
419
|
+
* @description Mints a short-lived, single-use token for the login or signup form being shown. Send it back as `tx` on `/passwordless/start` or `/dbconnections/signup`. It is bound to this application, network and browser; @faable/auth-js >= 3.6.0 handles it.
|
|
420
|
+
*/
|
|
421
|
+
get: operations["login/transaction"];
|
|
422
|
+
put?: never;
|
|
423
|
+
post?: never;
|
|
424
|
+
delete?: never;
|
|
425
|
+
options?: never;
|
|
426
|
+
head?: never;
|
|
427
|
+
patch?: never;
|
|
428
|
+
trace?: never;
|
|
429
|
+
};
|
|
410
430
|
"/login/identify": {
|
|
411
431
|
parameters: {
|
|
412
432
|
query?: never;
|
|
@@ -12792,6 +12812,95 @@ export interface operations {
|
|
|
12792
12812
|
};
|
|
12793
12813
|
};
|
|
12794
12814
|
};
|
|
12815
|
+
"login/transaction": {
|
|
12816
|
+
parameters: {
|
|
12817
|
+
query: {
|
|
12818
|
+
client_id: string;
|
|
12819
|
+
};
|
|
12820
|
+
header?: never;
|
|
12821
|
+
path?: never;
|
|
12822
|
+
cookie?: never;
|
|
12823
|
+
};
|
|
12824
|
+
requestBody?: never;
|
|
12825
|
+
responses: {
|
|
12826
|
+
/** @description Default Response */
|
|
12827
|
+
200: {
|
|
12828
|
+
headers: {
|
|
12829
|
+
[name: string]: unknown;
|
|
12830
|
+
};
|
|
12831
|
+
content: {
|
|
12832
|
+
"application/json": {
|
|
12833
|
+
tx: string;
|
|
12834
|
+
expires_at: string;
|
|
12835
|
+
};
|
|
12836
|
+
};
|
|
12837
|
+
};
|
|
12838
|
+
/**
|
|
12839
|
+
* @description `invalid_client` — The `client_id` in the request does not name a client of this account.
|
|
12840
|
+
*
|
|
12841
|
+
* `validation_error` — The body, query or path failed schema validation. `details.issues` lists each failing field.
|
|
12842
|
+
*/
|
|
12843
|
+
400: {
|
|
12844
|
+
headers: {
|
|
12845
|
+
[name: string]: unknown;
|
|
12846
|
+
};
|
|
12847
|
+
content: {
|
|
12848
|
+
"application/json": components["schemas"]["ErrorResponse"] & {
|
|
12849
|
+
/** @enum {string} */
|
|
12850
|
+
error_code?: "invalid_client" | "validation_error";
|
|
12851
|
+
};
|
|
12852
|
+
};
|
|
12853
|
+
};
|
|
12854
|
+
/** @description `origin_not_allowed` — The request `Origin` is not in the client's Allowed Web Origins. */
|
|
12855
|
+
403: {
|
|
12856
|
+
headers: {
|
|
12857
|
+
[name: string]: unknown;
|
|
12858
|
+
};
|
|
12859
|
+
content: {
|
|
12860
|
+
"application/json": components["schemas"]["ErrorResponse"] & {
|
|
12861
|
+
/** @enum {string} */
|
|
12862
|
+
error_code?: "origin_not_allowed";
|
|
12863
|
+
};
|
|
12864
|
+
};
|
|
12865
|
+
};
|
|
12866
|
+
/** @description `account_not_found` — No Auth Account matches the request (domain, header or token). */
|
|
12867
|
+
404: {
|
|
12868
|
+
headers: {
|
|
12869
|
+
[name: string]: unknown;
|
|
12870
|
+
};
|
|
12871
|
+
content: {
|
|
12872
|
+
"application/json": components["schemas"]["ErrorResponse"] & {
|
|
12873
|
+
/** @enum {string} */
|
|
12874
|
+
error_code?: "account_not_found";
|
|
12875
|
+
};
|
|
12876
|
+
};
|
|
12877
|
+
};
|
|
12878
|
+
/** @description `too_many_requests` — Rate limit exceeded. Honour the `Retry-After` header. */
|
|
12879
|
+
429: {
|
|
12880
|
+
headers: {
|
|
12881
|
+
[name: string]: unknown;
|
|
12882
|
+
};
|
|
12883
|
+
content: {
|
|
12884
|
+
"application/json": components["schemas"]["ErrorResponse"] & {
|
|
12885
|
+
/** @enum {string} */
|
|
12886
|
+
error_code?: "too_many_requests";
|
|
12887
|
+
};
|
|
12888
|
+
};
|
|
12889
|
+
};
|
|
12890
|
+
/** @description `internal_error` — Unexpected server error. Retry later; the request id is logged. */
|
|
12891
|
+
500: {
|
|
12892
|
+
headers: {
|
|
12893
|
+
[name: string]: unknown;
|
|
12894
|
+
};
|
|
12895
|
+
content: {
|
|
12896
|
+
"application/json": components["schemas"]["ErrorResponse"] & {
|
|
12897
|
+
/** @enum {string} */
|
|
12898
|
+
error_code?: "internal_error";
|
|
12899
|
+
};
|
|
12900
|
+
};
|
|
12901
|
+
};
|
|
12902
|
+
};
|
|
12903
|
+
};
|
|
12795
12904
|
"login/identify": {
|
|
12796
12905
|
parameters: {
|
|
12797
12906
|
query?: never;
|
|
@@ -32178,6 +32287,10 @@ export interface operations {
|
|
|
32178
32287
|
action?: string;
|
|
32179
32288
|
/** @description Exact match on `browser`. Equivalent to `?query=browser:<value>`. */
|
|
32180
32289
|
browser?: string;
|
|
32290
|
+
/** @description Exact match on `signup`. Equivalent to `?query=signup:<value>`. */
|
|
32291
|
+
signup?: string;
|
|
32292
|
+
/** @description Exact match on `grant`. Equivalent to `?query=grant:<value>`. */
|
|
32293
|
+
grant?: string;
|
|
32181
32294
|
/** @description Exact match on `user`. Equivalent to `?query=user:<value>`. */
|
|
32182
32295
|
user?: string;
|
|
32183
32296
|
/** @description Exact match on `client`. Equivalent to `?query=client:<value>`. */
|
|
@@ -34304,6 +34417,13 @@ export interface operations {
|
|
|
34304
34417
|
id: string;
|
|
34305
34418
|
nonce: string;
|
|
34306
34419
|
};
|
|
34420
|
+
/**
|
|
34421
|
+
* @description Declares that this client can solve the bot-protection challenge (`kind: 'pow'`), so a protected application answers `challenge_required` instead of `challenge_unsupported`. @faable/auth-js and the hosted login screens announce it through `x-faable-client`; any other client sends this.
|
|
34422
|
+
* @enum {string}
|
|
34423
|
+
*/
|
|
34424
|
+
challenge_support?: "pow";
|
|
34425
|
+
/** @description The form transaction token from `GET /login/transaction`, minted when the form loaded. Single use. Optional: a missing, reused or mismatched token only raises the bot-protection risk score, never rejects the request by itself. */
|
|
34426
|
+
tx?: string;
|
|
34307
34427
|
};
|
|
34308
34428
|
};
|
|
34309
34429
|
};
|
|
@@ -38591,6 +38711,13 @@ export interface operations {
|
|
|
38591
38711
|
id: string;
|
|
38592
38712
|
nonce: string;
|
|
38593
38713
|
};
|
|
38714
|
+
/**
|
|
38715
|
+
* @description Declares that this client can solve the bot-protection challenge (`kind: 'pow'`), so a protected application answers `challenge_required` instead of `challenge_unsupported`. @faable/auth-js and the hosted login screens announce it through `x-faable-client`; any other client sends this.
|
|
38716
|
+
* @enum {string}
|
|
38717
|
+
*/
|
|
38718
|
+
challenge_support?: "pow";
|
|
38719
|
+
/** @description The form transaction token from `GET /login/transaction`, minted when the form loaded. Single use. Optional: a missing, reused or mismatched token only raises the bot-protection risk score, never rejects the request by itself. */
|
|
38720
|
+
tx?: string;
|
|
38594
38721
|
};
|
|
38595
38722
|
};
|
|
38596
38723
|
};
|
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.
|
|
12
|
+
export const version = "2.9.35";
|
|
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 = "
|
|
18
|
+
export const commit = "221b0c5";
|
|
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
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.
|
|
6
|
+
"version": "2.112.0",
|
|
7
7
|
"license": {
|
|
8
8
|
"name": "private",
|
|
9
9
|
"url": "https://faable.com/docs/platform/privacy-policy"
|
|
@@ -20650,6 +20650,178 @@
|
|
|
20650
20650
|
}
|
|
20651
20651
|
}
|
|
20652
20652
|
},
|
|
20653
|
+
"/login/transaction": {
|
|
20654
|
+
"get": {
|
|
20655
|
+
"operationId": "login/transaction",
|
|
20656
|
+
"summary": "Start a form transaction",
|
|
20657
|
+
"tags": [
|
|
20658
|
+
"connection"
|
|
20659
|
+
],
|
|
20660
|
+
"description": "Mints a short-lived, single-use token for the login or signup form being shown. Send it back as `tx` on `/passwordless/start` or `/dbconnections/signup`. It is bound to this application, network and browser; @faable/auth-js >= 3.6.0 handles it.",
|
|
20661
|
+
"parameters": [
|
|
20662
|
+
{
|
|
20663
|
+
"schema": {
|
|
20664
|
+
"type": "string",
|
|
20665
|
+
"minLength": 1,
|
|
20666
|
+
"maxLength": 200
|
|
20667
|
+
},
|
|
20668
|
+
"in": "query",
|
|
20669
|
+
"name": "client_id",
|
|
20670
|
+
"required": true
|
|
20671
|
+
}
|
|
20672
|
+
],
|
|
20673
|
+
"responses": {
|
|
20674
|
+
"200": {
|
|
20675
|
+
"description": "Default Response",
|
|
20676
|
+
"content": {
|
|
20677
|
+
"application/json": {
|
|
20678
|
+
"schema": {
|
|
20679
|
+
"type": "object",
|
|
20680
|
+
"required": [
|
|
20681
|
+
"tx",
|
|
20682
|
+
"expires_at"
|
|
20683
|
+
],
|
|
20684
|
+
"properties": {
|
|
20685
|
+
"tx": {
|
|
20686
|
+
"type": "string"
|
|
20687
|
+
},
|
|
20688
|
+
"expires_at": {
|
|
20689
|
+
"type": "string"
|
|
20690
|
+
}
|
|
20691
|
+
}
|
|
20692
|
+
}
|
|
20693
|
+
}
|
|
20694
|
+
}
|
|
20695
|
+
},
|
|
20696
|
+
"400": {
|
|
20697
|
+
"description": "`invalid_client` — The `client_id` in the request does not name a client of this account.\n\n`validation_error` — The body, query or path failed schema validation. `details.issues` lists each failing field.",
|
|
20698
|
+
"content": {
|
|
20699
|
+
"application/json": {
|
|
20700
|
+
"schema": {
|
|
20701
|
+
"allOf": [
|
|
20702
|
+
{
|
|
20703
|
+
"$ref": "#/components/schemas/ErrorResponse"
|
|
20704
|
+
},
|
|
20705
|
+
{
|
|
20706
|
+
"type": "object",
|
|
20707
|
+
"properties": {
|
|
20708
|
+
"error_code": {
|
|
20709
|
+
"type": "string",
|
|
20710
|
+
"enum": [
|
|
20711
|
+
"invalid_client",
|
|
20712
|
+
"validation_error"
|
|
20713
|
+
]
|
|
20714
|
+
}
|
|
20715
|
+
}
|
|
20716
|
+
}
|
|
20717
|
+
]
|
|
20718
|
+
}
|
|
20719
|
+
}
|
|
20720
|
+
}
|
|
20721
|
+
},
|
|
20722
|
+
"403": {
|
|
20723
|
+
"description": "`origin_not_allowed` — The request `Origin` is not in the client's Allowed Web Origins.",
|
|
20724
|
+
"content": {
|
|
20725
|
+
"application/json": {
|
|
20726
|
+
"schema": {
|
|
20727
|
+
"allOf": [
|
|
20728
|
+
{
|
|
20729
|
+
"$ref": "#/components/schemas/ErrorResponse"
|
|
20730
|
+
},
|
|
20731
|
+
{
|
|
20732
|
+
"type": "object",
|
|
20733
|
+
"properties": {
|
|
20734
|
+
"error_code": {
|
|
20735
|
+
"type": "string",
|
|
20736
|
+
"enum": [
|
|
20737
|
+
"origin_not_allowed"
|
|
20738
|
+
]
|
|
20739
|
+
}
|
|
20740
|
+
}
|
|
20741
|
+
}
|
|
20742
|
+
]
|
|
20743
|
+
}
|
|
20744
|
+
}
|
|
20745
|
+
}
|
|
20746
|
+
},
|
|
20747
|
+
"404": {
|
|
20748
|
+
"description": "`account_not_found` — No Auth Account matches the request (domain, header or token).",
|
|
20749
|
+
"content": {
|
|
20750
|
+
"application/json": {
|
|
20751
|
+
"schema": {
|
|
20752
|
+
"allOf": [
|
|
20753
|
+
{
|
|
20754
|
+
"$ref": "#/components/schemas/ErrorResponse"
|
|
20755
|
+
},
|
|
20756
|
+
{
|
|
20757
|
+
"type": "object",
|
|
20758
|
+
"properties": {
|
|
20759
|
+
"error_code": {
|
|
20760
|
+
"type": "string",
|
|
20761
|
+
"enum": [
|
|
20762
|
+
"account_not_found"
|
|
20763
|
+
]
|
|
20764
|
+
}
|
|
20765
|
+
}
|
|
20766
|
+
}
|
|
20767
|
+
]
|
|
20768
|
+
}
|
|
20769
|
+
}
|
|
20770
|
+
}
|
|
20771
|
+
},
|
|
20772
|
+
"429": {
|
|
20773
|
+
"description": "`too_many_requests` — Rate limit exceeded. Honour the `Retry-After` header.",
|
|
20774
|
+
"content": {
|
|
20775
|
+
"application/json": {
|
|
20776
|
+
"schema": {
|
|
20777
|
+
"allOf": [
|
|
20778
|
+
{
|
|
20779
|
+
"$ref": "#/components/schemas/ErrorResponse"
|
|
20780
|
+
},
|
|
20781
|
+
{
|
|
20782
|
+
"type": "object",
|
|
20783
|
+
"properties": {
|
|
20784
|
+
"error_code": {
|
|
20785
|
+
"type": "string",
|
|
20786
|
+
"enum": [
|
|
20787
|
+
"too_many_requests"
|
|
20788
|
+
]
|
|
20789
|
+
}
|
|
20790
|
+
}
|
|
20791
|
+
}
|
|
20792
|
+
]
|
|
20793
|
+
}
|
|
20794
|
+
}
|
|
20795
|
+
}
|
|
20796
|
+
},
|
|
20797
|
+
"500": {
|
|
20798
|
+
"description": "`internal_error` — Unexpected server error. Retry later; the request id is logged.",
|
|
20799
|
+
"content": {
|
|
20800
|
+
"application/json": {
|
|
20801
|
+
"schema": {
|
|
20802
|
+
"allOf": [
|
|
20803
|
+
{
|
|
20804
|
+
"$ref": "#/components/schemas/ErrorResponse"
|
|
20805
|
+
},
|
|
20806
|
+
{
|
|
20807
|
+
"type": "object",
|
|
20808
|
+
"properties": {
|
|
20809
|
+
"error_code": {
|
|
20810
|
+
"type": "string",
|
|
20811
|
+
"enum": [
|
|
20812
|
+
"internal_error"
|
|
20813
|
+
]
|
|
20814
|
+
}
|
|
20815
|
+
}
|
|
20816
|
+
}
|
|
20817
|
+
]
|
|
20818
|
+
}
|
|
20819
|
+
}
|
|
20820
|
+
}
|
|
20821
|
+
}
|
|
20822
|
+
}
|
|
20823
|
+
}
|
|
20824
|
+
},
|
|
20653
20825
|
"/login/identify": {
|
|
20654
20826
|
"post": {
|
|
20655
20827
|
"operationId": "login/identify",
|
|
@@ -65794,6 +65966,24 @@
|
|
|
65794
65966
|
"required": false,
|
|
65795
65967
|
"description": "Exact match on `browser`. Equivalent to `?query=browser:<value>`."
|
|
65796
65968
|
},
|
|
65969
|
+
{
|
|
65970
|
+
"schema": {
|
|
65971
|
+
"type": "string"
|
|
65972
|
+
},
|
|
65973
|
+
"in": "query",
|
|
65974
|
+
"name": "signup",
|
|
65975
|
+
"required": false,
|
|
65976
|
+
"description": "Exact match on `signup`. Equivalent to `?query=signup:<value>`."
|
|
65977
|
+
},
|
|
65978
|
+
{
|
|
65979
|
+
"schema": {
|
|
65980
|
+
"type": "string"
|
|
65981
|
+
},
|
|
65982
|
+
"in": "query",
|
|
65983
|
+
"name": "grant",
|
|
65984
|
+
"required": false,
|
|
65985
|
+
"description": "Exact match on `grant`. Equivalent to `?query=grant:<value>`."
|
|
65986
|
+
},
|
|
65797
65987
|
{
|
|
65798
65988
|
"schema": {
|
|
65799
65989
|
"type": "string"
|
|
@@ -70455,6 +70645,18 @@
|
|
|
70455
70645
|
}
|
|
70456
70646
|
},
|
|
70457
70647
|
"description": "Answer to a `challenge_required`: the challenge `id` and the `nonce` found. @faable/auth-js >= 3.4.0 fills it in."
|
|
70648
|
+
},
|
|
70649
|
+
"challenge_support": {
|
|
70650
|
+
"type": "string",
|
|
70651
|
+
"description": "Declares that this client can solve the bot-protection challenge (`kind: 'pow'`), so a protected application answers `challenge_required` instead of `challenge_unsupported`. @faable/auth-js and the hosted login screens announce it through `x-faable-client`; any other client sends this.",
|
|
70652
|
+
"enum": [
|
|
70653
|
+
"pow"
|
|
70654
|
+
]
|
|
70655
|
+
},
|
|
70656
|
+
"tx": {
|
|
70657
|
+
"type": "string",
|
|
70658
|
+
"maxLength": 64,
|
|
70659
|
+
"description": "The form transaction token from `GET /login/transaction`, minted when the form loaded. Single use. Optional: a missing, reused or mismatched token only raises the bot-protection risk score, never rejects the request by itself."
|
|
70458
70660
|
}
|
|
70459
70661
|
}
|
|
70460
70662
|
}
|
|
@@ -83377,6 +83579,18 @@
|
|
|
83377
83579
|
}
|
|
83378
83580
|
},
|
|
83379
83581
|
"description": "Answer to a `challenge_required`: the challenge `id` and the `nonce` found. @faable/auth-js >= 3.4.0 fills it in."
|
|
83582
|
+
},
|
|
83583
|
+
"challenge_support": {
|
|
83584
|
+
"type": "string",
|
|
83585
|
+
"description": "Declares that this client can solve the bot-protection challenge (`kind: 'pow'`), so a protected application answers `challenge_required` instead of `challenge_unsupported`. @faable/auth-js and the hosted login screens announce it through `x-faable-client`; any other client sends this.",
|
|
83586
|
+
"enum": [
|
|
83587
|
+
"pow"
|
|
83588
|
+
]
|
|
83589
|
+
},
|
|
83590
|
+
"tx": {
|
|
83591
|
+
"type": "string",
|
|
83592
|
+
"maxLength": 64,
|
|
83593
|
+
"description": "The form transaction token from `GET /login/transaction`, minted when the form loaded. Single use. Optional: a missing, reused or mismatched token only raises the bot-protection risk score, never rejects the request by itself."
|
|
83380
83594
|
}
|
|
83381
83595
|
},
|
|
83382
83596
|
"additionalProperties": false
|