@openframe-org/criteria-set-protocol 2.0.5 → 2.0.6-beta.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.
Files changed (32) hide show
  1. package/dist/v1/schemas/certification.d.ts +80 -80
  2. package/dist/v1/schemas/certification.js +6 -7
  3. package/dist/v1/schemas/common.d.ts +75 -144
  4. package/dist/v1/schemas/common.js +14 -15
  5. package/dist/v1/schemas/criteria-tree.d.ts +2461 -4280
  6. package/dist/v1/schemas/criteria-tree.js +1 -2
  7. package/dist/v1/schemas/criterion.d.ts +450 -791
  8. package/dist/v1/schemas/criterion.js +3 -4
  9. package/dist/v1/schemas/data-map.d.ts +2 -2
  10. package/dist/v1/schemas/data-map.js +1 -2
  11. package/dist/v1/schemas/metadata.d.ts +19 -28
  12. package/dist/v1/schemas/metadata.js +6 -7
  13. package/dist/v1/schemas/request/matrix-body-schema.d.ts +7 -7
  14. package/dist/v1/schemas/request/matrix-body-schema.js +4 -5
  15. package/dist/v1/schemas/request/matrix-request-body-schema.d.ts +7 -7
  16. package/dist/v1/schemas/request/matrix-request-body-schema.js +4 -5
  17. package/dist/v1/schemas/request/tree-and-data-body-schema.d.ts +6 -6
  18. package/dist/v1/schemas/request/tree-and-data-body-schema.js +3 -4
  19. package/dist/v1/schemas/request/tree-and-data-request-body-schema.d.ts +6 -6
  20. package/dist/v1/schemas/request/tree-and-data-request-body-schema.js +3 -4
  21. package/dist/v1/schemas/response.d.ts +15 -24
  22. package/dist/v1/schemas/task-group.d.ts +321 -584
  23. package/dist/v1/schemas/task-group.js +4 -5
  24. package/dist/v1/schemas/task-item.d.ts +193 -303
  25. package/dist/v1/schemas/task-item.js +13 -14
  26. package/dist/v1/schemas/task.d.ts +210 -395
  27. package/dist/v1/schemas/task.js +3 -4
  28. package/dist/v1/schemas/theme.d.ts +600 -1033
  29. package/dist/v1/schemas/theme.js +3 -4
  30. package/dist/v1/schemas/utils.d.ts +1 -1
  31. package/dist/v1/schemas/utils.js +6 -4
  32. package/package.json +1 -1
@@ -4,13 +4,12 @@ exports.criterionSchema = exports.criterionOptionsSchema = void 0;
4
4
  const zod_1 = require("zod");
5
5
  const task_group_1 = require("./task-group");
6
6
  const common_1 = require("./common");
7
- const utils_1 = require("./utils");
8
7
  exports.criterionOptionsSchema = zod_1.z.object({
9
- hideCode: (0, utils_1.optional)(zod_1.z.boolean()),
10
- hideFromHierarchy: (0, utils_1.optional)(zod_1.z.boolean()),
8
+ hideCode: zod_1.z.boolean().optional(),
9
+ hideFromHierarchy: zod_1.z.boolean().optional(),
11
10
  });
12
11
  exports.criterionSchema = common_1.abstractElementSchema.extend({
13
12
  type: zod_1.z.literal("criterion"),
14
13
  items: zod_1.z.array(zod_1.z.lazy(() => task_group_1.taskGroupSchema)),
15
- options: (0, utils_1.optional)(exports.criterionOptionsSchema),
14
+ options: exports.criterionOptionsSchema.optional(),
16
15
  });
@@ -3,7 +3,7 @@ export declare const dataMapSchema: z.ZodObject<{
3
3
  version: z.ZodString;
4
4
  elements: z.ZodRecord<z.ZodString, z.ZodAny>;
5
5
  result: z.ZodAny;
6
- certifications: z.ZodPipeline<z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodType<string[], z.ZodTypeDef, string[]>>>, string[] | undefined, string[] | null | undefined>, z.ZodOptional<z.ZodType<string[], z.ZodTypeDef, string[]>>>;
6
+ certifications: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
7
7
  }, "strip", z.ZodTypeAny, {
8
8
  elements: Record<string, any>;
9
9
  version: string;
@@ -13,5 +13,5 @@ export declare const dataMapSchema: z.ZodObject<{
13
13
  elements: Record<string, any>;
14
14
  version: string;
15
15
  result?: any;
16
- certifications?: string[] | null | undefined;
16
+ certifications?: string[] | undefined;
17
17
  }>;
@@ -2,10 +2,9 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.dataMapSchema = void 0;
4
4
  const zod_1 = require("zod");
5
- const utils_1 = require("./utils");
6
5
  exports.dataMapSchema = zod_1.z.object({
7
6
  version: zod_1.z.string(),
8
7
  elements: zod_1.z.record(zod_1.z.string(), zod_1.z.any()),
9
8
  result: zod_1.z.any(),
10
- certifications: (0, utils_1.optional)(zod_1.z.array(zod_1.z.string())),
9
+ certifications: zod_1.z.array(zod_1.z.string()).optional(),
11
10
  });
@@ -1,14 +1,14 @@
1
1
  import { z } from "zod";
2
2
  export declare const schemaDefinitionSchema: z.ZodRecord<z.ZodString, z.ZodAny>;
3
3
  export declare const schemaDefinitionsSchema: z.ZodObject<{
4
- parameters: z.ZodPipeline<z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodType<Record<string, any>, z.ZodTypeDef, Record<string, any>>>>, Record<string, any> | undefined, Record<string, any> | null | undefined>, z.ZodOptional<z.ZodType<Record<string, any>, z.ZodTypeDef, Record<string, any>>>>;
5
- result: z.ZodPipeline<z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodType<Record<string, any>, z.ZodTypeDef, Record<string, any>>>>, Record<string, any> | undefined, Record<string, any> | null | undefined>, z.ZodOptional<z.ZodType<Record<string, any>, z.ZodTypeDef, Record<string, any>>>>;
4
+ parameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
5
+ result: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
6
6
  }, "strip", z.ZodTypeAny, {
7
7
  parameters?: Record<string, any> | undefined;
8
8
  result?: Record<string, any> | undefined;
9
9
  }, {
10
- parameters?: Record<string, any> | null | undefined;
11
- result?: Record<string, any> | null | undefined;
10
+ parameters?: Record<string, any> | undefined;
11
+ result?: Record<string, any> | undefined;
12
12
  }>;
13
13
  export declare const metadataSchema: z.ZodObject<{
14
14
  id: z.ZodString;
@@ -16,28 +16,19 @@ export declare const metadataSchema: z.ZodObject<{
16
16
  date: z.ZodDate;
17
17
  name: z.ZodString;
18
18
  description: z.ZodString;
19
- documentation: z.ZodPipeline<z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodType<string, z.ZodTypeDef, string>>>, string | undefined, string | null | undefined>, z.ZodOptional<z.ZodType<string, z.ZodTypeDef, string>>>;
20
- locales: z.ZodPipeline<z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodType<string[], z.ZodTypeDef, string[]>>>, string[] | undefined, string[] | null | undefined>, z.ZodOptional<z.ZodType<string[], z.ZodTypeDef, string[]>>>;
21
- defaultLocale: z.ZodPipeline<z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodType<string, z.ZodTypeDef, string>>>, string | undefined, string | null | undefined>, z.ZodOptional<z.ZodType<string, z.ZodTypeDef, string>>>;
22
- schemas: z.ZodPipeline<z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodType<{
19
+ documentation: z.ZodOptional<z.ZodString>;
20
+ locales: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
21
+ defaultLocale: z.ZodOptional<z.ZodString>;
22
+ schemas: z.ZodOptional<z.ZodObject<{
23
+ parameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
24
+ result: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
25
+ }, "strip", z.ZodTypeAny, {
23
26
  parameters?: Record<string, any> | undefined;
24
27
  result?: Record<string, any> | undefined;
25
- }, z.ZodTypeDef, {
26
- parameters?: Record<string, any> | null | undefined;
27
- result?: Record<string, any> | null | undefined;
28
- }>>>, {
28
+ }, {
29
29
  parameters?: Record<string, any> | undefined;
30
30
  result?: Record<string, any> | undefined;
31
- } | undefined, {
32
- parameters?: Record<string, any> | null | undefined;
33
- result?: Record<string, any> | null | undefined;
34
- } | null | undefined>, z.ZodOptional<z.ZodType<{
35
- parameters?: Record<string, any> | undefined;
36
- result?: Record<string, any> | undefined;
37
- }, z.ZodTypeDef, {
38
- parameters?: Record<string, any> | null | undefined;
39
- result?: Record<string, any> | null | undefined;
40
- }>>>;
31
+ }>>;
41
32
  }, "strip", z.ZodTypeAny, {
42
33
  id: string;
43
34
  name: string;
@@ -57,11 +48,11 @@ export declare const metadataSchema: z.ZodObject<{
57
48
  description: string;
58
49
  date: Date;
59
50
  version: string;
60
- documentation?: string | null | undefined;
61
- locales?: string[] | null | undefined;
62
- defaultLocale?: string | null | undefined;
51
+ documentation?: string | undefined;
52
+ locales?: string[] | undefined;
53
+ defaultLocale?: string | undefined;
63
54
  schemas?: {
64
- parameters?: Record<string, any> | null | undefined;
65
- result?: Record<string, any> | null | undefined;
66
- } | null | undefined;
55
+ parameters?: Record<string, any> | undefined;
56
+ result?: Record<string, any> | undefined;
57
+ } | undefined;
67
58
  }>;
@@ -2,11 +2,10 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.metadataSchema = exports.schemaDefinitionsSchema = exports.schemaDefinitionSchema = void 0;
4
4
  const zod_1 = require("zod");
5
- const utils_1 = require("./utils");
6
5
  exports.schemaDefinitionSchema = zod_1.z.record(zod_1.z.string(), zod_1.z.any());
7
6
  exports.schemaDefinitionsSchema = zod_1.z.object({
8
- parameters: (0, utils_1.optional)(exports.schemaDefinitionSchema),
9
- result: (0, utils_1.optional)(exports.schemaDefinitionSchema),
7
+ parameters: exports.schemaDefinitionSchema.optional(),
8
+ result: exports.schemaDefinitionSchema.optional(),
10
9
  });
11
10
  exports.metadataSchema = zod_1.z.object({
12
11
  id: zod_1.z.string(),
@@ -14,8 +13,8 @@ exports.metadataSchema = zod_1.z.object({
14
13
  date: zod_1.z.date(),
15
14
  name: zod_1.z.string(),
16
15
  description: zod_1.z.string(),
17
- documentation: (0, utils_1.optional)(zod_1.z.string()),
18
- locales: (0, utils_1.optional)(zod_1.z.array(zod_1.z.string())),
19
- defaultLocale: (0, utils_1.optional)(zod_1.z.string()),
20
- schemas: (0, utils_1.optional)(exports.schemaDefinitionsSchema),
16
+ documentation: zod_1.z.string().optional(),
17
+ locales: zod_1.z.array(zod_1.z.string()).optional(),
18
+ defaultLocale: zod_1.z.string().optional(),
19
+ schemas: exports.schemaDefinitionsSchema.optional(),
21
20
  });
@@ -3,18 +3,18 @@ import { z } from "zod";
3
3
  * Validates the request body for the matrix endpoints
4
4
  */
5
5
  export declare const matrixBodySchema: z.ZodOptional<z.ZodObject<{
6
- locale: z.ZodPipeline<z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodType<string, z.ZodTypeDef, string>>>, string | undefined, string | null | undefined>, z.ZodOptional<z.ZodType<string, z.ZodTypeDef, string>>>;
7
- parameters: z.ZodPipeline<z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodType<Record<string, any>, z.ZodTypeDef, Record<string, any>>>>, Record<string, any> | undefined, Record<string, any> | null | undefined>, z.ZodOptional<z.ZodType<Record<string, any>, z.ZodTypeDef, Record<string, any>>>>;
8
- values: z.ZodPipeline<z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodType<Record<string, string | number | boolean | (string | number | boolean | null)[] | null>, z.ZodTypeDef, Record<string, string | number | boolean | (string | number | boolean | null)[] | null>>>>, Record<string, string | number | boolean | (string | number | boolean | null)[] | null> | undefined, Record<string, string | number | boolean | (string | number | boolean | null)[] | null> | null | undefined>, z.ZodOptional<z.ZodType<Record<string, string | number | boolean | (string | number | boolean | null)[] | null>, z.ZodTypeDef, Record<string, string | number | boolean | (string | number | boolean | null)[] | null>>>>;
9
- additional: z.ZodPipeline<z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodType<any, z.ZodTypeDef, any>>>, any, any>, z.ZodOptional<z.ZodType<any, z.ZodTypeDef, any>>>;
6
+ locale: z.ZodOptional<z.ZodString>;
7
+ parameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
8
+ values: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>, z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>, "many">]>>>;
9
+ additional: z.ZodOptional<z.ZodAny>;
10
10
  }, "strip", z.ZodTypeAny, {
11
11
  values?: Record<string, string | number | boolean | (string | number | boolean | null)[] | null> | undefined;
12
12
  locale?: string | undefined;
13
13
  parameters?: Record<string, any> | undefined;
14
14
  additional?: any;
15
15
  }, {
16
- values?: Record<string, string | number | boolean | (string | number | boolean | null)[] | null> | null | undefined;
17
- locale?: string | null | undefined;
18
- parameters?: Record<string, any> | null | undefined;
16
+ values?: Record<string, string | number | boolean | (string | number | boolean | null)[] | null> | undefined;
17
+ locale?: string | undefined;
18
+ parameters?: Record<string, any> | undefined;
19
19
  additional?: any;
20
20
  }>>;
@@ -3,15 +3,14 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.matrixBodySchema = void 0;
4
4
  const zod_1 = require("zod");
5
5
  const task_item_1 = require("../task-item");
6
- const utils_1 = require("../utils");
7
6
  /**
8
7
  * Validates the request body for the matrix endpoints
9
8
  */
10
9
  exports.matrixBodySchema = zod_1.z
11
10
  .object({
12
- locale: (0, utils_1.optional)(zod_1.z.string()),
13
- parameters: (0, utils_1.optional)(zod_1.z.record(zod_1.z.string(), zod_1.z.any())),
14
- values: (0, utils_1.optional)(task_item_1.taskItemValueMapSchema),
15
- additional: (0, utils_1.optional)(zod_1.z.any()),
11
+ locale: zod_1.z.string().optional(),
12
+ parameters: zod_1.z.record(zod_1.z.string(), zod_1.z.any()).optional(),
13
+ values: task_item_1.taskItemValueMapSchema.optional(),
14
+ additional: zod_1.z.any().optional(),
16
15
  })
17
16
  .optional();
@@ -3,18 +3,18 @@ import { z } from "zod";
3
3
  * Validates the request body for the matrix endpoints
4
4
  */
5
5
  export declare const matrixRequestBodySchema: z.ZodOptional<z.ZodObject<{
6
- locale: z.ZodPipeline<z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodType<string, z.ZodTypeDef, string>>>, string | undefined, string | null | undefined>, z.ZodOptional<z.ZodType<string, z.ZodTypeDef, string>>>;
7
- parameters: z.ZodPipeline<z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodType<Record<string, any>, z.ZodTypeDef, Record<string, any>>>>, Record<string, any> | undefined, Record<string, any> | null | undefined>, z.ZodOptional<z.ZodType<Record<string, any>, z.ZodTypeDef, Record<string, any>>>>;
8
- values: z.ZodPipeline<z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodType<Record<string, string | number | boolean | (string | number | boolean | null)[] | null>, z.ZodTypeDef, Record<string, string | number | boolean | (string | number | boolean | null)[] | null>>>>, Record<string, string | number | boolean | (string | number | boolean | null)[] | null> | undefined, Record<string, string | number | boolean | (string | number | boolean | null)[] | null> | null | undefined>, z.ZodOptional<z.ZodType<Record<string, string | number | boolean | (string | number | boolean | null)[] | null>, z.ZodTypeDef, Record<string, string | number | boolean | (string | number | boolean | null)[] | null>>>>;
9
- additional: z.ZodPipeline<z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodType<any, z.ZodTypeDef, any>>>, any, any>, z.ZodOptional<z.ZodType<any, z.ZodTypeDef, any>>>;
6
+ locale: z.ZodOptional<z.ZodString>;
7
+ parameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
8
+ values: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>, z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>, "many">]>>>;
9
+ additional: z.ZodOptional<z.ZodAny>;
10
10
  }, "strip", z.ZodTypeAny, {
11
11
  values?: Record<string, string | number | boolean | (string | number | boolean | null)[] | null> | undefined;
12
12
  locale?: string | undefined;
13
13
  parameters?: Record<string, any> | undefined;
14
14
  additional?: any;
15
15
  }, {
16
- values?: Record<string, string | number | boolean | (string | number | boolean | null)[] | null> | null | undefined;
17
- locale?: string | null | undefined;
18
- parameters?: Record<string, any> | null | undefined;
16
+ values?: Record<string, string | number | boolean | (string | number | boolean | null)[] | null> | undefined;
17
+ locale?: string | undefined;
18
+ parameters?: Record<string, any> | undefined;
19
19
  additional?: any;
20
20
  }>>;
@@ -3,15 +3,14 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.matrixRequestBodySchema = void 0;
4
4
  const zod_1 = require("zod");
5
5
  const task_item_1 = require("../task-item");
6
- const utils_1 = require("../utils");
7
6
  /**
8
7
  * Validates the request body for the matrix endpoints
9
8
  */
10
9
  exports.matrixRequestBodySchema = zod_1.z
11
10
  .object({
12
- locale: (0, utils_1.optional)(zod_1.z.string()),
13
- parameters: (0, utils_1.optional)(zod_1.z.record(zod_1.z.string(), zod_1.z.any())),
14
- values: (0, utils_1.optional)(task_item_1.taskItemValueMapSchema),
15
- additional: (0, utils_1.optional)(zod_1.z.any()),
11
+ locale: zod_1.z.string().optional(),
12
+ parameters: zod_1.z.record(zod_1.z.string(), zod_1.z.any()).optional(),
13
+ values: task_item_1.taskItemValueMapSchema.optional(),
14
+ additional: zod_1.z.any().optional(),
16
15
  })
17
16
  .optional();
@@ -3,15 +3,15 @@ import { z } from "zod";
3
3
  * Validates the request body for the tree and data endpoints
4
4
  */
5
5
  export declare const treeAndDataBodySchema: z.ZodOptional<z.ZodObject<{
6
- locale: z.ZodPipeline<z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodType<string, z.ZodTypeDef, string>>>, string | undefined, string | null | undefined>, z.ZodOptional<z.ZodType<string, z.ZodTypeDef, string>>>;
7
- parameters: z.ZodPipeline<z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodType<Record<string, any>, z.ZodTypeDef, Record<string, any>>>>, Record<string, any> | undefined, Record<string, any> | null | undefined>, z.ZodOptional<z.ZodType<Record<string, any>, z.ZodTypeDef, Record<string, any>>>>;
8
- values: z.ZodPipeline<z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodType<Record<string, string | number | boolean | (string | number | boolean | null)[] | null>, z.ZodTypeDef, Record<string, string | number | boolean | (string | number | boolean | null)[] | null>>>>, Record<string, string | number | boolean | (string | number | boolean | null)[] | null> | undefined, Record<string, string | number | boolean | (string | number | boolean | null)[] | null> | null | undefined>, z.ZodOptional<z.ZodType<Record<string, string | number | boolean | (string | number | boolean | null)[] | null>, z.ZodTypeDef, Record<string, string | number | boolean | (string | number | boolean | null)[] | null>>>>;
6
+ locale: z.ZodOptional<z.ZodString>;
7
+ parameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
8
+ values: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>, z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>, "many">]>>>;
9
9
  }, "strip", z.ZodTypeAny, {
10
10
  values?: Record<string, string | number | boolean | (string | number | boolean | null)[] | null> | undefined;
11
11
  locale?: string | undefined;
12
12
  parameters?: Record<string, any> | undefined;
13
13
  }, {
14
- values?: Record<string, string | number | boolean | (string | number | boolean | null)[] | null> | null | undefined;
15
- locale?: string | null | undefined;
16
- parameters?: Record<string, any> | null | undefined;
14
+ values?: Record<string, string | number | boolean | (string | number | boolean | null)[] | null> | undefined;
15
+ locale?: string | undefined;
16
+ parameters?: Record<string, any> | undefined;
17
17
  }>>;
@@ -3,14 +3,13 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.treeAndDataBodySchema = void 0;
4
4
  const zod_1 = require("zod");
5
5
  const task_item_1 = require("../task-item");
6
- const utils_1 = require("../utils");
7
6
  /**
8
7
  * Validates the request body for the tree and data endpoints
9
8
  */
10
9
  exports.treeAndDataBodySchema = zod_1.z
11
10
  .object({
12
- locale: (0, utils_1.optional)(zod_1.z.string()),
13
- parameters: (0, utils_1.optional)(zod_1.z.record(zod_1.z.string(), zod_1.z.any())),
14
- values: (0, utils_1.optional)(task_item_1.taskItemValueMapSchema),
11
+ locale: zod_1.z.string().optional(),
12
+ parameters: zod_1.z.record(zod_1.z.string(), zod_1.z.any()).optional(),
13
+ values: task_item_1.taskItemValueMapSchema.optional(),
15
14
  })
16
15
  .optional();
@@ -3,15 +3,15 @@ import { z } from "zod";
3
3
  * Validates the request body for the tree and data endpoints
4
4
  */
5
5
  export declare const treeAndDataRequestBodySchema: z.ZodOptional<z.ZodObject<{
6
- locale: z.ZodPipeline<z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodType<string, z.ZodTypeDef, string>>>, string | undefined, string | null | undefined>, z.ZodOptional<z.ZodType<string, z.ZodTypeDef, string>>>;
7
- parameters: z.ZodPipeline<z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodType<Record<string, any>, z.ZodTypeDef, Record<string, any>>>>, Record<string, any> | undefined, Record<string, any> | null | undefined>, z.ZodOptional<z.ZodType<Record<string, any>, z.ZodTypeDef, Record<string, any>>>>;
8
- values: z.ZodPipeline<z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodType<Record<string, string | number | boolean | (string | number | boolean | null)[] | null>, z.ZodTypeDef, Record<string, string | number | boolean | (string | number | boolean | null)[] | null>>>>, Record<string, string | number | boolean | (string | number | boolean | null)[] | null> | undefined, Record<string, string | number | boolean | (string | number | boolean | null)[] | null> | null | undefined>, z.ZodOptional<z.ZodType<Record<string, string | number | boolean | (string | number | boolean | null)[] | null>, z.ZodTypeDef, Record<string, string | number | boolean | (string | number | boolean | null)[] | null>>>>;
6
+ locale: z.ZodOptional<z.ZodString>;
7
+ parameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
8
+ values: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>, z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>, "many">]>>>;
9
9
  }, "strip", z.ZodTypeAny, {
10
10
  values?: Record<string, string | number | boolean | (string | number | boolean | null)[] | null> | undefined;
11
11
  locale?: string | undefined;
12
12
  parameters?: Record<string, any> | undefined;
13
13
  }, {
14
- values?: Record<string, string | number | boolean | (string | number | boolean | null)[] | null> | null | undefined;
15
- locale?: string | null | undefined;
16
- parameters?: Record<string, any> | null | undefined;
14
+ values?: Record<string, string | number | boolean | (string | number | boolean | null)[] | null> | undefined;
15
+ locale?: string | undefined;
16
+ parameters?: Record<string, any> | undefined;
17
17
  }>>;
@@ -3,14 +3,13 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.treeAndDataRequestBodySchema = void 0;
4
4
  const zod_1 = require("zod");
5
5
  const task_item_1 = require("../task-item");
6
- const utils_1 = require("../utils");
7
6
  /**
8
7
  * Validates the request body for the tree and data endpoints
9
8
  */
10
9
  exports.treeAndDataRequestBodySchema = zod_1.z
11
10
  .object({
12
- locale: (0, utils_1.optional)(zod_1.z.string()),
13
- parameters: (0, utils_1.optional)(zod_1.z.record(zod_1.z.string(), zod_1.z.any())),
14
- values: (0, utils_1.optional)(task_item_1.taskItemValueMapSchema),
11
+ locale: zod_1.z.string().optional(),
12
+ parameters: zod_1.z.record(zod_1.z.string(), zod_1.z.any()).optional(),
13
+ values: task_item_1.taskItemValueMapSchema.optional(),
15
14
  })
16
15
  .optional();
@@ -5,28 +5,19 @@ export declare const criteriaSetsAndVersionsSchema: z.ZodRecord<z.ZodString, z.Z
5
5
  date: z.ZodDate;
6
6
  name: z.ZodString;
7
7
  description: z.ZodString;
8
- documentation: z.ZodPipeline<z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodType<string, z.ZodTypeDef, string>>>, string | undefined, string | null | undefined>, z.ZodOptional<z.ZodType<string, z.ZodTypeDef, string>>>;
9
- locales: z.ZodPipeline<z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodType<string[], z.ZodTypeDef, string[]>>>, string[] | undefined, string[] | null | undefined>, z.ZodOptional<z.ZodType<string[], z.ZodTypeDef, string[]>>>;
10
- defaultLocale: z.ZodPipeline<z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodType<string, z.ZodTypeDef, string>>>, string | undefined, string | null | undefined>, z.ZodOptional<z.ZodType<string, z.ZodTypeDef, string>>>;
11
- schemas: z.ZodPipeline<z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodType<{
8
+ documentation: z.ZodOptional<z.ZodString>;
9
+ locales: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
10
+ defaultLocale: z.ZodOptional<z.ZodString>;
11
+ schemas: z.ZodOptional<z.ZodObject<{
12
+ parameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
13
+ result: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
14
+ }, "strip", z.ZodTypeAny, {
12
15
  parameters?: Record<string, any> | undefined;
13
16
  result?: Record<string, any> | undefined;
14
- }, z.ZodTypeDef, {
15
- parameters?: Record<string, any> | null | undefined;
16
- result?: Record<string, any> | null | undefined;
17
- }>>>, {
17
+ }, {
18
18
  parameters?: Record<string, any> | undefined;
19
19
  result?: Record<string, any> | undefined;
20
- } | undefined, {
21
- parameters?: Record<string, any> | null | undefined;
22
- result?: Record<string, any> | null | undefined;
23
- } | null | undefined>, z.ZodOptional<z.ZodType<{
24
- parameters?: Record<string, any> | undefined;
25
- result?: Record<string, any> | undefined;
26
- }, z.ZodTypeDef, {
27
- parameters?: Record<string, any> | null | undefined;
28
- result?: Record<string, any> | null | undefined;
29
- }>>>;
20
+ }>>;
30
21
  }, "strip", z.ZodTypeAny, {
31
22
  id: string;
32
23
  name: string;
@@ -46,13 +37,13 @@ export declare const criteriaSetsAndVersionsSchema: z.ZodRecord<z.ZodString, z.Z
46
37
  description: string;
47
38
  date: Date;
48
39
  version: string;
49
- documentation?: string | null | undefined;
50
- locales?: string[] | null | undefined;
51
- defaultLocale?: string | null | undefined;
40
+ documentation?: string | undefined;
41
+ locales?: string[] | undefined;
42
+ defaultLocale?: string | undefined;
52
43
  schemas?: {
53
- parameters?: Record<string, any> | null | undefined;
54
- result?: Record<string, any> | null | undefined;
55
- } | null | undefined;
44
+ parameters?: Record<string, any> | undefined;
45
+ result?: Record<string, any> | undefined;
46
+ } | undefined;
56
47
  }>, "many">>;
57
48
  export declare const streamMatrixResponseSchema: z.ZodObject<{
58
49
  filename: z.ZodString;