/** * 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 { OnCallNotificationRuleAppDetailsPublicV2 } from './OnCallNotificationRuleAppDetailsPublicV2.js'; import type { OnCallNotificationRuleMethodTargetPublicV2 } from './OnCallNotificationRuleMethodTargetPublicV2.js'; import type { OnCallNotificationRulePhoneDetailsPublicV2 } from './OnCallNotificationRulePhoneDetailsPublicV2.js'; /** * * @export * @interface OnCallNotificationRulePublicV2 */ export interface OnCallNotificationRulePublicV2 { /** * */ app?: OnCallNotificationRuleAppDetailsPublicV2; /** * Delay in seconds before this rule activates. 0 means immediate. */ delay_seconds?: number; /** * Unique identifier for this notification rule */ id: string; /** * */ method_target: OnCallNotificationRuleMethodTargetPublicV2; /** * The high-level type of notification method. Phone rules include phone details that distinguish SMS from voice calls. */ method_type: OnCallNotificationRulePublicV2MethodTypeEnum; /** * */ phone?: OnCallNotificationRulePhoneDetailsPublicV2; /** * The urgency level this rule applies to */ rule_type: OnCallNotificationRulePublicV2RuleTypeEnum; } /** * @export */ export declare const OnCallNotificationRulePublicV2MethodTypeEnum: { readonly App: "app"; readonly Email: "email"; readonly MicrosoftTeams: "microsoft_teams"; readonly Phone: "phone"; readonly Slack: "slack"; readonly WhatsappMessage: "whatsapp_message"; }; export type OnCallNotificationRulePublicV2MethodTypeEnum = typeof OnCallNotificationRulePublicV2MethodTypeEnum[keyof typeof OnCallNotificationRulePublicV2MethodTypeEnum]; /** * @export */ export declare const OnCallNotificationRulePublicV2RuleTypeEnum: { readonly HighUrgency: "high_urgency"; readonly LowUrgency: "low_urgency"; }; export type OnCallNotificationRulePublicV2RuleTypeEnum = typeof OnCallNotificationRulePublicV2RuleTypeEnum[keyof typeof OnCallNotificationRulePublicV2RuleTypeEnum]; /** * Check if a given object implements the OnCallNotificationRulePublicV2 interface. */ export declare function instanceOfOnCallNotificationRulePublicV2(value: object): value is OnCallNotificationRulePublicV2; export declare function OnCallNotificationRulePublicV2FromJSON(json: any): OnCallNotificationRulePublicV2; export declare function OnCallNotificationRulePublicV2FromJSONTyped(json: any, ignoreDiscriminator: boolean): OnCallNotificationRulePublicV2; export declare function OnCallNotificationRulePublicV2ToJSON(json: any): OnCallNotificationRulePublicV2; export declare function OnCallNotificationRulePublicV2ToJSONTyped(value?: OnCallNotificationRulePublicV2 | null, ignoreDiscriminator?: boolean): any;