@incident-io/sdk 1.1.0 → 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (33) hide show
  1. package/dist/cjs/apis/SchedulesV2Api.d.ts +2 -2
  2. package/dist/cjs/apis/SchedulesV2Api.js +2 -2
  3. package/dist/cjs/models/AuditLogTargetV2.d.ts +1 -0
  4. package/dist/cjs/models/AuditLogTargetV2.js +1 -0
  5. package/dist/cjs/models/AuditLogsOnCallNotificationPauseResumedV1.d.ts +58 -0
  6. package/dist/cjs/models/AuditLogsOnCallNotificationPauseResumedV1.js +79 -0
  7. package/dist/cjs/models/AuditLogsUserAPIKeyCreatedV1.d.ts +53 -0
  8. package/dist/cjs/models/AuditLogsUserAPIKeyCreatedV1.js +74 -0
  9. package/dist/cjs/models/AuditLogsUserAPIKeyDeletedV1.d.ts +53 -0
  10. package/dist/cjs/models/AuditLogsUserAPIKeyDeletedV1.js +74 -0
  11. package/dist/cjs/models/ScheduleEntryV2.d.ts +4 -9
  12. package/dist/cjs/models/ScheduleEntryV2.js +0 -2
  13. package/dist/cjs/models/index.d.ts +3 -0
  14. package/dist/cjs/models/index.js +3 -0
  15. package/dist/cjs/version.d.ts +1 -1
  16. package/dist/cjs/version.js +1 -1
  17. package/dist/esm/apis/SchedulesV2Api.d.ts +2 -2
  18. package/dist/esm/apis/SchedulesV2Api.js +2 -2
  19. package/dist/esm/models/AuditLogTargetV2.d.ts +1 -0
  20. package/dist/esm/models/AuditLogTargetV2.js +1 -0
  21. package/dist/esm/models/AuditLogsOnCallNotificationPauseResumedV1.d.ts +58 -0
  22. package/dist/esm/models/AuditLogsOnCallNotificationPauseResumedV1.js +72 -0
  23. package/dist/esm/models/AuditLogsUserAPIKeyCreatedV1.d.ts +53 -0
  24. package/dist/esm/models/AuditLogsUserAPIKeyCreatedV1.js +67 -0
  25. package/dist/esm/models/AuditLogsUserAPIKeyDeletedV1.d.ts +53 -0
  26. package/dist/esm/models/AuditLogsUserAPIKeyDeletedV1.js +67 -0
  27. package/dist/esm/models/ScheduleEntryV2.d.ts +4 -9
  28. package/dist/esm/models/ScheduleEntryV2.js +0 -2
  29. package/dist/esm/models/index.d.ts +3 -0
  30. package/dist/esm/models/index.js +3 -0
  31. package/dist/esm/version.d.ts +1 -1
  32. package/dist/esm/version.js +1 -1
  33. package/package.json +1 -1
@@ -390,12 +390,12 @@ export declare class SchedulesV2Api extends runtime.BaseAPI {
390
390
  */
391
391
  schedulesV2ListScheduleEntriesRequestOpts(requestParameters: SchedulesV2ListScheduleEntriesRequest): Promise<runtime.RequestOpts>;
392
392
  /**
393
- * 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` and `layer_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.
393
+ * 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.
394
394
  * ListScheduleEntries Schedules V2
395
395
  */
396
396
  schedulesV2ListScheduleEntriesRaw(requestParameters: SchedulesV2ListScheduleEntriesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SchedulesListScheduleEntriesResultV2>>;
397
397
  /**
398
- * 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` and `layer_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.
398
+ * 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.
399
399
  * ListScheduleEntries Schedules V2
400
400
  */
401
401
  schedulesV2ListScheduleEntries(requestParameters: SchedulesV2ListScheduleEntriesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SchedulesListScheduleEntriesResultV2>;
@@ -563,7 +563,7 @@ class SchedulesV2Api extends runtime.BaseAPI {
563
563
  };
564
564
  }
565
565
  /**
566
- * 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` and `layer_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.
566
+ * 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.
567
567
  * ListScheduleEntries Schedules V2
568
568
  */
569
569
  async schedulesV2ListScheduleEntriesRaw(requestParameters, initOverrides) {
@@ -572,7 +572,7 @@ class SchedulesV2Api extends runtime.BaseAPI {
572
572
  return new runtime.JSONApiResponse(response, (jsonValue) => (0, SchedulesListScheduleEntriesResultV2_js_1.SchedulesListScheduleEntriesResultV2FromJSON)(jsonValue));
573
573
  }
574
574
  /**
575
- * 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` and `layer_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.
575
+ * 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.
576
576
  * ListScheduleEntries Schedules V2
577
577
  */
578
578
  async schedulesV2ListScheduleEntries(requestParameters, initOverrides) {
@@ -97,6 +97,7 @@ export declare const AuditLogTargetV2TypeEnum: {
97
97
  readonly TelemetryDataSource: "telemetry_data_source";
98
98
  readonly TwilioConnection: "twilio_connection";
99
99
  readonly User: "user";
100
+ readonly UserApiKey: "user_api_key";
100
101
  readonly Workflow: "workflow";
101
102
  readonly ActivityLog: "activity_log";
102
103
  readonly TimelineItem: "timeline_item";
@@ -88,6 +88,7 @@ exports.AuditLogTargetV2TypeEnum = {
88
88
  TelemetryDataSource: 'telemetry_data_source',
89
89
  TwilioConnection: 'twilio_connection',
90
90
  User: 'user',
91
+ UserApiKey: 'user_api_key',
91
92
  Workflow: 'workflow',
92
93
  ActivityLog: 'activity_log',
93
94
  TimelineItem: 'timeline_item',
@@ -0,0 +1,58 @@
1
+ /**
2
+ * incident.io
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { AuditLogActorV2 } from './AuditLogActorV2.js';
13
+ import type { AuditLogOnCallNotificationPauseMetadataV2 } from './AuditLogOnCallNotificationPauseMetadataV2.js';
14
+ import type { AuditLogEntryContextV2 } from './AuditLogEntryContextV2.js';
15
+ import type { AuditLogTargetV2 } from './AuditLogTargetV2.js';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface AuditLogsOnCallNotificationPauseResumedV1
20
+ */
21
+ export interface AuditLogsOnCallNotificationPauseResumedV1 {
22
+ /**
23
+ * The type of log entry that this is
24
+ */
25
+ action: string;
26
+ /**
27
+ *
28
+ */
29
+ actor: AuditLogActorV2;
30
+ /**
31
+ *
32
+ */
33
+ context: AuditLogEntryContextV2;
34
+ /**
35
+ *
36
+ */
37
+ metadata: AuditLogOnCallNotificationPauseMetadataV2;
38
+ /**
39
+ * When the entry occurred
40
+ */
41
+ occurred_at: Date;
42
+ /**
43
+ * The custom field that was created
44
+ */
45
+ targets: Array<AuditLogTargetV2>;
46
+ /**
47
+ * Which version the event is
48
+ */
49
+ version: number;
50
+ }
51
+ /**
52
+ * Check if a given object implements the AuditLogsOnCallNotificationPauseResumedV1 interface.
53
+ */
54
+ export declare function instanceOfAuditLogsOnCallNotificationPauseResumedV1(value: object): value is AuditLogsOnCallNotificationPauseResumedV1;
55
+ export declare function AuditLogsOnCallNotificationPauseResumedV1FromJSON(json: any): AuditLogsOnCallNotificationPauseResumedV1;
56
+ export declare function AuditLogsOnCallNotificationPauseResumedV1FromJSONTyped(json: any, ignoreDiscriminator: boolean): AuditLogsOnCallNotificationPauseResumedV1;
57
+ export declare function AuditLogsOnCallNotificationPauseResumedV1ToJSON(json: any): AuditLogsOnCallNotificationPauseResumedV1;
58
+ export declare function AuditLogsOnCallNotificationPauseResumedV1ToJSONTyped(value?: AuditLogsOnCallNotificationPauseResumedV1 | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,79 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * incident.io
6
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfAuditLogsOnCallNotificationPauseResumedV1 = instanceOfAuditLogsOnCallNotificationPauseResumedV1;
17
+ exports.AuditLogsOnCallNotificationPauseResumedV1FromJSON = AuditLogsOnCallNotificationPauseResumedV1FromJSON;
18
+ exports.AuditLogsOnCallNotificationPauseResumedV1FromJSONTyped = AuditLogsOnCallNotificationPauseResumedV1FromJSONTyped;
19
+ exports.AuditLogsOnCallNotificationPauseResumedV1ToJSON = AuditLogsOnCallNotificationPauseResumedV1ToJSON;
20
+ exports.AuditLogsOnCallNotificationPauseResumedV1ToJSONTyped = AuditLogsOnCallNotificationPauseResumedV1ToJSONTyped;
21
+ const runtime_js_1 = require("../runtime.js");
22
+ const AuditLogActorV2_js_1 = require("./AuditLogActorV2.js");
23
+ const AuditLogOnCallNotificationPauseMetadataV2_js_1 = require("./AuditLogOnCallNotificationPauseMetadataV2.js");
24
+ const AuditLogEntryContextV2_js_1 = require("./AuditLogEntryContextV2.js");
25
+ const AuditLogTargetV2_js_1 = require("./AuditLogTargetV2.js");
26
+ /**
27
+ * Check if a given object implements the AuditLogsOnCallNotificationPauseResumedV1 interface.
28
+ */
29
+ function instanceOfAuditLogsOnCallNotificationPauseResumedV1(value) {
30
+ if (!('action' in value) || value['action'] === undefined)
31
+ return false;
32
+ if (!('actor' in value) || value['actor'] === undefined)
33
+ return false;
34
+ if (!('context' in value) || value['context'] === undefined)
35
+ return false;
36
+ if (!('metadata' in value) || value['metadata'] === undefined)
37
+ return false;
38
+ if (!('occurred_at' in value) || value['occurred_at'] === undefined)
39
+ return false;
40
+ if (!('targets' in value) || value['targets'] === undefined)
41
+ return false;
42
+ if (!('version' in value) || value['version'] === undefined)
43
+ return false;
44
+ return true;
45
+ }
46
+ function AuditLogsOnCallNotificationPauseResumedV1FromJSON(json) {
47
+ return AuditLogsOnCallNotificationPauseResumedV1FromJSONTyped(json, false);
48
+ }
49
+ function AuditLogsOnCallNotificationPauseResumedV1FromJSONTyped(json, ignoreDiscriminator) {
50
+ if (json == null) {
51
+ return json;
52
+ }
53
+ return {
54
+ 'action': json['action'],
55
+ 'actor': (0, AuditLogActorV2_js_1.AuditLogActorV2FromJSON)(json['actor']),
56
+ 'context': (0, AuditLogEntryContextV2_js_1.AuditLogEntryContextV2FromJSON)(json['context']),
57
+ 'metadata': (0, AuditLogOnCallNotificationPauseMetadataV2_js_1.AuditLogOnCallNotificationPauseMetadataV2FromJSON)(json['metadata']),
58
+ 'occurred_at': (json['occurred_at'] == null ? json['occurred_at'] : (0, runtime_js_1.parseDateTime)(json['occurred_at'])),
59
+ 'targets': (json['targets'].map(AuditLogTargetV2_js_1.AuditLogTargetV2FromJSON)),
60
+ 'version': json['version'],
61
+ };
62
+ }
63
+ function AuditLogsOnCallNotificationPauseResumedV1ToJSON(json) {
64
+ return AuditLogsOnCallNotificationPauseResumedV1ToJSONTyped(json, false);
65
+ }
66
+ function AuditLogsOnCallNotificationPauseResumedV1ToJSONTyped(value, ignoreDiscriminator = false) {
67
+ if (value == null) {
68
+ return value;
69
+ }
70
+ return {
71
+ 'action': value['action'],
72
+ 'actor': (0, AuditLogActorV2_js_1.AuditLogActorV2ToJSON)(value['actor']),
73
+ 'context': (0, AuditLogEntryContextV2_js_1.AuditLogEntryContextV2ToJSON)(value['context']),
74
+ 'metadata': (0, AuditLogOnCallNotificationPauseMetadataV2_js_1.AuditLogOnCallNotificationPauseMetadataV2ToJSON)(value['metadata']),
75
+ 'occurred_at': value['occurred_at'] == null ? value['occurred_at'] : (0, runtime_js_1.serializeDateTime)(value['occurred_at']),
76
+ 'targets': (value['targets'].map(AuditLogTargetV2_js_1.AuditLogTargetV2ToJSON)),
77
+ 'version': value['version'],
78
+ };
79
+ }
@@ -0,0 +1,53 @@
1
+ /**
2
+ * incident.io
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { AuditLogActorV2 } from './AuditLogActorV2.js';
13
+ import type { AuditLogEntryContextV2 } from './AuditLogEntryContextV2.js';
14
+ import type { AuditLogTargetV2 } from './AuditLogTargetV2.js';
15
+ /**
16
+ *
17
+ * @export
18
+ * @interface AuditLogsUserAPIKeyCreatedV1
19
+ */
20
+ export interface AuditLogsUserAPIKeyCreatedV1 {
21
+ /**
22
+ * The type of log entry that this is
23
+ */
24
+ action: string;
25
+ /**
26
+ *
27
+ */
28
+ actor: AuditLogActorV2;
29
+ /**
30
+ *
31
+ */
32
+ context: AuditLogEntryContextV2;
33
+ /**
34
+ * When the entry occurred
35
+ */
36
+ occurred_at: Date;
37
+ /**
38
+ * The custom field that was created
39
+ */
40
+ targets: Array<AuditLogTargetV2>;
41
+ /**
42
+ * Which version the event is
43
+ */
44
+ version: number;
45
+ }
46
+ /**
47
+ * Check if a given object implements the AuditLogsUserAPIKeyCreatedV1 interface.
48
+ */
49
+ export declare function instanceOfAuditLogsUserAPIKeyCreatedV1(value: object): value is AuditLogsUserAPIKeyCreatedV1;
50
+ export declare function AuditLogsUserAPIKeyCreatedV1FromJSON(json: any): AuditLogsUserAPIKeyCreatedV1;
51
+ export declare function AuditLogsUserAPIKeyCreatedV1FromJSONTyped(json: any, ignoreDiscriminator: boolean): AuditLogsUserAPIKeyCreatedV1;
52
+ export declare function AuditLogsUserAPIKeyCreatedV1ToJSON(json: any): AuditLogsUserAPIKeyCreatedV1;
53
+ export declare function AuditLogsUserAPIKeyCreatedV1ToJSONTyped(value?: AuditLogsUserAPIKeyCreatedV1 | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,74 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * incident.io
6
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfAuditLogsUserAPIKeyCreatedV1 = instanceOfAuditLogsUserAPIKeyCreatedV1;
17
+ exports.AuditLogsUserAPIKeyCreatedV1FromJSON = AuditLogsUserAPIKeyCreatedV1FromJSON;
18
+ exports.AuditLogsUserAPIKeyCreatedV1FromJSONTyped = AuditLogsUserAPIKeyCreatedV1FromJSONTyped;
19
+ exports.AuditLogsUserAPIKeyCreatedV1ToJSON = AuditLogsUserAPIKeyCreatedV1ToJSON;
20
+ exports.AuditLogsUserAPIKeyCreatedV1ToJSONTyped = AuditLogsUserAPIKeyCreatedV1ToJSONTyped;
21
+ const runtime_js_1 = require("../runtime.js");
22
+ const AuditLogActorV2_js_1 = require("./AuditLogActorV2.js");
23
+ const AuditLogEntryContextV2_js_1 = require("./AuditLogEntryContextV2.js");
24
+ const AuditLogTargetV2_js_1 = require("./AuditLogTargetV2.js");
25
+ /**
26
+ * Check if a given object implements the AuditLogsUserAPIKeyCreatedV1 interface.
27
+ */
28
+ function instanceOfAuditLogsUserAPIKeyCreatedV1(value) {
29
+ if (!('action' in value) || value['action'] === undefined)
30
+ return false;
31
+ if (!('actor' in value) || value['actor'] === undefined)
32
+ return false;
33
+ if (!('context' in value) || value['context'] === undefined)
34
+ return false;
35
+ if (!('occurred_at' in value) || value['occurred_at'] === undefined)
36
+ return false;
37
+ if (!('targets' in value) || value['targets'] === undefined)
38
+ return false;
39
+ if (!('version' in value) || value['version'] === undefined)
40
+ return false;
41
+ return true;
42
+ }
43
+ function AuditLogsUserAPIKeyCreatedV1FromJSON(json) {
44
+ return AuditLogsUserAPIKeyCreatedV1FromJSONTyped(json, false);
45
+ }
46
+ function AuditLogsUserAPIKeyCreatedV1FromJSONTyped(json, ignoreDiscriminator) {
47
+ if (json == null) {
48
+ return json;
49
+ }
50
+ return {
51
+ 'action': json['action'],
52
+ 'actor': (0, AuditLogActorV2_js_1.AuditLogActorV2FromJSON)(json['actor']),
53
+ 'context': (0, AuditLogEntryContextV2_js_1.AuditLogEntryContextV2FromJSON)(json['context']),
54
+ 'occurred_at': (json['occurred_at'] == null ? json['occurred_at'] : (0, runtime_js_1.parseDateTime)(json['occurred_at'])),
55
+ 'targets': (json['targets'].map(AuditLogTargetV2_js_1.AuditLogTargetV2FromJSON)),
56
+ 'version': json['version'],
57
+ };
58
+ }
59
+ function AuditLogsUserAPIKeyCreatedV1ToJSON(json) {
60
+ return AuditLogsUserAPIKeyCreatedV1ToJSONTyped(json, false);
61
+ }
62
+ function AuditLogsUserAPIKeyCreatedV1ToJSONTyped(value, ignoreDiscriminator = false) {
63
+ if (value == null) {
64
+ return value;
65
+ }
66
+ return {
67
+ 'action': value['action'],
68
+ 'actor': (0, AuditLogActorV2_js_1.AuditLogActorV2ToJSON)(value['actor']),
69
+ 'context': (0, AuditLogEntryContextV2_js_1.AuditLogEntryContextV2ToJSON)(value['context']),
70
+ 'occurred_at': value['occurred_at'] == null ? value['occurred_at'] : (0, runtime_js_1.serializeDateTime)(value['occurred_at']),
71
+ 'targets': (value['targets'].map(AuditLogTargetV2_js_1.AuditLogTargetV2ToJSON)),
72
+ 'version': value['version'],
73
+ };
74
+ }
@@ -0,0 +1,53 @@
1
+ /**
2
+ * incident.io
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { AuditLogActorV2 } from './AuditLogActorV2.js';
13
+ import type { AuditLogEntryContextV2 } from './AuditLogEntryContextV2.js';
14
+ import type { AuditLogTargetV2 } from './AuditLogTargetV2.js';
15
+ /**
16
+ *
17
+ * @export
18
+ * @interface AuditLogsUserAPIKeyDeletedV1
19
+ */
20
+ export interface AuditLogsUserAPIKeyDeletedV1 {
21
+ /**
22
+ * The type of log entry that this is
23
+ */
24
+ action: string;
25
+ /**
26
+ *
27
+ */
28
+ actor: AuditLogActorV2;
29
+ /**
30
+ *
31
+ */
32
+ context: AuditLogEntryContextV2;
33
+ /**
34
+ * When the entry occurred
35
+ */
36
+ occurred_at: Date;
37
+ /**
38
+ * The custom field that was created
39
+ */
40
+ targets: Array<AuditLogTargetV2>;
41
+ /**
42
+ * Which version the event is
43
+ */
44
+ version: number;
45
+ }
46
+ /**
47
+ * Check if a given object implements the AuditLogsUserAPIKeyDeletedV1 interface.
48
+ */
49
+ export declare function instanceOfAuditLogsUserAPIKeyDeletedV1(value: object): value is AuditLogsUserAPIKeyDeletedV1;
50
+ export declare function AuditLogsUserAPIKeyDeletedV1FromJSON(json: any): AuditLogsUserAPIKeyDeletedV1;
51
+ export declare function AuditLogsUserAPIKeyDeletedV1FromJSONTyped(json: any, ignoreDiscriminator: boolean): AuditLogsUserAPIKeyDeletedV1;
52
+ export declare function AuditLogsUserAPIKeyDeletedV1ToJSON(json: any): AuditLogsUserAPIKeyDeletedV1;
53
+ export declare function AuditLogsUserAPIKeyDeletedV1ToJSONTyped(value?: AuditLogsUserAPIKeyDeletedV1 | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,74 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * incident.io
6
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfAuditLogsUserAPIKeyDeletedV1 = instanceOfAuditLogsUserAPIKeyDeletedV1;
17
+ exports.AuditLogsUserAPIKeyDeletedV1FromJSON = AuditLogsUserAPIKeyDeletedV1FromJSON;
18
+ exports.AuditLogsUserAPIKeyDeletedV1FromJSONTyped = AuditLogsUserAPIKeyDeletedV1FromJSONTyped;
19
+ exports.AuditLogsUserAPIKeyDeletedV1ToJSON = AuditLogsUserAPIKeyDeletedV1ToJSON;
20
+ exports.AuditLogsUserAPIKeyDeletedV1ToJSONTyped = AuditLogsUserAPIKeyDeletedV1ToJSONTyped;
21
+ const runtime_js_1 = require("../runtime.js");
22
+ const AuditLogActorV2_js_1 = require("./AuditLogActorV2.js");
23
+ const AuditLogEntryContextV2_js_1 = require("./AuditLogEntryContextV2.js");
24
+ const AuditLogTargetV2_js_1 = require("./AuditLogTargetV2.js");
25
+ /**
26
+ * Check if a given object implements the AuditLogsUserAPIKeyDeletedV1 interface.
27
+ */
28
+ function instanceOfAuditLogsUserAPIKeyDeletedV1(value) {
29
+ if (!('action' in value) || value['action'] === undefined)
30
+ return false;
31
+ if (!('actor' in value) || value['actor'] === undefined)
32
+ return false;
33
+ if (!('context' in value) || value['context'] === undefined)
34
+ return false;
35
+ if (!('occurred_at' in value) || value['occurred_at'] === undefined)
36
+ return false;
37
+ if (!('targets' in value) || value['targets'] === undefined)
38
+ return false;
39
+ if (!('version' in value) || value['version'] === undefined)
40
+ return false;
41
+ return true;
42
+ }
43
+ function AuditLogsUserAPIKeyDeletedV1FromJSON(json) {
44
+ return AuditLogsUserAPIKeyDeletedV1FromJSONTyped(json, false);
45
+ }
46
+ function AuditLogsUserAPIKeyDeletedV1FromJSONTyped(json, ignoreDiscriminator) {
47
+ if (json == null) {
48
+ return json;
49
+ }
50
+ return {
51
+ 'action': json['action'],
52
+ 'actor': (0, AuditLogActorV2_js_1.AuditLogActorV2FromJSON)(json['actor']),
53
+ 'context': (0, AuditLogEntryContextV2_js_1.AuditLogEntryContextV2FromJSON)(json['context']),
54
+ 'occurred_at': (json['occurred_at'] == null ? json['occurred_at'] : (0, runtime_js_1.parseDateTime)(json['occurred_at'])),
55
+ 'targets': (json['targets'].map(AuditLogTargetV2_js_1.AuditLogTargetV2FromJSON)),
56
+ 'version': json['version'],
57
+ };
58
+ }
59
+ function AuditLogsUserAPIKeyDeletedV1ToJSON(json) {
60
+ return AuditLogsUserAPIKeyDeletedV1ToJSONTyped(json, false);
61
+ }
62
+ function AuditLogsUserAPIKeyDeletedV1ToJSONTyped(value, ignoreDiscriminator = false) {
63
+ if (value == null) {
64
+ return value;
65
+ }
66
+ return {
67
+ 'action': value['action'],
68
+ 'actor': (0, AuditLogActorV2_js_1.AuditLogActorV2ToJSON)(value['actor']),
69
+ 'context': (0, AuditLogEntryContextV2_js_1.AuditLogEntryContextV2ToJSON)(value['context']),
70
+ 'occurred_at': value['occurred_at'] == null ? value['occurred_at'] : (0, runtime_js_1.serializeDateTime)(value['occurred_at']),
71
+ 'targets': (value['targets'].map(AuditLogTargetV2_js_1.AuditLogTargetV2ToJSON)),
72
+ 'version': value['version'],
73
+ };
74
+ }
@@ -12,11 +12,10 @@
12
12
  import type { UserV2 } from './UserV2.js';
13
13
  /**
14
14
  * A single shift on a schedule, representing who is on-call between a start
15
- * and end time. When present, `rotation_id` and `layer_id` tell you which
16
- * rotation and which layer within that rotation the entry belongs to. A
17
- * schedule may have multiple rotations (for example, a primary and a secondary
18
- * rotation) and each rotation can be made up of several layers — entries are
19
- * returned for every rotation and layer on the schedule.
15
+ * and end time. When present, `rotation_id` tells you which rotation the
16
+ * entry belongs to. A schedule may have multiple rotations (for example, a
17
+ * primary and a secondary rotation) and each rotation can be made up of several
18
+ * layers — entries are returned for every rotation and layer on the schedule.
20
19
  *
21
20
  * Entries come from two places: they are either generated from a schedule's
22
21
  * rotation configuration (the regular pattern of who is on-call) or created by
@@ -46,10 +45,6 @@ export interface ScheduleEntryV2 {
46
45
  * A unique identifier for this entry, used to determine a unique shift
47
46
  */
48
47
  fingerprint?: string;
49
- /**
50
- * If present, the layer this entry applies to on the rotation
51
- */
52
- layer_id?: string;
53
48
  /**
54
49
  * If present, the rotation this entry applies to on the schedule
55
50
  */
@@ -41,7 +41,6 @@ function ScheduleEntryV2FromJSONTyped(json, ignoreDiscriminator) {
41
41
  'end_at': (json['end_at'] == null ? json['end_at'] : (0, runtime_js_1.parseDateTime)(json['end_at'])),
42
42
  'entry_id': json['entry_id'] == null ? undefined : json['entry_id'],
43
43
  'fingerprint': json['fingerprint'] == null ? undefined : json['fingerprint'],
44
- 'layer_id': json['layer_id'] == null ? undefined : json['layer_id'],
45
44
  'rotation_id': json['rotation_id'] == null ? undefined : json['rotation_id'],
46
45
  'start_at': (json['start_at'] == null ? json['start_at'] : (0, runtime_js_1.parseDateTime)(json['start_at'])),
47
46
  'user': json['user'] == null ? undefined : (0, UserV2_js_1.UserV2FromJSON)(json['user']),
@@ -58,7 +57,6 @@ function ScheduleEntryV2ToJSONTyped(value, ignoreDiscriminator = false) {
58
57
  'end_at': value['end_at'] == null ? value['end_at'] : (0, runtime_js_1.serializeDateTime)(value['end_at']),
59
58
  'entry_id': value['entry_id'],
60
59
  'fingerprint': value['fingerprint'],
61
- 'layer_id': value['layer_id'],
62
60
  'rotation_id': value['rotation_id'],
63
61
  'start_at': value['start_at'] == null ? value['start_at'] : (0, runtime_js_1.serializeDateTime)(value['start_at']),
64
62
  'user': (0, UserV2_js_1.UserV2ToJSON)(value['user']),
@@ -351,6 +351,7 @@ export * from './AuditLogsOnCallNotificationPauseCreatedV1.js';
351
351
  export * from './AuditLogsOnCallNotificationPauseCreatedV2.js';
352
352
  export * from './AuditLogsOnCallNotificationPauseDeletedV1.js';
353
353
  export * from './AuditLogsOnCallNotificationPauseDeletedV2.js';
354
+ export * from './AuditLogsOnCallNotificationPauseResumedV1.js';
354
355
  export * from './AuditLogsOnCallNotificationPauseUpdatedV1.js';
355
356
  export * from './AuditLogsOnCallNotificationPauseUpdatedV2.js';
356
357
  export * from './AuditLogsOnCallUpsellRequestedV1.js';
@@ -450,6 +451,8 @@ export * from './AuditLogsTimelineItemDeletedV1.js';
450
451
  export * from './AuditLogsTwilioConnectionCreatedV1.js';
451
452
  export * from './AuditLogsTwilioConnectionDeletedV1.js';
452
453
  export * from './AuditLogsTwilioConnectionUpdatedV1.js';
454
+ export * from './AuditLogsUserAPIKeyCreatedV1.js';
455
+ export * from './AuditLogsUserAPIKeyDeletedV1.js';
453
456
  export * from './AuditLogsUserCreatedV1.js';
454
457
  export * from './AuditLogsUserDeactivatedV1.js';
455
458
  export * from './AuditLogsUserLoggedInV1.js';
@@ -369,6 +369,7 @@ __exportStar(require("./AuditLogsOnCallNotificationPauseCreatedV1.js"), exports)
369
369
  __exportStar(require("./AuditLogsOnCallNotificationPauseCreatedV2.js"), exports);
370
370
  __exportStar(require("./AuditLogsOnCallNotificationPauseDeletedV1.js"), exports);
371
371
  __exportStar(require("./AuditLogsOnCallNotificationPauseDeletedV2.js"), exports);
372
+ __exportStar(require("./AuditLogsOnCallNotificationPauseResumedV1.js"), exports);
372
373
  __exportStar(require("./AuditLogsOnCallNotificationPauseUpdatedV1.js"), exports);
373
374
  __exportStar(require("./AuditLogsOnCallNotificationPauseUpdatedV2.js"), exports);
374
375
  __exportStar(require("./AuditLogsOnCallUpsellRequestedV1.js"), exports);
@@ -468,6 +469,8 @@ __exportStar(require("./AuditLogsTimelineItemDeletedV1.js"), exports);
468
469
  __exportStar(require("./AuditLogsTwilioConnectionCreatedV1.js"), exports);
469
470
  __exportStar(require("./AuditLogsTwilioConnectionDeletedV1.js"), exports);
470
471
  __exportStar(require("./AuditLogsTwilioConnectionUpdatedV1.js"), exports);
472
+ __exportStar(require("./AuditLogsUserAPIKeyCreatedV1.js"), exports);
473
+ __exportStar(require("./AuditLogsUserAPIKeyDeletedV1.js"), exports);
471
474
  __exportStar(require("./AuditLogsUserCreatedV1.js"), exports);
472
475
  __exportStar(require("./AuditLogsUserDeactivatedV1.js"), exports);
473
476
  __exportStar(require("./AuditLogsUserLoggedInV1.js"), exports);
@@ -1 +1 @@
1
- export declare const VERSION = "1.1.0";
1
+ export declare const VERSION = "2.0.0";
@@ -2,4 +2,4 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.VERSION = void 0;
4
4
  // Written by `make build` from package.json. Do not edit.
5
- exports.VERSION = "1.1.0";
5
+ exports.VERSION = "2.0.0";
@@ -390,12 +390,12 @@ export declare class SchedulesV2Api extends runtime.BaseAPI {
390
390
  */
391
391
  schedulesV2ListScheduleEntriesRequestOpts(requestParameters: SchedulesV2ListScheduleEntriesRequest): Promise<runtime.RequestOpts>;
392
392
  /**
393
- * 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` and `layer_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.
393
+ * 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.
394
394
  * ListScheduleEntries Schedules V2
395
395
  */
396
396
  schedulesV2ListScheduleEntriesRaw(requestParameters: SchedulesV2ListScheduleEntriesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SchedulesListScheduleEntriesResultV2>>;
397
397
  /**
398
- * 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` and `layer_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.
398
+ * 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.
399
399
  * ListScheduleEntries Schedules V2
400
400
  */
401
401
  schedulesV2ListScheduleEntries(requestParameters: SchedulesV2ListScheduleEntriesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SchedulesListScheduleEntriesResultV2>;
@@ -527,7 +527,7 @@ export class SchedulesV2Api extends runtime.BaseAPI {
527
527
  };
528
528
  }
529
529
  /**
530
- * 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` and `layer_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.
530
+ * 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.
531
531
  * ListScheduleEntries Schedules V2
532
532
  */
533
533
  async schedulesV2ListScheduleEntriesRaw(requestParameters, initOverrides) {
@@ -536,7 +536,7 @@ export class SchedulesV2Api extends runtime.BaseAPI {
536
536
  return new runtime.JSONApiResponse(response, (jsonValue) => SchedulesListScheduleEntriesResultV2FromJSON(jsonValue));
537
537
  }
538
538
  /**
539
- * 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` and `layer_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.
539
+ * 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.
540
540
  * ListScheduleEntries Schedules V2
541
541
  */
542
542
  async schedulesV2ListScheduleEntries(requestParameters, initOverrides) {
@@ -97,6 +97,7 @@ export declare const AuditLogTargetV2TypeEnum: {
97
97
  readonly TelemetryDataSource: "telemetry_data_source";
98
98
  readonly TwilioConnection: "twilio_connection";
99
99
  readonly User: "user";
100
+ readonly UserApiKey: "user_api_key";
100
101
  readonly Workflow: "workflow";
101
102
  readonly ActivityLog: "activity_log";
102
103
  readonly TimelineItem: "timeline_item";
@@ -80,6 +80,7 @@ export const AuditLogTargetV2TypeEnum = {
80
80
  TelemetryDataSource: 'telemetry_data_source',
81
81
  TwilioConnection: 'twilio_connection',
82
82
  User: 'user',
83
+ UserApiKey: 'user_api_key',
83
84
  Workflow: 'workflow',
84
85
  ActivityLog: 'activity_log',
85
86
  TimelineItem: 'timeline_item',
@@ -0,0 +1,58 @@
1
+ /**
2
+ * incident.io
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { AuditLogActorV2 } from './AuditLogActorV2.js';
13
+ import type { AuditLogOnCallNotificationPauseMetadataV2 } from './AuditLogOnCallNotificationPauseMetadataV2.js';
14
+ import type { AuditLogEntryContextV2 } from './AuditLogEntryContextV2.js';
15
+ import type { AuditLogTargetV2 } from './AuditLogTargetV2.js';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface AuditLogsOnCallNotificationPauseResumedV1
20
+ */
21
+ export interface AuditLogsOnCallNotificationPauseResumedV1 {
22
+ /**
23
+ * The type of log entry that this is
24
+ */
25
+ action: string;
26
+ /**
27
+ *
28
+ */
29
+ actor: AuditLogActorV2;
30
+ /**
31
+ *
32
+ */
33
+ context: AuditLogEntryContextV2;
34
+ /**
35
+ *
36
+ */
37
+ metadata: AuditLogOnCallNotificationPauseMetadataV2;
38
+ /**
39
+ * When the entry occurred
40
+ */
41
+ occurred_at: Date;
42
+ /**
43
+ * The custom field that was created
44
+ */
45
+ targets: Array<AuditLogTargetV2>;
46
+ /**
47
+ * Which version the event is
48
+ */
49
+ version: number;
50
+ }
51
+ /**
52
+ * Check if a given object implements the AuditLogsOnCallNotificationPauseResumedV1 interface.
53
+ */
54
+ export declare function instanceOfAuditLogsOnCallNotificationPauseResumedV1(value: object): value is AuditLogsOnCallNotificationPauseResumedV1;
55
+ export declare function AuditLogsOnCallNotificationPauseResumedV1FromJSON(json: any): AuditLogsOnCallNotificationPauseResumedV1;
56
+ export declare function AuditLogsOnCallNotificationPauseResumedV1FromJSONTyped(json: any, ignoreDiscriminator: boolean): AuditLogsOnCallNotificationPauseResumedV1;
57
+ export declare function AuditLogsOnCallNotificationPauseResumedV1ToJSON(json: any): AuditLogsOnCallNotificationPauseResumedV1;
58
+ export declare function AuditLogsOnCallNotificationPauseResumedV1ToJSONTyped(value?: AuditLogsOnCallNotificationPauseResumedV1 | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,72 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * incident.io
5
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ import { parseDateTime, serializeDateTime } from '../runtime.js';
15
+ import { AuditLogActorV2FromJSON, AuditLogActorV2ToJSON, } from './AuditLogActorV2.js';
16
+ import { AuditLogOnCallNotificationPauseMetadataV2FromJSON, AuditLogOnCallNotificationPauseMetadataV2ToJSON, } from './AuditLogOnCallNotificationPauseMetadataV2.js';
17
+ import { AuditLogEntryContextV2FromJSON, AuditLogEntryContextV2ToJSON, } from './AuditLogEntryContextV2.js';
18
+ import { AuditLogTargetV2FromJSON, AuditLogTargetV2ToJSON, } from './AuditLogTargetV2.js';
19
+ /**
20
+ * Check if a given object implements the AuditLogsOnCallNotificationPauseResumedV1 interface.
21
+ */
22
+ export function instanceOfAuditLogsOnCallNotificationPauseResumedV1(value) {
23
+ if (!('action' in value) || value['action'] === undefined)
24
+ return false;
25
+ if (!('actor' in value) || value['actor'] === undefined)
26
+ return false;
27
+ if (!('context' in value) || value['context'] === undefined)
28
+ return false;
29
+ if (!('metadata' in value) || value['metadata'] === undefined)
30
+ return false;
31
+ if (!('occurred_at' in value) || value['occurred_at'] === undefined)
32
+ return false;
33
+ if (!('targets' in value) || value['targets'] === undefined)
34
+ return false;
35
+ if (!('version' in value) || value['version'] === undefined)
36
+ return false;
37
+ return true;
38
+ }
39
+ export function AuditLogsOnCallNotificationPauseResumedV1FromJSON(json) {
40
+ return AuditLogsOnCallNotificationPauseResumedV1FromJSONTyped(json, false);
41
+ }
42
+ export function AuditLogsOnCallNotificationPauseResumedV1FromJSONTyped(json, ignoreDiscriminator) {
43
+ if (json == null) {
44
+ return json;
45
+ }
46
+ return {
47
+ 'action': json['action'],
48
+ 'actor': AuditLogActorV2FromJSON(json['actor']),
49
+ 'context': AuditLogEntryContextV2FromJSON(json['context']),
50
+ 'metadata': AuditLogOnCallNotificationPauseMetadataV2FromJSON(json['metadata']),
51
+ 'occurred_at': (json['occurred_at'] == null ? json['occurred_at'] : parseDateTime(json['occurred_at'])),
52
+ 'targets': (json['targets'].map(AuditLogTargetV2FromJSON)),
53
+ 'version': json['version'],
54
+ };
55
+ }
56
+ export function AuditLogsOnCallNotificationPauseResumedV1ToJSON(json) {
57
+ return AuditLogsOnCallNotificationPauseResumedV1ToJSONTyped(json, false);
58
+ }
59
+ export function AuditLogsOnCallNotificationPauseResumedV1ToJSONTyped(value, ignoreDiscriminator = false) {
60
+ if (value == null) {
61
+ return value;
62
+ }
63
+ return {
64
+ 'action': value['action'],
65
+ 'actor': AuditLogActorV2ToJSON(value['actor']),
66
+ 'context': AuditLogEntryContextV2ToJSON(value['context']),
67
+ 'metadata': AuditLogOnCallNotificationPauseMetadataV2ToJSON(value['metadata']),
68
+ 'occurred_at': value['occurred_at'] == null ? value['occurred_at'] : serializeDateTime(value['occurred_at']),
69
+ 'targets': (value['targets'].map(AuditLogTargetV2ToJSON)),
70
+ 'version': value['version'],
71
+ };
72
+ }
@@ -0,0 +1,53 @@
1
+ /**
2
+ * incident.io
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { AuditLogActorV2 } from './AuditLogActorV2.js';
13
+ import type { AuditLogEntryContextV2 } from './AuditLogEntryContextV2.js';
14
+ import type { AuditLogTargetV2 } from './AuditLogTargetV2.js';
15
+ /**
16
+ *
17
+ * @export
18
+ * @interface AuditLogsUserAPIKeyCreatedV1
19
+ */
20
+ export interface AuditLogsUserAPIKeyCreatedV1 {
21
+ /**
22
+ * The type of log entry that this is
23
+ */
24
+ action: string;
25
+ /**
26
+ *
27
+ */
28
+ actor: AuditLogActorV2;
29
+ /**
30
+ *
31
+ */
32
+ context: AuditLogEntryContextV2;
33
+ /**
34
+ * When the entry occurred
35
+ */
36
+ occurred_at: Date;
37
+ /**
38
+ * The custom field that was created
39
+ */
40
+ targets: Array<AuditLogTargetV2>;
41
+ /**
42
+ * Which version the event is
43
+ */
44
+ version: number;
45
+ }
46
+ /**
47
+ * Check if a given object implements the AuditLogsUserAPIKeyCreatedV1 interface.
48
+ */
49
+ export declare function instanceOfAuditLogsUserAPIKeyCreatedV1(value: object): value is AuditLogsUserAPIKeyCreatedV1;
50
+ export declare function AuditLogsUserAPIKeyCreatedV1FromJSON(json: any): AuditLogsUserAPIKeyCreatedV1;
51
+ export declare function AuditLogsUserAPIKeyCreatedV1FromJSONTyped(json: any, ignoreDiscriminator: boolean): AuditLogsUserAPIKeyCreatedV1;
52
+ export declare function AuditLogsUserAPIKeyCreatedV1ToJSON(json: any): AuditLogsUserAPIKeyCreatedV1;
53
+ export declare function AuditLogsUserAPIKeyCreatedV1ToJSONTyped(value?: AuditLogsUserAPIKeyCreatedV1 | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,67 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * incident.io
5
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ import { parseDateTime, serializeDateTime } from '../runtime.js';
15
+ import { AuditLogActorV2FromJSON, AuditLogActorV2ToJSON, } from './AuditLogActorV2.js';
16
+ import { AuditLogEntryContextV2FromJSON, AuditLogEntryContextV2ToJSON, } from './AuditLogEntryContextV2.js';
17
+ import { AuditLogTargetV2FromJSON, AuditLogTargetV2ToJSON, } from './AuditLogTargetV2.js';
18
+ /**
19
+ * Check if a given object implements the AuditLogsUserAPIKeyCreatedV1 interface.
20
+ */
21
+ export function instanceOfAuditLogsUserAPIKeyCreatedV1(value) {
22
+ if (!('action' in value) || value['action'] === undefined)
23
+ return false;
24
+ if (!('actor' in value) || value['actor'] === undefined)
25
+ return false;
26
+ if (!('context' in value) || value['context'] === undefined)
27
+ return false;
28
+ if (!('occurred_at' in value) || value['occurred_at'] === undefined)
29
+ return false;
30
+ if (!('targets' in value) || value['targets'] === undefined)
31
+ return false;
32
+ if (!('version' in value) || value['version'] === undefined)
33
+ return false;
34
+ return true;
35
+ }
36
+ export function AuditLogsUserAPIKeyCreatedV1FromJSON(json) {
37
+ return AuditLogsUserAPIKeyCreatedV1FromJSONTyped(json, false);
38
+ }
39
+ export function AuditLogsUserAPIKeyCreatedV1FromJSONTyped(json, ignoreDiscriminator) {
40
+ if (json == null) {
41
+ return json;
42
+ }
43
+ return {
44
+ 'action': json['action'],
45
+ 'actor': AuditLogActorV2FromJSON(json['actor']),
46
+ 'context': AuditLogEntryContextV2FromJSON(json['context']),
47
+ 'occurred_at': (json['occurred_at'] == null ? json['occurred_at'] : parseDateTime(json['occurred_at'])),
48
+ 'targets': (json['targets'].map(AuditLogTargetV2FromJSON)),
49
+ 'version': json['version'],
50
+ };
51
+ }
52
+ export function AuditLogsUserAPIKeyCreatedV1ToJSON(json) {
53
+ return AuditLogsUserAPIKeyCreatedV1ToJSONTyped(json, false);
54
+ }
55
+ export function AuditLogsUserAPIKeyCreatedV1ToJSONTyped(value, ignoreDiscriminator = false) {
56
+ if (value == null) {
57
+ return value;
58
+ }
59
+ return {
60
+ 'action': value['action'],
61
+ 'actor': AuditLogActorV2ToJSON(value['actor']),
62
+ 'context': AuditLogEntryContextV2ToJSON(value['context']),
63
+ 'occurred_at': value['occurred_at'] == null ? value['occurred_at'] : serializeDateTime(value['occurred_at']),
64
+ 'targets': (value['targets'].map(AuditLogTargetV2ToJSON)),
65
+ 'version': value['version'],
66
+ };
67
+ }
@@ -0,0 +1,53 @@
1
+ /**
2
+ * incident.io
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { AuditLogActorV2 } from './AuditLogActorV2.js';
13
+ import type { AuditLogEntryContextV2 } from './AuditLogEntryContextV2.js';
14
+ import type { AuditLogTargetV2 } from './AuditLogTargetV2.js';
15
+ /**
16
+ *
17
+ * @export
18
+ * @interface AuditLogsUserAPIKeyDeletedV1
19
+ */
20
+ export interface AuditLogsUserAPIKeyDeletedV1 {
21
+ /**
22
+ * The type of log entry that this is
23
+ */
24
+ action: string;
25
+ /**
26
+ *
27
+ */
28
+ actor: AuditLogActorV2;
29
+ /**
30
+ *
31
+ */
32
+ context: AuditLogEntryContextV2;
33
+ /**
34
+ * When the entry occurred
35
+ */
36
+ occurred_at: Date;
37
+ /**
38
+ * The custom field that was created
39
+ */
40
+ targets: Array<AuditLogTargetV2>;
41
+ /**
42
+ * Which version the event is
43
+ */
44
+ version: number;
45
+ }
46
+ /**
47
+ * Check if a given object implements the AuditLogsUserAPIKeyDeletedV1 interface.
48
+ */
49
+ export declare function instanceOfAuditLogsUserAPIKeyDeletedV1(value: object): value is AuditLogsUserAPIKeyDeletedV1;
50
+ export declare function AuditLogsUserAPIKeyDeletedV1FromJSON(json: any): AuditLogsUserAPIKeyDeletedV1;
51
+ export declare function AuditLogsUserAPIKeyDeletedV1FromJSONTyped(json: any, ignoreDiscriminator: boolean): AuditLogsUserAPIKeyDeletedV1;
52
+ export declare function AuditLogsUserAPIKeyDeletedV1ToJSON(json: any): AuditLogsUserAPIKeyDeletedV1;
53
+ export declare function AuditLogsUserAPIKeyDeletedV1ToJSONTyped(value?: AuditLogsUserAPIKeyDeletedV1 | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,67 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * incident.io
5
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ import { parseDateTime, serializeDateTime } from '../runtime.js';
15
+ import { AuditLogActorV2FromJSON, AuditLogActorV2ToJSON, } from './AuditLogActorV2.js';
16
+ import { AuditLogEntryContextV2FromJSON, AuditLogEntryContextV2ToJSON, } from './AuditLogEntryContextV2.js';
17
+ import { AuditLogTargetV2FromJSON, AuditLogTargetV2ToJSON, } from './AuditLogTargetV2.js';
18
+ /**
19
+ * Check if a given object implements the AuditLogsUserAPIKeyDeletedV1 interface.
20
+ */
21
+ export function instanceOfAuditLogsUserAPIKeyDeletedV1(value) {
22
+ if (!('action' in value) || value['action'] === undefined)
23
+ return false;
24
+ if (!('actor' in value) || value['actor'] === undefined)
25
+ return false;
26
+ if (!('context' in value) || value['context'] === undefined)
27
+ return false;
28
+ if (!('occurred_at' in value) || value['occurred_at'] === undefined)
29
+ return false;
30
+ if (!('targets' in value) || value['targets'] === undefined)
31
+ return false;
32
+ if (!('version' in value) || value['version'] === undefined)
33
+ return false;
34
+ return true;
35
+ }
36
+ export function AuditLogsUserAPIKeyDeletedV1FromJSON(json) {
37
+ return AuditLogsUserAPIKeyDeletedV1FromJSONTyped(json, false);
38
+ }
39
+ export function AuditLogsUserAPIKeyDeletedV1FromJSONTyped(json, ignoreDiscriminator) {
40
+ if (json == null) {
41
+ return json;
42
+ }
43
+ return {
44
+ 'action': json['action'],
45
+ 'actor': AuditLogActorV2FromJSON(json['actor']),
46
+ 'context': AuditLogEntryContextV2FromJSON(json['context']),
47
+ 'occurred_at': (json['occurred_at'] == null ? json['occurred_at'] : parseDateTime(json['occurred_at'])),
48
+ 'targets': (json['targets'].map(AuditLogTargetV2FromJSON)),
49
+ 'version': json['version'],
50
+ };
51
+ }
52
+ export function AuditLogsUserAPIKeyDeletedV1ToJSON(json) {
53
+ return AuditLogsUserAPIKeyDeletedV1ToJSONTyped(json, false);
54
+ }
55
+ export function AuditLogsUserAPIKeyDeletedV1ToJSONTyped(value, ignoreDiscriminator = false) {
56
+ if (value == null) {
57
+ return value;
58
+ }
59
+ return {
60
+ 'action': value['action'],
61
+ 'actor': AuditLogActorV2ToJSON(value['actor']),
62
+ 'context': AuditLogEntryContextV2ToJSON(value['context']),
63
+ 'occurred_at': value['occurred_at'] == null ? value['occurred_at'] : serializeDateTime(value['occurred_at']),
64
+ 'targets': (value['targets'].map(AuditLogTargetV2ToJSON)),
65
+ 'version': value['version'],
66
+ };
67
+ }
@@ -12,11 +12,10 @@
12
12
  import type { UserV2 } from './UserV2.js';
13
13
  /**
14
14
  * A single shift on a schedule, representing who is on-call between a start
15
- * and end time. When present, `rotation_id` and `layer_id` tell you which
16
- * rotation and which layer within that rotation the entry belongs to. A
17
- * schedule may have multiple rotations (for example, a primary and a secondary
18
- * rotation) and each rotation can be made up of several layers — entries are
19
- * returned for every rotation and layer on the schedule.
15
+ * and end time. When present, `rotation_id` tells you which rotation the
16
+ * entry belongs to. A schedule may have multiple rotations (for example, a
17
+ * primary and a secondary rotation) and each rotation can be made up of several
18
+ * layers — entries are returned for every rotation and layer on the schedule.
20
19
  *
21
20
  * Entries come from two places: they are either generated from a schedule's
22
21
  * rotation configuration (the regular pattern of who is on-call) or created by
@@ -46,10 +45,6 @@ export interface ScheduleEntryV2 {
46
45
  * A unique identifier for this entry, used to determine a unique shift
47
46
  */
48
47
  fingerprint?: string;
49
- /**
50
- * If present, the layer this entry applies to on the rotation
51
- */
52
- layer_id?: string;
53
48
  /**
54
49
  * If present, the rotation this entry applies to on the schedule
55
50
  */
@@ -34,7 +34,6 @@ export function ScheduleEntryV2FromJSONTyped(json, ignoreDiscriminator) {
34
34
  'end_at': (json['end_at'] == null ? json['end_at'] : parseDateTime(json['end_at'])),
35
35
  'entry_id': json['entry_id'] == null ? undefined : json['entry_id'],
36
36
  'fingerprint': json['fingerprint'] == null ? undefined : json['fingerprint'],
37
- 'layer_id': json['layer_id'] == null ? undefined : json['layer_id'],
38
37
  'rotation_id': json['rotation_id'] == null ? undefined : json['rotation_id'],
39
38
  'start_at': (json['start_at'] == null ? json['start_at'] : parseDateTime(json['start_at'])),
40
39
  'user': json['user'] == null ? undefined : UserV2FromJSON(json['user']),
@@ -51,7 +50,6 @@ export function ScheduleEntryV2ToJSONTyped(value, ignoreDiscriminator = false) {
51
50
  'end_at': value['end_at'] == null ? value['end_at'] : serializeDateTime(value['end_at']),
52
51
  'entry_id': value['entry_id'],
53
52
  'fingerprint': value['fingerprint'],
54
- 'layer_id': value['layer_id'],
55
53
  'rotation_id': value['rotation_id'],
56
54
  'start_at': value['start_at'] == null ? value['start_at'] : serializeDateTime(value['start_at']),
57
55
  'user': UserV2ToJSON(value['user']),
@@ -351,6 +351,7 @@ export * from './AuditLogsOnCallNotificationPauseCreatedV1.js';
351
351
  export * from './AuditLogsOnCallNotificationPauseCreatedV2.js';
352
352
  export * from './AuditLogsOnCallNotificationPauseDeletedV1.js';
353
353
  export * from './AuditLogsOnCallNotificationPauseDeletedV2.js';
354
+ export * from './AuditLogsOnCallNotificationPauseResumedV1.js';
354
355
  export * from './AuditLogsOnCallNotificationPauseUpdatedV1.js';
355
356
  export * from './AuditLogsOnCallNotificationPauseUpdatedV2.js';
356
357
  export * from './AuditLogsOnCallUpsellRequestedV1.js';
@@ -450,6 +451,8 @@ export * from './AuditLogsTimelineItemDeletedV1.js';
450
451
  export * from './AuditLogsTwilioConnectionCreatedV1.js';
451
452
  export * from './AuditLogsTwilioConnectionDeletedV1.js';
452
453
  export * from './AuditLogsTwilioConnectionUpdatedV1.js';
454
+ export * from './AuditLogsUserAPIKeyCreatedV1.js';
455
+ export * from './AuditLogsUserAPIKeyDeletedV1.js';
453
456
  export * from './AuditLogsUserCreatedV1.js';
454
457
  export * from './AuditLogsUserDeactivatedV1.js';
455
458
  export * from './AuditLogsUserLoggedInV1.js';
@@ -353,6 +353,7 @@ export * from './AuditLogsOnCallNotificationPauseCreatedV1.js';
353
353
  export * from './AuditLogsOnCallNotificationPauseCreatedV2.js';
354
354
  export * from './AuditLogsOnCallNotificationPauseDeletedV1.js';
355
355
  export * from './AuditLogsOnCallNotificationPauseDeletedV2.js';
356
+ export * from './AuditLogsOnCallNotificationPauseResumedV1.js';
356
357
  export * from './AuditLogsOnCallNotificationPauseUpdatedV1.js';
357
358
  export * from './AuditLogsOnCallNotificationPauseUpdatedV2.js';
358
359
  export * from './AuditLogsOnCallUpsellRequestedV1.js';
@@ -452,6 +453,8 @@ export * from './AuditLogsTimelineItemDeletedV1.js';
452
453
  export * from './AuditLogsTwilioConnectionCreatedV1.js';
453
454
  export * from './AuditLogsTwilioConnectionDeletedV1.js';
454
455
  export * from './AuditLogsTwilioConnectionUpdatedV1.js';
456
+ export * from './AuditLogsUserAPIKeyCreatedV1.js';
457
+ export * from './AuditLogsUserAPIKeyDeletedV1.js';
455
458
  export * from './AuditLogsUserCreatedV1.js';
456
459
  export * from './AuditLogsUserDeactivatedV1.js';
457
460
  export * from './AuditLogsUserLoggedInV1.js';
@@ -1 +1 @@
1
- export declare const VERSION = "1.1.0";
1
+ export declare const VERSION = "2.0.0";
@@ -1,2 +1,2 @@
1
1
  // Written by `make build` from package.json. Do not edit.
2
- export const VERSION = "1.1.0";
2
+ export const VERSION = "2.0.0";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@incident-io/sdk",
3
- "version": "1.1.0",
3
+ "version": "2.0.0",
4
4
  "description": "TypeScript SDK for the incident.io API",
5
5
  "license": "MIT",
6
6
  "author": "incident.io <support@incident.io>",