@compassdigital/sdk.typescript 4.720.0 → 4.722.0
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/lib/index.d.ts +6 -4
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js.map +1 -1
- package/lib/interface/consumer.d.ts +1 -1
- package/lib/interface/consumer.d.ts.map +1 -1
- package/lib/interface/user.d.ts +6 -2
- package/lib/interface/user.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/index.ts +6 -3
- package/src/interface/consumer.ts +1 -1
- package/src/interface/user.ts +10 -3
package/src/interface/user.ts
CHANGED
|
@@ -84,6 +84,8 @@ export interface Forgotpassword {
|
|
|
84
84
|
|
|
85
85
|
export interface Resetpassword {
|
|
86
86
|
password?: string;
|
|
87
|
+
// realm
|
|
88
|
+
realm?: string;
|
|
87
89
|
}
|
|
88
90
|
|
|
89
91
|
export interface ResetpasswordSuccess {
|
|
@@ -373,11 +375,16 @@ export interface GetUserAuthRequest extends BaseRequest, RequestQuery<GetUserAut
|
|
|
373
375
|
|
|
374
376
|
// POST /user/auth - Use refresh token to generate a new access token and refresh token
|
|
375
377
|
|
|
378
|
+
export interface PostUserAuthQuery {
|
|
379
|
+
// realm
|
|
380
|
+
realm?: string;
|
|
381
|
+
}
|
|
382
|
+
|
|
376
383
|
export type PostUserAuthBody = RefreshToken;
|
|
377
384
|
|
|
378
385
|
export type PostUserAuthResponse = auth;
|
|
379
386
|
|
|
380
|
-
export interface PostUserAuthRequest extends BaseRequest {
|
|
387
|
+
export interface PostUserAuthRequest extends BaseRequest, RequestQuery<PostUserAuthQuery> {
|
|
381
388
|
body: PostUserAuthBody;
|
|
382
389
|
}
|
|
383
390
|
|
|
@@ -634,8 +641,8 @@ export interface PostUserResetPasswordQuery {
|
|
|
634
641
|
lang?: string;
|
|
635
642
|
// realm
|
|
636
643
|
realm?: string;
|
|
637
|
-
// hCaptcha response key
|
|
638
|
-
captchaResponseKey
|
|
644
|
+
// hCaptcha response key. Validated only for realms where captcha is enforced (not cdl/bolter).
|
|
645
|
+
captchaResponseKey?: string;
|
|
639
646
|
}
|
|
640
647
|
|
|
641
648
|
export type PostUserResetPasswordBody = Forgotpassword;
|