@incident-io/sdk 2.3.0 → 2.5.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.
@@ -17,7 +17,7 @@ import type { GroupingKeyV3 } from './GroupingKeyV3.js';
17
17
  */
18
18
  export interface GroupingSettingsV3 {
19
19
  /**
20
- * Use AI to group similar looking alerts. AI alert grouping can only group alerts that are attributed to the same team, so grouping keys must only contain the team alert attribute. Private alerts are grouped by key alone unless AI incident access allows private incidents and alerts. Omit it on an update to keep the current value.
20
+ * Use AI to group similar looking alerts. AI alert grouping can only group alerts that are attributed to the same team, so grouping keys must only contain the team alert attribute. Private alerts are not grouped unless AI incident access allows private incidents and alerts. Omit it on an update to keep the current value.
21
21
  */
22
22
  ai_enabled?: boolean;
23
23
  /**
@@ -0,0 +1,38 @@
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
+ /**
13
+ *
14
+ * @export
15
+ * @interface IncidentDebriefV2
16
+ */
17
+ export interface IncidentDebriefV2 {
18
+ /**
19
+ * When the debrief is scheduled to end
20
+ */
21
+ end_at: Date;
22
+ /**
23
+ * Unique ID of the incident debrief
24
+ */
25
+ id: string;
26
+ /**
27
+ * When the debrief is scheduled to start
28
+ */
29
+ start_at: Date;
30
+ }
31
+ /**
32
+ * Check if a given object implements the IncidentDebriefV2 interface.
33
+ */
34
+ export declare function instanceOfIncidentDebriefV2(value: object): value is IncidentDebriefV2;
35
+ export declare function IncidentDebriefV2FromJSON(json: any): IncidentDebriefV2;
36
+ export declare function IncidentDebriefV2FromJSONTyped(json: any, ignoreDiscriminator: boolean): IncidentDebriefV2;
37
+ export declare function IncidentDebriefV2ToJSON(json: any): IncidentDebriefV2;
38
+ export declare function IncidentDebriefV2ToJSONTyped(value?: IncidentDebriefV2 | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,59 @@
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.instanceOfIncidentDebriefV2 = instanceOfIncidentDebriefV2;
17
+ exports.IncidentDebriefV2FromJSON = IncidentDebriefV2FromJSON;
18
+ exports.IncidentDebriefV2FromJSONTyped = IncidentDebriefV2FromJSONTyped;
19
+ exports.IncidentDebriefV2ToJSON = IncidentDebriefV2ToJSON;
20
+ exports.IncidentDebriefV2ToJSONTyped = IncidentDebriefV2ToJSONTyped;
21
+ const runtime_js_1 = require("../runtime.js");
22
+ /**
23
+ * Check if a given object implements the IncidentDebriefV2 interface.
24
+ */
25
+ function instanceOfIncidentDebriefV2(value) {
26
+ if (!('end_at' in value) || value['end_at'] === undefined)
27
+ return false;
28
+ if (!('id' in value) || value['id'] === undefined)
29
+ return false;
30
+ if (!('start_at' in value) || value['start_at'] === undefined)
31
+ return false;
32
+ return true;
33
+ }
34
+ function IncidentDebriefV2FromJSON(json) {
35
+ return IncidentDebriefV2FromJSONTyped(json, false);
36
+ }
37
+ function IncidentDebriefV2FromJSONTyped(json, ignoreDiscriminator) {
38
+ if (json == null) {
39
+ return json;
40
+ }
41
+ return {
42
+ 'end_at': (json['end_at'] == null ? json['end_at'] : (0, runtime_js_1.parseDateTime)(json['end_at'])),
43
+ 'id': json['id'],
44
+ 'start_at': (json['start_at'] == null ? json['start_at'] : (0, runtime_js_1.parseDateTime)(json['start_at'])),
45
+ };
46
+ }
47
+ function IncidentDebriefV2ToJSON(json) {
48
+ return IncidentDebriefV2ToJSONTyped(json, false);
49
+ }
50
+ function IncidentDebriefV2ToJSONTyped(value, ignoreDiscriminator = false) {
51
+ if (value == null) {
52
+ return value;
53
+ }
54
+ return {
55
+ 'end_at': value['end_at'] == null ? value['end_at'] : (0, runtime_js_1.serializeDateTime)(value['end_at']),
56
+ 'id': value['id'],
57
+ 'start_at': value['start_at'] == null ? value['start_at'] : (0, runtime_js_1.serializeDateTime)(value['start_at']),
58
+ };
59
+ }
@@ -12,6 +12,7 @@
12
12
  import type { ExternalIssueReferenceV2 } from './ExternalIssueReferenceV2.js';
13
13
  import type { IncidentDurationMetricWithValueV2 } from './IncidentDurationMetricWithValueV2.js';
14
14
  import type { CustomFieldEntryV2 } from './CustomFieldEntryV2.js';
15
+ import type { IncidentDebriefV2 } from './IncidentDebriefV2.js';
15
16
  import type { IncidentStatusV2 } from './IncidentStatusV2.js';
16
17
  import type { IncidentTimestampWithValueV2 } from './IncidentTimestampWithValueV2.js';
17
18
  import type { ActorV2 } from './ActorV2.js';
@@ -40,6 +41,10 @@ export interface IncidentV2 {
40
41
  * Custom field entries for this incident
41
42
  */
42
43
  custom_field_entries: Array<CustomFieldEntryV2>;
44
+ /**
45
+ * Debriefs scheduled for this incident, ordered by start time. Excludes cancelled calendar events.
46
+ */
47
+ debriefs?: Array<IncidentDebriefV2>;
43
48
  /**
44
49
  * Incident duration metrics and their measurements for this incident
45
50
  */
@@ -23,6 +23,7 @@ const runtime_js_1 = require("../runtime.js");
23
23
  const ExternalIssueReferenceV2_js_1 = require("./ExternalIssueReferenceV2.js");
24
24
  const IncidentDurationMetricWithValueV2_js_1 = require("./IncidentDurationMetricWithValueV2.js");
25
25
  const CustomFieldEntryV2_js_1 = require("./CustomFieldEntryV2.js");
26
+ const IncidentDebriefV2_js_1 = require("./IncidentDebriefV2.js");
26
27
  const IncidentStatusV2_js_1 = require("./IncidentStatusV2.js");
27
28
  const IncidentTimestampWithValueV2_js_1 = require("./IncidentTimestampWithValueV2.js");
28
29
  const ActorV2_js_1 = require("./ActorV2.js");
@@ -93,6 +94,7 @@ function IncidentV2FromJSONTyped(json, ignoreDiscriminator) {
93
94
  'created_at': (json['created_at'] == null ? json['created_at'] : (0, runtime_js_1.parseDateTime)(json['created_at'])),
94
95
  'creator': (0, ActorV2_js_1.ActorV2FromJSON)(json['creator']),
95
96
  'custom_field_entries': (json['custom_field_entries'].map(CustomFieldEntryV2_js_1.CustomFieldEntryV2FromJSON)),
97
+ 'debriefs': json['debriefs'] == null ? undefined : (json['debriefs'].map(IncidentDebriefV2_js_1.IncidentDebriefV2FromJSON)),
96
98
  'duration_metrics': json['duration_metrics'] == null ? undefined : (json['duration_metrics'].map(IncidentDurationMetricWithValueV2_js_1.IncidentDurationMetricWithValueV2FromJSON)),
97
99
  'external_issue_reference': json['external_issue_reference'] == null ? undefined : (0, ExternalIssueReferenceV2_js_1.ExternalIssueReferenceV2FromJSON)(json['external_issue_reference']),
98
100
  'has_debrief': json['has_debrief'] == null ? undefined : json['has_debrief'],
@@ -136,6 +138,7 @@ function IncidentV2ToJSONTyped(value, ignoreDiscriminator = false) {
136
138
  'created_at': value['created_at'] == null ? value['created_at'] : (0, runtime_js_1.serializeDateTime)(value['created_at']),
137
139
  'creator': (0, ActorV2_js_1.ActorV2ToJSON)(value['creator']),
138
140
  'custom_field_entries': (value['custom_field_entries'].map(CustomFieldEntryV2_js_1.CustomFieldEntryV2ToJSON)),
141
+ 'debriefs': value['debriefs'] == null ? undefined : (value['debriefs'].map(IncidentDebriefV2_js_1.IncidentDebriefV2ToJSON)),
139
142
  'duration_metrics': value['duration_metrics'] == null ? undefined : (value['duration_metrics'].map(IncidentDurationMetricWithValueV2_js_1.IncidentDurationMetricWithValueV2ToJSON)),
140
143
  'external_issue_reference': (0, ExternalIssueReferenceV2_js_1.ExternalIssueReferenceV2ToJSON)(value['external_issue_reference']),
141
144
  'has_debrief': value['has_debrief'],
@@ -12,6 +12,7 @@
12
12
  import type { ExternalIssueReferenceV2 } from './ExternalIssueReferenceV2.js';
13
13
  import type { IncidentDurationMetricWithValueV2 } from './IncidentDurationMetricWithValueV2.js';
14
14
  import type { CustomFieldEntryV2 } from './CustomFieldEntryV2.js';
15
+ import type { IncidentDebriefV2 } from './IncidentDebriefV2.js';
15
16
  import type { IncidentStatusV2 } from './IncidentStatusV2.js';
16
17
  import type { IncidentTimestampWithValueV2 } from './IncidentTimestampWithValueV2.js';
17
18
  import type { ActorV2 } from './ActorV2.js';
@@ -40,6 +41,10 @@ export interface WebhookIncidentV2 {
40
41
  * Custom field entries for this incident
41
42
  */
42
43
  custom_field_entries: Array<CustomFieldEntryV2>;
44
+ /**
45
+ * Debriefs scheduled for this incident, ordered by start time. Excludes cancelled calendar events.
46
+ */
47
+ debriefs?: Array<IncidentDebriefV2>;
43
48
  /**
44
49
  * Incident duration metrics and their measurements for this incident
45
50
  */
@@ -23,6 +23,7 @@ const runtime_js_1 = require("../runtime.js");
23
23
  const ExternalIssueReferenceV2_js_1 = require("./ExternalIssueReferenceV2.js");
24
24
  const IncidentDurationMetricWithValueV2_js_1 = require("./IncidentDurationMetricWithValueV2.js");
25
25
  const CustomFieldEntryV2_js_1 = require("./CustomFieldEntryV2.js");
26
+ const IncidentDebriefV2_js_1 = require("./IncidentDebriefV2.js");
26
27
  const IncidentStatusV2_js_1 = require("./IncidentStatusV2.js");
27
28
  const IncidentTimestampWithValueV2_js_1 = require("./IncidentTimestampWithValueV2.js");
28
29
  const ActorV2_js_1 = require("./ActorV2.js");
@@ -93,6 +94,7 @@ function WebhookIncidentV2FromJSONTyped(json, ignoreDiscriminator) {
93
94
  'created_at': (json['created_at'] == null ? json['created_at'] : (0, runtime_js_1.parseDateTime)(json['created_at'])),
94
95
  'creator': (0, ActorV2_js_1.ActorV2FromJSON)(json['creator']),
95
96
  'custom_field_entries': (json['custom_field_entries'].map(CustomFieldEntryV2_js_1.CustomFieldEntryV2FromJSON)),
97
+ 'debriefs': json['debriefs'] == null ? undefined : (json['debriefs'].map(IncidentDebriefV2_js_1.IncidentDebriefV2FromJSON)),
96
98
  'duration_metrics': json['duration_metrics'] == null ? undefined : (json['duration_metrics'].map(IncidentDurationMetricWithValueV2_js_1.IncidentDurationMetricWithValueV2FromJSON)),
97
99
  'external_issue_reference': json['external_issue_reference'] == null ? undefined : (0, ExternalIssueReferenceV2_js_1.ExternalIssueReferenceV2FromJSON)(json['external_issue_reference']),
98
100
  'has_debrief': json['has_debrief'] == null ? undefined : json['has_debrief'],
@@ -138,6 +140,7 @@ function WebhookIncidentV2ToJSONTyped(value, ignoreDiscriminator = false) {
138
140
  'created_at': value['created_at'] == null ? value['created_at'] : (0, runtime_js_1.serializeDateTime)(value['created_at']),
139
141
  'creator': (0, ActorV2_js_1.ActorV2ToJSON)(value['creator']),
140
142
  'custom_field_entries': (value['custom_field_entries'].map(CustomFieldEntryV2_js_1.CustomFieldEntryV2ToJSON)),
143
+ 'debriefs': value['debriefs'] == null ? undefined : (value['debriefs'].map(IncidentDebriefV2_js_1.IncidentDebriefV2ToJSON)),
141
144
  'duration_metrics': value['duration_metrics'] == null ? undefined : (value['duration_metrics'].map(IncidentDurationMetricWithValueV2_js_1.IncidentDurationMetricWithValueV2ToJSON)),
142
145
  'external_issue_reference': (0, ExternalIssueReferenceV2_js_1.ExternalIssueReferenceV2ToJSON)(value['external_issue_reference']),
143
146
  'has_debrief': value['has_debrief'],
@@ -749,6 +749,7 @@ export * from './IncidentAttachmentsCreatePayloadV1.js';
749
749
  export * from './IncidentAttachmentsCreatePayloadV1Resource.js';
750
750
  export * from './IncidentAttachmentsCreateResultV1.js';
751
751
  export * from './IncidentAttachmentsListResultV1.js';
752
+ export * from './IncidentDebriefV2.js';
752
753
  export * from './IncidentDurationMetricV2.js';
753
754
  export * from './IncidentDurationMetricWithValueV2.js';
754
755
  export * from './IncidentEditPayloadV2.js';
@@ -767,6 +767,7 @@ __exportStar(require("./IncidentAttachmentsCreatePayloadV1.js"), exports);
767
767
  __exportStar(require("./IncidentAttachmentsCreatePayloadV1Resource.js"), exports);
768
768
  __exportStar(require("./IncidentAttachmentsCreateResultV1.js"), exports);
769
769
  __exportStar(require("./IncidentAttachmentsListResultV1.js"), exports);
770
+ __exportStar(require("./IncidentDebriefV2.js"), exports);
770
771
  __exportStar(require("./IncidentDurationMetricV2.js"), exports);
771
772
  __exportStar(require("./IncidentDurationMetricWithValueV2.js"), exports);
772
773
  __exportStar(require("./IncidentEditPayloadV2.js"), exports);
@@ -1 +1 @@
1
- export declare const VERSION = "2.3.0";
1
+ export declare const VERSION = "2.5.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 = "2.3.0";
5
+ exports.VERSION = "2.5.0";
@@ -17,7 +17,7 @@ import type { GroupingKeyV3 } from './GroupingKeyV3.js';
17
17
  */
18
18
  export interface GroupingSettingsV3 {
19
19
  /**
20
- * Use AI to group similar looking alerts. AI alert grouping can only group alerts that are attributed to the same team, so grouping keys must only contain the team alert attribute. Private alerts are grouped by key alone unless AI incident access allows private incidents and alerts. Omit it on an update to keep the current value.
20
+ * Use AI to group similar looking alerts. AI alert grouping can only group alerts that are attributed to the same team, so grouping keys must only contain the team alert attribute. Private alerts are not grouped unless AI incident access allows private incidents and alerts. Omit it on an update to keep the current value.
21
21
  */
22
22
  ai_enabled?: boolean;
23
23
  /**
@@ -0,0 +1,38 @@
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
+ /**
13
+ *
14
+ * @export
15
+ * @interface IncidentDebriefV2
16
+ */
17
+ export interface IncidentDebriefV2 {
18
+ /**
19
+ * When the debrief is scheduled to end
20
+ */
21
+ end_at: Date;
22
+ /**
23
+ * Unique ID of the incident debrief
24
+ */
25
+ id: string;
26
+ /**
27
+ * When the debrief is scheduled to start
28
+ */
29
+ start_at: Date;
30
+ }
31
+ /**
32
+ * Check if a given object implements the IncidentDebriefV2 interface.
33
+ */
34
+ export declare function instanceOfIncidentDebriefV2(value: object): value is IncidentDebriefV2;
35
+ export declare function IncidentDebriefV2FromJSON(json: any): IncidentDebriefV2;
36
+ export declare function IncidentDebriefV2FromJSONTyped(json: any, ignoreDiscriminator: boolean): IncidentDebriefV2;
37
+ export declare function IncidentDebriefV2ToJSON(json: any): IncidentDebriefV2;
38
+ export declare function IncidentDebriefV2ToJSONTyped(value?: IncidentDebriefV2 | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,52 @@
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
+ /**
16
+ * Check if a given object implements the IncidentDebriefV2 interface.
17
+ */
18
+ export function instanceOfIncidentDebriefV2(value) {
19
+ if (!('end_at' in value) || value['end_at'] === undefined)
20
+ return false;
21
+ if (!('id' in value) || value['id'] === undefined)
22
+ return false;
23
+ if (!('start_at' in value) || value['start_at'] === undefined)
24
+ return false;
25
+ return true;
26
+ }
27
+ export function IncidentDebriefV2FromJSON(json) {
28
+ return IncidentDebriefV2FromJSONTyped(json, false);
29
+ }
30
+ export function IncidentDebriefV2FromJSONTyped(json, ignoreDiscriminator) {
31
+ if (json == null) {
32
+ return json;
33
+ }
34
+ return {
35
+ 'end_at': (json['end_at'] == null ? json['end_at'] : parseDateTime(json['end_at'])),
36
+ 'id': json['id'],
37
+ 'start_at': (json['start_at'] == null ? json['start_at'] : parseDateTime(json['start_at'])),
38
+ };
39
+ }
40
+ export function IncidentDebriefV2ToJSON(json) {
41
+ return IncidentDebriefV2ToJSONTyped(json, false);
42
+ }
43
+ export function IncidentDebriefV2ToJSONTyped(value, ignoreDiscriminator = false) {
44
+ if (value == null) {
45
+ return value;
46
+ }
47
+ return {
48
+ 'end_at': value['end_at'] == null ? value['end_at'] : serializeDateTime(value['end_at']),
49
+ 'id': value['id'],
50
+ 'start_at': value['start_at'] == null ? value['start_at'] : serializeDateTime(value['start_at']),
51
+ };
52
+ }
@@ -12,6 +12,7 @@
12
12
  import type { ExternalIssueReferenceV2 } from './ExternalIssueReferenceV2.js';
13
13
  import type { IncidentDurationMetricWithValueV2 } from './IncidentDurationMetricWithValueV2.js';
14
14
  import type { CustomFieldEntryV2 } from './CustomFieldEntryV2.js';
15
+ import type { IncidentDebriefV2 } from './IncidentDebriefV2.js';
15
16
  import type { IncidentStatusV2 } from './IncidentStatusV2.js';
16
17
  import type { IncidentTimestampWithValueV2 } from './IncidentTimestampWithValueV2.js';
17
18
  import type { ActorV2 } from './ActorV2.js';
@@ -40,6 +41,10 @@ export interface IncidentV2 {
40
41
  * Custom field entries for this incident
41
42
  */
42
43
  custom_field_entries: Array<CustomFieldEntryV2>;
44
+ /**
45
+ * Debriefs scheduled for this incident, ordered by start time. Excludes cancelled calendar events.
46
+ */
47
+ debriefs?: Array<IncidentDebriefV2>;
43
48
  /**
44
49
  * Incident duration metrics and their measurements for this incident
45
50
  */
@@ -15,6 +15,7 @@ import { parseDateTime, serializeDateTime } from '../runtime.js';
15
15
  import { ExternalIssueReferenceV2FromJSON, ExternalIssueReferenceV2ToJSON, } from './ExternalIssueReferenceV2.js';
16
16
  import { IncidentDurationMetricWithValueV2FromJSON, IncidentDurationMetricWithValueV2ToJSON, } from './IncidentDurationMetricWithValueV2.js';
17
17
  import { CustomFieldEntryV2FromJSON, CustomFieldEntryV2ToJSON, } from './CustomFieldEntryV2.js';
18
+ import { IncidentDebriefV2FromJSON, IncidentDebriefV2ToJSON, } from './IncidentDebriefV2.js';
18
19
  import { IncidentStatusV2FromJSON, IncidentStatusV2ToJSON, } from './IncidentStatusV2.js';
19
20
  import { IncidentTimestampWithValueV2FromJSON, IncidentTimestampWithValueV2ToJSON, } from './IncidentTimestampWithValueV2.js';
20
21
  import { ActorV2FromJSON, ActorV2ToJSON, } from './ActorV2.js';
@@ -85,6 +86,7 @@ export function IncidentV2FromJSONTyped(json, ignoreDiscriminator) {
85
86
  'created_at': (json['created_at'] == null ? json['created_at'] : parseDateTime(json['created_at'])),
86
87
  'creator': ActorV2FromJSON(json['creator']),
87
88
  'custom_field_entries': (json['custom_field_entries'].map(CustomFieldEntryV2FromJSON)),
89
+ 'debriefs': json['debriefs'] == null ? undefined : (json['debriefs'].map(IncidentDebriefV2FromJSON)),
88
90
  'duration_metrics': json['duration_metrics'] == null ? undefined : (json['duration_metrics'].map(IncidentDurationMetricWithValueV2FromJSON)),
89
91
  'external_issue_reference': json['external_issue_reference'] == null ? undefined : ExternalIssueReferenceV2FromJSON(json['external_issue_reference']),
90
92
  'has_debrief': json['has_debrief'] == null ? undefined : json['has_debrief'],
@@ -128,6 +130,7 @@ export function IncidentV2ToJSONTyped(value, ignoreDiscriminator = false) {
128
130
  'created_at': value['created_at'] == null ? value['created_at'] : serializeDateTime(value['created_at']),
129
131
  'creator': ActorV2ToJSON(value['creator']),
130
132
  'custom_field_entries': (value['custom_field_entries'].map(CustomFieldEntryV2ToJSON)),
133
+ 'debriefs': value['debriefs'] == null ? undefined : (value['debriefs'].map(IncidentDebriefV2ToJSON)),
131
134
  'duration_metrics': value['duration_metrics'] == null ? undefined : (value['duration_metrics'].map(IncidentDurationMetricWithValueV2ToJSON)),
132
135
  'external_issue_reference': ExternalIssueReferenceV2ToJSON(value['external_issue_reference']),
133
136
  'has_debrief': value['has_debrief'],
@@ -12,6 +12,7 @@
12
12
  import type { ExternalIssueReferenceV2 } from './ExternalIssueReferenceV2.js';
13
13
  import type { IncidentDurationMetricWithValueV2 } from './IncidentDurationMetricWithValueV2.js';
14
14
  import type { CustomFieldEntryV2 } from './CustomFieldEntryV2.js';
15
+ import type { IncidentDebriefV2 } from './IncidentDebriefV2.js';
15
16
  import type { IncidentStatusV2 } from './IncidentStatusV2.js';
16
17
  import type { IncidentTimestampWithValueV2 } from './IncidentTimestampWithValueV2.js';
17
18
  import type { ActorV2 } from './ActorV2.js';
@@ -40,6 +41,10 @@ export interface WebhookIncidentV2 {
40
41
  * Custom field entries for this incident
41
42
  */
42
43
  custom_field_entries: Array<CustomFieldEntryV2>;
44
+ /**
45
+ * Debriefs scheduled for this incident, ordered by start time. Excludes cancelled calendar events.
46
+ */
47
+ debriefs?: Array<IncidentDebriefV2>;
43
48
  /**
44
49
  * Incident duration metrics and their measurements for this incident
45
50
  */
@@ -15,6 +15,7 @@ import { parseDateTime, serializeDateTime } from '../runtime.js';
15
15
  import { ExternalIssueReferenceV2FromJSON, ExternalIssueReferenceV2ToJSON, } from './ExternalIssueReferenceV2.js';
16
16
  import { IncidentDurationMetricWithValueV2FromJSON, IncidentDurationMetricWithValueV2ToJSON, } from './IncidentDurationMetricWithValueV2.js';
17
17
  import { CustomFieldEntryV2FromJSON, CustomFieldEntryV2ToJSON, } from './CustomFieldEntryV2.js';
18
+ import { IncidentDebriefV2FromJSON, IncidentDebriefV2ToJSON, } from './IncidentDebriefV2.js';
18
19
  import { IncidentStatusV2FromJSON, IncidentStatusV2ToJSON, } from './IncidentStatusV2.js';
19
20
  import { IncidentTimestampWithValueV2FromJSON, IncidentTimestampWithValueV2ToJSON, } from './IncidentTimestampWithValueV2.js';
20
21
  import { ActorV2FromJSON, ActorV2ToJSON, } from './ActorV2.js';
@@ -85,6 +86,7 @@ export function WebhookIncidentV2FromJSONTyped(json, ignoreDiscriminator) {
85
86
  'created_at': (json['created_at'] == null ? json['created_at'] : parseDateTime(json['created_at'])),
86
87
  'creator': ActorV2FromJSON(json['creator']),
87
88
  'custom_field_entries': (json['custom_field_entries'].map(CustomFieldEntryV2FromJSON)),
89
+ 'debriefs': json['debriefs'] == null ? undefined : (json['debriefs'].map(IncidentDebriefV2FromJSON)),
88
90
  'duration_metrics': json['duration_metrics'] == null ? undefined : (json['duration_metrics'].map(IncidentDurationMetricWithValueV2FromJSON)),
89
91
  'external_issue_reference': json['external_issue_reference'] == null ? undefined : ExternalIssueReferenceV2FromJSON(json['external_issue_reference']),
90
92
  'has_debrief': json['has_debrief'] == null ? undefined : json['has_debrief'],
@@ -130,6 +132,7 @@ export function WebhookIncidentV2ToJSONTyped(value, ignoreDiscriminator = false)
130
132
  'created_at': value['created_at'] == null ? value['created_at'] : serializeDateTime(value['created_at']),
131
133
  'creator': ActorV2ToJSON(value['creator']),
132
134
  'custom_field_entries': (value['custom_field_entries'].map(CustomFieldEntryV2ToJSON)),
135
+ 'debriefs': value['debriefs'] == null ? undefined : (value['debriefs'].map(IncidentDebriefV2ToJSON)),
133
136
  'duration_metrics': value['duration_metrics'] == null ? undefined : (value['duration_metrics'].map(IncidentDurationMetricWithValueV2ToJSON)),
134
137
  'external_issue_reference': ExternalIssueReferenceV2ToJSON(value['external_issue_reference']),
135
138
  'has_debrief': value['has_debrief'],
@@ -749,6 +749,7 @@ export * from './IncidentAttachmentsCreatePayloadV1.js';
749
749
  export * from './IncidentAttachmentsCreatePayloadV1Resource.js';
750
750
  export * from './IncidentAttachmentsCreateResultV1.js';
751
751
  export * from './IncidentAttachmentsListResultV1.js';
752
+ export * from './IncidentDebriefV2.js';
752
753
  export * from './IncidentDurationMetricV2.js';
753
754
  export * from './IncidentDurationMetricWithValueV2.js';
754
755
  export * from './IncidentEditPayloadV2.js';
@@ -751,6 +751,7 @@ export * from './IncidentAttachmentsCreatePayloadV1.js';
751
751
  export * from './IncidentAttachmentsCreatePayloadV1Resource.js';
752
752
  export * from './IncidentAttachmentsCreateResultV1.js';
753
753
  export * from './IncidentAttachmentsListResultV1.js';
754
+ export * from './IncidentDebriefV2.js';
754
755
  export * from './IncidentDurationMetricV2.js';
755
756
  export * from './IncidentDurationMetricWithValueV2.js';
756
757
  export * from './IncidentEditPayloadV2.js';
@@ -1 +1 @@
1
- export declare const VERSION = "2.3.0";
1
+ export declare const VERSION = "2.5.0";
@@ -1,2 +1,2 @@
1
1
  // Written by `make build` from package.json. Do not edit.
2
- export const VERSION = "2.3.0";
2
+ export const VERSION = "2.5.0";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@incident-io/sdk",
3
- "version": "2.3.0",
3
+ "version": "2.5.0",
4
4
  "description": "TypeScript SDK for the incident.io API",
5
5
  "license": "MIT",
6
6
  "author": "incident.io <support@incident.io>",