@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,61 @@
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 AuditLogReliabilityReviewRuleUpdatedMetadataV2 interface.
16
+ */
17
+ export function instanceOfAuditLogReliabilityReviewRuleUpdatedMetadataV2(value) {
18
+ if (!('changed' in value) || value['changed'] === undefined)
19
+ return false;
20
+ return true;
21
+ }
22
+ export function AuditLogReliabilityReviewRuleUpdatedMetadataV2FromJSON(json) {
23
+ return AuditLogReliabilityReviewRuleUpdatedMetadataV2FromJSONTyped(json, false);
24
+ }
25
+ export function AuditLogReliabilityReviewRuleUpdatedMetadataV2FromJSONTyped(json, ignoreDiscriminator) {
26
+ if (json == null) {
27
+ return json;
28
+ }
29
+ return {
30
+ 'after_kind': json['after_kind'] == null ? undefined : json['after_kind'],
31
+ 'after_repository_id': json['after_repository_id'] == null ? undefined : json['after_repository_id'],
32
+ 'after_severity': json['after_severity'] == null ? undefined : json['after_severity'],
33
+ 'before_kind': json['before_kind'] == null ? undefined : json['before_kind'],
34
+ 'before_repository_id': json['before_repository_id'] == null ? undefined : json['before_repository_id'],
35
+ 'before_severity': json['before_severity'] == null ? undefined : json['before_severity'],
36
+ 'changed': json['changed'],
37
+ 'disabled': json['disabled'] == null ? undefined : json['disabled'],
38
+ 'locked': json['locked'] == null ? undefined : json['locked'],
39
+ 'new_rule_id': json['new_rule_id'] == null ? undefined : json['new_rule_id'],
40
+ };
41
+ }
42
+ export function AuditLogReliabilityReviewRuleUpdatedMetadataV2ToJSON(json) {
43
+ return AuditLogReliabilityReviewRuleUpdatedMetadataV2ToJSONTyped(json, false);
44
+ }
45
+ export function AuditLogReliabilityReviewRuleUpdatedMetadataV2ToJSONTyped(value, ignoreDiscriminator = false) {
46
+ if (value == null) {
47
+ return value;
48
+ }
49
+ return {
50
+ 'after_kind': value['after_kind'],
51
+ 'after_repository_id': value['after_repository_id'],
52
+ 'after_severity': value['after_severity'],
53
+ 'before_kind': value['before_kind'],
54
+ 'before_repository_id': value['before_repository_id'],
55
+ 'before_severity': value['before_severity'],
56
+ 'changed': value['changed'],
57
+ 'disabled': value['disabled'],
58
+ 'locked': value['locked'],
59
+ 'new_rule_id': value['new_rule_id'],
60
+ };
61
+ }
@@ -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";
@@ -22,6 +22,7 @@ export const AuditLogTargetV2TypeEnum = {
22
22
  AlertSchema: 'alert_schema',
23
23
  AlertSource: 'alert_source',
24
24
  AlertPriority: 'alert_priority',
25
+ EscalationUrgency: 'escalation_urgency',
25
26
  AnnouncementRule: 'announcement_rule',
26
27
  AnnouncementPostTemplate: 'announcement_post_template',
27
28
  CatalogType: 'catalog_type',
@@ -41,6 +42,7 @@ export const AuditLogTargetV2TypeEnum = {
41
42
  InvestigationConfig: 'investigation_config',
42
43
  CodeRepository: 'code_repository',
43
44
  ReliabilityReviewSettings: 'reliability_review_settings',
45
+ ReliabilityReviewRule: 'reliability_review_rule',
44
46
  FollowUpCategory: 'follow_up_category',
45
47
  FollowUpPriority: 'follow_up_priority',
46
48
  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,67 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * incident.io
5
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ import { parseDateTime, serializeDateTime } from '../runtime.js';
15
+ import { AuditLogActorV2FromJSON, AuditLogActorV2ToJSON, } from './AuditLogActorV2.js';
16
+ import { AuditLogEntryContextV2FromJSON, AuditLogEntryContextV2ToJSON, } from './AuditLogEntryContextV2.js';
17
+ import { AuditLogTargetV2FromJSON, AuditLogTargetV2ToJSON, } from './AuditLogTargetV2.js';
18
+ /**
19
+ * Check if a given object implements the AuditLogsEscalationUrgencyCreatedV1 interface.
20
+ */
21
+ export function instanceOfAuditLogsEscalationUrgencyCreatedV1(value) {
22
+ if (!('action' in value) || value['action'] === undefined)
23
+ return false;
24
+ if (!('actor' in value) || value['actor'] === undefined)
25
+ return false;
26
+ if (!('context' in value) || value['context'] === undefined)
27
+ return false;
28
+ if (!('occurred_at' in value) || value['occurred_at'] === undefined)
29
+ return false;
30
+ if (!('targets' in value) || value['targets'] === undefined)
31
+ return false;
32
+ if (!('version' in value) || value['version'] === undefined)
33
+ return false;
34
+ return true;
35
+ }
36
+ export function AuditLogsEscalationUrgencyCreatedV1FromJSON(json) {
37
+ return AuditLogsEscalationUrgencyCreatedV1FromJSONTyped(json, false);
38
+ }
39
+ export function AuditLogsEscalationUrgencyCreatedV1FromJSONTyped(json, ignoreDiscriminator) {
40
+ if (json == null) {
41
+ return json;
42
+ }
43
+ return {
44
+ 'action': json['action'],
45
+ 'actor': AuditLogActorV2FromJSON(json['actor']),
46
+ 'context': AuditLogEntryContextV2FromJSON(json['context']),
47
+ 'occurred_at': (json['occurred_at'] == null ? json['occurred_at'] : parseDateTime(json['occurred_at'])),
48
+ 'targets': (json['targets'].map(AuditLogTargetV2FromJSON)),
49
+ 'version': json['version'],
50
+ };
51
+ }
52
+ export function AuditLogsEscalationUrgencyCreatedV1ToJSON(json) {
53
+ return AuditLogsEscalationUrgencyCreatedV1ToJSONTyped(json, false);
54
+ }
55
+ export function AuditLogsEscalationUrgencyCreatedV1ToJSONTyped(value, ignoreDiscriminator = false) {
56
+ if (value == null) {
57
+ return value;
58
+ }
59
+ return {
60
+ 'action': value['action'],
61
+ 'actor': AuditLogActorV2ToJSON(value['actor']),
62
+ 'context': AuditLogEntryContextV2ToJSON(value['context']),
63
+ 'occurred_at': value['occurred_at'] == null ? value['occurred_at'] : serializeDateTime(value['occurred_at']),
64
+ 'targets': (value['targets'].map(AuditLogTargetV2ToJSON)),
65
+ 'version': value['version'],
66
+ };
67
+ }
@@ -0,0 +1,53 @@
1
+ /**
2
+ * incident.io
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { AuditLogActorV2 } from './AuditLogActorV2.js';
13
+ import type { AuditLogEntryContextV2 } from './AuditLogEntryContextV2.js';
14
+ import type { AuditLogTargetV2 } from './AuditLogTargetV2.js';
15
+ /**
16
+ *
17
+ * @export
18
+ * @interface 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,67 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * incident.io
5
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ import { parseDateTime, serializeDateTime } from '../runtime.js';
15
+ import { AuditLogActorV2FromJSON, AuditLogActorV2ToJSON, } from './AuditLogActorV2.js';
16
+ import { AuditLogEntryContextV2FromJSON, AuditLogEntryContextV2ToJSON, } from './AuditLogEntryContextV2.js';
17
+ import { AuditLogTargetV2FromJSON, AuditLogTargetV2ToJSON, } from './AuditLogTargetV2.js';
18
+ /**
19
+ * Check if a given object implements the AuditLogsEscalationUrgencyDeletedV1 interface.
20
+ */
21
+ export function instanceOfAuditLogsEscalationUrgencyDeletedV1(value) {
22
+ if (!('action' in value) || value['action'] === undefined)
23
+ return false;
24
+ if (!('actor' in value) || value['actor'] === undefined)
25
+ return false;
26
+ if (!('context' in value) || value['context'] === undefined)
27
+ return false;
28
+ if (!('occurred_at' in value) || value['occurred_at'] === undefined)
29
+ return false;
30
+ if (!('targets' in value) || value['targets'] === undefined)
31
+ return false;
32
+ if (!('version' in value) || value['version'] === undefined)
33
+ return false;
34
+ return true;
35
+ }
36
+ export function AuditLogsEscalationUrgencyDeletedV1FromJSON(json) {
37
+ return AuditLogsEscalationUrgencyDeletedV1FromJSONTyped(json, false);
38
+ }
39
+ export function AuditLogsEscalationUrgencyDeletedV1FromJSONTyped(json, ignoreDiscriminator) {
40
+ if (json == null) {
41
+ return json;
42
+ }
43
+ return {
44
+ 'action': json['action'],
45
+ 'actor': AuditLogActorV2FromJSON(json['actor']),
46
+ 'context': AuditLogEntryContextV2FromJSON(json['context']),
47
+ 'occurred_at': (json['occurred_at'] == null ? json['occurred_at'] : parseDateTime(json['occurred_at'])),
48
+ 'targets': (json['targets'].map(AuditLogTargetV2FromJSON)),
49
+ 'version': json['version'],
50
+ };
51
+ }
52
+ export function AuditLogsEscalationUrgencyDeletedV1ToJSON(json) {
53
+ return AuditLogsEscalationUrgencyDeletedV1ToJSONTyped(json, false);
54
+ }
55
+ export function AuditLogsEscalationUrgencyDeletedV1ToJSONTyped(value, ignoreDiscriminator = false) {
56
+ if (value == null) {
57
+ return value;
58
+ }
59
+ return {
60
+ 'action': value['action'],
61
+ 'actor': AuditLogActorV2ToJSON(value['actor']),
62
+ 'context': AuditLogEntryContextV2ToJSON(value['context']),
63
+ 'occurred_at': value['occurred_at'] == null ? value['occurred_at'] : serializeDateTime(value['occurred_at']),
64
+ 'targets': (value['targets'].map(AuditLogTargetV2ToJSON)),
65
+ 'version': value['version'],
66
+ };
67
+ }
@@ -0,0 +1,53 @@
1
+ /**
2
+ * incident.io
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { AuditLogActorV2 } from './AuditLogActorV2.js';
13
+ import type { AuditLogEntryContextV2 } from './AuditLogEntryContextV2.js';
14
+ import type { AuditLogTargetV2 } from './AuditLogTargetV2.js';
15
+ /**
16
+ *
17
+ * @export
18
+ * @interface 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,67 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * incident.io
5
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ import { parseDateTime, serializeDateTime } from '../runtime.js';
15
+ import { AuditLogActorV2FromJSON, AuditLogActorV2ToJSON, } from './AuditLogActorV2.js';
16
+ import { AuditLogEntryContextV2FromJSON, AuditLogEntryContextV2ToJSON, } from './AuditLogEntryContextV2.js';
17
+ import { AuditLogTargetV2FromJSON, AuditLogTargetV2ToJSON, } from './AuditLogTargetV2.js';
18
+ /**
19
+ * Check if a given object implements the AuditLogsEscalationUrgencyUpdatedV1 interface.
20
+ */
21
+ export function instanceOfAuditLogsEscalationUrgencyUpdatedV1(value) {
22
+ if (!('action' in value) || value['action'] === undefined)
23
+ return false;
24
+ if (!('actor' in value) || value['actor'] === undefined)
25
+ return false;
26
+ if (!('context' in value) || value['context'] === undefined)
27
+ return false;
28
+ if (!('occurred_at' in value) || value['occurred_at'] === undefined)
29
+ return false;
30
+ if (!('targets' in value) || value['targets'] === undefined)
31
+ return false;
32
+ if (!('version' in value) || value['version'] === undefined)
33
+ return false;
34
+ return true;
35
+ }
36
+ export function AuditLogsEscalationUrgencyUpdatedV1FromJSON(json) {
37
+ return AuditLogsEscalationUrgencyUpdatedV1FromJSONTyped(json, false);
38
+ }
39
+ export function AuditLogsEscalationUrgencyUpdatedV1FromJSONTyped(json, ignoreDiscriminator) {
40
+ if (json == null) {
41
+ return json;
42
+ }
43
+ return {
44
+ 'action': json['action'],
45
+ 'actor': AuditLogActorV2FromJSON(json['actor']),
46
+ 'context': AuditLogEntryContextV2FromJSON(json['context']),
47
+ 'occurred_at': (json['occurred_at'] == null ? json['occurred_at'] : parseDateTime(json['occurred_at'])),
48
+ 'targets': (json['targets'].map(AuditLogTargetV2FromJSON)),
49
+ 'version': json['version'],
50
+ };
51
+ }
52
+ export function AuditLogsEscalationUrgencyUpdatedV1ToJSON(json) {
53
+ return AuditLogsEscalationUrgencyUpdatedV1ToJSONTyped(json, false);
54
+ }
55
+ export function AuditLogsEscalationUrgencyUpdatedV1ToJSONTyped(value, ignoreDiscriminator = false) {
56
+ if (value == null) {
57
+ return value;
58
+ }
59
+ return {
60
+ 'action': value['action'],
61
+ 'actor': AuditLogActorV2ToJSON(value['actor']),
62
+ 'context': AuditLogEntryContextV2ToJSON(value['context']),
63
+ 'occurred_at': value['occurred_at'] == null ? value['occurred_at'] : serializeDateTime(value['occurred_at']),
64
+ 'targets': (value['targets'].map(AuditLogTargetV2ToJSON)),
65
+ 'version': value['version'],
66
+ };
67
+ }
@@ -0,0 +1,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 { AuditLogReliabilityReviewRuleCreatedMetadataV2 } from './AuditLogReliabilityReviewRuleCreatedMetadataV2.js';
15
+ import type { AuditLogTargetV2 } from './AuditLogTargetV2.js';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface AuditLogsReliabilityReviewRuleCreatedV1
20
+ */
21
+ export interface AuditLogsReliabilityReviewRuleCreatedV1 {
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: AuditLogReliabilityReviewRuleCreatedMetadataV2;
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 AuditLogsReliabilityReviewRuleCreatedV1 interface.
53
+ */
54
+ export declare function instanceOfAuditLogsReliabilityReviewRuleCreatedV1(value: object): value is AuditLogsReliabilityReviewRuleCreatedV1;
55
+ export declare function AuditLogsReliabilityReviewRuleCreatedV1FromJSON(json: any): AuditLogsReliabilityReviewRuleCreatedV1;
56
+ export declare function AuditLogsReliabilityReviewRuleCreatedV1FromJSONTyped(json: any, ignoreDiscriminator: boolean): AuditLogsReliabilityReviewRuleCreatedV1;
57
+ export declare function AuditLogsReliabilityReviewRuleCreatedV1ToJSON(json: any): AuditLogsReliabilityReviewRuleCreatedV1;
58
+ export declare function AuditLogsReliabilityReviewRuleCreatedV1ToJSONTyped(value?: AuditLogsReliabilityReviewRuleCreatedV1 | 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 { AuditLogReliabilityReviewRuleCreatedMetadataV2FromJSON, AuditLogReliabilityReviewRuleCreatedMetadataV2ToJSON, } from './AuditLogReliabilityReviewRuleCreatedMetadataV2.js';
18
+ import { AuditLogTargetV2FromJSON, AuditLogTargetV2ToJSON, } from './AuditLogTargetV2.js';
19
+ /**
20
+ * Check if a given object implements the AuditLogsReliabilityReviewRuleCreatedV1 interface.
21
+ */
22
+ export function instanceOfAuditLogsReliabilityReviewRuleCreatedV1(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 AuditLogsReliabilityReviewRuleCreatedV1FromJSON(json) {
40
+ return AuditLogsReliabilityReviewRuleCreatedV1FromJSONTyped(json, false);
41
+ }
42
+ export function AuditLogsReliabilityReviewRuleCreatedV1FromJSONTyped(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': AuditLogReliabilityReviewRuleCreatedMetadataV2FromJSON(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 AuditLogsReliabilityReviewRuleCreatedV1ToJSON(json) {
57
+ return AuditLogsReliabilityReviewRuleCreatedV1ToJSONTyped(json, false);
58
+ }
59
+ export function AuditLogsReliabilityReviewRuleCreatedV1ToJSONTyped(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': AuditLogReliabilityReviewRuleCreatedMetadataV2ToJSON(value['metadata']),
68
+ 'occurred_at': value['occurred_at'] == null ? value['occurred_at'] : serializeDateTime(value['occurred_at']),
69
+ 'targets': (value['targets'].map(AuditLogTargetV2ToJSON)),
70
+ 'version': value['version'],
71
+ };
72
+ }
@@ -0,0 +1,53 @@
1
+ /**
2
+ * incident.io
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { AuditLogActorV2 } from './AuditLogActorV2.js';
13
+ import type { AuditLogEntryContextV2 } from './AuditLogEntryContextV2.js';
14
+ import type { AuditLogTargetV2 } from './AuditLogTargetV2.js';
15
+ /**
16
+ *
17
+ * @export
18
+ * @interface AuditLogsReliabilityReviewRuleDeletedV1
19
+ */
20
+ export interface AuditLogsReliabilityReviewRuleDeletedV1 {
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 AuditLogsReliabilityReviewRuleDeletedV1 interface.
48
+ */
49
+ export declare function instanceOfAuditLogsReliabilityReviewRuleDeletedV1(value: object): value is AuditLogsReliabilityReviewRuleDeletedV1;
50
+ export declare function AuditLogsReliabilityReviewRuleDeletedV1FromJSON(json: any): AuditLogsReliabilityReviewRuleDeletedV1;
51
+ export declare function AuditLogsReliabilityReviewRuleDeletedV1FromJSONTyped(json: any, ignoreDiscriminator: boolean): AuditLogsReliabilityReviewRuleDeletedV1;
52
+ export declare function AuditLogsReliabilityReviewRuleDeletedV1ToJSON(json: any): AuditLogsReliabilityReviewRuleDeletedV1;
53
+ export declare function AuditLogsReliabilityReviewRuleDeletedV1ToJSONTyped(value?: AuditLogsReliabilityReviewRuleDeletedV1 | null, ignoreDiscriminator?: boolean): any;