@simpleview/sv-auth-client 6.23.1 → 6.23.2

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.2",
4
4
  "description": "Client for communicating with sv-auth",
5
5
  "author": "Owen Allen <owenallenaz@gmail.com>",
6
6
  "dependencies": {
@@ -744,6 +744,29 @@ class AuthPrefix {
744
744
  return returnData;
745
745
  }
746
746
 
747
+ async update_totp({ input, fields, context }) {
748
+ context = context || this._graphServer.context;
749
+
750
+ return query({
751
+ query: `
752
+ mutation($input: auth_update_totp_input!) {
753
+ auth {
754
+ update_totp(input: $input) {
755
+ ${fields}
756
+ }
757
+ }
758
+ }
759
+ `,
760
+ variables: {
761
+ input
762
+ },
763
+ url: this._graphUrl,
764
+ token: context.token,
765
+ key: "auth.update_totp",
766
+ clean: true
767
+ });
768
+ }
769
+
747
770
  async verified_totp_factor({ input, fields }) {
748
771
  const result = await query({
749
772
  query : `
@@ -931,6 +954,66 @@ class AuthPrefix {
931
954
  return returnData;
932
955
  }
933
956
 
957
+ test_instrument_totp({ fields, context }) {
958
+ context = context || this._graphServer.context;
959
+
960
+ return query({
961
+ query: `
962
+ mutation {
963
+ auth {
964
+ test_instrument_totp {
965
+ ${fields}
966
+ }
967
+ }
968
+ }
969
+ `,
970
+ url: this._graphUrl,
971
+ token: context.token,
972
+ clean: true,
973
+ key: "auth.test_instrument_totp"
974
+ });
975
+ }
976
+
977
+ test_uninstrument_totp({ fields, context }) {
978
+ context = context || this._graphServer.context;
979
+
980
+ return query({
981
+ query: `
982
+ mutation {
983
+ auth {
984
+ test_uninstrument_totp {
985
+ ${fields}
986
+ }
987
+ }
988
+ }
989
+ `,
990
+ url: this._graphUrl,
991
+ token: context.token,
992
+ clean: true,
993
+ key: "auth.test_uninstrument_totp"
994
+ });
995
+ }
996
+
997
+ test_clear_totp_state({ fields, context }) {
998
+ context = context || this._graphServer.context;
999
+
1000
+ return query({
1001
+ query: `
1002
+ mutation {
1003
+ auth {
1004
+ test_clear_totp_state {
1005
+ ${fields}
1006
+ }
1007
+ }
1008
+ }
1009
+ `,
1010
+ url: this._graphUrl,
1011
+ token: context.token,
1012
+ clean: true,
1013
+ key: "auth.test_clear_totp_state"
1014
+ });
1015
+ }
1016
+
934
1017
  async uninstrument({ fields, context }) {
935
1018
  context = context || this._graphServer.context;
936
1019