@toolproof-core/schema 1.0.10 → 1.0.11

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 (40) hide show
  1. package/dist/generated/artifacts/constants.d.ts +4 -3
  2. package/dist/generated/artifacts/constants.js +4 -3
  3. package/dist/generated/normalized/Genesis.json +50 -25
  4. package/dist/generated/resources/Genesis.json +68 -31
  5. package/dist/generated/schemas/Genesis.json +38 -19
  6. package/dist/generated/schemas/standalone/Job.json +7 -8
  7. package/dist/generated/schemas/standalone/ResourceType.json +4 -4
  8. package/dist/generated/schemas/standalone/RunnableStrategy.json +7 -7
  9. package/dist/generated/schemas/standalone/StrategyRun.json +7 -7
  10. package/dist/generated/types/standalone/Resource_Genesis.d.ts +1 -1
  11. package/dist/generated/types/standalone/Resource_Job.d.ts +1 -1
  12. package/dist/generated/types/standalone/Resource_RawStrategy.d.ts +1 -1
  13. package/dist/generated/types/standalone/Resource_ResourceType.d.ts +1 -1
  14. package/dist/generated/types/standalone/Resource_RunnableStrategy.d.ts +1 -1
  15. package/dist/generated/types/types.d.ts +229 -221
  16. package/dist/index.d.ts +1 -1
  17. package/dist/scripts/generateStandaloneType.js +2 -1
  18. package/dist/scripts/generateTypes.js +136 -3
  19. package/package.json +1 -1
  20. package/src/Genesis.json +54 -28
  21. package/src/generated/artifacts/constants.ts +122 -121
  22. package/src/generated/artifacts/dependencyMap.json +282 -278
  23. package/src/generated/artifacts/terminals.json +13 -12
  24. package/src/generated/normalized/Genesis.json +50 -25
  25. package/src/generated/resources/Genesis.json +68 -31
  26. package/src/generated/schemas/Genesis.json +38 -19
  27. package/src/generated/schemas/standalone/Job.json +195 -196
  28. package/src/generated/schemas/standalone/RawStrategy.json +580 -580
  29. package/src/generated/schemas/standalone/ResourceType.json +106 -106
  30. package/src/generated/schemas/standalone/RunnableStrategy.json +7 -7
  31. package/src/generated/schemas/standalone/StrategyRun.json +7 -7
  32. package/src/generated/types/standalone/Resource_Genesis.d.ts +3 -3
  33. package/src/generated/types/standalone/Resource_Job.d.ts +3 -3
  34. package/src/generated/types/standalone/Resource_RawStrategy.d.ts +3 -3
  35. package/src/generated/types/standalone/Resource_ResourceType.d.ts +3 -3
  36. package/src/generated/types/standalone/Resource_RunnableStrategy.d.ts +3 -3
  37. package/src/generated/types/types.d.ts +229 -221
  38. package/src/index.ts +47 -45
  39. package/src/scripts/generateStandaloneType.ts +3 -1
  40. package/src/scripts/generateTypes.ts +151 -5
@@ -1,196 +1,195 @@
1
- {
2
- "$schema": "https://json-schema.org/draft/2020-12/schema",
3
- "type": "object",
4
- "required": [
5
- "identity",
6
- "implementationUri"
7
- ],
8
- "properties": {
9
- "identity": {
10
- "$ref": "#/$defs/JobIdentity"
11
- },
12
- "implementationUri": {
13
- "$comment": "Instances of a ResourceType that requires implementationUri are 'executable' ResourceTypes. TYPE-Job is the canonical executable ResourceType in the ecosystem.",
14
- "$ref": "#/$defs/Uri"
15
- }
16
- },
17
- "allOf": [
18
- {
19
- "$ref": "#/$defs/DocumentationFacet"
20
- },
21
- {
22
- "$ref": "#/$defs/RolesFacet"
23
- }
24
- ],
25
- "unevaluatedProperties": false,
26
- "$defs": {
27
- "JobIdentity": {
28
- "$schema": "https://json-schema.org/draft/2020-12/schema",
29
- "type": "string",
30
- "pattern": "^JOB-.+$"
31
- },
32
- "Uri": {
33
- "$schema": "https://json-schema.org/draft/2020-12/schema",
34
- "type": "string",
35
- "format": "uri"
36
- },
37
- "DocumentationFacet": {
38
- "$schema": "https://json-schema.org/draft/2020-12/schema",
39
- "type": "object",
40
- "allOf": [
41
- {
42
- "$ref": "#/$defs/NameFacet"
43
- },
44
- {
45
- "$ref": "#/$defs/DescriptionFacet"
46
- }
47
- ]
48
- },
49
- "RolesFacet": {
50
- "$schema": "https://json-schema.org/draft/2020-12/schema",
51
- "type": "object",
52
- "required": [
53
- "roles"
54
- ],
55
- "properties": {
56
- "roles": {
57
- "$ref": "#/$defs/Roles"
58
- }
59
- }
60
- },
61
- "NameFacet": {
62
- "$schema": "https://json-schema.org/draft/2020-12/schema",
63
- "type": "object",
64
- "required": [
65
- "name"
66
- ],
67
- "properties": {
68
- "name": {
69
- "$ref": "#/$defs/Name"
70
- }
71
- }
72
- },
73
- "DescriptionFacet": {
74
- "$schema": "https://json-schema.org/draft/2020-12/schema",
75
- "type": "object",
76
- "required": [
77
- "description"
78
- ],
79
- "properties": {
80
- "description": {
81
- "$ref": "#/$defs/Description"
82
- }
83
- }
84
- },
85
- "Roles": {
86
- "$schema": "https://json-schema.org/draft/2020-12/schema",
87
- "type": "object",
88
- "required": [
89
- "inputMap",
90
- "outputMap"
91
- ],
92
- "properties": {
93
- "inputMap": {
94
- "$ref": "#/$defs/RoleMap"
95
- },
96
- "outputMap": {
97
- "allOf": [
98
- {
99
- "$ref": "#/$defs/RoleMap"
100
- },
101
- {
102
- "type": "object",
103
- "required": [
104
- "ROLE-ErrorOutput"
105
- ],
106
- "properties": {
107
- "ROLE-ErrorOutput": {
108
- "type": "object",
109
- "allOf": [
110
- {
111
- "$ref": "#/$defs/ResourceRoleValue"
112
- },
113
- {
114
- "required": [
115
- "resourceTypeHandle",
116
- "name",
117
- "description"
118
- ],
119
- "properties": {
120
- "resourceTypeHandle": {
121
- "const": "TYPE-Error"
122
- },
123
- "name": {
124
- "const": "ErrorOutput"
125
- },
126
- "description": {
127
- "const": "Represents error outputs from job runs."
128
- }
129
- }
130
- }
131
- ]
132
- }
133
- }
134
- }
135
- ]
136
- }
137
- },
138
- "unevaluatedProperties": false
139
- },
140
- "Name": {
141
- "$schema": "https://json-schema.org/draft/2020-12/schema",
142
- "type": "string",
143
- "minLength": 1,
144
- "pattern": "^(?:[A-Z][^0-9]*|[a-z]+/[a-z.+&-]+)$",
145
- "$comment": "Validation is intercepted by an AI Agent that verifies the name against Toolproof's naming conventions.",
146
- "semanticValidation": "Ajv custom keyword to verify name."
147
- },
148
- "Description": {
149
- "$schema": "https://json-schema.org/draft/2020-12/schema",
150
- "type": "string",
151
- "minLength": 1,
152
- "$comment": "Validation is intercepted by an AI Agent that verifies the description against Toolproof's documentation standards.",
153
- "semanticValidation": "Ajv custom keyword to verify description."
154
- },
155
- "RoleMap": {
156
- "$schema": "https://json-schema.org/draft/2020-12/schema",
157
- "type": "object",
158
- "propertyNames": {
159
- "$ref": "#/$defs/ResourceRoleIdentity"
160
- },
161
- "additionalProperties": {
162
- "$ref": "#/$defs/ResourceRoleValue"
163
- }
164
- },
165
- "ResourceRoleValue": {
166
- "$schema": "https://json-schema.org/draft/2020-12/schema",
167
- "type": "object",
168
- "allOf": [
169
- {
170
- "$comment": "A ResourceRole does not have a self-contained identity, as it is always defined in the context of a RoleMap. ResourceRoleValue uses the Value suffix to mean 'the value stored in this map' (RoleMap.additionalProperties).",
171
- "required": [
172
- "resourceTypeHandle"
173
- ],
174
- "properties": {
175
- "resourceTypeHandle": {
176
- "$ref": "#/$defs/ResourceTypeIdentity"
177
- }
178
- }
179
- },
180
- {
181
- "$ref": "#/$defs/DocumentationFacet"
182
- }
183
- ]
184
- },
185
- "ResourceRoleIdentity": {
186
- "$schema": "https://json-schema.org/draft/2020-12/schema",
187
- "type": "string",
188
- "pattern": "^ROLE-.+$"
189
- },
190
- "ResourceTypeIdentity": {
191
- "$schema": "https://json-schema.org/draft/2020-12/schema",
192
- "type": "string",
193
- "pattern": "^TYPE-.+$"
194
- }
195
- }
196
- }
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "type": "object",
4
+ "required": [
5
+ "identity",
6
+ "implementationUri"
7
+ ],
8
+ "properties": {
9
+ "identity": {
10
+ "$ref": "#/$defs/JobIdentity"
11
+ },
12
+ "implementationUri": {
13
+ "$comment": "Instances of a ResourceType that requires implementationUri are 'executable' ResourceTypes. TYPE-Job is the canonical executable ResourceType in the ecosystem.",
14
+ "$ref": "#/$defs/Uri"
15
+ }
16
+ },
17
+ "allOf": [
18
+ {
19
+ "$ref": "#/$defs/DocumentationFacet"
20
+ },
21
+ {
22
+ "$ref": "#/$defs/RolesFacet"
23
+ }
24
+ ],
25
+ "unevaluatedProperties": false,
26
+ "$defs": {
27
+ "JobIdentity": {
28
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
29
+ "type": "string",
30
+ "pattern": "^JOB-.+$"
31
+ },
32
+ "Uri": {
33
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
34
+ "type": "string",
35
+ "format": "uri"
36
+ },
37
+ "DocumentationFacet": {
38
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
39
+ "type": "object",
40
+ "allOf": [
41
+ {
42
+ "$ref": "#/$defs/NameFacet"
43
+ },
44
+ {
45
+ "$ref": "#/$defs/DescriptionFacet"
46
+ }
47
+ ]
48
+ },
49
+ "RolesFacet": {
50
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
51
+ "type": "object",
52
+ "required": [
53
+ "roles"
54
+ ],
55
+ "properties": {
56
+ "roles": {
57
+ "$ref": "#/$defs/Roles"
58
+ }
59
+ }
60
+ },
61
+ "NameFacet": {
62
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
63
+ "type": "object",
64
+ "required": [
65
+ "name"
66
+ ],
67
+ "properties": {
68
+ "name": {
69
+ "$ref": "#/$defs/Name"
70
+ }
71
+ }
72
+ },
73
+ "DescriptionFacet": {
74
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
75
+ "type": "object",
76
+ "required": [
77
+ "description"
78
+ ],
79
+ "properties": {
80
+ "description": {
81
+ "$ref": "#/$defs/Description"
82
+ }
83
+ }
84
+ },
85
+ "Roles": {
86
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
87
+ "type": "object",
88
+ "required": [
89
+ "inputDict",
90
+ "outputDict"
91
+ ],
92
+ "properties": {
93
+ "inputDict": {
94
+ "$ref": "#/$defs/RoleDict"
95
+ },
96
+ "outputDict": {
97
+ "allOf": [
98
+ {
99
+ "$ref": "#/$defs/RoleDict"
100
+ },
101
+ {
102
+ "type": "object",
103
+ "required": [
104
+ "ROLE-ErrorOutput"
105
+ ],
106
+ "properties": {
107
+ "ROLE-ErrorOutput": {
108
+ "type": "object",
109
+ "allOf": [
110
+ {
111
+ "$ref": "#/$defs/ResourceRoleValue"
112
+ },
113
+ {
114
+ "required": [
115
+ "resourceTypeHandle",
116
+ "name",
117
+ "description"
118
+ ],
119
+ "properties": {
120
+ "resourceTypeHandle": {
121
+ "const": "TYPE-Error"
122
+ },
123
+ "name": {
124
+ "const": "ErrorOutput"
125
+ },
126
+ "description": {
127
+ "const": "Represents error outputs from job runs."
128
+ }
129
+ }
130
+ }
131
+ ]
132
+ }
133
+ }
134
+ }
135
+ ]
136
+ }
137
+ },
138
+ "unevaluatedProperties": false
139
+ },
140
+ "Name": {
141
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
142
+ "type": "string",
143
+ "minLength": 1,
144
+ "pattern": "^(?:[A-Z][^0-9]*|[a-z]+/[a-z.+&-]+)$",
145
+ "$comment": "Validation is intercepted by an AI Agent that verifies the name against Toolproof's naming conventions.",
146
+ "semanticValidation": "Ajv custom keyword to verify name."
147
+ },
148
+ "Description": {
149
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
150
+ "type": "string",
151
+ "minLength": 1,
152
+ "$comment": "Validation is intercepted by an AI Agent that verifies the description against Toolproof's documentation standards.",
153
+ "semanticValidation": "Ajv custom keyword to verify description."
154
+ },
155
+ "RoleDict": {
156
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
157
+ "type": "object",
158
+ "propertyNames": {
159
+ "$ref": "#/$defs/ResourceRoleIdentity"
160
+ },
161
+ "additionalProperties": {
162
+ "$ref": "#/$defs/ResourceRoleValue"
163
+ }
164
+ },
165
+ "ResourceRoleValue": {
166
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
167
+ "type": "object",
168
+ "allOf": [
169
+ {
170
+ "required": [
171
+ "resourceTypeHandle"
172
+ ],
173
+ "properties": {
174
+ "resourceTypeHandle": {
175
+ "$ref": "#/$defs/ResourceTypeIdentity"
176
+ }
177
+ }
178
+ },
179
+ {
180
+ "$ref": "#/$defs/DocumentationFacet"
181
+ }
182
+ ]
183
+ },
184
+ "ResourceRoleIdentity": {
185
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
186
+ "type": "string",
187
+ "pattern": "^ROLE-.+$"
188
+ },
189
+ "ResourceTypeIdentity": {
190
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
191
+ "type": "string",
192
+ "pattern": "^TYPE-.+$"
193
+ }
194
+ }
195
+ }