authula 0.7.9 → 0.7.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{custom-fetch-Ce6_l1Qb.js → custom-fetch-CXJ4-i7I.js} +14 -2
- package/dist/custom-fetch-CXJ4-i7I.js.map +1 -0
- package/dist/{index-B2PrZi2E.d.ts → index-C-9W0QTR.d.ts} +103 -103
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/plugins/index.d.ts +159 -159
- package/dist/plugins/index.js +17 -7
- package/dist/plugins/index.js.map +1 -1
- package/package.json +3 -3
- package/dist/custom-fetch-Ce6_l1Qb.js.map +0 -1
package/dist/plugins/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $t as GetApiKeyResponse, A as UpdateUserResponse, At as MagicLinkSignInRequest, Bn as CheckUserPermissionsRequest, Bt as UserPermissionInfo, C as UsersPage, Cn as CreateRoleRequest, Ct as OrganizationMember, D as UpsertUserStateRequest, Dn as CreateOrganizationTeamRequest, Dt as OauthAuthorizeParams, E as UpsertUserStateResponse, En as CreatePermissionRequest, Et as OauthCallbackParams, F as UpdatePermissionResponse, Fn as CreateApiKeyRequest, Ft as ListOrganizationMembersParams, G as UpdateAccountResponse, Gt as GetOrganizationInvitationResponse, H as UpdateApiKeyResponse, Hn as ChangePasswordRequest, Ht as GetUserByIDResponse, I as UpdatePermissionRequest, It as ListApiKeysParams, J as StopImpersonationResponse, Jn as BanUserRequest, Jt as OrganizationInvitation, K as UpdateAccountRequest, L as UpdateOrganizationTeamRequest, Ln as CreateAccountResponse, Mt as MagicLinkExchangeRequest, N as UpdateRoleResponse, Nn as CreateOrganizationInvitationParams, Nt as ListUsersParams, O as UpsertSessionStateResponse, Ot as MagicLinkVerifyResponse, P as UpdateRoleRequest, Pn as CreateApiKeyResponse, Pt as ListOrganizationTeamMembersParams, Q as SignUpRequest, Qt as Impersonation, Rn as CreateAccountRequest, Rt as GetUserStateResponse, S as VerifyApiKeyRequest, Sn as Role, St as OrganizationMemberResponse, T as UserAccountsResponse, Tn as Permission, U as UpdateApiKeyRequest, Un as ChangeEmailResponse, Ut as GetTOTPURIResponse, V as UpdateOrganizationMemberRequest, Vn as ChangePasswordResponse, Wn as CallbackResponse, Wt as GetSessionStateResponse, X as StartImpersonationRequest, Xn as AssignUserRoleResponse, Xt as GetMeResponse, Y as StartImpersonationResponse, Yn as AuthorizeResponse, Z as SignUpResponse, Zn as AssignUserRoleRequest, Zt as GetImpersonationByIDResponse, _ as VerifyTOTPRequest, _n as CreateUserResponse, _t as RefreshTokenRequest, an as DeleteUserStateResponse, ar as AddRolePermissionRequest, at as RoleDetails, b as VerifyBackupCodeRequest, bn as CreateSessionStateRequest, bt as OrganizationTeam, c as CookieStore, cn as DeleteRoleResponse, ct as RequestPasswordResetRequest, d as AuthulaClient, dn as DeleteOrganizationTeamMemberResponse, dt as ReplaceUserRolesRequest, en as GetAllApiKeysResponse, er as AdminUserState, et as SignOutResponse, fn as DeleteOrganizationResponse, ft as ReplaceRolePermissionsRequest, g as VerifyTOTPResponse, gn as CreateUserStateRequest, gt as RefreshTokenResponse, h as WellKnownJWKSResponse, hn as DeleteAccountResponse, ht as RemoveRolePermissionResponse, i as customFetch, in as DisableResponse, ir as AddRolePermissionResponse, it as SendEmailVerificationRequest, j as UpdateUserRequest, jn as CreateOrganizationInvitationRequest, jt as MagicLinkExchangeResponse, k as UpsertSessionStateRequest, kn as CreateOrganizationRequest, kt as MagicLinkSignInResponse, ln as DeletePermissionResponse, lr as AcceptOrganizationInvitationQuery, lt as RequestEmailChangeRequest, m as FetchContext, mn as DeleteApiKeyResponse, mt as RemoveUserRoleResponse, nn as GenerateBackupCodesResponse, nt as SignInResponse, on as DeleteUserResponse, or as AddOrganizationTeamMemberRequest, ot as RevokeSessionResponse, pn as DeleteOrganizationMemberResponse, pt as ReplaceRolePermissionResponse, q as UnbanUserResponse, qn as BanUserResponse, rn as EnableResponse, rr as AdminSessionState, rt as SignInRequest, sn as DeleteSessionStateResponse, sr as AddOrganizationMemberRequest, st as RevokeSessionRequest, t as ClientWithPlugins, tn as GetAccountByIDResponse, tr as AdminUserSession, tt as SignOutRequest, u as Plugin, un as DeleteOrganizationTeamResponse, ur as AcceptOrganizationInvitationParams, ut as ReplaceUserRolesResponse, v as VerifyMagicLinkParams, vn as CreateUserRequest, vt as OrganizationTeamMemberResponse, w as UserRoleInfo, wn as CreatePermissionResponse, wt as Organization, x as VerifyApiKeyResponse, xn as CreateRoleResponse, y as VerifyBackupCodeResponse, yt as OrganizationTeamMember, z as UpdateOrganizationRequest, zn as CheckUserPermissionsResponse, zt as GetUserPermissionsResponse } from "../index-
|
|
1
|
+
import { $t as GetApiKeyResponse, A as UpdateUserResponse, At as MagicLinkSignInRequest, Bn as CheckUserPermissionsRequest, Bt as UserPermissionInfo, C as UsersPage, Cn as CreateRoleRequest, Ct as OrganizationMember, D as UpsertUserStateRequest, Dn as CreateOrganizationTeamRequest, Dt as OauthAuthorizeParams, E as UpsertUserStateResponse, En as CreatePermissionRequest, Et as OauthCallbackParams, F as UpdatePermissionResponse, Fn as CreateApiKeyRequest, Ft as ListOrganizationMembersParams, G as UpdateAccountResponse, Gt as GetOrganizationInvitationResponse, H as UpdateApiKeyResponse, Hn as ChangePasswordRequest, Ht as GetUserByIDResponse, I as UpdatePermissionRequest, It as ListApiKeysParams, J as StopImpersonationResponse, Jn as BanUserRequest, Jt as OrganizationInvitation, K as UpdateAccountRequest, L as UpdateOrganizationTeamRequest, Ln as CreateAccountResponse, Mt as MagicLinkExchangeRequest, N as UpdateRoleResponse, Nn as CreateOrganizationInvitationParams, Nt as ListUsersParams, O as UpsertSessionStateResponse, Ot as MagicLinkVerifyResponse, P as UpdateRoleRequest, Pn as CreateApiKeyResponse, Pt as ListOrganizationTeamMembersParams, Q as SignUpRequest, Qt as Impersonation, Rn as CreateAccountRequest, Rt as GetUserStateResponse, S as VerifyApiKeyRequest, Sn as Role, St as OrganizationMemberResponse, T as UserAccountsResponse, Tn as Permission, U as UpdateApiKeyRequest, Un as ChangeEmailResponse, Ut as GetTOTPURIResponse, V as UpdateOrganizationMemberRequest, Vn as ChangePasswordResponse, Wn as CallbackResponse, Wt as GetSessionStateResponse, X as StartImpersonationRequest, Xn as AssignUserRoleResponse, Xt as GetMeResponse, Y as StartImpersonationResponse, Yn as AuthorizeResponse, Z as SignUpResponse, Zn as AssignUserRoleRequest, Zt as GetImpersonationByIDResponse, _ as VerifyTOTPRequest, _n as CreateUserResponse, _t as RefreshTokenRequest, an as DeleteUserStateResponse, ar as AddRolePermissionRequest, at as RoleDetails, b as VerifyBackupCodeRequest, bn as CreateSessionStateRequest, bt as OrganizationTeam, c as CookieStore, cn as DeleteRoleResponse, ct as RequestPasswordResetRequest, d as AuthulaClient, dn as DeleteOrganizationTeamMemberResponse, dt as ReplaceUserRolesRequest, en as GetAllApiKeysResponse, er as AdminUserState, et as SignOutResponse, fn as DeleteOrganizationResponse, ft as ReplaceRolePermissionsRequest, g as VerifyTOTPResponse, gn as CreateUserStateRequest, gt as RefreshTokenResponse, h as WellKnownJWKSResponse, hn as DeleteAccountResponse, ht as RemoveRolePermissionResponse, i as customFetch, in as DisableResponse, ir as AddRolePermissionResponse, it as SendEmailVerificationRequest, j as UpdateUserRequest, jn as CreateOrganizationInvitationRequest, jt as MagicLinkExchangeResponse, k as UpsertSessionStateRequest, kn as CreateOrganizationRequest, kt as MagicLinkSignInResponse, ln as DeletePermissionResponse, lr as AcceptOrganizationInvitationQuery, lt as RequestEmailChangeRequest, m as FetchContext, mn as DeleteApiKeyResponse, mt as RemoveUserRoleResponse, nn as GenerateBackupCodesResponse, nt as SignInResponse, on as DeleteUserResponse, or as AddOrganizationTeamMemberRequest, ot as RevokeSessionResponse, pn as DeleteOrganizationMemberResponse, pt as ReplaceRolePermissionResponse, q as UnbanUserResponse, qn as BanUserResponse, rn as EnableResponse, rr as AdminSessionState, rt as SignInRequest, sn as DeleteSessionStateResponse, sr as AddOrganizationMemberRequest, st as RevokeSessionRequest, t as ClientWithPlugins, tn as GetAccountByIDResponse, tr as AdminUserSession, tt as SignOutRequest, u as Plugin, un as DeleteOrganizationTeamResponse, ur as AcceptOrganizationInvitationParams, ut as ReplaceUserRolesResponse, v as VerifyMagicLinkParams, vn as CreateUserRequest, vt as OrganizationTeamMemberResponse, w as UserRoleInfo, wn as CreatePermissionResponse, wt as Organization, x as VerifyApiKeyResponse, xn as CreateRoleResponse, y as VerifyBackupCodeResponse, yt as OrganizationTeamMember, z as UpdateOrganizationRequest, zn as CheckUserPermissionsResponse, zt as GetUserPermissionsResponse } from "../index-C-9W0QTR.js";
|
|
2
2
|
import { DataTag, DefinedInitialDataOptions, DefinedUseQueryResult, QueryClient, QueryKey, UndefinedInitialDataOptions, UseMutationOptions, UseMutationResult, UseQueryOptions, UseQueryResult } from "@tanstack/react-query";
|
|
3
3
|
declare namespace access_control_d_exports {
|
|
4
4
|
export { AddRolePermissionMutationBody, AddRolePermissionMutationError, AddRolePermissionMutationResult, AssignUserRoleMutationBody, AssignUserRoleMutationError, AssignUserRoleMutationResult, CheckUserPermissionsMutationBody, CheckUserPermissionsMutationError, CheckUserPermissionsMutationResult, CreatePermissionMutationBody, CreatePermissionMutationError, CreatePermissionMutationResult, CreateRoleMutationBody, CreateRoleMutationError, CreateRoleMutationResult, DeletePermissionMutationError, DeletePermissionMutationResult, DeleteRoleMutationError, DeleteRoleMutationResult, GetPermissionByKeyQueryError, GetPermissionByKeyQueryResult, GetPermissionQueryError, GetPermissionQueryResult, GetRoleByNameQueryError, GetRoleByNameQueryResult, GetRoleQueryError, GetRoleQueryResult, GetUserPermissionsQueryError, GetUserPermissionsQueryResult, ListPermissionsQueryError, ListPermissionsQueryResult, ListRolePermissionsQueryError, ListRolePermissionsQueryResult, ListRolesQueryError, ListRolesQueryResult, ListUserRolesQueryError, ListUserRolesQueryResult, RemoveRolePermissionMutationError, RemoveRolePermissionMutationResult, RemoveUserRoleMutationError, RemoveUserRoleMutationResult, ReplaceRolePermissionsMutationBody, ReplaceRolePermissionsMutationError, ReplaceRolePermissionsMutationResult, ReplaceUserRolesMutationBody, ReplaceUserRolesMutationError, ReplaceUserRolesMutationResult, UpdatePermissionMutationBody, UpdatePermissionMutationError, UpdatePermissionMutationResult, UpdateRoleMutationBody, UpdateRoleMutationError, UpdateRoleMutationResult, addRolePermission, assignUserRole, checkUserPermissions, createPermission, createRole, deletePermission, deleteRole, getAddRolePermissionMutationOptions, getAddRolePermissionUrl, getAssignUserRoleMutationOptions, getAssignUserRoleUrl, getCheckUserPermissionsMutationOptions, getCheckUserPermissionsUrl, getCreatePermissionMutationOptions, getCreatePermissionUrl, getCreateRoleMutationOptions, getCreateRoleUrl, getDeletePermissionMutationOptions, getDeletePermissionUrl, getDeleteRoleMutationOptions, getDeleteRoleUrl, getGetPermissionByKeyQueryKey, getGetPermissionByKeyQueryOptions, getGetPermissionByKeyUrl, getGetPermissionQueryKey, getGetPermissionQueryOptions, getGetPermissionUrl, getGetRoleByNameQueryKey, getGetRoleByNameQueryOptions, getGetRoleByNameUrl, getGetRoleQueryKey, getGetRoleQueryOptions, getGetRoleUrl, getGetUserPermissionsQueryKey, getGetUserPermissionsQueryOptions, getGetUserPermissionsUrl, getListPermissionsQueryKey, getListPermissionsQueryOptions, getListPermissionsUrl, getListRolePermissionsQueryKey, getListRolePermissionsQueryOptions, getListRolePermissionsUrl, getListRolesQueryKey, getListRolesQueryOptions, getListRolesUrl, getListUserRolesQueryKey, getListUserRolesQueryOptions, getListUserRolesUrl, getPermission, getPermissionByKey, getRemoveRolePermissionMutationOptions, getRemoveRolePermissionUrl, getRemoveUserRoleMutationOptions, getRemoveUserRoleUrl, getReplaceRolePermissionsMutationOptions, getReplaceRolePermissionsUrl, getReplaceUserRolesMutationOptions, getReplaceUserRolesUrl, getRole, getRoleByName, getUpdatePermissionMutationOptions, getUpdatePermissionUrl, getUpdateRoleMutationOptions, getUpdateRoleUrl, getUserPermissions, listPermissions, listRolePermissions, listRoles, listUserRoles, removeRolePermission, removeUserRole, replaceRolePermissions, replaceUserRoles, updatePermission, updateRole, useAddRolePermission, useAssignUserRole, useCheckUserPermissions, useCreatePermission, useCreateRole, useDeletePermission, useDeleteRole, useGetPermission, useGetPermissionByKey, useGetRole, useGetRoleByName, useGetUserPermissions, useListPermissions, useListRolePermissions, useListRoles, useListUserRoles, useRemoveRolePermission, useRemoveUserRole, useReplaceRolePermissions, useReplaceUserRoles, useUpdatePermission, useUpdateRole };
|
|
@@ -9,7 +9,7 @@ declare const getListPermissionsUrl: () => string;
|
|
|
9
9
|
* Lists all permissions.
|
|
10
10
|
* @summary List permissions
|
|
11
11
|
*/
|
|
12
|
-
declare const listPermissions: (options?:
|
|
12
|
+
declare const listPermissions: (options?: Parameters<typeof customFetch>[1]) => Promise<Permission[] | null>;
|
|
13
13
|
declare const getListPermissionsQueryKey: () => readonly ["/access-control/permissions"];
|
|
14
14
|
declare const getListPermissionsQueryOptions: <TData = Awaited<ReturnType<typeof listPermissions>>, TError = unknown>(options?: {
|
|
15
15
|
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof listPermissions>>, TError, TData>>;
|
|
@@ -42,7 +42,7 @@ declare const getCreatePermissionUrl: () => string;
|
|
|
42
42
|
* Creates a new permission.
|
|
43
43
|
* @summary Create permission
|
|
44
44
|
*/
|
|
45
|
-
declare const createPermission: (createPermissionRequest?: CreatePermissionRequest, options?:
|
|
45
|
+
declare const createPermission: (createPermissionRequest?: CreatePermissionRequest, options?: Parameters<typeof customFetch>[1]) => Promise<CreatePermissionResponse>;
|
|
46
46
|
declare const getCreatePermissionMutationOptions: <TError = unknown, TContext = unknown>(options?: {
|
|
47
47
|
mutation?: UseMutationOptions<Awaited<ReturnType<typeof createPermission>>, TError, {
|
|
48
48
|
data?: CreatePermissionRequest;
|
|
@@ -70,7 +70,7 @@ declare const getGetPermissionByKeyUrl: (permissionKey: string) => string;
|
|
|
70
70
|
* Retrieves a permission by its key.
|
|
71
71
|
* @summary Get permission by key
|
|
72
72
|
*/
|
|
73
|
-
declare const getPermissionByKey: (permissionKey: string, options?:
|
|
73
|
+
declare const getPermissionByKey: (permissionKey: string, options?: Parameters<typeof customFetch>[1]) => Promise<Permission>;
|
|
74
74
|
declare const getGetPermissionByKeyQueryKey: (permissionKey: string) => readonly [`/access-control/permissions/by-key/${string}`];
|
|
75
75
|
declare const getGetPermissionByKeyQueryOptions: <TData = Awaited<ReturnType<typeof getPermissionByKey>>, TError = unknown>(permissionKey: string, options?: {
|
|
76
76
|
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getPermissionByKey>>, TError, TData>>;
|
|
@@ -103,7 +103,7 @@ declare const getGetPermissionUrl: (permissionId: string) => string;
|
|
|
103
103
|
* Retrieves a permission by its ID.
|
|
104
104
|
* @summary Get permission by ID
|
|
105
105
|
*/
|
|
106
|
-
declare const getPermission: (permissionId: string, options?:
|
|
106
|
+
declare const getPermission: (permissionId: string, options?: Parameters<typeof customFetch>[1]) => Promise<Permission>;
|
|
107
107
|
declare const getGetPermissionQueryKey: (permissionId: string) => readonly [`/access-control/permissions/${string}`];
|
|
108
108
|
declare const getGetPermissionQueryOptions: <TData = Awaited<ReturnType<typeof getPermission>>, TError = unknown>(permissionId: string, options?: {
|
|
109
109
|
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getPermission>>, TError, TData>>;
|
|
@@ -136,7 +136,7 @@ declare const getDeletePermissionUrl: (permissionId: string) => string;
|
|
|
136
136
|
* Deletes a permission.
|
|
137
137
|
* @summary Delete permission
|
|
138
138
|
*/
|
|
139
|
-
declare const deletePermission: (permissionId: string, options?:
|
|
139
|
+
declare const deletePermission: (permissionId: string, options?: Parameters<typeof customFetch>[1]) => Promise<DeletePermissionResponse>;
|
|
140
140
|
declare const getDeletePermissionMutationOptions: <TError = unknown, TContext = unknown>(options?: {
|
|
141
141
|
mutation?: UseMutationOptions<Awaited<ReturnType<typeof deletePermission>>, TError, {
|
|
142
142
|
permissionId: string;
|
|
@@ -163,7 +163,7 @@ declare const getUpdatePermissionUrl: (permissionId: string) => string;
|
|
|
163
163
|
* Updates a permission's description.
|
|
164
164
|
* @summary Update permission
|
|
165
165
|
*/
|
|
166
|
-
declare const updatePermission: (permissionId: string, updatePermissionRequest?: UpdatePermissionRequest, options?:
|
|
166
|
+
declare const updatePermission: (permissionId: string, updatePermissionRequest?: UpdatePermissionRequest, options?: Parameters<typeof customFetch>[1]) => Promise<UpdatePermissionResponse>;
|
|
167
167
|
declare const getUpdatePermissionMutationOptions: <TError = unknown, TContext = unknown>(options?: {
|
|
168
168
|
mutation?: UseMutationOptions<Awaited<ReturnType<typeof updatePermission>>, TError, {
|
|
169
169
|
permissionId: string;
|
|
@@ -195,7 +195,7 @@ declare const getListRolesUrl: () => string;
|
|
|
195
195
|
* Lists all roles.
|
|
196
196
|
* @summary List roles
|
|
197
197
|
*/
|
|
198
|
-
declare const listRoles: (options?:
|
|
198
|
+
declare const listRoles: (options?: Parameters<typeof customFetch>[1]) => Promise<Role[] | null>;
|
|
199
199
|
declare const getListRolesQueryKey: () => readonly ["/access-control/roles"];
|
|
200
200
|
declare const getListRolesQueryOptions: <TData = Awaited<ReturnType<typeof listRoles>>, TError = unknown>(options?: {
|
|
201
201
|
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof listRoles>>, TError, TData>>;
|
|
@@ -228,7 +228,7 @@ declare const getCreateRoleUrl: () => string;
|
|
|
228
228
|
* Creates a new role.
|
|
229
229
|
* @summary Create role
|
|
230
230
|
*/
|
|
231
|
-
declare const createRole: (createRoleRequest?: CreateRoleRequest, options?:
|
|
231
|
+
declare const createRole: (createRoleRequest?: CreateRoleRequest, options?: Parameters<typeof customFetch>[1]) => Promise<CreateRoleResponse>;
|
|
232
232
|
declare const getCreateRoleMutationOptions: <TError = unknown, TContext = unknown>(options?: {
|
|
233
233
|
mutation?: UseMutationOptions<Awaited<ReturnType<typeof createRole>>, TError, {
|
|
234
234
|
data?: CreateRoleRequest;
|
|
@@ -256,7 +256,7 @@ declare const getGetRoleByNameUrl: (roleName: string) => string;
|
|
|
256
256
|
* Retrieves a role by its name.
|
|
257
257
|
* @summary Get role by name
|
|
258
258
|
*/
|
|
259
|
-
declare const getRoleByName: (roleName: string, options?:
|
|
259
|
+
declare const getRoleByName: (roleName: string, options?: Parameters<typeof customFetch>[1]) => Promise<Role>;
|
|
260
260
|
declare const getGetRoleByNameQueryKey: (roleName: string) => readonly [`/access-control/roles/by-name/${string}`];
|
|
261
261
|
declare const getGetRoleByNameQueryOptions: <TData = Awaited<ReturnType<typeof getRoleByName>>, TError = unknown>(roleName: string, options?: {
|
|
262
262
|
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getRoleByName>>, TError, TData>>;
|
|
@@ -289,7 +289,7 @@ declare const getGetRoleUrl: (roleId: string) => string;
|
|
|
289
289
|
* Retrieves a role by its ID, including its permissions.
|
|
290
290
|
* @summary Get role by ID
|
|
291
291
|
*/
|
|
292
|
-
declare const getRole: (roleId: string, options?:
|
|
292
|
+
declare const getRole: (roleId: string, options?: Parameters<typeof customFetch>[1]) => Promise<RoleDetails>;
|
|
293
293
|
declare const getGetRoleQueryKey: (roleId: string) => readonly [`/access-control/roles/${string}`];
|
|
294
294
|
declare const getGetRoleQueryOptions: <TData = Awaited<ReturnType<typeof getRole>>, TError = unknown>(roleId: string, options?: {
|
|
295
295
|
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getRole>>, TError, TData>>;
|
|
@@ -322,7 +322,7 @@ declare const getDeleteRoleUrl: (roleId: string) => string;
|
|
|
322
322
|
* Deletes a role.
|
|
323
323
|
* @summary Delete role
|
|
324
324
|
*/
|
|
325
|
-
declare const deleteRole: (roleId: string, options?:
|
|
325
|
+
declare const deleteRole: (roleId: string, options?: Parameters<typeof customFetch>[1]) => Promise<DeleteRoleResponse>;
|
|
326
326
|
declare const getDeleteRoleMutationOptions: <TError = unknown, TContext = unknown>(options?: {
|
|
327
327
|
mutation?: UseMutationOptions<Awaited<ReturnType<typeof deleteRole>>, TError, {
|
|
328
328
|
roleId: string;
|
|
@@ -349,7 +349,7 @@ declare const getUpdateRoleUrl: (roleId: string) => string;
|
|
|
349
349
|
* Updates a role's attributes.
|
|
350
350
|
* @summary Update role
|
|
351
351
|
*/
|
|
352
|
-
declare const updateRole: (roleId: string, updateRoleRequest?: UpdateRoleRequest, options?:
|
|
352
|
+
declare const updateRole: (roleId: string, updateRoleRequest?: UpdateRoleRequest, options?: Parameters<typeof customFetch>[1]) => Promise<UpdateRoleResponse>;
|
|
353
353
|
declare const getUpdateRoleMutationOptions: <TError = unknown, TContext = unknown>(options?: {
|
|
354
354
|
mutation?: UseMutationOptions<Awaited<ReturnType<typeof updateRole>>, TError, {
|
|
355
355
|
roleId: string;
|
|
@@ -381,7 +381,7 @@ declare const getListRolePermissionsUrl: (roleId: string) => string;
|
|
|
381
381
|
* Lists all permissions assigned to a role.
|
|
382
382
|
* @summary List role permissions
|
|
383
383
|
*/
|
|
384
|
-
declare const listRolePermissions: (roleId: string, options?:
|
|
384
|
+
declare const listRolePermissions: (roleId: string, options?: Parameters<typeof customFetch>[1]) => Promise<UserPermissionInfo[] | null>;
|
|
385
385
|
declare const getListRolePermissionsQueryKey: (roleId: string) => readonly [`/access-control/roles/${string}/permissions`];
|
|
386
386
|
declare const getListRolePermissionsQueryOptions: <TData = Awaited<ReturnType<typeof listRolePermissions>>, TError = unknown>(roleId: string, options?: {
|
|
387
387
|
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof listRolePermissions>>, TError, TData>>;
|
|
@@ -414,7 +414,7 @@ declare const getReplaceRolePermissionsUrl: (roleId: string) => string;
|
|
|
414
414
|
* Replaces all permissions assigned to a role with a new set.
|
|
415
415
|
* @summary Replace role permissions
|
|
416
416
|
*/
|
|
417
|
-
declare const replaceRolePermissions: (roleId: string, replaceRolePermissionsRequest?: ReplaceRolePermissionsRequest, options?:
|
|
417
|
+
declare const replaceRolePermissions: (roleId: string, replaceRolePermissionsRequest?: ReplaceRolePermissionsRequest, options?: Parameters<typeof customFetch>[1]) => Promise<ReplaceRolePermissionResponse>;
|
|
418
418
|
declare const getReplaceRolePermissionsMutationOptions: <TError = unknown, TContext = unknown>(options?: {
|
|
419
419
|
mutation?: UseMutationOptions<Awaited<ReturnType<typeof replaceRolePermissions>>, TError, {
|
|
420
420
|
roleId: string;
|
|
@@ -446,7 +446,7 @@ declare const getAddRolePermissionUrl: (roleId: string) => string;
|
|
|
446
446
|
* Assigns a permission to a role.
|
|
447
447
|
* @summary Assign permission to role
|
|
448
448
|
*/
|
|
449
|
-
declare const addRolePermission: (roleId: string, addRolePermissionRequest?: AddRolePermissionRequest, options?:
|
|
449
|
+
declare const addRolePermission: (roleId: string, addRolePermissionRequest?: AddRolePermissionRequest, options?: Parameters<typeof customFetch>[1]) => Promise<AddRolePermissionResponse>;
|
|
450
450
|
declare const getAddRolePermissionMutationOptions: <TError = unknown, TContext = unknown>(options?: {
|
|
451
451
|
mutation?: UseMutationOptions<Awaited<ReturnType<typeof addRolePermission>>, TError, {
|
|
452
452
|
roleId: string;
|
|
@@ -478,7 +478,7 @@ declare const getRemoveRolePermissionUrl: (roleId: string, permissionId: string)
|
|
|
478
478
|
* Removes a permission from a role.
|
|
479
479
|
* @summary Remove role permission
|
|
480
480
|
*/
|
|
481
|
-
declare const removeRolePermission: (roleId: string, permissionId: string, options?:
|
|
481
|
+
declare const removeRolePermission: (roleId: string, permissionId: string, options?: Parameters<typeof customFetch>[1]) => Promise<RemoveRolePermissionResponse>;
|
|
482
482
|
declare const getRemoveRolePermissionMutationOptions: <TError = unknown, TContext = unknown>(options?: {
|
|
483
483
|
mutation?: UseMutationOptions<Awaited<ReturnType<typeof removeRolePermission>>, TError, {
|
|
484
484
|
roleId: string;
|
|
@@ -509,7 +509,7 @@ declare const getGetUserPermissionsUrl: (userId: string) => string;
|
|
|
509
509
|
* Retrieves all permissions granted to a user through their roles.
|
|
510
510
|
* @summary Get user permissions
|
|
511
511
|
*/
|
|
512
|
-
declare const getUserPermissions: (userId: string, options?:
|
|
512
|
+
declare const getUserPermissions: (userId: string, options?: Parameters<typeof customFetch>[1]) => Promise<GetUserPermissionsResponse>;
|
|
513
513
|
declare const getGetUserPermissionsQueryKey: (userId: string) => readonly [`/access-control/users/${string}/permissions`];
|
|
514
514
|
declare const getGetUserPermissionsQueryOptions: <TData = Awaited<ReturnType<typeof getUserPermissions>>, TError = unknown>(userId: string, options?: {
|
|
515
515
|
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getUserPermissions>>, TError, TData>>;
|
|
@@ -542,7 +542,7 @@ declare const getCheckUserPermissionsUrl: (userId: string) => string;
|
|
|
542
542
|
* Checks whether a user has all the specified permissions.
|
|
543
543
|
* @summary Check user permissions
|
|
544
544
|
*/
|
|
545
|
-
declare const checkUserPermissions: (userId: string, checkUserPermissionsRequest?: CheckUserPermissionsRequest, options?:
|
|
545
|
+
declare const checkUserPermissions: (userId: string, checkUserPermissionsRequest?: CheckUserPermissionsRequest, options?: Parameters<typeof customFetch>[1]) => Promise<CheckUserPermissionsResponse>;
|
|
546
546
|
declare const getCheckUserPermissionsMutationOptions: <TError = unknown, TContext = unknown>(options?: {
|
|
547
547
|
mutation?: UseMutationOptions<Awaited<ReturnType<typeof checkUserPermissions>>, TError, {
|
|
548
548
|
userId: string;
|
|
@@ -574,7 +574,7 @@ declare const getListUserRolesUrl: (userId: string) => string;
|
|
|
574
574
|
* Lists all roles assigned to a user.
|
|
575
575
|
* @summary List user roles
|
|
576
576
|
*/
|
|
577
|
-
declare const listUserRoles: (userId: string, options?:
|
|
577
|
+
declare const listUserRoles: (userId: string, options?: Parameters<typeof customFetch>[1]) => Promise<UserRoleInfo[] | null>;
|
|
578
578
|
declare const getListUserRolesQueryKey: (userId: string) => readonly [`/access-control/users/${string}/roles`];
|
|
579
579
|
declare const getListUserRolesQueryOptions: <TData = Awaited<ReturnType<typeof listUserRoles>>, TError = unknown>(userId: string, options?: {
|
|
580
580
|
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof listUserRoles>>, TError, TData>>;
|
|
@@ -607,7 +607,7 @@ declare const getReplaceUserRolesUrl: (userId: string) => string;
|
|
|
607
607
|
* Replaces all roles assigned to a user with a new set.
|
|
608
608
|
* @summary Replace user roles
|
|
609
609
|
*/
|
|
610
|
-
declare const replaceUserRoles: (userId: string, replaceUserRolesRequest?: ReplaceUserRolesRequest, options?:
|
|
610
|
+
declare const replaceUserRoles: (userId: string, replaceUserRolesRequest?: ReplaceUserRolesRequest, options?: Parameters<typeof customFetch>[1]) => Promise<ReplaceUserRolesResponse>;
|
|
611
611
|
declare const getReplaceUserRolesMutationOptions: <TError = unknown, TContext = unknown>(options?: {
|
|
612
612
|
mutation?: UseMutationOptions<Awaited<ReturnType<typeof replaceUserRoles>>, TError, {
|
|
613
613
|
userId: string;
|
|
@@ -639,7 +639,7 @@ declare const getAssignUserRoleUrl: (userId: string) => string;
|
|
|
639
639
|
* Assigns a role to a user.
|
|
640
640
|
* @summary Assign role to user
|
|
641
641
|
*/
|
|
642
|
-
declare const assignUserRole: (userId: string, assignUserRoleRequest?: AssignUserRoleRequest, options?:
|
|
642
|
+
declare const assignUserRole: (userId: string, assignUserRoleRequest?: AssignUserRoleRequest, options?: Parameters<typeof customFetch>[1]) => Promise<AssignUserRoleResponse>;
|
|
643
643
|
declare const getAssignUserRoleMutationOptions: <TError = unknown, TContext = unknown>(options?: {
|
|
644
644
|
mutation?: UseMutationOptions<Awaited<ReturnType<typeof assignUserRole>>, TError, {
|
|
645
645
|
userId: string;
|
|
@@ -671,7 +671,7 @@ declare const getRemoveUserRoleUrl: (userId: string, roleId: string) => string;
|
|
|
671
671
|
* Removes a role from a user.
|
|
672
672
|
* @summary Remove user role
|
|
673
673
|
*/
|
|
674
|
-
declare const removeUserRole: (userId: string, roleId: string, options?:
|
|
674
|
+
declare const removeUserRole: (userId: string, roleId: string, options?: Parameters<typeof customFetch>[1]) => Promise<RemoveUserRoleResponse>;
|
|
675
675
|
declare const getRemoveUserRoleMutationOptions: <TError = unknown, TContext = unknown>(options?: {
|
|
676
676
|
mutation?: UseMutationOptions<Awaited<ReturnType<typeof removeUserRole>>, TError, {
|
|
677
677
|
userId: string;
|
|
@@ -710,150 +710,150 @@ declare class AccessControlPlugin implements Plugin {
|
|
|
710
710
|
* Retrieves an account by its ID.
|
|
711
711
|
* @summary Get account by ID
|
|
712
712
|
*/
|
|
713
|
-
declare const getAccount: (id: string, options?:
|
|
713
|
+
declare const getAccount: (id: string, options?: Parameters<typeof customFetch>[1]) => Promise<GetAccountByIDResponse>;
|
|
714
714
|
/**
|
|
715
715
|
* Deletes an account.
|
|
716
716
|
* @summary Delete account
|
|
717
717
|
*/
|
|
718
|
-
declare const deleteAccount: (id: string, options?:
|
|
718
|
+
declare const deleteAccount: (id: string, options?: Parameters<typeof customFetch>[1]) => Promise<DeleteAccountResponse>;
|
|
719
719
|
/**
|
|
720
720
|
* Updates an account's attributes.
|
|
721
721
|
* @summary Update account
|
|
722
722
|
*/
|
|
723
|
-
declare const updateAccount: (id: string, updateAccountRequest?: UpdateAccountRequest, options?:
|
|
723
|
+
declare const updateAccount: (id: string, updateAccountRequest?: UpdateAccountRequest, options?: Parameters<typeof customFetch>[1]) => Promise<UpdateAccountResponse>;
|
|
724
724
|
/**
|
|
725
725
|
* Lists all accounts for a user.
|
|
726
726
|
* @summary List user accounts
|
|
727
727
|
*/
|
|
728
|
-
declare const listUserAccounts: (userId: string, options?:
|
|
728
|
+
declare const listUserAccounts: (userId: string, options?: Parameters<typeof customFetch>[1]) => Promise<UserAccountsResponse>;
|
|
729
729
|
/**
|
|
730
730
|
* Creates a new account for a user.
|
|
731
731
|
* @summary Create account
|
|
732
732
|
*/
|
|
733
|
-
declare const createAccount: (userId: string, createAccountRequest?: CreateAccountRequest, options?:
|
|
733
|
+
declare const createAccount: (userId: string, createAccountRequest?: CreateAccountRequest, options?: Parameters<typeof customFetch>[1]) => Promise<CreateAccountResponse>;
|
|
734
734
|
//#endregion
|
|
735
735
|
//#region src/gen/endpoints/admin-impersonation/admin-impersonation.d.ts
|
|
736
736
|
/**
|
|
737
737
|
* Lists all impersonations.
|
|
738
738
|
* @summary List impersonations
|
|
739
739
|
*/
|
|
740
|
-
declare const listImpersonations: (options?:
|
|
740
|
+
declare const listImpersonations: (options?: Parameters<typeof customFetch>[1]) => Promise<Impersonation[] | null>;
|
|
741
741
|
/**
|
|
742
742
|
* Starts an impersonation session as a target user.
|
|
743
743
|
* @summary Start impersonation
|
|
744
744
|
*/
|
|
745
|
-
declare const startImpersonation: (startImpersonationRequest?: StartImpersonationRequest, options?:
|
|
745
|
+
declare const startImpersonation: (startImpersonationRequest?: StartImpersonationRequest, options?: Parameters<typeof customFetch>[1]) => Promise<StartImpersonationResponse>;
|
|
746
746
|
/**
|
|
747
747
|
* Retrieves an impersonation by its ID.
|
|
748
748
|
* @summary Get impersonation by ID
|
|
749
749
|
*/
|
|
750
|
-
declare const getImpersonation: (impersonationId: string, options?:
|
|
750
|
+
declare const getImpersonation: (impersonationId: string, options?: Parameters<typeof customFetch>[1]) => Promise<GetImpersonationByIDResponse>;
|
|
751
751
|
/**
|
|
752
752
|
* Stops an impersonation session and restores the original session.
|
|
753
753
|
* @summary Stop impersonation
|
|
754
754
|
*/
|
|
755
|
-
declare const stopImpersonation: (impersonationId: string, options?:
|
|
755
|
+
declare const stopImpersonation: (impersonationId: string, options?: Parameters<typeof customFetch>[1]) => Promise<StopImpersonationResponse>;
|
|
756
756
|
//#endregion
|
|
757
757
|
//#region src/gen/endpoints/admin-session-state/admin-session-state.d.ts
|
|
758
758
|
/**
|
|
759
759
|
* Lists all revoked session states.
|
|
760
760
|
* @summary List revoked session states
|
|
761
761
|
*/
|
|
762
|
-
declare const listRevokedSessionStates: (options?:
|
|
762
|
+
declare const listRevokedSessionStates: (options?: Parameters<typeof customFetch>[1]) => Promise<AdminSessionState[] | null>;
|
|
763
763
|
/**
|
|
764
764
|
* Revokes a session.
|
|
765
765
|
* @summary Revoke session
|
|
766
766
|
*/
|
|
767
|
-
declare const revokeSession: (sessionId: string, revokeSessionRequest?: RevokeSessionRequest, options?:
|
|
767
|
+
declare const revokeSession: (sessionId: string, revokeSessionRequest?: RevokeSessionRequest, options?: Parameters<typeof customFetch>[1]) => Promise<RevokeSessionResponse>;
|
|
768
768
|
/**
|
|
769
769
|
* Retrieves the state of a session.
|
|
770
770
|
* @summary Get session state
|
|
771
771
|
*/
|
|
772
|
-
declare const getSessionState: (sessionId: string, options?:
|
|
772
|
+
declare const getSessionState: (sessionId: string, options?: Parameters<typeof customFetch>[1]) => Promise<GetSessionStateResponse>;
|
|
773
773
|
/**
|
|
774
774
|
* Creates the state for a session.
|
|
775
775
|
* @summary Create session state
|
|
776
776
|
*/
|
|
777
|
-
declare const createSessionState: (sessionId: string, createSessionStateRequest?: CreateSessionStateRequest, options?:
|
|
777
|
+
declare const createSessionState: (sessionId: string, createSessionStateRequest?: CreateSessionStateRequest, options?: Parameters<typeof customFetch>[1]) => Promise<UpsertSessionStateResponse>;
|
|
778
778
|
/**
|
|
779
779
|
* Deletes the state of a session.
|
|
780
780
|
* @summary Delete session state
|
|
781
781
|
*/
|
|
782
|
-
declare const deleteSessionState: (sessionId: string, options?:
|
|
782
|
+
declare const deleteSessionState: (sessionId: string, options?: Parameters<typeof customFetch>[1]) => Promise<DeleteSessionStateResponse>;
|
|
783
783
|
/**
|
|
784
784
|
* Updates the state of a session.
|
|
785
785
|
* @summary Update session state
|
|
786
786
|
*/
|
|
787
|
-
declare const updateSessionState: (sessionId: string, upsertSessionStateRequest?: UpsertSessionStateRequest, options?:
|
|
787
|
+
declare const updateSessionState: (sessionId: string, upsertSessionStateRequest?: UpsertSessionStateRequest, options?: Parameters<typeof customFetch>[1]) => Promise<UpsertSessionStateResponse>;
|
|
788
788
|
//#endregion
|
|
789
789
|
//#region src/gen/endpoints/admin-user-state/admin-user-state.d.ts
|
|
790
790
|
/**
|
|
791
791
|
* Lists all banned user states.
|
|
792
792
|
* @summary List banned user states
|
|
793
793
|
*/
|
|
794
|
-
declare const listBannedUserStates: (options?:
|
|
794
|
+
declare const listBannedUserStates: (options?: Parameters<typeof customFetch>[1]) => Promise<AdminUserState[] | null>;
|
|
795
795
|
/**
|
|
796
796
|
* Bans a user.
|
|
797
797
|
* @summary Ban user
|
|
798
798
|
*/
|
|
799
|
-
declare const banUser: (userId: string, banUserRequest?: BanUserRequest, options?:
|
|
799
|
+
declare const banUser: (userId: string, banUserRequest?: BanUserRequest, options?: Parameters<typeof customFetch>[1]) => Promise<BanUserResponse>;
|
|
800
800
|
/**
|
|
801
801
|
* Lists all sessions for a user.
|
|
802
802
|
* @summary List user sessions
|
|
803
803
|
*/
|
|
804
|
-
declare const listUserSessions: (userId: string, options?:
|
|
804
|
+
declare const listUserSessions: (userId: string, options?: Parameters<typeof customFetch>[1]) => Promise<AdminUserSession[] | null>;
|
|
805
805
|
/**
|
|
806
806
|
* Retrieves the state of a user.
|
|
807
807
|
* @summary Get user state
|
|
808
808
|
*/
|
|
809
|
-
declare const getUserState: (userId: string, options?:
|
|
809
|
+
declare const getUserState: (userId: string, options?: Parameters<typeof customFetch>[1]) => Promise<GetUserStateResponse>;
|
|
810
810
|
/**
|
|
811
811
|
* Creates the state for a user.
|
|
812
812
|
* @summary Create user state
|
|
813
813
|
*/
|
|
814
|
-
declare const createUserState: (userId: string, createUserStateRequest?: CreateUserStateRequest, options?:
|
|
814
|
+
declare const createUserState: (userId: string, createUserStateRequest?: CreateUserStateRequest, options?: Parameters<typeof customFetch>[1]) => Promise<UpsertUserStateResponse>;
|
|
815
815
|
/**
|
|
816
816
|
* Deletes the state of a user.
|
|
817
817
|
* @summary Delete user state
|
|
818
818
|
*/
|
|
819
|
-
declare const deleteUserState: (userId: string, options?:
|
|
819
|
+
declare const deleteUserState: (userId: string, options?: Parameters<typeof customFetch>[1]) => Promise<DeleteUserStateResponse>;
|
|
820
820
|
/**
|
|
821
821
|
* Updates the state of a user.
|
|
822
822
|
* @summary Update user state
|
|
823
823
|
*/
|
|
824
|
-
declare const updateUserState: (userId: string, upsertUserStateRequest?: UpsertUserStateRequest, options?:
|
|
824
|
+
declare const updateUserState: (userId: string, upsertUserStateRequest?: UpsertUserStateRequest, options?: Parameters<typeof customFetch>[1]) => Promise<UpsertUserStateResponse>;
|
|
825
825
|
/**
|
|
826
826
|
* Unbans a user.
|
|
827
827
|
* @summary Unban user
|
|
828
828
|
*/
|
|
829
|
-
declare const unbanUser: (userId: string, options?:
|
|
829
|
+
declare const unbanUser: (userId: string, options?: Parameters<typeof customFetch>[1]) => Promise<UnbanUserResponse>;
|
|
830
830
|
//#endregion
|
|
831
831
|
//#region src/gen/endpoints/admin-users/admin-users.d.ts
|
|
832
832
|
/**
|
|
833
833
|
* Lists users with cursor-based pagination.
|
|
834
834
|
* @summary List users
|
|
835
835
|
*/
|
|
836
|
-
declare const listUsers: (params?: ListUsersParams, options?:
|
|
836
|
+
declare const listUsers: (params?: ListUsersParams, options?: Parameters<typeof customFetch>[1]) => Promise<UsersPage>;
|
|
837
837
|
/**
|
|
838
838
|
* Creates a new user with the specified attributes.
|
|
839
839
|
* @summary Create user
|
|
840
840
|
*/
|
|
841
|
-
declare const createUser: (createUserRequest?: CreateUserRequest, options?:
|
|
841
|
+
declare const createUser: (createUserRequest?: CreateUserRequest, options?: Parameters<typeof customFetch>[1]) => Promise<CreateUserResponse>;
|
|
842
842
|
/**
|
|
843
843
|
* Retrieves a user by their ID.
|
|
844
844
|
* @summary Get user by ID
|
|
845
845
|
*/
|
|
846
|
-
declare const getUser: (userId: string, options?:
|
|
846
|
+
declare const getUser: (userId: string, options?: Parameters<typeof customFetch>[1]) => Promise<GetUserByIDResponse>;
|
|
847
847
|
/**
|
|
848
848
|
* Deletes a user.
|
|
849
849
|
* @summary Delete user
|
|
850
850
|
*/
|
|
851
|
-
declare const deleteUser: (userId: string, options?:
|
|
851
|
+
declare const deleteUser: (userId: string, options?: Parameters<typeof customFetch>[1]) => Promise<DeleteUserResponse>;
|
|
852
852
|
/**
|
|
853
853
|
* Updates a user's attributes.
|
|
854
854
|
* @summary Update user
|
|
855
855
|
*/
|
|
856
|
-
declare const updateUser: (userId: string, updateUserRequest?: UpdateUserRequest, options?:
|
|
856
|
+
declare const updateUser: (userId: string, updateUserRequest?: UpdateUserRequest, options?: Parameters<typeof customFetch>[1]) => Promise<UpdateUserResponse>;
|
|
857
857
|
//#endregion
|
|
858
858
|
//#region src/plugins/admin/plugin.d.ts
|
|
859
859
|
declare class AdminPlugin implements Plugin {
|
|
@@ -933,7 +933,7 @@ declare class AdminPlugin implements Plugin {
|
|
|
933
933
|
queryKey: import("@tanstack/react-query").DataTag<import("@tanstack/react-query").QueryKey, TData, TError>;
|
|
934
934
|
};
|
|
935
935
|
getListImpersonationsUrl: () => string;
|
|
936
|
-
listImpersonations: (options?:
|
|
936
|
+
listImpersonations: (options?: Parameters<typeof customFetch>[1]) => Promise<Impersonation[] | null>;
|
|
937
937
|
getListImpersonationsQueryKey: () => readonly ["/admin/impersonations"];
|
|
938
938
|
getListImpersonationsQueryOptions: <TData = Awaited<ReturnType<typeof listImpersonations>>, TError = unknown>(options?: {
|
|
939
939
|
query?: Partial<import("@tanstack/react-query").UseQueryOptions<Awaited<ReturnType<typeof listImpersonations>>, TError, TData>>;
|
|
@@ -948,7 +948,7 @@ declare class AdminPlugin implements Plugin {
|
|
|
948
948
|
queryKey: import("@tanstack/react-query").DataTag<import("@tanstack/react-query").QueryKey, TData, TError>;
|
|
949
949
|
};
|
|
950
950
|
getStartImpersonationUrl: () => string;
|
|
951
|
-
startImpersonation: (startImpersonationRequest?: StartImpersonationRequest, options?:
|
|
951
|
+
startImpersonation: (startImpersonationRequest?: StartImpersonationRequest, options?: Parameters<typeof customFetch>[1]) => Promise<StartImpersonationResponse>;
|
|
952
952
|
getStartImpersonationMutationOptions: <TError = unknown, TContext = unknown>(options?: {
|
|
953
953
|
mutation?: import("@tanstack/react-query").UseMutationOptions<Awaited<ReturnType<typeof startImpersonation>>, TError, {
|
|
954
954
|
data?: StartImpersonationRequest;
|
|
@@ -978,7 +978,7 @@ declare class AdminPlugin implements Plugin {
|
|
|
978
978
|
data?: StartImpersonationRequest;
|
|
979
979
|
}, TContext>;
|
|
980
980
|
getGetImpersonationUrl: (impersonationId: string) => string;
|
|
981
|
-
getImpersonation: (impersonationId: string, options?:
|
|
981
|
+
getImpersonation: (impersonationId: string, options?: Parameters<typeof customFetch>[1]) => Promise<GetImpersonationByIDResponse>;
|
|
982
982
|
getGetImpersonationQueryKey: (impersonationId: string) => readonly [`/admin/impersonations/${string}`];
|
|
983
983
|
getGetImpersonationQueryOptions: <TData = Awaited<ReturnType<typeof getImpersonation>>, TError = unknown>(impersonationId: string, options?: {
|
|
984
984
|
query?: Partial<import("@tanstack/react-query").UseQueryOptions<Awaited<ReturnType<typeof getImpersonation>>, TError, TData>>;
|
|
@@ -993,7 +993,7 @@ declare class AdminPlugin implements Plugin {
|
|
|
993
993
|
queryKey: import("@tanstack/react-query").DataTag<import("@tanstack/react-query").QueryKey, TData, TError>;
|
|
994
994
|
};
|
|
995
995
|
getStopImpersonationUrl: (impersonationId: string) => string;
|
|
996
|
-
stopImpersonation: (impersonationId: string, options?:
|
|
996
|
+
stopImpersonation: (impersonationId: string, options?: Parameters<typeof customFetch>[1]) => Promise<StopImpersonationResponse>;
|
|
997
997
|
getStopImpersonationMutationOptions: <TError = unknown, TContext = unknown>(options?: {
|
|
998
998
|
mutation?: import("@tanstack/react-query").UseMutationOptions<Awaited<ReturnType<typeof stopImpersonation>>, TError, {
|
|
999
999
|
impersonationId: string;
|
|
@@ -1095,7 +1095,7 @@ declare class AdminPlugin implements Plugin {
|
|
|
1095
1095
|
queryKey: import("@tanstack/react-query").DataTag<import("@tanstack/react-query").QueryKey, TData, TError>;
|
|
1096
1096
|
};
|
|
1097
1097
|
getListRevokedSessionStatesUrl: () => string;
|
|
1098
|
-
listRevokedSessionStates: (options?:
|
|
1098
|
+
listRevokedSessionStates: (options?: Parameters<typeof customFetch>[1]) => Promise<AdminSessionState[] | null>;
|
|
1099
1099
|
getListRevokedSessionStatesQueryKey: () => readonly ["/admin/sessions/states/revoked"];
|
|
1100
1100
|
getListRevokedSessionStatesQueryOptions: <TData = Awaited<ReturnType<typeof listRevokedSessionStates>>, TError = unknown>(options?: {
|
|
1101
1101
|
query?: Partial<import("@tanstack/react-query").UseQueryOptions<Awaited<ReturnType<typeof listRevokedSessionStates>>, TError, TData>>;
|
|
@@ -1110,7 +1110,7 @@ declare class AdminPlugin implements Plugin {
|
|
|
1110
1110
|
queryKey: import("@tanstack/react-query").DataTag<import("@tanstack/react-query").QueryKey, TData, TError>;
|
|
1111
1111
|
};
|
|
1112
1112
|
getRevokeSessionUrl: (sessionId: string) => string;
|
|
1113
|
-
revokeSession: (sessionId: string, revokeSessionRequest?: RevokeSessionRequest, options?:
|
|
1113
|
+
revokeSession: (sessionId: string, revokeSessionRequest?: RevokeSessionRequest, options?: Parameters<typeof customFetch>[1]) => Promise<RevokeSessionResponse>;
|
|
1114
1114
|
getRevokeSessionMutationOptions: <TError = unknown, TContext = unknown>(options?: {
|
|
1115
1115
|
mutation?: import("@tanstack/react-query").UseMutationOptions<Awaited<ReturnType<typeof revokeSession>>, TError, {
|
|
1116
1116
|
sessionId: string;
|
|
@@ -1144,7 +1144,7 @@ declare class AdminPlugin implements Plugin {
|
|
|
1144
1144
|
data?: RevokeSessionRequest;
|
|
1145
1145
|
}, TContext>;
|
|
1146
1146
|
getGetSessionStateUrl: (sessionId: string) => string;
|
|
1147
|
-
getSessionState: (sessionId: string, options?:
|
|
1147
|
+
getSessionState: (sessionId: string, options?: Parameters<typeof customFetch>[1]) => Promise<GetSessionStateResponse>;
|
|
1148
1148
|
getGetSessionStateQueryKey: (sessionId: string) => readonly [`/admin/sessions/${string}/state`];
|
|
1149
1149
|
getGetSessionStateQueryOptions: <TData = Awaited<ReturnType<typeof getSessionState>>, TError = unknown>(sessionId: string, options?: {
|
|
1150
1150
|
query?: Partial<import("@tanstack/react-query").UseQueryOptions<Awaited<ReturnType<typeof getSessionState>>, TError, TData>>;
|
|
@@ -1159,7 +1159,7 @@ declare class AdminPlugin implements Plugin {
|
|
|
1159
1159
|
queryKey: import("@tanstack/react-query").DataTag<import("@tanstack/react-query").QueryKey, TData, TError>;
|
|
1160
1160
|
};
|
|
1161
1161
|
getCreateSessionStateUrl: (sessionId: string) => string;
|
|
1162
|
-
createSessionState: (sessionId: string, createSessionStateRequest?: CreateSessionStateRequest, options?:
|
|
1162
|
+
createSessionState: (sessionId: string, createSessionStateRequest?: CreateSessionStateRequest, options?: Parameters<typeof customFetch>[1]) => Promise<UpsertSessionStateResponse>;
|
|
1163
1163
|
getCreateSessionStateMutationOptions: <TError = unknown, TContext = unknown>(options?: {
|
|
1164
1164
|
mutation?: import("@tanstack/react-query").UseMutationOptions<Awaited<ReturnType<typeof createSessionState>>, TError, {
|
|
1165
1165
|
sessionId: string;
|
|
@@ -1193,7 +1193,7 @@ declare class AdminPlugin implements Plugin {
|
|
|
1193
1193
|
data?: CreateSessionStateRequest;
|
|
1194
1194
|
}, TContext>;
|
|
1195
1195
|
getDeleteSessionStateUrl: (sessionId: string) => string;
|
|
1196
|
-
deleteSessionState: (sessionId: string, options?:
|
|
1196
|
+
deleteSessionState: (sessionId: string, options?: Parameters<typeof customFetch>[1]) => Promise<DeleteSessionStateResponse>;
|
|
1197
1197
|
getDeleteSessionStateMutationOptions: <TError = unknown, TContext = unknown>(options?: {
|
|
1198
1198
|
mutation?: import("@tanstack/react-query").UseMutationOptions<Awaited<ReturnType<typeof deleteSessionState>>, TError, {
|
|
1199
1199
|
sessionId: string;
|
|
@@ -1223,7 +1223,7 @@ declare class AdminPlugin implements Plugin {
|
|
|
1223
1223
|
sessionId: string;
|
|
1224
1224
|
}, TContext>;
|
|
1225
1225
|
getUpdateSessionStateUrl: (sessionId: string) => string;
|
|
1226
|
-
updateSessionState: (sessionId: string, upsertSessionStateRequest?: UpsertSessionStateRequest, options?:
|
|
1226
|
+
updateSessionState: (sessionId: string, upsertSessionStateRequest?: UpsertSessionStateRequest, options?: Parameters<typeof customFetch>[1]) => Promise<UpsertSessionStateResponse>;
|
|
1227
1227
|
getUpdateSessionStateMutationOptions: <TError = unknown, TContext = unknown>(options?: {
|
|
1228
1228
|
mutation?: import("@tanstack/react-query").UseMutationOptions<Awaited<ReturnType<typeof updateSessionState>>, TError, {
|
|
1229
1229
|
sessionId: string;
|
|
@@ -1365,7 +1365,7 @@ declare class AdminPlugin implements Plugin {
|
|
|
1365
1365
|
queryKey: import("@tanstack/react-query").DataTag<import("@tanstack/react-query").QueryKey, TData, TError>;
|
|
1366
1366
|
};
|
|
1367
1367
|
getListBannedUserStatesUrl: () => string;
|
|
1368
|
-
listBannedUserStates: (options?:
|
|
1368
|
+
listBannedUserStates: (options?: Parameters<typeof customFetch>[1]) => Promise<AdminUserState[] | null>;
|
|
1369
1369
|
getListBannedUserStatesQueryKey: () => readonly ["/admin/users/states/banned"];
|
|
1370
1370
|
getListBannedUserStatesQueryOptions: <TData = Awaited<ReturnType<typeof listBannedUserStates>>, TError = unknown>(options?: {
|
|
1371
1371
|
query?: Partial<import("@tanstack/react-query").UseQueryOptions<Awaited<ReturnType<typeof listBannedUserStates>>, TError, TData>>;
|
|
@@ -1380,7 +1380,7 @@ declare class AdminPlugin implements Plugin {
|
|
|
1380
1380
|
queryKey: import("@tanstack/react-query").DataTag<import("@tanstack/react-query").QueryKey, TData, TError>;
|
|
1381
1381
|
};
|
|
1382
1382
|
getBanUserUrl: (userId: string) => string;
|
|
1383
|
-
banUser: (userId: string, banUserRequest?: BanUserRequest, options?:
|
|
1383
|
+
banUser: (userId: string, banUserRequest?: BanUserRequest, options?: Parameters<typeof customFetch>[1]) => Promise<BanUserResponse>;
|
|
1384
1384
|
getBanUserMutationOptions: <TError = unknown, TContext = unknown>(options?: {
|
|
1385
1385
|
mutation?: import("@tanstack/react-query").UseMutationOptions<Awaited<ReturnType<typeof banUser>>, TError, {
|
|
1386
1386
|
userId: string;
|
|
@@ -1414,7 +1414,7 @@ declare class AdminPlugin implements Plugin {
|
|
|
1414
1414
|
data?: BanUserRequest;
|
|
1415
1415
|
}, TContext>;
|
|
1416
1416
|
getListUserSessionsUrl: (userId: string) => string;
|
|
1417
|
-
listUserSessions: (userId: string, options?:
|
|
1417
|
+
listUserSessions: (userId: string, options?: Parameters<typeof customFetch>[1]) => Promise<AdminUserSession[] | null>;
|
|
1418
1418
|
getListUserSessionsQueryKey: (userId: string) => readonly [`/admin/users/${string}/sessions`];
|
|
1419
1419
|
getListUserSessionsQueryOptions: <TData = Awaited<ReturnType<typeof listUserSessions>>, TError = unknown>(userId: string, options?: {
|
|
1420
1420
|
query?: Partial<import("@tanstack/react-query").UseQueryOptions<Awaited<ReturnType<typeof listUserSessions>>, TError, TData>>;
|
|
@@ -1429,7 +1429,7 @@ declare class AdminPlugin implements Plugin {
|
|
|
1429
1429
|
queryKey: import("@tanstack/react-query").DataTag<import("@tanstack/react-query").QueryKey, TData, TError>;
|
|
1430
1430
|
};
|
|
1431
1431
|
getGetUserStateUrl: (userId: string) => string;
|
|
1432
|
-
getUserState: (userId: string, options?:
|
|
1432
|
+
getUserState: (userId: string, options?: Parameters<typeof customFetch>[1]) => Promise<GetUserStateResponse>;
|
|
1433
1433
|
getGetUserStateQueryKey: (userId: string) => readonly [`/admin/users/${string}/state`];
|
|
1434
1434
|
getGetUserStateQueryOptions: <TData = Awaited<ReturnType<typeof getUserState>>, TError = unknown>(userId: string, options?: {
|
|
1435
1435
|
query?: Partial<import("@tanstack/react-query").UseQueryOptions<Awaited<ReturnType<typeof getUserState>>, TError, TData>>;
|
|
@@ -1444,7 +1444,7 @@ declare class AdminPlugin implements Plugin {
|
|
|
1444
1444
|
queryKey: import("@tanstack/react-query").DataTag<import("@tanstack/react-query").QueryKey, TData, TError>;
|
|
1445
1445
|
};
|
|
1446
1446
|
getCreateUserStateUrl: (userId: string) => string;
|
|
1447
|
-
createUserState: (userId: string, createUserStateRequest?: CreateUserStateRequest, options?:
|
|
1447
|
+
createUserState: (userId: string, createUserStateRequest?: CreateUserStateRequest, options?: Parameters<typeof customFetch>[1]) => Promise<UpsertUserStateResponse>;
|
|
1448
1448
|
getCreateUserStateMutationOptions: <TError = unknown, TContext = unknown>(options?: {
|
|
1449
1449
|
mutation?: import("@tanstack/react-query").UseMutationOptions<Awaited<ReturnType<typeof createUserState>>, TError, {
|
|
1450
1450
|
userId: string;
|
|
@@ -1478,7 +1478,7 @@ declare class AdminPlugin implements Plugin {
|
|
|
1478
1478
|
data?: CreateUserStateRequest;
|
|
1479
1479
|
}, TContext>;
|
|
1480
1480
|
getDeleteUserStateUrl: (userId: string) => string;
|
|
1481
|
-
deleteUserState: (userId: string, options?:
|
|
1481
|
+
deleteUserState: (userId: string, options?: Parameters<typeof customFetch>[1]) => Promise<DeleteUserStateResponse>;
|
|
1482
1482
|
getDeleteUserStateMutationOptions: <TError = unknown, TContext = unknown>(options?: {
|
|
1483
1483
|
mutation?: import("@tanstack/react-query").UseMutationOptions<Awaited<ReturnType<typeof deleteUserState>>, TError, {
|
|
1484
1484
|
userId: string;
|
|
@@ -1508,7 +1508,7 @@ declare class AdminPlugin implements Plugin {
|
|
|
1508
1508
|
userId: string;
|
|
1509
1509
|
}, TContext>;
|
|
1510
1510
|
getUpdateUserStateUrl: (userId: string) => string;
|
|
1511
|
-
updateUserState: (userId: string, upsertUserStateRequest?: UpsertUserStateRequest, options?:
|
|
1511
|
+
updateUserState: (userId: string, upsertUserStateRequest?: UpsertUserStateRequest, options?: Parameters<typeof customFetch>[1]) => Promise<UpsertUserStateResponse>;
|
|
1512
1512
|
getUpdateUserStateMutationOptions: <TError = unknown, TContext = unknown>(options?: {
|
|
1513
1513
|
mutation?: import("@tanstack/react-query").UseMutationOptions<Awaited<ReturnType<typeof updateUserState>>, TError, {
|
|
1514
1514
|
userId: string;
|
|
@@ -1542,7 +1542,7 @@ declare class AdminPlugin implements Plugin {
|
|
|
1542
1542
|
data?: UpsertUserStateRequest;
|
|
1543
1543
|
}, TContext>;
|
|
1544
1544
|
getUnbanUserUrl: (userId: string) => string;
|
|
1545
|
-
unbanUser: (userId: string, options?:
|
|
1545
|
+
unbanUser: (userId: string, options?: Parameters<typeof customFetch>[1]) => Promise<UnbanUserResponse>;
|
|
1546
1546
|
getUnbanUserMutationOptions: <TError = unknown, TContext = unknown>(options?: {
|
|
1547
1547
|
mutation?: import("@tanstack/react-query").UseMutationOptions<Awaited<ReturnType<typeof unbanUser>>, TError, {
|
|
1548
1548
|
userId: string;
|
|
@@ -1644,7 +1644,7 @@ declare class AdminPlugin implements Plugin {
|
|
|
1644
1644
|
queryKey: import("@tanstack/react-query").DataTag<import("@tanstack/react-query").QueryKey, TData, TError>;
|
|
1645
1645
|
};
|
|
1646
1646
|
getGetAccountUrl: (id: string) => string;
|
|
1647
|
-
getAccount: (id: string, options?:
|
|
1647
|
+
getAccount: (id: string, options?: Parameters<typeof customFetch>[1]) => Promise<GetAccountByIDResponse>;
|
|
1648
1648
|
getGetAccountQueryKey: (id: string) => readonly [`/admin/accounts/${string}`];
|
|
1649
1649
|
getGetAccountQueryOptions: <TData = Awaited<ReturnType<typeof getAccount>>, TError = unknown>(id: string, options?: {
|
|
1650
1650
|
query?: Partial<import("@tanstack/react-query").UseQueryOptions<Awaited<ReturnType<typeof getAccount>>, TError, TData>>;
|
|
@@ -1659,7 +1659,7 @@ declare class AdminPlugin implements Plugin {
|
|
|
1659
1659
|
queryKey: import("@tanstack/react-query").DataTag<import("@tanstack/react-query").QueryKey, TData, TError>;
|
|
1660
1660
|
};
|
|
1661
1661
|
getDeleteAccountUrl: (id: string) => string;
|
|
1662
|
-
deleteAccount: (id: string, options?:
|
|
1662
|
+
deleteAccount: (id: string, options?: Parameters<typeof customFetch>[1]) => Promise<DeleteAccountResponse>;
|
|
1663
1663
|
getDeleteAccountMutationOptions: <TError = unknown, TContext = unknown>(options?: {
|
|
1664
1664
|
mutation?: import("@tanstack/react-query").UseMutationOptions<Awaited<ReturnType<typeof deleteAccount>>, TError, {
|
|
1665
1665
|
id: string;
|
|
@@ -1689,7 +1689,7 @@ declare class AdminPlugin implements Plugin {
|
|
|
1689
1689
|
id: string;
|
|
1690
1690
|
}, TContext>;
|
|
1691
1691
|
getUpdateAccountUrl: (id: string) => string;
|
|
1692
|
-
updateAccount: (id: string, updateAccountRequest?: UpdateAccountRequest, options?:
|
|
1692
|
+
updateAccount: (id: string, updateAccountRequest?: UpdateAccountRequest, options?: Parameters<typeof customFetch>[1]) => Promise<UpdateAccountResponse>;
|
|
1693
1693
|
getUpdateAccountMutationOptions: <TError = unknown, TContext = unknown>(options?: {
|
|
1694
1694
|
mutation?: import("@tanstack/react-query").UseMutationOptions<Awaited<ReturnType<typeof updateAccount>>, TError, {
|
|
1695
1695
|
id: string;
|
|
@@ -1723,7 +1723,7 @@ declare class AdminPlugin implements Plugin {
|
|
|
1723
1723
|
data?: UpdateAccountRequest;
|
|
1724
1724
|
}, TContext>;
|
|
1725
1725
|
getListUserAccountsUrl: (userId: string) => string;
|
|
1726
|
-
listUserAccounts: (userId: string, options?:
|
|
1726
|
+
listUserAccounts: (userId: string, options?: Parameters<typeof customFetch>[1]) => Promise<UserAccountsResponse>;
|
|
1727
1727
|
getListUserAccountsQueryKey: (userId: string) => readonly [`/admin/users/${string}/accounts`];
|
|
1728
1728
|
getListUserAccountsQueryOptions: <TData = Awaited<ReturnType<typeof listUserAccounts>>, TError = unknown>(userId: string, options?: {
|
|
1729
1729
|
query?: Partial<import("@tanstack/react-query").UseQueryOptions<Awaited<ReturnType<typeof listUserAccounts>>, TError, TData>>;
|
|
@@ -1738,7 +1738,7 @@ declare class AdminPlugin implements Plugin {
|
|
|
1738
1738
|
queryKey: import("@tanstack/react-query").DataTag<import("@tanstack/react-query").QueryKey, TData, TError>;
|
|
1739
1739
|
};
|
|
1740
1740
|
getCreateAccountUrl: (userId: string) => string;
|
|
1741
|
-
createAccount: (userId: string, createAccountRequest?: CreateAccountRequest, options?:
|
|
1741
|
+
createAccount: (userId: string, createAccountRequest?: CreateAccountRequest, options?: Parameters<typeof customFetch>[1]) => Promise<CreateAccountResponse>;
|
|
1742
1742
|
getCreateAccountMutationOptions: <TError = unknown, TContext = unknown>(options?: {
|
|
1743
1743
|
mutation?: import("@tanstack/react-query").UseMutationOptions<Awaited<ReturnType<typeof createAccount>>, TError, {
|
|
1744
1744
|
userId: string;
|
|
@@ -1844,7 +1844,7 @@ declare class AdminPlugin implements Plugin {
|
|
|
1844
1844
|
queryKey: import("@tanstack/react-query").DataTag<import("@tanstack/react-query").QueryKey, TData, TError>;
|
|
1845
1845
|
};
|
|
1846
1846
|
getListUsersUrl: (params?: ListUsersParams) => string;
|
|
1847
|
-
listUsers: (params?: ListUsersParams, options?:
|
|
1847
|
+
listUsers: (params?: ListUsersParams, options?: Parameters<typeof customFetch>[1]) => Promise<UsersPage>;
|
|
1848
1848
|
getListUsersQueryKey: (params?: ListUsersParams) => readonly ["/admin/users", ...ListUsersParams[]];
|
|
1849
1849
|
getListUsersQueryOptions: <TData = Awaited<ReturnType<typeof listUsers>>, TError = unknown>(params?: ListUsersParams, options?: {
|
|
1850
1850
|
query?: Partial<import("@tanstack/react-query").UseQueryOptions<Awaited<ReturnType<typeof listUsers>>, TError, TData>>;
|
|
@@ -1859,7 +1859,7 @@ declare class AdminPlugin implements Plugin {
|
|
|
1859
1859
|
queryKey: import("@tanstack/react-query").DataTag<import("@tanstack/react-query").QueryKey, TData, TError>;
|
|
1860
1860
|
};
|
|
1861
1861
|
getCreateUserUrl: () => string;
|
|
1862
|
-
createUser: (createUserRequest?: CreateUserRequest, options?:
|
|
1862
|
+
createUser: (createUserRequest?: CreateUserRequest, options?: Parameters<typeof customFetch>[1]) => Promise<CreateUserResponse>;
|
|
1863
1863
|
getCreateUserMutationOptions: <TError = unknown, TContext = unknown>(options?: {
|
|
1864
1864
|
mutation?: import("@tanstack/react-query").UseMutationOptions<Awaited<ReturnType<typeof createUser>>, TError, {
|
|
1865
1865
|
data?: CreateUserRequest;
|
|
@@ -1889,7 +1889,7 @@ declare class AdminPlugin implements Plugin {
|
|
|
1889
1889
|
data?: CreateUserRequest;
|
|
1890
1890
|
}, TContext>;
|
|
1891
1891
|
getGetUserUrl: (userId: string) => string;
|
|
1892
|
-
getUser: (userId: string, options?:
|
|
1892
|
+
getUser: (userId: string, options?: Parameters<typeof customFetch>[1]) => Promise<GetUserByIDResponse>;
|
|
1893
1893
|
getGetUserQueryKey: (userId: string) => readonly [`/admin/users/${string}`];
|
|
1894
1894
|
getGetUserQueryOptions: <TData = Awaited<ReturnType<typeof getUser>>, TError = unknown>(userId: string, options?: {
|
|
1895
1895
|
query?: Partial<import("@tanstack/react-query").UseQueryOptions<Awaited<ReturnType<typeof getUser>>, TError, TData>>;
|
|
@@ -1904,7 +1904,7 @@ declare class AdminPlugin implements Plugin {
|
|
|
1904
1904
|
queryKey: import("@tanstack/react-query").DataTag<import("@tanstack/react-query").QueryKey, TData, TError>;
|
|
1905
1905
|
};
|
|
1906
1906
|
getDeleteUserUrl: (userId: string) => string;
|
|
1907
|
-
deleteUser: (userId: string, options?:
|
|
1907
|
+
deleteUser: (userId: string, options?: Parameters<typeof customFetch>[1]) => Promise<DeleteUserResponse>;
|
|
1908
1908
|
getDeleteUserMutationOptions: <TError = unknown, TContext = unknown>(options?: {
|
|
1909
1909
|
mutation?: import("@tanstack/react-query").UseMutationOptions<Awaited<ReturnType<typeof deleteUser>>, TError, {
|
|
1910
1910
|
userId: string;
|
|
@@ -1934,7 +1934,7 @@ declare class AdminPlugin implements Plugin {
|
|
|
1934
1934
|
userId: string;
|
|
1935
1935
|
}, TContext>;
|
|
1936
1936
|
getUpdateUserUrl: (userId: string) => string;
|
|
1937
|
-
updateUser: (userId: string, updateUserRequest?: UpdateUserRequest, options?:
|
|
1937
|
+
updateUser: (userId: string, updateUserRequest?: UpdateUserRequest, options?: Parameters<typeof customFetch>[1]) => Promise<UpdateUserResponse>;
|
|
1938
1938
|
getUpdateUserMutationOptions: <TError = unknown, TContext = unknown>(options?: {
|
|
1939
1939
|
mutation?: import("@tanstack/react-query").UseMutationOptions<Awaited<ReturnType<typeof updateUser>>, TError, {
|
|
1940
1940
|
userId: string;
|
|
@@ -1978,7 +1978,7 @@ declare const getListApiKeysUrl: (params?: ListApiKeysParams) => string;
|
|
|
1978
1978
|
* Lists API keys with pagination, optionally filtered by owner.
|
|
1979
1979
|
* @summary List API keys
|
|
1980
1980
|
*/
|
|
1981
|
-
declare const listApiKeys: (params?: ListApiKeysParams, options?:
|
|
1981
|
+
declare const listApiKeys: (params?: ListApiKeysParams, options?: Parameters<typeof customFetch>[1]) => Promise<GetAllApiKeysResponse>;
|
|
1982
1982
|
declare const getListApiKeysQueryKey: (params?: ListApiKeysParams) => readonly ["/api-keys", ...ListApiKeysParams[]];
|
|
1983
1983
|
declare const getListApiKeysQueryOptions: <TData = Awaited<ReturnType<typeof listApiKeys>>, TError = unknown>(params?: ListApiKeysParams, options?: {
|
|
1984
1984
|
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof listApiKeys>>, TError, TData>>;
|
|
@@ -2011,7 +2011,7 @@ declare const getCreateApiKeyUrl: () => string;
|
|
|
2011
2011
|
* Creates a new API key for the specified owner.
|
|
2012
2012
|
* @summary Create API key
|
|
2013
2013
|
*/
|
|
2014
|
-
declare const createApiKey: (createApiKeyRequest?: CreateApiKeyRequest, options?:
|
|
2014
|
+
declare const createApiKey: (createApiKeyRequest?: CreateApiKeyRequest, options?: Parameters<typeof customFetch>[1]) => Promise<CreateApiKeyResponse>;
|
|
2015
2015
|
declare const getCreateApiKeyMutationOptions: <TError = unknown, TContext = unknown>(options?: {
|
|
2016
2016
|
mutation?: UseMutationOptions<Awaited<ReturnType<typeof createApiKey>>, TError, {
|
|
2017
2017
|
data?: CreateApiKeyRequest;
|
|
@@ -2039,7 +2039,7 @@ declare const getVerifyApiKeyUrl: () => string;
|
|
|
2039
2039
|
* Verifies an API key by its raw value and returns the associated key details.
|
|
2040
2040
|
* @summary Verify API key
|
|
2041
2041
|
*/
|
|
2042
|
-
declare const verifyApiKey: (verifyApiKeyRequest?: VerifyApiKeyRequest, options?:
|
|
2042
|
+
declare const verifyApiKey: (verifyApiKeyRequest?: VerifyApiKeyRequest, options?: Parameters<typeof customFetch>[1]) => Promise<VerifyApiKeyResponse>;
|
|
2043
2043
|
declare const getVerifyApiKeyMutationOptions: <TError = unknown, TContext = unknown>(options?: {
|
|
2044
2044
|
mutation?: UseMutationOptions<Awaited<ReturnType<typeof verifyApiKey>>, TError, {
|
|
2045
2045
|
data?: VerifyApiKeyRequest;
|
|
@@ -2067,7 +2067,7 @@ declare const getGetApiKeyUrl: (id: string) => string;
|
|
|
2067
2067
|
* Retrieves an API key by its ID.
|
|
2068
2068
|
* @summary Get API key by ID
|
|
2069
2069
|
*/
|
|
2070
|
-
declare const getApiKey: (id: string, options?:
|
|
2070
|
+
declare const getApiKey: (id: string, options?: Parameters<typeof customFetch>[1]) => Promise<GetApiKeyResponse>;
|
|
2071
2071
|
declare const getGetApiKeyQueryKey: (id: string) => readonly [`/api-keys/${string}`];
|
|
2072
2072
|
declare const getGetApiKeyQueryOptions: <TData = Awaited<ReturnType<typeof getApiKey>>, TError = unknown>(id: string, options?: {
|
|
2073
2073
|
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getApiKey>>, TError, TData>>;
|
|
@@ -2100,7 +2100,7 @@ declare const getDeleteApiKeyUrl: (id: string) => string;
|
|
|
2100
2100
|
* Deletes an API key.
|
|
2101
2101
|
* @summary Delete API key
|
|
2102
2102
|
*/
|
|
2103
|
-
declare const deleteApiKey: (id: string, options?:
|
|
2103
|
+
declare const deleteApiKey: (id: string, options?: Parameters<typeof customFetch>[1]) => Promise<DeleteApiKeyResponse>;
|
|
2104
2104
|
declare const getDeleteApiKeyMutationOptions: <TError = unknown, TContext = unknown>(options?: {
|
|
2105
2105
|
mutation?: UseMutationOptions<Awaited<ReturnType<typeof deleteApiKey>>, TError, {
|
|
2106
2106
|
id: string;
|
|
@@ -2127,7 +2127,7 @@ declare const getUpdateApiKeyUrl: (id: string) => string;
|
|
|
2127
2127
|
* Updates an API key's attributes.
|
|
2128
2128
|
* @summary Update API key
|
|
2129
2129
|
*/
|
|
2130
|
-
declare const updateApiKey: (id: string, updateApiKeyRequest?: UpdateApiKeyRequest, options?:
|
|
2130
|
+
declare const updateApiKey: (id: string, updateApiKeyRequest?: UpdateApiKeyRequest, options?: Parameters<typeof customFetch>[1]) => Promise<UpdateApiKeyResponse>;
|
|
2131
2131
|
declare const getUpdateApiKeyMutationOptions: <TError = unknown, TContext = unknown>(options?: {
|
|
2132
2132
|
mutation?: UseMutationOptions<Awaited<ReturnType<typeof updateApiKey>>, TError, {
|
|
2133
2133
|
id: string;
|
|
@@ -2170,7 +2170,7 @@ declare const getGetJWKSUrl: () => string;
|
|
|
2170
2170
|
* Returns the JSON Web Key Set (JWKS) containing the public keys used to verify JWT signatures.
|
|
2171
2171
|
* @summary Get JWKS
|
|
2172
2172
|
*/
|
|
2173
|
-
declare const getJWKS: (options?:
|
|
2173
|
+
declare const getJWKS: (options?: Parameters<typeof customFetch>[1]) => Promise<WellKnownJWKSResponse>;
|
|
2174
2174
|
declare const getGetJWKSQueryKey: () => readonly ["/.well-known/jwks.json"];
|
|
2175
2175
|
declare const getGetJWKSQueryOptions: <TData = Awaited<ReturnType<typeof getJWKS>>, TError = unknown>(options?: {
|
|
2176
2176
|
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getJWKS>>, TError, TData>>;
|
|
@@ -2203,7 +2203,7 @@ declare const getRefreshTokenUrl: () => string;
|
|
|
2203
2203
|
* Exchanges a valid refresh token for a new access token and refresh token pair.
|
|
2204
2204
|
* @summary Refresh JWT token
|
|
2205
2205
|
*/
|
|
2206
|
-
declare const refreshToken: (refreshTokenRequest?: RefreshTokenRequest, options?:
|
|
2206
|
+
declare const refreshToken: (refreshTokenRequest?: RefreshTokenRequest, options?: Parameters<typeof customFetch>[1]) => Promise<RefreshTokenResponse>;
|
|
2207
2207
|
declare const getRefreshTokenMutationOptions: <TError = unknown, TContext = unknown>(options?: {
|
|
2208
2208
|
mutation?: UseMutationOptions<Awaited<ReturnType<typeof refreshToken>>, TError, {
|
|
2209
2209
|
data?: RefreshTokenRequest;
|
|
@@ -2256,7 +2256,7 @@ declare const getGetMeUrl: () => string;
|
|
|
2256
2256
|
* Retrieves the authenticated user's profile and current session.
|
|
2257
2257
|
* @summary Get current user
|
|
2258
2258
|
*/
|
|
2259
|
-
declare const getMe: (options?:
|
|
2259
|
+
declare const getMe: (options?: Parameters<typeof customFetch>[1]) => Promise<GetMeResponse>;
|
|
2260
2260
|
declare const getGetMeQueryKey: () => readonly ["/me"];
|
|
2261
2261
|
declare const getGetMeQueryOptions: <TData = Awaited<ReturnType<typeof getMe>>, TError = unknown>(options?: {
|
|
2262
2262
|
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getMe>>, TError, TData>>;
|
|
@@ -2289,7 +2289,7 @@ declare const getSignOutUrl: () => string;
|
|
|
2289
2289
|
* Signs out the authenticated user. Optionally sign out a specific session or all sessions.
|
|
2290
2290
|
* @summary Sign out
|
|
2291
2291
|
*/
|
|
2292
|
-
declare const signOut: (signOutRequest?: SignOutRequest, options?:
|
|
2292
|
+
declare const signOut: (signOutRequest?: SignOutRequest, options?: Parameters<typeof customFetch>[1]) => Promise<SignOutResponse>;
|
|
2293
2293
|
declare const getSignOutMutationOptions: <TError = unknown, TContext = unknown>(options?: {
|
|
2294
2294
|
mutation?: UseMutationOptions<Awaited<ReturnType<typeof signOut>>, TError, {
|
|
2295
2295
|
data?: SignOutRequest;
|
|
@@ -2342,7 +2342,7 @@ declare const getChangePasswordUrl: () => string;
|
|
|
2342
2342
|
* Changes the user's password using a reset token
|
|
2343
2343
|
* @summary Change password
|
|
2344
2344
|
*/
|
|
2345
|
-
declare const changePassword: (changePasswordRequest?: ChangePasswordRequest, options?:
|
|
2345
|
+
declare const changePassword: (changePasswordRequest?: ChangePasswordRequest, options?: Parameters<typeof customFetch>[1]) => Promise<ChangePasswordResponse>;
|
|
2346
2346
|
declare const getChangePasswordMutationOptions: <TError = unknown, TContext = unknown>(options?: {
|
|
2347
2347
|
mutation?: UseMutationOptions<Awaited<ReturnType<typeof changePassword>>, TError, {
|
|
2348
2348
|
data?: ChangePasswordRequest;
|
|
@@ -2370,7 +2370,7 @@ declare const getRequestEmailChangeUrl: () => string;
|
|
|
2370
2370
|
* Requests to change the authenticated user's email address
|
|
2371
2371
|
* @summary Request email change
|
|
2372
2372
|
*/
|
|
2373
|
-
declare const requestEmailChange: (requestEmailChangeRequest?: RequestEmailChangeRequest, options?:
|
|
2373
|
+
declare const requestEmailChange: (requestEmailChangeRequest?: RequestEmailChangeRequest, options?: Parameters<typeof customFetch>[1]) => Promise<ChangeEmailResponse>;
|
|
2374
2374
|
declare const getRequestEmailChangeMutationOptions: <TError = unknown, TContext = unknown>(options?: {
|
|
2375
2375
|
mutation?: UseMutationOptions<Awaited<ReturnType<typeof requestEmailChange>>, TError, {
|
|
2376
2376
|
data?: RequestEmailChangeRequest;
|
|
@@ -2398,7 +2398,7 @@ declare const getRequestPasswordResetUrl: () => string;
|
|
|
2398
2398
|
* Requests a password reset link to be sent to the user's email
|
|
2399
2399
|
* @summary Request password reset
|
|
2400
2400
|
*/
|
|
2401
|
-
declare const requestPasswordReset: (requestPasswordResetRequest?: RequestPasswordResetRequest, options?:
|
|
2401
|
+
declare const requestPasswordReset: (requestPasswordResetRequest?: RequestPasswordResetRequest, options?: Parameters<typeof customFetch>[1]) => Promise<ChangePasswordResponse>;
|
|
2402
2402
|
declare const getRequestPasswordResetMutationOptions: <TError = unknown, TContext = unknown>(options?: {
|
|
2403
2403
|
mutation?: UseMutationOptions<Awaited<ReturnType<typeof requestPasswordReset>>, TError, {
|
|
2404
2404
|
data?: RequestPasswordResetRequest;
|
|
@@ -2426,7 +2426,7 @@ declare const getSendEmailVerificationUrl: () => string;
|
|
|
2426
2426
|
* Sends a verification email to the authenticated user
|
|
2427
2427
|
* @summary Send email verification
|
|
2428
2428
|
*/
|
|
2429
|
-
declare const sendEmailVerification: (sendEmailVerificationRequest?: SendEmailVerificationRequest, options?:
|
|
2429
|
+
declare const sendEmailVerification: (sendEmailVerificationRequest?: SendEmailVerificationRequest, options?: Parameters<typeof customFetch>[1]) => Promise<ChangePasswordResponse>;
|
|
2430
2430
|
declare const getSendEmailVerificationMutationOptions: <TError = unknown, TContext = unknown>(options?: {
|
|
2431
2431
|
mutation?: UseMutationOptions<Awaited<ReturnType<typeof sendEmailVerification>>, TError, {
|
|
2432
2432
|
data?: SendEmailVerificationRequest;
|
|
@@ -2454,7 +2454,7 @@ declare const getSignInUrl: () => string;
|
|
|
2454
2454
|
* Authenticates a user with email and password
|
|
2455
2455
|
* @summary Sign in
|
|
2456
2456
|
*/
|
|
2457
|
-
declare const signIn: (signInRequest?: SignInRequest, options?:
|
|
2457
|
+
declare const signIn: (signInRequest?: SignInRequest, options?: Parameters<typeof customFetch>[1]) => Promise<SignInResponse>;
|
|
2458
2458
|
declare const getSignInMutationOptions: <TError = unknown, TContext = unknown>(options?: {
|
|
2459
2459
|
mutation?: UseMutationOptions<Awaited<ReturnType<typeof signIn>>, TError, {
|
|
2460
2460
|
data?: SignInRequest;
|
|
@@ -2482,7 +2482,7 @@ declare const getSignUpUrl: () => string;
|
|
|
2482
2482
|
* Registers a new user with email and password
|
|
2483
2483
|
* @summary Register new user
|
|
2484
2484
|
*/
|
|
2485
|
-
declare const signUp: (signUpRequest?: SignUpRequest, options?:
|
|
2485
|
+
declare const signUp: (signUpRequest?: SignUpRequest, options?: Parameters<typeof customFetch>[1]) => Promise<SignUpResponse>;
|
|
2486
2486
|
declare const getSignUpMutationOptions: <TError = unknown, TContext = unknown>(options?: {
|
|
2487
2487
|
mutation?: UseMutationOptions<Awaited<ReturnType<typeof signUp>>, TError, {
|
|
2488
2488
|
data?: SignUpRequest;
|
|
@@ -2510,7 +2510,7 @@ declare const getVerifyEmailUrl: () => string;
|
|
|
2510
2510
|
* Verifies an email address or processes a password reset token using a verification token
|
|
2511
2511
|
* @summary Verify email
|
|
2512
2512
|
*/
|
|
2513
|
-
declare const verifyEmail: (options?:
|
|
2513
|
+
declare const verifyEmail: (options?: Parameters<typeof customFetch>[1]) => Promise<ChangePasswordResponse>;
|
|
2514
2514
|
declare const getVerifyEmailQueryKey: () => readonly ["/email-password/verify-email"];
|
|
2515
2515
|
declare const getVerifyEmailQueryOptions: <TData = Awaited<ReturnType<typeof verifyEmail>>, TError = unknown>(options?: {
|
|
2516
2516
|
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof verifyEmail>>, TError, TData>>;
|
|
@@ -2564,7 +2564,7 @@ declare const getExchangeMagicLinkUrl: () => string;
|
|
|
2564
2564
|
* Exchanges a verified magic link token for an authenticated user session.
|
|
2565
2565
|
* @summary Exchange magic link token for session
|
|
2566
2566
|
*/
|
|
2567
|
-
declare const exchangeMagicLink: (magicLinkExchangeRequest?: MagicLinkExchangeRequest, options?:
|
|
2567
|
+
declare const exchangeMagicLink: (magicLinkExchangeRequest?: MagicLinkExchangeRequest, options?: Parameters<typeof customFetch>[1]) => Promise<MagicLinkExchangeResponse>;
|
|
2568
2568
|
declare const getExchangeMagicLinkMutationOptions: <TError = unknown, TContext = unknown>(options?: {
|
|
2569
2569
|
mutation?: UseMutationOptions<Awaited<ReturnType<typeof exchangeMagicLink>>, TError, {
|
|
2570
2570
|
data?: MagicLinkExchangeRequest;
|
|
@@ -2592,7 +2592,7 @@ declare const getSignInWithMagicLinkUrl: () => string;
|
|
|
2592
2592
|
* Sends a magic link to the given email address if an account exists. Optionally creates a new account if sign-up is enabled.
|
|
2593
2593
|
* @summary Sign in with magic link
|
|
2594
2594
|
*/
|
|
2595
|
-
declare const signInWithMagicLink: (magicLinkSignInRequest?: MagicLinkSignInRequest, options?:
|
|
2595
|
+
declare const signInWithMagicLink: (magicLinkSignInRequest?: MagicLinkSignInRequest, options?: Parameters<typeof customFetch>[1]) => Promise<MagicLinkSignInResponse>;
|
|
2596
2596
|
declare const getSignInWithMagicLinkMutationOptions: <TError = unknown, TContext = unknown>(options?: {
|
|
2597
2597
|
mutation?: UseMutationOptions<Awaited<ReturnType<typeof signInWithMagicLink>>, TError, {
|
|
2598
2598
|
data?: MagicLinkSignInRequest;
|
|
@@ -2620,7 +2620,7 @@ declare const getVerifyMagicLinkUrl: (params: VerifyMagicLinkParams) => string;
|
|
|
2620
2620
|
* Verifies a magic link token. If a callback_url is provided and trusted, redirects the user with an exchange token appended. Otherwise returns the exchange token in the JSON response.
|
|
2621
2621
|
* @summary Verify magic link token
|
|
2622
2622
|
*/
|
|
2623
|
-
declare const verifyMagicLink: (params: VerifyMagicLinkParams, options?:
|
|
2623
|
+
declare const verifyMagicLink: (params: VerifyMagicLinkParams, options?: Parameters<typeof customFetch>[1]) => Promise<MagicLinkVerifyResponse>;
|
|
2624
2624
|
declare const getVerifyMagicLinkQueryKey: (params?: VerifyMagicLinkParams) => readonly ["/magic-link/verify", ...VerifyMagicLinkParams[]];
|
|
2625
2625
|
declare const getVerifyMagicLinkQueryOptions: <TData = Awaited<ReturnType<typeof verifyMagicLink>>, TError = unknown>(params: VerifyMagicLinkParams, options?: {
|
|
2626
2626
|
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof verifyMagicLink>>, TError, TData>>;
|
|
@@ -2664,7 +2664,7 @@ declare const getOauthAuthorizeUrl: (provider: string, params?: OauthAuthorizePa
|
|
|
2664
2664
|
* Initiates the OAuth2 authorization flow with the specified provider. Returns the provider's authorization URL to redirect the user to.
|
|
2665
2665
|
* @summary Authorize with OAuth2 provider
|
|
2666
2666
|
*/
|
|
2667
|
-
declare const oauthAuthorize: (provider: string, params?: OauthAuthorizeParams, options?:
|
|
2667
|
+
declare const oauthAuthorize: (provider: string, params?: OauthAuthorizeParams, options?: Parameters<typeof customFetch>[1]) => Promise<AuthorizeResponse>;
|
|
2668
2668
|
declare const getOauthAuthorizeQueryKey: (provider: string, params?: OauthAuthorizeParams) => readonly [`/oauth2/authorize/${string}`, ...OauthAuthorizeParams[]];
|
|
2669
2669
|
declare const getOauthAuthorizeQueryOptions: <TData = Awaited<ReturnType<typeof oauthAuthorize>>, TError = unknown>(provider: string, params?: OauthAuthorizeParams, options?: {
|
|
2670
2670
|
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof oauthAuthorize>>, TError, TData>>;
|
|
@@ -2697,7 +2697,7 @@ declare const getOauthCallbackUrl: (provider: string, params: OauthCallbackParam
|
|
|
2697
2697
|
* Handles the OAuth2 callback from the provider. Exchanges the authorization code for tokens, creates or links a user account, and returns the authenticated user and session.
|
|
2698
2698
|
* @summary OAuth2 callback
|
|
2699
2699
|
*/
|
|
2700
|
-
declare const oauthCallback: (provider: string, params: OauthCallbackParams, options?:
|
|
2700
|
+
declare const oauthCallback: (provider: string, params: OauthCallbackParams, options?: Parameters<typeof customFetch>[1]) => Promise<CallbackResponse>;
|
|
2701
2701
|
declare const getOauthCallbackQueryKey: (provider: string, params?: OauthCallbackParams) => readonly [`/oauth2/callback/${string}`, ...OauthCallbackParams[]];
|
|
2702
2702
|
declare const getOauthCallbackQueryOptions: <TData = Awaited<ReturnType<typeof oauthCallback>>, TError = unknown>(provider: string, params: OauthCallbackParams, options?: {
|
|
2703
2703
|
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof oauthCallback>>, TError, TData>>;
|
|
@@ -2737,140 +2737,140 @@ declare class OAuth2Plugin implements Plugin {
|
|
|
2737
2737
|
* Lists all organizations owned by the authenticated user.
|
|
2738
2738
|
* @summary List organizations
|
|
2739
2739
|
*/
|
|
2740
|
-
declare const listOrganizations: (options?:
|
|
2740
|
+
declare const listOrganizations: (options?: Parameters<typeof customFetch>[1]) => Promise<Organization[] | null>;
|
|
2741
2741
|
/**
|
|
2742
2742
|
* Creates a new organization with the authenticated user as the owner.
|
|
2743
2743
|
* @summary Create organization
|
|
2744
2744
|
*/
|
|
2745
|
-
declare const createOrganization: (createOrganizationRequest?: CreateOrganizationRequest, options?:
|
|
2745
|
+
declare const createOrganization: (createOrganizationRequest?: CreateOrganizationRequest, options?: Parameters<typeof customFetch>[1]) => Promise<Organization>;
|
|
2746
2746
|
/**
|
|
2747
2747
|
* Retrieves an organization by its ID.
|
|
2748
2748
|
* @summary Get organization
|
|
2749
2749
|
*/
|
|
2750
|
-
declare const getOrganization: (organizationId: string, options?:
|
|
2750
|
+
declare const getOrganization: (organizationId: string, options?: Parameters<typeof customFetch>[1]) => Promise<Organization>;
|
|
2751
2751
|
/**
|
|
2752
2752
|
* Deletes an organization.
|
|
2753
2753
|
* @summary Delete organization
|
|
2754
2754
|
*/
|
|
2755
|
-
declare const deleteOrganization: (organizationId: string, options?:
|
|
2755
|
+
declare const deleteOrganization: (organizationId: string, options?: Parameters<typeof customFetch>[1]) => Promise<DeleteOrganizationResponse>;
|
|
2756
2756
|
/**
|
|
2757
2757
|
* Updates an existing organization.
|
|
2758
2758
|
* @summary Update organization
|
|
2759
2759
|
*/
|
|
2760
|
-
declare const updateOrganization: (organizationId: string, updateOrganizationRequest?: UpdateOrganizationRequest, options?:
|
|
2760
|
+
declare const updateOrganization: (organizationId: string, updateOrganizationRequest?: UpdateOrganizationRequest, options?: Parameters<typeof customFetch>[1]) => Promise<Organization>;
|
|
2761
2761
|
//#endregion
|
|
2762
2762
|
//#region src/gen/endpoints/organization-invitations/organization-invitations.d.ts
|
|
2763
2763
|
/**
|
|
2764
2764
|
* Lists all invitations for an organization.
|
|
2765
2765
|
* @summary List invitations
|
|
2766
2766
|
*/
|
|
2767
|
-
declare const listOrganizationInvitations: (organizationId: string, options?:
|
|
2767
|
+
declare const listOrganizationInvitations: (organizationId: string, options?: Parameters<typeof customFetch>[1]) => Promise<GetOrganizationInvitationResponse[] | null>;
|
|
2768
2768
|
/**
|
|
2769
2769
|
* Creates an invitation for a user to join an organization.
|
|
2770
2770
|
* @summary Create invitation
|
|
2771
2771
|
*/
|
|
2772
|
-
declare const createOrganizationInvitation: (organizationId: string, createOrganizationInvitationRequest?: CreateOrganizationInvitationRequest, params?: CreateOrganizationInvitationParams, options?:
|
|
2772
|
+
declare const createOrganizationInvitation: (organizationId: string, createOrganizationInvitationRequest?: CreateOrganizationInvitationRequest, params?: CreateOrganizationInvitationParams, options?: Parameters<typeof customFetch>[1]) => Promise<OrganizationInvitation>;
|
|
2773
2773
|
/**
|
|
2774
2774
|
* Retrieves a single invitation.
|
|
2775
2775
|
* @summary Get invitation
|
|
2776
2776
|
*/
|
|
2777
|
-
declare const getOrganizationInvitation: (organizationId: string, invitationId: string, options?:
|
|
2777
|
+
declare const getOrganizationInvitation: (organizationId: string, invitationId: string, options?: Parameters<typeof customFetch>[1]) => Promise<GetOrganizationInvitationResponse>;
|
|
2778
2778
|
/**
|
|
2779
2779
|
* Accepts an invitation to join an organization.
|
|
2780
2780
|
* @summary Accept invitation
|
|
2781
2781
|
*/
|
|
2782
|
-
declare const acceptOrganizationInvitation: (organizationId: string, invitationId: string, acceptOrganizationInvitationQuery?: AcceptOrganizationInvitationQuery, params?: AcceptOrganizationInvitationParams, options?:
|
|
2782
|
+
declare const acceptOrganizationInvitation: (organizationId: string, invitationId: string, acceptOrganizationInvitationQuery?: AcceptOrganizationInvitationQuery, params?: AcceptOrganizationInvitationParams, options?: Parameters<typeof customFetch>[1]) => Promise<OrganizationInvitation>;
|
|
2783
2783
|
/**
|
|
2784
2784
|
* Rejects an invitation to join an organization.
|
|
2785
2785
|
* @summary Reject invitation
|
|
2786
2786
|
*/
|
|
2787
|
-
declare const rejectOrganizationInvitation: (organizationId: string, invitationId: string, options?:
|
|
2787
|
+
declare const rejectOrganizationInvitation: (organizationId: string, invitationId: string, options?: Parameters<typeof customFetch>[1]) => Promise<OrganizationInvitation>;
|
|
2788
2788
|
/**
|
|
2789
2789
|
* Revokes a pending invitation.
|
|
2790
2790
|
* @summary Revoke invitation
|
|
2791
2791
|
*/
|
|
2792
|
-
declare const revokeOrganizationInvitation: (organizationId: string, invitationId: string, options?:
|
|
2792
|
+
declare const revokeOrganizationInvitation: (organizationId: string, invitationId: string, options?: Parameters<typeof customFetch>[1]) => Promise<OrganizationInvitation>;
|
|
2793
2793
|
//#endregion
|
|
2794
2794
|
//#region src/gen/endpoints/organization-members/organization-members.d.ts
|
|
2795
2795
|
/**
|
|
2796
2796
|
* Lists all members of an organization with pagination.
|
|
2797
2797
|
* @summary List members
|
|
2798
2798
|
*/
|
|
2799
|
-
declare const listOrganizationMembers: (organizationId: string, params?: ListOrganizationMembersParams, options?:
|
|
2799
|
+
declare const listOrganizationMembers: (organizationId: string, params?: ListOrganizationMembersParams, options?: Parameters<typeof customFetch>[1]) => Promise<OrganizationMemberResponse[] | null>;
|
|
2800
2800
|
/**
|
|
2801
2801
|
* Adds a user as a member of an organization with the specified role.
|
|
2802
2802
|
* @summary Add member
|
|
2803
2803
|
*/
|
|
2804
|
-
declare const addOrganizationMember: (organizationId: string, addOrganizationMemberRequest?: AddOrganizationMemberRequest, options?:
|
|
2804
|
+
declare const addOrganizationMember: (organizationId: string, addOrganizationMemberRequest?: AddOrganizationMemberRequest, options?: Parameters<typeof customFetch>[1]) => Promise<OrganizationMember>;
|
|
2805
2805
|
/**
|
|
2806
2806
|
* Retrieves an organization member by the user's ID with nested user data.
|
|
2807
2807
|
* @summary Get member by user ID
|
|
2808
2808
|
*/
|
|
2809
|
-
declare const getOrganizationMemberByUserID: (organizationId: string, userId: string, options?:
|
|
2809
|
+
declare const getOrganizationMemberByUserID: (organizationId: string, userId: string, options?: Parameters<typeof customFetch>[1]) => Promise<OrganizationMemberResponse>;
|
|
2810
2810
|
/**
|
|
2811
2811
|
* Retrieves a single organization member by ID with nested user data.
|
|
2812
2812
|
* @summary Get member
|
|
2813
2813
|
*/
|
|
2814
|
-
declare const getOrganizationMember: (organizationId: string, memberId: string, options?:
|
|
2814
|
+
declare const getOrganizationMember: (organizationId: string, memberId: string, options?: Parameters<typeof customFetch>[1]) => Promise<OrganizationMemberResponse>;
|
|
2815
2815
|
/**
|
|
2816
2816
|
* Removes a member from an organization.
|
|
2817
2817
|
* @summary Delete member
|
|
2818
2818
|
*/
|
|
2819
|
-
declare const deleteOrganizationMember: (organizationId: string, memberId: string, options?:
|
|
2819
|
+
declare const deleteOrganizationMember: (organizationId: string, memberId: string, options?: Parameters<typeof customFetch>[1]) => Promise<DeleteOrganizationMemberResponse>;
|
|
2820
2820
|
/**
|
|
2821
2821
|
* Updates the role of an organization member.
|
|
2822
2822
|
* @summary Update member
|
|
2823
2823
|
*/
|
|
2824
|
-
declare const updateOrganizationMember: (organizationId: string, memberId: string, updateOrganizationMemberRequest?: UpdateOrganizationMemberRequest, options?:
|
|
2824
|
+
declare const updateOrganizationMember: (organizationId: string, memberId: string, updateOrganizationMemberRequest?: UpdateOrganizationMemberRequest, options?: Parameters<typeof customFetch>[1]) => Promise<OrganizationMember>;
|
|
2825
2825
|
//#endregion
|
|
2826
2826
|
//#region src/gen/endpoints/organization-teams/organization-teams.d.ts
|
|
2827
2827
|
/**
|
|
2828
2828
|
* Lists all teams within an organization.
|
|
2829
2829
|
* @summary List teams
|
|
2830
2830
|
*/
|
|
2831
|
-
declare const listOrganizationTeams: (organizationId: string, options?:
|
|
2831
|
+
declare const listOrganizationTeams: (organizationId: string, options?: Parameters<typeof customFetch>[1]) => Promise<OrganizationTeam[] | null>;
|
|
2832
2832
|
/**
|
|
2833
2833
|
* Creates a new team within an organization.
|
|
2834
2834
|
* @summary Create team
|
|
2835
2835
|
*/
|
|
2836
|
-
declare const createOrganizationTeam: (organizationId: string, createOrganizationTeamRequest?: CreateOrganizationTeamRequest, options?:
|
|
2836
|
+
declare const createOrganizationTeam: (organizationId: string, createOrganizationTeamRequest?: CreateOrganizationTeamRequest, options?: Parameters<typeof customFetch>[1]) => Promise<OrganizationTeam>;
|
|
2837
2837
|
/**
|
|
2838
2838
|
* Retrieves a single team by its ID.
|
|
2839
2839
|
* @summary Get team
|
|
2840
2840
|
*/
|
|
2841
|
-
declare const getOrganizationTeam: (organizationId: string, teamId: string, options?:
|
|
2841
|
+
declare const getOrganizationTeam: (organizationId: string, teamId: string, options?: Parameters<typeof customFetch>[1]) => Promise<OrganizationTeam>;
|
|
2842
2842
|
/**
|
|
2843
2843
|
* Deletes a team.
|
|
2844
2844
|
* @summary Delete team
|
|
2845
2845
|
*/
|
|
2846
|
-
declare const deleteOrganizationTeam: (organizationId: string, teamId: string, options?:
|
|
2846
|
+
declare const deleteOrganizationTeam: (organizationId: string, teamId: string, options?: Parameters<typeof customFetch>[1]) => Promise<DeleteOrganizationTeamResponse>;
|
|
2847
2847
|
/**
|
|
2848
2848
|
* Updates an existing team.
|
|
2849
2849
|
* @summary Update team
|
|
2850
2850
|
*/
|
|
2851
|
-
declare const updateOrganizationTeam: (organizationId: string, teamId: string, updateOrganizationTeamRequest?: UpdateOrganizationTeamRequest, options?:
|
|
2851
|
+
declare const updateOrganizationTeam: (organizationId: string, teamId: string, updateOrganizationTeamRequest?: UpdateOrganizationTeamRequest, options?: Parameters<typeof customFetch>[1]) => Promise<OrganizationTeam>;
|
|
2852
2852
|
//#endregion
|
|
2853
2853
|
//#region src/gen/endpoints/organization-team-members/organization-team-members.d.ts
|
|
2854
2854
|
/**
|
|
2855
2855
|
* Lists all members of a team with pagination.
|
|
2856
2856
|
* @summary List team members
|
|
2857
2857
|
*/
|
|
2858
|
-
declare const listOrganizationTeamMembers: (organizationId: string, teamId: string, params?: ListOrganizationTeamMembersParams, options?:
|
|
2858
|
+
declare const listOrganizationTeamMembers: (organizationId: string, teamId: string, params?: ListOrganizationTeamMembersParams, options?: Parameters<typeof customFetch>[1]) => Promise<OrganizationTeamMemberResponse[] | null>;
|
|
2859
2859
|
/**
|
|
2860
2860
|
* Adds a member to a team.
|
|
2861
2861
|
* @summary Add team member
|
|
2862
2862
|
*/
|
|
2863
|
-
declare const addOrganizationTeamMember: (organizationId: string, teamId: string, addOrganizationTeamMemberRequest?: AddOrganizationTeamMemberRequest, options?:
|
|
2863
|
+
declare const addOrganizationTeamMember: (organizationId: string, teamId: string, addOrganizationTeamMemberRequest?: AddOrganizationTeamMemberRequest, options?: Parameters<typeof customFetch>[1]) => Promise<OrganizationTeamMember>;
|
|
2864
2864
|
/**
|
|
2865
2865
|
* Retrieves a single team member by ID with nested member and user data.
|
|
2866
2866
|
* @summary Get team member
|
|
2867
2867
|
*/
|
|
2868
|
-
declare const getOrganizationTeamMember: (organizationId: string, teamId: string, memberId: string, options?:
|
|
2868
|
+
declare const getOrganizationTeamMember: (organizationId: string, teamId: string, memberId: string, options?: Parameters<typeof customFetch>[1]) => Promise<OrganizationTeamMemberResponse>;
|
|
2869
2869
|
/**
|
|
2870
2870
|
* Removes a member from a team.
|
|
2871
2871
|
* @summary Delete team member
|
|
2872
2872
|
*/
|
|
2873
|
-
declare const deleteOrganizationTeamMember: (organizationId: string, teamId: string, memberId: string, options?:
|
|
2873
|
+
declare const deleteOrganizationTeamMember: (organizationId: string, teamId: string, memberId: string, options?: Parameters<typeof customFetch>[1]) => Promise<DeleteOrganizationTeamMemberResponse>;
|
|
2874
2874
|
//#endregion
|
|
2875
2875
|
//#region src/plugins/organizations/plugin.d.ts
|
|
2876
2876
|
declare class OrganizationsPlugin implements Plugin {
|
|
@@ -2949,7 +2949,7 @@ declare class OrganizationsPlugin implements Plugin {
|
|
|
2949
2949
|
queryKey: import("@tanstack/react-query").DataTag<import("@tanstack/react-query").QueryKey, TData, TError>;
|
|
2950
2950
|
};
|
|
2951
2951
|
getListOrganizationTeamMembersUrl: (organizationId: string, teamId: string, params?: ListOrganizationTeamMembersParams) => string;
|
|
2952
|
-
listOrganizationTeamMembers: (organizationId: string, teamId: string, params?: ListOrganizationTeamMembersParams, options?:
|
|
2952
|
+
listOrganizationTeamMembers: (organizationId: string, teamId: string, params?: ListOrganizationTeamMembersParams, options?: Parameters<typeof customFetch>[1]) => Promise<OrganizationTeamMemberResponse[] | null>;
|
|
2953
2953
|
getListOrganizationTeamMembersQueryKey: (organizationId: string, teamId: string, params?: ListOrganizationTeamMembersParams) => readonly [`/organizations/${string}/teams/${string}/members`, ...ListOrganizationTeamMembersParams[]];
|
|
2954
2954
|
getListOrganizationTeamMembersQueryOptions: <TData = Awaited<ReturnType<typeof listOrganizationTeamMembers>>, TError = unknown>(organizationId: string, teamId: string, params?: ListOrganizationTeamMembersParams, options?: {
|
|
2955
2955
|
query?: Partial<import("@tanstack/react-query").UseQueryOptions<Awaited<ReturnType<typeof listOrganizationTeamMembers>>, TError, TData>>;
|
|
@@ -2964,7 +2964,7 @@ declare class OrganizationsPlugin implements Plugin {
|
|
|
2964
2964
|
queryKey: import("@tanstack/react-query").DataTag<import("@tanstack/react-query").QueryKey, TData, TError>;
|
|
2965
2965
|
};
|
|
2966
2966
|
getAddOrganizationTeamMemberUrl: (organizationId: string, teamId: string) => string;
|
|
2967
|
-
addOrganizationTeamMember: (organizationId: string, teamId: string, addOrganizationTeamMemberRequest?: AddOrganizationTeamMemberRequest, options?:
|
|
2967
|
+
addOrganizationTeamMember: (organizationId: string, teamId: string, addOrganizationTeamMemberRequest?: AddOrganizationTeamMemberRequest, options?: Parameters<typeof customFetch>[1]) => Promise<OrganizationTeamMember>;
|
|
2968
2968
|
getAddOrganizationTeamMemberMutationOptions: <TError = unknown, TContext = unknown>(options?: {
|
|
2969
2969
|
mutation?: import("@tanstack/react-query").UseMutationOptions<Awaited<ReturnType<typeof addOrganizationTeamMember>>, TError, {
|
|
2970
2970
|
organizationId: string;
|
|
@@ -3002,7 +3002,7 @@ declare class OrganizationsPlugin implements Plugin {
|
|
|
3002
3002
|
data?: AddOrganizationTeamMemberRequest;
|
|
3003
3003
|
}, TContext>;
|
|
3004
3004
|
getGetOrganizationTeamMemberUrl: (organizationId: string, teamId: string, memberId: string) => string;
|
|
3005
|
-
getOrganizationTeamMember: (organizationId: string, teamId: string, memberId: string, options?:
|
|
3005
|
+
getOrganizationTeamMember: (organizationId: string, teamId: string, memberId: string, options?: Parameters<typeof customFetch>[1]) => Promise<OrganizationTeamMemberResponse>;
|
|
3006
3006
|
getGetOrganizationTeamMemberQueryKey: (organizationId: string, teamId: string, memberId: string) => readonly [`/organizations/${string}/teams/${string}/members/${string}`];
|
|
3007
3007
|
getGetOrganizationTeamMemberQueryOptions: <TData = Awaited<ReturnType<typeof getOrganizationTeamMember>>, TError = unknown>(organizationId: string, teamId: string, memberId: string, options?: {
|
|
3008
3008
|
query?: Partial<import("@tanstack/react-query").UseQueryOptions<Awaited<ReturnType<typeof getOrganizationTeamMember>>, TError, TData>>;
|
|
@@ -3017,7 +3017,7 @@ declare class OrganizationsPlugin implements Plugin {
|
|
|
3017
3017
|
queryKey: import("@tanstack/react-query").DataTag<import("@tanstack/react-query").QueryKey, TData, TError>;
|
|
3018
3018
|
};
|
|
3019
3019
|
getDeleteOrganizationTeamMemberUrl: (organizationId: string, teamId: string, memberId: string) => string;
|
|
3020
|
-
deleteOrganizationTeamMember: (organizationId: string, teamId: string, memberId: string, options?:
|
|
3020
|
+
deleteOrganizationTeamMember: (organizationId: string, teamId: string, memberId: string, options?: Parameters<typeof customFetch>[1]) => Promise<DeleteOrganizationTeamMemberResponse>;
|
|
3021
3021
|
getDeleteOrganizationTeamMemberMutationOptions: <TError = unknown, TContext = unknown>(options?: {
|
|
3022
3022
|
mutation?: import("@tanstack/react-query").UseMutationOptions<Awaited<ReturnType<typeof deleteOrganizationTeamMember>>, TError, {
|
|
3023
3023
|
organizationId: string;
|
|
@@ -3127,7 +3127,7 @@ declare class OrganizationsPlugin implements Plugin {
|
|
|
3127
3127
|
queryKey: import("@tanstack/react-query").DataTag<import("@tanstack/react-query").QueryKey, TData, TError>;
|
|
3128
3128
|
};
|
|
3129
3129
|
getListOrganizationTeamsUrl: (organizationId: string) => string;
|
|
3130
|
-
listOrganizationTeams: (organizationId: string, options?:
|
|
3130
|
+
listOrganizationTeams: (organizationId: string, options?: Parameters<typeof customFetch>[1]) => Promise<OrganizationTeam[] | null>;
|
|
3131
3131
|
getListOrganizationTeamsQueryKey: (organizationId: string) => readonly [`/organizations/${string}/teams`];
|
|
3132
3132
|
getListOrganizationTeamsQueryOptions: <TData = Awaited<ReturnType<typeof listOrganizationTeams>>, TError = unknown>(organizationId: string, options?: {
|
|
3133
3133
|
query?: Partial<import("@tanstack/react-query").UseQueryOptions<Awaited<ReturnType<typeof listOrganizationTeams>>, TError, TData>>;
|
|
@@ -3142,7 +3142,7 @@ declare class OrganizationsPlugin implements Plugin {
|
|
|
3142
3142
|
queryKey: import("@tanstack/react-query").DataTag<import("@tanstack/react-query").QueryKey, TData, TError>;
|
|
3143
3143
|
};
|
|
3144
3144
|
getCreateOrganizationTeamUrl: (organizationId: string) => string;
|
|
3145
|
-
createOrganizationTeam: (organizationId: string, createOrganizationTeamRequest?: CreateOrganizationTeamRequest, options?:
|
|
3145
|
+
createOrganizationTeam: (organizationId: string, createOrganizationTeamRequest?: CreateOrganizationTeamRequest, options?: Parameters<typeof customFetch>[1]) => Promise<OrganizationTeam>;
|
|
3146
3146
|
getCreateOrganizationTeamMutationOptions: <TError = unknown, TContext = unknown>(options?: {
|
|
3147
3147
|
mutation?: import("@tanstack/react-query").UseMutationOptions<Awaited<ReturnType<typeof createOrganizationTeam>>, TError, {
|
|
3148
3148
|
organizationId: string;
|
|
@@ -3176,7 +3176,7 @@ declare class OrganizationsPlugin implements Plugin {
|
|
|
3176
3176
|
data?: CreateOrganizationTeamRequest;
|
|
3177
3177
|
}, TContext>;
|
|
3178
3178
|
getGetOrganizationTeamUrl: (organizationId: string, teamId: string) => string;
|
|
3179
|
-
getOrganizationTeam: (organizationId: string, teamId: string, options?:
|
|
3179
|
+
getOrganizationTeam: (organizationId: string, teamId: string, options?: Parameters<typeof customFetch>[1]) => Promise<OrganizationTeam>;
|
|
3180
3180
|
getGetOrganizationTeamQueryKey: (organizationId: string, teamId: string) => readonly [`/organizations/${string}/teams/${string}`];
|
|
3181
3181
|
getGetOrganizationTeamQueryOptions: <TData = Awaited<ReturnType<typeof getOrganizationTeam>>, TError = unknown>(organizationId: string, teamId: string, options?: {
|
|
3182
3182
|
query?: Partial<import("@tanstack/react-query").UseQueryOptions<Awaited<ReturnType<typeof getOrganizationTeam>>, TError, TData>>;
|
|
@@ -3191,7 +3191,7 @@ declare class OrganizationsPlugin implements Plugin {
|
|
|
3191
3191
|
queryKey: import("@tanstack/react-query").DataTag<import("@tanstack/react-query").QueryKey, TData, TError>;
|
|
3192
3192
|
};
|
|
3193
3193
|
getDeleteOrganizationTeamUrl: (organizationId: string, teamId: string) => string;
|
|
3194
|
-
deleteOrganizationTeam: (organizationId: string, teamId: string, options?:
|
|
3194
|
+
deleteOrganizationTeam: (organizationId: string, teamId: string, options?: Parameters<typeof customFetch>[1]) => Promise<DeleteOrganizationTeamResponse>;
|
|
3195
3195
|
getDeleteOrganizationTeamMutationOptions: <TError = unknown, TContext = unknown>(options?: {
|
|
3196
3196
|
mutation?: import("@tanstack/react-query").UseMutationOptions<Awaited<ReturnType<typeof deleteOrganizationTeam>>, TError, {
|
|
3197
3197
|
organizationId: string;
|
|
@@ -3225,7 +3225,7 @@ declare class OrganizationsPlugin implements Plugin {
|
|
|
3225
3225
|
teamId: string;
|
|
3226
3226
|
}, TContext>;
|
|
3227
3227
|
getUpdateOrganizationTeamUrl: (organizationId: string, teamId: string) => string;
|
|
3228
|
-
updateOrganizationTeam: (organizationId: string, teamId: string, updateOrganizationTeamRequest?: UpdateOrganizationTeamRequest, options?:
|
|
3228
|
+
updateOrganizationTeam: (organizationId: string, teamId: string, updateOrganizationTeamRequest?: UpdateOrganizationTeamRequest, options?: Parameters<typeof customFetch>[1]) => Promise<OrganizationTeam>;
|
|
3229
3229
|
getUpdateOrganizationTeamMutationOptions: <TError = unknown, TContext = unknown>(options?: {
|
|
3230
3230
|
mutation?: import("@tanstack/react-query").UseMutationOptions<Awaited<ReturnType<typeof updateOrganizationTeam>>, TError, {
|
|
3231
3231
|
organizationId: string;
|
|
@@ -3371,7 +3371,7 @@ declare class OrganizationsPlugin implements Plugin {
|
|
|
3371
3371
|
queryKey: import("@tanstack/react-query").DataTag<import("@tanstack/react-query").QueryKey, TData, TError>;
|
|
3372
3372
|
};
|
|
3373
3373
|
getListOrganizationMembersUrl: (organizationId: string, params?: ListOrganizationMembersParams) => string;
|
|
3374
|
-
listOrganizationMembers: (organizationId: string, params?: ListOrganizationMembersParams, options?:
|
|
3374
|
+
listOrganizationMembers: (organizationId: string, params?: ListOrganizationMembersParams, options?: Parameters<typeof customFetch>[1]) => Promise<OrganizationMemberResponse[] | null>;
|
|
3375
3375
|
getListOrganizationMembersQueryKey: (organizationId: string, params?: ListOrganizationMembersParams) => readonly [`/organizations/${string}/members`, ...ListOrganizationMembersParams[]];
|
|
3376
3376
|
getListOrganizationMembersQueryOptions: <TData = Awaited<ReturnType<typeof listOrganizationMembers>>, TError = unknown>(organizationId: string, params?: ListOrganizationMembersParams, options?: {
|
|
3377
3377
|
query?: Partial<import("@tanstack/react-query").UseQueryOptions<Awaited<ReturnType<typeof listOrganizationMembers>>, TError, TData>>;
|
|
@@ -3386,7 +3386,7 @@ declare class OrganizationsPlugin implements Plugin {
|
|
|
3386
3386
|
queryKey: import("@tanstack/react-query").DataTag<import("@tanstack/react-query").QueryKey, TData, TError>;
|
|
3387
3387
|
};
|
|
3388
3388
|
getAddOrganizationMemberUrl: (organizationId: string) => string;
|
|
3389
|
-
addOrganizationMember: (organizationId: string, addOrganizationMemberRequest?: AddOrganizationMemberRequest, options?:
|
|
3389
|
+
addOrganizationMember: (organizationId: string, addOrganizationMemberRequest?: AddOrganizationMemberRequest, options?: Parameters<typeof customFetch>[1]) => Promise<OrganizationMember>;
|
|
3390
3390
|
getAddOrganizationMemberMutationOptions: <TError = unknown, TContext = unknown>(options?: {
|
|
3391
3391
|
mutation?: import("@tanstack/react-query").UseMutationOptions<Awaited<ReturnType<typeof addOrganizationMember>>, TError, {
|
|
3392
3392
|
organizationId: string;
|
|
@@ -3420,7 +3420,7 @@ declare class OrganizationsPlugin implements Plugin {
|
|
|
3420
3420
|
data?: AddOrganizationMemberRequest;
|
|
3421
3421
|
}, TContext>;
|
|
3422
3422
|
getGetOrganizationMemberByUserIDUrl: (organizationId: string, userId: string) => string;
|
|
3423
|
-
getOrganizationMemberByUserID: (organizationId: string, userId: string, options?:
|
|
3423
|
+
getOrganizationMemberByUserID: (organizationId: string, userId: string, options?: Parameters<typeof customFetch>[1]) => Promise<OrganizationMemberResponse>;
|
|
3424
3424
|
getGetOrganizationMemberByUserIDQueryKey: (organizationId: string, userId: string) => readonly [`/organizations/${string}/members/by-user/${string}`];
|
|
3425
3425
|
getGetOrganizationMemberByUserIDQueryOptions: <TData = Awaited<ReturnType<typeof getOrganizationMemberByUserID>>, TError = unknown>(organizationId: string, userId: string, options?: {
|
|
3426
3426
|
query?: Partial<import("@tanstack/react-query").UseQueryOptions<Awaited<ReturnType<typeof getOrganizationMemberByUserID>>, TError, TData>>;
|
|
@@ -3435,7 +3435,7 @@ declare class OrganizationsPlugin implements Plugin {
|
|
|
3435
3435
|
queryKey: import("@tanstack/react-query").DataTag<import("@tanstack/react-query").QueryKey, TData, TError>;
|
|
3436
3436
|
};
|
|
3437
3437
|
getGetOrganizationMemberUrl: (organizationId: string, memberId: string) => string;
|
|
3438
|
-
getOrganizationMember: (organizationId: string, memberId: string, options?:
|
|
3438
|
+
getOrganizationMember: (organizationId: string, memberId: string, options?: Parameters<typeof customFetch>[1]) => Promise<OrganizationMemberResponse>;
|
|
3439
3439
|
getGetOrganizationMemberQueryKey: (organizationId: string, memberId: string) => readonly [`/organizations/${string}/members/${string}`];
|
|
3440
3440
|
getGetOrganizationMemberQueryOptions: <TData = Awaited<ReturnType<typeof getOrganizationMember>>, TError = unknown>(organizationId: string, memberId: string, options?: {
|
|
3441
3441
|
query?: Partial<import("@tanstack/react-query").UseQueryOptions<Awaited<ReturnType<typeof getOrganizationMember>>, TError, TData>>;
|
|
@@ -3450,7 +3450,7 @@ declare class OrganizationsPlugin implements Plugin {
|
|
|
3450
3450
|
queryKey: import("@tanstack/react-query").DataTag<import("@tanstack/react-query").QueryKey, TData, TError>;
|
|
3451
3451
|
};
|
|
3452
3452
|
getDeleteOrganizationMemberUrl: (organizationId: string, memberId: string) => string;
|
|
3453
|
-
deleteOrganizationMember: (organizationId: string, memberId: string, options?:
|
|
3453
|
+
deleteOrganizationMember: (organizationId: string, memberId: string, options?: Parameters<typeof customFetch>[1]) => Promise<DeleteOrganizationMemberResponse>;
|
|
3454
3454
|
getDeleteOrganizationMemberMutationOptions: <TError = unknown, TContext = unknown>(options?: {
|
|
3455
3455
|
mutation?: import("@tanstack/react-query").UseMutationOptions<Awaited<ReturnType<typeof deleteOrganizationMember>>, TError, {
|
|
3456
3456
|
organizationId: string;
|
|
@@ -3484,7 +3484,7 @@ declare class OrganizationsPlugin implements Plugin {
|
|
|
3484
3484
|
memberId: string;
|
|
3485
3485
|
}, TContext>;
|
|
3486
3486
|
getUpdateOrganizationMemberUrl: (organizationId: string, memberId: string) => string;
|
|
3487
|
-
updateOrganizationMember: (organizationId: string, memberId: string, updateOrganizationMemberRequest?: UpdateOrganizationMemberRequest, options?:
|
|
3487
|
+
updateOrganizationMember: (organizationId: string, memberId: string, updateOrganizationMemberRequest?: UpdateOrganizationMemberRequest, options?: Parameters<typeof customFetch>[1]) => Promise<OrganizationMember>;
|
|
3488
3488
|
getUpdateOrganizationMemberMutationOptions: <TError = unknown, TContext = unknown>(options?: {
|
|
3489
3489
|
mutation?: import("@tanstack/react-query").UseMutationOptions<Awaited<ReturnType<typeof updateOrganizationMember>>, TError, {
|
|
3490
3490
|
organizationId: string;
|
|
@@ -3594,7 +3594,7 @@ declare class OrganizationsPlugin implements Plugin {
|
|
|
3594
3594
|
queryKey: import("@tanstack/react-query").DataTag<import("@tanstack/react-query").QueryKey, TData, TError>;
|
|
3595
3595
|
};
|
|
3596
3596
|
getListOrganizationInvitationsUrl: (organizationId: string) => string;
|
|
3597
|
-
listOrganizationInvitations: (organizationId: string, options?:
|
|
3597
|
+
listOrganizationInvitations: (organizationId: string, options?: Parameters<typeof customFetch>[1]) => Promise<GetOrganizationInvitationResponse[] | null>;
|
|
3598
3598
|
getListOrganizationInvitationsQueryKey: (organizationId: string) => readonly [`/organizations/${string}/invitations`];
|
|
3599
3599
|
getListOrganizationInvitationsQueryOptions: <TData = Awaited<ReturnType<typeof listOrganizationInvitations>>, TError = unknown>(organizationId: string, options?: {
|
|
3600
3600
|
query?: Partial<import("@tanstack/react-query").UseQueryOptions<Awaited<ReturnType<typeof listOrganizationInvitations>>, TError, TData>>;
|
|
@@ -3609,7 +3609,7 @@ declare class OrganizationsPlugin implements Plugin {
|
|
|
3609
3609
|
queryKey: import("@tanstack/react-query").DataTag<import("@tanstack/react-query").QueryKey, TData, TError>;
|
|
3610
3610
|
};
|
|
3611
3611
|
getCreateOrganizationInvitationUrl: (organizationId: string, params?: CreateOrganizationInvitationParams) => string;
|
|
3612
|
-
createOrganizationInvitation: (organizationId: string, createOrganizationInvitationRequest?: CreateOrganizationInvitationRequest, params?: CreateOrganizationInvitationParams, options?:
|
|
3612
|
+
createOrganizationInvitation: (organizationId: string, createOrganizationInvitationRequest?: CreateOrganizationInvitationRequest, params?: CreateOrganizationInvitationParams, options?: Parameters<typeof customFetch>[1]) => Promise<OrganizationInvitation>;
|
|
3613
3613
|
getCreateOrganizationInvitationMutationOptions: <TError = unknown, TContext = unknown>(options?: {
|
|
3614
3614
|
mutation?: import("@tanstack/react-query").UseMutationOptions<Awaited<ReturnType<typeof createOrganizationInvitation>>, TError, {
|
|
3615
3615
|
organizationId: string;
|
|
@@ -3647,7 +3647,7 @@ declare class OrganizationsPlugin implements Plugin {
|
|
|
3647
3647
|
params?: CreateOrganizationInvitationParams;
|
|
3648
3648
|
}, TContext>;
|
|
3649
3649
|
getGetOrganizationInvitationUrl: (organizationId: string, invitationId: string) => string;
|
|
3650
|
-
getOrganizationInvitation: (organizationId: string, invitationId: string, options?:
|
|
3650
|
+
getOrganizationInvitation: (organizationId: string, invitationId: string, options?: Parameters<typeof customFetch>[1]) => Promise<GetOrganizationInvitationResponse>;
|
|
3651
3651
|
getGetOrganizationInvitationQueryKey: (organizationId: string, invitationId: string) => readonly [`/organizations/${string}/invitations/${string}`];
|
|
3652
3652
|
getGetOrganizationInvitationQueryOptions: <TData = Awaited<ReturnType<typeof getOrganizationInvitation>>, TError = unknown>(organizationId: string, invitationId: string, options?: {
|
|
3653
3653
|
query?: Partial<import("@tanstack/react-query").UseQueryOptions<Awaited<ReturnType<typeof getOrganizationInvitation>>, TError, TData>>;
|
|
@@ -3662,7 +3662,7 @@ declare class OrganizationsPlugin implements Plugin {
|
|
|
3662
3662
|
queryKey: import("@tanstack/react-query").DataTag<import("@tanstack/react-query").QueryKey, TData, TError>;
|
|
3663
3663
|
};
|
|
3664
3664
|
getAcceptOrganizationInvitationUrl: (organizationId: string, invitationId: string, params?: AcceptOrganizationInvitationParams) => string;
|
|
3665
|
-
acceptOrganizationInvitation: (organizationId: string, invitationId: string, acceptOrganizationInvitationQuery?: AcceptOrganizationInvitationQuery, params?: AcceptOrganizationInvitationParams, options?:
|
|
3665
|
+
acceptOrganizationInvitation: (organizationId: string, invitationId: string, acceptOrganizationInvitationQuery?: AcceptOrganizationInvitationQuery, params?: AcceptOrganizationInvitationParams, options?: Parameters<typeof customFetch>[1]) => Promise<OrganizationInvitation>;
|
|
3666
3666
|
getAcceptOrganizationInvitationMutationOptions: <TError = unknown, TContext = unknown>(options?: {
|
|
3667
3667
|
mutation?: import("@tanstack/react-query").UseMutationOptions<Awaited<ReturnType<typeof acceptOrganizationInvitation>>, TError, {
|
|
3668
3668
|
organizationId: string;
|
|
@@ -3704,7 +3704,7 @@ declare class OrganizationsPlugin implements Plugin {
|
|
|
3704
3704
|
params?: AcceptOrganizationInvitationParams;
|
|
3705
3705
|
}, TContext>;
|
|
3706
3706
|
getRejectOrganizationInvitationUrl: (organizationId: string, invitationId: string) => string;
|
|
3707
|
-
rejectOrganizationInvitation: (organizationId: string, invitationId: string, options?:
|
|
3707
|
+
rejectOrganizationInvitation: (organizationId: string, invitationId: string, options?: Parameters<typeof customFetch>[1]) => Promise<OrganizationInvitation>;
|
|
3708
3708
|
getRejectOrganizationInvitationMutationOptions: <TError = unknown, TContext = unknown>(options?: {
|
|
3709
3709
|
mutation?: import("@tanstack/react-query").UseMutationOptions<Awaited<ReturnType<typeof rejectOrganizationInvitation>>, TError, {
|
|
3710
3710
|
organizationId: string;
|
|
@@ -3738,7 +3738,7 @@ declare class OrganizationsPlugin implements Plugin {
|
|
|
3738
3738
|
invitationId: string;
|
|
3739
3739
|
}, TContext>;
|
|
3740
3740
|
getRevokeOrganizationInvitationUrl: (organizationId: string, invitationId: string) => string;
|
|
3741
|
-
revokeOrganizationInvitation: (organizationId: string, invitationId: string, options?:
|
|
3741
|
+
revokeOrganizationInvitation: (organizationId: string, invitationId: string, options?: Parameters<typeof customFetch>[1]) => Promise<OrganizationInvitation>;
|
|
3742
3742
|
getRevokeOrganizationInvitationMutationOptions: <TError = unknown, TContext = unknown>(options?: {
|
|
3743
3743
|
mutation?: import("@tanstack/react-query").UseMutationOptions<Awaited<ReturnType<typeof revokeOrganizationInvitation>>, TError, {
|
|
3744
3744
|
organizationId: string;
|
|
@@ -3844,7 +3844,7 @@ declare class OrganizationsPlugin implements Plugin {
|
|
|
3844
3844
|
queryKey: import("@tanstack/react-query").DataTag<import("@tanstack/react-query").QueryKey, TData, TError>;
|
|
3845
3845
|
};
|
|
3846
3846
|
getListOrganizationsUrl: () => string;
|
|
3847
|
-
listOrganizations: (options?:
|
|
3847
|
+
listOrganizations: (options?: Parameters<typeof customFetch>[1]) => Promise<Organization[] | null>;
|
|
3848
3848
|
getListOrganizationsQueryKey: () => readonly ["/organizations"];
|
|
3849
3849
|
getListOrganizationsQueryOptions: <TData = Awaited<ReturnType<typeof listOrganizations>>, TError = unknown>(options?: {
|
|
3850
3850
|
query?: Partial<import("@tanstack/react-query").UseQueryOptions<Awaited<ReturnType<typeof listOrganizations>>, TError, TData>>;
|
|
@@ -3859,7 +3859,7 @@ declare class OrganizationsPlugin implements Plugin {
|
|
|
3859
3859
|
queryKey: import("@tanstack/react-query").DataTag<import("@tanstack/react-query").QueryKey, TData, TError>;
|
|
3860
3860
|
};
|
|
3861
3861
|
getCreateOrganizationUrl: () => string;
|
|
3862
|
-
createOrganization: (createOrganizationRequest?: CreateOrganizationRequest, options?:
|
|
3862
|
+
createOrganization: (createOrganizationRequest?: CreateOrganizationRequest, options?: Parameters<typeof customFetch>[1]) => Promise<Organization>;
|
|
3863
3863
|
getCreateOrganizationMutationOptions: <TError = unknown, TContext = unknown>(options?: {
|
|
3864
3864
|
mutation?: import("@tanstack/react-query").UseMutationOptions<Awaited<ReturnType<typeof createOrganization>>, TError, {
|
|
3865
3865
|
data?: CreateOrganizationRequest;
|
|
@@ -3889,7 +3889,7 @@ declare class OrganizationsPlugin implements Plugin {
|
|
|
3889
3889
|
data?: CreateOrganizationRequest;
|
|
3890
3890
|
}, TContext>;
|
|
3891
3891
|
getGetOrganizationUrl: (organizationId: string) => string;
|
|
3892
|
-
getOrganization: (organizationId: string, options?:
|
|
3892
|
+
getOrganization: (organizationId: string, options?: Parameters<typeof customFetch>[1]) => Promise<Organization>;
|
|
3893
3893
|
getGetOrganizationQueryKey: (organizationId: string) => readonly [`/organizations/${string}`];
|
|
3894
3894
|
getGetOrganizationQueryOptions: <TData = Awaited<ReturnType<typeof getOrganization>>, TError = unknown>(organizationId: string, options?: {
|
|
3895
3895
|
query?: Partial<import("@tanstack/react-query").UseQueryOptions<Awaited<ReturnType<typeof getOrganization>>, TError, TData>>;
|
|
@@ -3904,7 +3904,7 @@ declare class OrganizationsPlugin implements Plugin {
|
|
|
3904
3904
|
queryKey: import("@tanstack/react-query").DataTag<import("@tanstack/react-query").QueryKey, TData, TError>;
|
|
3905
3905
|
};
|
|
3906
3906
|
getDeleteOrganizationUrl: (organizationId: string) => string;
|
|
3907
|
-
deleteOrganization: (organizationId: string, options?:
|
|
3907
|
+
deleteOrganization: (organizationId: string, options?: Parameters<typeof customFetch>[1]) => Promise<DeleteOrganizationResponse>;
|
|
3908
3908
|
getDeleteOrganizationMutationOptions: <TError = unknown, TContext = unknown>(options?: {
|
|
3909
3909
|
mutation?: import("@tanstack/react-query").UseMutationOptions<Awaited<ReturnType<typeof deleteOrganization>>, TError, {
|
|
3910
3910
|
organizationId: string;
|
|
@@ -3934,7 +3934,7 @@ declare class OrganizationsPlugin implements Plugin {
|
|
|
3934
3934
|
organizationId: string;
|
|
3935
3935
|
}, TContext>;
|
|
3936
3936
|
getUpdateOrganizationUrl: (organizationId: string) => string;
|
|
3937
|
-
updateOrganization: (organizationId: string, updateOrganizationRequest?: UpdateOrganizationRequest, options?:
|
|
3937
|
+
updateOrganization: (organizationId: string, updateOrganizationRequest?: UpdateOrganizationRequest, options?: Parameters<typeof customFetch>[1]) => Promise<Organization>;
|
|
3938
3938
|
getUpdateOrganizationMutationOptions: <TError = unknown, TContext = unknown>(options?: {
|
|
3939
3939
|
mutation?: import("@tanstack/react-query").UseMutationOptions<Awaited<ReturnType<typeof updateOrganization>>, TError, {
|
|
3940
3940
|
organizationId: string;
|
|
@@ -3978,7 +3978,7 @@ declare const getDisableTotpUrl: () => string;
|
|
|
3978
3978
|
* Disables TOTP two-factor authentication for the authenticated user.
|
|
3979
3979
|
* @summary Disable TOTP
|
|
3980
3980
|
*/
|
|
3981
|
-
declare const disableTotp: (options?:
|
|
3981
|
+
declare const disableTotp: (options?: Parameters<typeof customFetch>[1]) => Promise<DisableResponse>;
|
|
3982
3982
|
declare const getDisableTotpMutationOptions: <TError = unknown, TContext = unknown>(options?: {
|
|
3983
3983
|
mutation?: UseMutationOptions<Awaited<ReturnType<typeof disableTotp>>, TError, void, TContext>;
|
|
3984
3984
|
request?: SecondParameter<typeof customFetch>;
|
|
@@ -3997,7 +3997,7 @@ declare const getEnableTotpUrl: () => string;
|
|
|
3997
3997
|
* Enables TOTP two-factor authentication for the authenticated user. Returns the TOTP URI and backup codes.
|
|
3998
3998
|
* @summary Enable TOTP
|
|
3999
3999
|
*/
|
|
4000
|
-
declare const enableTotp: (options?:
|
|
4000
|
+
declare const enableTotp: (options?: Parameters<typeof customFetch>[1]) => Promise<EnableResponse>;
|
|
4001
4001
|
declare const getEnableTotpMutationOptions: <TError = unknown, TContext = unknown>(options?: {
|
|
4002
4002
|
mutation?: UseMutationOptions<Awaited<ReturnType<typeof enableTotp>>, TError, void, TContext>;
|
|
4003
4003
|
request?: SecondParameter<typeof customFetch>;
|
|
@@ -4016,7 +4016,7 @@ declare const getGenerateTotpBackupCodesUrl: () => string;
|
|
|
4016
4016
|
* Generates a new set of backup codes for the authenticated user. Previous backup codes are invalidated.
|
|
4017
4017
|
* @summary Generate backup codes
|
|
4018
4018
|
*/
|
|
4019
|
-
declare const generateTotpBackupCodes: (options?:
|
|
4019
|
+
declare const generateTotpBackupCodes: (options?: Parameters<typeof customFetch>[1]) => Promise<GenerateBackupCodesResponse>;
|
|
4020
4020
|
declare const getGenerateTotpBackupCodesMutationOptions: <TError = unknown, TContext = unknown>(options?: {
|
|
4021
4021
|
mutation?: UseMutationOptions<Awaited<ReturnType<typeof generateTotpBackupCodes>>, TError, void, TContext>;
|
|
4022
4022
|
request?: SecondParameter<typeof customFetch>;
|
|
@@ -4035,7 +4035,7 @@ declare const getGetTotpURIUrl: () => string;
|
|
|
4035
4035
|
* Returns the current TOTP URI for the authenticated user's authenticator app configuration.
|
|
4036
4036
|
* @summary Get TOTP URI
|
|
4037
4037
|
*/
|
|
4038
|
-
declare const getTotpURI: (options?:
|
|
4038
|
+
declare const getTotpURI: (options?: Parameters<typeof customFetch>[1]) => Promise<GetTOTPURIResponse>;
|
|
4039
4039
|
declare const getGetTotpURIQueryKey: () => readonly ["/totp/get-uri"];
|
|
4040
4040
|
declare const getGetTotpURIQueryOptions: <TData = Awaited<ReturnType<typeof getTotpURI>>, TError = unknown>(options?: {
|
|
4041
4041
|
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getTotpURI>>, TError, TData>>;
|
|
@@ -4068,7 +4068,7 @@ declare const getVerifyTotpUrl: () => string;
|
|
|
4068
4068
|
* Verifies a TOTP code from the authenticator app and completes authentication. Requires a pending TOTP cookie set during sign-in.
|
|
4069
4069
|
* @summary Verify TOTP code
|
|
4070
4070
|
*/
|
|
4071
|
-
declare const verifyTotp: (verifyTOTPRequest?: VerifyTOTPRequest, options?:
|
|
4071
|
+
declare const verifyTotp: (verifyTOTPRequest?: VerifyTOTPRequest, options?: Parameters<typeof customFetch>[1]) => Promise<VerifyTOTPResponse>;
|
|
4072
4072
|
declare const getVerifyTotpMutationOptions: <TError = unknown, TContext = unknown>(options?: {
|
|
4073
4073
|
mutation?: UseMutationOptions<Awaited<ReturnType<typeof verifyTotp>>, TError, {
|
|
4074
4074
|
data?: VerifyTOTPRequest;
|
|
@@ -4096,7 +4096,7 @@ declare const getVerifyTotpBackupCodeUrl: () => string;
|
|
|
4096
4096
|
* Verifies a backup code as an alternative to TOTP verification. Completes authentication if the code is valid.
|
|
4097
4097
|
* @summary Verify backup code
|
|
4098
4098
|
*/
|
|
4099
|
-
declare const verifyTotpBackupCode: (verifyBackupCodeRequest?: VerifyBackupCodeRequest, options?:
|
|
4099
|
+
declare const verifyTotpBackupCode: (verifyBackupCodeRequest?: VerifyBackupCodeRequest, options?: Parameters<typeof customFetch>[1]) => Promise<VerifyBackupCodeResponse>;
|
|
4100
4100
|
declare const getVerifyTotpBackupCodeMutationOptions: <TError = unknown, TContext = unknown>(options?: {
|
|
4101
4101
|
mutation?: UseMutationOptions<Awaited<ReturnType<typeof verifyTotpBackupCode>>, TError, {
|
|
4102
4102
|
data?: VerifyBackupCodeRequest;
|