authula 0.7.14 → 0.7.16
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/README.md +7 -2
- package/dist/{index-cq14Wq4Z.d.ts → index-xeVPFZn7.d.ts} +109 -107
- package/dist/index.d.ts +1 -1
- package/dist/index.js.map +1 -1
- package/dist/plugins/index.d.ts +1844 -1066
- package/dist/plugins/index.js +609 -129
- package/dist/plugins/index.js.map +1 -1
- package/package.json +16 -14
package/dist/plugins/index.js
CHANGED
|
@@ -60,7 +60,7 @@ function wrapGenerated(mod, client) {
|
|
|
60
60
|
//#endregion
|
|
61
61
|
//#region src/gen/endpoints/access-control/access-control.ts
|
|
62
62
|
/**
|
|
63
|
-
* Generated by orval
|
|
63
|
+
* Generated by orval 🍺
|
|
64
64
|
* Do not edit manually.
|
|
65
65
|
* Authula API
|
|
66
66
|
* Authula API - An open-source authentication solution that scales with you.
|
|
@@ -74,18 +74,25 @@ var access_control_exports = /* @__PURE__ */ __exportAll({
|
|
|
74
74
|
createRole: () => createRole,
|
|
75
75
|
deletePermission: () => deletePermission,
|
|
76
76
|
deleteRole: () => deleteRole,
|
|
77
|
+
getAddRolePermissionMutationKey: () => getAddRolePermissionMutationKey,
|
|
77
78
|
getAddRolePermissionMutationOptions: () => getAddRolePermissionMutationOptions,
|
|
78
79
|
getAddRolePermissionUrl: () => getAddRolePermissionUrl,
|
|
80
|
+
getAssignUserRoleMutationKey: () => getAssignUserRoleMutationKey,
|
|
79
81
|
getAssignUserRoleMutationOptions: () => getAssignUserRoleMutationOptions,
|
|
80
82
|
getAssignUserRoleUrl: () => getAssignUserRoleUrl,
|
|
83
|
+
getCheckUserPermissionsMutationKey: () => getCheckUserPermissionsMutationKey,
|
|
81
84
|
getCheckUserPermissionsMutationOptions: () => getCheckUserPermissionsMutationOptions,
|
|
82
85
|
getCheckUserPermissionsUrl: () => getCheckUserPermissionsUrl,
|
|
86
|
+
getCreatePermissionMutationKey: () => getCreatePermissionMutationKey,
|
|
83
87
|
getCreatePermissionMutationOptions: () => getCreatePermissionMutationOptions,
|
|
84
88
|
getCreatePermissionUrl: () => getCreatePermissionUrl,
|
|
89
|
+
getCreateRoleMutationKey: () => getCreateRoleMutationKey,
|
|
85
90
|
getCreateRoleMutationOptions: () => getCreateRoleMutationOptions,
|
|
86
91
|
getCreateRoleUrl: () => getCreateRoleUrl,
|
|
92
|
+
getDeletePermissionMutationKey: () => getDeletePermissionMutationKey,
|
|
87
93
|
getDeletePermissionMutationOptions: () => getDeletePermissionMutationOptions,
|
|
88
94
|
getDeletePermissionUrl: () => getDeletePermissionUrl,
|
|
95
|
+
getDeleteRoleMutationKey: () => getDeleteRoleMutationKey,
|
|
89
96
|
getDeleteRoleMutationOptions: () => getDeleteRoleMutationOptions,
|
|
90
97
|
getDeleteRoleUrl: () => getDeleteRoleUrl,
|
|
91
98
|
getGetPermissionByKeyQueryKey: () => getGetPermissionByKeyQueryKey,
|
|
@@ -117,18 +124,24 @@ var access_control_exports = /* @__PURE__ */ __exportAll({
|
|
|
117
124
|
getListUserRolesUrl: () => getListUserRolesUrl,
|
|
118
125
|
getPermission: () => getPermission,
|
|
119
126
|
getPermissionByKey: () => getPermissionByKey,
|
|
127
|
+
getRemoveRolePermissionMutationKey: () => getRemoveRolePermissionMutationKey,
|
|
120
128
|
getRemoveRolePermissionMutationOptions: () => getRemoveRolePermissionMutationOptions,
|
|
121
129
|
getRemoveRolePermissionUrl: () => getRemoveRolePermissionUrl,
|
|
130
|
+
getRemoveUserRoleMutationKey: () => getRemoveUserRoleMutationKey,
|
|
122
131
|
getRemoveUserRoleMutationOptions: () => getRemoveUserRoleMutationOptions,
|
|
123
132
|
getRemoveUserRoleUrl: () => getRemoveUserRoleUrl,
|
|
133
|
+
getReplaceRolePermissionsMutationKey: () => getReplaceRolePermissionsMutationKey,
|
|
124
134
|
getReplaceRolePermissionsMutationOptions: () => getReplaceRolePermissionsMutationOptions,
|
|
125
135
|
getReplaceRolePermissionsUrl: () => getReplaceRolePermissionsUrl,
|
|
136
|
+
getReplaceUserRolesMutationKey: () => getReplaceUserRolesMutationKey,
|
|
126
137
|
getReplaceUserRolesMutationOptions: () => getReplaceUserRolesMutationOptions,
|
|
127
138
|
getReplaceUserRolesUrl: () => getReplaceUserRolesUrl,
|
|
128
139
|
getRole: () => getRole,
|
|
129
140
|
getRoleByName: () => getRoleByName,
|
|
141
|
+
getUpdatePermissionMutationKey: () => getUpdatePermissionMutationKey,
|
|
130
142
|
getUpdatePermissionMutationOptions: () => getUpdatePermissionMutationOptions,
|
|
131
143
|
getUpdatePermissionUrl: () => getUpdatePermissionUrl,
|
|
144
|
+
getUpdateRoleMutationKey: () => getUpdateRoleMutationKey,
|
|
132
145
|
getUpdateRoleMutationOptions: () => getUpdateRoleMutationOptions,
|
|
133
146
|
getUpdateRoleUrl: () => getUpdateRoleUrl,
|
|
134
147
|
getUserPermissions: () => getUserPermissions,
|
|
@@ -222,18 +235,27 @@ const getCreatePermissionUrl = () => {
|
|
|
222
235
|
* @summary Create permission
|
|
223
236
|
*/
|
|
224
237
|
const createPermission = async (createPermissionRequest, options) => {
|
|
238
|
+
const getHeaders = (h) => {
|
|
239
|
+
if (!h) return {};
|
|
240
|
+
if (h instanceof Headers) return Object.fromEntries(h.entries());
|
|
241
|
+
if (Symbol.iterator in h) return Object.fromEntries(Array.from(h, (entry) => Array.from(entry)));
|
|
242
|
+
const headers = {};
|
|
243
|
+
for (const [name, value] of Object.entries(h)) if (value !== void 0) headers[name] = value;
|
|
244
|
+
return headers;
|
|
245
|
+
};
|
|
225
246
|
return customFetch(getCreatePermissionUrl(), {
|
|
226
247
|
...options,
|
|
227
248
|
method: "POST",
|
|
228
249
|
headers: {
|
|
229
250
|
"Content-Type": "application/json",
|
|
230
|
-
...options?.headers
|
|
251
|
+
...getHeaders(options?.headers)
|
|
231
252
|
},
|
|
232
253
|
body: JSON.stringify(createPermissionRequest)
|
|
233
254
|
});
|
|
234
255
|
};
|
|
256
|
+
const getCreatePermissionMutationKey = () => ["createPermission"];
|
|
235
257
|
const getCreatePermissionMutationOptions = (options) => {
|
|
236
|
-
const mutationKey =
|
|
258
|
+
const mutationKey = getCreatePermissionMutationKey();
|
|
237
259
|
const { mutation: mutationOptions, request: requestOptions } = options ? options.mutation && "mutationKey" in options.mutation && options.mutation.mutationKey ? options : {
|
|
238
260
|
...options,
|
|
239
261
|
mutation: {
|
|
@@ -348,8 +370,9 @@ const deletePermission = async (permissionId, options) => {
|
|
|
348
370
|
method: "DELETE"
|
|
349
371
|
});
|
|
350
372
|
};
|
|
373
|
+
const getDeletePermissionMutationKey = () => ["deletePermission"];
|
|
351
374
|
const getDeletePermissionMutationOptions = (options) => {
|
|
352
|
-
const mutationKey =
|
|
375
|
+
const mutationKey = getDeletePermissionMutationKey();
|
|
353
376
|
const { mutation: mutationOptions, request: requestOptions } = options ? options.mutation && "mutationKey" in options.mutation && options.mutation.mutationKey ? options : {
|
|
354
377
|
...options,
|
|
355
378
|
mutation: {
|
|
@@ -383,18 +406,27 @@ const getUpdatePermissionUrl = (permissionId) => {
|
|
|
383
406
|
* @summary Update permission
|
|
384
407
|
*/
|
|
385
408
|
const updatePermission = async (permissionId, updatePermissionRequest, options) => {
|
|
409
|
+
const getHeaders = (h) => {
|
|
410
|
+
if (!h) return {};
|
|
411
|
+
if (h instanceof Headers) return Object.fromEntries(h.entries());
|
|
412
|
+
if (Symbol.iterator in h) return Object.fromEntries(Array.from(h, (entry) => Array.from(entry)));
|
|
413
|
+
const headers = {};
|
|
414
|
+
for (const [name, value] of Object.entries(h)) if (value !== void 0) headers[name] = value;
|
|
415
|
+
return headers;
|
|
416
|
+
};
|
|
386
417
|
return customFetch(getUpdatePermissionUrl(permissionId), {
|
|
387
418
|
...options,
|
|
388
419
|
method: "PATCH",
|
|
389
420
|
headers: {
|
|
390
421
|
"Content-Type": "application/json",
|
|
391
|
-
...options?.headers
|
|
422
|
+
...getHeaders(options?.headers)
|
|
392
423
|
},
|
|
393
424
|
body: JSON.stringify(updatePermissionRequest)
|
|
394
425
|
});
|
|
395
426
|
};
|
|
427
|
+
const getUpdatePermissionMutationKey = () => ["updatePermission"];
|
|
396
428
|
const getUpdatePermissionMutationOptions = (options) => {
|
|
397
|
-
const mutationKey =
|
|
429
|
+
const mutationKey = getUpdatePermissionMutationKey();
|
|
398
430
|
const { mutation: mutationOptions, request: requestOptions } = options ? options.mutation && "mutationKey" in options.mutation && options.mutation.mutationKey ? options : {
|
|
399
431
|
...options,
|
|
400
432
|
mutation: {
|
|
@@ -465,18 +497,27 @@ const getCreateRoleUrl = () => {
|
|
|
465
497
|
* @summary Create role
|
|
466
498
|
*/
|
|
467
499
|
const createRole = async (createRoleRequest, options) => {
|
|
500
|
+
const getHeaders = (h) => {
|
|
501
|
+
if (!h) return {};
|
|
502
|
+
if (h instanceof Headers) return Object.fromEntries(h.entries());
|
|
503
|
+
if (Symbol.iterator in h) return Object.fromEntries(Array.from(h, (entry) => Array.from(entry)));
|
|
504
|
+
const headers = {};
|
|
505
|
+
for (const [name, value] of Object.entries(h)) if (value !== void 0) headers[name] = value;
|
|
506
|
+
return headers;
|
|
507
|
+
};
|
|
468
508
|
return customFetch(getCreateRoleUrl(), {
|
|
469
509
|
...options,
|
|
470
510
|
method: "POST",
|
|
471
511
|
headers: {
|
|
472
512
|
"Content-Type": "application/json",
|
|
473
|
-
...options?.headers
|
|
513
|
+
...getHeaders(options?.headers)
|
|
474
514
|
},
|
|
475
515
|
body: JSON.stringify(createRoleRequest)
|
|
476
516
|
});
|
|
477
517
|
};
|
|
518
|
+
const getCreateRoleMutationKey = () => ["createRole"];
|
|
478
519
|
const getCreateRoleMutationOptions = (options) => {
|
|
479
|
-
const mutationKey =
|
|
520
|
+
const mutationKey = getCreateRoleMutationKey();
|
|
480
521
|
const { mutation: mutationOptions, request: requestOptions } = options ? options.mutation && "mutationKey" in options.mutation && options.mutation.mutationKey ? options : {
|
|
481
522
|
...options,
|
|
482
523
|
mutation: {
|
|
@@ -591,8 +632,9 @@ const deleteRole = async (roleId, options) => {
|
|
|
591
632
|
method: "DELETE"
|
|
592
633
|
});
|
|
593
634
|
};
|
|
635
|
+
const getDeleteRoleMutationKey = () => ["deleteRole"];
|
|
594
636
|
const getDeleteRoleMutationOptions = (options) => {
|
|
595
|
-
const mutationKey =
|
|
637
|
+
const mutationKey = getDeleteRoleMutationKey();
|
|
596
638
|
const { mutation: mutationOptions, request: requestOptions } = options ? options.mutation && "mutationKey" in options.mutation && options.mutation.mutationKey ? options : {
|
|
597
639
|
...options,
|
|
598
640
|
mutation: {
|
|
@@ -626,18 +668,27 @@ const getUpdateRoleUrl = (roleId) => {
|
|
|
626
668
|
* @summary Update role
|
|
627
669
|
*/
|
|
628
670
|
const updateRole = async (roleId, updateRoleRequest, options) => {
|
|
671
|
+
const getHeaders = (h) => {
|
|
672
|
+
if (!h) return {};
|
|
673
|
+
if (h instanceof Headers) return Object.fromEntries(h.entries());
|
|
674
|
+
if (Symbol.iterator in h) return Object.fromEntries(Array.from(h, (entry) => Array.from(entry)));
|
|
675
|
+
const headers = {};
|
|
676
|
+
for (const [name, value] of Object.entries(h)) if (value !== void 0) headers[name] = value;
|
|
677
|
+
return headers;
|
|
678
|
+
};
|
|
629
679
|
return customFetch(getUpdateRoleUrl(roleId), {
|
|
630
680
|
...options,
|
|
631
681
|
method: "PATCH",
|
|
632
682
|
headers: {
|
|
633
683
|
"Content-Type": "application/json",
|
|
634
|
-
...options?.headers
|
|
684
|
+
...getHeaders(options?.headers)
|
|
635
685
|
},
|
|
636
686
|
body: JSON.stringify(updateRoleRequest)
|
|
637
687
|
});
|
|
638
688
|
};
|
|
689
|
+
const getUpdateRoleMutationKey = () => ["updateRole"];
|
|
639
690
|
const getUpdateRoleMutationOptions = (options) => {
|
|
640
|
-
const mutationKey =
|
|
691
|
+
const mutationKey = getUpdateRoleMutationKey();
|
|
641
692
|
const { mutation: mutationOptions, request: requestOptions } = options ? options.mutation && "mutationKey" in options.mutation && options.mutation.mutationKey ? options : {
|
|
642
693
|
...options,
|
|
643
694
|
mutation: {
|
|
@@ -709,18 +760,27 @@ const getReplaceRolePermissionsUrl = (roleId) => {
|
|
|
709
760
|
* @summary Replace role permissions
|
|
710
761
|
*/
|
|
711
762
|
const replaceRolePermissions = async (roleId, replaceRolePermissionsRequest, options) => {
|
|
763
|
+
const getHeaders = (h) => {
|
|
764
|
+
if (!h) return {};
|
|
765
|
+
if (h instanceof Headers) return Object.fromEntries(h.entries());
|
|
766
|
+
if (Symbol.iterator in h) return Object.fromEntries(Array.from(h, (entry) => Array.from(entry)));
|
|
767
|
+
const headers = {};
|
|
768
|
+
for (const [name, value] of Object.entries(h)) if (value !== void 0) headers[name] = value;
|
|
769
|
+
return headers;
|
|
770
|
+
};
|
|
712
771
|
return customFetch(getReplaceRolePermissionsUrl(roleId), {
|
|
713
772
|
...options,
|
|
714
773
|
method: "PUT",
|
|
715
774
|
headers: {
|
|
716
775
|
"Content-Type": "application/json",
|
|
717
|
-
...options?.headers
|
|
776
|
+
...getHeaders(options?.headers)
|
|
718
777
|
},
|
|
719
778
|
body: JSON.stringify(replaceRolePermissionsRequest)
|
|
720
779
|
});
|
|
721
780
|
};
|
|
781
|
+
const getReplaceRolePermissionsMutationKey = () => ["replaceRolePermissions"];
|
|
722
782
|
const getReplaceRolePermissionsMutationOptions = (options) => {
|
|
723
|
-
const mutationKey =
|
|
783
|
+
const mutationKey = getReplaceRolePermissionsMutationKey();
|
|
724
784
|
const { mutation: mutationOptions, request: requestOptions } = options ? options.mutation && "mutationKey" in options.mutation && options.mutation.mutationKey ? options : {
|
|
725
785
|
...options,
|
|
726
786
|
mutation: {
|
|
@@ -754,18 +814,27 @@ const getAddRolePermissionUrl = (roleId) => {
|
|
|
754
814
|
* @summary Assign permission to role
|
|
755
815
|
*/
|
|
756
816
|
const addRolePermission = async (roleId, addRolePermissionRequest, options) => {
|
|
817
|
+
const getHeaders = (h) => {
|
|
818
|
+
if (!h) return {};
|
|
819
|
+
if (h instanceof Headers) return Object.fromEntries(h.entries());
|
|
820
|
+
if (Symbol.iterator in h) return Object.fromEntries(Array.from(h, (entry) => Array.from(entry)));
|
|
821
|
+
const headers = {};
|
|
822
|
+
for (const [name, value] of Object.entries(h)) if (value !== void 0) headers[name] = value;
|
|
823
|
+
return headers;
|
|
824
|
+
};
|
|
757
825
|
return customFetch(getAddRolePermissionUrl(roleId), {
|
|
758
826
|
...options,
|
|
759
827
|
method: "POST",
|
|
760
828
|
headers: {
|
|
761
829
|
"Content-Type": "application/json",
|
|
762
|
-
...options?.headers
|
|
830
|
+
...getHeaders(options?.headers)
|
|
763
831
|
},
|
|
764
832
|
body: JSON.stringify(addRolePermissionRequest)
|
|
765
833
|
});
|
|
766
834
|
};
|
|
835
|
+
const getAddRolePermissionMutationKey = () => ["addRolePermission"];
|
|
767
836
|
const getAddRolePermissionMutationOptions = (options) => {
|
|
768
|
-
const mutationKey =
|
|
837
|
+
const mutationKey = getAddRolePermissionMutationKey();
|
|
769
838
|
const { mutation: mutationOptions, request: requestOptions } = options ? options.mutation && "mutationKey" in options.mutation && options.mutation.mutationKey ? options : {
|
|
770
839
|
...options,
|
|
771
840
|
mutation: {
|
|
@@ -804,8 +873,9 @@ const removeRolePermission = async (roleId, permissionId, options) => {
|
|
|
804
873
|
method: "DELETE"
|
|
805
874
|
});
|
|
806
875
|
};
|
|
876
|
+
const getRemoveRolePermissionMutationKey = () => ["removeRolePermission"];
|
|
807
877
|
const getRemoveRolePermissionMutationOptions = (options) => {
|
|
808
|
-
const mutationKey =
|
|
878
|
+
const mutationKey = getRemoveRolePermissionMutationKey();
|
|
809
879
|
const { mutation: mutationOptions, request: requestOptions } = options ? options.mutation && "mutationKey" in options.mutation && options.mutation.mutationKey ? options : {
|
|
810
880
|
...options,
|
|
811
881
|
mutation: {
|
|
@@ -877,18 +947,27 @@ const getCheckUserPermissionsUrl = (userId) => {
|
|
|
877
947
|
* @summary Check user permissions
|
|
878
948
|
*/
|
|
879
949
|
const checkUserPermissions = async (userId, checkUserPermissionsRequest, options) => {
|
|
950
|
+
const getHeaders = (h) => {
|
|
951
|
+
if (!h) return {};
|
|
952
|
+
if (h instanceof Headers) return Object.fromEntries(h.entries());
|
|
953
|
+
if (Symbol.iterator in h) return Object.fromEntries(Array.from(h, (entry) => Array.from(entry)));
|
|
954
|
+
const headers = {};
|
|
955
|
+
for (const [name, value] of Object.entries(h)) if (value !== void 0) headers[name] = value;
|
|
956
|
+
return headers;
|
|
957
|
+
};
|
|
880
958
|
return customFetch(getCheckUserPermissionsUrl(userId), {
|
|
881
959
|
...options,
|
|
882
960
|
method: "POST",
|
|
883
961
|
headers: {
|
|
884
962
|
"Content-Type": "application/json",
|
|
885
|
-
...options?.headers
|
|
963
|
+
...getHeaders(options?.headers)
|
|
886
964
|
},
|
|
887
965
|
body: JSON.stringify(checkUserPermissionsRequest)
|
|
888
966
|
});
|
|
889
967
|
};
|
|
968
|
+
const getCheckUserPermissionsMutationKey = () => ["checkUserPermissions"];
|
|
890
969
|
const getCheckUserPermissionsMutationOptions = (options) => {
|
|
891
|
-
const mutationKey =
|
|
970
|
+
const mutationKey = getCheckUserPermissionsMutationKey();
|
|
892
971
|
const { mutation: mutationOptions, request: requestOptions } = options ? options.mutation && "mutationKey" in options.mutation && options.mutation.mutationKey ? options : {
|
|
893
972
|
...options,
|
|
894
973
|
mutation: {
|
|
@@ -960,18 +1039,27 @@ const getReplaceUserRolesUrl = (userId) => {
|
|
|
960
1039
|
* @summary Replace user roles
|
|
961
1040
|
*/
|
|
962
1041
|
const replaceUserRoles = async (userId, replaceUserRolesRequest, options) => {
|
|
1042
|
+
const getHeaders = (h) => {
|
|
1043
|
+
if (!h) return {};
|
|
1044
|
+
if (h instanceof Headers) return Object.fromEntries(h.entries());
|
|
1045
|
+
if (Symbol.iterator in h) return Object.fromEntries(Array.from(h, (entry) => Array.from(entry)));
|
|
1046
|
+
const headers = {};
|
|
1047
|
+
for (const [name, value] of Object.entries(h)) if (value !== void 0) headers[name] = value;
|
|
1048
|
+
return headers;
|
|
1049
|
+
};
|
|
963
1050
|
return customFetch(getReplaceUserRolesUrl(userId), {
|
|
964
1051
|
...options,
|
|
965
1052
|
method: "PUT",
|
|
966
1053
|
headers: {
|
|
967
1054
|
"Content-Type": "application/json",
|
|
968
|
-
...options?.headers
|
|
1055
|
+
...getHeaders(options?.headers)
|
|
969
1056
|
},
|
|
970
1057
|
body: JSON.stringify(replaceUserRolesRequest)
|
|
971
1058
|
});
|
|
972
1059
|
};
|
|
1060
|
+
const getReplaceUserRolesMutationKey = () => ["replaceUserRoles"];
|
|
973
1061
|
const getReplaceUserRolesMutationOptions = (options) => {
|
|
974
|
-
const mutationKey =
|
|
1062
|
+
const mutationKey = getReplaceUserRolesMutationKey();
|
|
975
1063
|
const { mutation: mutationOptions, request: requestOptions } = options ? options.mutation && "mutationKey" in options.mutation && options.mutation.mutationKey ? options : {
|
|
976
1064
|
...options,
|
|
977
1065
|
mutation: {
|
|
@@ -1005,18 +1093,27 @@ const getAssignUserRoleUrl = (userId) => {
|
|
|
1005
1093
|
* @summary Assign role to user
|
|
1006
1094
|
*/
|
|
1007
1095
|
const assignUserRole = async (userId, assignUserRoleRequest, options) => {
|
|
1096
|
+
const getHeaders = (h) => {
|
|
1097
|
+
if (!h) return {};
|
|
1098
|
+
if (h instanceof Headers) return Object.fromEntries(h.entries());
|
|
1099
|
+
if (Symbol.iterator in h) return Object.fromEntries(Array.from(h, (entry) => Array.from(entry)));
|
|
1100
|
+
const headers = {};
|
|
1101
|
+
for (const [name, value] of Object.entries(h)) if (value !== void 0) headers[name] = value;
|
|
1102
|
+
return headers;
|
|
1103
|
+
};
|
|
1008
1104
|
return customFetch(getAssignUserRoleUrl(userId), {
|
|
1009
1105
|
...options,
|
|
1010
1106
|
method: "POST",
|
|
1011
1107
|
headers: {
|
|
1012
1108
|
"Content-Type": "application/json",
|
|
1013
|
-
...options?.headers
|
|
1109
|
+
...getHeaders(options?.headers)
|
|
1014
1110
|
},
|
|
1015
1111
|
body: JSON.stringify(assignUserRoleRequest)
|
|
1016
1112
|
});
|
|
1017
1113
|
};
|
|
1114
|
+
const getAssignUserRoleMutationKey = () => ["assignUserRole"];
|
|
1018
1115
|
const getAssignUserRoleMutationOptions = (options) => {
|
|
1019
|
-
const mutationKey =
|
|
1116
|
+
const mutationKey = getAssignUserRoleMutationKey();
|
|
1020
1117
|
const { mutation: mutationOptions, request: requestOptions } = options ? options.mutation && "mutationKey" in options.mutation && options.mutation.mutationKey ? options : {
|
|
1021
1118
|
...options,
|
|
1022
1119
|
mutation: {
|
|
@@ -1055,8 +1152,9 @@ const removeUserRole = async (userId, roleId, options) => {
|
|
|
1055
1152
|
method: "DELETE"
|
|
1056
1153
|
});
|
|
1057
1154
|
};
|
|
1155
|
+
const getRemoveUserRoleMutationKey = () => ["removeUserRole"];
|
|
1058
1156
|
const getRemoveUserRoleMutationOptions = (options) => {
|
|
1059
|
-
const mutationKey =
|
|
1157
|
+
const mutationKey = getRemoveUserRoleMutationKey();
|
|
1060
1158
|
const { mutation: mutationOptions, request: requestOptions } = options ? options.mutation && "mutationKey" in options.mutation && options.mutation.mutationKey ? options : {
|
|
1061
1159
|
...options,
|
|
1062
1160
|
mutation: {
|
|
@@ -1096,7 +1194,7 @@ var AccessControlPlugin = class {
|
|
|
1096
1194
|
//#endregion
|
|
1097
1195
|
//#region src/gen/endpoints/admin-accounts/admin-accounts.ts
|
|
1098
1196
|
/**
|
|
1099
|
-
* Generated by orval
|
|
1197
|
+
* Generated by orval 🍺
|
|
1100
1198
|
* Do not edit manually.
|
|
1101
1199
|
* Authula API
|
|
1102
1200
|
* Authula API - An open-source authentication solution that scales with you.
|
|
@@ -1106,8 +1204,10 @@ var admin_accounts_exports = /* @__PURE__ */ __exportAll({
|
|
|
1106
1204
|
createAccount: () => createAccount,
|
|
1107
1205
|
deleteAccount: () => deleteAccount,
|
|
1108
1206
|
getAccount: () => getAccount,
|
|
1207
|
+
getCreateAccountMutationKey: () => getCreateAccountMutationKey,
|
|
1109
1208
|
getCreateAccountMutationOptions: () => getCreateAccountMutationOptions,
|
|
1110
1209
|
getCreateAccountUrl: () => getCreateAccountUrl,
|
|
1210
|
+
getDeleteAccountMutationKey: () => getDeleteAccountMutationKey,
|
|
1111
1211
|
getDeleteAccountMutationOptions: () => getDeleteAccountMutationOptions,
|
|
1112
1212
|
getDeleteAccountUrl: () => getDeleteAccountUrl,
|
|
1113
1213
|
getGetAccountQueryKey: () => getGetAccountQueryKey,
|
|
@@ -1116,6 +1216,7 @@ var admin_accounts_exports = /* @__PURE__ */ __exportAll({
|
|
|
1116
1216
|
getListUserAccountsQueryKey: () => getListUserAccountsQueryKey,
|
|
1117
1217
|
getListUserAccountsQueryOptions: () => getListUserAccountsQueryOptions,
|
|
1118
1218
|
getListUserAccountsUrl: () => getListUserAccountsUrl,
|
|
1219
|
+
getUpdateAccountMutationKey: () => getUpdateAccountMutationKey,
|
|
1119
1220
|
getUpdateAccountMutationOptions: () => getUpdateAccountMutationOptions,
|
|
1120
1221
|
getUpdateAccountUrl: () => getUpdateAccountUrl,
|
|
1121
1222
|
listUserAccounts: () => listUserAccounts,
|
|
@@ -1189,8 +1290,9 @@ const deleteAccount = async (id, options) => {
|
|
|
1189
1290
|
method: "DELETE"
|
|
1190
1291
|
});
|
|
1191
1292
|
};
|
|
1293
|
+
const getDeleteAccountMutationKey = () => ["deleteAccount"];
|
|
1192
1294
|
const getDeleteAccountMutationOptions = (options) => {
|
|
1193
|
-
const mutationKey =
|
|
1295
|
+
const mutationKey = getDeleteAccountMutationKey();
|
|
1194
1296
|
const { mutation: mutationOptions, request: requestOptions } = options ? options.mutation && "mutationKey" in options.mutation && options.mutation.mutationKey ? options : {
|
|
1195
1297
|
...options,
|
|
1196
1298
|
mutation: {
|
|
@@ -1224,18 +1326,27 @@ const getUpdateAccountUrl = (id) => {
|
|
|
1224
1326
|
* @summary Update account
|
|
1225
1327
|
*/
|
|
1226
1328
|
const updateAccount = async (id, updateAccountRequest, options) => {
|
|
1329
|
+
const getHeaders = (h) => {
|
|
1330
|
+
if (!h) return {};
|
|
1331
|
+
if (h instanceof Headers) return Object.fromEntries(h.entries());
|
|
1332
|
+
if (Symbol.iterator in h) return Object.fromEntries(Array.from(h, (entry) => Array.from(entry)));
|
|
1333
|
+
const headers = {};
|
|
1334
|
+
for (const [name, value] of Object.entries(h)) if (value !== void 0) headers[name] = value;
|
|
1335
|
+
return headers;
|
|
1336
|
+
};
|
|
1227
1337
|
return customFetch(getUpdateAccountUrl(id), {
|
|
1228
1338
|
...options,
|
|
1229
1339
|
method: "PATCH",
|
|
1230
1340
|
headers: {
|
|
1231
1341
|
"Content-Type": "application/json",
|
|
1232
|
-
...options?.headers
|
|
1342
|
+
...getHeaders(options?.headers)
|
|
1233
1343
|
},
|
|
1234
1344
|
body: JSON.stringify(updateAccountRequest)
|
|
1235
1345
|
});
|
|
1236
1346
|
};
|
|
1347
|
+
const getUpdateAccountMutationKey = () => ["updateAccount"];
|
|
1237
1348
|
const getUpdateAccountMutationOptions = (options) => {
|
|
1238
|
-
const mutationKey =
|
|
1349
|
+
const mutationKey = getUpdateAccountMutationKey();
|
|
1239
1350
|
const { mutation: mutationOptions, request: requestOptions } = options ? options.mutation && "mutationKey" in options.mutation && options.mutation.mutationKey ? options : {
|
|
1240
1351
|
...options,
|
|
1241
1352
|
mutation: {
|
|
@@ -1307,18 +1418,27 @@ const getCreateAccountUrl = (userId) => {
|
|
|
1307
1418
|
* @summary Create account
|
|
1308
1419
|
*/
|
|
1309
1420
|
const createAccount = async (userId, createAccountRequest, options) => {
|
|
1421
|
+
const getHeaders = (h) => {
|
|
1422
|
+
if (!h) return {};
|
|
1423
|
+
if (h instanceof Headers) return Object.fromEntries(h.entries());
|
|
1424
|
+
if (Symbol.iterator in h) return Object.fromEntries(Array.from(h, (entry) => Array.from(entry)));
|
|
1425
|
+
const headers = {};
|
|
1426
|
+
for (const [name, value] of Object.entries(h)) if (value !== void 0) headers[name] = value;
|
|
1427
|
+
return headers;
|
|
1428
|
+
};
|
|
1310
1429
|
return customFetch(getCreateAccountUrl(userId), {
|
|
1311
1430
|
...options,
|
|
1312
1431
|
method: "POST",
|
|
1313
1432
|
headers: {
|
|
1314
1433
|
"Content-Type": "application/json",
|
|
1315
|
-
...options?.headers
|
|
1434
|
+
...getHeaders(options?.headers)
|
|
1316
1435
|
},
|
|
1317
1436
|
body: JSON.stringify(createAccountRequest)
|
|
1318
1437
|
});
|
|
1319
1438
|
};
|
|
1439
|
+
const getCreateAccountMutationKey = () => ["createAccount"];
|
|
1320
1440
|
const getCreateAccountMutationOptions = (options) => {
|
|
1321
|
-
const mutationKey =
|
|
1441
|
+
const mutationKey = getCreateAccountMutationKey();
|
|
1322
1442
|
const { mutation: mutationOptions, request: requestOptions } = options ? options.mutation && "mutationKey" in options.mutation && options.mutation.mutationKey ? options : {
|
|
1323
1443
|
...options,
|
|
1324
1444
|
mutation: {
|
|
@@ -1348,7 +1468,7 @@ const useCreateAccount = (options, queryClient) => {
|
|
|
1348
1468
|
//#endregion
|
|
1349
1469
|
//#region src/gen/endpoints/admin-impersonation/admin-impersonation.ts
|
|
1350
1470
|
/**
|
|
1351
|
-
* Generated by orval
|
|
1471
|
+
* Generated by orval 🍺
|
|
1352
1472
|
* Do not edit manually.
|
|
1353
1473
|
* Authula API
|
|
1354
1474
|
* Authula API - An open-source authentication solution that scales with you.
|
|
@@ -1362,8 +1482,10 @@ var admin_impersonation_exports = /* @__PURE__ */ __exportAll({
|
|
|
1362
1482
|
getListImpersonationsQueryKey: () => getListImpersonationsQueryKey,
|
|
1363
1483
|
getListImpersonationsQueryOptions: () => getListImpersonationsQueryOptions,
|
|
1364
1484
|
getListImpersonationsUrl: () => getListImpersonationsUrl,
|
|
1485
|
+
getStartImpersonationMutationKey: () => getStartImpersonationMutationKey,
|
|
1365
1486
|
getStartImpersonationMutationOptions: () => getStartImpersonationMutationOptions,
|
|
1366
1487
|
getStartImpersonationUrl: () => getStartImpersonationUrl,
|
|
1488
|
+
getStopImpersonationMutationKey: () => getStopImpersonationMutationKey,
|
|
1367
1489
|
getStopImpersonationMutationOptions: () => getStopImpersonationMutationOptions,
|
|
1368
1490
|
getStopImpersonationUrl: () => getStopImpersonationUrl,
|
|
1369
1491
|
listImpersonations: () => listImpersonations,
|
|
@@ -1431,18 +1553,27 @@ const getStartImpersonationUrl = () => {
|
|
|
1431
1553
|
* @summary Start impersonation
|
|
1432
1554
|
*/
|
|
1433
1555
|
const startImpersonation = async (startImpersonationRequest, options) => {
|
|
1556
|
+
const getHeaders = (h) => {
|
|
1557
|
+
if (!h) return {};
|
|
1558
|
+
if (h instanceof Headers) return Object.fromEntries(h.entries());
|
|
1559
|
+
if (Symbol.iterator in h) return Object.fromEntries(Array.from(h, (entry) => Array.from(entry)));
|
|
1560
|
+
const headers = {};
|
|
1561
|
+
for (const [name, value] of Object.entries(h)) if (value !== void 0) headers[name] = value;
|
|
1562
|
+
return headers;
|
|
1563
|
+
};
|
|
1434
1564
|
return customFetch(getStartImpersonationUrl(), {
|
|
1435
1565
|
...options,
|
|
1436
1566
|
method: "POST",
|
|
1437
1567
|
headers: {
|
|
1438
1568
|
"Content-Type": "application/json",
|
|
1439
|
-
...options?.headers
|
|
1569
|
+
...getHeaders(options?.headers)
|
|
1440
1570
|
},
|
|
1441
1571
|
body: JSON.stringify(startImpersonationRequest)
|
|
1442
1572
|
});
|
|
1443
1573
|
};
|
|
1574
|
+
const getStartImpersonationMutationKey = () => ["startImpersonation"];
|
|
1444
1575
|
const getStartImpersonationMutationOptions = (options) => {
|
|
1445
|
-
const mutationKey =
|
|
1576
|
+
const mutationKey = getStartImpersonationMutationKey();
|
|
1446
1577
|
const { mutation: mutationOptions, request: requestOptions } = options ? options.mutation && "mutationKey" in options.mutation && options.mutation.mutationKey ? options : {
|
|
1447
1578
|
...options,
|
|
1448
1579
|
mutation: {
|
|
@@ -1519,8 +1650,9 @@ const stopImpersonation = async (impersonationId, options) => {
|
|
|
1519
1650
|
method: "POST"
|
|
1520
1651
|
});
|
|
1521
1652
|
};
|
|
1653
|
+
const getStopImpersonationMutationKey = () => ["stopImpersonation"];
|
|
1522
1654
|
const getStopImpersonationMutationOptions = (options) => {
|
|
1523
|
-
const mutationKey =
|
|
1655
|
+
const mutationKey = getStopImpersonationMutationKey();
|
|
1524
1656
|
const { mutation: mutationOptions, request: requestOptions } = options ? options.mutation && "mutationKey" in options.mutation && options.mutation.mutationKey ? options : {
|
|
1525
1657
|
...options,
|
|
1526
1658
|
mutation: {
|
|
@@ -1550,7 +1682,7 @@ const useStopImpersonation = (options, queryClient) => {
|
|
|
1550
1682
|
//#endregion
|
|
1551
1683
|
//#region src/gen/endpoints/admin-session-state/admin-session-state.ts
|
|
1552
1684
|
/**
|
|
1553
|
-
* Generated by orval
|
|
1685
|
+
* Generated by orval 🍺
|
|
1554
1686
|
* Do not edit manually.
|
|
1555
1687
|
* Authula API
|
|
1556
1688
|
* Authula API - An open-source authentication solution that scales with you.
|
|
@@ -1559,8 +1691,10 @@ const useStopImpersonation = (options, queryClient) => {
|
|
|
1559
1691
|
var admin_session_state_exports = /* @__PURE__ */ __exportAll({
|
|
1560
1692
|
createSessionState: () => createSessionState,
|
|
1561
1693
|
deleteSessionState: () => deleteSessionState,
|
|
1694
|
+
getCreateSessionStateMutationKey: () => getCreateSessionStateMutationKey,
|
|
1562
1695
|
getCreateSessionStateMutationOptions: () => getCreateSessionStateMutationOptions,
|
|
1563
1696
|
getCreateSessionStateUrl: () => getCreateSessionStateUrl,
|
|
1697
|
+
getDeleteSessionStateMutationKey: () => getDeleteSessionStateMutationKey,
|
|
1564
1698
|
getDeleteSessionStateMutationOptions: () => getDeleteSessionStateMutationOptions,
|
|
1565
1699
|
getDeleteSessionStateUrl: () => getDeleteSessionStateUrl,
|
|
1566
1700
|
getGetSessionStateQueryKey: () => getGetSessionStateQueryKey,
|
|
@@ -1569,9 +1703,11 @@ var admin_session_state_exports = /* @__PURE__ */ __exportAll({
|
|
|
1569
1703
|
getListRevokedSessionStatesQueryKey: () => getListRevokedSessionStatesQueryKey,
|
|
1570
1704
|
getListRevokedSessionStatesQueryOptions: () => getListRevokedSessionStatesQueryOptions,
|
|
1571
1705
|
getListRevokedSessionStatesUrl: () => getListRevokedSessionStatesUrl,
|
|
1706
|
+
getRevokeSessionMutationKey: () => getRevokeSessionMutationKey,
|
|
1572
1707
|
getRevokeSessionMutationOptions: () => getRevokeSessionMutationOptions,
|
|
1573
1708
|
getRevokeSessionUrl: () => getRevokeSessionUrl,
|
|
1574
1709
|
getSessionState: () => getSessionState,
|
|
1710
|
+
getUpdateSessionStateMutationKey: () => getUpdateSessionStateMutationKey,
|
|
1575
1711
|
getUpdateSessionStateMutationOptions: () => getUpdateSessionStateMutationOptions,
|
|
1576
1712
|
getUpdateSessionStateUrl: () => getUpdateSessionStateUrl,
|
|
1577
1713
|
listRevokedSessionStates: () => listRevokedSessionStates,
|
|
@@ -1641,18 +1777,27 @@ const getRevokeSessionUrl = (sessionId) => {
|
|
|
1641
1777
|
* @summary Revoke session
|
|
1642
1778
|
*/
|
|
1643
1779
|
const revokeSession = async (sessionId, revokeSessionRequest, options) => {
|
|
1780
|
+
const getHeaders = (h) => {
|
|
1781
|
+
if (!h) return {};
|
|
1782
|
+
if (h instanceof Headers) return Object.fromEntries(h.entries());
|
|
1783
|
+
if (Symbol.iterator in h) return Object.fromEntries(Array.from(h, (entry) => Array.from(entry)));
|
|
1784
|
+
const headers = {};
|
|
1785
|
+
for (const [name, value] of Object.entries(h)) if (value !== void 0) headers[name] = value;
|
|
1786
|
+
return headers;
|
|
1787
|
+
};
|
|
1644
1788
|
return customFetch(getRevokeSessionUrl(sessionId), {
|
|
1645
1789
|
...options,
|
|
1646
1790
|
method: "POST",
|
|
1647
1791
|
headers: {
|
|
1648
1792
|
"Content-Type": "application/json",
|
|
1649
|
-
...options?.headers
|
|
1793
|
+
...getHeaders(options?.headers)
|
|
1650
1794
|
},
|
|
1651
1795
|
body: JSON.stringify(revokeSessionRequest)
|
|
1652
1796
|
});
|
|
1653
1797
|
};
|
|
1798
|
+
const getRevokeSessionMutationKey = () => ["revokeSession"];
|
|
1654
1799
|
const getRevokeSessionMutationOptions = (options) => {
|
|
1655
|
-
const mutationKey =
|
|
1800
|
+
const mutationKey = getRevokeSessionMutationKey();
|
|
1656
1801
|
const { mutation: mutationOptions, request: requestOptions } = options ? options.mutation && "mutationKey" in options.mutation && options.mutation.mutationKey ? options : {
|
|
1657
1802
|
...options,
|
|
1658
1803
|
mutation: {
|
|
@@ -1724,18 +1869,27 @@ const getCreateSessionStateUrl = (sessionId) => {
|
|
|
1724
1869
|
* @summary Create session state
|
|
1725
1870
|
*/
|
|
1726
1871
|
const createSessionState = async (sessionId, createSessionStateRequest, options) => {
|
|
1872
|
+
const getHeaders = (h) => {
|
|
1873
|
+
if (!h) return {};
|
|
1874
|
+
if (h instanceof Headers) return Object.fromEntries(h.entries());
|
|
1875
|
+
if (Symbol.iterator in h) return Object.fromEntries(Array.from(h, (entry) => Array.from(entry)));
|
|
1876
|
+
const headers = {};
|
|
1877
|
+
for (const [name, value] of Object.entries(h)) if (value !== void 0) headers[name] = value;
|
|
1878
|
+
return headers;
|
|
1879
|
+
};
|
|
1727
1880
|
return customFetch(getCreateSessionStateUrl(sessionId), {
|
|
1728
1881
|
...options,
|
|
1729
1882
|
method: "POST",
|
|
1730
1883
|
headers: {
|
|
1731
1884
|
"Content-Type": "application/json",
|
|
1732
|
-
...options?.headers
|
|
1885
|
+
...getHeaders(options?.headers)
|
|
1733
1886
|
},
|
|
1734
1887
|
body: JSON.stringify(createSessionStateRequest)
|
|
1735
1888
|
});
|
|
1736
1889
|
};
|
|
1890
|
+
const getCreateSessionStateMutationKey = () => ["createSessionState"];
|
|
1737
1891
|
const getCreateSessionStateMutationOptions = (options) => {
|
|
1738
|
-
const mutationKey =
|
|
1892
|
+
const mutationKey = getCreateSessionStateMutationKey();
|
|
1739
1893
|
const { mutation: mutationOptions, request: requestOptions } = options ? options.mutation && "mutationKey" in options.mutation && options.mutation.mutationKey ? options : {
|
|
1740
1894
|
...options,
|
|
1741
1895
|
mutation: {
|
|
@@ -1774,8 +1928,9 @@ const deleteSessionState = async (sessionId, options) => {
|
|
|
1774
1928
|
method: "DELETE"
|
|
1775
1929
|
});
|
|
1776
1930
|
};
|
|
1931
|
+
const getDeleteSessionStateMutationKey = () => ["deleteSessionState"];
|
|
1777
1932
|
const getDeleteSessionStateMutationOptions = (options) => {
|
|
1778
|
-
const mutationKey =
|
|
1933
|
+
const mutationKey = getDeleteSessionStateMutationKey();
|
|
1779
1934
|
const { mutation: mutationOptions, request: requestOptions } = options ? options.mutation && "mutationKey" in options.mutation && options.mutation.mutationKey ? options : {
|
|
1780
1935
|
...options,
|
|
1781
1936
|
mutation: {
|
|
@@ -1809,18 +1964,27 @@ const getUpdateSessionStateUrl = (sessionId) => {
|
|
|
1809
1964
|
* @summary Update session state
|
|
1810
1965
|
*/
|
|
1811
1966
|
const updateSessionState = async (sessionId, upsertSessionStateRequest, options) => {
|
|
1967
|
+
const getHeaders = (h) => {
|
|
1968
|
+
if (!h) return {};
|
|
1969
|
+
if (h instanceof Headers) return Object.fromEntries(h.entries());
|
|
1970
|
+
if (Symbol.iterator in h) return Object.fromEntries(Array.from(h, (entry) => Array.from(entry)));
|
|
1971
|
+
const headers = {};
|
|
1972
|
+
for (const [name, value] of Object.entries(h)) if (value !== void 0) headers[name] = value;
|
|
1973
|
+
return headers;
|
|
1974
|
+
};
|
|
1812
1975
|
return customFetch(getUpdateSessionStateUrl(sessionId), {
|
|
1813
1976
|
...options,
|
|
1814
1977
|
method: "PATCH",
|
|
1815
1978
|
headers: {
|
|
1816
1979
|
"Content-Type": "application/json",
|
|
1817
|
-
...options?.headers
|
|
1980
|
+
...getHeaders(options?.headers)
|
|
1818
1981
|
},
|
|
1819
1982
|
body: JSON.stringify(upsertSessionStateRequest)
|
|
1820
1983
|
});
|
|
1821
1984
|
};
|
|
1985
|
+
const getUpdateSessionStateMutationKey = () => ["updateSessionState"];
|
|
1822
1986
|
const getUpdateSessionStateMutationOptions = (options) => {
|
|
1823
|
-
const mutationKey =
|
|
1987
|
+
const mutationKey = getUpdateSessionStateMutationKey();
|
|
1824
1988
|
const { mutation: mutationOptions, request: requestOptions } = options ? options.mutation && "mutationKey" in options.mutation && options.mutation.mutationKey ? options : {
|
|
1825
1989
|
...options,
|
|
1826
1990
|
mutation: {
|
|
@@ -1850,7 +2014,7 @@ const useUpdateSessionState = (options, queryClient) => {
|
|
|
1850
2014
|
//#endregion
|
|
1851
2015
|
//#region src/gen/endpoints/admin-user-state/admin-user-state.ts
|
|
1852
2016
|
/**
|
|
1853
|
-
* Generated by orval
|
|
2017
|
+
* Generated by orval 🍺
|
|
1854
2018
|
* Do not edit manually.
|
|
1855
2019
|
* Authula API
|
|
1856
2020
|
* Authula API - An open-source authentication solution that scales with you.
|
|
@@ -1860,10 +2024,13 @@ var admin_user_state_exports = /* @__PURE__ */ __exportAll({
|
|
|
1860
2024
|
banUser: () => banUser,
|
|
1861
2025
|
createUserState: () => createUserState,
|
|
1862
2026
|
deleteUserState: () => deleteUserState,
|
|
2027
|
+
getBanUserMutationKey: () => getBanUserMutationKey,
|
|
1863
2028
|
getBanUserMutationOptions: () => getBanUserMutationOptions,
|
|
1864
2029
|
getBanUserUrl: () => getBanUserUrl,
|
|
2030
|
+
getCreateUserStateMutationKey: () => getCreateUserStateMutationKey,
|
|
1865
2031
|
getCreateUserStateMutationOptions: () => getCreateUserStateMutationOptions,
|
|
1866
2032
|
getCreateUserStateUrl: () => getCreateUserStateUrl,
|
|
2033
|
+
getDeleteUserStateMutationKey: () => getDeleteUserStateMutationKey,
|
|
1867
2034
|
getDeleteUserStateMutationOptions: () => getDeleteUserStateMutationOptions,
|
|
1868
2035
|
getDeleteUserStateUrl: () => getDeleteUserStateUrl,
|
|
1869
2036
|
getGetUserStateQueryKey: () => getGetUserStateQueryKey,
|
|
@@ -1875,8 +2042,10 @@ var admin_user_state_exports = /* @__PURE__ */ __exportAll({
|
|
|
1875
2042
|
getListUserSessionsQueryKey: () => getListUserSessionsQueryKey,
|
|
1876
2043
|
getListUserSessionsQueryOptions: () => getListUserSessionsQueryOptions,
|
|
1877
2044
|
getListUserSessionsUrl: () => getListUserSessionsUrl,
|
|
2045
|
+
getUnbanUserMutationKey: () => getUnbanUserMutationKey,
|
|
1878
2046
|
getUnbanUserMutationOptions: () => getUnbanUserMutationOptions,
|
|
1879
2047
|
getUnbanUserUrl: () => getUnbanUserUrl,
|
|
2048
|
+
getUpdateUserStateMutationKey: () => getUpdateUserStateMutationKey,
|
|
1880
2049
|
getUpdateUserStateMutationOptions: () => getUpdateUserStateMutationOptions,
|
|
1881
2050
|
getUpdateUserStateUrl: () => getUpdateUserStateUrl,
|
|
1882
2051
|
getUserState: () => getUserState,
|
|
@@ -1950,18 +2119,27 @@ const getBanUserUrl = (userId) => {
|
|
|
1950
2119
|
* @summary Ban user
|
|
1951
2120
|
*/
|
|
1952
2121
|
const banUser = async (userId, banUserRequest, options) => {
|
|
2122
|
+
const getHeaders = (h) => {
|
|
2123
|
+
if (!h) return {};
|
|
2124
|
+
if (h instanceof Headers) return Object.fromEntries(h.entries());
|
|
2125
|
+
if (Symbol.iterator in h) return Object.fromEntries(Array.from(h, (entry) => Array.from(entry)));
|
|
2126
|
+
const headers = {};
|
|
2127
|
+
for (const [name, value] of Object.entries(h)) if (value !== void 0) headers[name] = value;
|
|
2128
|
+
return headers;
|
|
2129
|
+
};
|
|
1953
2130
|
return customFetch(getBanUserUrl(userId), {
|
|
1954
2131
|
...options,
|
|
1955
2132
|
method: "POST",
|
|
1956
2133
|
headers: {
|
|
1957
2134
|
"Content-Type": "application/json",
|
|
1958
|
-
...options?.headers
|
|
2135
|
+
...getHeaders(options?.headers)
|
|
1959
2136
|
},
|
|
1960
2137
|
body: JSON.stringify(banUserRequest)
|
|
1961
2138
|
});
|
|
1962
2139
|
};
|
|
2140
|
+
const getBanUserMutationKey = () => ["banUser"];
|
|
1963
2141
|
const getBanUserMutationOptions = (options) => {
|
|
1964
|
-
const mutationKey =
|
|
2142
|
+
const mutationKey = getBanUserMutationKey();
|
|
1965
2143
|
const { mutation: mutationOptions, request: requestOptions } = options ? options.mutation && "mutationKey" in options.mutation && options.mutation.mutationKey ? options : {
|
|
1966
2144
|
...options,
|
|
1967
2145
|
mutation: {
|
|
@@ -2071,18 +2249,27 @@ const getCreateUserStateUrl = (userId) => {
|
|
|
2071
2249
|
* @summary Create user state
|
|
2072
2250
|
*/
|
|
2073
2251
|
const createUserState = async (userId, createUserStateRequest, options) => {
|
|
2252
|
+
const getHeaders = (h) => {
|
|
2253
|
+
if (!h) return {};
|
|
2254
|
+
if (h instanceof Headers) return Object.fromEntries(h.entries());
|
|
2255
|
+
if (Symbol.iterator in h) return Object.fromEntries(Array.from(h, (entry) => Array.from(entry)));
|
|
2256
|
+
const headers = {};
|
|
2257
|
+
for (const [name, value] of Object.entries(h)) if (value !== void 0) headers[name] = value;
|
|
2258
|
+
return headers;
|
|
2259
|
+
};
|
|
2074
2260
|
return customFetch(getCreateUserStateUrl(userId), {
|
|
2075
2261
|
...options,
|
|
2076
2262
|
method: "POST",
|
|
2077
2263
|
headers: {
|
|
2078
2264
|
"Content-Type": "application/json",
|
|
2079
|
-
...options?.headers
|
|
2265
|
+
...getHeaders(options?.headers)
|
|
2080
2266
|
},
|
|
2081
2267
|
body: JSON.stringify(createUserStateRequest)
|
|
2082
2268
|
});
|
|
2083
2269
|
};
|
|
2270
|
+
const getCreateUserStateMutationKey = () => ["createUserState"];
|
|
2084
2271
|
const getCreateUserStateMutationOptions = (options) => {
|
|
2085
|
-
const mutationKey =
|
|
2272
|
+
const mutationKey = getCreateUserStateMutationKey();
|
|
2086
2273
|
const { mutation: mutationOptions, request: requestOptions } = options ? options.mutation && "mutationKey" in options.mutation && options.mutation.mutationKey ? options : {
|
|
2087
2274
|
...options,
|
|
2088
2275
|
mutation: {
|
|
@@ -2121,8 +2308,9 @@ const deleteUserState = async (userId, options) => {
|
|
|
2121
2308
|
method: "DELETE"
|
|
2122
2309
|
});
|
|
2123
2310
|
};
|
|
2311
|
+
const getDeleteUserStateMutationKey = () => ["deleteUserState"];
|
|
2124
2312
|
const getDeleteUserStateMutationOptions = (options) => {
|
|
2125
|
-
const mutationKey =
|
|
2313
|
+
const mutationKey = getDeleteUserStateMutationKey();
|
|
2126
2314
|
const { mutation: mutationOptions, request: requestOptions } = options ? options.mutation && "mutationKey" in options.mutation && options.mutation.mutationKey ? options : {
|
|
2127
2315
|
...options,
|
|
2128
2316
|
mutation: {
|
|
@@ -2156,18 +2344,27 @@ const getUpdateUserStateUrl = (userId) => {
|
|
|
2156
2344
|
* @summary Update user state
|
|
2157
2345
|
*/
|
|
2158
2346
|
const updateUserState = async (userId, upsertUserStateRequest, options) => {
|
|
2347
|
+
const getHeaders = (h) => {
|
|
2348
|
+
if (!h) return {};
|
|
2349
|
+
if (h instanceof Headers) return Object.fromEntries(h.entries());
|
|
2350
|
+
if (Symbol.iterator in h) return Object.fromEntries(Array.from(h, (entry) => Array.from(entry)));
|
|
2351
|
+
const headers = {};
|
|
2352
|
+
for (const [name, value] of Object.entries(h)) if (value !== void 0) headers[name] = value;
|
|
2353
|
+
return headers;
|
|
2354
|
+
};
|
|
2159
2355
|
return customFetch(getUpdateUserStateUrl(userId), {
|
|
2160
2356
|
...options,
|
|
2161
2357
|
method: "PATCH",
|
|
2162
2358
|
headers: {
|
|
2163
2359
|
"Content-Type": "application/json",
|
|
2164
|
-
...options?.headers
|
|
2360
|
+
...getHeaders(options?.headers)
|
|
2165
2361
|
},
|
|
2166
2362
|
body: JSON.stringify(upsertUserStateRequest)
|
|
2167
2363
|
});
|
|
2168
2364
|
};
|
|
2365
|
+
const getUpdateUserStateMutationKey = () => ["updateUserState"];
|
|
2169
2366
|
const getUpdateUserStateMutationOptions = (options) => {
|
|
2170
|
-
const mutationKey =
|
|
2367
|
+
const mutationKey = getUpdateUserStateMutationKey();
|
|
2171
2368
|
const { mutation: mutationOptions, request: requestOptions } = options ? options.mutation && "mutationKey" in options.mutation && options.mutation.mutationKey ? options : {
|
|
2172
2369
|
...options,
|
|
2173
2370
|
mutation: {
|
|
@@ -2206,8 +2403,9 @@ const unbanUser = async (userId, options) => {
|
|
|
2206
2403
|
method: "POST"
|
|
2207
2404
|
});
|
|
2208
2405
|
};
|
|
2406
|
+
const getUnbanUserMutationKey = () => ["unbanUser"];
|
|
2209
2407
|
const getUnbanUserMutationOptions = (options) => {
|
|
2210
|
-
const mutationKey =
|
|
2408
|
+
const mutationKey = getUnbanUserMutationKey();
|
|
2211
2409
|
const { mutation: mutationOptions, request: requestOptions } = options ? options.mutation && "mutationKey" in options.mutation && options.mutation.mutationKey ? options : {
|
|
2212
2410
|
...options,
|
|
2213
2411
|
mutation: {
|
|
@@ -2237,7 +2435,7 @@ const useUnbanUser = (options, queryClient) => {
|
|
|
2237
2435
|
//#endregion
|
|
2238
2436
|
//#region src/gen/endpoints/admin-users/admin-users.ts
|
|
2239
2437
|
/**
|
|
2240
|
-
* Generated by orval
|
|
2438
|
+
* Generated by orval 🍺
|
|
2241
2439
|
* Do not edit manually.
|
|
2242
2440
|
* Authula API
|
|
2243
2441
|
* Authula API - An open-source authentication solution that scales with you.
|
|
@@ -2246,8 +2444,10 @@ const useUnbanUser = (options, queryClient) => {
|
|
|
2246
2444
|
var admin_users_exports = /* @__PURE__ */ __exportAll({
|
|
2247
2445
|
createUser: () => createUser,
|
|
2248
2446
|
deleteUser: () => deleteUser,
|
|
2447
|
+
getCreateUserMutationKey: () => getCreateUserMutationKey,
|
|
2249
2448
|
getCreateUserMutationOptions: () => getCreateUserMutationOptions,
|
|
2250
2449
|
getCreateUserUrl: () => getCreateUserUrl,
|
|
2450
|
+
getDeleteUserMutationKey: () => getDeleteUserMutationKey,
|
|
2251
2451
|
getDeleteUserMutationOptions: () => getDeleteUserMutationOptions,
|
|
2252
2452
|
getDeleteUserUrl: () => getDeleteUserUrl,
|
|
2253
2453
|
getGetUserQueryKey: () => getGetUserQueryKey,
|
|
@@ -2256,6 +2456,7 @@ var admin_users_exports = /* @__PURE__ */ __exportAll({
|
|
|
2256
2456
|
getListUsersQueryKey: () => getListUsersQueryKey,
|
|
2257
2457
|
getListUsersQueryOptions: () => getListUsersQueryOptions,
|
|
2258
2458
|
getListUsersUrl: () => getListUsersUrl,
|
|
2459
|
+
getUpdateUserMutationKey: () => getUpdateUserMutationKey,
|
|
2259
2460
|
getUpdateUserMutationOptions: () => getUpdateUserMutationOptions,
|
|
2260
2461
|
getUpdateUserUrl: () => getUpdateUserUrl,
|
|
2261
2462
|
getUser: () => getUser,
|
|
@@ -2329,18 +2530,27 @@ const getCreateUserUrl = () => {
|
|
|
2329
2530
|
* @summary Create user
|
|
2330
2531
|
*/
|
|
2331
2532
|
const createUser = async (createUserRequest, options) => {
|
|
2533
|
+
const getHeaders = (h) => {
|
|
2534
|
+
if (!h) return {};
|
|
2535
|
+
if (h instanceof Headers) return Object.fromEntries(h.entries());
|
|
2536
|
+
if (Symbol.iterator in h) return Object.fromEntries(Array.from(h, (entry) => Array.from(entry)));
|
|
2537
|
+
const headers = {};
|
|
2538
|
+
for (const [name, value] of Object.entries(h)) if (value !== void 0) headers[name] = value;
|
|
2539
|
+
return headers;
|
|
2540
|
+
};
|
|
2332
2541
|
return customFetch(getCreateUserUrl(), {
|
|
2333
2542
|
...options,
|
|
2334
2543
|
method: "POST",
|
|
2335
2544
|
headers: {
|
|
2336
2545
|
"Content-Type": "application/json",
|
|
2337
|
-
...options?.headers
|
|
2546
|
+
...getHeaders(options?.headers)
|
|
2338
2547
|
},
|
|
2339
2548
|
body: JSON.stringify(createUserRequest)
|
|
2340
2549
|
});
|
|
2341
2550
|
};
|
|
2551
|
+
const getCreateUserMutationKey = () => ["createUser"];
|
|
2342
2552
|
const getCreateUserMutationOptions = (options) => {
|
|
2343
|
-
const mutationKey =
|
|
2553
|
+
const mutationKey = getCreateUserMutationKey();
|
|
2344
2554
|
const { mutation: mutationOptions, request: requestOptions } = options ? options.mutation && "mutationKey" in options.mutation && options.mutation.mutationKey ? options : {
|
|
2345
2555
|
...options,
|
|
2346
2556
|
mutation: {
|
|
@@ -2417,8 +2627,9 @@ const deleteUser = async (userId, options) => {
|
|
|
2417
2627
|
method: "DELETE"
|
|
2418
2628
|
});
|
|
2419
2629
|
};
|
|
2630
|
+
const getDeleteUserMutationKey = () => ["deleteUser"];
|
|
2420
2631
|
const getDeleteUserMutationOptions = (options) => {
|
|
2421
|
-
const mutationKey =
|
|
2632
|
+
const mutationKey = getDeleteUserMutationKey();
|
|
2422
2633
|
const { mutation: mutationOptions, request: requestOptions } = options ? options.mutation && "mutationKey" in options.mutation && options.mutation.mutationKey ? options : {
|
|
2423
2634
|
...options,
|
|
2424
2635
|
mutation: {
|
|
@@ -2452,18 +2663,27 @@ const getUpdateUserUrl = (userId) => {
|
|
|
2452
2663
|
* @summary Update user
|
|
2453
2664
|
*/
|
|
2454
2665
|
const updateUser = async (userId, updateUserRequest, options) => {
|
|
2666
|
+
const getHeaders = (h) => {
|
|
2667
|
+
if (!h) return {};
|
|
2668
|
+
if (h instanceof Headers) return Object.fromEntries(h.entries());
|
|
2669
|
+
if (Symbol.iterator in h) return Object.fromEntries(Array.from(h, (entry) => Array.from(entry)));
|
|
2670
|
+
const headers = {};
|
|
2671
|
+
for (const [name, value] of Object.entries(h)) if (value !== void 0) headers[name] = value;
|
|
2672
|
+
return headers;
|
|
2673
|
+
};
|
|
2455
2674
|
return customFetch(getUpdateUserUrl(userId), {
|
|
2456
2675
|
...options,
|
|
2457
2676
|
method: "PATCH",
|
|
2458
2677
|
headers: {
|
|
2459
2678
|
"Content-Type": "application/json",
|
|
2460
|
-
...options?.headers
|
|
2679
|
+
...getHeaders(options?.headers)
|
|
2461
2680
|
},
|
|
2462
2681
|
body: JSON.stringify(updateUserRequest)
|
|
2463
2682
|
});
|
|
2464
2683
|
};
|
|
2684
|
+
const getUpdateUserMutationKey = () => ["updateUser"];
|
|
2465
2685
|
const getUpdateUserMutationOptions = (options) => {
|
|
2466
|
-
const mutationKey =
|
|
2686
|
+
const mutationKey = getUpdateUserMutationKey();
|
|
2467
2687
|
const { mutation: mutationOptions, request: requestOptions } = options ? options.mutation && "mutationKey" in options.mutation && options.mutation.mutationKey ? options : {
|
|
2468
2688
|
...options,
|
|
2469
2689
|
mutation: {
|
|
@@ -2509,7 +2729,7 @@ var AdminPlugin = class {
|
|
|
2509
2729
|
//#endregion
|
|
2510
2730
|
//#region src/gen/endpoints/api-keys/api-keys.ts
|
|
2511
2731
|
/**
|
|
2512
|
-
* Generated by orval
|
|
2732
|
+
* Generated by orval 🍺
|
|
2513
2733
|
* Do not edit manually.
|
|
2514
2734
|
* Authula API
|
|
2515
2735
|
* Authula API - An open-source authentication solution that scales with you.
|
|
@@ -2519,8 +2739,10 @@ var api_keys_exports = /* @__PURE__ */ __exportAll({
|
|
|
2519
2739
|
createApiKey: () => createApiKey,
|
|
2520
2740
|
deleteApiKey: () => deleteApiKey,
|
|
2521
2741
|
getApiKey: () => getApiKey,
|
|
2742
|
+
getCreateApiKeyMutationKey: () => getCreateApiKeyMutationKey,
|
|
2522
2743
|
getCreateApiKeyMutationOptions: () => getCreateApiKeyMutationOptions,
|
|
2523
2744
|
getCreateApiKeyUrl: () => getCreateApiKeyUrl,
|
|
2745
|
+
getDeleteApiKeyMutationKey: () => getDeleteApiKeyMutationKey,
|
|
2524
2746
|
getDeleteApiKeyMutationOptions: () => getDeleteApiKeyMutationOptions,
|
|
2525
2747
|
getDeleteApiKeyUrl: () => getDeleteApiKeyUrl,
|
|
2526
2748
|
getGetApiKeyQueryKey: () => getGetApiKeyQueryKey,
|
|
@@ -2529,8 +2751,10 @@ var api_keys_exports = /* @__PURE__ */ __exportAll({
|
|
|
2529
2751
|
getListApiKeysQueryKey: () => getListApiKeysQueryKey,
|
|
2530
2752
|
getListApiKeysQueryOptions: () => getListApiKeysQueryOptions,
|
|
2531
2753
|
getListApiKeysUrl: () => getListApiKeysUrl,
|
|
2754
|
+
getUpdateApiKeyMutationKey: () => getUpdateApiKeyMutationKey,
|
|
2532
2755
|
getUpdateApiKeyMutationOptions: () => getUpdateApiKeyMutationOptions,
|
|
2533
2756
|
getUpdateApiKeyUrl: () => getUpdateApiKeyUrl,
|
|
2757
|
+
getVerifyApiKeyMutationKey: () => getVerifyApiKeyMutationKey,
|
|
2534
2758
|
getVerifyApiKeyMutationOptions: () => getVerifyApiKeyMutationOptions,
|
|
2535
2759
|
getVerifyApiKeyUrl: () => getVerifyApiKeyUrl,
|
|
2536
2760
|
listApiKeys: () => listApiKeys,
|
|
@@ -2605,18 +2829,27 @@ const getCreateApiKeyUrl = () => {
|
|
|
2605
2829
|
* @summary Create API key
|
|
2606
2830
|
*/
|
|
2607
2831
|
const createApiKey = async (createApiKeyRequest, options) => {
|
|
2832
|
+
const getHeaders = (h) => {
|
|
2833
|
+
if (!h) return {};
|
|
2834
|
+
if (h instanceof Headers) return Object.fromEntries(h.entries());
|
|
2835
|
+
if (Symbol.iterator in h) return Object.fromEntries(Array.from(h, (entry) => Array.from(entry)));
|
|
2836
|
+
const headers = {};
|
|
2837
|
+
for (const [name, value] of Object.entries(h)) if (value !== void 0) headers[name] = value;
|
|
2838
|
+
return headers;
|
|
2839
|
+
};
|
|
2608
2840
|
return customFetch(getCreateApiKeyUrl(), {
|
|
2609
2841
|
...options,
|
|
2610
2842
|
method: "POST",
|
|
2611
2843
|
headers: {
|
|
2612
2844
|
"Content-Type": "application/json",
|
|
2613
|
-
...options?.headers
|
|
2845
|
+
...getHeaders(options?.headers)
|
|
2614
2846
|
},
|
|
2615
2847
|
body: JSON.stringify(createApiKeyRequest)
|
|
2616
2848
|
});
|
|
2617
2849
|
};
|
|
2850
|
+
const getCreateApiKeyMutationKey = () => ["createApiKey"];
|
|
2618
2851
|
const getCreateApiKeyMutationOptions = (options) => {
|
|
2619
|
-
const mutationKey =
|
|
2852
|
+
const mutationKey = getCreateApiKeyMutationKey();
|
|
2620
2853
|
const { mutation: mutationOptions, request: requestOptions } = options ? options.mutation && "mutationKey" in options.mutation && options.mutation.mutationKey ? options : {
|
|
2621
2854
|
...options,
|
|
2622
2855
|
mutation: {
|
|
@@ -2650,18 +2883,27 @@ const getVerifyApiKeyUrl = () => {
|
|
|
2650
2883
|
* @summary Verify API key
|
|
2651
2884
|
*/
|
|
2652
2885
|
const verifyApiKey = async (verifyApiKeyRequest, options) => {
|
|
2886
|
+
const getHeaders = (h) => {
|
|
2887
|
+
if (!h) return {};
|
|
2888
|
+
if (h instanceof Headers) return Object.fromEntries(h.entries());
|
|
2889
|
+
if (Symbol.iterator in h) return Object.fromEntries(Array.from(h, (entry) => Array.from(entry)));
|
|
2890
|
+
const headers = {};
|
|
2891
|
+
for (const [name, value] of Object.entries(h)) if (value !== void 0) headers[name] = value;
|
|
2892
|
+
return headers;
|
|
2893
|
+
};
|
|
2653
2894
|
return customFetch(getVerifyApiKeyUrl(), {
|
|
2654
2895
|
...options,
|
|
2655
2896
|
method: "POST",
|
|
2656
2897
|
headers: {
|
|
2657
2898
|
"Content-Type": "application/json",
|
|
2658
|
-
...options?.headers
|
|
2899
|
+
...getHeaders(options?.headers)
|
|
2659
2900
|
},
|
|
2660
2901
|
body: JSON.stringify(verifyApiKeyRequest)
|
|
2661
2902
|
});
|
|
2662
2903
|
};
|
|
2904
|
+
const getVerifyApiKeyMutationKey = () => ["verifyApiKey"];
|
|
2663
2905
|
const getVerifyApiKeyMutationOptions = (options) => {
|
|
2664
|
-
const mutationKey =
|
|
2906
|
+
const mutationKey = getVerifyApiKeyMutationKey();
|
|
2665
2907
|
const { mutation: mutationOptions, request: requestOptions } = options ? options.mutation && "mutationKey" in options.mutation && options.mutation.mutationKey ? options : {
|
|
2666
2908
|
...options,
|
|
2667
2909
|
mutation: {
|
|
@@ -2738,8 +2980,9 @@ const deleteApiKey = async (id, options) => {
|
|
|
2738
2980
|
method: "DELETE"
|
|
2739
2981
|
});
|
|
2740
2982
|
};
|
|
2983
|
+
const getDeleteApiKeyMutationKey = () => ["deleteApiKey"];
|
|
2741
2984
|
const getDeleteApiKeyMutationOptions = (options) => {
|
|
2742
|
-
const mutationKey =
|
|
2985
|
+
const mutationKey = getDeleteApiKeyMutationKey();
|
|
2743
2986
|
const { mutation: mutationOptions, request: requestOptions } = options ? options.mutation && "mutationKey" in options.mutation && options.mutation.mutationKey ? options : {
|
|
2744
2987
|
...options,
|
|
2745
2988
|
mutation: {
|
|
@@ -2773,18 +3016,27 @@ const getUpdateApiKeyUrl = (id) => {
|
|
|
2773
3016
|
* @summary Update API key
|
|
2774
3017
|
*/
|
|
2775
3018
|
const updateApiKey = async (id, updateApiKeyRequest, options) => {
|
|
3019
|
+
const getHeaders = (h) => {
|
|
3020
|
+
if (!h) return {};
|
|
3021
|
+
if (h instanceof Headers) return Object.fromEntries(h.entries());
|
|
3022
|
+
if (Symbol.iterator in h) return Object.fromEntries(Array.from(h, (entry) => Array.from(entry)));
|
|
3023
|
+
const headers = {};
|
|
3024
|
+
for (const [name, value] of Object.entries(h)) if (value !== void 0) headers[name] = value;
|
|
3025
|
+
return headers;
|
|
3026
|
+
};
|
|
2776
3027
|
return customFetch(getUpdateApiKeyUrl(id), {
|
|
2777
3028
|
...options,
|
|
2778
3029
|
method: "PATCH",
|
|
2779
3030
|
headers: {
|
|
2780
3031
|
"Content-Type": "application/json",
|
|
2781
|
-
...options?.headers
|
|
3032
|
+
...getHeaders(options?.headers)
|
|
2782
3033
|
},
|
|
2783
3034
|
body: JSON.stringify(updateApiKeyRequest)
|
|
2784
3035
|
});
|
|
2785
3036
|
};
|
|
3037
|
+
const getUpdateApiKeyMutationKey = () => ["updateApiKey"];
|
|
2786
3038
|
const getUpdateApiKeyMutationOptions = (options) => {
|
|
2787
|
-
const mutationKey =
|
|
3039
|
+
const mutationKey = getUpdateApiKeyMutationKey();
|
|
2788
3040
|
const { mutation: mutationOptions, request: requestOptions } = options ? options.mutation && "mutationKey" in options.mutation && options.mutation.mutationKey ? options : {
|
|
2789
3041
|
...options,
|
|
2790
3042
|
mutation: {
|
|
@@ -2875,7 +3127,7 @@ var BearerPlugin = class {
|
|
|
2875
3127
|
//#endregion
|
|
2876
3128
|
//#region src/gen/endpoints/core/core.ts
|
|
2877
3129
|
/**
|
|
2878
|
-
* Generated by orval
|
|
3130
|
+
* Generated by orval 🍺
|
|
2879
3131
|
* Do not edit manually.
|
|
2880
3132
|
* Authula API
|
|
2881
3133
|
* Authula API - An open-source authentication solution that scales with you.
|
|
@@ -2886,6 +3138,7 @@ var core_exports = /* @__PURE__ */ __exportAll({
|
|
|
2886
3138
|
getGetMeQueryOptions: () => getGetMeQueryOptions,
|
|
2887
3139
|
getGetMeUrl: () => getGetMeUrl,
|
|
2888
3140
|
getMe: () => getMe,
|
|
3141
|
+
getSignOutMutationKey: () => getSignOutMutationKey,
|
|
2889
3142
|
getSignOutMutationOptions: () => getSignOutMutationOptions,
|
|
2890
3143
|
getSignOutUrl: () => getSignOutUrl,
|
|
2891
3144
|
signOut: () => signOut,
|
|
@@ -2945,22 +3198,31 @@ const getSignOutUrl = () => {
|
|
|
2945
3198
|
return `/sign-out`;
|
|
2946
3199
|
};
|
|
2947
3200
|
/**
|
|
2948
|
-
* Signs out the authenticated user.
|
|
3201
|
+
* Signs out the authenticated user. With no body, revokes the session that authenticated the request (400 if the request carries no session id). Pass session_id to revoke one of your own sessions (404 if it does not exist, 403 if it belongs to another user), or sign_out_all to revoke every session.
|
|
2949
3202
|
* @summary Sign out
|
|
2950
3203
|
*/
|
|
2951
3204
|
const signOut = async (signOutRequest, options) => {
|
|
3205
|
+
const getHeaders = (h) => {
|
|
3206
|
+
if (!h) return {};
|
|
3207
|
+
if (h instanceof Headers) return Object.fromEntries(h.entries());
|
|
3208
|
+
if (Symbol.iterator in h) return Object.fromEntries(Array.from(h, (entry) => Array.from(entry)));
|
|
3209
|
+
const headers = {};
|
|
3210
|
+
for (const [name, value] of Object.entries(h)) if (value !== void 0) headers[name] = value;
|
|
3211
|
+
return headers;
|
|
3212
|
+
};
|
|
2952
3213
|
return customFetch(getSignOutUrl(), {
|
|
2953
3214
|
...options,
|
|
2954
3215
|
method: "POST",
|
|
2955
3216
|
headers: {
|
|
2956
3217
|
"Content-Type": "application/json",
|
|
2957
|
-
...options?.headers
|
|
3218
|
+
...getHeaders(options?.headers)
|
|
2958
3219
|
},
|
|
2959
3220
|
body: JSON.stringify(signOutRequest)
|
|
2960
3221
|
});
|
|
2961
3222
|
};
|
|
3223
|
+
const getSignOutMutationKey = () => ["signOut"];
|
|
2962
3224
|
const getSignOutMutationOptions = (options) => {
|
|
2963
|
-
const mutationKey =
|
|
3225
|
+
const mutationKey = getSignOutMutationKey();
|
|
2964
3226
|
const { mutation: mutationOptions, request: requestOptions } = options ? options.mutation && "mutationKey" in options.mutation && options.mutation.mutationKey ? options : {
|
|
2965
3227
|
...options,
|
|
2966
3228
|
mutation: {
|
|
@@ -3024,7 +3286,7 @@ var CSRFPlugin = class {
|
|
|
3024
3286
|
//#endregion
|
|
3025
3287
|
//#region src/gen/endpoints/email-password-plugin/email-password-plugin.ts
|
|
3026
3288
|
/**
|
|
3027
|
-
* Generated by orval
|
|
3289
|
+
* Generated by orval 🍺
|
|
3028
3290
|
* Do not edit manually.
|
|
3029
3291
|
* Authula API
|
|
3030
3292
|
* Authula API - An open-source authentication solution that scales with you.
|
|
@@ -3032,16 +3294,22 @@ var CSRFPlugin = class {
|
|
|
3032
3294
|
*/
|
|
3033
3295
|
var email_password_plugin_exports = /* @__PURE__ */ __exportAll({
|
|
3034
3296
|
changePassword: () => changePassword,
|
|
3297
|
+
getChangePasswordMutationKey: () => getChangePasswordMutationKey,
|
|
3035
3298
|
getChangePasswordMutationOptions: () => getChangePasswordMutationOptions,
|
|
3036
3299
|
getChangePasswordUrl: () => getChangePasswordUrl,
|
|
3300
|
+
getRequestEmailChangeMutationKey: () => getRequestEmailChangeMutationKey,
|
|
3037
3301
|
getRequestEmailChangeMutationOptions: () => getRequestEmailChangeMutationOptions,
|
|
3038
3302
|
getRequestEmailChangeUrl: () => getRequestEmailChangeUrl,
|
|
3303
|
+
getRequestPasswordResetMutationKey: () => getRequestPasswordResetMutationKey,
|
|
3039
3304
|
getRequestPasswordResetMutationOptions: () => getRequestPasswordResetMutationOptions,
|
|
3040
3305
|
getRequestPasswordResetUrl: () => getRequestPasswordResetUrl,
|
|
3306
|
+
getSendEmailVerificationMutationKey: () => getSendEmailVerificationMutationKey,
|
|
3041
3307
|
getSendEmailVerificationMutationOptions: () => getSendEmailVerificationMutationOptions,
|
|
3042
3308
|
getSendEmailVerificationUrl: () => getSendEmailVerificationUrl,
|
|
3309
|
+
getSignInMutationKey: () => getSignInMutationKey,
|
|
3043
3310
|
getSignInMutationOptions: () => getSignInMutationOptions,
|
|
3044
3311
|
getSignInUrl: () => getSignInUrl,
|
|
3312
|
+
getSignUpMutationKey: () => getSignUpMutationKey,
|
|
3045
3313
|
getSignUpMutationOptions: () => getSignUpMutationOptions,
|
|
3046
3314
|
getSignUpUrl: () => getSignUpUrl,
|
|
3047
3315
|
getVerifyEmailQueryKey: () => getVerifyEmailQueryKey,
|
|
@@ -3081,18 +3349,27 @@ const getChangePasswordUrl = () => {
|
|
|
3081
3349
|
* @summary Change password
|
|
3082
3350
|
*/
|
|
3083
3351
|
const changePassword = async (changePasswordRequest, options) => {
|
|
3352
|
+
const getHeaders = (h) => {
|
|
3353
|
+
if (!h) return {};
|
|
3354
|
+
if (h instanceof Headers) return Object.fromEntries(h.entries());
|
|
3355
|
+
if (Symbol.iterator in h) return Object.fromEntries(Array.from(h, (entry) => Array.from(entry)));
|
|
3356
|
+
const headers = {};
|
|
3357
|
+
for (const [name, value] of Object.entries(h)) if (value !== void 0) headers[name] = value;
|
|
3358
|
+
return headers;
|
|
3359
|
+
};
|
|
3084
3360
|
return customFetch(getChangePasswordUrl(), {
|
|
3085
3361
|
...options,
|
|
3086
3362
|
method: "POST",
|
|
3087
3363
|
headers: {
|
|
3088
3364
|
"Content-Type": "application/json",
|
|
3089
|
-
...options?.headers
|
|
3365
|
+
...getHeaders(options?.headers)
|
|
3090
3366
|
},
|
|
3091
3367
|
body: JSON.stringify(changePasswordRequest)
|
|
3092
3368
|
});
|
|
3093
3369
|
};
|
|
3370
|
+
const getChangePasswordMutationKey = () => ["changePassword"];
|
|
3094
3371
|
const getChangePasswordMutationOptions = (options) => {
|
|
3095
|
-
const mutationKey =
|
|
3372
|
+
const mutationKey = getChangePasswordMutationKey();
|
|
3096
3373
|
const { mutation: mutationOptions, request: requestOptions } = options ? options.mutation && "mutationKey" in options.mutation && options.mutation.mutationKey ? options : {
|
|
3097
3374
|
...options,
|
|
3098
3375
|
mutation: {
|
|
@@ -3126,18 +3403,27 @@ const getRequestEmailChangeUrl = () => {
|
|
|
3126
3403
|
* @summary Request email change
|
|
3127
3404
|
*/
|
|
3128
3405
|
const requestEmailChange = async (requestEmailChangeRequest, options) => {
|
|
3406
|
+
const getHeaders = (h) => {
|
|
3407
|
+
if (!h) return {};
|
|
3408
|
+
if (h instanceof Headers) return Object.fromEntries(h.entries());
|
|
3409
|
+
if (Symbol.iterator in h) return Object.fromEntries(Array.from(h, (entry) => Array.from(entry)));
|
|
3410
|
+
const headers = {};
|
|
3411
|
+
for (const [name, value] of Object.entries(h)) if (value !== void 0) headers[name] = value;
|
|
3412
|
+
return headers;
|
|
3413
|
+
};
|
|
3129
3414
|
return customFetch(getRequestEmailChangeUrl(), {
|
|
3130
3415
|
...options,
|
|
3131
3416
|
method: "POST",
|
|
3132
3417
|
headers: {
|
|
3133
3418
|
"Content-Type": "application/json",
|
|
3134
|
-
...options?.headers
|
|
3419
|
+
...getHeaders(options?.headers)
|
|
3135
3420
|
},
|
|
3136
3421
|
body: JSON.stringify(requestEmailChangeRequest)
|
|
3137
3422
|
});
|
|
3138
3423
|
};
|
|
3424
|
+
const getRequestEmailChangeMutationKey = () => ["requestEmailChange"];
|
|
3139
3425
|
const getRequestEmailChangeMutationOptions = (options) => {
|
|
3140
|
-
const mutationKey =
|
|
3426
|
+
const mutationKey = getRequestEmailChangeMutationKey();
|
|
3141
3427
|
const { mutation: mutationOptions, request: requestOptions } = options ? options.mutation && "mutationKey" in options.mutation && options.mutation.mutationKey ? options : {
|
|
3142
3428
|
...options,
|
|
3143
3429
|
mutation: {
|
|
@@ -3171,18 +3457,27 @@ const getRequestPasswordResetUrl = () => {
|
|
|
3171
3457
|
* @summary Request password reset
|
|
3172
3458
|
*/
|
|
3173
3459
|
const requestPasswordReset = async (requestPasswordResetRequest, options) => {
|
|
3460
|
+
const getHeaders = (h) => {
|
|
3461
|
+
if (!h) return {};
|
|
3462
|
+
if (h instanceof Headers) return Object.fromEntries(h.entries());
|
|
3463
|
+
if (Symbol.iterator in h) return Object.fromEntries(Array.from(h, (entry) => Array.from(entry)));
|
|
3464
|
+
const headers = {};
|
|
3465
|
+
for (const [name, value] of Object.entries(h)) if (value !== void 0) headers[name] = value;
|
|
3466
|
+
return headers;
|
|
3467
|
+
};
|
|
3174
3468
|
return customFetch(getRequestPasswordResetUrl(), {
|
|
3175
3469
|
...options,
|
|
3176
3470
|
method: "POST",
|
|
3177
3471
|
headers: {
|
|
3178
3472
|
"Content-Type": "application/json",
|
|
3179
|
-
...options?.headers
|
|
3473
|
+
...getHeaders(options?.headers)
|
|
3180
3474
|
},
|
|
3181
3475
|
body: JSON.stringify(requestPasswordResetRequest)
|
|
3182
3476
|
});
|
|
3183
3477
|
};
|
|
3478
|
+
const getRequestPasswordResetMutationKey = () => ["requestPasswordReset"];
|
|
3184
3479
|
const getRequestPasswordResetMutationOptions = (options) => {
|
|
3185
|
-
const mutationKey =
|
|
3480
|
+
const mutationKey = getRequestPasswordResetMutationKey();
|
|
3186
3481
|
const { mutation: mutationOptions, request: requestOptions } = options ? options.mutation && "mutationKey" in options.mutation && options.mutation.mutationKey ? options : {
|
|
3187
3482
|
...options,
|
|
3188
3483
|
mutation: {
|
|
@@ -3216,18 +3511,27 @@ const getSendEmailVerificationUrl = () => {
|
|
|
3216
3511
|
* @summary Send email verification
|
|
3217
3512
|
*/
|
|
3218
3513
|
const sendEmailVerification = async (sendEmailVerificationRequest, options) => {
|
|
3514
|
+
const getHeaders = (h) => {
|
|
3515
|
+
if (!h) return {};
|
|
3516
|
+
if (h instanceof Headers) return Object.fromEntries(h.entries());
|
|
3517
|
+
if (Symbol.iterator in h) return Object.fromEntries(Array.from(h, (entry) => Array.from(entry)));
|
|
3518
|
+
const headers = {};
|
|
3519
|
+
for (const [name, value] of Object.entries(h)) if (value !== void 0) headers[name] = value;
|
|
3520
|
+
return headers;
|
|
3521
|
+
};
|
|
3219
3522
|
return customFetch(getSendEmailVerificationUrl(), {
|
|
3220
3523
|
...options,
|
|
3221
3524
|
method: "POST",
|
|
3222
3525
|
headers: {
|
|
3223
3526
|
"Content-Type": "application/json",
|
|
3224
|
-
...options?.headers
|
|
3527
|
+
...getHeaders(options?.headers)
|
|
3225
3528
|
},
|
|
3226
3529
|
body: JSON.stringify(sendEmailVerificationRequest)
|
|
3227
3530
|
});
|
|
3228
3531
|
};
|
|
3532
|
+
const getSendEmailVerificationMutationKey = () => ["sendEmailVerification"];
|
|
3229
3533
|
const getSendEmailVerificationMutationOptions = (options) => {
|
|
3230
|
-
const mutationKey =
|
|
3534
|
+
const mutationKey = getSendEmailVerificationMutationKey();
|
|
3231
3535
|
const { mutation: mutationOptions, request: requestOptions } = options ? options.mutation && "mutationKey" in options.mutation && options.mutation.mutationKey ? options : {
|
|
3232
3536
|
...options,
|
|
3233
3537
|
mutation: {
|
|
@@ -3261,18 +3565,27 @@ const getSignInUrl = () => {
|
|
|
3261
3565
|
* @summary Sign in
|
|
3262
3566
|
*/
|
|
3263
3567
|
const signIn = async (signInRequest, options) => {
|
|
3568
|
+
const getHeaders = (h) => {
|
|
3569
|
+
if (!h) return {};
|
|
3570
|
+
if (h instanceof Headers) return Object.fromEntries(h.entries());
|
|
3571
|
+
if (Symbol.iterator in h) return Object.fromEntries(Array.from(h, (entry) => Array.from(entry)));
|
|
3572
|
+
const headers = {};
|
|
3573
|
+
for (const [name, value] of Object.entries(h)) if (value !== void 0) headers[name] = value;
|
|
3574
|
+
return headers;
|
|
3575
|
+
};
|
|
3264
3576
|
return customFetch(getSignInUrl(), {
|
|
3265
3577
|
...options,
|
|
3266
3578
|
method: "POST",
|
|
3267
3579
|
headers: {
|
|
3268
3580
|
"Content-Type": "application/json",
|
|
3269
|
-
...options?.headers
|
|
3581
|
+
...getHeaders(options?.headers)
|
|
3270
3582
|
},
|
|
3271
3583
|
body: JSON.stringify(signInRequest)
|
|
3272
3584
|
});
|
|
3273
3585
|
};
|
|
3586
|
+
const getSignInMutationKey = () => ["signIn"];
|
|
3274
3587
|
const getSignInMutationOptions = (options) => {
|
|
3275
|
-
const mutationKey =
|
|
3588
|
+
const mutationKey = getSignInMutationKey();
|
|
3276
3589
|
const { mutation: mutationOptions, request: requestOptions } = options ? options.mutation && "mutationKey" in options.mutation && options.mutation.mutationKey ? options : {
|
|
3277
3590
|
...options,
|
|
3278
3591
|
mutation: {
|
|
@@ -3306,18 +3619,27 @@ const getSignUpUrl = () => {
|
|
|
3306
3619
|
* @summary Register new user
|
|
3307
3620
|
*/
|
|
3308
3621
|
const signUp = async (signUpRequest, options) => {
|
|
3622
|
+
const getHeaders = (h) => {
|
|
3623
|
+
if (!h) return {};
|
|
3624
|
+
if (h instanceof Headers) return Object.fromEntries(h.entries());
|
|
3625
|
+
if (Symbol.iterator in h) return Object.fromEntries(Array.from(h, (entry) => Array.from(entry)));
|
|
3626
|
+
const headers = {};
|
|
3627
|
+
for (const [name, value] of Object.entries(h)) if (value !== void 0) headers[name] = value;
|
|
3628
|
+
return headers;
|
|
3629
|
+
};
|
|
3309
3630
|
return customFetch(getSignUpUrl(), {
|
|
3310
3631
|
...options,
|
|
3311
3632
|
method: "POST",
|
|
3312
3633
|
headers: {
|
|
3313
3634
|
"Content-Type": "application/json",
|
|
3314
|
-
...options?.headers
|
|
3635
|
+
...getHeaders(options?.headers)
|
|
3315
3636
|
},
|
|
3316
3637
|
body: JSON.stringify(signUpRequest)
|
|
3317
3638
|
});
|
|
3318
3639
|
};
|
|
3640
|
+
const getSignUpMutationKey = () => ["signUp"];
|
|
3319
3641
|
const getSignUpMutationOptions = (options) => {
|
|
3320
|
-
const mutationKey =
|
|
3642
|
+
const mutationKey = getSignUpMutationKey();
|
|
3321
3643
|
const { mutation: mutationOptions, request: requestOptions } = options ? options.mutation && "mutationKey" in options.mutation && options.mutation.mutationKey ? options : {
|
|
3322
3644
|
...options,
|
|
3323
3645
|
mutation: {
|
|
@@ -3393,7 +3715,7 @@ var EmailPasswordPlugin = class {
|
|
|
3393
3715
|
//#endregion
|
|
3394
3716
|
//#region src/gen/endpoints/jwt-plugin/jwt-plugin.ts
|
|
3395
3717
|
/**
|
|
3396
|
-
* Generated by orval
|
|
3718
|
+
* Generated by orval 🍺
|
|
3397
3719
|
* Do not edit manually.
|
|
3398
3720
|
* Authula API
|
|
3399
3721
|
* Authula API - An open-source authentication solution that scales with you.
|
|
@@ -3404,6 +3726,7 @@ var jwt_plugin_exports = /* @__PURE__ */ __exportAll({
|
|
|
3404
3726
|
getGetJWKSQueryOptions: () => getGetJWKSQueryOptions,
|
|
3405
3727
|
getGetJWKSUrl: () => getGetJWKSUrl,
|
|
3406
3728
|
getJWKS: () => getJWKS,
|
|
3729
|
+
getRefreshTokenMutationKey: () => getRefreshTokenMutationKey,
|
|
3407
3730
|
getRefreshTokenMutationOptions: () => getRefreshTokenMutationOptions,
|
|
3408
3731
|
getRefreshTokenUrl: () => getRefreshTokenUrl,
|
|
3409
3732
|
refreshToken: () => refreshToken,
|
|
@@ -3467,18 +3790,27 @@ const getRefreshTokenUrl = () => {
|
|
|
3467
3790
|
* @summary Refresh JWT token
|
|
3468
3791
|
*/
|
|
3469
3792
|
const refreshToken = async (refreshTokenRequest, options) => {
|
|
3793
|
+
const getHeaders = (h) => {
|
|
3794
|
+
if (!h) return {};
|
|
3795
|
+
if (h instanceof Headers) return Object.fromEntries(h.entries());
|
|
3796
|
+
if (Symbol.iterator in h) return Object.fromEntries(Array.from(h, (entry) => Array.from(entry)));
|
|
3797
|
+
const headers = {};
|
|
3798
|
+
for (const [name, value] of Object.entries(h)) if (value !== void 0) headers[name] = value;
|
|
3799
|
+
return headers;
|
|
3800
|
+
};
|
|
3470
3801
|
return customFetch(getRefreshTokenUrl(), {
|
|
3471
3802
|
...options,
|
|
3472
3803
|
method: "POST",
|
|
3473
3804
|
headers: {
|
|
3474
3805
|
"Content-Type": "application/json",
|
|
3475
|
-
...options?.headers
|
|
3806
|
+
...getHeaders(options?.headers)
|
|
3476
3807
|
},
|
|
3477
3808
|
body: JSON.stringify(refreshTokenRequest)
|
|
3478
3809
|
});
|
|
3479
3810
|
};
|
|
3811
|
+
const getRefreshTokenMutationKey = () => ["refreshToken"];
|
|
3480
3812
|
const getRefreshTokenMutationOptions = (options) => {
|
|
3481
|
-
const mutationKey =
|
|
3813
|
+
const mutationKey = getRefreshTokenMutationKey();
|
|
3482
3814
|
const { mutation: mutationOptions, request: requestOptions } = options ? options.mutation && "mutationKey" in options.mutation && options.mutation.mutationKey ? options : {
|
|
3483
3815
|
...options,
|
|
3484
3816
|
mutation: {
|
|
@@ -3518,7 +3850,7 @@ var JWTPlugin = class {
|
|
|
3518
3850
|
//#endregion
|
|
3519
3851
|
//#region src/gen/endpoints/magic-link-plugin/magic-link-plugin.ts
|
|
3520
3852
|
/**
|
|
3521
|
-
* Generated by orval
|
|
3853
|
+
* Generated by orval 🍺
|
|
3522
3854
|
* Do not edit manually.
|
|
3523
3855
|
* Authula API
|
|
3524
3856
|
* Authula API - An open-source authentication solution that scales with you.
|
|
@@ -3526,8 +3858,10 @@ var JWTPlugin = class {
|
|
|
3526
3858
|
*/
|
|
3527
3859
|
var magic_link_plugin_exports = /* @__PURE__ */ __exportAll({
|
|
3528
3860
|
exchangeMagicLink: () => exchangeMagicLink,
|
|
3861
|
+
getExchangeMagicLinkMutationKey: () => getExchangeMagicLinkMutationKey,
|
|
3529
3862
|
getExchangeMagicLinkMutationOptions: () => getExchangeMagicLinkMutationOptions,
|
|
3530
3863
|
getExchangeMagicLinkUrl: () => getExchangeMagicLinkUrl,
|
|
3864
|
+
getSignInWithMagicLinkMutationKey: () => getSignInWithMagicLinkMutationKey,
|
|
3531
3865
|
getSignInWithMagicLinkMutationOptions: () => getSignInWithMagicLinkMutationOptions,
|
|
3532
3866
|
getSignInWithMagicLinkUrl: () => getSignInWithMagicLinkUrl,
|
|
3533
3867
|
getVerifyMagicLinkQueryKey: () => getVerifyMagicLinkQueryKey,
|
|
@@ -3559,18 +3893,27 @@ const getExchangeMagicLinkUrl = () => {
|
|
|
3559
3893
|
* @summary Exchange magic link token for session
|
|
3560
3894
|
*/
|
|
3561
3895
|
const exchangeMagicLink = async (magicLinkExchangeRequest, options) => {
|
|
3896
|
+
const getHeaders = (h) => {
|
|
3897
|
+
if (!h) return {};
|
|
3898
|
+
if (h instanceof Headers) return Object.fromEntries(h.entries());
|
|
3899
|
+
if (Symbol.iterator in h) return Object.fromEntries(Array.from(h, (entry) => Array.from(entry)));
|
|
3900
|
+
const headers = {};
|
|
3901
|
+
for (const [name, value] of Object.entries(h)) if (value !== void 0) headers[name] = value;
|
|
3902
|
+
return headers;
|
|
3903
|
+
};
|
|
3562
3904
|
return customFetch(getExchangeMagicLinkUrl(), {
|
|
3563
3905
|
...options,
|
|
3564
3906
|
method: "POST",
|
|
3565
3907
|
headers: {
|
|
3566
3908
|
"Content-Type": "application/json",
|
|
3567
|
-
...options?.headers
|
|
3909
|
+
...getHeaders(options?.headers)
|
|
3568
3910
|
},
|
|
3569
3911
|
body: JSON.stringify(magicLinkExchangeRequest)
|
|
3570
3912
|
});
|
|
3571
3913
|
};
|
|
3914
|
+
const getExchangeMagicLinkMutationKey = () => ["exchangeMagicLink"];
|
|
3572
3915
|
const getExchangeMagicLinkMutationOptions = (options) => {
|
|
3573
|
-
const mutationKey =
|
|
3916
|
+
const mutationKey = getExchangeMagicLinkMutationKey();
|
|
3574
3917
|
const { mutation: mutationOptions, request: requestOptions } = options ? options.mutation && "mutationKey" in options.mutation && options.mutation.mutationKey ? options : {
|
|
3575
3918
|
...options,
|
|
3576
3919
|
mutation: {
|
|
@@ -3604,18 +3947,27 @@ const getSignInWithMagicLinkUrl = () => {
|
|
|
3604
3947
|
* @summary Sign in with magic link
|
|
3605
3948
|
*/
|
|
3606
3949
|
const signInWithMagicLink = async (magicLinkSignInRequest, options) => {
|
|
3950
|
+
const getHeaders = (h) => {
|
|
3951
|
+
if (!h) return {};
|
|
3952
|
+
if (h instanceof Headers) return Object.fromEntries(h.entries());
|
|
3953
|
+
if (Symbol.iterator in h) return Object.fromEntries(Array.from(h, (entry) => Array.from(entry)));
|
|
3954
|
+
const headers = {};
|
|
3955
|
+
for (const [name, value] of Object.entries(h)) if (value !== void 0) headers[name] = value;
|
|
3956
|
+
return headers;
|
|
3957
|
+
};
|
|
3607
3958
|
return customFetch(getSignInWithMagicLinkUrl(), {
|
|
3608
3959
|
...options,
|
|
3609
3960
|
method: "POST",
|
|
3610
3961
|
headers: {
|
|
3611
3962
|
"Content-Type": "application/json",
|
|
3612
|
-
...options?.headers
|
|
3963
|
+
...getHeaders(options?.headers)
|
|
3613
3964
|
},
|
|
3614
3965
|
body: JSON.stringify(magicLinkSignInRequest)
|
|
3615
3966
|
});
|
|
3616
3967
|
};
|
|
3968
|
+
const getSignInWithMagicLinkMutationKey = () => ["signInWithMagicLink"];
|
|
3617
3969
|
const getSignInWithMagicLinkMutationOptions = (options) => {
|
|
3618
|
-
const mutationKey =
|
|
3970
|
+
const mutationKey = getSignInWithMagicLinkMutationKey();
|
|
3619
3971
|
const { mutation: mutationOptions, request: requestOptions } = options ? options.mutation && "mutationKey" in options.mutation && options.mutation.mutationKey ? options : {
|
|
3620
3972
|
...options,
|
|
3621
3973
|
mutation: {
|
|
@@ -3697,7 +4049,7 @@ var MagicLinkPlugin = class {
|
|
|
3697
4049
|
//#endregion
|
|
3698
4050
|
//#region src/gen/endpoints/oauth2-plugin/oauth2-plugin.ts
|
|
3699
4051
|
/**
|
|
3700
|
-
* Generated by orval
|
|
4052
|
+
* Generated by orval 🍺
|
|
3701
4053
|
* Do not edit manually.
|
|
3702
4054
|
* Authula API
|
|
3703
4055
|
* Authula API - An open-source authentication solution that scales with you.
|
|
@@ -3826,7 +4178,7 @@ var OAuth2Plugin = class {
|
|
|
3826
4178
|
//#endregion
|
|
3827
4179
|
//#region src/gen/endpoints/organizations/organizations.ts
|
|
3828
4180
|
/**
|
|
3829
|
-
* Generated by orval
|
|
4181
|
+
* Generated by orval 🍺
|
|
3830
4182
|
* Do not edit manually.
|
|
3831
4183
|
* Authula API
|
|
3832
4184
|
* Authula API - An open-source authentication solution that scales with you.
|
|
@@ -3835,8 +4187,10 @@ var OAuth2Plugin = class {
|
|
|
3835
4187
|
var organizations_exports = /* @__PURE__ */ __exportAll({
|
|
3836
4188
|
createOrganization: () => createOrganization,
|
|
3837
4189
|
deleteOrganization: () => deleteOrganization,
|
|
4190
|
+
getCreateOrganizationMutationKey: () => getCreateOrganizationMutationKey,
|
|
3838
4191
|
getCreateOrganizationMutationOptions: () => getCreateOrganizationMutationOptions,
|
|
3839
4192
|
getCreateOrganizationUrl: () => getCreateOrganizationUrl,
|
|
4193
|
+
getDeleteOrganizationMutationKey: () => getDeleteOrganizationMutationKey,
|
|
3840
4194
|
getDeleteOrganizationMutationOptions: () => getDeleteOrganizationMutationOptions,
|
|
3841
4195
|
getDeleteOrganizationUrl: () => getDeleteOrganizationUrl,
|
|
3842
4196
|
getGetOrganizationQueryKey: () => getGetOrganizationQueryKey,
|
|
@@ -3846,6 +4200,7 @@ var organizations_exports = /* @__PURE__ */ __exportAll({
|
|
|
3846
4200
|
getListOrganizationsQueryOptions: () => getListOrganizationsQueryOptions,
|
|
3847
4201
|
getListOrganizationsUrl: () => getListOrganizationsUrl,
|
|
3848
4202
|
getOrganization: () => getOrganization,
|
|
4203
|
+
getUpdateOrganizationMutationKey: () => getUpdateOrganizationMutationKey,
|
|
3849
4204
|
getUpdateOrganizationMutationOptions: () => getUpdateOrganizationMutationOptions,
|
|
3850
4205
|
getUpdateOrganizationUrl: () => getUpdateOrganizationUrl,
|
|
3851
4206
|
listOrganizations: () => listOrganizations,
|
|
@@ -3877,7 +4232,7 @@ const getListOrganizationsUrl = (params) => {
|
|
|
3877
4232
|
return stringifiedParams.length > 0 ? `/organizations?${stringifiedParams}` : `/organizations`;
|
|
3878
4233
|
};
|
|
3879
4234
|
/**
|
|
3880
|
-
* Lists every organization the authenticated user can access
|
|
4235
|
+
* Lists every organization the authenticated user can access.
|
|
3881
4236
|
* @summary List organizations
|
|
3882
4237
|
*/
|
|
3883
4238
|
const listOrganizations = async (params, options) => {
|
|
@@ -3918,18 +4273,27 @@ const getCreateOrganizationUrl = () => {
|
|
|
3918
4273
|
* @summary Create organization
|
|
3919
4274
|
*/
|
|
3920
4275
|
const createOrganization = async (createOrganizationRequest, options) => {
|
|
4276
|
+
const getHeaders = (h) => {
|
|
4277
|
+
if (!h) return {};
|
|
4278
|
+
if (h instanceof Headers) return Object.fromEntries(h.entries());
|
|
4279
|
+
if (Symbol.iterator in h) return Object.fromEntries(Array.from(h, (entry) => Array.from(entry)));
|
|
4280
|
+
const headers = {};
|
|
4281
|
+
for (const [name, value] of Object.entries(h)) if (value !== void 0) headers[name] = value;
|
|
4282
|
+
return headers;
|
|
4283
|
+
};
|
|
3921
4284
|
return customFetch(getCreateOrganizationUrl(), {
|
|
3922
4285
|
...options,
|
|
3923
4286
|
method: "POST",
|
|
3924
4287
|
headers: {
|
|
3925
4288
|
"Content-Type": "application/json",
|
|
3926
|
-
...options?.headers
|
|
4289
|
+
...getHeaders(options?.headers)
|
|
3927
4290
|
},
|
|
3928
4291
|
body: JSON.stringify(createOrganizationRequest)
|
|
3929
4292
|
});
|
|
3930
4293
|
};
|
|
4294
|
+
const getCreateOrganizationMutationKey = () => ["createOrganization"];
|
|
3931
4295
|
const getCreateOrganizationMutationOptions = (options) => {
|
|
3932
|
-
const mutationKey =
|
|
4296
|
+
const mutationKey = getCreateOrganizationMutationKey();
|
|
3933
4297
|
const { mutation: mutationOptions, request: requestOptions } = options ? options.mutation && "mutationKey" in options.mutation && options.mutation.mutationKey ? options : {
|
|
3934
4298
|
...options,
|
|
3935
4299
|
mutation: {
|
|
@@ -3997,7 +4361,7 @@ const getDeleteOrganizationUrl = (organizationId) => {
|
|
|
3997
4361
|
return `/organizations/${organizationId}`;
|
|
3998
4362
|
};
|
|
3999
4363
|
/**
|
|
4000
|
-
*
|
|
4364
|
+
* Soft-deletes an organization.
|
|
4001
4365
|
* @summary Delete organization
|
|
4002
4366
|
*/
|
|
4003
4367
|
const deleteOrganization = async (organizationId, options) => {
|
|
@@ -4006,8 +4370,9 @@ const deleteOrganization = async (organizationId, options) => {
|
|
|
4006
4370
|
method: "DELETE"
|
|
4007
4371
|
});
|
|
4008
4372
|
};
|
|
4373
|
+
const getDeleteOrganizationMutationKey = () => ["deleteOrganization"];
|
|
4009
4374
|
const getDeleteOrganizationMutationOptions = (options) => {
|
|
4010
|
-
const mutationKey =
|
|
4375
|
+
const mutationKey = getDeleteOrganizationMutationKey();
|
|
4011
4376
|
const { mutation: mutationOptions, request: requestOptions } = options ? options.mutation && "mutationKey" in options.mutation && options.mutation.mutationKey ? options : {
|
|
4012
4377
|
...options,
|
|
4013
4378
|
mutation: {
|
|
@@ -4041,18 +4406,27 @@ const getUpdateOrganizationUrl = (organizationId) => {
|
|
|
4041
4406
|
* @summary Update organization
|
|
4042
4407
|
*/
|
|
4043
4408
|
const updateOrganization = async (organizationId, updateOrganizationRequest, options) => {
|
|
4409
|
+
const getHeaders = (h) => {
|
|
4410
|
+
if (!h) return {};
|
|
4411
|
+
if (h instanceof Headers) return Object.fromEntries(h.entries());
|
|
4412
|
+
if (Symbol.iterator in h) return Object.fromEntries(Array.from(h, (entry) => Array.from(entry)));
|
|
4413
|
+
const headers = {};
|
|
4414
|
+
for (const [name, value] of Object.entries(h)) if (value !== void 0) headers[name] = value;
|
|
4415
|
+
return headers;
|
|
4416
|
+
};
|
|
4044
4417
|
return customFetch(getUpdateOrganizationUrl(organizationId), {
|
|
4045
4418
|
...options,
|
|
4046
4419
|
method: "PATCH",
|
|
4047
4420
|
headers: {
|
|
4048
4421
|
"Content-Type": "application/json",
|
|
4049
|
-
...options?.headers
|
|
4422
|
+
...getHeaders(options?.headers)
|
|
4050
4423
|
},
|
|
4051
4424
|
body: JSON.stringify(updateOrganizationRequest)
|
|
4052
4425
|
});
|
|
4053
4426
|
};
|
|
4427
|
+
const getUpdateOrganizationMutationKey = () => ["updateOrganization"];
|
|
4054
4428
|
const getUpdateOrganizationMutationOptions = (options) => {
|
|
4055
|
-
const mutationKey =
|
|
4429
|
+
const mutationKey = getUpdateOrganizationMutationKey();
|
|
4056
4430
|
const { mutation: mutationOptions, request: requestOptions } = options ? options.mutation && "mutationKey" in options.mutation && options.mutation.mutationKey ? options : {
|
|
4057
4431
|
...options,
|
|
4058
4432
|
mutation: {
|
|
@@ -4082,7 +4456,7 @@ const useUpdateOrganization = (options, queryClient) => {
|
|
|
4082
4456
|
//#endregion
|
|
4083
4457
|
//#region src/gen/endpoints/organization-invitations/organization-invitations.ts
|
|
4084
4458
|
/**
|
|
4085
|
-
* Generated by orval
|
|
4459
|
+
* Generated by orval 🍺
|
|
4086
4460
|
* Do not edit manually.
|
|
4087
4461
|
* Authula API
|
|
4088
4462
|
* Authula API - An open-source authentication solution that scales with you.
|
|
@@ -4091,8 +4465,10 @@ const useUpdateOrganization = (options, queryClient) => {
|
|
|
4091
4465
|
var organization_invitations_exports = /* @__PURE__ */ __exportAll({
|
|
4092
4466
|
acceptOrganizationInvitation: () => acceptOrganizationInvitation,
|
|
4093
4467
|
createOrganizationInvitation: () => createOrganizationInvitation,
|
|
4468
|
+
getAcceptOrganizationInvitationMutationKey: () => getAcceptOrganizationInvitationMutationKey,
|
|
4094
4469
|
getAcceptOrganizationInvitationMutationOptions: () => getAcceptOrganizationInvitationMutationOptions,
|
|
4095
4470
|
getAcceptOrganizationInvitationUrl: () => getAcceptOrganizationInvitationUrl,
|
|
4471
|
+
getCreateOrganizationInvitationMutationKey: () => getCreateOrganizationInvitationMutationKey,
|
|
4096
4472
|
getCreateOrganizationInvitationMutationOptions: () => getCreateOrganizationInvitationMutationOptions,
|
|
4097
4473
|
getCreateOrganizationInvitationUrl: () => getCreateOrganizationInvitationUrl,
|
|
4098
4474
|
getGetOrganizationInvitationQueryKey: () => getGetOrganizationInvitationQueryKey,
|
|
@@ -4102,8 +4478,10 @@ var organization_invitations_exports = /* @__PURE__ */ __exportAll({
|
|
|
4102
4478
|
getListOrganizationInvitationsQueryOptions: () => getListOrganizationInvitationsQueryOptions,
|
|
4103
4479
|
getListOrganizationInvitationsUrl: () => getListOrganizationInvitationsUrl,
|
|
4104
4480
|
getOrganizationInvitation: () => getOrganizationInvitation,
|
|
4481
|
+
getRejectOrganizationInvitationMutationKey: () => getRejectOrganizationInvitationMutationKey,
|
|
4105
4482
|
getRejectOrganizationInvitationMutationOptions: () => getRejectOrganizationInvitationMutationOptions,
|
|
4106
4483
|
getRejectOrganizationInvitationUrl: () => getRejectOrganizationInvitationUrl,
|
|
4484
|
+
getRevokeOrganizationInvitationMutationKey: () => getRevokeOrganizationInvitationMutationKey,
|
|
4107
4485
|
getRevokeOrganizationInvitationMutationOptions: () => getRevokeOrganizationInvitationMutationOptions,
|
|
4108
4486
|
getRevokeOrganizationInvitationUrl: () => getRevokeOrganizationInvitationUrl,
|
|
4109
4487
|
listOrganizationInvitations: () => listOrganizationInvitations,
|
|
@@ -4184,18 +4562,27 @@ const getCreateOrganizationInvitationUrl = (organizationId, params) => {
|
|
|
4184
4562
|
* @summary Create invitation
|
|
4185
4563
|
*/
|
|
4186
4564
|
const createOrganizationInvitation = async (organizationId, createOrganizationInvitationRequest, params, options) => {
|
|
4565
|
+
const getHeaders = (h) => {
|
|
4566
|
+
if (!h) return {};
|
|
4567
|
+
if (h instanceof Headers) return Object.fromEntries(h.entries());
|
|
4568
|
+
if (Symbol.iterator in h) return Object.fromEntries(Array.from(h, (entry) => Array.from(entry)));
|
|
4569
|
+
const headers = {};
|
|
4570
|
+
for (const [name, value] of Object.entries(h)) if (value !== void 0) headers[name] = value;
|
|
4571
|
+
return headers;
|
|
4572
|
+
};
|
|
4187
4573
|
return customFetch(getCreateOrganizationInvitationUrl(organizationId, params), {
|
|
4188
4574
|
...options,
|
|
4189
4575
|
method: "POST",
|
|
4190
4576
|
headers: {
|
|
4191
4577
|
"Content-Type": "application/json",
|
|
4192
|
-
...options?.headers
|
|
4578
|
+
...getHeaders(options?.headers)
|
|
4193
4579
|
},
|
|
4194
4580
|
body: JSON.stringify(createOrganizationInvitationRequest)
|
|
4195
4581
|
});
|
|
4196
4582
|
};
|
|
4583
|
+
const getCreateOrganizationInvitationMutationKey = () => ["createOrganizationInvitation"];
|
|
4197
4584
|
const getCreateOrganizationInvitationMutationOptions = (options) => {
|
|
4198
|
-
const mutationKey =
|
|
4585
|
+
const mutationKey = getCreateOrganizationInvitationMutationKey();
|
|
4199
4586
|
const { mutation: mutationOptions, request: requestOptions } = options ? options.mutation && "mutationKey" in options.mutation && options.mutation.mutationKey ? options : {
|
|
4200
4587
|
...options,
|
|
4201
4588
|
mutation: {
|
|
@@ -4272,18 +4659,27 @@ const getAcceptOrganizationInvitationUrl = (organizationId, invitationId, params
|
|
|
4272
4659
|
* @summary Accept invitation
|
|
4273
4660
|
*/
|
|
4274
4661
|
const acceptOrganizationInvitation = async (organizationId, invitationId, acceptOrganizationInvitationQuery, params, options) => {
|
|
4662
|
+
const getHeaders = (h) => {
|
|
4663
|
+
if (!h) return {};
|
|
4664
|
+
if (h instanceof Headers) return Object.fromEntries(h.entries());
|
|
4665
|
+
if (Symbol.iterator in h) return Object.fromEntries(Array.from(h, (entry) => Array.from(entry)));
|
|
4666
|
+
const headers = {};
|
|
4667
|
+
for (const [name, value] of Object.entries(h)) if (value !== void 0) headers[name] = value;
|
|
4668
|
+
return headers;
|
|
4669
|
+
};
|
|
4275
4670
|
return customFetch(getAcceptOrganizationInvitationUrl(organizationId, invitationId, params), {
|
|
4276
4671
|
...options,
|
|
4277
4672
|
method: "PATCH",
|
|
4278
4673
|
headers: {
|
|
4279
4674
|
"Content-Type": "application/json",
|
|
4280
|
-
...options?.headers
|
|
4675
|
+
...getHeaders(options?.headers)
|
|
4281
4676
|
},
|
|
4282
4677
|
body: JSON.stringify(acceptOrganizationInvitationQuery)
|
|
4283
4678
|
});
|
|
4284
4679
|
};
|
|
4680
|
+
const getAcceptOrganizationInvitationMutationKey = () => ["acceptOrganizationInvitation"];
|
|
4285
4681
|
const getAcceptOrganizationInvitationMutationOptions = (options) => {
|
|
4286
|
-
const mutationKey =
|
|
4682
|
+
const mutationKey = getAcceptOrganizationInvitationMutationKey();
|
|
4287
4683
|
const { mutation: mutationOptions, request: requestOptions } = options ? options.mutation && "mutationKey" in options.mutation && options.mutation.mutationKey ? options : {
|
|
4288
4684
|
...options,
|
|
4289
4685
|
mutation: {
|
|
@@ -4322,8 +4718,9 @@ const rejectOrganizationInvitation = async (organizationId, invitationId, option
|
|
|
4322
4718
|
method: "PATCH"
|
|
4323
4719
|
});
|
|
4324
4720
|
};
|
|
4721
|
+
const getRejectOrganizationInvitationMutationKey = () => ["rejectOrganizationInvitation"];
|
|
4325
4722
|
const getRejectOrganizationInvitationMutationOptions = (options) => {
|
|
4326
|
-
const mutationKey =
|
|
4723
|
+
const mutationKey = getRejectOrganizationInvitationMutationKey();
|
|
4327
4724
|
const { mutation: mutationOptions, request: requestOptions } = options ? options.mutation && "mutationKey" in options.mutation && options.mutation.mutationKey ? options : {
|
|
4328
4725
|
...options,
|
|
4329
4726
|
mutation: {
|
|
@@ -4362,8 +4759,9 @@ const revokeOrganizationInvitation = async (organizationId, invitationId, option
|
|
|
4362
4759
|
method: "PATCH"
|
|
4363
4760
|
});
|
|
4364
4761
|
};
|
|
4762
|
+
const getRevokeOrganizationInvitationMutationKey = () => ["revokeOrganizationInvitation"];
|
|
4365
4763
|
const getRevokeOrganizationInvitationMutationOptions = (options) => {
|
|
4366
|
-
const mutationKey =
|
|
4764
|
+
const mutationKey = getRevokeOrganizationInvitationMutationKey();
|
|
4367
4765
|
const { mutation: mutationOptions, request: requestOptions } = options ? options.mutation && "mutationKey" in options.mutation && options.mutation.mutationKey ? options : {
|
|
4368
4766
|
...options,
|
|
4369
4767
|
mutation: {
|
|
@@ -4393,7 +4791,7 @@ const useRevokeOrganizationInvitation = (options, queryClient) => {
|
|
|
4393
4791
|
//#endregion
|
|
4394
4792
|
//#region src/gen/endpoints/organization-members/organization-members.ts
|
|
4395
4793
|
/**
|
|
4396
|
-
* Generated by orval
|
|
4794
|
+
* Generated by orval 🍺
|
|
4397
4795
|
* Do not edit manually.
|
|
4398
4796
|
* Authula API
|
|
4399
4797
|
* Authula API - An open-source authentication solution that scales with you.
|
|
@@ -4402,8 +4800,10 @@ const useRevokeOrganizationInvitation = (options, queryClient) => {
|
|
|
4402
4800
|
var organization_members_exports = /* @__PURE__ */ __exportAll({
|
|
4403
4801
|
addOrganizationMember: () => addOrganizationMember,
|
|
4404
4802
|
deleteOrganizationMember: () => deleteOrganizationMember,
|
|
4803
|
+
getAddOrganizationMemberMutationKey: () => getAddOrganizationMemberMutationKey,
|
|
4405
4804
|
getAddOrganizationMemberMutationOptions: () => getAddOrganizationMemberMutationOptions,
|
|
4406
4805
|
getAddOrganizationMemberUrl: () => getAddOrganizationMemberUrl,
|
|
4806
|
+
getDeleteOrganizationMemberMutationKey: () => getDeleteOrganizationMemberMutationKey,
|
|
4407
4807
|
getDeleteOrganizationMemberMutationOptions: () => getDeleteOrganizationMemberMutationOptions,
|
|
4408
4808
|
getDeleteOrganizationMemberUrl: () => getDeleteOrganizationMemberUrl,
|
|
4409
4809
|
getGetOrganizationMemberByUserIDQueryKey: () => getGetOrganizationMemberByUserIDQueryKey,
|
|
@@ -4417,6 +4817,7 @@ var organization_members_exports = /* @__PURE__ */ __exportAll({
|
|
|
4417
4817
|
getListOrganizationMembersUrl: () => getListOrganizationMembersUrl,
|
|
4418
4818
|
getOrganizationMember: () => getOrganizationMember,
|
|
4419
4819
|
getOrganizationMemberByUserID: () => getOrganizationMemberByUserID,
|
|
4820
|
+
getUpdateOrganizationMemberMutationKey: () => getUpdateOrganizationMemberMutationKey,
|
|
4420
4821
|
getUpdateOrganizationMemberMutationOptions: () => getUpdateOrganizationMemberMutationOptions,
|
|
4421
4822
|
getUpdateOrganizationMemberUrl: () => getUpdateOrganizationMemberUrl,
|
|
4422
4823
|
listOrganizationMembers: () => listOrganizationMembers,
|
|
@@ -4491,18 +4892,27 @@ const getAddOrganizationMemberUrl = (organizationId) => {
|
|
|
4491
4892
|
* @summary Add member
|
|
4492
4893
|
*/
|
|
4493
4894
|
const addOrganizationMember = async (organizationId, addOrganizationMemberRequest, options) => {
|
|
4895
|
+
const getHeaders = (h) => {
|
|
4896
|
+
if (!h) return {};
|
|
4897
|
+
if (h instanceof Headers) return Object.fromEntries(h.entries());
|
|
4898
|
+
if (Symbol.iterator in h) return Object.fromEntries(Array.from(h, (entry) => Array.from(entry)));
|
|
4899
|
+
const headers = {};
|
|
4900
|
+
for (const [name, value] of Object.entries(h)) if (value !== void 0) headers[name] = value;
|
|
4901
|
+
return headers;
|
|
4902
|
+
};
|
|
4494
4903
|
return customFetch(getAddOrganizationMemberUrl(organizationId), {
|
|
4495
4904
|
...options,
|
|
4496
4905
|
method: "POST",
|
|
4497
4906
|
headers: {
|
|
4498
4907
|
"Content-Type": "application/json",
|
|
4499
|
-
...options?.headers
|
|
4908
|
+
...getHeaders(options?.headers)
|
|
4500
4909
|
},
|
|
4501
4910
|
body: JSON.stringify(addOrganizationMemberRequest)
|
|
4502
4911
|
});
|
|
4503
4912
|
};
|
|
4913
|
+
const getAddOrganizationMemberMutationKey = () => ["addOrganizationMember"];
|
|
4504
4914
|
const getAddOrganizationMemberMutationOptions = (options) => {
|
|
4505
|
-
const mutationKey =
|
|
4915
|
+
const mutationKey = getAddOrganizationMemberMutationKey();
|
|
4506
4916
|
const { mutation: mutationOptions, request: requestOptions } = options ? options.mutation && "mutationKey" in options.mutation && options.mutation.mutationKey ? options : {
|
|
4507
4917
|
...options,
|
|
4508
4918
|
mutation: {
|
|
@@ -4617,8 +5027,9 @@ const deleteOrganizationMember = async (organizationId, memberId, options) => {
|
|
|
4617
5027
|
method: "DELETE"
|
|
4618
5028
|
});
|
|
4619
5029
|
};
|
|
5030
|
+
const getDeleteOrganizationMemberMutationKey = () => ["deleteOrganizationMember"];
|
|
4620
5031
|
const getDeleteOrganizationMemberMutationOptions = (options) => {
|
|
4621
|
-
const mutationKey =
|
|
5032
|
+
const mutationKey = getDeleteOrganizationMemberMutationKey();
|
|
4622
5033
|
const { mutation: mutationOptions, request: requestOptions } = options ? options.mutation && "mutationKey" in options.mutation && options.mutation.mutationKey ? options : {
|
|
4623
5034
|
...options,
|
|
4624
5035
|
mutation: {
|
|
@@ -4652,18 +5063,27 @@ const getUpdateOrganizationMemberUrl = (organizationId, memberId) => {
|
|
|
4652
5063
|
* @summary Update member
|
|
4653
5064
|
*/
|
|
4654
5065
|
const updateOrganizationMember = async (organizationId, memberId, updateOrganizationMemberRequest, options) => {
|
|
5066
|
+
const getHeaders = (h) => {
|
|
5067
|
+
if (!h) return {};
|
|
5068
|
+
if (h instanceof Headers) return Object.fromEntries(h.entries());
|
|
5069
|
+
if (Symbol.iterator in h) return Object.fromEntries(Array.from(h, (entry) => Array.from(entry)));
|
|
5070
|
+
const headers = {};
|
|
5071
|
+
for (const [name, value] of Object.entries(h)) if (value !== void 0) headers[name] = value;
|
|
5072
|
+
return headers;
|
|
5073
|
+
};
|
|
4655
5074
|
return customFetch(getUpdateOrganizationMemberUrl(organizationId, memberId), {
|
|
4656
5075
|
...options,
|
|
4657
5076
|
method: "PATCH",
|
|
4658
5077
|
headers: {
|
|
4659
5078
|
"Content-Type": "application/json",
|
|
4660
|
-
...options?.headers
|
|
5079
|
+
...getHeaders(options?.headers)
|
|
4661
5080
|
},
|
|
4662
5081
|
body: JSON.stringify(updateOrganizationMemberRequest)
|
|
4663
5082
|
});
|
|
4664
5083
|
};
|
|
5084
|
+
const getUpdateOrganizationMemberMutationKey = () => ["updateOrganizationMember"];
|
|
4665
5085
|
const getUpdateOrganizationMemberMutationOptions = (options) => {
|
|
4666
|
-
const mutationKey =
|
|
5086
|
+
const mutationKey = getUpdateOrganizationMemberMutationKey();
|
|
4667
5087
|
const { mutation: mutationOptions, request: requestOptions } = options ? options.mutation && "mutationKey" in options.mutation && options.mutation.mutationKey ? options : {
|
|
4668
5088
|
...options,
|
|
4669
5089
|
mutation: {
|
|
@@ -4693,7 +5113,7 @@ const useUpdateOrganizationMember = (options, queryClient) => {
|
|
|
4693
5113
|
//#endregion
|
|
4694
5114
|
//#region src/gen/endpoints/organization-teams/organization-teams.ts
|
|
4695
5115
|
/**
|
|
4696
|
-
* Generated by orval
|
|
5116
|
+
* Generated by orval 🍺
|
|
4697
5117
|
* Do not edit manually.
|
|
4698
5118
|
* Authula API
|
|
4699
5119
|
* Authula API - An open-source authentication solution that scales with you.
|
|
@@ -4702,8 +5122,10 @@ const useUpdateOrganizationMember = (options, queryClient) => {
|
|
|
4702
5122
|
var organization_teams_exports = /* @__PURE__ */ __exportAll({
|
|
4703
5123
|
createOrganizationTeam: () => createOrganizationTeam,
|
|
4704
5124
|
deleteOrganizationTeam: () => deleteOrganizationTeam,
|
|
5125
|
+
getCreateOrganizationTeamMutationKey: () => getCreateOrganizationTeamMutationKey,
|
|
4705
5126
|
getCreateOrganizationTeamMutationOptions: () => getCreateOrganizationTeamMutationOptions,
|
|
4706
5127
|
getCreateOrganizationTeamUrl: () => getCreateOrganizationTeamUrl,
|
|
5128
|
+
getDeleteOrganizationTeamMutationKey: () => getDeleteOrganizationTeamMutationKey,
|
|
4707
5129
|
getDeleteOrganizationTeamMutationOptions: () => getDeleteOrganizationTeamMutationOptions,
|
|
4708
5130
|
getDeleteOrganizationTeamUrl: () => getDeleteOrganizationTeamUrl,
|
|
4709
5131
|
getGetOrganizationTeamQueryKey: () => getGetOrganizationTeamQueryKey,
|
|
@@ -4713,6 +5135,7 @@ var organization_teams_exports = /* @__PURE__ */ __exportAll({
|
|
|
4713
5135
|
getListOrganizationTeamsQueryOptions: () => getListOrganizationTeamsQueryOptions,
|
|
4714
5136
|
getListOrganizationTeamsUrl: () => getListOrganizationTeamsUrl,
|
|
4715
5137
|
getOrganizationTeam: () => getOrganizationTeam,
|
|
5138
|
+
getUpdateOrganizationTeamMutationKey: () => getUpdateOrganizationTeamMutationKey,
|
|
4716
5139
|
getUpdateOrganizationTeamMutationOptions: () => getUpdateOrganizationTeamMutationOptions,
|
|
4717
5140
|
getUpdateOrganizationTeamUrl: () => getUpdateOrganizationTeamUrl,
|
|
4718
5141
|
listOrganizationTeams: () => listOrganizationTeams,
|
|
@@ -4786,18 +5209,27 @@ const getCreateOrganizationTeamUrl = (organizationId) => {
|
|
|
4786
5209
|
* @summary Create team
|
|
4787
5210
|
*/
|
|
4788
5211
|
const createOrganizationTeam = async (organizationId, createOrganizationTeamRequest, options) => {
|
|
5212
|
+
const getHeaders = (h) => {
|
|
5213
|
+
if (!h) return {};
|
|
5214
|
+
if (h instanceof Headers) return Object.fromEntries(h.entries());
|
|
5215
|
+
if (Symbol.iterator in h) return Object.fromEntries(Array.from(h, (entry) => Array.from(entry)));
|
|
5216
|
+
const headers = {};
|
|
5217
|
+
for (const [name, value] of Object.entries(h)) if (value !== void 0) headers[name] = value;
|
|
5218
|
+
return headers;
|
|
5219
|
+
};
|
|
4789
5220
|
return customFetch(getCreateOrganizationTeamUrl(organizationId), {
|
|
4790
5221
|
...options,
|
|
4791
5222
|
method: "POST",
|
|
4792
5223
|
headers: {
|
|
4793
5224
|
"Content-Type": "application/json",
|
|
4794
|
-
...options?.headers
|
|
5225
|
+
...getHeaders(options?.headers)
|
|
4795
5226
|
},
|
|
4796
5227
|
body: JSON.stringify(createOrganizationTeamRequest)
|
|
4797
5228
|
});
|
|
4798
5229
|
};
|
|
5230
|
+
const getCreateOrganizationTeamMutationKey = () => ["createOrganizationTeam"];
|
|
4799
5231
|
const getCreateOrganizationTeamMutationOptions = (options) => {
|
|
4800
|
-
const mutationKey =
|
|
5232
|
+
const mutationKey = getCreateOrganizationTeamMutationKey();
|
|
4801
5233
|
const { mutation: mutationOptions, request: requestOptions } = options ? options.mutation && "mutationKey" in options.mutation && options.mutation.mutationKey ? options : {
|
|
4802
5234
|
...options,
|
|
4803
5235
|
mutation: {
|
|
@@ -4874,8 +5306,9 @@ const deleteOrganizationTeam = async (organizationId, teamId, options) => {
|
|
|
4874
5306
|
method: "DELETE"
|
|
4875
5307
|
});
|
|
4876
5308
|
};
|
|
5309
|
+
const getDeleteOrganizationTeamMutationKey = () => ["deleteOrganizationTeam"];
|
|
4877
5310
|
const getDeleteOrganizationTeamMutationOptions = (options) => {
|
|
4878
|
-
const mutationKey =
|
|
5311
|
+
const mutationKey = getDeleteOrganizationTeamMutationKey();
|
|
4879
5312
|
const { mutation: mutationOptions, request: requestOptions } = options ? options.mutation && "mutationKey" in options.mutation && options.mutation.mutationKey ? options : {
|
|
4880
5313
|
...options,
|
|
4881
5314
|
mutation: {
|
|
@@ -4909,18 +5342,27 @@ const getUpdateOrganizationTeamUrl = (organizationId, teamId) => {
|
|
|
4909
5342
|
* @summary Update team
|
|
4910
5343
|
*/
|
|
4911
5344
|
const updateOrganizationTeam = async (organizationId, teamId, updateOrganizationTeamRequest, options) => {
|
|
5345
|
+
const getHeaders = (h) => {
|
|
5346
|
+
if (!h) return {};
|
|
5347
|
+
if (h instanceof Headers) return Object.fromEntries(h.entries());
|
|
5348
|
+
if (Symbol.iterator in h) return Object.fromEntries(Array.from(h, (entry) => Array.from(entry)));
|
|
5349
|
+
const headers = {};
|
|
5350
|
+
for (const [name, value] of Object.entries(h)) if (value !== void 0) headers[name] = value;
|
|
5351
|
+
return headers;
|
|
5352
|
+
};
|
|
4912
5353
|
return customFetch(getUpdateOrganizationTeamUrl(organizationId, teamId), {
|
|
4913
5354
|
...options,
|
|
4914
5355
|
method: "PATCH",
|
|
4915
5356
|
headers: {
|
|
4916
5357
|
"Content-Type": "application/json",
|
|
4917
|
-
...options?.headers
|
|
5358
|
+
...getHeaders(options?.headers)
|
|
4918
5359
|
},
|
|
4919
5360
|
body: JSON.stringify(updateOrganizationTeamRequest)
|
|
4920
5361
|
});
|
|
4921
5362
|
};
|
|
5363
|
+
const getUpdateOrganizationTeamMutationKey = () => ["updateOrganizationTeam"];
|
|
4922
5364
|
const getUpdateOrganizationTeamMutationOptions = (options) => {
|
|
4923
|
-
const mutationKey =
|
|
5365
|
+
const mutationKey = getUpdateOrganizationTeamMutationKey();
|
|
4924
5366
|
const { mutation: mutationOptions, request: requestOptions } = options ? options.mutation && "mutationKey" in options.mutation && options.mutation.mutationKey ? options : {
|
|
4925
5367
|
...options,
|
|
4926
5368
|
mutation: {
|
|
@@ -4950,7 +5392,7 @@ const useUpdateOrganizationTeam = (options, queryClient) => {
|
|
|
4950
5392
|
//#endregion
|
|
4951
5393
|
//#region src/gen/endpoints/organization-team-members/organization-team-members.ts
|
|
4952
5394
|
/**
|
|
4953
|
-
* Generated by orval
|
|
5395
|
+
* Generated by orval 🍺
|
|
4954
5396
|
* Do not edit manually.
|
|
4955
5397
|
* Authula API
|
|
4956
5398
|
* Authula API - An open-source authentication solution that scales with you.
|
|
@@ -4959,8 +5401,10 @@ const useUpdateOrganizationTeam = (options, queryClient) => {
|
|
|
4959
5401
|
var organization_team_members_exports = /* @__PURE__ */ __exportAll({
|
|
4960
5402
|
addOrganizationTeamMember: () => addOrganizationTeamMember,
|
|
4961
5403
|
deleteOrganizationTeamMember: () => deleteOrganizationTeamMember,
|
|
5404
|
+
getAddOrganizationTeamMemberMutationKey: () => getAddOrganizationTeamMemberMutationKey,
|
|
4962
5405
|
getAddOrganizationTeamMemberMutationOptions: () => getAddOrganizationTeamMemberMutationOptions,
|
|
4963
5406
|
getAddOrganizationTeamMemberUrl: () => getAddOrganizationTeamMemberUrl,
|
|
5407
|
+
getDeleteOrganizationTeamMemberMutationKey: () => getDeleteOrganizationTeamMemberMutationKey,
|
|
4964
5408
|
getDeleteOrganizationTeamMemberMutationOptions: () => getDeleteOrganizationTeamMemberMutationOptions,
|
|
4965
5409
|
getDeleteOrganizationTeamMemberUrl: () => getDeleteOrganizationTeamMemberUrl,
|
|
4966
5410
|
getGetOrganizationTeamMemberQueryKey: () => getGetOrganizationTeamMemberQueryKey,
|
|
@@ -5039,18 +5483,27 @@ const getAddOrganizationTeamMemberUrl = (organizationId, teamId) => {
|
|
|
5039
5483
|
* @summary Add team member
|
|
5040
5484
|
*/
|
|
5041
5485
|
const addOrganizationTeamMember = async (organizationId, teamId, addOrganizationTeamMemberRequest, options) => {
|
|
5486
|
+
const getHeaders = (h) => {
|
|
5487
|
+
if (!h) return {};
|
|
5488
|
+
if (h instanceof Headers) return Object.fromEntries(h.entries());
|
|
5489
|
+
if (Symbol.iterator in h) return Object.fromEntries(Array.from(h, (entry) => Array.from(entry)));
|
|
5490
|
+
const headers = {};
|
|
5491
|
+
for (const [name, value] of Object.entries(h)) if (value !== void 0) headers[name] = value;
|
|
5492
|
+
return headers;
|
|
5493
|
+
};
|
|
5042
5494
|
return customFetch(getAddOrganizationTeamMemberUrl(organizationId, teamId), {
|
|
5043
5495
|
...options,
|
|
5044
5496
|
method: "POST",
|
|
5045
5497
|
headers: {
|
|
5046
5498
|
"Content-Type": "application/json",
|
|
5047
|
-
...options?.headers
|
|
5499
|
+
...getHeaders(options?.headers)
|
|
5048
5500
|
},
|
|
5049
5501
|
body: JSON.stringify(addOrganizationTeamMemberRequest)
|
|
5050
5502
|
});
|
|
5051
5503
|
};
|
|
5504
|
+
const getAddOrganizationTeamMemberMutationKey = () => ["addOrganizationTeamMember"];
|
|
5052
5505
|
const getAddOrganizationTeamMemberMutationOptions = (options) => {
|
|
5053
|
-
const mutationKey =
|
|
5506
|
+
const mutationKey = getAddOrganizationTeamMemberMutationKey();
|
|
5054
5507
|
const { mutation: mutationOptions, request: requestOptions } = options ? options.mutation && "mutationKey" in options.mutation && options.mutation.mutationKey ? options : {
|
|
5055
5508
|
...options,
|
|
5056
5509
|
mutation: {
|
|
@@ -5127,8 +5580,9 @@ const deleteOrganizationTeamMember = async (organizationId, teamId, memberId, op
|
|
|
5127
5580
|
method: "DELETE"
|
|
5128
5581
|
});
|
|
5129
5582
|
};
|
|
5583
|
+
const getDeleteOrganizationTeamMemberMutationKey = () => ["deleteOrganizationTeamMember"];
|
|
5130
5584
|
const getDeleteOrganizationTeamMemberMutationOptions = (options) => {
|
|
5131
|
-
const mutationKey =
|
|
5585
|
+
const mutationKey = getDeleteOrganizationTeamMemberMutationKey();
|
|
5132
5586
|
const { mutation: mutationOptions, request: requestOptions } = options ? options.mutation && "mutationKey" in options.mutation && options.mutation.mutationKey ? options : {
|
|
5133
5587
|
...options,
|
|
5134
5588
|
mutation: {
|
|
@@ -5173,7 +5627,7 @@ var OrganizationsPlugin = class {
|
|
|
5173
5627
|
//#endregion
|
|
5174
5628
|
//#region src/gen/endpoints/totp-plugin/totp-plugin.ts
|
|
5175
5629
|
/**
|
|
5176
|
-
* Generated by orval
|
|
5630
|
+
* Generated by orval 🍺
|
|
5177
5631
|
* Do not edit manually.
|
|
5178
5632
|
* Authula API
|
|
5179
5633
|
* Authula API - An open-source authentication solution that scales with you.
|
|
@@ -5183,18 +5637,23 @@ var totp_plugin_exports = /* @__PURE__ */ __exportAll({
|
|
|
5183
5637
|
disableTotp: () => disableTotp,
|
|
5184
5638
|
enableTotp: () => enableTotp,
|
|
5185
5639
|
generateTotpBackupCodes: () => generateTotpBackupCodes,
|
|
5640
|
+
getDisableTotpMutationKey: () => getDisableTotpMutationKey,
|
|
5186
5641
|
getDisableTotpMutationOptions: () => getDisableTotpMutationOptions,
|
|
5187
5642
|
getDisableTotpUrl: () => getDisableTotpUrl,
|
|
5643
|
+
getEnableTotpMutationKey: () => getEnableTotpMutationKey,
|
|
5188
5644
|
getEnableTotpMutationOptions: () => getEnableTotpMutationOptions,
|
|
5189
5645
|
getEnableTotpUrl: () => getEnableTotpUrl,
|
|
5646
|
+
getGenerateTotpBackupCodesMutationKey: () => getGenerateTotpBackupCodesMutationKey,
|
|
5190
5647
|
getGenerateTotpBackupCodesMutationOptions: () => getGenerateTotpBackupCodesMutationOptions,
|
|
5191
5648
|
getGenerateTotpBackupCodesUrl: () => getGenerateTotpBackupCodesUrl,
|
|
5192
5649
|
getGetTotpURIQueryKey: () => getGetTotpURIQueryKey,
|
|
5193
5650
|
getGetTotpURIQueryOptions: () => getGetTotpURIQueryOptions,
|
|
5194
5651
|
getGetTotpURIUrl: () => getGetTotpURIUrl,
|
|
5195
5652
|
getTotpURI: () => getTotpURI,
|
|
5653
|
+
getVerifyTotpBackupCodeMutationKey: () => getVerifyTotpBackupCodeMutationKey,
|
|
5196
5654
|
getVerifyTotpBackupCodeMutationOptions: () => getVerifyTotpBackupCodeMutationOptions,
|
|
5197
5655
|
getVerifyTotpBackupCodeUrl: () => getVerifyTotpBackupCodeUrl,
|
|
5656
|
+
getVerifyTotpMutationKey: () => getVerifyTotpMutationKey,
|
|
5198
5657
|
getVerifyTotpMutationOptions: () => getVerifyTotpMutationOptions,
|
|
5199
5658
|
getVerifyTotpUrl: () => getVerifyTotpUrl,
|
|
5200
5659
|
useDisableTotp: () => useDisableTotp,
|
|
@@ -5231,8 +5690,9 @@ const disableTotp = async (options) => {
|
|
|
5231
5690
|
method: "POST"
|
|
5232
5691
|
});
|
|
5233
5692
|
};
|
|
5693
|
+
const getDisableTotpMutationKey = () => ["disableTotp"];
|
|
5234
5694
|
const getDisableTotpMutationOptions = (options) => {
|
|
5235
|
-
const mutationKey =
|
|
5695
|
+
const mutationKey = getDisableTotpMutationKey();
|
|
5236
5696
|
const { mutation: mutationOptions, request: requestOptions } = options ? options.mutation && "mutationKey" in options.mutation && options.mutation.mutationKey ? options : {
|
|
5237
5697
|
...options,
|
|
5238
5698
|
mutation: {
|
|
@@ -5270,8 +5730,9 @@ const enableTotp = async (options) => {
|
|
|
5270
5730
|
method: "POST"
|
|
5271
5731
|
});
|
|
5272
5732
|
};
|
|
5733
|
+
const getEnableTotpMutationKey = () => ["enableTotp"];
|
|
5273
5734
|
const getEnableTotpMutationOptions = (options) => {
|
|
5274
|
-
const mutationKey =
|
|
5735
|
+
const mutationKey = getEnableTotpMutationKey();
|
|
5275
5736
|
const { mutation: mutationOptions, request: requestOptions } = options ? options.mutation && "mutationKey" in options.mutation && options.mutation.mutationKey ? options : {
|
|
5276
5737
|
...options,
|
|
5277
5738
|
mutation: {
|
|
@@ -5309,8 +5770,9 @@ const generateTotpBackupCodes = async (options) => {
|
|
|
5309
5770
|
method: "POST"
|
|
5310
5771
|
});
|
|
5311
5772
|
};
|
|
5773
|
+
const getGenerateTotpBackupCodesMutationKey = () => ["generateTotpBackupCodes"];
|
|
5312
5774
|
const getGenerateTotpBackupCodesMutationOptions = (options) => {
|
|
5313
|
-
const mutationKey =
|
|
5775
|
+
const mutationKey = getGenerateTotpBackupCodesMutationKey();
|
|
5314
5776
|
const { mutation: mutationOptions, request: requestOptions } = options ? options.mutation && "mutationKey" in options.mutation && options.mutation.mutationKey ? options : {
|
|
5315
5777
|
...options,
|
|
5316
5778
|
mutation: {
|
|
@@ -5380,18 +5842,27 @@ const getVerifyTotpUrl = () => {
|
|
|
5380
5842
|
* @summary Verify TOTP code
|
|
5381
5843
|
*/
|
|
5382
5844
|
const verifyTotp = async (verifyTOTPRequest, options) => {
|
|
5845
|
+
const getHeaders = (h) => {
|
|
5846
|
+
if (!h) return {};
|
|
5847
|
+
if (h instanceof Headers) return Object.fromEntries(h.entries());
|
|
5848
|
+
if (Symbol.iterator in h) return Object.fromEntries(Array.from(h, (entry) => Array.from(entry)));
|
|
5849
|
+
const headers = {};
|
|
5850
|
+
for (const [name, value] of Object.entries(h)) if (value !== void 0) headers[name] = value;
|
|
5851
|
+
return headers;
|
|
5852
|
+
};
|
|
5383
5853
|
return customFetch(getVerifyTotpUrl(), {
|
|
5384
5854
|
...options,
|
|
5385
5855
|
method: "POST",
|
|
5386
5856
|
headers: {
|
|
5387
5857
|
"Content-Type": "application/json",
|
|
5388
|
-
...options?.headers
|
|
5858
|
+
...getHeaders(options?.headers)
|
|
5389
5859
|
},
|
|
5390
5860
|
body: JSON.stringify(verifyTOTPRequest)
|
|
5391
5861
|
});
|
|
5392
5862
|
};
|
|
5863
|
+
const getVerifyTotpMutationKey = () => ["verifyTotp"];
|
|
5393
5864
|
const getVerifyTotpMutationOptions = (options) => {
|
|
5394
|
-
const mutationKey =
|
|
5865
|
+
const mutationKey = getVerifyTotpMutationKey();
|
|
5395
5866
|
const { mutation: mutationOptions, request: requestOptions } = options ? options.mutation && "mutationKey" in options.mutation && options.mutation.mutationKey ? options : {
|
|
5396
5867
|
...options,
|
|
5397
5868
|
mutation: {
|
|
@@ -5425,18 +5896,27 @@ const getVerifyTotpBackupCodeUrl = () => {
|
|
|
5425
5896
|
* @summary Verify backup code
|
|
5426
5897
|
*/
|
|
5427
5898
|
const verifyTotpBackupCode = async (verifyBackupCodeRequest, options) => {
|
|
5899
|
+
const getHeaders = (h) => {
|
|
5900
|
+
if (!h) return {};
|
|
5901
|
+
if (h instanceof Headers) return Object.fromEntries(h.entries());
|
|
5902
|
+
if (Symbol.iterator in h) return Object.fromEntries(Array.from(h, (entry) => Array.from(entry)));
|
|
5903
|
+
const headers = {};
|
|
5904
|
+
for (const [name, value] of Object.entries(h)) if (value !== void 0) headers[name] = value;
|
|
5905
|
+
return headers;
|
|
5906
|
+
};
|
|
5428
5907
|
return customFetch(getVerifyTotpBackupCodeUrl(), {
|
|
5429
5908
|
...options,
|
|
5430
5909
|
method: "POST",
|
|
5431
5910
|
headers: {
|
|
5432
5911
|
"Content-Type": "application/json",
|
|
5433
|
-
...options?.headers
|
|
5912
|
+
...getHeaders(options?.headers)
|
|
5434
5913
|
},
|
|
5435
5914
|
body: JSON.stringify(verifyBackupCodeRequest)
|
|
5436
5915
|
});
|
|
5437
5916
|
};
|
|
5917
|
+
const getVerifyTotpBackupCodeMutationKey = () => ["verifyTotpBackupCode"];
|
|
5438
5918
|
const getVerifyTotpBackupCodeMutationOptions = (options) => {
|
|
5439
|
-
const mutationKey =
|
|
5919
|
+
const mutationKey = getVerifyTotpBackupCodeMutationKey();
|
|
5440
5920
|
const { mutation: mutationOptions, request: requestOptions } = options ? options.mutation && "mutationKey" in options.mutation && options.mutation.mutationKey ? options : {
|
|
5441
5921
|
...options,
|
|
5442
5922
|
mutation: {
|