@incident-io/sdk 2.10.0 → 2.12.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 (77) 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/WorkflowSlimV2.d.ts +12 -0
  28. package/dist/cjs/models/WorkflowSlimV2.js +12 -1
  29. package/dist/cjs/models/WorkflowV2.d.ts +13 -1
  30. package/dist/cjs/models/WorkflowV2.js +12 -1
  31. package/dist/cjs/models/WorkflowsCreateWorkflowPayloadV2.d.ts +13 -1
  32. package/dist/cjs/models/WorkflowsCreateWorkflowPayloadV2.js +10 -1
  33. package/dist/cjs/models/WorkflowsUpdateWorkflowPayloadV2.d.ts +13 -1
  34. package/dist/cjs/models/WorkflowsUpdateWorkflowPayloadV2.js +10 -1
  35. package/dist/cjs/models/index.d.ts +12 -0
  36. package/dist/cjs/models/index.js +12 -0
  37. package/dist/cjs/version.d.ts +1 -1
  38. package/dist/cjs/version.js +1 -1
  39. package/dist/esm/models/AuditLogExtensionPluginCreatedMetadataV2.d.ts +42 -0
  40. package/dist/esm/models/AuditLogExtensionPluginCreatedMetadataV2.js +53 -0
  41. package/dist/esm/models/AuditLogExtensionPluginUpdatedMetadataV2.d.ts +94 -0
  42. package/dist/esm/models/AuditLogExtensionPluginUpdatedMetadataV2.js +75 -0
  43. package/dist/esm/models/AuditLogInvestigationTriggerMetadataV2.d.ts +54 -0
  44. package/dist/esm/models/AuditLogInvestigationTriggerMetadataV2.js +63 -0
  45. package/dist/esm/models/AuditLogTargetV2.d.ts +3 -0
  46. package/dist/esm/models/AuditLogTargetV2.js +3 -0
  47. package/dist/esm/models/AuditLogsExtensionPluginCreatedV1.d.ts +58 -0
  48. package/dist/esm/models/AuditLogsExtensionPluginCreatedV1.js +72 -0
  49. package/dist/esm/models/AuditLogsExtensionPluginDeletedV1.d.ts +53 -0
  50. package/dist/esm/models/AuditLogsExtensionPluginDeletedV1.js +67 -0
  51. package/dist/esm/models/AuditLogsExtensionPluginUpdatedV1.d.ts +58 -0
  52. package/dist/esm/models/AuditLogsExtensionPluginUpdatedV1.js +72 -0
  53. package/dist/esm/models/AuditLogsGlossaryEntryCreatedV1.d.ts +53 -0
  54. package/dist/esm/models/AuditLogsGlossaryEntryCreatedV1.js +67 -0
  55. package/dist/esm/models/AuditLogsGlossaryEntryDeletedV1.d.ts +53 -0
  56. package/dist/esm/models/AuditLogsGlossaryEntryDeletedV1.js +67 -0
  57. package/dist/esm/models/AuditLogsGlossaryEntryUpdatedV1.d.ts +53 -0
  58. package/dist/esm/models/AuditLogsGlossaryEntryUpdatedV1.js +67 -0
  59. package/dist/esm/models/AuditLogsInvestigationTriggerCreatedV1.d.ts +58 -0
  60. package/dist/esm/models/AuditLogsInvestigationTriggerCreatedV1.js +72 -0
  61. package/dist/esm/models/AuditLogsInvestigationTriggerDeletedV1.d.ts +58 -0
  62. package/dist/esm/models/AuditLogsInvestigationTriggerDeletedV1.js +72 -0
  63. package/dist/esm/models/AuditLogsInvestigationTriggerUpdatedV1.d.ts +58 -0
  64. package/dist/esm/models/AuditLogsInvestigationTriggerUpdatedV1.js +72 -0
  65. package/dist/esm/models/WorkflowSlimV2.d.ts +12 -0
  66. package/dist/esm/models/WorkflowSlimV2.js +11 -0
  67. package/dist/esm/models/WorkflowV2.d.ts +13 -1
  68. package/dist/esm/models/WorkflowV2.js +11 -0
  69. package/dist/esm/models/WorkflowsCreateWorkflowPayloadV2.d.ts +13 -1
  70. package/dist/esm/models/WorkflowsCreateWorkflowPayloadV2.js +9 -0
  71. package/dist/esm/models/WorkflowsUpdateWorkflowPayloadV2.d.ts +13 -1
  72. package/dist/esm/models/WorkflowsUpdateWorkflowPayloadV2.js +9 -0
  73. package/dist/esm/models/index.d.ts +12 -0
  74. package/dist/esm/models/index.js +12 -0
  75. package/dist/esm/version.d.ts +1 -1
  76. package/dist/esm/version.js +1 -1
  77. package/package.json +1 -1
@@ -0,0 +1,42 @@
1
+ /**
2
+ * incident.io
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface AuditLogExtensionPluginCreatedMetadataV2
16
+ */
17
+ export interface AuditLogExtensionPluginCreatedMetadataV2 {
18
+ /**
19
+ * The source control provider the plugin's repository lives in (github, gitlab)
20
+ */
21
+ provider: string;
22
+ /**
23
+ * The name of the plugin's repository
24
+ */
25
+ repo_name: string;
26
+ /**
27
+ * The owner of the plugin's repository, including any GitLab group path
28
+ */
29
+ repo_owner: string;
30
+ /**
31
+ * The plugin's directory within the repository, absent when the plugin is the repository root
32
+ */
33
+ subpath?: string;
34
+ }
35
+ /**
36
+ * Check if a given object implements the AuditLogExtensionPluginCreatedMetadataV2 interface.
37
+ */
38
+ export declare function instanceOfAuditLogExtensionPluginCreatedMetadataV2(value: object): value is AuditLogExtensionPluginCreatedMetadataV2;
39
+ export declare function AuditLogExtensionPluginCreatedMetadataV2FromJSON(json: any): AuditLogExtensionPluginCreatedMetadataV2;
40
+ export declare function AuditLogExtensionPluginCreatedMetadataV2FromJSONTyped(json: any, ignoreDiscriminator: boolean): AuditLogExtensionPluginCreatedMetadataV2;
41
+ export declare function AuditLogExtensionPluginCreatedMetadataV2ToJSON(json: any): AuditLogExtensionPluginCreatedMetadataV2;
42
+ export declare function AuditLogExtensionPluginCreatedMetadataV2ToJSONTyped(value?: AuditLogExtensionPluginCreatedMetadataV2 | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,60 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * incident.io
6
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfAuditLogExtensionPluginCreatedMetadataV2 = instanceOfAuditLogExtensionPluginCreatedMetadataV2;
17
+ exports.AuditLogExtensionPluginCreatedMetadataV2FromJSON = AuditLogExtensionPluginCreatedMetadataV2FromJSON;
18
+ exports.AuditLogExtensionPluginCreatedMetadataV2FromJSONTyped = AuditLogExtensionPluginCreatedMetadataV2FromJSONTyped;
19
+ exports.AuditLogExtensionPluginCreatedMetadataV2ToJSON = AuditLogExtensionPluginCreatedMetadataV2ToJSON;
20
+ exports.AuditLogExtensionPluginCreatedMetadataV2ToJSONTyped = AuditLogExtensionPluginCreatedMetadataV2ToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the AuditLogExtensionPluginCreatedMetadataV2 interface.
23
+ */
24
+ function instanceOfAuditLogExtensionPluginCreatedMetadataV2(value) {
25
+ if (!('provider' in value) || value['provider'] === undefined)
26
+ return false;
27
+ if (!('repo_name' in value) || value['repo_name'] === undefined)
28
+ return false;
29
+ if (!('repo_owner' in value) || value['repo_owner'] === undefined)
30
+ return false;
31
+ return true;
32
+ }
33
+ function AuditLogExtensionPluginCreatedMetadataV2FromJSON(json) {
34
+ return AuditLogExtensionPluginCreatedMetadataV2FromJSONTyped(json, false);
35
+ }
36
+ function AuditLogExtensionPluginCreatedMetadataV2FromJSONTyped(json, ignoreDiscriminator) {
37
+ if (json == null) {
38
+ return json;
39
+ }
40
+ return {
41
+ 'provider': json['provider'],
42
+ 'repo_name': json['repo_name'],
43
+ 'repo_owner': json['repo_owner'],
44
+ 'subpath': json['subpath'] == null ? undefined : json['subpath'],
45
+ };
46
+ }
47
+ function AuditLogExtensionPluginCreatedMetadataV2ToJSON(json) {
48
+ return AuditLogExtensionPluginCreatedMetadataV2ToJSONTyped(json, false);
49
+ }
50
+ function AuditLogExtensionPluginCreatedMetadataV2ToJSONTyped(value, ignoreDiscriminator = false) {
51
+ if (value == null) {
52
+ return value;
53
+ }
54
+ return {
55
+ 'provider': value['provider'],
56
+ 'repo_name': value['repo_name'],
57
+ 'repo_owner': value['repo_owner'],
58
+ 'subpath': value['subpath'],
59
+ };
60
+ }
@@ -0,0 +1,94 @@
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 AuditLogExtensionPluginUpdatedMetadataV2
16
+ */
17
+ export interface AuditLogExtensionPluginUpdatedMetadataV2 {
18
+ /**
19
+ * Whether the plugin is mounted into agent runs after the change (true, false)
20
+ */
21
+ after_enabled?: string;
22
+ /**
23
+ * How many skills are selected after the change, absent when every skill loads
24
+ */
25
+ after_enabled_skill_count?: string;
26
+ /**
27
+ * The plugin's name after the change
28
+ */
29
+ after_name?: string;
30
+ /**
31
+ * The source control provider of the plugin's new repository (github, gitlab)
32
+ */
33
+ after_provider?: string;
34
+ /**
35
+ * The name of the plugin's new repository
36
+ */
37
+ after_repo_name?: string;
38
+ /**
39
+ * The owner of the plugin's new repository
40
+ */
41
+ after_repo_owner?: string;
42
+ /**
43
+ * Which skills load after the change: every skill, or only the selected ones (automatic, selected)
44
+ */
45
+ after_skill_selection_mode?: string;
46
+ /**
47
+ * The plugin's new directory within its repository, absent when it is the repository root
48
+ */
49
+ after_subpath?: string;
50
+ /**
51
+ * Whether the plugin was mounted into agent runs before the change (true, false)
52
+ */
53
+ before_enabled?: string;
54
+ /**
55
+ * How many skills were selected before the change, absent when every skill loaded
56
+ */
57
+ before_enabled_skill_count?: string;
58
+ /**
59
+ * The plugin's name before the change
60
+ */
61
+ before_name?: string;
62
+ /**
63
+ * The source control provider of the plugin's previous repository (github, gitlab)
64
+ */
65
+ before_provider?: string;
66
+ /**
67
+ * The name of the plugin's previous repository
68
+ */
69
+ before_repo_name?: string;
70
+ /**
71
+ * The owner of the plugin's previous repository
72
+ */
73
+ before_repo_owner?: string;
74
+ /**
75
+ * Which skills loaded before the change: every skill, or only the selected ones (automatic, selected)
76
+ */
77
+ before_skill_selection_mode?: string;
78
+ /**
79
+ * The plugin's previous directory within its repository, absent when it was the repository root
80
+ */
81
+ before_subpath?: string;
82
+ /**
83
+ * What the update changed, comma separated (enabled, skill_selection, name, location)
84
+ */
85
+ changed: string;
86
+ }
87
+ /**
88
+ * Check if a given object implements the AuditLogExtensionPluginUpdatedMetadataV2 interface.
89
+ */
90
+ export declare function instanceOfAuditLogExtensionPluginUpdatedMetadataV2(value: object): value is AuditLogExtensionPluginUpdatedMetadataV2;
91
+ export declare function AuditLogExtensionPluginUpdatedMetadataV2FromJSON(json: any): AuditLogExtensionPluginUpdatedMetadataV2;
92
+ export declare function AuditLogExtensionPluginUpdatedMetadataV2FromJSONTyped(json: any, ignoreDiscriminator: boolean): AuditLogExtensionPluginUpdatedMetadataV2;
93
+ export declare function AuditLogExtensionPluginUpdatedMetadataV2ToJSON(json: any): AuditLogExtensionPluginUpdatedMetadataV2;
94
+ export declare function AuditLogExtensionPluginUpdatedMetadataV2ToJSONTyped(value?: AuditLogExtensionPluginUpdatedMetadataV2 | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,82 @@
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.instanceOfAuditLogExtensionPluginUpdatedMetadataV2 = instanceOfAuditLogExtensionPluginUpdatedMetadataV2;
17
+ exports.AuditLogExtensionPluginUpdatedMetadataV2FromJSON = AuditLogExtensionPluginUpdatedMetadataV2FromJSON;
18
+ exports.AuditLogExtensionPluginUpdatedMetadataV2FromJSONTyped = AuditLogExtensionPluginUpdatedMetadataV2FromJSONTyped;
19
+ exports.AuditLogExtensionPluginUpdatedMetadataV2ToJSON = AuditLogExtensionPluginUpdatedMetadataV2ToJSON;
20
+ exports.AuditLogExtensionPluginUpdatedMetadataV2ToJSONTyped = AuditLogExtensionPluginUpdatedMetadataV2ToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the AuditLogExtensionPluginUpdatedMetadataV2 interface.
23
+ */
24
+ function instanceOfAuditLogExtensionPluginUpdatedMetadataV2(value) {
25
+ if (!('changed' in value) || value['changed'] === undefined)
26
+ return false;
27
+ return true;
28
+ }
29
+ function AuditLogExtensionPluginUpdatedMetadataV2FromJSON(json) {
30
+ return AuditLogExtensionPluginUpdatedMetadataV2FromJSONTyped(json, false);
31
+ }
32
+ function AuditLogExtensionPluginUpdatedMetadataV2FromJSONTyped(json, ignoreDiscriminator) {
33
+ if (json == null) {
34
+ return json;
35
+ }
36
+ return {
37
+ 'after_enabled': json['after_enabled'] == null ? undefined : json['after_enabled'],
38
+ 'after_enabled_skill_count': json['after_enabled_skill_count'] == null ? undefined : json['after_enabled_skill_count'],
39
+ 'after_name': json['after_name'] == null ? undefined : json['after_name'],
40
+ 'after_provider': json['after_provider'] == null ? undefined : json['after_provider'],
41
+ 'after_repo_name': json['after_repo_name'] == null ? undefined : json['after_repo_name'],
42
+ 'after_repo_owner': json['after_repo_owner'] == null ? undefined : json['after_repo_owner'],
43
+ 'after_skill_selection_mode': json['after_skill_selection_mode'] == null ? undefined : json['after_skill_selection_mode'],
44
+ 'after_subpath': json['after_subpath'] == null ? undefined : json['after_subpath'],
45
+ 'before_enabled': json['before_enabled'] == null ? undefined : json['before_enabled'],
46
+ 'before_enabled_skill_count': json['before_enabled_skill_count'] == null ? undefined : json['before_enabled_skill_count'],
47
+ 'before_name': json['before_name'] == null ? undefined : json['before_name'],
48
+ 'before_provider': json['before_provider'] == null ? undefined : json['before_provider'],
49
+ 'before_repo_name': json['before_repo_name'] == null ? undefined : json['before_repo_name'],
50
+ 'before_repo_owner': json['before_repo_owner'] == null ? undefined : json['before_repo_owner'],
51
+ 'before_skill_selection_mode': json['before_skill_selection_mode'] == null ? undefined : json['before_skill_selection_mode'],
52
+ 'before_subpath': json['before_subpath'] == null ? undefined : json['before_subpath'],
53
+ 'changed': json['changed'],
54
+ };
55
+ }
56
+ function AuditLogExtensionPluginUpdatedMetadataV2ToJSON(json) {
57
+ return AuditLogExtensionPluginUpdatedMetadataV2ToJSONTyped(json, false);
58
+ }
59
+ function AuditLogExtensionPluginUpdatedMetadataV2ToJSONTyped(value, ignoreDiscriminator = false) {
60
+ if (value == null) {
61
+ return value;
62
+ }
63
+ return {
64
+ 'after_enabled': value['after_enabled'],
65
+ 'after_enabled_skill_count': value['after_enabled_skill_count'],
66
+ 'after_name': value['after_name'],
67
+ 'after_provider': value['after_provider'],
68
+ 'after_repo_name': value['after_repo_name'],
69
+ 'after_repo_owner': value['after_repo_owner'],
70
+ 'after_skill_selection_mode': value['after_skill_selection_mode'],
71
+ 'after_subpath': value['after_subpath'],
72
+ 'before_enabled': value['before_enabled'],
73
+ 'before_enabled_skill_count': value['before_enabled_skill_count'],
74
+ 'before_name': value['before_name'],
75
+ 'before_provider': value['before_provider'],
76
+ 'before_repo_name': value['before_repo_name'],
77
+ 'before_repo_owner': value['before_repo_owner'],
78
+ 'before_skill_selection_mode': value['before_skill_selection_mode'],
79
+ 'before_subpath': value['before_subpath'],
80
+ 'changed': value['changed'],
81
+ };
82
+ }
@@ -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,70 @@
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.instanceOfAuditLogInvestigationTriggerMetadataV2 = instanceOfAuditLogInvestigationTriggerMetadataV2;
17
+ exports.AuditLogInvestigationTriggerMetadataV2FromJSON = AuditLogInvestigationTriggerMetadataV2FromJSON;
18
+ exports.AuditLogInvestigationTriggerMetadataV2FromJSONTyped = AuditLogInvestigationTriggerMetadataV2FromJSONTyped;
19
+ exports.AuditLogInvestigationTriggerMetadataV2ToJSON = AuditLogInvestigationTriggerMetadataV2ToJSON;
20
+ exports.AuditLogInvestigationTriggerMetadataV2ToJSONTyped = AuditLogInvestigationTriggerMetadataV2ToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the AuditLogInvestigationTriggerMetadataV2 interface.
23
+ */
24
+ function instanceOfAuditLogInvestigationTriggerMetadataV2(value) {
25
+ if (!('blocks' in value) || value['blocks'] === undefined)
26
+ return false;
27
+ if (!('enabled' in value) || value['enabled'] === undefined)
28
+ return false;
29
+ if (!('frequency' in value) || value['frequency'] === undefined)
30
+ return false;
31
+ if (!('moment' in value) || value['moment'] === undefined)
32
+ return false;
33
+ if (!('task_set' in value) || value['task_set'] === undefined)
34
+ return false;
35
+ return true;
36
+ }
37
+ function AuditLogInvestigationTriggerMetadataV2FromJSON(json) {
38
+ return AuditLogInvestigationTriggerMetadataV2FromJSONTyped(json, false);
39
+ }
40
+ function AuditLogInvestigationTriggerMetadataV2FromJSONTyped(json, ignoreDiscriminator) {
41
+ if (json == null) {
42
+ return json;
43
+ }
44
+ return {
45
+ 'blocks': json['blocks'],
46
+ 'enabled': json['enabled'],
47
+ 'frequency': json['frequency'],
48
+ 'moment': json['moment'],
49
+ 'plugin_id': json['plugin_id'] == null ? undefined : json['plugin_id'],
50
+ 'skill': json['skill'] == null ? undefined : json['skill'],
51
+ 'task_set': json['task_set'],
52
+ };
53
+ }
54
+ function AuditLogInvestigationTriggerMetadataV2ToJSON(json) {
55
+ return AuditLogInvestigationTriggerMetadataV2ToJSONTyped(json, false);
56
+ }
57
+ function AuditLogInvestigationTriggerMetadataV2ToJSONTyped(value, ignoreDiscriminator = false) {
58
+ if (value == null) {
59
+ return value;
60
+ }
61
+ return {
62
+ 'blocks': value['blocks'],
63
+ 'enabled': value['enabled'],
64
+ 'frequency': value['frequency'],
65
+ 'moment': value['moment'],
66
+ 'plugin_id': value['plugin_id'],
67
+ 'skill': value['skill'],
68
+ 'task_set': value['task_set'],
69
+ };
70
+ }
@@ -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";
@@ -43,6 +43,9 @@ exports.AuditLogTargetV2TypeEnum = {
43
43
  EscalationPathTemplate: 'escalation_path_template',
44
44
  ExtensionConnector: 'extension_connector',
45
45
  ExtensionConnectorTool: 'extension_connector_tool',
46
+ ExtensionPlugin: 'extension_plugin',
47
+ GlossaryEntry: 'glossary_entry',
48
+ InvestigationTrigger: 'investigation_trigger',
46
49
  FollowUpCategory: 'follow_up_category',
47
50
  FollowUpPriority: 'follow_up_priority',
48
51
  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,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.instanceOfAuditLogsExtensionPluginCreatedV1 = instanceOfAuditLogsExtensionPluginCreatedV1;
17
+ exports.AuditLogsExtensionPluginCreatedV1FromJSON = AuditLogsExtensionPluginCreatedV1FromJSON;
18
+ exports.AuditLogsExtensionPluginCreatedV1FromJSONTyped = AuditLogsExtensionPluginCreatedV1FromJSONTyped;
19
+ exports.AuditLogsExtensionPluginCreatedV1ToJSON = AuditLogsExtensionPluginCreatedV1ToJSON;
20
+ exports.AuditLogsExtensionPluginCreatedV1ToJSONTyped = AuditLogsExtensionPluginCreatedV1ToJSONTyped;
21
+ const runtime_js_1 = require("../runtime.js");
22
+ const AuditLogActorV2_js_1 = require("./AuditLogActorV2.js");
23
+ const AuditLogExtensionPluginCreatedMetadataV2_js_1 = require("./AuditLogExtensionPluginCreatedMetadataV2.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 AuditLogsExtensionPluginCreatedV1 interface.
28
+ */
29
+ function instanceOfAuditLogsExtensionPluginCreatedV1(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 AuditLogsExtensionPluginCreatedV1FromJSON(json) {
47
+ return AuditLogsExtensionPluginCreatedV1FromJSONTyped(json, false);
48
+ }
49
+ function AuditLogsExtensionPluginCreatedV1FromJSONTyped(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, AuditLogExtensionPluginCreatedMetadataV2_js_1.AuditLogExtensionPluginCreatedMetadataV2FromJSON)(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 AuditLogsExtensionPluginCreatedV1ToJSON(json) {
64
+ return AuditLogsExtensionPluginCreatedV1ToJSONTyped(json, false);
65
+ }
66
+ function AuditLogsExtensionPluginCreatedV1ToJSONTyped(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, AuditLogExtensionPluginCreatedMetadataV2_js_1.AuditLogExtensionPluginCreatedMetadataV2ToJSON)(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 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;