import type { CancelablePromise } from '../core/CancelablePromise'; import type { BaseHttpRequest } from '../core/BaseHttpRequest'; export declare class MembersService { readonly httpRequest: BaseHttpRequest; constructor(httpRequest: BaseHttpRequest); /** * Get all members * @param projectId The unique identifier of the project. * @param page * @param pageSize * @returns any Success * @throws ApiError */ getAllMembers(projectId: string, page: number, pageSize: number): CancelablePromise<{ metadata: { fetched_at: string; total_count: number; total_pages: number; current_page: number; page_size: number; }; data: Array<{ /** * The unique identifier of the contributor */ id: string; /** * The role of the contributor in the project */ role: 'view' | 'translator' | 'reviewer' | 'edit_keys' | 'admin'; user: { email: string; name: string; }; /** * The date and time when the contributor was invited the project */ joined_at: string; /** * The user who invited the contributor to the project */ invited_by: { email: string; name: string; }; /** * The date and time when the contributor accepted the invite to the project */ accepted_invite_at?: string; /** * Whether the contributor has accepted the invite to the project */ accepted_invite: boolean; /** * The languages the contributor has access to edit. If empty, the contributor has access to all languages */ access_to_edit_languages: Array; /** * The date and time of the latest activity from the contributor in the project */ last_activity?: string; }>; }>; /** * Create member * @param projectId The unique identifier of the project. * @param requestBody * @returns any Success * @throws ApiError */ createMember(projectId: string, requestBody: { /** * The email of the user to be added as a contributor */ user_email: string; /** * The role of the contributor in the project */ role: 'view' | 'translator' | 'reviewer' | 'edit_keys' | 'admin'; /** * The languages the contributor should have access to edit. If empty, the contributor will have access to all languages */ access_to_edit_languages: Array; }): CancelablePromise<{ /** * The unique identifier of the contributor */ id: string; /** * The role of the contributor in the project */ role: 'view' | 'translator' | 'reviewer' | 'edit_keys' | 'admin'; user: { email: string; name: string; }; /** * The date and time when the contributor was invited the project */ joined_at: string; /** * The user who invited the contributor to the project */ invited_by: { email: string; name: string; }; /** * The date and time when the contributor accepted the invite to the project */ accepted_invite_at?: string; /** * Whether the contributor has accepted the invite to the project */ accepted_invite: boolean; /** * The languages the contributor has access to edit. If empty, the contributor has access to all languages */ access_to_edit_languages: Array; /** * The date and time of the latest activity from the contributor in the project */ last_activity?: string; }>; /** * Get member * @param projectId The unique identifier of the project. * @param memberId The unique identifier of the member. * @returns any Success * @throws ApiError */ getMember(projectId: string, memberId: string): CancelablePromise<{ /** * The unique identifier of the contributor */ id: string; /** * The role of the contributor in the project */ role: 'view' | 'translator' | 'reviewer' | 'edit_keys' | 'admin'; user: { email: string; name: string; }; /** * The date and time when the contributor was invited the project */ joined_at: string; /** * The user who invited the contributor to the project */ invited_by: { email: string; name: string; }; /** * The date and time when the contributor accepted the invite to the project */ accepted_invite_at?: string; /** * Whether the contributor has accepted the invite to the project */ accepted_invite: boolean; /** * The languages the contributor has access to edit. If empty, the contributor has access to all languages */ access_to_edit_languages: Array; /** * The date and time of the latest activity from the contributor in the project */ last_activity?: string; }>; /** * Update member * @param projectId The unique identifier of the project. * @param memberId The unique identifier of the member. * @param requestBody * @returns any Success * @throws ApiError */ updateMember(projectId: string, memberId: string, requestBody: { /** * The role of the contributor in the project */ role: 'view' | 'translator' | 'reviewer' | 'edit_keys' | 'admin'; /** * The languages the contributor should have access to edit. If empty, the contributor will have access to all languages */ access_to_edit_languages: Array; }): CancelablePromise<{ /** * The unique identifier of the contributor */ id: string; /** * The role of the contributor in the project */ role: 'view' | 'translator' | 'reviewer' | 'edit_keys' | 'admin'; user: { email: string; name: string; }; /** * The date and time when the contributor was invited the project */ joined_at: string; /** * The user who invited the contributor to the project */ invited_by: { email: string; name: string; }; /** * The date and time when the contributor accepted the invite to the project */ accepted_invite_at?: string; /** * Whether the contributor has accepted the invite to the project */ accepted_invite: boolean; /** * The languages the contributor has access to edit. If empty, the contributor has access to all languages */ access_to_edit_languages: Array; /** * The date and time of the latest activity from the contributor in the project */ last_activity?: string; }>; /** * Delete member * @param projectId The unique identifier of the project. * @param memberId The unique identifier of the member. * @returns any Success * @throws ApiError */ deleteMember(projectId: string, memberId: string): CancelablePromise; } //# sourceMappingURL=MembersService.d.ts.map