import type { CancelablePromise } from '../core/CancelablePromise'; import type { BaseHttpRequest } from '../core/BaseHttpRequest'; export declare class WebhooksService { readonly httpRequest: BaseHttpRequest; constructor(httpRequest: BaseHttpRequest); /** * Create webhook * @param projectId The unique identifier of the project. * @param requestBody * @returns any Success * @throws ApiError */ createWebhook(projectId: string, requestBody: { /** * The name of the webhook */ name: string; /** * The base URL of the webhook */ base_url: string; /** * An optional extra parameter that will be sent along as header to the webhook */ x_api_key: string; use_new_languages?: boolean; use_updated_languages?: boolean; use_deleted_languages?: boolean; use_new_translations?: boolean; use_updated_translations?: boolean; use_reviewed_translations?: boolean; use_deleted_translations?: boolean; use_new_glossary?: boolean; use_updated_glossary?: boolean; use_deleted_glossary?: boolean; use_new_key?: boolean; use_updated_key?: boolean; use_deleted_key?: boolean; use_new_tasks?: boolean; use_updated_tasks?: boolean; use_deleted_tasks?: boolean; use_completed_tasks?: boolean; use_new_screenshots?: boolean; use_updated_screenshots?: boolean; use_deleted_screenshots?: boolean; use_new_contributors?: boolean; use_updated_contributors?: boolean; use_deleted_contributors?: boolean; use_new_tags?: boolean; use_updated_tags?: boolean; use_deleted_tags?: boolean; use_settings_changed?: boolean; new_languages_path?: string; updated_languages_path?: string; deleted_languages_path?: string; new_translations_path?: string; updated_translations_path?: string; reviewed_translations_path?: string; deleted_translations_path?: string; new_glossary_path?: string; updated_glossary_path?: string; deleted_glossary_path?: string; new_key_path?: string; updated_key_path?: string; deleted_key_path?: string; new_tasks_path?: string; updated_tasks_path?: string; deleted_tasks_path?: string; completed_tasks_path?: string; new_screenshots_path?: string; updated_screenshots_path?: string; deleted_screenshots_path?: string; new_contributors_path?: string; updated_contributors_path?: string; deleted_contributors_path?: string; new_tags_path?: string; updated_tags_path?: string; deleted_tags_path?: string; settings_changed_path?: string; use_new_release?: boolean; use_updated_release?: boolean; use_deleted_release?: boolean; use_new_otaa_environment?: boolean; use_updated_otaa_environment?: boolean; use_deleted_otaa_environment?: boolean; new_release_path?: string; updated_release_path?: string; deleted_release_path?: string; new_otaa_environment_path?: string; updated_otaa_environment_path?: string; deleted_otaa_environment_path?: string; use_download_project?: boolean; download_project_path?: string; }): CancelablePromise<{ /** * The unique identifier of the webhook */ id: string; /** * The name of the webhook */ name: string; /** * The base URL of the webhook */ base_url: string; /** * The date and time when the webhook was created */ created_at: string; /** * The user who created the webhook */ created_by: { email: string; name: string; }; /** * An optional extra parameter that will be sent along as header to the webhook */ x_api_key: string; latest_request?: string; use_new_languages?: boolean; use_updated_languages?: boolean; use_deleted_languages?: boolean; use_new_translations?: boolean; use_updated_translations?: boolean; use_reviewed_translations?: boolean; use_deleted_translations?: boolean; use_new_glossary?: boolean; use_updated_glossary?: boolean; use_deleted_glossary?: boolean; use_new_key?: boolean; use_updated_key?: boolean; use_deleted_key?: boolean; use_new_tasks?: boolean; use_updated_tasks?: boolean; use_deleted_tasks?: boolean; use_completed_tasks?: boolean; use_new_screenshots?: boolean; use_updated_screenshots?: boolean; use_deleted_screenshots?: boolean; use_new_contributors?: boolean; use_updated_contributors?: boolean; use_deleted_contributors?: boolean; use_new_tags?: boolean; use_updated_tags?: boolean; use_deleted_tags?: boolean; use_settings_changed?: boolean; new_languages_path?: string; updated_languages_path?: string; deleted_languages_path?: string; new_translations_path?: string; updated_translations_path?: string; reviewed_translations_path?: string; deleted_translations_path?: string; new_glossary_path?: string; updated_glossary_path?: string; deleted_glossary_path?: string; new_key_path?: string; updated_key_path?: string; deleted_key_path?: string; new_tasks_path?: string; updated_tasks_path?: string; deleted_tasks_path?: string; completed_tasks_path?: string; new_screenshots_path?: string; updated_screenshots_path?: string; deleted_screenshots_path?: string; new_contributors_path?: string; updated_contributors_path?: string; deleted_contributors_path?: string; new_tags_path?: string; updated_tags_path?: string; deleted_tags_path?: string; settings_changed_path?: string; use_new_release?: boolean; use_updated_release?: boolean; use_deleted_release?: boolean; use_new_otaa_environment?: boolean; use_updated_otaa_environment?: boolean; use_deleted_otaa_environment?: boolean; new_release_path?: string; updated_release_path?: string; deleted_release_path?: string; new_otaa_environment_path?: string; updated_otaa_environment_path?: string; deleted_otaa_environment_path?: string; use_download_project?: boolean; download_project_path?: string; }>; /** * Get all webhooks * @param projectId The unique identifier of the project. * @param page * @param pageSize * @returns any Success * @throws ApiError */ getAllWebhooks(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 webhook */ id: string; /** * The name of the webhook */ name: string; /** * The base URL of the webhook */ base_url: string; /** * The date and time when the webhook was created */ created_at: string; /** * The user who created the webhook */ created_by: { email: string; name: string; }; /** * An optional extra parameter that will be sent along as header to the webhook */ x_api_key: string; latest_request?: string; use_new_languages?: boolean; use_updated_languages?: boolean; use_deleted_languages?: boolean; use_new_translations?: boolean; use_updated_translations?: boolean; use_reviewed_translations?: boolean; use_deleted_translations?: boolean; use_new_glossary?: boolean; use_updated_glossary?: boolean; use_deleted_glossary?: boolean; use_new_key?: boolean; use_updated_key?: boolean; use_deleted_key?: boolean; use_new_tasks?: boolean; use_updated_tasks?: boolean; use_deleted_tasks?: boolean; use_completed_tasks?: boolean; use_new_screenshots?: boolean; use_updated_screenshots?: boolean; use_deleted_screenshots?: boolean; use_new_contributors?: boolean; use_updated_contributors?: boolean; use_deleted_contributors?: boolean; use_new_tags?: boolean; use_updated_tags?: boolean; use_deleted_tags?: boolean; use_settings_changed?: boolean; new_languages_path?: string; updated_languages_path?: string; deleted_languages_path?: string; new_translations_path?: string; updated_translations_path?: string; reviewed_translations_path?: string; deleted_translations_path?: string; new_glossary_path?: string; updated_glossary_path?: string; deleted_glossary_path?: string; new_key_path?: string; updated_key_path?: string; deleted_key_path?: string; new_tasks_path?: string; updated_tasks_path?: string; deleted_tasks_path?: string; completed_tasks_path?: string; new_screenshots_path?: string; updated_screenshots_path?: string; deleted_screenshots_path?: string; new_contributors_path?: string; updated_contributors_path?: string; deleted_contributors_path?: string; new_tags_path?: string; updated_tags_path?: string; deleted_tags_path?: string; settings_changed_path?: string; use_new_release?: boolean; use_updated_release?: boolean; use_deleted_release?: boolean; use_new_otaa_environment?: boolean; use_updated_otaa_environment?: boolean; use_deleted_otaa_environment?: boolean; new_release_path?: string; updated_release_path?: string; deleted_release_path?: string; new_otaa_environment_path?: string; updated_otaa_environment_path?: string; deleted_otaa_environment_path?: string; use_download_project?: boolean; download_project_path?: string; }>; }>; /** * Get webhook * @param projectId The unique identifier of the project. * @param webhookId The unique identifier of the webhook. * @returns any Success * @throws ApiError */ getWebhook(projectId: string, webhookId: string): CancelablePromise<{ /** * The unique identifier of the webhook */ id: string; /** * The name of the webhook */ name: string; /** * The base URL of the webhook */ base_url: string; /** * The date and time when the webhook was created */ created_at: string; /** * The user who created the webhook */ created_by: { email: string; name: string; }; /** * An optional extra parameter that will be sent along as header to the webhook */ x_api_key: string; latest_request?: string; use_new_languages?: boolean; use_updated_languages?: boolean; use_deleted_languages?: boolean; use_new_translations?: boolean; use_updated_translations?: boolean; use_reviewed_translations?: boolean; use_deleted_translations?: boolean; use_new_glossary?: boolean; use_updated_glossary?: boolean; use_deleted_glossary?: boolean; use_new_key?: boolean; use_updated_key?: boolean; use_deleted_key?: boolean; use_new_tasks?: boolean; use_updated_tasks?: boolean; use_deleted_tasks?: boolean; use_completed_tasks?: boolean; use_new_screenshots?: boolean; use_updated_screenshots?: boolean; use_deleted_screenshots?: boolean; use_new_contributors?: boolean; use_updated_contributors?: boolean; use_deleted_contributors?: boolean; use_new_tags?: boolean; use_updated_tags?: boolean; use_deleted_tags?: boolean; use_settings_changed?: boolean; new_languages_path?: string; updated_languages_path?: string; deleted_languages_path?: string; new_translations_path?: string; updated_translations_path?: string; reviewed_translations_path?: string; deleted_translations_path?: string; new_glossary_path?: string; updated_glossary_path?: string; deleted_glossary_path?: string; new_key_path?: string; updated_key_path?: string; deleted_key_path?: string; new_tasks_path?: string; updated_tasks_path?: string; deleted_tasks_path?: string; completed_tasks_path?: string; new_screenshots_path?: string; updated_screenshots_path?: string; deleted_screenshots_path?: string; new_contributors_path?: string; updated_contributors_path?: string; deleted_contributors_path?: string; new_tags_path?: string; updated_tags_path?: string; deleted_tags_path?: string; settings_changed_path?: string; use_new_release?: boolean; use_updated_release?: boolean; use_deleted_release?: boolean; use_new_otaa_environment?: boolean; use_updated_otaa_environment?: boolean; use_deleted_otaa_environment?: boolean; new_release_path?: string; updated_release_path?: string; deleted_release_path?: string; new_otaa_environment_path?: string; updated_otaa_environment_path?: string; deleted_otaa_environment_path?: string; use_download_project?: boolean; download_project_path?: string; }>; /** * Update webhook * @param projectId The unique identifier of the project. * @param webhookId The unique identifier of the webhook. * @param requestBody * @returns any Success * @throws ApiError */ updateWebhook(projectId: string, webhookId: string, requestBody: { /** * The name of the webhook */ name: string; /** * The base URL of the webhook */ base_url: string; /** * An optional extra parameter that will be sent along as header to the webhook */ x_api_key: string; use_new_languages?: boolean; use_updated_languages?: boolean; use_deleted_languages?: boolean; use_new_translations?: boolean; use_updated_translations?: boolean; use_reviewed_translations?: boolean; use_deleted_translations?: boolean; use_new_glossary?: boolean; use_updated_glossary?: boolean; use_deleted_glossary?: boolean; use_new_key?: boolean; use_updated_key?: boolean; use_deleted_key?: boolean; use_new_tasks?: boolean; use_updated_tasks?: boolean; use_deleted_tasks?: boolean; use_completed_tasks?: boolean; use_new_screenshots?: boolean; use_updated_screenshots?: boolean; use_deleted_screenshots?: boolean; use_new_contributors?: boolean; use_updated_contributors?: boolean; use_deleted_contributors?: boolean; use_new_tags?: boolean; use_updated_tags?: boolean; use_deleted_tags?: boolean; use_settings_changed?: boolean; new_languages_path?: string; updated_languages_path?: string; deleted_languages_path?: string; new_translations_path?: string; updated_translations_path?: string; reviewed_translations_path?: string; deleted_translations_path?: string; new_glossary_path?: string; updated_glossary_path?: string; deleted_glossary_path?: string; new_key_path?: string; updated_key_path?: string; deleted_key_path?: string; new_tasks_path?: string; updated_tasks_path?: string; deleted_tasks_path?: string; completed_tasks_path?: string; new_screenshots_path?: string; updated_screenshots_path?: string; deleted_screenshots_path?: string; new_contributors_path?: string; updated_contributors_path?: string; deleted_contributors_path?: string; new_tags_path?: string; updated_tags_path?: string; deleted_tags_path?: string; settings_changed_path?: string; use_new_release?: boolean; use_updated_release?: boolean; use_deleted_release?: boolean; use_new_otaa_environment?: boolean; use_updated_otaa_environment?: boolean; use_deleted_otaa_environment?: boolean; new_release_path?: string; updated_release_path?: string; deleted_release_path?: string; new_otaa_environment_path?: string; updated_otaa_environment_path?: string; deleted_otaa_environment_path?: string; use_download_project?: boolean; download_project_path?: string; }): CancelablePromise<{ /** * The name of the webhook */ name: string; /** * The base URL of the webhook */ base_url: string; /** * An optional extra parameter that will be sent along as header to the webhook */ x_api_key: string; use_new_languages?: boolean; use_updated_languages?: boolean; use_deleted_languages?: boolean; use_new_translations?: boolean; use_updated_translations?: boolean; use_reviewed_translations?: boolean; use_deleted_translations?: boolean; use_new_glossary?: boolean; use_updated_glossary?: boolean; use_deleted_glossary?: boolean; use_new_key?: boolean; use_updated_key?: boolean; use_deleted_key?: boolean; use_new_tasks?: boolean; use_updated_tasks?: boolean; use_deleted_tasks?: boolean; use_completed_tasks?: boolean; use_new_screenshots?: boolean; use_updated_screenshots?: boolean; use_deleted_screenshots?: boolean; use_new_contributors?: boolean; use_updated_contributors?: boolean; use_deleted_contributors?: boolean; use_new_tags?: boolean; use_updated_tags?: boolean; use_deleted_tags?: boolean; use_settings_changed?: boolean; new_languages_path?: string; updated_languages_path?: string; deleted_languages_path?: string; new_translations_path?: string; updated_translations_path?: string; reviewed_translations_path?: string; deleted_translations_path?: string; new_glossary_path?: string; updated_glossary_path?: string; deleted_glossary_path?: string; new_key_path?: string; updated_key_path?: string; deleted_key_path?: string; new_tasks_path?: string; updated_tasks_path?: string; deleted_tasks_path?: string; completed_tasks_path?: string; new_screenshots_path?: string; updated_screenshots_path?: string; deleted_screenshots_path?: string; new_contributors_path?: string; updated_contributors_path?: string; deleted_contributors_path?: string; new_tags_path?: string; updated_tags_path?: string; deleted_tags_path?: string; settings_changed_path?: string; use_new_release?: boolean; use_updated_release?: boolean; use_deleted_release?: boolean; use_new_otaa_environment?: boolean; use_updated_otaa_environment?: boolean; use_deleted_otaa_environment?: boolean; new_release_path?: string; updated_release_path?: string; deleted_release_path?: string; new_otaa_environment_path?: string; updated_otaa_environment_path?: string; deleted_otaa_environment_path?: string; use_download_project?: boolean; download_project_path?: string; }>; /** * Delete webhook * @param projectId The unique identifier of the project. * @param webhookId The unique identifier of the webhook. * @returns any Success * @throws ApiError */ deleteWebhook(projectId: string, webhookId: string): CancelablePromise; } //# sourceMappingURL=WebhooksService.d.ts.map