/** * 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 { ScheduleReplicaSourceV2 } from './ScheduleReplicaSourceV2.js'; import type { ScheduleReplicaUserStatusV2 } from './ScheduleReplicaUserStatusV2.js'; /** * * @export * @interface ScheduleReplicaV2 */ export interface ScheduleReplicaV2 { /** * When this schedule replica was first created */ created_at: Date; /** * Unique identifier of the schedule replica */ id: string; /** * The most recent error encountered while syncing this replica to the external provider, if any. Common errors include unmapped users or connectivity issues with the external provider. Null if the last sync was successful. */ last_sync_error?: string; /** * When the replica was last successfully synced to the external provider. Null if the replica has never been successfully synced. */ last_synced_at?: Date; /** * How many days ahead to mirror this schedule into the external provider. Defaults to 14 if not set; maximum 90. */ mirror_window_days?: number; /** * The ID of a user in the external provider that will be assigned whenever nobody is on-call in the incident.io schedule. External providers typically require someone to always be on-call, so this user fills gaps where incident.io has no one scheduled. */ replica_fallback_user_id: string; /** * The external provider where this schedule is replicated to */ replica_provider: ScheduleReplicaV2ReplicaProviderEnum; /** * The ID of the schedule in the external provider that this replica syncs to. For PagerDuty this is the schedule ID (e.g. PO8107X), for Opsgenie the schedule ID, and for Jira Service Management the schedule ID. */ replica_provider_id: string; /** * The ID of the incident.io schedule that this replica is syncing from */ schedule_id: string; /** * The specific rotation and layer combinations from the schedule that are being replicated. Each source identifies a single layer within a rotation to sync to the external provider. */ sources: Array; /** * When this schedule replica was last updated */ updated_at: Date; /** * The mapping status of each incident.io user in the schedule to their corresponding user in the external provider. Users must be mapped for the replica to sync their on-call shifts correctly. */ user_statuses: Array; } /** * @export */ export declare const ScheduleReplicaV2ReplicaProviderEnum: { readonly Native: "native"; readonly Pagerduty: "pagerduty"; readonly Opsgenie: "opsgenie"; readonly Jsm: "jsm"; }; export type ScheduleReplicaV2ReplicaProviderEnum = typeof ScheduleReplicaV2ReplicaProviderEnum[keyof typeof ScheduleReplicaV2ReplicaProviderEnum]; /** * Check if a given object implements the ScheduleReplicaV2 interface. */ export declare function instanceOfScheduleReplicaV2(value: object): value is ScheduleReplicaV2; export declare function ScheduleReplicaV2FromJSON(json: any): ScheduleReplicaV2; export declare function ScheduleReplicaV2FromJSONTyped(json: any, ignoreDiscriminator: boolean): ScheduleReplicaV2; export declare function ScheduleReplicaV2ToJSON(json: any): ScheduleReplicaV2; export declare function ScheduleReplicaV2ToJSONTyped(value?: ScheduleReplicaV2 | null, ignoreDiscriminator?: boolean): any;