@claudexor/schema 3.9.8 → 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.
- package/dist/attachment.d.ts +6 -0
- package/dist/attachment.d.ts.map +1 -1
- package/dist/attachment.js +8 -0
- package/dist/attachment.js.map +1 -1
- package/dist/control-gc.d.ts +21 -0
- package/dist/control-gc.d.ts.map +1 -1
- package/dist/control-gc.js +12 -0
- package/dist/control-gc.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/model-operation.d.ts +2158 -0
- package/dist/model-operation.d.ts.map +1 -0
- package/dist/model-operation.js +230 -0
- package/dist/model-operation.js.map +1 -0
- package/generated/ControlGcReceipt.schema.json +23 -0
- package/generated/ControlGcRequest.schema.json +4 -0
- package/generated/ControlModelCatalogResponse.schema.json +137 -0
- package/generated/ControlModelOperationAckRequest.schema.json +19 -0
- package/generated/ControlModelOperationControlRequest.schema.json +27 -0
- package/generated/ControlModelOperationCreateRequest.schema.json +40 -0
- package/generated/ControlModelOperationDetail.schema.json +464 -0
- package/generated/ControlModelSourcesResponse.schema.json +44 -0
- package/generated/ControlResource.schema.json +5 -0
- package/generated/ControlUploadCreateRequest.schema.json +5 -0
- package/generated/ModelCallRequest.schema.json +316 -0
- package/generated/ModelCallResult.schema.json +419 -0
- 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
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@claudexor/schema",
|
|
3
|
-
"version": "3.
|
|
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.
|
|
23
|
+
"@claudexor/util": "3.10.0"
|
|
24
24
|
},
|
|
25
25
|
"repository": {
|
|
26
26
|
"type": "git",
|