@techis/ai-contracts 0.0.0-stage → 0.3.0-rc.15

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 (171) hide show
  1. package/LICENSE +122 -0
  2. package/README.md +28 -3
  3. package/THIRD_PARTY_NOTICES +34 -0
  4. package/dist/availability.d.ts +21 -0
  5. package/dist/availability.d.ts.map +1 -0
  6. package/dist/availability.js +2 -0
  7. package/dist/availability.js.map +1 -0
  8. package/dist/catalog-adoption.d.ts +20 -0
  9. package/dist/catalog-adoption.d.ts.map +1 -0
  10. package/dist/catalog-adoption.js +76 -0
  11. package/dist/catalog-adoption.js.map +1 -0
  12. package/dist/catalog-composition.d.ts +10 -0
  13. package/dist/catalog-composition.d.ts.map +1 -0
  14. package/dist/catalog-composition.js +58 -0
  15. package/dist/catalog-composition.js.map +1 -0
  16. package/dist/catalog-delivery.d.ts +47 -0
  17. package/dist/catalog-delivery.d.ts.map +1 -0
  18. package/dist/catalog-delivery.js +83 -0
  19. package/dist/catalog-delivery.js.map +1 -0
  20. package/dist/catalog-package-data.d.ts +8 -0
  21. package/dist/catalog-package-data.d.ts.map +1 -0
  22. package/dist/catalog-package-data.js +2640 -0
  23. package/dist/catalog-package-data.js.map +1 -0
  24. package/dist/compatibility.d.ts +68 -0
  25. package/dist/compatibility.d.ts.map +1 -0
  26. package/dist/compatibility.js +207 -0
  27. package/dist/compatibility.js.map +1 -0
  28. package/dist/configuration-bundle.d.ts +201 -0
  29. package/dist/configuration-bundle.d.ts.map +1 -0
  30. package/dist/configuration-bundle.js +619 -0
  31. package/dist/configuration-bundle.js.map +1 -0
  32. package/dist/entities.d.ts +619 -0
  33. package/dist/entities.d.ts.map +1 -0
  34. package/dist/entities.js +2 -0
  35. package/dist/entities.js.map +1 -0
  36. package/dist/fixtures.d.ts +25 -0
  37. package/dist/fixtures.d.ts.map +1 -0
  38. package/dist/fixtures.js +546 -0
  39. package/dist/fixtures.js.map +1 -0
  40. package/dist/hash.d.ts +8 -0
  41. package/dist/hash.d.ts.map +1 -0
  42. package/dist/hash.js +13 -0
  43. package/dist/hash.js.map +1 -0
  44. package/dist/host-qualification.d.ts +90 -0
  45. package/dist/host-qualification.d.ts.map +1 -0
  46. package/dist/host-qualification.js +65 -0
  47. package/dist/host-qualification.js.map +1 -0
  48. package/dist/icc-catalog.d.ts +31 -0
  49. package/dist/icc-catalog.d.ts.map +1 -0
  50. package/dist/icc-catalog.js +321 -0
  51. package/dist/icc-catalog.js.map +1 -0
  52. package/dist/icc-csf-profiles.d.ts +28 -0
  53. package/dist/icc-csf-profiles.d.ts.map +1 -0
  54. package/dist/icc-csf-profiles.js +394 -0
  55. package/dist/icc-csf-profiles.js.map +1 -0
  56. package/dist/index.d.ts +24 -0
  57. package/dist/index.d.ts.map +1 -0
  58. package/dist/index.js +24 -0
  59. package/dist/index.js.map +1 -0
  60. package/dist/model-maintenance.d.ts +216 -0
  61. package/dist/model-maintenance.d.ts.map +1 -0
  62. package/dist/model-maintenance.js +387 -0
  63. package/dist/model-maintenance.js.map +1 -0
  64. package/dist/model-package-data.d.ts +3 -0
  65. package/dist/model-package-data.d.ts.map +1 -0
  66. package/dist/model-package-data.js +867 -0
  67. package/dist/model-package-data.js.map +1 -0
  68. package/dist/persona-inventory.d.ts +143 -0
  69. package/dist/persona-inventory.d.ts.map +1 -0
  70. package/dist/persona-inventory.js +56 -0
  71. package/dist/persona-inventory.js.map +1 -0
  72. package/dist/profile-identity.d.ts +27 -0
  73. package/dist/profile-identity.d.ts.map +1 -0
  74. package/dist/profile-identity.js +30 -0
  75. package/dist/profile-identity.js.map +1 -0
  76. package/dist/reasoning-validation.d.ts +9 -0
  77. package/dist/reasoning-validation.d.ts.map +1 -0
  78. package/dist/reasoning-validation.js +79 -0
  79. package/dist/reasoning-validation.js.map +1 -0
  80. package/dist/reasoning.d.ts +55 -0
  81. package/dist/reasoning.d.ts.map +1 -0
  82. package/dist/reasoning.js +13 -0
  83. package/dist/reasoning.js.map +1 -0
  84. package/dist/receipt.d.ts +16 -0
  85. package/dist/receipt.d.ts.map +1 -0
  86. package/dist/receipt.js +18 -0
  87. package/dist/receipt.js.map +1 -0
  88. package/dist/schemas/adoption-change-set.schema.json +91 -0
  89. package/dist/schemas/bundle.d.ts +124 -0
  90. package/dist/schemas/bundle.d.ts.map +1 -0
  91. package/dist/schemas/bundle.js +84 -0
  92. package/dist/schemas/bundle.js.map +1 -0
  93. package/dist/schemas/catalog-release.schema.json +110 -0
  94. package/dist/schemas/catalog-review-input.schema.json +179 -0
  95. package/dist/schemas/catalog-review-output.schema.json +259 -0
  96. package/dist/schemas/catalog-review-output.v2.schema.json +251 -0
  97. package/dist/schemas/catalog-review-record.schema.json +391 -0
  98. package/dist/schemas/client-persona-inventory.schema.json +107 -0
  99. package/dist/schemas/common.schema.json +324 -0
  100. package/dist/schemas/config.d.ts +1106 -0
  101. package/dist/schemas/config.d.ts.map +1 -0
  102. package/dist/schemas/config.js +496 -0
  103. package/dist/schemas/config.js.map +1 -0
  104. package/dist/schemas/configuration-bundle-manifest.schema.json +143 -0
  105. package/dist/schemas/configuration-manifest.schema.json +109 -0
  106. package/dist/schemas/connection.schema.json +49 -0
  107. package/dist/schemas/core.d.ts +1333 -0
  108. package/dist/schemas/core.d.ts.map +1 -0
  109. package/dist/schemas/core.js +341 -0
  110. package/dist/schemas/core.js.map +1 -0
  111. package/dist/schemas/desktop-configuration-revision.schema.json +146 -0
  112. package/dist/schemas/execution-profile-revision.schema.json +235 -0
  113. package/dist/schemas/execution-receipt.schema.json +431 -0
  114. package/dist/schemas/host-adapter-qualification.schema.json +161 -0
  115. package/dist/schemas/host-qualification-policy.schema.json +50 -0
  116. package/dist/schemas/index.d.ts +11 -0
  117. package/dist/schemas/index.d.ts.map +1 -0
  118. package/dist/schemas/index.js +34 -0
  119. package/dist/schemas/index.js.map +1 -0
  120. package/dist/schemas/inventory.d.ts +170 -0
  121. package/dist/schemas/inventory.d.ts.map +1 -0
  122. package/dist/schemas/inventory.js +87 -0
  123. package/dist/schemas/inventory.js.map +1 -0
  124. package/dist/schemas/model-definition.schema.json +429 -0
  125. package/dist/schemas/model-package-release.schema.json +594 -0
  126. package/dist/schemas/model-upgrade-advisory.schema.json +191 -0
  127. package/dist/schemas/operation-contract-document.schema.json +153 -0
  128. package/dist/schemas/persona-assignments.schema.json +125 -0
  129. package/dist/schemas/persona-registry-overlay.schema.json +93 -0
  130. package/dist/schemas/persona-source-document.schema.json +86 -0
  131. package/dist/schemas/persona-specification.schema.json +122 -0
  132. package/dist/schemas/price-revision.schema.json +299 -0
  133. package/dist/schemas/profile-assessment.schema.json +288 -0
  134. package/dist/schemas/scoped.d.ts +424 -0
  135. package/dist/schemas/scoped.d.ts.map +1 -0
  136. package/dist/schemas/scoped.js +203 -0
  137. package/dist/schemas/scoped.js.map +1 -0
  138. package/dist/schemas/usage-aggregate-query.schema.json +86 -0
  139. package/dist/schemas/usage-page.schema.json +22 -0
  140. package/dist/schemas/usage-query.schema.json +77 -0
  141. package/dist/schemas/usage-summary.schema.json +468 -0
  142. package/dist/schemas/usage.d.ts +527 -0
  143. package/dist/schemas/usage.d.ts.map +1 -0
  144. package/dist/schemas/usage.js +142 -0
  145. package/dist/schemas/usage.js.map +1 -0
  146. package/dist/scoped-configuration.d.ts +208 -0
  147. package/dist/scoped-configuration.d.ts.map +1 -0
  148. package/dist/scoped-configuration.js +425 -0
  149. package/dist/scoped-configuration.js.map +1 -0
  150. package/dist/scripts/emit-schemas.d.ts +2 -0
  151. package/dist/scripts/emit-schemas.d.ts.map +1 -0
  152. package/dist/scripts/emit-schemas.js +24 -0
  153. package/dist/scripts/emit-schemas.js.map +1 -0
  154. package/dist/scripts/verify-bundle.d.ts +3 -0
  155. package/dist/scripts/verify-bundle.d.ts.map +1 -0
  156. package/dist/scripts/verify-bundle.js +59 -0
  157. package/dist/scripts/verify-bundle.js.map +1 -0
  158. package/dist/validation.d.ts +11 -0
  159. package/dist/validation.d.ts.map +1 -0
  160. package/dist/validation.js +41 -0
  161. package/dist/validation.js.map +1 -0
  162. package/package.json +33 -6
  163. package/third-party-licenses/ajv-formats@3.0.1/LICENSE +21 -0
  164. package/third-party-licenses/ajv@8.20.0/LICENSE +22 -0
  165. package/third-party-licenses/fast-deep-equal@3.1.3/LICENSE +21 -0
  166. package/third-party-licenses/fast-uri@3.1.7/LICENSE +30 -0
  167. package/third-party-licenses/json-schema-traverse@1.0.0/LICENSE +21 -0
  168. package/third-party-licenses/require-from-string@2.0.2/license +21 -0
  169. package/third-party-licenses/typescript@5.9.3/LICENSE.txt +55 -0
  170. package/third-party-licenses/typescript@5.9.3/ThirdPartyNoticeText.txt +193 -0
  171. package/third-party-licenses.json +102 -0
@@ -0,0 +1,124 @@
1
+ export declare const configurationBundleManifestSchemaId = "https://techis.dev/ai/contracts/configuration-bundle-manifest.schema.json";
2
+ /**
3
+ * The subsystem configuration-bundle manifest (schema version 1), formalizing the manifest
4
+ * format ICC shipped under resources/embedded-models/: a versioned, immutable, exact
5
+ * document set with per-document SHA-256, provenance and a runtime-compatibility
6
+ * declaration. Secrets are structurally forbidden (`secretsIncluded` may only be false).
7
+ */
8
+ export declare const configurationBundleManifestSchema: {
9
+ readonly $id: "https://techis.dev/ai/contracts/configuration-bundle-manifest.schema.json";
10
+ readonly type: "object";
11
+ readonly additionalProperties: false;
12
+ readonly required: readonly ["schemaVersion", "kind", "bundleVersion", "compatibleRuntime", "schemaVersions", "provenance", "documents"];
13
+ readonly properties: {
14
+ readonly schemaVersion: {
15
+ readonly const: 1;
16
+ };
17
+ readonly kind: {
18
+ readonly const: "techis-configuration-bundle-manifest";
19
+ };
20
+ readonly bundleVersion: {
21
+ readonly type: "string";
22
+ readonly minLength: 1;
23
+ readonly maxLength: 64;
24
+ };
25
+ readonly compatibleRuntime: {
26
+ readonly type: "string";
27
+ readonly pattern: "^@techis/ai-runtime@(\\*|>=|>|<=|<|=|\\^|~|[0-9])[0-9A-Za-z.,<>=~^ *-]*$";
28
+ readonly minLength: 1;
29
+ readonly maxLength: 256;
30
+ };
31
+ readonly schemaVersions: {
32
+ readonly type: "object";
33
+ readonly additionalProperties: false;
34
+ readonly required: readonly ["profiles", "catalog"];
35
+ readonly properties: {
36
+ readonly profiles: {
37
+ readonly const: 2;
38
+ };
39
+ readonly catalog: {
40
+ readonly enum: readonly [1, 2];
41
+ };
42
+ readonly personaSources: {
43
+ readonly const: 2;
44
+ };
45
+ readonly operationContract: {
46
+ readonly const: 2;
47
+ };
48
+ };
49
+ };
50
+ readonly provenance: {
51
+ readonly type: "object";
52
+ readonly additionalProperties: false;
53
+ readonly required: readonly ["builtAt", "builtBy", "secretsIncluded", "source"];
54
+ readonly properties: {
55
+ readonly builtAt: {
56
+ readonly $ref: "https://techis.dev/ai/contracts/common.schema.json#/definitions/isoDateTime";
57
+ };
58
+ readonly builtBy: {
59
+ readonly type: "string";
60
+ readonly minLength: 1;
61
+ readonly maxLength: 200;
62
+ };
63
+ /** The secrets-excluded invariant: bundles never carry credentials, only references. */
64
+ readonly secretsIncluded: {
65
+ readonly const: false;
66
+ };
67
+ readonly source: {
68
+ readonly anyOf: readonly [{
69
+ readonly type: "object";
70
+ readonly additionalProperties: false;
71
+ readonly required: readonly ["kind", "storeDescription", "revisions"];
72
+ readonly properties: {
73
+ readonly kind: {
74
+ readonly const: "management-store";
75
+ };
76
+ readonly storeDescription: {
77
+ readonly type: "string";
78
+ readonly minLength: 1;
79
+ readonly maxLength: 500;
80
+ };
81
+ readonly revisions: {
82
+ readonly type: "object";
83
+ readonly additionalProperties: {
84
+ readonly type: "string";
85
+ readonly minLength: 1;
86
+ readonly maxLength: 256;
87
+ };
88
+ };
89
+ };
90
+ }, {
91
+ readonly type: "object";
92
+ readonly additionalProperties: false;
93
+ readonly required: readonly ["kind"];
94
+ readonly properties: {
95
+ readonly kind: {
96
+ readonly const: "authored-offline";
97
+ };
98
+ readonly description: {
99
+ readonly type: "string";
100
+ readonly maxLength: 500;
101
+ };
102
+ };
103
+ }];
104
+ };
105
+ readonly sources: {
106
+ readonly type: "array";
107
+ readonly items: {
108
+ readonly type: "string";
109
+ readonly maxLength: 500;
110
+ };
111
+ };
112
+ };
113
+ };
114
+ readonly documents: {
115
+ readonly type: "object";
116
+ readonly minProperties: 3;
117
+ readonly additionalProperties: {
118
+ readonly type: "string";
119
+ readonly pattern: "^[a-f0-9]{64}$";
120
+ };
121
+ };
122
+ };
123
+ };
124
+ //# sourceMappingURL=bundle.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bundle.d.ts","sourceRoot":"","sources":["../../src/schemas/bundle.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,mCAAmC,8EAA6D,CAAC;AAE9G;;;;;GAKG;AACH,eAAO,MAAM,iCAAiC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gBAoCtC,wFAAwF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqCtF,CAAC"}
@@ -0,0 +1,84 @@
1
+ import { SCHEMA_BASE, commonSchemaId } from "./core.js";
2
+ const D = `${commonSchemaId}#/definitions/`;
3
+ export const configurationBundleManifestSchemaId = `${SCHEMA_BASE}/configuration-bundle-manifest.schema.json`;
4
+ /**
5
+ * The subsystem configuration-bundle manifest (schema version 1), formalizing the manifest
6
+ * format ICC shipped under resources/embedded-models/: a versioned, immutable, exact
7
+ * document set with per-document SHA-256, provenance and a runtime-compatibility
8
+ * declaration. Secrets are structurally forbidden (`secretsIncluded` may only be false).
9
+ */
10
+ export const configurationBundleManifestSchema = {
11
+ $id: configurationBundleManifestSchemaId,
12
+ type: "object",
13
+ additionalProperties: false,
14
+ required: [
15
+ "schemaVersion", "kind", "bundleVersion", "compatibleRuntime", "schemaVersions",
16
+ "provenance", "documents"
17
+ ],
18
+ properties: {
19
+ schemaVersion: { const: 1 },
20
+ kind: { const: "techis-configuration-bundle-manifest" },
21
+ bundleVersion: { type: "string", minLength: 1, maxLength: 64 },
22
+ compatibleRuntime: {
23
+ type: "string",
24
+ pattern: "^@techis/ai-runtime@(\\*|>=|>|<=|<|=|\\^|~|[0-9])[0-9A-Za-z.,<>=~^ *-]*$",
25
+ minLength: 1,
26
+ maxLength: 256
27
+ },
28
+ schemaVersions: {
29
+ type: "object",
30
+ additionalProperties: false,
31
+ required: ["profiles", "catalog"],
32
+ properties: {
33
+ profiles: { const: 2 },
34
+ catalog: { enum: [1, 2] },
35
+ personaSources: { const: 2 },
36
+ operationContract: { const: 2 }
37
+ }
38
+ },
39
+ provenance: {
40
+ type: "object",
41
+ additionalProperties: false,
42
+ required: ["builtAt", "builtBy", "secretsIncluded", "source"],
43
+ properties: {
44
+ builtAt: { $ref: `${D}isoDateTime` },
45
+ builtBy: { type: "string", minLength: 1, maxLength: 200 },
46
+ /** The secrets-excluded invariant: bundles never carry credentials, only references. */
47
+ secretsIncluded: { const: false },
48
+ source: {
49
+ anyOf: [
50
+ {
51
+ type: "object",
52
+ additionalProperties: false,
53
+ required: ["kind", "storeDescription", "revisions"],
54
+ properties: {
55
+ kind: { const: "management-store" },
56
+ storeDescription: { type: "string", minLength: 1, maxLength: 500 },
57
+ revisions: {
58
+ type: "object",
59
+ additionalProperties: { type: "string", minLength: 1, maxLength: 256 }
60
+ }
61
+ }
62
+ },
63
+ {
64
+ type: "object",
65
+ additionalProperties: false,
66
+ required: ["kind"],
67
+ properties: {
68
+ kind: { const: "authored-offline" },
69
+ description: { type: "string", maxLength: 500 }
70
+ }
71
+ }
72
+ ]
73
+ },
74
+ sources: { type: "array", items: { type: "string", maxLength: 500 } }
75
+ }
76
+ },
77
+ documents: {
78
+ type: "object",
79
+ minProperties: 3,
80
+ additionalProperties: { type: "string", pattern: "^[a-f0-9]{64}$" }
81
+ }
82
+ }
83
+ };
84
+ //# sourceMappingURL=bundle.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bundle.js","sourceRoot":"","sources":["../../src/schemas/bundle.ts"],"names":[],"m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YACd,aAAa,EAAE,CAAC;YAChB,oBAAoB,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,OAAO,EAAE,gBAAgB,EAAE;SACpE;KACF;CACO,CAAC"}
@@ -0,0 +1,110 @@
1
+ {
2
+ "$id": "https://techis.dev/ai/contracts/catalog-release.schema.json",
3
+ "anyOf": [
4
+ {
5
+ "type": "object",
6
+ "additionalProperties": false,
7
+ "required": [
8
+ "schemaVersion",
9
+ "catalogRevision",
10
+ "publishedAt",
11
+ "models",
12
+ "prices"
13
+ ],
14
+ "properties": {
15
+ "schemaVersion": {
16
+ "const": 1
17
+ },
18
+ "catalogRevision": {
19
+ "$ref": "https://techis.dev/ai/contracts/common.schema.json#/definitions/revision"
20
+ },
21
+ "releaseSequence": {
22
+ "type": "integer",
23
+ "minimum": 1
24
+ },
25
+ "publishedAt": {
26
+ "$ref": "https://techis.dev/ai/contracts/common.schema.json#/definitions/isoDateTime"
27
+ },
28
+ "models": {
29
+ "type": "array",
30
+ "items": {
31
+ "allOf": [
32
+ {
33
+ "$ref": "https://techis.dev/ai/contracts/model-definition.schema.json"
34
+ },
35
+ {
36
+ "properties": {
37
+ "schemaVersion": {
38
+ "const": 1
39
+ }
40
+ }
41
+ }
42
+ ]
43
+ }
44
+ },
45
+ "prices": {
46
+ "type": "array",
47
+ "items": {
48
+ "allOf": [
49
+ {
50
+ "$ref": "https://techis.dev/ai/contracts/price-revision.schema.json"
51
+ },
52
+ {
53
+ "properties": {
54
+ "schemaVersion": {
55
+ "const": 1
56
+ }
57
+ }
58
+ }
59
+ ]
60
+ }
61
+ },
62
+ "notes": {
63
+ "type": "string"
64
+ }
65
+ }
66
+ },
67
+ {
68
+ "type": "object",
69
+ "additionalProperties": false,
70
+ "required": [
71
+ "schemaVersion",
72
+ "catalogRevision",
73
+ "publishedAt",
74
+ "models",
75
+ "prices"
76
+ ],
77
+ "properties": {
78
+ "schemaVersion": {
79
+ "const": 2
80
+ },
81
+ "catalogRevision": {
82
+ "$ref": "https://techis.dev/ai/contracts/common.schema.json#/definitions/revision"
83
+ },
84
+ "releaseSequence": {
85
+ "type": "integer",
86
+ "minimum": 1
87
+ },
88
+ "publishedAt": {
89
+ "$ref": "https://techis.dev/ai/contracts/common.schema.json#/definitions/isoDateTime"
90
+ },
91
+ "models": {
92
+ "type": "array",
93
+ "items": {
94
+ "$ref": "https://techis.dev/ai/contracts/model-definition.schema.json"
95
+ }
96
+ },
97
+ "prices": {
98
+ "type": "array",
99
+ "items": {
100
+ "$ref": "https://techis.dev/ai/contracts/price-revision.schema.json"
101
+ }
102
+ },
103
+ "notes": {
104
+ "type": "string"
105
+ }
106
+ },
107
+ "$id": "https://techis.dev/ai/contracts/v2/catalog-release.schema.json"
108
+ }
109
+ ]
110
+ }
@@ -0,0 +1,179 @@
1
+ {
2
+ "type": "object",
3
+ "additionalProperties": false,
4
+ "required": [
5
+ "base",
6
+ "catalog",
7
+ "evidence",
8
+ "policy"
9
+ ],
10
+ "properties": {
11
+ "base": {},
12
+ "catalog": {},
13
+ "evidence": {
14
+ "type": "array",
15
+ "items": {
16
+ "type": "object",
17
+ "additionalProperties": false,
18
+ "required": [
19
+ "evidenceId",
20
+ "kind",
21
+ "uri",
22
+ "collectedAt",
23
+ "content",
24
+ "sha256",
25
+ "claims"
26
+ ],
27
+ "properties": {
28
+ "evidenceId": {
29
+ "type": "string",
30
+ "minLength": 1
31
+ },
32
+ "kind": {
33
+ "enum": [
34
+ "provider-documentation",
35
+ "provider-discovery",
36
+ "provider-advisory",
37
+ "evaluation",
38
+ "host-qualification"
39
+ ]
40
+ },
41
+ "uri": {
42
+ "type": "string",
43
+ "minLength": 1
44
+ },
45
+ "collectedAt": {
46
+ "type": "string",
47
+ "minLength": 1
48
+ },
49
+ "content": {
50
+ "type": "string",
51
+ "minLength": 1
52
+ },
53
+ "sha256": {
54
+ "type": "string",
55
+ "pattern": "^[a-f0-9]{64}$"
56
+ },
57
+ "claims": {
58
+ "type": "array",
59
+ "items": {
60
+ "type": "object",
61
+ "additionalProperties": false,
62
+ "required": [
63
+ "key",
64
+ "value",
65
+ "quote"
66
+ ],
67
+ "properties": {
68
+ "key": {
69
+ "type": "string",
70
+ "minLength": 1
71
+ },
72
+ "value": {},
73
+ "quote": {
74
+ "type": "string",
75
+ "minLength": 1
76
+ },
77
+ "taskDefinition": {
78
+ "type": "string",
79
+ "minLength": 1
80
+ },
81
+ "successCriterion": {
82
+ "type": "string",
83
+ "minLength": 1
84
+ }
85
+ }
86
+ }
87
+ }
88
+ }
89
+ }
90
+ },
91
+ "policy": {
92
+ "type": "object",
93
+ "additionalProperties": false,
94
+ "required": [
95
+ "revision",
96
+ "allowedSourceOrigins",
97
+ "maxEvidenceAgeDays"
98
+ ],
99
+ "properties": {
100
+ "schemaVersion": {
101
+ "const": 2
102
+ },
103
+ "revision": {
104
+ "type": "string",
105
+ "minLength": 1
106
+ },
107
+ "allowedSourceOrigins": {
108
+ "type": "array",
109
+ "items": {
110
+ "type": "string",
111
+ "minLength": 1
112
+ },
113
+ "minItems": 1
114
+ },
115
+ "maxEvidenceAgeDays": {
116
+ "anyOf": [
117
+ {
118
+ "type": "number",
119
+ "minimum": 0
120
+ },
121
+ {
122
+ "type": "null"
123
+ }
124
+ ]
125
+ },
126
+ "hostQualification": {
127
+ "type": "object",
128
+ "additionalProperties": false,
129
+ "required": [
130
+ "schemaVersion",
131
+ "artifactPins"
132
+ ],
133
+ "properties": {
134
+ "schemaVersion": {
135
+ "const": 1
136
+ },
137
+ "artifactPins": {
138
+ "type": "array",
139
+ "minItems": 1,
140
+ "items": {
141
+ "type": "object",
142
+ "additionalProperties": false,
143
+ "required": [
144
+ "qualificationSha256",
145
+ "runtimePackageSha256",
146
+ "adapterModuleSha256",
147
+ "receiptSha256",
148
+ "conformanceSha256"
149
+ ],
150
+ "properties": {
151
+ "qualificationSha256": {
152
+ "type": "string",
153
+ "pattern": "^[a-f0-9]{64}$"
154
+ },
155
+ "runtimePackageSha256": {
156
+ "type": "string",
157
+ "pattern": "^[a-f0-9]{64}$"
158
+ },
159
+ "adapterModuleSha256": {
160
+ "type": "string",
161
+ "pattern": "^[a-f0-9]{64}$"
162
+ },
163
+ "receiptSha256": {
164
+ "type": "string",
165
+ "pattern": "^[a-f0-9]{64}$"
166
+ },
167
+ "conformanceSha256": {
168
+ "type": "string",
169
+ "pattern": "^[a-f0-9]{64}$"
170
+ }
171
+ }
172
+ }
173
+ }
174
+ }
175
+ }
176
+ }
177
+ }
178
+ }
179
+ }