@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.
- package/dist/cjs/models/AuditLogIncidentSummaryConfigUpdatedMetadataV2.d.ts +38 -0
- package/dist/cjs/models/AuditLogIncidentSummaryConfigUpdatedMetadataV2.js +54 -0
- package/dist/cjs/models/AuditLogIncidentUpdateConfigUpdatedMetadataV2.d.ts +38 -0
- package/dist/cjs/models/AuditLogIncidentUpdateConfigUpdatedMetadataV2.js +54 -0
- package/dist/cjs/models/AuditLogTargetV2.d.ts +2 -0
- package/dist/cjs/models/AuditLogTargetV2.js +2 -0
- package/dist/cjs/models/AuditLogsIncidentSummaryConfigUpdatedV1.d.ts +58 -0
- package/dist/cjs/models/AuditLogsIncidentSummaryConfigUpdatedV1.js +79 -0
- package/dist/cjs/models/AuditLogsIncidentUpdateConfigUpdatedV1.d.ts +58 -0
- package/dist/cjs/models/AuditLogsIncidentUpdateConfigUpdatedV1.js +79 -0
- package/dist/cjs/models/CatalogEntryV3.d.ts +4 -0
- package/dist/cjs/models/CatalogEntryV3.js +4 -0
- package/dist/cjs/models/CatalogTypeV3.d.ts +4 -0
- package/dist/cjs/models/CatalogTypeV3.js +4 -0
- package/dist/cjs/models/CatalogUpdateEntryPayloadV3.d.ts +4 -0
- package/dist/cjs/models/CatalogUpdateEntryPayloadV3.js +2 -0
- package/dist/cjs/models/PartialEntryPayloadV3.d.ts +4 -0
- package/dist/cjs/models/PartialEntryPayloadV3.js +2 -0
- package/dist/cjs/models/index.d.ts +4 -0
- package/dist/cjs/models/index.js +4 -0
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/models/AuditLogIncidentSummaryConfigUpdatedMetadataV2.d.ts +38 -0
- package/dist/esm/models/AuditLogIncidentSummaryConfigUpdatedMetadataV2.js +47 -0
- package/dist/esm/models/AuditLogIncidentUpdateConfigUpdatedMetadataV2.d.ts +38 -0
- package/dist/esm/models/AuditLogIncidentUpdateConfigUpdatedMetadataV2.js +47 -0
- package/dist/esm/models/AuditLogTargetV2.d.ts +2 -0
- package/dist/esm/models/AuditLogTargetV2.js +2 -0
- package/dist/esm/models/AuditLogsIncidentSummaryConfigUpdatedV1.d.ts +58 -0
- package/dist/esm/models/AuditLogsIncidentSummaryConfigUpdatedV1.js +72 -0
- package/dist/esm/models/AuditLogsIncidentUpdateConfigUpdatedV1.d.ts +58 -0
- package/dist/esm/models/AuditLogsIncidentUpdateConfigUpdatedV1.js +72 -0
- package/dist/esm/models/CatalogEntryV3.d.ts +4 -0
- package/dist/esm/models/CatalogEntryV3.js +4 -0
- package/dist/esm/models/CatalogTypeV3.d.ts +4 -0
- package/dist/esm/models/CatalogTypeV3.js +4 -0
- package/dist/esm/models/CatalogUpdateEntryPayloadV3.d.ts +4 -0
- package/dist/esm/models/CatalogUpdateEntryPayloadV3.js +2 -0
- package/dist/esm/models/PartialEntryPayloadV3.d.ts +4 -0
- package/dist/esm/models/PartialEntryPayloadV3.js +2 -0
- package/dist/esm/models/index.d.ts +4 -0
- package/dist/esm/models/index.js +4 -0
- package/dist/esm/version.d.ts +1 -1
- package/dist/esm/version.js +1 -1
- package/package.json +1 -1
package/dist/cjs/models/index.js
CHANGED
|
@@ -233,7 +233,9 @@ __exportStar(require("./AuditLogExtensionPluginCreatedMetadataV2.js"), exports);
|
|
|
233
233
|
__exportStar(require("./AuditLogExtensionPluginUpdatedMetadataV2.js"), exports);
|
|
234
234
|
__exportStar(require("./AuditLogHrisTimeOffPolicyUpdatedMetadataV2.js"), exports);
|
|
235
235
|
__exportStar(require("./AuditLogIPAllowlistUpdatedMetadataV2.js"), exports);
|
|
236
|
+
__exportStar(require("./AuditLogIncidentSummaryConfigUpdatedMetadataV2.js"), exports);
|
|
236
237
|
__exportStar(require("./AuditLogIncidentTypeDefaultTeamsMetadataV2.js"), exports);
|
|
238
|
+
__exportStar(require("./AuditLogIncidentUpdateConfigUpdatedMetadataV2.js"), exports);
|
|
237
239
|
__exportStar(require("./AuditLogIntegrationUpdatedMetadataV2.js"), exports);
|
|
238
240
|
__exportStar(require("./AuditLogInvestigationConfigUpdatedMetadataV2.js"), exports);
|
|
239
241
|
__exportStar(require("./AuditLogInvestigationTriggerMetadataV2.js"), exports);
|
|
@@ -441,6 +443,7 @@ __exportStar(require("./AuditLogsIncidentStatusDeletedV1.js"), exports);
|
|
|
441
443
|
__exportStar(require("./AuditLogsIncidentStatusDeletedV2.js"), exports);
|
|
442
444
|
__exportStar(require("./AuditLogsIncidentStatusUpdatedV1.js"), exports);
|
|
443
445
|
__exportStar(require("./AuditLogsIncidentStatusUpdatedV2.js"), exports);
|
|
446
|
+
__exportStar(require("./AuditLogsIncidentSummaryConfigUpdatedV1.js"), exports);
|
|
444
447
|
__exportStar(require("./AuditLogsIncidentTemplateCreatedV1.js"), exports);
|
|
445
448
|
__exportStar(require("./AuditLogsIncidentTemplateCreatedV2.js"), exports);
|
|
446
449
|
__exportStar(require("./AuditLogsIncidentTemplateDeletedV1.js"), exports);
|
|
@@ -469,6 +472,7 @@ __exportStar(require("./AuditLogsIncidentTypeDeletedV2.js"), exports);
|
|
|
469
472
|
__exportStar(require("./AuditLogsIncidentTypeUpdatedV1.js"), exports);
|
|
470
473
|
__exportStar(require("./AuditLogsIncidentTypeUpdatedV2.js"), exports);
|
|
471
474
|
__exportStar(require("./AuditLogsIncidentTypeUpdatedV3.js"), exports);
|
|
475
|
+
__exportStar(require("./AuditLogsIncidentUpdateConfigUpdatedV1.js"), exports);
|
|
472
476
|
__exportStar(require("./AuditLogsIntegrationInstalledV1.js"), exports);
|
|
473
477
|
__exportStar(require("./AuditLogsIntegrationInstalledV2.js"), exports);
|
|
474
478
|
__exportStar(require("./AuditLogsIntegrationUninstalledV1.js"), exports);
|
package/dist/cjs/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const VERSION = "2.
|
|
1
|
+
export declare const VERSION = "2.43.0";
|
package/dist/cjs/version.js
CHANGED
|
@@ -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,47 @@
|
|
|
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
|
+
/**
|
|
15
|
+
* Check if a given object implements the AuditLogIncidentSummaryConfigUpdatedMetadataV2 interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfAuditLogIncidentSummaryConfigUpdatedMetadataV2(value) {
|
|
18
|
+
if (!('changed' in value) || value['changed'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
return true;
|
|
21
|
+
}
|
|
22
|
+
export function AuditLogIncidentSummaryConfigUpdatedMetadataV2FromJSON(json) {
|
|
23
|
+
return AuditLogIncidentSummaryConfigUpdatedMetadataV2FromJSONTyped(json, false);
|
|
24
|
+
}
|
|
25
|
+
export function AuditLogIncidentSummaryConfigUpdatedMetadataV2FromJSONTyped(json, ignoreDiscriminator) {
|
|
26
|
+
if (json == null) {
|
|
27
|
+
return json;
|
|
28
|
+
}
|
|
29
|
+
return {
|
|
30
|
+
'after_structure_type': json['after_structure_type'] == null ? undefined : json['after_structure_type'],
|
|
31
|
+
'before_structure_type': json['before_structure_type'] == null ? undefined : json['before_structure_type'],
|
|
32
|
+
'changed': json['changed'],
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
export function AuditLogIncidentSummaryConfigUpdatedMetadataV2ToJSON(json) {
|
|
36
|
+
return AuditLogIncidentSummaryConfigUpdatedMetadataV2ToJSONTyped(json, false);
|
|
37
|
+
}
|
|
38
|
+
export function AuditLogIncidentSummaryConfigUpdatedMetadataV2ToJSONTyped(value, ignoreDiscriminator = false) {
|
|
39
|
+
if (value == null) {
|
|
40
|
+
return value;
|
|
41
|
+
}
|
|
42
|
+
return {
|
|
43
|
+
'after_structure_type': value['after_structure_type'],
|
|
44
|
+
'before_structure_type': value['before_structure_type'],
|
|
45
|
+
'changed': value['changed'],
|
|
46
|
+
};
|
|
47
|
+
}
|
|
@@ -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,47 @@
|
|
|
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
|
+
/**
|
|
15
|
+
* Check if a given object implements the AuditLogIncidentUpdateConfigUpdatedMetadataV2 interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfAuditLogIncidentUpdateConfigUpdatedMetadataV2(value) {
|
|
18
|
+
if (!('changed' in value) || value['changed'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
return true;
|
|
21
|
+
}
|
|
22
|
+
export function AuditLogIncidentUpdateConfigUpdatedMetadataV2FromJSON(json) {
|
|
23
|
+
return AuditLogIncidentUpdateConfigUpdatedMetadataV2FromJSONTyped(json, false);
|
|
24
|
+
}
|
|
25
|
+
export function AuditLogIncidentUpdateConfigUpdatedMetadataV2FromJSONTyped(json, ignoreDiscriminator) {
|
|
26
|
+
if (json == null) {
|
|
27
|
+
return json;
|
|
28
|
+
}
|
|
29
|
+
return {
|
|
30
|
+
'after_structure_type': json['after_structure_type'] == null ? undefined : json['after_structure_type'],
|
|
31
|
+
'before_structure_type': json['before_structure_type'] == null ? undefined : json['before_structure_type'],
|
|
32
|
+
'changed': json['changed'],
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
export function AuditLogIncidentUpdateConfigUpdatedMetadataV2ToJSON(json) {
|
|
36
|
+
return AuditLogIncidentUpdateConfigUpdatedMetadataV2ToJSONTyped(json, false);
|
|
37
|
+
}
|
|
38
|
+
export function AuditLogIncidentUpdateConfigUpdatedMetadataV2ToJSONTyped(value, ignoreDiscriminator = false) {
|
|
39
|
+
if (value == null) {
|
|
40
|
+
return value;
|
|
41
|
+
}
|
|
42
|
+
return {
|
|
43
|
+
'after_structure_type': value['after_structure_type'],
|
|
44
|
+
'before_structure_type': value['before_structure_type'],
|
|
45
|
+
'changed': value['changed'],
|
|
46
|
+
};
|
|
47
|
+
}
|
|
@@ -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";
|
|
@@ -50,6 +50,8 @@ export const AuditLogTargetV2TypeEnum = {
|
|
|
50
50
|
IncidentCallSetting: 'incident_call_setting',
|
|
51
51
|
IncidentDurationMetric: 'incident_duration_metric',
|
|
52
52
|
IncidentTemplate: 'incident_template',
|
|
53
|
+
IncidentSummaryConfig: 'incident_summary_config',
|
|
54
|
+
IncidentUpdateConfig: 'incident_update_config',
|
|
53
55
|
MaintenanceWindow: 'maintenance_window',
|
|
54
56
|
IncidentRole: 'incident_role',
|
|
55
57
|
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,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 { AuditLogEntryContextV2FromJSON, AuditLogEntryContextV2ToJSON, } from './AuditLogEntryContextV2.js';
|
|
17
|
+
import { AuditLogIncidentSummaryConfigUpdatedMetadataV2FromJSON, AuditLogIncidentSummaryConfigUpdatedMetadataV2ToJSON, } from './AuditLogIncidentSummaryConfigUpdatedMetadataV2.js';
|
|
18
|
+
import { AuditLogTargetV2FromJSON, AuditLogTargetV2ToJSON, } from './AuditLogTargetV2.js';
|
|
19
|
+
/**
|
|
20
|
+
* Check if a given object implements the AuditLogsIncidentSummaryConfigUpdatedV1 interface.
|
|
21
|
+
*/
|
|
22
|
+
export function instanceOfAuditLogsIncidentSummaryConfigUpdatedV1(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 AuditLogsIncidentSummaryConfigUpdatedV1FromJSON(json) {
|
|
40
|
+
return AuditLogsIncidentSummaryConfigUpdatedV1FromJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
export function AuditLogsIncidentSummaryConfigUpdatedV1FromJSONTyped(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': AuditLogIncidentSummaryConfigUpdatedMetadataV2FromJSON(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 AuditLogsIncidentSummaryConfigUpdatedV1ToJSON(json) {
|
|
57
|
+
return AuditLogsIncidentSummaryConfigUpdatedV1ToJSONTyped(json, false);
|
|
58
|
+
}
|
|
59
|
+
export function AuditLogsIncidentSummaryConfigUpdatedV1ToJSONTyped(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': AuditLogIncidentSummaryConfigUpdatedMetadataV2ToJSON(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,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,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 { AuditLogEntryContextV2FromJSON, AuditLogEntryContextV2ToJSON, } from './AuditLogEntryContextV2.js';
|
|
17
|
+
import { AuditLogIncidentUpdateConfigUpdatedMetadataV2FromJSON, AuditLogIncidentUpdateConfigUpdatedMetadataV2ToJSON, } from './AuditLogIncidentUpdateConfigUpdatedMetadataV2.js';
|
|
18
|
+
import { AuditLogTargetV2FromJSON, AuditLogTargetV2ToJSON, } from './AuditLogTargetV2.js';
|
|
19
|
+
/**
|
|
20
|
+
* Check if a given object implements the AuditLogsIncidentUpdateConfigUpdatedV1 interface.
|
|
21
|
+
*/
|
|
22
|
+
export function instanceOfAuditLogsIncidentUpdateConfigUpdatedV1(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 AuditLogsIncidentUpdateConfigUpdatedV1FromJSON(json) {
|
|
40
|
+
return AuditLogsIncidentUpdateConfigUpdatedV1FromJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
export function AuditLogsIncidentUpdateConfigUpdatedV1FromJSONTyped(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': AuditLogIncidentUpdateConfigUpdatedMetadataV2FromJSON(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 AuditLogsIncidentUpdateConfigUpdatedV1ToJSON(json) {
|
|
57
|
+
return AuditLogsIncidentUpdateConfigUpdatedV1ToJSONTyped(json, false);
|
|
58
|
+
}
|
|
59
|
+
export function AuditLogsIncidentUpdateConfigUpdatedV1ToJSONTyped(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': AuditLogIncidentUpdateConfigUpdatedMetadataV2ToJSON(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
|
+
}
|
|
@@ -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
|
*/
|
|
@@ -25,6 +25,8 @@ export function instanceOfCatalogEntryV3(value) {
|
|
|
25
25
|
return false;
|
|
26
26
|
if (!('created_at' in value) || value['created_at'] === undefined)
|
|
27
27
|
return false;
|
|
28
|
+
if (!('custom_aliases' in value) || value['custom_aliases'] === undefined)
|
|
29
|
+
return false;
|
|
28
30
|
if (!('id' in value) || value['id'] === undefined)
|
|
29
31
|
return false;
|
|
30
32
|
if (!('name' in value) || value['name'] === undefined)
|
|
@@ -48,6 +50,7 @@ export function CatalogEntryV3FromJSONTyped(json, ignoreDiscriminator) {
|
|
|
48
50
|
'attribute_values': (mapValues(json['attribute_values'], CatalogEntryEngineParamBindingV3FromJSON)),
|
|
49
51
|
'catalog_type_id': json['catalog_type_id'],
|
|
50
52
|
'created_at': (json['created_at'] == null ? json['created_at'] : parseDateTime(json['created_at'])),
|
|
53
|
+
'custom_aliases': json['custom_aliases'],
|
|
51
54
|
'external_id': json['external_id'] == null ? undefined : json['external_id'],
|
|
52
55
|
'id': json['id'],
|
|
53
56
|
'name': json['name'],
|
|
@@ -68,6 +71,7 @@ export function CatalogEntryV3ToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
68
71
|
'attribute_values': (mapValues(value['attribute_values'], CatalogEntryEngineParamBindingV3ToJSON)),
|
|
69
72
|
'catalog_type_id': value['catalog_type_id'],
|
|
70
73
|
'created_at': value['created_at'] == null ? value['created_at'] : serializeDateTime(value['created_at']),
|
|
74
|
+
'custom_aliases': value['custom_aliases'],
|
|
71
75
|
'external_id': value['external_id'],
|
|
72
76
|
'id': value['id'],
|
|
73
77
|
'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
|
*/
|
|
@@ -98,6 +98,8 @@ export function instanceOfCatalogTypeV3(value) {
|
|
|
98
98
|
return false;
|
|
99
99
|
if (!('schema' in value) || value['schema'] === undefined)
|
|
100
100
|
return false;
|
|
101
|
+
if (!('supports_custom_aliases' in value) || value['supports_custom_aliases'] === undefined)
|
|
102
|
+
return false;
|
|
101
103
|
if (!('type_name' in value) || value['type_name'] === undefined)
|
|
102
104
|
return false;
|
|
103
105
|
if (!('updated_at' in value) || value['updated_at'] === undefined)
|
|
@@ -134,6 +136,7 @@ export function CatalogTypeV3FromJSONTyped(json, ignoreDiscriminator) {
|
|
|
134
136
|
'required_integrations': json['required_integrations'] == null ? undefined : json['required_integrations'],
|
|
135
137
|
'schema': CatalogTypeSchemaV3FromJSON(json['schema']),
|
|
136
138
|
'source_repo_url': json['source_repo_url'] == null ? undefined : json['source_repo_url'],
|
|
139
|
+
'supports_custom_aliases': json['supports_custom_aliases'],
|
|
137
140
|
'type_name': json['type_name'],
|
|
138
141
|
'updated_at': (json['updated_at'] == null ? json['updated_at'] : parseDateTime(json['updated_at'])),
|
|
139
142
|
'use_name_as_identifier': json['use_name_as_identifier'],
|
|
@@ -167,6 +170,7 @@ export function CatalogTypeV3ToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
167
170
|
'required_integrations': value['required_integrations'],
|
|
168
171
|
'schema': CatalogTypeSchemaV3ToJSON(value['schema']),
|
|
169
172
|
'source_repo_url': value['source_repo_url'],
|
|
173
|
+
'supports_custom_aliases': value['supports_custom_aliases'],
|
|
170
174
|
'type_name': value['type_name'],
|
|
171
175
|
'updated_at': value['updated_at'] == null ? value['updated_at'] : serializeDateTime(value['updated_at']),
|
|
172
176
|
'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
|
*/
|
|
@@ -33,6 +33,7 @@ export function CatalogUpdateEntryPayloadV3FromJSONTyped(json, ignoreDiscriminat
|
|
|
33
33
|
return {
|
|
34
34
|
'aliases': json['aliases'] == null ? undefined : json['aliases'],
|
|
35
35
|
'attribute_values': (mapValues(json['attribute_values'], CatalogEngineParamBindingPayloadV3FromJSON)),
|
|
36
|
+
'custom_aliases': json['custom_aliases'] == null ? undefined : json['custom_aliases'],
|
|
36
37
|
'external_id': json['external_id'] == null ? undefined : json['external_id'],
|
|
37
38
|
'name': json['name'],
|
|
38
39
|
'rank': json['rank'] == null ? undefined : json['rank'],
|
|
@@ -49,6 +50,7 @@ export function CatalogUpdateEntryPayloadV3ToJSONTyped(value, ignoreDiscriminato
|
|
|
49
50
|
return {
|
|
50
51
|
'aliases': value['aliases'],
|
|
51
52
|
'attribute_values': (mapValues(value['attribute_values'], CatalogEngineParamBindingPayloadV3ToJSON)),
|
|
53
|
+
'custom_aliases': value['custom_aliases'],
|
|
52
54
|
'external_id': value['external_id'],
|
|
53
55
|
'name': value['name'],
|
|
54
56
|
'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
|
*/
|
|
@@ -33,6 +33,7 @@ export function PartialEntryPayloadV3FromJSONTyped(json, ignoreDiscriminator) {
|
|
|
33
33
|
return {
|
|
34
34
|
'aliases': json['aliases'] == null ? undefined : json['aliases'],
|
|
35
35
|
'attribute_values': (mapValues(json['attribute_values'], CatalogEngineParamBindingPayloadV3FromJSON)),
|
|
36
|
+
'custom_aliases': json['custom_aliases'] == null ? undefined : json['custom_aliases'],
|
|
36
37
|
'entry_id': json['entry_id'],
|
|
37
38
|
'external_id': json['external_id'] == null ? undefined : json['external_id'],
|
|
38
39
|
'name': json['name'] == null ? undefined : json['name'],
|
|
@@ -49,6 +50,7 @@ export function PartialEntryPayloadV3ToJSONTyped(value, ignoreDiscriminator = fa
|
|
|
49
50
|
return {
|
|
50
51
|
'aliases': value['aliases'],
|
|
51
52
|
'attribute_values': (mapValues(value['attribute_values'], CatalogEngineParamBindingPayloadV3ToJSON)),
|
|
53
|
+
'custom_aliases': value['custom_aliases'],
|
|
52
54
|
'entry_id': value['entry_id'],
|
|
53
55
|
'external_id': value['external_id'],
|
|
54
56
|
'name': value['name'],
|