/** * 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 { PolicyPostMortemV2 } from './PolicyPostMortemV2.js'; import type { PolicyScheduleV2 } from './PolicyScheduleV2.js'; import type { ExpressionV2 } from './ExpressionV2.js'; import type { PolicyFollowUpV2 } from './PolicyFollowUpV2.js'; import type { ConditionGroupV2 } from './ConditionGroupV2.js'; import type { PolicyOnCallReadinessV2 } from './PolicyOnCallReadinessV2.js'; import type { PolicyAssignmentRulesV2 } from './PolicyAssignmentRulesV2.js'; import type { PolicyDebriefV2 } from './PolicyDebriefV2.js'; /** * * @export * @interface PolicyV2 */ export interface PolicyV2 { /** * */ assignment_rules?: PolicyAssignmentRulesV2; /** * Conditions which determine which resources are in scope for this policy */ conditions: Array; /** * */ created_at: Date; /** * */ debrief?: PolicyDebriefV2; /** * Human readable description of the policy */ description?: string; /** * The expressions relating to this policy */ expressions?: Array; /** * */ follow_up?: PolicyFollowUpV2; /** * Unique ID of the policy */ id: string; /** * Human readable name of the policy */ name: string; /** * */ on_call_readiness?: PolicyOnCallReadinessV2; /** * Type of the policy, specifying what this applies to */ policy_type: PolicyV2PolicyTypeEnum; /** * */ post_mortem?: PolicyPostMortemV2; /** * */ schedule?: PolicyScheduleV2; /** * Disabled policies stop evaluating but keep their config */ status: PolicyV2StatusEnum; /** * */ updated_at: Date; } /** * @export */ export declare const PolicyV2PolicyTypeEnum: { readonly Debrief: "debrief"; readonly FollowUp: "follow_up"; readonly OnCallReadiness: "on_call_readiness"; readonly PostMortem: "post_mortem"; readonly Schedule: "schedule"; readonly ShiftConflict: "shift_conflict"; readonly VacationConflict: "vacation_conflict"; }; export type PolicyV2PolicyTypeEnum = typeof PolicyV2PolicyTypeEnum[keyof typeof PolicyV2PolicyTypeEnum]; /** * @export */ export declare const PolicyV2StatusEnum: { readonly Enabled: "enabled"; readonly Disabled: "disabled"; }; export type PolicyV2StatusEnum = typeof PolicyV2StatusEnum[keyof typeof PolicyV2StatusEnum]; /** * Check if a given object implements the PolicyV2 interface. */ export declare function instanceOfPolicyV2(value: object): value is PolicyV2; export declare function PolicyV2FromJSON(json: any): PolicyV2; export declare function PolicyV2FromJSONTyped(json: any, ignoreDiscriminator: boolean): PolicyV2; export declare function PolicyV2ToJSON(json: any): PolicyV2; export declare function PolicyV2ToJSONTyped(value?: PolicyV2 | null, ignoreDiscriminator?: boolean): any;