@incident-io/sdk 2.41.0 → 2.43.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 (45) hide show
  1. package/dist/cjs/models/AuditLogIncidentSummaryConfigUpdatedMetadataV2.d.ts +38 -0
  2. package/dist/cjs/models/AuditLogIncidentSummaryConfigUpdatedMetadataV2.js +54 -0
  3. package/dist/cjs/models/AuditLogIncidentUpdateConfigUpdatedMetadataV2.d.ts +38 -0
  4. package/dist/cjs/models/AuditLogIncidentUpdateConfigUpdatedMetadataV2.js +54 -0
  5. package/dist/cjs/models/AuditLogTargetV2.d.ts +2 -0
  6. package/dist/cjs/models/AuditLogTargetV2.js +2 -0
  7. package/dist/cjs/models/AuditLogsIncidentSummaryConfigUpdatedV1.d.ts +58 -0
  8. package/dist/cjs/models/AuditLogsIncidentSummaryConfigUpdatedV1.js +79 -0
  9. package/dist/cjs/models/AuditLogsIncidentUpdateConfigUpdatedV1.d.ts +58 -0
  10. package/dist/cjs/models/AuditLogsIncidentUpdateConfigUpdatedV1.js +79 -0
  11. package/dist/cjs/models/CatalogEntryV3.d.ts +4 -0
  12. package/dist/cjs/models/CatalogEntryV3.js +4 -0
  13. package/dist/cjs/models/CatalogTypeV3.d.ts +4 -0
  14. package/dist/cjs/models/CatalogTypeV3.js +4 -0
  15. package/dist/cjs/models/CatalogUpdateEntryPayloadV3.d.ts +4 -0
  16. package/dist/cjs/models/CatalogUpdateEntryPayloadV3.js +2 -0
  17. package/dist/cjs/models/PartialEntryPayloadV3.d.ts +4 -0
  18. package/dist/cjs/models/PartialEntryPayloadV3.js +2 -0
  19. package/dist/cjs/models/index.d.ts +4 -0
  20. package/dist/cjs/models/index.js +4 -0
  21. package/dist/cjs/version.d.ts +1 -1
  22. package/dist/cjs/version.js +1 -1
  23. package/dist/esm/models/AuditLogIncidentSummaryConfigUpdatedMetadataV2.d.ts +38 -0
  24. package/dist/esm/models/AuditLogIncidentSummaryConfigUpdatedMetadataV2.js +47 -0
  25. package/dist/esm/models/AuditLogIncidentUpdateConfigUpdatedMetadataV2.d.ts +38 -0
  26. package/dist/esm/models/AuditLogIncidentUpdateConfigUpdatedMetadataV2.js +47 -0
  27. package/dist/esm/models/AuditLogTargetV2.d.ts +2 -0
  28. package/dist/esm/models/AuditLogTargetV2.js +2 -0
  29. package/dist/esm/models/AuditLogsIncidentSummaryConfigUpdatedV1.d.ts +58 -0
  30. package/dist/esm/models/AuditLogsIncidentSummaryConfigUpdatedV1.js +72 -0
  31. package/dist/esm/models/AuditLogsIncidentUpdateConfigUpdatedV1.d.ts +58 -0
  32. package/dist/esm/models/AuditLogsIncidentUpdateConfigUpdatedV1.js +72 -0
  33. package/dist/esm/models/CatalogEntryV3.d.ts +4 -0
  34. package/dist/esm/models/CatalogEntryV3.js +4 -0
  35. package/dist/esm/models/CatalogTypeV3.d.ts +4 -0
  36. package/dist/esm/models/CatalogTypeV3.js +4 -0
  37. package/dist/esm/models/CatalogUpdateEntryPayloadV3.d.ts +4 -0
  38. package/dist/esm/models/CatalogUpdateEntryPayloadV3.js +2 -0
  39. package/dist/esm/models/PartialEntryPayloadV3.d.ts +4 -0
  40. package/dist/esm/models/PartialEntryPayloadV3.js +2 -0
  41. package/dist/esm/models/index.d.ts +4 -0
  42. package/dist/esm/models/index.js +4 -0
  43. package/dist/esm/version.d.ts +1 -1
  44. package/dist/esm/version.js +1 -1
  45. package/package.json +1 -1
@@ -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 AuditLogIncidentSummaryConfigUpdatedMetadataV2
16
+ */
17
+ export interface AuditLogIncidentSummaryConfigUpdatedMetadataV2 {
18
+ /**
19
+ * The format of suggested summaries after the change (narrative, stakeholder, custom)
20
+ */
21
+ after_structure_type?: string;
22
+ /**
23
+ * The format of suggested summaries before the change (narrative, stakeholder, custom)
24
+ */
25
+ before_structure_type?: string;
26
+ /**
27
+ * What the update changed, comma separated (structure_type, custom_instructions)
28
+ */
29
+ changed: string;
30
+ }
31
+ /**
32
+ * Check if a given object implements the AuditLogIncidentSummaryConfigUpdatedMetadataV2 interface.
33
+ */
34
+ export declare function instanceOfAuditLogIncidentSummaryConfigUpdatedMetadataV2(value: object): value is AuditLogIncidentSummaryConfigUpdatedMetadataV2;
35
+ export declare function AuditLogIncidentSummaryConfigUpdatedMetadataV2FromJSON(json: any): AuditLogIncidentSummaryConfigUpdatedMetadataV2;
36
+ export declare function AuditLogIncidentSummaryConfigUpdatedMetadataV2FromJSONTyped(json: any, ignoreDiscriminator: boolean): AuditLogIncidentSummaryConfigUpdatedMetadataV2;
37
+ export declare function AuditLogIncidentSummaryConfigUpdatedMetadataV2ToJSON(json: any): AuditLogIncidentSummaryConfigUpdatedMetadataV2;
38
+ export declare function AuditLogIncidentSummaryConfigUpdatedMetadataV2ToJSONTyped(value?: AuditLogIncidentSummaryConfigUpdatedMetadataV2 | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,54 @@
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.instanceOfAuditLogIncidentSummaryConfigUpdatedMetadataV2 = instanceOfAuditLogIncidentSummaryConfigUpdatedMetadataV2;
17
+ exports.AuditLogIncidentSummaryConfigUpdatedMetadataV2FromJSON = AuditLogIncidentSummaryConfigUpdatedMetadataV2FromJSON;
18
+ exports.AuditLogIncidentSummaryConfigUpdatedMetadataV2FromJSONTyped = AuditLogIncidentSummaryConfigUpdatedMetadataV2FromJSONTyped;
19
+ exports.AuditLogIncidentSummaryConfigUpdatedMetadataV2ToJSON = AuditLogIncidentSummaryConfigUpdatedMetadataV2ToJSON;
20
+ exports.AuditLogIncidentSummaryConfigUpdatedMetadataV2ToJSONTyped = AuditLogIncidentSummaryConfigUpdatedMetadataV2ToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the AuditLogIncidentSummaryConfigUpdatedMetadataV2 interface.
23
+ */
24
+ function instanceOfAuditLogIncidentSummaryConfigUpdatedMetadataV2(value) {
25
+ if (!('changed' in value) || value['changed'] === undefined)
26
+ return false;
27
+ return true;
28
+ }
29
+ function AuditLogIncidentSummaryConfigUpdatedMetadataV2FromJSON(json) {
30
+ return AuditLogIncidentSummaryConfigUpdatedMetadataV2FromJSONTyped(json, false);
31
+ }
32
+ function AuditLogIncidentSummaryConfigUpdatedMetadataV2FromJSONTyped(json, ignoreDiscriminator) {
33
+ if (json == null) {
34
+ return json;
35
+ }
36
+ return {
37
+ 'after_structure_type': json['after_structure_type'] == null ? undefined : json['after_structure_type'],
38
+ 'before_structure_type': json['before_structure_type'] == null ? undefined : json['before_structure_type'],
39
+ 'changed': json['changed'],
40
+ };
41
+ }
42
+ function AuditLogIncidentSummaryConfigUpdatedMetadataV2ToJSON(json) {
43
+ return AuditLogIncidentSummaryConfigUpdatedMetadataV2ToJSONTyped(json, false);
44
+ }
45
+ function AuditLogIncidentSummaryConfigUpdatedMetadataV2ToJSONTyped(value, ignoreDiscriminator = false) {
46
+ if (value == null) {
47
+ return value;
48
+ }
49
+ return {
50
+ 'after_structure_type': value['after_structure_type'],
51
+ 'before_structure_type': value['before_structure_type'],
52
+ 'changed': value['changed'],
53
+ };
54
+ }
@@ -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 AuditLogIncidentUpdateConfigUpdatedMetadataV2
16
+ */
17
+ export interface AuditLogIncidentUpdateConfigUpdatedMetadataV2 {
18
+ /**
19
+ * The format of suggested updates after the change (classic, brief, custom)
20
+ */
21
+ after_structure_type?: string;
22
+ /**
23
+ * The format of suggested updates before the change (classic, brief, custom)
24
+ */
25
+ before_structure_type?: string;
26
+ /**
27
+ * What the update changed, comma separated (structure_type, custom_instructions)
28
+ */
29
+ changed: string;
30
+ }
31
+ /**
32
+ * Check if a given object implements the AuditLogIncidentUpdateConfigUpdatedMetadataV2 interface.
33
+ */
34
+ export declare function instanceOfAuditLogIncidentUpdateConfigUpdatedMetadataV2(value: object): value is AuditLogIncidentUpdateConfigUpdatedMetadataV2;
35
+ export declare function AuditLogIncidentUpdateConfigUpdatedMetadataV2FromJSON(json: any): AuditLogIncidentUpdateConfigUpdatedMetadataV2;
36
+ export declare function AuditLogIncidentUpdateConfigUpdatedMetadataV2FromJSONTyped(json: any, ignoreDiscriminator: boolean): AuditLogIncidentUpdateConfigUpdatedMetadataV2;
37
+ export declare function AuditLogIncidentUpdateConfigUpdatedMetadataV2ToJSON(json: any): AuditLogIncidentUpdateConfigUpdatedMetadataV2;
38
+ export declare function AuditLogIncidentUpdateConfigUpdatedMetadataV2ToJSONTyped(value?: AuditLogIncidentUpdateConfigUpdatedMetadataV2 | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,54 @@
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.instanceOfAuditLogIncidentUpdateConfigUpdatedMetadataV2 = instanceOfAuditLogIncidentUpdateConfigUpdatedMetadataV2;
17
+ exports.AuditLogIncidentUpdateConfigUpdatedMetadataV2FromJSON = AuditLogIncidentUpdateConfigUpdatedMetadataV2FromJSON;
18
+ exports.AuditLogIncidentUpdateConfigUpdatedMetadataV2FromJSONTyped = AuditLogIncidentUpdateConfigUpdatedMetadataV2FromJSONTyped;
19
+ exports.AuditLogIncidentUpdateConfigUpdatedMetadataV2ToJSON = AuditLogIncidentUpdateConfigUpdatedMetadataV2ToJSON;
20
+ exports.AuditLogIncidentUpdateConfigUpdatedMetadataV2ToJSONTyped = AuditLogIncidentUpdateConfigUpdatedMetadataV2ToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the AuditLogIncidentUpdateConfigUpdatedMetadataV2 interface.
23
+ */
24
+ function instanceOfAuditLogIncidentUpdateConfigUpdatedMetadataV2(value) {
25
+ if (!('changed' in value) || value['changed'] === undefined)
26
+ return false;
27
+ return true;
28
+ }
29
+ function AuditLogIncidentUpdateConfigUpdatedMetadataV2FromJSON(json) {
30
+ return AuditLogIncidentUpdateConfigUpdatedMetadataV2FromJSONTyped(json, false);
31
+ }
32
+ function AuditLogIncidentUpdateConfigUpdatedMetadataV2FromJSONTyped(json, ignoreDiscriminator) {
33
+ if (json == null) {
34
+ return json;
35
+ }
36
+ return {
37
+ 'after_structure_type': json['after_structure_type'] == null ? undefined : json['after_structure_type'],
38
+ 'before_structure_type': json['before_structure_type'] == null ? undefined : json['before_structure_type'],
39
+ 'changed': json['changed'],
40
+ };
41
+ }
42
+ function AuditLogIncidentUpdateConfigUpdatedMetadataV2ToJSON(json) {
43
+ return AuditLogIncidentUpdateConfigUpdatedMetadataV2ToJSONTyped(json, false);
44
+ }
45
+ function AuditLogIncidentUpdateConfigUpdatedMetadataV2ToJSONTyped(value, ignoreDiscriminator = false) {
46
+ if (value == null) {
47
+ return value;
48
+ }
49
+ return {
50
+ 'after_structure_type': value['after_structure_type'],
51
+ 'before_structure_type': value['before_structure_type'],
52
+ 'changed': value['changed'],
53
+ };
54
+ }
@@ -67,6 +67,8 @@ export declare const AuditLogTargetV2TypeEnum: {
67
67
  readonly IncidentCallSetting: "incident_call_setting";
68
68
  readonly IncidentDurationMetric: "incident_duration_metric";
69
69
  readonly IncidentTemplate: "incident_template";
70
+ readonly IncidentSummaryConfig: "incident_summary_config";
71
+ readonly IncidentUpdateConfig: "incident_update_config";
70
72
  readonly MaintenanceWindow: "maintenance_window";
71
73
  readonly IncidentRole: "incident_role";
72
74
  readonly IncidentStatus: "incident_status";
@@ -58,6 +58,8 @@ exports.AuditLogTargetV2TypeEnum = {
58
58
  IncidentCallSetting: 'incident_call_setting',
59
59
  IncidentDurationMetric: 'incident_duration_metric',
60
60
  IncidentTemplate: 'incident_template',
61
+ IncidentSummaryConfig: 'incident_summary_config',
62
+ IncidentUpdateConfig: 'incident_update_config',
61
63
  MaintenanceWindow: 'maintenance_window',
62
64
  IncidentRole: 'incident_role',
63
65
  IncidentStatus: 'incident_status',
@@ -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 { AuditLogEntryContextV2 } from './AuditLogEntryContextV2.js';
14
+ import type { AuditLogIncidentSummaryConfigUpdatedMetadataV2 } from './AuditLogIncidentSummaryConfigUpdatedMetadataV2.js';
15
+ import type { AuditLogTargetV2 } from './AuditLogTargetV2.js';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface AuditLogsIncidentSummaryConfigUpdatedV1
20
+ */
21
+ export interface AuditLogsIncidentSummaryConfigUpdatedV1 {
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: AuditLogIncidentSummaryConfigUpdatedMetadataV2;
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 AuditLogsIncidentSummaryConfigUpdatedV1 interface.
53
+ */
54
+ export declare function instanceOfAuditLogsIncidentSummaryConfigUpdatedV1(value: object): value is AuditLogsIncidentSummaryConfigUpdatedV1;
55
+ export declare function AuditLogsIncidentSummaryConfigUpdatedV1FromJSON(json: any): AuditLogsIncidentSummaryConfigUpdatedV1;
56
+ export declare function AuditLogsIncidentSummaryConfigUpdatedV1FromJSONTyped(json: any, ignoreDiscriminator: boolean): AuditLogsIncidentSummaryConfigUpdatedV1;
57
+ export declare function AuditLogsIncidentSummaryConfigUpdatedV1ToJSON(json: any): AuditLogsIncidentSummaryConfigUpdatedV1;
58
+ export declare function AuditLogsIncidentSummaryConfigUpdatedV1ToJSONTyped(value?: AuditLogsIncidentSummaryConfigUpdatedV1 | 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.instanceOfAuditLogsIncidentSummaryConfigUpdatedV1 = instanceOfAuditLogsIncidentSummaryConfigUpdatedV1;
17
+ exports.AuditLogsIncidentSummaryConfigUpdatedV1FromJSON = AuditLogsIncidentSummaryConfigUpdatedV1FromJSON;
18
+ exports.AuditLogsIncidentSummaryConfigUpdatedV1FromJSONTyped = AuditLogsIncidentSummaryConfigUpdatedV1FromJSONTyped;
19
+ exports.AuditLogsIncidentSummaryConfigUpdatedV1ToJSON = AuditLogsIncidentSummaryConfigUpdatedV1ToJSON;
20
+ exports.AuditLogsIncidentSummaryConfigUpdatedV1ToJSONTyped = AuditLogsIncidentSummaryConfigUpdatedV1ToJSONTyped;
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 AuditLogIncidentSummaryConfigUpdatedMetadataV2_js_1 = require("./AuditLogIncidentSummaryConfigUpdatedMetadataV2.js");
25
+ const AuditLogTargetV2_js_1 = require("./AuditLogTargetV2.js");
26
+ /**
27
+ * Check if a given object implements the AuditLogsIncidentSummaryConfigUpdatedV1 interface.
28
+ */
29
+ function instanceOfAuditLogsIncidentSummaryConfigUpdatedV1(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 AuditLogsIncidentSummaryConfigUpdatedV1FromJSON(json) {
47
+ return AuditLogsIncidentSummaryConfigUpdatedV1FromJSONTyped(json, false);
48
+ }
49
+ function AuditLogsIncidentSummaryConfigUpdatedV1FromJSONTyped(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, AuditLogIncidentSummaryConfigUpdatedMetadataV2_js_1.AuditLogIncidentSummaryConfigUpdatedMetadataV2FromJSON)(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 AuditLogsIncidentSummaryConfigUpdatedV1ToJSON(json) {
64
+ return AuditLogsIncidentSummaryConfigUpdatedV1ToJSONTyped(json, false);
65
+ }
66
+ function AuditLogsIncidentSummaryConfigUpdatedV1ToJSONTyped(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, AuditLogIncidentSummaryConfigUpdatedMetadataV2_js_1.AuditLogIncidentSummaryConfigUpdatedMetadataV2ToJSON)(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,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 { AuditLogEntryContextV2 } from './AuditLogEntryContextV2.js';
14
+ import type { AuditLogIncidentUpdateConfigUpdatedMetadataV2 } from './AuditLogIncidentUpdateConfigUpdatedMetadataV2.js';
15
+ import type { AuditLogTargetV2 } from './AuditLogTargetV2.js';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface AuditLogsIncidentUpdateConfigUpdatedV1
20
+ */
21
+ export interface AuditLogsIncidentUpdateConfigUpdatedV1 {
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: AuditLogIncidentUpdateConfigUpdatedMetadataV2;
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 AuditLogsIncidentUpdateConfigUpdatedV1 interface.
53
+ */
54
+ export declare function instanceOfAuditLogsIncidentUpdateConfigUpdatedV1(value: object): value is AuditLogsIncidentUpdateConfigUpdatedV1;
55
+ export declare function AuditLogsIncidentUpdateConfigUpdatedV1FromJSON(json: any): AuditLogsIncidentUpdateConfigUpdatedV1;
56
+ export declare function AuditLogsIncidentUpdateConfigUpdatedV1FromJSONTyped(json: any, ignoreDiscriminator: boolean): AuditLogsIncidentUpdateConfigUpdatedV1;
57
+ export declare function AuditLogsIncidentUpdateConfigUpdatedV1ToJSON(json: any): AuditLogsIncidentUpdateConfigUpdatedV1;
58
+ export declare function AuditLogsIncidentUpdateConfigUpdatedV1ToJSONTyped(value?: AuditLogsIncidentUpdateConfigUpdatedV1 | 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.instanceOfAuditLogsIncidentUpdateConfigUpdatedV1 = instanceOfAuditLogsIncidentUpdateConfigUpdatedV1;
17
+ exports.AuditLogsIncidentUpdateConfigUpdatedV1FromJSON = AuditLogsIncidentUpdateConfigUpdatedV1FromJSON;
18
+ exports.AuditLogsIncidentUpdateConfigUpdatedV1FromJSONTyped = AuditLogsIncidentUpdateConfigUpdatedV1FromJSONTyped;
19
+ exports.AuditLogsIncidentUpdateConfigUpdatedV1ToJSON = AuditLogsIncidentUpdateConfigUpdatedV1ToJSON;
20
+ exports.AuditLogsIncidentUpdateConfigUpdatedV1ToJSONTyped = AuditLogsIncidentUpdateConfigUpdatedV1ToJSONTyped;
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 AuditLogIncidentUpdateConfigUpdatedMetadataV2_js_1 = require("./AuditLogIncidentUpdateConfigUpdatedMetadataV2.js");
25
+ const AuditLogTargetV2_js_1 = require("./AuditLogTargetV2.js");
26
+ /**
27
+ * Check if a given object implements the AuditLogsIncidentUpdateConfigUpdatedV1 interface.
28
+ */
29
+ function instanceOfAuditLogsIncidentUpdateConfigUpdatedV1(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 AuditLogsIncidentUpdateConfigUpdatedV1FromJSON(json) {
47
+ return AuditLogsIncidentUpdateConfigUpdatedV1FromJSONTyped(json, false);
48
+ }
49
+ function AuditLogsIncidentUpdateConfigUpdatedV1FromJSONTyped(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, AuditLogIncidentUpdateConfigUpdatedMetadataV2_js_1.AuditLogIncidentUpdateConfigUpdatedMetadataV2FromJSON)(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 AuditLogsIncidentUpdateConfigUpdatedV1ToJSON(json) {
64
+ return AuditLogsIncidentUpdateConfigUpdatedV1ToJSONTyped(json, false);
65
+ }
66
+ function AuditLogsIncidentUpdateConfigUpdatedV1ToJSONTyped(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, AuditLogIncidentUpdateConfigUpdatedMetadataV2_js_1.AuditLogIncidentUpdateConfigUpdatedMetadataV2ToJSON)(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
+ }
@@ -38,6 +38,10 @@ export interface CatalogEntryV3 {
38
38
  * When this entry was created
39
39
  */
40
40
  created_at: Date;
41
+ /**
42
+ * Aliases your organisation has added to an entry of a catalog type that incident.io syncs, such as a schedule or escalation path, which you can't change aliases on directly. Syncs keep them, and they are also listed in aliases. When you update an entry, omit this or send null to keep its current custom aliases, send an empty list to clear them, or send a list to replace them.
43
+ */
44
+ custom_aliases: Array<string>;
41
45
  /**
42
46
  * An optional alternative ID for this entry, which is ensured to be unique for the type
43
47
  */
@@ -32,6 +32,8 @@ function instanceOfCatalogEntryV3(value) {
32
32
  return false;
33
33
  if (!('created_at' in value) || value['created_at'] === undefined)
34
34
  return false;
35
+ if (!('custom_aliases' in value) || value['custom_aliases'] === undefined)
36
+ return false;
35
37
  if (!('id' in value) || value['id'] === undefined)
36
38
  return false;
37
39
  if (!('name' in value) || value['name'] === undefined)
@@ -55,6 +57,7 @@ function CatalogEntryV3FromJSONTyped(json, ignoreDiscriminator) {
55
57
  'attribute_values': ((0, runtime_js_1.mapValues)(json['attribute_values'], CatalogEntryEngineParamBindingV3_js_1.CatalogEntryEngineParamBindingV3FromJSON)),
56
58
  'catalog_type_id': json['catalog_type_id'],
57
59
  'created_at': (json['created_at'] == null ? json['created_at'] : (0, runtime_js_1.parseDateTime)(json['created_at'])),
60
+ 'custom_aliases': json['custom_aliases'],
58
61
  'external_id': json['external_id'] == null ? undefined : json['external_id'],
59
62
  'id': json['id'],
60
63
  'name': json['name'],
@@ -75,6 +78,7 @@ function CatalogEntryV3ToJSONTyped(value, ignoreDiscriminator = false) {
75
78
  'attribute_values': ((0, runtime_js_1.mapValues)(value['attribute_values'], CatalogEntryEngineParamBindingV3_js_1.CatalogEntryEngineParamBindingV3ToJSON)),
76
79
  'catalog_type_id': value['catalog_type_id'],
77
80
  'created_at': value['created_at'] == null ? value['created_at'] : (0, runtime_js_1.serializeDateTime)(value['created_at']),
81
+ 'custom_aliases': value['custom_aliases'],
78
82
  'external_id': value['external_id'],
79
83
  'id': value['id'],
80
84
  'name': value['name'],
@@ -98,6 +98,10 @@ export interface CatalogTypeV3 {
98
98
  * The url of the external repository where this type is managed
99
99
  */
100
100
  source_repo_url?: string;
101
+ /**
102
+ * Whether entries of this type take custom_aliases. Only catalog types that incident.io syncs do, as you can't change their aliases directly, and not those whose aliases you edit elsewhere, such as alert priorities.
103
+ */
104
+ supports_custom_aliases: boolean;
101
105
  /**
102
106
  * The type name of this catalog type, to be used when defining attributes. This is immutable once a CatalogType has been created. For non-externally sync types, it must follow the pattern Custom["SomeName"]
103
107
  */
@@ -106,6 +106,8 @@ function instanceOfCatalogTypeV3(value) {
106
106
  return false;
107
107
  if (!('schema' in value) || value['schema'] === undefined)
108
108
  return false;
109
+ if (!('supports_custom_aliases' in value) || value['supports_custom_aliases'] === undefined)
110
+ return false;
109
111
  if (!('type_name' in value) || value['type_name'] === undefined)
110
112
  return false;
111
113
  if (!('updated_at' in value) || value['updated_at'] === undefined)
@@ -142,6 +144,7 @@ function CatalogTypeV3FromJSONTyped(json, ignoreDiscriminator) {
142
144
  'required_integrations': json['required_integrations'] == null ? undefined : json['required_integrations'],
143
145
  'schema': (0, CatalogTypeSchemaV3_js_1.CatalogTypeSchemaV3FromJSON)(json['schema']),
144
146
  'source_repo_url': json['source_repo_url'] == null ? undefined : json['source_repo_url'],
147
+ 'supports_custom_aliases': json['supports_custom_aliases'],
145
148
  'type_name': json['type_name'],
146
149
  'updated_at': (json['updated_at'] == null ? json['updated_at'] : (0, runtime_js_1.parseDateTime)(json['updated_at'])),
147
150
  'use_name_as_identifier': json['use_name_as_identifier'],
@@ -175,6 +178,7 @@ function CatalogTypeV3ToJSONTyped(value, ignoreDiscriminator = false) {
175
178
  'required_integrations': value['required_integrations'],
176
179
  'schema': (0, CatalogTypeSchemaV3_js_1.CatalogTypeSchemaV3ToJSON)(value['schema']),
177
180
  'source_repo_url': value['source_repo_url'],
181
+ 'supports_custom_aliases': value['supports_custom_aliases'],
178
182
  'type_name': value['type_name'],
179
183
  'updated_at': value['updated_at'] == null ? value['updated_at'] : (0, runtime_js_1.serializeDateTime)(value['updated_at']),
180
184
  'use_name_as_identifier': value['use_name_as_identifier'],
@@ -26,6 +26,10 @@ export interface CatalogUpdateEntryPayloadV3 {
26
26
  attribute_values: {
27
27
  [key: string]: CatalogEngineParamBindingPayloadV3;
28
28
  };
29
+ /**
30
+ * Aliases your organisation has added to an entry of a catalog type that incident.io syncs, such as a schedule or escalation path, which you can't change aliases on directly. Syncs keep them, and they are also listed in aliases. When you update an entry, omit this or send null to keep its current custom aliases, send an empty list to clear them, or send a list to replace them.
31
+ */
32
+ custom_aliases?: Array<string>;
29
33
  /**
30
34
  * An optional alternative ID for this entry, which is ensured to be unique for the type
31
35
  */
@@ -40,6 +40,7 @@ function CatalogUpdateEntryPayloadV3FromJSONTyped(json, ignoreDiscriminator) {
40
40
  return {
41
41
  'aliases': json['aliases'] == null ? undefined : json['aliases'],
42
42
  'attribute_values': ((0, runtime_js_1.mapValues)(json['attribute_values'], CatalogEngineParamBindingPayloadV3_js_1.CatalogEngineParamBindingPayloadV3FromJSON)),
43
+ 'custom_aliases': json['custom_aliases'] == null ? undefined : json['custom_aliases'],
43
44
  'external_id': json['external_id'] == null ? undefined : json['external_id'],
44
45
  'name': json['name'],
45
46
  'rank': json['rank'] == null ? undefined : json['rank'],
@@ -56,6 +57,7 @@ function CatalogUpdateEntryPayloadV3ToJSONTyped(value, ignoreDiscriminator = fal
56
57
  return {
57
58
  'aliases': value['aliases'],
58
59
  'attribute_values': ((0, runtime_js_1.mapValues)(value['attribute_values'], CatalogEngineParamBindingPayloadV3_js_1.CatalogEngineParamBindingPayloadV3ToJSON)),
60
+ 'custom_aliases': value['custom_aliases'],
59
61
  'external_id': value['external_id'],
60
62
  'name': value['name'],
61
63
  'rank': value['rank'],
@@ -26,6 +26,10 @@ export interface PartialEntryPayloadV3 {
26
26
  attribute_values: {
27
27
  [key: string]: CatalogEngineParamBindingPayloadV3;
28
28
  };
29
+ /**
30
+ * Aliases your organisation adds to an entry of a catalog type that incident.io syncs, such as a schedule or escalation path, which you can't change aliases on directly. Omit this or send null to keep the entry's current custom aliases, send an empty list to clear them, or send a list to replace them. Only available on catalog types where supports_custom_aliases is true.
31
+ */
32
+ custom_aliases?: Array<string>;
29
33
  /**
30
34
  * ID of the relevant catalog entry
31
35
  */
@@ -40,6 +40,7 @@ function PartialEntryPayloadV3FromJSONTyped(json, ignoreDiscriminator) {
40
40
  return {
41
41
  'aliases': json['aliases'] == null ? undefined : json['aliases'],
42
42
  'attribute_values': ((0, runtime_js_1.mapValues)(json['attribute_values'], CatalogEngineParamBindingPayloadV3_js_1.CatalogEngineParamBindingPayloadV3FromJSON)),
43
+ 'custom_aliases': json['custom_aliases'] == null ? undefined : json['custom_aliases'],
43
44
  'entry_id': json['entry_id'],
44
45
  'external_id': json['external_id'] == null ? undefined : json['external_id'],
45
46
  'name': json['name'] == null ? undefined : json['name'],
@@ -56,6 +57,7 @@ function PartialEntryPayloadV3ToJSONTyped(value, ignoreDiscriminator = false) {
56
57
  return {
57
58
  'aliases': value['aliases'],
58
59
  'attribute_values': ((0, runtime_js_1.mapValues)(value['attribute_values'], CatalogEngineParamBindingPayloadV3_js_1.CatalogEngineParamBindingPayloadV3ToJSON)),
60
+ 'custom_aliases': value['custom_aliases'],
59
61
  'entry_id': value['entry_id'],
60
62
  'external_id': value['external_id'],
61
63
  'name': value['name'],
@@ -215,7 +215,9 @@ export * from './AuditLogExtensionPluginCreatedMetadataV2.js';
215
215
  export * from './AuditLogExtensionPluginUpdatedMetadataV2.js';
216
216
  export * from './AuditLogHrisTimeOffPolicyUpdatedMetadataV2.js';
217
217
  export * from './AuditLogIPAllowlistUpdatedMetadataV2.js';
218
+ export * from './AuditLogIncidentSummaryConfigUpdatedMetadataV2.js';
218
219
  export * from './AuditLogIncidentTypeDefaultTeamsMetadataV2.js';
220
+ export * from './AuditLogIncidentUpdateConfigUpdatedMetadataV2.js';
219
221
  export * from './AuditLogIntegrationUpdatedMetadataV2.js';
220
222
  export * from './AuditLogInvestigationConfigUpdatedMetadataV2.js';
221
223
  export * from './AuditLogInvestigationTriggerMetadataV2.js';
@@ -423,6 +425,7 @@ export * from './AuditLogsIncidentStatusDeletedV1.js';
423
425
  export * from './AuditLogsIncidentStatusDeletedV2.js';
424
426
  export * from './AuditLogsIncidentStatusUpdatedV1.js';
425
427
  export * from './AuditLogsIncidentStatusUpdatedV2.js';
428
+ export * from './AuditLogsIncidentSummaryConfigUpdatedV1.js';
426
429
  export * from './AuditLogsIncidentTemplateCreatedV1.js';
427
430
  export * from './AuditLogsIncidentTemplateCreatedV2.js';
428
431
  export * from './AuditLogsIncidentTemplateDeletedV1.js';
@@ -451,6 +454,7 @@ export * from './AuditLogsIncidentTypeDeletedV2.js';
451
454
  export * from './AuditLogsIncidentTypeUpdatedV1.js';
452
455
  export * from './AuditLogsIncidentTypeUpdatedV2.js';
453
456
  export * from './AuditLogsIncidentTypeUpdatedV3.js';
457
+ export * from './AuditLogsIncidentUpdateConfigUpdatedV1.js';
454
458
  export * from './AuditLogsIntegrationInstalledV1.js';
455
459
  export * from './AuditLogsIntegrationInstalledV2.js';
456
460
  export * from './AuditLogsIntegrationUninstalledV1.js';