@ampsec/platform-client 87.10.1 → 87.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.
@@ -18,6 +18,14 @@ export declare const _ActionExecutionDto: z.ZodObject<z.objectUtil.extendShape<{
18
18
  output: z.ZodUnknown;
19
19
  executionTime: z.ZodNullable<z.ZodString>;
20
20
  executionDuration: z.ZodNullable<z.ZodNumber>;
21
+ /** Resolved from flow_states.specId — used in custom action execution audit drill-down. */
22
+ flowSpecId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
23
+ /** Resolved from flow_specs.name — used in custom action execution audit drill-down. */
24
+ flowSpecDisplayValue: z.ZodOptional<z.ZodNullable<z.ZodString>>;
25
+ /** Resolved from flow_states.uid — used in custom action execution audit drill-down. */
26
+ userId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
27
+ /** Resolved from users — used in custom action execution audit drill-down. */
28
+ userDisplayValue: z.ZodOptional<z.ZodNullable<z.ZodString>>;
21
29
  }>, "strip", z.ZodTypeAny, {
22
30
  status: ActionExecutionStatus;
23
31
  id: string;
@@ -31,6 +39,10 @@ export declare const _ActionExecutionDto: z.ZodObject<z.objectUtil.extendShape<{
31
39
  executionDuration: number | null;
32
40
  input?: unknown;
33
41
  output?: unknown;
42
+ flowSpecId?: string | null | undefined;
43
+ flowSpecDisplayValue?: string | null | undefined;
44
+ userId?: string | null | undefined;
45
+ userDisplayValue?: string | null | undefined;
34
46
  }, {
35
47
  status: ActionExecutionStatus;
36
48
  id: string;
@@ -44,6 +56,10 @@ export declare const _ActionExecutionDto: z.ZodObject<z.objectUtil.extendShape<{
44
56
  executionDuration: number | null;
45
57
  input?: unknown;
46
58
  output?: unknown;
59
+ flowSpecId?: string | null | undefined;
60
+ flowSpecDisplayValue?: string | null | undefined;
61
+ userId?: string | null | undefined;
62
+ userDisplayValue?: string | null | undefined;
47
63
  }>;
48
64
  export type ActionExecutionDto = z.infer<typeof _ActionExecutionDto>;
49
65
  export declare const _ActionExecutionUpsertDto: z.ZodObject<{
@@ -59,6 +75,10 @@ export declare const _ActionExecutionUpsertDto: z.ZodObject<{
59
75
  output: z.ZodUnknown;
60
76
  executionTime: z.ZodNullable<z.ZodString>;
61
77
  executionDuration: z.ZodNullable<z.ZodNumber>;
78
+ flowSpecId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
79
+ flowSpecDisplayValue: z.ZodOptional<z.ZodNullable<z.ZodString>>;
80
+ userId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
81
+ userDisplayValue: z.ZodOptional<z.ZodNullable<z.ZodString>>;
62
82
  }, "strip", z.ZodTypeAny, {
63
83
  status: ActionExecutionStatus;
64
84
  tid: string;
@@ -72,6 +92,10 @@ export declare const _ActionExecutionUpsertDto: z.ZodObject<{
72
92
  updatedAt?: string | undefined;
73
93
  deletedAt?: string | null | undefined;
74
94
  output?: unknown;
95
+ flowSpecId?: string | null | undefined;
96
+ flowSpecDisplayValue?: string | null | undefined;
97
+ userId?: string | null | undefined;
98
+ userDisplayValue?: string | null | undefined;
75
99
  }, {
76
100
  status: ActionExecutionStatus;
77
101
  tid: string;
@@ -85,5 +109,9 @@ export declare const _ActionExecutionUpsertDto: z.ZodObject<{
85
109
  updatedAt?: string | undefined;
86
110
  deletedAt?: string | null | undefined;
87
111
  output?: unknown;
112
+ flowSpecId?: string | null | undefined;
113
+ flowSpecDisplayValue?: string | null | undefined;
114
+ userId?: string | null | undefined;
115
+ userDisplayValue?: string | null | undefined;
88
116
  }>;
89
117
  export type ActionExecutionUpsertDto = z.infer<typeof _ActionExecutionUpsertDto>;
@@ -17,6 +17,14 @@ exports._ActionExecutionDto = base_dto_1._BaseDto.extend({
17
17
  output: exports._ActionExecutionOutput,
18
18
  executionTime: zod_1.z.nullable(zod_1.z.string()),
19
19
  executionDuration: zod_1.z.nullable(zod_1.z.number()),
20
+ /** Resolved from flow_states.specId — used in custom action execution audit drill-down. */
21
+ flowSpecId: zod_1.z.nullable(zod_1.z.string()).optional(),
22
+ /** Resolved from flow_specs.name — used in custom action execution audit drill-down. */
23
+ flowSpecDisplayValue: zod_1.z.nullable(zod_1.z.string()).optional(),
24
+ /** Resolved from flow_states.uid — used in custom action execution audit drill-down. */
25
+ userId: zod_1.z.nullable(zod_1.z.string()).optional(),
26
+ /** Resolved from users — used in custom action execution audit drill-down. */
27
+ userDisplayValue: zod_1.z.nullable(zod_1.z.string()).optional(),
20
28
  });
21
29
  exports._ActionExecutionUpsertDto = exports._ActionExecutionDto.partial(base_dto_1.UPSERT_DTO_MASK);
22
30
  //# sourceMappingURL=actionExecution.dto.js.map
@@ -1 +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,YAAY,EAAE,OAAC,CAAC,MAAM,EAAE;IACxB,WAAW,EAAE,OAAC,CAAC,QAAQ,CAAC,OAAC,CAAC,MAAM,EAAE,CAAC;IACnC,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"}
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,YAAY,EAAE,OAAC,CAAC,MAAM,EAAE;IACxB,WAAW,EAAE,OAAC,CAAC,QAAQ,CAAC,OAAC,CAAC,MAAM,EAAE,CAAC;IACnC,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;IACzC,2FAA2F;IAC3F,UAAU,EAAE,OAAC,CAAC,QAAQ,CAAC,OAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IAC7C,wFAAwF;IACxF,oBAAoB,EAAE,OAAC,CAAC,QAAQ,CAAC,OAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IACvD,wFAAwF;IACxF,MAAM,EAAE,OAAC,CAAC,QAAQ,CAAC,OAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IACzC,8EAA8E;IAC9E,gBAAgB,EAAE,OAAC,CAAC,QAAQ,CAAC,OAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;CACpD,CAAC,CAAC;AAGU,QAAA,yBAAyB,GAAG,2BAAmB,CAAC,OAAO,CAAC,0BAAe,CAAC,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { ActionExecutionDto } from './actionExecution.dto';
2
+ /** Audit drill-down row — same shape as {@link ActionExecutionDto} (DRY). */
3
+ export type CustomActionExecutionDto = ActionExecutionDto;
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=customActionExecutionAudit.dto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"customActionExecutionAudit.dto.js","sourceRoot":"","sources":["../../../src/dto/customActionExecutionAudit.dto.ts"],"names":[],"mappings":""}
@@ -24,6 +24,7 @@ export * from './findings.dto';
24
24
  export * from './findingsInsights.dto';
25
25
  export * from './findingsTags.dto';
26
26
  export * from './flows.dto';
27
+ export * from './customActionExecutionAudit.dto';
27
28
  export * from './jwt';
28
29
  export * from './message.dto';
29
30
  export * from './notification.dto';
@@ -40,6 +40,7 @@ __exportStar(require("./findings.dto"), exports);
40
40
  __exportStar(require("./findingsInsights.dto"), exports);
41
41
  __exportStar(require("./findingsTags.dto"), exports);
42
42
  __exportStar(require("./flows.dto"), exports);
43
+ __exportStar(require("./customActionExecutionAudit.dto"), exports);
43
44
  __exportStar(require("./jwt"), exports);
44
45
  __exportStar(require("./message.dto"), exports);
45
46
  __exportStar(require("./notification.dto"), exports);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/dto/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+CAA6B;AAC7B,kDAAgC;AAChC,+CAA6B;AAC7B,8CAA4B;AAC5B,6CAA2B;AAC3B,mDAAiC;AACjC,2DAAyC;AACzC,uDAAqC;AACrC,8CAA4B;AAC5B,iDAA+B;AAC/B,sDAAoC;AACpC,qDAAmC;AACnC,yDAAuC;AACvC,wCAAsB;AACtB,2DAAyC;AACzC,gEAA8C;AAC9C,uDAAqC;AACrC,2DAAyC;AACzC,0DAAwC;AACxC,6CAA2B;AAC3B,0CAAwB;AACxB,kDAAgC;AAChC,iDAA+B;AAC/B,yDAAuC;AACvC,qDAAmC;AACnC,8CAA4B;AAC5B,wCAAsB;AACtB,gDAA8B;AAC9B,qDAAmC;AACnC,6CAA2B;AAC3B,6CAA2B;AAC3B,kDAAgC;AAChC,sDAAoC;AACpC,yDAAuC;AACvC,8CAA4B;AAC5B,gDAA8B;AAC9B,mDAAiC;AACjC,uDAAqC;AACrC,kDAAgC;AAChC,mDAAiC;AACjC,iDAA+B;AAC/B,gDAA8B;AAC9B,oDAAkC;AAClC,+CAA6B;AAC7B,wDAAsC;AACtC,kDAAgC;AAChC,8CAA4B;AAC5B,sDAAoC;AACpC,+CAA6B;AAC7B,wDAAsC;AACtC,sDAAoC;AACpC,iDAA+B;AAC/B,8DAA4C;AAC5C,yDAAuC;AACvC,6DAA2C"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/dto/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+CAA6B;AAC7B,kDAAgC;AAChC,+CAA6B;AAC7B,8CAA4B;AAC5B,6CAA2B;AAC3B,mDAAiC;AACjC,2DAAyC;AACzC,uDAAqC;AACrC,8CAA4B;AAC5B,iDAA+B;AAC/B,sDAAoC;AACpC,qDAAmC;AACnC,yDAAuC;AACvC,wCAAsB;AACtB,2DAAyC;AACzC,gEAA8C;AAC9C,uDAAqC;AACrC,2DAAyC;AACzC,0DAAwC;AACxC,6CAA2B;AAC3B,0CAAwB;AACxB,kDAAgC;AAChC,iDAA+B;AAC/B,yDAAuC;AACvC,qDAAmC;AACnC,8CAA4B;AAC5B,mEAAiD;AACjD,wCAAsB;AACtB,gDAA8B;AAC9B,qDAAmC;AACnC,6CAA2B;AAC3B,6CAA2B;AAC3B,kDAAgC;AAChC,sDAAoC;AACpC,yDAAuC;AACvC,8CAA4B;AAC5B,gDAA8B;AAC9B,mDAAiC;AACjC,uDAAqC;AACrC,kDAAgC;AAChC,mDAAiC;AACjC,iDAA+B;AAC/B,gDAA8B;AAC9B,oDAAkC;AAClC,+CAA6B;AAC7B,wDAAsC;AACtC,kDAAgC;AAChC,8CAA4B;AAC5B,sDAAoC;AACpC,+CAA6B;AAC7B,wDAAsC;AACtC,sDAAoC;AACpC,iDAA+B;AAC/B,8DAA4C;AAC5C,yDAAuC;AACvC,6DAA2C"}
@@ -13,6 +13,10 @@ export declare const _PlatformActionExecutionDto: z.ZodObject<z.objectUtil.exten
13
13
  output: z.ZodUnknown;
14
14
  executionTime: z.ZodNullable<z.ZodString>;
15
15
  executionDuration: z.ZodNullable<z.ZodNumber>;
16
+ flowSpecId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17
+ flowSpecDisplayValue: z.ZodOptional<z.ZodNullable<z.ZodString>>;
18
+ userId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
19
+ userDisplayValue: z.ZodOptional<z.ZodNullable<z.ZodString>>;
16
20
  }>, z.objectUtil.extendShape<{
17
21
  id: z.ZodString;
18
22
  createdAt: z.ZodString;
@@ -33,6 +37,10 @@ export declare const _PlatformActionExecutionDto: z.ZodObject<z.objectUtil.exten
33
37
  executionDuration: number | null;
34
38
  input?: unknown;
35
39
  output?: unknown;
40
+ flowSpecId?: string | null | undefined;
41
+ flowSpecDisplayValue?: string | null | undefined;
42
+ userId?: string | null | undefined;
43
+ userDisplayValue?: string | null | undefined;
36
44
  }, {
37
45
  status: import("..").ActionExecutionStatus;
38
46
  id: string;
@@ -46,6 +54,10 @@ export declare const _PlatformActionExecutionDto: z.ZodObject<z.objectUtil.exten
46
54
  executionDuration: number | null;
47
55
  input?: unknown;
48
56
  output?: unknown;
57
+ flowSpecId?: string | null | undefined;
58
+ flowSpecDisplayValue?: string | null | undefined;
59
+ userId?: string | null | undefined;
60
+ userDisplayValue?: string | null | undefined;
49
61
  }>;
50
62
  export type PlatformActionExecutionDto = z.infer<typeof _PlatformActionExecutionDto>;
51
63
  export declare const _PlatformActionExecutionUpsertDto: z.ZodObject<z.objectUtil.extendShape<{
@@ -61,6 +73,10 @@ export declare const _PlatformActionExecutionUpsertDto: z.ZodObject<z.objectUtil
61
73
  output: z.ZodUnknown;
62
74
  executionTime: z.ZodNullable<z.ZodString>;
63
75
  executionDuration: z.ZodNullable<z.ZodNumber>;
76
+ flowSpecId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
77
+ flowSpecDisplayValue: z.ZodOptional<z.ZodNullable<z.ZodString>>;
78
+ userId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
79
+ userDisplayValue: z.ZodOptional<z.ZodNullable<z.ZodString>>;
64
80
  }, {
65
81
  id: z.ZodOptional<z.ZodString>;
66
82
  tid: z.ZodOptional<z.ZodString>;
@@ -80,6 +96,10 @@ export declare const _PlatformActionExecutionUpsertDto: z.ZodObject<z.objectUtil
80
96
  updatedAt?: string | undefined;
81
97
  deletedAt?: string | null | undefined;
82
98
  output?: unknown;
99
+ flowSpecId?: string | null | undefined;
100
+ flowSpecDisplayValue?: string | null | undefined;
101
+ userId?: string | null | undefined;
102
+ userDisplayValue?: string | null | undefined;
83
103
  }, {
84
104
  status: import("..").ActionExecutionStatus;
85
105
  flowStateId: string | null;
@@ -93,5 +113,9 @@ export declare const _PlatformActionExecutionUpsertDto: z.ZodObject<z.objectUtil
93
113
  updatedAt?: string | undefined;
94
114
  deletedAt?: string | null | undefined;
95
115
  output?: unknown;
116
+ flowSpecId?: string | null | undefined;
117
+ flowSpecDisplayValue?: string | null | undefined;
118
+ userId?: string | null | undefined;
119
+ userDisplayValue?: string | null | undefined;
96
120
  }>;
97
121
  export type PlatformActionExecutionUpsertDto = z.infer<typeof _PlatformActionExecutionUpsertDto>;
@@ -1,8 +1,10 @@
1
1
  import { FilterCriteria } from '../FilterCriteria';
2
- import { CustomActionDto, CustomActionUpsertDto, CustomerActionSummaryDto, Page } from '../dto';
2
+ import { ActionExecutionDto, CustomActionDto, CustomActionUpsertDto, CustomerActionSummaryDto, Page } from '../dto';
3
3
  import { AmpEntityServiceImpl } from './entity.service';
4
4
  import { RestClient } from './rest';
5
5
  export declare class CustomActionsService extends AmpEntityServiceImpl<CustomActionUpsertDto, CustomActionDto> {
6
6
  constructor(rest: RestClient);
7
7
  summary: (filter?: FilterCriteria) => Promise<Page<CustomerActionSummaryDto>>;
8
+ /** Drill-down: executions for one custom action (row from summary). */
9
+ actionExecutions: (actionSpecId: string, filter?: FilterCriteria) => Promise<Page<ActionExecutionDto>>;
8
10
  }
@@ -14,6 +14,15 @@ class CustomActionsService extends entity_service_1.AmpEntityServiceImpl {
14
14
  });
15
15
  return res.data;
16
16
  };
17
+ /** Drill-down: executions for one custom action (row from summary). */
18
+ this.actionExecutions = async (actionSpecId, filter) => {
19
+ const res = await this.rest.call({
20
+ url: `/${this.targetApi}/v1/${this.kind}/${actionSpecId}/action_executions`,
21
+ method: 'GET',
22
+ params: filter,
23
+ });
24
+ return res.data;
25
+ };
17
26
  }
18
27
  }
19
28
  exports.CustomActionsService = CustomActionsService;
@@ -1 +1 @@
1
- {"version":3,"file":"customActionsService.js","sourceRoot":"","sources":["../../../src/services/customActionsService.ts"],"names":[],"mappings":";;;AAEA,2CAAiC;AACjC,qDAAsD;AAGtD,MAAa,oBAAqB,SAAQ,qCAA4D;IACpG,YAAY,IAAgB;QAC1B,KAAK,CAAC,IAAI,EAAE,gBAAI,CAAC,cAAc,CAAC,CAAC;QAEnC,YAAO,GAAG,KAAK,EAAE,MAAuB,EAA2C,EAAE;YACnF,MAAM,GAAG,GAAG,MAAM,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC;gBAC/B,GAAG,EAAE,IAAI,IAAI,CAAC,SAAS,OAAO,IAAI,CAAC,IAAI,WAAW;gBAClD,MAAM,EAAE,KAAK;gBACb,MAAM,EAAE,MAAM;aACf,CAAC,CAAC;YACH,OAAO,GAAG,CAAC,IAAsC,CAAC;QACpD,CAAC,CAAC;IARF,CAAC;CASF;AAZD,oDAYC"}
1
+ {"version":3,"file":"customActionsService.js","sourceRoot":"","sources":["../../../src/services/customActionsService.ts"],"names":[],"mappings":";;;AAEA,2CAAiC;AACjC,qDAAsD;AAGtD,MAAa,oBAAqB,SAAQ,qCAA4D;IACpG,YAAY,IAAgB;QAC1B,KAAK,CAAC,IAAI,EAAE,gBAAI,CAAC,cAAc,CAAC,CAAC;QAEnC,YAAO,GAAG,KAAK,EAAE,MAAuB,EAA2C,EAAE;YACnF,MAAM,GAAG,GAAG,MAAM,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC;gBAC/B,GAAG,EAAE,IAAI,IAAI,CAAC,SAAS,OAAO,IAAI,CAAC,IAAI,WAAW;gBAClD,MAAM,EAAE,KAAK;gBACb,MAAM,EAAE,MAAM;aACf,CAAC,CAAC;YACH,OAAO,GAAG,CAAC,IAAsC,CAAC;QACpD,CAAC,CAAC;QAEF,uEAAuE;QACvE,qBAAgB,GAAG,KAAK,EAAE,YAAoB,EAAE,MAAuB,EAAqC,EAAE;YAC5G,MAAM,GAAG,GAAG,MAAM,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC;gBAC/B,GAAG,EAAE,IAAI,IAAI,CAAC,SAAS,OAAO,IAAI,CAAC,IAAI,IAAI,YAAY,oBAAoB;gBAC3E,MAAM,EAAE,KAAK;gBACb,MAAM,EAAE,MAAM;aACf,CAAC,CAAC;YACH,OAAO,GAAG,CAAC,IAAgC,CAAC;QAC9C,CAAC,CAAC;IAlBF,CAAC;CAmBF;AAtBD,oDAsBC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ampsec/platform-client",
3
- "version": "87.10.1",
3
+ "version": "87.11.0",
4
4
  "description": "",
5
5
  "main": "build/src/index.js",
6
6
  "runkitExampleFilename": "example/main.js",
@@ -18,6 +18,14 @@ export const _ActionExecutionDto = _BaseDto.extend({
18
18
  output: _ActionExecutionOutput,
19
19
  executionTime: z.nullable(z.string()),
20
20
  executionDuration: z.nullable(z.number()),
21
+ /** Resolved from flow_states.specId — used in custom action execution audit drill-down. */
22
+ flowSpecId: z.nullable(z.string()).optional(),
23
+ /** Resolved from flow_specs.name — used in custom action execution audit drill-down. */
24
+ flowSpecDisplayValue: z.nullable(z.string()).optional(),
25
+ /** Resolved from flow_states.uid — used in custom action execution audit drill-down. */
26
+ userId: z.nullable(z.string()).optional(),
27
+ /** Resolved from users — used in custom action execution audit drill-down. */
28
+ userDisplayValue: z.nullable(z.string()).optional(),
21
29
  });
22
30
  export type ActionExecutionDto = z.infer<typeof _ActionExecutionDto>;
23
31
 
@@ -0,0 +1,4 @@
1
+ import type {ActionExecutionDto} from './actionExecution.dto';
2
+
3
+ /** Audit drill-down row — same shape as {@link ActionExecutionDto} (DRY). */
4
+ export type CustomActionExecutionDto = ActionExecutionDto;
package/src/dto/index.ts CHANGED
@@ -24,6 +24,7 @@ export * from './findings.dto';
24
24
  export * from './findingsInsights.dto';
25
25
  export * from './findingsTags.dto';
26
26
  export * from './flows.dto';
27
+ export * from './customActionExecutionAudit.dto';
27
28
  export * from './jwt';
28
29
  export * from './message.dto';
29
30
  export * from './notification.dto';
@@ -1,5 +1,5 @@
1
1
  import {FilterCriteria} from '../FilterCriteria';
2
- import {CustomActionDto, CustomActionUpsertDto, CustomerActionSummaryDto, Page} from '../dto';
2
+ import {ActionExecutionDto, CustomActionDto, CustomActionUpsertDto, CustomerActionSummaryDto, Page} from '../dto';
3
3
  import {KIND} from './constants';
4
4
  import {AmpEntityServiceImpl} from './entity.service';
5
5
  import {RestClient} from './rest';
@@ -16,4 +16,14 @@ export class CustomActionsService extends AmpEntityServiceImpl<CustomActionUpser
16
16
  });
17
17
  return res.data as Page<CustomerActionSummaryDto>;
18
18
  };
19
+
20
+ /** Drill-down: executions for one custom action (row from summary). */
21
+ actionExecutions = async (actionSpecId: string, filter?: FilterCriteria): Promise<Page<ActionExecutionDto>> => {
22
+ const res = await this.rest.call({
23
+ url: `/${this.targetApi}/v1/${this.kind}/${actionSpecId}/action_executions`,
24
+ method: 'GET',
25
+ params: filter,
26
+ });
27
+ return res.data as Page<ActionExecutionDto>;
28
+ };
19
29
  }