@faable/auth-sdk 2.9.52 → 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.
@@ -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";
@@ -33419,6 +33427,8 @@ export interface operations {
33419
33427
  origin?: string;
33420
33428
  /** @description Exact match on `action`. Equivalent to `?query=action:<value>`. */
33421
33429
  action?: string;
33430
+ /** @description Exact match on `subscription`. Equivalent to `?query=subscription:<value>`. */
33431
+ subscription?: string;
33422
33432
  /** @description Exact match on `browser`. Equivalent to `?query=browser:<value>`. */
33423
33433
  browser?: string;
33424
33434
  /** @description Exact match on `signup`. Equivalent to `?query=signup:<value>`. */
@@ -37068,6 +37078,8 @@ export interface operations {
37068
37078
  *
37069
37079
  * `invalid_redirect_uri` — The redirect URI is not registered for the client.
37070
37080
  *
37081
+ * `invalid_request` — A required OAuth parameter is missing or two of them are incompatible. `message` says which.
37082
+ *
37071
37083
  * `invalid_state` — The `state` is missing, expired, or does not describe a resumable step.
37072
37084
  *
37073
37085
  * `validation_error` — The body, query or path failed schema validation. `details.issues` lists each failing field.
@@ -37079,7 +37091,7 @@ export interface operations {
37079
37091
  content: {
37080
37092
  "application/json": components["schemas"]["ErrorResponse"] & {
37081
37093
  /** @enum {string} */
37082
- error_code?: "invalid_client" | "invalid_connection" | "invalid_redirect_uri" | "invalid_state" | "validation_error";
37094
+ error_code?: "invalid_client" | "invalid_connection" | "invalid_redirect_uri" | "invalid_request" | "invalid_state" | "validation_error";
37083
37095
  };
37084
37096
  };
37085
37097
  };
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.52";
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 = "41661d8";
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@faable/auth-sdk",
3
- "version": "2.9.52",
3
+ "version": "2.9.54",
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.124.0",
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
  {
@@ -69158,6 +69231,15 @@
69158
69231
  "required": false,
69159
69232
  "description": "Exact match on `action`. Equivalent to `?query=action:<value>`."
69160
69233
  },
69234
+ {
69235
+ "schema": {
69236
+ "type": "string"
69237
+ },
69238
+ "in": "query",
69239
+ "name": "subscription",
69240
+ "required": false,
69241
+ "description": "Exact match on `subscription`. Equivalent to `?query=subscription:<value>`."
69242
+ },
69161
69243
  {
69162
69244
  "schema": {
69163
69245
  "type": "string"
@@ -80542,7 +80624,7 @@
80542
80624
  "description": "Default Response"
80543
80625
  },
80544
80626
  "400": {
80545
- "description": "`invalid_client` — The `client_id` in the request does not name a client of this account.\n\n`invalid_connection` — The connection does not exist, is disabled, or is not of the type this flow needs.\n\n`invalid_redirect_uri` — The redirect URI is not registered for the client.\n\n`invalid_state` — The `state` is missing, expired, or does not describe a resumable step.\n\n`validation_error` — The body, query or path failed schema validation. `details.issues` lists each failing field.",
80627
+ "description": "`invalid_client` — The `client_id` in the request does not name a client of this account.\n\n`invalid_connection` — The connection does not exist, is disabled, or is not of the type this flow needs.\n\n`invalid_redirect_uri` — The redirect URI is not registered for the client.\n\n`invalid_request` — A required OAuth parameter is missing or two of them are incompatible. `message` says which.\n\n`invalid_state` — The `state` is missing, expired, or does not describe a resumable step.\n\n`validation_error` — The body, query or path failed schema validation. `details.issues` lists each failing field.",
80546
80628
  "content": {
80547
80629
  "application/json": {
80548
80630
  "schema": {
@@ -80559,6 +80641,7 @@
80559
80641
  "invalid_client",
80560
80642
  "invalid_connection",
80561
80643
  "invalid_redirect_uri",
80644
+ "invalid_request",
80562
80645
  "invalid_state",
80563
80646
  "validation_error"
80564
80647
  ]