/** * incident.io * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ import type { ConditionGroupPayloadV2 } from './ConditionGroupPayloadV2.js'; /** * * @export * @interface AnnouncementRulesUpdatePayloadV2 */ export interface AnnouncementRulesUpdatePayloadV2 { /** * Incidents are announced when they match any of these condition groups */ condition_groups: Array; /** * Whether to remove announcement posts when the incident no longer matches this rule's conditions. Defaults to leaving them in place. */ conditions_no_longer_apply_behaviour?: AnnouncementRulesUpdatePayloadV2ConditionsNoLongerApplyBehaviourEnum; /** * Microsoft Teams channels to post announcements into, as team_id/channel_id. Required when the organisation uses Microsoft Teams. */ microsoft_teams_channel_ids?: Array; /** * Which incidents are announced: live incidents only, or triage incidents too */ mode: AnnouncementRulesUpdatePayloadV2ModeEnum; /** * Human readable name for the rule */ name: string; /** * IDs of the teams that own this rule. The existing owning teams are kept when omitted. */ owning_team_ids?: Array; /** * Which private incidents this rule announces: every private incident (all), those an owning team can see (owning_teams), or none. Defaults to none on create, and is left unchanged on update when omitted. */ private_incident_scope?: AnnouncementRulesUpdatePayloadV2PrivateIncidentScopeEnum; /** * IDs of the Slack channels to post announcements into. Required when the organisation uses Slack. */ slack_channel_ids?: Array; /** * ID of the announcement template used to render this rule's posts. The existing template is kept when omitted. */ template_id?: string; /** * Where incident updates are shared once the incident is announced */ update_sharing_mode: AnnouncementRulesUpdatePayloadV2UpdateSharingModeEnum; } /** * @export */ export declare const AnnouncementRulesUpdatePayloadV2ConditionsNoLongerApplyBehaviourEnum: { readonly LeaveInPlace: "leave_in_place"; readonly Remove: "remove"; }; export type AnnouncementRulesUpdatePayloadV2ConditionsNoLongerApplyBehaviourEnum = typeof AnnouncementRulesUpdatePayloadV2ConditionsNoLongerApplyBehaviourEnum[keyof typeof AnnouncementRulesUpdatePayloadV2ConditionsNoLongerApplyBehaviourEnum]; /** * @export */ export declare const AnnouncementRulesUpdatePayloadV2ModeEnum: { readonly LiveAndClosed: "live_and_closed"; readonly IncludeTriage: "include_triage"; readonly IncludeTriageAndMerged: "include_triage_and_merged"; readonly IncludeDeclinedAndMerged: "include_declined_and_merged"; readonly IncludeAll: "include_all"; }; export type AnnouncementRulesUpdatePayloadV2ModeEnum = typeof AnnouncementRulesUpdatePayloadV2ModeEnum[keyof typeof AnnouncementRulesUpdatePayloadV2ModeEnum]; /** * @export */ export declare const AnnouncementRulesUpdatePayloadV2PrivateIncidentScopeEnum: { readonly All: "all"; readonly OwningTeams: "owning_teams"; readonly None: "none"; }; export type AnnouncementRulesUpdatePayloadV2PrivateIncidentScopeEnum = typeof AnnouncementRulesUpdatePayloadV2PrivateIncidentScopeEnum[keyof typeof AnnouncementRulesUpdatePayloadV2PrivateIncidentScopeEnum]; /** * @export */ export declare const AnnouncementRulesUpdatePayloadV2UpdateSharingModeEnum: { readonly None: "none"; readonly Thread: "thread"; readonly ThreadAndChannel: "thread_and_channel"; }; export type AnnouncementRulesUpdatePayloadV2UpdateSharingModeEnum = typeof AnnouncementRulesUpdatePayloadV2UpdateSharingModeEnum[keyof typeof AnnouncementRulesUpdatePayloadV2UpdateSharingModeEnum]; /** * Check if a given object implements the AnnouncementRulesUpdatePayloadV2 interface. */ export declare function instanceOfAnnouncementRulesUpdatePayloadV2(value: object): value is AnnouncementRulesUpdatePayloadV2; export declare function AnnouncementRulesUpdatePayloadV2FromJSON(json: any): AnnouncementRulesUpdatePayloadV2; export declare function AnnouncementRulesUpdatePayloadV2FromJSONTyped(json: any, ignoreDiscriminator: boolean): AnnouncementRulesUpdatePayloadV2; export declare function AnnouncementRulesUpdatePayloadV2ToJSON(json: any): AnnouncementRulesUpdatePayloadV2; export declare function AnnouncementRulesUpdatePayloadV2ToJSONTyped(value?: AnnouncementRulesUpdatePayloadV2 | null, ignoreDiscriminator?: boolean): any;