@claudexor/schema 4.7.0 → 4.8.1
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/account-resources.d.ts +37 -37
- package/dist/account-routing-evidence.d.ts +14 -14
- package/dist/attachment.d.ts +178 -0
- package/dist/attachment.d.ts.map +1 -1
- package/dist/attachment.js +46 -0
- package/dist/attachment.js.map +1 -1
- package/dist/captured-run-start.d.ts +1105 -0
- package/dist/captured-run-start.d.ts.map +1 -0
- package/dist/captured-run-start.js +41 -0
- package/dist/captured-run-start.js.map +1 -0
- package/dist/command-summary.d.ts +1 -1
- package/dist/command-summary.d.ts.map +1 -1
- package/dist/command-summary.js +1 -0
- package/dist/command-summary.js.map +1 -1
- package/dist/control-harness-models.js +1 -1
- package/dist/control-harness-models.js.map +1 -1
- package/dist/control-operation-responses.d.ts +201 -9
- package/dist/control-operation-responses.d.ts.map +1 -1
- package/dist/control-operation-responses.js +7 -1
- package/dist/control-operation-responses.js.map +1 -1
- package/dist/control-run-detail.d.ts +277 -19
- package/dist/control-run-detail.d.ts.map +1 -1
- package/dist/control-run-detail.js +2 -0
- package/dist/control-run-detail.js.map +1 -1
- package/dist/control-run-failure.d.ts +29 -4
- package/dist/control-run-failure.d.ts.map +1 -1
- package/dist/control-run-failure.js +3 -0
- package/dist/control-run-failure.js.map +1 -1
- package/dist/control-run-retry.d.ts +31 -0
- package/dist/control-run-retry.d.ts.map +1 -1
- package/dist/control-run-retry.js +12 -1
- package/dist/control-run-retry.js.map +1 -1
- package/dist/control.d.ts +69 -5
- package/dist/control.d.ts.map +1 -1
- package/dist/control.js +3 -7
- package/dist/control.js.map +1 -1
- package/dist/credential-profile-snapshot.d.ts +28 -28
- package/dist/credential-profile.d.ts +1 -1
- package/dist/credential-profile.js +2 -2
- package/dist/credential-profile.js.map +1 -1
- package/dist/credential-store.d.ts +3 -2
- package/dist/credential-store.d.ts.map +1 -1
- package/dist/credential-store.js +5 -4
- package/dist/credential-store.js.map +1 -1
- package/dist/deferred-message.d.ts +2450 -0
- package/dist/deferred-message.d.ts.map +1 -0
- package/dist/deferred-message.js +186 -0
- package/dist/deferred-message.js.map +1 -0
- package/dist/events.d.ts +3 -3
- package/dist/events.js +1 -1
- package/dist/events.js.map +1 -1
- package/dist/harness-input.d.ts +15 -0
- package/dist/harness-input.d.ts.map +1 -1
- package/dist/harness-input.js +10 -1
- package/dist/harness-input.js.map +1 -1
- package/dist/harness-model.d.ts +65 -0
- package/dist/harness-model.d.ts.map +1 -1
- package/dist/harness-model.js +42 -0
- package/dist/harness-model.js.map +1 -1
- package/dist/harness-quota.d.ts +3 -3
- package/dist/harness.d.ts +61 -9
- package/dist/harness.d.ts.map +1 -1
- package/dist/harness.js +2 -2
- package/dist/harness.js.map +1 -1
- package/dist/index.d.ts +8 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +8 -0
- package/dist/index.js.map +1 -1
- package/dist/mcp-run-result.d.ts +356 -12
- package/dist/mcp-run-result.d.ts.map +1 -1
- package/dist/mcp-run-result.js +5 -0
- package/dist/mcp-run-result.js.map +1 -1
- package/dist/mcp-run-wait.d.ts +133 -0
- package/dist/mcp-run-wait.d.ts.map +1 -1
- package/dist/mcp-run-wait.js +4 -0
- package/dist/mcp-run-wait.js.map +1 -1
- package/dist/mcp-upload.d.ts +133 -0
- package/dist/mcp-upload.d.ts.map +1 -0
- package/dist/mcp-upload.js +40 -0
- package/dist/mcp-upload.js.map +1 -0
- package/dist/quota-read.d.ts +8 -8
- package/dist/quota.d.ts +26 -20
- package/dist/quota.d.ts.map +1 -1
- package/dist/quota.js +11 -1
- package/dist/quota.js.map +1 -1
- package/dist/run-observation.d.ts +189 -0
- package/dist/run-observation.d.ts.map +1 -0
- package/dist/run-observation.js +93 -0
- package/dist/run-observation.js.map +1 -0
- package/dist/setup-login.d.ts +5 -5
- package/dist/setup.d.ts +63 -63
- package/dist/setup.d.ts.map +1 -1
- package/dist/setup.js +1 -1
- package/dist/setup.js.map +1 -1
- package/dist/task-group-runs.d.ts +257 -0
- package/dist/task-group-runs.d.ts.map +1 -0
- package/dist/task-group-runs.js +91 -0
- package/dist/task-group-runs.js.map +1 -0
- package/dist/task-group.d.ts +23 -0
- package/dist/task-group.d.ts.map +1 -0
- package/dist/task-group.js +38 -0
- package/dist/task-group.js.map +1 -0
- package/dist/telemetry.d.ts +136 -8
- package/dist/telemetry.d.ts.map +1 -1
- package/dist/telemetry.js +2 -5
- package/dist/telemetry.js.map +1 -1
- package/dist/thread-history.d.ts +12553 -0
- package/dist/thread-history.d.ts.map +1 -0
- package/dist/thread-history.js +291 -0
- package/dist/thread-history.js.map +1 -0
- package/generated/ControlAccountResetResponse.schema.json +1 -0
- package/generated/ControlAccountResourcesFreshnessResponse.schema.json +1 -0
- package/generated/ControlAccountResourcesResponse.schema.json +1 -0
- package/generated/ControlCredentialProfileCreateRequest.schema.json +1 -1
- package/generated/ControlCredentialProfilesQueryResponse.schema.json +1 -0
- package/generated/ControlCredentialProfilesResourcesResponse.schema.json +1 -0
- package/generated/ControlCredentialProfilesSnapshotResponse.schema.json +1 -0
- package/generated/ControlQueuedRunInfo.schema.json +10 -0
- package/generated/ControlQuotaFreshnessResponse.schema.json +1 -0
- package/generated/ControlQuotaQueryResponse.schema.json +1 -0
- package/generated/ControlQuotaResponse.schema.json +1 -0
- package/generated/ControlRunAgainDraft.schema.json +5 -0
- package/generated/ControlRunControlResponse.schema.json +169 -0
- package/generated/ControlRunDetail.schema.json +208 -1
- package/generated/ControlRunListResponse.schema.json +31 -1
- package/generated/ControlRunRetryResponse.schema.json +10 -0
- package/generated/ControlRunStartInfo.schema.json +10 -0
- package/generated/ControlRunStartRequest.schema.json +5 -0
- package/generated/ControlRunStartResponse.schema.json +18 -0
- package/generated/ControlRunSummary.schema.json +31 -1
- package/generated/ControlSetupJob.schema.json +2 -1
- package/generated/ControlSetupJobCreateRequest.schema.json +2 -1
- package/generated/ControlSetupJobEvent.schema.json +2 -1
- package/generated/ControlSetupJobListFilter.schema.json +2 -1
- package/generated/ControlSetupJobListResponse.schema.json +2 -1
- package/generated/ControlSetupJobSnapshot.schema.json +2 -1
- package/generated/ControlUploadImport.schema.json +124 -0
- package/generated/ControlUploadImportRequest.schema.json +66 -0
- package/generated/DeferredMessageCall.schema.json +331 -0
- package/generated/DeferredMessageDetail.schema.json +917 -0
- package/generated/DeferredMessageMutation.schema.json +315 -0
- package/generated/DeferredMessageProjection.schema.json +177 -0
- package/generated/DeferredMessageReadInput.schema.json +20 -0
- package/generated/DeferredMessageReadResult.schema.json +399 -0
- package/generated/DeferredMessageReceipt.schema.json +193 -0
- package/generated/HarnessEvent.schema.json +75 -1
- package/generated/McpAccountsToolResult.schema.json +1 -0
- package/generated/McpRunHandleResult.schema.json +226 -19
- package/generated/McpRunToolResult.schema.json +228 -11
- package/generated/McpRunWaitResult.schema.json +180 -2
- package/generated/McpStoreIdentityInput.schema.json +11 -0
- package/generated/McpUploadCreateInput.schema.json +54 -0
- package/generated/McpUploadFinalizeInput.schema.json +40 -0
- package/generated/McpUploadImportInput.schema.json +52 -0
- package/generated/McpUploadImportLocalInput.schema.json +27 -0
- package/generated/McpUploadImportLocalResult.schema.json +45 -0
- package/generated/McpUploadTargetInput.schema.json +20 -0
- package/generated/ResourceAttachmentRef.schema.json +21 -0
- package/generated/RoutePrimaryDivergedPayload.schema.json +23 -14
- package/generated/RunFailure.schema.json +31 -1
- package/generated/RunObservationRecord.schema.json +64 -0
- package/generated/RunTelemetry.schema.json +83 -1
- package/generated/RunWaitManyInput.schema.json +47 -0
- package/generated/RunWaitManyResult.schema.json +110 -0
- package/generated/RunWaitManySummary.schema.json +75 -0
- package/generated/TaskGroupId.schema.json +11 -0
- package/generated/TaskGroupReceipt.schema.json +26 -0
- package/generated/TaskGroupRunsInput.schema.json +46 -0
- package/generated/TaskGroupRunsResult.schema.json +162 -0
- package/generated/ThreadHistoryInput.schema.json +48 -0
- package/generated/ThreadHistoryPage.schema.json +2857 -0
- package/generated/ThreadPromptPart.schema.json +57 -0
- package/generated/ThreadPromptPartInput.schema.json +41 -0
- package/package.json +2 -2
|
@@ -0,0 +1,315 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$ref": "#/definitions/DeferredMessageMutation",
|
|
3
|
+
"definitions": {
|
|
4
|
+
"DeferredMessageMutation": {
|
|
5
|
+
"anyOf": [
|
|
6
|
+
{
|
|
7
|
+
"type": "object",
|
|
8
|
+
"properties": {
|
|
9
|
+
"action": {
|
|
10
|
+
"type": "string",
|
|
11
|
+
"const": "create"
|
|
12
|
+
},
|
|
13
|
+
"predecessorId": {
|
|
14
|
+
"type": "string",
|
|
15
|
+
"minLength": 1,
|
|
16
|
+
"description": "Non-empty identifier string."
|
|
17
|
+
},
|
|
18
|
+
"prompt": {
|
|
19
|
+
"type": "string"
|
|
20
|
+
},
|
|
21
|
+
"attachments": {
|
|
22
|
+
"type": "array",
|
|
23
|
+
"items": {
|
|
24
|
+
"type": "object",
|
|
25
|
+
"properties": {
|
|
26
|
+
"resourceId": {
|
|
27
|
+
"type": "string",
|
|
28
|
+
"minLength": 1,
|
|
29
|
+
"description": "Immutable daemon resource id returned by upload finalize."
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
"required": [
|
|
33
|
+
"resourceId"
|
|
34
|
+
],
|
|
35
|
+
"additionalProperties": false,
|
|
36
|
+
"description": "Reference to an immutable daemon-owned uploaded resource."
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
"controls": {
|
|
40
|
+
"type": "object",
|
|
41
|
+
"properties": {
|
|
42
|
+
"access": {
|
|
43
|
+
"type": "string",
|
|
44
|
+
"enum": [
|
|
45
|
+
"readonly",
|
|
46
|
+
"workspace_write",
|
|
47
|
+
"full",
|
|
48
|
+
"inherit_native"
|
|
49
|
+
],
|
|
50
|
+
"description": "Requested access profile; effective access is derived by the engine and never client-supplied."
|
|
51
|
+
},
|
|
52
|
+
"web": {
|
|
53
|
+
"type": "string",
|
|
54
|
+
"enum": [
|
|
55
|
+
"off",
|
|
56
|
+
"auto",
|
|
57
|
+
"cached",
|
|
58
|
+
"live"
|
|
59
|
+
],
|
|
60
|
+
"description": "Web policy for the run (alias of externalContextPolicy; must match when both set)."
|
|
61
|
+
},
|
|
62
|
+
"externalContextPolicy": {
|
|
63
|
+
"$ref": "#/definitions/DeferredMessageMutation/anyOf/0/properties/controls/properties/web",
|
|
64
|
+
"description": "External web/context policy for the run."
|
|
65
|
+
},
|
|
66
|
+
"credentialProfileId": {
|
|
67
|
+
"anyOf": [
|
|
68
|
+
{
|
|
69
|
+
"type": "string",
|
|
70
|
+
"minLength": 1
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
"type": "null"
|
|
74
|
+
}
|
|
75
|
+
],
|
|
76
|
+
"description": "Explicit per-run credential profile id; null FORCES the engine-default ladder past a thread-sticky profile; unknown/disabled ids refuse, never default."
|
|
77
|
+
},
|
|
78
|
+
"paidBudget": {
|
|
79
|
+
"anyOf": [
|
|
80
|
+
{
|
|
81
|
+
"type": "object",
|
|
82
|
+
"properties": {
|
|
83
|
+
"kind": {
|
|
84
|
+
"type": "string",
|
|
85
|
+
"const": "unlimited"
|
|
86
|
+
}
|
|
87
|
+
},
|
|
88
|
+
"required": [
|
|
89
|
+
"kind"
|
|
90
|
+
],
|
|
91
|
+
"additionalProperties": false
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
"type": "object",
|
|
95
|
+
"properties": {
|
|
96
|
+
"kind": {
|
|
97
|
+
"type": "string",
|
|
98
|
+
"const": "finite"
|
|
99
|
+
},
|
|
100
|
+
"maxUsd": {
|
|
101
|
+
"type": "number",
|
|
102
|
+
"minimum": 0
|
|
103
|
+
}
|
|
104
|
+
},
|
|
105
|
+
"required": [
|
|
106
|
+
"kind",
|
|
107
|
+
"maxUsd"
|
|
108
|
+
],
|
|
109
|
+
"additionalProperties": false
|
|
110
|
+
}
|
|
111
|
+
],
|
|
112
|
+
"description": "Explicit incremental-cash budget for the run."
|
|
113
|
+
},
|
|
114
|
+
"maxSeconds": {
|
|
115
|
+
"type": "integer",
|
|
116
|
+
"exclusiveMinimum": 0,
|
|
117
|
+
"maximum": 604800,
|
|
118
|
+
"description": "Wall-clock limit for the whole run (seconds, max seven days). Omission disables the clock. Explicit limits cancel by default; soft mode warns and continues."
|
|
119
|
+
},
|
|
120
|
+
"timeLimitMode": {
|
|
121
|
+
"type": "string",
|
|
122
|
+
"enum": [
|
|
123
|
+
"soft",
|
|
124
|
+
"hard"
|
|
125
|
+
],
|
|
126
|
+
"description": "Initial timer mode: soft warns and continues; hard cancels. Omission is hard with maxSeconds and soft without it."
|
|
127
|
+
},
|
|
128
|
+
"review": {
|
|
129
|
+
"type": "boolean",
|
|
130
|
+
"description": "Agent model review: ordinary runs default off; true selects an automatic panel. Explicit reviewer controls, best-of and untilClean request review. Capped attempts default to review unless explicitly false."
|
|
131
|
+
},
|
|
132
|
+
"reviewerPanel": {
|
|
133
|
+
"type": "array",
|
|
134
|
+
"items": {
|
|
135
|
+
"type": "object",
|
|
136
|
+
"properties": {
|
|
137
|
+
"harness": {
|
|
138
|
+
"type": "string",
|
|
139
|
+
"minLength": 1,
|
|
140
|
+
"pattern": "\\S",
|
|
141
|
+
"description": "Explicit reviewer harness id; repeated harness ids are allowed so one provider can review through multiple requested models."
|
|
142
|
+
},
|
|
143
|
+
"model": {
|
|
144
|
+
"type": "string",
|
|
145
|
+
"minLength": 1,
|
|
146
|
+
"pattern": "\\S",
|
|
147
|
+
"description": "Per-reviewer model hint, passed to that harness only."
|
|
148
|
+
},
|
|
149
|
+
"effort": {
|
|
150
|
+
"type": "string",
|
|
151
|
+
"minLength": 1,
|
|
152
|
+
"maxLength": 32,
|
|
153
|
+
"pattern": "^[a-z0-9]+(?:[_-][a-z0-9]+)*$",
|
|
154
|
+
"description": "Per-reviewer effort hint, passed to that harness only."
|
|
155
|
+
},
|
|
156
|
+
"credentialProfileId": {
|
|
157
|
+
"$ref": "#/definitions/DeferredMessageMutation/anyOf/0/properties/controls/properties/reviewerPanel/items/properties/model",
|
|
158
|
+
"description": "Per-reviewer credential profile id; explicit pins are strict and never fall back."
|
|
159
|
+
},
|
|
160
|
+
"processingPreference": {
|
|
161
|
+
"type": "string",
|
|
162
|
+
"enum": [
|
|
163
|
+
"standard",
|
|
164
|
+
"fast",
|
|
165
|
+
"economy"
|
|
166
|
+
],
|
|
167
|
+
"description": "Advisory service preference. Fast or Economy may use ordinary Standard service; fallback never introduces Fast. Omission preserves native defaults. Explicit native serviceTier takes precedence."
|
|
168
|
+
}
|
|
169
|
+
},
|
|
170
|
+
"required": [
|
|
171
|
+
"harness"
|
|
172
|
+
],
|
|
173
|
+
"additionalProperties": false,
|
|
174
|
+
"description": "One reviewer of an explicit reviewer panel — a harness plus optional model, effort, and strict credentialProfileId. Compact entries are unpinned; structured JSON carries pins."
|
|
175
|
+
},
|
|
176
|
+
"minItems": 1,
|
|
177
|
+
"description": "Explicit Agent reviewer panel — who reviews the change, one entry per reviewer as `harness=model:effort` (CLI `--reviewer-panel`, unpinned) or structured `--reviewer-panel-json` with optional strict credentialProfileId. Duplicate harness entries are kept so one provider can review through several models; overrides the legacy reviewerModels/reviewerEfforts maps."
|
|
178
|
+
},
|
|
179
|
+
"reviewerModels": {
|
|
180
|
+
"type": "object",
|
|
181
|
+
"additionalProperties": {
|
|
182
|
+
"$ref": "#/definitions/DeferredMessageMutation/anyOf/0/properties/controls/properties/reviewerPanel/items/properties/model"
|
|
183
|
+
},
|
|
184
|
+
"propertyNames": {
|
|
185
|
+
"enum": [
|
|
186
|
+
"openai",
|
|
187
|
+
"anthropic",
|
|
188
|
+
"google",
|
|
189
|
+
"cursor",
|
|
190
|
+
"opencode",
|
|
191
|
+
"xai",
|
|
192
|
+
"local",
|
|
193
|
+
"unknown"
|
|
194
|
+
]
|
|
195
|
+
},
|
|
196
|
+
"description": "Per-provider-family reviewer model overrides (legacy; reviewerPanel wins when present)."
|
|
197
|
+
},
|
|
198
|
+
"reviewerEfforts": {
|
|
199
|
+
"type": "object",
|
|
200
|
+
"additionalProperties": {
|
|
201
|
+
"$ref": "#/definitions/DeferredMessageMutation/anyOf/0/properties/controls/properties/reviewerPanel/items/properties/effort"
|
|
202
|
+
},
|
|
203
|
+
"propertyNames": {
|
|
204
|
+
"enum": [
|
|
205
|
+
"openai",
|
|
206
|
+
"anthropic",
|
|
207
|
+
"google",
|
|
208
|
+
"cursor",
|
|
209
|
+
"opencode",
|
|
210
|
+
"xai",
|
|
211
|
+
"local",
|
|
212
|
+
"unknown"
|
|
213
|
+
]
|
|
214
|
+
},
|
|
215
|
+
"description": "Per-provider-family reviewer effort overrides (legacy; reviewerPanel wins when present)."
|
|
216
|
+
},
|
|
217
|
+
"continueCarrier": {
|
|
218
|
+
"type": "string",
|
|
219
|
+
"enum": [
|
|
220
|
+
"auto",
|
|
221
|
+
"packet"
|
|
222
|
+
],
|
|
223
|
+
"description": "Carrier preference for continueFrom; omitted = auto."
|
|
224
|
+
},
|
|
225
|
+
"effort": {
|
|
226
|
+
"$ref": "#/definitions/DeferredMessageMutation/anyOf/0/properties/controls/properties/reviewerPanel/items/properties/effort",
|
|
227
|
+
"description": "Requested reasoning effort."
|
|
228
|
+
},
|
|
229
|
+
"efforts": {
|
|
230
|
+
"type": "object",
|
|
231
|
+
"additionalProperties": {
|
|
232
|
+
"$ref": "#/definitions/DeferredMessageMutation/anyOf/0/properties/controls/properties/reviewerPanel/items/properties/effort"
|
|
233
|
+
},
|
|
234
|
+
"propertyNames": {
|
|
235
|
+
"minLength": 1,
|
|
236
|
+
"pattern": "\\S"
|
|
237
|
+
},
|
|
238
|
+
"description": "Harness-scoped effort map (harness id to effort); an entry here wins over the scalar effort and the per-harness settings default."
|
|
239
|
+
},
|
|
240
|
+
"taskGroupId": {
|
|
241
|
+
"type": "string",
|
|
242
|
+
"format": "uuid",
|
|
243
|
+
"description": "Caller-generated UUID saved before launching the first member. Each job still needs its own idempotency key; the group grants no execution authority."
|
|
244
|
+
}
|
|
245
|
+
},
|
|
246
|
+
"additionalProperties": false,
|
|
247
|
+
"description": "Request body for POST /runs: prompt, mode, scope, routing, strategy flags, budget, policies, and thread linkage."
|
|
248
|
+
}
|
|
249
|
+
},
|
|
250
|
+
"required": [
|
|
251
|
+
"action",
|
|
252
|
+
"predecessorId",
|
|
253
|
+
"prompt",
|
|
254
|
+
"attachments"
|
|
255
|
+
],
|
|
256
|
+
"additionalProperties": false
|
|
257
|
+
},
|
|
258
|
+
{
|
|
259
|
+
"type": "object",
|
|
260
|
+
"properties": {
|
|
261
|
+
"action": {
|
|
262
|
+
"type": "string",
|
|
263
|
+
"const": "replace"
|
|
264
|
+
},
|
|
265
|
+
"draftId": {
|
|
266
|
+
"$ref": "#/definitions/DeferredMessageMutation/anyOf/0/properties/predecessorId"
|
|
267
|
+
},
|
|
268
|
+
"expectedRevision": {
|
|
269
|
+
"type": "integer",
|
|
270
|
+
"exclusiveMinimum": 0,
|
|
271
|
+
"maximum": 9007199254740991
|
|
272
|
+
},
|
|
273
|
+
"prompt": {
|
|
274
|
+
"$ref": "#/definitions/DeferredMessageMutation/anyOf/0/properties/prompt"
|
|
275
|
+
},
|
|
276
|
+
"attachments": {
|
|
277
|
+
"$ref": "#/definitions/DeferredMessageMutation/anyOf/0/properties/attachments"
|
|
278
|
+
}
|
|
279
|
+
},
|
|
280
|
+
"required": [
|
|
281
|
+
"action",
|
|
282
|
+
"draftId",
|
|
283
|
+
"expectedRevision",
|
|
284
|
+
"prompt",
|
|
285
|
+
"attachments"
|
|
286
|
+
],
|
|
287
|
+
"additionalProperties": false
|
|
288
|
+
},
|
|
289
|
+
{
|
|
290
|
+
"type": "object",
|
|
291
|
+
"properties": {
|
|
292
|
+
"action": {
|
|
293
|
+
"type": "string",
|
|
294
|
+
"const": "clear"
|
|
295
|
+
},
|
|
296
|
+
"draftId": {
|
|
297
|
+
"$ref": "#/definitions/DeferredMessageMutation/anyOf/0/properties/predecessorId"
|
|
298
|
+
},
|
|
299
|
+
"expectedRevision": {
|
|
300
|
+
"$ref": "#/definitions/DeferredMessageMutation/anyOf/1/properties/expectedRevision"
|
|
301
|
+
}
|
|
302
|
+
},
|
|
303
|
+
"required": [
|
|
304
|
+
"action",
|
|
305
|
+
"draftId",
|
|
306
|
+
"expectedRevision"
|
|
307
|
+
],
|
|
308
|
+
"additionalProperties": false
|
|
309
|
+
}
|
|
310
|
+
],
|
|
311
|
+
"description": "One editable reserved next message of a daemon-owned one-shot Agent/Ask. Every mutation requires Idempotency-Key; replace/clear require the exact revision."
|
|
312
|
+
}
|
|
313
|
+
},
|
|
314
|
+
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
315
|
+
}
|
|
@@ -0,0 +1,177 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$ref": "#/definitions/DeferredMessageProjection",
|
|
3
|
+
"definitions": {
|
|
4
|
+
"DeferredMessageProjection": {
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"draftId": {
|
|
8
|
+
"type": "string",
|
|
9
|
+
"minLength": 1,
|
|
10
|
+
"description": "Non-empty identifier string."
|
|
11
|
+
},
|
|
12
|
+
"revision": {
|
|
13
|
+
"type": "integer",
|
|
14
|
+
"exclusiveMinimum": 0,
|
|
15
|
+
"maximum": 9007199254740991
|
|
16
|
+
},
|
|
17
|
+
"state": {
|
|
18
|
+
"type": "string",
|
|
19
|
+
"enum": [
|
|
20
|
+
"waiting",
|
|
21
|
+
"held",
|
|
22
|
+
"dispatched",
|
|
23
|
+
"cleared"
|
|
24
|
+
]
|
|
25
|
+
},
|
|
26
|
+
"predecessorJobId": {
|
|
27
|
+
"$ref": "#/definitions/DeferredMessageProjection/properties/draftId"
|
|
28
|
+
},
|
|
29
|
+
"predecessorRunId": {
|
|
30
|
+
"anyOf": [
|
|
31
|
+
{
|
|
32
|
+
"$ref": "#/definitions/DeferredMessageProjection/properties/draftId"
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"type": "null"
|
|
36
|
+
}
|
|
37
|
+
],
|
|
38
|
+
"description": "Non-empty identifier string."
|
|
39
|
+
},
|
|
40
|
+
"predecessorResult": {
|
|
41
|
+
"type": "string",
|
|
42
|
+
"description": "Existing addressed run-detail/result path; no duplicate result store."
|
|
43
|
+
},
|
|
44
|
+
"hold": {
|
|
45
|
+
"anyOf": [
|
|
46
|
+
{
|
|
47
|
+
"type": "object",
|
|
48
|
+
"properties": {
|
|
49
|
+
"code": {
|
|
50
|
+
"type": "string",
|
|
51
|
+
"enum": [
|
|
52
|
+
"predecessor_failed",
|
|
53
|
+
"predecessor_cancelled",
|
|
54
|
+
"predecessor_interrupted",
|
|
55
|
+
"predecessor_needs_input",
|
|
56
|
+
"predecessor_incomplete",
|
|
57
|
+
"predecessor_facts_unavailable",
|
|
58
|
+
"predecessor_work_unverified",
|
|
59
|
+
"predecessor_checks_failed",
|
|
60
|
+
"predecessor_review_blocked",
|
|
61
|
+
"predecessor_output_unavailable",
|
|
62
|
+
"settlement_unknown",
|
|
63
|
+
"stop_requested",
|
|
64
|
+
"shutdown",
|
|
65
|
+
"restart_requires_controller",
|
|
66
|
+
"partition_retired",
|
|
67
|
+
"admission_refused"
|
|
68
|
+
]
|
|
69
|
+
},
|
|
70
|
+
"problem": {
|
|
71
|
+
"type": "object",
|
|
72
|
+
"properties": {
|
|
73
|
+
"message": {
|
|
74
|
+
"type": "string",
|
|
75
|
+
"description": "Human-readable refusal message."
|
|
76
|
+
},
|
|
77
|
+
"code": {
|
|
78
|
+
"type": [
|
|
79
|
+
"string",
|
|
80
|
+
"null"
|
|
81
|
+
],
|
|
82
|
+
"default": null,
|
|
83
|
+
"description": "Machine-readable refusal code carried from the throwing gate; null when the failure had no typed code."
|
|
84
|
+
},
|
|
85
|
+
"retryable": {
|
|
86
|
+
"type": "boolean",
|
|
87
|
+
"default": true,
|
|
88
|
+
"description": "True when retry can replay this turn (a job was recorded before the failure); false when no job exists to replay."
|
|
89
|
+
},
|
|
90
|
+
"required_actions": {
|
|
91
|
+
"type": "array",
|
|
92
|
+
"items": {
|
|
93
|
+
"type": "string",
|
|
94
|
+
"minLength": 1,
|
|
95
|
+
"maxLength": 512
|
|
96
|
+
},
|
|
97
|
+
"maxItems": 16,
|
|
98
|
+
"default": [],
|
|
99
|
+
"description": "Bounded user actions that may make an exact retry succeed."
|
|
100
|
+
},
|
|
101
|
+
"context": {
|
|
102
|
+
"type": "object",
|
|
103
|
+
"additionalProperties": {},
|
|
104
|
+
"default": {},
|
|
105
|
+
"description": "Bounded typed recovery context; never arbitrary provider or environment output."
|
|
106
|
+
}
|
|
107
|
+
},
|
|
108
|
+
"required": [
|
|
109
|
+
"message"
|
|
110
|
+
],
|
|
111
|
+
"additionalProperties": false,
|
|
112
|
+
"description": "Typed, sanitized problem for a thread turn that could not start."
|
|
113
|
+
}
|
|
114
|
+
},
|
|
115
|
+
"required": [
|
|
116
|
+
"code"
|
|
117
|
+
],
|
|
118
|
+
"additionalProperties": false,
|
|
119
|
+
"description": "Stable hold. Editing, observation and readiness restoration never rearm it; inspect the predecessor result and clear before an ordinary continuation."
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
"type": "null"
|
|
123
|
+
}
|
|
124
|
+
],
|
|
125
|
+
"description": "Stable hold. Editing, observation and readiness restoration never rearm it; inspect the predecessor result and clear before an ordinary continuation."
|
|
126
|
+
},
|
|
127
|
+
"dispatchedRevision": {
|
|
128
|
+
"anyOf": [
|
|
129
|
+
{
|
|
130
|
+
"$ref": "#/definitions/DeferredMessageProjection/properties/revision"
|
|
131
|
+
},
|
|
132
|
+
{
|
|
133
|
+
"type": "null"
|
|
134
|
+
}
|
|
135
|
+
]
|
|
136
|
+
},
|
|
137
|
+
"successorJobId": {
|
|
138
|
+
"anyOf": [
|
|
139
|
+
{
|
|
140
|
+
"$ref": "#/definitions/DeferredMessageProjection/properties/draftId"
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
"type": "null"
|
|
144
|
+
}
|
|
145
|
+
],
|
|
146
|
+
"description": "Non-empty identifier string."
|
|
147
|
+
},
|
|
148
|
+
"successorRunId": {
|
|
149
|
+
"anyOf": [
|
|
150
|
+
{
|
|
151
|
+
"$ref": "#/definitions/DeferredMessageProjection/properties/draftId"
|
|
152
|
+
},
|
|
153
|
+
{
|
|
154
|
+
"type": "null"
|
|
155
|
+
}
|
|
156
|
+
],
|
|
157
|
+
"description": "Non-empty identifier string."
|
|
158
|
+
}
|
|
159
|
+
},
|
|
160
|
+
"required": [
|
|
161
|
+
"draftId",
|
|
162
|
+
"revision",
|
|
163
|
+
"state",
|
|
164
|
+
"predecessorJobId",
|
|
165
|
+
"predecessorRunId",
|
|
166
|
+
"predecessorResult",
|
|
167
|
+
"hold",
|
|
168
|
+
"dispatchedRevision",
|
|
169
|
+
"successorJobId",
|
|
170
|
+
"successorRunId"
|
|
171
|
+
],
|
|
172
|
+
"additionalProperties": false,
|
|
173
|
+
"description": "Compact addressed draft state, with exact predecessor result and successor handles. A terminal predecessor does not imply the draft has resolved."
|
|
174
|
+
}
|
|
175
|
+
},
|
|
176
|
+
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
177
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$ref": "#/definitions/DeferredMessageReadInput",
|
|
3
|
+
"definitions": {
|
|
4
|
+
"DeferredMessageReadInput": {
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"draftId": {
|
|
8
|
+
"type": "string",
|
|
9
|
+
"minLength": 1,
|
|
10
|
+
"description": "Non-empty identifier string."
|
|
11
|
+
}
|
|
12
|
+
},
|
|
13
|
+
"required": [
|
|
14
|
+
"draftId"
|
|
15
|
+
],
|
|
16
|
+
"additionalProperties": false
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
20
|
+
}
|