@incident-io/sdk 2.47.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 (33) 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 +1 -0
  6. package/dist/cjs/models/AuditLogTargetV2.js +1 -0
  7. package/dist/cjs/models/AuditLogsReliabilityReviewRuleCreatedV1.d.ts +58 -0
  8. package/dist/cjs/models/AuditLogsReliabilityReviewRuleCreatedV1.js +79 -0
  9. package/dist/cjs/models/AuditLogsReliabilityReviewRuleDeletedV1.d.ts +53 -0
  10. package/dist/cjs/models/AuditLogsReliabilityReviewRuleDeletedV1.js +74 -0
  11. package/dist/cjs/models/AuditLogsReliabilityReviewRuleUpdatedV1.d.ts +58 -0
  12. package/dist/cjs/models/AuditLogsReliabilityReviewRuleUpdatedV1.js +79 -0
  13. package/dist/cjs/models/index.d.ts +5 -0
  14. package/dist/cjs/models/index.js +5 -0
  15. package/dist/cjs/version.d.ts +1 -1
  16. package/dist/cjs/version.js +1 -1
  17. package/dist/esm/models/AuditLogReliabilityReviewRuleCreatedMetadataV2.d.ts +42 -0
  18. package/dist/esm/models/AuditLogReliabilityReviewRuleCreatedMetadataV2.js +53 -0
  19. package/dist/esm/models/AuditLogReliabilityReviewRuleUpdatedMetadataV2.d.ts +66 -0
  20. package/dist/esm/models/AuditLogReliabilityReviewRuleUpdatedMetadataV2.js +61 -0
  21. package/dist/esm/models/AuditLogTargetV2.d.ts +1 -0
  22. package/dist/esm/models/AuditLogTargetV2.js +1 -0
  23. package/dist/esm/models/AuditLogsReliabilityReviewRuleCreatedV1.d.ts +58 -0
  24. package/dist/esm/models/AuditLogsReliabilityReviewRuleCreatedV1.js +72 -0
  25. package/dist/esm/models/AuditLogsReliabilityReviewRuleDeletedV1.d.ts +53 -0
  26. package/dist/esm/models/AuditLogsReliabilityReviewRuleDeletedV1.js +67 -0
  27. package/dist/esm/models/AuditLogsReliabilityReviewRuleUpdatedV1.d.ts +58 -0
  28. package/dist/esm/models/AuditLogsReliabilityReviewRuleUpdatedV1.js +72 -0
  29. package/dist/esm/models/index.d.ts +5 -0
  30. package/dist/esm/models/index.js +5 -0
  31. package/dist/esm/version.d.ts +1 -1
  32. package/dist/esm/version.js +1 -1
  33. package/package.json +1 -1
@@ -238,6 +238,8 @@ export * from './AuditLogPrivateInsightsMeasureQueriedMetadataV2.js';
238
238
  export * from './AuditLogPrivateInsightsUnderlyingDataQueriedMetadataV2.js';
239
239
  export * from './AuditLogQrCodeMobileLoginSettingUpdatedMetadataV2.js';
240
240
  export * from './AuditLogReliabilityReviewRepositoryUpdatedMetadataV2.js';
241
+ export * from './AuditLogReliabilityReviewRuleCreatedMetadataV2.js';
242
+ export * from './AuditLogReliabilityReviewRuleUpdatedMetadataV2.js';
241
243
  export * from './AuditLogReliabilityReviewSettingsUpdatedMetadataV2.js';
242
244
  export * from './AuditLogReliabilityReviewSpendLimitUpdatedMetadataV2.js';
243
245
  export * from './AuditLogSCIMGroupSeatMappingChangedMetadataV2.js';
@@ -589,6 +591,9 @@ export * from './AuditLogsRbacRoleUpdatedV1.js';
589
591
  export * from './AuditLogsRbacRoleUpdatedV2.js';
590
592
  export * from './AuditLogsReliabilityReviewRepositoryUpdatedV1.js';
591
593
  export * from './AuditLogsReliabilityReviewRepositoryUpdatedV2.js';
594
+ export * from './AuditLogsReliabilityReviewRuleCreatedV1.js';
595
+ export * from './AuditLogsReliabilityReviewRuleDeletedV1.js';
596
+ export * from './AuditLogsReliabilityReviewRuleUpdatedV1.js';
592
597
  export * from './AuditLogsReliabilityReviewSettingsUpdatedV1.js';
593
598
  export * from './AuditLogsReliabilityReviewSettingsUpdatedV2.js';
594
599
  export * from './AuditLogsReliabilityReviewSpendLimitUpdatedV1.js';
@@ -256,6 +256,8 @@ __exportStar(require("./AuditLogPrivateInsightsMeasureQueriedMetadataV2.js"), ex
256
256
  __exportStar(require("./AuditLogPrivateInsightsUnderlyingDataQueriedMetadataV2.js"), exports);
257
257
  __exportStar(require("./AuditLogQrCodeMobileLoginSettingUpdatedMetadataV2.js"), exports);
258
258
  __exportStar(require("./AuditLogReliabilityReviewRepositoryUpdatedMetadataV2.js"), exports);
259
+ __exportStar(require("./AuditLogReliabilityReviewRuleCreatedMetadataV2.js"), exports);
260
+ __exportStar(require("./AuditLogReliabilityReviewRuleUpdatedMetadataV2.js"), exports);
259
261
  __exportStar(require("./AuditLogReliabilityReviewSettingsUpdatedMetadataV2.js"), exports);
260
262
  __exportStar(require("./AuditLogReliabilityReviewSpendLimitUpdatedMetadataV2.js"), exports);
261
263
  __exportStar(require("./AuditLogSCIMGroupSeatMappingChangedMetadataV2.js"), exports);
@@ -607,6 +609,9 @@ __exportStar(require("./AuditLogsRbacRoleUpdatedV1.js"), exports);
607
609
  __exportStar(require("./AuditLogsRbacRoleUpdatedV2.js"), exports);
608
610
  __exportStar(require("./AuditLogsReliabilityReviewRepositoryUpdatedV1.js"), exports);
609
611
  __exportStar(require("./AuditLogsReliabilityReviewRepositoryUpdatedV2.js"), exports);
612
+ __exportStar(require("./AuditLogsReliabilityReviewRuleCreatedV1.js"), exports);
613
+ __exportStar(require("./AuditLogsReliabilityReviewRuleDeletedV1.js"), exports);
614
+ __exportStar(require("./AuditLogsReliabilityReviewRuleUpdatedV1.js"), exports);
610
615
  __exportStar(require("./AuditLogsReliabilityReviewSettingsUpdatedV1.js"), exports);
611
616
  __exportStar(require("./AuditLogsReliabilityReviewSettingsUpdatedV2.js"), exports);
612
617
  __exportStar(require("./AuditLogsReliabilityReviewSpendLimitUpdatedV1.js"), exports);
@@ -1 +1 @@
1
- export declare const VERSION = "2.47.0";
1
+ export declare const VERSION = "2.48.0";
@@ -2,4 +2,4 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.VERSION = void 0;
4
4
  // Written by `make build` from package.json. Do not edit.
5
- exports.VERSION = "2.47.0";
5
+ exports.VERSION = "2.48.0";
@@ -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,53 @@
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 AuditLogReliabilityReviewRuleCreatedMetadataV2 interface.
16
+ */
17
+ export function instanceOfAuditLogReliabilityReviewRuleCreatedMetadataV2(value) {
18
+ if (!('kind' in value) || value['kind'] === undefined)
19
+ return false;
20
+ if (!('origin' in value) || value['origin'] === undefined)
21
+ return false;
22
+ if (!('repository_id' in value) || value['repository_id'] === undefined)
23
+ return false;
24
+ return true;
25
+ }
26
+ export function AuditLogReliabilityReviewRuleCreatedMetadataV2FromJSON(json) {
27
+ return AuditLogReliabilityReviewRuleCreatedMetadataV2FromJSONTyped(json, false);
28
+ }
29
+ export function AuditLogReliabilityReviewRuleCreatedMetadataV2FromJSONTyped(json, ignoreDiscriminator) {
30
+ if (json == null) {
31
+ return json;
32
+ }
33
+ return {
34
+ 'kind': json['kind'],
35
+ 'origin': json['origin'],
36
+ 'repository_id': json['repository_id'],
37
+ 'severity': json['severity'] == null ? undefined : json['severity'],
38
+ };
39
+ }
40
+ export function AuditLogReliabilityReviewRuleCreatedMetadataV2ToJSON(json) {
41
+ return AuditLogReliabilityReviewRuleCreatedMetadataV2ToJSONTyped(json, false);
42
+ }
43
+ export function AuditLogReliabilityReviewRuleCreatedMetadataV2ToJSONTyped(value, ignoreDiscriminator = false) {
44
+ if (value == null) {
45
+ return value;
46
+ }
47
+ return {
48
+ 'kind': value['kind'],
49
+ 'origin': value['origin'],
50
+ 'repository_id': value['repository_id'],
51
+ 'severity': value['severity'],
52
+ };
53
+ }
@@ -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,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
+ }
@@ -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";
@@ -41,6 +41,7 @@ export const AuditLogTargetV2TypeEnum = {
41
41
  InvestigationConfig: 'investigation_config',
42
42
  CodeRepository: 'code_repository',
43
43
  ReliabilityReviewSettings: 'reliability_review_settings',
44
+ ReliabilityReviewRule: 'reliability_review_rule',
44
45
  FollowUpCategory: 'follow_up_category',
45
46
  FollowUpPriority: 'follow_up_priority',
46
47
  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,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;
@@ -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 AuditLogsReliabilityReviewRuleDeletedV1 interface.
20
+ */
21
+ export function instanceOfAuditLogsReliabilityReviewRuleDeletedV1(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 AuditLogsReliabilityReviewRuleDeletedV1FromJSON(json) {
37
+ return AuditLogsReliabilityReviewRuleDeletedV1FromJSONTyped(json, false);
38
+ }
39
+ export function AuditLogsReliabilityReviewRuleDeletedV1FromJSONTyped(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 AuditLogsReliabilityReviewRuleDeletedV1ToJSON(json) {
53
+ return AuditLogsReliabilityReviewRuleDeletedV1ToJSONTyped(json, false);
54
+ }
55
+ export function AuditLogsReliabilityReviewRuleDeletedV1ToJSONTyped(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 { 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;