@faable/auth-sdk 2.7.18 → 2.7.20
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/FaableAuthApi.d.ts +4 -0
- package/dist/api/generated-client.d.ts +8 -0
- package/dist/api/types.d.ts +16 -0
- package/dist/version.js +2 -2
- package/package.json +1 -1
- package/spec/openapi.json +43 -1
package/dist/FaableAuthApi.d.ts
CHANGED
|
@@ -794,6 +794,7 @@ export declare class FaableAuthApi extends GeneratedFaableAuthApi {
|
|
|
794
794
|
visible?: ("email" | "sms" | "whatsapp" | "factor")[] | undefined;
|
|
795
795
|
} | undefined;
|
|
796
796
|
login_flow?: string | null | undefined;
|
|
797
|
+
default_audience?: string | null | undefined;
|
|
797
798
|
account: string;
|
|
798
799
|
metadata: {
|
|
799
800
|
[key: string]: unknown;
|
|
@@ -854,6 +855,7 @@ export declare class FaableAuthApi extends GeneratedFaableAuthApi {
|
|
|
854
855
|
visible?: ("email" | "sms" | "whatsapp" | "factor")[] | undefined;
|
|
855
856
|
} | undefined;
|
|
856
857
|
login_flow?: string | null | undefined;
|
|
858
|
+
default_audience?: string | null | undefined;
|
|
857
859
|
account: string;
|
|
858
860
|
metadata: {
|
|
859
861
|
[key: string]: unknown;
|
|
@@ -917,6 +919,7 @@ export declare class FaableAuthApi extends GeneratedFaableAuthApi {
|
|
|
917
919
|
visible?: ("email" | "sms" | "whatsapp" | "factor")[] | undefined;
|
|
918
920
|
} | undefined;
|
|
919
921
|
login_flow?: string | null | undefined;
|
|
922
|
+
default_audience?: string | null | undefined;
|
|
920
923
|
account: string;
|
|
921
924
|
metadata: {
|
|
922
925
|
[key: string]: unknown;
|
|
@@ -979,6 +982,7 @@ export declare class FaableAuthApi extends GeneratedFaableAuthApi {
|
|
|
979
982
|
visible?: ("email" | "sms" | "whatsapp" | "factor")[] | undefined;
|
|
980
983
|
} | undefined;
|
|
981
984
|
login_flow?: string | null | undefined;
|
|
985
|
+
default_audience?: string | null | undefined;
|
|
982
986
|
account: string;
|
|
983
987
|
metadata: {
|
|
984
988
|
[key: string]: unknown;
|
|
@@ -1241,6 +1241,7 @@ export declare abstract class GeneratedFaableAuthApi extends FaableApi {
|
|
|
1241
1241
|
visible?: ("email" | "sms" | "whatsapp" | "factor")[] | undefined;
|
|
1242
1242
|
} | undefined;
|
|
1243
1243
|
login_flow?: string | null | undefined;
|
|
1244
|
+
default_audience?: string | null | undefined;
|
|
1244
1245
|
account: string;
|
|
1245
1246
|
metadata: {
|
|
1246
1247
|
[key: string]: unknown;
|
|
@@ -1317,6 +1318,7 @@ export declare abstract class GeneratedFaableAuthApi extends FaableApi {
|
|
|
1317
1318
|
visible?: ("email" | "sms" | "whatsapp" | "factor")[] | undefined;
|
|
1318
1319
|
} | undefined;
|
|
1319
1320
|
login_flow?: string | null | undefined;
|
|
1321
|
+
default_audience?: string | null | undefined;
|
|
1320
1322
|
account: string;
|
|
1321
1323
|
metadata: {
|
|
1322
1324
|
[key: string]: unknown;
|
|
@@ -1394,6 +1396,7 @@ export declare abstract class GeneratedFaableAuthApi extends FaableApi {
|
|
|
1394
1396
|
visible?: ("email" | "sms" | "whatsapp" | "factor")[] | undefined;
|
|
1395
1397
|
} | undefined;
|
|
1396
1398
|
login_flow?: string | null | undefined;
|
|
1399
|
+
default_audience?: string | null | undefined;
|
|
1397
1400
|
account: string;
|
|
1398
1401
|
metadata: {
|
|
1399
1402
|
[key: string]: unknown;
|
|
@@ -1472,6 +1475,7 @@ export declare abstract class GeneratedFaableAuthApi extends FaableApi {
|
|
|
1472
1475
|
visible?: ("email" | "sms" | "whatsapp" | "factor")[] | undefined;
|
|
1473
1476
|
} | undefined;
|
|
1474
1477
|
login_flow?: string | null | undefined;
|
|
1478
|
+
default_audience?: string | null | undefined;
|
|
1475
1479
|
account: string;
|
|
1476
1480
|
metadata: {
|
|
1477
1481
|
[key: string]: unknown;
|
|
@@ -1532,6 +1536,7 @@ export declare abstract class GeneratedFaableAuthApi extends FaableApi {
|
|
|
1532
1536
|
visible?: ("email" | "sms" | "whatsapp" | "factor")[] | undefined;
|
|
1533
1537
|
} | undefined;
|
|
1534
1538
|
login_flow?: string | null | undefined;
|
|
1539
|
+
default_audience?: string | null | undefined;
|
|
1535
1540
|
account: string;
|
|
1536
1541
|
metadata: {
|
|
1537
1542
|
[key: string]: unknown;
|
|
@@ -1595,6 +1600,7 @@ export declare abstract class GeneratedFaableAuthApi extends FaableApi {
|
|
|
1595
1600
|
visible?: ("email" | "sms" | "whatsapp" | "factor")[] | undefined;
|
|
1596
1601
|
} | undefined;
|
|
1597
1602
|
login_flow?: string | null | undefined;
|
|
1603
|
+
default_audience?: string | null | undefined;
|
|
1598
1604
|
account: string;
|
|
1599
1605
|
metadata: {
|
|
1600
1606
|
[key: string]: unknown;
|
|
@@ -1674,6 +1680,7 @@ export declare abstract class GeneratedFaableAuthApi extends FaableApi {
|
|
|
1674
1680
|
visible?: ("email" | "sms" | "whatsapp" | "factor")[] | undefined;
|
|
1675
1681
|
} | undefined;
|
|
1676
1682
|
login_flow?: string | null | undefined;
|
|
1683
|
+
default_audience?: string | null | undefined;
|
|
1677
1684
|
account: string;
|
|
1678
1685
|
metadata: {
|
|
1679
1686
|
[key: string]: unknown;
|
|
@@ -1751,6 +1758,7 @@ export declare abstract class GeneratedFaableAuthApi extends FaableApi {
|
|
|
1751
1758
|
visible?: ("email" | "sms" | "whatsapp" | "factor")[] | undefined;
|
|
1752
1759
|
} | undefined;
|
|
1753
1760
|
login_flow?: string | null | undefined;
|
|
1761
|
+
default_audience?: string | null | undefined;
|
|
1754
1762
|
account: string;
|
|
1755
1763
|
metadata: {
|
|
1756
1764
|
[key: string]: unknown;
|
package/dist/api/types.d.ts
CHANGED
|
@@ -4546,6 +4546,8 @@ export interface components {
|
|
|
4546
4546
|
};
|
|
4547
4547
|
/** @description A login flow bound to this client (`loginflow_xxx`), overriding the account's. Absent = inherit. */
|
|
4548
4548
|
login_flow?: string | null;
|
|
4549
|
+
/** @description Audience used when a client_credentials token request sends none (e.g. `faable:management:<account_id>`). An explicit `audience` in the request wins. Absent = `${iss}/userinfo`. */
|
|
4550
|
+
default_audience?: string | null;
|
|
4549
4551
|
/** @description Object is related with this account */
|
|
4550
4552
|
account: string;
|
|
4551
4553
|
/**
|
|
@@ -4657,6 +4659,8 @@ export interface components {
|
|
|
4657
4659
|
visible?: ("email" | "sms" | "whatsapp" | "factor")[];
|
|
4658
4660
|
} | null;
|
|
4659
4661
|
login_flow?: string | null;
|
|
4662
|
+
/** @description Audience a client_credentials token request gets when it sends none. An explicit `audience` wins. `null` removes it. */
|
|
4663
|
+
default_audience?: string | null;
|
|
4660
4664
|
/**
|
|
4661
4665
|
* @description Free-form client metadata. Replaces the whole object — send the full merged value, not a partial delta.
|
|
4662
4666
|
* @default {}
|
|
@@ -9522,6 +9526,8 @@ export interface operations {
|
|
|
9522
9526
|
};
|
|
9523
9527
|
/** @description A login flow bound to this client (`loginflow_xxx`), overriding the account's. Absent = inherit. */
|
|
9524
9528
|
login_flow?: string | null;
|
|
9529
|
+
/** @description Audience used when a client_credentials token request sends none (e.g. `faable:management:<account_id>`). An explicit `audience` in the request wins. Absent = `${iss}/userinfo`. */
|
|
9530
|
+
default_audience?: string | null;
|
|
9525
9531
|
/** @description Object is related with this account */
|
|
9526
9532
|
account: string;
|
|
9527
9533
|
/**
|
|
@@ -9716,6 +9722,8 @@ export interface operations {
|
|
|
9716
9722
|
};
|
|
9717
9723
|
/** @description A login flow bound to this client (`loginflow_xxx`), overriding the account's. Absent = inherit. */
|
|
9718
9724
|
login_flow?: string | null;
|
|
9725
|
+
/** @description Audience used when a client_credentials token request sends none (e.g. `faable:management:<account_id>`). An explicit `audience` in the request wins. Absent = `${iss}/userinfo`. */
|
|
9726
|
+
default_audience?: string | null;
|
|
9719
9727
|
/** @description Object is related with this account */
|
|
9720
9728
|
account: string;
|
|
9721
9729
|
/**
|
|
@@ -9907,6 +9915,8 @@ export interface operations {
|
|
|
9907
9915
|
visible?: ("email" | "sms" | "whatsapp" | "factor")[];
|
|
9908
9916
|
} | null;
|
|
9909
9917
|
login_flow?: string | null;
|
|
9918
|
+
/** @description Audience a client_credentials token request gets when it sends none. An explicit `audience` wins. `null` removes it. */
|
|
9919
|
+
default_audience?: string | null;
|
|
9910
9920
|
/**
|
|
9911
9921
|
* @description Free-form client metadata. Replaces the whole object — send the full merged value, not a partial delta.
|
|
9912
9922
|
* @default {}
|
|
@@ -10001,6 +10011,8 @@ export interface operations {
|
|
|
10001
10011
|
};
|
|
10002
10012
|
/** @description A login flow bound to this client (`loginflow_xxx`), overriding the account's. Absent = inherit. */
|
|
10003
10013
|
login_flow?: string | null;
|
|
10014
|
+
/** @description Audience used when a client_credentials token request sends none (e.g. `faable:management:<account_id>`). An explicit `audience` in the request wins. Absent = `${iss}/userinfo`. */
|
|
10015
|
+
default_audience?: string | null;
|
|
10004
10016
|
/** @description Object is related with this account */
|
|
10005
10017
|
account: string;
|
|
10006
10018
|
/**
|
|
@@ -10201,6 +10213,8 @@ export interface operations {
|
|
|
10201
10213
|
};
|
|
10202
10214
|
/** @description A login flow bound to this client (`loginflow_xxx`), overriding the account's. Absent = inherit. */
|
|
10203
10215
|
login_flow?: string | null;
|
|
10216
|
+
/** @description Audience used when a client_credentials token request sends none (e.g. `faable:management:<account_id>`). An explicit `audience` in the request wins. Absent = `${iss}/userinfo`. */
|
|
10217
|
+
default_audience?: string | null;
|
|
10204
10218
|
/** @description Object is related with this account */
|
|
10205
10219
|
account: string;
|
|
10206
10220
|
/**
|
|
@@ -10399,6 +10413,8 @@ export interface operations {
|
|
|
10399
10413
|
};
|
|
10400
10414
|
/** @description A login flow bound to this client (`loginflow_xxx`), overriding the account's. Absent = inherit. */
|
|
10401
10415
|
login_flow?: string | null;
|
|
10416
|
+
/** @description Audience used when a client_credentials token request sends none (e.g. `faable:management:<account_id>`). An explicit `audience` in the request wins. Absent = `${iss}/userinfo`. */
|
|
10417
|
+
default_audience?: string | null;
|
|
10402
10418
|
/** @description Object is related with this account */
|
|
10403
10419
|
account: string;
|
|
10404
10420
|
/**
|
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.20";
|
|
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 = "d9f28a7";
|
|
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.30.0",
|
|
7
7
|
"license": {
|
|
8
8
|
"name": "private",
|
|
9
9
|
"url": "https://faable.com/docs/platform/privacy-policy"
|
|
@@ -1657,6 +1657,11 @@
|
|
|
1657
1657
|
],
|
|
1658
1658
|
"description": "A login flow bound to this client (`loginflow_xxx`), overriding the account's. Absent = inherit."
|
|
1659
1659
|
},
|
|
1660
|
+
"default_audience": {
|
|
1661
|
+
"type": "string",
|
|
1662
|
+
"description": "Audience used when a client_credentials token request sends none (e.g. `faable:management:<account_id>`). An explicit `audience` in the request wins. Absent = `${iss}/userinfo`.",
|
|
1663
|
+
"nullable": true
|
|
1664
|
+
},
|
|
1660
1665
|
"account": {
|
|
1661
1666
|
"type": "string",
|
|
1662
1667
|
"description": "Object is related with this account"
|
|
@@ -2131,6 +2136,12 @@
|
|
|
2131
2136
|
}
|
|
2132
2137
|
]
|
|
2133
2138
|
},
|
|
2139
|
+
"default_audience": {
|
|
2140
|
+
"type": "string",
|
|
2141
|
+
"minLength": 1,
|
|
2142
|
+
"description": "Audience a client_credentials token request gets when it sends none. An explicit `audience` wins. `null` removes it.",
|
|
2143
|
+
"nullable": true
|
|
2144
|
+
},
|
|
2134
2145
|
"metadata": {
|
|
2135
2146
|
"type": "object",
|
|
2136
2147
|
"properties": {},
|
|
@@ -15735,6 +15746,11 @@
|
|
|
15735
15746
|
],
|
|
15736
15747
|
"description": "A login flow bound to this client (`loginflow_xxx`), overriding the account's. Absent = inherit."
|
|
15737
15748
|
},
|
|
15749
|
+
"default_audience": {
|
|
15750
|
+
"type": "string",
|
|
15751
|
+
"description": "Audience used when a client_credentials token request sends none (e.g. `faable:management:<account_id>`). An explicit `audience` in the request wins. Absent = `${iss}/userinfo`.",
|
|
15752
|
+
"nullable": true
|
|
15753
|
+
},
|
|
15738
15754
|
"account": {
|
|
15739
15755
|
"type": "string",
|
|
15740
15756
|
"description": "Object is related with this account"
|
|
@@ -16342,6 +16358,11 @@
|
|
|
16342
16358
|
],
|
|
16343
16359
|
"description": "A login flow bound to this client (`loginflow_xxx`), overriding the account's. Absent = inherit."
|
|
16344
16360
|
},
|
|
16361
|
+
"default_audience": {
|
|
16362
|
+
"type": "string",
|
|
16363
|
+
"description": "Audience used when a client_credentials token request sends none (e.g. `faable:management:<account_id>`). An explicit `audience` in the request wins. Absent = `${iss}/userinfo`.",
|
|
16364
|
+
"nullable": true
|
|
16365
|
+
},
|
|
16345
16366
|
"account": {
|
|
16346
16367
|
"type": "string",
|
|
16347
16368
|
"description": "Object is related with this account"
|
|
@@ -16934,6 +16955,12 @@
|
|
|
16934
16955
|
}
|
|
16935
16956
|
]
|
|
16936
16957
|
},
|
|
16958
|
+
"default_audience": {
|
|
16959
|
+
"type": "string",
|
|
16960
|
+
"minLength": 1,
|
|
16961
|
+
"description": "Audience a client_credentials token request gets when it sends none. An explicit `audience` wins. `null` removes it.",
|
|
16962
|
+
"nullable": true
|
|
16963
|
+
},
|
|
16937
16964
|
"metadata": {
|
|
16938
16965
|
"type": "object",
|
|
16939
16966
|
"properties": {},
|
|
@@ -17367,6 +17394,11 @@
|
|
|
17367
17394
|
],
|
|
17368
17395
|
"description": "A login flow bound to this client (`loginflow_xxx`), overriding the account's. Absent = inherit."
|
|
17369
17396
|
},
|
|
17397
|
+
"default_audience": {
|
|
17398
|
+
"type": "string",
|
|
17399
|
+
"description": "Audience used when a client_credentials token request sends none (e.g. `faable:management:<account_id>`). An explicit `audience` in the request wins. Absent = `${iss}/userinfo`.",
|
|
17400
|
+
"nullable": true
|
|
17401
|
+
},
|
|
17370
17402
|
"account": {
|
|
17371
17403
|
"type": "string",
|
|
17372
17404
|
"description": "Object is related with this account"
|
|
@@ -17974,6 +18006,11 @@
|
|
|
17974
18006
|
],
|
|
17975
18007
|
"description": "A login flow bound to this client (`loginflow_xxx`), overriding the account's. Absent = inherit."
|
|
17976
18008
|
},
|
|
18009
|
+
"default_audience": {
|
|
18010
|
+
"type": "string",
|
|
18011
|
+
"description": "Audience used when a client_credentials token request sends none (e.g. `faable:management:<account_id>`). An explicit `audience` in the request wins. Absent = `${iss}/userinfo`.",
|
|
18012
|
+
"nullable": true
|
|
18013
|
+
},
|
|
17977
18014
|
"account": {
|
|
17978
18015
|
"type": "string",
|
|
17979
18016
|
"description": "Object is related with this account"
|
|
@@ -18582,6 +18619,11 @@
|
|
|
18582
18619
|
],
|
|
18583
18620
|
"description": "A login flow bound to this client (`loginflow_xxx`), overriding the account's. Absent = inherit."
|
|
18584
18621
|
},
|
|
18622
|
+
"default_audience": {
|
|
18623
|
+
"type": "string",
|
|
18624
|
+
"description": "Audience used when a client_credentials token request sends none (e.g. `faable:management:<account_id>`). An explicit `audience` in the request wins. Absent = `${iss}/userinfo`.",
|
|
18625
|
+
"nullable": true
|
|
18626
|
+
},
|
|
18585
18627
|
"account": {
|
|
18586
18628
|
"type": "string",
|
|
18587
18629
|
"description": "Object is related with this account"
|