@incident-io/sdk 2.9.0 → 2.11.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.
- package/dist/cjs/apis/IncidentFormsV3Api.d.ts +131 -0
- package/dist/cjs/apis/IncidentFormsV3Api.js +279 -0
- package/dist/cjs/apis/index.d.ts +1 -0
- package/dist/cjs/apis/index.js +1 -0
- package/dist/cjs/models/IncidentFormLifecycleElementConfigV3.d.ts +30 -0
- package/dist/cjs/models/IncidentFormLifecycleElementConfigV3.js +48 -0
- package/dist/cjs/models/IncidentFormLifecycleElementPayloadV3.d.ts +115 -0
- package/dist/cjs/models/IncidentFormLifecycleElementPayloadV3.js +110 -0
- package/dist/cjs/models/IncidentFormLifecycleElementV3.d.ts +115 -0
- package/dist/cjs/models/IncidentFormLifecycleElementV3.js +110 -0
- package/dist/cjs/models/IncidentFormV3.d.ts +68 -0
- package/dist/cjs/models/IncidentFormV3.js +85 -0
- package/dist/cjs/models/IncidentFormsCreatePayloadV3.d.ts +56 -0
- package/dist/cjs/models/IncidentFormsCreatePayloadV3.js +72 -0
- package/dist/cjs/models/IncidentFormsCreateResultV3.d.ts +31 -0
- package/dist/cjs/models/IncidentFormsCreateResultV3.js +51 -0
- package/dist/cjs/models/IncidentFormsListResultV3.d.ts +36 -0
- package/dist/cjs/models/IncidentFormsListResultV3.js +56 -0
- package/dist/cjs/models/IncidentFormsShowResultV3.d.ts +31 -0
- package/dist/cjs/models/IncidentFormsShowResultV3.js +51 -0
- package/dist/cjs/models/IncidentFormsUpdatePayloadV3.d.ts +56 -0
- package/dist/cjs/models/IncidentFormsUpdatePayloadV3.js +72 -0
- package/dist/cjs/models/IncidentFormsUpdateResultV3.d.ts +31 -0
- package/dist/cjs/models/IncidentFormsUpdateResultV3.js +51 -0
- package/dist/cjs/models/WorkflowSlimV2.d.ts +12 -0
- package/dist/cjs/models/WorkflowSlimV2.js +12 -1
- package/dist/cjs/models/WorkflowV2.d.ts +13 -1
- package/dist/cjs/models/WorkflowV2.js +12 -1
- package/dist/cjs/models/WorkflowsCreateWorkflowPayloadV2.d.ts +13 -1
- package/dist/cjs/models/WorkflowsCreateWorkflowPayloadV2.js +10 -1
- package/dist/cjs/models/WorkflowsUpdateWorkflowPayloadV2.d.ts +13 -1
- package/dist/cjs/models/WorkflowsUpdateWorkflowPayloadV2.js +10 -1
- package/dist/cjs/models/index.d.ts +10 -0
- package/dist/cjs/models/index.js +10 -0
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/apis/IncidentFormsV3Api.d.ts +131 -0
- package/dist/esm/apis/IncidentFormsV3Api.js +242 -0
- package/dist/esm/apis/index.d.ts +1 -0
- package/dist/esm/apis/index.js +1 -0
- package/dist/esm/models/IncidentFormLifecycleElementConfigV3.d.ts +30 -0
- package/dist/esm/models/IncidentFormLifecycleElementConfigV3.js +41 -0
- package/dist/esm/models/IncidentFormLifecycleElementPayloadV3.d.ts +115 -0
- package/dist/esm/models/IncidentFormLifecycleElementPayloadV3.js +102 -0
- package/dist/esm/models/IncidentFormLifecycleElementV3.d.ts +115 -0
- package/dist/esm/models/IncidentFormLifecycleElementV3.js +102 -0
- package/dist/esm/models/IncidentFormV3.d.ts +68 -0
- package/dist/esm/models/IncidentFormV3.js +77 -0
- package/dist/esm/models/IncidentFormsCreatePayloadV3.d.ts +56 -0
- package/dist/esm/models/IncidentFormsCreatePayloadV3.js +64 -0
- package/dist/esm/models/IncidentFormsCreateResultV3.d.ts +31 -0
- package/dist/esm/models/IncidentFormsCreateResultV3.js +44 -0
- package/dist/esm/models/IncidentFormsListResultV3.d.ts +36 -0
- package/dist/esm/models/IncidentFormsListResultV3.js +49 -0
- package/dist/esm/models/IncidentFormsShowResultV3.d.ts +31 -0
- package/dist/esm/models/IncidentFormsShowResultV3.js +44 -0
- package/dist/esm/models/IncidentFormsUpdatePayloadV3.d.ts +56 -0
- package/dist/esm/models/IncidentFormsUpdatePayloadV3.js +64 -0
- package/dist/esm/models/IncidentFormsUpdateResultV3.d.ts +31 -0
- package/dist/esm/models/IncidentFormsUpdateResultV3.js +44 -0
- package/dist/esm/models/WorkflowSlimV2.d.ts +12 -0
- package/dist/esm/models/WorkflowSlimV2.js +11 -0
- package/dist/esm/models/WorkflowV2.d.ts +13 -1
- package/dist/esm/models/WorkflowV2.js +11 -0
- package/dist/esm/models/WorkflowsCreateWorkflowPayloadV2.d.ts +13 -1
- package/dist/esm/models/WorkflowsCreateWorkflowPayloadV2.js +9 -0
- package/dist/esm/models/WorkflowsUpdateWorkflowPayloadV2.d.ts +13 -1
- package/dist/esm/models/WorkflowsUpdateWorkflowPayloadV2.js +9 -0
- package/dist/esm/models/index.d.ts +10 -0
- package/dist/esm/models/index.js +10 -0
- package/dist/esm/version.d.ts +1 -1
- package/dist/esm/version.js +1 -1
- package/package.json +1 -1
|
@@ -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
|
|
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
|
|
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']),
|
|
@@ -754,6 +754,16 @@ export * from './IncidentDebriefV2.js';
|
|
|
754
754
|
export * from './IncidentDurationMetricV2.js';
|
|
755
755
|
export * from './IncidentDurationMetricWithValueV2.js';
|
|
756
756
|
export * from './IncidentEditPayloadV2.js';
|
|
757
|
+
export * from './IncidentFormLifecycleElementConfigV3.js';
|
|
758
|
+
export * from './IncidentFormLifecycleElementPayloadV3.js';
|
|
759
|
+
export * from './IncidentFormLifecycleElementV3.js';
|
|
760
|
+
export * from './IncidentFormV3.js';
|
|
761
|
+
export * from './IncidentFormsCreatePayloadV3.js';
|
|
762
|
+
export * from './IncidentFormsCreateResultV3.js';
|
|
763
|
+
export * from './IncidentFormsListResultV3.js';
|
|
764
|
+
export * from './IncidentFormsShowResultV3.js';
|
|
765
|
+
export * from './IncidentFormsUpdatePayloadV3.js';
|
|
766
|
+
export * from './IncidentFormsUpdateResultV3.js';
|
|
757
767
|
export * from './IncidentMembershipV1.js';
|
|
758
768
|
export * from './IncidentMembershipsCreatePayloadV1.js';
|
|
759
769
|
export * from './IncidentMembershipsCreateResultV1.js';
|
package/dist/esm/models/index.js
CHANGED
|
@@ -756,6 +756,16 @@ export * from './IncidentDebriefV2.js';
|
|
|
756
756
|
export * from './IncidentDurationMetricV2.js';
|
|
757
757
|
export * from './IncidentDurationMetricWithValueV2.js';
|
|
758
758
|
export * from './IncidentEditPayloadV2.js';
|
|
759
|
+
export * from './IncidentFormLifecycleElementConfigV3.js';
|
|
760
|
+
export * from './IncidentFormLifecycleElementPayloadV3.js';
|
|
761
|
+
export * from './IncidentFormLifecycleElementV3.js';
|
|
762
|
+
export * from './IncidentFormV3.js';
|
|
763
|
+
export * from './IncidentFormsCreatePayloadV3.js';
|
|
764
|
+
export * from './IncidentFormsCreateResultV3.js';
|
|
765
|
+
export * from './IncidentFormsListResultV3.js';
|
|
766
|
+
export * from './IncidentFormsShowResultV3.js';
|
|
767
|
+
export * from './IncidentFormsUpdatePayloadV3.js';
|
|
768
|
+
export * from './IncidentFormsUpdateResultV3.js';
|
|
759
769
|
export * from './IncidentMembershipV1.js';
|
|
760
770
|
export * from './IncidentMembershipsCreatePayloadV1.js';
|
|
761
771
|
export * from './IncidentMembershipsCreateResultV1.js';
|
package/dist/esm/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const VERSION = "2.
|
|
1
|
+
export declare const VERSION = "2.11.0";
|
package/dist/esm/version.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// Written by `make build` from package.json. Do not edit.
|
|
2
|
-
export const VERSION = "2.
|
|
2
|
+
export const VERSION = "2.11.0";
|