@faable/auth-sdk 2.7.59 → 2.7.61
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 +2 -1
- package/dist/api/generated-client.js +2 -1
- package/dist/api/types.d.ts +11 -6
- package/dist/version.js +2 -2
- package/package.json +1 -1
- package/spec/openapi.json +17 -6
|
@@ -4891,7 +4891,7 @@ export declare abstract class GeneratedFaableAuthApi extends FaableApi {
|
|
|
4891
4891
|
*
|
|
4892
4892
|
* Add Users to a Team
|
|
4893
4893
|
*
|
|
4894
|
-
* Adds one or more Users as members of the given Team. Returns the
|
|
4894
|
+
* Adds one or more Users of this tenant as members of the given Team, with the same roles. Users already in the team are skipped; `already_member` only when all of them are. A user or team that is not in this tenant is a 404. Returns the TeamMember record of the first user in `users`.
|
|
4895
4895
|
*
|
|
4896
4896
|
* @throws {FaableApiError} `already_member` (400) — The user is already a member of the team.
|
|
4897
4897
|
* @throws {FaableApiError} `validation_error` (400) — The body, query or path failed schema validation. `details.issues` lists each failing field.
|
|
@@ -4899,6 +4899,7 @@ export declare abstract class GeneratedFaableAuthApi extends FaableApi {
|
|
|
4899
4899
|
* @throws {FaableApiError} `forbidden` (403) — The credentials are valid but do not allow this operation.
|
|
4900
4900
|
* @throws {FaableApiError} `insufficient_scope` (403) — The token lacks a scope this operation requires. `message` names it.
|
|
4901
4901
|
* @throws {FaableApiError} `user_suspended` (403) — The user is suspended and cannot sign in or be modified.
|
|
4902
|
+
* @throws {FaableApiError} `not_found` (404) — The resource does not exist in this account.
|
|
4902
4903
|
* @throws {FaableApiError} `account_not_found` (404) — No Auth Account matches the request (domain, header or token).
|
|
4903
4904
|
* @throws {FaableApiError} `too_many_requests` (429) — Rate limit exceeded. Honour the `Retry-After` header.
|
|
4904
4905
|
* @throws {FaableApiError} `internal_error` (500) — Unexpected server error. Retry later; the request id is logged.
|
|
@@ -1751,7 +1751,7 @@ export class GeneratedFaableAuthApi extends FaableApi {
|
|
|
1751
1751
|
*
|
|
1752
1752
|
* Add Users to a Team
|
|
1753
1753
|
*
|
|
1754
|
-
* Adds one or more Users as members of the given Team. Returns the
|
|
1754
|
+
* Adds one or more Users of this tenant as members of the given Team, with the same roles. Users already in the team are skipped; `already_member` only when all of them are. A user or team that is not in this tenant is a 404. Returns the TeamMember record of the first user in `users`.
|
|
1755
1755
|
*
|
|
1756
1756
|
* @throws {FaableApiError} `already_member` (400) — The user is already a member of the team.
|
|
1757
1757
|
* @throws {FaableApiError} `validation_error` (400) — The body, query or path failed schema validation. `details.issues` lists each failing field.
|
|
@@ -1759,6 +1759,7 @@ export class GeneratedFaableAuthApi extends FaableApi {
|
|
|
1759
1759
|
* @throws {FaableApiError} `forbidden` (403) — The credentials are valid but do not allow this operation.
|
|
1760
1760
|
* @throws {FaableApiError} `insufficient_scope` (403) — The token lacks a scope this operation requires. `message` names it.
|
|
1761
1761
|
* @throws {FaableApiError} `user_suspended` (403) — The user is suspended and cannot sign in or be modified.
|
|
1762
|
+
* @throws {FaableApiError} `not_found` (404) — The resource does not exist in this account.
|
|
1762
1763
|
* @throws {FaableApiError} `account_not_found` (404) — No Auth Account matches the request (domain, header or token).
|
|
1763
1764
|
* @throws {FaableApiError} `too_many_requests` (429) — Rate limit exceeded. Honour the `Retry-After` header.
|
|
1764
1765
|
* @throws {FaableApiError} `internal_error` (500) — Unexpected server error. Retry later; the request id is logged.
|
package/dist/api/types.d.ts
CHANGED
|
@@ -1259,7 +1259,7 @@ export interface paths {
|
|
|
1259
1259
|
put?: never;
|
|
1260
1260
|
/**
|
|
1261
1261
|
* Add Users to a Team
|
|
1262
|
-
* @description Adds one or more Users as members of the given Team. Returns the
|
|
1262
|
+
* @description Adds one or more Users of this tenant as members of the given Team, with the same roles. Users already in the team are skipped; `already_member` only when all of them are. A user or team that is not in this tenant is a 404. Returns the TeamMember record of the first user in `users`.
|
|
1263
1263
|
*/
|
|
1264
1264
|
post: operations["team/addMembers"];
|
|
1265
1265
|
delete?: never;
|
|
@@ -1341,7 +1341,7 @@ export interface paths {
|
|
|
1341
1341
|
};
|
|
1342
1342
|
/**
|
|
1343
1343
|
* Verify a team-invite ticket and add the user to the team
|
|
1344
|
-
* @description Entry point for the link sent to the invitee. Consumes the ticket, creates the user if needed (with `email_verified=true` — the click proves ownership), and adds them to the team with the invited roles. Then redirects to the `redirect_uri` supplied at invite time with `?status=accepted` appended; falls back to `/flow/team-invite-done` on the auth host when no `redirect_uri` was given. Idempotent if the user is already a member.
|
|
1344
|
+
* @description Entry point for the link sent to the invitee, which carries `token` — the invite's own secret. `ticket` (the invite id) is accepted only for invites issued before invites had a secret. Consumes the ticket, creates the user if needed (with `email_verified=true` — the click proves ownership), and adds them to the team with the invited roles. Then redirects to the `redirect_uri` supplied at invite time with `?status=accepted` appended; falls back to `/flow/team-invite-done` on the auth host when no `redirect_uri` was given. Idempotent if the user is already a member.
|
|
1345
1345
|
*/
|
|
1346
1346
|
get: operations["team_invite_verify"];
|
|
1347
1347
|
put?: never;
|
|
@@ -18818,7 +18818,11 @@ export interface operations {
|
|
|
18818
18818
|
};
|
|
18819
18819
|
};
|
|
18820
18820
|
};
|
|
18821
|
-
/**
|
|
18821
|
+
/**
|
|
18822
|
+
* @description `not_found` — The resource does not exist in this account.
|
|
18823
|
+
*
|
|
18824
|
+
* `account_not_found` — No Auth Account matches the request (domain, header or token).
|
|
18825
|
+
*/
|
|
18822
18826
|
404: {
|
|
18823
18827
|
headers: {
|
|
18824
18828
|
[name: string]: unknown;
|
|
@@ -18826,7 +18830,7 @@ export interface operations {
|
|
|
18826
18830
|
content: {
|
|
18827
18831
|
"application/json": components["schemas"]["ErrorResponse"] & {
|
|
18828
18832
|
/** @enum {string} */
|
|
18829
|
-
error_code?: "account_not_found";
|
|
18833
|
+
error_code?: "not_found" | "account_not_found";
|
|
18830
18834
|
};
|
|
18831
18835
|
};
|
|
18832
18836
|
};
|
|
@@ -19390,8 +19394,9 @@ export interface operations {
|
|
|
19390
19394
|
};
|
|
19391
19395
|
team_invite_verify: {
|
|
19392
19396
|
parameters: {
|
|
19393
|
-
query
|
|
19394
|
-
|
|
19397
|
+
query?: {
|
|
19398
|
+
token?: string;
|
|
19399
|
+
ticket?: string;
|
|
19395
19400
|
};
|
|
19396
19401
|
header?: never;
|
|
19397
19402
|
path?: never;
|
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.
|
|
12
|
+
export const version = "2.7.61";
|
|
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 = "279c85b";
|
|
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.51.
|
|
6
|
+
"version": "2.51.2",
|
|
7
7
|
"license": {
|
|
8
8
|
"name": "private",
|
|
9
9
|
"url": "https://faable.com/docs/platform/privacy-policy"
|
|
@@ -35810,7 +35810,7 @@
|
|
|
35810
35810
|
"tags": [
|
|
35811
35811
|
"team"
|
|
35812
35812
|
],
|
|
35813
|
-
"description": "Adds one or more Users as members of the given Team. Returns the
|
|
35813
|
+
"description": "Adds one or more Users of this tenant as members of the given Team, with the same roles. Users already in the team are skipped; `already_member` only when all of them are. A user or team that is not in this tenant is a 404. Returns the TeamMember record of the first user in `users`.",
|
|
35814
35814
|
"requestBody": {
|
|
35815
35815
|
"required": true,
|
|
35816
35816
|
"content": {
|
|
@@ -36028,7 +36028,7 @@
|
|
|
36028
36028
|
}
|
|
36029
36029
|
},
|
|
36030
36030
|
"404": {
|
|
36031
|
-
"description": "`account_not_found` — No Auth Account matches the request (domain, header or token).",
|
|
36031
|
+
"description": "`not_found` — The resource does not exist in this account.\n\n`account_not_found` — No Auth Account matches the request (domain, header or token).",
|
|
36032
36032
|
"content": {
|
|
36033
36033
|
"application/json": {
|
|
36034
36034
|
"schema": {
|
|
@@ -36042,6 +36042,7 @@
|
|
|
36042
36042
|
"error_code": {
|
|
36043
36043
|
"type": "string",
|
|
36044
36044
|
"enum": [
|
|
36045
|
+
"not_found",
|
|
36045
36046
|
"account_not_found"
|
|
36046
36047
|
]
|
|
36047
36048
|
}
|
|
@@ -37271,15 +37272,25 @@
|
|
|
37271
37272
|
"tags": [
|
|
37272
37273
|
"team"
|
|
37273
37274
|
],
|
|
37274
|
-
"description": "Entry point for the link sent to the invitee. Consumes the ticket, creates the user if needed (with `email_verified=true` — the click proves ownership), and adds them to the team with the invited roles. Then redirects to the `redirect_uri` supplied at invite time with `?status=accepted` appended; falls back to `/flow/team-invite-done` on the auth host when no `redirect_uri` was given. Idempotent if the user is already a member.",
|
|
37275
|
+
"description": "Entry point for the link sent to the invitee, which carries `token` — the invite's own secret. `ticket` (the invite id) is accepted only for invites issued before invites had a secret. Consumes the ticket, creates the user if needed (with `email_verified=true` — the click proves ownership), and adds them to the team with the invited roles. Then redirects to the `redirect_uri` supplied at invite time with `?status=accepted` appended; falls back to `/flow/team-invite-done` on the auth host when no `redirect_uri` was given. Idempotent if the user is already a member.",
|
|
37275
37276
|
"parameters": [
|
|
37276
37277
|
{
|
|
37277
37278
|
"schema": {
|
|
37278
|
-
"type": "string"
|
|
37279
|
+
"type": "string",
|
|
37280
|
+
"minLength": 1
|
|
37281
|
+
},
|
|
37282
|
+
"in": "query",
|
|
37283
|
+
"name": "token",
|
|
37284
|
+
"required": false
|
|
37285
|
+
},
|
|
37286
|
+
{
|
|
37287
|
+
"schema": {
|
|
37288
|
+
"type": "string",
|
|
37289
|
+
"minLength": 1
|
|
37279
37290
|
},
|
|
37280
37291
|
"in": "query",
|
|
37281
37292
|
"name": "ticket",
|
|
37282
|
-
"required":
|
|
37293
|
+
"required": false
|
|
37283
37294
|
}
|
|
37284
37295
|
],
|
|
37285
37296
|
"responses": {
|