@ampsec/platform-client 62.24.0 → 63.1.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 (48) hide show
  1. package/build/src/dto/actionExecution.dto.d.ts +82 -0
  2. package/build/src/dto/actionExecution.dto.js +21 -0
  3. package/build/src/dto/actionExecution.dto.js.map +1 -0
  4. package/build/src/dto/customScores.dto.d.ts +120 -12
  5. package/build/src/dto/customScores.dto.js +1 -1
  6. package/build/src/dto/customScores.dto.js.map +1 -1
  7. package/build/src/dto/enums/actionExecution.status.d.ts +6 -0
  8. package/build/src/dto/enums/actionExecution.status.js +11 -0
  9. package/build/src/dto/enums/actionExecution.status.js.map +1 -0
  10. package/build/src/dto/enums/index.d.ts +1 -0
  11. package/build/src/dto/enums/index.js +1 -0
  12. package/build/src/dto/enums/index.js.map +1 -1
  13. package/build/src/dto/flows.dto.d.ts +6 -6
  14. package/build/src/dto/index.d.ts +1 -0
  15. package/build/src/dto/index.js +1 -0
  16. package/build/src/dto/index.js.map +1 -1
  17. package/build/src/dto/platform/index.d.ts +1 -0
  18. package/build/src/dto/platform/index.js +1 -0
  19. package/build/src/dto/platform/index.js.map +1 -1
  20. package/build/src/dto/platform/platform.actionExecution.dto.d.ts +77 -0
  21. package/build/src/dto/platform/platform.actionExecution.dto.js +8 -0
  22. package/build/src/dto/platform/platform.actionExecution.dto.js.map +1 -0
  23. package/build/src/dto/platform/platform.customScores.dto.d.ts +120 -12
  24. package/build/src/dto/platform/platform.flows.dto.d.ts +4 -4
  25. package/build/src/services/AmpApi.d.ts +2 -1
  26. package/build/src/services/AmpApi.js +1 -0
  27. package/build/src/services/AmpApi.js.map +1 -1
  28. package/build/src/services/AmpSdk.d.ts +2 -1
  29. package/build/src/services/AmpSdk.js +1 -0
  30. package/build/src/services/AmpSdk.js.map +1 -1
  31. package/build/src/services/constants.d.ts +1 -0
  32. package/build/src/services/constants.js +1 -0
  33. package/build/src/services/constants.js.map +1 -1
  34. package/build/src/services/rest/RestClient.d.ts +1 -1
  35. package/build/src/services/rest/RestClient.js +1 -1
  36. package/build/src/services/rest/RestClient.js.map +1 -1
  37. package/package.json +1 -1
  38. package/src/dto/actionExecution.dto.ts +24 -0
  39. package/src/dto/customScores.dto.ts +1 -1
  40. package/src/dto/enums/actionExecution.status.ts +6 -0
  41. package/src/dto/enums/index.ts +1 -0
  42. package/src/dto/index.ts +1 -0
  43. package/src/dto/platform/index.ts +1 -0
  44. package/src/dto/platform/platform.actionExecution.dto.ts +9 -0
  45. package/src/services/AmpApi.ts +3 -0
  46. package/src/services/AmpSdk.ts +4 -0
  47. package/src/services/constants.ts +1 -0
  48. package/src/services/rest/RestClient.ts +2 -2
@@ -0,0 +1,82 @@
1
+ import { z } from 'zod';
2
+ import { ActionExecutionStatus } from './enums/actionExecution.status';
3
+ export declare const _ActionExecutionInput: z.ZodUnknown;
4
+ export type ActionExecutionInput = z.infer<typeof _ActionExecutionInput>;
5
+ export declare const _ActionExecutionOutput: z.ZodUnknown;
6
+ export type ActionExecutionOutput = z.infer<typeof _ActionExecutionOutput>;
7
+ export declare const _ActionExecutionDto: z.ZodObject<{
8
+ id: z.ZodString;
9
+ createdAt: z.ZodString;
10
+ updatedAt: z.ZodString;
11
+ deletedAt: z.ZodNullable<z.ZodString>;
12
+ tid: z.ZodString;
13
+ specId: z.ZodString;
14
+ status: z.ZodNativeEnum<typeof ActionExecutionStatus>;
15
+ input: z.ZodUnknown;
16
+ output: z.ZodUnknown;
17
+ executionTime: z.ZodNullable<z.ZodString>;
18
+ executionDuration: z.ZodNullable<z.ZodNumber>;
19
+ }, "strip", z.ZodTypeAny, {
20
+ status: ActionExecutionStatus;
21
+ id: string;
22
+ tid: string;
23
+ createdAt: string;
24
+ updatedAt: string;
25
+ deletedAt: string | null;
26
+ specId: string;
27
+ executionTime: string | null;
28
+ executionDuration: number | null;
29
+ input?: unknown;
30
+ output?: unknown;
31
+ }, {
32
+ status: ActionExecutionStatus;
33
+ id: string;
34
+ tid: string;
35
+ createdAt: string;
36
+ updatedAt: string;
37
+ deletedAt: string | null;
38
+ specId: string;
39
+ executionTime: string | null;
40
+ executionDuration: number | null;
41
+ input?: unknown;
42
+ output?: unknown;
43
+ }>;
44
+ export type ActionExecutionDto = z.infer<typeof _ActionExecutionDto>;
45
+ export declare const _ActionExecutionUpsertDto: z.ZodObject<{
46
+ input: z.ZodUnknown;
47
+ status: z.ZodNativeEnum<typeof ActionExecutionStatus>;
48
+ id: z.ZodOptional<z.ZodString>;
49
+ tid: z.ZodString;
50
+ createdAt: z.ZodOptional<z.ZodString>;
51
+ updatedAt: z.ZodOptional<z.ZodString>;
52
+ deletedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
53
+ specId: z.ZodString;
54
+ output: z.ZodUnknown;
55
+ executionTime: z.ZodNullable<z.ZodString>;
56
+ executionDuration: z.ZodNullable<z.ZodNumber>;
57
+ }, "strip", z.ZodTypeAny, {
58
+ status: ActionExecutionStatus;
59
+ tid: string;
60
+ specId: string;
61
+ executionTime: string | null;
62
+ executionDuration: number | null;
63
+ input?: unknown;
64
+ id?: string | undefined;
65
+ createdAt?: string | undefined;
66
+ updatedAt?: string | undefined;
67
+ deletedAt?: string | null | undefined;
68
+ output?: unknown;
69
+ }, {
70
+ status: ActionExecutionStatus;
71
+ tid: string;
72
+ specId: string;
73
+ executionTime: string | null;
74
+ executionDuration: number | null;
75
+ input?: unknown;
76
+ id?: string | undefined;
77
+ createdAt?: string | undefined;
78
+ updatedAt?: string | undefined;
79
+ deletedAt?: string | null | undefined;
80
+ output?: unknown;
81
+ }>;
82
+ export type ActionExecutionUpsertDto = z.infer<typeof _ActionExecutionUpsertDto>;
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports._ActionExecutionUpsertDto = exports._ActionExecutionDto = exports._ActionExecutionOutput = exports._ActionExecutionInput = void 0;
4
+ const zod_1 = require("zod");
5
+ const base_dto_1 = require("./base.dto");
6
+ const actionExecution_status_1 = require("./enums/actionExecution.status");
7
+ // TODO use more specific types if we are going to process this data. At the moment, we are only storing/displaying it as a string
8
+ exports._ActionExecutionInput = zod_1.z.unknown();
9
+ // TODO use more specific types if we are going to process this data. At the moment, we are only storing/displaying it as a string
10
+ exports._ActionExecutionOutput = zod_1.z.unknown();
11
+ exports._ActionExecutionDto = base_dto_1._BaseDto.extend({
12
+ tid: zod_1.z.string(),
13
+ specId: zod_1.z.string(),
14
+ status: zod_1.z.nativeEnum(actionExecution_status_1.ActionExecutionStatus),
15
+ input: exports._ActionExecutionInput,
16
+ output: exports._ActionExecutionOutput,
17
+ executionTime: zod_1.z.nullable(zod_1.z.string()),
18
+ executionDuration: zod_1.z.nullable(zod_1.z.number()),
19
+ });
20
+ exports._ActionExecutionUpsertDto = exports._ActionExecutionDto.partial(base_dto_1.UPSERT_DTO_MASK);
21
+ //# sourceMappingURL=actionExecution.dto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"actionExecution.dto.js","sourceRoot":"","sources":["../../../src/dto/actionExecution.dto.ts"],"names":[],"mappings":";;;AAAA,6BAAsB;AACtB,yCAAqD;AACrD,2EAAqE;AAErE,kIAAkI;AACrH,QAAA,qBAAqB,GAAG,OAAC,CAAC,OAAO,EAAE,CAAC;AAEjD,kIAAkI;AACrH,QAAA,sBAAsB,GAAG,OAAC,CAAC,OAAO,EAAE,CAAC;AAGrC,QAAA,mBAAmB,GAAG,mBAAQ,CAAC,MAAM,CAAC;IACjD,GAAG,EAAE,OAAC,CAAC,MAAM,EAAE;IACf,MAAM,EAAE,OAAC,CAAC,MAAM,EAAE;IAClB,MAAM,EAAE,OAAC,CAAC,UAAU,CAAC,8CAAqB,CAAC;IAC3C,KAAK,EAAE,6BAAqB;IAC5B,MAAM,EAAE,8BAAsB;IAC9B,aAAa,EAAE,OAAC,CAAC,QAAQ,CAAC,OAAC,CAAC,MAAM,EAAE,CAAC;IACrC,iBAAiB,EAAE,OAAC,CAAC,QAAQ,CAAC,OAAC,CAAC,MAAM,EAAE,CAAC;CAC1C,CAAC,CAAC;AAGU,QAAA,yBAAyB,GAAG,2BAAmB,CAAC,OAAO,CAAC,0BAAe,CAAC,CAAC"}
@@ -50,7 +50,7 @@ export declare const _CustomScoreCohortDto: z.ZodObject<{
50
50
  createdAt: z.ZodString;
51
51
  updatedAt: z.ZodString;
52
52
  deletedAt: z.ZodNullable<z.ZodString>;
53
- cohort: z.ZodObject<{
53
+ cohort: z.ZodUnion<[z.ZodObject<{
54
54
  id: z.ZodString;
55
55
  kind: z.ZodEnum<["ORGANIZATION", "DEPARTMENT", "USER", "RISK_CONTRIBUTOR"]>;
56
56
  displayValue: z.ZodString;
@@ -68,33 +68,87 @@ export declare const _CustomScoreCohortDto: z.ZodObject<{
68
68
  id: string;
69
69
  displayValue: string;
70
70
  kind: "USER" | "ORGANIZATION" | "DEPARTMENT" | "RISK_CONTRIBUTOR";
71
- }>;
71
+ }>, z.ZodArray<z.ZodObject<{
72
+ id: z.ZodString;
73
+ kind: z.ZodEnum<["ORGANIZATION", "DEPARTMENT", "USER", "RISK_CONTRIBUTOR"]>;
74
+ displayValue: z.ZodString;
75
+ value: z.ZodString;
76
+ inclusive: z.ZodBoolean;
77
+ }, "strip", z.ZodTypeAny, {
78
+ inclusive: boolean;
79
+ value: string;
80
+ id: string;
81
+ displayValue: string;
82
+ kind: "USER" | "ORGANIZATION" | "DEPARTMENT" | "RISK_CONTRIBUTOR";
83
+ }, {
84
+ inclusive: boolean;
85
+ value: string;
86
+ id: string;
87
+ displayValue: string;
88
+ kind: "USER" | "ORGANIZATION" | "DEPARTMENT" | "RISK_CONTRIBUTOR";
89
+ }>, "many">]>;
72
90
  multiplier: z.ZodNumber;
73
91
  }, "strip", z.ZodTypeAny, {
74
92
  id: string;
75
93
  createdAt: string;
76
94
  updatedAt: string;
77
95
  deletedAt: string | null;
78
- cohort: {
96
+ cohort: ({
97
+ inclusive: boolean;
98
+ value: string;
99
+ id: string;
100
+ displayValue: string;
101
+ kind: "USER" | "ORGANIZATION" | "DEPARTMENT" | "RISK_CONTRIBUTOR";
102
+ } | {
79
103
  inclusive: boolean;
80
104
  value: string;
81
105
  id: string;
82
106
  displayValue: string;
83
107
  kind: "USER" | "ORGANIZATION" | "DEPARTMENT" | "RISK_CONTRIBUTOR";
84
- };
108
+ }[]) & ({
109
+ inclusive: boolean;
110
+ value: string;
111
+ id: string;
112
+ displayValue: string;
113
+ kind: "USER" | "ORGANIZATION" | "DEPARTMENT" | "RISK_CONTRIBUTOR";
114
+ } | {
115
+ inclusive: boolean;
116
+ value: string;
117
+ id: string;
118
+ displayValue: string;
119
+ kind: "USER" | "ORGANIZATION" | "DEPARTMENT" | "RISK_CONTRIBUTOR";
120
+ }[] | undefined);
85
121
  multiplier: number;
86
122
  }, {
87
123
  id: string;
88
124
  createdAt: string;
89
125
  updatedAt: string;
90
126
  deletedAt: string | null;
91
- cohort: {
127
+ cohort: ({
128
+ inclusive: boolean;
129
+ value: string;
130
+ id: string;
131
+ displayValue: string;
132
+ kind: "USER" | "ORGANIZATION" | "DEPARTMENT" | "RISK_CONTRIBUTOR";
133
+ } | {
134
+ inclusive: boolean;
135
+ value: string;
136
+ id: string;
137
+ displayValue: string;
138
+ kind: "USER" | "ORGANIZATION" | "DEPARTMENT" | "RISK_CONTRIBUTOR";
139
+ }[]) & ({
140
+ inclusive: boolean;
141
+ value: string;
142
+ id: string;
143
+ displayValue: string;
144
+ kind: "USER" | "ORGANIZATION" | "DEPARTMENT" | "RISK_CONTRIBUTOR";
145
+ } | {
92
146
  inclusive: boolean;
93
147
  value: string;
94
148
  id: string;
95
149
  displayValue: string;
96
150
  kind: "USER" | "ORGANIZATION" | "DEPARTMENT" | "RISK_CONTRIBUTOR";
97
- };
151
+ }[] | undefined);
98
152
  multiplier: number;
99
153
  }>;
100
154
  export type CustomScoreCohortDto = z.infer<typeof _CustomScoreCohortDto>;
@@ -103,7 +157,7 @@ export declare const _CustomScoreCohortUpsertDto: z.ZodObject<{
103
157
  createdAt: z.ZodOptional<z.ZodString>;
104
158
  updatedAt: z.ZodOptional<z.ZodString>;
105
159
  deletedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
106
- cohort: z.ZodObject<{
160
+ cohort: z.ZodUnion<[z.ZodObject<{
107
161
  id: z.ZodString;
108
162
  kind: z.ZodEnum<["ORGANIZATION", "DEPARTMENT", "USER", "RISK_CONTRIBUTOR"]>;
109
163
  displayValue: z.ZodString;
@@ -121,29 +175,83 @@ export declare const _CustomScoreCohortUpsertDto: z.ZodObject<{
121
175
  id: string;
122
176
  displayValue: string;
123
177
  kind: "USER" | "ORGANIZATION" | "DEPARTMENT" | "RISK_CONTRIBUTOR";
124
- }>;
178
+ }>, z.ZodArray<z.ZodObject<{
179
+ id: z.ZodString;
180
+ kind: z.ZodEnum<["ORGANIZATION", "DEPARTMENT", "USER", "RISK_CONTRIBUTOR"]>;
181
+ displayValue: z.ZodString;
182
+ value: z.ZodString;
183
+ inclusive: z.ZodBoolean;
184
+ }, "strip", z.ZodTypeAny, {
185
+ inclusive: boolean;
186
+ value: string;
187
+ id: string;
188
+ displayValue: string;
189
+ kind: "USER" | "ORGANIZATION" | "DEPARTMENT" | "RISK_CONTRIBUTOR";
190
+ }, {
191
+ inclusive: boolean;
192
+ value: string;
193
+ id: string;
194
+ displayValue: string;
195
+ kind: "USER" | "ORGANIZATION" | "DEPARTMENT" | "RISK_CONTRIBUTOR";
196
+ }>, "many">]>;
125
197
  multiplier: z.ZodNumber;
126
198
  }, "strip", z.ZodTypeAny, {
127
- cohort: {
199
+ cohort: ({
200
+ inclusive: boolean;
201
+ value: string;
202
+ id: string;
203
+ displayValue: string;
204
+ kind: "USER" | "ORGANIZATION" | "DEPARTMENT" | "RISK_CONTRIBUTOR";
205
+ } | {
128
206
  inclusive: boolean;
129
207
  value: string;
130
208
  id: string;
131
209
  displayValue: string;
132
210
  kind: "USER" | "ORGANIZATION" | "DEPARTMENT" | "RISK_CONTRIBUTOR";
133
- };
211
+ }[]) & ({
212
+ inclusive: boolean;
213
+ value: string;
214
+ id: string;
215
+ displayValue: string;
216
+ kind: "USER" | "ORGANIZATION" | "DEPARTMENT" | "RISK_CONTRIBUTOR";
217
+ } | {
218
+ inclusive: boolean;
219
+ value: string;
220
+ id: string;
221
+ displayValue: string;
222
+ kind: "USER" | "ORGANIZATION" | "DEPARTMENT" | "RISK_CONTRIBUTOR";
223
+ }[] | undefined);
134
224
  multiplier: number;
135
225
  id?: string | undefined;
136
226
  createdAt?: string | undefined;
137
227
  updatedAt?: string | undefined;
138
228
  deletedAt?: string | null | undefined;
139
229
  }, {
140
- cohort: {
230
+ cohort: ({
231
+ inclusive: boolean;
232
+ value: string;
233
+ id: string;
234
+ displayValue: string;
235
+ kind: "USER" | "ORGANIZATION" | "DEPARTMENT" | "RISK_CONTRIBUTOR";
236
+ } | {
237
+ inclusive: boolean;
238
+ value: string;
239
+ id: string;
240
+ displayValue: string;
241
+ kind: "USER" | "ORGANIZATION" | "DEPARTMENT" | "RISK_CONTRIBUTOR";
242
+ }[]) & ({
243
+ inclusive: boolean;
244
+ value: string;
245
+ id: string;
246
+ displayValue: string;
247
+ kind: "USER" | "ORGANIZATION" | "DEPARTMENT" | "RISK_CONTRIBUTOR";
248
+ } | {
141
249
  inclusive: boolean;
142
250
  value: string;
143
251
  id: string;
144
252
  displayValue: string;
145
253
  kind: "USER" | "ORGANIZATION" | "DEPARTMENT" | "RISK_CONTRIBUTOR";
146
- };
254
+ }[] | undefined);
147
255
  multiplier: number;
148
256
  id?: string | undefined;
149
257
  createdAt?: string | undefined;
@@ -10,7 +10,7 @@ exports._CustomScoreValueDto = base_dto_1._BaseDto.extend({
10
10
  });
11
11
  exports._CustomScoreValueUpsertDto = exports._CustomScoreValueDto.partial(base_dto_1.UPSERT_DTO_MASK);
12
12
  exports._CustomScoreCohortDto = base_dto_1._BaseDto.extend({
13
- cohort: flows_dto_1._AmplifierCohortDto || zod_1.z.array(flows_dto_1._AmplifierCohortDto),
13
+ cohort: zod_1.z.union([flows_dto_1._AmplifierCohortDto, zod_1.z.array(flows_dto_1._AmplifierCohortDto)]),
14
14
  multiplier: zod_1.z.number(),
15
15
  });
16
16
  exports._CustomScoreCohortUpsertDto = exports._CustomScoreCohortDto.partial(base_dto_1.UPSERT_DTO_MASK);
@@ -1 +1 @@
1
- {"version":3,"file":"customScores.dto.js","sourceRoot":"","sources":["../../../src/dto/customScores.dto.ts"],"names":[],"mappings":";;;AAAA,6BAAsB;AACtB,yCAAqD;AACrD,2CAAgD;AAEnC,QAAA,oBAAoB,GAAG,mBAAQ,CAAC,MAAM,CAAC;IAClD,aAAa,EAAE,OAAC,CAAC,MAAM,EAAE;IACzB,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE;CAClB,CAAC,CAAC;AAGU,QAAA,0BAA0B,GAAG,4BAAoB,CAAC,OAAO,CAAC,0BAAe,CAAC,CAAC;AAG3E,QAAA,qBAAqB,GAAG,mBAAQ,CAAC,MAAM,CAAC;IACnD,MAAM,EAAE,+BAAmB,IAAI,OAAC,CAAC,KAAK,CAAC,+BAAmB,CAAC;IAC3D,UAAU,EAAE,OAAC,CAAC,MAAM,EAAE;CACvB,CAAC,CAAC;AAGU,QAAA,2BAA2B,GAAG,6BAAqB,CAAC,OAAO,CAAC,0BAAe,CAAC,CAAC"}
1
+ {"version":3,"file":"customScores.dto.js","sourceRoot":"","sources":["../../../src/dto/customScores.dto.ts"],"names":[],"mappings":";;;AAAA,6BAAsB;AACtB,yCAAqD;AACrD,2CAAgD;AAEnC,QAAA,oBAAoB,GAAG,mBAAQ,CAAC,MAAM,CAAC;IAClD,aAAa,EAAE,OAAC,CAAC,MAAM,EAAE;IACzB,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE;CAClB,CAAC,CAAC;AAGU,QAAA,0BAA0B,GAAG,4BAAoB,CAAC,OAAO,CAAC,0BAAe,CAAC,CAAC;AAG3E,QAAA,qBAAqB,GAAG,mBAAQ,CAAC,MAAM,CAAC;IACnD,MAAM,EAAE,OAAC,CAAC,KAAK,CAAC,CAAC,+BAAmB,EAAE,OAAC,CAAC,KAAK,CAAC,+BAAmB,CAAC,CAAC,CAAC;IACpE,UAAU,EAAE,OAAC,CAAC,MAAM,EAAE;CACvB,CAAC,CAAC;AAGU,QAAA,2BAA2B,GAAG,6BAAqB,CAAC,OAAO,CAAC,0BAAe,CAAC,CAAC"}
@@ -0,0 +1,6 @@
1
+ export declare enum ActionExecutionStatus {
2
+ PENDING = "PENDING",
3
+ RUNNING = "RUNNING",
4
+ SUCCESS = "SUCCESS",
5
+ ERROR = "ERROR"
6
+ }
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ActionExecutionStatus = void 0;
4
+ var ActionExecutionStatus;
5
+ (function (ActionExecutionStatus) {
6
+ ActionExecutionStatus["PENDING"] = "PENDING";
7
+ ActionExecutionStatus["RUNNING"] = "RUNNING";
8
+ ActionExecutionStatus["SUCCESS"] = "SUCCESS";
9
+ ActionExecutionStatus["ERROR"] = "ERROR";
10
+ })(ActionExecutionStatus || (exports.ActionExecutionStatus = ActionExecutionStatus = {}));
11
+ //# sourceMappingURL=actionExecution.status.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"actionExecution.status.js","sourceRoot":"","sources":["../../../../src/dto/enums/actionExecution.status.ts"],"names":[],"mappings":";;;AAAA,IAAY,qBAKX;AALD,WAAY,qBAAqB;IAC/B,4CAAmB,CAAA;IACnB,4CAAmB,CAAA;IACnB,4CAAmB,CAAA;IACnB,wCAAe,CAAA;AACjB,CAAC,EALW,qBAAqB,qCAArB,qBAAqB,QAKhC"}
@@ -18,3 +18,4 @@ export * from './requiredDataProperty.enum';
18
18
  export * from './riskContributor.type';
19
19
  export * from './saasComponentKind';
20
20
  export * from './aiServiceModelName';
21
+ export * from './actionExecution.status';
@@ -34,4 +34,5 @@ __exportStar(require("./requiredDataProperty.enum"), exports);
34
34
  __exportStar(require("./riskContributor.type"), exports);
35
35
  __exportStar(require("./saasComponentKind"), exports);
36
36
  __exportStar(require("./aiServiceModelName"), exports);
37
+ __exportStar(require("./actionExecution.status"), exports);
37
38
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/dto/enums/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8CAA4B;AAC5B,iDAA+B;AAC/B,wDAAsC;AACtC,sDAAoC;AACpC,6CAA2B;AAC3B,qDAAmC;AACnC,qDAAmC;AACnC,iDAA+B;AAC/B,gDAA8B;AAC9B,qDAAmC;AACnC,mDAAiC;AACjC,oDAAkC;AAClC,qDAAmC;AACnC,oDAAkC;AAClC,wDAAsC;AACtC,mDAAiC;AACjC,8DAA4C;AAC5C,yDAAuC;AACvC,sDAAoC;AACpC,uDAAqC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/dto/enums/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8CAA4B;AAC5B,iDAA+B;AAC/B,wDAAsC;AACtC,sDAAoC;AACpC,6CAA2B;AAC3B,qDAAmC;AACnC,qDAAmC;AACnC,iDAA+B;AAC/B,gDAA8B;AAC9B,qDAAmC;AACnC,mDAAiC;AACjC,oDAAkC;AAClC,qDAAmC;AACnC,oDAAkC;AAClC,wDAAsC;AACtC,mDAAiC;AACjC,8DAA4C;AAC5C,yDAAuC;AACvC,sDAAoC;AACpC,uDAAqC;AACrC,2DAAyC"}
@@ -331,7 +331,7 @@ export declare const _FlowStateDto: z.ZodObject<{
331
331
  };
332
332
  }>, "many">;
333
333
  }, "strip", z.ZodTypeAny, {
334
- status: "RUNNING" | "ERROR" | "SUCCESS" | "CANCELLED" | "EXPIRED";
334
+ status: "RUNNING" | "SUCCESS" | "ERROR" | "CANCELLED" | "EXPIRED";
335
335
  id: string;
336
336
  createdAt: string;
337
337
  updatedAt: string;
@@ -367,7 +367,7 @@ export declare const _FlowStateDto: z.ZodObject<{
367
367
  uid?: string | undefined;
368
368
  fid?: string | undefined;
369
369
  }, {
370
- status: "RUNNING" | "ERROR" | "SUCCESS" | "CANCELLED" | "EXPIRED";
370
+ status: "RUNNING" | "SUCCESS" | "ERROR" | "CANCELLED" | "EXPIRED";
371
371
  id: string;
372
372
  createdAt: string;
373
373
  updatedAt: string;
@@ -535,7 +535,7 @@ export declare const _FlowStateUpsertDto: z.ZodObject<{
535
535
  updatedAt: z.ZodOptional<z.ZodString>;
536
536
  deletedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
537
537
  }, "strip", z.ZodTypeAny, {
538
- status: "RUNNING" | "ERROR" | "SUCCESS" | "CANCELLED" | "EXPIRED";
538
+ status: "RUNNING" | "SUCCESS" | "ERROR" | "CANCELLED" | "EXPIRED";
539
539
  nodeName: string;
540
540
  totalSteps: number;
541
541
  currentStep: number;
@@ -571,7 +571,7 @@ export declare const _FlowStateUpsertDto: z.ZodObject<{
571
571
  updatedAt?: string | undefined;
572
572
  deletedAt?: string | null | undefined;
573
573
  }, {
574
- status: "RUNNING" | "ERROR" | "SUCCESS" | "CANCELLED" | "EXPIRED";
574
+ status: "RUNNING" | "SUCCESS" | "ERROR" | "CANCELLED" | "EXPIRED";
575
575
  nodeName: string;
576
576
  totalSteps: number;
577
577
  currentStep: number;
@@ -625,7 +625,7 @@ export declare const _FlowStateFilter: z.ZodObject<{
625
625
  endTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
626
626
  sort: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodEnum<["ASC", "DESC"]>>>;
627
627
  }, "strip", z.ZodTypeAny, {
628
- status?: "RUNNING" | "ERROR" | "SUCCESS" | "CANCELLED" | "EXPIRED" | undefined;
628
+ status?: "RUNNING" | "SUCCESS" | "ERROR" | "CANCELLED" | "EXPIRED" | undefined;
629
629
  limit?: number | undefined;
630
630
  offset?: number | undefined;
631
631
  id?: string | undefined;
@@ -641,7 +641,7 @@ export declare const _FlowStateFilter: z.ZodObject<{
641
641
  endTime?: string | null | undefined;
642
642
  sort?: Record<string, "ASC" | "DESC"> | undefined;
643
643
  }, {
644
- status?: "RUNNING" | "ERROR" | "SUCCESS" | "CANCELLED" | "EXPIRED" | undefined;
644
+ status?: "RUNNING" | "SUCCESS" | "ERROR" | "CANCELLED" | "EXPIRED" | undefined;
645
645
  limit?: number | undefined;
646
646
  offset?: number | undefined;
647
647
  id?: string | undefined;
@@ -32,3 +32,4 @@ export * from './tokens.dto';
32
32
  export * from './users.dto';
33
33
  export * from './messagingChannels';
34
34
  export * from './cohort.dto';
35
+ export * from './actionExecution.dto';
@@ -48,4 +48,5 @@ __exportStar(require("./tokens.dto"), exports);
48
48
  __exportStar(require("./users.dto"), exports);
49
49
  __exportStar(require("./messagingChannels"), exports);
50
50
  __exportStar(require("./cohort.dto"), exports);
51
+ __exportStar(require("./actionExecution.dto"), exports);
51
52
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/dto/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+CAA6B;AAC7B,+CAA6B;AAC7B,8CAA4B;AAC5B,6CAA2B;AAC3B,mDAAiC;AACjC,8CAA4B;AAC5B,iDAA+B;AAC/B,sDAAoC;AACpC,qDAAmC;AACnC,yDAAuC;AACvC,0DAAwC;AACxC,6CAA2B;AAC3B,0CAAwB;AACxB,kDAAgC;AAChC,iDAA+B;AAC/B,yDAAuC;AACvC,8CAA4B;AAC5B,wCAAsB;AACtB,gDAA8B;AAC9B,qDAAmC;AACnC,6CAA2B;AAC3B,6CAA2B;AAC3B,kDAAgC;AAChC,sDAAoC;AACpC,yDAAuC;AACvC,mDAAiC;AACjC,uDAAqC;AACrC,kDAAgC;AAChC,mDAAiC;AACjC,gDAA8B;AAC9B,+CAA6B;AAC7B,8CAA4B;AAC5B,sDAAoC;AACpC,+CAA6B"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/dto/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+CAA6B;AAC7B,+CAA6B;AAC7B,8CAA4B;AAC5B,6CAA2B;AAC3B,mDAAiC;AACjC,8CAA4B;AAC5B,iDAA+B;AAC/B,sDAAoC;AACpC,qDAAmC;AACnC,yDAAuC;AACvC,0DAAwC;AACxC,6CAA2B;AAC3B,0CAAwB;AACxB,kDAAgC;AAChC,iDAA+B;AAC/B,yDAAuC;AACvC,8CAA4B;AAC5B,wCAAsB;AACtB,gDAA8B;AAC9B,qDAAmC;AACnC,6CAA2B;AAC3B,6CAA2B;AAC3B,kDAAgC;AAChC,sDAAoC;AACpC,yDAAuC;AACvC,mDAAiC;AACjC,uDAAqC;AACrC,kDAAgC;AAChC,mDAAiC;AACjC,gDAA8B;AAC9B,+CAA6B;AAC7B,8CAA4B;AAC5B,sDAAoC;AACpC,+CAA6B;AAC7B,wDAAsC"}
@@ -20,3 +20,4 @@ export * from './platform.tenants.dto';
20
20
  export * from './platform.tokens.dto';
21
21
  export * from './platform.users.dto';
22
22
  export * from './tenant.based.dto';
23
+ export * from './platform.actionExecution.dto';
@@ -36,4 +36,5 @@ __exportStar(require("./platform.tenants.dto"), exports);
36
36
  __exportStar(require("./platform.tokens.dto"), exports);
37
37
  __exportStar(require("./platform.users.dto"), exports);
38
38
  __exportStar(require("./tenant.based.dto"), exports);
39
+ __exportStar(require("./platform.actionExecution.dto"), exports);
39
40
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/dto/platform/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,wDAAsC;AACtC,wDAAsC;AACtC,4DAA0C;AAC1C,+DAA6C;AAC7C,8DAA4C;AAC5C,kEAAgD;AAChD,0DAAwC;AACxC,uDAAqC;AACrC,mEAAiD;AACjD,yDAAuC;AACvC,8DAA4C;AAC5C,2DAAyC;AACzC,+DAA6C;AAC7C,iEAA+C;AAC/C,4DAA0C;AAC1C,gEAA8C;AAC9C,2DAAyC;AACzC,4DAA0C;AAC1C,yDAAuC;AACvC,wDAAsC;AACtC,uDAAqC;AACrC,qDAAmC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/dto/platform/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,wDAAsC;AACtC,wDAAsC;AACtC,4DAA0C;AAC1C,+DAA6C;AAC7C,8DAA4C;AAC5C,kEAAgD;AAChD,0DAAwC;AACxC,uDAAqC;AACrC,mEAAiD;AACjD,yDAAuC;AACvC,8DAA4C;AAC5C,2DAAyC;AACzC,+DAA6C;AAC7C,iEAA+C;AAC/C,4DAA0C;AAC1C,gEAA8C;AAC9C,2DAAyC;AACzC,4DAA0C;AAC1C,yDAAuC;AACvC,wDAAsC;AACtC,uDAAqC;AACrC,qDAAmC;AACnC,iEAA+C"}
@@ -0,0 +1,77 @@
1
+ import { z } from 'zod';
2
+ export declare const _PlatformActionExecutionDto: z.ZodObject<{
3
+ input: z.ZodUnknown;
4
+ status: z.ZodNativeEnum<typeof import("..").ActionExecutionStatus>;
5
+ specId: z.ZodString;
6
+ output: z.ZodUnknown;
7
+ executionTime: z.ZodNullable<z.ZodString>;
8
+ executionDuration: z.ZodNullable<z.ZodNumber>;
9
+ id: z.ZodString;
10
+ createdAt: z.ZodString;
11
+ updatedAt: z.ZodString;
12
+ deletedAt: z.ZodNullable<z.ZodString>;
13
+ tid: z.ZodString;
14
+ }, "strip", z.ZodTypeAny, {
15
+ status: import("..").ActionExecutionStatus;
16
+ id: string;
17
+ tid: string;
18
+ createdAt: string;
19
+ updatedAt: string;
20
+ deletedAt: string | null;
21
+ specId: string;
22
+ executionTime: string | null;
23
+ executionDuration: number | null;
24
+ input?: unknown;
25
+ output?: unknown;
26
+ }, {
27
+ status: import("..").ActionExecutionStatus;
28
+ id: string;
29
+ tid: string;
30
+ createdAt: string;
31
+ updatedAt: string;
32
+ deletedAt: string | null;
33
+ specId: string;
34
+ executionTime: string | null;
35
+ executionDuration: number | null;
36
+ input?: unknown;
37
+ output?: unknown;
38
+ }>;
39
+ export type PlatformActionExecutionDto = z.infer<typeof _PlatformActionExecutionDto>;
40
+ export declare const _PlatformActionExecutionUpsertDto: z.ZodObject<{
41
+ input: z.ZodUnknown;
42
+ status: z.ZodNativeEnum<typeof import("..").ActionExecutionStatus>;
43
+ specId: z.ZodString;
44
+ output: z.ZodUnknown;
45
+ executionTime: z.ZodNullable<z.ZodString>;
46
+ executionDuration: z.ZodNullable<z.ZodNumber>;
47
+ id: z.ZodOptional<z.ZodString>;
48
+ createdAt: z.ZodOptional<z.ZodString>;
49
+ updatedAt: z.ZodOptional<z.ZodString>;
50
+ deletedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
51
+ tid: z.ZodOptional<z.ZodString>;
52
+ }, "strip", z.ZodTypeAny, {
53
+ status: import("..").ActionExecutionStatus;
54
+ specId: string;
55
+ executionTime: string | null;
56
+ executionDuration: number | null;
57
+ input?: unknown;
58
+ output?: unknown;
59
+ id?: string | undefined;
60
+ createdAt?: string | undefined;
61
+ updatedAt?: string | undefined;
62
+ deletedAt?: string | null | undefined;
63
+ tid?: string | undefined;
64
+ }, {
65
+ status: import("..").ActionExecutionStatus;
66
+ specId: string;
67
+ executionTime: string | null;
68
+ executionDuration: number | null;
69
+ input?: unknown;
70
+ output?: unknown;
71
+ id?: string | undefined;
72
+ createdAt?: string | undefined;
73
+ updatedAt?: string | undefined;
74
+ deletedAt?: string | null | undefined;
75
+ tid?: string | undefined;
76
+ }>;
77
+ export type PlatformActionExecutionUpsertDto = z.infer<typeof _PlatformActionExecutionUpsertDto>;
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports._PlatformActionExecutionUpsertDto = exports._PlatformActionExecutionDto = void 0;
4
+ const actionExecution_dto_1 = require("../actionExecution.dto");
5
+ const tenant_based_dto_1 = require("./tenant.based.dto");
6
+ exports._PlatformActionExecutionDto = actionExecution_dto_1._ActionExecutionDto.merge(tenant_based_dto_1._TenantBased);
7
+ exports._PlatformActionExecutionUpsertDto = actionExecution_dto_1._ActionExecutionUpsertDto.merge(tenant_based_dto_1._UpsertTenantBased);
8
+ //# sourceMappingURL=platform.actionExecution.dto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"platform.actionExecution.dto.js","sourceRoot":"","sources":["../../../../src/dto/platform/platform.actionExecution.dto.ts"],"names":[],"mappings":";;;AACA,gEAAsF;AACtF,yDAAoE;AAEvD,QAAA,2BAA2B,GAAG,yCAAmB,CAAC,KAAK,CAAC,+BAAY,CAAC,CAAC;AAGtE,QAAA,iCAAiC,GAAG,+CAAyB,CAAC,KAAK,CAAC,qCAAkB,CAAC,CAAC"}
@@ -56,7 +56,7 @@ export declare const _PlatformCustomScoreCohortDto: z.ZodObject<{
56
56
  createdAt: z.ZodString;
57
57
  updatedAt: z.ZodString;
58
58
  deletedAt: z.ZodNullable<z.ZodString>;
59
- cohort: z.ZodObject<{
59
+ cohort: z.ZodUnion<[z.ZodObject<{
60
60
  id: z.ZodString;
61
61
  kind: z.ZodEnum<["ORGANIZATION", "DEPARTMENT", "USER", "RISK_CONTRIBUTOR"]>;
62
62
  displayValue: z.ZodString;
@@ -74,7 +74,25 @@ export declare const _PlatformCustomScoreCohortDto: z.ZodObject<{
74
74
  id: string;
75
75
  displayValue: string;
76
76
  kind: "USER" | "ORGANIZATION" | "DEPARTMENT" | "RISK_CONTRIBUTOR";
77
- }>;
77
+ }>, z.ZodArray<z.ZodObject<{
78
+ id: z.ZodString;
79
+ kind: z.ZodEnum<["ORGANIZATION", "DEPARTMENT", "USER", "RISK_CONTRIBUTOR"]>;
80
+ displayValue: z.ZodString;
81
+ value: z.ZodString;
82
+ inclusive: z.ZodBoolean;
83
+ }, "strip", z.ZodTypeAny, {
84
+ inclusive: boolean;
85
+ value: string;
86
+ id: string;
87
+ displayValue: string;
88
+ kind: "USER" | "ORGANIZATION" | "DEPARTMENT" | "RISK_CONTRIBUTOR";
89
+ }, {
90
+ inclusive: boolean;
91
+ value: string;
92
+ id: string;
93
+ displayValue: string;
94
+ kind: "USER" | "ORGANIZATION" | "DEPARTMENT" | "RISK_CONTRIBUTOR";
95
+ }>, "many">]>;
78
96
  multiplier: z.ZodNumber;
79
97
  tid: z.ZodString;
80
98
  }, "strip", z.ZodTypeAny, {
@@ -83,13 +101,31 @@ export declare const _PlatformCustomScoreCohortDto: z.ZodObject<{
83
101
  createdAt: string;
84
102
  updatedAt: string;
85
103
  deletedAt: string | null;
86
- cohort: {
104
+ cohort: ({
105
+ inclusive: boolean;
106
+ value: string;
107
+ id: string;
108
+ displayValue: string;
109
+ kind: "USER" | "ORGANIZATION" | "DEPARTMENT" | "RISK_CONTRIBUTOR";
110
+ } | {
87
111
  inclusive: boolean;
88
112
  value: string;
89
113
  id: string;
90
114
  displayValue: string;
91
115
  kind: "USER" | "ORGANIZATION" | "DEPARTMENT" | "RISK_CONTRIBUTOR";
92
- };
116
+ }[]) & ({
117
+ inclusive: boolean;
118
+ value: string;
119
+ id: string;
120
+ displayValue: string;
121
+ kind: "USER" | "ORGANIZATION" | "DEPARTMENT" | "RISK_CONTRIBUTOR";
122
+ } | {
123
+ inclusive: boolean;
124
+ value: string;
125
+ id: string;
126
+ displayValue: string;
127
+ kind: "USER" | "ORGANIZATION" | "DEPARTMENT" | "RISK_CONTRIBUTOR";
128
+ }[] | undefined);
93
129
  multiplier: number;
94
130
  }, {
95
131
  id: string;
@@ -97,13 +133,31 @@ export declare const _PlatformCustomScoreCohortDto: z.ZodObject<{
97
133
  createdAt: string;
98
134
  updatedAt: string;
99
135
  deletedAt: string | null;
100
- cohort: {
136
+ cohort: ({
137
+ inclusive: boolean;
138
+ value: string;
139
+ id: string;
140
+ displayValue: string;
141
+ kind: "USER" | "ORGANIZATION" | "DEPARTMENT" | "RISK_CONTRIBUTOR";
142
+ } | {
143
+ inclusive: boolean;
144
+ value: string;
145
+ id: string;
146
+ displayValue: string;
147
+ kind: "USER" | "ORGANIZATION" | "DEPARTMENT" | "RISK_CONTRIBUTOR";
148
+ }[]) & ({
149
+ inclusive: boolean;
150
+ value: string;
151
+ id: string;
152
+ displayValue: string;
153
+ kind: "USER" | "ORGANIZATION" | "DEPARTMENT" | "RISK_CONTRIBUTOR";
154
+ } | {
101
155
  inclusive: boolean;
102
156
  value: string;
103
157
  id: string;
104
158
  displayValue: string;
105
159
  kind: "USER" | "ORGANIZATION" | "DEPARTMENT" | "RISK_CONTRIBUTOR";
106
- };
160
+ }[] | undefined);
107
161
  multiplier: number;
108
162
  }>;
109
163
  export type PlatformCustomScoreCohortDto = z.infer<typeof _PlatformCustomScoreCohortDto>;
@@ -112,7 +166,7 @@ export declare const _PlatformCustomScoreCohortUpsertDto: z.ZodObject<{
112
166
  createdAt: z.ZodString;
113
167
  updatedAt: z.ZodString;
114
168
  deletedAt: z.ZodNullable<z.ZodString>;
115
- cohort: z.ZodObject<{
169
+ cohort: z.ZodUnion<[z.ZodObject<{
116
170
  id: z.ZodString;
117
171
  kind: z.ZodEnum<["ORGANIZATION", "DEPARTMENT", "USER", "RISK_CONTRIBUTOR"]>;
118
172
  displayValue: z.ZodString;
@@ -130,7 +184,25 @@ export declare const _PlatformCustomScoreCohortUpsertDto: z.ZodObject<{
130
184
  id: string;
131
185
  displayValue: string;
132
186
  kind: "USER" | "ORGANIZATION" | "DEPARTMENT" | "RISK_CONTRIBUTOR";
133
- }>;
187
+ }>, z.ZodArray<z.ZodObject<{
188
+ id: z.ZodString;
189
+ kind: z.ZodEnum<["ORGANIZATION", "DEPARTMENT", "USER", "RISK_CONTRIBUTOR"]>;
190
+ displayValue: z.ZodString;
191
+ value: z.ZodString;
192
+ inclusive: z.ZodBoolean;
193
+ }, "strip", z.ZodTypeAny, {
194
+ inclusive: boolean;
195
+ value: string;
196
+ id: string;
197
+ displayValue: string;
198
+ kind: "USER" | "ORGANIZATION" | "DEPARTMENT" | "RISK_CONTRIBUTOR";
199
+ }, {
200
+ inclusive: boolean;
201
+ value: string;
202
+ id: string;
203
+ displayValue: string;
204
+ kind: "USER" | "ORGANIZATION" | "DEPARTMENT" | "RISK_CONTRIBUTOR";
205
+ }>, "many">]>;
134
206
  multiplier: z.ZodNumber;
135
207
  tid: z.ZodString;
136
208
  }, "strip", z.ZodTypeAny, {
@@ -139,13 +211,31 @@ export declare const _PlatformCustomScoreCohortUpsertDto: z.ZodObject<{
139
211
  createdAt: string;
140
212
  updatedAt: string;
141
213
  deletedAt: string | null;
142
- cohort: {
214
+ cohort: ({
215
+ inclusive: boolean;
216
+ value: string;
217
+ id: string;
218
+ displayValue: string;
219
+ kind: "USER" | "ORGANIZATION" | "DEPARTMENT" | "RISK_CONTRIBUTOR";
220
+ } | {
143
221
  inclusive: boolean;
144
222
  value: string;
145
223
  id: string;
146
224
  displayValue: string;
147
225
  kind: "USER" | "ORGANIZATION" | "DEPARTMENT" | "RISK_CONTRIBUTOR";
148
- };
226
+ }[]) & ({
227
+ inclusive: boolean;
228
+ value: string;
229
+ id: string;
230
+ displayValue: string;
231
+ kind: "USER" | "ORGANIZATION" | "DEPARTMENT" | "RISK_CONTRIBUTOR";
232
+ } | {
233
+ inclusive: boolean;
234
+ value: string;
235
+ id: string;
236
+ displayValue: string;
237
+ kind: "USER" | "ORGANIZATION" | "DEPARTMENT" | "RISK_CONTRIBUTOR";
238
+ }[] | undefined);
149
239
  multiplier: number;
150
240
  }, {
151
241
  id: string;
@@ -153,13 +243,31 @@ export declare const _PlatformCustomScoreCohortUpsertDto: z.ZodObject<{
153
243
  createdAt: string;
154
244
  updatedAt: string;
155
245
  deletedAt: string | null;
156
- cohort: {
246
+ cohort: ({
247
+ inclusive: boolean;
248
+ value: string;
249
+ id: string;
250
+ displayValue: string;
251
+ kind: "USER" | "ORGANIZATION" | "DEPARTMENT" | "RISK_CONTRIBUTOR";
252
+ } | {
253
+ inclusive: boolean;
254
+ value: string;
255
+ id: string;
256
+ displayValue: string;
257
+ kind: "USER" | "ORGANIZATION" | "DEPARTMENT" | "RISK_CONTRIBUTOR";
258
+ }[]) & ({
259
+ inclusive: boolean;
260
+ value: string;
261
+ id: string;
262
+ displayValue: string;
263
+ kind: "USER" | "ORGANIZATION" | "DEPARTMENT" | "RISK_CONTRIBUTOR";
264
+ } | {
157
265
  inclusive: boolean;
158
266
  value: string;
159
267
  id: string;
160
268
  displayValue: string;
161
269
  kind: "USER" | "ORGANIZATION" | "DEPARTMENT" | "RISK_CONTRIBUTOR";
162
- };
270
+ }[] | undefined);
163
271
  multiplier: number;
164
272
  }>;
165
273
  export type PlatformCustomScoreCohortUpsertDto = z.infer<typeof _PlatformCustomScoreCohortUpsertDto>;
@@ -789,7 +789,7 @@ export declare const _PlatformFlowStateUpsertDto: z.ZodObject<{
789
789
  deletedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
790
790
  tid: z.ZodOptional<z.ZodString>;
791
791
  }, "strip", z.ZodTypeAny, {
792
- status: "RUNNING" | "ERROR" | "SUCCESS" | "CANCELLED" | "EXPIRED";
792
+ status: "RUNNING" | "SUCCESS" | "ERROR" | "CANCELLED" | "EXPIRED";
793
793
  nodeName: string;
794
794
  totalSteps: number;
795
795
  currentStep: number;
@@ -826,7 +826,7 @@ export declare const _PlatformFlowStateUpsertDto: z.ZodObject<{
826
826
  deletedAt?: string | null | undefined;
827
827
  tid?: string | undefined;
828
828
  }, {
829
- status: "RUNNING" | "ERROR" | "SUCCESS" | "CANCELLED" | "EXPIRED";
829
+ status: "RUNNING" | "SUCCESS" | "ERROR" | "CANCELLED" | "EXPIRED";
830
830
  nodeName: string;
831
831
  totalSteps: number;
832
832
  currentStep: number;
@@ -996,7 +996,7 @@ export declare const _PlatformFlowStateDto: z.ZodObject<{
996
996
  deletedAt: z.ZodNullable<z.ZodString>;
997
997
  tid: z.ZodString;
998
998
  }, "strip", z.ZodTypeAny, {
999
- status: "RUNNING" | "ERROR" | "SUCCESS" | "CANCELLED" | "EXPIRED";
999
+ status: "RUNNING" | "SUCCESS" | "ERROR" | "CANCELLED" | "EXPIRED";
1000
1000
  id: string;
1001
1001
  tid: string;
1002
1002
  createdAt: string;
@@ -1033,7 +1033,7 @@ export declare const _PlatformFlowStateDto: z.ZodObject<{
1033
1033
  fid?: string | undefined;
1034
1034
  specId?: string | undefined;
1035
1035
  }, {
1036
- status: "RUNNING" | "ERROR" | "SUCCESS" | "CANCELLED" | "EXPIRED";
1036
+ status: "RUNNING" | "SUCCESS" | "ERROR" | "CANCELLED" | "EXPIRED";
1037
1037
  id: string;
1038
1038
  tid: string;
1039
1039
  createdAt: string;
@@ -1,4 +1,4 @@
1
- import { AgentDto, AgentUpsertDto, AssetDto, CustomActionDto, CustomActionUpsertDto, CustomScoreCohortDto, CustomScoreCohortUpsertDto, CustomScoreValueDto, CustomScoreValueUpsertDto, FindingSpecDto, FindingSpecUpsertDto, ProviderDto, ReportResultDto, SaasAssetDto, SaasComponentDto, SaasUserDto, TenantDto, TenantUpsertDto, TokenDto, UserDto } from '../dto';
1
+ import { ActionExecutionDto, AgentDto, AgentUpsertDto, AssetDto, CustomActionDto, CustomActionUpsertDto, CustomScoreCohortDto, CustomScoreCohortUpsertDto, CustomScoreValueDto, CustomScoreValueUpsertDto, FindingSpecDto, FindingSpecUpsertDto, ProviderDto, ReportResultDto, SaasAssetDto, SaasComponentDto, SaasUserDto, TenantDto, TenantUpsertDto, TokenDto, UserDto } from '../dto';
2
2
  import { AmpEntityService, AmpDataService, AmpReportService, AmpSettingsService, ConnectorsService, FindingsInsightsService, FindingsService, NotificationService, PredictionService } from '.';
3
3
  import { AmpRestClientOptions, AgentIdentityService, ConnectorInstallService, EnumService, RestClient } from './rest';
4
4
  import { UsersInsightsService } from './usersInsights.service';
@@ -18,6 +18,7 @@ export type AmpApiOptions = AmpRestClientOptions;
18
18
  * - Tenants: {@link AmpApi.tenants}
19
19
  */
20
20
  export declare class AmpApi {
21
+ readonly actionExecutions: AmpDataService<ActionExecutionDto>;
21
22
  readonly agents: AmpEntityService<AgentUpsertDto, AgentDto>;
22
23
  readonly asset: AmpDataService<AssetDto>;
23
24
  readonly cohorts: CohortService;
@@ -21,6 +21,7 @@ const CohortService_1 = require("./rest/CohortService");
21
21
  */
22
22
  class AmpApi {
23
23
  constructor(rest) {
24
+ this.actionExecutions = new _1.AmpDataServiceImpl(rest, constants_1.KIND.ACTION_EXECUTION);
24
25
  this.agents = new _1.AmpEntityServiceImpl(rest, constants_1.KIND.AGENTS);
25
26
  this.asset = new _1.AmpDataServiceImpl(rest, constants_1.KIND.ASSETS);
26
27
  this.cohorts = new CohortService_1.CohortService(rest);
@@ -1 +1 @@
1
- {"version":3,"file":"AmpApi.js","sourceRoot":"","sources":["../../../src/services/AmpApi.ts"],"names":[],"mappings":";;;AAsBA,wBAaW;AACX,2CAAmD;AACnD,iCAA0J;AAC1J,mEAA6D;AAC7D,2DAAqD;AACrD,wDAAmD;AAInD;;;;;;;;;;;GAWG;AACH,MAAa,MAAM;IA6BjB,YAAY,IAAgB;QAC1B,IAAI,CAAC,MAAM,GAAG,IAAI,uBAAoB,CAA2B,IAAI,EAAE,gBAAI,CAAC,MAAM,CAAC,CAAC;QACpF,IAAI,CAAC,KAAK,GAAG,IAAI,qBAAkB,CAAW,IAAI,EAAE,gBAAI,CAAC,MAAM,CAAC,CAAC;QACjE,IAAI,CAAC,OAAO,GAAG,IAAI,6BAAa,CAAC,IAAI,CAAC,CAAC;QACvC,IAAI,CAAC,UAAU,GAAG,IAAI,oBAAiB,CAAC,IAAI,CAAC,CAAC;QAC9C,IAAI,CAAC,aAAa,GAAG,IAAI,uBAAoB,CAAyC,IAAI,EAAE,gBAAI,CAAC,cAAc,CAAC,CAAC;QACjH,IAAI,CAAC,kBAAkB,GAAG,IAAI,uBAAoB,CAAmD,IAAI,EAAE,gBAAI,CAAC,oBAAoB,CAAC,CAAC;QACtI,IAAI,CAAC,iBAAiB,GAAG,IAAI,uBAAoB,CAAiD,IAAI,EAAE,gBAAI,CAAC,mBAAmB,CAAC,CAAC;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AoB,CAAC,IAAI,CAAC,CAAC;QAC9C,IAAI,CAAC,UAAU,GAAG,IAAI,qBAAkB,CAAe,IAAI,EAAE,gBAAI,CAAC,WAAW,CAAC,CAAC;QAC/E,IAAI,CAAC,cAAc,GAAG,IAAI,qBAAkB,CAAmB,IAAI,EAAE,gBAAI,CAAC,eAAe,CAAC,CAAC;QAC3F,IAAI,CAAC,SAAS,GAAG,IAAI,qBAAkB,CAAc,IAAI,EAAE,gBAAI,CAAC,UAAU,CAAC,CAAC;QAC5E,IAAI,CAAC,QAAQ,GAAG,IAAI,qBAAkB,CAAC,IAAI,CAAC,CAAC;QAC7C,IAAI,CAAC,OAAO,GAAG,IAAI,uBAAoB,CAA6B,IAAI,EAAE,gBAAI,CAAC,OAAO,CAAC,CAAC;QACxF,IAAI,CAAC,MAAM,GAAG,IAAI,qBAAkB,CAAW,IAAI,EAAE,gBAAI,CAAC,MAAM,CAAC,CAAC;QAClE,IAAI,CAAC,KAAK,GAAG,IAAI,qBAAkB,CAAU,IAAI,EAAE,gBAAI,CAAC,KAAK,CAAC,CAAC;QAC/D,IAAI,CAAC,aAAa,GAAG,IAAI,4CAAoB,CAAC,IAAI,CAAC,CAAC;QACpD,IAAI,CAAC,UAAU,GAAG,IAAI,oBAAiB,CAAC,IAAI,EAAE,gBAAI,CAAC,QAAQ,CAAC,CAAC;IAC/D,CAAC;IAED,MAAM,CAAC,QAAQ,CAAC,OAAsB;QACpC,MAAM,IAAI,GAAG,IAAA,uBAAgB,EAAC,OAAO,CAAC,CAAC;QACvC,OAAO,IAAI,MAAM,CAAC,IAAI,CAAC,CAAC;IAC1B,CAAC;CACF;AAjED,wBAiEC"}
@@ -1,4 +1,4 @@
1
- import { PlatformAgentDto, PlatformAgentUpsertDto, PlatformConnectorDto, PlatformConnectorUpsertDto, PlatformCustomActionDto, PlatformCustomActionUpsertDto, PlatformCustomScoreCohortDto, PlatformCustomScoreCohortUpsertDto, PlatformCustomScoreValueDto, PlatformCustomScoreValueUpsertDto, PlatformFindingDto, PlatformFindingSpecDto, PlatformFindingSpecUpsertDto, PlatformFindingUpsertDto, PlatformFlowSpecDto, PlatformFlowSpecUpsertDto, PlatformFlowStateDto, PlatformFlowStateUpsertDto, PlatformJobExecutionStateDto, PlatformJobExecutionStateUpsertDto, PlatformJobSpecDto, PlatformJobSpecUpsertDto, PlatformNotificationDto, PlatformNotificationUpsertDto, PlatformProviderUpsertDto, PlatformReportResultDto, PlatformReportResultUpsertDto, PlatformRiskContributorDto, PlatformRiskContributorUpsertDto, PlatformSaasComponentDto, PlatformSaasComponentUpsertDto, PlatformStagedSaasAssetDto, PlatformStagedSaasAssetUpsertDto, PlatformStagedSaasUserDto, PlatformStagedSaasUserUpsertDto, PlatformTokenDto, PlatformTokenUpsertDto, ProviderDto, TenantDto, TenantUpsertDto } from '../dto';
1
+ import { PlatformActionExecutionDto, PlatformActionExecutionUpsertDto, PlatformAgentDto, PlatformAgentUpsertDto, PlatformConnectorDto, PlatformConnectorUpsertDto, PlatformCustomActionDto, PlatformCustomActionUpsertDto, PlatformCustomScoreCohortDto, PlatformCustomScoreCohortUpsertDto, PlatformCustomScoreValueDto, PlatformCustomScoreValueUpsertDto, PlatformFindingDto, PlatformFindingSpecDto, PlatformFindingSpecUpsertDto, PlatformFindingUpsertDto, PlatformFlowSpecDto, PlatformFlowSpecUpsertDto, PlatformFlowStateDto, PlatformFlowStateUpsertDto, PlatformJobExecutionStateDto, PlatformJobExecutionStateUpsertDto, PlatformJobSpecDto, PlatformJobSpecUpsertDto, PlatformNotificationDto, PlatformNotificationUpsertDto, PlatformProviderUpsertDto, PlatformReportResultDto, PlatformReportResultUpsertDto, PlatformRiskContributorDto, PlatformRiskContributorUpsertDto, PlatformSaasComponentDto, PlatformSaasComponentUpsertDto, PlatformStagedSaasAssetDto, PlatformStagedSaasAssetUpsertDto, PlatformStagedSaasUserDto, PlatformStagedSaasUserUpsertDto, PlatformTokenDto, PlatformTokenUpsertDto, ProviderDto, TenantDto, TenantUpsertDto } from '../dto';
2
2
  import { AmpEntityService, AmpSdkAssetService, AmpSdkTenantService, AmpSdkUserService, TruncatableAmpEntityService } from './entity.service';
3
3
  import { AmpRestClientOptions, RestClient } from './rest';
4
4
  import { EnumService } from './rest/EnumService';
@@ -17,6 +17,7 @@ export type AmpSdkOptions = AmpRestClientOptions;
17
17
  * This client provides CRUD access to all of the AMP API.
18
18
  */
19
19
  export declare class AmpSdkServices {
20
+ readonly actionExecutions: AmpEntityService<PlatformActionExecutionUpsertDto, PlatformActionExecutionDto>;
20
21
  readonly agents: AmpEntityService<PlatformAgentUpsertDto, PlatformAgentDto>;
21
22
  readonly asset: AmpSdkAssetService;
22
23
  readonly connectors: AmpEntityService<PlatformConnectorUpsertDto, PlatformConnectorDto>;
@@ -20,6 +20,7 @@ const findingsInsights_service_1 = require("./findingsInsights.service");
20
20
  */
21
21
  class AmpSdkServices {
22
22
  constructor(rest) {
23
+ this.actionExecutions = new entity_service_1.AmpEntityServiceImpl(rest, constants_1.KIND.ACTION_EXECUTION, constants_1.TARGET_API_PLATFORM);
23
24
  this.agents = new entity_service_1.AmpEntityServiceImpl(rest, constants_1.KIND.AGENTS, constants_1.TARGET_API_PLATFORM);
24
25
  this.asset = new entity_service_1.AmpSdkAssetService(rest, constants_1.TARGET_API_PLATFORM);
25
26
  this.connectors = new entity_service_1.AmpEntityServiceImpl(rest, constants_1.KIND.CONNECTORS, constants_1.TARGET_API_PLATFORM);
@@ -1 +1 @@
1
- {"version":3,"file":"AmpSdk.js","sourceRoot":"","sources":["../../../src/services/AmpSdk.ts"],"names":[],"mappings":";;;AA4CA,qDAQ0B;AAC1B,iCAA0E;AAC1E,2CAAsD;AACtD,oDAAmE;AACnE,yDAAyD;AACzD,6DAA+J;AAC/J,6DAAuD;AACvD,yEAAmE;AAInE;;;;;;;;GAQG;AACH,MAAa,cAAc;IA+BzB,YAAY,IAAgB;QAC1B,IAAI,CAAC,MAAM,GAAG,IAAI,qCAAoB,CAA2C,IAAI,EAAE,g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AAI,CAAC,OAAO,GAAG,IAAI,qCAAoB,CAA6B,IAAI,EAAE,gBAAI,CAAC,OAAO,EAAE,+BAAmB,CAAC,CAAC;QAC7G,IAAI,CAAC,MAAM,GAAG,IAAI,qCAAoB,CAA2C,IAAI,EAAE,gBAAI,CAAC,MAAM,EAAE,+BAAmB,CAAC,CAAC;QACzH,IAAI,CAAC,KAAK,GAAG,IAAI,kCAAiB,CAAC,IAAI,EAAE,+BAAmB,CAAC,CAAC;IAChE,CAAC;IAED,MAAM,CAAC,QAAQ,CAAC,OAAsB;QACpC,MAAM,IAAI,GAAG,IAAA,uBAAgB,EAAC,OAAO,CAAC,CAAC;QACvC,OAAO,IAAI,cAAc,CAAC,IAAI,CAAC,CAAC;IAClC,CAAC;CACF;AA1ED,wCA0EC"}
@@ -38,6 +38,7 @@ export declare const KIND: {
38
38
  USERS: string;
39
39
  USERS_INSIGHTS: string;
40
40
  WORKFLOW_PROGRESS: string;
41
+ ACTION_EXECUTION: string;
41
42
  };
42
43
  export declare const REPORTS: {
43
44
  HEALTH_SCORE: string;
@@ -37,6 +37,7 @@ exports.KIND = {
37
37
  USERS: 'users',
38
38
  USERS_INSIGHTS: 'coverage',
39
39
  WORKFLOW_PROGRESS: 'workflow_progress',
40
+ ACTION_EXECUTION: 'action_executions',
40
41
  };
41
42
  exports.REPORTS = {
42
43
  HEALTH_SCORE: 'health-score',
@@ -1 +1 @@
1
- {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../src/services/constants.ts"],"names":[],"mappings":";;;AAIa,QAAA,2BAA2B,GAAG,CAAC,CAAC;AAGhC,QAAA,mBAAmB,GAAc,UAAU,CAAC;AAC5C,QAAA,gBAAgB,GAAc,KAAK,CAAC;AACpC,QAAA,iBAAiB,GAAc,KAAK,CAAC;AAErC,QAAA,IAAI,GAAG;IAClB,MAAM,EAAE,QAAQ;IAChB,MAAM,EAAE,QAAQ;IAChB,UAAU,EAAE,YAAY;IACxB,cAAc,EAAE,gBAAgB;IAChC,o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AE,0BAA0B;IACxC,qBAAqB,EAAE,uBAAuB;IAC9C,gBAAgB,EAAE,kBAAkB;IACpC,WAAW,EAAE,aAAa;IAC1B,mBAAmB;IACnB,kBAAkB,EAAE,sBAAsB;CAC3C,CAAC"}
@@ -13,7 +13,7 @@ export type AmpRestClientOptions = {
13
13
  rateLimitStrategy?: RestClientRateLimitStrategy;
14
14
  logger?: AmpLogger;
15
15
  client?: AxiosStatic;
16
- /** Throws errors on non-200 responses if `true`. Default `false` */
16
+ /** Throws errors on non-200 responses if `true`*/
17
17
  strict?: boolean;
18
18
  };
19
19
  export type RestClientOptions = {
@@ -113,7 +113,7 @@ const getAmpRestClient = (options) => {
113
113
  rateLimitStrategy: new rateLimit_rest_1.StaticRestClientRateLimitStrategy(50),
114
114
  logger: options.logger,
115
115
  client: options.client,
116
- strict: options.strict,
116
+ strict: lodash_1.default.isUndefined(options.strict) ? true : options.strict,
117
117
  });
118
118
  return ampClient;
119
119
  };
@@ -1 +1 @@
1
- {"version":3,"file":"RestClient.js","sourceRoot":"","sources":["../../../../src/services/rest/RestClient.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,oDAAuB;AACvB,4CAAoB;AACpB,+CAA4D;AAG5D,6CAA4E;AAC5E,mCAAmD;AACnD,qDAAiI;AACjI,2CAAoD;AAmCpD;;;;;;GAMG;AACH,MAAa,iBAAiB;IAQ5B,YAAY,UAA6B,EAAE;;QAqB3C,SAAI,GAAG,KAAK,EAAE,OAAoB,EAAyB,EAAE;;YAC3D,MAAM,GAAG,GAAG,gBAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;YAC7B,IAAI,CAAC;gBACH,MAAM,IAAI,CAAC,iBAAiB,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;gBAC1C,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,EAAC,GAAG,EAAC,CAAC,CAAC,CAAC,yBAAyB;gBACnD,MAAM,GAAG,GAAG,MAAM,IAAI,C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AAEM,MAAM,gBAAgB,GAAG,CAAC,OAA6B,EAAc,EAAE;IAC5E,MAAM,SAAS,GAAG,IAAI,iBAAiB,CAAC;QACtC,OAAO,EAAE,OAAO,CAAC,OAAO;QACxB,OAAO,EAAE;YACP,aAAa,EAAE,UAAU,OAAO,CAAC,KAAK,EAAE;SACzC;QACD,iBAAiB,EAAE,IAAI,kDAAiC,CAAC,EAAE,CAAC;QAC5D,MAAM,EAAE,OAAO,CAAC,MAAM;QACtB,MAAM,EAAE,OAAO,CAAC,MAAM;QACtB,MAAM,EAAE,gBAAC,CAAC,WAAW,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC,MAAM;KAC9D,CAAC,CAAC;IACH,OAAO,SAAS,CAAC;AACnB,CAAC,CAAC;AAZW,QAAA,gBAAgB,oBAY3B"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ampsec/platform-client",
3
- "version": "62.24.0",
3
+ "version": "63.1.0",
4
4
  "description": "",
5
5
  "main": "build/src/index.js",
6
6
  "runkitExampleFilename": "example/main.js",
@@ -0,0 +1,24 @@
1
+ import {z} from 'zod';
2
+ import {UPSERT_DTO_MASK, _BaseDto} from './base.dto';
3
+ import {ActionExecutionStatus} from './enums/actionExecution.status';
4
+
5
+ // TODO use more specific types if we are going to process this data. At the moment, we are only storing/displaying it as a string
6
+ export const _ActionExecutionInput = z.unknown();
7
+ export type ActionExecutionInput = z.infer<typeof _ActionExecutionInput>;
8
+ // TODO use more specific types if we are going to process this data. At the moment, we are only storing/displaying it as a string
9
+ export const _ActionExecutionOutput = z.unknown();
10
+ export type ActionExecutionOutput = z.infer<typeof _ActionExecutionOutput>;
11
+
12
+ export const _ActionExecutionDto = _BaseDto.extend({
13
+ tid: z.string(),
14
+ specId: z.string(),
15
+ status: z.nativeEnum(ActionExecutionStatus),
16
+ input: _ActionExecutionInput,
17
+ output: _ActionExecutionOutput,
18
+ executionTime: z.nullable(z.string()),
19
+ executionDuration: z.nullable(z.number()),
20
+ });
21
+ export type ActionExecutionDto = z.infer<typeof _ActionExecutionDto>;
22
+
23
+ export const _ActionExecutionUpsertDto = _ActionExecutionDto.partial(UPSERT_DTO_MASK);
24
+ export type ActionExecutionUpsertDto = z.infer<typeof _ActionExecutionUpsertDto>;
@@ -12,7 +12,7 @@ export const _CustomScoreValueUpsertDto = _CustomScoreValueDto.partial(UPSERT_DT
12
12
  export type CustomScoreValueUpsertDto = z.infer<typeof _CustomScoreValueUpsertDto>;
13
13
 
14
14
  export const _CustomScoreCohortDto = _BaseDto.extend({
15
- cohort: _AmplifierCohortDto || z.array(_AmplifierCohortDto),
15
+ cohort: z.union([_AmplifierCohortDto, z.array(_AmplifierCohortDto)]),
16
16
  multiplier: z.number(),
17
17
  });
18
18
  export type CustomScoreCohortDto = z.infer<typeof _CustomScoreCohortDto>;
@@ -0,0 +1,6 @@
1
+ export enum ActionExecutionStatus {
2
+ PENDING = 'PENDING',
3
+ RUNNING = 'RUNNING',
4
+ SUCCESS = 'SUCCESS',
5
+ ERROR = 'ERROR',
6
+ }
@@ -18,3 +18,4 @@ export * from './requiredDataProperty.enum';
18
18
  export * from './riskContributor.type';
19
19
  export * from './saasComponentKind';
20
20
  export * from './aiServiceModelName';
21
+ export * from './actionExecution.status';
package/src/dto/index.ts CHANGED
@@ -32,3 +32,4 @@ export * from './tokens.dto';
32
32
  export * from './users.dto';
33
33
  export * from './messagingChannels';
34
34
  export * from './cohort.dto';
35
+ export * from './actionExecution.dto';
@@ -20,3 +20,4 @@ export * from './platform.tenants.dto';
20
20
  export * from './platform.tokens.dto';
21
21
  export * from './platform.users.dto';
22
22
  export * from './tenant.based.dto';
23
+ export * from './platform.actionExecution.dto';
@@ -0,0 +1,9 @@
1
+ import {z} from 'zod';
2
+ import {_ActionExecutionDto, _ActionExecutionUpsertDto} from '../actionExecution.dto';
3
+ import {_TenantBased, _UpsertTenantBased} from './tenant.based.dto';
4
+
5
+ export const _PlatformActionExecutionDto = _ActionExecutionDto.merge(_TenantBased);
6
+ export type PlatformActionExecutionDto = z.infer<typeof _PlatformActionExecutionDto>;
7
+
8
+ export const _PlatformActionExecutionUpsertDto = _ActionExecutionUpsertDto.merge(_UpsertTenantBased);
9
+ export type PlatformActionExecutionUpsertDto = z.infer<typeof _PlatformActionExecutionUpsertDto>;
@@ -1,4 +1,5 @@
1
1
  import {
2
+ ActionExecutionDto,
2
3
  AgentDto,
3
4
  AgentUpsertDto,
4
5
  AssetDto,
@@ -55,6 +56,7 @@ export type AmpApiOptions = AmpRestClientOptions;
55
56
  * - Tenants: {@link AmpApi.tenants}
56
57
  */
57
58
  export class AmpApi {
59
+ readonly actionExecutions: AmpDataService<ActionExecutionDto>;
58
60
  readonly agents: AmpEntityService<AgentUpsertDto, AgentDto>;
59
61
  readonly asset: AmpDataService<AssetDto>;
60
62
  readonly cohorts: CohortService;
@@ -84,6 +86,7 @@ export class AmpApi {
84
86
  readonly prediction: PredictionService;
85
87
 
86
88
  constructor(rest: RestClient) {
89
+ this.actionExecutions = new AmpDataServiceImpl<ActionExecutionDto>(rest, KIND.ACTION_EXECUTION);
87
90
  this.agents = new AmpEntityServiceImpl<AgentUpsertDto, AgentDto>(rest, KIND.AGENTS);
88
91
  this.asset = new AmpDataServiceImpl<AssetDto>(rest, KIND.ASSETS);
89
92
  this.cohorts = new CohortService(rest);
@@ -1,4 +1,6 @@
1
1
  import {
2
+ PlatformActionExecutionDto,
3
+ PlatformActionExecutionUpsertDto,
2
4
  PlatformAgentDto,
3
5
  PlatformAgentUpsertDto,
4
6
  PlatformConnectorDto,
@@ -71,6 +73,7 @@ export type AmpSdkOptions = AmpRestClientOptions;
71
73
  * This client provides CRUD access to all of the AMP API.
72
74
  */
73
75
  export class AmpSdkServices {
76
+ readonly actionExecutions: AmpEntityService<PlatformActionExecutionUpsertDto, PlatformActionExecutionDto>;
74
77
  readonly agents: AmpEntityService<PlatformAgentUpsertDto, PlatformAgentDto>;
75
78
  readonly asset: AmpSdkAssetService;
76
79
  readonly connectors: AmpEntityService<PlatformConnectorUpsertDto, PlatformConnectorDto>;
@@ -102,6 +105,7 @@ export class AmpSdkServices {
102
105
  readonly users: AmpSdkUserService;
103
106
 
104
107
  constructor(rest: RestClient) {
108
+ this.actionExecutions = new AmpEntityServiceImpl<PlatformActionExecutionUpsertDto, PlatformActionExecutionDto>(rest, KIND.ACTION_EXECUTION, TARGET_API_PLATFORM);
105
109
  this.agents = new AmpEntityServiceImpl<PlatformAgentUpsertDto, PlatformAgentDto>(rest, KIND.AGENTS, TARGET_API_PLATFORM);
106
110
  this.asset = new AmpSdkAssetService(rest, TARGET_API_PLATFORM);
107
111
  this.connectors = new AmpEntityServiceImpl<PlatformConnectorUpsertDto, PlatformConnectorDto>(rest, KIND.CONNECTORS, TARGET_API_PLATFORM);
@@ -41,6 +41,7 @@ export const KIND = {
41
41
  USERS: 'users',
42
42
  USERS_INSIGHTS: 'coverage',
43
43
  WORKFLOW_PROGRESS: 'workflow_progress',
44
+ ACTION_EXECUTION: 'action_executions',
44
45
  };
45
46
 
46
47
  export const REPORTS = {
@@ -16,7 +16,7 @@ export type AmpRestClientOptions = {
16
16
  rateLimitStrategy?: RestClientRateLimitStrategy;
17
17
  logger?: AmpLogger;
18
18
  client?: AxiosStatic;
19
- /** Throws errors on non-200 responses if `true`. Default `false` */
19
+ /** Throws errors on non-200 responses if `true`*/
20
20
  strict?: boolean;
21
21
  };
22
22
 
@@ -123,7 +123,7 @@ export const getAmpRestClient = (options: AmpRestClientOptions): RestClient => {
123
123
  rateLimitStrategy: new StaticRestClientRateLimitStrategy(50),
124
124
  logger: options.logger,
125
125
  client: options.client,
126
- strict: options.strict,
126
+ strict: _.isUndefined(options.strict) ? true : options.strict,
127
127
  });
128
128
  return ampClient;
129
129
  };