@simpleview/sv-auth-client 6.23.1 → 6.23.3

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@simpleview/sv-auth-client",
3
- "version": "6.23.1",
3
+ "version": "6.23.3",
4
4
  "description": "Client for communicating with sv-auth",
5
5
  "author": "Owen Allen <owenallenaz@gmail.com>",
6
6
  "dependencies": {
@@ -744,6 +744,52 @@ class AuthPrefix {
744
744
  return returnData;
745
745
  }
746
746
 
747
+ async verify_password({ input, fields, context }) {
748
+ context = context || this._graphServer.context;
749
+
750
+ return query({
751
+ query: `
752
+ query($input: auth_verify_password_input!) {
753
+ auth {
754
+ verify_password(input: $input) {
755
+ ${fields}
756
+ }
757
+ }
758
+ }
759
+ `,
760
+ variables: {
761
+ input
762
+ },
763
+ url: this._graphUrl,
764
+ token: context.token,
765
+ key: "auth.verify_password",
766
+ clean: true
767
+ });
768
+ }
769
+
770
+ async update_totp({ input, fields, context }) {
771
+ context = context || this._graphServer.context;
772
+
773
+ return query({
774
+ query: `
775
+ mutation($input: auth_update_totp_input!) {
776
+ auth {
777
+ update_totp(input: $input) {
778
+ ${fields}
779
+ }
780
+ }
781
+ }
782
+ `,
783
+ variables: {
784
+ input
785
+ },
786
+ url: this._graphUrl,
787
+ token: context.token,
788
+ key: "auth.update_totp",
789
+ clean: true
790
+ });
791
+ }
792
+
747
793
  async verified_totp_factor({ input, fields }) {
748
794
  const result = await query({
749
795
  query : `
@@ -931,6 +977,66 @@ class AuthPrefix {
931
977
  return returnData;
932
978
  }
933
979
 
980
+ test_instrument_totp({ fields, context }) {
981
+ context = context || this._graphServer.context;
982
+
983
+ return query({
984
+ query: `
985
+ mutation {
986
+ auth {
987
+ test_instrument_totp {
988
+ ${fields}
989
+ }
990
+ }
991
+ }
992
+ `,
993
+ url: this._graphUrl,
994
+ token: context.token,
995
+ clean: true,
996
+ key: "auth.test_instrument_totp"
997
+ });
998
+ }
999
+
1000
+ test_uninstrument_totp({ fields, context }) {
1001
+ context = context || this._graphServer.context;
1002
+
1003
+ return query({
1004
+ query: `
1005
+ mutation {
1006
+ auth {
1007
+ test_uninstrument_totp {
1008
+ ${fields}
1009
+ }
1010
+ }
1011
+ }
1012
+ `,
1013
+ url: this._graphUrl,
1014
+ token: context.token,
1015
+ clean: true,
1016
+ key: "auth.test_uninstrument_totp"
1017
+ });
1018
+ }
1019
+
1020
+ test_clear_totp_state({ fields, context }) {
1021
+ context = context || this._graphServer.context;
1022
+
1023
+ return query({
1024
+ query: `
1025
+ mutation {
1026
+ auth {
1027
+ test_clear_totp_state {
1028
+ ${fields}
1029
+ }
1030
+ }
1031
+ }
1032
+ `,
1033
+ url: this._graphUrl,
1034
+ token: context.token,
1035
+ clean: true,
1036
+ key: "auth.test_clear_totp_state"
1037
+ });
1038
+ }
1039
+
934
1040
  async uninstrument({ fields, context }) {
935
1041
  context = context || this._graphServer.context;
936
1042