authula 0.7.11 → 0.7.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +0 -24
- package/dist/{index-C-9W0QTR.d.ts → index-cq14Wq4Z.d.ts} +163 -78
- package/dist/index.d.ts +2 -2
- package/dist/plugins/index.d.ts +40 -40
- package/dist/plugins/index.js +53 -38
- package/dist/plugins/index.js.map +1 -1
- package/package.json +2 -2
package/dist/plugins/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $t as
|
|
1
|
+
import { $n as CallbackResponse, $t as GetSessionStateResponse, A as UpdateUserResponse, An as CreateRoleResponse, Bn as CreateOrganizationInvitationRequest, Bt as OrganizationMemberResponse, C as UsersPage, Cn as DeleteApiKeyResponse, Ct as MagicLinkSignInResponse, D as UpsertUserStateRequest, Dn as CreateUserRequest, Dt as ListUsersParams, E as UpsertUserStateResponse, En as CreateUserResponse, Et as MagicLinkExchangeRequest, F as UpdatePermissionResponse, Fn as CreatePermissionRequest, Ft as ListOrganizationTeamsParams, G as UpdateAccountResponse, Gt as ListApiKeysParams, H as UpdateApiKeyResponse, Hn as CreateOrganizationInvitationParams, Ht as ListOrganizationInvitationsResponse, I as UpdatePermissionRequest, In as CreateOrganizationTeamRequest, It as ListOrganizationTeamMembersResponse, J as StopImpersonationResponse, Jn as CheckUserPermissionsResponse, Jt as GetUserPermissionsResponse, K as UpdateAccountRequest, Kn as CreateAccountResponse, L as UpdateOrganizationTeamRequest, Lt as OrganizationTeamMemberResponse, Mn as CreateRoleRequest, Mt as ListOrganizationTeamsResponse, N as UpdateRoleResponse, Nn as CreatePermissionResponse, Nt as OrganizationTeam, O as UpsertSessionStateResponse, Ot as ListOrganizationsResponse, P as UpdateRoleRequest, Pn as Permission, Q as SignUpRequest, Qn as ChangeEmailResponse, Qt as GetTOTPURIResponse, Rn as CreateOrganizationRequest, Rt as ListOrganizationTeamMembersParams, S as VerifyApiKeyRequest, Sn as DeleteOrganizationMemberResponse, St as MagicLinkVerifyResponse, T as UserAccountsResponse, Tn as CreateUserStateRequest, Tt as MagicLinkExchangeResponse, U as UpdateApiKeyRequest, Un as CreateApiKeyResponse, V as UpdateOrganizationMemberRequest, Vt as ListOrganizationMembersParams, Wn as CreateApiKeyRequest, Wt as ListOrganizationInvitationsParams, X as StartImpersonationRequest, Xn as ChangePasswordResponse, Y as StartImpersonationResponse, Yn as CheckUserPermissionsRequest, Yt as UserPermissionInfo, Z as SignUpResponse, Zn as ChangePasswordRequest, Zt as GetUserByIDResponse, _ as VerifyTOTPRequest, _n as DeleteRoleResponse, _t as RefreshTokenRequest, an as GetMeResponse, ar as AssignUserRoleResponse, at as RoleDetails, b as VerifyBackupCodeRequest, bn as DeleteOrganizationTeamMemberResponse, bt as OauthCallbackParams, c as CookieStore, cn as GetApiKeyResponse, ct as RequestPasswordResetRequest, d as AuthulaClient, dn as GenerateBackupCodesResponse, dt as ReplaceUserRolesRequest, en as GetOrganizationInvitationResponse, et as SignOutResponse, fn as EnableResponse, fr as AdminSessionState, ft as ReplaceRolePermissionsRequest, g as VerifyTOTPResponse, gn as DeleteSessionStateResponse, gr as AddOrganizationMemberRequest, gt as RefreshTokenResponse, h as WellKnownJWKSResponse, hn as DeleteUserResponse, hr as AddOrganizationTeamMemberRequest, ht as RemoveRolePermissionResponse, i as customFetch, ir as AuthorizeResponse, it as SendEmailVerificationRequest, j as UpdateUserRequest, jn as Role, jt as ListOrganizationsParams, k as UpsertSessionStateRequest, kn as CreateSessionStateRequest, kt as Organization, ln as GetAllApiKeysResponse, lr as AdminUserState, lt as RequestEmailChangeRequest, m as FetchContext, mn as DeleteUserStateResponse, mr as AddRolePermissionRequest, mt as RemoveUserRoleResponse, nr as BanUserResponse, nt as SignInResponse, on as GetImpersonationByIDResponse, or as AssignUserRoleRequest, ot as RevokeSessionResponse, pn as DisableResponse, pr as AddRolePermissionResponse, pt as ReplaceRolePermissionResponse, q as UnbanUserResponse, qn as CreateAccountRequest, qt as GetUserStateResponse, rn as OrganizationInvitation, rr as BanUserRequest, rt as SignInRequest, sn as Impersonation, st as RevokeSessionRequest, t as ClientWithPlugins, tt as SignOutRequest, u as Plugin, un as GetAccountByIDResponse, ur as AdminUserSession, ut as ReplaceUserRolesResponse, v as VerifyMagicLinkParams, vn as DeletePermissionResponse, vr as AcceptOrganizationInvitationQuery, vt as OrganizationTeamMember, w as UserRoleInfo, wn as DeleteAccountResponse, wt as MagicLinkSignInRequest, x as VerifyApiKeyResponse, xn as DeleteOrganizationResponse, xt as OauthAuthorizeParams, y as VerifyBackupCodeResponse, yn as DeleteOrganizationTeamResponse, yr as AcceptOrganizationInvitationParams, yt as OrganizationMember, z as UpdateOrganizationRequest, zt as ListOrganizationMembersResponse } from "../index-cq14Wq4Z.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 };
|
|
@@ -2734,10 +2734,10 @@ declare class OAuth2Plugin implements Plugin {
|
|
|
2734
2734
|
//#endregion
|
|
2735
2735
|
//#region src/gen/endpoints/organizations/organizations.d.ts
|
|
2736
2736
|
/**
|
|
2737
|
-
* Lists
|
|
2737
|
+
* Lists every organization the authenticated user can access, both the ones they own and the ones they are a member of, newest first. Results are paginated: `page` defaults to 1 and `limit` defaults to 10. `limit` is capped by the server's configured maximum page size, which defaults to 100; a larger value is silently reduced to the cap rather than rejected, and values below the minimum fall back to the defaults. The `pagination` object in the response always reports the values actually applied.
|
|
2738
2738
|
* @summary List organizations
|
|
2739
2739
|
*/
|
|
2740
|
-
declare const listOrganizations: (options?: Parameters<typeof customFetch>[1]) => Promise<
|
|
2740
|
+
declare const listOrganizations: (params?: ListOrganizationsParams, options?: Parameters<typeof customFetch>[1]) => Promise<ListOrganizationsResponse>;
|
|
2741
2741
|
/**
|
|
2742
2742
|
* Creates a new organization with the authenticated user as the owner.
|
|
2743
2743
|
* @summary Create organization
|
|
@@ -2761,10 +2761,10 @@ declare const updateOrganization: (organizationId: string, updateOrganizationReq
|
|
|
2761
2761
|
//#endregion
|
|
2762
2762
|
//#region src/gen/endpoints/organization-invitations/organization-invitations.d.ts
|
|
2763
2763
|
/**
|
|
2764
|
-
* Lists
|
|
2764
|
+
* Lists the invitations for an organization, newest first. Results are paginated: `page` defaults to 1 and `limit` defaults to 10. `limit` is capped by the server's configured maximum page size, which defaults to 100; a larger value is silently reduced to the cap rather than rejected, and values below the minimum fall back to the defaults. The `pagination` object in the response always reports the values actually applied.
|
|
2765
2765
|
* @summary List invitations
|
|
2766
2766
|
*/
|
|
2767
|
-
declare const listOrganizationInvitations: (organizationId: string, options?: Parameters<typeof customFetch>[1]) => Promise<
|
|
2767
|
+
declare const listOrganizationInvitations: (organizationId: string, params?: ListOrganizationInvitationsParams, options?: Parameters<typeof customFetch>[1]) => Promise<ListOrganizationInvitationsResponse>;
|
|
2768
2768
|
/**
|
|
2769
2769
|
* Creates an invitation for a user to join an organization.
|
|
2770
2770
|
* @summary Create invitation
|
|
@@ -2793,10 +2793,10 @@ declare const revokeOrganizationInvitation: (organizationId: string, invitationI
|
|
|
2793
2793
|
//#endregion
|
|
2794
2794
|
//#region src/gen/endpoints/organization-members/organization-members.d.ts
|
|
2795
2795
|
/**
|
|
2796
|
-
* Lists
|
|
2796
|
+
* Lists the members of an organization, newest first. Results are paginated: `page` defaults to 1 and `limit` defaults to 10. `limit` is capped by the server's configured maximum page size, which defaults to 100; a larger value is silently reduced to the cap rather than rejected, and values below the minimum fall back to the defaults. The `pagination` object in the response always reports the values actually applied.
|
|
2797
2797
|
* @summary List members
|
|
2798
2798
|
*/
|
|
2799
|
-
declare const listOrganizationMembers: (organizationId: string, params?: ListOrganizationMembersParams, options?: Parameters<typeof customFetch>[1]) => Promise<
|
|
2799
|
+
declare const listOrganizationMembers: (organizationId: string, params?: ListOrganizationMembersParams, options?: Parameters<typeof customFetch>[1]) => Promise<ListOrganizationMembersResponse>;
|
|
2800
2800
|
/**
|
|
2801
2801
|
* Adds a user as a member of an organization with the specified role.
|
|
2802
2802
|
* @summary Add member
|
|
@@ -2825,10 +2825,10 @@ declare const updateOrganizationMember: (organizationId: string, memberId: strin
|
|
|
2825
2825
|
//#endregion
|
|
2826
2826
|
//#region src/gen/endpoints/organization-teams/organization-teams.d.ts
|
|
2827
2827
|
/**
|
|
2828
|
-
* Lists
|
|
2828
|
+
* Lists the teams within an organization, newest first. Results are paginated: `page` defaults to 1 and `limit` defaults to 10. `limit` is capped by the server's configured maximum page size, which defaults to 100; a larger value is silently reduced to the cap rather than rejected, and values below the minimum fall back to the defaults. The `pagination` object in the response always reports the values actually applied.
|
|
2829
2829
|
* @summary List teams
|
|
2830
2830
|
*/
|
|
2831
|
-
declare const listOrganizationTeams: (organizationId: string, options?: Parameters<typeof customFetch>[1]) => Promise<
|
|
2831
|
+
declare const listOrganizationTeams: (organizationId: string, params?: ListOrganizationTeamsParams, options?: Parameters<typeof customFetch>[1]) => Promise<ListOrganizationTeamsResponse>;
|
|
2832
2832
|
/**
|
|
2833
2833
|
* Creates a new team within an organization.
|
|
2834
2834
|
* @summary Create team
|
|
@@ -2852,10 +2852,10 @@ declare const updateOrganizationTeam: (organizationId: string, teamId: string, u
|
|
|
2852
2852
|
//#endregion
|
|
2853
2853
|
//#region src/gen/endpoints/organization-team-members/organization-team-members.d.ts
|
|
2854
2854
|
/**
|
|
2855
|
-
* Lists
|
|
2855
|
+
* Lists the members of a team, newest first. Results are paginated: `page` defaults to 1 and `limit` defaults to 10. `limit` is capped by the server's configured maximum page size, which defaults to 100; a larger value is silently reduced to the cap rather than rejected, and values below the minimum fall back to the defaults. The `pagination` object in the response always reports the values actually applied.
|
|
2856
2856
|
* @summary List team members
|
|
2857
2857
|
*/
|
|
2858
|
-
declare const listOrganizationTeamMembers: (organizationId: string, teamId: string, params?: ListOrganizationTeamMembersParams, options?: Parameters<typeof customFetch>[1]) => Promise<
|
|
2858
|
+
declare const listOrganizationTeamMembers: (organizationId: string, teamId: string, params?: ListOrganizationTeamMembersParams, options?: Parameters<typeof customFetch>[1]) => Promise<ListOrganizationTeamMembersResponse>;
|
|
2859
2859
|
/**
|
|
2860
2860
|
* Adds a member to a team.
|
|
2861
2861
|
* @summary Add team member
|
|
@@ -2876,7 +2876,7 @@ declare const deleteOrganizationTeamMember: (organizationId: string, teamId: str
|
|
|
2876
2876
|
declare class OrganizationsPlugin implements Plugin {
|
|
2877
2877
|
readonly id = "organizations";
|
|
2878
2878
|
init(client: AuthulaClient): {
|
|
2879
|
-
useListOrganizationTeamMembers<TData =
|
|
2879
|
+
useListOrganizationTeamMembers<TData = ListOrganizationTeamMembersResponse, TError = unknown>(organizationId: string, teamId: string, params: undefined | ListOrganizationTeamMembersParams, options: {
|
|
2880
2880
|
query: Partial<import("@tanstack/react-query").UseQueryOptions<Awaited<ReturnType<typeof listOrganizationTeamMembers>>, TError, TData>> & Pick<import("@tanstack/react-query").DefinedInitialDataOptions<Awaited<ReturnType<typeof listOrganizationTeamMembers>>, TError, Awaited<ReturnType<typeof listOrganizationTeamMembers>>>, "initialData">;
|
|
2881
2881
|
request?: (RequestInit & {
|
|
2882
2882
|
method?: string;
|
|
@@ -2888,7 +2888,7 @@ declare class OrganizationsPlugin implements Plugin {
|
|
|
2888
2888
|
}, queryClient?: import("@tanstack/react-query").QueryClient): import("@tanstack/react-query").DefinedUseQueryResult<TData, TError> & {
|
|
2889
2889
|
queryKey: import("@tanstack/react-query").DataTag<import("@tanstack/react-query").QueryKey, TData, TError>;
|
|
2890
2890
|
};
|
|
2891
|
-
useListOrganizationTeamMembers<TData =
|
|
2891
|
+
useListOrganizationTeamMembers<TData = ListOrganizationTeamMembersResponse, TError = unknown>(organizationId: string, teamId: string, params?: ListOrganizationTeamMembersParams, options?: {
|
|
2892
2892
|
query?: Partial<import("@tanstack/react-query").UseQueryOptions<Awaited<ReturnType<typeof listOrganizationTeamMembers>>, TError, TData>> & Pick<import("@tanstack/react-query").UndefinedInitialDataOptions<Awaited<ReturnType<typeof listOrganizationTeamMembers>>, TError, Awaited<ReturnType<typeof listOrganizationTeamMembers>>>, "initialData">;
|
|
2893
2893
|
request?: (RequestInit & {
|
|
2894
2894
|
method?: string;
|
|
@@ -2900,7 +2900,7 @@ declare class OrganizationsPlugin implements Plugin {
|
|
|
2900
2900
|
}, queryClient?: import("@tanstack/react-query").QueryClient): import("@tanstack/react-query").UseQueryResult<TData, TError> & {
|
|
2901
2901
|
queryKey: import("@tanstack/react-query").DataTag<import("@tanstack/react-query").QueryKey, TData, TError>;
|
|
2902
2902
|
};
|
|
2903
|
-
useListOrganizationTeamMembers<TData =
|
|
2903
|
+
useListOrganizationTeamMembers<TData = ListOrganizationTeamMembersResponse, TError = unknown>(organizationId: string, teamId: string, params?: ListOrganizationTeamMembersParams, options?: {
|
|
2904
2904
|
query?: Partial<import("@tanstack/react-query").UseQueryOptions<Awaited<ReturnType<typeof listOrganizationTeamMembers>>, TError, TData>>;
|
|
2905
2905
|
request?: (RequestInit & {
|
|
2906
2906
|
method?: string;
|
|
@@ -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?: Parameters<typeof customFetch>[1]) => Promise<
|
|
2952
|
+
listOrganizationTeamMembers: (organizationId: string, teamId: string, params?: ListOrganizationTeamMembersParams, options?: Parameters<typeof customFetch>[1]) => Promise<ListOrganizationTeamMembersResponse>;
|
|
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>>;
|
|
@@ -3054,7 +3054,7 @@ declare class OrganizationsPlugin implements Plugin {
|
|
|
3054
3054
|
teamId: string;
|
|
3055
3055
|
memberId: string;
|
|
3056
3056
|
}, TContext>;
|
|
3057
|
-
useListOrganizationTeams<TData =
|
|
3057
|
+
useListOrganizationTeams<TData = ListOrganizationTeamsResponse, TError = unknown>(organizationId: string, params: undefined | ListOrganizationTeamsParams, options: {
|
|
3058
3058
|
query: Partial<import("@tanstack/react-query").UseQueryOptions<Awaited<ReturnType<typeof listOrganizationTeams>>, TError, TData>> & Pick<import("@tanstack/react-query").DefinedInitialDataOptions<Awaited<ReturnType<typeof listOrganizationTeams>>, TError, Awaited<ReturnType<typeof listOrganizationTeams>>>, "initialData">;
|
|
3059
3059
|
request?: (RequestInit & {
|
|
3060
3060
|
method?: string;
|
|
@@ -3066,7 +3066,7 @@ declare class OrganizationsPlugin implements Plugin {
|
|
|
3066
3066
|
}, queryClient?: import("@tanstack/react-query").QueryClient): import("@tanstack/react-query").DefinedUseQueryResult<TData, TError> & {
|
|
3067
3067
|
queryKey: import("@tanstack/react-query").DataTag<import("@tanstack/react-query").QueryKey, TData, TError>;
|
|
3068
3068
|
};
|
|
3069
|
-
useListOrganizationTeams<TData =
|
|
3069
|
+
useListOrganizationTeams<TData = ListOrganizationTeamsResponse, TError = unknown>(organizationId: string, params?: ListOrganizationTeamsParams, options?: {
|
|
3070
3070
|
query?: Partial<import("@tanstack/react-query").UseQueryOptions<Awaited<ReturnType<typeof listOrganizationTeams>>, TError, TData>> & Pick<import("@tanstack/react-query").UndefinedInitialDataOptions<Awaited<ReturnType<typeof listOrganizationTeams>>, TError, Awaited<ReturnType<typeof listOrganizationTeams>>>, "initialData">;
|
|
3071
3071
|
request?: (RequestInit & {
|
|
3072
3072
|
method?: string;
|
|
@@ -3078,7 +3078,7 @@ declare class OrganizationsPlugin implements Plugin {
|
|
|
3078
3078
|
}, queryClient?: import("@tanstack/react-query").QueryClient): import("@tanstack/react-query").UseQueryResult<TData, TError> & {
|
|
3079
3079
|
queryKey: import("@tanstack/react-query").DataTag<import("@tanstack/react-query").QueryKey, TData, TError>;
|
|
3080
3080
|
};
|
|
3081
|
-
useListOrganizationTeams<TData =
|
|
3081
|
+
useListOrganizationTeams<TData = ListOrganizationTeamsResponse, TError = unknown>(organizationId: string, params?: ListOrganizationTeamsParams, options?: {
|
|
3082
3082
|
query?: Partial<import("@tanstack/react-query").UseQueryOptions<Awaited<ReturnType<typeof listOrganizationTeams>>, TError, TData>>;
|
|
3083
3083
|
request?: (RequestInit & {
|
|
3084
3084
|
method?: string;
|
|
@@ -3126,10 +3126,10 @@ declare class OrganizationsPlugin implements Plugin {
|
|
|
3126
3126
|
}, queryClient?: import("@tanstack/react-query").QueryClient): import("@tanstack/react-query").UseQueryResult<TData, TError> & {
|
|
3127
3127
|
queryKey: import("@tanstack/react-query").DataTag<import("@tanstack/react-query").QueryKey, TData, TError>;
|
|
3128
3128
|
};
|
|
3129
|
-
getListOrganizationTeamsUrl: (organizationId: string) => string;
|
|
3130
|
-
listOrganizationTeams: (organizationId: string, options?: Parameters<typeof customFetch>[1]) => Promise<
|
|
3131
|
-
getListOrganizationTeamsQueryKey: (organizationId: string) => readonly [`/organizations/${string}/teams
|
|
3132
|
-
getListOrganizationTeamsQueryOptions: <TData = Awaited<ReturnType<typeof listOrganizationTeams>>, TError = unknown>(organizationId: string, options?: {
|
|
3129
|
+
getListOrganizationTeamsUrl: (organizationId: string, params?: ListOrganizationTeamsParams) => string;
|
|
3130
|
+
listOrganizationTeams: (organizationId: string, params?: ListOrganizationTeamsParams, options?: Parameters<typeof customFetch>[1]) => Promise<ListOrganizationTeamsResponse>;
|
|
3131
|
+
getListOrganizationTeamsQueryKey: (organizationId: string, params?: ListOrganizationTeamsParams) => readonly [`/organizations/${string}/teams`, ...ListOrganizationTeamsParams[]];
|
|
3132
|
+
getListOrganizationTeamsQueryOptions: <TData = Awaited<ReturnType<typeof listOrganizationTeams>>, TError = unknown>(organizationId: string, params?: ListOrganizationTeamsParams, options?: {
|
|
3133
3133
|
query?: Partial<import("@tanstack/react-query").UseQueryOptions<Awaited<ReturnType<typeof listOrganizationTeams>>, TError, TData>>;
|
|
3134
3134
|
request?: (RequestInit & {
|
|
3135
3135
|
method?: string;
|
|
@@ -3262,7 +3262,7 @@ declare class OrganizationsPlugin implements Plugin {
|
|
|
3262
3262
|
teamId: string;
|
|
3263
3263
|
data?: UpdateOrganizationTeamRequest;
|
|
3264
3264
|
}, TContext>;
|
|
3265
|
-
useListOrganizationMembers<TData =
|
|
3265
|
+
useListOrganizationMembers<TData = ListOrganizationMembersResponse, TError = unknown>(organizationId: string, params: undefined | ListOrganizationMembersParams, options: {
|
|
3266
3266
|
query: Partial<import("@tanstack/react-query").UseQueryOptions<Awaited<ReturnType<typeof listOrganizationMembers>>, TError, TData>> & Pick<import("@tanstack/react-query").DefinedInitialDataOptions<Awaited<ReturnType<typeof listOrganizationMembers>>, TError, Awaited<ReturnType<typeof listOrganizationMembers>>>, "initialData">;
|
|
3267
3267
|
request?: (RequestInit & {
|
|
3268
3268
|
method?: string;
|
|
@@ -3274,7 +3274,7 @@ declare class OrganizationsPlugin implements Plugin {
|
|
|
3274
3274
|
}, queryClient?: import("@tanstack/react-query").QueryClient): import("@tanstack/react-query").DefinedUseQueryResult<TData, TError> & {
|
|
3275
3275
|
queryKey: import("@tanstack/react-query").DataTag<import("@tanstack/react-query").QueryKey, TData, TError>;
|
|
3276
3276
|
};
|
|
3277
|
-
useListOrganizationMembers<TData =
|
|
3277
|
+
useListOrganizationMembers<TData = ListOrganizationMembersResponse, TError = unknown>(organizationId: string, params?: ListOrganizationMembersParams, options?: {
|
|
3278
3278
|
query?: Partial<import("@tanstack/react-query").UseQueryOptions<Awaited<ReturnType<typeof listOrganizationMembers>>, TError, TData>> & Pick<import("@tanstack/react-query").UndefinedInitialDataOptions<Awaited<ReturnType<typeof listOrganizationMembers>>, TError, Awaited<ReturnType<typeof listOrganizationMembers>>>, "initialData">;
|
|
3279
3279
|
request?: (RequestInit & {
|
|
3280
3280
|
method?: string;
|
|
@@ -3286,7 +3286,7 @@ declare class OrganizationsPlugin implements Plugin {
|
|
|
3286
3286
|
}, queryClient?: import("@tanstack/react-query").QueryClient): import("@tanstack/react-query").UseQueryResult<TData, TError> & {
|
|
3287
3287
|
queryKey: import("@tanstack/react-query").DataTag<import("@tanstack/react-query").QueryKey, TData, TError>;
|
|
3288
3288
|
};
|
|
3289
|
-
useListOrganizationMembers<TData =
|
|
3289
|
+
useListOrganizationMembers<TData = ListOrganizationMembersResponse, TError = unknown>(organizationId: string, params?: ListOrganizationMembersParams, options?: {
|
|
3290
3290
|
query?: Partial<import("@tanstack/react-query").UseQueryOptions<Awaited<ReturnType<typeof listOrganizationMembers>>, TError, TData>>;
|
|
3291
3291
|
request?: (RequestInit & {
|
|
3292
3292
|
method?: 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?: Parameters<typeof customFetch>[1]) => Promise<
|
|
3374
|
+
listOrganizationMembers: (organizationId: string, params?: ListOrganizationMembersParams, options?: Parameters<typeof customFetch>[1]) => Promise<ListOrganizationMembersResponse>;
|
|
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>>;
|
|
@@ -3521,7 +3521,7 @@ declare class OrganizationsPlugin implements Plugin {
|
|
|
3521
3521
|
memberId: string;
|
|
3522
3522
|
data?: UpdateOrganizationMemberRequest;
|
|
3523
3523
|
}, TContext>;
|
|
3524
|
-
useListOrganizationInvitations<TData =
|
|
3524
|
+
useListOrganizationInvitations<TData = ListOrganizationInvitationsResponse, TError = unknown>(organizationId: string, params: undefined | ListOrganizationInvitationsParams, options: {
|
|
3525
3525
|
query: Partial<import("@tanstack/react-query").UseQueryOptions<Awaited<ReturnType<typeof listOrganizationInvitations>>, TError, TData>> & Pick<import("@tanstack/react-query").DefinedInitialDataOptions<Awaited<ReturnType<typeof listOrganizationInvitations>>, TError, Awaited<ReturnType<typeof listOrganizationInvitations>>>, "initialData">;
|
|
3526
3526
|
request?: (RequestInit & {
|
|
3527
3527
|
method?: string;
|
|
@@ -3533,7 +3533,7 @@ declare class OrganizationsPlugin implements Plugin {
|
|
|
3533
3533
|
}, queryClient?: import("@tanstack/react-query").QueryClient): import("@tanstack/react-query").DefinedUseQueryResult<TData, TError> & {
|
|
3534
3534
|
queryKey: import("@tanstack/react-query").DataTag<import("@tanstack/react-query").QueryKey, TData, TError>;
|
|
3535
3535
|
};
|
|
3536
|
-
useListOrganizationInvitations<TData =
|
|
3536
|
+
useListOrganizationInvitations<TData = ListOrganizationInvitationsResponse, TError = unknown>(organizationId: string, params?: ListOrganizationInvitationsParams, options?: {
|
|
3537
3537
|
query?: Partial<import("@tanstack/react-query").UseQueryOptions<Awaited<ReturnType<typeof listOrganizationInvitations>>, TError, TData>> & Pick<import("@tanstack/react-query").UndefinedInitialDataOptions<Awaited<ReturnType<typeof listOrganizationInvitations>>, TError, Awaited<ReturnType<typeof listOrganizationInvitations>>>, "initialData">;
|
|
3538
3538
|
request?: (RequestInit & {
|
|
3539
3539
|
method?: string;
|
|
@@ -3545,7 +3545,7 @@ declare class OrganizationsPlugin implements Plugin {
|
|
|
3545
3545
|
}, queryClient?: import("@tanstack/react-query").QueryClient): import("@tanstack/react-query").UseQueryResult<TData, TError> & {
|
|
3546
3546
|
queryKey: import("@tanstack/react-query").DataTag<import("@tanstack/react-query").QueryKey, TData, TError>;
|
|
3547
3547
|
};
|
|
3548
|
-
useListOrganizationInvitations<TData =
|
|
3548
|
+
useListOrganizationInvitations<TData = ListOrganizationInvitationsResponse, TError = unknown>(organizationId: string, params?: ListOrganizationInvitationsParams, options?: {
|
|
3549
3549
|
query?: Partial<import("@tanstack/react-query").UseQueryOptions<Awaited<ReturnType<typeof listOrganizationInvitations>>, TError, TData>>;
|
|
3550
3550
|
request?: (RequestInit & {
|
|
3551
3551
|
method?: string;
|
|
@@ -3593,10 +3593,10 @@ declare class OrganizationsPlugin implements Plugin {
|
|
|
3593
3593
|
}, queryClient?: import("@tanstack/react-query").QueryClient): import("@tanstack/react-query").UseQueryResult<TData, TError> & {
|
|
3594
3594
|
queryKey: import("@tanstack/react-query").DataTag<import("@tanstack/react-query").QueryKey, TData, TError>;
|
|
3595
3595
|
};
|
|
3596
|
-
getListOrganizationInvitationsUrl: (organizationId: string) => string;
|
|
3597
|
-
listOrganizationInvitations: (organizationId: string, options?: Parameters<typeof customFetch>[1]) => Promise<
|
|
3598
|
-
getListOrganizationInvitationsQueryKey: (organizationId: string) => readonly [`/organizations/${string}/invitations
|
|
3599
|
-
getListOrganizationInvitationsQueryOptions: <TData = Awaited<ReturnType<typeof listOrganizationInvitations>>, TError = unknown>(organizationId: string, options?: {
|
|
3596
|
+
getListOrganizationInvitationsUrl: (organizationId: string, params?: ListOrganizationInvitationsParams) => string;
|
|
3597
|
+
listOrganizationInvitations: (organizationId: string, params?: ListOrganizationInvitationsParams, options?: Parameters<typeof customFetch>[1]) => Promise<ListOrganizationInvitationsResponse>;
|
|
3598
|
+
getListOrganizationInvitationsQueryKey: (organizationId: string, params?: ListOrganizationInvitationsParams) => readonly [`/organizations/${string}/invitations`, ...ListOrganizationInvitationsParams[]];
|
|
3599
|
+
getListOrganizationInvitationsQueryOptions: <TData = Awaited<ReturnType<typeof listOrganizationInvitations>>, TError = unknown>(organizationId: string, params?: ListOrganizationInvitationsParams, options?: {
|
|
3600
3600
|
query?: Partial<import("@tanstack/react-query").UseQueryOptions<Awaited<ReturnType<typeof listOrganizationInvitations>>, TError, TData>>;
|
|
3601
3601
|
request?: (RequestInit & {
|
|
3602
3602
|
method?: string;
|
|
@@ -3771,7 +3771,7 @@ declare class OrganizationsPlugin implements Plugin {
|
|
|
3771
3771
|
organizationId: string;
|
|
3772
3772
|
invitationId: string;
|
|
3773
3773
|
}, TContext>;
|
|
3774
|
-
useListOrganizations<TData =
|
|
3774
|
+
useListOrganizations<TData = ListOrganizationsResponse, TError = unknown>(params: undefined | ListOrganizationsParams, options: {
|
|
3775
3775
|
query: Partial<import("@tanstack/react-query").UseQueryOptions<Awaited<ReturnType<typeof listOrganizations>>, TError, TData>> & Pick<import("@tanstack/react-query").DefinedInitialDataOptions<Awaited<ReturnType<typeof listOrganizations>>, TError, Awaited<ReturnType<typeof listOrganizations>>>, "initialData">;
|
|
3776
3776
|
request?: (RequestInit & {
|
|
3777
3777
|
method?: string;
|
|
@@ -3783,7 +3783,7 @@ declare class OrganizationsPlugin implements Plugin {
|
|
|
3783
3783
|
}, queryClient?: import("@tanstack/react-query").QueryClient): import("@tanstack/react-query").DefinedUseQueryResult<TData, TError> & {
|
|
3784
3784
|
queryKey: import("@tanstack/react-query").DataTag<import("@tanstack/react-query").QueryKey, TData, TError>;
|
|
3785
3785
|
};
|
|
3786
|
-
useListOrganizations<TData =
|
|
3786
|
+
useListOrganizations<TData = ListOrganizationsResponse, TError = unknown>(params?: ListOrganizationsParams, options?: {
|
|
3787
3787
|
query?: Partial<import("@tanstack/react-query").UseQueryOptions<Awaited<ReturnType<typeof listOrganizations>>, TError, TData>> & Pick<import("@tanstack/react-query").UndefinedInitialDataOptions<Awaited<ReturnType<typeof listOrganizations>>, TError, Awaited<ReturnType<typeof listOrganizations>>>, "initialData">;
|
|
3788
3788
|
request?: (RequestInit & {
|
|
3789
3789
|
method?: string;
|
|
@@ -3795,7 +3795,7 @@ declare class OrganizationsPlugin implements Plugin {
|
|
|
3795
3795
|
}, queryClient?: import("@tanstack/react-query").QueryClient): import("@tanstack/react-query").UseQueryResult<TData, TError> & {
|
|
3796
3796
|
queryKey: import("@tanstack/react-query").DataTag<import("@tanstack/react-query").QueryKey, TData, TError>;
|
|
3797
3797
|
};
|
|
3798
|
-
useListOrganizations<TData =
|
|
3798
|
+
useListOrganizations<TData = ListOrganizationsResponse, TError = unknown>(params?: ListOrganizationsParams, options?: {
|
|
3799
3799
|
query?: Partial<import("@tanstack/react-query").UseQueryOptions<Awaited<ReturnType<typeof listOrganizations>>, TError, TData>>;
|
|
3800
3800
|
request?: (RequestInit & {
|
|
3801
3801
|
method?: string;
|
|
@@ -3843,10 +3843,10 @@ declare class OrganizationsPlugin implements Plugin {
|
|
|
3843
3843
|
}, queryClient?: import("@tanstack/react-query").QueryClient): import("@tanstack/react-query").UseQueryResult<TData, TError> & {
|
|
3844
3844
|
queryKey: import("@tanstack/react-query").DataTag<import("@tanstack/react-query").QueryKey, TData, TError>;
|
|
3845
3845
|
};
|
|
3846
|
-
getListOrganizationsUrl: () => string;
|
|
3847
|
-
listOrganizations: (options?: Parameters<typeof customFetch>[1]) => Promise<
|
|
3848
|
-
getListOrganizationsQueryKey: () => readonly ["/organizations"];
|
|
3849
|
-
getListOrganizationsQueryOptions: <TData = Awaited<ReturnType<typeof listOrganizations>>, TError = unknown>(options?: {
|
|
3846
|
+
getListOrganizationsUrl: (params?: ListOrganizationsParams) => string;
|
|
3847
|
+
listOrganizations: (params?: ListOrganizationsParams, options?: Parameters<typeof customFetch>[1]) => Promise<ListOrganizationsResponse>;
|
|
3848
|
+
getListOrganizationsQueryKey: (params?: ListOrganizationsParams) => readonly ["/organizations", ...ListOrganizationsParams[]];
|
|
3849
|
+
getListOrganizationsQueryOptions: <TData = Awaited<ReturnType<typeof listOrganizations>>, TError = unknown>(params?: ListOrganizationsParams, options?: {
|
|
3850
3850
|
query?: Partial<import("@tanstack/react-query").UseQueryOptions<Awaited<ReturnType<typeof listOrganizations>>, TError, TData>>;
|
|
3851
3851
|
request?: (RequestInit & {
|
|
3852
3852
|
method?: string;
|
package/dist/plugins/index.js
CHANGED
|
@@ -3777,26 +3777,31 @@ const withQueryKey$5 = (query, queryKey) => {
|
|
|
3777
3777
|
}
|
|
3778
3778
|
return result;
|
|
3779
3779
|
};
|
|
3780
|
-
const getListOrganizationsUrl = () => {
|
|
3781
|
-
|
|
3780
|
+
const getListOrganizationsUrl = (params) => {
|
|
3781
|
+
const normalizedParams = new URLSearchParams();
|
|
3782
|
+
Object.entries(params || {}).forEach(([key, value]) => {
|
|
3783
|
+
if (value !== void 0) normalizedParams.append(key, value === null ? "null" : String(value));
|
|
3784
|
+
});
|
|
3785
|
+
const stringifiedParams = normalizedParams.toString();
|
|
3786
|
+
return stringifiedParams.length > 0 ? `/organizations?${stringifiedParams}` : `/organizations`;
|
|
3782
3787
|
};
|
|
3783
3788
|
/**
|
|
3784
|
-
* Lists
|
|
3789
|
+
* Lists every organization the authenticated user can access, both the ones they own and the ones they are a member of, newest first. Results are paginated: `page` defaults to 1 and `limit` defaults to 10. `limit` is capped by the server's configured maximum page size, which defaults to 100; a larger value is silently reduced to the cap rather than rejected, and values below the minimum fall back to the defaults. The `pagination` object in the response always reports the values actually applied.
|
|
3785
3790
|
* @summary List organizations
|
|
3786
3791
|
*/
|
|
3787
|
-
const listOrganizations = async (options) => {
|
|
3788
|
-
return customFetch(getListOrganizationsUrl(), {
|
|
3792
|
+
const listOrganizations = async (params, options) => {
|
|
3793
|
+
return customFetch(getListOrganizationsUrl(params), {
|
|
3789
3794
|
...options,
|
|
3790
3795
|
method: "GET"
|
|
3791
3796
|
});
|
|
3792
3797
|
};
|
|
3793
|
-
const getListOrganizationsQueryKey = () => {
|
|
3794
|
-
return [`/organizations
|
|
3798
|
+
const getListOrganizationsQueryKey = (params) => {
|
|
3799
|
+
return [`/organizations`, ...params ? [params] : []];
|
|
3795
3800
|
};
|
|
3796
|
-
const getListOrganizationsQueryOptions = (options) => {
|
|
3801
|
+
const getListOrganizationsQueryOptions = (params, options) => {
|
|
3797
3802
|
const { query: queryOptions, request: requestOptions } = options ?? {};
|
|
3798
|
-
const queryKey = queryOptions?.queryKey ?? getListOrganizationsQueryKey();
|
|
3799
|
-
const queryFn = ({ signal }) => listOrganizations({
|
|
3803
|
+
const queryKey = queryOptions?.queryKey ?? getListOrganizationsQueryKey(params);
|
|
3804
|
+
const queryFn = ({ signal }) => listOrganizations(params, {
|
|
3800
3805
|
signal,
|
|
3801
3806
|
...requestOptions
|
|
3802
3807
|
});
|
|
@@ -3809,8 +3814,8 @@ const getListOrganizationsQueryOptions = (options) => {
|
|
|
3809
3814
|
/**
|
|
3810
3815
|
* @summary List organizations
|
|
3811
3816
|
*/
|
|
3812
|
-
function useListOrganizations(options, queryClient) {
|
|
3813
|
-
const queryOptions = getListOrganizationsQueryOptions(options);
|
|
3817
|
+
function useListOrganizations(params, options, queryClient) {
|
|
3818
|
+
const queryOptions = getListOrganizationsQueryOptions(params, options);
|
|
3814
3819
|
const query = useQuery(queryOptions, queryClient);
|
|
3815
3820
|
return withQueryKey$5(query, queryOptions.queryKey);
|
|
3816
3821
|
}
|
|
@@ -4025,26 +4030,31 @@ const withQueryKey$4 = (query, queryKey) => {
|
|
|
4025
4030
|
}
|
|
4026
4031
|
return result;
|
|
4027
4032
|
};
|
|
4028
|
-
const getListOrganizationInvitationsUrl = (organizationId) => {
|
|
4029
|
-
|
|
4033
|
+
const getListOrganizationInvitationsUrl = (organizationId, params) => {
|
|
4034
|
+
const normalizedParams = new URLSearchParams();
|
|
4035
|
+
Object.entries(params || {}).forEach(([key, value]) => {
|
|
4036
|
+
if (value !== void 0) normalizedParams.append(key, value === null ? "null" : String(value));
|
|
4037
|
+
});
|
|
4038
|
+
const stringifiedParams = normalizedParams.toString();
|
|
4039
|
+
return stringifiedParams.length > 0 ? `/organizations/${organizationId}/invitations?${stringifiedParams}` : `/organizations/${organizationId}/invitations`;
|
|
4030
4040
|
};
|
|
4031
4041
|
/**
|
|
4032
|
-
* Lists
|
|
4042
|
+
* Lists the invitations for an organization, newest first. Results are paginated: `page` defaults to 1 and `limit` defaults to 10. `limit` is capped by the server's configured maximum page size, which defaults to 100; a larger value is silently reduced to the cap rather than rejected, and values below the minimum fall back to the defaults. The `pagination` object in the response always reports the values actually applied.
|
|
4033
4043
|
* @summary List invitations
|
|
4034
4044
|
*/
|
|
4035
|
-
const listOrganizationInvitations = async (organizationId, options) => {
|
|
4036
|
-
return customFetch(getListOrganizationInvitationsUrl(organizationId), {
|
|
4045
|
+
const listOrganizationInvitations = async (organizationId, params, options) => {
|
|
4046
|
+
return customFetch(getListOrganizationInvitationsUrl(organizationId, params), {
|
|
4037
4047
|
...options,
|
|
4038
4048
|
method: "GET"
|
|
4039
4049
|
});
|
|
4040
4050
|
};
|
|
4041
|
-
const getListOrganizationInvitationsQueryKey = (organizationId) => {
|
|
4042
|
-
return [`/organizations/${organizationId}/invitations
|
|
4051
|
+
const getListOrganizationInvitationsQueryKey = (organizationId, params) => {
|
|
4052
|
+
return [`/organizations/${organizationId}/invitations`, ...params ? [params] : []];
|
|
4043
4053
|
};
|
|
4044
|
-
const getListOrganizationInvitationsQueryOptions = (organizationId, options) => {
|
|
4054
|
+
const getListOrganizationInvitationsQueryOptions = (organizationId, params, options) => {
|
|
4045
4055
|
const { query: queryOptions, request: requestOptions } = options ?? {};
|
|
4046
|
-
const queryKey = queryOptions?.queryKey ?? getListOrganizationInvitationsQueryKey(organizationId);
|
|
4047
|
-
const queryFn = ({ signal }) => listOrganizationInvitations(organizationId, {
|
|
4056
|
+
const queryKey = queryOptions?.queryKey ?? getListOrganizationInvitationsQueryKey(organizationId, params);
|
|
4057
|
+
const queryFn = ({ signal }) => listOrganizationInvitations(organizationId, params, {
|
|
4048
4058
|
signal,
|
|
4049
4059
|
...requestOptions
|
|
4050
4060
|
});
|
|
@@ -4058,8 +4068,8 @@ const getListOrganizationInvitationsQueryOptions = (organizationId, options) =>
|
|
|
4058
4068
|
/**
|
|
4059
4069
|
* @summary List invitations
|
|
4060
4070
|
*/
|
|
4061
|
-
function useListOrganizationInvitations(organizationId, options, queryClient) {
|
|
4062
|
-
const queryOptions = getListOrganizationInvitationsQueryOptions(organizationId, options);
|
|
4071
|
+
function useListOrganizationInvitations(organizationId, params, options, queryClient) {
|
|
4072
|
+
const queryOptions = getListOrganizationInvitationsQueryOptions(organizationId, params, options);
|
|
4063
4073
|
const query = useQuery(queryOptions, queryClient);
|
|
4064
4074
|
return withQueryKey$4(query, queryOptions.queryKey);
|
|
4065
4075
|
}
|
|
@@ -4334,7 +4344,7 @@ const getListOrganizationMembersUrl = (organizationId, params) => {
|
|
|
4334
4344
|
return stringifiedParams.length > 0 ? `/organizations/${organizationId}/members?${stringifiedParams}` : `/organizations/${organizationId}/members`;
|
|
4335
4345
|
};
|
|
4336
4346
|
/**
|
|
4337
|
-
* Lists
|
|
4347
|
+
* Lists the members of an organization, newest first. Results are paginated: `page` defaults to 1 and `limit` defaults to 10. `limit` is capped by the server's configured maximum page size, which defaults to 100; a larger value is silently reduced to the cap rather than rejected, and values below the minimum fall back to the defaults. The `pagination` object in the response always reports the values actually applied.
|
|
4338
4348
|
* @summary List members
|
|
4339
4349
|
*/
|
|
4340
4350
|
const listOrganizationMembers = async (organizationId, params, options) => {
|
|
@@ -4613,26 +4623,31 @@ const withQueryKey$2 = (query, queryKey) => {
|
|
|
4613
4623
|
}
|
|
4614
4624
|
return result;
|
|
4615
4625
|
};
|
|
4616
|
-
const getListOrganizationTeamsUrl = (organizationId) => {
|
|
4617
|
-
|
|
4626
|
+
const getListOrganizationTeamsUrl = (organizationId, params) => {
|
|
4627
|
+
const normalizedParams = new URLSearchParams();
|
|
4628
|
+
Object.entries(params || {}).forEach(([key, value]) => {
|
|
4629
|
+
if (value !== void 0) normalizedParams.append(key, value === null ? "null" : String(value));
|
|
4630
|
+
});
|
|
4631
|
+
const stringifiedParams = normalizedParams.toString();
|
|
4632
|
+
return stringifiedParams.length > 0 ? `/organizations/${organizationId}/teams?${stringifiedParams}` : `/organizations/${organizationId}/teams`;
|
|
4618
4633
|
};
|
|
4619
4634
|
/**
|
|
4620
|
-
* Lists
|
|
4635
|
+
* Lists the teams within an organization, newest first. Results are paginated: `page` defaults to 1 and `limit` defaults to 10. `limit` is capped by the server's configured maximum page size, which defaults to 100; a larger value is silently reduced to the cap rather than rejected, and values below the minimum fall back to the defaults. The `pagination` object in the response always reports the values actually applied.
|
|
4621
4636
|
* @summary List teams
|
|
4622
4637
|
*/
|
|
4623
|
-
const listOrganizationTeams = async (organizationId, options) => {
|
|
4624
|
-
return customFetch(getListOrganizationTeamsUrl(organizationId), {
|
|
4638
|
+
const listOrganizationTeams = async (organizationId, params, options) => {
|
|
4639
|
+
return customFetch(getListOrganizationTeamsUrl(organizationId, params), {
|
|
4625
4640
|
...options,
|
|
4626
4641
|
method: "GET"
|
|
4627
4642
|
});
|
|
4628
4643
|
};
|
|
4629
|
-
const getListOrganizationTeamsQueryKey = (organizationId) => {
|
|
4630
|
-
return [`/organizations/${organizationId}/teams
|
|
4644
|
+
const getListOrganizationTeamsQueryKey = (organizationId, params) => {
|
|
4645
|
+
return [`/organizations/${organizationId}/teams`, ...params ? [params] : []];
|
|
4631
4646
|
};
|
|
4632
|
-
const getListOrganizationTeamsQueryOptions = (organizationId, options) => {
|
|
4647
|
+
const getListOrganizationTeamsQueryOptions = (organizationId, params, options) => {
|
|
4633
4648
|
const { query: queryOptions, request: requestOptions } = options ?? {};
|
|
4634
|
-
const queryKey = queryOptions?.queryKey ?? getListOrganizationTeamsQueryKey(organizationId);
|
|
4635
|
-
const queryFn = ({ signal }) => listOrganizationTeams(organizationId, {
|
|
4649
|
+
const queryKey = queryOptions?.queryKey ?? getListOrganizationTeamsQueryKey(organizationId, params);
|
|
4650
|
+
const queryFn = ({ signal }) => listOrganizationTeams(organizationId, params, {
|
|
4636
4651
|
signal,
|
|
4637
4652
|
...requestOptions
|
|
4638
4653
|
});
|
|
@@ -4646,8 +4661,8 @@ const getListOrganizationTeamsQueryOptions = (organizationId, options) => {
|
|
|
4646
4661
|
/**
|
|
4647
4662
|
* @summary List teams
|
|
4648
4663
|
*/
|
|
4649
|
-
function useListOrganizationTeams(organizationId, options, queryClient) {
|
|
4650
|
-
const queryOptions = getListOrganizationTeamsQueryOptions(organizationId, options);
|
|
4664
|
+
function useListOrganizationTeams(organizationId, params, options, queryClient) {
|
|
4665
|
+
const queryOptions = getListOrganizationTeamsQueryOptions(organizationId, params, options);
|
|
4651
4666
|
const query = useQuery(queryOptions, queryClient);
|
|
4652
4667
|
return withQueryKey$2(query, queryOptions.queryKey);
|
|
4653
4668
|
}
|
|
@@ -4863,7 +4878,7 @@ const getListOrganizationTeamMembersUrl = (organizationId, teamId, params) => {
|
|
|
4863
4878
|
return stringifiedParams.length > 0 ? `/organizations/${organizationId}/teams/${teamId}/members?${stringifiedParams}` : `/organizations/${organizationId}/teams/${teamId}/members`;
|
|
4864
4879
|
};
|
|
4865
4880
|
/**
|
|
4866
|
-
* Lists
|
|
4881
|
+
* Lists the members of a team, newest first. Results are paginated: `page` defaults to 1 and `limit` defaults to 10. `limit` is capped by the server's configured maximum page size, which defaults to 100; a larger value is silently reduced to the cap rather than rejected, and values below the minimum fall back to the defaults. The `pagination` object in the response always reports the values actually applied.
|
|
4867
4882
|
* @summary List team members
|
|
4868
4883
|
*/
|
|
4869
4884
|
const listOrganizationTeamMembers = async (organizationId, teamId, params, options) => {
|