@incident-io/sdk 2.47.0 → 2.49.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/AuditLogReliabilityReviewRuleCreatedMetadataV2.d.ts +42 -0
  2. package/dist/cjs/models/AuditLogReliabilityReviewRuleCreatedMetadataV2.js +60 -0
  3. package/dist/cjs/models/AuditLogReliabilityReviewRuleUpdatedMetadataV2.d.ts +66 -0
  4. package/dist/cjs/models/AuditLogReliabilityReviewRuleUpdatedMetadataV2.js +68 -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/AuditLogsEscalationUrgencyCreatedV1.d.ts +53 -0
  8. package/dist/cjs/models/AuditLogsEscalationUrgencyCreatedV1.js +74 -0
  9. package/dist/cjs/models/AuditLogsEscalationUrgencyDeletedV1.d.ts +53 -0
  10. package/dist/cjs/models/AuditLogsEscalationUrgencyDeletedV1.js +74 -0
  11. package/dist/cjs/models/AuditLogsEscalationUrgencyUpdatedV1.d.ts +53 -0
  12. package/dist/cjs/models/AuditLogsEscalationUrgencyUpdatedV1.js +74 -0
  13. package/dist/cjs/models/AuditLogsReliabilityReviewRuleCreatedV1.d.ts +58 -0
  14. package/dist/cjs/models/AuditLogsReliabilityReviewRuleCreatedV1.js +79 -0
  15. package/dist/cjs/models/AuditLogsReliabilityReviewRuleDeletedV1.d.ts +53 -0
  16. package/dist/cjs/models/AuditLogsReliabilityReviewRuleDeletedV1.js +74 -0
  17. package/dist/cjs/models/AuditLogsReliabilityReviewRuleUpdatedV1.d.ts +58 -0
  18. package/dist/cjs/models/AuditLogsReliabilityReviewRuleUpdatedV1.js +79 -0
  19. package/dist/cjs/models/index.d.ts +8 -0
  20. package/dist/cjs/models/index.js +8 -0
  21. package/dist/cjs/version.d.ts +1 -1
  22. package/dist/cjs/version.js +1 -1
  23. package/dist/esm/models/AuditLogReliabilityReviewRuleCreatedMetadataV2.d.ts +42 -0
  24. package/dist/esm/models/AuditLogReliabilityReviewRuleCreatedMetadataV2.js +53 -0
  25. package/dist/esm/models/AuditLogReliabilityReviewRuleUpdatedMetadataV2.d.ts +66 -0
  26. package/dist/esm/models/AuditLogReliabilityReviewRuleUpdatedMetadataV2.js +61 -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/AuditLogsEscalationUrgencyCreatedV1.d.ts +53 -0
  30. package/dist/esm/models/AuditLogsEscalationUrgencyCreatedV1.js +67 -0
  31. package/dist/esm/models/AuditLogsEscalationUrgencyDeletedV1.d.ts +53 -0
  32. package/dist/esm/models/AuditLogsEscalationUrgencyDeletedV1.js +67 -0
  33. package/dist/esm/models/AuditLogsEscalationUrgencyUpdatedV1.d.ts +53 -0
  34. package/dist/esm/models/AuditLogsEscalationUrgencyUpdatedV1.js +67 -0
  35. package/dist/esm/models/AuditLogsReliabilityReviewRuleCreatedV1.d.ts +58 -0
  36. package/dist/esm/models/AuditLogsReliabilityReviewRuleCreatedV1.js +72 -0
  37. package/dist/esm/models/AuditLogsReliabilityReviewRuleDeletedV1.d.ts +53 -0
  38. package/dist/esm/models/AuditLogsReliabilityReviewRuleDeletedV1.js +67 -0
  39. package/dist/esm/models/AuditLogsReliabilityReviewRuleUpdatedV1.d.ts +58 -0
  40. package/dist/esm/models/AuditLogsReliabilityReviewRuleUpdatedV1.js +72 -0
  41. package/dist/esm/models/index.d.ts +8 -0
  42. package/dist/esm/models/index.js +8 -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,42 @@
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 AuditLogReliabilityReviewRuleCreatedMetadataV2
16
+ */
17
+ export interface AuditLogReliabilityReviewRuleCreatedMetadataV2 {
18
+ /**
19
+ * Whether the rule tells the review to look for something or not to raise it (flag, ignore)
20
+ */
21
+ kind: string;
22
+ /**
23
+ * How the rule came to exist (user, dont_raise_again, remember_reply)
24
+ */
25
+ origin: string;
26
+ /**
27
+ * The repository the rule applies to
28
+ */
29
+ repository_id: string;
30
+ /**
31
+ * The rule's severity (high, medium, low). Absent when it has none
32
+ */
33
+ severity?: string;
34
+ }
35
+ /**
36
+ * Check if a given object implements the AuditLogReliabilityReviewRuleCreatedMetadataV2 interface.
37
+ */
38
+ export declare function instanceOfAuditLogReliabilityReviewRuleCreatedMetadataV2(value: object): value is AuditLogReliabilityReviewRuleCreatedMetadataV2;
39
+ export declare function AuditLogReliabilityReviewRuleCreatedMetadataV2FromJSON(json: any): AuditLogReliabilityReviewRuleCreatedMetadataV2;
40
+ export declare function AuditLogReliabilityReviewRuleCreatedMetadataV2FromJSONTyped(json: any, ignoreDiscriminator: boolean): AuditLogReliabilityReviewRuleCreatedMetadataV2;
41
+ export declare function AuditLogReliabilityReviewRuleCreatedMetadataV2ToJSON(json: any): AuditLogReliabilityReviewRuleCreatedMetadataV2;
42
+ export declare function AuditLogReliabilityReviewRuleCreatedMetadataV2ToJSONTyped(value?: AuditLogReliabilityReviewRuleCreatedMetadataV2 | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,60 @@
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.instanceOfAuditLogReliabilityReviewRuleCreatedMetadataV2 = instanceOfAuditLogReliabilityReviewRuleCreatedMetadataV2;
17
+ exports.AuditLogReliabilityReviewRuleCreatedMetadataV2FromJSON = AuditLogReliabilityReviewRuleCreatedMetadataV2FromJSON;
18
+ exports.AuditLogReliabilityReviewRuleCreatedMetadataV2FromJSONTyped = AuditLogReliabilityReviewRuleCreatedMetadataV2FromJSONTyped;
19
+ exports.AuditLogReliabilityReviewRuleCreatedMetadataV2ToJSON = AuditLogReliabilityReviewRuleCreatedMetadataV2ToJSON;
20
+ exports.AuditLogReliabilityReviewRuleCreatedMetadataV2ToJSONTyped = AuditLogReliabilityReviewRuleCreatedMetadataV2ToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the AuditLogReliabilityReviewRuleCreatedMetadataV2 interface.
23
+ */
24
+ function instanceOfAuditLogReliabilityReviewRuleCreatedMetadataV2(value) {
25
+ if (!('kind' in value) || value['kind'] === undefined)
26
+ return false;
27
+ if (!('origin' in value) || value['origin'] === undefined)
28
+ return false;
29
+ if (!('repository_id' in value) || value['repository_id'] === undefined)
30
+ return false;
31
+ return true;
32
+ }
33
+ function AuditLogReliabilityReviewRuleCreatedMetadataV2FromJSON(json) {
34
+ return AuditLogReliabilityReviewRuleCreatedMetadataV2FromJSONTyped(json, false);
35
+ }
36
+ function AuditLogReliabilityReviewRuleCreatedMetadataV2FromJSONTyped(json, ignoreDiscriminator) {
37
+ if (json == null) {
38
+ return json;
39
+ }
40
+ return {
41
+ 'kind': json['kind'],
42
+ 'origin': json['origin'],
43
+ 'repository_id': json['repository_id'],
44
+ 'severity': json['severity'] == null ? undefined : json['severity'],
45
+ };
46
+ }
47
+ function AuditLogReliabilityReviewRuleCreatedMetadataV2ToJSON(json) {
48
+ return AuditLogReliabilityReviewRuleCreatedMetadataV2ToJSONTyped(json, false);
49
+ }
50
+ function AuditLogReliabilityReviewRuleCreatedMetadataV2ToJSONTyped(value, ignoreDiscriminator = false) {
51
+ if (value == null) {
52
+ return value;
53
+ }
54
+ return {
55
+ 'kind': value['kind'],
56
+ 'origin': value['origin'],
57
+ 'repository_id': value['repository_id'],
58
+ 'severity': value['severity'],
59
+ };
60
+ }
@@ -0,0 +1,66 @@
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 AuditLogReliabilityReviewRuleUpdatedMetadataV2
16
+ */
17
+ export interface AuditLogReliabilityReviewRuleUpdatedMetadataV2 {
18
+ /**
19
+ * The rule's kind after the change (flag, ignore)
20
+ */
21
+ after_kind?: string;
22
+ /**
23
+ * The repository the rule applies to after the change
24
+ */
25
+ after_repository_id?: string;
26
+ /**
27
+ * The rule's severity after the change (high, medium, low). Absent when it has none
28
+ */
29
+ after_severity?: string;
30
+ /**
31
+ * The rule's kind before the change (flag, ignore)
32
+ */
33
+ before_kind?: string;
34
+ /**
35
+ * The repository the rule applied to before the change
36
+ */
37
+ before_repository_id?: string;
38
+ /**
39
+ * The rule's severity before the change (high, medium, low). Absent when it had none
40
+ */
41
+ before_severity?: string;
42
+ /**
43
+ * What the change changed, comma separated (title, body, kind, severity, examples, repository, paths, disabled, locked, restored)
44
+ */
45
+ changed: string;
46
+ /**
47
+ * Whether the rule is switched off after the change (true, false)
48
+ */
49
+ disabled?: string;
50
+ /**
51
+ * Whether the rule is locked after the change (true, false)
52
+ */
53
+ locked?: string;
54
+ /**
55
+ * The rule that replaced this one, when the change made a new version of it
56
+ */
57
+ new_rule_id?: string;
58
+ }
59
+ /**
60
+ * Check if a given object implements the AuditLogReliabilityReviewRuleUpdatedMetadataV2 interface.
61
+ */
62
+ export declare function instanceOfAuditLogReliabilityReviewRuleUpdatedMetadataV2(value: object): value is AuditLogReliabilityReviewRuleUpdatedMetadataV2;
63
+ export declare function AuditLogReliabilityReviewRuleUpdatedMetadataV2FromJSON(json: any): AuditLogReliabilityReviewRuleUpdatedMetadataV2;
64
+ export declare function AuditLogReliabilityReviewRuleUpdatedMetadataV2FromJSONTyped(json: any, ignoreDiscriminator: boolean): AuditLogReliabilityReviewRuleUpdatedMetadataV2;
65
+ export declare function AuditLogReliabilityReviewRuleUpdatedMetadataV2ToJSON(json: any): AuditLogReliabilityReviewRuleUpdatedMetadataV2;
66
+ export declare function AuditLogReliabilityReviewRuleUpdatedMetadataV2ToJSONTyped(value?: AuditLogReliabilityReviewRuleUpdatedMetadataV2 | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,68 @@
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.instanceOfAuditLogReliabilityReviewRuleUpdatedMetadataV2 = instanceOfAuditLogReliabilityReviewRuleUpdatedMetadataV2;
17
+ exports.AuditLogReliabilityReviewRuleUpdatedMetadataV2FromJSON = AuditLogReliabilityReviewRuleUpdatedMetadataV2FromJSON;
18
+ exports.AuditLogReliabilityReviewRuleUpdatedMetadataV2FromJSONTyped = AuditLogReliabilityReviewRuleUpdatedMetadataV2FromJSONTyped;
19
+ exports.AuditLogReliabilityReviewRuleUpdatedMetadataV2ToJSON = AuditLogReliabilityReviewRuleUpdatedMetadataV2ToJSON;
20
+ exports.AuditLogReliabilityReviewRuleUpdatedMetadataV2ToJSONTyped = AuditLogReliabilityReviewRuleUpdatedMetadataV2ToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the AuditLogReliabilityReviewRuleUpdatedMetadataV2 interface.
23
+ */
24
+ function instanceOfAuditLogReliabilityReviewRuleUpdatedMetadataV2(value) {
25
+ if (!('changed' in value) || value['changed'] === undefined)
26
+ return false;
27
+ return true;
28
+ }
29
+ function AuditLogReliabilityReviewRuleUpdatedMetadataV2FromJSON(json) {
30
+ return AuditLogReliabilityReviewRuleUpdatedMetadataV2FromJSONTyped(json, false);
31
+ }
32
+ function AuditLogReliabilityReviewRuleUpdatedMetadataV2FromJSONTyped(json, ignoreDiscriminator) {
33
+ if (json == null) {
34
+ return json;
35
+ }
36
+ return {
37
+ 'after_kind': json['after_kind'] == null ? undefined : json['after_kind'],
38
+ 'after_repository_id': json['after_repository_id'] == null ? undefined : json['after_repository_id'],
39
+ 'after_severity': json['after_severity'] == null ? undefined : json['after_severity'],
40
+ 'before_kind': json['before_kind'] == null ? undefined : json['before_kind'],
41
+ 'before_repository_id': json['before_repository_id'] == null ? undefined : json['before_repository_id'],
42
+ 'before_severity': json['before_severity'] == null ? undefined : json['before_severity'],
43
+ 'changed': json['changed'],
44
+ 'disabled': json['disabled'] == null ? undefined : json['disabled'],
45
+ 'locked': json['locked'] == null ? undefined : json['locked'],
46
+ 'new_rule_id': json['new_rule_id'] == null ? undefined : json['new_rule_id'],
47
+ };
48
+ }
49
+ function AuditLogReliabilityReviewRuleUpdatedMetadataV2ToJSON(json) {
50
+ return AuditLogReliabilityReviewRuleUpdatedMetadataV2ToJSONTyped(json, false);
51
+ }
52
+ function AuditLogReliabilityReviewRuleUpdatedMetadataV2ToJSONTyped(value, ignoreDiscriminator = false) {
53
+ if (value == null) {
54
+ return value;
55
+ }
56
+ return {
57
+ 'after_kind': value['after_kind'],
58
+ 'after_repository_id': value['after_repository_id'],
59
+ 'after_severity': value['after_severity'],
60
+ 'before_kind': value['before_kind'],
61
+ 'before_repository_id': value['before_repository_id'],
62
+ 'before_severity': value['before_severity'],
63
+ 'changed': value['changed'],
64
+ 'disabled': value['disabled'],
65
+ 'locked': value['locked'],
66
+ 'new_rule_id': value['new_rule_id'],
67
+ };
68
+ }
@@ -39,6 +39,7 @@ export declare const AuditLogTargetV2TypeEnum: {
39
39
  readonly AlertSchema: "alert_schema";
40
40
  readonly AlertSource: "alert_source";
41
41
  readonly AlertPriority: "alert_priority";
42
+ readonly EscalationUrgency: "escalation_urgency";
42
43
  readonly AnnouncementRule: "announcement_rule";
43
44
  readonly AnnouncementPostTemplate: "announcement_post_template";
44
45
  readonly CatalogType: "catalog_type";
@@ -58,6 +59,7 @@ export declare const AuditLogTargetV2TypeEnum: {
58
59
  readonly InvestigationConfig: "investigation_config";
59
60
  readonly CodeRepository: "code_repository";
60
61
  readonly ReliabilityReviewSettings: "reliability_review_settings";
62
+ readonly ReliabilityReviewRule: "reliability_review_rule";
61
63
  readonly FollowUpCategory: "follow_up_category";
62
64
  readonly FollowUpPriority: "follow_up_priority";
63
65
  readonly HolidayUserFeed: "holiday_user_feed";
@@ -30,6 +30,7 @@ exports.AuditLogTargetV2TypeEnum = {
30
30
  AlertSchema: 'alert_schema',
31
31
  AlertSource: 'alert_source',
32
32
  AlertPriority: 'alert_priority',
33
+ EscalationUrgency: 'escalation_urgency',
33
34
  AnnouncementRule: 'announcement_rule',
34
35
  AnnouncementPostTemplate: 'announcement_post_template',
35
36
  CatalogType: 'catalog_type',
@@ -49,6 +50,7 @@ exports.AuditLogTargetV2TypeEnum = {
49
50
  InvestigationConfig: 'investigation_config',
50
51
  CodeRepository: 'code_repository',
51
52
  ReliabilityReviewSettings: 'reliability_review_settings',
53
+ ReliabilityReviewRule: 'reliability_review_rule',
52
54
  FollowUpCategory: 'follow_up_category',
53
55
  FollowUpPriority: 'follow_up_priority',
54
56
  HolidayUserFeed: 'holiday_user_feed',
@@ -0,0 +1,53 @@
1
+ /**
2
+ * incident.io
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { AuditLogActorV2 } from './AuditLogActorV2.js';
13
+ import type { AuditLogEntryContextV2 } from './AuditLogEntryContextV2.js';
14
+ import type { AuditLogTargetV2 } from './AuditLogTargetV2.js';
15
+ /**
16
+ *
17
+ * @export
18
+ * @interface AuditLogsEscalationUrgencyCreatedV1
19
+ */
20
+ export interface AuditLogsEscalationUrgencyCreatedV1 {
21
+ /**
22
+ * The type of log entry that this is
23
+ */
24
+ action: string;
25
+ /**
26
+ *
27
+ */
28
+ actor: AuditLogActorV2;
29
+ /**
30
+ *
31
+ */
32
+ context: AuditLogEntryContextV2;
33
+ /**
34
+ * When the entry occurred
35
+ */
36
+ occurred_at: Date;
37
+ /**
38
+ * The custom field that was created
39
+ */
40
+ targets: Array<AuditLogTargetV2>;
41
+ /**
42
+ * Which version the event is
43
+ */
44
+ version: number;
45
+ }
46
+ /**
47
+ * Check if a given object implements the AuditLogsEscalationUrgencyCreatedV1 interface.
48
+ */
49
+ export declare function instanceOfAuditLogsEscalationUrgencyCreatedV1(value: object): value is AuditLogsEscalationUrgencyCreatedV1;
50
+ export declare function AuditLogsEscalationUrgencyCreatedV1FromJSON(json: any): AuditLogsEscalationUrgencyCreatedV1;
51
+ export declare function AuditLogsEscalationUrgencyCreatedV1FromJSONTyped(json: any, ignoreDiscriminator: boolean): AuditLogsEscalationUrgencyCreatedV1;
52
+ export declare function AuditLogsEscalationUrgencyCreatedV1ToJSON(json: any): AuditLogsEscalationUrgencyCreatedV1;
53
+ export declare function AuditLogsEscalationUrgencyCreatedV1ToJSONTyped(value?: AuditLogsEscalationUrgencyCreatedV1 | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,74 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * incident.io
6
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfAuditLogsEscalationUrgencyCreatedV1 = instanceOfAuditLogsEscalationUrgencyCreatedV1;
17
+ exports.AuditLogsEscalationUrgencyCreatedV1FromJSON = AuditLogsEscalationUrgencyCreatedV1FromJSON;
18
+ exports.AuditLogsEscalationUrgencyCreatedV1FromJSONTyped = AuditLogsEscalationUrgencyCreatedV1FromJSONTyped;
19
+ exports.AuditLogsEscalationUrgencyCreatedV1ToJSON = AuditLogsEscalationUrgencyCreatedV1ToJSON;
20
+ exports.AuditLogsEscalationUrgencyCreatedV1ToJSONTyped = AuditLogsEscalationUrgencyCreatedV1ToJSONTyped;
21
+ const runtime_js_1 = require("../runtime.js");
22
+ const AuditLogActorV2_js_1 = require("./AuditLogActorV2.js");
23
+ const AuditLogEntryContextV2_js_1 = require("./AuditLogEntryContextV2.js");
24
+ const AuditLogTargetV2_js_1 = require("./AuditLogTargetV2.js");
25
+ /**
26
+ * Check if a given object implements the AuditLogsEscalationUrgencyCreatedV1 interface.
27
+ */
28
+ function instanceOfAuditLogsEscalationUrgencyCreatedV1(value) {
29
+ if (!('action' in value) || value['action'] === undefined)
30
+ return false;
31
+ if (!('actor' in value) || value['actor'] === undefined)
32
+ return false;
33
+ if (!('context' in value) || value['context'] === undefined)
34
+ return false;
35
+ if (!('occurred_at' in value) || value['occurred_at'] === undefined)
36
+ return false;
37
+ if (!('targets' in value) || value['targets'] === undefined)
38
+ return false;
39
+ if (!('version' in value) || value['version'] === undefined)
40
+ return false;
41
+ return true;
42
+ }
43
+ function AuditLogsEscalationUrgencyCreatedV1FromJSON(json) {
44
+ return AuditLogsEscalationUrgencyCreatedV1FromJSONTyped(json, false);
45
+ }
46
+ function AuditLogsEscalationUrgencyCreatedV1FromJSONTyped(json, ignoreDiscriminator) {
47
+ if (json == null) {
48
+ return json;
49
+ }
50
+ return {
51
+ 'action': json['action'],
52
+ 'actor': (0, AuditLogActorV2_js_1.AuditLogActorV2FromJSON)(json['actor']),
53
+ 'context': (0, AuditLogEntryContextV2_js_1.AuditLogEntryContextV2FromJSON)(json['context']),
54
+ 'occurred_at': (json['occurred_at'] == null ? json['occurred_at'] : (0, runtime_js_1.parseDateTime)(json['occurred_at'])),
55
+ 'targets': (json['targets'].map(AuditLogTargetV2_js_1.AuditLogTargetV2FromJSON)),
56
+ 'version': json['version'],
57
+ };
58
+ }
59
+ function AuditLogsEscalationUrgencyCreatedV1ToJSON(json) {
60
+ return AuditLogsEscalationUrgencyCreatedV1ToJSONTyped(json, false);
61
+ }
62
+ function AuditLogsEscalationUrgencyCreatedV1ToJSONTyped(value, ignoreDiscriminator = false) {
63
+ if (value == null) {
64
+ return value;
65
+ }
66
+ return {
67
+ 'action': value['action'],
68
+ 'actor': (0, AuditLogActorV2_js_1.AuditLogActorV2ToJSON)(value['actor']),
69
+ 'context': (0, AuditLogEntryContextV2_js_1.AuditLogEntryContextV2ToJSON)(value['context']),
70
+ 'occurred_at': value['occurred_at'] == null ? value['occurred_at'] : (0, runtime_js_1.serializeDateTime)(value['occurred_at']),
71
+ 'targets': (value['targets'].map(AuditLogTargetV2_js_1.AuditLogTargetV2ToJSON)),
72
+ 'version': value['version'],
73
+ };
74
+ }
@@ -0,0 +1,53 @@
1
+ /**
2
+ * incident.io
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { AuditLogActorV2 } from './AuditLogActorV2.js';
13
+ import type { AuditLogEntryContextV2 } from './AuditLogEntryContextV2.js';
14
+ import type { AuditLogTargetV2 } from './AuditLogTargetV2.js';
15
+ /**
16
+ *
17
+ * @export
18
+ * @interface AuditLogsEscalationUrgencyDeletedV1
19
+ */
20
+ export interface AuditLogsEscalationUrgencyDeletedV1 {
21
+ /**
22
+ * The type of log entry that this is
23
+ */
24
+ action: string;
25
+ /**
26
+ *
27
+ */
28
+ actor: AuditLogActorV2;
29
+ /**
30
+ *
31
+ */
32
+ context: AuditLogEntryContextV2;
33
+ /**
34
+ * When the entry occurred
35
+ */
36
+ occurred_at: Date;
37
+ /**
38
+ * The custom field that was created
39
+ */
40
+ targets: Array<AuditLogTargetV2>;
41
+ /**
42
+ * Which version the event is
43
+ */
44
+ version: number;
45
+ }
46
+ /**
47
+ * Check if a given object implements the AuditLogsEscalationUrgencyDeletedV1 interface.
48
+ */
49
+ export declare function instanceOfAuditLogsEscalationUrgencyDeletedV1(value: object): value is AuditLogsEscalationUrgencyDeletedV1;
50
+ export declare function AuditLogsEscalationUrgencyDeletedV1FromJSON(json: any): AuditLogsEscalationUrgencyDeletedV1;
51
+ export declare function AuditLogsEscalationUrgencyDeletedV1FromJSONTyped(json: any, ignoreDiscriminator: boolean): AuditLogsEscalationUrgencyDeletedV1;
52
+ export declare function AuditLogsEscalationUrgencyDeletedV1ToJSON(json: any): AuditLogsEscalationUrgencyDeletedV1;
53
+ export declare function AuditLogsEscalationUrgencyDeletedV1ToJSONTyped(value?: AuditLogsEscalationUrgencyDeletedV1 | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,74 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * incident.io
6
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfAuditLogsEscalationUrgencyDeletedV1 = instanceOfAuditLogsEscalationUrgencyDeletedV1;
17
+ exports.AuditLogsEscalationUrgencyDeletedV1FromJSON = AuditLogsEscalationUrgencyDeletedV1FromJSON;
18
+ exports.AuditLogsEscalationUrgencyDeletedV1FromJSONTyped = AuditLogsEscalationUrgencyDeletedV1FromJSONTyped;
19
+ exports.AuditLogsEscalationUrgencyDeletedV1ToJSON = AuditLogsEscalationUrgencyDeletedV1ToJSON;
20
+ exports.AuditLogsEscalationUrgencyDeletedV1ToJSONTyped = AuditLogsEscalationUrgencyDeletedV1ToJSONTyped;
21
+ const runtime_js_1 = require("../runtime.js");
22
+ const AuditLogActorV2_js_1 = require("./AuditLogActorV2.js");
23
+ const AuditLogEntryContextV2_js_1 = require("./AuditLogEntryContextV2.js");
24
+ const AuditLogTargetV2_js_1 = require("./AuditLogTargetV2.js");
25
+ /**
26
+ * Check if a given object implements the AuditLogsEscalationUrgencyDeletedV1 interface.
27
+ */
28
+ function instanceOfAuditLogsEscalationUrgencyDeletedV1(value) {
29
+ if (!('action' in value) || value['action'] === undefined)
30
+ return false;
31
+ if (!('actor' in value) || value['actor'] === undefined)
32
+ return false;
33
+ if (!('context' in value) || value['context'] === undefined)
34
+ return false;
35
+ if (!('occurred_at' in value) || value['occurred_at'] === undefined)
36
+ return false;
37
+ if (!('targets' in value) || value['targets'] === undefined)
38
+ return false;
39
+ if (!('version' in value) || value['version'] === undefined)
40
+ return false;
41
+ return true;
42
+ }
43
+ function AuditLogsEscalationUrgencyDeletedV1FromJSON(json) {
44
+ return AuditLogsEscalationUrgencyDeletedV1FromJSONTyped(json, false);
45
+ }
46
+ function AuditLogsEscalationUrgencyDeletedV1FromJSONTyped(json, ignoreDiscriminator) {
47
+ if (json == null) {
48
+ return json;
49
+ }
50
+ return {
51
+ 'action': json['action'],
52
+ 'actor': (0, AuditLogActorV2_js_1.AuditLogActorV2FromJSON)(json['actor']),
53
+ 'context': (0, AuditLogEntryContextV2_js_1.AuditLogEntryContextV2FromJSON)(json['context']),
54
+ 'occurred_at': (json['occurred_at'] == null ? json['occurred_at'] : (0, runtime_js_1.parseDateTime)(json['occurred_at'])),
55
+ 'targets': (json['targets'].map(AuditLogTargetV2_js_1.AuditLogTargetV2FromJSON)),
56
+ 'version': json['version'],
57
+ };
58
+ }
59
+ function AuditLogsEscalationUrgencyDeletedV1ToJSON(json) {
60
+ return AuditLogsEscalationUrgencyDeletedV1ToJSONTyped(json, false);
61
+ }
62
+ function AuditLogsEscalationUrgencyDeletedV1ToJSONTyped(value, ignoreDiscriminator = false) {
63
+ if (value == null) {
64
+ return value;
65
+ }
66
+ return {
67
+ 'action': value['action'],
68
+ 'actor': (0, AuditLogActorV2_js_1.AuditLogActorV2ToJSON)(value['actor']),
69
+ 'context': (0, AuditLogEntryContextV2_js_1.AuditLogEntryContextV2ToJSON)(value['context']),
70
+ 'occurred_at': value['occurred_at'] == null ? value['occurred_at'] : (0, runtime_js_1.serializeDateTime)(value['occurred_at']),
71
+ 'targets': (value['targets'].map(AuditLogTargetV2_js_1.AuditLogTargetV2ToJSON)),
72
+ 'version': value['version'],
73
+ };
74
+ }
@@ -0,0 +1,53 @@
1
+ /**
2
+ * incident.io
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { AuditLogActorV2 } from './AuditLogActorV2.js';
13
+ import type { AuditLogEntryContextV2 } from './AuditLogEntryContextV2.js';
14
+ import type { AuditLogTargetV2 } from './AuditLogTargetV2.js';
15
+ /**
16
+ *
17
+ * @export
18
+ * @interface AuditLogsEscalationUrgencyUpdatedV1
19
+ */
20
+ export interface AuditLogsEscalationUrgencyUpdatedV1 {
21
+ /**
22
+ * The type of log entry that this is
23
+ */
24
+ action: string;
25
+ /**
26
+ *
27
+ */
28
+ actor: AuditLogActorV2;
29
+ /**
30
+ *
31
+ */
32
+ context: AuditLogEntryContextV2;
33
+ /**
34
+ * When the entry occurred
35
+ */
36
+ occurred_at: Date;
37
+ /**
38
+ * The custom field that was created
39
+ */
40
+ targets: Array<AuditLogTargetV2>;
41
+ /**
42
+ * Which version the event is
43
+ */
44
+ version: number;
45
+ }
46
+ /**
47
+ * Check if a given object implements the AuditLogsEscalationUrgencyUpdatedV1 interface.
48
+ */
49
+ export declare function instanceOfAuditLogsEscalationUrgencyUpdatedV1(value: object): value is AuditLogsEscalationUrgencyUpdatedV1;
50
+ export declare function AuditLogsEscalationUrgencyUpdatedV1FromJSON(json: any): AuditLogsEscalationUrgencyUpdatedV1;
51
+ export declare function AuditLogsEscalationUrgencyUpdatedV1FromJSONTyped(json: any, ignoreDiscriminator: boolean): AuditLogsEscalationUrgencyUpdatedV1;
52
+ export declare function AuditLogsEscalationUrgencyUpdatedV1ToJSON(json: any): AuditLogsEscalationUrgencyUpdatedV1;
53
+ export declare function AuditLogsEscalationUrgencyUpdatedV1ToJSONTyped(value?: AuditLogsEscalationUrgencyUpdatedV1 | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,74 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * incident.io
6
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfAuditLogsEscalationUrgencyUpdatedV1 = instanceOfAuditLogsEscalationUrgencyUpdatedV1;
17
+ exports.AuditLogsEscalationUrgencyUpdatedV1FromJSON = AuditLogsEscalationUrgencyUpdatedV1FromJSON;
18
+ exports.AuditLogsEscalationUrgencyUpdatedV1FromJSONTyped = AuditLogsEscalationUrgencyUpdatedV1FromJSONTyped;
19
+ exports.AuditLogsEscalationUrgencyUpdatedV1ToJSON = AuditLogsEscalationUrgencyUpdatedV1ToJSON;
20
+ exports.AuditLogsEscalationUrgencyUpdatedV1ToJSONTyped = AuditLogsEscalationUrgencyUpdatedV1ToJSONTyped;
21
+ const runtime_js_1 = require("../runtime.js");
22
+ const AuditLogActorV2_js_1 = require("./AuditLogActorV2.js");
23
+ const AuditLogEntryContextV2_js_1 = require("./AuditLogEntryContextV2.js");
24
+ const AuditLogTargetV2_js_1 = require("./AuditLogTargetV2.js");
25
+ /**
26
+ * Check if a given object implements the AuditLogsEscalationUrgencyUpdatedV1 interface.
27
+ */
28
+ function instanceOfAuditLogsEscalationUrgencyUpdatedV1(value) {
29
+ if (!('action' in value) || value['action'] === undefined)
30
+ return false;
31
+ if (!('actor' in value) || value['actor'] === undefined)
32
+ return false;
33
+ if (!('context' in value) || value['context'] === undefined)
34
+ return false;
35
+ if (!('occurred_at' in value) || value['occurred_at'] === undefined)
36
+ return false;
37
+ if (!('targets' in value) || value['targets'] === undefined)
38
+ return false;
39
+ if (!('version' in value) || value['version'] === undefined)
40
+ return false;
41
+ return true;
42
+ }
43
+ function AuditLogsEscalationUrgencyUpdatedV1FromJSON(json) {
44
+ return AuditLogsEscalationUrgencyUpdatedV1FromJSONTyped(json, false);
45
+ }
46
+ function AuditLogsEscalationUrgencyUpdatedV1FromJSONTyped(json, ignoreDiscriminator) {
47
+ if (json == null) {
48
+ return json;
49
+ }
50
+ return {
51
+ 'action': json['action'],
52
+ 'actor': (0, AuditLogActorV2_js_1.AuditLogActorV2FromJSON)(json['actor']),
53
+ 'context': (0, AuditLogEntryContextV2_js_1.AuditLogEntryContextV2FromJSON)(json['context']),
54
+ 'occurred_at': (json['occurred_at'] == null ? json['occurred_at'] : (0, runtime_js_1.parseDateTime)(json['occurred_at'])),
55
+ 'targets': (json['targets'].map(AuditLogTargetV2_js_1.AuditLogTargetV2FromJSON)),
56
+ 'version': json['version'],
57
+ };
58
+ }
59
+ function AuditLogsEscalationUrgencyUpdatedV1ToJSON(json) {
60
+ return AuditLogsEscalationUrgencyUpdatedV1ToJSONTyped(json, false);
61
+ }
62
+ function AuditLogsEscalationUrgencyUpdatedV1ToJSONTyped(value, ignoreDiscriminator = false) {
63
+ if (value == null) {
64
+ return value;
65
+ }
66
+ return {
67
+ 'action': value['action'],
68
+ 'actor': (0, AuditLogActorV2_js_1.AuditLogActorV2ToJSON)(value['actor']),
69
+ 'context': (0, AuditLogEntryContextV2_js_1.AuditLogEntryContextV2ToJSON)(value['context']),
70
+ 'occurred_at': value['occurred_at'] == null ? value['occurred_at'] : (0, runtime_js_1.serializeDateTime)(value['occurred_at']),
71
+ 'targets': (value['targets'].map(AuditLogTargetV2_js_1.AuditLogTargetV2ToJSON)),
72
+ 'version': value['version'],
73
+ };
74
+ }