@juhuu/sdk-ts 1.3.5 → 1.3.7
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/index.d.mts +45 -0
- package/dist/index.d.ts +45 -0
- package/dist/index.js +44 -0
- package/dist/index.mjs +44 -0
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -1765,6 +1765,9 @@ declare class AuthService extends Service {
|
|
|
1765
1765
|
otpRequest(AuthOtpRequestParams: JUHUU.User.OtpRequest.Params, AuthOtpRequestOptions?: JUHUU.User.OtpRequest.Options): Promise<JUHUU.HttpResponse<JUHUU.User.OtpRequest.Response>>;
|
|
1766
1766
|
otpVerify(AuthOtpVerifyParams: JUHUU.User.OtpVerify.Params, AuthOtpVerifyOptions?: JUHUU.User.OtpVerify.Options): Promise<JUHUU.HttpResponse<JUHUU.User.OtpVerify.Response>>;
|
|
1767
1767
|
setPassword(AuthSetPasswordParams: JUHUU.User.SetPassword.Params, AuthSetPasswordOptions?: JUHUU.User.SetPassword.Options): Promise<JUHUU.HttpResponse<JUHUU.User.SetPassword.Response>>;
|
|
1768
|
+
removePassword(AuthRemovePasswordParams: JUHUU.User.RemovePassword.Params, AuthRemovePasswordOptions?: JUHUU.User.RemovePassword.Options): Promise<JUHUU.HttpResponse<JUHUU.User.RemovePassword.Response>>;
|
|
1769
|
+
removeGoogle(AuthRemoveGoogleParams: JUHUU.User.RemoveGoogle.Params, AuthRemoveGoogleOptions?: JUHUU.User.RemoveGoogle.Options): Promise<JUHUU.HttpResponse<JUHUU.User.RemoveGoogle.Response>>;
|
|
1770
|
+
removeApple(AuthRemoveAppleParams: JUHUU.User.RemoveApple.Params, AuthRemoveAppleOptions?: JUHUU.User.RemoveApple.Options): Promise<JUHUU.HttpResponse<JUHUU.User.RemoveApple.Response>>;
|
|
1768
1771
|
changePhoneRequest(AuthChangePhoneRequestParams: JUHUU.User.ChangePhoneRequest.Params, AuthChangePhoneRequestOptions?: JUHUU.User.ChangePhoneRequest.Options): Promise<JUHUU.HttpResponse<JUHUU.User.ChangePhoneRequest.Response>>;
|
|
1769
1772
|
changePhoneVerify(AuthChangePhoneVerifyParams: JUHUU.User.ChangePhoneVerify.Params, AuthChangePhoneVerifyOptions?: JUHUU.User.ChangePhoneVerify.Options): Promise<JUHUU.HttpResponse<JUHUU.User.ChangePhoneVerify.Response>>;
|
|
1770
1773
|
removePhone(AuthRemovePhoneParams: JUHUU.User.RemovePhone.Params, AuthRemovePhoneOptions?: JUHUU.User.RemovePhone.Options): Promise<JUHUU.HttpResponse<JUHUU.User.RemovePhone.Response>>;
|
|
@@ -1772,6 +1775,7 @@ declare class AuthService extends Service {
|
|
|
1772
1775
|
changeEmailVerify(AuthChangeEmailVerifyParams: JUHUU.User.ChangeEmailVerify.Params, AuthChangeEmailVerifyOptions?: JUHUU.User.ChangeEmailVerify.Options): Promise<JUHUU.HttpResponse<JUHUU.User.ChangeEmailVerify.Response>>;
|
|
1773
1776
|
removeEmail(AuthRemoveEmailParams: JUHUU.User.RemoveEmail.Params, AuthRemoveEmailOptions?: JUHUU.User.RemoveEmail.Options): Promise<JUHUU.HttpResponse<JUHUU.User.RemoveEmail.Response>>;
|
|
1774
1777
|
getAvailableEmails(AuthGetAvailableEmailsParams: JUHUU.User.GetAvailableEmails.Params, AuthGetAvailableEmailsOptions?: JUHUU.User.GetAvailableEmails.Options): Promise<JUHUU.HttpResponse<JUHUU.User.GetAvailableEmails.Response>>;
|
|
1778
|
+
getAuthMethods(AuthGetAuthMethodsParams: JUHUU.User.GetAuthMethods.Params, AuthGetAuthMethodsOptions?: JUHUU.User.GetAuthMethods.Options): Promise<JUHUU.HttpResponse<JUHUU.User.GetAuthMethods.Response>>;
|
|
1775
1779
|
setPrimaryEmail(AuthSetPrimaryEmailParams: JUHUU.User.SetPrimaryEmail.Params, AuthSetPrimaryEmailOptions?: JUHUU.User.SetPrimaryEmail.Options): Promise<JUHUU.HttpResponse<JUHUU.User.SetPrimaryEmail.Response>>;
|
|
1776
1780
|
}
|
|
1777
1781
|
|
|
@@ -2962,6 +2966,30 @@ declare namespace JUHUU {
|
|
|
2962
2966
|
success: boolean;
|
|
2963
2967
|
};
|
|
2964
2968
|
}
|
|
2969
|
+
export namespace RemovePassword {
|
|
2970
|
+
type Params = {};
|
|
2971
|
+
type Options = JUHUU.RequestOptions;
|
|
2972
|
+
type Response = {
|
|
2973
|
+
message: string;
|
|
2974
|
+
success: boolean;
|
|
2975
|
+
};
|
|
2976
|
+
}
|
|
2977
|
+
export namespace RemoveGoogle {
|
|
2978
|
+
type Params = {};
|
|
2979
|
+
type Options = JUHUU.RequestOptions;
|
|
2980
|
+
type Response = {
|
|
2981
|
+
message: string;
|
|
2982
|
+
success: boolean;
|
|
2983
|
+
};
|
|
2984
|
+
}
|
|
2985
|
+
export namespace RemoveApple {
|
|
2986
|
+
type Params = {};
|
|
2987
|
+
type Options = JUHUU.RequestOptions;
|
|
2988
|
+
type Response = {
|
|
2989
|
+
message: string;
|
|
2990
|
+
success: boolean;
|
|
2991
|
+
};
|
|
2992
|
+
}
|
|
2965
2993
|
export namespace ChangePhoneRequest {
|
|
2966
2994
|
type Params = {
|
|
2967
2995
|
phone: string;
|
|
@@ -3032,6 +3060,23 @@ declare namespace JUHUU {
|
|
|
3032
3060
|
primaryEmail: string | null;
|
|
3033
3061
|
};
|
|
3034
3062
|
}
|
|
3063
|
+
export namespace GetAuthMethods {
|
|
3064
|
+
type Params = {};
|
|
3065
|
+
type Options = JUHUU.RequestOptions;
|
|
3066
|
+
type Response = {
|
|
3067
|
+
methods: {
|
|
3068
|
+
email: boolean;
|
|
3069
|
+
phone: boolean;
|
|
3070
|
+
password: boolean;
|
|
3071
|
+
google: boolean;
|
|
3072
|
+
apple: boolean;
|
|
3073
|
+
};
|
|
3074
|
+
details: {
|
|
3075
|
+
email: string | null;
|
|
3076
|
+
phone: string | null;
|
|
3077
|
+
};
|
|
3078
|
+
};
|
|
3079
|
+
}
|
|
3035
3080
|
export namespace SetPrimaryEmail {
|
|
3036
3081
|
type Params = {
|
|
3037
3082
|
email: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -1765,6 +1765,9 @@ declare class AuthService extends Service {
|
|
|
1765
1765
|
otpRequest(AuthOtpRequestParams: JUHUU.User.OtpRequest.Params, AuthOtpRequestOptions?: JUHUU.User.OtpRequest.Options): Promise<JUHUU.HttpResponse<JUHUU.User.OtpRequest.Response>>;
|
|
1766
1766
|
otpVerify(AuthOtpVerifyParams: JUHUU.User.OtpVerify.Params, AuthOtpVerifyOptions?: JUHUU.User.OtpVerify.Options): Promise<JUHUU.HttpResponse<JUHUU.User.OtpVerify.Response>>;
|
|
1767
1767
|
setPassword(AuthSetPasswordParams: JUHUU.User.SetPassword.Params, AuthSetPasswordOptions?: JUHUU.User.SetPassword.Options): Promise<JUHUU.HttpResponse<JUHUU.User.SetPassword.Response>>;
|
|
1768
|
+
removePassword(AuthRemovePasswordParams: JUHUU.User.RemovePassword.Params, AuthRemovePasswordOptions?: JUHUU.User.RemovePassword.Options): Promise<JUHUU.HttpResponse<JUHUU.User.RemovePassword.Response>>;
|
|
1769
|
+
removeGoogle(AuthRemoveGoogleParams: JUHUU.User.RemoveGoogle.Params, AuthRemoveGoogleOptions?: JUHUU.User.RemoveGoogle.Options): Promise<JUHUU.HttpResponse<JUHUU.User.RemoveGoogle.Response>>;
|
|
1770
|
+
removeApple(AuthRemoveAppleParams: JUHUU.User.RemoveApple.Params, AuthRemoveAppleOptions?: JUHUU.User.RemoveApple.Options): Promise<JUHUU.HttpResponse<JUHUU.User.RemoveApple.Response>>;
|
|
1768
1771
|
changePhoneRequest(AuthChangePhoneRequestParams: JUHUU.User.ChangePhoneRequest.Params, AuthChangePhoneRequestOptions?: JUHUU.User.ChangePhoneRequest.Options): Promise<JUHUU.HttpResponse<JUHUU.User.ChangePhoneRequest.Response>>;
|
|
1769
1772
|
changePhoneVerify(AuthChangePhoneVerifyParams: JUHUU.User.ChangePhoneVerify.Params, AuthChangePhoneVerifyOptions?: JUHUU.User.ChangePhoneVerify.Options): Promise<JUHUU.HttpResponse<JUHUU.User.ChangePhoneVerify.Response>>;
|
|
1770
1773
|
removePhone(AuthRemovePhoneParams: JUHUU.User.RemovePhone.Params, AuthRemovePhoneOptions?: JUHUU.User.RemovePhone.Options): Promise<JUHUU.HttpResponse<JUHUU.User.RemovePhone.Response>>;
|
|
@@ -1772,6 +1775,7 @@ declare class AuthService extends Service {
|
|
|
1772
1775
|
changeEmailVerify(AuthChangeEmailVerifyParams: JUHUU.User.ChangeEmailVerify.Params, AuthChangeEmailVerifyOptions?: JUHUU.User.ChangeEmailVerify.Options): Promise<JUHUU.HttpResponse<JUHUU.User.ChangeEmailVerify.Response>>;
|
|
1773
1776
|
removeEmail(AuthRemoveEmailParams: JUHUU.User.RemoveEmail.Params, AuthRemoveEmailOptions?: JUHUU.User.RemoveEmail.Options): Promise<JUHUU.HttpResponse<JUHUU.User.RemoveEmail.Response>>;
|
|
1774
1777
|
getAvailableEmails(AuthGetAvailableEmailsParams: JUHUU.User.GetAvailableEmails.Params, AuthGetAvailableEmailsOptions?: JUHUU.User.GetAvailableEmails.Options): Promise<JUHUU.HttpResponse<JUHUU.User.GetAvailableEmails.Response>>;
|
|
1778
|
+
getAuthMethods(AuthGetAuthMethodsParams: JUHUU.User.GetAuthMethods.Params, AuthGetAuthMethodsOptions?: JUHUU.User.GetAuthMethods.Options): Promise<JUHUU.HttpResponse<JUHUU.User.GetAuthMethods.Response>>;
|
|
1775
1779
|
setPrimaryEmail(AuthSetPrimaryEmailParams: JUHUU.User.SetPrimaryEmail.Params, AuthSetPrimaryEmailOptions?: JUHUU.User.SetPrimaryEmail.Options): Promise<JUHUU.HttpResponse<JUHUU.User.SetPrimaryEmail.Response>>;
|
|
1776
1780
|
}
|
|
1777
1781
|
|
|
@@ -2962,6 +2966,30 @@ declare namespace JUHUU {
|
|
|
2962
2966
|
success: boolean;
|
|
2963
2967
|
};
|
|
2964
2968
|
}
|
|
2969
|
+
export namespace RemovePassword {
|
|
2970
|
+
type Params = {};
|
|
2971
|
+
type Options = JUHUU.RequestOptions;
|
|
2972
|
+
type Response = {
|
|
2973
|
+
message: string;
|
|
2974
|
+
success: boolean;
|
|
2975
|
+
};
|
|
2976
|
+
}
|
|
2977
|
+
export namespace RemoveGoogle {
|
|
2978
|
+
type Params = {};
|
|
2979
|
+
type Options = JUHUU.RequestOptions;
|
|
2980
|
+
type Response = {
|
|
2981
|
+
message: string;
|
|
2982
|
+
success: boolean;
|
|
2983
|
+
};
|
|
2984
|
+
}
|
|
2985
|
+
export namespace RemoveApple {
|
|
2986
|
+
type Params = {};
|
|
2987
|
+
type Options = JUHUU.RequestOptions;
|
|
2988
|
+
type Response = {
|
|
2989
|
+
message: string;
|
|
2990
|
+
success: boolean;
|
|
2991
|
+
};
|
|
2992
|
+
}
|
|
2965
2993
|
export namespace ChangePhoneRequest {
|
|
2966
2994
|
type Params = {
|
|
2967
2995
|
phone: string;
|
|
@@ -3032,6 +3060,23 @@ declare namespace JUHUU {
|
|
|
3032
3060
|
primaryEmail: string | null;
|
|
3033
3061
|
};
|
|
3034
3062
|
}
|
|
3063
|
+
export namespace GetAuthMethods {
|
|
3064
|
+
type Params = {};
|
|
3065
|
+
type Options = JUHUU.RequestOptions;
|
|
3066
|
+
type Response = {
|
|
3067
|
+
methods: {
|
|
3068
|
+
email: boolean;
|
|
3069
|
+
phone: boolean;
|
|
3070
|
+
password: boolean;
|
|
3071
|
+
google: boolean;
|
|
3072
|
+
apple: boolean;
|
|
3073
|
+
};
|
|
3074
|
+
details: {
|
|
3075
|
+
email: string | null;
|
|
3076
|
+
phone: string | null;
|
|
3077
|
+
};
|
|
3078
|
+
};
|
|
3079
|
+
}
|
|
3035
3080
|
export namespace SetPrimaryEmail {
|
|
3036
3081
|
type Params = {
|
|
3037
3082
|
email: string;
|
package/dist/index.js
CHANGED
|
@@ -622,6 +622,39 @@ var AuthService = class extends Service {
|
|
|
622
622
|
AuthSetPasswordOptions
|
|
623
623
|
);
|
|
624
624
|
}
|
|
625
|
+
async removePassword(AuthRemovePasswordParams, AuthRemovePasswordOptions) {
|
|
626
|
+
return await super.sendRequest(
|
|
627
|
+
{
|
|
628
|
+
method: "DELETE",
|
|
629
|
+
url: "auth/password",
|
|
630
|
+
body: void 0,
|
|
631
|
+
authenticationNotOptional: true
|
|
632
|
+
},
|
|
633
|
+
AuthRemovePasswordOptions
|
|
634
|
+
);
|
|
635
|
+
}
|
|
636
|
+
async removeGoogle(AuthRemoveGoogleParams, AuthRemoveGoogleOptions) {
|
|
637
|
+
return await super.sendRequest(
|
|
638
|
+
{
|
|
639
|
+
method: "DELETE",
|
|
640
|
+
url: "auth/google",
|
|
641
|
+
body: void 0,
|
|
642
|
+
authenticationNotOptional: true
|
|
643
|
+
},
|
|
644
|
+
AuthRemoveGoogleOptions
|
|
645
|
+
);
|
|
646
|
+
}
|
|
647
|
+
async removeApple(AuthRemoveAppleParams, AuthRemoveAppleOptions) {
|
|
648
|
+
return await super.sendRequest(
|
|
649
|
+
{
|
|
650
|
+
method: "DELETE",
|
|
651
|
+
url: "auth/apple",
|
|
652
|
+
body: void 0,
|
|
653
|
+
authenticationNotOptional: true
|
|
654
|
+
},
|
|
655
|
+
AuthRemoveAppleOptions
|
|
656
|
+
);
|
|
657
|
+
}
|
|
625
658
|
async changePhoneRequest(AuthChangePhoneRequestParams, AuthChangePhoneRequestOptions) {
|
|
626
659
|
return await super.sendRequest(
|
|
627
660
|
{
|
|
@@ -713,6 +746,17 @@ var AuthService = class extends Service {
|
|
|
713
746
|
AuthGetAvailableEmailsOptions
|
|
714
747
|
);
|
|
715
748
|
}
|
|
749
|
+
async getAuthMethods(AuthGetAuthMethodsParams, AuthGetAuthMethodsOptions) {
|
|
750
|
+
return await super.sendRequest(
|
|
751
|
+
{
|
|
752
|
+
method: "GET",
|
|
753
|
+
url: "auth/methods",
|
|
754
|
+
authenticationNotOptional: true,
|
|
755
|
+
body: void 0
|
|
756
|
+
},
|
|
757
|
+
AuthGetAuthMethodsOptions
|
|
758
|
+
);
|
|
759
|
+
}
|
|
716
760
|
async setPrimaryEmail(AuthSetPrimaryEmailParams, AuthSetPrimaryEmailOptions) {
|
|
717
761
|
return await super.sendRequest(
|
|
718
762
|
{
|
package/dist/index.mjs
CHANGED
|
@@ -578,6 +578,39 @@ var AuthService = class extends Service {
|
|
|
578
578
|
AuthSetPasswordOptions
|
|
579
579
|
);
|
|
580
580
|
}
|
|
581
|
+
async removePassword(AuthRemovePasswordParams, AuthRemovePasswordOptions) {
|
|
582
|
+
return await super.sendRequest(
|
|
583
|
+
{
|
|
584
|
+
method: "DELETE",
|
|
585
|
+
url: "auth/password",
|
|
586
|
+
body: void 0,
|
|
587
|
+
authenticationNotOptional: true
|
|
588
|
+
},
|
|
589
|
+
AuthRemovePasswordOptions
|
|
590
|
+
);
|
|
591
|
+
}
|
|
592
|
+
async removeGoogle(AuthRemoveGoogleParams, AuthRemoveGoogleOptions) {
|
|
593
|
+
return await super.sendRequest(
|
|
594
|
+
{
|
|
595
|
+
method: "DELETE",
|
|
596
|
+
url: "auth/google",
|
|
597
|
+
body: void 0,
|
|
598
|
+
authenticationNotOptional: true
|
|
599
|
+
},
|
|
600
|
+
AuthRemoveGoogleOptions
|
|
601
|
+
);
|
|
602
|
+
}
|
|
603
|
+
async removeApple(AuthRemoveAppleParams, AuthRemoveAppleOptions) {
|
|
604
|
+
return await super.sendRequest(
|
|
605
|
+
{
|
|
606
|
+
method: "DELETE",
|
|
607
|
+
url: "auth/apple",
|
|
608
|
+
body: void 0,
|
|
609
|
+
authenticationNotOptional: true
|
|
610
|
+
},
|
|
611
|
+
AuthRemoveAppleOptions
|
|
612
|
+
);
|
|
613
|
+
}
|
|
581
614
|
async changePhoneRequest(AuthChangePhoneRequestParams, AuthChangePhoneRequestOptions) {
|
|
582
615
|
return await super.sendRequest(
|
|
583
616
|
{
|
|
@@ -669,6 +702,17 @@ var AuthService = class extends Service {
|
|
|
669
702
|
AuthGetAvailableEmailsOptions
|
|
670
703
|
);
|
|
671
704
|
}
|
|
705
|
+
async getAuthMethods(AuthGetAuthMethodsParams, AuthGetAuthMethodsOptions) {
|
|
706
|
+
return await super.sendRequest(
|
|
707
|
+
{
|
|
708
|
+
method: "GET",
|
|
709
|
+
url: "auth/methods",
|
|
710
|
+
authenticationNotOptional: true,
|
|
711
|
+
body: void 0
|
|
712
|
+
},
|
|
713
|
+
AuthGetAuthMethodsOptions
|
|
714
|
+
);
|
|
715
|
+
}
|
|
672
716
|
async setPrimaryEmail(AuthSetPrimaryEmailParams, AuthSetPrimaryEmailOptions) {
|
|
673
717
|
return await super.sendRequest(
|
|
674
718
|
{
|