@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,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.instanceOfAuditLogsInvestigationTriggerCreatedV1 = instanceOfAuditLogsInvestigationTriggerCreatedV1;
17
+ exports.AuditLogsInvestigationTriggerCreatedV1FromJSON = AuditLogsInvestigationTriggerCreatedV1FromJSON;
18
+ exports.AuditLogsInvestigationTriggerCreatedV1FromJSONTyped = AuditLogsInvestigationTriggerCreatedV1FromJSONTyped;
19
+ exports.AuditLogsInvestigationTriggerCreatedV1ToJSON = AuditLogsInvestigationTriggerCreatedV1ToJSON;
20
+ exports.AuditLogsInvestigationTriggerCreatedV1ToJSONTyped = AuditLogsInvestigationTriggerCreatedV1ToJSONTyped;
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 AuditLogInvestigationTriggerMetadataV2_js_1 = require("./AuditLogInvestigationTriggerMetadataV2.js");
25
+ const AuditLogTargetV2_js_1 = require("./AuditLogTargetV2.js");
26
+ /**
27
+ * Check if a given object implements the AuditLogsInvestigationTriggerCreatedV1 interface.
28
+ */
29
+ function instanceOfAuditLogsInvestigationTriggerCreatedV1(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 AuditLogsInvestigationTriggerCreatedV1FromJSON(json) {
47
+ return AuditLogsInvestigationTriggerCreatedV1FromJSONTyped(json, false);
48
+ }
49
+ function AuditLogsInvestigationTriggerCreatedV1FromJSONTyped(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, AuditLogInvestigationTriggerMetadataV2_js_1.AuditLogInvestigationTriggerMetadataV2FromJSON)(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 AuditLogsInvestigationTriggerCreatedV1ToJSON(json) {
64
+ return AuditLogsInvestigationTriggerCreatedV1ToJSONTyped(json, false);
65
+ }
66
+ function AuditLogsInvestigationTriggerCreatedV1ToJSONTyped(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, AuditLogInvestigationTriggerMetadataV2_js_1.AuditLogInvestigationTriggerMetadataV2ToJSON)(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,58 @@
1
+ /**
2
+ * incident.io
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { AuditLogActorV2 } from './AuditLogActorV2.js';
13
+ import type { AuditLogEntryContextV2 } from './AuditLogEntryContextV2.js';
14
+ import type { AuditLogInvestigationTriggerMetadataV2 } from './AuditLogInvestigationTriggerMetadataV2.js';
15
+ import type { AuditLogTargetV2 } from './AuditLogTargetV2.js';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface AuditLogsInvestigationTriggerDeletedV1
20
+ */
21
+ export interface AuditLogsInvestigationTriggerDeletedV1 {
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: AuditLogInvestigationTriggerMetadataV2;
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 AuditLogsInvestigationTriggerDeletedV1 interface.
53
+ */
54
+ export declare function instanceOfAuditLogsInvestigationTriggerDeletedV1(value: object): value is AuditLogsInvestigationTriggerDeletedV1;
55
+ export declare function AuditLogsInvestigationTriggerDeletedV1FromJSON(json: any): AuditLogsInvestigationTriggerDeletedV1;
56
+ export declare function AuditLogsInvestigationTriggerDeletedV1FromJSONTyped(json: any, ignoreDiscriminator: boolean): AuditLogsInvestigationTriggerDeletedV1;
57
+ export declare function AuditLogsInvestigationTriggerDeletedV1ToJSON(json: any): AuditLogsInvestigationTriggerDeletedV1;
58
+ export declare function AuditLogsInvestigationTriggerDeletedV1ToJSONTyped(value?: AuditLogsInvestigationTriggerDeletedV1 | 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.instanceOfAuditLogsInvestigationTriggerDeletedV1 = instanceOfAuditLogsInvestigationTriggerDeletedV1;
17
+ exports.AuditLogsInvestigationTriggerDeletedV1FromJSON = AuditLogsInvestigationTriggerDeletedV1FromJSON;
18
+ exports.AuditLogsInvestigationTriggerDeletedV1FromJSONTyped = AuditLogsInvestigationTriggerDeletedV1FromJSONTyped;
19
+ exports.AuditLogsInvestigationTriggerDeletedV1ToJSON = AuditLogsInvestigationTriggerDeletedV1ToJSON;
20
+ exports.AuditLogsInvestigationTriggerDeletedV1ToJSONTyped = AuditLogsInvestigationTriggerDeletedV1ToJSONTyped;
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 AuditLogInvestigationTriggerMetadataV2_js_1 = require("./AuditLogInvestigationTriggerMetadataV2.js");
25
+ const AuditLogTargetV2_js_1 = require("./AuditLogTargetV2.js");
26
+ /**
27
+ * Check if a given object implements the AuditLogsInvestigationTriggerDeletedV1 interface.
28
+ */
29
+ function instanceOfAuditLogsInvestigationTriggerDeletedV1(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 AuditLogsInvestigationTriggerDeletedV1FromJSON(json) {
47
+ return AuditLogsInvestigationTriggerDeletedV1FromJSONTyped(json, false);
48
+ }
49
+ function AuditLogsInvestigationTriggerDeletedV1FromJSONTyped(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, AuditLogInvestigationTriggerMetadataV2_js_1.AuditLogInvestigationTriggerMetadataV2FromJSON)(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 AuditLogsInvestigationTriggerDeletedV1ToJSON(json) {
64
+ return AuditLogsInvestigationTriggerDeletedV1ToJSONTyped(json, false);
65
+ }
66
+ function AuditLogsInvestigationTriggerDeletedV1ToJSONTyped(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, AuditLogInvestigationTriggerMetadataV2_js_1.AuditLogInvestigationTriggerMetadataV2ToJSON)(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,58 @@
1
+ /**
2
+ * incident.io
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { AuditLogActorV2 } from './AuditLogActorV2.js';
13
+ import type { AuditLogEntryContextV2 } from './AuditLogEntryContextV2.js';
14
+ import type { AuditLogInvestigationTriggerMetadataV2 } from './AuditLogInvestigationTriggerMetadataV2.js';
15
+ import type { AuditLogTargetV2 } from './AuditLogTargetV2.js';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface AuditLogsInvestigationTriggerUpdatedV1
20
+ */
21
+ export interface AuditLogsInvestigationTriggerUpdatedV1 {
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: AuditLogInvestigationTriggerMetadataV2;
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 AuditLogsInvestigationTriggerUpdatedV1 interface.
53
+ */
54
+ export declare function instanceOfAuditLogsInvestigationTriggerUpdatedV1(value: object): value is AuditLogsInvestigationTriggerUpdatedV1;
55
+ export declare function AuditLogsInvestigationTriggerUpdatedV1FromJSON(json: any): AuditLogsInvestigationTriggerUpdatedV1;
56
+ export declare function AuditLogsInvestigationTriggerUpdatedV1FromJSONTyped(json: any, ignoreDiscriminator: boolean): AuditLogsInvestigationTriggerUpdatedV1;
57
+ export declare function AuditLogsInvestigationTriggerUpdatedV1ToJSON(json: any): AuditLogsInvestigationTriggerUpdatedV1;
58
+ export declare function AuditLogsInvestigationTriggerUpdatedV1ToJSONTyped(value?: AuditLogsInvestigationTriggerUpdatedV1 | 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.instanceOfAuditLogsInvestigationTriggerUpdatedV1 = instanceOfAuditLogsInvestigationTriggerUpdatedV1;
17
+ exports.AuditLogsInvestigationTriggerUpdatedV1FromJSON = AuditLogsInvestigationTriggerUpdatedV1FromJSON;
18
+ exports.AuditLogsInvestigationTriggerUpdatedV1FromJSONTyped = AuditLogsInvestigationTriggerUpdatedV1FromJSONTyped;
19
+ exports.AuditLogsInvestigationTriggerUpdatedV1ToJSON = AuditLogsInvestigationTriggerUpdatedV1ToJSON;
20
+ exports.AuditLogsInvestigationTriggerUpdatedV1ToJSONTyped = AuditLogsInvestigationTriggerUpdatedV1ToJSONTyped;
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 AuditLogInvestigationTriggerMetadataV2_js_1 = require("./AuditLogInvestigationTriggerMetadataV2.js");
25
+ const AuditLogTargetV2_js_1 = require("./AuditLogTargetV2.js");
26
+ /**
27
+ * Check if a given object implements the AuditLogsInvestigationTriggerUpdatedV1 interface.
28
+ */
29
+ function instanceOfAuditLogsInvestigationTriggerUpdatedV1(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 AuditLogsInvestigationTriggerUpdatedV1FromJSON(json) {
47
+ return AuditLogsInvestigationTriggerUpdatedV1FromJSONTyped(json, false);
48
+ }
49
+ function AuditLogsInvestigationTriggerUpdatedV1FromJSONTyped(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, AuditLogInvestigationTriggerMetadataV2_js_1.AuditLogInvestigationTriggerMetadataV2FromJSON)(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 AuditLogsInvestigationTriggerUpdatedV1ToJSON(json) {
64
+ return AuditLogsInvestigationTriggerUpdatedV1ToJSONTyped(json, false);
65
+ }
66
+ function AuditLogsInvestigationTriggerUpdatedV1ToJSONTyped(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, AuditLogInvestigationTriggerMetadataV2_js_1.AuditLogInvestigationTriggerMetadataV2ToJSON)(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
+ }
@@ -21,6 +21,10 @@ import type { TriggerSlimV2 } from './TriggerSlimV2.js';
21
21
  * @interface WorkflowSlimV2
22
22
  */
23
23
  export interface WorkflowSlimV2 {
24
+ /**
25
+ * Whether the workflow is configured to run immediately or ask for confirmation in the incident channel
26
+ */
27
+ auto_run_mode: WorkflowSlimV2AutoRunModeEnum;
24
28
  /**
25
29
  * Conditions that apply to the workflow trigger
26
30
  */
@@ -102,6 +106,14 @@ export interface WorkflowSlimV2 {
102
106
  */
103
107
  version: number;
104
108
  }
109
+ /**
110
+ * @export
111
+ */
112
+ export declare const WorkflowSlimV2AutoRunModeEnum: {
113
+ readonly RunAutomatically: "run_automatically";
114
+ readonly ConfirmBeforeRunning: "confirm_before_running";
115
+ };
116
+ export type WorkflowSlimV2AutoRunModeEnum = typeof WorkflowSlimV2AutoRunModeEnum[keyof typeof WorkflowSlimV2AutoRunModeEnum];
105
117
  /**
106
118
  * @export
107
119
  */
@@ -13,7 +13,7 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.WorkflowSlimV2StateEnum = exports.WorkflowSlimV2RunsOnIncidentsEnum = exports.WorkflowSlimV2RunsOnIncidentModesEnum = exports.WorkflowSlimV2PrivateIncidentScopeEnum = void 0;
16
+ exports.WorkflowSlimV2StateEnum = exports.WorkflowSlimV2RunsOnIncidentsEnum = exports.WorkflowSlimV2RunsOnIncidentModesEnum = exports.WorkflowSlimV2PrivateIncidentScopeEnum = exports.WorkflowSlimV2AutoRunModeEnum = void 0;
17
17
  exports.instanceOfWorkflowSlimV2 = instanceOfWorkflowSlimV2;
18
18
  exports.WorkflowSlimV2FromJSON = WorkflowSlimV2FromJSON;
19
19
  exports.WorkflowSlimV2FromJSONTyped = WorkflowSlimV2FromJSONTyped;
@@ -26,6 +26,13 @@ const WorkflowDelayV2_js_1 = require("./WorkflowDelayV2.js");
26
26
  const ConditionGroupV2_js_1 = require("./ConditionGroupV2.js");
27
27
  const EngineReferenceV2_js_1 = require("./EngineReferenceV2.js");
28
28
  const TriggerSlimV2_js_1 = require("./TriggerSlimV2.js");
29
+ /**
30
+ * @export
31
+ */
32
+ exports.WorkflowSlimV2AutoRunModeEnum = {
33
+ RunAutomatically: 'run_automatically',
34
+ ConfirmBeforeRunning: 'confirm_before_running',
35
+ };
29
36
  /**
30
37
  * @export
31
38
  */
@@ -62,6 +69,8 @@ exports.WorkflowSlimV2StateEnum = {
62
69
  * Check if a given object implements the WorkflowSlimV2 interface.
63
70
  */
64
71
  function instanceOfWorkflowSlimV2(value) {
72
+ if (!('auto_run_mode' in value) || value['auto_run_mode'] === undefined)
73
+ return false;
65
74
  if (!('condition_groups' in value) || value['condition_groups'] === undefined)
66
75
  return false;
67
76
  if (!('continue_on_step_error' in value) || value['continue_on_step_error'] === undefined)
@@ -102,6 +111,7 @@ function WorkflowSlimV2FromJSONTyped(json, ignoreDiscriminator) {
102
111
  return json;
103
112
  }
104
113
  return {
114
+ 'auto_run_mode': json['auto_run_mode'],
105
115
  'condition_groups': (json['condition_groups'].map(ConditionGroupV2_js_1.ConditionGroupV2FromJSON)),
106
116
  'continue_on_step_error': json['continue_on_step_error'],
107
117
  'delay': json['delay'] == null ? undefined : (0, WorkflowDelayV2_js_1.WorkflowDelayV2FromJSON)(json['delay']),
@@ -132,6 +142,7 @@ function WorkflowSlimV2ToJSONTyped(value, ignoreDiscriminator = false) {
132
142
  return value;
133
143
  }
134
144
  return {
145
+ 'auto_run_mode': value['auto_run_mode'],
135
146
  'condition_groups': (value['condition_groups'].map(ConditionGroupV2_js_1.ConditionGroupV2ToJSON)),
136
147
  'continue_on_step_error': value['continue_on_step_error'],
137
148
  'delay': (0, WorkflowDelayV2_js_1.WorkflowDelayV2ToJSON)(value['delay']),
@@ -22,6 +22,10 @@ import type { TriggerSlimV2 } from './TriggerSlimV2.js';
22
22
  * @interface WorkflowV2
23
23
  */
24
24
  export interface WorkflowV2 {
25
+ /**
26
+ * Whether the workflow is configured to run immediately or ask for confirmation in the incident channel
27
+ */
28
+ auto_run_mode: WorkflowV2AutoRunModeEnum;
25
29
  /**
26
30
  * Conditions that apply to the workflow trigger
27
31
  */
@@ -43,7 +47,7 @@ export interface WorkflowV2 {
43
47
  */
44
48
  folder?: string;
45
49
  /**
46
- * User-configured form fields available in the workflow scope (manual triggers only)
50
+ * User-configured form fields available in the workflow scope. Allowed on manually-triggered workflows, and on workflows with an `auto_run_mode` of `confirm_before_running`.
47
51
  */
48
52
  form_fields?: Array<WorkflowFormFieldV2>;
49
53
  /**
@@ -107,6 +111,14 @@ export interface WorkflowV2 {
107
111
  */
108
112
  version: number;
109
113
  }
114
+ /**
115
+ * @export
116
+ */
117
+ export declare const WorkflowV2AutoRunModeEnum: {
118
+ readonly RunAutomatically: "run_automatically";
119
+ readonly ConfirmBeforeRunning: "confirm_before_running";
120
+ };
121
+ export type WorkflowV2AutoRunModeEnum = typeof WorkflowV2AutoRunModeEnum[keyof typeof WorkflowV2AutoRunModeEnum];
110
122
  /**
111
123
  * @export
112
124
  */
@@ -13,7 +13,7 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.WorkflowV2StateEnum = exports.WorkflowV2RunsOnIncidentsEnum = exports.WorkflowV2RunsOnIncidentModesEnum = exports.WorkflowV2PrivateIncidentScopeEnum = void 0;
16
+ exports.WorkflowV2StateEnum = exports.WorkflowV2RunsOnIncidentsEnum = exports.WorkflowV2RunsOnIncidentModesEnum = exports.WorkflowV2PrivateIncidentScopeEnum = exports.WorkflowV2AutoRunModeEnum = void 0;
17
17
  exports.instanceOfWorkflowV2 = instanceOfWorkflowV2;
18
18
  exports.WorkflowV2FromJSON = WorkflowV2FromJSON;
19
19
  exports.WorkflowV2FromJSONTyped = WorkflowV2FromJSONTyped;
@@ -27,6 +27,13 @@ const WorkflowDelayV2_js_1 = require("./WorkflowDelayV2.js");
27
27
  const ConditionGroupV2_js_1 = require("./ConditionGroupV2.js");
28
28
  const EngineReferenceV2_js_1 = require("./EngineReferenceV2.js");
29
29
  const TriggerSlimV2_js_1 = require("./TriggerSlimV2.js");
30
+ /**
31
+ * @export
32
+ */
33
+ exports.WorkflowV2AutoRunModeEnum = {
34
+ RunAutomatically: 'run_automatically',
35
+ ConfirmBeforeRunning: 'confirm_before_running',
36
+ };
30
37
  /**
31
38
  * @export
32
39
  */
@@ -63,6 +70,8 @@ exports.WorkflowV2StateEnum = {
63
70
  * Check if a given object implements the WorkflowV2 interface.
64
71
  */
65
72
  function instanceOfWorkflowV2(value) {
73
+ if (!('auto_run_mode' in value) || value['auto_run_mode'] === undefined)
74
+ return false;
66
75
  if (!('condition_groups' in value) || value['condition_groups'] === undefined)
67
76
  return false;
68
77
  if (!('continue_on_step_error' in value) || value['continue_on_step_error'] === undefined)
@@ -103,6 +112,7 @@ function WorkflowV2FromJSONTyped(json, ignoreDiscriminator) {
103
112
  return json;
104
113
  }
105
114
  return {
115
+ 'auto_run_mode': json['auto_run_mode'],
106
116
  'condition_groups': (json['condition_groups'].map(ConditionGroupV2_js_1.ConditionGroupV2FromJSON)),
107
117
  'continue_on_step_error': json['continue_on_step_error'],
108
118
  'delay': json['delay'] == null ? undefined : (0, WorkflowDelayV2_js_1.WorkflowDelayV2FromJSON)(json['delay']),
@@ -134,6 +144,7 @@ function WorkflowV2ToJSONTyped(value, ignoreDiscriminator = false) {
134
144
  return value;
135
145
  }
136
146
  return {
147
+ 'auto_run_mode': value['auto_run_mode'],
137
148
  'condition_groups': (value['condition_groups'].map(ConditionGroupV2_js_1.ConditionGroupV2ToJSON)),
138
149
  'continue_on_step_error': value['continue_on_step_error'],
139
150
  'delay': (0, WorkflowDelayV2_js_1.WorkflowDelayV2ToJSON)(value['delay']),
@@ -26,6 +26,10 @@ export interface WorkflowsCreateWorkflowPayloadV2 {
26
26
  annotations?: {
27
27
  [key: string]: string;
28
28
  };
29
+ /**
30
+ * Whether the workflow runs immediately, or asks for confirmation in the incident channel first. Defaults to `run_automatically` on create. If omitted on update, the workflow keeps its current mode.
31
+ */
32
+ auto_run_mode?: WorkflowsCreateWorkflowPayloadV2AutoRunModeEnum;
29
33
  /**
30
34
  * Conditions that apply to the workflow trigger
31
35
  */
@@ -47,7 +51,7 @@ export interface WorkflowsCreateWorkflowPayloadV2 {
47
51
  */
48
52
  folder?: string;
49
53
  /**
50
- * User-configured form fields available in the workflow scope (manual triggers only)
54
+ * User-configured form fields available in the workflow scope. Allowed on manually-triggered workflows, and on workflows with an `auto_run_mode` of `confirm_before_running`.
51
55
  */
52
56
  form_fields?: Array<WorkflowFormFieldPayloadV2>;
53
57
  /**
@@ -99,6 +103,14 @@ export interface WorkflowsCreateWorkflowPayloadV2 {
99
103
  */
100
104
  trigger: string;
101
105
  }
106
+ /**
107
+ * @export
108
+ */
109
+ export declare const WorkflowsCreateWorkflowPayloadV2AutoRunModeEnum: {
110
+ readonly RunAutomatically: "run_automatically";
111
+ readonly ConfirmBeforeRunning: "confirm_before_running";
112
+ };
113
+ export type WorkflowsCreateWorkflowPayloadV2AutoRunModeEnum = typeof WorkflowsCreateWorkflowPayloadV2AutoRunModeEnum[keyof typeof WorkflowsCreateWorkflowPayloadV2AutoRunModeEnum];
102
114
  /**
103
115
  * @export
104
116
  */
@@ -13,7 +13,7 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.WorkflowsCreateWorkflowPayloadV2StateEnum = exports.WorkflowsCreateWorkflowPayloadV2RunsOnIncidentsEnum = exports.WorkflowsCreateWorkflowPayloadV2RunsOnIncidentModesEnum = exports.WorkflowsCreateWorkflowPayloadV2PrivateIncidentScopeEnum = void 0;
16
+ exports.WorkflowsCreateWorkflowPayloadV2StateEnum = exports.WorkflowsCreateWorkflowPayloadV2RunsOnIncidentsEnum = exports.WorkflowsCreateWorkflowPayloadV2RunsOnIncidentModesEnum = exports.WorkflowsCreateWorkflowPayloadV2PrivateIncidentScopeEnum = exports.WorkflowsCreateWorkflowPayloadV2AutoRunModeEnum = void 0;
17
17
  exports.instanceOfWorkflowsCreateWorkflowPayloadV2 = instanceOfWorkflowsCreateWorkflowPayloadV2;
18
18
  exports.WorkflowsCreateWorkflowPayloadV2FromJSON = WorkflowsCreateWorkflowPayloadV2FromJSON;
19
19
  exports.WorkflowsCreateWorkflowPayloadV2FromJSONTyped = WorkflowsCreateWorkflowPayloadV2FromJSONTyped;
@@ -24,6 +24,13 @@ const StepConfigPayloadV2_js_1 = require("./StepConfigPayloadV2.js");
24
24
  const WorkflowFormFieldPayloadV2_js_1 = require("./WorkflowFormFieldPayloadV2.js");
25
25
  const WorkflowDelayV2_js_1 = require("./WorkflowDelayV2.js");
26
26
  const ConditionGroupPayloadV2_js_1 = require("./ConditionGroupPayloadV2.js");
27
+ /**
28
+ * @export
29
+ */
30
+ exports.WorkflowsCreateWorkflowPayloadV2AutoRunModeEnum = {
31
+ RunAutomatically: 'run_automatically',
32
+ ConfirmBeforeRunning: 'confirm_before_running',
33
+ };
27
34
  /**
28
35
  * @export
29
36
  */
@@ -89,6 +96,7 @@ function WorkflowsCreateWorkflowPayloadV2FromJSONTyped(json, ignoreDiscriminator
89
96
  }
90
97
  return {
91
98
  'annotations': json['annotations'] == null ? undefined : json['annotations'],
99
+ 'auto_run_mode': json['auto_run_mode'] == null ? undefined : json['auto_run_mode'],
92
100
  'condition_groups': (json['condition_groups'].map(ConditionGroupPayloadV2_js_1.ConditionGroupPayloadV2FromJSON)),
93
101
  'continue_on_step_error': json['continue_on_step_error'],
94
102
  'delay': json['delay'] == null ? undefined : (0, WorkflowDelayV2_js_1.WorkflowDelayV2FromJSON)(json['delay']),
@@ -118,6 +126,7 @@ function WorkflowsCreateWorkflowPayloadV2ToJSONTyped(value, ignoreDiscriminator
118
126
  }
119
127
  return {
120
128
  'annotations': value['annotations'],
129
+ 'auto_run_mode': value['auto_run_mode'],
121
130
  'condition_groups': (value['condition_groups'].map(ConditionGroupPayloadV2_js_1.ConditionGroupPayloadV2ToJSON)),
122
131
  'continue_on_step_error': value['continue_on_step_error'],
123
132
  'delay': (0, WorkflowDelayV2_js_1.WorkflowDelayV2ToJSON)(value['delay']),
@@ -26,6 +26,10 @@ export interface WorkflowsUpdateWorkflowPayloadV2 {
26
26
  annotations?: {
27
27
  [key: string]: string;
28
28
  };
29
+ /**
30
+ * Whether the workflow runs immediately, or asks for confirmation in the incident channel first. Defaults to `run_automatically` on create. If omitted on update, the workflow keeps its current mode.
31
+ */
32
+ auto_run_mode?: WorkflowsUpdateWorkflowPayloadV2AutoRunModeEnum;
29
33
  /**
30
34
  * Conditions that apply to the workflow trigger
31
35
  */
@@ -47,7 +51,7 @@ export interface WorkflowsUpdateWorkflowPayloadV2 {
47
51
  */
48
52
  folder?: string;
49
53
  /**
50
- * User-configured form fields available in the workflow scope (manual triggers only)
54
+ * User-configured form fields available in the workflow scope. Allowed on manually-triggered workflows, and on workflows with an `auto_run_mode` of `confirm_before_running`.
51
55
  */
52
56
  form_fields?: Array<WorkflowFormFieldPayloadV2>;
53
57
  /**
@@ -99,6 +103,14 @@ export interface WorkflowsUpdateWorkflowPayloadV2 {
99
103
  */
100
104
  steps: Array<StepConfigPayloadV2>;
101
105
  }
106
+ /**
107
+ * @export
108
+ */
109
+ export declare const WorkflowsUpdateWorkflowPayloadV2AutoRunModeEnum: {
110
+ readonly RunAutomatically: "run_automatically";
111
+ readonly ConfirmBeforeRunning: "confirm_before_running";
112
+ };
113
+ export type WorkflowsUpdateWorkflowPayloadV2AutoRunModeEnum = typeof WorkflowsUpdateWorkflowPayloadV2AutoRunModeEnum[keyof typeof WorkflowsUpdateWorkflowPayloadV2AutoRunModeEnum];
102
114
  /**
103
115
  * @export
104
116
  */
@@ -13,7 +13,7 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.WorkflowsUpdateWorkflowPayloadV2StateEnum = exports.WorkflowsUpdateWorkflowPayloadV2RunsOnIncidentsEnum = exports.WorkflowsUpdateWorkflowPayloadV2RunsOnIncidentModesEnum = exports.WorkflowsUpdateWorkflowPayloadV2PrivateIncidentScopeEnum = void 0;
16
+ exports.WorkflowsUpdateWorkflowPayloadV2StateEnum = exports.WorkflowsUpdateWorkflowPayloadV2RunsOnIncidentsEnum = exports.WorkflowsUpdateWorkflowPayloadV2RunsOnIncidentModesEnum = exports.WorkflowsUpdateWorkflowPayloadV2PrivateIncidentScopeEnum = exports.WorkflowsUpdateWorkflowPayloadV2AutoRunModeEnum = void 0;
17
17
  exports.instanceOfWorkflowsUpdateWorkflowPayloadV2 = instanceOfWorkflowsUpdateWorkflowPayloadV2;
18
18
  exports.WorkflowsUpdateWorkflowPayloadV2FromJSON = WorkflowsUpdateWorkflowPayloadV2FromJSON;
19
19
  exports.WorkflowsUpdateWorkflowPayloadV2FromJSONTyped = WorkflowsUpdateWorkflowPayloadV2FromJSONTyped;
@@ -24,6 +24,13 @@ const StepConfigPayloadV2_js_1 = require("./StepConfigPayloadV2.js");
24
24
  const WorkflowFormFieldPayloadV2_js_1 = require("./WorkflowFormFieldPayloadV2.js");
25
25
  const WorkflowDelayV2_js_1 = require("./WorkflowDelayV2.js");
26
26
  const ConditionGroupPayloadV2_js_1 = require("./ConditionGroupPayloadV2.js");
27
+ /**
28
+ * @export
29
+ */
30
+ exports.WorkflowsUpdateWorkflowPayloadV2AutoRunModeEnum = {
31
+ RunAutomatically: 'run_automatically',
32
+ ConfirmBeforeRunning: 'confirm_before_running',
33
+ };
27
34
  /**
28
35
  * @export
29
36
  */
@@ -87,6 +94,7 @@ function WorkflowsUpdateWorkflowPayloadV2FromJSONTyped(json, ignoreDiscriminator
87
94
  }
88
95
  return {
89
96
  'annotations': json['annotations'] == null ? undefined : json['annotations'],
97
+ 'auto_run_mode': json['auto_run_mode'] == null ? undefined : json['auto_run_mode'],
90
98
  'condition_groups': (json['condition_groups'].map(ConditionGroupPayloadV2_js_1.ConditionGroupPayloadV2FromJSON)),
91
99
  'continue_on_step_error': json['continue_on_step_error'],
92
100
  'delay': json['delay'] == null ? undefined : (0, WorkflowDelayV2_js_1.WorkflowDelayV2FromJSON)(json['delay']),
@@ -116,6 +124,7 @@ function WorkflowsUpdateWorkflowPayloadV2ToJSONTyped(value, ignoreDiscriminator
116
124
  }
117
125
  return {
118
126
  'annotations': value['annotations'],
127
+ 'auto_run_mode': value['auto_run_mode'],
119
128
  'condition_groups': (value['condition_groups'].map(ConditionGroupPayloadV2_js_1.ConditionGroupPayloadV2ToJSON)),
120
129
  'continue_on_step_error': value['continue_on_step_error'],
121
130
  'delay': (0, WorkflowDelayV2_js_1.WorkflowDelayV2ToJSON)(value['delay']),