/** * The Jira Cloud platform REST API * Jira Cloud platform REST API documentation * * The version of the OpenAPI document: 1001.0.0-SNAPSHOT * Contact: ecosystem@atlassian.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ import * as runtime from '../runtime'; import { ContainerForRegisteredWebhooks, ContainerForWebhookIDs, PageBeanWebhook, WebhookRegistrationDetails, WebhooksExpirationDate } from '../models'; export interface DeleteWebhookByIdRequest { ContainerForWebhookIDs: ContainerForWebhookIDs; } export interface GetDynamicWebhooksForAppRequest { startAt?: number; maxResults?: number; } export interface RefreshWebhooksRequest { ContainerForWebhookIDs: ContainerForWebhookIDs; } export interface RegisterDynamicWebhooksRequest { WebhookRegistrationDetails: WebhookRegistrationDetails; } /** * no description */ export declare class WebhooksApi extends runtime.BaseAPI { /** * Removes webhooks by ID. Only webhooks registered by the calling Connect app are removed. If webhooks created by other apps are specified, they are ignored. **[Permissions](#permissions) required:** Only [Connect apps](https://developer.atlassian.com/cloud/jira/platform/integrating-with-jira-cloud/#atlassian-connect) can use this operation. * Delete webhooks by ID */ deleteWebhookByIdRaw(requestParameters: DeleteWebhookByIdRequest): Promise>; /** * Removes webhooks by ID. Only webhooks registered by the calling Connect app are removed. If webhooks created by other apps are specified, they are ignored. **[Permissions](#permissions) required:** Only [Connect apps](https://developer.atlassian.com/cloud/jira/platform/integrating-with-jira-cloud/#atlassian-connect) can use this operation. * Delete webhooks by ID */ deleteWebhookById(requestParameters: DeleteWebhookByIdRequest): Promise; /** * Returns the webhooks registered by the calling app. **[Permissions](#permissions) required:** Only [Connect apps](https://developer.atlassian.com/cloud/jira/platform/integrating-with-jira-cloud/#atlassian-connect) can use this operation. * Get dynamic webhooks for app */ getDynamicWebhooksForAppRaw(requestParameters: GetDynamicWebhooksForAppRequest): Promise>; /** * Returns the webhooks registered by the calling app. **[Permissions](#permissions) required:** Only [Connect apps](https://developer.atlassian.com/cloud/jira/platform/integrating-with-jira-cloud/#atlassian-connect) can use this operation. * Get dynamic webhooks for app */ getDynamicWebhooksForApp(requestParameters: GetDynamicWebhooksForAppRequest): Promise; /** * Webhooks registered through the REST API expire after 30 days. Call this resource periodically to keep them alive. Unrecognized webhook IDs (nonexistent or belonging to other apps) are ignored. **[Permissions](#permissions) required:** Only [Connect apps](https://developer.atlassian.com/cloud/jira/platform/integrating-with-jira-cloud/#atlassian-connect) can use this operation. * Extend webhook life */ refreshWebhooksRaw(requestParameters: RefreshWebhooksRequest): Promise>; /** * Webhooks registered through the REST API expire after 30 days. Call this resource periodically to keep them alive. Unrecognized webhook IDs (nonexistent or belonging to other apps) are ignored. **[Permissions](#permissions) required:** Only [Connect apps](https://developer.atlassian.com/cloud/jira/platform/integrating-with-jira-cloud/#atlassian-connect) can use this operation. * Extend webhook life */ refreshWebhooks(requestParameters: RefreshWebhooksRequest): Promise; /** * Registers webhooks. **[Permissions](#permissions) required:** Only [Connect apps](https://developer.atlassian.com/cloud/jira/platform/integrating-with-jira-cloud/#atlassian-connect) can use this operation. * Register dynamic webhooks */ registerDynamicWebhooksRaw(requestParameters: RegisterDynamicWebhooksRequest): Promise>; /** * Registers webhooks. **[Permissions](#permissions) required:** Only [Connect apps](https://developer.atlassian.com/cloud/jira/platform/integrating-with-jira-cloud/#atlassian-connect) can use this operation. * Register dynamic webhooks */ registerDynamicWebhooks(requestParameters: RegisterDynamicWebhooksRequest): Promise; }