@faable/auth-sdk 2.7.23 → 2.7.25
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 +87 -1
- package/dist/version.js +2 -2
- package/package.json +1 -1
- package/spec/openapi.json +140 -1
package/dist/api/types.d.ts
CHANGED
|
@@ -3662,7 +3662,11 @@ export interface paths {
|
|
|
3662
3662
|
get: operations["session/me"];
|
|
3663
3663
|
put?: never;
|
|
3664
3664
|
post?: never;
|
|
3665
|
-
|
|
3665
|
+
/**
|
|
3666
|
+
* Delete current User
|
|
3667
|
+
* @description Deletes the User behind the current session or bearer token, with the same effects as the management `DELETE /user/:id`: identities, credentials, second factors and team/role memberships go with it, pending tickets lose their reference, and `user.deleted` is emitted. A Bearer token must belong to this Account and be a user token (`sub` is a User); a client_credentials token is refused. When a session cookie was used it is cleared.
|
|
3668
|
+
*/
|
|
3669
|
+
delete: operations["session/me_delete"];
|
|
3666
3670
|
options?: never;
|
|
3667
3671
|
head?: never;
|
|
3668
3672
|
/**
|
|
@@ -24061,6 +24065,88 @@ export interface operations {
|
|
|
24061
24065
|
};
|
|
24062
24066
|
};
|
|
24063
24067
|
};
|
|
24068
|
+
"session/me_delete": {
|
|
24069
|
+
parameters: {
|
|
24070
|
+
query?: never;
|
|
24071
|
+
header?: never;
|
|
24072
|
+
path?: never;
|
|
24073
|
+
cookie?: never;
|
|
24074
|
+
};
|
|
24075
|
+
requestBody?: never;
|
|
24076
|
+
responses: {
|
|
24077
|
+
/** @description The User was deleted */
|
|
24078
|
+
204: {
|
|
24079
|
+
headers: {
|
|
24080
|
+
[name: string]: unknown;
|
|
24081
|
+
};
|
|
24082
|
+
content?: never;
|
|
24083
|
+
};
|
|
24084
|
+
/**
|
|
24085
|
+
* @description `mfa_pending` — A second-factor challenge is pending; answer it before continuing.
|
|
24086
|
+
*
|
|
24087
|
+
* `not_logged_in` — There is no signed-in session for this request.
|
|
24088
|
+
*/
|
|
24089
|
+
401: {
|
|
24090
|
+
headers: {
|
|
24091
|
+
[name: string]: unknown;
|
|
24092
|
+
};
|
|
24093
|
+
content: {
|
|
24094
|
+
"application/json": components["schemas"]["ErrorResponse"] & {
|
|
24095
|
+
/** @enum {string} */
|
|
24096
|
+
error_code?: "mfa_pending" | "not_logged_in";
|
|
24097
|
+
};
|
|
24098
|
+
};
|
|
24099
|
+
};
|
|
24100
|
+
/** @description `forbidden` — The credentials are valid but do not allow this operation. */
|
|
24101
|
+
403: {
|
|
24102
|
+
headers: {
|
|
24103
|
+
[name: string]: unknown;
|
|
24104
|
+
};
|
|
24105
|
+
content: {
|
|
24106
|
+
"application/json": components["schemas"]["ErrorResponse"] & {
|
|
24107
|
+
/** @enum {string} */
|
|
24108
|
+
error_code?: "forbidden";
|
|
24109
|
+
};
|
|
24110
|
+
};
|
|
24111
|
+
};
|
|
24112
|
+
/** @description `account_not_found` — No Auth Account matches the request (domain, header or token). */
|
|
24113
|
+
404: {
|
|
24114
|
+
headers: {
|
|
24115
|
+
[name: string]: unknown;
|
|
24116
|
+
};
|
|
24117
|
+
content: {
|
|
24118
|
+
"application/json": components["schemas"]["ErrorResponse"] & {
|
|
24119
|
+
/** @enum {string} */
|
|
24120
|
+
error_code?: "account_not_found";
|
|
24121
|
+
};
|
|
24122
|
+
};
|
|
24123
|
+
};
|
|
24124
|
+
/** @description `too_many_requests` — Rate limit exceeded. Honour the `Retry-After` header. */
|
|
24125
|
+
429: {
|
|
24126
|
+
headers: {
|
|
24127
|
+
[name: string]: unknown;
|
|
24128
|
+
};
|
|
24129
|
+
content: {
|
|
24130
|
+
"application/json": components["schemas"]["ErrorResponse"] & {
|
|
24131
|
+
/** @enum {string} */
|
|
24132
|
+
error_code?: "too_many_requests";
|
|
24133
|
+
};
|
|
24134
|
+
};
|
|
24135
|
+
};
|
|
24136
|
+
/** @description `internal_error` — Unexpected server error. Retry later; the request id is logged. */
|
|
24137
|
+
500: {
|
|
24138
|
+
headers: {
|
|
24139
|
+
[name: string]: unknown;
|
|
24140
|
+
};
|
|
24141
|
+
content: {
|
|
24142
|
+
"application/json": components["schemas"]["ErrorResponse"] & {
|
|
24143
|
+
/** @enum {string} */
|
|
24144
|
+
error_code?: "internal_error";
|
|
24145
|
+
};
|
|
24146
|
+
};
|
|
24147
|
+
};
|
|
24148
|
+
};
|
|
24149
|
+
};
|
|
24064
24150
|
"session/me_update": {
|
|
24065
24151
|
parameters: {
|
|
24066
24152
|
query?: 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.25";
|
|
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 = "3899a15";
|
|
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.32.0",
|
|
7
7
|
"license": {
|
|
8
8
|
"name": "private",
|
|
9
9
|
"url": "https://faable.com/docs/platform/privacy-policy"
|
|
@@ -53372,6 +53372,145 @@
|
|
|
53372
53372
|
}
|
|
53373
53373
|
}
|
|
53374
53374
|
}
|
|
53375
|
+
},
|
|
53376
|
+
"delete": {
|
|
53377
|
+
"operationId": "session/me_delete",
|
|
53378
|
+
"summary": "Delete current User",
|
|
53379
|
+
"tags": [
|
|
53380
|
+
"session"
|
|
53381
|
+
],
|
|
53382
|
+
"description": "Deletes the User behind the current session or bearer token, with the same effects as the management `DELETE /user/:id`: identities, credentials, second factors and team/role memberships go with it, pending tickets lose their reference, and `user.deleted` is emitted. A Bearer token must belong to this Account and be a user token (`sub` is a User); a client_credentials token is refused. When a session cookie was used it is cleared.",
|
|
53383
|
+
"responses": {
|
|
53384
|
+
"204": {
|
|
53385
|
+
"description": "The User was deleted"
|
|
53386
|
+
},
|
|
53387
|
+
"401": {
|
|
53388
|
+
"description": "`mfa_pending` — A second-factor challenge is pending; answer it before continuing.\n\n`not_logged_in` — There is no signed-in session for this request.",
|
|
53389
|
+
"content": {
|
|
53390
|
+
"application/json": {
|
|
53391
|
+
"schema": {
|
|
53392
|
+
"allOf": [
|
|
53393
|
+
{
|
|
53394
|
+
"$ref": "#/components/schemas/ErrorResponse"
|
|
53395
|
+
},
|
|
53396
|
+
{
|
|
53397
|
+
"type": "object",
|
|
53398
|
+
"properties": {
|
|
53399
|
+
"error_code": {
|
|
53400
|
+
"type": "string",
|
|
53401
|
+
"enum": [
|
|
53402
|
+
"mfa_pending",
|
|
53403
|
+
"not_logged_in"
|
|
53404
|
+
]
|
|
53405
|
+
}
|
|
53406
|
+
}
|
|
53407
|
+
}
|
|
53408
|
+
]
|
|
53409
|
+
}
|
|
53410
|
+
}
|
|
53411
|
+
}
|
|
53412
|
+
},
|
|
53413
|
+
"403": {
|
|
53414
|
+
"description": "`forbidden` — The credentials are valid but do not allow this operation.",
|
|
53415
|
+
"content": {
|
|
53416
|
+
"application/json": {
|
|
53417
|
+
"schema": {
|
|
53418
|
+
"allOf": [
|
|
53419
|
+
{
|
|
53420
|
+
"$ref": "#/components/schemas/ErrorResponse"
|
|
53421
|
+
},
|
|
53422
|
+
{
|
|
53423
|
+
"type": "object",
|
|
53424
|
+
"properties": {
|
|
53425
|
+
"error_code": {
|
|
53426
|
+
"type": "string",
|
|
53427
|
+
"enum": [
|
|
53428
|
+
"forbidden"
|
|
53429
|
+
]
|
|
53430
|
+
}
|
|
53431
|
+
}
|
|
53432
|
+
}
|
|
53433
|
+
]
|
|
53434
|
+
}
|
|
53435
|
+
}
|
|
53436
|
+
}
|
|
53437
|
+
},
|
|
53438
|
+
"404": {
|
|
53439
|
+
"description": "`account_not_found` — No Auth Account matches the request (domain, header or token).",
|
|
53440
|
+
"content": {
|
|
53441
|
+
"application/json": {
|
|
53442
|
+
"schema": {
|
|
53443
|
+
"allOf": [
|
|
53444
|
+
{
|
|
53445
|
+
"$ref": "#/components/schemas/ErrorResponse"
|
|
53446
|
+
},
|
|
53447
|
+
{
|
|
53448
|
+
"type": "object",
|
|
53449
|
+
"properties": {
|
|
53450
|
+
"error_code": {
|
|
53451
|
+
"type": "string",
|
|
53452
|
+
"enum": [
|
|
53453
|
+
"account_not_found"
|
|
53454
|
+
]
|
|
53455
|
+
}
|
|
53456
|
+
}
|
|
53457
|
+
}
|
|
53458
|
+
]
|
|
53459
|
+
}
|
|
53460
|
+
}
|
|
53461
|
+
}
|
|
53462
|
+
},
|
|
53463
|
+
"429": {
|
|
53464
|
+
"description": "`too_many_requests` — Rate limit exceeded. Honour the `Retry-After` header.",
|
|
53465
|
+
"content": {
|
|
53466
|
+
"application/json": {
|
|
53467
|
+
"schema": {
|
|
53468
|
+
"allOf": [
|
|
53469
|
+
{
|
|
53470
|
+
"$ref": "#/components/schemas/ErrorResponse"
|
|
53471
|
+
},
|
|
53472
|
+
{
|
|
53473
|
+
"type": "object",
|
|
53474
|
+
"properties": {
|
|
53475
|
+
"error_code": {
|
|
53476
|
+
"type": "string",
|
|
53477
|
+
"enum": [
|
|
53478
|
+
"too_many_requests"
|
|
53479
|
+
]
|
|
53480
|
+
}
|
|
53481
|
+
}
|
|
53482
|
+
}
|
|
53483
|
+
]
|
|
53484
|
+
}
|
|
53485
|
+
}
|
|
53486
|
+
}
|
|
53487
|
+
},
|
|
53488
|
+
"500": {
|
|
53489
|
+
"description": "`internal_error` — Unexpected server error. Retry later; the request id is logged.",
|
|
53490
|
+
"content": {
|
|
53491
|
+
"application/json": {
|
|
53492
|
+
"schema": {
|
|
53493
|
+
"allOf": [
|
|
53494
|
+
{
|
|
53495
|
+
"$ref": "#/components/schemas/ErrorResponse"
|
|
53496
|
+
},
|
|
53497
|
+
{
|
|
53498
|
+
"type": "object",
|
|
53499
|
+
"properties": {
|
|
53500
|
+
"error_code": {
|
|
53501
|
+
"type": "string",
|
|
53502
|
+
"enum": [
|
|
53503
|
+
"internal_error"
|
|
53504
|
+
]
|
|
53505
|
+
}
|
|
53506
|
+
}
|
|
53507
|
+
}
|
|
53508
|
+
]
|
|
53509
|
+
}
|
|
53510
|
+
}
|
|
53511
|
+
}
|
|
53512
|
+
}
|
|
53513
|
+
}
|
|
53375
53514
|
}
|
|
53376
53515
|
},
|
|
53377
53516
|
"/logout": {
|