@incident-io/sdk 2.46.0 → 2.48.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 (39) 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/AuditLogReliabilityReviewSettingsUpdatedMetadataV2.d.ts +9 -1
  6. package/dist/cjs/models/AuditLogReliabilityReviewSettingsUpdatedMetadataV2.js +4 -0
  7. package/dist/cjs/models/AuditLogTargetV2.d.ts +1 -0
  8. package/dist/cjs/models/AuditLogTargetV2.js +1 -0
  9. package/dist/cjs/models/AuditLogsReliabilityReviewRuleCreatedV1.d.ts +58 -0
  10. package/dist/cjs/models/AuditLogsReliabilityReviewRuleCreatedV1.js +79 -0
  11. package/dist/cjs/models/AuditLogsReliabilityReviewRuleDeletedV1.d.ts +53 -0
  12. package/dist/cjs/models/AuditLogsReliabilityReviewRuleDeletedV1.js +74 -0
  13. package/dist/cjs/models/AuditLogsReliabilityReviewRuleUpdatedV1.d.ts +58 -0
  14. package/dist/cjs/models/AuditLogsReliabilityReviewRuleUpdatedV1.js +79 -0
  15. package/dist/cjs/models/StatusPageComponentAvailabilityV2.d.ts +1 -1
  16. package/dist/cjs/models/index.d.ts +5 -0
  17. package/dist/cjs/models/index.js +5 -0
  18. package/dist/cjs/version.d.ts +1 -1
  19. package/dist/cjs/version.js +1 -1
  20. package/dist/esm/models/AuditLogReliabilityReviewRuleCreatedMetadataV2.d.ts +42 -0
  21. package/dist/esm/models/AuditLogReliabilityReviewRuleCreatedMetadataV2.js +53 -0
  22. package/dist/esm/models/AuditLogReliabilityReviewRuleUpdatedMetadataV2.d.ts +66 -0
  23. package/dist/esm/models/AuditLogReliabilityReviewRuleUpdatedMetadataV2.js +61 -0
  24. package/dist/esm/models/AuditLogReliabilityReviewSettingsUpdatedMetadataV2.d.ts +9 -1
  25. package/dist/esm/models/AuditLogReliabilityReviewSettingsUpdatedMetadataV2.js +4 -0
  26. package/dist/esm/models/AuditLogTargetV2.d.ts +1 -0
  27. package/dist/esm/models/AuditLogTargetV2.js +1 -0
  28. package/dist/esm/models/AuditLogsReliabilityReviewRuleCreatedV1.d.ts +58 -0
  29. package/dist/esm/models/AuditLogsReliabilityReviewRuleCreatedV1.js +72 -0
  30. package/dist/esm/models/AuditLogsReliabilityReviewRuleDeletedV1.d.ts +53 -0
  31. package/dist/esm/models/AuditLogsReliabilityReviewRuleDeletedV1.js +67 -0
  32. package/dist/esm/models/AuditLogsReliabilityReviewRuleUpdatedV1.d.ts +58 -0
  33. package/dist/esm/models/AuditLogsReliabilityReviewRuleUpdatedV1.js +72 -0
  34. package/dist/esm/models/StatusPageComponentAvailabilityV2.d.ts +1 -1
  35. package/dist/esm/models/index.d.ts +5 -0
  36. package/dist/esm/models/index.js +5 -0
  37. package/dist/esm/version.d.ts +1 -1
  38. package/dist/esm/version.js +1 -1
  39. 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
+ }
@@ -27,6 +27,10 @@ export interface AuditLogReliabilityReviewSettingsUpdatedMetadataV2 {
27
27
  * Whether draft pull requests are reviewed after the change (review, skip)
28
28
  */
29
29
  after_draft_reviews?: string;
30
+ /**
31
+ * Whether a review that finds no issues posts a comment after the change (post, skip)
32
+ */
33
+ after_no_issue_reviews?: string;
30
34
  /**
31
35
  * Whose pull requests are reviewed after the change (everyone, selected_users)
32
36
  */
@@ -39,12 +43,16 @@ export interface AuditLogReliabilityReviewSettingsUpdatedMetadataV2 {
39
43
  * Whether draft pull requests were reviewed before the change (review, skip)
40
44
  */
41
45
  before_draft_reviews?: string;
46
+ /**
47
+ * Whether a review that found no issues posted a comment before the change (post, skip)
48
+ */
49
+ before_no_issue_reviews?: string;
42
50
  /**
43
51
  * Whose pull requests were reviewed before the change (everyone, selected_users)
44
52
  */
45
53
  before_reviewed_authors?: string;
46
54
  /**
47
- * What the update changed, comma separated (automatic_reviews, draft_reviews, reviewed_authors, reviewed_users)
55
+ * What the update changed, comma separated (automatic_reviews, draft_reviews, no_issue_reviews, reviewed_authors, reviewed_users)
48
56
  */
49
57
  changed: string;
50
58
  /**
@@ -37,9 +37,11 @@ function AuditLogReliabilityReviewSettingsUpdatedMetadataV2FromJSONTyped(json, i
37
37
  'added_user_ids': json['added_user_ids'] == null ? undefined : json['added_user_ids'],
38
38
  'after_automatic_reviews': json['after_automatic_reviews'] == null ? undefined : json['after_automatic_reviews'],
39
39
  'after_draft_reviews': json['after_draft_reviews'] == null ? undefined : json['after_draft_reviews'],
40
+ 'after_no_issue_reviews': json['after_no_issue_reviews'] == null ? undefined : json['after_no_issue_reviews'],
40
41
  'after_reviewed_authors': json['after_reviewed_authors'] == null ? undefined : json['after_reviewed_authors'],
41
42
  'before_automatic_reviews': json['before_automatic_reviews'] == null ? undefined : json['before_automatic_reviews'],
42
43
  'before_draft_reviews': json['before_draft_reviews'] == null ? undefined : json['before_draft_reviews'],
44
+ 'before_no_issue_reviews': json['before_no_issue_reviews'] == null ? undefined : json['before_no_issue_reviews'],
43
45
  'before_reviewed_authors': json['before_reviewed_authors'] == null ? undefined : json['before_reviewed_authors'],
44
46
  'changed': json['changed'],
45
47
  'removed_user_ids': json['removed_user_ids'] == null ? undefined : json['removed_user_ids'],
@@ -56,9 +58,11 @@ function AuditLogReliabilityReviewSettingsUpdatedMetadataV2ToJSONTyped(value, ig
56
58
  'added_user_ids': value['added_user_ids'],
57
59
  'after_automatic_reviews': value['after_automatic_reviews'],
58
60
  'after_draft_reviews': value['after_draft_reviews'],
61
+ 'after_no_issue_reviews': value['after_no_issue_reviews'],
59
62
  'after_reviewed_authors': value['after_reviewed_authors'],
60
63
  'before_automatic_reviews': value['before_automatic_reviews'],
61
64
  'before_draft_reviews': value['before_draft_reviews'],
65
+ 'before_no_issue_reviews': value['before_no_issue_reviews'],
62
66
  'before_reviewed_authors': value['before_reviewed_authors'],
63
67
  'changed': value['changed'],
64
68
  'removed_user_ids': value['removed_user_ids'],
@@ -58,6 +58,7 @@ export declare const AuditLogTargetV2TypeEnum: {
58
58
  readonly InvestigationConfig: "investigation_config";
59
59
  readonly CodeRepository: "code_repository";
60
60
  readonly ReliabilityReviewSettings: "reliability_review_settings";
61
+ readonly ReliabilityReviewRule: "reliability_review_rule";
61
62
  readonly FollowUpCategory: "follow_up_category";
62
63
  readonly FollowUpPriority: "follow_up_priority";
63
64
  readonly HolidayUserFeed: "holiday_user_feed";
@@ -49,6 +49,7 @@ exports.AuditLogTargetV2TypeEnum = {
49
49
  InvestigationConfig: 'investigation_config',
50
50
  CodeRepository: 'code_repository',
51
51
  ReliabilityReviewSettings: 'reliability_review_settings',
52
+ ReliabilityReviewRule: 'reliability_review_rule',
52
53
  FollowUpCategory: 'follow_up_category',
53
54
  FollowUpPriority: 'follow_up_priority',
54
55
  HolidayUserFeed: 'holiday_user_feed',
@@ -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,79 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * incident.io
6
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfAuditLogsReliabilityReviewRuleCreatedV1 = instanceOfAuditLogsReliabilityReviewRuleCreatedV1;
17
+ exports.AuditLogsReliabilityReviewRuleCreatedV1FromJSON = AuditLogsReliabilityReviewRuleCreatedV1FromJSON;
18
+ exports.AuditLogsReliabilityReviewRuleCreatedV1FromJSONTyped = AuditLogsReliabilityReviewRuleCreatedV1FromJSONTyped;
19
+ exports.AuditLogsReliabilityReviewRuleCreatedV1ToJSON = AuditLogsReliabilityReviewRuleCreatedV1ToJSON;
20
+ exports.AuditLogsReliabilityReviewRuleCreatedV1ToJSONTyped = AuditLogsReliabilityReviewRuleCreatedV1ToJSONTyped;
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 AuditLogReliabilityReviewRuleCreatedMetadataV2_js_1 = require("./AuditLogReliabilityReviewRuleCreatedMetadataV2.js");
25
+ const AuditLogTargetV2_js_1 = require("./AuditLogTargetV2.js");
26
+ /**
27
+ * Check if a given object implements the AuditLogsReliabilityReviewRuleCreatedV1 interface.
28
+ */
29
+ function instanceOfAuditLogsReliabilityReviewRuleCreatedV1(value) {
30
+ if (!('action' in value) || value['action'] === undefined)
31
+ return false;
32
+ if (!('actor' in value) || value['actor'] === undefined)
33
+ return false;
34
+ if (!('context' in value) || value['context'] === undefined)
35
+ return false;
36
+ if (!('metadata' in value) || value['metadata'] === undefined)
37
+ return false;
38
+ if (!('occurred_at' in value) || value['occurred_at'] === undefined)
39
+ return false;
40
+ if (!('targets' in value) || value['targets'] === undefined)
41
+ return false;
42
+ if (!('version' in value) || value['version'] === undefined)
43
+ return false;
44
+ return true;
45
+ }
46
+ function AuditLogsReliabilityReviewRuleCreatedV1FromJSON(json) {
47
+ return AuditLogsReliabilityReviewRuleCreatedV1FromJSONTyped(json, false);
48
+ }
49
+ function AuditLogsReliabilityReviewRuleCreatedV1FromJSONTyped(json, ignoreDiscriminator) {
50
+ if (json == null) {
51
+ return json;
52
+ }
53
+ return {
54
+ 'action': json['action'],
55
+ 'actor': (0, AuditLogActorV2_js_1.AuditLogActorV2FromJSON)(json['actor']),
56
+ 'context': (0, AuditLogEntryContextV2_js_1.AuditLogEntryContextV2FromJSON)(json['context']),
57
+ 'metadata': (0, AuditLogReliabilityReviewRuleCreatedMetadataV2_js_1.AuditLogReliabilityReviewRuleCreatedMetadataV2FromJSON)(json['metadata']),
58
+ 'occurred_at': (json['occurred_at'] == null ? json['occurred_at'] : (0, runtime_js_1.parseDateTime)(json['occurred_at'])),
59
+ 'targets': (json['targets'].map(AuditLogTargetV2_js_1.AuditLogTargetV2FromJSON)),
60
+ 'version': json['version'],
61
+ };
62
+ }
63
+ function AuditLogsReliabilityReviewRuleCreatedV1ToJSON(json) {
64
+ return AuditLogsReliabilityReviewRuleCreatedV1ToJSONTyped(json, false);
65
+ }
66
+ function AuditLogsReliabilityReviewRuleCreatedV1ToJSONTyped(value, ignoreDiscriminator = false) {
67
+ if (value == null) {
68
+ return value;
69
+ }
70
+ return {
71
+ 'action': value['action'],
72
+ 'actor': (0, AuditLogActorV2_js_1.AuditLogActorV2ToJSON)(value['actor']),
73
+ 'context': (0, AuditLogEntryContextV2_js_1.AuditLogEntryContextV2ToJSON)(value['context']),
74
+ 'metadata': (0, AuditLogReliabilityReviewRuleCreatedMetadataV2_js_1.AuditLogReliabilityReviewRuleCreatedMetadataV2ToJSON)(value['metadata']),
75
+ 'occurred_at': value['occurred_at'] == null ? value['occurred_at'] : (0, runtime_js_1.serializeDateTime)(value['occurred_at']),
76
+ 'targets': (value['targets'].map(AuditLogTargetV2_js_1.AuditLogTargetV2ToJSON)),
77
+ 'version': value['version'],
78
+ };
79
+ }
@@ -0,0 +1,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;
@@ -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.instanceOfAuditLogsReliabilityReviewRuleDeletedV1 = instanceOfAuditLogsReliabilityReviewRuleDeletedV1;
17
+ exports.AuditLogsReliabilityReviewRuleDeletedV1FromJSON = AuditLogsReliabilityReviewRuleDeletedV1FromJSON;
18
+ exports.AuditLogsReliabilityReviewRuleDeletedV1FromJSONTyped = AuditLogsReliabilityReviewRuleDeletedV1FromJSONTyped;
19
+ exports.AuditLogsReliabilityReviewRuleDeletedV1ToJSON = AuditLogsReliabilityReviewRuleDeletedV1ToJSON;
20
+ exports.AuditLogsReliabilityReviewRuleDeletedV1ToJSONTyped = AuditLogsReliabilityReviewRuleDeletedV1ToJSONTyped;
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 AuditLogsReliabilityReviewRuleDeletedV1 interface.
27
+ */
28
+ function instanceOfAuditLogsReliabilityReviewRuleDeletedV1(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 AuditLogsReliabilityReviewRuleDeletedV1FromJSON(json) {
44
+ return AuditLogsReliabilityReviewRuleDeletedV1FromJSONTyped(json, false);
45
+ }
46
+ function AuditLogsReliabilityReviewRuleDeletedV1FromJSONTyped(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 AuditLogsReliabilityReviewRuleDeletedV1ToJSON(json) {
60
+ return AuditLogsReliabilityReviewRuleDeletedV1ToJSONTyped(json, false);
61
+ }
62
+ function AuditLogsReliabilityReviewRuleDeletedV1ToJSONTyped(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,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 { AuditLogReliabilityReviewRuleUpdatedMetadataV2 } from './AuditLogReliabilityReviewRuleUpdatedMetadataV2.js';
14
+ import type { AuditLogEntryContextV2 } from './AuditLogEntryContextV2.js';
15
+ import type { AuditLogTargetV2 } from './AuditLogTargetV2.js';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface AuditLogsReliabilityReviewRuleUpdatedV1
20
+ */
21
+ export interface AuditLogsReliabilityReviewRuleUpdatedV1 {
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: AuditLogReliabilityReviewRuleUpdatedMetadataV2;
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 AuditLogsReliabilityReviewRuleUpdatedV1 interface.
53
+ */
54
+ export declare function instanceOfAuditLogsReliabilityReviewRuleUpdatedV1(value: object): value is AuditLogsReliabilityReviewRuleUpdatedV1;
55
+ export declare function AuditLogsReliabilityReviewRuleUpdatedV1FromJSON(json: any): AuditLogsReliabilityReviewRuleUpdatedV1;
56
+ export declare function AuditLogsReliabilityReviewRuleUpdatedV1FromJSONTyped(json: any, ignoreDiscriminator: boolean): AuditLogsReliabilityReviewRuleUpdatedV1;
57
+ export declare function AuditLogsReliabilityReviewRuleUpdatedV1ToJSON(json: any): AuditLogsReliabilityReviewRuleUpdatedV1;
58
+ export declare function AuditLogsReliabilityReviewRuleUpdatedV1ToJSONTyped(value?: AuditLogsReliabilityReviewRuleUpdatedV1 | null, ignoreDiscriminator?: boolean): any;