@faable/auth-sdk 2.9.53 → 2.9.54
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.
|
@@ -4861,7 +4861,7 @@ export declare abstract class GeneratedFaableAuthApi extends FaableApi {
|
|
|
4861
4861
|
*
|
|
4862
4862
|
* The graph this account (or client) runs right now
|
|
4863
4863
|
*
|
|
4864
|
-
* 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.
|
|
4864
|
+
* 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. `offer` says which credential kinds the hosted screen actually offers (to this client, or to the account's interactive clients, each tagged with the clients that get it), in screen order: the compiled graph keeps every kind as an entry point, and `offer` tells the live ones apart. A client restricted to `client_credentials` has `interactive: false`.
|
|
4865
4865
|
*
|
|
4866
4866
|
* @throws {FaableApiError} `validation_error` (400) — The body, query or path failed schema validation. `details.issues` lists each failing field.
|
|
4867
4867
|
* @throws {FaableApiError} `unauthorized` (401) — The request carries no valid credentials.
|
|
@@ -4890,6 +4890,14 @@ export declare abstract class GeneratedFaableAuthApi extends FaableApi {
|
|
|
4890
4890
|
to: string;
|
|
4891
4891
|
}[];
|
|
4892
4892
|
};
|
|
4893
|
+
offer: {
|
|
4894
|
+
interactive: boolean;
|
|
4895
|
+
kinds: {
|
|
4896
|
+
kind: "database" | "social" | "passwordless" | "passkey";
|
|
4897
|
+
connections: string[];
|
|
4898
|
+
clients: string[] | null;
|
|
4899
|
+
}[];
|
|
4900
|
+
};
|
|
4893
4901
|
bound: {
|
|
4894
4902
|
flow_id: string;
|
|
4895
4903
|
bound_to: "account" | "client";
|
|
@@ -1453,7 +1453,7 @@ export class GeneratedFaableAuthApi extends FaableApi {
|
|
|
1453
1453
|
*
|
|
1454
1454
|
* The graph this account (or client) runs right now
|
|
1455
1455
|
*
|
|
1456
|
-
* 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.
|
|
1456
|
+
* 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. `offer` says which credential kinds the hosted screen actually offers (to this client, or to the account's interactive clients, each tagged with the clients that get it), in screen order: the compiled graph keeps every kind as an entry point, and `offer` tells the live ones apart. A client restricted to `client_credentials` has `interactive: false`.
|
|
1457
1457
|
*
|
|
1458
1458
|
* @throws {FaableApiError} `validation_error` (400) — The body, query or path failed schema validation. `details.issues` lists each failing field.
|
|
1459
1459
|
* @throws {FaableApiError} `unauthorized` (401) — The request carries no valid credentials.
|
package/dist/api/types.d.ts
CHANGED
|
@@ -2028,7 +2028,7 @@ export interface paths {
|
|
|
2028
2028
|
};
|
|
2029
2029
|
/**
|
|
2030
2030
|
* The graph this account (or client) runs right now
|
|
2031
|
-
* @description 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.
|
|
2031
|
+
* @description 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. `offer` says which credential kinds the hosted screen actually offers (to this client, or to the account's interactive clients, each tagged with the clients that get it), in screen order: the compiled graph keeps every kind as an entry point, and `offer` tells the live ones apart. A client restricted to `client_credentials` has `interactive: false`.
|
|
2032
2032
|
*/
|
|
2033
2033
|
get: operations["loginflow/resolved"];
|
|
2034
2034
|
put?: never;
|
|
@@ -30138,6 +30138,14 @@ export interface operations {
|
|
|
30138
30138
|
to: string;
|
|
30139
30139
|
}[];
|
|
30140
30140
|
};
|
|
30141
|
+
offer: {
|
|
30142
|
+
interactive: boolean;
|
|
30143
|
+
kinds: {
|
|
30144
|
+
kind: "database" | "passwordless" | "social" | "passkey";
|
|
30145
|
+
connections: string[];
|
|
30146
|
+
clients: string[] | null;
|
|
30147
|
+
}[];
|
|
30148
|
+
};
|
|
30141
30149
|
bound: {
|
|
30142
30150
|
flow_id: string;
|
|
30143
30151
|
bound_to: "account" | "client";
|
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.54";
|
|
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 = "2b27eb7";
|
|
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.126.0",
|
|
7
7
|
"license": {
|
|
8
8
|
"name": "private",
|
|
9
9
|
"url": "https://faable.com/docs/platform/privacy-policy"
|
|
@@ -59359,7 +59359,7 @@
|
|
|
59359
59359
|
"tags": [
|
|
59360
59360
|
"loginflow"
|
|
59361
59361
|
],
|
|
59362
|
-
"description": "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.",
|
|
59362
|
+
"description": "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. `offer` says which credential kinds the hosted screen actually offers (to this client, or to the account's interactive clients, each tagged with the clients that get it), in screen order: the compiled graph keeps every kind as an entry point, and `offer` tells the live ones apart. A client restricted to `client_credentials` has `interactive: false`.",
|
|
59363
59363
|
"parameters": [
|
|
59364
59364
|
{
|
|
59365
59365
|
"schema": {
|
|
@@ -59387,6 +59387,7 @@
|
|
|
59387
59387
|
"flow_id",
|
|
59388
59388
|
"revision",
|
|
59389
59389
|
"graph",
|
|
59390
|
+
"offer",
|
|
59390
59391
|
"bound"
|
|
59391
59392
|
],
|
|
59392
59393
|
"properties": {
|
|
@@ -59572,6 +59573,78 @@
|
|
|
59572
59573
|
"additionalProperties": false,
|
|
59573
59574
|
"description": "A login flow graph: typed nodes joined by named handles. See the validation rules on publish."
|
|
59574
59575
|
},
|
|
59576
|
+
"offer": {
|
|
59577
|
+
"type": "object",
|
|
59578
|
+
"required": [
|
|
59579
|
+
"interactive",
|
|
59580
|
+
"kinds"
|
|
59581
|
+
],
|
|
59582
|
+
"properties": {
|
|
59583
|
+
"interactive": {
|
|
59584
|
+
"type": "boolean"
|
|
59585
|
+
},
|
|
59586
|
+
"kinds": {
|
|
59587
|
+
"type": "array",
|
|
59588
|
+
"items": {
|
|
59589
|
+
"type": "object",
|
|
59590
|
+
"required": [
|
|
59591
|
+
"kind",
|
|
59592
|
+
"connections",
|
|
59593
|
+
"clients"
|
|
59594
|
+
],
|
|
59595
|
+
"properties": {
|
|
59596
|
+
"kind": {
|
|
59597
|
+
"anyOf": [
|
|
59598
|
+
{
|
|
59599
|
+
"type": "string",
|
|
59600
|
+
"enum": [
|
|
59601
|
+
"database"
|
|
59602
|
+
]
|
|
59603
|
+
},
|
|
59604
|
+
{
|
|
59605
|
+
"type": "string",
|
|
59606
|
+
"enum": [
|
|
59607
|
+
"passwordless"
|
|
59608
|
+
]
|
|
59609
|
+
},
|
|
59610
|
+
{
|
|
59611
|
+
"type": "string",
|
|
59612
|
+
"enum": [
|
|
59613
|
+
"social"
|
|
59614
|
+
]
|
|
59615
|
+
},
|
|
59616
|
+
{
|
|
59617
|
+
"type": "string",
|
|
59618
|
+
"enum": [
|
|
59619
|
+
"passkey"
|
|
59620
|
+
]
|
|
59621
|
+
}
|
|
59622
|
+
]
|
|
59623
|
+
},
|
|
59624
|
+
"connections": {
|
|
59625
|
+
"type": "array",
|
|
59626
|
+
"items": {
|
|
59627
|
+
"type": "string"
|
|
59628
|
+
}
|
|
59629
|
+
},
|
|
59630
|
+
"clients": {
|
|
59631
|
+
"anyOf": [
|
|
59632
|
+
{
|
|
59633
|
+
"type": "array",
|
|
59634
|
+
"items": {
|
|
59635
|
+
"type": "string"
|
|
59636
|
+
}
|
|
59637
|
+
},
|
|
59638
|
+
{
|
|
59639
|
+
"type": "null"
|
|
59640
|
+
}
|
|
59641
|
+
]
|
|
59642
|
+
}
|
|
59643
|
+
}
|
|
59644
|
+
}
|
|
59645
|
+
}
|
|
59646
|
+
}
|
|
59647
|
+
},
|
|
59575
59648
|
"bound": {
|
|
59576
59649
|
"anyOf": [
|
|
59577
59650
|
{
|