@faable/auth-sdk 2.7.4 → 2.7.6

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.
@@ -285,7 +285,7 @@ export interface paths {
285
285
  };
286
286
  /**
287
287
  * Resolve the login methods for a client
288
- * @description Returns the ordered list of login methods the hosted login screen should offer for this client, already filtered by `connection.enabled` and `connection.enabled_clients`. `client_id` is the OAuth client_id; when omitted it falls back to the account's single client if it has exactly one, otherwise no client context is assumed and only unrestricted connections are returned.
288
+ * @description Returns the ordered list of login methods the hosted login screen should offer for this client, already filtered by `connection.enabled` and `connection.enabled_clients`. `client_id` is the OAuth client_id; when omitted the server resolves one: the account's only client, or its only client with `callbacks` (the ones that could plausibly be behind a login screen), and failing that the first of those two lists in order. `client` comes back `null` only for an account with no clients at all, and `methods` is always resolved against the client that comes back.
289
289
  */
290
290
  get: operations["connection/loginOptions"];
291
291
  put?: never;
@@ -8908,6 +8908,8 @@ export interface operations {
8908
8908
  account: {
8909
8909
  id: string;
8910
8910
  name: string;
8911
+ /** @description The tenant's auth host. The login screen talks to this host for every call it makes after the first paint, so it has to come back here: a screen that is served as a static bundle has no other way to learn it, and asking the management API for it is what used to force the hosted UI to hold a platform credential. */
8912
+ domain: string;
8911
8913
  logo_src: string | null;
8912
8914
  icon_src: string | null;
8913
8915
  };
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.7.4";
12
+ export const version = "2.7.6";
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 = "da17046";
18
+ export const commit = "7a7b73e";
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.7.4",
3
+ "version": "2.7.6",
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.24.0",
6
+ "version": "2.25.1",
7
7
  "license": {
8
8
  "name": "private",
9
9
  "url": "https://faable.com/docs/platform/privacy-policy"
@@ -14127,7 +14127,7 @@
14127
14127
  "tags": [
14128
14128
  "connection"
14129
14129
  ],
14130
- "description": "Returns the ordered list of login methods the hosted login screen should offer for this client, already filtered by `connection.enabled` and `connection.enabled_clients`. `client_id` is the OAuth client_id; when omitted it falls back to the account's single client if it has exactly one, otherwise no client context is assumed and only unrestricted connections are returned.",
14130
+ "description": "Returns the ordered list of login methods the hosted login screen should offer for this client, already filtered by `connection.enabled` and `connection.enabled_clients`. `client_id` is the OAuth client_id; when omitted the server resolves one: the account's only client, or its only client with `callbacks` (the ones that could plausibly be behind a login screen), and failing that the first of those two lists in order. `client` comes back `null` only for an account with no clients at all, and `methods` is always resolved against the client that comes back.",
14131
14131
  "parameters": [
14132
14132
  {
14133
14133
  "schema": {
@@ -14177,6 +14177,7 @@
14177
14177
  "required": [
14178
14178
  "id",
14179
14179
  "name",
14180
+ "domain",
14180
14181
  "logo_src",
14181
14182
  "icon_src"
14182
14183
  ],
@@ -14187,6 +14188,10 @@
14187
14188
  "name": {
14188
14189
  "type": "string"
14189
14190
  },
14191
+ "domain": {
14192
+ "type": "string",
14193
+ "description": "The tenant's auth host. The login screen talks to this host for every call it makes after the first paint, so it has to come back here: a screen that is served as a static bundle has no other way to learn it, and asking the management API for it is what used to force the hosted UI to hold a platform credential."
14194
+ },
14190
14195
  "logo_src": {
14191
14196
  "anyOf": [
14192
14197
  {