/** * 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 { LinkedScheduleV2 } from './LinkedScheduleV2.js'; /** * A sync target is the link between incident.io and a single Slack user group, * used to keep that group's membership in step with who is currently on call. * * A target identifies the group by its Slack user group ID and Slack team ID, * and remembers whether the incident.io bot should be added to the group so it * can manage membership. On its own a target does nothing: you link it to a * schedule by creating a schedule sync rule (see the Schedules service), and * that rule decides which schedule members flow into the group. As the * schedule's shifts change hands, we update the Slack user group to match. * * A single target can be referenced by sync rules on several schedules at once; * linked_schedules lists every schedule with an active rule pointing at it. * @export * @interface ScheduleSyncTargetResourceV2 */ export interface ScheduleSyncTargetResourceV2 { /** * Whether the incident.io bot should be added to the group as a member. This is needed for some Slack configurations to let us manage the group's membership. */ add_bot_to_group: boolean; /** * */ created_at: Date; /** * Unique identifier of the sync target */ id: string; /** * Schedules with an active sync rule pointing at this target */ linked_schedules: Array; /** * Slack team (workspace) ID the user group lives in. On Enterprise Grid this identifies which workspace within the org the group belongs to. */ slack_team_id: string; /** * Slack ID of the user group whose membership is kept in sync. This is the Slack-assigned group ID (starting with 'S'), not the @-handle. */ slack_user_group_id: string; /** * */ updated_at: Date; } /** * Check if a given object implements the ScheduleSyncTargetResourceV2 interface. */ export declare function instanceOfScheduleSyncTargetResourceV2(value: object): value is ScheduleSyncTargetResourceV2; export declare function ScheduleSyncTargetResourceV2FromJSON(json: any): ScheduleSyncTargetResourceV2; export declare function ScheduleSyncTargetResourceV2FromJSONTyped(json: any, ignoreDiscriminator: boolean): ScheduleSyncTargetResourceV2; export declare function ScheduleSyncTargetResourceV2ToJSON(json: any): ScheduleSyncTargetResourceV2; export declare function ScheduleSyncTargetResourceV2ToJSONTyped(value?: ScheduleSyncTargetResourceV2 | null, ignoreDiscriminator?: boolean): any;