@ampsec/platform-client 66.2.0 → 66.3.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.
@@ -6,11 +6,25 @@ export declare const _TokenDto: z.ZodObject<{
6
6
  deletedAt: z.ZodNullable<z.ZodString>;
7
7
  displayValue: z.ZodOptional<z.ZodString>;
8
8
  key: z.ZodString;
9
+ links: z.ZodObject<{
10
+ _self: z.ZodString;
11
+ webhook: z.ZodString;
12
+ }, "strip", z.ZodTypeAny, {
13
+ _self: string;
14
+ webhook: string;
15
+ }, {
16
+ _self: string;
17
+ webhook: string;
18
+ }>;
9
19
  }, "strip", z.ZodTypeAny, {
10
20
  id: string;
11
21
  createdAt: string;
12
22
  updatedAt: string;
13
23
  deletedAt: string | null;
24
+ links: {
25
+ _self: string;
26
+ webhook: string;
27
+ };
14
28
  key: string;
15
29
  displayValue?: string | undefined;
16
30
  }, {
@@ -18,6 +32,10 @@ export declare const _TokenDto: z.ZodObject<{
18
32
  createdAt: string;
19
33
  updatedAt: string;
20
34
  deletedAt: string | null;
35
+ links: {
36
+ _self: string;
37
+ webhook: string;
38
+ };
21
39
  key: string;
22
40
  displayValue?: string | undefined;
23
41
  }>;
@@ -28,8 +46,22 @@ export declare const _TokenUpsertDto: z.ZodObject<{
28
46
  updatedAt: z.ZodOptional<z.ZodString>;
29
47
  deletedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
30
48
  displayValue: z.ZodOptional<z.ZodString>;
49
+ links: z.ZodObject<{
50
+ _self: z.ZodString;
51
+ webhook: z.ZodString;
52
+ }, "strip", z.ZodTypeAny, {
53
+ _self: string;
54
+ webhook: string;
55
+ }, {
56
+ _self: string;
57
+ webhook: string;
58
+ }>;
31
59
  key: z.ZodString;
32
60
  }, "strip", z.ZodTypeAny, {
61
+ links: {
62
+ _self: string;
63
+ webhook: string;
64
+ };
33
65
  key: string;
34
66
  id?: string | undefined;
35
67
  createdAt?: string | undefined;
@@ -37,6 +69,10 @@ export declare const _TokenUpsertDto: z.ZodObject<{
37
69
  deletedAt?: string | null | undefined;
38
70
  displayValue?: string | undefined;
39
71
  }, {
72
+ links: {
73
+ _self: string;
74
+ webhook: string;
75
+ };
40
76
  key: string;
41
77
  id?: string | undefined;
42
78
  createdAt?: string | undefined;
@@ -6,6 +6,10 @@ const base_dto_1 = require("./base.dto");
6
6
  exports._TokenDto = base_dto_1._BaseDto.extend({
7
7
  displayValue: zod_1.z.string().optional(),
8
8
  key: zod_1.z.string(),
9
+ links: zod_1.z.object({
10
+ _self: zod_1.z.string(),
11
+ webhook: zod_1.z.string(),
12
+ }),
9
13
  });
10
14
  exports._TokenUpsertDto = exports._TokenDto.partial(base_dto_1.UPSERT_DTO_MASK);
11
15
  //# sourceMappingURL=tokens.dto.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"tokens.dto.js","sourceRoot":"","sources":["../../../src/dto/tokens.dto.ts"],"names":[],"mappings":";;;AAAA,6BAAsB;AACtB,yCAAqD;AAExC,QAAA,SAAS,GAAG,mBAAQ,CAAC,MAAM,CAAC;IACvC,YAAY,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACnC,GAAG,EAAE,OAAC,CAAC,MAAM,EAAE;CAChB,CAAC,CAAC;AAGU,QAAA,eAAe,GAAG,iBAAS,CAAC,OAAO,CAAC,0BAAe,CAAC,CAAC"}
1
+ {"version":3,"file":"tokens.dto.js","sourceRoot":"","sources":["../../../src/dto/tokens.dto.ts"],"names":[],"mappings":";;;AAAA,6BAAsB;AACtB,yCAAqD;AAExC,QAAA,SAAS,GAAG,mBAAQ,CAAC,MAAM,CAAC;IACvC,YAAY,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACnC,GAAG,EAAE,OAAC,CAAC,MAAM,EAAE;IACf,KAAK,EAAE,OAAC,CAAC,MAAM,CAAC;QACd,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE;QACjB,OAAO,EAAE,OAAC,CAAC,MAAM,EAAE;KACpB,CAAC;CACH,CAAC,CAAC;AAGU,QAAA,eAAe,GAAG,iBAAS,CAAC,OAAO,CAAC,0BAAe,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ampsec/platform-client",
3
- "version": "66.2.0",
3
+ "version": "66.3.0",
4
4
  "description": "",
5
5
  "main": "build/src/index.js",
6
6
  "runkitExampleFilename": "example/main.js",
@@ -131,8 +131,8 @@ export const _FlowInterval = z.object({
131
131
  export type FlowInterval = z.infer<typeof _FlowInterval>;
132
132
 
133
133
  const _FlowActionDetails = z.object({
134
- actionId: z.string(),
135
- findingStatus: z.nativeEnum(FindingStatus).optional(),
134
+ actionId: z.string().nullable(),
135
+ findingStatus: z.nativeEnum(FindingStatus).optional().nullable(),
136
136
  });
137
137
 
138
138
  export const _FlowActions = z.object({
@@ -157,6 +157,8 @@ export const _FlowActions = z.object({
157
157
  */
158
158
  resolveNowActionId: z.string().optional(),
159
159
  resolveNowAction: _FlowActionDetails.optional(),
160
+
161
+ scheduleResolutionAction: _FlowActionDetails.optional(),
160
162
  });
161
163
  export type FlowActions = z.infer<typeof _FlowActions>;
162
164
  export const _FlowRewardsConfig = z.object({
@@ -188,6 +190,9 @@ export const _FlowSpecDto = _BaseDto.merge(
188
190
  rewards: z.array(_FlowRewardsConfig).optional(),
189
191
  customMessage: z.object({template: z.string().optional(), append: z.boolean().optional()}).optional(),
190
192
  additionalContext: z.object({data: z.string().optional()}).optional(),
193
+ /**
194
+ * @deprecated Use scheduleResolutionAction instead
195
+ */
191
196
  scheduleConfig: z.object({required: z.boolean()}).optional(),
192
197
  activity: z
193
198
  .object({
@@ -4,6 +4,10 @@ import {UPSERT_DTO_MASK, _BaseDto} from './base.dto';
4
4
  export const _TokenDto = _BaseDto.extend({
5
5
  displayValue: z.string().optional(),
6
6
  key: z.string(),
7
+ links: z.object({
8
+ _self: z.string(),
9
+ webhook: z.string(),
10
+ }),
7
11
  });
8
12
  export type TokenDto = z.infer<typeof _TokenDto>;
9
13