@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,72 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * incident.io
5
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ import { parseDateTime, serializeDateTime } from '../runtime.js';
15
+ import { AuditLogActorV2FromJSON, AuditLogActorV2ToJSON, } from './AuditLogActorV2.js';
16
+ import { AuditLogEntryContextV2FromJSON, AuditLogEntryContextV2ToJSON, } from './AuditLogEntryContextV2.js';
17
+ import { AuditLogInvestigationTriggerMetadataV2FromJSON, AuditLogInvestigationTriggerMetadataV2ToJSON, } from './AuditLogInvestigationTriggerMetadataV2.js';
18
+ import { AuditLogTargetV2FromJSON, AuditLogTargetV2ToJSON, } from './AuditLogTargetV2.js';
19
+ /**
20
+ * Check if a given object implements the AuditLogsInvestigationTriggerCreatedV1 interface.
21
+ */
22
+ export function instanceOfAuditLogsInvestigationTriggerCreatedV1(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 AuditLogsInvestigationTriggerCreatedV1FromJSON(json) {
40
+ return AuditLogsInvestigationTriggerCreatedV1FromJSONTyped(json, false);
41
+ }
42
+ export function AuditLogsInvestigationTriggerCreatedV1FromJSONTyped(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': AuditLogInvestigationTriggerMetadataV2FromJSON(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 AuditLogsInvestigationTriggerCreatedV1ToJSON(json) {
57
+ return AuditLogsInvestigationTriggerCreatedV1ToJSONTyped(json, false);
58
+ }
59
+ export function AuditLogsInvestigationTriggerCreatedV1ToJSONTyped(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': AuditLogInvestigationTriggerMetadataV2ToJSON(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,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,72 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * incident.io
5
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ import { parseDateTime, serializeDateTime } from '../runtime.js';
15
+ import { AuditLogActorV2FromJSON, AuditLogActorV2ToJSON, } from './AuditLogActorV2.js';
16
+ import { AuditLogEntryContextV2FromJSON, AuditLogEntryContextV2ToJSON, } from './AuditLogEntryContextV2.js';
17
+ import { AuditLogInvestigationTriggerMetadataV2FromJSON, AuditLogInvestigationTriggerMetadataV2ToJSON, } from './AuditLogInvestigationTriggerMetadataV2.js';
18
+ import { AuditLogTargetV2FromJSON, AuditLogTargetV2ToJSON, } from './AuditLogTargetV2.js';
19
+ /**
20
+ * Check if a given object implements the AuditLogsInvestigationTriggerDeletedV1 interface.
21
+ */
22
+ export function instanceOfAuditLogsInvestigationTriggerDeletedV1(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 AuditLogsInvestigationTriggerDeletedV1FromJSON(json) {
40
+ return AuditLogsInvestigationTriggerDeletedV1FromJSONTyped(json, false);
41
+ }
42
+ export function AuditLogsInvestigationTriggerDeletedV1FromJSONTyped(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': AuditLogInvestigationTriggerMetadataV2FromJSON(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 AuditLogsInvestigationTriggerDeletedV1ToJSON(json) {
57
+ return AuditLogsInvestigationTriggerDeletedV1ToJSONTyped(json, false);
58
+ }
59
+ export function AuditLogsInvestigationTriggerDeletedV1ToJSONTyped(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': AuditLogInvestigationTriggerMetadataV2ToJSON(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,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,72 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * incident.io
5
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ import { parseDateTime, serializeDateTime } from '../runtime.js';
15
+ import { AuditLogActorV2FromJSON, AuditLogActorV2ToJSON, } from './AuditLogActorV2.js';
16
+ import { AuditLogEntryContextV2FromJSON, AuditLogEntryContextV2ToJSON, } from './AuditLogEntryContextV2.js';
17
+ import { AuditLogInvestigationTriggerMetadataV2FromJSON, AuditLogInvestigationTriggerMetadataV2ToJSON, } from './AuditLogInvestigationTriggerMetadataV2.js';
18
+ import { AuditLogTargetV2FromJSON, AuditLogTargetV2ToJSON, } from './AuditLogTargetV2.js';
19
+ /**
20
+ * Check if a given object implements the AuditLogsInvestigationTriggerUpdatedV1 interface.
21
+ */
22
+ export function instanceOfAuditLogsInvestigationTriggerUpdatedV1(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 AuditLogsInvestigationTriggerUpdatedV1FromJSON(json) {
40
+ return AuditLogsInvestigationTriggerUpdatedV1FromJSONTyped(json, false);
41
+ }
42
+ export function AuditLogsInvestigationTriggerUpdatedV1FromJSONTyped(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': AuditLogInvestigationTriggerMetadataV2FromJSON(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 AuditLogsInvestigationTriggerUpdatedV1ToJSON(json) {
57
+ return AuditLogsInvestigationTriggerUpdatedV1ToJSONTyped(json, false);
58
+ }
59
+ export function AuditLogsInvestigationTriggerUpdatedV1ToJSONTyped(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': AuditLogInvestigationTriggerMetadataV2ToJSON(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
+ }
@@ -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
  */
@@ -18,6 +18,13 @@ import { WorkflowDelayV2FromJSON, WorkflowDelayV2ToJSON, } from './WorkflowDelay
18
18
  import { ConditionGroupV2FromJSON, ConditionGroupV2ToJSON, } from './ConditionGroupV2.js';
19
19
  import { EngineReferenceV2FromJSON, EngineReferenceV2ToJSON, } from './EngineReferenceV2.js';
20
20
  import { TriggerSlimV2FromJSON, TriggerSlimV2ToJSON, } from './TriggerSlimV2.js';
21
+ /**
22
+ * @export
23
+ */
24
+ export const WorkflowSlimV2AutoRunModeEnum = {
25
+ RunAutomatically: 'run_automatically',
26
+ ConfirmBeforeRunning: 'confirm_before_running',
27
+ };
21
28
  /**
22
29
  * @export
23
30
  */
@@ -54,6 +61,8 @@ export const WorkflowSlimV2StateEnum = {
54
61
  * Check if a given object implements the WorkflowSlimV2 interface.
55
62
  */
56
63
  export function instanceOfWorkflowSlimV2(value) {
64
+ if (!('auto_run_mode' in value) || value['auto_run_mode'] === undefined)
65
+ return false;
57
66
  if (!('condition_groups' in value) || value['condition_groups'] === undefined)
58
67
  return false;
59
68
  if (!('continue_on_step_error' in value) || value['continue_on_step_error'] === undefined)
@@ -94,6 +103,7 @@ export function WorkflowSlimV2FromJSONTyped(json, ignoreDiscriminator) {
94
103
  return json;
95
104
  }
96
105
  return {
106
+ 'auto_run_mode': json['auto_run_mode'],
97
107
  'condition_groups': (json['condition_groups'].map(ConditionGroupV2FromJSON)),
98
108
  'continue_on_step_error': json['continue_on_step_error'],
99
109
  'delay': json['delay'] == null ? undefined : WorkflowDelayV2FromJSON(json['delay']),
@@ -124,6 +134,7 @@ export function WorkflowSlimV2ToJSONTyped(value, ignoreDiscriminator = false) {
124
134
  return value;
125
135
  }
126
136
  return {
137
+ 'auto_run_mode': value['auto_run_mode'],
127
138
  'condition_groups': (value['condition_groups'].map(ConditionGroupV2ToJSON)),
128
139
  'continue_on_step_error': value['continue_on_step_error'],
129
140
  'delay': 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
  */
@@ -19,6 +19,13 @@ import { WorkflowDelayV2FromJSON, WorkflowDelayV2ToJSON, } from './WorkflowDelay
19
19
  import { ConditionGroupV2FromJSON, ConditionGroupV2ToJSON, } from './ConditionGroupV2.js';
20
20
  import { EngineReferenceV2FromJSON, EngineReferenceV2ToJSON, } from './EngineReferenceV2.js';
21
21
  import { TriggerSlimV2FromJSON, TriggerSlimV2ToJSON, } from './TriggerSlimV2.js';
22
+ /**
23
+ * @export
24
+ */
25
+ export const WorkflowV2AutoRunModeEnum = {
26
+ RunAutomatically: 'run_automatically',
27
+ ConfirmBeforeRunning: 'confirm_before_running',
28
+ };
22
29
  /**
23
30
  * @export
24
31
  */
@@ -55,6 +62,8 @@ export const WorkflowV2StateEnum = {
55
62
  * Check if a given object implements the WorkflowV2 interface.
56
63
  */
57
64
  export function instanceOfWorkflowV2(value) {
65
+ if (!('auto_run_mode' in value) || value['auto_run_mode'] === undefined)
66
+ return false;
58
67
  if (!('condition_groups' in value) || value['condition_groups'] === undefined)
59
68
  return false;
60
69
  if (!('continue_on_step_error' in value) || value['continue_on_step_error'] === undefined)
@@ -95,6 +104,7 @@ export function WorkflowV2FromJSONTyped(json, ignoreDiscriminator) {
95
104
  return json;
96
105
  }
97
106
  return {
107
+ 'auto_run_mode': json['auto_run_mode'],
98
108
  'condition_groups': (json['condition_groups'].map(ConditionGroupV2FromJSON)),
99
109
  'continue_on_step_error': json['continue_on_step_error'],
100
110
  'delay': json['delay'] == null ? undefined : WorkflowDelayV2FromJSON(json['delay']),
@@ -126,6 +136,7 @@ export function WorkflowV2ToJSONTyped(value, ignoreDiscriminator = false) {
126
136
  return value;
127
137
  }
128
138
  return {
139
+ 'auto_run_mode': value['auto_run_mode'],
129
140
  'condition_groups': (value['condition_groups'].map(ConditionGroupV2ToJSON)),
130
141
  'continue_on_step_error': value['continue_on_step_error'],
131
142
  'delay': 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
  */
@@ -16,6 +16,13 @@ import { StepConfigPayloadV2FromJSON, StepConfigPayloadV2ToJSON, } from './StepC
16
16
  import { WorkflowFormFieldPayloadV2FromJSON, WorkflowFormFieldPayloadV2ToJSON, } from './WorkflowFormFieldPayloadV2.js';
17
17
  import { WorkflowDelayV2FromJSON, WorkflowDelayV2ToJSON, } from './WorkflowDelayV2.js';
18
18
  import { ConditionGroupPayloadV2FromJSON, ConditionGroupPayloadV2ToJSON, } from './ConditionGroupPayloadV2.js';
19
+ /**
20
+ * @export
21
+ */
22
+ export const WorkflowsCreateWorkflowPayloadV2AutoRunModeEnum = {
23
+ RunAutomatically: 'run_automatically',
24
+ ConfirmBeforeRunning: 'confirm_before_running',
25
+ };
19
26
  /**
20
27
  * @export
21
28
  */
@@ -81,6 +88,7 @@ export function WorkflowsCreateWorkflowPayloadV2FromJSONTyped(json, ignoreDiscri
81
88
  }
82
89
  return {
83
90
  'annotations': json['annotations'] == null ? undefined : json['annotations'],
91
+ 'auto_run_mode': json['auto_run_mode'] == null ? undefined : json['auto_run_mode'],
84
92
  'condition_groups': (json['condition_groups'].map(ConditionGroupPayloadV2FromJSON)),
85
93
  'continue_on_step_error': json['continue_on_step_error'],
86
94
  'delay': json['delay'] == null ? undefined : WorkflowDelayV2FromJSON(json['delay']),
@@ -110,6 +118,7 @@ export function WorkflowsCreateWorkflowPayloadV2ToJSONTyped(value, ignoreDiscrim
110
118
  }
111
119
  return {
112
120
  'annotations': value['annotations'],
121
+ 'auto_run_mode': value['auto_run_mode'],
113
122
  'condition_groups': (value['condition_groups'].map(ConditionGroupPayloadV2ToJSON)),
114
123
  'continue_on_step_error': value['continue_on_step_error'],
115
124
  'delay': 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
  */
@@ -16,6 +16,13 @@ import { StepConfigPayloadV2FromJSON, StepConfigPayloadV2ToJSON, } from './StepC
16
16
  import { WorkflowFormFieldPayloadV2FromJSON, WorkflowFormFieldPayloadV2ToJSON, } from './WorkflowFormFieldPayloadV2.js';
17
17
  import { WorkflowDelayV2FromJSON, WorkflowDelayV2ToJSON, } from './WorkflowDelayV2.js';
18
18
  import { ConditionGroupPayloadV2FromJSON, ConditionGroupPayloadV2ToJSON, } from './ConditionGroupPayloadV2.js';
19
+ /**
20
+ * @export
21
+ */
22
+ export const WorkflowsUpdateWorkflowPayloadV2AutoRunModeEnum = {
23
+ RunAutomatically: 'run_automatically',
24
+ ConfirmBeforeRunning: 'confirm_before_running',
25
+ };
19
26
  /**
20
27
  * @export
21
28
  */
@@ -79,6 +86,7 @@ export function WorkflowsUpdateWorkflowPayloadV2FromJSONTyped(json, ignoreDiscri
79
86
  }
80
87
  return {
81
88
  'annotations': json['annotations'] == null ? undefined : json['annotations'],
89
+ 'auto_run_mode': json['auto_run_mode'] == null ? undefined : json['auto_run_mode'],
82
90
  'condition_groups': (json['condition_groups'].map(ConditionGroupPayloadV2FromJSON)),
83
91
  'continue_on_step_error': json['continue_on_step_error'],
84
92
  'delay': json['delay'] == null ? undefined : WorkflowDelayV2FromJSON(json['delay']),
@@ -108,6 +116,7 @@ export function WorkflowsUpdateWorkflowPayloadV2ToJSONTyped(value, ignoreDiscrim
108
116
  }
109
117
  return {
110
118
  'annotations': value['annotations'],
119
+ 'auto_run_mode': value['auto_run_mode'],
111
120
  'condition_groups': (value['condition_groups'].map(ConditionGroupPayloadV2ToJSON)),
112
121
  'continue_on_step_error': value['continue_on_step_error'],
113
122
  'delay': WorkflowDelayV2ToJSON(value['delay']),
@@ -204,9 +204,12 @@ export * from './AuditLogEntryContextV2.js';
204
204
  export * from './AuditLogExtensionConnectorCalledMetadataV2.js';
205
205
  export * from './AuditLogExtensionConnectorCalledMetadataV2V2.js';
206
206
  export * from './AuditLogExtensionConnectorCalledMetadataV3V2.js';
207
+ export * from './AuditLogExtensionPluginCreatedMetadataV2.js';
208
+ export * from './AuditLogExtensionPluginUpdatedMetadataV2.js';
207
209
  export * from './AuditLogHrisTimeOffPolicyUpdatedMetadataV2.js';
208
210
  export * from './AuditLogIPAllowlistUpdatedMetadataV2.js';
209
211
  export * from './AuditLogIncidentTypeDefaultTeamsMetadataV2.js';
212
+ export * from './AuditLogInvestigationTriggerMetadataV2.js';
210
213
  export * from './AuditLogMicrosoftEntraTenantLinkedMetadataV2.js';
211
214
  export * from './AuditLogMobileIntuneEnabledSettingUpdatedMetadataV2.js';
212
215
  export * from './AuditLogOnCallNotificationMethodMetadataV2.js';
@@ -293,12 +296,18 @@ export * from './AuditLogsEscalationScrubbedV1.js';
293
296
  export * from './AuditLogsExtensionConnectorCalledV1.js';
294
297
  export * from './AuditLogsExtensionConnectorCalledV2.js';
295
298
  export * from './AuditLogsExtensionConnectorCalledV3.js';
299
+ export * from './AuditLogsExtensionPluginCreatedV1.js';
300
+ export * from './AuditLogsExtensionPluginDeletedV1.js';
301
+ export * from './AuditLogsExtensionPluginUpdatedV1.js';
296
302
  export * from './AuditLogsFollowUpCategoryCreatedV1.js';
297
303
  export * from './AuditLogsFollowUpCategoryDeletedV1.js';
298
304
  export * from './AuditLogsFollowUpCategoryUpdatedV1.js';
299
305
  export * from './AuditLogsFollowUpPriorityCreatedV1.js';
300
306
  export * from './AuditLogsFollowUpPriorityDeletedV1.js';
301
307
  export * from './AuditLogsFollowUpPriorityUpdatedV1.js';
308
+ export * from './AuditLogsGlossaryEntryCreatedV1.js';
309
+ export * from './AuditLogsGlossaryEntryDeletedV1.js';
310
+ export * from './AuditLogsGlossaryEntryUpdatedV1.js';
302
311
  export * from './AuditLogsHolidayUserFeedCreatedV1.js';
303
312
  export * from './AuditLogsHolidayUserFeedDeletedV1.js';
304
313
  export * from './AuditLogsHolidayUserFeedUpdatedV1.js';
@@ -336,6 +345,9 @@ export * from './AuditLogsIntegrationUninstalledV1.js';
336
345
  export * from './AuditLogsInternalStatusPageCreatedV1.js';
337
346
  export * from './AuditLogsInternalStatusPageDeletedV1.js';
338
347
  export * from './AuditLogsInternalStatusPageUpdatedV1.js';
348
+ export * from './AuditLogsInvestigationTriggerCreatedV1.js';
349
+ export * from './AuditLogsInvestigationTriggerDeletedV1.js';
350
+ export * from './AuditLogsInvestigationTriggerUpdatedV1.js';
339
351
  export * from './AuditLogsMaintenanceWindowCreatedV1.js';
340
352
  export * from './AuditLogsMaintenanceWindowDeletedV1.js';
341
353
  export * from './AuditLogsMaintenanceWindowUpdatedV1.js';