authula 0.7.15 → 0.8.0-beta.0
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.
Potentially problematic release.
This version of authula might be problematic. Click here for more details.
- package/README.md +196 -40
- package/dist/{index.js → core-Csdt31Tx.js} +6 -17
- package/dist/core-Csdt31Tx.js.map +1 -0
- package/dist/core.d.ts +2 -0
- package/dist/core.js +4 -0
- package/dist/{custom-fetch-CXJ4-i7I.js → custom-fetch-DJxn7nVP.js} +26 -10
- package/dist/custom-fetch-DJxn7nVP.js.map +1 -0
- package/dist/framework-client-CsGjKPXl.d.ts +8 -0
- package/dist/framework-client-D-yGjqAx.js +50 -0
- package/dist/framework-client-D-yGjqAx.js.map +1 -0
- package/dist/{index-DVhn7FFt.d.ts → index-Cuok0NWW.d.ts} +4 -448
- package/dist/models.d.ts +2 -0
- package/dist/models.js +11 -0
- package/dist/models.js.map +1 -0
- package/dist/plugins.d.ts +513 -0
- package/dist/plugins.js +2472 -0
- package/dist/plugins.js.map +1 -0
- package/dist/react.d.ts +3728 -0
- package/dist/{plugins/index.js → react.js} +975 -1256
- package/dist/react.js.map +1 -0
- package/dist/{rolldown-runtime-w6R9maHv.js → rolldown-runtime-CNh9ExCG.js} +1 -2
- package/dist/sdk-Cu28BXFh.d.ts +102 -0
- package/dist/solid.d.ts +3955 -0
- package/dist/solid.js +5461 -0
- package/dist/solid.js.map +1 -0
- package/dist/svelte.d.ts +3368 -0
- package/dist/svelte.js +5500 -0
- package/dist/svelte.js.map +1 -0
- package/dist/vue.d.ts +3289 -0
- package/dist/vue.js +5644 -0
- package/dist/vue.js.map +1 -0
- package/dist/zod.d.ts +3862 -0
- package/dist/zod.js +1480 -0
- package/dist/zod.js.map +1 -0
- package/package.json +68 -16
- package/dist/custom-fetch-CXJ4-i7I.js.map +0 -1
- package/dist/index.d.ts +0 -2
- package/dist/index.js.map +0 -1
- package/dist/plugins/index.d.ts +0 -4907
- package/dist/plugins/index.js.map +0 -1
|
@@ -1,64 +1,10 @@
|
|
|
1
|
-
import { t as __exportAll } from "
|
|
2
|
-
import { n as customFetch } from "
|
|
1
|
+
import { t as __exportAll } from "./rolldown-runtime-CNh9ExCG.js";
|
|
2
|
+
import { n as customFetch, t as ApiError } from "./custom-fetch-DJxn7nVP.js";
|
|
3
|
+
import { n as AuthulaClient, t as createClient$1 } from "./core-Csdt31Tx.js";
|
|
4
|
+
import { t as attachFrameworkHooks } from "./framework-client-D-yGjqAx.js";
|
|
3
5
|
import { useMutation, useQuery } from "@tanstack/react-query";
|
|
4
6
|
|
|
5
|
-
|
|
6
|
-
function isHookKey(key) {
|
|
7
|
-
return key.startsWith("use") && key[3] === key[3]?.toUpperCase();
|
|
8
|
-
}
|
|
9
|
-
function wrapGenerated(mod, client) {
|
|
10
|
-
const baseUrl = client.config.url.replace(/\/+$/, "");
|
|
11
|
-
const cookies = client.config.cookies;
|
|
12
|
-
const onBeforeFetch = (ctx) => client.runBeforeFetch(ctx);
|
|
13
|
-
const onAfterFetch = (ctx, res) => client.runAfterFetch(ctx, res);
|
|
14
|
-
const wrapped = {};
|
|
15
|
-
for (const [key, value] of Object.entries(mod)) {
|
|
16
|
-
if (typeof value !== "function") {
|
|
17
|
-
wrapped[key] = value;
|
|
18
|
-
continue;
|
|
19
|
-
}
|
|
20
|
-
if (isHookKey(key)) wrapped[key] = (...args) => {
|
|
21
|
-
const ctx = {
|
|
22
|
-
baseUrl,
|
|
23
|
-
cookies,
|
|
24
|
-
onBeforeFetch,
|
|
25
|
-
onAfterFetch
|
|
26
|
-
};
|
|
27
|
-
let optionsIdx = Math.max(0, value.length - 2);
|
|
28
|
-
if (args[optionsIdx] != null && typeof args[optionsIdx] !== "object") optionsIdx = Math.max(0, value.length - 1);
|
|
29
|
-
while (args.length <= optionsIdx) args.push(void 0);
|
|
30
|
-
const existing = args[optionsIdx] ?? {};
|
|
31
|
-
args[optionsIdx] = {
|
|
32
|
-
...typeof existing === "object" && existing !== null ? existing : {},
|
|
33
|
-
request: {
|
|
34
|
-
...existing?.request,
|
|
35
|
-
...ctx
|
|
36
|
-
}
|
|
37
|
-
};
|
|
38
|
-
return value(...args);
|
|
39
|
-
};
|
|
40
|
-
else wrapped[key] = (...args) => {
|
|
41
|
-
const ctx = {
|
|
42
|
-
baseUrl,
|
|
43
|
-
cookies,
|
|
44
|
-
onBeforeFetch,
|
|
45
|
-
onAfterFetch
|
|
46
|
-
};
|
|
47
|
-
const optionsIdx = value.length - 1;
|
|
48
|
-
while (args.length < optionsIdx) args.push(void 0);
|
|
49
|
-
if (optionsIdx >= 0 && args.length === optionsIdx) args.push(ctx);
|
|
50
|
-
else if (optionsIdx >= 0) args[optionsIdx] = {
|
|
51
|
-
...args[optionsIdx],
|
|
52
|
-
...ctx
|
|
53
|
-
};
|
|
54
|
-
return value(...args);
|
|
55
|
-
};
|
|
56
|
-
}
|
|
57
|
-
return wrapped;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
//#endregion
|
|
61
|
-
//#region src/gen/endpoints/access-control/access-control.ts
|
|
7
|
+
// src/gen/react/access-control/access-control.ts
|
|
62
8
|
/**
|
|
63
9
|
* Generated by orval 🍺
|
|
64
10
|
* Do not edit manually.
|
|
@@ -66,118 +12,6 @@ function wrapGenerated(mod, client) {
|
|
|
66
12
|
* Authula API - An open-source authentication solution that scales with you.
|
|
67
13
|
* OpenAPI spec version: 0.1.0
|
|
68
14
|
*/
|
|
69
|
-
var access_control_exports = /* @__PURE__ */ __exportAll({
|
|
70
|
-
addRolePermission: () => addRolePermission,
|
|
71
|
-
assignUserRole: () => assignUserRole,
|
|
72
|
-
checkUserPermissions: () => checkUserPermissions,
|
|
73
|
-
createPermission: () => createPermission,
|
|
74
|
-
createRole: () => createRole,
|
|
75
|
-
deletePermission: () => deletePermission,
|
|
76
|
-
deleteRole: () => deleteRole,
|
|
77
|
-
getAddRolePermissionMutationKey: () => getAddRolePermissionMutationKey,
|
|
78
|
-
getAddRolePermissionMutationOptions: () => getAddRolePermissionMutationOptions,
|
|
79
|
-
getAddRolePermissionUrl: () => getAddRolePermissionUrl,
|
|
80
|
-
getAssignUserRoleMutationKey: () => getAssignUserRoleMutationKey,
|
|
81
|
-
getAssignUserRoleMutationOptions: () => getAssignUserRoleMutationOptions,
|
|
82
|
-
getAssignUserRoleUrl: () => getAssignUserRoleUrl,
|
|
83
|
-
getCheckUserPermissionsMutationKey: () => getCheckUserPermissionsMutationKey,
|
|
84
|
-
getCheckUserPermissionsMutationOptions: () => getCheckUserPermissionsMutationOptions,
|
|
85
|
-
getCheckUserPermissionsUrl: () => getCheckUserPermissionsUrl,
|
|
86
|
-
getCreatePermissionMutationKey: () => getCreatePermissionMutationKey,
|
|
87
|
-
getCreatePermissionMutationOptions: () => getCreatePermissionMutationOptions,
|
|
88
|
-
getCreatePermissionUrl: () => getCreatePermissionUrl,
|
|
89
|
-
getCreateRoleMutationKey: () => getCreateRoleMutationKey,
|
|
90
|
-
getCreateRoleMutationOptions: () => getCreateRoleMutationOptions,
|
|
91
|
-
getCreateRoleUrl: () => getCreateRoleUrl,
|
|
92
|
-
getDeletePermissionMutationKey: () => getDeletePermissionMutationKey,
|
|
93
|
-
getDeletePermissionMutationOptions: () => getDeletePermissionMutationOptions,
|
|
94
|
-
getDeletePermissionUrl: () => getDeletePermissionUrl,
|
|
95
|
-
getDeleteRoleMutationKey: () => getDeleteRoleMutationKey,
|
|
96
|
-
getDeleteRoleMutationOptions: () => getDeleteRoleMutationOptions,
|
|
97
|
-
getDeleteRoleUrl: () => getDeleteRoleUrl,
|
|
98
|
-
getGetPermissionByKeyQueryKey: () => getGetPermissionByKeyQueryKey,
|
|
99
|
-
getGetPermissionByKeyQueryOptions: () => getGetPermissionByKeyQueryOptions,
|
|
100
|
-
getGetPermissionByKeyUrl: () => getGetPermissionByKeyUrl,
|
|
101
|
-
getGetPermissionQueryKey: () => getGetPermissionQueryKey,
|
|
102
|
-
getGetPermissionQueryOptions: () => getGetPermissionQueryOptions,
|
|
103
|
-
getGetPermissionUrl: () => getGetPermissionUrl,
|
|
104
|
-
getGetRoleByNameQueryKey: () => getGetRoleByNameQueryKey,
|
|
105
|
-
getGetRoleByNameQueryOptions: () => getGetRoleByNameQueryOptions,
|
|
106
|
-
getGetRoleByNameUrl: () => getGetRoleByNameUrl,
|
|
107
|
-
getGetRoleQueryKey: () => getGetRoleQueryKey,
|
|
108
|
-
getGetRoleQueryOptions: () => getGetRoleQueryOptions,
|
|
109
|
-
getGetRoleUrl: () => getGetRoleUrl,
|
|
110
|
-
getGetUserPermissionsQueryKey: () => getGetUserPermissionsQueryKey,
|
|
111
|
-
getGetUserPermissionsQueryOptions: () => getGetUserPermissionsQueryOptions,
|
|
112
|
-
getGetUserPermissionsUrl: () => getGetUserPermissionsUrl,
|
|
113
|
-
getListPermissionsQueryKey: () => getListPermissionsQueryKey,
|
|
114
|
-
getListPermissionsQueryOptions: () => getListPermissionsQueryOptions,
|
|
115
|
-
getListPermissionsUrl: () => getListPermissionsUrl,
|
|
116
|
-
getListRolePermissionsQueryKey: () => getListRolePermissionsQueryKey,
|
|
117
|
-
getListRolePermissionsQueryOptions: () => getListRolePermissionsQueryOptions,
|
|
118
|
-
getListRolePermissionsUrl: () => getListRolePermissionsUrl,
|
|
119
|
-
getListRolesQueryKey: () => getListRolesQueryKey,
|
|
120
|
-
getListRolesQueryOptions: () => getListRolesQueryOptions,
|
|
121
|
-
getListRolesUrl: () => getListRolesUrl,
|
|
122
|
-
getListUserRolesQueryKey: () => getListUserRolesQueryKey,
|
|
123
|
-
getListUserRolesQueryOptions: () => getListUserRolesQueryOptions,
|
|
124
|
-
getListUserRolesUrl: () => getListUserRolesUrl,
|
|
125
|
-
getPermission: () => getPermission,
|
|
126
|
-
getPermissionByKey: () => getPermissionByKey,
|
|
127
|
-
getRemoveRolePermissionMutationKey: () => getRemoveRolePermissionMutationKey,
|
|
128
|
-
getRemoveRolePermissionMutationOptions: () => getRemoveRolePermissionMutationOptions,
|
|
129
|
-
getRemoveRolePermissionUrl: () => getRemoveRolePermissionUrl,
|
|
130
|
-
getRemoveUserRoleMutationKey: () => getRemoveUserRoleMutationKey,
|
|
131
|
-
getRemoveUserRoleMutationOptions: () => getRemoveUserRoleMutationOptions,
|
|
132
|
-
getRemoveUserRoleUrl: () => getRemoveUserRoleUrl,
|
|
133
|
-
getReplaceRolePermissionsMutationKey: () => getReplaceRolePermissionsMutationKey,
|
|
134
|
-
getReplaceRolePermissionsMutationOptions: () => getReplaceRolePermissionsMutationOptions,
|
|
135
|
-
getReplaceRolePermissionsUrl: () => getReplaceRolePermissionsUrl,
|
|
136
|
-
getReplaceUserRolesMutationKey: () => getReplaceUserRolesMutationKey,
|
|
137
|
-
getReplaceUserRolesMutationOptions: () => getReplaceUserRolesMutationOptions,
|
|
138
|
-
getReplaceUserRolesUrl: () => getReplaceUserRolesUrl,
|
|
139
|
-
getRole: () => getRole,
|
|
140
|
-
getRoleByName: () => getRoleByName,
|
|
141
|
-
getUpdatePermissionMutationKey: () => getUpdatePermissionMutationKey,
|
|
142
|
-
getUpdatePermissionMutationOptions: () => getUpdatePermissionMutationOptions,
|
|
143
|
-
getUpdatePermissionUrl: () => getUpdatePermissionUrl,
|
|
144
|
-
getUpdateRoleMutationKey: () => getUpdateRoleMutationKey,
|
|
145
|
-
getUpdateRoleMutationOptions: () => getUpdateRoleMutationOptions,
|
|
146
|
-
getUpdateRoleUrl: () => getUpdateRoleUrl,
|
|
147
|
-
getUserPermissions: () => getUserPermissions,
|
|
148
|
-
listPermissions: () => listPermissions,
|
|
149
|
-
listRolePermissions: () => listRolePermissions,
|
|
150
|
-
listRoles: () => listRoles,
|
|
151
|
-
listUserRoles: () => listUserRoles,
|
|
152
|
-
removeRolePermission: () => removeRolePermission,
|
|
153
|
-
removeUserRole: () => removeUserRole,
|
|
154
|
-
replaceRolePermissions: () => replaceRolePermissions,
|
|
155
|
-
replaceUserRoles: () => replaceUserRoles,
|
|
156
|
-
updatePermission: () => updatePermission,
|
|
157
|
-
updateRole: () => updateRole,
|
|
158
|
-
useAddRolePermission: () => useAddRolePermission,
|
|
159
|
-
useAssignUserRole: () => useAssignUserRole,
|
|
160
|
-
useCheckUserPermissions: () => useCheckUserPermissions,
|
|
161
|
-
useCreatePermission: () => useCreatePermission,
|
|
162
|
-
useCreateRole: () => useCreateRole,
|
|
163
|
-
useDeletePermission: () => useDeletePermission,
|
|
164
|
-
useDeleteRole: () => useDeleteRole,
|
|
165
|
-
useGetPermission: () => useGetPermission,
|
|
166
|
-
useGetPermissionByKey: () => useGetPermissionByKey,
|
|
167
|
-
useGetRole: () => useGetRole,
|
|
168
|
-
useGetRoleByName: () => useGetRoleByName,
|
|
169
|
-
useGetUserPermissions: () => useGetUserPermissions,
|
|
170
|
-
useListPermissions: () => useListPermissions,
|
|
171
|
-
useListRolePermissions: () => useListRolePermissions,
|
|
172
|
-
useListRoles: () => useListRoles,
|
|
173
|
-
useListUserRoles: () => useListUserRoles,
|
|
174
|
-
useRemoveRolePermission: () => useRemoveRolePermission,
|
|
175
|
-
useRemoveUserRole: () => useRemoveUserRole,
|
|
176
|
-
useReplaceRolePermissions: () => useReplaceRolePermissions,
|
|
177
|
-
useReplaceUserRoles: () => useReplaceUserRoles,
|
|
178
|
-
useUpdatePermission: () => useUpdatePermission,
|
|
179
|
-
useUpdateRole: () => useUpdateRole
|
|
180
|
-
});
|
|
181
15
|
const withQueryKey$17 = (query, queryKey) => {
|
|
182
16
|
const result = { queryKey };
|
|
183
17
|
for (const key of Object.keys(query)) {
|
|
@@ -1181,18 +1015,7 @@ const useRemoveUserRole = (options, queryClient) => {
|
|
|
1181
1015
|
return useMutation(getRemoveUserRoleMutationOptions(options), queryClient);
|
|
1182
1016
|
};
|
|
1183
1017
|
|
|
1184
|
-
|
|
1185
|
-
//#region src/plugins/access-control/plugin.ts
|
|
1186
|
-
var AccessControlPlugin = class {
|
|
1187
|
-
id = "accessControl";
|
|
1188
|
-
constructor() {}
|
|
1189
|
-
init(client) {
|
|
1190
|
-
return wrapGenerated(access_control_exports, client);
|
|
1191
|
-
}
|
|
1192
|
-
};
|
|
1193
|
-
|
|
1194
|
-
//#endregion
|
|
1195
|
-
//#region src/gen/endpoints/admin-accounts/admin-accounts.ts
|
|
1018
|
+
// src/gen/react/admin-accounts/admin-accounts.ts
|
|
1196
1019
|
/**
|
|
1197
1020
|
* Generated by orval 🍺
|
|
1198
1021
|
* Do not edit manually.
|
|
@@ -1200,33 +1023,6 @@ var AccessControlPlugin = class {
|
|
|
1200
1023
|
* Authula API - An open-source authentication solution that scales with you.
|
|
1201
1024
|
* OpenAPI spec version: 0.1.0
|
|
1202
1025
|
*/
|
|
1203
|
-
var admin_accounts_exports = /* @__PURE__ */ __exportAll({
|
|
1204
|
-
createAccount: () => createAccount,
|
|
1205
|
-
deleteAccount: () => deleteAccount,
|
|
1206
|
-
getAccount: () => getAccount,
|
|
1207
|
-
getCreateAccountMutationKey: () => getCreateAccountMutationKey,
|
|
1208
|
-
getCreateAccountMutationOptions: () => getCreateAccountMutationOptions,
|
|
1209
|
-
getCreateAccountUrl: () => getCreateAccountUrl,
|
|
1210
|
-
getDeleteAccountMutationKey: () => getDeleteAccountMutationKey,
|
|
1211
|
-
getDeleteAccountMutationOptions: () => getDeleteAccountMutationOptions,
|
|
1212
|
-
getDeleteAccountUrl: () => getDeleteAccountUrl,
|
|
1213
|
-
getGetAccountQueryKey: () => getGetAccountQueryKey,
|
|
1214
|
-
getGetAccountQueryOptions: () => getGetAccountQueryOptions,
|
|
1215
|
-
getGetAccountUrl: () => getGetAccountUrl,
|
|
1216
|
-
getListUserAccountsQueryKey: () => getListUserAccountsQueryKey,
|
|
1217
|
-
getListUserAccountsQueryOptions: () => getListUserAccountsQueryOptions,
|
|
1218
|
-
getListUserAccountsUrl: () => getListUserAccountsUrl,
|
|
1219
|
-
getUpdateAccountMutationKey: () => getUpdateAccountMutationKey,
|
|
1220
|
-
getUpdateAccountMutationOptions: () => getUpdateAccountMutationOptions,
|
|
1221
|
-
getUpdateAccountUrl: () => getUpdateAccountUrl,
|
|
1222
|
-
listUserAccounts: () => listUserAccounts,
|
|
1223
|
-
updateAccount: () => updateAccount,
|
|
1224
|
-
useCreateAccount: () => useCreateAccount,
|
|
1225
|
-
useDeleteAccount: () => useDeleteAccount,
|
|
1226
|
-
useGetAccount: () => useGetAccount,
|
|
1227
|
-
useListUserAccounts: () => useListUserAccounts,
|
|
1228
|
-
useUpdateAccount: () => useUpdateAccount
|
|
1229
|
-
});
|
|
1230
1026
|
const withQueryKey$16 = (query, queryKey) => {
|
|
1231
1027
|
const result = { queryKey };
|
|
1232
1028
|
for (const key of Object.keys(query)) {
|
|
@@ -1465,8 +1261,7 @@ const useCreateAccount = (options, queryClient) => {
|
|
|
1465
1261
|
return useMutation(getCreateAccountMutationOptions(options), queryClient);
|
|
1466
1262
|
};
|
|
1467
1263
|
|
|
1468
|
-
|
|
1469
|
-
//#region src/gen/endpoints/admin-impersonation/admin-impersonation.ts
|
|
1264
|
+
// src/gen/react/admin-impersonation/admin-impersonation.ts
|
|
1470
1265
|
/**
|
|
1471
1266
|
* Generated by orval 🍺
|
|
1472
1267
|
* Do not edit manually.
|
|
@@ -1474,28 +1269,6 @@ const useCreateAccount = (options, queryClient) => {
|
|
|
1474
1269
|
* Authula API - An open-source authentication solution that scales with you.
|
|
1475
1270
|
* OpenAPI spec version: 0.1.0
|
|
1476
1271
|
*/
|
|
1477
|
-
var admin_impersonation_exports = /* @__PURE__ */ __exportAll({
|
|
1478
|
-
getGetImpersonationQueryKey: () => getGetImpersonationQueryKey,
|
|
1479
|
-
getGetImpersonationQueryOptions: () => getGetImpersonationQueryOptions,
|
|
1480
|
-
getGetImpersonationUrl: () => getGetImpersonationUrl,
|
|
1481
|
-
getImpersonation: () => getImpersonation,
|
|
1482
|
-
getListImpersonationsQueryKey: () => getListImpersonationsQueryKey,
|
|
1483
|
-
getListImpersonationsQueryOptions: () => getListImpersonationsQueryOptions,
|
|
1484
|
-
getListImpersonationsUrl: () => getListImpersonationsUrl,
|
|
1485
|
-
getStartImpersonationMutationKey: () => getStartImpersonationMutationKey,
|
|
1486
|
-
getStartImpersonationMutationOptions: () => getStartImpersonationMutationOptions,
|
|
1487
|
-
getStartImpersonationUrl: () => getStartImpersonationUrl,
|
|
1488
|
-
getStopImpersonationMutationKey: () => getStopImpersonationMutationKey,
|
|
1489
|
-
getStopImpersonationMutationOptions: () => getStopImpersonationMutationOptions,
|
|
1490
|
-
getStopImpersonationUrl: () => getStopImpersonationUrl,
|
|
1491
|
-
listImpersonations: () => listImpersonations,
|
|
1492
|
-
startImpersonation: () => startImpersonation,
|
|
1493
|
-
stopImpersonation: () => stopImpersonation,
|
|
1494
|
-
useGetImpersonation: () => useGetImpersonation,
|
|
1495
|
-
useListImpersonations: () => useListImpersonations,
|
|
1496
|
-
useStartImpersonation: () => useStartImpersonation,
|
|
1497
|
-
useStopImpersonation: () => useStopImpersonation
|
|
1498
|
-
});
|
|
1499
1272
|
const withQueryKey$15 = (query, queryKey) => {
|
|
1500
1273
|
const result = { queryKey };
|
|
1501
1274
|
for (const key of Object.keys(query)) {
|
|
@@ -1679,8 +1452,7 @@ const useStopImpersonation = (options, queryClient) => {
|
|
|
1679
1452
|
return useMutation(getStopImpersonationMutationOptions(options), queryClient);
|
|
1680
1453
|
};
|
|
1681
1454
|
|
|
1682
|
-
|
|
1683
|
-
//#region src/gen/endpoints/admin-session-state/admin-session-state.ts
|
|
1455
|
+
// src/gen/react/admin-session-state/admin-session-state.ts
|
|
1684
1456
|
/**
|
|
1685
1457
|
* Generated by orval 🍺
|
|
1686
1458
|
* Do not edit manually.
|
|
@@ -1688,38 +1460,6 @@ const useStopImpersonation = (options, queryClient) => {
|
|
|
1688
1460
|
* Authula API - An open-source authentication solution that scales with you.
|
|
1689
1461
|
* OpenAPI spec version: 0.1.0
|
|
1690
1462
|
*/
|
|
1691
|
-
var admin_session_state_exports = /* @__PURE__ */ __exportAll({
|
|
1692
|
-
createSessionState: () => createSessionState,
|
|
1693
|
-
deleteSessionState: () => deleteSessionState,
|
|
1694
|
-
getCreateSessionStateMutationKey: () => getCreateSessionStateMutationKey,
|
|
1695
|
-
getCreateSessionStateMutationOptions: () => getCreateSessionStateMutationOptions,
|
|
1696
|
-
getCreateSessionStateUrl: () => getCreateSessionStateUrl,
|
|
1697
|
-
getDeleteSessionStateMutationKey: () => getDeleteSessionStateMutationKey,
|
|
1698
|
-
getDeleteSessionStateMutationOptions: () => getDeleteSessionStateMutationOptions,
|
|
1699
|
-
getDeleteSessionStateUrl: () => getDeleteSessionStateUrl,
|
|
1700
|
-
getGetSessionStateQueryKey: () => getGetSessionStateQueryKey,
|
|
1701
|
-
getGetSessionStateQueryOptions: () => getGetSessionStateQueryOptions,
|
|
1702
|
-
getGetSessionStateUrl: () => getGetSessionStateUrl,
|
|
1703
|
-
getListRevokedSessionStatesQueryKey: () => getListRevokedSessionStatesQueryKey,
|
|
1704
|
-
getListRevokedSessionStatesQueryOptions: () => getListRevokedSessionStatesQueryOptions,
|
|
1705
|
-
getListRevokedSessionStatesUrl: () => getListRevokedSessionStatesUrl,
|
|
1706
|
-
getRevokeSessionMutationKey: () => getRevokeSessionMutationKey,
|
|
1707
|
-
getRevokeSessionMutationOptions: () => getRevokeSessionMutationOptions,
|
|
1708
|
-
getRevokeSessionUrl: () => getRevokeSessionUrl,
|
|
1709
|
-
getSessionState: () => getSessionState,
|
|
1710
|
-
getUpdateSessionStateMutationKey: () => getUpdateSessionStateMutationKey,
|
|
1711
|
-
getUpdateSessionStateMutationOptions: () => getUpdateSessionStateMutationOptions,
|
|
1712
|
-
getUpdateSessionStateUrl: () => getUpdateSessionStateUrl,
|
|
1713
|
-
listRevokedSessionStates: () => listRevokedSessionStates,
|
|
1714
|
-
revokeSession: () => revokeSession,
|
|
1715
|
-
updateSessionState: () => updateSessionState,
|
|
1716
|
-
useCreateSessionState: () => useCreateSessionState,
|
|
1717
|
-
useDeleteSessionState: () => useDeleteSessionState,
|
|
1718
|
-
useGetSessionState: () => useGetSessionState,
|
|
1719
|
-
useListRevokedSessionStates: () => useListRevokedSessionStates,
|
|
1720
|
-
useRevokeSession: () => useRevokeSession,
|
|
1721
|
-
useUpdateSessionState: () => useUpdateSessionState
|
|
1722
|
-
});
|
|
1723
1463
|
const withQueryKey$14 = (query, queryKey) => {
|
|
1724
1464
|
const result = { queryKey };
|
|
1725
1465
|
for (const key of Object.keys(query)) {
|
|
@@ -2011,8 +1751,7 @@ const useUpdateSessionState = (options, queryClient) => {
|
|
|
2011
1751
|
return useMutation(getUpdateSessionStateMutationOptions(options), queryClient);
|
|
2012
1752
|
};
|
|
2013
1753
|
|
|
2014
|
-
|
|
2015
|
-
//#region src/gen/endpoints/admin-user-state/admin-user-state.ts
|
|
1754
|
+
// src/gen/react/admin-user-state/admin-user-state.ts
|
|
2016
1755
|
/**
|
|
2017
1756
|
* Generated by orval 🍺
|
|
2018
1757
|
* Do not edit manually.
|
|
@@ -2020,48 +1759,6 @@ const useUpdateSessionState = (options, queryClient) => {
|
|
|
2020
1759
|
* Authula API - An open-source authentication solution that scales with you.
|
|
2021
1760
|
* OpenAPI spec version: 0.1.0
|
|
2022
1761
|
*/
|
|
2023
|
-
var admin_user_state_exports = /* @__PURE__ */ __exportAll({
|
|
2024
|
-
banUser: () => banUser,
|
|
2025
|
-
createUserState: () => createUserState,
|
|
2026
|
-
deleteUserState: () => deleteUserState,
|
|
2027
|
-
getBanUserMutationKey: () => getBanUserMutationKey,
|
|
2028
|
-
getBanUserMutationOptions: () => getBanUserMutationOptions,
|
|
2029
|
-
getBanUserUrl: () => getBanUserUrl,
|
|
2030
|
-
getCreateUserStateMutationKey: () => getCreateUserStateMutationKey,
|
|
2031
|
-
getCreateUserStateMutationOptions: () => getCreateUserStateMutationOptions,
|
|
2032
|
-
getCreateUserStateUrl: () => getCreateUserStateUrl,
|
|
2033
|
-
getDeleteUserStateMutationKey: () => getDeleteUserStateMutationKey,
|
|
2034
|
-
getDeleteUserStateMutationOptions: () => getDeleteUserStateMutationOptions,
|
|
2035
|
-
getDeleteUserStateUrl: () => getDeleteUserStateUrl,
|
|
2036
|
-
getGetUserStateQueryKey: () => getGetUserStateQueryKey,
|
|
2037
|
-
getGetUserStateQueryOptions: () => getGetUserStateQueryOptions,
|
|
2038
|
-
getGetUserStateUrl: () => getGetUserStateUrl,
|
|
2039
|
-
getListBannedUserStatesQueryKey: () => getListBannedUserStatesQueryKey,
|
|
2040
|
-
getListBannedUserStatesQueryOptions: () => getListBannedUserStatesQueryOptions,
|
|
2041
|
-
getListBannedUserStatesUrl: () => getListBannedUserStatesUrl,
|
|
2042
|
-
getListUserSessionsQueryKey: () => getListUserSessionsQueryKey,
|
|
2043
|
-
getListUserSessionsQueryOptions: () => getListUserSessionsQueryOptions,
|
|
2044
|
-
getListUserSessionsUrl: () => getListUserSessionsUrl,
|
|
2045
|
-
getUnbanUserMutationKey: () => getUnbanUserMutationKey,
|
|
2046
|
-
getUnbanUserMutationOptions: () => getUnbanUserMutationOptions,
|
|
2047
|
-
getUnbanUserUrl: () => getUnbanUserUrl,
|
|
2048
|
-
getUpdateUserStateMutationKey: () => getUpdateUserStateMutationKey,
|
|
2049
|
-
getUpdateUserStateMutationOptions: () => getUpdateUserStateMutationOptions,
|
|
2050
|
-
getUpdateUserStateUrl: () => getUpdateUserStateUrl,
|
|
2051
|
-
getUserState: () => getUserState,
|
|
2052
|
-
listBannedUserStates: () => listBannedUserStates,
|
|
2053
|
-
listUserSessions: () => listUserSessions,
|
|
2054
|
-
unbanUser: () => unbanUser,
|
|
2055
|
-
updateUserState: () => updateUserState,
|
|
2056
|
-
useBanUser: () => useBanUser,
|
|
2057
|
-
useCreateUserState: () => useCreateUserState,
|
|
2058
|
-
useDeleteUserState: () => useDeleteUserState,
|
|
2059
|
-
useGetUserState: () => useGetUserState,
|
|
2060
|
-
useListBannedUserStates: () => useListBannedUserStates,
|
|
2061
|
-
useListUserSessions: () => useListUserSessions,
|
|
2062
|
-
useUnbanUser: () => useUnbanUser,
|
|
2063
|
-
useUpdateUserState: () => useUpdateUserState
|
|
2064
|
-
});
|
|
2065
1762
|
const withQueryKey$13 = (query, queryKey) => {
|
|
2066
1763
|
const result = { queryKey };
|
|
2067
1764
|
for (const key of Object.keys(query)) {
|
|
@@ -2432,8 +2129,7 @@ const useUnbanUser = (options, queryClient) => {
|
|
|
2432
2129
|
return useMutation(getUnbanUserMutationOptions(options), queryClient);
|
|
2433
2130
|
};
|
|
2434
2131
|
|
|
2435
|
-
|
|
2436
|
-
//#region src/gen/endpoints/admin-users/admin-users.ts
|
|
2132
|
+
// src/gen/react/admin-users/admin-users.ts
|
|
2437
2133
|
/**
|
|
2438
2134
|
* Generated by orval 🍺
|
|
2439
2135
|
* Do not edit manually.
|
|
@@ -2441,33 +2137,6 @@ const useUnbanUser = (options, queryClient) => {
|
|
|
2441
2137
|
* Authula API - An open-source authentication solution that scales with you.
|
|
2442
2138
|
* OpenAPI spec version: 0.1.0
|
|
2443
2139
|
*/
|
|
2444
|
-
var admin_users_exports = /* @__PURE__ */ __exportAll({
|
|
2445
|
-
createUser: () => createUser,
|
|
2446
|
-
deleteUser: () => deleteUser,
|
|
2447
|
-
getCreateUserMutationKey: () => getCreateUserMutationKey,
|
|
2448
|
-
getCreateUserMutationOptions: () => getCreateUserMutationOptions,
|
|
2449
|
-
getCreateUserUrl: () => getCreateUserUrl,
|
|
2450
|
-
getDeleteUserMutationKey: () => getDeleteUserMutationKey,
|
|
2451
|
-
getDeleteUserMutationOptions: () => getDeleteUserMutationOptions,
|
|
2452
|
-
getDeleteUserUrl: () => getDeleteUserUrl,
|
|
2453
|
-
getGetUserQueryKey: () => getGetUserQueryKey,
|
|
2454
|
-
getGetUserQueryOptions: () => getGetUserQueryOptions,
|
|
2455
|
-
getGetUserUrl: () => getGetUserUrl,
|
|
2456
|
-
getListUsersQueryKey: () => getListUsersQueryKey,
|
|
2457
|
-
getListUsersQueryOptions: () => getListUsersQueryOptions,
|
|
2458
|
-
getListUsersUrl: () => getListUsersUrl,
|
|
2459
|
-
getUpdateUserMutationKey: () => getUpdateUserMutationKey,
|
|
2460
|
-
getUpdateUserMutationOptions: () => getUpdateUserMutationOptions,
|
|
2461
|
-
getUpdateUserUrl: () => getUpdateUserUrl,
|
|
2462
|
-
getUser: () => getUser,
|
|
2463
|
-
listUsers: () => listUsers,
|
|
2464
|
-
updateUser: () => updateUser,
|
|
2465
|
-
useCreateUser: () => useCreateUser,
|
|
2466
|
-
useDeleteUser: () => useDeleteUser,
|
|
2467
|
-
useGetUser: () => useGetUser,
|
|
2468
|
-
useListUsers: () => useListUsers,
|
|
2469
|
-
useUpdateUser: () => useUpdateUser
|
|
2470
|
-
});
|
|
2471
2140
|
const withQueryKey$12 = (query, queryKey) => {
|
|
2472
2141
|
const result = { queryKey };
|
|
2473
2142
|
for (const key of Object.keys(query)) {
|
|
@@ -2710,24 +2379,7 @@ const useUpdateUser = (options, queryClient) => {
|
|
|
2710
2379
|
return useMutation(getUpdateUserMutationOptions(options), queryClient);
|
|
2711
2380
|
};
|
|
2712
2381
|
|
|
2713
|
-
|
|
2714
|
-
//#region src/plugins/admin/plugin.ts
|
|
2715
|
-
var AdminPlugin = class {
|
|
2716
|
-
id = "admin";
|
|
2717
|
-
constructor() {}
|
|
2718
|
-
init(client) {
|
|
2719
|
-
return {
|
|
2720
|
-
...wrapGenerated(admin_users_exports, client),
|
|
2721
|
-
...wrapGenerated(admin_accounts_exports, client),
|
|
2722
|
-
...wrapGenerated(admin_user_state_exports, client),
|
|
2723
|
-
...wrapGenerated(admin_session_state_exports, client),
|
|
2724
|
-
...wrapGenerated(admin_impersonation_exports, client)
|
|
2725
|
-
};
|
|
2726
|
-
}
|
|
2727
|
-
};
|
|
2728
|
-
|
|
2729
|
-
//#endregion
|
|
2730
|
-
//#region src/gen/endpoints/api-keys/api-keys.ts
|
|
2382
|
+
// src/gen/react/api-keys/api-keys.ts
|
|
2731
2383
|
/**
|
|
2732
2384
|
* Generated by orval 🍺
|
|
2733
2385
|
* Do not edit manually.
|
|
@@ -2735,38 +2387,6 @@ var AdminPlugin = class {
|
|
|
2735
2387
|
* Authula API - An open-source authentication solution that scales with you.
|
|
2736
2388
|
* OpenAPI spec version: 0.1.0
|
|
2737
2389
|
*/
|
|
2738
|
-
var api_keys_exports = /* @__PURE__ */ __exportAll({
|
|
2739
|
-
createApiKey: () => createApiKey,
|
|
2740
|
-
deleteApiKey: () => deleteApiKey,
|
|
2741
|
-
getApiKey: () => getApiKey,
|
|
2742
|
-
getCreateApiKeyMutationKey: () => getCreateApiKeyMutationKey,
|
|
2743
|
-
getCreateApiKeyMutationOptions: () => getCreateApiKeyMutationOptions,
|
|
2744
|
-
getCreateApiKeyUrl: () => getCreateApiKeyUrl,
|
|
2745
|
-
getDeleteApiKeyMutationKey: () => getDeleteApiKeyMutationKey,
|
|
2746
|
-
getDeleteApiKeyMutationOptions: () => getDeleteApiKeyMutationOptions,
|
|
2747
|
-
getDeleteApiKeyUrl: () => getDeleteApiKeyUrl,
|
|
2748
|
-
getGetApiKeyQueryKey: () => getGetApiKeyQueryKey,
|
|
2749
|
-
getGetApiKeyQueryOptions: () => getGetApiKeyQueryOptions,
|
|
2750
|
-
getGetApiKeyUrl: () => getGetApiKeyUrl,
|
|
2751
|
-
getListApiKeysQueryKey: () => getListApiKeysQueryKey,
|
|
2752
|
-
getListApiKeysQueryOptions: () => getListApiKeysQueryOptions,
|
|
2753
|
-
getListApiKeysUrl: () => getListApiKeysUrl,
|
|
2754
|
-
getUpdateApiKeyMutationKey: () => getUpdateApiKeyMutationKey,
|
|
2755
|
-
getUpdateApiKeyMutationOptions: () => getUpdateApiKeyMutationOptions,
|
|
2756
|
-
getUpdateApiKeyUrl: () => getUpdateApiKeyUrl,
|
|
2757
|
-
getVerifyApiKeyMutationKey: () => getVerifyApiKeyMutationKey,
|
|
2758
|
-
getVerifyApiKeyMutationOptions: () => getVerifyApiKeyMutationOptions,
|
|
2759
|
-
getVerifyApiKeyUrl: () => getVerifyApiKeyUrl,
|
|
2760
|
-
listApiKeys: () => listApiKeys,
|
|
2761
|
-
updateApiKey: () => updateApiKey,
|
|
2762
|
-
useCreateApiKey: () => useCreateApiKey,
|
|
2763
|
-
useDeleteApiKey: () => useDeleteApiKey,
|
|
2764
|
-
useGetApiKey: () => useGetApiKey,
|
|
2765
|
-
useListApiKeys: () => useListApiKeys,
|
|
2766
|
-
useUpdateApiKey: () => useUpdateApiKey,
|
|
2767
|
-
useVerifyApiKey: () => useVerifyApiKey,
|
|
2768
|
-
verifyApiKey: () => verifyApiKey
|
|
2769
|
-
});
|
|
2770
2390
|
const withQueryKey$11 = (query, queryKey) => {
|
|
2771
2391
|
const result = { queryKey };
|
|
2772
2392
|
for (const key of Object.keys(query)) {
|
|
@@ -3063,69 +2683,7 @@ const useUpdateApiKey = (options, queryClient) => {
|
|
|
3063
2683
|
return useMutation(getUpdateApiKeyMutationOptions(options), queryClient);
|
|
3064
2684
|
};
|
|
3065
2685
|
|
|
3066
|
-
|
|
3067
|
-
//#region src/plugins/api-key/plugin.ts
|
|
3068
|
-
var ApiKeyPlugin = class {
|
|
3069
|
-
id = "apiKey";
|
|
3070
|
-
constructor() {}
|
|
3071
|
-
init(client) {
|
|
3072
|
-
return wrapGenerated(api_keys_exports, client);
|
|
3073
|
-
}
|
|
3074
|
-
};
|
|
3075
|
-
|
|
3076
|
-
//#endregion
|
|
3077
|
-
//#region src/plugins/bearer/plugin.ts
|
|
3078
|
-
var BearerPlugin = class {
|
|
3079
|
-
options;
|
|
3080
|
-
id = "bearer";
|
|
3081
|
-
refreshPromise = null;
|
|
3082
|
-
constructor(options) {
|
|
3083
|
-
this.options = options;
|
|
3084
|
-
}
|
|
3085
|
-
init(client) {
|
|
3086
|
-
client.registerBeforeFetch(async (ctx) => {
|
|
3087
|
-
if (typeof document === "undefined") return;
|
|
3088
|
-
const headerName = this.options?.headerName ?? "Authorization";
|
|
3089
|
-
const token = localStorage.getItem("accessToken");
|
|
3090
|
-
if (token) {
|
|
3091
|
-
if (!(ctx.init.headers instanceof Headers)) ctx.init.headers = new Headers(ctx.init.headers);
|
|
3092
|
-
ctx.init.headers.set(headerName, `Bearer ${token}`);
|
|
3093
|
-
}
|
|
3094
|
-
});
|
|
3095
|
-
client.registerAfterFetch(async (ctx, res) => {
|
|
3096
|
-
if (typeof document === "undefined") return;
|
|
3097
|
-
if (res.status !== 401) return;
|
|
3098
|
-
if (ctx.meta.retry) return;
|
|
3099
|
-
const refreshToken = localStorage.getItem("refreshToken");
|
|
3100
|
-
if (!refreshToken) return;
|
|
3101
|
-
if (!client.jwt) {
|
|
3102
|
-
console.warn("JWT Plugin is required for Bearer token refresh.");
|
|
3103
|
-
return;
|
|
3104
|
-
}
|
|
3105
|
-
if (!this.refreshPromise) this.refreshPromise = (async () => {
|
|
3106
|
-
try {
|
|
3107
|
-
const response = await client.jwt.refreshToken({ refreshToken });
|
|
3108
|
-
if (!response) return null;
|
|
3109
|
-
localStorage.setItem("accessToken", response.accessToken);
|
|
3110
|
-
localStorage.setItem("refreshToken", response.refreshToken);
|
|
3111
|
-
return response;
|
|
3112
|
-
} finally {
|
|
3113
|
-
this.refreshPromise = null;
|
|
3114
|
-
}
|
|
3115
|
-
})();
|
|
3116
|
-
const refreshed = await this.refreshPromise;
|
|
3117
|
-
if (!refreshed) return;
|
|
3118
|
-
const headerName = this.options?.headerName ?? "Authorization";
|
|
3119
|
-
if (!(ctx.init.headers instanceof Headers)) ctx.init.headers = new Headers(ctx.init.headers);
|
|
3120
|
-
ctx.init.headers.set(headerName, `Bearer ${refreshed.accessToken}`);
|
|
3121
|
-
return "retry";
|
|
3122
|
-
});
|
|
3123
|
-
return {};
|
|
3124
|
-
}
|
|
3125
|
-
};
|
|
3126
|
-
|
|
3127
|
-
//#endregion
|
|
3128
|
-
//#region src/gen/endpoints/core/core.ts
|
|
2686
|
+
// src/gen/react/core/core.ts
|
|
3129
2687
|
/**
|
|
3130
2688
|
* Generated by orval 🍺
|
|
3131
2689
|
* Do not edit manually.
|
|
@@ -3133,18 +2691,6 @@ var BearerPlugin = class {
|
|
|
3133
2691
|
* Authula API - An open-source authentication solution that scales with you.
|
|
3134
2692
|
* OpenAPI spec version: 0.1.0
|
|
3135
2693
|
*/
|
|
3136
|
-
var core_exports = /* @__PURE__ */ __exportAll({
|
|
3137
|
-
getGetMeQueryKey: () => getGetMeQueryKey,
|
|
3138
|
-
getGetMeQueryOptions: () => getGetMeQueryOptions,
|
|
3139
|
-
getGetMeUrl: () => getGetMeUrl,
|
|
3140
|
-
getMe: () => getMe,
|
|
3141
|
-
getSignOutMutationKey: () => getSignOutMutationKey,
|
|
3142
|
-
getSignOutMutationOptions: () => getSignOutMutationOptions,
|
|
3143
|
-
getSignOutUrl: () => getSignOutUrl,
|
|
3144
|
-
signOut: () => signOut,
|
|
3145
|
-
useGetMe: () => useGetMe,
|
|
3146
|
-
useSignOut: () => useSignOut
|
|
3147
|
-
});
|
|
3148
2694
|
const withQueryKey$10 = (query, queryKey) => {
|
|
3149
2695
|
const result = { queryKey };
|
|
3150
2696
|
for (const key of Object.keys(query)) {
|
|
@@ -3249,42 +2795,7 @@ const useSignOut = (options, queryClient) => {
|
|
|
3249
2795
|
return useMutation(getSignOutMutationOptions(options), queryClient);
|
|
3250
2796
|
};
|
|
3251
2797
|
|
|
3252
|
-
|
|
3253
|
-
//#region src/plugins/core/plugin.ts
|
|
3254
|
-
var CorePlugin = class {
|
|
3255
|
-
id = "core";
|
|
3256
|
-
constructor() {}
|
|
3257
|
-
init(client) {
|
|
3258
|
-
return wrapGenerated(core_exports, client);
|
|
3259
|
-
}
|
|
3260
|
-
};
|
|
3261
|
-
|
|
3262
|
-
//#endregion
|
|
3263
|
-
//#region src/plugins/csrf/plugin.ts
|
|
3264
|
-
var CSRFPlugin = class {
|
|
3265
|
-
options;
|
|
3266
|
-
id = "csrf";
|
|
3267
|
-
constructor(options) {
|
|
3268
|
-
this.options = options;
|
|
3269
|
-
}
|
|
3270
|
-
init(client) {
|
|
3271
|
-
client.registerBeforeFetch(async (ctx) => {
|
|
3272
|
-
if ([
|
|
3273
|
-
"OPTIONS",
|
|
3274
|
-
"HEAD",
|
|
3275
|
-
"GET"
|
|
3276
|
-
].includes(ctx.init.method || "GET")) return;
|
|
3277
|
-
const value = ctx.cookies?.[this.options.cookieName] ?? await client.getCookie(this.options.cookieName);
|
|
3278
|
-
if (!value) return;
|
|
3279
|
-
ctx.init.headers = new Headers(ctx.init.headers);
|
|
3280
|
-
ctx.init.headers.set(this.options.headerName, value);
|
|
3281
|
-
});
|
|
3282
|
-
return {};
|
|
3283
|
-
}
|
|
3284
|
-
};
|
|
3285
|
-
|
|
3286
|
-
//#endregion
|
|
3287
|
-
//#region src/gen/endpoints/email-password-plugin/email-password-plugin.ts
|
|
2798
|
+
// src/gen/react/email-password-plugin/email-password-plugin.ts
|
|
3288
2799
|
/**
|
|
3289
2800
|
* Generated by orval 🍺
|
|
3290
2801
|
* Do not edit manually.
|
|
@@ -3292,43 +2803,6 @@ var CSRFPlugin = class {
|
|
|
3292
2803
|
* Authula API - An open-source authentication solution that scales with you.
|
|
3293
2804
|
* OpenAPI spec version: 0.1.0
|
|
3294
2805
|
*/
|
|
3295
|
-
var email_password_plugin_exports = /* @__PURE__ */ __exportAll({
|
|
3296
|
-
changePassword: () => changePassword,
|
|
3297
|
-
getChangePasswordMutationKey: () => getChangePasswordMutationKey,
|
|
3298
|
-
getChangePasswordMutationOptions: () => getChangePasswordMutationOptions,
|
|
3299
|
-
getChangePasswordUrl: () => getChangePasswordUrl,
|
|
3300
|
-
getRequestEmailChangeMutationKey: () => getRequestEmailChangeMutationKey,
|
|
3301
|
-
getRequestEmailChangeMutationOptions: () => getRequestEmailChangeMutationOptions,
|
|
3302
|
-
getRequestEmailChangeUrl: () => getRequestEmailChangeUrl,
|
|
3303
|
-
getRequestPasswordResetMutationKey: () => getRequestPasswordResetMutationKey,
|
|
3304
|
-
getRequestPasswordResetMutationOptions: () => getRequestPasswordResetMutationOptions,
|
|
3305
|
-
getRequestPasswordResetUrl: () => getRequestPasswordResetUrl,
|
|
3306
|
-
getSendEmailVerificationMutationKey: () => getSendEmailVerificationMutationKey,
|
|
3307
|
-
getSendEmailVerificationMutationOptions: () => getSendEmailVerificationMutationOptions,
|
|
3308
|
-
getSendEmailVerificationUrl: () => getSendEmailVerificationUrl,
|
|
3309
|
-
getSignInMutationKey: () => getSignInMutationKey,
|
|
3310
|
-
getSignInMutationOptions: () => getSignInMutationOptions,
|
|
3311
|
-
getSignInUrl: () => getSignInUrl,
|
|
3312
|
-
getSignUpMutationKey: () => getSignUpMutationKey,
|
|
3313
|
-
getSignUpMutationOptions: () => getSignUpMutationOptions,
|
|
3314
|
-
getSignUpUrl: () => getSignUpUrl,
|
|
3315
|
-
getVerifyEmailQueryKey: () => getVerifyEmailQueryKey,
|
|
3316
|
-
getVerifyEmailQueryOptions: () => getVerifyEmailQueryOptions,
|
|
3317
|
-
getVerifyEmailUrl: () => getVerifyEmailUrl,
|
|
3318
|
-
requestEmailChange: () => requestEmailChange,
|
|
3319
|
-
requestPasswordReset: () => requestPasswordReset,
|
|
3320
|
-
sendEmailVerification: () => sendEmailVerification,
|
|
3321
|
-
signIn: () => signIn,
|
|
3322
|
-
signUp: () => signUp,
|
|
3323
|
-
useChangePassword: () => useChangePassword,
|
|
3324
|
-
useRequestEmailChange: () => useRequestEmailChange,
|
|
3325
|
-
useRequestPasswordReset: () => useRequestPasswordReset,
|
|
3326
|
-
useSendEmailVerification: () => useSendEmailVerification,
|
|
3327
|
-
useSignIn: () => useSignIn,
|
|
3328
|
-
useSignUp: () => useSignUp,
|
|
3329
|
-
useVerifyEmail: () => useVerifyEmail,
|
|
3330
|
-
verifyEmail: () => verifyEmail
|
|
3331
|
-
});
|
|
3332
2806
|
const withQueryKey$9 = (query, queryKey) => {
|
|
3333
2807
|
const result = { queryKey };
|
|
3334
2808
|
for (const key of Object.keys(query)) {
|
|
@@ -3703,17 +3177,7 @@ function useVerifyEmail(options, queryClient) {
|
|
|
3703
3177
|
return withQueryKey$9(query, queryOptions.queryKey);
|
|
3704
3178
|
}
|
|
3705
3179
|
|
|
3706
|
-
|
|
3707
|
-
//#region src/plugins/email-password/plugin.ts
|
|
3708
|
-
var EmailPasswordPlugin = class {
|
|
3709
|
-
id = "emailPassword";
|
|
3710
|
-
init(client) {
|
|
3711
|
-
return wrapGenerated(email_password_plugin_exports, client);
|
|
3712
|
-
}
|
|
3713
|
-
};
|
|
3714
|
-
|
|
3715
|
-
//#endregion
|
|
3716
|
-
//#region src/gen/endpoints/jwt-plugin/jwt-plugin.ts
|
|
3180
|
+
// src/gen/react/jwt-plugin/jwt-plugin.ts
|
|
3717
3181
|
/**
|
|
3718
3182
|
* Generated by orval 🍺
|
|
3719
3183
|
* Do not edit manually.
|
|
@@ -3721,18 +3185,6 @@ var EmailPasswordPlugin = class {
|
|
|
3721
3185
|
* Authula API - An open-source authentication solution that scales with you.
|
|
3722
3186
|
* OpenAPI spec version: 0.1.0
|
|
3723
3187
|
*/
|
|
3724
|
-
var jwt_plugin_exports = /* @__PURE__ */ __exportAll({
|
|
3725
|
-
getGetJWKSQueryKey: () => getGetJWKSQueryKey,
|
|
3726
|
-
getGetJWKSQueryOptions: () => getGetJWKSQueryOptions,
|
|
3727
|
-
getGetJWKSUrl: () => getGetJWKSUrl,
|
|
3728
|
-
getJWKS: () => getJWKS,
|
|
3729
|
-
getRefreshTokenMutationKey: () => getRefreshTokenMutationKey,
|
|
3730
|
-
getRefreshTokenMutationOptions: () => getRefreshTokenMutationOptions,
|
|
3731
|
-
getRefreshTokenUrl: () => getRefreshTokenUrl,
|
|
3732
|
-
refreshToken: () => refreshToken,
|
|
3733
|
-
useGetJWKS: () => useGetJWKS,
|
|
3734
|
-
useRefreshToken: () => useRefreshToken
|
|
3735
|
-
});
|
|
3736
3188
|
const withQueryKey$8 = (query, queryKey) => {
|
|
3737
3189
|
const result = { queryKey };
|
|
3738
3190
|
for (const key of Object.keys(query)) {
|
|
@@ -3837,18 +3289,7 @@ const useRefreshToken = (options, queryClient) => {
|
|
|
3837
3289
|
return useMutation(getRefreshTokenMutationOptions(options), queryClient);
|
|
3838
3290
|
};
|
|
3839
3291
|
|
|
3840
|
-
|
|
3841
|
-
//#region src/plugins/jwt/plugin.ts
|
|
3842
|
-
var JWTPlugin = class {
|
|
3843
|
-
id = "jwt";
|
|
3844
|
-
constructor() {}
|
|
3845
|
-
init(client) {
|
|
3846
|
-
return wrapGenerated(jwt_plugin_exports, client);
|
|
3847
|
-
}
|
|
3848
|
-
};
|
|
3849
|
-
|
|
3850
|
-
//#endregion
|
|
3851
|
-
//#region src/gen/endpoints/magic-link-plugin/magic-link-plugin.ts
|
|
3292
|
+
// src/gen/react/magic-link-plugin/magic-link-plugin.ts
|
|
3852
3293
|
/**
|
|
3853
3294
|
* Generated by orval 🍺
|
|
3854
3295
|
* Do not edit manually.
|
|
@@ -3856,23 +3297,6 @@ var JWTPlugin = class {
|
|
|
3856
3297
|
* Authula API - An open-source authentication solution that scales with you.
|
|
3857
3298
|
* OpenAPI spec version: 0.1.0
|
|
3858
3299
|
*/
|
|
3859
|
-
var magic_link_plugin_exports = /* @__PURE__ */ __exportAll({
|
|
3860
|
-
exchangeMagicLink: () => exchangeMagicLink,
|
|
3861
|
-
getExchangeMagicLinkMutationKey: () => getExchangeMagicLinkMutationKey,
|
|
3862
|
-
getExchangeMagicLinkMutationOptions: () => getExchangeMagicLinkMutationOptions,
|
|
3863
|
-
getExchangeMagicLinkUrl: () => getExchangeMagicLinkUrl,
|
|
3864
|
-
getSignInWithMagicLinkMutationKey: () => getSignInWithMagicLinkMutationKey,
|
|
3865
|
-
getSignInWithMagicLinkMutationOptions: () => getSignInWithMagicLinkMutationOptions,
|
|
3866
|
-
getSignInWithMagicLinkUrl: () => getSignInWithMagicLinkUrl,
|
|
3867
|
-
getVerifyMagicLinkQueryKey: () => getVerifyMagicLinkQueryKey,
|
|
3868
|
-
getVerifyMagicLinkQueryOptions: () => getVerifyMagicLinkQueryOptions,
|
|
3869
|
-
getVerifyMagicLinkUrl: () => getVerifyMagicLinkUrl,
|
|
3870
|
-
signInWithMagicLink: () => signInWithMagicLink,
|
|
3871
|
-
useExchangeMagicLink: () => useExchangeMagicLink,
|
|
3872
|
-
useSignInWithMagicLink: () => useSignInWithMagicLink,
|
|
3873
|
-
useVerifyMagicLink: () => useVerifyMagicLink,
|
|
3874
|
-
verifyMagicLink: () => verifyMagicLink
|
|
3875
|
-
});
|
|
3876
3300
|
const withQueryKey$7 = (query, queryKey) => {
|
|
3877
3301
|
const result = { queryKey };
|
|
3878
3302
|
for (const key of Object.keys(query)) {
|
|
@@ -4036,18 +3460,7 @@ function useVerifyMagicLink(params, options, queryClient) {
|
|
|
4036
3460
|
return withQueryKey$7(query, queryOptions.queryKey);
|
|
4037
3461
|
}
|
|
4038
3462
|
|
|
4039
|
-
|
|
4040
|
-
//#region src/plugins/magic-link/plugin.ts
|
|
4041
|
-
var MagicLinkPlugin = class {
|
|
4042
|
-
id = "magicLink";
|
|
4043
|
-
constructor() {}
|
|
4044
|
-
init(client) {
|
|
4045
|
-
return wrapGenerated(magic_link_plugin_exports, client);
|
|
4046
|
-
}
|
|
4047
|
-
};
|
|
4048
|
-
|
|
4049
|
-
//#endregion
|
|
4050
|
-
//#region src/gen/endpoints/oauth2-plugin/oauth2-plugin.ts
|
|
3463
|
+
// src/gen/react/oauth2-plugin/oauth2-plugin.ts
|
|
4051
3464
|
/**
|
|
4052
3465
|
* Generated by orval 🍺
|
|
4053
3466
|
* Do not edit manually.
|
|
@@ -4055,18 +3468,6 @@ var MagicLinkPlugin = class {
|
|
|
4055
3468
|
* Authula API - An open-source authentication solution that scales with you.
|
|
4056
3469
|
* OpenAPI spec version: 0.1.0
|
|
4057
3470
|
*/
|
|
4058
|
-
var oauth2_plugin_exports = /* @__PURE__ */ __exportAll({
|
|
4059
|
-
getOauthAuthorizeQueryKey: () => getOauthAuthorizeQueryKey,
|
|
4060
|
-
getOauthAuthorizeQueryOptions: () => getOauthAuthorizeQueryOptions,
|
|
4061
|
-
getOauthAuthorizeUrl: () => getOauthAuthorizeUrl,
|
|
4062
|
-
getOauthCallbackQueryKey: () => getOauthCallbackQueryKey,
|
|
4063
|
-
getOauthCallbackQueryOptions: () => getOauthCallbackQueryOptions,
|
|
4064
|
-
getOauthCallbackUrl: () => getOauthCallbackUrl,
|
|
4065
|
-
oauthAuthorize: () => oauthAuthorize,
|
|
4066
|
-
oauthCallback: () => oauthCallback,
|
|
4067
|
-
useOauthAuthorize: () => useOauthAuthorize,
|
|
4068
|
-
useOauthCallback: () => useOauthCallback
|
|
4069
|
-
});
|
|
4070
3471
|
const withQueryKey$6 = (query, queryKey) => {
|
|
4071
3472
|
const result = { queryKey };
|
|
4072
3473
|
for (const key of Object.keys(query)) {
|
|
@@ -4166,17 +3567,7 @@ function useOauthCallback(provider, params, options, queryClient) {
|
|
|
4166
3567
|
return withQueryKey$6(query, queryOptions.queryKey);
|
|
4167
3568
|
}
|
|
4168
3569
|
|
|
4169
|
-
|
|
4170
|
-
//#region src/plugins/oauth2/plugin.ts
|
|
4171
|
-
var OAuth2Plugin = class {
|
|
4172
|
-
id = "oauth2";
|
|
4173
|
-
init(client) {
|
|
4174
|
-
return wrapGenerated(oauth2_plugin_exports, client);
|
|
4175
|
-
}
|
|
4176
|
-
};
|
|
4177
|
-
|
|
4178
|
-
//#endregion
|
|
4179
|
-
//#region src/gen/endpoints/organizations/organizations.ts
|
|
3570
|
+
// src/gen/react/organization-invitations/organization-invitations.ts
|
|
4180
3571
|
/**
|
|
4181
3572
|
* Generated by orval 🍺
|
|
4182
3573
|
* Do not edit manually.
|
|
@@ -4184,33 +3575,6 @@ var OAuth2Plugin = class {
|
|
|
4184
3575
|
* Authula API - An open-source authentication solution that scales with you.
|
|
4185
3576
|
* OpenAPI spec version: 0.1.0
|
|
4186
3577
|
*/
|
|
4187
|
-
var organizations_exports = /* @__PURE__ */ __exportAll({
|
|
4188
|
-
createOrganization: () => createOrganization,
|
|
4189
|
-
deleteOrganization: () => deleteOrganization,
|
|
4190
|
-
getCreateOrganizationMutationKey: () => getCreateOrganizationMutationKey,
|
|
4191
|
-
getCreateOrganizationMutationOptions: () => getCreateOrganizationMutationOptions,
|
|
4192
|
-
getCreateOrganizationUrl: () => getCreateOrganizationUrl,
|
|
4193
|
-
getDeleteOrganizationMutationKey: () => getDeleteOrganizationMutationKey,
|
|
4194
|
-
getDeleteOrganizationMutationOptions: () => getDeleteOrganizationMutationOptions,
|
|
4195
|
-
getDeleteOrganizationUrl: () => getDeleteOrganizationUrl,
|
|
4196
|
-
getGetOrganizationQueryKey: () => getGetOrganizationQueryKey,
|
|
4197
|
-
getGetOrganizationQueryOptions: () => getGetOrganizationQueryOptions,
|
|
4198
|
-
getGetOrganizationUrl: () => getGetOrganizationUrl,
|
|
4199
|
-
getListOrganizationsQueryKey: () => getListOrganizationsQueryKey,
|
|
4200
|
-
getListOrganizationsQueryOptions: () => getListOrganizationsQueryOptions,
|
|
4201
|
-
getListOrganizationsUrl: () => getListOrganizationsUrl,
|
|
4202
|
-
getOrganization: () => getOrganization,
|
|
4203
|
-
getUpdateOrganizationMutationKey: () => getUpdateOrganizationMutationKey,
|
|
4204
|
-
getUpdateOrganizationMutationOptions: () => getUpdateOrganizationMutationOptions,
|
|
4205
|
-
getUpdateOrganizationUrl: () => getUpdateOrganizationUrl,
|
|
4206
|
-
listOrganizations: () => listOrganizations,
|
|
4207
|
-
updateOrganization: () => updateOrganization,
|
|
4208
|
-
useCreateOrganization: () => useCreateOrganization,
|
|
4209
|
-
useDeleteOrganization: () => useDeleteOrganization,
|
|
4210
|
-
useGetOrganization: () => useGetOrganization,
|
|
4211
|
-
useListOrganizations: () => useListOrganizations,
|
|
4212
|
-
useUpdateOrganization: () => useUpdateOrganization
|
|
4213
|
-
});
|
|
4214
3578
|
const withQueryKey$5 = (query, queryKey) => {
|
|
4215
3579
|
const result = { queryKey };
|
|
4216
3580
|
for (const key of Object.keys(query)) {
|
|
@@ -4223,56 +3587,62 @@ const withQueryKey$5 = (query, queryKey) => {
|
|
|
4223
3587
|
}
|
|
4224
3588
|
return result;
|
|
4225
3589
|
};
|
|
4226
|
-
const
|
|
3590
|
+
const getListOrganizationInvitationsUrl = (organizationId, params) => {
|
|
4227
3591
|
const normalizedParams = new URLSearchParams();
|
|
4228
3592
|
Object.entries(params || {}).forEach(([key, value]) => {
|
|
4229
3593
|
if (value !== void 0) normalizedParams.append(key, value === null ? "null" : String(value));
|
|
4230
3594
|
});
|
|
4231
3595
|
const stringifiedParams = normalizedParams.toString();
|
|
4232
|
-
return stringifiedParams.length > 0 ? `/organizations?${stringifiedParams}` : `/organizations`;
|
|
3596
|
+
return stringifiedParams.length > 0 ? `/organizations/${organizationId}/invitations?${stringifiedParams}` : `/organizations/${organizationId}/invitations`;
|
|
4233
3597
|
};
|
|
4234
3598
|
/**
|
|
4235
|
-
* Lists
|
|
4236
|
-
* @summary List
|
|
3599
|
+
* Lists the invitations for an organization, newest first. Results are paginated: `page` defaults to 1 and `limit` defaults to 10. `limit` is capped by the server's configured maximum page size, which defaults to 100; a larger value is silently reduced to the cap rather than rejected, and values below the minimum fall back to the defaults. The `pagination` object in the response always reports the values actually applied.
|
|
3600
|
+
* @summary List invitations
|
|
4237
3601
|
*/
|
|
4238
|
-
const
|
|
4239
|
-
return customFetch(
|
|
3602
|
+
const listOrganizationInvitations = async (organizationId, params, options) => {
|
|
3603
|
+
return customFetch(getListOrganizationInvitationsUrl(organizationId, params), {
|
|
4240
3604
|
...options,
|
|
4241
3605
|
method: "GET"
|
|
4242
3606
|
});
|
|
4243
3607
|
};
|
|
4244
|
-
const
|
|
4245
|
-
return [`/organizations`, ...params ? [params] : []];
|
|
3608
|
+
const getListOrganizationInvitationsQueryKey = (organizationId, params) => {
|
|
3609
|
+
return [`/organizations/${organizationId}/invitations`, ...params ? [params] : []];
|
|
4246
3610
|
};
|
|
4247
|
-
const
|
|
3611
|
+
const getListOrganizationInvitationsQueryOptions = (organizationId, params, options) => {
|
|
4248
3612
|
const { query: queryOptions, request: requestOptions } = options ?? {};
|
|
4249
|
-
const queryKey = queryOptions?.queryKey ??
|
|
4250
|
-
const queryFn = ({ signal }) =>
|
|
3613
|
+
const queryKey = queryOptions?.queryKey ?? getListOrganizationInvitationsQueryKey(organizationId, params);
|
|
3614
|
+
const queryFn = ({ signal }) => listOrganizationInvitations(organizationId, params, {
|
|
4251
3615
|
signal,
|
|
4252
3616
|
...requestOptions
|
|
4253
3617
|
});
|
|
4254
3618
|
return {
|
|
4255
3619
|
queryKey,
|
|
4256
3620
|
queryFn,
|
|
3621
|
+
enabled: organizationId !== null && organizationId !== void 0,
|
|
4257
3622
|
...queryOptions
|
|
4258
3623
|
};
|
|
4259
3624
|
};
|
|
4260
3625
|
/**
|
|
4261
|
-
* @summary List
|
|
3626
|
+
* @summary List invitations
|
|
4262
3627
|
*/
|
|
4263
|
-
function
|
|
4264
|
-
const queryOptions =
|
|
3628
|
+
function useListOrganizationInvitations(organizationId, params, options, queryClient) {
|
|
3629
|
+
const queryOptions = getListOrganizationInvitationsQueryOptions(organizationId, params, options);
|
|
4265
3630
|
const query = useQuery(queryOptions, queryClient);
|
|
4266
3631
|
return withQueryKey$5(query, queryOptions.queryKey);
|
|
4267
3632
|
}
|
|
4268
|
-
const
|
|
4269
|
-
|
|
3633
|
+
const getCreateOrganizationInvitationUrl = (organizationId, params) => {
|
|
3634
|
+
const normalizedParams = new URLSearchParams();
|
|
3635
|
+
Object.entries(params || {}).forEach(([key, value]) => {
|
|
3636
|
+
if (value !== void 0) normalizedParams.append(key, value === null ? "null" : String(value));
|
|
3637
|
+
});
|
|
3638
|
+
const stringifiedParams = normalizedParams.toString();
|
|
3639
|
+
return stringifiedParams.length > 0 ? `/organizations/${organizationId}/invitations?${stringifiedParams}` : `/organizations/${organizationId}/invitations`;
|
|
4270
3640
|
};
|
|
4271
3641
|
/**
|
|
4272
|
-
* Creates
|
|
4273
|
-
* @summary Create
|
|
3642
|
+
* Creates an invitation for a user to join an organization.
|
|
3643
|
+
* @summary Create invitation
|
|
4274
3644
|
*/
|
|
4275
|
-
const
|
|
3645
|
+
const createOrganizationInvitation = async (organizationId, createOrganizationInvitationRequest, params, options) => {
|
|
4276
3646
|
const getHeaders = (h) => {
|
|
4277
3647
|
if (!h) return {};
|
|
4278
3648
|
if (h instanceof Headers) return Object.fromEntries(h.entries());
|
|
@@ -4281,19 +3651,19 @@ const createOrganization = async (createOrganizationRequest, options) => {
|
|
|
4281
3651
|
for (const [name, value] of Object.entries(h)) if (value !== void 0) headers[name] = value;
|
|
4282
3652
|
return headers;
|
|
4283
3653
|
};
|
|
4284
|
-
return customFetch(
|
|
3654
|
+
return customFetch(getCreateOrganizationInvitationUrl(organizationId, params), {
|
|
4285
3655
|
...options,
|
|
4286
3656
|
method: "POST",
|
|
4287
3657
|
headers: {
|
|
4288
3658
|
"Content-Type": "application/json",
|
|
4289
3659
|
...getHeaders(options?.headers)
|
|
4290
3660
|
},
|
|
4291
|
-
body: JSON.stringify(
|
|
3661
|
+
body: JSON.stringify(createOrganizationInvitationRequest)
|
|
4292
3662
|
});
|
|
4293
3663
|
};
|
|
4294
|
-
const
|
|
4295
|
-
const
|
|
4296
|
-
const mutationKey =
|
|
3664
|
+
const getCreateOrganizationInvitationMutationKey = () => ["createOrganizationInvitation"];
|
|
3665
|
+
const getCreateOrganizationInvitationMutationOptions = (options) => {
|
|
3666
|
+
const mutationKey = getCreateOrganizationInvitationMutationKey();
|
|
4297
3667
|
const { mutation: mutationOptions, request: requestOptions } = options ? options.mutation && "mutationKey" in options.mutation && options.mutation.mutationKey ? options : {
|
|
4298
3668
|
...options,
|
|
4299
3669
|
mutation: {
|
|
@@ -4305,8 +3675,8 @@ const getCreateOrganizationMutationOptions = (options) => {
|
|
|
4305
3675
|
request: void 0
|
|
4306
3676
|
};
|
|
4307
3677
|
const mutationFn = (props) => {
|
|
4308
|
-
const { data } = props ?? {};
|
|
4309
|
-
return
|
|
3678
|
+
const { organizationId, data, params } = props ?? {};
|
|
3679
|
+
return createOrganizationInvitation(organizationId, data, params, requestOptions);
|
|
4310
3680
|
};
|
|
4311
3681
|
return {
|
|
4312
3682
|
mutationFn,
|
|
@@ -4314,65 +3684,83 @@ const getCreateOrganizationMutationOptions = (options) => {
|
|
|
4314
3684
|
};
|
|
4315
3685
|
};
|
|
4316
3686
|
/**
|
|
4317
|
-
* @summary Create
|
|
3687
|
+
* @summary Create invitation
|
|
4318
3688
|
*/
|
|
4319
|
-
const
|
|
4320
|
-
return useMutation(
|
|
3689
|
+
const useCreateOrganizationInvitation = (options, queryClient) => {
|
|
3690
|
+
return useMutation(getCreateOrganizationInvitationMutationOptions(options), queryClient);
|
|
4321
3691
|
};
|
|
4322
|
-
const
|
|
4323
|
-
return `/organizations/${organizationId}`;
|
|
3692
|
+
const getGetOrganizationInvitationUrl = (organizationId, invitationId) => {
|
|
3693
|
+
return `/organizations/${organizationId}/invitations/${invitationId}`;
|
|
4324
3694
|
};
|
|
4325
3695
|
/**
|
|
4326
|
-
* Retrieves
|
|
4327
|
-
* @summary Get
|
|
3696
|
+
* Retrieves a single invitation.
|
|
3697
|
+
* @summary Get invitation
|
|
4328
3698
|
*/
|
|
4329
|
-
const
|
|
4330
|
-
return customFetch(
|
|
3699
|
+
const getOrganizationInvitation = async (organizationId, invitationId, options) => {
|
|
3700
|
+
return customFetch(getGetOrganizationInvitationUrl(organizationId, invitationId), {
|
|
4331
3701
|
...options,
|
|
4332
3702
|
method: "GET"
|
|
4333
3703
|
});
|
|
4334
3704
|
};
|
|
4335
|
-
const
|
|
4336
|
-
return [`/organizations/${organizationId}`];
|
|
3705
|
+
const getGetOrganizationInvitationQueryKey = (organizationId, invitationId) => {
|
|
3706
|
+
return [`/organizations/${organizationId}/invitations/${invitationId}`];
|
|
4337
3707
|
};
|
|
4338
|
-
const
|
|
3708
|
+
const getGetOrganizationInvitationQueryOptions = (organizationId, invitationId, options) => {
|
|
4339
3709
|
const { query: queryOptions, request: requestOptions } = options ?? {};
|
|
4340
|
-
const queryKey = queryOptions?.queryKey ??
|
|
4341
|
-
const queryFn = ({ signal }) =>
|
|
3710
|
+
const queryKey = queryOptions?.queryKey ?? getGetOrganizationInvitationQueryKey(organizationId, invitationId);
|
|
3711
|
+
const queryFn = ({ signal }) => getOrganizationInvitation(organizationId, invitationId, {
|
|
4342
3712
|
signal,
|
|
4343
3713
|
...requestOptions
|
|
4344
3714
|
});
|
|
4345
3715
|
return {
|
|
4346
3716
|
queryKey,
|
|
4347
3717
|
queryFn,
|
|
4348
|
-
enabled: organizationId !== null && organizationId !== void 0,
|
|
3718
|
+
enabled: organizationId !== null && organizationId !== void 0 && invitationId !== null && invitationId !== void 0,
|
|
4349
3719
|
...queryOptions
|
|
4350
3720
|
};
|
|
4351
3721
|
};
|
|
4352
3722
|
/**
|
|
4353
|
-
* @summary Get
|
|
3723
|
+
* @summary Get invitation
|
|
4354
3724
|
*/
|
|
4355
|
-
function
|
|
4356
|
-
const queryOptions =
|
|
3725
|
+
function useGetOrganizationInvitation(organizationId, invitationId, options, queryClient) {
|
|
3726
|
+
const queryOptions = getGetOrganizationInvitationQueryOptions(organizationId, invitationId, options);
|
|
4357
3727
|
const query = useQuery(queryOptions, queryClient);
|
|
4358
3728
|
return withQueryKey$5(query, queryOptions.queryKey);
|
|
4359
3729
|
}
|
|
4360
|
-
const
|
|
4361
|
-
|
|
3730
|
+
const getAcceptOrganizationInvitationUrl = (organizationId, invitationId, params) => {
|
|
3731
|
+
const normalizedParams = new URLSearchParams();
|
|
3732
|
+
Object.entries(params || {}).forEach(([key, value]) => {
|
|
3733
|
+
if (value !== void 0) normalizedParams.append(key, value === null ? "null" : String(value));
|
|
3734
|
+
});
|
|
3735
|
+
const stringifiedParams = normalizedParams.toString();
|
|
3736
|
+
return stringifiedParams.length > 0 ? `/organizations/${organizationId}/invitations/${invitationId}/accept?${stringifiedParams}` : `/organizations/${organizationId}/invitations/${invitationId}/accept`;
|
|
4362
3737
|
};
|
|
4363
3738
|
/**
|
|
4364
|
-
*
|
|
4365
|
-
* @summary
|
|
3739
|
+
* Accepts an invitation to join an organization.
|
|
3740
|
+
* @summary Accept invitation
|
|
4366
3741
|
*/
|
|
4367
|
-
const
|
|
4368
|
-
|
|
3742
|
+
const acceptOrganizationInvitation = async (organizationId, invitationId, acceptOrganizationInvitationQuery, params, options) => {
|
|
3743
|
+
const getHeaders = (h) => {
|
|
3744
|
+
if (!h) return {};
|
|
3745
|
+
if (h instanceof Headers) return Object.fromEntries(h.entries());
|
|
3746
|
+
if (Symbol.iterator in h) return Object.fromEntries(Array.from(h, (entry) => Array.from(entry)));
|
|
3747
|
+
const headers = {};
|
|
3748
|
+
for (const [name, value] of Object.entries(h)) if (value !== void 0) headers[name] = value;
|
|
3749
|
+
return headers;
|
|
3750
|
+
};
|
|
3751
|
+
return customFetch(getAcceptOrganizationInvitationUrl(organizationId, invitationId, params), {
|
|
4369
3752
|
...options,
|
|
4370
|
-
method: "
|
|
3753
|
+
method: "PATCH",
|
|
3754
|
+
headers: {
|
|
3755
|
+
"Content-Type": "application/json",
|
|
3756
|
+
...getHeaders(options?.headers)
|
|
3757
|
+
},
|
|
3758
|
+
body: JSON.stringify(acceptOrganizationInvitationQuery)
|
|
4371
3759
|
});
|
|
4372
3760
|
};
|
|
4373
|
-
const
|
|
4374
|
-
const
|
|
4375
|
-
const mutationKey =
|
|
3761
|
+
const getAcceptOrganizationInvitationMutationKey = () => ["acceptOrganizationInvitation"];
|
|
3762
|
+
const getAcceptOrganizationInvitationMutationOptions = (options) => {
|
|
3763
|
+
const mutationKey = getAcceptOrganizationInvitationMutationKey();
|
|
4376
3764
|
const { mutation: mutationOptions, request: requestOptions } = options ? options.mutation && "mutationKey" in options.mutation && options.mutation.mutationKey ? options : {
|
|
4377
3765
|
...options,
|
|
4378
3766
|
mutation: {
|
|
@@ -4384,8 +3772,8 @@ const getDeleteOrganizationMutationOptions = (options) => {
|
|
|
4384
3772
|
request: void 0
|
|
4385
3773
|
};
|
|
4386
3774
|
const mutationFn = (props) => {
|
|
4387
|
-
const { organizationId } = props ?? {};
|
|
4388
|
-
return
|
|
3775
|
+
const { organizationId, invitationId, data, params } = props ?? {};
|
|
3776
|
+
return acceptOrganizationInvitation(organizationId, invitationId, data, params, requestOptions);
|
|
4389
3777
|
};
|
|
4390
3778
|
return {
|
|
4391
3779
|
mutationFn,
|
|
@@ -4393,40 +3781,68 @@ const getDeleteOrganizationMutationOptions = (options) => {
|
|
|
4393
3781
|
};
|
|
4394
3782
|
};
|
|
4395
3783
|
/**
|
|
4396
|
-
* @summary
|
|
3784
|
+
* @summary Accept invitation
|
|
4397
3785
|
*/
|
|
4398
|
-
const
|
|
4399
|
-
return useMutation(
|
|
3786
|
+
const useAcceptOrganizationInvitation = (options, queryClient) => {
|
|
3787
|
+
return useMutation(getAcceptOrganizationInvitationMutationOptions(options), queryClient);
|
|
4400
3788
|
};
|
|
4401
|
-
const
|
|
4402
|
-
return `/organizations/${organizationId}`;
|
|
3789
|
+
const getRejectOrganizationInvitationUrl = (organizationId, invitationId) => {
|
|
3790
|
+
return `/organizations/${organizationId}/invitations/${invitationId}/reject`;
|
|
4403
3791
|
};
|
|
4404
3792
|
/**
|
|
4405
|
-
*
|
|
4406
|
-
* @summary
|
|
3793
|
+
* Rejects an invitation to join an organization.
|
|
3794
|
+
* @summary Reject invitation
|
|
4407
3795
|
*/
|
|
4408
|
-
const
|
|
4409
|
-
|
|
4410
|
-
|
|
4411
|
-
|
|
4412
|
-
|
|
4413
|
-
|
|
4414
|
-
|
|
4415
|
-
|
|
3796
|
+
const rejectOrganizationInvitation = async (organizationId, invitationId, options) => {
|
|
3797
|
+
return customFetch(getRejectOrganizationInvitationUrl(organizationId, invitationId), {
|
|
3798
|
+
...options,
|
|
3799
|
+
method: "PATCH"
|
|
3800
|
+
});
|
|
3801
|
+
};
|
|
3802
|
+
const getRejectOrganizationInvitationMutationKey = () => ["rejectOrganizationInvitation"];
|
|
3803
|
+
const getRejectOrganizationInvitationMutationOptions = (options) => {
|
|
3804
|
+
const mutationKey = getRejectOrganizationInvitationMutationKey();
|
|
3805
|
+
const { mutation: mutationOptions, request: requestOptions } = options ? options.mutation && "mutationKey" in options.mutation && options.mutation.mutationKey ? options : {
|
|
3806
|
+
...options,
|
|
3807
|
+
mutation: {
|
|
3808
|
+
...options.mutation,
|
|
3809
|
+
mutationKey
|
|
3810
|
+
}
|
|
3811
|
+
} : {
|
|
3812
|
+
mutation: { mutationKey },
|
|
3813
|
+
request: void 0
|
|
4416
3814
|
};
|
|
4417
|
-
|
|
3815
|
+
const mutationFn = (props) => {
|
|
3816
|
+
const { organizationId, invitationId } = props ?? {};
|
|
3817
|
+
return rejectOrganizationInvitation(organizationId, invitationId, requestOptions);
|
|
3818
|
+
};
|
|
3819
|
+
return {
|
|
3820
|
+
mutationFn,
|
|
3821
|
+
...mutationOptions
|
|
3822
|
+
};
|
|
3823
|
+
};
|
|
3824
|
+
/**
|
|
3825
|
+
* @summary Reject invitation
|
|
3826
|
+
*/
|
|
3827
|
+
const useRejectOrganizationInvitation = (options, queryClient) => {
|
|
3828
|
+
return useMutation(getRejectOrganizationInvitationMutationOptions(options), queryClient);
|
|
3829
|
+
};
|
|
3830
|
+
const getRevokeOrganizationInvitationUrl = (organizationId, invitationId) => {
|
|
3831
|
+
return `/organizations/${organizationId}/invitations/${invitationId}/revoke`;
|
|
3832
|
+
};
|
|
3833
|
+
/**
|
|
3834
|
+
* Revokes a pending invitation.
|
|
3835
|
+
* @summary Revoke invitation
|
|
3836
|
+
*/
|
|
3837
|
+
const revokeOrganizationInvitation = async (organizationId, invitationId, options) => {
|
|
3838
|
+
return customFetch(getRevokeOrganizationInvitationUrl(organizationId, invitationId), {
|
|
4418
3839
|
...options,
|
|
4419
|
-
method: "PATCH"
|
|
4420
|
-
headers: {
|
|
4421
|
-
"Content-Type": "application/json",
|
|
4422
|
-
...getHeaders(options?.headers)
|
|
4423
|
-
},
|
|
4424
|
-
body: JSON.stringify(updateOrganizationRequest)
|
|
3840
|
+
method: "PATCH"
|
|
4425
3841
|
});
|
|
4426
3842
|
};
|
|
4427
|
-
const
|
|
4428
|
-
const
|
|
4429
|
-
const mutationKey =
|
|
3843
|
+
const getRevokeOrganizationInvitationMutationKey = () => ["revokeOrganizationInvitation"];
|
|
3844
|
+
const getRevokeOrganizationInvitationMutationOptions = (options) => {
|
|
3845
|
+
const mutationKey = getRevokeOrganizationInvitationMutationKey();
|
|
4430
3846
|
const { mutation: mutationOptions, request: requestOptions } = options ? options.mutation && "mutationKey" in options.mutation && options.mutation.mutationKey ? options : {
|
|
4431
3847
|
...options,
|
|
4432
3848
|
mutation: {
|
|
@@ -4438,8 +3854,8 @@ const getUpdateOrganizationMutationOptions = (options) => {
|
|
|
4438
3854
|
request: void 0
|
|
4439
3855
|
};
|
|
4440
3856
|
const mutationFn = (props) => {
|
|
4441
|
-
const { organizationId,
|
|
4442
|
-
return
|
|
3857
|
+
const { organizationId, invitationId } = props ?? {};
|
|
3858
|
+
return revokeOrganizationInvitation(organizationId, invitationId, requestOptions);
|
|
4443
3859
|
};
|
|
4444
3860
|
return {
|
|
4445
3861
|
mutationFn,
|
|
@@ -4447,14 +3863,13 @@ const getUpdateOrganizationMutationOptions = (options) => {
|
|
|
4447
3863
|
};
|
|
4448
3864
|
};
|
|
4449
3865
|
/**
|
|
4450
|
-
* @summary
|
|
3866
|
+
* @summary Revoke invitation
|
|
4451
3867
|
*/
|
|
4452
|
-
const
|
|
4453
|
-
return useMutation(
|
|
3868
|
+
const useRevokeOrganizationInvitation = (options, queryClient) => {
|
|
3869
|
+
return useMutation(getRevokeOrganizationInvitationMutationOptions(options), queryClient);
|
|
4454
3870
|
};
|
|
4455
3871
|
|
|
4456
|
-
|
|
4457
|
-
//#region src/gen/endpoints/organization-invitations/organization-invitations.ts
|
|
3872
|
+
// src/gen/react/organization-members/organization-members.ts
|
|
4458
3873
|
/**
|
|
4459
3874
|
* Generated by orval 🍺
|
|
4460
3875
|
* Do not edit manually.
|
|
@@ -4462,38 +3877,6 @@ const useUpdateOrganization = (options, queryClient) => {
|
|
|
4462
3877
|
* Authula API - An open-source authentication solution that scales with you.
|
|
4463
3878
|
* OpenAPI spec version: 0.1.0
|
|
4464
3879
|
*/
|
|
4465
|
-
var organization_invitations_exports = /* @__PURE__ */ __exportAll({
|
|
4466
|
-
acceptOrganizationInvitation: () => acceptOrganizationInvitation,
|
|
4467
|
-
createOrganizationInvitation: () => createOrganizationInvitation,
|
|
4468
|
-
getAcceptOrganizationInvitationMutationKey: () => getAcceptOrganizationInvitationMutationKey,
|
|
4469
|
-
getAcceptOrganizationInvitationMutationOptions: () => getAcceptOrganizationInvitationMutationOptions,
|
|
4470
|
-
getAcceptOrganizationInvitationUrl: () => getAcceptOrganizationInvitationUrl,
|
|
4471
|
-
getCreateOrganizationInvitationMutationKey: () => getCreateOrganizationInvitationMutationKey,
|
|
4472
|
-
getCreateOrganizationInvitationMutationOptions: () => getCreateOrganizationInvitationMutationOptions,
|
|
4473
|
-
getCreateOrganizationInvitationUrl: () => getCreateOrganizationInvitationUrl,
|
|
4474
|
-
getGetOrganizationInvitationQueryKey: () => getGetOrganizationInvitationQueryKey,
|
|
4475
|
-
getGetOrganizationInvitationQueryOptions: () => getGetOrganizationInvitationQueryOptions,
|
|
4476
|
-
getGetOrganizationInvitationUrl: () => getGetOrganizationInvitationUrl,
|
|
4477
|
-
getListOrganizationInvitationsQueryKey: () => getListOrganizationInvitationsQueryKey,
|
|
4478
|
-
getListOrganizationInvitationsQueryOptions: () => getListOrganizationInvitationsQueryOptions,
|
|
4479
|
-
getListOrganizationInvitationsUrl: () => getListOrganizationInvitationsUrl,
|
|
4480
|
-
getOrganizationInvitation: () => getOrganizationInvitation,
|
|
4481
|
-
getRejectOrganizationInvitationMutationKey: () => getRejectOrganizationInvitationMutationKey,
|
|
4482
|
-
getRejectOrganizationInvitationMutationOptions: () => getRejectOrganizationInvitationMutationOptions,
|
|
4483
|
-
getRejectOrganizationInvitationUrl: () => getRejectOrganizationInvitationUrl,
|
|
4484
|
-
getRevokeOrganizationInvitationMutationKey: () => getRevokeOrganizationInvitationMutationKey,
|
|
4485
|
-
getRevokeOrganizationInvitationMutationOptions: () => getRevokeOrganizationInvitationMutationOptions,
|
|
4486
|
-
getRevokeOrganizationInvitationUrl: () => getRevokeOrganizationInvitationUrl,
|
|
4487
|
-
listOrganizationInvitations: () => listOrganizationInvitations,
|
|
4488
|
-
rejectOrganizationInvitation: () => rejectOrganizationInvitation,
|
|
4489
|
-
revokeOrganizationInvitation: () => revokeOrganizationInvitation,
|
|
4490
|
-
useAcceptOrganizationInvitation: () => useAcceptOrganizationInvitation,
|
|
4491
|
-
useCreateOrganizationInvitation: () => useCreateOrganizationInvitation,
|
|
4492
|
-
useGetOrganizationInvitation: () => useGetOrganizationInvitation,
|
|
4493
|
-
useListOrganizationInvitations: () => useListOrganizationInvitations,
|
|
4494
|
-
useRejectOrganizationInvitation: () => useRejectOrganizationInvitation,
|
|
4495
|
-
useRevokeOrganizationInvitation: () => useRevokeOrganizationInvitation
|
|
4496
|
-
});
|
|
4497
3880
|
const withQueryKey$4 = (query, queryKey) => {
|
|
4498
3881
|
const result = { queryKey };
|
|
4499
3882
|
for (const key of Object.keys(query)) {
|
|
@@ -4506,31 +3889,31 @@ const withQueryKey$4 = (query, queryKey) => {
|
|
|
4506
3889
|
}
|
|
4507
3890
|
return result;
|
|
4508
3891
|
};
|
|
4509
|
-
const
|
|
3892
|
+
const getListOrganizationMembersUrl = (organizationId, params) => {
|
|
4510
3893
|
const normalizedParams = new URLSearchParams();
|
|
4511
3894
|
Object.entries(params || {}).forEach(([key, value]) => {
|
|
4512
3895
|
if (value !== void 0) normalizedParams.append(key, value === null ? "null" : String(value));
|
|
4513
3896
|
});
|
|
4514
3897
|
const stringifiedParams = normalizedParams.toString();
|
|
4515
|
-
return stringifiedParams.length > 0 ? `/organizations/${organizationId}/
|
|
3898
|
+
return stringifiedParams.length > 0 ? `/organizations/${organizationId}/members?${stringifiedParams}` : `/organizations/${organizationId}/members`;
|
|
4516
3899
|
};
|
|
4517
3900
|
/**
|
|
4518
|
-
* Lists the
|
|
4519
|
-
* @summary List
|
|
3901
|
+
* Lists the members of an organization, newest first. Results are paginated: `page` defaults to 1 and `limit` defaults to 10. `limit` is capped by the server's configured maximum page size, which defaults to 100; a larger value is silently reduced to the cap rather than rejected, and values below the minimum fall back to the defaults. The `pagination` object in the response always reports the values actually applied.
|
|
3902
|
+
* @summary List members
|
|
4520
3903
|
*/
|
|
4521
|
-
const
|
|
4522
|
-
return customFetch(
|
|
3904
|
+
const listOrganizationMembers = async (organizationId, params, options) => {
|
|
3905
|
+
return customFetch(getListOrganizationMembersUrl(organizationId, params), {
|
|
4523
3906
|
...options,
|
|
4524
3907
|
method: "GET"
|
|
4525
3908
|
});
|
|
4526
3909
|
};
|
|
4527
|
-
const
|
|
4528
|
-
return [`/organizations/${organizationId}/
|
|
3910
|
+
const getListOrganizationMembersQueryKey = (organizationId, params) => {
|
|
3911
|
+
return [`/organizations/${organizationId}/members`, ...params ? [params] : []];
|
|
4529
3912
|
};
|
|
4530
|
-
const
|
|
3913
|
+
const getListOrganizationMembersQueryOptions = (organizationId, params, options) => {
|
|
4531
3914
|
const { query: queryOptions, request: requestOptions } = options ?? {};
|
|
4532
|
-
const queryKey = queryOptions?.queryKey ??
|
|
4533
|
-
const queryFn = ({ signal }) =>
|
|
3915
|
+
const queryKey = queryOptions?.queryKey ?? getListOrganizationMembersQueryKey(organizationId, params);
|
|
3916
|
+
const queryFn = ({ signal }) => listOrganizationMembers(organizationId, params, {
|
|
4534
3917
|
signal,
|
|
4535
3918
|
...requestOptions
|
|
4536
3919
|
});
|
|
@@ -4542,26 +3925,21 @@ const getListOrganizationInvitationsQueryOptions = (organizationId, params, opti
|
|
|
4542
3925
|
};
|
|
4543
3926
|
};
|
|
4544
3927
|
/**
|
|
4545
|
-
* @summary List
|
|
3928
|
+
* @summary List members
|
|
4546
3929
|
*/
|
|
4547
|
-
function
|
|
4548
|
-
const queryOptions =
|
|
3930
|
+
function useListOrganizationMembers(organizationId, params, options, queryClient) {
|
|
3931
|
+
const queryOptions = getListOrganizationMembersQueryOptions(organizationId, params, options);
|
|
4549
3932
|
const query = useQuery(queryOptions, queryClient);
|
|
4550
3933
|
return withQueryKey$4(query, queryOptions.queryKey);
|
|
4551
3934
|
}
|
|
4552
|
-
const
|
|
4553
|
-
|
|
4554
|
-
Object.entries(params || {}).forEach(([key, value]) => {
|
|
4555
|
-
if (value !== void 0) normalizedParams.append(key, value === null ? "null" : String(value));
|
|
4556
|
-
});
|
|
4557
|
-
const stringifiedParams = normalizedParams.toString();
|
|
4558
|
-
return stringifiedParams.length > 0 ? `/organizations/${organizationId}/invitations?${stringifiedParams}` : `/organizations/${organizationId}/invitations`;
|
|
3935
|
+
const getAddOrganizationMemberUrl = (organizationId) => {
|
|
3936
|
+
return `/organizations/${organizationId}/members`;
|
|
4559
3937
|
};
|
|
4560
3938
|
/**
|
|
4561
|
-
*
|
|
4562
|
-
* @summary
|
|
3939
|
+
* Adds a user as a member of an organization with the specified role.
|
|
3940
|
+
* @summary Add member
|
|
4563
3941
|
*/
|
|
4564
|
-
const
|
|
3942
|
+
const addOrganizationMember = async (organizationId, addOrganizationMemberRequest, options) => {
|
|
4565
3943
|
const getHeaders = (h) => {
|
|
4566
3944
|
if (!h) return {};
|
|
4567
3945
|
if (h instanceof Headers) return Object.fromEntries(h.entries());
|
|
@@ -4570,19 +3948,19 @@ const createOrganizationInvitation = async (organizationId, createOrganizationIn
|
|
|
4570
3948
|
for (const [name, value] of Object.entries(h)) if (value !== void 0) headers[name] = value;
|
|
4571
3949
|
return headers;
|
|
4572
3950
|
};
|
|
4573
|
-
return customFetch(
|
|
3951
|
+
return customFetch(getAddOrganizationMemberUrl(organizationId), {
|
|
4574
3952
|
...options,
|
|
4575
3953
|
method: "POST",
|
|
4576
3954
|
headers: {
|
|
4577
3955
|
"Content-Type": "application/json",
|
|
4578
3956
|
...getHeaders(options?.headers)
|
|
4579
3957
|
},
|
|
4580
|
-
body: JSON.stringify(
|
|
3958
|
+
body: JSON.stringify(addOrganizationMemberRequest)
|
|
4581
3959
|
});
|
|
4582
3960
|
};
|
|
4583
|
-
const
|
|
4584
|
-
const
|
|
4585
|
-
const mutationKey =
|
|
3961
|
+
const getAddOrganizationMemberMutationKey = () => ["addOrganizationMember"];
|
|
3962
|
+
const getAddOrganizationMemberMutationOptions = (options) => {
|
|
3963
|
+
const mutationKey = getAddOrganizationMemberMutationKey();
|
|
4586
3964
|
const { mutation: mutationOptions, request: requestOptions } = options ? options.mutation && "mutationKey" in options.mutation && options.mutation.mutationKey ? options : {
|
|
4587
3965
|
...options,
|
|
4588
3966
|
mutation: {
|
|
@@ -4594,8 +3972,8 @@ const getCreateOrganizationInvitationMutationOptions = (options) => {
|
|
|
4594
3972
|
request: void 0
|
|
4595
3973
|
};
|
|
4596
3974
|
const mutationFn = (props) => {
|
|
4597
|
-
const { organizationId, data
|
|
4598
|
-
return
|
|
3975
|
+
const { organizationId, data } = props ?? {};
|
|
3976
|
+
return addOrganizationMember(organizationId, data, requestOptions);
|
|
4599
3977
|
};
|
|
4600
3978
|
return {
|
|
4601
3979
|
mutationFn,
|
|
@@ -4603,124 +3981,103 @@ const getCreateOrganizationInvitationMutationOptions = (options) => {
|
|
|
4603
3981
|
};
|
|
4604
3982
|
};
|
|
4605
3983
|
/**
|
|
4606
|
-
* @summary
|
|
3984
|
+
* @summary Add member
|
|
4607
3985
|
*/
|
|
4608
|
-
const
|
|
4609
|
-
return useMutation(
|
|
3986
|
+
const useAddOrganizationMember = (options, queryClient) => {
|
|
3987
|
+
return useMutation(getAddOrganizationMemberMutationOptions(options), queryClient);
|
|
4610
3988
|
};
|
|
4611
|
-
const
|
|
4612
|
-
return `/organizations/${organizationId}/
|
|
3989
|
+
const getGetOrganizationMemberByUserIDUrl = (organizationId, userId) => {
|
|
3990
|
+
return `/organizations/${organizationId}/members/by-user/${userId}`;
|
|
4613
3991
|
};
|
|
4614
3992
|
/**
|
|
4615
|
-
* Retrieves
|
|
4616
|
-
* @summary Get
|
|
3993
|
+
* Retrieves an organization member by the user's ID with nested user data.
|
|
3994
|
+
* @summary Get member by user ID
|
|
4617
3995
|
*/
|
|
4618
|
-
const
|
|
4619
|
-
return customFetch(
|
|
3996
|
+
const getOrganizationMemberByUserID = async (organizationId, userId, options) => {
|
|
3997
|
+
return customFetch(getGetOrganizationMemberByUserIDUrl(organizationId, userId), {
|
|
4620
3998
|
...options,
|
|
4621
3999
|
method: "GET"
|
|
4622
4000
|
});
|
|
4623
4001
|
};
|
|
4624
|
-
const
|
|
4625
|
-
return [`/organizations/${organizationId}/
|
|
4002
|
+
const getGetOrganizationMemberByUserIDQueryKey = (organizationId, userId) => {
|
|
4003
|
+
return [`/organizations/${organizationId}/members/by-user/${userId}`];
|
|
4626
4004
|
};
|
|
4627
|
-
const
|
|
4005
|
+
const getGetOrganizationMemberByUserIDQueryOptions = (organizationId, userId, options) => {
|
|
4628
4006
|
const { query: queryOptions, request: requestOptions } = options ?? {};
|
|
4629
|
-
const queryKey = queryOptions?.queryKey ??
|
|
4630
|
-
const queryFn = ({ signal }) =>
|
|
4007
|
+
const queryKey = queryOptions?.queryKey ?? getGetOrganizationMemberByUserIDQueryKey(organizationId, userId);
|
|
4008
|
+
const queryFn = ({ signal }) => getOrganizationMemberByUserID(organizationId, userId, {
|
|
4631
4009
|
signal,
|
|
4632
4010
|
...requestOptions
|
|
4633
4011
|
});
|
|
4634
4012
|
return {
|
|
4635
4013
|
queryKey,
|
|
4636
4014
|
queryFn,
|
|
4637
|
-
enabled: organizationId !== null && organizationId !== void 0 &&
|
|
4015
|
+
enabled: organizationId !== null && organizationId !== void 0 && userId !== null && userId !== void 0,
|
|
4638
4016
|
...queryOptions
|
|
4639
4017
|
};
|
|
4640
4018
|
};
|
|
4641
4019
|
/**
|
|
4642
|
-
* @summary Get
|
|
4020
|
+
* @summary Get member by user ID
|
|
4643
4021
|
*/
|
|
4644
|
-
function
|
|
4645
|
-
const queryOptions =
|
|
4022
|
+
function useGetOrganizationMemberByUserID(organizationId, userId, options, queryClient) {
|
|
4023
|
+
const queryOptions = getGetOrganizationMemberByUserIDQueryOptions(organizationId, userId, options);
|
|
4646
4024
|
const query = useQuery(queryOptions, queryClient);
|
|
4647
4025
|
return withQueryKey$4(query, queryOptions.queryKey);
|
|
4648
4026
|
}
|
|
4649
|
-
const
|
|
4650
|
-
|
|
4651
|
-
Object.entries(params || {}).forEach(([key, value]) => {
|
|
4652
|
-
if (value !== void 0) normalizedParams.append(key, value === null ? "null" : String(value));
|
|
4653
|
-
});
|
|
4654
|
-
const stringifiedParams = normalizedParams.toString();
|
|
4655
|
-
return stringifiedParams.length > 0 ? `/organizations/${organizationId}/invitations/${invitationId}/accept?${stringifiedParams}` : `/organizations/${organizationId}/invitations/${invitationId}/accept`;
|
|
4027
|
+
const getGetOrganizationMemberUrl = (organizationId, memberId) => {
|
|
4028
|
+
return `/organizations/${organizationId}/members/${memberId}`;
|
|
4656
4029
|
};
|
|
4657
4030
|
/**
|
|
4658
|
-
*
|
|
4659
|
-
* @summary
|
|
4031
|
+
* Retrieves a single organization member by ID with nested user data.
|
|
4032
|
+
* @summary Get member
|
|
4660
4033
|
*/
|
|
4661
|
-
const
|
|
4662
|
-
|
|
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
|
-
};
|
|
4670
|
-
return customFetch(getAcceptOrganizationInvitationUrl(organizationId, invitationId, params), {
|
|
4034
|
+
const getOrganizationMember = async (organizationId, memberId, options) => {
|
|
4035
|
+
return customFetch(getGetOrganizationMemberUrl(organizationId, memberId), {
|
|
4671
4036
|
...options,
|
|
4672
|
-
method: "
|
|
4673
|
-
headers: {
|
|
4674
|
-
"Content-Type": "application/json",
|
|
4675
|
-
...getHeaders(options?.headers)
|
|
4676
|
-
},
|
|
4677
|
-
body: JSON.stringify(acceptOrganizationInvitationQuery)
|
|
4037
|
+
method: "GET"
|
|
4678
4038
|
});
|
|
4679
4039
|
};
|
|
4680
|
-
const
|
|
4681
|
-
|
|
4682
|
-
|
|
4683
|
-
|
|
4684
|
-
|
|
4685
|
-
|
|
4686
|
-
|
|
4687
|
-
|
|
4688
|
-
|
|
4689
|
-
}
|
|
4690
|
-
mutation: { mutationKey },
|
|
4691
|
-
request: void 0
|
|
4692
|
-
};
|
|
4693
|
-
const mutationFn = (props) => {
|
|
4694
|
-
const { organizationId, invitationId, data, params } = props ?? {};
|
|
4695
|
-
return acceptOrganizationInvitation(organizationId, invitationId, data, params, requestOptions);
|
|
4696
|
-
};
|
|
4040
|
+
const getGetOrganizationMemberQueryKey = (organizationId, memberId) => {
|
|
4041
|
+
return [`/organizations/${organizationId}/members/${memberId}`];
|
|
4042
|
+
};
|
|
4043
|
+
const getGetOrganizationMemberQueryOptions = (organizationId, memberId, options) => {
|
|
4044
|
+
const { query: queryOptions, request: requestOptions } = options ?? {};
|
|
4045
|
+
const queryKey = queryOptions?.queryKey ?? getGetOrganizationMemberQueryKey(organizationId, memberId);
|
|
4046
|
+
const queryFn = ({ signal }) => getOrganizationMember(organizationId, memberId, {
|
|
4047
|
+
signal,
|
|
4048
|
+
...requestOptions
|
|
4049
|
+
});
|
|
4697
4050
|
return {
|
|
4698
|
-
|
|
4699
|
-
|
|
4051
|
+
queryKey,
|
|
4052
|
+
queryFn,
|
|
4053
|
+
enabled: organizationId !== null && organizationId !== void 0 && memberId !== null && memberId !== void 0,
|
|
4054
|
+
...queryOptions
|
|
4700
4055
|
};
|
|
4701
4056
|
};
|
|
4702
4057
|
/**
|
|
4703
|
-
* @summary
|
|
4058
|
+
* @summary Get member
|
|
4704
4059
|
*/
|
|
4705
|
-
|
|
4706
|
-
|
|
4707
|
-
|
|
4708
|
-
|
|
4709
|
-
|
|
4060
|
+
function useGetOrganizationMember(organizationId, memberId, options, queryClient) {
|
|
4061
|
+
const queryOptions = getGetOrganizationMemberQueryOptions(organizationId, memberId, options);
|
|
4062
|
+
const query = useQuery(queryOptions, queryClient);
|
|
4063
|
+
return withQueryKey$4(query, queryOptions.queryKey);
|
|
4064
|
+
}
|
|
4065
|
+
const getDeleteOrganizationMemberUrl = (organizationId, memberId) => {
|
|
4066
|
+
return `/organizations/${organizationId}/members/${memberId}`;
|
|
4710
4067
|
};
|
|
4711
4068
|
/**
|
|
4712
|
-
*
|
|
4713
|
-
* @summary
|
|
4069
|
+
* Removes a member from an organization.
|
|
4070
|
+
* @summary Delete member
|
|
4714
4071
|
*/
|
|
4715
|
-
const
|
|
4716
|
-
return customFetch(
|
|
4072
|
+
const deleteOrganizationMember = async (organizationId, memberId, options) => {
|
|
4073
|
+
return customFetch(getDeleteOrganizationMemberUrl(organizationId, memberId), {
|
|
4717
4074
|
...options,
|
|
4718
|
-
method: "
|
|
4075
|
+
method: "DELETE"
|
|
4719
4076
|
});
|
|
4720
4077
|
};
|
|
4721
|
-
const
|
|
4722
|
-
const
|
|
4723
|
-
const mutationKey =
|
|
4078
|
+
const getDeleteOrganizationMemberMutationKey = () => ["deleteOrganizationMember"];
|
|
4079
|
+
const getDeleteOrganizationMemberMutationOptions = (options) => {
|
|
4080
|
+
const mutationKey = getDeleteOrganizationMemberMutationKey();
|
|
4724
4081
|
const { mutation: mutationOptions, request: requestOptions } = options ? options.mutation && "mutationKey" in options.mutation && options.mutation.mutationKey ? options : {
|
|
4725
4082
|
...options,
|
|
4726
4083
|
mutation: {
|
|
@@ -4732,8 +4089,8 @@ const getRejectOrganizationInvitationMutationOptions = (options) => {
|
|
|
4732
4089
|
request: void 0
|
|
4733
4090
|
};
|
|
4734
4091
|
const mutationFn = (props) => {
|
|
4735
|
-
const { organizationId,
|
|
4736
|
-
return
|
|
4092
|
+
const { organizationId, memberId } = props ?? {};
|
|
4093
|
+
return deleteOrganizationMember(organizationId, memberId, requestOptions);
|
|
4737
4094
|
};
|
|
4738
4095
|
return {
|
|
4739
4096
|
mutationFn,
|
|
@@ -4741,27 +4098,40 @@ const getRejectOrganizationInvitationMutationOptions = (options) => {
|
|
|
4741
4098
|
};
|
|
4742
4099
|
};
|
|
4743
4100
|
/**
|
|
4744
|
-
* @summary
|
|
4101
|
+
* @summary Delete member
|
|
4745
4102
|
*/
|
|
4746
|
-
const
|
|
4747
|
-
return useMutation(
|
|
4103
|
+
const useDeleteOrganizationMember = (options, queryClient) => {
|
|
4104
|
+
return useMutation(getDeleteOrganizationMemberMutationOptions(options), queryClient);
|
|
4748
4105
|
};
|
|
4749
|
-
const
|
|
4750
|
-
return `/organizations/${organizationId}/
|
|
4106
|
+
const getUpdateOrganizationMemberUrl = (organizationId, memberId) => {
|
|
4107
|
+
return `/organizations/${organizationId}/members/${memberId}`;
|
|
4751
4108
|
};
|
|
4752
4109
|
/**
|
|
4753
|
-
*
|
|
4754
|
-
* @summary
|
|
4110
|
+
* Updates the role of an organization member.
|
|
4111
|
+
* @summary Update member
|
|
4755
4112
|
*/
|
|
4756
|
-
const
|
|
4757
|
-
|
|
4113
|
+
const updateOrganizationMember = async (organizationId, memberId, updateOrganizationMemberRequest, options) => {
|
|
4114
|
+
const getHeaders = (h) => {
|
|
4115
|
+
if (!h) return {};
|
|
4116
|
+
if (h instanceof Headers) return Object.fromEntries(h.entries());
|
|
4117
|
+
if (Symbol.iterator in h) return Object.fromEntries(Array.from(h, (entry) => Array.from(entry)));
|
|
4118
|
+
const headers = {};
|
|
4119
|
+
for (const [name, value] of Object.entries(h)) if (value !== void 0) headers[name] = value;
|
|
4120
|
+
return headers;
|
|
4121
|
+
};
|
|
4122
|
+
return customFetch(getUpdateOrganizationMemberUrl(organizationId, memberId), {
|
|
4758
4123
|
...options,
|
|
4759
|
-
method: "PATCH"
|
|
4124
|
+
method: "PATCH",
|
|
4125
|
+
headers: {
|
|
4126
|
+
"Content-Type": "application/json",
|
|
4127
|
+
...getHeaders(options?.headers)
|
|
4128
|
+
},
|
|
4129
|
+
body: JSON.stringify(updateOrganizationMemberRequest)
|
|
4760
4130
|
});
|
|
4761
4131
|
};
|
|
4762
|
-
const
|
|
4763
|
-
const
|
|
4764
|
-
const mutationKey =
|
|
4132
|
+
const getUpdateOrganizationMemberMutationKey = () => ["updateOrganizationMember"];
|
|
4133
|
+
const getUpdateOrganizationMemberMutationOptions = (options) => {
|
|
4134
|
+
const mutationKey = getUpdateOrganizationMemberMutationKey();
|
|
4765
4135
|
const { mutation: mutationOptions, request: requestOptions } = options ? options.mutation && "mutationKey" in options.mutation && options.mutation.mutationKey ? options : {
|
|
4766
4136
|
...options,
|
|
4767
4137
|
mutation: {
|
|
@@ -4773,8 +4143,8 @@ const getRevokeOrganizationInvitationMutationOptions = (options) => {
|
|
|
4773
4143
|
request: void 0
|
|
4774
4144
|
};
|
|
4775
4145
|
const mutationFn = (props) => {
|
|
4776
|
-
const { organizationId,
|
|
4777
|
-
return
|
|
4146
|
+
const { organizationId, memberId, data } = props ?? {};
|
|
4147
|
+
return updateOrganizationMember(organizationId, memberId, data, requestOptions);
|
|
4778
4148
|
};
|
|
4779
4149
|
return {
|
|
4780
4150
|
mutationFn,
|
|
@@ -4782,14 +4152,13 @@ const getRevokeOrganizationInvitationMutationOptions = (options) => {
|
|
|
4782
4152
|
};
|
|
4783
4153
|
};
|
|
4784
4154
|
/**
|
|
4785
|
-
* @summary
|
|
4155
|
+
* @summary Update member
|
|
4786
4156
|
*/
|
|
4787
|
-
const
|
|
4788
|
-
return useMutation(
|
|
4157
|
+
const useUpdateOrganizationMember = (options, queryClient) => {
|
|
4158
|
+
return useMutation(getUpdateOrganizationMemberMutationOptions(options), queryClient);
|
|
4789
4159
|
};
|
|
4790
4160
|
|
|
4791
|
-
|
|
4792
|
-
//#region src/gen/endpoints/organization-members/organization-members.ts
|
|
4161
|
+
// src/gen/react/organization-team-members/organization-team-members.ts
|
|
4793
4162
|
/**
|
|
4794
4163
|
* Generated by orval 🍺
|
|
4795
4164
|
* Do not edit manually.
|
|
@@ -4797,38 +4166,6 @@ const useRevokeOrganizationInvitation = (options, queryClient) => {
|
|
|
4797
4166
|
* Authula API - An open-source authentication solution that scales with you.
|
|
4798
4167
|
* OpenAPI spec version: 0.1.0
|
|
4799
4168
|
*/
|
|
4800
|
-
var organization_members_exports = /* @__PURE__ */ __exportAll({
|
|
4801
|
-
addOrganizationMember: () => addOrganizationMember,
|
|
4802
|
-
deleteOrganizationMember: () => deleteOrganizationMember,
|
|
4803
|
-
getAddOrganizationMemberMutationKey: () => getAddOrganizationMemberMutationKey,
|
|
4804
|
-
getAddOrganizationMemberMutationOptions: () => getAddOrganizationMemberMutationOptions,
|
|
4805
|
-
getAddOrganizationMemberUrl: () => getAddOrganizationMemberUrl,
|
|
4806
|
-
getDeleteOrganizationMemberMutationKey: () => getDeleteOrganizationMemberMutationKey,
|
|
4807
|
-
getDeleteOrganizationMemberMutationOptions: () => getDeleteOrganizationMemberMutationOptions,
|
|
4808
|
-
getDeleteOrganizationMemberUrl: () => getDeleteOrganizationMemberUrl,
|
|
4809
|
-
getGetOrganizationMemberByUserIDQueryKey: () => getGetOrganizationMemberByUserIDQueryKey,
|
|
4810
|
-
getGetOrganizationMemberByUserIDQueryOptions: () => getGetOrganizationMemberByUserIDQueryOptions,
|
|
4811
|
-
getGetOrganizationMemberByUserIDUrl: () => getGetOrganizationMemberByUserIDUrl,
|
|
4812
|
-
getGetOrganizationMemberQueryKey: () => getGetOrganizationMemberQueryKey,
|
|
4813
|
-
getGetOrganizationMemberQueryOptions: () => getGetOrganizationMemberQueryOptions,
|
|
4814
|
-
getGetOrganizationMemberUrl: () => getGetOrganizationMemberUrl,
|
|
4815
|
-
getListOrganizationMembersQueryKey: () => getListOrganizationMembersQueryKey,
|
|
4816
|
-
getListOrganizationMembersQueryOptions: () => getListOrganizationMembersQueryOptions,
|
|
4817
|
-
getListOrganizationMembersUrl: () => getListOrganizationMembersUrl,
|
|
4818
|
-
getOrganizationMember: () => getOrganizationMember,
|
|
4819
|
-
getOrganizationMemberByUserID: () => getOrganizationMemberByUserID,
|
|
4820
|
-
getUpdateOrganizationMemberMutationKey: () => getUpdateOrganizationMemberMutationKey,
|
|
4821
|
-
getUpdateOrganizationMemberMutationOptions: () => getUpdateOrganizationMemberMutationOptions,
|
|
4822
|
-
getUpdateOrganizationMemberUrl: () => getUpdateOrganizationMemberUrl,
|
|
4823
|
-
listOrganizationMembers: () => listOrganizationMembers,
|
|
4824
|
-
updateOrganizationMember: () => updateOrganizationMember,
|
|
4825
|
-
useAddOrganizationMember: () => useAddOrganizationMember,
|
|
4826
|
-
useDeleteOrganizationMember: () => useDeleteOrganizationMember,
|
|
4827
|
-
useGetOrganizationMember: () => useGetOrganizationMember,
|
|
4828
|
-
useGetOrganizationMemberByUserID: () => useGetOrganizationMemberByUserID,
|
|
4829
|
-
useListOrganizationMembers: () => useListOrganizationMembers,
|
|
4830
|
-
useUpdateOrganizationMember: () => useUpdateOrganizationMember
|
|
4831
|
-
});
|
|
4832
4169
|
const withQueryKey$3 = (query, queryKey) => {
|
|
4833
4170
|
const result = { queryKey };
|
|
4834
4171
|
for (const key of Object.keys(query)) {
|
|
@@ -4841,57 +4178,57 @@ const withQueryKey$3 = (query, queryKey) => {
|
|
|
4841
4178
|
}
|
|
4842
4179
|
return result;
|
|
4843
4180
|
};
|
|
4844
|
-
const
|
|
4181
|
+
const getListOrganizationTeamMembersUrl = (organizationId, teamId, params) => {
|
|
4845
4182
|
const normalizedParams = new URLSearchParams();
|
|
4846
4183
|
Object.entries(params || {}).forEach(([key, value]) => {
|
|
4847
4184
|
if (value !== void 0) normalizedParams.append(key, value === null ? "null" : String(value));
|
|
4848
4185
|
});
|
|
4849
4186
|
const stringifiedParams = normalizedParams.toString();
|
|
4850
|
-
return stringifiedParams.length > 0 ? `/organizations/${organizationId}/members?${stringifiedParams}` : `/organizations/${organizationId}/members`;
|
|
4187
|
+
return stringifiedParams.length > 0 ? `/organizations/${organizationId}/teams/${teamId}/members?${stringifiedParams}` : `/organizations/${organizationId}/teams/${teamId}/members`;
|
|
4851
4188
|
};
|
|
4852
4189
|
/**
|
|
4853
|
-
* Lists the members of
|
|
4854
|
-
* @summary List members
|
|
4190
|
+
* Lists the members of a team, newest first. Results are paginated: `page` defaults to 1 and `limit` defaults to 10. `limit` is capped by the server's configured maximum page size, which defaults to 100; a larger value is silently reduced to the cap rather than rejected, and values below the minimum fall back to the defaults. The `pagination` object in the response always reports the values actually applied.
|
|
4191
|
+
* @summary List team members
|
|
4855
4192
|
*/
|
|
4856
|
-
const
|
|
4857
|
-
return customFetch(
|
|
4193
|
+
const listOrganizationTeamMembers = async (organizationId, teamId, params, options) => {
|
|
4194
|
+
return customFetch(getListOrganizationTeamMembersUrl(organizationId, teamId, params), {
|
|
4858
4195
|
...options,
|
|
4859
4196
|
method: "GET"
|
|
4860
4197
|
});
|
|
4861
4198
|
};
|
|
4862
|
-
const
|
|
4863
|
-
return [`/organizations/${organizationId}/members`, ...params ? [params] : []];
|
|
4199
|
+
const getListOrganizationTeamMembersQueryKey = (organizationId, teamId, params) => {
|
|
4200
|
+
return [`/organizations/${organizationId}/teams/${teamId}/members`, ...params ? [params] : []];
|
|
4864
4201
|
};
|
|
4865
|
-
const
|
|
4202
|
+
const getListOrganizationTeamMembersQueryOptions = (organizationId, teamId, params, options) => {
|
|
4866
4203
|
const { query: queryOptions, request: requestOptions } = options ?? {};
|
|
4867
|
-
const queryKey = queryOptions?.queryKey ??
|
|
4868
|
-
const queryFn = ({ signal }) =>
|
|
4204
|
+
const queryKey = queryOptions?.queryKey ?? getListOrganizationTeamMembersQueryKey(organizationId, teamId, params);
|
|
4205
|
+
const queryFn = ({ signal }) => listOrganizationTeamMembers(organizationId, teamId, params, {
|
|
4869
4206
|
signal,
|
|
4870
4207
|
...requestOptions
|
|
4871
4208
|
});
|
|
4872
4209
|
return {
|
|
4873
4210
|
queryKey,
|
|
4874
4211
|
queryFn,
|
|
4875
|
-
enabled: organizationId !== null && organizationId !== void 0,
|
|
4212
|
+
enabled: organizationId !== null && organizationId !== void 0 && teamId !== null && teamId !== void 0,
|
|
4876
4213
|
...queryOptions
|
|
4877
4214
|
};
|
|
4878
4215
|
};
|
|
4879
4216
|
/**
|
|
4880
|
-
* @summary List members
|
|
4217
|
+
* @summary List team members
|
|
4881
4218
|
*/
|
|
4882
|
-
function
|
|
4883
|
-
const queryOptions =
|
|
4219
|
+
function useListOrganizationTeamMembers(organizationId, teamId, params, options, queryClient) {
|
|
4220
|
+
const queryOptions = getListOrganizationTeamMembersQueryOptions(organizationId, teamId, params, options);
|
|
4884
4221
|
const query = useQuery(queryOptions, queryClient);
|
|
4885
4222
|
return withQueryKey$3(query, queryOptions.queryKey);
|
|
4886
4223
|
}
|
|
4887
|
-
const
|
|
4888
|
-
return `/organizations/${organizationId}/members`;
|
|
4224
|
+
const getAddOrganizationTeamMemberUrl = (organizationId, teamId) => {
|
|
4225
|
+
return `/organizations/${organizationId}/teams/${teamId}/members`;
|
|
4889
4226
|
};
|
|
4890
4227
|
/**
|
|
4891
|
-
* Adds a
|
|
4892
|
-
* @summary Add member
|
|
4228
|
+
* Adds a member to a team.
|
|
4229
|
+
* @summary Add team member
|
|
4893
4230
|
*/
|
|
4894
|
-
const
|
|
4231
|
+
const addOrganizationTeamMember = async (organizationId, teamId, addOrganizationTeamMemberRequest, options) => {
|
|
4895
4232
|
const getHeaders = (h) => {
|
|
4896
4233
|
if (!h) return {};
|
|
4897
4234
|
if (h instanceof Headers) return Object.fromEntries(h.entries());
|
|
@@ -4900,19 +4237,19 @@ const addOrganizationMember = async (organizationId, addOrganizationMemberReques
|
|
|
4900
4237
|
for (const [name, value] of Object.entries(h)) if (value !== void 0) headers[name] = value;
|
|
4901
4238
|
return headers;
|
|
4902
4239
|
};
|
|
4903
|
-
return customFetch(
|
|
4240
|
+
return customFetch(getAddOrganizationTeamMemberUrl(organizationId, teamId), {
|
|
4904
4241
|
...options,
|
|
4905
4242
|
method: "POST",
|
|
4906
4243
|
headers: {
|
|
4907
4244
|
"Content-Type": "application/json",
|
|
4908
4245
|
...getHeaders(options?.headers)
|
|
4909
4246
|
},
|
|
4910
|
-
body: JSON.stringify(
|
|
4247
|
+
body: JSON.stringify(addOrganizationTeamMemberRequest)
|
|
4911
4248
|
});
|
|
4912
4249
|
};
|
|
4913
|
-
const
|
|
4914
|
-
const
|
|
4915
|
-
const mutationKey =
|
|
4250
|
+
const getAddOrganizationTeamMemberMutationKey = () => ["addOrganizationTeamMember"];
|
|
4251
|
+
const getAddOrganizationTeamMemberMutationOptions = (options) => {
|
|
4252
|
+
const mutationKey = getAddOrganizationTeamMemberMutationKey();
|
|
4916
4253
|
const { mutation: mutationOptions, request: requestOptions } = options ? options.mutation && "mutationKey" in options.mutation && options.mutation.mutationKey ? options : {
|
|
4917
4254
|
...options,
|
|
4918
4255
|
mutation: {
|
|
@@ -4924,8 +4261,8 @@ const getAddOrganizationMemberMutationOptions = (options) => {
|
|
|
4924
4261
|
request: void 0
|
|
4925
4262
|
};
|
|
4926
4263
|
const mutationFn = (props) => {
|
|
4927
|
-
const { organizationId, data } = props ?? {};
|
|
4928
|
-
return
|
|
4264
|
+
const { organizationId, teamId, data } = props ?? {};
|
|
4265
|
+
return addOrganizationTeamMember(organizationId, teamId, data, requestOptions);
|
|
4929
4266
|
};
|
|
4930
4267
|
return {
|
|
4931
4268
|
mutationFn,
|
|
@@ -4933,157 +4270,65 @@ const getAddOrganizationMemberMutationOptions = (options) => {
|
|
|
4933
4270
|
};
|
|
4934
4271
|
};
|
|
4935
4272
|
/**
|
|
4936
|
-
* @summary Add member
|
|
4273
|
+
* @summary Add team member
|
|
4937
4274
|
*/
|
|
4938
|
-
const
|
|
4939
|
-
return useMutation(
|
|
4275
|
+
const useAddOrganizationTeamMember = (options, queryClient) => {
|
|
4276
|
+
return useMutation(getAddOrganizationTeamMemberMutationOptions(options), queryClient);
|
|
4940
4277
|
};
|
|
4941
|
-
const
|
|
4942
|
-
return `/organizations/${organizationId}/members
|
|
4278
|
+
const getGetOrganizationTeamMemberUrl = (organizationId, teamId, memberId) => {
|
|
4279
|
+
return `/organizations/${organizationId}/teams/${teamId}/members/${memberId}`;
|
|
4943
4280
|
};
|
|
4944
4281
|
/**
|
|
4945
|
-
* Retrieves
|
|
4946
|
-
* @summary Get member
|
|
4282
|
+
* Retrieves a single team member by ID with nested member and user data.
|
|
4283
|
+
* @summary Get team member
|
|
4947
4284
|
*/
|
|
4948
|
-
const
|
|
4949
|
-
return customFetch(
|
|
4285
|
+
const getOrganizationTeamMember = async (organizationId, teamId, memberId, options) => {
|
|
4286
|
+
return customFetch(getGetOrganizationTeamMemberUrl(organizationId, teamId, memberId), {
|
|
4950
4287
|
...options,
|
|
4951
4288
|
method: "GET"
|
|
4952
4289
|
});
|
|
4953
4290
|
};
|
|
4954
|
-
const
|
|
4955
|
-
return [`/organizations/${organizationId}/members
|
|
4291
|
+
const getGetOrganizationTeamMemberQueryKey = (organizationId, teamId, memberId) => {
|
|
4292
|
+
return [`/organizations/${organizationId}/teams/${teamId}/members/${memberId}`];
|
|
4956
4293
|
};
|
|
4957
|
-
const
|
|
4958
|
-
const { query: queryOptions, request: requestOptions } = options ?? {};
|
|
4959
|
-
const queryKey = queryOptions?.queryKey ?? getGetOrganizationMemberByUserIDQueryKey(organizationId, userId);
|
|
4960
|
-
const queryFn = ({ signal }) => getOrganizationMemberByUserID(organizationId, userId, {
|
|
4961
|
-
signal,
|
|
4962
|
-
...requestOptions
|
|
4963
|
-
});
|
|
4964
|
-
return {
|
|
4965
|
-
queryKey,
|
|
4966
|
-
queryFn,
|
|
4967
|
-
enabled: organizationId !== null && organizationId !== void 0 && userId !== null && userId !== void 0,
|
|
4968
|
-
...queryOptions
|
|
4969
|
-
};
|
|
4970
|
-
};
|
|
4971
|
-
/**
|
|
4972
|
-
* @summary Get member by user ID
|
|
4973
|
-
*/
|
|
4974
|
-
function useGetOrganizationMemberByUserID(organizationId, userId, options, queryClient) {
|
|
4975
|
-
const queryOptions = getGetOrganizationMemberByUserIDQueryOptions(organizationId, userId, options);
|
|
4976
|
-
const query = useQuery(queryOptions, queryClient);
|
|
4977
|
-
return withQueryKey$3(query, queryOptions.queryKey);
|
|
4978
|
-
}
|
|
4979
|
-
const getGetOrganizationMemberUrl = (organizationId, memberId) => {
|
|
4980
|
-
return `/organizations/${organizationId}/members/${memberId}`;
|
|
4981
|
-
};
|
|
4982
|
-
/**
|
|
4983
|
-
* Retrieves a single organization member by ID with nested user data.
|
|
4984
|
-
* @summary Get member
|
|
4985
|
-
*/
|
|
4986
|
-
const getOrganizationMember = async (organizationId, memberId, options) => {
|
|
4987
|
-
return customFetch(getGetOrganizationMemberUrl(organizationId, memberId), {
|
|
4988
|
-
...options,
|
|
4989
|
-
method: "GET"
|
|
4990
|
-
});
|
|
4991
|
-
};
|
|
4992
|
-
const getGetOrganizationMemberQueryKey = (organizationId, memberId) => {
|
|
4993
|
-
return [`/organizations/${organizationId}/members/${memberId}`];
|
|
4994
|
-
};
|
|
4995
|
-
const getGetOrganizationMemberQueryOptions = (organizationId, memberId, options) => {
|
|
4294
|
+
const getGetOrganizationTeamMemberQueryOptions = (organizationId, teamId, memberId, options) => {
|
|
4996
4295
|
const { query: queryOptions, request: requestOptions } = options ?? {};
|
|
4997
|
-
const queryKey = queryOptions?.queryKey ??
|
|
4998
|
-
const queryFn = ({ signal }) =>
|
|
4296
|
+
const queryKey = queryOptions?.queryKey ?? getGetOrganizationTeamMemberQueryKey(organizationId, teamId, memberId);
|
|
4297
|
+
const queryFn = ({ signal }) => getOrganizationTeamMember(organizationId, teamId, memberId, {
|
|
4999
4298
|
signal,
|
|
5000
4299
|
...requestOptions
|
|
5001
4300
|
});
|
|
5002
4301
|
return {
|
|
5003
4302
|
queryKey,
|
|
5004
4303
|
queryFn,
|
|
5005
|
-
enabled: organizationId !== null && organizationId !== void 0 && memberId !== null && memberId !== void 0,
|
|
4304
|
+
enabled: organizationId !== null && organizationId !== void 0 && teamId !== null && teamId !== void 0 && memberId !== null && memberId !== void 0,
|
|
5006
4305
|
...queryOptions
|
|
5007
4306
|
};
|
|
5008
4307
|
};
|
|
5009
4308
|
/**
|
|
5010
|
-
* @summary Get member
|
|
4309
|
+
* @summary Get team member
|
|
5011
4310
|
*/
|
|
5012
|
-
function
|
|
5013
|
-
const queryOptions =
|
|
4311
|
+
function useGetOrganizationTeamMember(organizationId, teamId, memberId, options, queryClient) {
|
|
4312
|
+
const queryOptions = getGetOrganizationTeamMemberQueryOptions(organizationId, teamId, memberId, options);
|
|
5014
4313
|
const query = useQuery(queryOptions, queryClient);
|
|
5015
4314
|
return withQueryKey$3(query, queryOptions.queryKey);
|
|
5016
4315
|
}
|
|
5017
|
-
const
|
|
5018
|
-
return `/organizations/${organizationId}/members/${memberId}`;
|
|
4316
|
+
const getDeleteOrganizationTeamMemberUrl = (organizationId, teamId, memberId) => {
|
|
4317
|
+
return `/organizations/${organizationId}/teams/${teamId}/members/${memberId}`;
|
|
5019
4318
|
};
|
|
5020
4319
|
/**
|
|
5021
|
-
* Removes a member from
|
|
5022
|
-
* @summary Delete member
|
|
4320
|
+
* Removes a member from a team.
|
|
4321
|
+
* @summary Delete team member
|
|
5023
4322
|
*/
|
|
5024
|
-
const
|
|
5025
|
-
return customFetch(
|
|
4323
|
+
const deleteOrganizationTeamMember = async (organizationId, teamId, memberId, options) => {
|
|
4324
|
+
return customFetch(getDeleteOrganizationTeamMemberUrl(organizationId, teamId, memberId), {
|
|
5026
4325
|
...options,
|
|
5027
4326
|
method: "DELETE"
|
|
5028
4327
|
});
|
|
5029
4328
|
};
|
|
5030
|
-
const
|
|
5031
|
-
const
|
|
5032
|
-
const mutationKey =
|
|
5033
|
-
const { mutation: mutationOptions, request: requestOptions } = options ? options.mutation && "mutationKey" in options.mutation && options.mutation.mutationKey ? options : {
|
|
5034
|
-
...options,
|
|
5035
|
-
mutation: {
|
|
5036
|
-
...options.mutation,
|
|
5037
|
-
mutationKey
|
|
5038
|
-
}
|
|
5039
|
-
} : {
|
|
5040
|
-
mutation: { mutationKey },
|
|
5041
|
-
request: void 0
|
|
5042
|
-
};
|
|
5043
|
-
const mutationFn = (props) => {
|
|
5044
|
-
const { organizationId, memberId } = props ?? {};
|
|
5045
|
-
return deleteOrganizationMember(organizationId, memberId, requestOptions);
|
|
5046
|
-
};
|
|
5047
|
-
return {
|
|
5048
|
-
mutationFn,
|
|
5049
|
-
...mutationOptions
|
|
5050
|
-
};
|
|
5051
|
-
};
|
|
5052
|
-
/**
|
|
5053
|
-
* @summary Delete member
|
|
5054
|
-
*/
|
|
5055
|
-
const useDeleteOrganizationMember = (options, queryClient) => {
|
|
5056
|
-
return useMutation(getDeleteOrganizationMemberMutationOptions(options), queryClient);
|
|
5057
|
-
};
|
|
5058
|
-
const getUpdateOrganizationMemberUrl = (organizationId, memberId) => {
|
|
5059
|
-
return `/organizations/${organizationId}/members/${memberId}`;
|
|
5060
|
-
};
|
|
5061
|
-
/**
|
|
5062
|
-
* Updates the role of an organization member.
|
|
5063
|
-
* @summary Update member
|
|
5064
|
-
*/
|
|
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
|
-
};
|
|
5074
|
-
return customFetch(getUpdateOrganizationMemberUrl(organizationId, memberId), {
|
|
5075
|
-
...options,
|
|
5076
|
-
method: "PATCH",
|
|
5077
|
-
headers: {
|
|
5078
|
-
"Content-Type": "application/json",
|
|
5079
|
-
...getHeaders(options?.headers)
|
|
5080
|
-
},
|
|
5081
|
-
body: JSON.stringify(updateOrganizationMemberRequest)
|
|
5082
|
-
});
|
|
5083
|
-
};
|
|
5084
|
-
const getUpdateOrganizationMemberMutationKey = () => ["updateOrganizationMember"];
|
|
5085
|
-
const getUpdateOrganizationMemberMutationOptions = (options) => {
|
|
5086
|
-
const mutationKey = getUpdateOrganizationMemberMutationKey();
|
|
4329
|
+
const getDeleteOrganizationTeamMemberMutationKey = () => ["deleteOrganizationTeamMember"];
|
|
4330
|
+
const getDeleteOrganizationTeamMemberMutationOptions = (options) => {
|
|
4331
|
+
const mutationKey = getDeleteOrganizationTeamMemberMutationKey();
|
|
5087
4332
|
const { mutation: mutationOptions, request: requestOptions } = options ? options.mutation && "mutationKey" in options.mutation && options.mutation.mutationKey ? options : {
|
|
5088
4333
|
...options,
|
|
5089
4334
|
mutation: {
|
|
@@ -5095,8 +4340,8 @@ const getUpdateOrganizationMemberMutationOptions = (options) => {
|
|
|
5095
4340
|
request: void 0
|
|
5096
4341
|
};
|
|
5097
4342
|
const mutationFn = (props) => {
|
|
5098
|
-
const { organizationId,
|
|
5099
|
-
return
|
|
4343
|
+
const { organizationId, teamId, memberId } = props ?? {};
|
|
4344
|
+
return deleteOrganizationTeamMember(organizationId, teamId, memberId, requestOptions);
|
|
5100
4345
|
};
|
|
5101
4346
|
return {
|
|
5102
4347
|
mutationFn,
|
|
@@ -5104,14 +4349,13 @@ const getUpdateOrganizationMemberMutationOptions = (options) => {
|
|
|
5104
4349
|
};
|
|
5105
4350
|
};
|
|
5106
4351
|
/**
|
|
5107
|
-
* @summary
|
|
4352
|
+
* @summary Delete team member
|
|
5108
4353
|
*/
|
|
5109
|
-
const
|
|
5110
|
-
return useMutation(
|
|
4354
|
+
const useDeleteOrganizationTeamMember = (options, queryClient) => {
|
|
4355
|
+
return useMutation(getDeleteOrganizationTeamMemberMutationOptions(options), queryClient);
|
|
5111
4356
|
};
|
|
5112
4357
|
|
|
5113
|
-
|
|
5114
|
-
//#region src/gen/endpoints/organization-teams/organization-teams.ts
|
|
4358
|
+
// src/gen/react/organization-teams/organization-teams.ts
|
|
5115
4359
|
/**
|
|
5116
4360
|
* Generated by orval 🍺
|
|
5117
4361
|
* Do not edit manually.
|
|
@@ -5119,33 +4363,6 @@ const useUpdateOrganizationMember = (options, queryClient) => {
|
|
|
5119
4363
|
* Authula API - An open-source authentication solution that scales with you.
|
|
5120
4364
|
* OpenAPI spec version: 0.1.0
|
|
5121
4365
|
*/
|
|
5122
|
-
var organization_teams_exports = /* @__PURE__ */ __exportAll({
|
|
5123
|
-
createOrganizationTeam: () => createOrganizationTeam,
|
|
5124
|
-
deleteOrganizationTeam: () => deleteOrganizationTeam,
|
|
5125
|
-
getCreateOrganizationTeamMutationKey: () => getCreateOrganizationTeamMutationKey,
|
|
5126
|
-
getCreateOrganizationTeamMutationOptions: () => getCreateOrganizationTeamMutationOptions,
|
|
5127
|
-
getCreateOrganizationTeamUrl: () => getCreateOrganizationTeamUrl,
|
|
5128
|
-
getDeleteOrganizationTeamMutationKey: () => getDeleteOrganizationTeamMutationKey,
|
|
5129
|
-
getDeleteOrganizationTeamMutationOptions: () => getDeleteOrganizationTeamMutationOptions,
|
|
5130
|
-
getDeleteOrganizationTeamUrl: () => getDeleteOrganizationTeamUrl,
|
|
5131
|
-
getGetOrganizationTeamQueryKey: () => getGetOrganizationTeamQueryKey,
|
|
5132
|
-
getGetOrganizationTeamQueryOptions: () => getGetOrganizationTeamQueryOptions,
|
|
5133
|
-
getGetOrganizationTeamUrl: () => getGetOrganizationTeamUrl,
|
|
5134
|
-
getListOrganizationTeamsQueryKey: () => getListOrganizationTeamsQueryKey,
|
|
5135
|
-
getListOrganizationTeamsQueryOptions: () => getListOrganizationTeamsQueryOptions,
|
|
5136
|
-
getListOrganizationTeamsUrl: () => getListOrganizationTeamsUrl,
|
|
5137
|
-
getOrganizationTeam: () => getOrganizationTeam,
|
|
5138
|
-
getUpdateOrganizationTeamMutationKey: () => getUpdateOrganizationTeamMutationKey,
|
|
5139
|
-
getUpdateOrganizationTeamMutationOptions: () => getUpdateOrganizationTeamMutationOptions,
|
|
5140
|
-
getUpdateOrganizationTeamUrl: () => getUpdateOrganizationTeamUrl,
|
|
5141
|
-
listOrganizationTeams: () => listOrganizationTeams,
|
|
5142
|
-
updateOrganizationTeam: () => updateOrganizationTeam,
|
|
5143
|
-
useCreateOrganizationTeam: () => useCreateOrganizationTeam,
|
|
5144
|
-
useDeleteOrganizationTeam: () => useDeleteOrganizationTeam,
|
|
5145
|
-
useGetOrganizationTeam: () => useGetOrganizationTeam,
|
|
5146
|
-
useListOrganizationTeams: () => useListOrganizationTeams,
|
|
5147
|
-
useUpdateOrganizationTeam: () => useUpdateOrganizationTeam
|
|
5148
|
-
});
|
|
5149
4366
|
const withQueryKey$2 = (query, queryKey) => {
|
|
5150
4367
|
const result = { queryKey };
|
|
5151
4368
|
for (const key of Object.keys(query)) {
|
|
@@ -5389,8 +4606,7 @@ const useUpdateOrganizationTeam = (options, queryClient) => {
|
|
|
5389
4606
|
return useMutation(getUpdateOrganizationTeamMutationOptions(options), queryClient);
|
|
5390
4607
|
};
|
|
5391
4608
|
|
|
5392
|
-
|
|
5393
|
-
//#region src/gen/endpoints/organization-team-members/organization-team-members.ts
|
|
4609
|
+
// src/gen/react/organizations/organizations.ts
|
|
5394
4610
|
/**
|
|
5395
4611
|
* Generated by orval 🍺
|
|
5396
4612
|
* Do not edit manually.
|
|
@@ -5398,28 +4614,6 @@ const useUpdateOrganizationTeam = (options, queryClient) => {
|
|
|
5398
4614
|
* Authula API - An open-source authentication solution that scales with you.
|
|
5399
4615
|
* OpenAPI spec version: 0.1.0
|
|
5400
4616
|
*/
|
|
5401
|
-
var organization_team_members_exports = /* @__PURE__ */ __exportAll({
|
|
5402
|
-
addOrganizationTeamMember: () => addOrganizationTeamMember,
|
|
5403
|
-
deleteOrganizationTeamMember: () => deleteOrganizationTeamMember,
|
|
5404
|
-
getAddOrganizationTeamMemberMutationKey: () => getAddOrganizationTeamMemberMutationKey,
|
|
5405
|
-
getAddOrganizationTeamMemberMutationOptions: () => getAddOrganizationTeamMemberMutationOptions,
|
|
5406
|
-
getAddOrganizationTeamMemberUrl: () => getAddOrganizationTeamMemberUrl,
|
|
5407
|
-
getDeleteOrganizationTeamMemberMutationKey: () => getDeleteOrganizationTeamMemberMutationKey,
|
|
5408
|
-
getDeleteOrganizationTeamMemberMutationOptions: () => getDeleteOrganizationTeamMemberMutationOptions,
|
|
5409
|
-
getDeleteOrganizationTeamMemberUrl: () => getDeleteOrganizationTeamMemberUrl,
|
|
5410
|
-
getGetOrganizationTeamMemberQueryKey: () => getGetOrganizationTeamMemberQueryKey,
|
|
5411
|
-
getGetOrganizationTeamMemberQueryOptions: () => getGetOrganizationTeamMemberQueryOptions,
|
|
5412
|
-
getGetOrganizationTeamMemberUrl: () => getGetOrganizationTeamMemberUrl,
|
|
5413
|
-
getListOrganizationTeamMembersQueryKey: () => getListOrganizationTeamMembersQueryKey,
|
|
5414
|
-
getListOrganizationTeamMembersQueryOptions: () => getListOrganizationTeamMembersQueryOptions,
|
|
5415
|
-
getListOrganizationTeamMembersUrl: () => getListOrganizationTeamMembersUrl,
|
|
5416
|
-
getOrganizationTeamMember: () => getOrganizationTeamMember,
|
|
5417
|
-
listOrganizationTeamMembers: () => listOrganizationTeamMembers,
|
|
5418
|
-
useAddOrganizationTeamMember: () => useAddOrganizationTeamMember,
|
|
5419
|
-
useDeleteOrganizationTeamMember: () => useDeleteOrganizationTeamMember,
|
|
5420
|
-
useGetOrganizationTeamMember: () => useGetOrganizationTeamMember,
|
|
5421
|
-
useListOrganizationTeamMembers: () => useListOrganizationTeamMembers
|
|
5422
|
-
});
|
|
5423
4617
|
const withQueryKey$1 = (query, queryKey) => {
|
|
5424
4618
|
const result = { queryKey };
|
|
5425
4619
|
for (const key of Object.keys(query)) {
|
|
@@ -5432,57 +4626,56 @@ const withQueryKey$1 = (query, queryKey) => {
|
|
|
5432
4626
|
}
|
|
5433
4627
|
return result;
|
|
5434
4628
|
};
|
|
5435
|
-
const
|
|
4629
|
+
const getListOrganizationsUrl = (params) => {
|
|
5436
4630
|
const normalizedParams = new URLSearchParams();
|
|
5437
4631
|
Object.entries(params || {}).forEach(([key, value]) => {
|
|
5438
4632
|
if (value !== void 0) normalizedParams.append(key, value === null ? "null" : String(value));
|
|
5439
4633
|
});
|
|
5440
4634
|
const stringifiedParams = normalizedParams.toString();
|
|
5441
|
-
return stringifiedParams.length > 0 ? `/organizations
|
|
4635
|
+
return stringifiedParams.length > 0 ? `/organizations?${stringifiedParams}` : `/organizations`;
|
|
5442
4636
|
};
|
|
5443
4637
|
/**
|
|
5444
|
-
* Lists
|
|
5445
|
-
* @summary List
|
|
4638
|
+
* Lists every organization the authenticated user can access.
|
|
4639
|
+
* @summary List organizations
|
|
5446
4640
|
*/
|
|
5447
|
-
const
|
|
5448
|
-
return customFetch(
|
|
4641
|
+
const listOrganizations = async (params, options) => {
|
|
4642
|
+
return customFetch(getListOrganizationsUrl(params), {
|
|
5449
4643
|
...options,
|
|
5450
4644
|
method: "GET"
|
|
5451
4645
|
});
|
|
5452
4646
|
};
|
|
5453
|
-
const
|
|
5454
|
-
return [`/organizations
|
|
4647
|
+
const getListOrganizationsQueryKey = (params) => {
|
|
4648
|
+
return [`/organizations`, ...params ? [params] : []];
|
|
5455
4649
|
};
|
|
5456
|
-
const
|
|
4650
|
+
const getListOrganizationsQueryOptions = (params, options) => {
|
|
5457
4651
|
const { query: queryOptions, request: requestOptions } = options ?? {};
|
|
5458
|
-
const queryKey = queryOptions?.queryKey ??
|
|
5459
|
-
const queryFn = ({ signal }) =>
|
|
4652
|
+
const queryKey = queryOptions?.queryKey ?? getListOrganizationsQueryKey(params);
|
|
4653
|
+
const queryFn = ({ signal }) => listOrganizations(params, {
|
|
5460
4654
|
signal,
|
|
5461
4655
|
...requestOptions
|
|
5462
4656
|
});
|
|
5463
4657
|
return {
|
|
5464
4658
|
queryKey,
|
|
5465
4659
|
queryFn,
|
|
5466
|
-
enabled: organizationId !== null && organizationId !== void 0 && teamId !== null && teamId !== void 0,
|
|
5467
4660
|
...queryOptions
|
|
5468
4661
|
};
|
|
5469
4662
|
};
|
|
5470
4663
|
/**
|
|
5471
|
-
* @summary List
|
|
4664
|
+
* @summary List organizations
|
|
5472
4665
|
*/
|
|
5473
|
-
function
|
|
5474
|
-
const queryOptions =
|
|
4666
|
+
function useListOrganizations(params, options, queryClient) {
|
|
4667
|
+
const queryOptions = getListOrganizationsQueryOptions(params, options);
|
|
5475
4668
|
const query = useQuery(queryOptions, queryClient);
|
|
5476
4669
|
return withQueryKey$1(query, queryOptions.queryKey);
|
|
5477
4670
|
}
|
|
5478
|
-
const
|
|
5479
|
-
return `/organizations
|
|
4671
|
+
const getCreateOrganizationUrl = () => {
|
|
4672
|
+
return `/organizations`;
|
|
5480
4673
|
};
|
|
5481
4674
|
/**
|
|
5482
|
-
*
|
|
5483
|
-
* @summary
|
|
4675
|
+
* Creates a new organization with the authenticated user as the owner.
|
|
4676
|
+
* @summary Create organization
|
|
5484
4677
|
*/
|
|
5485
|
-
const
|
|
4678
|
+
const createOrganization = async (createOrganizationRequest, options) => {
|
|
5486
4679
|
const getHeaders = (h) => {
|
|
5487
4680
|
if (!h) return {};
|
|
5488
4681
|
if (h instanceof Headers) return Object.fromEntries(h.entries());
|
|
@@ -5491,19 +4684,19 @@ const addOrganizationTeamMember = async (organizationId, teamId, addOrganization
|
|
|
5491
4684
|
for (const [name, value] of Object.entries(h)) if (value !== void 0) headers[name] = value;
|
|
5492
4685
|
return headers;
|
|
5493
4686
|
};
|
|
5494
|
-
return customFetch(
|
|
4687
|
+
return customFetch(getCreateOrganizationUrl(), {
|
|
5495
4688
|
...options,
|
|
5496
4689
|
method: "POST",
|
|
5497
4690
|
headers: {
|
|
5498
4691
|
"Content-Type": "application/json",
|
|
5499
4692
|
...getHeaders(options?.headers)
|
|
5500
4693
|
},
|
|
5501
|
-
body: JSON.stringify(
|
|
4694
|
+
body: JSON.stringify(createOrganizationRequest)
|
|
5502
4695
|
});
|
|
5503
4696
|
};
|
|
5504
|
-
const
|
|
5505
|
-
const
|
|
5506
|
-
const mutationKey =
|
|
4697
|
+
const getCreateOrganizationMutationKey = () => ["createOrganization"];
|
|
4698
|
+
const getCreateOrganizationMutationOptions = (options) => {
|
|
4699
|
+
const mutationKey = getCreateOrganizationMutationKey();
|
|
5507
4700
|
const { mutation: mutationOptions, request: requestOptions } = options ? options.mutation && "mutationKey" in options.mutation && options.mutation.mutationKey ? options : {
|
|
5508
4701
|
...options,
|
|
5509
4702
|
mutation: {
|
|
@@ -5515,8 +4708,8 @@ const getAddOrganizationTeamMemberMutationOptions = (options) => {
|
|
|
5515
4708
|
request: void 0
|
|
5516
4709
|
};
|
|
5517
4710
|
const mutationFn = (props) => {
|
|
5518
|
-
const {
|
|
5519
|
-
return
|
|
4711
|
+
const { data } = props ?? {};
|
|
4712
|
+
return createOrganization(data, requestOptions);
|
|
5520
4713
|
};
|
|
5521
4714
|
return {
|
|
5522
4715
|
mutationFn,
|
|
@@ -5524,65 +4717,65 @@ const getAddOrganizationTeamMemberMutationOptions = (options) => {
|
|
|
5524
4717
|
};
|
|
5525
4718
|
};
|
|
5526
4719
|
/**
|
|
5527
|
-
* @summary
|
|
4720
|
+
* @summary Create organization
|
|
5528
4721
|
*/
|
|
5529
|
-
const
|
|
5530
|
-
return useMutation(
|
|
4722
|
+
const useCreateOrganization = (options, queryClient) => {
|
|
4723
|
+
return useMutation(getCreateOrganizationMutationOptions(options), queryClient);
|
|
5531
4724
|
};
|
|
5532
|
-
const
|
|
5533
|
-
return `/organizations/${organizationId}
|
|
4725
|
+
const getGetOrganizationUrl = (organizationId) => {
|
|
4726
|
+
return `/organizations/${organizationId}`;
|
|
5534
4727
|
};
|
|
5535
4728
|
/**
|
|
5536
|
-
* Retrieves
|
|
5537
|
-
* @summary Get
|
|
4729
|
+
* Retrieves an organization by its ID.
|
|
4730
|
+
* @summary Get organization
|
|
5538
4731
|
*/
|
|
5539
|
-
const
|
|
5540
|
-
return customFetch(
|
|
4732
|
+
const getOrganization = async (organizationId, options) => {
|
|
4733
|
+
return customFetch(getGetOrganizationUrl(organizationId), {
|
|
5541
4734
|
...options,
|
|
5542
4735
|
method: "GET"
|
|
5543
4736
|
});
|
|
5544
4737
|
};
|
|
5545
|
-
const
|
|
5546
|
-
return [`/organizations/${organizationId}
|
|
4738
|
+
const getGetOrganizationQueryKey = (organizationId) => {
|
|
4739
|
+
return [`/organizations/${organizationId}`];
|
|
5547
4740
|
};
|
|
5548
|
-
const
|
|
4741
|
+
const getGetOrganizationQueryOptions = (organizationId, options) => {
|
|
5549
4742
|
const { query: queryOptions, request: requestOptions } = options ?? {};
|
|
5550
|
-
const queryKey = queryOptions?.queryKey ??
|
|
5551
|
-
const queryFn = ({ signal }) =>
|
|
4743
|
+
const queryKey = queryOptions?.queryKey ?? getGetOrganizationQueryKey(organizationId);
|
|
4744
|
+
const queryFn = ({ signal }) => getOrganization(organizationId, {
|
|
5552
4745
|
signal,
|
|
5553
4746
|
...requestOptions
|
|
5554
4747
|
});
|
|
5555
4748
|
return {
|
|
5556
4749
|
queryKey,
|
|
5557
4750
|
queryFn,
|
|
5558
|
-
enabled: organizationId !== null && organizationId !== void 0
|
|
4751
|
+
enabled: organizationId !== null && organizationId !== void 0,
|
|
5559
4752
|
...queryOptions
|
|
5560
4753
|
};
|
|
5561
4754
|
};
|
|
5562
4755
|
/**
|
|
5563
|
-
* @summary Get
|
|
4756
|
+
* @summary Get organization
|
|
5564
4757
|
*/
|
|
5565
|
-
function
|
|
5566
|
-
const queryOptions =
|
|
4758
|
+
function useGetOrganization(organizationId, options, queryClient) {
|
|
4759
|
+
const queryOptions = getGetOrganizationQueryOptions(organizationId, options);
|
|
5567
4760
|
const query = useQuery(queryOptions, queryClient);
|
|
5568
4761
|
return withQueryKey$1(query, queryOptions.queryKey);
|
|
5569
4762
|
}
|
|
5570
|
-
const
|
|
5571
|
-
return `/organizations/${organizationId}
|
|
4763
|
+
const getDeleteOrganizationUrl = (organizationId) => {
|
|
4764
|
+
return `/organizations/${organizationId}`;
|
|
5572
4765
|
};
|
|
5573
4766
|
/**
|
|
5574
|
-
*
|
|
5575
|
-
* @summary Delete
|
|
4767
|
+
* Soft-deletes an organization.
|
|
4768
|
+
* @summary Delete organization
|
|
5576
4769
|
*/
|
|
5577
|
-
const
|
|
5578
|
-
return customFetch(
|
|
4770
|
+
const deleteOrganization = async (organizationId, options) => {
|
|
4771
|
+
return customFetch(getDeleteOrganizationUrl(organizationId), {
|
|
5579
4772
|
...options,
|
|
5580
4773
|
method: "DELETE"
|
|
5581
4774
|
});
|
|
5582
4775
|
};
|
|
5583
|
-
const
|
|
5584
|
-
const
|
|
5585
|
-
const mutationKey =
|
|
4776
|
+
const getDeleteOrganizationMutationKey = () => ["deleteOrganization"];
|
|
4777
|
+
const getDeleteOrganizationMutationOptions = (options) => {
|
|
4778
|
+
const mutationKey = getDeleteOrganizationMutationKey();
|
|
5586
4779
|
const { mutation: mutationOptions, request: requestOptions } = options ? options.mutation && "mutationKey" in options.mutation && options.mutation.mutationKey ? options : {
|
|
5587
4780
|
...options,
|
|
5588
4781
|
mutation: {
|
|
@@ -5594,8 +4787,8 @@ const getDeleteOrganizationTeamMemberMutationOptions = (options) => {
|
|
|
5594
4787
|
request: void 0
|
|
5595
4788
|
};
|
|
5596
4789
|
const mutationFn = (props) => {
|
|
5597
|
-
const { organizationId
|
|
5598
|
-
return
|
|
4790
|
+
const { organizationId } = props ?? {};
|
|
4791
|
+
return deleteOrganization(organizationId, requestOptions);
|
|
5599
4792
|
};
|
|
5600
4793
|
return {
|
|
5601
4794
|
mutationFn,
|
|
@@ -5603,29 +4796,67 @@ const getDeleteOrganizationTeamMemberMutationOptions = (options) => {
|
|
|
5603
4796
|
};
|
|
5604
4797
|
};
|
|
5605
4798
|
/**
|
|
5606
|
-
* @summary Delete
|
|
4799
|
+
* @summary Delete organization
|
|
5607
4800
|
*/
|
|
5608
|
-
const
|
|
5609
|
-
return useMutation(
|
|
4801
|
+
const useDeleteOrganization = (options, queryClient) => {
|
|
4802
|
+
return useMutation(getDeleteOrganizationMutationOptions(options), queryClient);
|
|
5610
4803
|
};
|
|
5611
|
-
|
|
5612
|
-
|
|
5613
|
-
|
|
5614
|
-
|
|
5615
|
-
|
|
5616
|
-
|
|
5617
|
-
|
|
5618
|
-
|
|
5619
|
-
|
|
5620
|
-
|
|
5621
|
-
|
|
5622
|
-
|
|
5623
|
-
}
|
|
5624
|
-
|
|
4804
|
+
const getUpdateOrganizationUrl = (organizationId) => {
|
|
4805
|
+
return `/organizations/${organizationId}`;
|
|
4806
|
+
};
|
|
4807
|
+
/**
|
|
4808
|
+
* Updates an existing organization.
|
|
4809
|
+
* @summary Update organization
|
|
4810
|
+
*/
|
|
4811
|
+
const updateOrganization = async (organizationId, updateOrganizationRequest, options) => {
|
|
4812
|
+
const getHeaders = (h) => {
|
|
4813
|
+
if (!h) return {};
|
|
4814
|
+
if (h instanceof Headers) return Object.fromEntries(h.entries());
|
|
4815
|
+
if (Symbol.iterator in h) return Object.fromEntries(Array.from(h, (entry) => Array.from(entry)));
|
|
4816
|
+
const headers = {};
|
|
4817
|
+
for (const [name, value] of Object.entries(h)) if (value !== void 0) headers[name] = value;
|
|
4818
|
+
return headers;
|
|
4819
|
+
};
|
|
4820
|
+
return customFetch(getUpdateOrganizationUrl(organizationId), {
|
|
4821
|
+
...options,
|
|
4822
|
+
method: "PATCH",
|
|
4823
|
+
headers: {
|
|
4824
|
+
"Content-Type": "application/json",
|
|
4825
|
+
...getHeaders(options?.headers)
|
|
4826
|
+
},
|
|
4827
|
+
body: JSON.stringify(updateOrganizationRequest)
|
|
4828
|
+
});
|
|
4829
|
+
};
|
|
4830
|
+
const getUpdateOrganizationMutationKey = () => ["updateOrganization"];
|
|
4831
|
+
const getUpdateOrganizationMutationOptions = (options) => {
|
|
4832
|
+
const mutationKey = getUpdateOrganizationMutationKey();
|
|
4833
|
+
const { mutation: mutationOptions, request: requestOptions } = options ? options.mutation && "mutationKey" in options.mutation && options.mutation.mutationKey ? options : {
|
|
4834
|
+
...options,
|
|
4835
|
+
mutation: {
|
|
4836
|
+
...options.mutation,
|
|
4837
|
+
mutationKey
|
|
4838
|
+
}
|
|
4839
|
+
} : {
|
|
4840
|
+
mutation: { mutationKey },
|
|
4841
|
+
request: void 0
|
|
4842
|
+
};
|
|
4843
|
+
const mutationFn = (props) => {
|
|
4844
|
+
const { organizationId, data } = props ?? {};
|
|
4845
|
+
return updateOrganization(organizationId, data, requestOptions);
|
|
4846
|
+
};
|
|
4847
|
+
return {
|
|
4848
|
+
mutationFn,
|
|
4849
|
+
...mutationOptions
|
|
4850
|
+
};
|
|
4851
|
+
};
|
|
4852
|
+
/**
|
|
4853
|
+
* @summary Update organization
|
|
4854
|
+
*/
|
|
4855
|
+
const useUpdateOrganization = (options, queryClient) => {
|
|
4856
|
+
return useMutation(getUpdateOrganizationMutationOptions(options), queryClient);
|
|
5625
4857
|
};
|
|
5626
4858
|
|
|
5627
|
-
|
|
5628
|
-
//#region src/gen/endpoints/totp-plugin/totp-plugin.ts
|
|
4859
|
+
// src/gen/react/totp-plugin/totp-plugin.ts
|
|
5629
4860
|
/**
|
|
5630
4861
|
* Generated by orval 🍺
|
|
5631
4862
|
* Do not edit manually.
|
|
@@ -5633,38 +4864,6 @@ var OrganizationsPlugin = class {
|
|
|
5633
4864
|
* Authula API - An open-source authentication solution that scales with you.
|
|
5634
4865
|
* OpenAPI spec version: 0.1.0
|
|
5635
4866
|
*/
|
|
5636
|
-
var totp_plugin_exports = /* @__PURE__ */ __exportAll({
|
|
5637
|
-
disableTotp: () => disableTotp,
|
|
5638
|
-
enableTotp: () => enableTotp,
|
|
5639
|
-
generateTotpBackupCodes: () => generateTotpBackupCodes,
|
|
5640
|
-
getDisableTotpMutationKey: () => getDisableTotpMutationKey,
|
|
5641
|
-
getDisableTotpMutationOptions: () => getDisableTotpMutationOptions,
|
|
5642
|
-
getDisableTotpUrl: () => getDisableTotpUrl,
|
|
5643
|
-
getEnableTotpMutationKey: () => getEnableTotpMutationKey,
|
|
5644
|
-
getEnableTotpMutationOptions: () => getEnableTotpMutationOptions,
|
|
5645
|
-
getEnableTotpUrl: () => getEnableTotpUrl,
|
|
5646
|
-
getGenerateTotpBackupCodesMutationKey: () => getGenerateTotpBackupCodesMutationKey,
|
|
5647
|
-
getGenerateTotpBackupCodesMutationOptions: () => getGenerateTotpBackupCodesMutationOptions,
|
|
5648
|
-
getGenerateTotpBackupCodesUrl: () => getGenerateTotpBackupCodesUrl,
|
|
5649
|
-
getGetTotpURIQueryKey: () => getGetTotpURIQueryKey,
|
|
5650
|
-
getGetTotpURIQueryOptions: () => getGetTotpURIQueryOptions,
|
|
5651
|
-
getGetTotpURIUrl: () => getGetTotpURIUrl,
|
|
5652
|
-
getTotpURI: () => getTotpURI,
|
|
5653
|
-
getVerifyTotpBackupCodeMutationKey: () => getVerifyTotpBackupCodeMutationKey,
|
|
5654
|
-
getVerifyTotpBackupCodeMutationOptions: () => getVerifyTotpBackupCodeMutationOptions,
|
|
5655
|
-
getVerifyTotpBackupCodeUrl: () => getVerifyTotpBackupCodeUrl,
|
|
5656
|
-
getVerifyTotpMutationKey: () => getVerifyTotpMutationKey,
|
|
5657
|
-
getVerifyTotpMutationOptions: () => getVerifyTotpMutationOptions,
|
|
5658
|
-
getVerifyTotpUrl: () => getVerifyTotpUrl,
|
|
5659
|
-
useDisableTotp: () => useDisableTotp,
|
|
5660
|
-
useEnableTotp: () => useEnableTotp,
|
|
5661
|
-
useGenerateTotpBackupCodes: () => useGenerateTotpBackupCodes,
|
|
5662
|
-
useGetTotpURI: () => useGetTotpURI,
|
|
5663
|
-
useVerifyTotp: () => useVerifyTotp,
|
|
5664
|
-
useVerifyTotpBackupCode: () => useVerifyTotpBackupCode,
|
|
5665
|
-
verifyTotp: () => verifyTotp,
|
|
5666
|
-
verifyTotpBackupCode: () => verifyTotpBackupCode
|
|
5667
|
-
});
|
|
5668
4867
|
const withQueryKey = (query, queryKey) => {
|
|
5669
4868
|
const result = { queryKey };
|
|
5670
4869
|
for (const key of Object.keys(query)) {
|
|
@@ -5943,15 +5142,535 @@ const useVerifyTotpBackupCode = (options, queryClient) => {
|
|
|
5943
5142
|
return useMutation(getVerifyTotpBackupCodeMutationOptions(options), queryClient);
|
|
5944
5143
|
};
|
|
5945
5144
|
|
|
5946
|
-
|
|
5947
|
-
|
|
5948
|
-
|
|
5949
|
-
|
|
5950
|
-
|
|
5951
|
-
|
|
5952
|
-
|
|
5953
|
-
|
|
5145
|
+
// src/gen/react/index.ts
|
|
5146
|
+
var react_exports = /* @__PURE__ */ __exportAll({
|
|
5147
|
+
acceptOrganizationInvitation: () => acceptOrganizationInvitation,
|
|
5148
|
+
addOrganizationMember: () => addOrganizationMember,
|
|
5149
|
+
addOrganizationTeamMember: () => addOrganizationTeamMember,
|
|
5150
|
+
addRolePermission: () => addRolePermission,
|
|
5151
|
+
assignUserRole: () => assignUserRole,
|
|
5152
|
+
banUser: () => banUser,
|
|
5153
|
+
changePassword: () => changePassword,
|
|
5154
|
+
checkUserPermissions: () => checkUserPermissions,
|
|
5155
|
+
createAccount: () => createAccount,
|
|
5156
|
+
createApiKey: () => createApiKey,
|
|
5157
|
+
createOrganization: () => createOrganization,
|
|
5158
|
+
createOrganizationInvitation: () => createOrganizationInvitation,
|
|
5159
|
+
createOrganizationTeam: () => createOrganizationTeam,
|
|
5160
|
+
createPermission: () => createPermission,
|
|
5161
|
+
createRole: () => createRole,
|
|
5162
|
+
createSessionState: () => createSessionState,
|
|
5163
|
+
createUser: () => createUser,
|
|
5164
|
+
createUserState: () => createUserState,
|
|
5165
|
+
deleteAccount: () => deleteAccount,
|
|
5166
|
+
deleteApiKey: () => deleteApiKey,
|
|
5167
|
+
deleteOrganization: () => deleteOrganization,
|
|
5168
|
+
deleteOrganizationMember: () => deleteOrganizationMember,
|
|
5169
|
+
deleteOrganizationTeam: () => deleteOrganizationTeam,
|
|
5170
|
+
deleteOrganizationTeamMember: () => deleteOrganizationTeamMember,
|
|
5171
|
+
deletePermission: () => deletePermission,
|
|
5172
|
+
deleteRole: () => deleteRole,
|
|
5173
|
+
deleteSessionState: () => deleteSessionState,
|
|
5174
|
+
deleteUser: () => deleteUser,
|
|
5175
|
+
deleteUserState: () => deleteUserState,
|
|
5176
|
+
disableTotp: () => disableTotp,
|
|
5177
|
+
enableTotp: () => enableTotp,
|
|
5178
|
+
exchangeMagicLink: () => exchangeMagicLink,
|
|
5179
|
+
generateTotpBackupCodes: () => generateTotpBackupCodes,
|
|
5180
|
+
getAcceptOrganizationInvitationMutationKey: () => getAcceptOrganizationInvitationMutationKey,
|
|
5181
|
+
getAcceptOrganizationInvitationMutationOptions: () => getAcceptOrganizationInvitationMutationOptions,
|
|
5182
|
+
getAcceptOrganizationInvitationUrl: () => getAcceptOrganizationInvitationUrl,
|
|
5183
|
+
getAccount: () => getAccount,
|
|
5184
|
+
getAddOrganizationMemberMutationKey: () => getAddOrganizationMemberMutationKey,
|
|
5185
|
+
getAddOrganizationMemberMutationOptions: () => getAddOrganizationMemberMutationOptions,
|
|
5186
|
+
getAddOrganizationMemberUrl: () => getAddOrganizationMemberUrl,
|
|
5187
|
+
getAddOrganizationTeamMemberMutationKey: () => getAddOrganizationTeamMemberMutationKey,
|
|
5188
|
+
getAddOrganizationTeamMemberMutationOptions: () => getAddOrganizationTeamMemberMutationOptions,
|
|
5189
|
+
getAddOrganizationTeamMemberUrl: () => getAddOrganizationTeamMemberUrl,
|
|
5190
|
+
getAddRolePermissionMutationKey: () => getAddRolePermissionMutationKey,
|
|
5191
|
+
getAddRolePermissionMutationOptions: () => getAddRolePermissionMutationOptions,
|
|
5192
|
+
getAddRolePermissionUrl: () => getAddRolePermissionUrl,
|
|
5193
|
+
getApiKey: () => getApiKey,
|
|
5194
|
+
getAssignUserRoleMutationKey: () => getAssignUserRoleMutationKey,
|
|
5195
|
+
getAssignUserRoleMutationOptions: () => getAssignUserRoleMutationOptions,
|
|
5196
|
+
getAssignUserRoleUrl: () => getAssignUserRoleUrl,
|
|
5197
|
+
getBanUserMutationKey: () => getBanUserMutationKey,
|
|
5198
|
+
getBanUserMutationOptions: () => getBanUserMutationOptions,
|
|
5199
|
+
getBanUserUrl: () => getBanUserUrl,
|
|
5200
|
+
getChangePasswordMutationKey: () => getChangePasswordMutationKey,
|
|
5201
|
+
getChangePasswordMutationOptions: () => getChangePasswordMutationOptions,
|
|
5202
|
+
getChangePasswordUrl: () => getChangePasswordUrl,
|
|
5203
|
+
getCheckUserPermissionsMutationKey: () => getCheckUserPermissionsMutationKey,
|
|
5204
|
+
getCheckUserPermissionsMutationOptions: () => getCheckUserPermissionsMutationOptions,
|
|
5205
|
+
getCheckUserPermissionsUrl: () => getCheckUserPermissionsUrl,
|
|
5206
|
+
getCreateAccountMutationKey: () => getCreateAccountMutationKey,
|
|
5207
|
+
getCreateAccountMutationOptions: () => getCreateAccountMutationOptions,
|
|
5208
|
+
getCreateAccountUrl: () => getCreateAccountUrl,
|
|
5209
|
+
getCreateApiKeyMutationKey: () => getCreateApiKeyMutationKey,
|
|
5210
|
+
getCreateApiKeyMutationOptions: () => getCreateApiKeyMutationOptions,
|
|
5211
|
+
getCreateApiKeyUrl: () => getCreateApiKeyUrl,
|
|
5212
|
+
getCreateOrganizationInvitationMutationKey: () => getCreateOrganizationInvitationMutationKey,
|
|
5213
|
+
getCreateOrganizationInvitationMutationOptions: () => getCreateOrganizationInvitationMutationOptions,
|
|
5214
|
+
getCreateOrganizationInvitationUrl: () => getCreateOrganizationInvitationUrl,
|
|
5215
|
+
getCreateOrganizationMutationKey: () => getCreateOrganizationMutationKey,
|
|
5216
|
+
getCreateOrganizationMutationOptions: () => getCreateOrganizationMutationOptions,
|
|
5217
|
+
getCreateOrganizationTeamMutationKey: () => getCreateOrganizationTeamMutationKey,
|
|
5218
|
+
getCreateOrganizationTeamMutationOptions: () => getCreateOrganizationTeamMutationOptions,
|
|
5219
|
+
getCreateOrganizationTeamUrl: () => getCreateOrganizationTeamUrl,
|
|
5220
|
+
getCreateOrganizationUrl: () => getCreateOrganizationUrl,
|
|
5221
|
+
getCreatePermissionMutationKey: () => getCreatePermissionMutationKey,
|
|
5222
|
+
getCreatePermissionMutationOptions: () => getCreatePermissionMutationOptions,
|
|
5223
|
+
getCreatePermissionUrl: () => getCreatePermissionUrl,
|
|
5224
|
+
getCreateRoleMutationKey: () => getCreateRoleMutationKey,
|
|
5225
|
+
getCreateRoleMutationOptions: () => getCreateRoleMutationOptions,
|
|
5226
|
+
getCreateRoleUrl: () => getCreateRoleUrl,
|
|
5227
|
+
getCreateSessionStateMutationKey: () => getCreateSessionStateMutationKey,
|
|
5228
|
+
getCreateSessionStateMutationOptions: () => getCreateSessionStateMutationOptions,
|
|
5229
|
+
getCreateSessionStateUrl: () => getCreateSessionStateUrl,
|
|
5230
|
+
getCreateUserMutationKey: () => getCreateUserMutationKey,
|
|
5231
|
+
getCreateUserMutationOptions: () => getCreateUserMutationOptions,
|
|
5232
|
+
getCreateUserStateMutationKey: () => getCreateUserStateMutationKey,
|
|
5233
|
+
getCreateUserStateMutationOptions: () => getCreateUserStateMutationOptions,
|
|
5234
|
+
getCreateUserStateUrl: () => getCreateUserStateUrl,
|
|
5235
|
+
getCreateUserUrl: () => getCreateUserUrl,
|
|
5236
|
+
getDeleteAccountMutationKey: () => getDeleteAccountMutationKey,
|
|
5237
|
+
getDeleteAccountMutationOptions: () => getDeleteAccountMutationOptions,
|
|
5238
|
+
getDeleteAccountUrl: () => getDeleteAccountUrl,
|
|
5239
|
+
getDeleteApiKeyMutationKey: () => getDeleteApiKeyMutationKey,
|
|
5240
|
+
getDeleteApiKeyMutationOptions: () => getDeleteApiKeyMutationOptions,
|
|
5241
|
+
getDeleteApiKeyUrl: () => getDeleteApiKeyUrl,
|
|
5242
|
+
getDeleteOrganizationMemberMutationKey: () => getDeleteOrganizationMemberMutationKey,
|
|
5243
|
+
getDeleteOrganizationMemberMutationOptions: () => getDeleteOrganizationMemberMutationOptions,
|
|
5244
|
+
getDeleteOrganizationMemberUrl: () => getDeleteOrganizationMemberUrl,
|
|
5245
|
+
getDeleteOrganizationMutationKey: () => getDeleteOrganizationMutationKey,
|
|
5246
|
+
getDeleteOrganizationMutationOptions: () => getDeleteOrganizationMutationOptions,
|
|
5247
|
+
getDeleteOrganizationTeamMemberMutationKey: () => getDeleteOrganizationTeamMemberMutationKey,
|
|
5248
|
+
getDeleteOrganizationTeamMemberMutationOptions: () => getDeleteOrganizationTeamMemberMutationOptions,
|
|
5249
|
+
getDeleteOrganizationTeamMemberUrl: () => getDeleteOrganizationTeamMemberUrl,
|
|
5250
|
+
getDeleteOrganizationTeamMutationKey: () => getDeleteOrganizationTeamMutationKey,
|
|
5251
|
+
getDeleteOrganizationTeamMutationOptions: () => getDeleteOrganizationTeamMutationOptions,
|
|
5252
|
+
getDeleteOrganizationTeamUrl: () => getDeleteOrganizationTeamUrl,
|
|
5253
|
+
getDeleteOrganizationUrl: () => getDeleteOrganizationUrl,
|
|
5254
|
+
getDeletePermissionMutationKey: () => getDeletePermissionMutationKey,
|
|
5255
|
+
getDeletePermissionMutationOptions: () => getDeletePermissionMutationOptions,
|
|
5256
|
+
getDeletePermissionUrl: () => getDeletePermissionUrl,
|
|
5257
|
+
getDeleteRoleMutationKey: () => getDeleteRoleMutationKey,
|
|
5258
|
+
getDeleteRoleMutationOptions: () => getDeleteRoleMutationOptions,
|
|
5259
|
+
getDeleteRoleUrl: () => getDeleteRoleUrl,
|
|
5260
|
+
getDeleteSessionStateMutationKey: () => getDeleteSessionStateMutationKey,
|
|
5261
|
+
getDeleteSessionStateMutationOptions: () => getDeleteSessionStateMutationOptions,
|
|
5262
|
+
getDeleteSessionStateUrl: () => getDeleteSessionStateUrl,
|
|
5263
|
+
getDeleteUserMutationKey: () => getDeleteUserMutationKey,
|
|
5264
|
+
getDeleteUserMutationOptions: () => getDeleteUserMutationOptions,
|
|
5265
|
+
getDeleteUserStateMutationKey: () => getDeleteUserStateMutationKey,
|
|
5266
|
+
getDeleteUserStateMutationOptions: () => getDeleteUserStateMutationOptions,
|
|
5267
|
+
getDeleteUserStateUrl: () => getDeleteUserStateUrl,
|
|
5268
|
+
getDeleteUserUrl: () => getDeleteUserUrl,
|
|
5269
|
+
getDisableTotpMutationKey: () => getDisableTotpMutationKey,
|
|
5270
|
+
getDisableTotpMutationOptions: () => getDisableTotpMutationOptions,
|
|
5271
|
+
getDisableTotpUrl: () => getDisableTotpUrl,
|
|
5272
|
+
getEnableTotpMutationKey: () => getEnableTotpMutationKey,
|
|
5273
|
+
getEnableTotpMutationOptions: () => getEnableTotpMutationOptions,
|
|
5274
|
+
getEnableTotpUrl: () => getEnableTotpUrl,
|
|
5275
|
+
getExchangeMagicLinkMutationKey: () => getExchangeMagicLinkMutationKey,
|
|
5276
|
+
getExchangeMagicLinkMutationOptions: () => getExchangeMagicLinkMutationOptions,
|
|
5277
|
+
getExchangeMagicLinkUrl: () => getExchangeMagicLinkUrl,
|
|
5278
|
+
getGenerateTotpBackupCodesMutationKey: () => getGenerateTotpBackupCodesMutationKey,
|
|
5279
|
+
getGenerateTotpBackupCodesMutationOptions: () => getGenerateTotpBackupCodesMutationOptions,
|
|
5280
|
+
getGenerateTotpBackupCodesUrl: () => getGenerateTotpBackupCodesUrl,
|
|
5281
|
+
getGetAccountQueryKey: () => getGetAccountQueryKey,
|
|
5282
|
+
getGetAccountQueryOptions: () => getGetAccountQueryOptions,
|
|
5283
|
+
getGetAccountUrl: () => getGetAccountUrl,
|
|
5284
|
+
getGetApiKeyQueryKey: () => getGetApiKeyQueryKey,
|
|
5285
|
+
getGetApiKeyQueryOptions: () => getGetApiKeyQueryOptions,
|
|
5286
|
+
getGetApiKeyUrl: () => getGetApiKeyUrl,
|
|
5287
|
+
getGetImpersonationQueryKey: () => getGetImpersonationQueryKey,
|
|
5288
|
+
getGetImpersonationQueryOptions: () => getGetImpersonationQueryOptions,
|
|
5289
|
+
getGetImpersonationUrl: () => getGetImpersonationUrl,
|
|
5290
|
+
getGetJWKSQueryKey: () => getGetJWKSQueryKey,
|
|
5291
|
+
getGetJWKSQueryOptions: () => getGetJWKSQueryOptions,
|
|
5292
|
+
getGetJWKSUrl: () => getGetJWKSUrl,
|
|
5293
|
+
getGetMeQueryKey: () => getGetMeQueryKey,
|
|
5294
|
+
getGetMeQueryOptions: () => getGetMeQueryOptions,
|
|
5295
|
+
getGetMeUrl: () => getGetMeUrl,
|
|
5296
|
+
getGetOrganizationInvitationQueryKey: () => getGetOrganizationInvitationQueryKey,
|
|
5297
|
+
getGetOrganizationInvitationQueryOptions: () => getGetOrganizationInvitationQueryOptions,
|
|
5298
|
+
getGetOrganizationInvitationUrl: () => getGetOrganizationInvitationUrl,
|
|
5299
|
+
getGetOrganizationMemberByUserIDQueryKey: () => getGetOrganizationMemberByUserIDQueryKey,
|
|
5300
|
+
getGetOrganizationMemberByUserIDQueryOptions: () => getGetOrganizationMemberByUserIDQueryOptions,
|
|
5301
|
+
getGetOrganizationMemberByUserIDUrl: () => getGetOrganizationMemberByUserIDUrl,
|
|
5302
|
+
getGetOrganizationMemberQueryKey: () => getGetOrganizationMemberQueryKey,
|
|
5303
|
+
getGetOrganizationMemberQueryOptions: () => getGetOrganizationMemberQueryOptions,
|
|
5304
|
+
getGetOrganizationMemberUrl: () => getGetOrganizationMemberUrl,
|
|
5305
|
+
getGetOrganizationQueryKey: () => getGetOrganizationQueryKey,
|
|
5306
|
+
getGetOrganizationQueryOptions: () => getGetOrganizationQueryOptions,
|
|
5307
|
+
getGetOrganizationTeamMemberQueryKey: () => getGetOrganizationTeamMemberQueryKey,
|
|
5308
|
+
getGetOrganizationTeamMemberQueryOptions: () => getGetOrganizationTeamMemberQueryOptions,
|
|
5309
|
+
getGetOrganizationTeamMemberUrl: () => getGetOrganizationTeamMemberUrl,
|
|
5310
|
+
getGetOrganizationTeamQueryKey: () => getGetOrganizationTeamQueryKey,
|
|
5311
|
+
getGetOrganizationTeamQueryOptions: () => getGetOrganizationTeamQueryOptions,
|
|
5312
|
+
getGetOrganizationTeamUrl: () => getGetOrganizationTeamUrl,
|
|
5313
|
+
getGetOrganizationUrl: () => getGetOrganizationUrl,
|
|
5314
|
+
getGetPermissionByKeyQueryKey: () => getGetPermissionByKeyQueryKey,
|
|
5315
|
+
getGetPermissionByKeyQueryOptions: () => getGetPermissionByKeyQueryOptions,
|
|
5316
|
+
getGetPermissionByKeyUrl: () => getGetPermissionByKeyUrl,
|
|
5317
|
+
getGetPermissionQueryKey: () => getGetPermissionQueryKey,
|
|
5318
|
+
getGetPermissionQueryOptions: () => getGetPermissionQueryOptions,
|
|
5319
|
+
getGetPermissionUrl: () => getGetPermissionUrl,
|
|
5320
|
+
getGetRoleByNameQueryKey: () => getGetRoleByNameQueryKey,
|
|
5321
|
+
getGetRoleByNameQueryOptions: () => getGetRoleByNameQueryOptions,
|
|
5322
|
+
getGetRoleByNameUrl: () => getGetRoleByNameUrl,
|
|
5323
|
+
getGetRoleQueryKey: () => getGetRoleQueryKey,
|
|
5324
|
+
getGetRoleQueryOptions: () => getGetRoleQueryOptions,
|
|
5325
|
+
getGetRoleUrl: () => getGetRoleUrl,
|
|
5326
|
+
getGetSessionStateQueryKey: () => getGetSessionStateQueryKey,
|
|
5327
|
+
getGetSessionStateQueryOptions: () => getGetSessionStateQueryOptions,
|
|
5328
|
+
getGetSessionStateUrl: () => getGetSessionStateUrl,
|
|
5329
|
+
getGetTotpURIQueryKey: () => getGetTotpURIQueryKey,
|
|
5330
|
+
getGetTotpURIQueryOptions: () => getGetTotpURIQueryOptions,
|
|
5331
|
+
getGetTotpURIUrl: () => getGetTotpURIUrl,
|
|
5332
|
+
getGetUserPermissionsQueryKey: () => getGetUserPermissionsQueryKey,
|
|
5333
|
+
getGetUserPermissionsQueryOptions: () => getGetUserPermissionsQueryOptions,
|
|
5334
|
+
getGetUserPermissionsUrl: () => getGetUserPermissionsUrl,
|
|
5335
|
+
getGetUserQueryKey: () => getGetUserQueryKey,
|
|
5336
|
+
getGetUserQueryOptions: () => getGetUserQueryOptions,
|
|
5337
|
+
getGetUserStateQueryKey: () => getGetUserStateQueryKey,
|
|
5338
|
+
getGetUserStateQueryOptions: () => getGetUserStateQueryOptions,
|
|
5339
|
+
getGetUserStateUrl: () => getGetUserStateUrl,
|
|
5340
|
+
getGetUserUrl: () => getGetUserUrl,
|
|
5341
|
+
getImpersonation: () => getImpersonation,
|
|
5342
|
+
getJWKS: () => getJWKS,
|
|
5343
|
+
getListApiKeysQueryKey: () => getListApiKeysQueryKey,
|
|
5344
|
+
getListApiKeysQueryOptions: () => getListApiKeysQueryOptions,
|
|
5345
|
+
getListApiKeysUrl: () => getListApiKeysUrl,
|
|
5346
|
+
getListBannedUserStatesQueryKey: () => getListBannedUserStatesQueryKey,
|
|
5347
|
+
getListBannedUserStatesQueryOptions: () => getListBannedUserStatesQueryOptions,
|
|
5348
|
+
getListBannedUserStatesUrl: () => getListBannedUserStatesUrl,
|
|
5349
|
+
getListImpersonationsQueryKey: () => getListImpersonationsQueryKey,
|
|
5350
|
+
getListImpersonationsQueryOptions: () => getListImpersonationsQueryOptions,
|
|
5351
|
+
getListImpersonationsUrl: () => getListImpersonationsUrl,
|
|
5352
|
+
getListOrganizationInvitationsQueryKey: () => getListOrganizationInvitationsQueryKey,
|
|
5353
|
+
getListOrganizationInvitationsQueryOptions: () => getListOrganizationInvitationsQueryOptions,
|
|
5354
|
+
getListOrganizationInvitationsUrl: () => getListOrganizationInvitationsUrl,
|
|
5355
|
+
getListOrganizationMembersQueryKey: () => getListOrganizationMembersQueryKey,
|
|
5356
|
+
getListOrganizationMembersQueryOptions: () => getListOrganizationMembersQueryOptions,
|
|
5357
|
+
getListOrganizationMembersUrl: () => getListOrganizationMembersUrl,
|
|
5358
|
+
getListOrganizationTeamMembersQueryKey: () => getListOrganizationTeamMembersQueryKey,
|
|
5359
|
+
getListOrganizationTeamMembersQueryOptions: () => getListOrganizationTeamMembersQueryOptions,
|
|
5360
|
+
getListOrganizationTeamMembersUrl: () => getListOrganizationTeamMembersUrl,
|
|
5361
|
+
getListOrganizationTeamsQueryKey: () => getListOrganizationTeamsQueryKey,
|
|
5362
|
+
getListOrganizationTeamsQueryOptions: () => getListOrganizationTeamsQueryOptions,
|
|
5363
|
+
getListOrganizationTeamsUrl: () => getListOrganizationTeamsUrl,
|
|
5364
|
+
getListOrganizationsQueryKey: () => getListOrganizationsQueryKey,
|
|
5365
|
+
getListOrganizationsQueryOptions: () => getListOrganizationsQueryOptions,
|
|
5366
|
+
getListOrganizationsUrl: () => getListOrganizationsUrl,
|
|
5367
|
+
getListPermissionsQueryKey: () => getListPermissionsQueryKey,
|
|
5368
|
+
getListPermissionsQueryOptions: () => getListPermissionsQueryOptions,
|
|
5369
|
+
getListPermissionsUrl: () => getListPermissionsUrl,
|
|
5370
|
+
getListRevokedSessionStatesQueryKey: () => getListRevokedSessionStatesQueryKey,
|
|
5371
|
+
getListRevokedSessionStatesQueryOptions: () => getListRevokedSessionStatesQueryOptions,
|
|
5372
|
+
getListRevokedSessionStatesUrl: () => getListRevokedSessionStatesUrl,
|
|
5373
|
+
getListRolePermissionsQueryKey: () => getListRolePermissionsQueryKey,
|
|
5374
|
+
getListRolePermissionsQueryOptions: () => getListRolePermissionsQueryOptions,
|
|
5375
|
+
getListRolePermissionsUrl: () => getListRolePermissionsUrl,
|
|
5376
|
+
getListRolesQueryKey: () => getListRolesQueryKey,
|
|
5377
|
+
getListRolesQueryOptions: () => getListRolesQueryOptions,
|
|
5378
|
+
getListRolesUrl: () => getListRolesUrl,
|
|
5379
|
+
getListUserAccountsQueryKey: () => getListUserAccountsQueryKey,
|
|
5380
|
+
getListUserAccountsQueryOptions: () => getListUserAccountsQueryOptions,
|
|
5381
|
+
getListUserAccountsUrl: () => getListUserAccountsUrl,
|
|
5382
|
+
getListUserRolesQueryKey: () => getListUserRolesQueryKey,
|
|
5383
|
+
getListUserRolesQueryOptions: () => getListUserRolesQueryOptions,
|
|
5384
|
+
getListUserRolesUrl: () => getListUserRolesUrl,
|
|
5385
|
+
getListUserSessionsQueryKey: () => getListUserSessionsQueryKey,
|
|
5386
|
+
getListUserSessionsQueryOptions: () => getListUserSessionsQueryOptions,
|
|
5387
|
+
getListUserSessionsUrl: () => getListUserSessionsUrl,
|
|
5388
|
+
getListUsersQueryKey: () => getListUsersQueryKey,
|
|
5389
|
+
getListUsersQueryOptions: () => getListUsersQueryOptions,
|
|
5390
|
+
getListUsersUrl: () => getListUsersUrl,
|
|
5391
|
+
getMe: () => getMe,
|
|
5392
|
+
getOauthAuthorizeQueryKey: () => getOauthAuthorizeQueryKey,
|
|
5393
|
+
getOauthAuthorizeQueryOptions: () => getOauthAuthorizeQueryOptions,
|
|
5394
|
+
getOauthAuthorizeUrl: () => getOauthAuthorizeUrl,
|
|
5395
|
+
getOauthCallbackQueryKey: () => getOauthCallbackQueryKey,
|
|
5396
|
+
getOauthCallbackQueryOptions: () => getOauthCallbackQueryOptions,
|
|
5397
|
+
getOauthCallbackUrl: () => getOauthCallbackUrl,
|
|
5398
|
+
getOrganization: () => getOrganization,
|
|
5399
|
+
getOrganizationInvitation: () => getOrganizationInvitation,
|
|
5400
|
+
getOrganizationMember: () => getOrganizationMember,
|
|
5401
|
+
getOrganizationMemberByUserID: () => getOrganizationMemberByUserID,
|
|
5402
|
+
getOrganizationTeam: () => getOrganizationTeam,
|
|
5403
|
+
getOrganizationTeamMember: () => getOrganizationTeamMember,
|
|
5404
|
+
getPermission: () => getPermission,
|
|
5405
|
+
getPermissionByKey: () => getPermissionByKey,
|
|
5406
|
+
getRefreshTokenMutationKey: () => getRefreshTokenMutationKey,
|
|
5407
|
+
getRefreshTokenMutationOptions: () => getRefreshTokenMutationOptions,
|
|
5408
|
+
getRefreshTokenUrl: () => getRefreshTokenUrl,
|
|
5409
|
+
getRejectOrganizationInvitationMutationKey: () => getRejectOrganizationInvitationMutationKey,
|
|
5410
|
+
getRejectOrganizationInvitationMutationOptions: () => getRejectOrganizationInvitationMutationOptions,
|
|
5411
|
+
getRejectOrganizationInvitationUrl: () => getRejectOrganizationInvitationUrl,
|
|
5412
|
+
getRemoveRolePermissionMutationKey: () => getRemoveRolePermissionMutationKey,
|
|
5413
|
+
getRemoveRolePermissionMutationOptions: () => getRemoveRolePermissionMutationOptions,
|
|
5414
|
+
getRemoveRolePermissionUrl: () => getRemoveRolePermissionUrl,
|
|
5415
|
+
getRemoveUserRoleMutationKey: () => getRemoveUserRoleMutationKey,
|
|
5416
|
+
getRemoveUserRoleMutationOptions: () => getRemoveUserRoleMutationOptions,
|
|
5417
|
+
getRemoveUserRoleUrl: () => getRemoveUserRoleUrl,
|
|
5418
|
+
getReplaceRolePermissionsMutationKey: () => getReplaceRolePermissionsMutationKey,
|
|
5419
|
+
getReplaceRolePermissionsMutationOptions: () => getReplaceRolePermissionsMutationOptions,
|
|
5420
|
+
getReplaceRolePermissionsUrl: () => getReplaceRolePermissionsUrl,
|
|
5421
|
+
getReplaceUserRolesMutationKey: () => getReplaceUserRolesMutationKey,
|
|
5422
|
+
getReplaceUserRolesMutationOptions: () => getReplaceUserRolesMutationOptions,
|
|
5423
|
+
getReplaceUserRolesUrl: () => getReplaceUserRolesUrl,
|
|
5424
|
+
getRequestEmailChangeMutationKey: () => getRequestEmailChangeMutationKey,
|
|
5425
|
+
getRequestEmailChangeMutationOptions: () => getRequestEmailChangeMutationOptions,
|
|
5426
|
+
getRequestEmailChangeUrl: () => getRequestEmailChangeUrl,
|
|
5427
|
+
getRequestPasswordResetMutationKey: () => getRequestPasswordResetMutationKey,
|
|
5428
|
+
getRequestPasswordResetMutationOptions: () => getRequestPasswordResetMutationOptions,
|
|
5429
|
+
getRequestPasswordResetUrl: () => getRequestPasswordResetUrl,
|
|
5430
|
+
getRevokeOrganizationInvitationMutationKey: () => getRevokeOrganizationInvitationMutationKey,
|
|
5431
|
+
getRevokeOrganizationInvitationMutationOptions: () => getRevokeOrganizationInvitationMutationOptions,
|
|
5432
|
+
getRevokeOrganizationInvitationUrl: () => getRevokeOrganizationInvitationUrl,
|
|
5433
|
+
getRevokeSessionMutationKey: () => getRevokeSessionMutationKey,
|
|
5434
|
+
getRevokeSessionMutationOptions: () => getRevokeSessionMutationOptions,
|
|
5435
|
+
getRevokeSessionUrl: () => getRevokeSessionUrl,
|
|
5436
|
+
getRole: () => getRole,
|
|
5437
|
+
getRoleByName: () => getRoleByName,
|
|
5438
|
+
getSendEmailVerificationMutationKey: () => getSendEmailVerificationMutationKey,
|
|
5439
|
+
getSendEmailVerificationMutationOptions: () => getSendEmailVerificationMutationOptions,
|
|
5440
|
+
getSendEmailVerificationUrl: () => getSendEmailVerificationUrl,
|
|
5441
|
+
getSessionState: () => getSessionState,
|
|
5442
|
+
getSignInMutationKey: () => getSignInMutationKey,
|
|
5443
|
+
getSignInMutationOptions: () => getSignInMutationOptions,
|
|
5444
|
+
getSignInUrl: () => getSignInUrl,
|
|
5445
|
+
getSignInWithMagicLinkMutationKey: () => getSignInWithMagicLinkMutationKey,
|
|
5446
|
+
getSignInWithMagicLinkMutationOptions: () => getSignInWithMagicLinkMutationOptions,
|
|
5447
|
+
getSignInWithMagicLinkUrl: () => getSignInWithMagicLinkUrl,
|
|
5448
|
+
getSignOutMutationKey: () => getSignOutMutationKey,
|
|
5449
|
+
getSignOutMutationOptions: () => getSignOutMutationOptions,
|
|
5450
|
+
getSignOutUrl: () => getSignOutUrl,
|
|
5451
|
+
getSignUpMutationKey: () => getSignUpMutationKey,
|
|
5452
|
+
getSignUpMutationOptions: () => getSignUpMutationOptions,
|
|
5453
|
+
getSignUpUrl: () => getSignUpUrl,
|
|
5454
|
+
getStartImpersonationMutationKey: () => getStartImpersonationMutationKey,
|
|
5455
|
+
getStartImpersonationMutationOptions: () => getStartImpersonationMutationOptions,
|
|
5456
|
+
getStartImpersonationUrl: () => getStartImpersonationUrl,
|
|
5457
|
+
getStopImpersonationMutationKey: () => getStopImpersonationMutationKey,
|
|
5458
|
+
getStopImpersonationMutationOptions: () => getStopImpersonationMutationOptions,
|
|
5459
|
+
getStopImpersonationUrl: () => getStopImpersonationUrl,
|
|
5460
|
+
getTotpURI: () => getTotpURI,
|
|
5461
|
+
getUnbanUserMutationKey: () => getUnbanUserMutationKey,
|
|
5462
|
+
getUnbanUserMutationOptions: () => getUnbanUserMutationOptions,
|
|
5463
|
+
getUnbanUserUrl: () => getUnbanUserUrl,
|
|
5464
|
+
getUpdateAccountMutationKey: () => getUpdateAccountMutationKey,
|
|
5465
|
+
getUpdateAccountMutationOptions: () => getUpdateAccountMutationOptions,
|
|
5466
|
+
getUpdateAccountUrl: () => getUpdateAccountUrl,
|
|
5467
|
+
getUpdateApiKeyMutationKey: () => getUpdateApiKeyMutationKey,
|
|
5468
|
+
getUpdateApiKeyMutationOptions: () => getUpdateApiKeyMutationOptions,
|
|
5469
|
+
getUpdateApiKeyUrl: () => getUpdateApiKeyUrl,
|
|
5470
|
+
getUpdateOrganizationMemberMutationKey: () => getUpdateOrganizationMemberMutationKey,
|
|
5471
|
+
getUpdateOrganizationMemberMutationOptions: () => getUpdateOrganizationMemberMutationOptions,
|
|
5472
|
+
getUpdateOrganizationMemberUrl: () => getUpdateOrganizationMemberUrl,
|
|
5473
|
+
getUpdateOrganizationMutationKey: () => getUpdateOrganizationMutationKey,
|
|
5474
|
+
getUpdateOrganizationMutationOptions: () => getUpdateOrganizationMutationOptions,
|
|
5475
|
+
getUpdateOrganizationTeamMutationKey: () => getUpdateOrganizationTeamMutationKey,
|
|
5476
|
+
getUpdateOrganizationTeamMutationOptions: () => getUpdateOrganizationTeamMutationOptions,
|
|
5477
|
+
getUpdateOrganizationTeamUrl: () => getUpdateOrganizationTeamUrl,
|
|
5478
|
+
getUpdateOrganizationUrl: () => getUpdateOrganizationUrl,
|
|
5479
|
+
getUpdatePermissionMutationKey: () => getUpdatePermissionMutationKey,
|
|
5480
|
+
getUpdatePermissionMutationOptions: () => getUpdatePermissionMutationOptions,
|
|
5481
|
+
getUpdatePermissionUrl: () => getUpdatePermissionUrl,
|
|
5482
|
+
getUpdateRoleMutationKey: () => getUpdateRoleMutationKey,
|
|
5483
|
+
getUpdateRoleMutationOptions: () => getUpdateRoleMutationOptions,
|
|
5484
|
+
getUpdateRoleUrl: () => getUpdateRoleUrl,
|
|
5485
|
+
getUpdateSessionStateMutationKey: () => getUpdateSessionStateMutationKey,
|
|
5486
|
+
getUpdateSessionStateMutationOptions: () => getUpdateSessionStateMutationOptions,
|
|
5487
|
+
getUpdateSessionStateUrl: () => getUpdateSessionStateUrl,
|
|
5488
|
+
getUpdateUserMutationKey: () => getUpdateUserMutationKey,
|
|
5489
|
+
getUpdateUserMutationOptions: () => getUpdateUserMutationOptions,
|
|
5490
|
+
getUpdateUserStateMutationKey: () => getUpdateUserStateMutationKey,
|
|
5491
|
+
getUpdateUserStateMutationOptions: () => getUpdateUserStateMutationOptions,
|
|
5492
|
+
getUpdateUserStateUrl: () => getUpdateUserStateUrl,
|
|
5493
|
+
getUpdateUserUrl: () => getUpdateUserUrl,
|
|
5494
|
+
getUser: () => getUser,
|
|
5495
|
+
getUserPermissions: () => getUserPermissions,
|
|
5496
|
+
getUserState: () => getUserState,
|
|
5497
|
+
getVerifyApiKeyMutationKey: () => getVerifyApiKeyMutationKey,
|
|
5498
|
+
getVerifyApiKeyMutationOptions: () => getVerifyApiKeyMutationOptions,
|
|
5499
|
+
getVerifyApiKeyUrl: () => getVerifyApiKeyUrl,
|
|
5500
|
+
getVerifyEmailQueryKey: () => getVerifyEmailQueryKey,
|
|
5501
|
+
getVerifyEmailQueryOptions: () => getVerifyEmailQueryOptions,
|
|
5502
|
+
getVerifyEmailUrl: () => getVerifyEmailUrl,
|
|
5503
|
+
getVerifyMagicLinkQueryKey: () => getVerifyMagicLinkQueryKey,
|
|
5504
|
+
getVerifyMagicLinkQueryOptions: () => getVerifyMagicLinkQueryOptions,
|
|
5505
|
+
getVerifyMagicLinkUrl: () => getVerifyMagicLinkUrl,
|
|
5506
|
+
getVerifyTotpBackupCodeMutationKey: () => getVerifyTotpBackupCodeMutationKey,
|
|
5507
|
+
getVerifyTotpBackupCodeMutationOptions: () => getVerifyTotpBackupCodeMutationOptions,
|
|
5508
|
+
getVerifyTotpBackupCodeUrl: () => getVerifyTotpBackupCodeUrl,
|
|
5509
|
+
getVerifyTotpMutationKey: () => getVerifyTotpMutationKey,
|
|
5510
|
+
getVerifyTotpMutationOptions: () => getVerifyTotpMutationOptions,
|
|
5511
|
+
getVerifyTotpUrl: () => getVerifyTotpUrl,
|
|
5512
|
+
listApiKeys: () => listApiKeys,
|
|
5513
|
+
listBannedUserStates: () => listBannedUserStates,
|
|
5514
|
+
listImpersonations: () => listImpersonations,
|
|
5515
|
+
listOrganizationInvitations: () => listOrganizationInvitations,
|
|
5516
|
+
listOrganizationMembers: () => listOrganizationMembers,
|
|
5517
|
+
listOrganizationTeamMembers: () => listOrganizationTeamMembers,
|
|
5518
|
+
listOrganizationTeams: () => listOrganizationTeams,
|
|
5519
|
+
listOrganizations: () => listOrganizations,
|
|
5520
|
+
listPermissions: () => listPermissions,
|
|
5521
|
+
listRevokedSessionStates: () => listRevokedSessionStates,
|
|
5522
|
+
listRolePermissions: () => listRolePermissions,
|
|
5523
|
+
listRoles: () => listRoles,
|
|
5524
|
+
listUserAccounts: () => listUserAccounts,
|
|
5525
|
+
listUserRoles: () => listUserRoles,
|
|
5526
|
+
listUserSessions: () => listUserSessions,
|
|
5527
|
+
listUsers: () => listUsers,
|
|
5528
|
+
oauthAuthorize: () => oauthAuthorize,
|
|
5529
|
+
oauthCallback: () => oauthCallback,
|
|
5530
|
+
refreshToken: () => refreshToken,
|
|
5531
|
+
rejectOrganizationInvitation: () => rejectOrganizationInvitation,
|
|
5532
|
+
removeRolePermission: () => removeRolePermission,
|
|
5533
|
+
removeUserRole: () => removeUserRole,
|
|
5534
|
+
replaceRolePermissions: () => replaceRolePermissions,
|
|
5535
|
+
replaceUserRoles: () => replaceUserRoles,
|
|
5536
|
+
requestEmailChange: () => requestEmailChange,
|
|
5537
|
+
requestPasswordReset: () => requestPasswordReset,
|
|
5538
|
+
revokeOrganizationInvitation: () => revokeOrganizationInvitation,
|
|
5539
|
+
revokeSession: () => revokeSession,
|
|
5540
|
+
sendEmailVerification: () => sendEmailVerification,
|
|
5541
|
+
signIn: () => signIn,
|
|
5542
|
+
signInWithMagicLink: () => signInWithMagicLink,
|
|
5543
|
+
signOut: () => signOut,
|
|
5544
|
+
signUp: () => signUp,
|
|
5545
|
+
startImpersonation: () => startImpersonation,
|
|
5546
|
+
stopImpersonation: () => stopImpersonation,
|
|
5547
|
+
unbanUser: () => unbanUser,
|
|
5548
|
+
updateAccount: () => updateAccount,
|
|
5549
|
+
updateApiKey: () => updateApiKey,
|
|
5550
|
+
updateOrganization: () => updateOrganization,
|
|
5551
|
+
updateOrganizationMember: () => updateOrganizationMember,
|
|
5552
|
+
updateOrganizationTeam: () => updateOrganizationTeam,
|
|
5553
|
+
updatePermission: () => updatePermission,
|
|
5554
|
+
updateRole: () => updateRole,
|
|
5555
|
+
updateSessionState: () => updateSessionState,
|
|
5556
|
+
updateUser: () => updateUser,
|
|
5557
|
+
updateUserState: () => updateUserState,
|
|
5558
|
+
useAcceptOrganizationInvitation: () => useAcceptOrganizationInvitation,
|
|
5559
|
+
useAddOrganizationMember: () => useAddOrganizationMember,
|
|
5560
|
+
useAddOrganizationTeamMember: () => useAddOrganizationTeamMember,
|
|
5561
|
+
useAddRolePermission: () => useAddRolePermission,
|
|
5562
|
+
useAssignUserRole: () => useAssignUserRole,
|
|
5563
|
+
useBanUser: () => useBanUser,
|
|
5564
|
+
useChangePassword: () => useChangePassword,
|
|
5565
|
+
useCheckUserPermissions: () => useCheckUserPermissions,
|
|
5566
|
+
useCreateAccount: () => useCreateAccount,
|
|
5567
|
+
useCreateApiKey: () => useCreateApiKey,
|
|
5568
|
+
useCreateOrganization: () => useCreateOrganization,
|
|
5569
|
+
useCreateOrganizationInvitation: () => useCreateOrganizationInvitation,
|
|
5570
|
+
useCreateOrganizationTeam: () => useCreateOrganizationTeam,
|
|
5571
|
+
useCreatePermission: () => useCreatePermission,
|
|
5572
|
+
useCreateRole: () => useCreateRole,
|
|
5573
|
+
useCreateSessionState: () => useCreateSessionState,
|
|
5574
|
+
useCreateUser: () => useCreateUser,
|
|
5575
|
+
useCreateUserState: () => useCreateUserState,
|
|
5576
|
+
useDeleteAccount: () => useDeleteAccount,
|
|
5577
|
+
useDeleteApiKey: () => useDeleteApiKey,
|
|
5578
|
+
useDeleteOrganization: () => useDeleteOrganization,
|
|
5579
|
+
useDeleteOrganizationMember: () => useDeleteOrganizationMember,
|
|
5580
|
+
useDeleteOrganizationTeam: () => useDeleteOrganizationTeam,
|
|
5581
|
+
useDeleteOrganizationTeamMember: () => useDeleteOrganizationTeamMember,
|
|
5582
|
+
useDeletePermission: () => useDeletePermission,
|
|
5583
|
+
useDeleteRole: () => useDeleteRole,
|
|
5584
|
+
useDeleteSessionState: () => useDeleteSessionState,
|
|
5585
|
+
useDeleteUser: () => useDeleteUser,
|
|
5586
|
+
useDeleteUserState: () => useDeleteUserState,
|
|
5587
|
+
useDisableTotp: () => useDisableTotp,
|
|
5588
|
+
useEnableTotp: () => useEnableTotp,
|
|
5589
|
+
useExchangeMagicLink: () => useExchangeMagicLink,
|
|
5590
|
+
useGenerateTotpBackupCodes: () => useGenerateTotpBackupCodes,
|
|
5591
|
+
useGetAccount: () => useGetAccount,
|
|
5592
|
+
useGetApiKey: () => useGetApiKey,
|
|
5593
|
+
useGetImpersonation: () => useGetImpersonation,
|
|
5594
|
+
useGetJWKS: () => useGetJWKS,
|
|
5595
|
+
useGetMe: () => useGetMe,
|
|
5596
|
+
useGetOrganization: () => useGetOrganization,
|
|
5597
|
+
useGetOrganizationInvitation: () => useGetOrganizationInvitation,
|
|
5598
|
+
useGetOrganizationMember: () => useGetOrganizationMember,
|
|
5599
|
+
useGetOrganizationMemberByUserID: () => useGetOrganizationMemberByUserID,
|
|
5600
|
+
useGetOrganizationTeam: () => useGetOrganizationTeam,
|
|
5601
|
+
useGetOrganizationTeamMember: () => useGetOrganizationTeamMember,
|
|
5602
|
+
useGetPermission: () => useGetPermission,
|
|
5603
|
+
useGetPermissionByKey: () => useGetPermissionByKey,
|
|
5604
|
+
useGetRole: () => useGetRole,
|
|
5605
|
+
useGetRoleByName: () => useGetRoleByName,
|
|
5606
|
+
useGetSessionState: () => useGetSessionState,
|
|
5607
|
+
useGetTotpURI: () => useGetTotpURI,
|
|
5608
|
+
useGetUser: () => useGetUser,
|
|
5609
|
+
useGetUserPermissions: () => useGetUserPermissions,
|
|
5610
|
+
useGetUserState: () => useGetUserState,
|
|
5611
|
+
useListApiKeys: () => useListApiKeys,
|
|
5612
|
+
useListBannedUserStates: () => useListBannedUserStates,
|
|
5613
|
+
useListImpersonations: () => useListImpersonations,
|
|
5614
|
+
useListOrganizationInvitations: () => useListOrganizationInvitations,
|
|
5615
|
+
useListOrganizationMembers: () => useListOrganizationMembers,
|
|
5616
|
+
useListOrganizationTeamMembers: () => useListOrganizationTeamMembers,
|
|
5617
|
+
useListOrganizationTeams: () => useListOrganizationTeams,
|
|
5618
|
+
useListOrganizations: () => useListOrganizations,
|
|
5619
|
+
useListPermissions: () => useListPermissions,
|
|
5620
|
+
useListRevokedSessionStates: () => useListRevokedSessionStates,
|
|
5621
|
+
useListRolePermissions: () => useListRolePermissions,
|
|
5622
|
+
useListRoles: () => useListRoles,
|
|
5623
|
+
useListUserAccounts: () => useListUserAccounts,
|
|
5624
|
+
useListUserRoles: () => useListUserRoles,
|
|
5625
|
+
useListUserSessions: () => useListUserSessions,
|
|
5626
|
+
useListUsers: () => useListUsers,
|
|
5627
|
+
useOauthAuthorize: () => useOauthAuthorize,
|
|
5628
|
+
useOauthCallback: () => useOauthCallback,
|
|
5629
|
+
useRefreshToken: () => useRefreshToken,
|
|
5630
|
+
useRejectOrganizationInvitation: () => useRejectOrganizationInvitation,
|
|
5631
|
+
useRemoveRolePermission: () => useRemoveRolePermission,
|
|
5632
|
+
useRemoveUserRole: () => useRemoveUserRole,
|
|
5633
|
+
useReplaceRolePermissions: () => useReplaceRolePermissions,
|
|
5634
|
+
useReplaceUserRoles: () => useReplaceUserRoles,
|
|
5635
|
+
useRequestEmailChange: () => useRequestEmailChange,
|
|
5636
|
+
useRequestPasswordReset: () => useRequestPasswordReset,
|
|
5637
|
+
useRevokeOrganizationInvitation: () => useRevokeOrganizationInvitation,
|
|
5638
|
+
useRevokeSession: () => useRevokeSession,
|
|
5639
|
+
useSendEmailVerification: () => useSendEmailVerification,
|
|
5640
|
+
useSignIn: () => useSignIn,
|
|
5641
|
+
useSignInWithMagicLink: () => useSignInWithMagicLink,
|
|
5642
|
+
useSignOut: () => useSignOut,
|
|
5643
|
+
useSignUp: () => useSignUp,
|
|
5644
|
+
useStartImpersonation: () => useStartImpersonation,
|
|
5645
|
+
useStopImpersonation: () => useStopImpersonation,
|
|
5646
|
+
useUnbanUser: () => useUnbanUser,
|
|
5647
|
+
useUpdateAccount: () => useUpdateAccount,
|
|
5648
|
+
useUpdateApiKey: () => useUpdateApiKey,
|
|
5649
|
+
useUpdateOrganization: () => useUpdateOrganization,
|
|
5650
|
+
useUpdateOrganizationMember: () => useUpdateOrganizationMember,
|
|
5651
|
+
useUpdateOrganizationTeam: () => useUpdateOrganizationTeam,
|
|
5652
|
+
useUpdatePermission: () => useUpdatePermission,
|
|
5653
|
+
useUpdateRole: () => useUpdateRole,
|
|
5654
|
+
useUpdateSessionState: () => useUpdateSessionState,
|
|
5655
|
+
useUpdateUser: () => useUpdateUser,
|
|
5656
|
+
useUpdateUserState: () => useUpdateUserState,
|
|
5657
|
+
useVerifyApiKey: () => useVerifyApiKey,
|
|
5658
|
+
useVerifyEmail: () => useVerifyEmail,
|
|
5659
|
+
useVerifyMagicLink: () => useVerifyMagicLink,
|
|
5660
|
+
useVerifyTotp: () => useVerifyTotp,
|
|
5661
|
+
useVerifyTotpBackupCode: () => useVerifyTotpBackupCode,
|
|
5662
|
+
verifyApiKey: () => verifyApiKey,
|
|
5663
|
+
verifyEmail: () => verifyEmail,
|
|
5664
|
+
verifyMagicLink: () => verifyMagicLink,
|
|
5665
|
+
verifyTotp: () => verifyTotp,
|
|
5666
|
+
verifyTotpBackupCode: () => verifyTotpBackupCode
|
|
5667
|
+
});
|
|
5668
|
+
|
|
5669
|
+
// src/react/index.ts
|
|
5670
|
+
function createClient(options) {
|
|
5671
|
+
const client = createClient$1(options);
|
|
5672
|
+
return attachFrameworkHooks(client, options.plugins, react_exports, "use");
|
|
5673
|
+
}
|
|
5954
5674
|
|
|
5955
|
-
//#endregion
|
|
5956
|
-
|
|
5957
|
-
//# sourceMappingURL=index.js.map
|
|
5675
|
+
export { ApiError, AuthulaClient, acceptOrganizationInvitation, addOrganizationMember, addOrganizationTeamMember, addRolePermission, assignUserRole, banUser, changePassword, checkUserPermissions, createAccount, createApiKey, createClient, createOrganization, createOrganizationInvitation, createOrganizationTeam, createPermission, createRole, createSessionState, createUser, createUserState, deleteAccount, deleteApiKey, deleteOrganization, deleteOrganizationMember, deleteOrganizationTeam, deleteOrganizationTeamMember, deletePermission, deleteRole, deleteSessionState, deleteUser, deleteUserState, disableTotp, enableTotp, exchangeMagicLink, generateTotpBackupCodes, getAcceptOrganizationInvitationMutationKey, getAcceptOrganizationInvitationMutationOptions, getAcceptOrganizationInvitationUrl, getAccount, getAddOrganizationMemberMutationKey, getAddOrganizationMemberMutationOptions, getAddOrganizationMemberUrl, getAddOrganizationTeamMemberMutationKey, getAddOrganizationTeamMemberMutationOptions, getAddOrganizationTeamMemberUrl, getAddRolePermissionMutationKey, getAddRolePermissionMutationOptions, getAddRolePermissionUrl, getApiKey, getAssignUserRoleMutationKey, getAssignUserRoleMutationOptions, getAssignUserRoleUrl, getBanUserMutationKey, getBanUserMutationOptions, getBanUserUrl, getChangePasswordMutationKey, getChangePasswordMutationOptions, getChangePasswordUrl, getCheckUserPermissionsMutationKey, getCheckUserPermissionsMutationOptions, getCheckUserPermissionsUrl, getCreateAccountMutationKey, getCreateAccountMutationOptions, getCreateAccountUrl, getCreateApiKeyMutationKey, getCreateApiKeyMutationOptions, getCreateApiKeyUrl, getCreateOrganizationInvitationMutationKey, getCreateOrganizationInvitationMutationOptions, getCreateOrganizationInvitationUrl, getCreateOrganizationMutationKey, getCreateOrganizationMutationOptions, getCreateOrganizationTeamMutationKey, getCreateOrganizationTeamMutationOptions, getCreateOrganizationTeamUrl, getCreateOrganizationUrl, getCreatePermissionMutationKey, getCreatePermissionMutationOptions, getCreatePermissionUrl, getCreateRoleMutationKey, getCreateRoleMutationOptions, getCreateRoleUrl, getCreateSessionStateMutationKey, getCreateSessionStateMutationOptions, getCreateSessionStateUrl, getCreateUserMutationKey, getCreateUserMutationOptions, getCreateUserStateMutationKey, getCreateUserStateMutationOptions, getCreateUserStateUrl, getCreateUserUrl, getDeleteAccountMutationKey, getDeleteAccountMutationOptions, getDeleteAccountUrl, getDeleteApiKeyMutationKey, getDeleteApiKeyMutationOptions, getDeleteApiKeyUrl, getDeleteOrganizationMemberMutationKey, getDeleteOrganizationMemberMutationOptions, getDeleteOrganizationMemberUrl, getDeleteOrganizationMutationKey, getDeleteOrganizationMutationOptions, getDeleteOrganizationTeamMemberMutationKey, getDeleteOrganizationTeamMemberMutationOptions, getDeleteOrganizationTeamMemberUrl, getDeleteOrganizationTeamMutationKey, getDeleteOrganizationTeamMutationOptions, getDeleteOrganizationTeamUrl, getDeleteOrganizationUrl, getDeletePermissionMutationKey, getDeletePermissionMutationOptions, getDeletePermissionUrl, getDeleteRoleMutationKey, getDeleteRoleMutationOptions, getDeleteRoleUrl, getDeleteSessionStateMutationKey, getDeleteSessionStateMutationOptions, getDeleteSessionStateUrl, getDeleteUserMutationKey, getDeleteUserMutationOptions, getDeleteUserStateMutationKey, getDeleteUserStateMutationOptions, getDeleteUserStateUrl, getDeleteUserUrl, getDisableTotpMutationKey, getDisableTotpMutationOptions, getDisableTotpUrl, getEnableTotpMutationKey, getEnableTotpMutationOptions, getEnableTotpUrl, getExchangeMagicLinkMutationKey, getExchangeMagicLinkMutationOptions, getExchangeMagicLinkUrl, getGenerateTotpBackupCodesMutationKey, getGenerateTotpBackupCodesMutationOptions, getGenerateTotpBackupCodesUrl, getGetAccountQueryKey, getGetAccountQueryOptions, getGetAccountUrl, getGetApiKeyQueryKey, getGetApiKeyQueryOptions, getGetApiKeyUrl, getGetImpersonationQueryKey, getGetImpersonationQueryOptions, getGetImpersonationUrl, getGetJWKSQueryKey, getGetJWKSQueryOptions, getGetJWKSUrl, getGetMeQueryKey, getGetMeQueryOptions, getGetMeUrl, getGetOrganizationInvitationQueryKey, getGetOrganizationInvitationQueryOptions, getGetOrganizationInvitationUrl, getGetOrganizationMemberByUserIDQueryKey, getGetOrganizationMemberByUserIDQueryOptions, getGetOrganizationMemberByUserIDUrl, getGetOrganizationMemberQueryKey, getGetOrganizationMemberQueryOptions, getGetOrganizationMemberUrl, getGetOrganizationQueryKey, getGetOrganizationQueryOptions, getGetOrganizationTeamMemberQueryKey, getGetOrganizationTeamMemberQueryOptions, getGetOrganizationTeamMemberUrl, getGetOrganizationTeamQueryKey, getGetOrganizationTeamQueryOptions, getGetOrganizationTeamUrl, getGetOrganizationUrl, getGetPermissionByKeyQueryKey, getGetPermissionByKeyQueryOptions, getGetPermissionByKeyUrl, getGetPermissionQueryKey, getGetPermissionQueryOptions, getGetPermissionUrl, getGetRoleByNameQueryKey, getGetRoleByNameQueryOptions, getGetRoleByNameUrl, getGetRoleQueryKey, getGetRoleQueryOptions, getGetRoleUrl, getGetSessionStateQueryKey, getGetSessionStateQueryOptions, getGetSessionStateUrl, getGetTotpURIQueryKey, getGetTotpURIQueryOptions, getGetTotpURIUrl, getGetUserPermissionsQueryKey, getGetUserPermissionsQueryOptions, getGetUserPermissionsUrl, getGetUserQueryKey, getGetUserQueryOptions, getGetUserStateQueryKey, getGetUserStateQueryOptions, getGetUserStateUrl, getGetUserUrl, getImpersonation, getJWKS, getListApiKeysQueryKey, getListApiKeysQueryOptions, getListApiKeysUrl, getListBannedUserStatesQueryKey, getListBannedUserStatesQueryOptions, getListBannedUserStatesUrl, getListImpersonationsQueryKey, getListImpersonationsQueryOptions, getListImpersonationsUrl, getListOrganizationInvitationsQueryKey, getListOrganizationInvitationsQueryOptions, getListOrganizationInvitationsUrl, getListOrganizationMembersQueryKey, getListOrganizationMembersQueryOptions, getListOrganizationMembersUrl, getListOrganizationTeamMembersQueryKey, getListOrganizationTeamMembersQueryOptions, getListOrganizationTeamMembersUrl, getListOrganizationTeamsQueryKey, getListOrganizationTeamsQueryOptions, getListOrganizationTeamsUrl, getListOrganizationsQueryKey, getListOrganizationsQueryOptions, getListOrganizationsUrl, getListPermissionsQueryKey, getListPermissionsQueryOptions, getListPermissionsUrl, getListRevokedSessionStatesQueryKey, getListRevokedSessionStatesQueryOptions, getListRevokedSessionStatesUrl, getListRolePermissionsQueryKey, getListRolePermissionsQueryOptions, getListRolePermissionsUrl, getListRolesQueryKey, getListRolesQueryOptions, getListRolesUrl, getListUserAccountsQueryKey, getListUserAccountsQueryOptions, getListUserAccountsUrl, getListUserRolesQueryKey, getListUserRolesQueryOptions, getListUserRolesUrl, getListUserSessionsQueryKey, getListUserSessionsQueryOptions, getListUserSessionsUrl, getListUsersQueryKey, getListUsersQueryOptions, getListUsersUrl, getMe, getOauthAuthorizeQueryKey, getOauthAuthorizeQueryOptions, getOauthAuthorizeUrl, getOauthCallbackQueryKey, getOauthCallbackQueryOptions, getOauthCallbackUrl, getOrganization, getOrganizationInvitation, getOrganizationMember, getOrganizationMemberByUserID, getOrganizationTeam, getOrganizationTeamMember, getPermission, getPermissionByKey, getRefreshTokenMutationKey, getRefreshTokenMutationOptions, getRefreshTokenUrl, getRejectOrganizationInvitationMutationKey, getRejectOrganizationInvitationMutationOptions, getRejectOrganizationInvitationUrl, getRemoveRolePermissionMutationKey, getRemoveRolePermissionMutationOptions, getRemoveRolePermissionUrl, getRemoveUserRoleMutationKey, getRemoveUserRoleMutationOptions, getRemoveUserRoleUrl, getReplaceRolePermissionsMutationKey, getReplaceRolePermissionsMutationOptions, getReplaceRolePermissionsUrl, getReplaceUserRolesMutationKey, getReplaceUserRolesMutationOptions, getReplaceUserRolesUrl, getRequestEmailChangeMutationKey, getRequestEmailChangeMutationOptions, getRequestEmailChangeUrl, getRequestPasswordResetMutationKey, getRequestPasswordResetMutationOptions, getRequestPasswordResetUrl, getRevokeOrganizationInvitationMutationKey, getRevokeOrganizationInvitationMutationOptions, getRevokeOrganizationInvitationUrl, getRevokeSessionMutationKey, getRevokeSessionMutationOptions, getRevokeSessionUrl, getRole, getRoleByName, getSendEmailVerificationMutationKey, getSendEmailVerificationMutationOptions, getSendEmailVerificationUrl, getSessionState, getSignInMutationKey, getSignInMutationOptions, getSignInUrl, getSignInWithMagicLinkMutationKey, getSignInWithMagicLinkMutationOptions, getSignInWithMagicLinkUrl, getSignOutMutationKey, getSignOutMutationOptions, getSignOutUrl, getSignUpMutationKey, getSignUpMutationOptions, getSignUpUrl, getStartImpersonationMutationKey, getStartImpersonationMutationOptions, getStartImpersonationUrl, getStopImpersonationMutationKey, getStopImpersonationMutationOptions, getStopImpersonationUrl, getTotpURI, getUnbanUserMutationKey, getUnbanUserMutationOptions, getUnbanUserUrl, getUpdateAccountMutationKey, getUpdateAccountMutationOptions, getUpdateAccountUrl, getUpdateApiKeyMutationKey, getUpdateApiKeyMutationOptions, getUpdateApiKeyUrl, getUpdateOrganizationMemberMutationKey, getUpdateOrganizationMemberMutationOptions, getUpdateOrganizationMemberUrl, getUpdateOrganizationMutationKey, getUpdateOrganizationMutationOptions, getUpdateOrganizationTeamMutationKey, getUpdateOrganizationTeamMutationOptions, getUpdateOrganizationTeamUrl, getUpdateOrganizationUrl, getUpdatePermissionMutationKey, getUpdatePermissionMutationOptions, getUpdatePermissionUrl, getUpdateRoleMutationKey, getUpdateRoleMutationOptions, getUpdateRoleUrl, getUpdateSessionStateMutationKey, getUpdateSessionStateMutationOptions, getUpdateSessionStateUrl, getUpdateUserMutationKey, getUpdateUserMutationOptions, getUpdateUserStateMutationKey, getUpdateUserStateMutationOptions, getUpdateUserStateUrl, getUpdateUserUrl, getUser, getUserPermissions, getUserState, getVerifyApiKeyMutationKey, getVerifyApiKeyMutationOptions, getVerifyApiKeyUrl, getVerifyEmailQueryKey, getVerifyEmailQueryOptions, getVerifyEmailUrl, getVerifyMagicLinkQueryKey, getVerifyMagicLinkQueryOptions, getVerifyMagicLinkUrl, getVerifyTotpBackupCodeMutationKey, getVerifyTotpBackupCodeMutationOptions, getVerifyTotpBackupCodeUrl, getVerifyTotpMutationKey, getVerifyTotpMutationOptions, getVerifyTotpUrl, listApiKeys, listBannedUserStates, listImpersonations, listOrganizationInvitations, listOrganizationMembers, listOrganizationTeamMembers, listOrganizationTeams, listOrganizations, listPermissions, listRevokedSessionStates, listRolePermissions, listRoles, listUserAccounts, listUserRoles, listUserSessions, listUsers, oauthAuthorize, oauthCallback, refreshToken, rejectOrganizationInvitation, removeRolePermission, removeUserRole, replaceRolePermissions, replaceUserRoles, requestEmailChange, requestPasswordReset, revokeOrganizationInvitation, revokeSession, sendEmailVerification, signIn, signInWithMagicLink, signOut, signUp, startImpersonation, stopImpersonation, unbanUser, updateAccount, updateApiKey, updateOrganization, updateOrganizationMember, updateOrganizationTeam, updatePermission, updateRole, updateSessionState, updateUser, updateUserState, useAcceptOrganizationInvitation, useAddOrganizationMember, useAddOrganizationTeamMember, useAddRolePermission, useAssignUserRole, useBanUser, useChangePassword, useCheckUserPermissions, useCreateAccount, useCreateApiKey, useCreateOrganization, useCreateOrganizationInvitation, useCreateOrganizationTeam, useCreatePermission, useCreateRole, useCreateSessionState, useCreateUser, useCreateUserState, useDeleteAccount, useDeleteApiKey, useDeleteOrganization, useDeleteOrganizationMember, useDeleteOrganizationTeam, useDeleteOrganizationTeamMember, useDeletePermission, useDeleteRole, useDeleteSessionState, useDeleteUser, useDeleteUserState, useDisableTotp, useEnableTotp, useExchangeMagicLink, useGenerateTotpBackupCodes, useGetAccount, useGetApiKey, useGetImpersonation, useGetJWKS, useGetMe, useGetOrganization, useGetOrganizationInvitation, useGetOrganizationMember, useGetOrganizationMemberByUserID, useGetOrganizationTeam, useGetOrganizationTeamMember, useGetPermission, useGetPermissionByKey, useGetRole, useGetRoleByName, useGetSessionState, useGetTotpURI, useGetUser, useGetUserPermissions, useGetUserState, useListApiKeys, useListBannedUserStates, useListImpersonations, useListOrganizationInvitations, useListOrganizationMembers, useListOrganizationTeamMembers, useListOrganizationTeams, useListOrganizations, useListPermissions, useListRevokedSessionStates, useListRolePermissions, useListRoles, useListUserAccounts, useListUserRoles, useListUserSessions, useListUsers, useOauthAuthorize, useOauthCallback, useRefreshToken, useRejectOrganizationInvitation, useRemoveRolePermission, useRemoveUserRole, useReplaceRolePermissions, useReplaceUserRoles, useRequestEmailChange, useRequestPasswordReset, useRevokeOrganizationInvitation, useRevokeSession, useSendEmailVerification, useSignIn, useSignInWithMagicLink, useSignOut, useSignUp, useStartImpersonation, useStopImpersonation, useUnbanUser, useUpdateAccount, useUpdateApiKey, useUpdateOrganization, useUpdateOrganizationMember, useUpdateOrganizationTeam, useUpdatePermission, useUpdateRole, useUpdateSessionState, useUpdateUser, useUpdateUserState, useVerifyApiKey, useVerifyEmail, useVerifyMagicLink, useVerifyTotp, useVerifyTotpBackupCode, verifyApiKey, verifyEmail, verifyMagicLink, verifyTotp, verifyTotpBackupCode };
|
|
5676
|
+
//# sourceMappingURL=react.js.map
|