/** * 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 AnnouncementRulesCreatePayloadV2 */ export interface AnnouncementRulesCreatePayloadV2 { /** * 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?: AnnouncementRulesCreatePayloadV2ConditionsNoLongerApplyBehaviourEnum; /** * 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: AnnouncementRulesCreatePayloadV2ModeEnum; /** * 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. Defaults to none on create, and is left unchanged on update when omitted. */ private_incident_scope?: AnnouncementRulesCreatePayloadV2PrivateIncidentScopeEnum; /** * 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. Defaults to the organisation's default template when omitted. */ template_id?: string; /** * Where incident updates are shared once the incident is announced */ update_sharing_mode: AnnouncementRulesCreatePayloadV2UpdateSharingModeEnum; } /** * @export */ export declare const AnnouncementRulesCreatePayloadV2ConditionsNoLongerApplyBehaviourEnum: { readonly LeaveInPlace: "leave_in_place"; readonly Remove: "remove"; }; export type AnnouncementRulesCreatePayloadV2ConditionsNoLongerApplyBehaviourEnum = typeof AnnouncementRulesCreatePayloadV2ConditionsNoLongerApplyBehaviourEnum[keyof typeof AnnouncementRulesCreatePayloadV2ConditionsNoLongerApplyBehaviourEnum]; /** * @export */ export declare const AnnouncementRulesCreatePayloadV2ModeEnum: { 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 AnnouncementRulesCreatePayloadV2ModeEnum = typeof AnnouncementRulesCreatePayloadV2ModeEnum[keyof typeof AnnouncementRulesCreatePayloadV2ModeEnum]; /** * @export */ export declare const AnnouncementRulesCreatePayloadV2PrivateIncidentScopeEnum: { readonly All: "all"; readonly OwningTeams: "owning_teams"; readonly None: "none"; }; export type AnnouncementRulesCreatePayloadV2PrivateIncidentScopeEnum = typeof AnnouncementRulesCreatePayloadV2PrivateIncidentScopeEnum[keyof typeof AnnouncementRulesCreatePayloadV2PrivateIncidentScopeEnum]; /** * @export */ export declare const AnnouncementRulesCreatePayloadV2UpdateSharingModeEnum: { readonly None: "none"; readonly Thread: "thread"; readonly ThreadAndChannel: "thread_and_channel"; }; export type AnnouncementRulesCreatePayloadV2UpdateSharingModeEnum = typeof AnnouncementRulesCreatePayloadV2UpdateSharingModeEnum[keyof typeof AnnouncementRulesCreatePayloadV2UpdateSharingModeEnum]; /** * Check if a given object implements the AnnouncementRulesCreatePayloadV2 interface. */ export declare function instanceOfAnnouncementRulesCreatePayloadV2(value: object): value is AnnouncementRulesCreatePayloadV2; export declare function AnnouncementRulesCreatePayloadV2FromJSON(json: any): AnnouncementRulesCreatePayloadV2; export declare function AnnouncementRulesCreatePayloadV2FromJSONTyped(json: any, ignoreDiscriminator: boolean): AnnouncementRulesCreatePayloadV2; export declare function AnnouncementRulesCreatePayloadV2ToJSON(json: any): AnnouncementRulesCreatePayloadV2; export declare function AnnouncementRulesCreatePayloadV2ToJSONTyped(value?: AnnouncementRulesCreatePayloadV2 | null, ignoreDiscriminator?: boolean): any;