/** * 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 { ConditionGroupV2 } from './ConditionGroupV2.js'; /** * An announcement rule posts an announcement of matching incidents into one or more channels. * @export * @interface AnnouncementRuleV2 */ export interface AnnouncementRuleV2 { /** * 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 */ conditions_no_longer_apply_behaviour: AnnouncementRuleV2ConditionsNoLongerApplyBehaviourEnum; /** * When the rule was created */ created_at: Date; /** * Unique identifier for this announcement rule */ id: string; /** * Microsoft Teams channels to post announcements into, as team_id/channel_id, when the organisation uses Microsoft Teams */ microsoft_teams_channel_ids: Array; /** * Which incidents are announced: live incidents only, or triage incidents too */ mode: AnnouncementRuleV2ModeEnum; /** * Human readable name for the rule */ name: string; /** * IDs of the teams that own this rule */ owning_team_ids: Array; /** * Which private incidents this rule announces: every private incident (all), those an owning team can see (owning_teams), or none */ private_incident_scope?: AnnouncementRuleV2PrivateIncidentScopeEnum; /** * IDs of the Slack channels to post announcements into, when the organisation uses Slack */ slack_channel_ids: Array; /** * ID of the announcement template used to render this rule's posts */ template_id?: string; /** * Where incident updates are shared once the incident is announced */ update_sharing_mode: AnnouncementRuleV2UpdateSharingModeEnum; /** * When the rule was last updated */ updated_at: Date; } /** * @export */ export declare const AnnouncementRuleV2ConditionsNoLongerApplyBehaviourEnum: { readonly LeaveInPlace: "leave_in_place"; readonly Remove: "remove"; }; export type AnnouncementRuleV2ConditionsNoLongerApplyBehaviourEnum = typeof AnnouncementRuleV2ConditionsNoLongerApplyBehaviourEnum[keyof typeof AnnouncementRuleV2ConditionsNoLongerApplyBehaviourEnum]; /** * @export */ export declare const AnnouncementRuleV2ModeEnum: { 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 AnnouncementRuleV2ModeEnum = typeof AnnouncementRuleV2ModeEnum[keyof typeof AnnouncementRuleV2ModeEnum]; /** * @export */ export declare const AnnouncementRuleV2PrivateIncidentScopeEnum: { readonly All: "all"; readonly OwningTeams: "owning_teams"; readonly None: "none"; }; export type AnnouncementRuleV2PrivateIncidentScopeEnum = typeof AnnouncementRuleV2PrivateIncidentScopeEnum[keyof typeof AnnouncementRuleV2PrivateIncidentScopeEnum]; /** * @export */ export declare const AnnouncementRuleV2UpdateSharingModeEnum: { readonly None: "none"; readonly Thread: "thread"; readonly ThreadAndChannel: "thread_and_channel"; }; export type AnnouncementRuleV2UpdateSharingModeEnum = typeof AnnouncementRuleV2UpdateSharingModeEnum[keyof typeof AnnouncementRuleV2UpdateSharingModeEnum]; /** * Check if a given object implements the AnnouncementRuleV2 interface. */ export declare function instanceOfAnnouncementRuleV2(value: object): value is AnnouncementRuleV2; export declare function AnnouncementRuleV2FromJSON(json: any): AnnouncementRuleV2; export declare function AnnouncementRuleV2FromJSONTyped(json: any, ignoreDiscriminator: boolean): AnnouncementRuleV2; export declare function AnnouncementRuleV2ToJSON(json: any): AnnouncementRuleV2; export declare function AnnouncementRuleV2ToJSONTyped(value?: AnnouncementRuleV2 | null, ignoreDiscriminator?: boolean): any;