@juhuu/sdk-ts 1.3.6 → 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 CHANGED
@@ -1775,6 +1775,7 @@ declare class AuthService extends Service {
1775
1775
  changeEmailVerify(AuthChangeEmailVerifyParams: JUHUU.User.ChangeEmailVerify.Params, AuthChangeEmailVerifyOptions?: JUHUU.User.ChangeEmailVerify.Options): Promise<JUHUU.HttpResponse<JUHUU.User.ChangeEmailVerify.Response>>;
1776
1776
  removeEmail(AuthRemoveEmailParams: JUHUU.User.RemoveEmail.Params, AuthRemoveEmailOptions?: JUHUU.User.RemoveEmail.Options): Promise<JUHUU.HttpResponse<JUHUU.User.RemoveEmail.Response>>;
1777
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>>;
1778
1779
  setPrimaryEmail(AuthSetPrimaryEmailParams: JUHUU.User.SetPrimaryEmail.Params, AuthSetPrimaryEmailOptions?: JUHUU.User.SetPrimaryEmail.Options): Promise<JUHUU.HttpResponse<JUHUU.User.SetPrimaryEmail.Response>>;
1779
1780
  }
1780
1781
 
@@ -3059,6 +3060,23 @@ declare namespace JUHUU {
3059
3060
  primaryEmail: string | null;
3060
3061
  };
3061
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
+ }
3062
3080
  export namespace SetPrimaryEmail {
3063
3081
  type Params = {
3064
3082
  email: string;
package/dist/index.d.ts CHANGED
@@ -1775,6 +1775,7 @@ declare class AuthService extends Service {
1775
1775
  changeEmailVerify(AuthChangeEmailVerifyParams: JUHUU.User.ChangeEmailVerify.Params, AuthChangeEmailVerifyOptions?: JUHUU.User.ChangeEmailVerify.Options): Promise<JUHUU.HttpResponse<JUHUU.User.ChangeEmailVerify.Response>>;
1776
1776
  removeEmail(AuthRemoveEmailParams: JUHUU.User.RemoveEmail.Params, AuthRemoveEmailOptions?: JUHUU.User.RemoveEmail.Options): Promise<JUHUU.HttpResponse<JUHUU.User.RemoveEmail.Response>>;
1777
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>>;
1778
1779
  setPrimaryEmail(AuthSetPrimaryEmailParams: JUHUU.User.SetPrimaryEmail.Params, AuthSetPrimaryEmailOptions?: JUHUU.User.SetPrimaryEmail.Options): Promise<JUHUU.HttpResponse<JUHUU.User.SetPrimaryEmail.Response>>;
1779
1780
  }
1780
1781
 
@@ -3059,6 +3060,23 @@ declare namespace JUHUU {
3059
3060
  primaryEmail: string | null;
3060
3061
  };
3061
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
+ }
3062
3080
  export namespace SetPrimaryEmail {
3063
3081
  type Params = {
3064
3082
  email: string;
package/dist/index.js CHANGED
@@ -746,6 +746,17 @@ var AuthService = class extends Service {
746
746
  AuthGetAvailableEmailsOptions
747
747
  );
748
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
+ }
749
760
  async setPrimaryEmail(AuthSetPrimaryEmailParams, AuthSetPrimaryEmailOptions) {
750
761
  return await super.sendRequest(
751
762
  {
package/dist/index.mjs CHANGED
@@ -702,6 +702,17 @@ var AuthService = class extends Service {
702
702
  AuthGetAvailableEmailsOptions
703
703
  );
704
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
+ }
705
716
  async setPrimaryEmail(AuthSetPrimaryEmailParams, AuthSetPrimaryEmailOptions) {
706
717
  return await super.sendRequest(
707
718
  {
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "provenance": true
4
4
  },
5
5
  "name": "@juhuu/sdk-ts",
6
- "version": "1.3.6",
6
+ "version": "1.3.7",
7
7
  "description": "Typescript wrapper for JUHUU services",
8
8
  "main": "./dist/index.js",
9
9
  "module": "./dist/index.mjs",