import type { CancelablePromise } from '../core/CancelablePromise'; import type { BaseHttpRequest } from '../core/BaseHttpRequest'; export declare class ReleasesService { readonly httpRequest: BaseHttpRequest; constructor(httpRequest: BaseHttpRequest); /** * Create release * @param projectId The unique identifier of the project. * @param requestBody * @returns any Success * @throws ApiError */ createRelease(projectId: string, requestBody: { /** * Name of the release */ name: string; /** * A brief description of the release */ description?: string; /** * The tags included in the release. Leave empty if all */ included_tags?: Array; /** * The language codes included in the release. */ included_language_codes?: Array; }): CancelablePromise<{ /** * The unique identifier of the release */ id: string; /** * The date and time when the release was created */ created_at: string; /** * The user who created the release */ created_by: (string | { email: string; name: string; }); /** * Name of the release */ name: string; /** * A brief description of the release */ description?: string; /** * The total number of keys included in the release */ number_of_keys: number; /** * The tags included in the release. */ included_tags: Array; /** * The language codes included in the release. */ included_language_codes?: Array; /** * Whether the release is the latest release */ is_latest_release: boolean; /** * Hash, when release data is recalculated, this value will change */ hash: string; }>; /** * Get all releases * @param projectId The unique identifier of the project. * @param page * @param pageSize * @returns any Success * @throws ApiError */ getAllReleases(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 release */ id: string; /** * The date and time when the release was created */ created_at: string; /** * The user who created the release */ created_by: (string | { email: string; name: string; }); /** * Name of the release */ name: string; /** * A brief description of the release */ description?: string; /** * The total number of keys included in the release */ number_of_keys: number; /** * The tags included in the release. */ included_tags: Array; /** * The language codes included in the release. */ included_language_codes?: Array; /** * Whether the release is the latest release */ is_latest_release: boolean; /** * Hash, when release data is recalculated, this value will change */ hash: string; }>; }>; /** * Get release * @param projectId The unique identifier of the project. * @param releaseId The unique identifier of the release. * @returns any Success * @throws ApiError */ getRelease(projectId: string, releaseId: string): CancelablePromise<{ /** * The unique identifier of the release */ id: string; /** * The date and time when the release was created */ created_at: string; /** * The user who created the release */ created_by: (string | { email: string; name: string; }); /** * Name of the release */ name: string; /** * A brief description of the release */ description?: string; /** * The total number of keys included in the release */ number_of_keys: number; /** * The tags included in the release. */ included_tags: Array; /** * The language codes included in the release. */ included_language_codes?: Array; /** * Whether the release is the latest release */ is_latest_release: boolean; /** * Hash, when release data is recalculated, this value will change */ hash: string; }>; /** * Update release * @param projectId The unique identifier of the project. * @param releaseId The unique identifier of the release. * @param requestBody * @returns any Success * @throws ApiError */ updateRelease(projectId: string, releaseId: string, requestBody: { /** * The unique identifier of the release */ id: string; /** * Name of the release */ name: string; /** * A brief description of the release */ description?: string; }): CancelablePromise<{ /** * The unique identifier of the release */ id: string; /** * The date and time when the release was created */ created_at: string; /** * The user who created the release */ created_by: (string | { email: string; name: string; }); /** * Name of the release */ name: string; /** * A brief description of the release */ description?: string; /** * The total number of keys included in the release */ number_of_keys: number; /** * The tags included in the release. */ included_tags: Array; /** * The language codes included in the release. */ included_language_codes?: Array; /** * Whether the release is the latest release */ is_latest_release: boolean; /** * Hash, when release data is recalculated, this value will change */ hash: string; }>; /** * Delete release * @param projectId The unique identifier of the project. * @param releaseId The unique identifier of the release. * @returns any Success * @throws ApiError */ deleteRelease(projectId: string, releaseId: string): CancelablePromise; } //# sourceMappingURL=ReleasesService.d.ts.map