@faable/auth-sdk 2.9.49 → 2.9.50
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/types.d.ts +4 -0
- package/dist/version.js +2 -2
- package/package.json +1 -1
- package/spec/openapi.json +19 -2
package/dist/api/types.d.ts
CHANGED
|
@@ -35079,6 +35079,8 @@ export interface operations {
|
|
|
35079
35079
|
code_challenge_method: "S256";
|
|
35080
35080
|
/** @description The site's base URL. The client's callbacks must contain `<site_url>/wp-login.php?faable-auth=callback`. */
|
|
35081
35081
|
site_url: string;
|
|
35082
|
+
/** @description Roles for this site only: the site maps the tenant roles `<role_prefix>:administrator`, `<role_prefix>:editor`, … and ignores unprefixed ones. Omitted: the site uses the roles shared by every site of the tenant (`administrator`, `editor`, …). */
|
|
35083
|
+
role_prefix?: string;
|
|
35082
35084
|
};
|
|
35083
35085
|
};
|
|
35084
35086
|
};
|
|
@@ -35219,6 +35221,8 @@ export interface operations {
|
|
|
35219
35221
|
client_secret: string;
|
|
35220
35222
|
project_id: string | null;
|
|
35221
35223
|
account_id: string;
|
|
35224
|
+
/** @description The role prefix chosen in the dashboard (roles for this site only), or null for roles shared with the other sites of the tenant. */
|
|
35225
|
+
role_prefix: string | null;
|
|
35222
35226
|
};
|
|
35223
35227
|
};
|
|
35224
35228
|
};
|
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.50";
|
|
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 = "3954463";
|
|
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.122.0",
|
|
7
7
|
"license": {
|
|
8
8
|
"name": "private",
|
|
9
9
|
"url": "https://faable.com/docs/platform/privacy-policy"
|
|
@@ -72958,6 +72958,11 @@
|
|
|
72958
72958
|
"minLength": 1,
|
|
72959
72959
|
"maxLength": 2048,
|
|
72960
72960
|
"description": "The site's base URL. The client's callbacks must contain `<site_url>/wp-login.php?faable-auth=callback`."
|
|
72961
|
+
},
|
|
72962
|
+
"role_prefix": {
|
|
72963
|
+
"type": "string",
|
|
72964
|
+
"pattern": "^[a-z0-9][a-z0-9-]{0,39}$",
|
|
72965
|
+
"description": "Roles for this site only: the site maps the tenant roles `<role_prefix>:administrator`, `<role_prefix>:editor`, … and ignores unprefixed ones. Omitted: the site uses the roles shared by every site of the tenant (`administrator`, `editor`, …)."
|
|
72961
72966
|
}
|
|
72962
72967
|
},
|
|
72963
72968
|
"additionalProperties": false
|
|
@@ -73202,7 +73207,8 @@
|
|
|
73202
73207
|
"client_id",
|
|
73203
73208
|
"client_secret",
|
|
73204
73209
|
"project_id",
|
|
73205
|
-
"account_id"
|
|
73210
|
+
"account_id",
|
|
73211
|
+
"role_prefix"
|
|
73206
73212
|
],
|
|
73207
73213
|
"properties": {
|
|
73208
73214
|
"auth_domain": {
|
|
@@ -73227,6 +73233,17 @@
|
|
|
73227
73233
|
},
|
|
73228
73234
|
"account_id": {
|
|
73229
73235
|
"type": "string"
|
|
73236
|
+
},
|
|
73237
|
+
"role_prefix": {
|
|
73238
|
+
"anyOf": [
|
|
73239
|
+
{
|
|
73240
|
+
"type": "string"
|
|
73241
|
+
},
|
|
73242
|
+
{
|
|
73243
|
+
"type": "null"
|
|
73244
|
+
}
|
|
73245
|
+
],
|
|
73246
|
+
"description": "The role prefix chosen in the dashboard (roles for this site only), or null for roles shared with the other sites of the tenant."
|
|
73230
73247
|
}
|
|
73231
73248
|
}
|
|
73232
73249
|
}
|