@openframe-org/criteria-set-protocol 2.5.0 → 3.0.0-alpha.10

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.
@@ -17,7 +17,7 @@ exports.dataMapSchema = zod_1.z
17
17
  result: common_1.treeResultSchema.describe("The overall result of the evaluation of the criteria set"),
18
18
  certifications: zod_1.z
19
19
  .array(zod_1.z.string())
20
- .optional()
20
+ .nullable()
21
21
  .describe("The attained certifications"),
22
22
  })
23
23
  .describe("DataMap");
@@ -1,9 +1,8 @@
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
- properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
5
- parameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
6
- result: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
4
+ properties: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>;
5
+ parameters: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>;
7
6
  }, z.core.$strip>;
8
7
  export declare const metadataSchema: z.ZodObject<{
9
8
  id: z.ZodString;
@@ -14,12 +13,9 @@ export declare const metadataSchema: z.ZodObject<{
14
13
  shortName: z.ZodString;
15
14
  group: z.ZodString;
16
15
  description: z.ZodString;
17
- documentation: z.ZodOptional<z.ZodString>;
18
- locales: z.ZodOptional<z.ZodArray<z.ZodString>>;
19
- defaultLocale: z.ZodOptional<z.ZodString>;
20
- schemas: z.ZodOptional<z.ZodObject<{
21
- properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
22
- parameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
23
- result: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
16
+ documentation: z.ZodNullable<z.ZodString>;
17
+ schemas: z.ZodNullable<z.ZodObject<{
18
+ properties: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>;
19
+ parameters: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>;
24
20
  }, z.core.$strip>>;
25
21
  }, z.core.$strip>;
@@ -6,14 +6,11 @@ exports.schemaDefinitionSchema = zod_1.z.record(zod_1.z.string(), zod_1.z.any())
6
6
  exports.schemaDefinitionsSchema = zod_1.z
7
7
  .object({
8
8
  properties: exports.schemaDefinitionSchema
9
- .optional()
9
+ .nullable()
10
10
  .describe("The JSON schema describing the configurable properties of projects using this criteria set"),
11
11
  parameters: exports.schemaDefinitionSchema
12
- .optional()
12
+ .nullable()
13
13
  .describe("The JSON schema describing the parameters of the criteria set"),
14
- result: exports.schemaDefinitionSchema
15
- .optional()
16
- .describe("The JSON schema describing the result of the criteria set"),
17
14
  })
18
15
  .describe("SchemaDefinitions - The JSON schemas describing the parameters and result of the criteria set, if any");
19
16
  exports.metadataSchema = zod_1.z
@@ -32,18 +29,10 @@ exports.metadataSchema = zod_1.z
32
29
  .describe("A detailed description of the criteria set"),
33
30
  documentation: zod_1.z
34
31
  .string()
35
- .optional()
32
+ .nullable()
36
33
  .describe("Additional documentation or usage guidelines for the criteria set"),
37
- locales: zod_1.z
38
- .array(zod_1.z.string())
39
- .optional()
40
- .describe("List of supported locale codes for internationalization"),
41
- defaultLocale: zod_1.z
42
- .string()
43
- .optional()
44
- .describe("The default locale to use when no specific locale is specified"),
45
34
  schemas: exports.schemaDefinitionsSchema
46
- .optional()
35
+ .nullable()
47
36
  .describe("Definitions of property, parameter and result schemas for the criteria set"),
48
37
  })
49
38
  .describe("Metadata - The metadata for a criteria set");
@@ -2,9 +2,9 @@ import { z } from "zod";
2
2
  /**
3
3
  * Validates the request body for the matrix endpoints
4
4
  */
5
- export declare const matrixRequestBodySchema: z.ZodOptional<z.ZodObject<{
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<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>]>>>;
9
- additional: z.ZodOptional<z.ZodAny>;
5
+ export declare const matrixRequestBodySchema: z.ZodNullable<z.ZodObject<{
6
+ locale: z.ZodNullable<z.ZodString>;
7
+ parameters: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>;
8
+ values: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>]>>>;
9
+ additional: z.ZodNullable<z.ZodAny>;
10
10
  }, z.core.$strip>>;
@@ -10,19 +10,19 @@ exports.matrixRequestBodySchema = zod_1.z
10
10
  .object({
11
11
  locale: zod_1.z
12
12
  .string()
13
- .optional()
13
+ .nullable()
14
14
  .describe("Locale to be passed when generating the matrix"),
15
15
  parameters: zod_1.z
16
16
  .record(zod_1.z.string(), zod_1.z.any())
17
- .optional()
17
+ .nullable()
18
18
  .describe("Parameters to be passed when generating the matrix"),
19
19
  values: task_item_1.taskItemValueMapSchema
20
- .optional()
20
+ .nullable()
21
21
  .describe("Values to be passed when generating the matrix"),
22
22
  additional: zod_1.z
23
23
  .any()
24
- .optional()
24
+ .nullable()
25
25
  .describe("Additional data to be passed when generating the matrix"),
26
26
  })
27
- .optional()
27
+ .nullable()
28
28
  .describe("MatrixRequestBody - The request body for matrix endpoints");
@@ -2,8 +2,8 @@ import { z } from "zod";
2
2
  /**
3
3
  * Validates the request body for the tree and data endpoints
4
4
  */
5
- export declare const treeAndDataRequestBodySchema: z.ZodOptional<z.ZodObject<{
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<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>]>>>;
5
+ export declare const treeAndDataRequestBodySchema: z.ZodNullable<z.ZodObject<{
6
+ locale: z.ZodNullable<z.ZodString>;
7
+ parameters: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>;
8
+ values: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>]>>>;
9
9
  }, z.core.$strip>>;
@@ -10,15 +10,15 @@ exports.treeAndDataRequestBodySchema = zod_1.z
10
10
  .object({
11
11
  locale: zod_1.z
12
12
  .string()
13
- .optional()
13
+ .nullable()
14
14
  .describe("Locale to be passed when generating the matrix"),
15
15
  parameters: zod_1.z
16
16
  .record(zod_1.z.string(), zod_1.z.any())
17
- .optional()
17
+ .nullable()
18
18
  .describe("Parameters to be passed when generating the matrix"),
19
19
  values: task_item_1.taskItemValueMapSchema
20
- .optional()
20
+ .nullable()
21
21
  .describe("Values to be passed when generating the matrix"),
22
22
  })
23
- .optional()
23
+ .nullable()
24
24
  .describe("TreeAndDataRequestBody - The request body for tree and data endpoints");
@@ -8,13 +8,10 @@ export declare const criteriaSetsAndVersionsSchema: z.ZodRecord<z.ZodString, z.Z
8
8
  shortName: z.ZodString;
9
9
  group: z.ZodString;
10
10
  description: z.ZodString;
11
- documentation: z.ZodOptional<z.ZodString>;
12
- locales: z.ZodOptional<z.ZodArray<z.ZodString>>;
13
- defaultLocale: z.ZodOptional<z.ZodString>;
14
- schemas: z.ZodOptional<z.ZodObject<{
15
- properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
16
- parameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
17
- result: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
11
+ documentation: z.ZodNullable<z.ZodString>;
12
+ schemas: z.ZodNullable<z.ZodObject<{
13
+ properties: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>;
14
+ parameters: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>;
18
15
  }, z.core.$strip>>;
19
16
  }, z.core.$strip>>>;
20
17
  export declare const streamMatrixResponseSchema: z.ZodObject<{