@incident-io/sdk 1.0.0 → 1.2.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 (153) hide show
  1. package/dist/cjs/apis/AnnouncementRulesV2Api.d.ts +131 -0
  2. package/dist/cjs/apis/AnnouncementRulesV2Api.js +279 -0
  3. package/dist/cjs/apis/AnnouncementTemplatesV2Api.d.ts +129 -0
  4. package/dist/cjs/apis/AnnouncementTemplatesV2Api.js +273 -0
  5. package/dist/cjs/apis/StatusPagesV2Api.d.ts +21 -0
  6. package/dist/cjs/apis/StatusPagesV2Api.js +43 -0
  7. package/dist/cjs/apis/index.d.ts +2 -0
  8. package/dist/cjs/apis/index.js +2 -0
  9. package/dist/cjs/models/AnnouncementRuleV2.d.ts +116 -0
  10. package/dist/cjs/models/AnnouncementRuleV2.js +130 -0
  11. package/dist/cjs/models/AnnouncementRulesCreatePayloadV2.d.ts +104 -0
  12. package/dist/cjs/models/AnnouncementRulesCreatePayloadV2.js +109 -0
  13. package/dist/cjs/models/AnnouncementRulesCreateResultV2.d.ts +31 -0
  14. package/dist/cjs/models/AnnouncementRulesCreateResultV2.js +51 -0
  15. package/dist/cjs/models/AnnouncementRulesListResultV2.d.ts +36 -0
  16. package/dist/cjs/models/AnnouncementRulesListResultV2.js +56 -0
  17. package/dist/cjs/models/AnnouncementRulesShowResultV2.d.ts +31 -0
  18. package/dist/cjs/models/AnnouncementRulesShowResultV2.js +51 -0
  19. package/dist/cjs/models/AnnouncementRulesUpdatePayloadV2.d.ts +104 -0
  20. package/dist/cjs/models/AnnouncementRulesUpdatePayloadV2.js +109 -0
  21. package/dist/cjs/models/AnnouncementRulesUpdateResultV2.d.ts +31 -0
  22. package/dist/cjs/models/AnnouncementRulesUpdateResultV2.js +51 -0
  23. package/dist/cjs/models/AnnouncementTemplateActionPayloadV2.d.ts +58 -0
  24. package/dist/cjs/models/AnnouncementTemplateActionPayloadV2.js +76 -0
  25. package/dist/cjs/models/AnnouncementTemplateActionV2.d.ts +62 -0
  26. package/dist/cjs/models/AnnouncementTemplateActionV2.js +80 -0
  27. package/dist/cjs/models/AnnouncementTemplateFieldPayloadV2.d.ts +71 -0
  28. package/dist/cjs/models/AnnouncementTemplateFieldPayloadV2.js +81 -0
  29. package/dist/cjs/models/AnnouncementTemplateFieldV2.d.ts +75 -0
  30. package/dist/cjs/models/AnnouncementTemplateFieldV2.js +85 -0
  31. package/dist/cjs/models/AnnouncementTemplateRichTextV2.d.ts +41 -0
  32. package/dist/cjs/models/AnnouncementTemplateRichTextV2.js +63 -0
  33. package/dist/cjs/models/AnnouncementTemplateV2.d.ts +52 -0
  34. package/dist/cjs/models/AnnouncementTemplateV2.js +72 -0
  35. package/dist/cjs/models/AnnouncementTemplatesCreatePayloadV2.d.ts +44 -0
  36. package/dist/cjs/models/AnnouncementTemplatesCreatePayloadV2.js +58 -0
  37. package/dist/cjs/models/AnnouncementTemplatesCreateResultV2.d.ts +31 -0
  38. package/dist/cjs/models/AnnouncementTemplatesCreateResultV2.js +51 -0
  39. package/dist/cjs/models/AnnouncementTemplatesListResultV2.d.ts +31 -0
  40. package/dist/cjs/models/AnnouncementTemplatesListResultV2.js +51 -0
  41. package/dist/cjs/models/AnnouncementTemplatesShowResultV2.d.ts +31 -0
  42. package/dist/cjs/models/AnnouncementTemplatesShowResultV2.js +51 -0
  43. package/dist/cjs/models/AnnouncementTemplatesUpdatePayloadV2.d.ts +44 -0
  44. package/dist/cjs/models/AnnouncementTemplatesUpdatePayloadV2.js +62 -0
  45. package/dist/cjs/models/AnnouncementTemplatesUpdateResultV2.d.ts +31 -0
  46. package/dist/cjs/models/AnnouncementTemplatesUpdateResultV2.js +51 -0
  47. package/dist/cjs/models/AuditLogOnCallNotificationPauseMetadataV2.d.ts +50 -0
  48. package/dist/cjs/models/AuditLogOnCallNotificationPauseMetadataV2.js +64 -0
  49. package/dist/cjs/models/AuditLogTargetV2.d.ts +2 -0
  50. package/dist/cjs/models/AuditLogTargetV2.js +2 -0
  51. package/dist/cjs/models/AuditLogsOnCallNotificationPauseCreatedV1.d.ts +53 -0
  52. package/dist/cjs/models/AuditLogsOnCallNotificationPauseCreatedV1.js +74 -0
  53. package/dist/cjs/models/AuditLogsOnCallNotificationPauseCreatedV2.d.ts +58 -0
  54. package/dist/cjs/models/AuditLogsOnCallNotificationPauseCreatedV2.js +79 -0
  55. package/dist/cjs/models/AuditLogsOnCallNotificationPauseDeletedV1.d.ts +53 -0
  56. package/dist/cjs/models/AuditLogsOnCallNotificationPauseDeletedV1.js +74 -0
  57. package/dist/cjs/models/AuditLogsOnCallNotificationPauseDeletedV2.d.ts +58 -0
  58. package/dist/cjs/models/AuditLogsOnCallNotificationPauseDeletedV2.js +79 -0
  59. package/dist/cjs/models/AuditLogsOnCallNotificationPauseUpdatedV1.d.ts +53 -0
  60. package/dist/cjs/models/AuditLogsOnCallNotificationPauseUpdatedV1.js +74 -0
  61. package/dist/cjs/models/AuditLogsOnCallNotificationPauseUpdatedV2.d.ts +58 -0
  62. package/dist/cjs/models/AuditLogsOnCallNotificationPauseUpdatedV2.js +79 -0
  63. package/dist/cjs/models/AuditLogsUserAPIKeyCreatedV1.d.ts +53 -0
  64. package/dist/cjs/models/AuditLogsUserAPIKeyCreatedV1.js +74 -0
  65. package/dist/cjs/models/AuditLogsUserAPIKeyDeletedV1.d.ts +53 -0
  66. package/dist/cjs/models/AuditLogsUserAPIKeyDeletedV1.js +74 -0
  67. package/dist/cjs/models/PolicyFindingScheduleImpactedUserV2.d.ts +1 -0
  68. package/dist/cjs/models/PolicyFindingScheduleImpactedUserV2.js +1 -0
  69. package/dist/cjs/models/PolicyFindingScheduleV2.d.ts +1 -0
  70. package/dist/cjs/models/PolicyFindingScheduleV2.js +1 -0
  71. package/dist/cjs/models/StatusPagesShowStatusPageResultV2.d.ts +31 -0
  72. package/dist/cjs/models/StatusPagesShowStatusPageResultV2.js +51 -0
  73. package/dist/cjs/models/index.d.ts +29 -0
  74. package/dist/cjs/models/index.js +29 -0
  75. package/dist/cjs/version.d.ts +1 -1
  76. package/dist/cjs/version.js +1 -1
  77. package/dist/esm/apis/AnnouncementRulesV2Api.d.ts +131 -0
  78. package/dist/esm/apis/AnnouncementRulesV2Api.js +242 -0
  79. package/dist/esm/apis/AnnouncementTemplatesV2Api.d.ts +129 -0
  80. package/dist/esm/apis/AnnouncementTemplatesV2Api.js +236 -0
  81. package/dist/esm/apis/StatusPagesV2Api.d.ts +21 -0
  82. package/dist/esm/apis/StatusPagesV2Api.js +43 -0
  83. package/dist/esm/apis/index.d.ts +2 -0
  84. package/dist/esm/apis/index.js +2 -0
  85. package/dist/esm/models/AnnouncementRuleV2.d.ts +116 -0
  86. package/dist/esm/models/AnnouncementRuleV2.js +122 -0
  87. package/dist/esm/models/AnnouncementRulesCreatePayloadV2.d.ts +104 -0
  88. package/dist/esm/models/AnnouncementRulesCreatePayloadV2.js +101 -0
  89. package/dist/esm/models/AnnouncementRulesCreateResultV2.d.ts +31 -0
  90. package/dist/esm/models/AnnouncementRulesCreateResultV2.js +44 -0
  91. package/dist/esm/models/AnnouncementRulesListResultV2.d.ts +36 -0
  92. package/dist/esm/models/AnnouncementRulesListResultV2.js +49 -0
  93. package/dist/esm/models/AnnouncementRulesShowResultV2.d.ts +31 -0
  94. package/dist/esm/models/AnnouncementRulesShowResultV2.js +44 -0
  95. package/dist/esm/models/AnnouncementRulesUpdatePayloadV2.d.ts +104 -0
  96. package/dist/esm/models/AnnouncementRulesUpdatePayloadV2.js +101 -0
  97. package/dist/esm/models/AnnouncementRulesUpdateResultV2.d.ts +31 -0
  98. package/dist/esm/models/AnnouncementRulesUpdateResultV2.js +44 -0
  99. package/dist/esm/models/AnnouncementTemplateActionPayloadV2.d.ts +58 -0
  100. package/dist/esm/models/AnnouncementTemplateActionPayloadV2.js +68 -0
  101. package/dist/esm/models/AnnouncementTemplateActionV2.d.ts +62 -0
  102. package/dist/esm/models/AnnouncementTemplateActionV2.js +72 -0
  103. package/dist/esm/models/AnnouncementTemplateFieldPayloadV2.d.ts +71 -0
  104. package/dist/esm/models/AnnouncementTemplateFieldPayloadV2.js +73 -0
  105. package/dist/esm/models/AnnouncementTemplateFieldV2.d.ts +75 -0
  106. package/dist/esm/models/AnnouncementTemplateFieldV2.js +77 -0
  107. package/dist/esm/models/AnnouncementTemplateRichTextV2.d.ts +41 -0
  108. package/dist/esm/models/AnnouncementTemplateRichTextV2.js +55 -0
  109. package/dist/esm/models/AnnouncementTemplateV2.d.ts +52 -0
  110. package/dist/esm/models/AnnouncementTemplateV2.js +65 -0
  111. package/dist/esm/models/AnnouncementTemplatesCreatePayloadV2.d.ts +44 -0
  112. package/dist/esm/models/AnnouncementTemplatesCreatePayloadV2.js +51 -0
  113. package/dist/esm/models/AnnouncementTemplatesCreateResultV2.d.ts +31 -0
  114. package/dist/esm/models/AnnouncementTemplatesCreateResultV2.js +44 -0
  115. package/dist/esm/models/AnnouncementTemplatesListResultV2.d.ts +31 -0
  116. package/dist/esm/models/AnnouncementTemplatesListResultV2.js +44 -0
  117. package/dist/esm/models/AnnouncementTemplatesShowResultV2.d.ts +31 -0
  118. package/dist/esm/models/AnnouncementTemplatesShowResultV2.js +44 -0
  119. package/dist/esm/models/AnnouncementTemplatesUpdatePayloadV2.d.ts +44 -0
  120. package/dist/esm/models/AnnouncementTemplatesUpdatePayloadV2.js +55 -0
  121. package/dist/esm/models/AnnouncementTemplatesUpdateResultV2.d.ts +31 -0
  122. package/dist/esm/models/AnnouncementTemplatesUpdateResultV2.js +44 -0
  123. package/dist/esm/models/AuditLogOnCallNotificationPauseMetadataV2.d.ts +50 -0
  124. package/dist/esm/models/AuditLogOnCallNotificationPauseMetadataV2.js +57 -0
  125. package/dist/esm/models/AuditLogTargetV2.d.ts +2 -0
  126. package/dist/esm/models/AuditLogTargetV2.js +2 -0
  127. package/dist/esm/models/AuditLogsOnCallNotificationPauseCreatedV1.d.ts +53 -0
  128. package/dist/esm/models/AuditLogsOnCallNotificationPauseCreatedV1.js +67 -0
  129. package/dist/esm/models/AuditLogsOnCallNotificationPauseCreatedV2.d.ts +58 -0
  130. package/dist/esm/models/AuditLogsOnCallNotificationPauseCreatedV2.js +72 -0
  131. package/dist/esm/models/AuditLogsOnCallNotificationPauseDeletedV1.d.ts +53 -0
  132. package/dist/esm/models/AuditLogsOnCallNotificationPauseDeletedV1.js +67 -0
  133. package/dist/esm/models/AuditLogsOnCallNotificationPauseDeletedV2.d.ts +58 -0
  134. package/dist/esm/models/AuditLogsOnCallNotificationPauseDeletedV2.js +72 -0
  135. package/dist/esm/models/AuditLogsOnCallNotificationPauseUpdatedV1.d.ts +53 -0
  136. package/dist/esm/models/AuditLogsOnCallNotificationPauseUpdatedV1.js +67 -0
  137. package/dist/esm/models/AuditLogsOnCallNotificationPauseUpdatedV2.d.ts +58 -0
  138. package/dist/esm/models/AuditLogsOnCallNotificationPauseUpdatedV2.js +72 -0
  139. package/dist/esm/models/AuditLogsUserAPIKeyCreatedV1.d.ts +53 -0
  140. package/dist/esm/models/AuditLogsUserAPIKeyCreatedV1.js +67 -0
  141. package/dist/esm/models/AuditLogsUserAPIKeyDeletedV1.d.ts +53 -0
  142. package/dist/esm/models/AuditLogsUserAPIKeyDeletedV1.js +67 -0
  143. package/dist/esm/models/PolicyFindingScheduleImpactedUserV2.d.ts +1 -0
  144. package/dist/esm/models/PolicyFindingScheduleImpactedUserV2.js +1 -0
  145. package/dist/esm/models/PolicyFindingScheduleV2.d.ts +1 -0
  146. package/dist/esm/models/PolicyFindingScheduleV2.js +1 -0
  147. package/dist/esm/models/StatusPagesShowStatusPageResultV2.d.ts +31 -0
  148. package/dist/esm/models/StatusPagesShowStatusPageResultV2.js +44 -0
  149. package/dist/esm/models/index.d.ts +29 -0
  150. package/dist/esm/models/index.js +29 -0
  151. package/dist/esm/version.d.ts +1 -1
  152. package/dist/esm/version.js +1 -1
  153. package/package.json +1 -1
@@ -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.instanceOfAuditLogsOnCallNotificationPauseCreatedV2 = instanceOfAuditLogsOnCallNotificationPauseCreatedV2;
17
+ exports.AuditLogsOnCallNotificationPauseCreatedV2FromJSON = AuditLogsOnCallNotificationPauseCreatedV2FromJSON;
18
+ exports.AuditLogsOnCallNotificationPauseCreatedV2FromJSONTyped = AuditLogsOnCallNotificationPauseCreatedV2FromJSONTyped;
19
+ exports.AuditLogsOnCallNotificationPauseCreatedV2ToJSON = AuditLogsOnCallNotificationPauseCreatedV2ToJSON;
20
+ exports.AuditLogsOnCallNotificationPauseCreatedV2ToJSONTyped = AuditLogsOnCallNotificationPauseCreatedV2ToJSONTyped;
21
+ const runtime_js_1 = require("../runtime.js");
22
+ const AuditLogActorV2_js_1 = require("./AuditLogActorV2.js");
23
+ const AuditLogOnCallNotificationPauseMetadataV2_js_1 = require("./AuditLogOnCallNotificationPauseMetadataV2.js");
24
+ const AuditLogEntryContextV2_js_1 = require("./AuditLogEntryContextV2.js");
25
+ const AuditLogTargetV2_js_1 = require("./AuditLogTargetV2.js");
26
+ /**
27
+ * Check if a given object implements the AuditLogsOnCallNotificationPauseCreatedV2 interface.
28
+ */
29
+ function instanceOfAuditLogsOnCallNotificationPauseCreatedV2(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 AuditLogsOnCallNotificationPauseCreatedV2FromJSON(json) {
47
+ return AuditLogsOnCallNotificationPauseCreatedV2FromJSONTyped(json, false);
48
+ }
49
+ function AuditLogsOnCallNotificationPauseCreatedV2FromJSONTyped(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, AuditLogOnCallNotificationPauseMetadataV2_js_1.AuditLogOnCallNotificationPauseMetadataV2FromJSON)(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 AuditLogsOnCallNotificationPauseCreatedV2ToJSON(json) {
64
+ return AuditLogsOnCallNotificationPauseCreatedV2ToJSONTyped(json, false);
65
+ }
66
+ function AuditLogsOnCallNotificationPauseCreatedV2ToJSONTyped(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, AuditLogOnCallNotificationPauseMetadataV2_js_1.AuditLogOnCallNotificationPauseMetadataV2ToJSON)(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 AuditLogsOnCallNotificationPauseDeletedV1
19
+ */
20
+ export interface AuditLogsOnCallNotificationPauseDeletedV1 {
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 AuditLogsOnCallNotificationPauseDeletedV1 interface.
48
+ */
49
+ export declare function instanceOfAuditLogsOnCallNotificationPauseDeletedV1(value: object): value is AuditLogsOnCallNotificationPauseDeletedV1;
50
+ export declare function AuditLogsOnCallNotificationPauseDeletedV1FromJSON(json: any): AuditLogsOnCallNotificationPauseDeletedV1;
51
+ export declare function AuditLogsOnCallNotificationPauseDeletedV1FromJSONTyped(json: any, ignoreDiscriminator: boolean): AuditLogsOnCallNotificationPauseDeletedV1;
52
+ export declare function AuditLogsOnCallNotificationPauseDeletedV1ToJSON(json: any): AuditLogsOnCallNotificationPauseDeletedV1;
53
+ export declare function AuditLogsOnCallNotificationPauseDeletedV1ToJSONTyped(value?: AuditLogsOnCallNotificationPauseDeletedV1 | 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.instanceOfAuditLogsOnCallNotificationPauseDeletedV1 = instanceOfAuditLogsOnCallNotificationPauseDeletedV1;
17
+ exports.AuditLogsOnCallNotificationPauseDeletedV1FromJSON = AuditLogsOnCallNotificationPauseDeletedV1FromJSON;
18
+ exports.AuditLogsOnCallNotificationPauseDeletedV1FromJSONTyped = AuditLogsOnCallNotificationPauseDeletedV1FromJSONTyped;
19
+ exports.AuditLogsOnCallNotificationPauseDeletedV1ToJSON = AuditLogsOnCallNotificationPauseDeletedV1ToJSON;
20
+ exports.AuditLogsOnCallNotificationPauseDeletedV1ToJSONTyped = AuditLogsOnCallNotificationPauseDeletedV1ToJSONTyped;
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 AuditLogsOnCallNotificationPauseDeletedV1 interface.
27
+ */
28
+ function instanceOfAuditLogsOnCallNotificationPauseDeletedV1(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 AuditLogsOnCallNotificationPauseDeletedV1FromJSON(json) {
44
+ return AuditLogsOnCallNotificationPauseDeletedV1FromJSONTyped(json, false);
45
+ }
46
+ function AuditLogsOnCallNotificationPauseDeletedV1FromJSONTyped(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 AuditLogsOnCallNotificationPauseDeletedV1ToJSON(json) {
60
+ return AuditLogsOnCallNotificationPauseDeletedV1ToJSONTyped(json, false);
61
+ }
62
+ function AuditLogsOnCallNotificationPauseDeletedV1ToJSONTyped(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 { AuditLogOnCallNotificationPauseMetadataV2 } from './AuditLogOnCallNotificationPauseMetadataV2.js';
14
+ import type { AuditLogEntryContextV2 } from './AuditLogEntryContextV2.js';
15
+ import type { AuditLogTargetV2 } from './AuditLogTargetV2.js';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface AuditLogsOnCallNotificationPauseDeletedV2
20
+ */
21
+ export interface AuditLogsOnCallNotificationPauseDeletedV2 {
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: AuditLogOnCallNotificationPauseMetadataV2;
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 AuditLogsOnCallNotificationPauseDeletedV2 interface.
53
+ */
54
+ export declare function instanceOfAuditLogsOnCallNotificationPauseDeletedV2(value: object): value is AuditLogsOnCallNotificationPauseDeletedV2;
55
+ export declare function AuditLogsOnCallNotificationPauseDeletedV2FromJSON(json: any): AuditLogsOnCallNotificationPauseDeletedV2;
56
+ export declare function AuditLogsOnCallNotificationPauseDeletedV2FromJSONTyped(json: any, ignoreDiscriminator: boolean): AuditLogsOnCallNotificationPauseDeletedV2;
57
+ export declare function AuditLogsOnCallNotificationPauseDeletedV2ToJSON(json: any): AuditLogsOnCallNotificationPauseDeletedV2;
58
+ export declare function AuditLogsOnCallNotificationPauseDeletedV2ToJSONTyped(value?: AuditLogsOnCallNotificationPauseDeletedV2 | 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.instanceOfAuditLogsOnCallNotificationPauseDeletedV2 = instanceOfAuditLogsOnCallNotificationPauseDeletedV2;
17
+ exports.AuditLogsOnCallNotificationPauseDeletedV2FromJSON = AuditLogsOnCallNotificationPauseDeletedV2FromJSON;
18
+ exports.AuditLogsOnCallNotificationPauseDeletedV2FromJSONTyped = AuditLogsOnCallNotificationPauseDeletedV2FromJSONTyped;
19
+ exports.AuditLogsOnCallNotificationPauseDeletedV2ToJSON = AuditLogsOnCallNotificationPauseDeletedV2ToJSON;
20
+ exports.AuditLogsOnCallNotificationPauseDeletedV2ToJSONTyped = AuditLogsOnCallNotificationPauseDeletedV2ToJSONTyped;
21
+ const runtime_js_1 = require("../runtime.js");
22
+ const AuditLogActorV2_js_1 = require("./AuditLogActorV2.js");
23
+ const AuditLogOnCallNotificationPauseMetadataV2_js_1 = require("./AuditLogOnCallNotificationPauseMetadataV2.js");
24
+ const AuditLogEntryContextV2_js_1 = require("./AuditLogEntryContextV2.js");
25
+ const AuditLogTargetV2_js_1 = require("./AuditLogTargetV2.js");
26
+ /**
27
+ * Check if a given object implements the AuditLogsOnCallNotificationPauseDeletedV2 interface.
28
+ */
29
+ function instanceOfAuditLogsOnCallNotificationPauseDeletedV2(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 AuditLogsOnCallNotificationPauseDeletedV2FromJSON(json) {
47
+ return AuditLogsOnCallNotificationPauseDeletedV2FromJSONTyped(json, false);
48
+ }
49
+ function AuditLogsOnCallNotificationPauseDeletedV2FromJSONTyped(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, AuditLogOnCallNotificationPauseMetadataV2_js_1.AuditLogOnCallNotificationPauseMetadataV2FromJSON)(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 AuditLogsOnCallNotificationPauseDeletedV2ToJSON(json) {
64
+ return AuditLogsOnCallNotificationPauseDeletedV2ToJSONTyped(json, false);
65
+ }
66
+ function AuditLogsOnCallNotificationPauseDeletedV2ToJSONTyped(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, AuditLogOnCallNotificationPauseMetadataV2_js_1.AuditLogOnCallNotificationPauseMetadataV2ToJSON)(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 AuditLogsOnCallNotificationPauseUpdatedV1
19
+ */
20
+ export interface AuditLogsOnCallNotificationPauseUpdatedV1 {
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 AuditLogsOnCallNotificationPauseUpdatedV1 interface.
48
+ */
49
+ export declare function instanceOfAuditLogsOnCallNotificationPauseUpdatedV1(value: object): value is AuditLogsOnCallNotificationPauseUpdatedV1;
50
+ export declare function AuditLogsOnCallNotificationPauseUpdatedV1FromJSON(json: any): AuditLogsOnCallNotificationPauseUpdatedV1;
51
+ export declare function AuditLogsOnCallNotificationPauseUpdatedV1FromJSONTyped(json: any, ignoreDiscriminator: boolean): AuditLogsOnCallNotificationPauseUpdatedV1;
52
+ export declare function AuditLogsOnCallNotificationPauseUpdatedV1ToJSON(json: any): AuditLogsOnCallNotificationPauseUpdatedV1;
53
+ export declare function AuditLogsOnCallNotificationPauseUpdatedV1ToJSONTyped(value?: AuditLogsOnCallNotificationPauseUpdatedV1 | 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.instanceOfAuditLogsOnCallNotificationPauseUpdatedV1 = instanceOfAuditLogsOnCallNotificationPauseUpdatedV1;
17
+ exports.AuditLogsOnCallNotificationPauseUpdatedV1FromJSON = AuditLogsOnCallNotificationPauseUpdatedV1FromJSON;
18
+ exports.AuditLogsOnCallNotificationPauseUpdatedV1FromJSONTyped = AuditLogsOnCallNotificationPauseUpdatedV1FromJSONTyped;
19
+ exports.AuditLogsOnCallNotificationPauseUpdatedV1ToJSON = AuditLogsOnCallNotificationPauseUpdatedV1ToJSON;
20
+ exports.AuditLogsOnCallNotificationPauseUpdatedV1ToJSONTyped = AuditLogsOnCallNotificationPauseUpdatedV1ToJSONTyped;
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 AuditLogsOnCallNotificationPauseUpdatedV1 interface.
27
+ */
28
+ function instanceOfAuditLogsOnCallNotificationPauseUpdatedV1(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 AuditLogsOnCallNotificationPauseUpdatedV1FromJSON(json) {
44
+ return AuditLogsOnCallNotificationPauseUpdatedV1FromJSONTyped(json, false);
45
+ }
46
+ function AuditLogsOnCallNotificationPauseUpdatedV1FromJSONTyped(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 AuditLogsOnCallNotificationPauseUpdatedV1ToJSON(json) {
60
+ return AuditLogsOnCallNotificationPauseUpdatedV1ToJSONTyped(json, false);
61
+ }
62
+ function AuditLogsOnCallNotificationPauseUpdatedV1ToJSONTyped(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 { AuditLogOnCallNotificationPauseMetadataV2 } from './AuditLogOnCallNotificationPauseMetadataV2.js';
14
+ import type { AuditLogEntryContextV2 } from './AuditLogEntryContextV2.js';
15
+ import type { AuditLogTargetV2 } from './AuditLogTargetV2.js';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface AuditLogsOnCallNotificationPauseUpdatedV2
20
+ */
21
+ export interface AuditLogsOnCallNotificationPauseUpdatedV2 {
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: AuditLogOnCallNotificationPauseMetadataV2;
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 AuditLogsOnCallNotificationPauseUpdatedV2 interface.
53
+ */
54
+ export declare function instanceOfAuditLogsOnCallNotificationPauseUpdatedV2(value: object): value is AuditLogsOnCallNotificationPauseUpdatedV2;
55
+ export declare function AuditLogsOnCallNotificationPauseUpdatedV2FromJSON(json: any): AuditLogsOnCallNotificationPauseUpdatedV2;
56
+ export declare function AuditLogsOnCallNotificationPauseUpdatedV2FromJSONTyped(json: any, ignoreDiscriminator: boolean): AuditLogsOnCallNotificationPauseUpdatedV2;
57
+ export declare function AuditLogsOnCallNotificationPauseUpdatedV2ToJSON(json: any): AuditLogsOnCallNotificationPauseUpdatedV2;
58
+ export declare function AuditLogsOnCallNotificationPauseUpdatedV2ToJSONTyped(value?: AuditLogsOnCallNotificationPauseUpdatedV2 | 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.instanceOfAuditLogsOnCallNotificationPauseUpdatedV2 = instanceOfAuditLogsOnCallNotificationPauseUpdatedV2;
17
+ exports.AuditLogsOnCallNotificationPauseUpdatedV2FromJSON = AuditLogsOnCallNotificationPauseUpdatedV2FromJSON;
18
+ exports.AuditLogsOnCallNotificationPauseUpdatedV2FromJSONTyped = AuditLogsOnCallNotificationPauseUpdatedV2FromJSONTyped;
19
+ exports.AuditLogsOnCallNotificationPauseUpdatedV2ToJSON = AuditLogsOnCallNotificationPauseUpdatedV2ToJSON;
20
+ exports.AuditLogsOnCallNotificationPauseUpdatedV2ToJSONTyped = AuditLogsOnCallNotificationPauseUpdatedV2ToJSONTyped;
21
+ const runtime_js_1 = require("../runtime.js");
22
+ const AuditLogActorV2_js_1 = require("./AuditLogActorV2.js");
23
+ const AuditLogOnCallNotificationPauseMetadataV2_js_1 = require("./AuditLogOnCallNotificationPauseMetadataV2.js");
24
+ const AuditLogEntryContextV2_js_1 = require("./AuditLogEntryContextV2.js");
25
+ const AuditLogTargetV2_js_1 = require("./AuditLogTargetV2.js");
26
+ /**
27
+ * Check if a given object implements the AuditLogsOnCallNotificationPauseUpdatedV2 interface.
28
+ */
29
+ function instanceOfAuditLogsOnCallNotificationPauseUpdatedV2(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 AuditLogsOnCallNotificationPauseUpdatedV2FromJSON(json) {
47
+ return AuditLogsOnCallNotificationPauseUpdatedV2FromJSONTyped(json, false);
48
+ }
49
+ function AuditLogsOnCallNotificationPauseUpdatedV2FromJSONTyped(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, AuditLogOnCallNotificationPauseMetadataV2_js_1.AuditLogOnCallNotificationPauseMetadataV2FromJSON)(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 AuditLogsOnCallNotificationPauseUpdatedV2ToJSON(json) {
64
+ return AuditLogsOnCallNotificationPauseUpdatedV2ToJSONTyped(json, false);
65
+ }
66
+ function AuditLogsOnCallNotificationPauseUpdatedV2ToJSONTyped(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, AuditLogOnCallNotificationPauseMetadataV2_js_1.AuditLogOnCallNotificationPauseMetadataV2ToJSON)(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 AuditLogsUserAPIKeyCreatedV1
19
+ */
20
+ export interface AuditLogsUserAPIKeyCreatedV1 {
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 AuditLogsUserAPIKeyCreatedV1 interface.
48
+ */
49
+ export declare function instanceOfAuditLogsUserAPIKeyCreatedV1(value: object): value is AuditLogsUserAPIKeyCreatedV1;
50
+ export declare function AuditLogsUserAPIKeyCreatedV1FromJSON(json: any): AuditLogsUserAPIKeyCreatedV1;
51
+ export declare function AuditLogsUserAPIKeyCreatedV1FromJSONTyped(json: any, ignoreDiscriminator: boolean): AuditLogsUserAPIKeyCreatedV1;
52
+ export declare function AuditLogsUserAPIKeyCreatedV1ToJSON(json: any): AuditLogsUserAPIKeyCreatedV1;
53
+ export declare function AuditLogsUserAPIKeyCreatedV1ToJSONTyped(value?: AuditLogsUserAPIKeyCreatedV1 | null, ignoreDiscriminator?: boolean): any;