/** * 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 * as runtime from '../runtime.js'; import { type SchedulesCreateOverridePayloadV2 } from '../models/SchedulesCreateOverridePayloadV2.js'; import { type SchedulesCreateOverrideResultV2 } from '../models/SchedulesCreateOverrideResultV2.js'; import { type SchedulesCreatePayloadV2 } from '../models/SchedulesCreatePayloadV2.js'; import { type SchedulesCreateResultV2 } from '../models/SchedulesCreateResultV2.js'; import { type SchedulesCreateScheduleReplicaPayloadV2 } from '../models/SchedulesCreateScheduleReplicaPayloadV2.js'; import { type SchedulesCreateScheduleReplicaResultV2 } from '../models/SchedulesCreateScheduleReplicaResultV2.js'; import { type SchedulesCreateScheduleSyncRulePayloadV2 } from '../models/SchedulesCreateScheduleSyncRulePayloadV2.js'; import { type SchedulesCreateScheduleSyncRuleResultV2 } from '../models/SchedulesCreateScheduleSyncRuleResultV2.js'; import { type SchedulesListOverridesResultV2 } from '../models/SchedulesListOverridesResultV2.js'; import { type SchedulesListResultV2 } from '../models/SchedulesListResultV2.js'; import { type SchedulesListScheduleEntriesResultV2 } from '../models/SchedulesListScheduleEntriesResultV2.js'; import { type SchedulesListScheduleReplicasResultV2 } from '../models/SchedulesListScheduleReplicasResultV2.js'; import { type SchedulesListScheduleSyncRulesResultV2 } from '../models/SchedulesListScheduleSyncRulesResultV2.js'; import { type SchedulesPreviewScheduleEntriesPayloadV2 } from '../models/SchedulesPreviewScheduleEntriesPayloadV2.js'; import { type SchedulesPreviewScheduleEntriesResultV2 } from '../models/SchedulesPreviewScheduleEntriesResultV2.js'; import { type SchedulesShowOverrideResultV2 } from '../models/SchedulesShowOverrideResultV2.js'; import { type SchedulesShowResultV2 } from '../models/SchedulesShowResultV2.js'; import { type SchedulesShowScheduleReplicaResultV2 } from '../models/SchedulesShowScheduleReplicaResultV2.js'; import { type SchedulesShowScheduleSyncRuleResultV2 } from '../models/SchedulesShowScheduleSyncRuleResultV2.js'; import { type SchedulesUpdateOverridePayloadV2 } from '../models/SchedulesUpdateOverridePayloadV2.js'; import { type SchedulesUpdateOverrideResultV2 } from '../models/SchedulesUpdateOverrideResultV2.js'; import { type SchedulesUpdatePayloadV2 } from '../models/SchedulesUpdatePayloadV2.js'; import { type SchedulesUpdateResultV2 } from '../models/SchedulesUpdateResultV2.js'; import { type SchedulesUpdateScheduleSyncRulePayloadV2 } from '../models/SchedulesUpdateScheduleSyncRulePayloadV2.js'; import { type SchedulesUpdateScheduleSyncRuleResultV2 } from '../models/SchedulesUpdateScheduleSyncRuleResultV2.js'; export interface SchedulesV2CreateRequest { /** * */ body: SchedulesCreatePayloadV2; } export interface SchedulesV2CreateOverrideRequest { /** * */ body: SchedulesCreateOverridePayloadV2; } export interface SchedulesV2CreateScheduleReplicaRequest { /** * The schedule to create a replica for */ schedule_id: string; /** * */ body: SchedulesCreateScheduleReplicaPayloadV2; } export interface SchedulesV2CreateScheduleSyncRuleRequest { /** * The schedule to create a sync rule for */ schedule_id: string; /** * */ body: SchedulesCreateScheduleSyncRulePayloadV2; } export interface SchedulesV2DestroyRequest { /** * Unique internal ID of the schedule */ id: string; } export interface SchedulesV2DestroyOverrideRequest { /** * The override ID to delete */ id: string; } export interface SchedulesV2DestroyScheduleReplicaRequest { /** * The parent schedule ID */ schedule_id: string; /** * The replica ID to archive */ id: string; } export interface SchedulesV2DestroyScheduleSyncRuleRequest { /** * The parent schedule ID */ schedule_id: string; /** * The sync rule ID to archive */ id: string; } export interface SchedulesV2ListRequest { /** * Note that next_shifts will only be returned when the page size is 25 or lower. */ page_size?: number; /** * A schedule's ID. This endpoint will return a list of schedules after this ID in relation to the API response order. */ after?: string; } export interface SchedulesV2ListOverridesRequest { /** * The ID of the schedule to get overrides for. */ schedule_id: string; /** * If set, only return overrides on this rotation. */ rotation_id?: string; /** * If set, only return overrides on this layer. */ layer_id?: string; /** * Integer number of records to return */ page_size?: number; /** * An override's ID. This endpoint will return a list of overrides after this ID in relation to the API response order. */ after?: string; } export interface SchedulesV2ListScheduleEntriesRequest { /** * The ID of the schedule to get entries for. */ schedule_id: string; /** * The start of the window to get entries for. May also carry an opaque pagination cursor previously returned in `pagination_meta.after` — pass it back here unchanged to fetch the next page (leave `entry_window_end` unchanged from the original request). */ entry_window_start?: string; /** * The end of the window to get entries for. */ entry_window_end?: Date; } export interface SchedulesV2ListScheduleReplicasRequest { /** * The schedule to list replicas for */ schedule_id: string; } export interface SchedulesV2ListScheduleSyncRulesRequest { /** * The schedule to list sync rules for */ schedule_id: string; /** * Integer number of records to return */ page_size?: number; /** * A sync rule's ID. This endpoint will return a list of sync rules after this ID in relation to the API response order. */ after?: string; } export interface SchedulesV2PreviewScheduleEntriesRequest { /** * The ID of the schedule to preview entries for. */ id: string; /** * */ body: SchedulesPreviewScheduleEntriesPayloadV2; } export interface SchedulesV2ShowRequest { /** * Unique internal ID of the schedule */ id: string; } export interface SchedulesV2ShowOverrideRequest { /** * The override ID to get */ id: string; } export interface SchedulesV2ShowScheduleReplicaRequest { /** * The parent schedule ID */ schedule_id: string; /** * The replica ID to show */ id: string; } export interface SchedulesV2ShowScheduleSyncRuleRequest { /** * The parent schedule ID */ schedule_id: string; /** * The sync rule ID */ id: string; } export interface SchedulesV2UpdateRequest { /** * The schedule ID to update. */ id: string; /** * */ body: SchedulesUpdatePayloadV2; } export interface SchedulesV2UpdateOverrideRequest { /** * The override ID to update */ id: string; /** * */ body: SchedulesUpdateOverridePayloadV2; } export interface SchedulesV2UpdateScheduleSyncRuleRequest { /** * The parent schedule ID */ schedule_id: string; /** * The sync rule ID */ id: string; /** * */ body: SchedulesUpdateScheduleSyncRulePayloadV2; } /** * */ export declare class SchedulesV2Api extends runtime.BaseAPI { /** * Creates request options for schedulesV2Create without sending the request */ schedulesV2CreateRequestOpts(requestParameters: SchedulesV2CreateRequest): Promise; /** * Create a new schedule. * Create Schedules V2 */ schedulesV2CreateRaw(requestParameters: SchedulesV2CreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Create a new schedule. * Create Schedules V2 */ schedulesV2Create(requestParameters: SchedulesV2CreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * Creates request options for schedulesV2CreateOverride without sending the request */ schedulesV2CreateOverrideRequestOpts(requestParameters: SchedulesV2CreateOverrideRequest): Promise; /** * Create a new schedule override. * CreateOverride Schedules V2 */ schedulesV2CreateOverrideRaw(requestParameters: SchedulesV2CreateOverrideRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Create a new schedule override. * CreateOverride Schedules V2 */ schedulesV2CreateOverride(requestParameters: SchedulesV2CreateOverrideRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * Creates request options for schedulesV2CreateScheduleReplica without sending the request */ schedulesV2CreateScheduleReplicaRequestOpts(requestParameters: SchedulesV2CreateScheduleReplicaRequest): Promise; /** * Create a new schedule replica. * CreateScheduleReplica Schedules V2 */ schedulesV2CreateScheduleReplicaRaw(requestParameters: SchedulesV2CreateScheduleReplicaRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Create a new schedule replica. * CreateScheduleReplica Schedules V2 */ schedulesV2CreateScheduleReplica(requestParameters: SchedulesV2CreateScheduleReplicaRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * Creates request options for schedulesV2CreateScheduleSyncRule without sending the request */ schedulesV2CreateScheduleSyncRuleRequestOpts(requestParameters: SchedulesV2CreateScheduleSyncRuleRequest): Promise; /** * Create a new sync rule linking a schedule to a sync target. * CreateScheduleSyncRule Schedules V2 */ schedulesV2CreateScheduleSyncRuleRaw(requestParameters: SchedulesV2CreateScheduleSyncRuleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Create a new sync rule linking a schedule to a sync target. * CreateScheduleSyncRule Schedules V2 */ schedulesV2CreateScheduleSyncRule(requestParameters: SchedulesV2CreateScheduleSyncRuleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * Creates request options for schedulesV2Destroy without sending the request */ schedulesV2DestroyRequestOpts(requestParameters: SchedulesV2DestroyRequest): Promise; /** * Archives a single schedule. Will fail if the schedule has active replicas — remove all replicas before deleting. * Destroy Schedules V2 */ schedulesV2DestroyRaw(requestParameters: SchedulesV2DestroyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Archives a single schedule. Will fail if the schedule has active replicas — remove all replicas before deleting. * Destroy Schedules V2 */ schedulesV2Destroy(requestParameters: SchedulesV2DestroyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * Creates request options for schedulesV2DestroyOverride without sending the request */ schedulesV2DestroyOverrideRequestOpts(requestParameters: SchedulesV2DestroyOverrideRequest): Promise; /** * Delete a schedule override, restoring whoever the rotations put on-call for that window. Deleting an override that has already been deleted succeeds, so it is safe to retry. * DestroyOverride Schedules V2 */ schedulesV2DestroyOverrideRaw(requestParameters: SchedulesV2DestroyOverrideRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Delete a schedule override, restoring whoever the rotations put on-call for that window. Deleting an override that has already been deleted succeeds, so it is safe to retry. * DestroyOverride Schedules V2 */ schedulesV2DestroyOverride(requestParameters: SchedulesV2DestroyOverrideRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * Creates request options for schedulesV2DestroyScheduleReplica without sending the request */ schedulesV2DestroyScheduleReplicaRequestOpts(requestParameters: SchedulesV2DestroyScheduleReplicaRequest): Promise; /** * Archives a single schedule replica, stopping incident.io from syncing on-call shifts to the external provider. As with disabling mirroring via the UI, this will remove any upcoming overrides that incident.io has created in the external schedule, restoring it to its original state. If multiple replicas target the same external schedule, overrides are only removed when the last replica pointing to that schedule is deleted. Note: override cleanup is supported for PagerDuty and Jira Service Management. Opsgenie does not support programmatic override deletion, so overrides must be removed manually. * DestroyScheduleReplica Schedules V2 */ schedulesV2DestroyScheduleReplicaRaw(requestParameters: SchedulesV2DestroyScheduleReplicaRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Archives a single schedule replica, stopping incident.io from syncing on-call shifts to the external provider. As with disabling mirroring via the UI, this will remove any upcoming overrides that incident.io has created in the external schedule, restoring it to its original state. If multiple replicas target the same external schedule, overrides are only removed when the last replica pointing to that schedule is deleted. Note: override cleanup is supported for PagerDuty and Jira Service Management. Opsgenie does not support programmatic override deletion, so overrides must be removed manually. * DestroyScheduleReplica Schedules V2 */ schedulesV2DestroyScheduleReplica(requestParameters: SchedulesV2DestroyScheduleReplicaRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * Creates request options for schedulesV2DestroyScheduleSyncRule without sending the request */ schedulesV2DestroyScheduleSyncRuleRequestOpts(requestParameters: SchedulesV2DestroyScheduleSyncRuleRequest): Promise; /** * Archive a sync rule, unlinking the schedule from the sync target. * DestroyScheduleSyncRule Schedules V2 */ schedulesV2DestroyScheduleSyncRuleRaw(requestParameters: SchedulesV2DestroyScheduleSyncRuleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Archive a sync rule, unlinking the schedule from the sync target. * DestroyScheduleSyncRule Schedules V2 */ schedulesV2DestroyScheduleSyncRule(requestParameters: SchedulesV2DestroyScheduleSyncRuleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * Creates request options for schedulesV2List without sending the request */ schedulesV2ListRequestOpts(requestParameters: SchedulesV2ListRequest): Promise; /** * List configured schedules. * List Schedules V2 */ schedulesV2ListRaw(requestParameters: SchedulesV2ListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * List configured schedules. * List Schedules V2 */ schedulesV2List(requestParameters?: SchedulesV2ListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * Creates request options for schedulesV2ListOverrides without sending the request */ schedulesV2ListOverridesRequestOpts(requestParameters: SchedulesV2ListOverridesRequest): Promise; /** * List the overrides on a schedule. Overrides are one-off changes layered on top of the rotations, such as someone covering a colleague\'s shift. This returns the overrides themselves: to see the effective schedule with overrides already merged in, use the schedule entries endpoint instead. Overrides belong to a specific layer of a specific rotation, so you can narrow the results with `rotation_id` and `layer_id`. Archived overrides are not returned. * ListOverrides Schedules V2 */ schedulesV2ListOverridesRaw(requestParameters: SchedulesV2ListOverridesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * List the overrides on a schedule. Overrides are one-off changes layered on top of the rotations, such as someone covering a colleague\'s shift. This returns the overrides themselves: to see the effective schedule with overrides already merged in, use the schedule entries endpoint instead. Overrides belong to a specific layer of a specific rotation, so you can narrow the results with `rotation_id` and `layer_id`. Archived overrides are not returned. * ListOverrides Schedules V2 */ schedulesV2ListOverrides(requestParameters: SchedulesV2ListOverridesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * Creates request options for schedulesV2ListScheduleEntries without sending the request */ schedulesV2ListScheduleEntriesRequestOpts(requestParameters: SchedulesV2ListScheduleEntriesRequest): Promise; /** * List the schedule entries for a schedule over a window of time. Use this endpoint to find out who is on-call for a schedule, either right now or at any point in the future. Common uses include: - Building a calendar or timeline view of who is on-call. - Looking up who was on-call at a particular moment (for example, when an incident fired). - Exporting upcoming shifts into another system, such as a payroll or scheduling tool. The response groups entries into three lists: `scheduled` (the entries the rotation rules produce, before any overrides), `overrides` (any one-off overrides that apply in the window) and `final` (the effective schedule after overrides have been merged in — this is normally the list you want). Each entry includes the `rotation_id` it belongs to. Schedules can be made up of multiple rotations (for example, a primary and a secondary rotation) and each rotation can have several layers, and we return entries for every rotation and layer on the schedule. The endpoint returns all entries that overlap with the given window. If no window is provided we default to a sensible range starting from now. ## Pagination Responses are paginated. When more entries are available than fit on a single page, the response includes a `pagination_meta` block with two fields: - `after_url` — a fully-formed URL for the next page. The simplest way to paginate is to keep following this URL until it is no longer present. - `after` — an opaque cursor token. To fetch the next page manually, re-issue the request with `entry_window_start` set to this value and `entry_window_end` left unchanged from the original request. Treat the token as opaque — do not parse or modify it. Keep paginating until `pagination_meta` is absent from the response, at which point you have received every entry in the window. * ListScheduleEntries Schedules V2 */ schedulesV2ListScheduleEntriesRaw(requestParameters: SchedulesV2ListScheduleEntriesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * List the schedule entries for a schedule over a window of time. Use this endpoint to find out who is on-call for a schedule, either right now or at any point in the future. Common uses include: - Building a calendar or timeline view of who is on-call. - Looking up who was on-call at a particular moment (for example, when an incident fired). - Exporting upcoming shifts into another system, such as a payroll or scheduling tool. The response groups entries into three lists: `scheduled` (the entries the rotation rules produce, before any overrides), `overrides` (any one-off overrides that apply in the window) and `final` (the effective schedule after overrides have been merged in — this is normally the list you want). Each entry includes the `rotation_id` it belongs to. Schedules can be made up of multiple rotations (for example, a primary and a secondary rotation) and each rotation can have several layers, and we return entries for every rotation and layer on the schedule. The endpoint returns all entries that overlap with the given window. If no window is provided we default to a sensible range starting from now. ## Pagination Responses are paginated. When more entries are available than fit on a single page, the response includes a `pagination_meta` block with two fields: - `after_url` — a fully-formed URL for the next page. The simplest way to paginate is to keep following this URL until it is no longer present. - `after` — an opaque cursor token. To fetch the next page manually, re-issue the request with `entry_window_start` set to this value and `entry_window_end` left unchanged from the original request. Treat the token as opaque — do not parse or modify it. Keep paginating until `pagination_meta` is absent from the response, at which point you have received every entry in the window. * ListScheduleEntries Schedules V2 */ schedulesV2ListScheduleEntries(requestParameters: SchedulesV2ListScheduleEntriesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * Creates request options for schedulesV2ListScheduleReplicas without sending the request */ schedulesV2ListScheduleReplicasRequestOpts(requestParameters: SchedulesV2ListScheduleReplicasRequest): Promise; /** * List all replicas for a schedule. * ListScheduleReplicas Schedules V2 */ schedulesV2ListScheduleReplicasRaw(requestParameters: SchedulesV2ListScheduleReplicasRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * List all replicas for a schedule. * ListScheduleReplicas Schedules V2 */ schedulesV2ListScheduleReplicas(requestParameters: SchedulesV2ListScheduleReplicasRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * Creates request options for schedulesV2ListScheduleSyncRules without sending the request */ schedulesV2ListScheduleSyncRulesRequestOpts(requestParameters: SchedulesV2ListScheduleSyncRulesRequest): Promise; /** * List the sync rules configured on this schedule. * ListScheduleSyncRules Schedules V2 */ schedulesV2ListScheduleSyncRulesRaw(requestParameters: SchedulesV2ListScheduleSyncRulesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * List the sync rules configured on this schedule. * ListScheduleSyncRules Schedules V2 */ schedulesV2ListScheduleSyncRules(requestParameters: SchedulesV2ListScheduleSyncRulesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * Creates request options for schedulesV2PreviewScheduleEntries without sending the request */ schedulesV2PreviewScheduleEntriesRequestOpts(requestParameters: SchedulesV2PreviewScheduleEntriesRequest): Promise; /** * Preview the schedule entries that would be generated by a proposed schedule configuration. Use this endpoint before updating a schedule to see who would be on-call if you saved the supplied schedule payload. The request body uses the same `schedule` payload shape as Update schedule, so you can send the configuration you intend to save without persisting it. The response uses the same `schedule_entries` envelope as List schedule entries: `scheduled` contains entries produced by the rotation rules, `overrides` contains matching overrides, and `final` contains the effective schedule after overrides are applied. The preview window is bounded to keep requests predictable. If you ask for more than 91 days, the response is capped to 91 days from `entry_window_start`. * PreviewScheduleEntries Schedules V2 */ schedulesV2PreviewScheduleEntriesRaw(requestParameters: SchedulesV2PreviewScheduleEntriesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Preview the schedule entries that would be generated by a proposed schedule configuration. Use this endpoint before updating a schedule to see who would be on-call if you saved the supplied schedule payload. The request body uses the same `schedule` payload shape as Update schedule, so you can send the configuration you intend to save without persisting it. The response uses the same `schedule_entries` envelope as List schedule entries: `scheduled` contains entries produced by the rotation rules, `overrides` contains matching overrides, and `final` contains the effective schedule after overrides are applied. The preview window is bounded to keep requests predictable. If you ask for more than 91 days, the response is capped to 91 days from `entry_window_start`. * PreviewScheduleEntries Schedules V2 */ schedulesV2PreviewScheduleEntries(requestParameters: SchedulesV2PreviewScheduleEntriesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * Creates request options for schedulesV2Show without sending the request */ schedulesV2ShowRequestOpts(requestParameters: SchedulesV2ShowRequest): Promise; /** * Get a single schedule. * Show Schedules V2 */ schedulesV2ShowRaw(requestParameters: SchedulesV2ShowRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Get a single schedule. * Show Schedules V2 */ schedulesV2Show(requestParameters: SchedulesV2ShowRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * Creates request options for schedulesV2ShowOverride without sending the request */ schedulesV2ShowOverrideRequestOpts(requestParameters: SchedulesV2ShowOverrideRequest): Promise; /** * Get a single schedule override. Overrides that have been deleted are not returned. An override\'s ID is not stable across edits: updating an override that overlaps its neighbours replaces them with new overrides, so an ID you are holding can stop resolving. List the schedule\'s overrides again to pick up the replacements. * ShowOverride Schedules V2 */ schedulesV2ShowOverrideRaw(requestParameters: SchedulesV2ShowOverrideRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Get a single schedule override. Overrides that have been deleted are not returned. An override\'s ID is not stable across edits: updating an override that overlaps its neighbours replaces them with new overrides, so an ID you are holding can stop resolving. List the schedule\'s overrides again to pick up the replacements. * ShowOverride Schedules V2 */ schedulesV2ShowOverride(requestParameters: SchedulesV2ShowOverrideRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * Creates request options for schedulesV2ShowScheduleReplica without sending the request */ schedulesV2ShowScheduleReplicaRequestOpts(requestParameters: SchedulesV2ShowScheduleReplicaRequest): Promise; /** * Get a single schedule replica. * ShowScheduleReplica Schedules V2 */ schedulesV2ShowScheduleReplicaRaw(requestParameters: SchedulesV2ShowScheduleReplicaRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Get a single schedule replica. * ShowScheduleReplica Schedules V2 */ schedulesV2ShowScheduleReplica(requestParameters: SchedulesV2ShowScheduleReplicaRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * Creates request options for schedulesV2ShowScheduleSyncRule without sending the request */ schedulesV2ShowScheduleSyncRuleRequestOpts(requestParameters: SchedulesV2ShowScheduleSyncRuleRequest): Promise; /** * Get a single sync rule for a schedule. * ShowScheduleSyncRule Schedules V2 */ schedulesV2ShowScheduleSyncRuleRaw(requestParameters: SchedulesV2ShowScheduleSyncRuleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Get a single sync rule for a schedule. * ShowScheduleSyncRule Schedules V2 */ schedulesV2ShowScheduleSyncRule(requestParameters: SchedulesV2ShowScheduleSyncRuleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * Creates request options for schedulesV2Update without sending the request */ schedulesV2UpdateRequestOpts(requestParameters: SchedulesV2UpdateRequest): Promise; /** * Update a schedule. Updating a schedule replaces its entire configuration with the one you send, including any scheduled future versions of its rotations — fetch the schedule first and include every version you want to keep. To change who\'s in a rotation from a future date without affecting shifts before then, keep the current version unchanged and add another version of the same rotation with `effective_from` set to when the change should land — ideally an upcoming handover, so nobody is swapped mid-shift. You can check the effect of any configuration before saving it with Preview schedule entries. * Update Schedules V2 */ schedulesV2UpdateRaw(requestParameters: SchedulesV2UpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Update a schedule. Updating a schedule replaces its entire configuration with the one you send, including any scheduled future versions of its rotations — fetch the schedule first and include every version you want to keep. To change who\'s in a rotation from a future date without affecting shifts before then, keep the current version unchanged and add another version of the same rotation with `effective_from` set to when the change should land — ideally an upcoming handover, so nobody is swapped mid-shift. You can check the effect of any configuration before saving it with Preview schedule entries. * Update Schedules V2 */ schedulesV2Update(requestParameters: SchedulesV2UpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * Creates request options for schedulesV2UpdateOverride without sending the request */ schedulesV2UpdateOverrideRequestOpts(requestParameters: SchedulesV2UpdateOverrideRequest): Promise; /** * Update a schedule override, moving its window or the rotation and layer it sits on. An override cannot be reassigned: send the user it already has, and delete and recreate it to put someone else on call for that window. Overrides on a layer cannot overlap, so widening one over its neighbour\'s window takes that time over. The neighbour is deleted, and any of its time left outside the new window comes back as new overrides with new IDs, so other override IDs on this layer may stop resolving — list the schedule\'s overrides again to pick up the replacements. * UpdateOverride Schedules V2 */ schedulesV2UpdateOverrideRaw(requestParameters: SchedulesV2UpdateOverrideRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Update a schedule override, moving its window or the rotation and layer it sits on. An override cannot be reassigned: send the user it already has, and delete and recreate it to put someone else on call for that window. Overrides on a layer cannot overlap, so widening one over its neighbour\'s window takes that time over. The neighbour is deleted, and any of its time left outside the new window comes back as new overrides with new IDs, so other override IDs on this layer may stop resolving — list the schedule\'s overrides again to pick up the replacements. * UpdateOverride Schedules V2 */ schedulesV2UpdateOverride(requestParameters: SchedulesV2UpdateOverrideRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * Creates request options for schedulesV2UpdateScheduleSyncRule without sending the request */ schedulesV2UpdateScheduleSyncRuleRequestOpts(requestParameters: SchedulesV2UpdateScheduleSyncRuleRequest): Promise; /** * Update a sync rule\'s sync_type and permanent members in place. If the rule\'s sync target is shared with other schedules, a sync_type change propagates to every linked schedule and the entire operation aborts if the caller lacks edit permission on any of them. Permanent members are scoped to this rule and never propagate. * UpdateScheduleSyncRule Schedules V2 */ schedulesV2UpdateScheduleSyncRuleRaw(requestParameters: SchedulesV2UpdateScheduleSyncRuleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Update a sync rule\'s sync_type and permanent members in place. If the rule\'s sync target is shared with other schedules, a sync_type change propagates to every linked schedule and the entire operation aborts if the caller lacks edit permission on any of them. Permanent members are scoped to this rule and never propagate. * UpdateScheduleSyncRule Schedules V2 */ schedulesV2UpdateScheduleSyncRule(requestParameters: SchedulesV2UpdateScheduleSyncRuleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; }