@claudexor/schema 3.9.7 → 3.10.0

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 (76) hide show
  1. package/dist/attachment.d.ts +6 -0
  2. package/dist/attachment.d.ts.map +1 -1
  3. package/dist/attachment.js +8 -0
  4. package/dist/attachment.js.map +1 -1
  5. package/dist/control-gc.d.ts +21 -0
  6. package/dist/control-gc.d.ts.map +1 -1
  7. package/dist/control-gc.js +12 -0
  8. package/dist/control-gc.js.map +1 -1
  9. package/dist/control-operation-responses.d.ts +15 -0
  10. package/dist/control-operation-responses.d.ts.map +1 -1
  11. package/dist/control-run-detail.d.ts +43 -5
  12. package/dist/control-run-detail.d.ts.map +1 -1
  13. package/dist/control.d.ts +40 -0
  14. package/dist/control.d.ts.map +1 -1
  15. package/dist/control.js +8 -0
  16. package/dist/control.js.map +1 -1
  17. package/dist/decision.d.ts +15 -4
  18. package/dist/decision.d.ts.map +1 -1
  19. package/dist/decision.js +13 -9
  20. package/dist/decision.js.map +1 -1
  21. package/dist/index.d.ts +1 -0
  22. package/dist/index.d.ts.map +1 -1
  23. package/dist/index.js +1 -0
  24. package/dist/index.js.map +1 -1
  25. package/dist/mcp-run-result.d.ts +24 -0
  26. package/dist/mcp-run-result.d.ts.map +1 -1
  27. package/dist/model-operation.d.ts +2158 -0
  28. package/dist/model-operation.d.ts.map +1 -0
  29. package/dist/model-operation.js +230 -0
  30. package/dist/model-operation.js.map +1 -0
  31. package/dist/run-facts.d.ts +5 -0
  32. package/dist/run-facts.d.ts.map +1 -1
  33. package/dist/run-facts.js +3 -3
  34. package/dist/run-facts.js.map +1 -1
  35. package/dist/run-strategy.d.ts +17 -0
  36. package/dist/run-strategy.d.ts.map +1 -1
  37. package/dist/run-strategy.js +31 -0
  38. package/dist/run-strategy.js.map +1 -1
  39. package/dist/status-projection.d.ts.map +1 -1
  40. package/dist/status-projection.js +13 -1
  41. package/dist/status-projection.js.map +1 -1
  42. package/dist/surface-run-controls.d.ts.map +1 -1
  43. package/dist/surface-run-controls.js +3 -0
  44. package/dist/surface-run-controls.js.map +1 -1
  45. package/dist/task.d.ts +9 -0
  46. package/dist/task.d.ts.map +1 -1
  47. package/dist/task.js +4 -0
  48. package/dist/task.js.map +1 -1
  49. package/dist/telemetry.d.ts +7 -0
  50. package/dist/telemetry.d.ts.map +1 -1
  51. package/generated/ControlGcReceipt.schema.json +23 -0
  52. package/generated/ControlGcRequest.schema.json +4 -0
  53. package/generated/ControlModelCatalogResponse.schema.json +137 -0
  54. package/generated/ControlModelOperationAckRequest.schema.json +19 -0
  55. package/generated/ControlModelOperationControlRequest.schema.json +27 -0
  56. package/generated/ControlModelOperationCreateRequest.schema.json +40 -0
  57. package/generated/ControlModelOperationDetail.schema.json +464 -0
  58. package/generated/ControlModelSourcesResponse.schema.json +44 -0
  59. package/generated/ControlResource.schema.json +5 -0
  60. package/generated/ControlRunAgainDraft.schema.json +4 -0
  61. package/generated/ControlRunDetail.schema.json +10 -1
  62. package/generated/ControlRunListResponse.schema.json +8 -0
  63. package/generated/ControlRunStartRequest.schema.json +4 -0
  64. package/generated/ControlRunSummary.schema.json +8 -0
  65. package/generated/ControlThreadDetail.schema.json +4 -0
  66. package/generated/ControlThreadTurnRequest.schema.json +4 -0
  67. package/generated/ControlUploadCreateRequest.schema.json +5 -0
  68. package/generated/DecisionRecord.schema.json +6 -1
  69. package/generated/McpRunHandleResult.schema.json +4 -0
  70. package/generated/McpRunToolResult.schema.json +4 -0
  71. package/generated/ModelCallRequest.schema.json +316 -0
  72. package/generated/ModelCallResult.schema.json +419 -0
  73. package/generated/RunFacts.schema.json +4 -0
  74. package/generated/RunTelemetry.schema.json +4 -0
  75. package/generated/TaskContract.schema.json +4 -0
  76. package/package.json +2 -2
@@ -0,0 +1,419 @@
1
+ {
2
+ "$ref": "#/definitions/ModelCallResult",
3
+ "definitions": {
4
+ "ModelCallResult": {
5
+ "type": "object",
6
+ "properties": {
7
+ "outcome": {
8
+ "type": "string",
9
+ "enum": [
10
+ "completed",
11
+ "incomplete",
12
+ "failed",
13
+ "unknown"
14
+ ]
15
+ },
16
+ "message": {
17
+ "anyOf": [
18
+ {
19
+ "type": "object",
20
+ "properties": {
21
+ "role": {
22
+ "type": "string",
23
+ "enum": [
24
+ "system",
25
+ "developer",
26
+ "user",
27
+ "assistant",
28
+ "tool"
29
+ ]
30
+ },
31
+ "content": {
32
+ "anyOf": [
33
+ {
34
+ "anyOf": [
35
+ {
36
+ "type": "string"
37
+ },
38
+ {
39
+ "type": "array",
40
+ "items": {
41
+ "type": "object",
42
+ "additionalProperties": {}
43
+ }
44
+ }
45
+ ]
46
+ },
47
+ {
48
+ "type": "null"
49
+ }
50
+ ]
51
+ },
52
+ "name": {
53
+ "type": "string"
54
+ },
55
+ "tool_call_id": {
56
+ "type": "string",
57
+ "minLength": 1,
58
+ "description": "Non-empty identifier string."
59
+ },
60
+ "tool_calls": {
61
+ "type": "array",
62
+ "items": {
63
+ "type": "object",
64
+ "properties": {
65
+ "id": {
66
+ "$ref": "#/definitions/ModelCallResult/properties/message/anyOf/0/properties/tool_call_id"
67
+ },
68
+ "type": {
69
+ "type": "string",
70
+ "const": "function"
71
+ },
72
+ "function": {
73
+ "type": "object",
74
+ "properties": {
75
+ "name": {
76
+ "type": "string",
77
+ "minLength": 1,
78
+ "pattern": "\\S",
79
+ "description": "User-supplied string that must contain visible content, not just whitespace."
80
+ },
81
+ "arguments": {
82
+ "type": "string"
83
+ }
84
+ },
85
+ "required": [
86
+ "name",
87
+ "arguments"
88
+ ],
89
+ "additionalProperties": false
90
+ }
91
+ },
92
+ "required": [
93
+ "id",
94
+ "type",
95
+ "function"
96
+ ],
97
+ "additionalProperties": false
98
+ }
99
+ },
100
+ "nativeContinuation": {
101
+ "type": "object",
102
+ "properties": {
103
+ "route": {
104
+ "type": "object",
105
+ "properties": {
106
+ "source": {
107
+ "$ref": "#/definitions/ModelCallResult/properties/message/anyOf/0/properties/tool_call_id"
108
+ },
109
+ "credentialProfileId": {
110
+ "$ref": "#/definitions/ModelCallResult/properties/message/anyOf/0/properties/tool_call_id"
111
+ },
112
+ "accountFingerprint": {
113
+ "type": [
114
+ "string",
115
+ "null"
116
+ ]
117
+ },
118
+ "model": {
119
+ "type": [
120
+ "string",
121
+ "null"
122
+ ]
123
+ }
124
+ },
125
+ "required": [
126
+ "source",
127
+ "credentialProfileId",
128
+ "accountFingerprint",
129
+ "model"
130
+ ],
131
+ "additionalProperties": false,
132
+ "description": "Selected route at dispatch; a result records the actually observed model, or null."
133
+ },
134
+ "format": {
135
+ "$ref": "#/definitions/ModelCallResult/properties/message/anyOf/0/properties/tool_calls/items/properties/function/properties/name"
136
+ },
137
+ "payload": {}
138
+ },
139
+ "required": [
140
+ "route",
141
+ "format"
142
+ ],
143
+ "additionalProperties": false,
144
+ "description": "Complete provider-native assistant turn, bound to its account and model; replaces reconstruction on replay."
145
+ }
146
+ },
147
+ "required": [
148
+ "role",
149
+ "content"
150
+ ],
151
+ "additionalProperties": false,
152
+ "description": "Caller-owned conversation message. Text, content blocks, and tool arguments are not redacted or rewritten."
153
+ },
154
+ {
155
+ "type": "null"
156
+ }
157
+ ],
158
+ "description": "Caller-owned conversation message. Text, content blocks, and tool arguments are not redacted or rewritten."
159
+ },
160
+ "route": {
161
+ "$ref": "#/definitions/ModelCallResult/properties/message/anyOf/0/properties/nativeContinuation/properties/route"
162
+ },
163
+ "usage": {
164
+ "type": "object",
165
+ "properties": {
166
+ "input_tokens": {
167
+ "anyOf": [
168
+ {
169
+ "type": "integer",
170
+ "minimum": 0
171
+ },
172
+ {
173
+ "type": "null"
174
+ }
175
+ ],
176
+ "default": null
177
+ },
178
+ "output_tokens": {
179
+ "anyOf": [
180
+ {
181
+ "type": "integer",
182
+ "minimum": 0
183
+ },
184
+ {
185
+ "type": "null"
186
+ }
187
+ ],
188
+ "default": null
189
+ },
190
+ "cached_input_tokens": {
191
+ "anyOf": [
192
+ {
193
+ "type": "integer",
194
+ "minimum": 0
195
+ },
196
+ {
197
+ "type": "null"
198
+ }
199
+ ],
200
+ "default": null
201
+ },
202
+ "cache_write_tokens": {
203
+ "anyOf": [
204
+ {
205
+ "type": "integer",
206
+ "minimum": 0
207
+ },
208
+ {
209
+ "type": "null"
210
+ }
211
+ ],
212
+ "default": null
213
+ },
214
+ "reasoning_tokens": {
215
+ "anyOf": [
216
+ {
217
+ "type": "integer",
218
+ "minimum": 0
219
+ },
220
+ {
221
+ "type": "null"
222
+ }
223
+ ],
224
+ "default": null
225
+ }
226
+ },
227
+ "additionalProperties": false,
228
+ "description": "Provider-reported counters for one generation; missing counters remain null."
229
+ },
230
+ "cost": {
231
+ "type": "object",
232
+ "properties": {
233
+ "knowledge": {
234
+ "type": "string",
235
+ "enum": [
236
+ "exact",
237
+ "estimated",
238
+ "unknown"
239
+ ],
240
+ "description": "Quality of incremental-cash cost evidence for an operation."
241
+ },
242
+ "billing": {
243
+ "type": "string",
244
+ "enum": [
245
+ "proven_zero",
246
+ "subscription_entitlement",
247
+ "metered",
248
+ "unknown"
249
+ ],
250
+ "description": "What is actually known about incremental billing; a native credential route alone never proves entitlement or zero cost."
251
+ },
252
+ "source": {
253
+ "type": "string",
254
+ "minLength": 1
255
+ },
256
+ "provenance": {
257
+ "type": "array",
258
+ "items": {
259
+ "type": "string",
260
+ "minLength": 1
261
+ },
262
+ "minItems": 1
263
+ },
264
+ "estimatedUsd": {
265
+ "anyOf": [
266
+ {
267
+ "type": "number",
268
+ "minimum": 0
269
+ },
270
+ {
271
+ "type": "null"
272
+ }
273
+ ],
274
+ "default": null
275
+ },
276
+ "cashUsd": {
277
+ "anyOf": [
278
+ {
279
+ "type": "number",
280
+ "minimum": 0
281
+ },
282
+ {
283
+ "type": "null"
284
+ }
285
+ ],
286
+ "default": null
287
+ },
288
+ "valuationUsd": {
289
+ "anyOf": [
290
+ {
291
+ "type": "number",
292
+ "minimum": 0
293
+ },
294
+ {
295
+ "type": "null"
296
+ }
297
+ ],
298
+ "default": null
299
+ },
300
+ "valuationKnowledge": {
301
+ "$ref": "#/definitions/ModelCallResult/properties/cost/properties/knowledge",
302
+ "default": "unknown",
303
+ "description": "Quality of incremental-cash cost evidence for an operation."
304
+ }
305
+ },
306
+ "required": [
307
+ "knowledge",
308
+ "billing",
309
+ "source",
310
+ "provenance"
311
+ ],
312
+ "additionalProperties": false,
313
+ "description": "Incremental cash and token valuation are independent; subscription credentials alone never invent a cash receipt."
314
+ },
315
+ "appliedOptions": {
316
+ "type": "object",
317
+ "properties": {
318
+ "reasoningEffort": {
319
+ "$ref": "#/definitions/ModelCallResult/properties/message/anyOf/0/properties/tool_calls/items/properties/function/properties/name",
320
+ "description": "User-supplied string that must contain visible content, not just whitespace."
321
+ },
322
+ "serviceTier": {
323
+ "$ref": "#/definitions/ModelCallResult/properties/message/anyOf/0/properties/tool_calls/items/properties/function/properties/name",
324
+ "description": "User-supplied string that must contain visible content, not just whitespace."
325
+ },
326
+ "parallelToolCalls": {
327
+ "type": "boolean"
328
+ },
329
+ "cacheKey": {
330
+ "$ref": "#/definitions/ModelCallResult/properties/message/anyOf/0/properties/tool_calls/items/properties/function/properties/name",
331
+ "description": "User-supplied string that must contain visible content, not just whitespace."
332
+ },
333
+ "maxOutputTokens": {
334
+ "type": "integer",
335
+ "exclusiveMinimum": 0
336
+ },
337
+ "temperature": {
338
+ "type": "number"
339
+ }
340
+ },
341
+ "additionalProperties": false,
342
+ "description": "Generation options only, not a caller's context/output reserve; unsupported explicit options refuse before inference."
343
+ },
344
+ "problem": {
345
+ "anyOf": [
346
+ {
347
+ "type": "object",
348
+ "properties": {
349
+ "code": {
350
+ "type": "string",
351
+ "minLength": 1
352
+ },
353
+ "message": {
354
+ "type": "string"
355
+ },
356
+ "retryable": {
357
+ "type": "boolean"
358
+ },
359
+ "fieldErrors": {
360
+ "type": "object",
361
+ "additionalProperties": {
362
+ "type": "array",
363
+ "items": {
364
+ "type": "string"
365
+ }
366
+ },
367
+ "default": {}
368
+ },
369
+ "requiredActions": {
370
+ "type": "array",
371
+ "items": {
372
+ "type": "string",
373
+ "minLength": 1
374
+ },
375
+ "default": []
376
+ },
377
+ "evidenceRefs": {
378
+ "type": "array",
379
+ "items": {
380
+ "type": "string",
381
+ "minLength": 1
382
+ },
383
+ "default": []
384
+ },
385
+ "context": {
386
+ "type": "object",
387
+ "additionalProperties": {},
388
+ "default": {},
389
+ "description": "Typed route-specific recovery context; never a duplicate error message."
390
+ }
391
+ },
392
+ "required": [
393
+ "code",
394
+ "message",
395
+ "retryable"
396
+ ],
397
+ "additionalProperties": false
398
+ },
399
+ {
400
+ "type": "null"
401
+ }
402
+ ]
403
+ }
404
+ },
405
+ "required": [
406
+ "outcome",
407
+ "message",
408
+ "route",
409
+ "usage",
410
+ "cost",
411
+ "appliedOptions",
412
+ "problem"
413
+ ],
414
+ "additionalProperties": false,
415
+ "description": "One provider outcome; completed means a terminal response, never an EOF or a partial tool argument."
416
+ }
417
+ },
418
+ "$schema": "http://json-schema.org/draft-07/schema#"
419
+ }
@@ -64,6 +64,10 @@
64
64
  "description": "Review axis: approved (clean cross-family verified review), blocked (open accepted findings), or not_run.",
65
65
  "default": "not_run"
66
66
  },
67
+ "review_requested": {
68
+ "type": "boolean",
69
+ "description": "Frozen model-review intent. False permits an honestly unreviewed result; absent historical records retain the review requirement."
70
+ },
67
71
  "reason": {
68
72
  "anyOf": [
69
73
  {
@@ -1174,6 +1174,10 @@
1174
1174
  "description": "Review axis: approved (clean cross-family verified review), blocked (open accepted findings), or not_run.",
1175
1175
  "default": "not_run"
1176
1176
  },
1177
+ "review_requested": {
1178
+ "type": "boolean",
1179
+ "description": "Frozen model-review intent. False permits an honestly unreviewed result; absent historical records retain the review requirement."
1180
+ },
1177
1181
  "reason": {
1178
1182
  "anyOf": [
1179
1183
  {
@@ -70,6 +70,10 @@
70
70
  "additionalProperties": false,
71
71
  "description": "Canonical run mode for this task."
72
72
  },
73
+ "review_requested": {
74
+ "type": "boolean",
75
+ "description": "Resolved model-review intent frozen for this run; absent on historical contracts, which retain review-required semantics. This is intent, not a review verdict."
76
+ },
73
77
  "delegation_requested": {
74
78
  "type": "boolean",
75
79
  "default": false,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@claudexor/schema",
3
- "version": "3.9.7",
3
+ "version": "3.10.0",
4
4
  "license": "MIT",
5
5
  "description": "Single source of truth for all Claudexor data shapes (Zod + generated JSON Schema).",
6
6
  "type": "module",
@@ -20,7 +20,7 @@
20
20
  "dependencies": {
21
21
  "zod": "^4.4.3",
22
22
  "zod-to-json-schema": "^3.24.1",
23
- "@claudexor/util": "3.9.7"
23
+ "@claudexor/util": "3.10.0"
24
24
  },
25
25
  "repository": {
26
26
  "type": "git",