@ampsec/platform-client 86.0.1 → 86.0.2

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.
@@ -10,24 +10,24 @@ export declare const TestEngagementRequestDtoSchema: z.ZodObject<{
10
10
  export type TestEngagementRequestDto = z.infer<typeof TestEngagementRequestDtoSchema>;
11
11
  export declare const TestEngagementMockFindingUpsertDtoSchema: z.ZodObject<{
12
12
  tid: z.ZodString;
13
- pid: z.ZodString;
14
- cid: z.ZodString;
13
+ pid: z.ZodOptional<z.ZodNullable<z.ZodString>>;
14
+ cid: z.ZodOptional<z.ZodNullable<z.ZodString>>;
15
15
  uid: z.ZodString;
16
16
  fsid: z.ZodString;
17
- kind: z.ZodNativeEnum<typeof FindingKind>;
17
+ kind: z.ZodUnion<[z.ZodNativeEnum<typeof FindingKind>, z.ZodString]>;
18
18
  }, "strip", z.ZodTypeAny, {
19
19
  tid: string;
20
- cid: string;
21
20
  uid: string;
22
- kind: FindingKind;
23
- pid: string;
21
+ kind: string;
24
22
  fsid: string;
23
+ cid?: string | null | undefined;
24
+ pid?: string | null | undefined;
25
25
  }, {
26
26
  tid: string;
27
- cid: string;
28
27
  uid: string;
29
- kind: FindingKind;
30
- pid: string;
28
+ kind: string;
31
29
  fsid: string;
30
+ cid?: string | null | undefined;
31
+ pid?: string | null | undefined;
32
32
  }>;
33
33
  export type TestEngagementMockFindingUpsertDto = z.infer<typeof TestEngagementMockFindingUpsertDtoSchema>;
@@ -8,10 +8,10 @@ exports.TestEngagementRequestDtoSchema = zod_1.z.object({
8
8
  });
9
9
  exports.TestEngagementMockFindingUpsertDtoSchema = zod_1.z.object({
10
10
  tid: zod_1.z.string(),
11
- pid: zod_1.z.string(),
12
- cid: zod_1.z.string(),
11
+ pid: zod_1.z.string().nullable().optional(),
12
+ cid: zod_1.z.string().nullable().optional(),
13
13
  uid: zod_1.z.string(),
14
14
  fsid: zod_1.z.string(),
15
- kind: zod_1.z.nativeEnum(enums_1.FindingKind),
15
+ kind: zod_1.z.union([zod_1.z.nativeEnum(enums_1.FindingKind), zod_1.z.string()]),
16
16
  });
17
17
  //# sourceMappingURL=testEngagements.dto.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"testEngagements.dto.js","sourceRoot":"","sources":["../../../src/dto/testEngagements.dto.ts"],"names":[],"mappings":";;;AAAA,6BAAsB;AACtB,mCAAoC;AAEvB,QAAA,8BAA8B,GAAG,OAAC,CAAC,MAAM,CAAC;IACrD,IAAI,EAAE,OAAC,CAAC,KAAK,CAAC,OAAC,CAAC,MAAM,EAAE,CAAC;CAC1B,CAAC,CAAC;AAGU,QAAA,wCAAwC,GAAG,OAAC,CAAC,MAAM,CAAC;IAC/D,GAAG,EAAE,OAAC,CAAC,MAAM,EAAE;IACf,GAAG,EAAE,OAAC,CAAC,MAAM,EAAE;IACf,GAAG,EAAE,OAAC,CAAC,MAAM,EAAE;IACf,GAAG,EAAE,OAAC,CAAC,MAAM,EAAE;IACf,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE;IAChB,IAAI,EAAE,OAAC,CAAC,UAAU,CAAC,mBAAW,CAAC;CAChC,CAAC,CAAC"}
1
+ {"version":3,"file":"testEngagements.dto.js","sourceRoot":"","sources":["../../../src/dto/testEngagements.dto.ts"],"names":[],"mappings":";;;AAAA,6BAAsB;AACtB,mCAAoC;AAEvB,QAAA,8BAA8B,GAAG,OAAC,CAAC,MAAM,CAAC;IACrD,IAAI,EAAE,OAAC,CAAC,KAAK,CAAC,OAAC,CAAC,MAAM,EAAE,CAAC;CAC1B,CAAC,CAAC;AAGU,QAAA,wCAAwC,GAAG,OAAC,CAAC,MAAM,CAAC;IAC/D,GAAG,EAAE,OAAC,CAAC,MAAM,EAAE;IACf,GAAG,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;IACrC,GAAG,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;IACrC,GAAG,EAAE,OAAC,CAAC,MAAM,EAAE;IACf,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE;IAChB,IAAI,EAAE,OAAC,CAAC,KAAK,CAAC,CAAC,OAAC,CAAC,UAAU,CAAC,mBAAW,CAAC,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,CAAC;CACvD,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ampsec/platform-client",
3
- "version": "86.0.1",
3
+ "version": "86.0.2",
4
4
  "description": "",
5
5
  "main": "build/src/index.js",
6
6
  "runkitExampleFilename": "example/main.js",
@@ -8,10 +8,10 @@ export type TestEngagementRequestDto = z.infer<typeof TestEngagementRequestDtoSc
8
8
 
9
9
  export const TestEngagementMockFindingUpsertDtoSchema = z.object({
10
10
  tid: z.string(),
11
- pid: z.string(),
12
- cid: z.string(),
11
+ pid: z.string().nullable().optional(),
12
+ cid: z.string().nullable().optional(),
13
13
  uid: z.string(),
14
14
  fsid: z.string(),
15
- kind: z.nativeEnum(FindingKind),
15
+ kind: z.union([z.nativeEnum(FindingKind), z.string()]),
16
16
  });
17
17
  export type TestEngagementMockFindingUpsertDto = z.infer<typeof TestEngagementMockFindingUpsertDtoSchema>;