@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 @@
|
|
|
1
|
+
{"version":3,"file":"model-operation.d.ts","sourceRoot":"","sources":["../src/model-operation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAS3B,eAAO,MAAM,eAAe;;;;;;;;;;;;EAOkD,CAAC;AAC/E,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC;AAE9D,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;IAKqD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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAa7B,CAAC;AACZ,MAAM,MAAM,2BAA2B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC"}
|
|
@@ -0,0 +1,230 @@
|
|
|
1
|
+
import { z } from "zod/v3";
|
|
2
|
+
import { CostEvidence } from "./budget.js";
|
|
3
|
+
import { CostKnowledge } from "./auth.js";
|
|
4
|
+
import { CANCEL_REASON_CODES } from "./cancel-reason.js";
|
|
5
|
+
import { Id, IsoTimestamp, NonBlankString } from "./primitives.js";
|
|
6
|
+
import { ControlProblem } from "./problem.js";
|
|
7
|
+
import { RunLifecycle } from "./status-projection.js";
|
|
8
|
+
import { TokenUsage } from "./telemetry.js";
|
|
9
|
+
export const ModelPayloadRef = z
|
|
10
|
+
.object({
|
|
11
|
+
resourceId: Id,
|
|
12
|
+
sha256: z.string().regex(/^sha256:[a-f0-9]{64}$/),
|
|
13
|
+
sizeBytes: z.number().int().nonnegative(),
|
|
14
|
+
})
|
|
15
|
+
.strict()
|
|
16
|
+
.describe("Digest-bound model-purpose resource; never an Agent attachment.");
|
|
17
|
+
export const ModelAccountChoice = z
|
|
18
|
+
.discriminatedUnion("mode", [
|
|
19
|
+
z.object({ mode: z.literal("auto"), preferredProfileId: Id.optional() }).strict(),
|
|
20
|
+
z.object({ mode: z.literal("pin"), profileId: Id }).strict(),
|
|
21
|
+
])
|
|
22
|
+
.describe("Auto keeps a usable prior account; pin never selects another account.");
|
|
23
|
+
export const ModelRoute = z
|
|
24
|
+
.object({
|
|
25
|
+
source: Id,
|
|
26
|
+
credentialProfileId: Id,
|
|
27
|
+
accountFingerprint: z.string().nullable(),
|
|
28
|
+
model: z.string().nullable(),
|
|
29
|
+
})
|
|
30
|
+
.strict()
|
|
31
|
+
.describe("Selected route at dispatch; a result records the actually observed model, or null.");
|
|
32
|
+
export const ModelNativeContinuation = z
|
|
33
|
+
.object({
|
|
34
|
+
route: ModelRoute,
|
|
35
|
+
format: NonBlankString,
|
|
36
|
+
payload: z.unknown(),
|
|
37
|
+
})
|
|
38
|
+
.strict()
|
|
39
|
+
.describe("Complete provider-native assistant turn, bound to its account and model; replaces reconstruction on replay.");
|
|
40
|
+
export const ModelToolCall = z
|
|
41
|
+
.object({
|
|
42
|
+
id: Id,
|
|
43
|
+
type: z.literal("function"),
|
|
44
|
+
function: z.object({ name: NonBlankString, arguments: z.string() }).strict(),
|
|
45
|
+
})
|
|
46
|
+
.strict();
|
|
47
|
+
export const ModelMessage = z
|
|
48
|
+
.object({
|
|
49
|
+
role: z.enum(["system", "developer", "user", "assistant", "tool"]),
|
|
50
|
+
content: z.union([z.string(), z.array(z.record(z.string(), z.unknown()))]).nullable(),
|
|
51
|
+
name: z.string().optional(),
|
|
52
|
+
tool_call_id: Id.optional(),
|
|
53
|
+
tool_calls: z.array(ModelToolCall).optional(),
|
|
54
|
+
nativeContinuation: ModelNativeContinuation.optional(),
|
|
55
|
+
})
|
|
56
|
+
.strict()
|
|
57
|
+
.describe("Caller-owned conversation message. Text, content blocks, and tool arguments are not redacted or rewritten.");
|
|
58
|
+
export const ModelTool = z
|
|
59
|
+
.object({
|
|
60
|
+
type: z.literal("function"),
|
|
61
|
+
function: z
|
|
62
|
+
.object({
|
|
63
|
+
name: NonBlankString,
|
|
64
|
+
description: z.string().optional(),
|
|
65
|
+
parameters: z.record(z.string(), z.unknown()),
|
|
66
|
+
strict: z.boolean().optional(),
|
|
67
|
+
})
|
|
68
|
+
.strict(),
|
|
69
|
+
})
|
|
70
|
+
.strict()
|
|
71
|
+
.describe("A caller-executed function; the model transport never executes it or rewrites its JSON schema.");
|
|
72
|
+
export const ModelToolChoice = z.union([
|
|
73
|
+
z.enum(["auto", "none", "required"]),
|
|
74
|
+
z
|
|
75
|
+
.object({ type: z.literal("function"), function: z.object({ name: NonBlankString }).strict() })
|
|
76
|
+
.strict(),
|
|
77
|
+
]);
|
|
78
|
+
export const ModelCallOptions = z
|
|
79
|
+
.object({
|
|
80
|
+
reasoningEffort: NonBlankString.optional(),
|
|
81
|
+
serviceTier: NonBlankString.optional(),
|
|
82
|
+
parallelToolCalls: z.boolean().optional(),
|
|
83
|
+
cacheKey: NonBlankString.optional(),
|
|
84
|
+
maxOutputTokens: z.number().int().positive().optional(),
|
|
85
|
+
temperature: z.number().finite().optional(),
|
|
86
|
+
})
|
|
87
|
+
.strict()
|
|
88
|
+
.describe("Generation options only, not a caller's context/output reserve; unsupported explicit options refuse before inference.");
|
|
89
|
+
export const ModelCallRequest = z
|
|
90
|
+
.object({
|
|
91
|
+
source: Id,
|
|
92
|
+
model: NonBlankString,
|
|
93
|
+
account: ModelAccountChoice,
|
|
94
|
+
messages: z.array(ModelMessage).min(1),
|
|
95
|
+
tools: z.array(ModelTool).default([]),
|
|
96
|
+
toolChoice: ModelToolChoice.default("auto"),
|
|
97
|
+
options: ModelCallOptions.default({}),
|
|
98
|
+
})
|
|
99
|
+
.strict()
|
|
100
|
+
.describe("One model generation request, stored only in a model-purpose payload outside the command journal.");
|
|
101
|
+
export const ModelUsage = TokenUsage.extend({
|
|
102
|
+
cache_write_tokens: z.number().int().nonnegative().nullable().default(null),
|
|
103
|
+
reasoning_tokens: z.number().int().nonnegative().nullable().default(null),
|
|
104
|
+
}).describe("Provider-reported counters for one generation; missing counters remain null.");
|
|
105
|
+
export const ModelCostEvidence = CostEvidence.extend({
|
|
106
|
+
cashUsd: z.number().nonnegative().nullable().default(null),
|
|
107
|
+
valuationUsd: z.number().nonnegative().nullable().default(null),
|
|
108
|
+
valuationKnowledge: CostKnowledge.default("unknown"),
|
|
109
|
+
}).describe("Incremental cash and token valuation are independent; subscription credentials alone never invent a cash receipt.");
|
|
110
|
+
export const ModelCallResult = z
|
|
111
|
+
.object({
|
|
112
|
+
outcome: z.enum(["completed", "incomplete", "failed", "unknown"]),
|
|
113
|
+
message: ModelMessage.nullable(),
|
|
114
|
+
route: ModelRoute,
|
|
115
|
+
usage: ModelUsage,
|
|
116
|
+
cost: ModelCostEvidence,
|
|
117
|
+
appliedOptions: ModelCallOptions,
|
|
118
|
+
problem: ControlProblem.nullable(),
|
|
119
|
+
})
|
|
120
|
+
.strict()
|
|
121
|
+
.describe("One provider outcome; completed means a terminal response, never an EOF or a partial tool argument.");
|
|
122
|
+
export const ModelCatalogEntry = z
|
|
123
|
+
.object({
|
|
124
|
+
id: NonBlankString,
|
|
125
|
+
label: z.string().nullable(),
|
|
126
|
+
isDefault: z.boolean(),
|
|
127
|
+
contextWindow: z.number().int().positive().nullable(),
|
|
128
|
+
maxContextWindow: z.number().int().positive().nullable(),
|
|
129
|
+
maxOutputTokens: z.number().int().positive().nullable(),
|
|
130
|
+
inputModalities: z.array(z.string()),
|
|
131
|
+
reasoningEfforts: z.array(z.string()),
|
|
132
|
+
defaultReasoningEffort: z.string().nullable(),
|
|
133
|
+
supportedOptions: z.array(z.string()),
|
|
134
|
+
})
|
|
135
|
+
.strict()
|
|
136
|
+
.describe("Model metadata from the selected raw transport; CLI compaction and usable-window policies are not capacity.");
|
|
137
|
+
export const ControlModelSourcesResponse = z
|
|
138
|
+
.object({
|
|
139
|
+
sources: z.array(z
|
|
140
|
+
.object({
|
|
141
|
+
id: Id,
|
|
142
|
+
label: NonBlankString,
|
|
143
|
+
credentialHarness: Id,
|
|
144
|
+
})
|
|
145
|
+
.strict()),
|
|
146
|
+
})
|
|
147
|
+
.strict()
|
|
148
|
+
.describe("Available raw model transports, distinct from agent harness inventory.");
|
|
149
|
+
export const ControlModelCatalogResponse = z
|
|
150
|
+
.object({
|
|
151
|
+
source: Id,
|
|
152
|
+
credentialProfileId: Id,
|
|
153
|
+
accountFingerprint: z.string().nullable(),
|
|
154
|
+
observedAt: IsoTimestamp,
|
|
155
|
+
provenance: NonBlankString,
|
|
156
|
+
models: z.array(ModelCatalogEntry),
|
|
157
|
+
})
|
|
158
|
+
.strict()
|
|
159
|
+
.describe("Exact-profile model discovery, not a global CLI alias list or an inference entitlement guarantee.");
|
|
160
|
+
export const ModelDispatch = z
|
|
161
|
+
.object({
|
|
162
|
+
state: z.enum(["not_started", "started", "response_received", "unknown"]),
|
|
163
|
+
startedAt: IsoTimestamp.nullable(),
|
|
164
|
+
route: ModelRoute.nullable(),
|
|
165
|
+
})
|
|
166
|
+
.strict()
|
|
167
|
+
.describe("Started means the physical send may have begun, not proof the upstream accepted it.");
|
|
168
|
+
export const ModelResponseCustody = z
|
|
169
|
+
.discriminatedUnion("state", [
|
|
170
|
+
z.object({ state: z.literal("absent") }).strict(),
|
|
171
|
+
z
|
|
172
|
+
.object({
|
|
173
|
+
state: z.literal("ready"),
|
|
174
|
+
ref: ModelPayloadRef,
|
|
175
|
+
readyAt: IsoTimestamp,
|
|
176
|
+
expiresAt: IsoTimestamp,
|
|
177
|
+
})
|
|
178
|
+
.strict(),
|
|
179
|
+
z
|
|
180
|
+
.object({ state: z.literal("acknowledged"), ref: ModelPayloadRef, releasedAt: IsoTimestamp })
|
|
181
|
+
.strict(),
|
|
182
|
+
z
|
|
183
|
+
.object({ state: z.literal("expired"), ref: ModelPayloadRef, releasedAt: IsoTimestamp })
|
|
184
|
+
.strict(),
|
|
185
|
+
])
|
|
186
|
+
.describe("Result GET does not acknowledge delivery. Acknowledged/expired bytes never cause another generation.");
|
|
187
|
+
export const ModelOperationParams = z
|
|
188
|
+
.object({ kind: z.literal("model"), request: ModelPayloadRef })
|
|
189
|
+
.strict();
|
|
190
|
+
/** Command-kind discrimination only; execution validates the complete params.
|
|
191
|
+
* History scans need the kind, not a new Zod parse of every retained receipt. */
|
|
192
|
+
export function isModelOperation(params) {
|
|
193
|
+
return (typeof params === "object" && params !== null && "kind" in params && params.kind === "model");
|
|
194
|
+
}
|
|
195
|
+
export const ModelOperationReceipt = z
|
|
196
|
+
.object({
|
|
197
|
+
lifecycle: RunLifecycle.exclude(["queued", "running"]),
|
|
198
|
+
dispatch: ModelDispatch,
|
|
199
|
+
response: ModelResponseCustody,
|
|
200
|
+
usage: ModelUsage,
|
|
201
|
+
cost: ModelCostEvidence.nullable(),
|
|
202
|
+
problem: ControlProblem.nullable(),
|
|
203
|
+
})
|
|
204
|
+
.strict()
|
|
205
|
+
.describe("Compact command-owned terminal receipt; request/response bodies never ride journal updates.");
|
|
206
|
+
export const ControlModelOperationCreateRequest = z.object({ request: ModelPayloadRef }).strict();
|
|
207
|
+
export const ControlModelOperationAckRequest = z
|
|
208
|
+
.object({ sha256: z.string().regex(/^sha256:[a-f0-9]{64}$/) })
|
|
209
|
+
.strict();
|
|
210
|
+
export const ControlModelOperationControlRequest = z
|
|
211
|
+
.object({
|
|
212
|
+
action: z.literal("cancel"),
|
|
213
|
+
reasonCode: z.enum(CANCEL_REASON_CODES).optional(),
|
|
214
|
+
})
|
|
215
|
+
.strict();
|
|
216
|
+
export const ControlModelOperationDetail = z
|
|
217
|
+
.object({
|
|
218
|
+
id: Id,
|
|
219
|
+
state: RunLifecycle,
|
|
220
|
+
createdAt: IsoTimestamp,
|
|
221
|
+
startedAt: IsoTimestamp.nullable(),
|
|
222
|
+
finishedAt: IsoTimestamp.nullable(),
|
|
223
|
+
dispatch: ModelDispatch,
|
|
224
|
+
response: ModelResponseCustody,
|
|
225
|
+
usage: ModelUsage,
|
|
226
|
+
cost: ModelCostEvidence.nullable(),
|
|
227
|
+
problem: ControlProblem.nullable(),
|
|
228
|
+
})
|
|
229
|
+
.strict();
|
|
230
|
+
//# sourceMappingURL=model-operation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"model-operation.js","sourceRoot":"","sources":["../src/model-operation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM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AAU;IACjB,IAAI,EAAE,iBAAiB,CAAC,QAAQ,EAAE;IAClC,OAAO,EAAE,cAAc,CAAC,QAAQ,EAAE;CACnC,CAAC;KACD,MAAM,EAAE,CAAC"}
|
|
@@ -158,6 +158,29 @@
|
|
|
158
158
|
"type": "string"
|
|
159
159
|
},
|
|
160
160
|
"description": "Names of top-level entries in the Claudexor-owned data root that the engine does not own and will never touch (advisory only — nothing here is ever deleted). The full sorted list. Present ONLY when the request opted in via data_root_report; ABSENT (not empty) when the request did not opt in, the scan failed, or the serving daemon predates the feature; a scan failure is disclosed in errors instead."
|
|
161
|
+
},
|
|
162
|
+
"model_payloads": {
|
|
163
|
+
"type": "object",
|
|
164
|
+
"properties": {
|
|
165
|
+
"released": {
|
|
166
|
+
"type": "array",
|
|
167
|
+
"items": {
|
|
168
|
+
"type": "string"
|
|
169
|
+
}
|
|
170
|
+
},
|
|
171
|
+
"errors": {
|
|
172
|
+
"type": "array",
|
|
173
|
+
"items": {
|
|
174
|
+
"type": "string"
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
},
|
|
178
|
+
"required": [
|
|
179
|
+
"released",
|
|
180
|
+
"errors"
|
|
181
|
+
],
|
|
182
|
+
"additionalProperties": false,
|
|
183
|
+
"description": "Model resource identifiers released (or would be under dry_run), plus cleanup failures; present only when model_payload_report was requested."
|
|
161
184
|
}
|
|
162
185
|
},
|
|
163
186
|
"required": [
|
|
@@ -9,6 +9,10 @@
|
|
|
9
9
|
"default": false,
|
|
10
10
|
"description": "Report what WOULD be deleted without touching disk."
|
|
11
11
|
},
|
|
12
|
+
"model_payload_report": {
|
|
13
|
+
"type": "boolean",
|
|
14
|
+
"description": "Include exact model-purpose resource cleanup outcomes. Cleanup itself always runs; opt-in keeps older strict receipt readers compatible."
|
|
15
|
+
},
|
|
12
16
|
"data_root_report": {
|
|
13
17
|
"type": "boolean",
|
|
14
18
|
"description": "Opt in to the advisory data-root scan: when true, the receipt carries data_root_unrecognized. Capability negotiation for engine-version skew — a client omits this unless the serving daemon is the SAME engine version, so an older daemon never sees the unknown request key and an older client never receives the unknown receipt key."
|
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$ref": "#/definitions/ControlModelCatalogResponse",
|
|
3
|
+
"definitions": {
|
|
4
|
+
"ControlModelCatalogResponse": {
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"source": {
|
|
8
|
+
"type": "string",
|
|
9
|
+
"minLength": 1,
|
|
10
|
+
"description": "Non-empty identifier string."
|
|
11
|
+
},
|
|
12
|
+
"credentialProfileId": {
|
|
13
|
+
"$ref": "#/definitions/ControlModelCatalogResponse/properties/source"
|
|
14
|
+
},
|
|
15
|
+
"accountFingerprint": {
|
|
16
|
+
"type": [
|
|
17
|
+
"string",
|
|
18
|
+
"null"
|
|
19
|
+
]
|
|
20
|
+
},
|
|
21
|
+
"observedAt": {
|
|
22
|
+
"type": "string",
|
|
23
|
+
"minLength": 1,
|
|
24
|
+
"description": "ISO-8601 timestamp string."
|
|
25
|
+
},
|
|
26
|
+
"provenance": {
|
|
27
|
+
"type": "string",
|
|
28
|
+
"minLength": 1,
|
|
29
|
+
"pattern": "\\S",
|
|
30
|
+
"description": "User-supplied string that must contain visible content, not just whitespace."
|
|
31
|
+
},
|
|
32
|
+
"models": {
|
|
33
|
+
"type": "array",
|
|
34
|
+
"items": {
|
|
35
|
+
"type": "object",
|
|
36
|
+
"properties": {
|
|
37
|
+
"id": {
|
|
38
|
+
"$ref": "#/definitions/ControlModelCatalogResponse/properties/provenance"
|
|
39
|
+
},
|
|
40
|
+
"label": {
|
|
41
|
+
"type": [
|
|
42
|
+
"string",
|
|
43
|
+
"null"
|
|
44
|
+
]
|
|
45
|
+
},
|
|
46
|
+
"isDefault": {
|
|
47
|
+
"type": "boolean"
|
|
48
|
+
},
|
|
49
|
+
"contextWindow": {
|
|
50
|
+
"anyOf": [
|
|
51
|
+
{
|
|
52
|
+
"type": "integer",
|
|
53
|
+
"exclusiveMinimum": 0
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
"type": "null"
|
|
57
|
+
}
|
|
58
|
+
]
|
|
59
|
+
},
|
|
60
|
+
"maxContextWindow": {
|
|
61
|
+
"anyOf": [
|
|
62
|
+
{
|
|
63
|
+
"type": "integer",
|
|
64
|
+
"exclusiveMinimum": 0
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
"type": "null"
|
|
68
|
+
}
|
|
69
|
+
]
|
|
70
|
+
},
|
|
71
|
+
"maxOutputTokens": {
|
|
72
|
+
"anyOf": [
|
|
73
|
+
{
|
|
74
|
+
"type": "integer",
|
|
75
|
+
"exclusiveMinimum": 0
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
"type": "null"
|
|
79
|
+
}
|
|
80
|
+
]
|
|
81
|
+
},
|
|
82
|
+
"inputModalities": {
|
|
83
|
+
"type": "array",
|
|
84
|
+
"items": {
|
|
85
|
+
"type": "string"
|
|
86
|
+
}
|
|
87
|
+
},
|
|
88
|
+
"reasoningEfforts": {
|
|
89
|
+
"type": "array",
|
|
90
|
+
"items": {
|
|
91
|
+
"type": "string"
|
|
92
|
+
}
|
|
93
|
+
},
|
|
94
|
+
"defaultReasoningEffort": {
|
|
95
|
+
"type": [
|
|
96
|
+
"string",
|
|
97
|
+
"null"
|
|
98
|
+
]
|
|
99
|
+
},
|
|
100
|
+
"supportedOptions": {
|
|
101
|
+
"type": "array",
|
|
102
|
+
"items": {
|
|
103
|
+
"type": "string"
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
},
|
|
107
|
+
"required": [
|
|
108
|
+
"id",
|
|
109
|
+
"label",
|
|
110
|
+
"isDefault",
|
|
111
|
+
"contextWindow",
|
|
112
|
+
"maxContextWindow",
|
|
113
|
+
"maxOutputTokens",
|
|
114
|
+
"inputModalities",
|
|
115
|
+
"reasoningEfforts",
|
|
116
|
+
"defaultReasoningEffort",
|
|
117
|
+
"supportedOptions"
|
|
118
|
+
],
|
|
119
|
+
"additionalProperties": false,
|
|
120
|
+
"description": "Model metadata from the selected raw transport; CLI compaction and usable-window policies are not capacity."
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
},
|
|
124
|
+
"required": [
|
|
125
|
+
"source",
|
|
126
|
+
"credentialProfileId",
|
|
127
|
+
"accountFingerprint",
|
|
128
|
+
"observedAt",
|
|
129
|
+
"provenance",
|
|
130
|
+
"models"
|
|
131
|
+
],
|
|
132
|
+
"additionalProperties": false,
|
|
133
|
+
"description": "Exact-profile model discovery, not a global CLI alias list or an inference entitlement guarantee."
|
|
134
|
+
}
|
|
135
|
+
},
|
|
136
|
+
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
137
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$ref": "#/definitions/ControlModelOperationAckRequest",
|
|
3
|
+
"definitions": {
|
|
4
|
+
"ControlModelOperationAckRequest": {
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"sha256": {
|
|
8
|
+
"type": "string",
|
|
9
|
+
"pattern": "^sha256:[a-f0-9]{64}$"
|
|
10
|
+
}
|
|
11
|
+
},
|
|
12
|
+
"required": [
|
|
13
|
+
"sha256"
|
|
14
|
+
],
|
|
15
|
+
"additionalProperties": false
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
19
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$ref": "#/definitions/ControlModelOperationControlRequest",
|
|
3
|
+
"definitions": {
|
|
4
|
+
"ControlModelOperationControlRequest": {
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"action": {
|
|
8
|
+
"type": "string",
|
|
9
|
+
"const": "cancel"
|
|
10
|
+
},
|
|
11
|
+
"reasonCode": {
|
|
12
|
+
"type": "string",
|
|
13
|
+
"enum": [
|
|
14
|
+
"user_cancelled",
|
|
15
|
+
"host_cancelled",
|
|
16
|
+
"owner_task_gone"
|
|
17
|
+
]
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
"required": [
|
|
21
|
+
"action"
|
|
22
|
+
],
|
|
23
|
+
"additionalProperties": false
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
27
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$ref": "#/definitions/ControlModelOperationCreateRequest",
|
|
3
|
+
"definitions": {
|
|
4
|
+
"ControlModelOperationCreateRequest": {
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"request": {
|
|
8
|
+
"type": "object",
|
|
9
|
+
"properties": {
|
|
10
|
+
"resourceId": {
|
|
11
|
+
"type": "string",
|
|
12
|
+
"minLength": 1,
|
|
13
|
+
"description": "Non-empty identifier string."
|
|
14
|
+
},
|
|
15
|
+
"sha256": {
|
|
16
|
+
"type": "string",
|
|
17
|
+
"pattern": "^sha256:[a-f0-9]{64}$"
|
|
18
|
+
},
|
|
19
|
+
"sizeBytes": {
|
|
20
|
+
"type": "integer",
|
|
21
|
+
"minimum": 0
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
"required": [
|
|
25
|
+
"resourceId",
|
|
26
|
+
"sha256",
|
|
27
|
+
"sizeBytes"
|
|
28
|
+
],
|
|
29
|
+
"additionalProperties": false,
|
|
30
|
+
"description": "Digest-bound model-purpose resource; never an Agent attachment."
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
"required": [
|
|
34
|
+
"request"
|
|
35
|
+
],
|
|
36
|
+
"additionalProperties": false
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
40
|
+
}
|