@toolproof-npm/schema 0.1.67 → 0.1.68

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.
@@ -62,6 +62,9 @@
62
62
  "JsonData"
63
63
  ],
64
64
  "BranchStepIdentity": [],
65
+ "Error": [
66
+ "Documented"
67
+ ],
65
68
  "ForStepIdentity": [],
66
69
  "JobIdentity": [],
67
70
  "ResourceFormat": [
@@ -109,7 +112,8 @@
109
112
  "ResourceRoleIdentity"
110
113
  ],
111
114
  "Roles": [
112
- "RoleMap"
115
+ "RoleMap",
116
+ "ResourceRoleValue"
113
117
  ],
114
118
  "RolesWrapper": [
115
119
  "Roles"
@@ -814,7 +814,8 @@
814
814
  "$ref": "#/$defs/Documented"
815
815
  }
816
816
  ]
817
- }
817
+ },
818
+ "unevaluatedProperties": false
818
819
  },
819
820
  "RoleMap": {
820
821
  "identity": "TYPE-RoleMap",
@@ -833,6 +834,30 @@
833
834
  }
834
835
  }
835
836
  },
837
+ "Error": {
838
+ "identity": "TYPE-Error",
839
+ "name": "Error",
840
+ "description": "dummy-description",
841
+ "resourceFormatRef": "FORMAT-ApplicationJson",
842
+ "extractionSchema": {
843
+ "$anchor": "Error",
844
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
845
+ "type": "object",
846
+ "allOf": [
847
+ {
848
+ "$ref": "#/$defs/Documented"
849
+ },
850
+ {
851
+ "properties": {
852
+ "details": {
853
+ "type": "object"
854
+ }
855
+ }
856
+ }
857
+ ],
858
+ "unevaluatedProperties": false
859
+ }
860
+ },
836
861
  "Roles": {
837
862
  "identity": "TYPE-Roles",
838
863
  "name": "Roles",
@@ -851,7 +876,44 @@
851
876
  "$ref": "#/$defs/RoleMap"
852
877
  },
853
878
  "outputMap": {
854
- "$ref": "#/$defs/RoleMap"
879
+ "allOf": [
880
+ {
881
+ "$ref": "#/$defs/RoleMap"
882
+ },
883
+ {
884
+ "required": [
885
+ "ROLE-ErrorOutput"
886
+ ],
887
+ "properties": {
888
+ "ROLE-ErrorOutput": {
889
+ "type": "object",
890
+ "allOf": [
891
+ {
892
+ "$ref": "#/$defs/ResourceRoleValue"
893
+ },
894
+ {
895
+ "required": [
896
+ "resourceTypeRef",
897
+ "name",
898
+ "description"
899
+ ],
900
+ "properties": {
901
+ "resourceTypeRef": {
902
+ "const": "TYPE-Error"
903
+ },
904
+ "name": {
905
+ "const": "ErrorOutput"
906
+ },
907
+ "description": {
908
+ "const": "Represents error outputs from job executions."
909
+ }
910
+ }
911
+ }
912
+ ]
913
+ }
914
+ }
915
+ }
916
+ ]
855
917
  }
856
918
  },
857
919
  "unevaluatedProperties": false
@@ -995,7 +995,8 @@
995
995
  "$ref": "#/$defs/Documented"
996
996
  }
997
997
  ]
998
- }
998
+ },
999
+ "unevaluatedProperties": false
999
1000
  }
1000
1001
  },
1001
1002
  "RoleMap": {
@@ -1025,6 +1026,40 @@
1025
1026
  }
1026
1027
  }
1027
1028
  },
1029
+ "Error": {
1030
+ "identity": "RESOURCE-Error",
1031
+ "resourceTypeRef": "TYPE-ResourceType",
1032
+ "creationContext": {
1033
+ "resourceRoleRef": "ROLE-Genesis",
1034
+ "executionRef": "EXECUTION-Error"
1035
+ },
1036
+ "kind": "materialized",
1037
+ "timestamp": "2025-11-30T00:00:00.000Z",
1038
+ "extractedData": {
1039
+ "identity": "TYPE-Error",
1040
+ "name": "Error",
1041
+ "description": "dummy-description",
1042
+ "resourceFormatRef": "FORMAT-ApplicationJson",
1043
+ "extractionSchema": {
1044
+ "$anchor": "Error",
1045
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1046
+ "type": "object",
1047
+ "allOf": [
1048
+ {
1049
+ "$ref": "#/$defs/Documented"
1050
+ },
1051
+ {
1052
+ "properties": {
1053
+ "details": {
1054
+ "type": "object"
1055
+ }
1056
+ }
1057
+ }
1058
+ ],
1059
+ "unevaluatedProperties": false
1060
+ }
1061
+ }
1062
+ },
1028
1063
  "Roles": {
1029
1064
  "identity": "RESOURCE-Roles",
1030
1065
  "resourceTypeRef": "TYPE-ResourceType",
@@ -1052,7 +1087,44 @@
1052
1087
  "$ref": "#/$defs/RoleMap"
1053
1088
  },
1054
1089
  "outputMap": {
1055
- "$ref": "#/$defs/RoleMap"
1090
+ "allOf": [
1091
+ {
1092
+ "$ref": "#/$defs/RoleMap"
1093
+ },
1094
+ {
1095
+ "required": [
1096
+ "ROLE-ErrorOutput"
1097
+ ],
1098
+ "properties": {
1099
+ "ROLE-ErrorOutput": {
1100
+ "type": "object",
1101
+ "allOf": [
1102
+ {
1103
+ "$ref": "#/$defs/ResourceRoleValue"
1104
+ },
1105
+ {
1106
+ "required": [
1107
+ "resourceTypeRef",
1108
+ "name",
1109
+ "description"
1110
+ ],
1111
+ "properties": {
1112
+ "resourceTypeRef": {
1113
+ "const": "TYPE-Error"
1114
+ },
1115
+ "name": {
1116
+ "const": "ErrorOutput"
1117
+ },
1118
+ "description": {
1119
+ "const": "Represents error outputs from job executions."
1120
+ }
1121
+ }
1122
+ }
1123
+ ]
1124
+ }
1125
+ }
1126
+ }
1127
+ ]
1056
1128
  }
1057
1129
  },
1058
1130
  "unevaluatedProperties": false
@@ -116,6 +116,24 @@
116
116
  ],
117
117
  "$anchor": "Documented"
118
118
  },
119
+ "Error": {
120
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
121
+ "type": "object",
122
+ "allOf": [
123
+ {
124
+ "$ref": "#/$defs/Documented"
125
+ },
126
+ {
127
+ "properties": {
128
+ "details": {
129
+ "type": "object"
130
+ }
131
+ }
132
+ }
133
+ ],
134
+ "unevaluatedProperties": false,
135
+ "$anchor": "Error"
136
+ },
119
137
  "Execution": {
120
138
  "$schema": "https://json-schema.org/draft/2020-12/schema",
121
139
  "type": "object",
@@ -1164,7 +1182,44 @@
1164
1182
  "$ref": "#/$defs/RoleMap"
1165
1183
  },
1166
1184
  "outputMap": {
1167
- "$ref": "#/$defs/RoleMap"
1185
+ "allOf": [
1186
+ {
1187
+ "$ref": "#/$defs/RoleMap"
1188
+ },
1189
+ {
1190
+ "properties": {
1191
+ "ROLE-ErrorOutput": {
1192
+ "type": "object",
1193
+ "allOf": [
1194
+ {
1195
+ "$ref": "#/$defs/ResourceRoleValue"
1196
+ },
1197
+ {
1198
+ "properties": {
1199
+ "description": {
1200
+ "const": "Represents error outputs from job executions."
1201
+ },
1202
+ "name": {
1203
+ "const": "ErrorOutput"
1204
+ },
1205
+ "resourceTypeRef": {
1206
+ "const": "TYPE-Error"
1207
+ }
1208
+ },
1209
+ "required": [
1210
+ "resourceTypeRef",
1211
+ "name",
1212
+ "description"
1213
+ ]
1214
+ }
1215
+ ]
1216
+ }
1217
+ },
1218
+ "required": [
1219
+ "ROLE-ErrorOutput"
1220
+ ]
1221
+ }
1222
+ ]
1168
1223
  }
1169
1224
  },
1170
1225
  "required": [
@@ -99,7 +99,44 @@
99
99
  "$ref": "#/$defs/RoleMap"
100
100
  },
101
101
  "outputMap": {
102
- "$ref": "#/$defs/RoleMap"
102
+ "allOf": [
103
+ {
104
+ "$ref": "#/$defs/RoleMap"
105
+ },
106
+ {
107
+ "properties": {
108
+ "ROLE-ErrorOutput": {
109
+ "type": "object",
110
+ "allOf": [
111
+ {
112
+ "$ref": "#/$defs/ResourceRoleValue"
113
+ },
114
+ {
115
+ "properties": {
116
+ "description": {
117
+ "const": "Represents error outputs from job executions."
118
+ },
119
+ "name": {
120
+ "const": "ErrorOutput"
121
+ },
122
+ "resourceTypeRef": {
123
+ "const": "TYPE-Error"
124
+ }
125
+ },
126
+ "required": [
127
+ "resourceTypeRef",
128
+ "name",
129
+ "description"
130
+ ]
131
+ }
132
+ ]
133
+ }
134
+ },
135
+ "required": [
136
+ "ROLE-ErrorOutput"
137
+ ]
138
+ }
139
+ ]
103
140
  }
104
141
  },
105
142
  "required": [
@@ -1,5 +1,6 @@
1
1
  [
2
2
  "ResourceType",
3
+ "Error",
3
4
  "ResourceFormat",
4
5
  "ResourceMeta",
5
6
  "Job",
@@ -9,6 +9,7 @@ export type ResourceTypeGenesis = {
9
9
  "CreationContextWrapper": ResourceType;
10
10
  "Described": ResourceType;
11
11
  "Documented": ResourceType;
12
+ "Error": ResourceType;
12
13
  "Execution": ResourceType;
13
14
  "ExecutionIdentity": ResourceType;
14
15
  "ExtractionSchema": ResourceType;
@@ -74,6 +74,16 @@ export type ResourceRoleIdentity =
74
74
  */
75
75
  export type Documented =
76
76
  Named & Described;
77
+ /**
78
+ * This interface was referenced by `GenesisJson`'s JSON-Schema
79
+ * via the `definition` "Error".
80
+ */
81
+ export type Error =
82
+ {
83
+ } & Documented & {
84
+ details?: {
85
+ };
86
+ };
77
87
  /**
78
88
  * This interface was referenced by `GenesisJson`'s JSON-Schema
79
89
  * via the `definition` "ExtractionSchema".
@@ -466,7 +476,13 @@ export interface RolesWrapper {
466
476
  */
467
477
  export interface Roles {
468
478
  inputMap: RoleMap;
469
- outputMap: RoleMap;
479
+ outputMap: RoleMap & {
480
+ "ROLE-ErrorOutput": ResourceRoleValue & {
481
+ description: "Represents error outputs from job executions.";
482
+ name: "ErrorOutput";
483
+ resourceTypeRef: "TYPE-Error";
484
+ };
485
+ };
470
486
  }
471
487
  /**
472
488
  * This interface was referenced by `GenesisJson`'s JSON-Schema
@@ -606,7 +622,13 @@ export interface RolesWrapper {
606
622
  }
607
623
  export interface Roles {
608
624
  inputMap: RoleMap;
609
- outputMap: RoleMap;
625
+ outputMap: RoleMap & {
626
+ "ROLE-ErrorOutput": ResourceRoleValue & {
627
+ description: "Represents error outputs from job executions.";
628
+ name: "ErrorOutput";
629
+ resourceTypeRef: "TYPE-Error";
630
+ };
631
+ };
610
632
  }
611
633
  export type RoleMap = Record<ResourceRoleIdentity, ResourceRoleValue>;
612
634
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@toolproof-npm/schema",
3
- "version": "0.1.67",
3
+ "version": "0.1.68",
4
4
  "description": "JSON schemas and TypeScript types for ToolProof",
5
5
  "keywords": [
6
6
  "toolproof",