@incident-io/sdk 2.11.0 → 2.13.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 (63) hide show
  1. package/dist/cjs/models/AuditLogExtensionPluginCreatedMetadataV2.d.ts +42 -0
  2. package/dist/cjs/models/AuditLogExtensionPluginCreatedMetadataV2.js +60 -0
  3. package/dist/cjs/models/AuditLogExtensionPluginUpdatedMetadataV2.d.ts +94 -0
  4. package/dist/cjs/models/AuditLogExtensionPluginUpdatedMetadataV2.js +82 -0
  5. package/dist/cjs/models/AuditLogInvestigationTriggerMetadataV2.d.ts +54 -0
  6. package/dist/cjs/models/AuditLogInvestigationTriggerMetadataV2.js +70 -0
  7. package/dist/cjs/models/AuditLogTargetV2.d.ts +3 -0
  8. package/dist/cjs/models/AuditLogTargetV2.js +3 -0
  9. package/dist/cjs/models/AuditLogsExtensionPluginCreatedV1.d.ts +58 -0
  10. package/dist/cjs/models/AuditLogsExtensionPluginCreatedV1.js +79 -0
  11. package/dist/cjs/models/AuditLogsExtensionPluginDeletedV1.d.ts +53 -0
  12. package/dist/cjs/models/AuditLogsExtensionPluginDeletedV1.js +74 -0
  13. package/dist/cjs/models/AuditLogsExtensionPluginUpdatedV1.d.ts +58 -0
  14. package/dist/cjs/models/AuditLogsExtensionPluginUpdatedV1.js +79 -0
  15. package/dist/cjs/models/AuditLogsGlossaryEntryCreatedV1.d.ts +53 -0
  16. package/dist/cjs/models/AuditLogsGlossaryEntryCreatedV1.js +74 -0
  17. package/dist/cjs/models/AuditLogsGlossaryEntryDeletedV1.d.ts +53 -0
  18. package/dist/cjs/models/AuditLogsGlossaryEntryDeletedV1.js +74 -0
  19. package/dist/cjs/models/AuditLogsGlossaryEntryUpdatedV1.d.ts +53 -0
  20. package/dist/cjs/models/AuditLogsGlossaryEntryUpdatedV1.js +74 -0
  21. package/dist/cjs/models/AuditLogsInvestigationTriggerCreatedV1.d.ts +58 -0
  22. package/dist/cjs/models/AuditLogsInvestigationTriggerCreatedV1.js +79 -0
  23. package/dist/cjs/models/AuditLogsInvestigationTriggerDeletedV1.d.ts +58 -0
  24. package/dist/cjs/models/AuditLogsInvestigationTriggerDeletedV1.js +79 -0
  25. package/dist/cjs/models/AuditLogsInvestigationTriggerUpdatedV1.d.ts +58 -0
  26. package/dist/cjs/models/AuditLogsInvestigationTriggerUpdatedV1.js +79 -0
  27. package/dist/cjs/models/PostmortemDocumentsAttachPayloadV1.d.ts +1 -1
  28. package/dist/cjs/models/index.d.ts +12 -0
  29. package/dist/cjs/models/index.js +12 -0
  30. package/dist/cjs/version.d.ts +1 -1
  31. package/dist/cjs/version.js +1 -1
  32. package/dist/esm/models/AuditLogExtensionPluginCreatedMetadataV2.d.ts +42 -0
  33. package/dist/esm/models/AuditLogExtensionPluginCreatedMetadataV2.js +53 -0
  34. package/dist/esm/models/AuditLogExtensionPluginUpdatedMetadataV2.d.ts +94 -0
  35. package/dist/esm/models/AuditLogExtensionPluginUpdatedMetadataV2.js +75 -0
  36. package/dist/esm/models/AuditLogInvestigationTriggerMetadataV2.d.ts +54 -0
  37. package/dist/esm/models/AuditLogInvestigationTriggerMetadataV2.js +63 -0
  38. package/dist/esm/models/AuditLogTargetV2.d.ts +3 -0
  39. package/dist/esm/models/AuditLogTargetV2.js +3 -0
  40. package/dist/esm/models/AuditLogsExtensionPluginCreatedV1.d.ts +58 -0
  41. package/dist/esm/models/AuditLogsExtensionPluginCreatedV1.js +72 -0
  42. package/dist/esm/models/AuditLogsExtensionPluginDeletedV1.d.ts +53 -0
  43. package/dist/esm/models/AuditLogsExtensionPluginDeletedV1.js +67 -0
  44. package/dist/esm/models/AuditLogsExtensionPluginUpdatedV1.d.ts +58 -0
  45. package/dist/esm/models/AuditLogsExtensionPluginUpdatedV1.js +72 -0
  46. package/dist/esm/models/AuditLogsGlossaryEntryCreatedV1.d.ts +53 -0
  47. package/dist/esm/models/AuditLogsGlossaryEntryCreatedV1.js +67 -0
  48. package/dist/esm/models/AuditLogsGlossaryEntryDeletedV1.d.ts +53 -0
  49. package/dist/esm/models/AuditLogsGlossaryEntryDeletedV1.js +67 -0
  50. package/dist/esm/models/AuditLogsGlossaryEntryUpdatedV1.d.ts +53 -0
  51. package/dist/esm/models/AuditLogsGlossaryEntryUpdatedV1.js +67 -0
  52. package/dist/esm/models/AuditLogsInvestigationTriggerCreatedV1.d.ts +58 -0
  53. package/dist/esm/models/AuditLogsInvestigationTriggerCreatedV1.js +72 -0
  54. package/dist/esm/models/AuditLogsInvestigationTriggerDeletedV1.d.ts +58 -0
  55. package/dist/esm/models/AuditLogsInvestigationTriggerDeletedV1.js +72 -0
  56. package/dist/esm/models/AuditLogsInvestigationTriggerUpdatedV1.d.ts +58 -0
  57. package/dist/esm/models/AuditLogsInvestigationTriggerUpdatedV1.js +72 -0
  58. package/dist/esm/models/PostmortemDocumentsAttachPayloadV1.d.ts +1 -1
  59. package/dist/esm/models/index.d.ts +12 -0
  60. package/dist/esm/models/index.js +12 -0
  61. package/dist/esm/version.d.ts +1 -1
  62. package/dist/esm/version.js +1 -1
  63. package/package.json +1 -1
@@ -0,0 +1,75 @@
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 AuditLogExtensionPluginUpdatedMetadataV2 interface.
16
+ */
17
+ export function instanceOfAuditLogExtensionPluginUpdatedMetadataV2(value) {
18
+ if (!('changed' in value) || value['changed'] === undefined)
19
+ return false;
20
+ return true;
21
+ }
22
+ export function AuditLogExtensionPluginUpdatedMetadataV2FromJSON(json) {
23
+ return AuditLogExtensionPluginUpdatedMetadataV2FromJSONTyped(json, false);
24
+ }
25
+ export function AuditLogExtensionPluginUpdatedMetadataV2FromJSONTyped(json, ignoreDiscriminator) {
26
+ if (json == null) {
27
+ return json;
28
+ }
29
+ return {
30
+ 'after_enabled': json['after_enabled'] == null ? undefined : json['after_enabled'],
31
+ 'after_enabled_skill_count': json['after_enabled_skill_count'] == null ? undefined : json['after_enabled_skill_count'],
32
+ 'after_name': json['after_name'] == null ? undefined : json['after_name'],
33
+ 'after_provider': json['after_provider'] == null ? undefined : json['after_provider'],
34
+ 'after_repo_name': json['after_repo_name'] == null ? undefined : json['after_repo_name'],
35
+ 'after_repo_owner': json['after_repo_owner'] == null ? undefined : json['after_repo_owner'],
36
+ 'after_skill_selection_mode': json['after_skill_selection_mode'] == null ? undefined : json['after_skill_selection_mode'],
37
+ 'after_subpath': json['after_subpath'] == null ? undefined : json['after_subpath'],
38
+ 'before_enabled': json['before_enabled'] == null ? undefined : json['before_enabled'],
39
+ 'before_enabled_skill_count': json['before_enabled_skill_count'] == null ? undefined : json['before_enabled_skill_count'],
40
+ 'before_name': json['before_name'] == null ? undefined : json['before_name'],
41
+ 'before_provider': json['before_provider'] == null ? undefined : json['before_provider'],
42
+ 'before_repo_name': json['before_repo_name'] == null ? undefined : json['before_repo_name'],
43
+ 'before_repo_owner': json['before_repo_owner'] == null ? undefined : json['before_repo_owner'],
44
+ 'before_skill_selection_mode': json['before_skill_selection_mode'] == null ? undefined : json['before_skill_selection_mode'],
45
+ 'before_subpath': json['before_subpath'] == null ? undefined : json['before_subpath'],
46
+ 'changed': json['changed'],
47
+ };
48
+ }
49
+ export function AuditLogExtensionPluginUpdatedMetadataV2ToJSON(json) {
50
+ return AuditLogExtensionPluginUpdatedMetadataV2ToJSONTyped(json, false);
51
+ }
52
+ export function AuditLogExtensionPluginUpdatedMetadataV2ToJSONTyped(value, ignoreDiscriminator = false) {
53
+ if (value == null) {
54
+ return value;
55
+ }
56
+ return {
57
+ 'after_enabled': value['after_enabled'],
58
+ 'after_enabled_skill_count': value['after_enabled_skill_count'],
59
+ 'after_name': value['after_name'],
60
+ 'after_provider': value['after_provider'],
61
+ 'after_repo_name': value['after_repo_name'],
62
+ 'after_repo_owner': value['after_repo_owner'],
63
+ 'after_skill_selection_mode': value['after_skill_selection_mode'],
64
+ 'after_subpath': value['after_subpath'],
65
+ 'before_enabled': value['before_enabled'],
66
+ 'before_enabled_skill_count': value['before_enabled_skill_count'],
67
+ 'before_name': value['before_name'],
68
+ 'before_provider': value['before_provider'],
69
+ 'before_repo_name': value['before_repo_name'],
70
+ 'before_repo_owner': value['before_repo_owner'],
71
+ 'before_skill_selection_mode': value['before_skill_selection_mode'],
72
+ 'before_subpath': value['before_subpath'],
73
+ 'changed': value['changed'],
74
+ };
75
+ }
@@ -0,0 +1,54 @@
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 AuditLogInvestigationTriggerMetadataV2
16
+ */
17
+ export interface AuditLogInvestigationTriggerMetadataV2 {
18
+ /**
19
+ * Whether the investigation waits for the trigger to finish before moving on (true, false)
20
+ */
21
+ blocks: string;
22
+ /**
23
+ * Whether the trigger fires (true, false)
24
+ */
25
+ enabled: string;
26
+ /**
27
+ * How often the trigger fires across one investigation
28
+ */
29
+ frequency: string;
30
+ /**
31
+ * When in an investigation the trigger runs
32
+ */
33
+ moment: string;
34
+ /**
35
+ * The extension plugin holding the skill the trigger runs, absent for a trigger that only gives a task
36
+ */
37
+ plugin_id?: string;
38
+ /**
39
+ * The skill directory the trigger runs, absent when the trigger leaves the choice of skill to the investigation
40
+ */
41
+ skill?: string;
42
+ /**
43
+ * Whether the trigger hands the agent a task of its own (true, false)
44
+ */
45
+ task_set: string;
46
+ }
47
+ /**
48
+ * Check if a given object implements the AuditLogInvestigationTriggerMetadataV2 interface.
49
+ */
50
+ export declare function instanceOfAuditLogInvestigationTriggerMetadataV2(value: object): value is AuditLogInvestigationTriggerMetadataV2;
51
+ export declare function AuditLogInvestigationTriggerMetadataV2FromJSON(json: any): AuditLogInvestigationTriggerMetadataV2;
52
+ export declare function AuditLogInvestigationTriggerMetadataV2FromJSONTyped(json: any, ignoreDiscriminator: boolean): AuditLogInvestigationTriggerMetadataV2;
53
+ export declare function AuditLogInvestigationTriggerMetadataV2ToJSON(json: any): AuditLogInvestigationTriggerMetadataV2;
54
+ export declare function AuditLogInvestigationTriggerMetadataV2ToJSONTyped(value?: AuditLogInvestigationTriggerMetadataV2 | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,63 @@
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 AuditLogInvestigationTriggerMetadataV2 interface.
16
+ */
17
+ export function instanceOfAuditLogInvestigationTriggerMetadataV2(value) {
18
+ if (!('blocks' in value) || value['blocks'] === undefined)
19
+ return false;
20
+ if (!('enabled' in value) || value['enabled'] === undefined)
21
+ return false;
22
+ if (!('frequency' in value) || value['frequency'] === undefined)
23
+ return false;
24
+ if (!('moment' in value) || value['moment'] === undefined)
25
+ return false;
26
+ if (!('task_set' in value) || value['task_set'] === undefined)
27
+ return false;
28
+ return true;
29
+ }
30
+ export function AuditLogInvestigationTriggerMetadataV2FromJSON(json) {
31
+ return AuditLogInvestigationTriggerMetadataV2FromJSONTyped(json, false);
32
+ }
33
+ export function AuditLogInvestigationTriggerMetadataV2FromJSONTyped(json, ignoreDiscriminator) {
34
+ if (json == null) {
35
+ return json;
36
+ }
37
+ return {
38
+ 'blocks': json['blocks'],
39
+ 'enabled': json['enabled'],
40
+ 'frequency': json['frequency'],
41
+ 'moment': json['moment'],
42
+ 'plugin_id': json['plugin_id'] == null ? undefined : json['plugin_id'],
43
+ 'skill': json['skill'] == null ? undefined : json['skill'],
44
+ 'task_set': json['task_set'],
45
+ };
46
+ }
47
+ export function AuditLogInvestigationTriggerMetadataV2ToJSON(json) {
48
+ return AuditLogInvestigationTriggerMetadataV2ToJSONTyped(json, false);
49
+ }
50
+ export function AuditLogInvestigationTriggerMetadataV2ToJSONTyped(value, ignoreDiscriminator = false) {
51
+ if (value == null) {
52
+ return value;
53
+ }
54
+ return {
55
+ 'blocks': value['blocks'],
56
+ 'enabled': value['enabled'],
57
+ 'frequency': value['frequency'],
58
+ 'moment': value['moment'],
59
+ 'plugin_id': value['plugin_id'],
60
+ 'skill': value['skill'],
61
+ 'task_set': value['task_set'],
62
+ };
63
+ }
@@ -52,6 +52,9 @@ export declare const AuditLogTargetV2TypeEnum: {
52
52
  readonly EscalationPathTemplate: "escalation_path_template";
53
53
  readonly ExtensionConnector: "extension_connector";
54
54
  readonly ExtensionConnectorTool: "extension_connector_tool";
55
+ readonly ExtensionPlugin: "extension_plugin";
56
+ readonly GlossaryEntry: "glossary_entry";
57
+ readonly InvestigationTrigger: "investigation_trigger";
55
58
  readonly FollowUpCategory: "follow_up_category";
56
59
  readonly FollowUpPriority: "follow_up_priority";
57
60
  readonly HolidayUserFeed: "holiday_user_feed";
@@ -35,6 +35,9 @@ export const AuditLogTargetV2TypeEnum = {
35
35
  EscalationPathTemplate: 'escalation_path_template',
36
36
  ExtensionConnector: 'extension_connector',
37
37
  ExtensionConnectorTool: 'extension_connector_tool',
38
+ ExtensionPlugin: 'extension_plugin',
39
+ GlossaryEntry: 'glossary_entry',
40
+ InvestigationTrigger: 'investigation_trigger',
38
41
  FollowUpCategory: 'follow_up_category',
39
42
  FollowUpPriority: 'follow_up_priority',
40
43
  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 { AuditLogExtensionPluginCreatedMetadataV2 } from './AuditLogExtensionPluginCreatedMetadataV2.js';
14
+ import type { AuditLogEntryContextV2 } from './AuditLogEntryContextV2.js';
15
+ import type { AuditLogTargetV2 } from './AuditLogTargetV2.js';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface AuditLogsExtensionPluginCreatedV1
20
+ */
21
+ export interface AuditLogsExtensionPluginCreatedV1 {
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: AuditLogExtensionPluginCreatedMetadataV2;
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 AuditLogsExtensionPluginCreatedV1 interface.
53
+ */
54
+ export declare function instanceOfAuditLogsExtensionPluginCreatedV1(value: object): value is AuditLogsExtensionPluginCreatedV1;
55
+ export declare function AuditLogsExtensionPluginCreatedV1FromJSON(json: any): AuditLogsExtensionPluginCreatedV1;
56
+ export declare function AuditLogsExtensionPluginCreatedV1FromJSONTyped(json: any, ignoreDiscriminator: boolean): AuditLogsExtensionPluginCreatedV1;
57
+ export declare function AuditLogsExtensionPluginCreatedV1ToJSON(json: any): AuditLogsExtensionPluginCreatedV1;
58
+ export declare function AuditLogsExtensionPluginCreatedV1ToJSONTyped(value?: AuditLogsExtensionPluginCreatedV1 | 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 { AuditLogExtensionPluginCreatedMetadataV2FromJSON, AuditLogExtensionPluginCreatedMetadataV2ToJSON, } from './AuditLogExtensionPluginCreatedMetadataV2.js';
17
+ import { AuditLogEntryContextV2FromJSON, AuditLogEntryContextV2ToJSON, } from './AuditLogEntryContextV2.js';
18
+ import { AuditLogTargetV2FromJSON, AuditLogTargetV2ToJSON, } from './AuditLogTargetV2.js';
19
+ /**
20
+ * Check if a given object implements the AuditLogsExtensionPluginCreatedV1 interface.
21
+ */
22
+ export function instanceOfAuditLogsExtensionPluginCreatedV1(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 AuditLogsExtensionPluginCreatedV1FromJSON(json) {
40
+ return AuditLogsExtensionPluginCreatedV1FromJSONTyped(json, false);
41
+ }
42
+ export function AuditLogsExtensionPluginCreatedV1FromJSONTyped(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': AuditLogExtensionPluginCreatedMetadataV2FromJSON(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 AuditLogsExtensionPluginCreatedV1ToJSON(json) {
57
+ return AuditLogsExtensionPluginCreatedV1ToJSONTyped(json, false);
58
+ }
59
+ export function AuditLogsExtensionPluginCreatedV1ToJSONTyped(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': AuditLogExtensionPluginCreatedMetadataV2ToJSON(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 AuditLogsExtensionPluginDeletedV1
19
+ */
20
+ export interface AuditLogsExtensionPluginDeletedV1 {
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 AuditLogsExtensionPluginDeletedV1 interface.
48
+ */
49
+ export declare function instanceOfAuditLogsExtensionPluginDeletedV1(value: object): value is AuditLogsExtensionPluginDeletedV1;
50
+ export declare function AuditLogsExtensionPluginDeletedV1FromJSON(json: any): AuditLogsExtensionPluginDeletedV1;
51
+ export declare function AuditLogsExtensionPluginDeletedV1FromJSONTyped(json: any, ignoreDiscriminator: boolean): AuditLogsExtensionPluginDeletedV1;
52
+ export declare function AuditLogsExtensionPluginDeletedV1ToJSON(json: any): AuditLogsExtensionPluginDeletedV1;
53
+ export declare function AuditLogsExtensionPluginDeletedV1ToJSONTyped(value?: AuditLogsExtensionPluginDeletedV1 | 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 AuditLogsExtensionPluginDeletedV1 interface.
20
+ */
21
+ export function instanceOfAuditLogsExtensionPluginDeletedV1(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 AuditLogsExtensionPluginDeletedV1FromJSON(json) {
37
+ return AuditLogsExtensionPluginDeletedV1FromJSONTyped(json, false);
38
+ }
39
+ export function AuditLogsExtensionPluginDeletedV1FromJSONTyped(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 AuditLogsExtensionPluginDeletedV1ToJSON(json) {
53
+ return AuditLogsExtensionPluginDeletedV1ToJSONTyped(json, false);
54
+ }
55
+ export function AuditLogsExtensionPluginDeletedV1ToJSONTyped(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 { AuditLogExtensionPluginUpdatedMetadataV2 } from './AuditLogExtensionPluginUpdatedMetadataV2.js';
14
+ import type { AuditLogEntryContextV2 } from './AuditLogEntryContextV2.js';
15
+ import type { AuditLogTargetV2 } from './AuditLogTargetV2.js';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface AuditLogsExtensionPluginUpdatedV1
20
+ */
21
+ export interface AuditLogsExtensionPluginUpdatedV1 {
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: AuditLogExtensionPluginUpdatedMetadataV2;
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 AuditLogsExtensionPluginUpdatedV1 interface.
53
+ */
54
+ export declare function instanceOfAuditLogsExtensionPluginUpdatedV1(value: object): value is AuditLogsExtensionPluginUpdatedV1;
55
+ export declare function AuditLogsExtensionPluginUpdatedV1FromJSON(json: any): AuditLogsExtensionPluginUpdatedV1;
56
+ export declare function AuditLogsExtensionPluginUpdatedV1FromJSONTyped(json: any, ignoreDiscriminator: boolean): AuditLogsExtensionPluginUpdatedV1;
57
+ export declare function AuditLogsExtensionPluginUpdatedV1ToJSON(json: any): AuditLogsExtensionPluginUpdatedV1;
58
+ export declare function AuditLogsExtensionPluginUpdatedV1ToJSONTyped(value?: AuditLogsExtensionPluginUpdatedV1 | 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 { AuditLogExtensionPluginUpdatedMetadataV2FromJSON, AuditLogExtensionPluginUpdatedMetadataV2ToJSON, } from './AuditLogExtensionPluginUpdatedMetadataV2.js';
17
+ import { AuditLogEntryContextV2FromJSON, AuditLogEntryContextV2ToJSON, } from './AuditLogEntryContextV2.js';
18
+ import { AuditLogTargetV2FromJSON, AuditLogTargetV2ToJSON, } from './AuditLogTargetV2.js';
19
+ /**
20
+ * Check if a given object implements the AuditLogsExtensionPluginUpdatedV1 interface.
21
+ */
22
+ export function instanceOfAuditLogsExtensionPluginUpdatedV1(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 AuditLogsExtensionPluginUpdatedV1FromJSON(json) {
40
+ return AuditLogsExtensionPluginUpdatedV1FromJSONTyped(json, false);
41
+ }
42
+ export function AuditLogsExtensionPluginUpdatedV1FromJSONTyped(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': AuditLogExtensionPluginUpdatedMetadataV2FromJSON(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 AuditLogsExtensionPluginUpdatedV1ToJSON(json) {
57
+ return AuditLogsExtensionPluginUpdatedV1ToJSONTyped(json, false);
58
+ }
59
+ export function AuditLogsExtensionPluginUpdatedV1ToJSONTyped(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': AuditLogExtensionPluginUpdatedMetadataV2ToJSON(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 AuditLogsGlossaryEntryCreatedV1
19
+ */
20
+ export interface AuditLogsGlossaryEntryCreatedV1 {
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 AuditLogsGlossaryEntryCreatedV1 interface.
48
+ */
49
+ export declare function instanceOfAuditLogsGlossaryEntryCreatedV1(value: object): value is AuditLogsGlossaryEntryCreatedV1;
50
+ export declare function AuditLogsGlossaryEntryCreatedV1FromJSON(json: any): AuditLogsGlossaryEntryCreatedV1;
51
+ export declare function AuditLogsGlossaryEntryCreatedV1FromJSONTyped(json: any, ignoreDiscriminator: boolean): AuditLogsGlossaryEntryCreatedV1;
52
+ export declare function AuditLogsGlossaryEntryCreatedV1ToJSON(json: any): AuditLogsGlossaryEntryCreatedV1;
53
+ export declare function AuditLogsGlossaryEntryCreatedV1ToJSONTyped(value?: AuditLogsGlossaryEntryCreatedV1 | null, ignoreDiscriminator?: boolean): any;