@claudexor/schema 1.0.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/LICENSE +21 -0
- package/README.md +16 -0
- package/dist/agent-capabilities.d.ts +366 -0
- package/dist/agent-capabilities.d.ts.map +1 -0
- package/dist/agent-capabilities.js +125 -0
- package/dist/agent-capabilities.js.map +1 -0
- package/dist/apply-eligibility.d.ts +76 -0
- package/dist/apply-eligibility.d.ts.map +1 -0
- package/dist/apply-eligibility.js +37 -0
- package/dist/apply-eligibility.js.map +1 -0
- package/dist/attachment.d.ts +69 -0
- package/dist/attachment.d.ts.map +1 -0
- package/dist/attachment.js +54 -0
- package/dist/attachment.js.map +1 -0
- package/dist/budget.d.ts +75 -0
- package/dist/budget.d.ts.map +1 -0
- package/dist/budget.js +54 -0
- package/dist/budget.js.map +1 -0
- package/dist/config.d.ts +743 -0
- package/dist/config.d.ts.map +1 -0
- package/dist/config.js +194 -0
- package/dist/config.js.map +1 -0
- package/dist/context.d.ts +222 -0
- package/dist/context.d.ts.map +1 -0
- package/dist/context.js +70 -0
- package/dist/context.js.map +1 -0
- package/dist/control-run-detail.d.ts +1686 -0
- package/dist/control-run-detail.d.ts.map +1 -0
- package/dist/control-run-detail.js +107 -0
- package/dist/control-run-detail.js.map +1 -0
- package/dist/control-trust.d.ts +79 -0
- package/dist/control-trust.d.ts.map +1 -0
- package/dist/control-trust.js +39 -0
- package/dist/control-trust.js.map +1 -0
- package/dist/control.d.ts +4226 -0
- package/dist/control.d.ts.map +1 -0
- package/dist/control.js +1022 -0
- package/dist/control.js.map +1 -0
- package/dist/decision.d.ts +208 -0
- package/dist/decision.d.ts.map +1 -0
- package/dist/decision.js +98 -0
- package/dist/decision.js.map +1 -0
- package/dist/events.d.ts +70 -0
- package/dist/events.d.ts.map +1 -0
- package/dist/events.js +105 -0
- package/dist/events.js.map +1 -0
- package/dist/gate.d.ts +37 -0
- package/dist/gate.d.ts.map +1 -0
- package/dist/gate.js +20 -0
- package/dist/gate.js.map +1 -0
- package/dist/harness.d.ts +1418 -0
- package/dist/harness.d.ts.map +1 -0
- package/dist/harness.js +552 -0
- package/dist/harness.js.map +1 -0
- package/dist/index.d.ts +32 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +32 -0
- package/dist/index.js.map +1 -0
- package/dist/orchestrate.d.ts +428 -0
- package/dist/orchestrate.d.ts.map +1 -0
- package/dist/orchestrate.js +246 -0
- package/dist/orchestrate.js.map +1 -0
- package/dist/primitives.d.ts +71 -0
- package/dist/primitives.d.ts.map +1 -0
- package/dist/primitives.js +114 -0
- package/dist/primitives.js.map +1 -0
- package/dist/review.d.ts +220 -0
- package/dist/review.d.ts.map +1 -0
- package/dist/review.js +91 -0
- package/dist/review.js.map +1 -0
- package/dist/route.d.ts +67 -0
- package/dist/route.d.ts.map +1 -0
- package/dist/route.js +33 -0
- package/dist/route.js.map +1 -0
- package/dist/spec.d.ts +561 -0
- package/dist/spec.d.ts.map +1 -0
- package/dist/spec.js +133 -0
- package/dist/spec.js.map +1 -0
- package/dist/surface-run-controls.d.ts +14 -0
- package/dist/surface-run-controls.d.ts.map +1 -0
- package/dist/surface-run-controls.js +142 -0
- package/dist/surface-run-controls.js.map +1 -0
- package/dist/task.d.ts +565 -0
- package/dist/task.d.ts.map +1 -0
- package/dist/task.js +186 -0
- package/dist/task.js.map +1 -0
- package/dist/telemetry.d.ts +660 -0
- package/dist/telemetry.d.ts.map +1 -0
- package/dist/telemetry.js +140 -0
- package/dist/telemetry.js.map +1 -0
- package/dist/thread.d.ts +348 -0
- package/dist/thread.d.ts.map +1 -0
- package/dist/thread.js +194 -0
- package/dist/thread.js.map +1 -0
- package/dist/workproduct.d.ts +31 -0
- package/dist/workproduct.d.ts.map +1 -0
- package/dist/workproduct.js +25 -0
- package/dist/workproduct.js.map +1 -0
- package/dist/workspace.d.ts +53 -0
- package/dist/workspace.d.ts.map +1 -0
- package/dist/workspace.js +30 -0
- package/dist/workspace.js.map +1 -0
- package/generated/AgentCapabilityCatalog.schema.json +389 -0
- package/generated/ApplyEligibility.schema.json +44 -0
- package/generated/BudgetLease.schema.json +95 -0
- package/generated/BudgetObservation.schema.json +76 -0
- package/generated/ConformanceReport.schema.json +107 -0
- package/generated/ContextPack.schema.json +186 -0
- package/generated/ControlApplyCheckRequest.schema.json +54 -0
- package/generated/ControlApplyRequest.schema.json +74 -0
- package/generated/ControlHarnessListResponse.schema.json +498 -0
- package/generated/ControlHarnessModelsResponse.schema.json +78 -0
- package/generated/ControlHarnessSettingsPatch.schema.json +130 -0
- package/generated/ControlInteractionAnswerRequest.schema.json +48 -0
- package/generated/ControlInteractionAnswerResponse.schema.json +35 -0
- package/generated/ControlPendingInteraction.schema.json +129 -0
- package/generated/ControlQueuedRunInfo.schema.json +44 -0
- package/generated/ControlRunControlRequest.schema.json +61 -0
- package/generated/ControlRunControlResponse.schema.json +40 -0
- package/generated/ControlRunDecisionRequest.schema.json +98 -0
- package/generated/ControlRunDecisionResponse.schema.json +40 -0
- package/generated/ControlRunDetail.schema.json +1925 -0
- package/generated/ControlRunStartInfo.schema.json +33 -0
- package/generated/ControlRunStartRequest.schema.json +429 -0
- package/generated/ControlRunSummary.schema.json +666 -0
- package/generated/ControlSecretListResponse.schema.json +57 -0
- package/generated/ControlSettingsSnapshot.schema.json +281 -0
- package/generated/ControlSettingsUpdateRequest.schema.json +212 -0
- package/generated/ControlSetupJob.schema.json +148 -0
- package/generated/ControlSetupJobConfirmRequest.schema.json +18 -0
- package/generated/ControlSetupJobCreateRequest.schema.json +38 -0
- package/generated/ControlSetupJobEvent.schema.json +58 -0
- package/generated/ControlSetupJobListResponse.schema.json +162 -0
- package/generated/ControlSpecFreezeRequest.schema.json +83 -0
- package/generated/ControlSpecQuestionsRequest.schema.json +80 -0
- package/generated/ControlThread.schema.json +129 -0
- package/generated/ControlThreadApplyRequest.schema.json +32 -0
- package/generated/ControlThreadApplyResponse.schema.json +47 -0
- package/generated/ControlThreadCreateRequest.schema.json +107 -0
- package/generated/ControlThreadDetail.schema.json +515 -0
- package/generated/ControlThreadListResponse.schema.json +141 -0
- package/generated/ControlThreadUpdateRequest.schema.json +46 -0
- package/generated/ControlTrustListResponse.schema.json +59 -0
- package/generated/ControlTrustState.schema.json +45 -0
- package/generated/ControlTrustUpdateRequest.schema.json +26 -0
- package/generated/DecisionRecord.schema.json +232 -0
- package/generated/GateResult.schema.json +81 -0
- package/generated/GlobalConfig.schema.json +313 -0
- package/generated/HarnessEvent.schema.json +360 -0
- package/generated/HarnessManifest.schema.json +350 -0
- package/generated/HarnessModel.schema.json +41 -0
- package/generated/HarnessStatusDto.schema.json +486 -0
- package/generated/McpRunToolResult.schema.json +91 -0
- package/generated/OrchestrateContract.schema.json +93 -0
- package/generated/OrchestratePlan.schema.json +244 -0
- package/generated/OrchestratePlanProgress.schema.json +103 -0
- package/generated/ProjectConfig.schema.json +95 -0
- package/generated/ReviewFinding.schema.json +226 -0
- package/generated/RouteFallbackPayload.schema.json +79 -0
- package/generated/RouteProof.schema.json +111 -0
- package/generated/RunControl.schema.json +51 -0
- package/generated/RunEvent.schema.json +103 -0
- package/generated/RunFailure.schema.json +98 -0
- package/generated/RunTelemetry.schema.json +433 -0
- package/generated/SecretMetadata.schema.json +34 -0
- package/generated/Session.schema.json +80 -0
- package/generated/SessionReboundLineage.schema.json +73 -0
- package/generated/SpecPack.schema.json +372 -0
- package/generated/TaskContract.schema.json +501 -0
- package/generated/Thread.schema.json +176 -0
- package/generated/ThreadTurn.schema.json +172 -0
- package/generated/TrustConfig.schema.json +44 -0
- package/generated/WorkProduct.schema.json +60 -0
- package/generated/WorkspaceEnvelope.schema.json +94 -0
- package/package.json +43 -0
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$ref": "#/definitions/ConformanceReport",
|
|
3
|
+
"definitions": {
|
|
4
|
+
"ConformanceReport": {
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"harness_id": {
|
|
8
|
+
"type": "string",
|
|
9
|
+
"minLength": 1,
|
|
10
|
+
"description": "Harness the report is about."
|
|
11
|
+
},
|
|
12
|
+
"status": {
|
|
13
|
+
"type": "string",
|
|
14
|
+
"enum": [
|
|
15
|
+
"ok",
|
|
16
|
+
"degraded",
|
|
17
|
+
"unavailable"
|
|
18
|
+
],
|
|
19
|
+
"description": "Doctor verdict for a harness: ok (usable), degraded (usable with limitations), or unavailable."
|
|
20
|
+
},
|
|
21
|
+
"checks": {
|
|
22
|
+
"type": "array",
|
|
23
|
+
"items": {
|
|
24
|
+
"type": "object",
|
|
25
|
+
"properties": {
|
|
26
|
+
"id": {
|
|
27
|
+
"type": "string",
|
|
28
|
+
"description": "Check id."
|
|
29
|
+
},
|
|
30
|
+
"status": {
|
|
31
|
+
"type": "string",
|
|
32
|
+
"enum": [
|
|
33
|
+
"pass",
|
|
34
|
+
"fail",
|
|
35
|
+
"skip"
|
|
36
|
+
],
|
|
37
|
+
"description": "Outcome of the check: pass, fail, or skip."
|
|
38
|
+
},
|
|
39
|
+
"detail": {
|
|
40
|
+
"type": "string",
|
|
41
|
+
"description": "Human-readable detail for the outcome."
|
|
42
|
+
},
|
|
43
|
+
"duration_ms": {
|
|
44
|
+
"type": "integer",
|
|
45
|
+
"minimum": 0,
|
|
46
|
+
"description": "How long the check took, in milliseconds."
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
"required": [
|
|
50
|
+
"id",
|
|
51
|
+
"status"
|
|
52
|
+
],
|
|
53
|
+
"additionalProperties": false,
|
|
54
|
+
"description": "Result of a conformance probe for one capability check."
|
|
55
|
+
},
|
|
56
|
+
"default": [],
|
|
57
|
+
"description": "Individual probe results."
|
|
58
|
+
},
|
|
59
|
+
"enabled_intents": {
|
|
60
|
+
"type": "array",
|
|
61
|
+
"items": {
|
|
62
|
+
"type": "string",
|
|
63
|
+
"enum": [
|
|
64
|
+
"plan",
|
|
65
|
+
"spec",
|
|
66
|
+
"implement",
|
|
67
|
+
"create_from_scratch",
|
|
68
|
+
"repair",
|
|
69
|
+
"review",
|
|
70
|
+
"verify",
|
|
71
|
+
"synthesize",
|
|
72
|
+
"explain",
|
|
73
|
+
"audit",
|
|
74
|
+
"orchestrate"
|
|
75
|
+
],
|
|
76
|
+
"description": "Canonical intent a harness can be assigned for a session (roles are intents, never fixed classes)."
|
|
77
|
+
},
|
|
78
|
+
"default": [],
|
|
79
|
+
"description": "Intents the gateway will route to this harness."
|
|
80
|
+
},
|
|
81
|
+
"disabled_intents": {
|
|
82
|
+
"type": "array",
|
|
83
|
+
"items": {
|
|
84
|
+
"$ref": "#/definitions/ConformanceReport/properties/enabled_intents/items"
|
|
85
|
+
},
|
|
86
|
+
"default": [],
|
|
87
|
+
"description": "Intents the doctor disabled."
|
|
88
|
+
},
|
|
89
|
+
"reasons": {
|
|
90
|
+
"type": "array",
|
|
91
|
+
"items": {
|
|
92
|
+
"type": "string"
|
|
93
|
+
},
|
|
94
|
+
"default": [],
|
|
95
|
+
"description": "Human-readable reasons for degraded/unavailable status or disabled intents."
|
|
96
|
+
}
|
|
97
|
+
},
|
|
98
|
+
"required": [
|
|
99
|
+
"harness_id",
|
|
100
|
+
"status"
|
|
101
|
+
],
|
|
102
|
+
"additionalProperties": false,
|
|
103
|
+
"description": "Doctor/conformance report for one harness: status, probe results, and the intents enabled or disabled by it."
|
|
104
|
+
}
|
|
105
|
+
},
|
|
106
|
+
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
107
|
+
}
|
|
@@ -0,0 +1,186 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$ref": "#/definitions/ContextPack",
|
|
3
|
+
"definitions": {
|
|
4
|
+
"ContextPack": {
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"task_contract_hash": {
|
|
8
|
+
"type": "string",
|
|
9
|
+
"minLength": 1,
|
|
10
|
+
"description": "Hash of the TaskContract this pack was built from."
|
|
11
|
+
},
|
|
12
|
+
"hash": {
|
|
13
|
+
"type": "string",
|
|
14
|
+
"minLength": 1,
|
|
15
|
+
"description": "Content hash of the pack itself."
|
|
16
|
+
},
|
|
17
|
+
"files": {
|
|
18
|
+
"type": "object",
|
|
19
|
+
"properties": {
|
|
20
|
+
"mandatory": {
|
|
21
|
+
"type": "array",
|
|
22
|
+
"items": {
|
|
23
|
+
"type": "object",
|
|
24
|
+
"properties": {
|
|
25
|
+
"path": {
|
|
26
|
+
"type": "string",
|
|
27
|
+
"description": "Repo-relative path of the included file."
|
|
28
|
+
},
|
|
29
|
+
"hash": {
|
|
30
|
+
"type": "string",
|
|
31
|
+
"minLength": 1,
|
|
32
|
+
"description": "Content hash of the file as included."
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
"required": [
|
|
36
|
+
"path",
|
|
37
|
+
"hash"
|
|
38
|
+
],
|
|
39
|
+
"additionalProperties": false,
|
|
40
|
+
"description": "Reference to a file included in the context pack."
|
|
41
|
+
},
|
|
42
|
+
"default": [],
|
|
43
|
+
"description": "Files every harness must receive."
|
|
44
|
+
},
|
|
45
|
+
"included": {
|
|
46
|
+
"type": "array",
|
|
47
|
+
"items": {
|
|
48
|
+
"$ref": "#/definitions/ContextPack/properties/files/properties/mandatory/items"
|
|
49
|
+
},
|
|
50
|
+
"default": [],
|
|
51
|
+
"description": "Additional files included in the pack."
|
|
52
|
+
},
|
|
53
|
+
"omitted": {
|
|
54
|
+
"type": "array",
|
|
55
|
+
"items": {
|
|
56
|
+
"type": "object",
|
|
57
|
+
"properties": {
|
|
58
|
+
"path": {
|
|
59
|
+
"type": "string",
|
|
60
|
+
"description": "Repo-relative path that was omitted."
|
|
61
|
+
},
|
|
62
|
+
"reason": {
|
|
63
|
+
"type": "string",
|
|
64
|
+
"description": "Why the path was omitted."
|
|
65
|
+
},
|
|
66
|
+
"replacement": {
|
|
67
|
+
"type": "string",
|
|
68
|
+
"enum": [
|
|
69
|
+
"summary",
|
|
70
|
+
"map",
|
|
71
|
+
"index",
|
|
72
|
+
"none"
|
|
73
|
+
],
|
|
74
|
+
"default": "none",
|
|
75
|
+
"description": "What stands in for the omitted content: a summary, a map, an index, or nothing."
|
|
76
|
+
},
|
|
77
|
+
"hash": {
|
|
78
|
+
"type": "string",
|
|
79
|
+
"minLength": 1,
|
|
80
|
+
"description": "Content hash of the omitted file, when known."
|
|
81
|
+
}
|
|
82
|
+
},
|
|
83
|
+
"required": [
|
|
84
|
+
"path",
|
|
85
|
+
"reason"
|
|
86
|
+
],
|
|
87
|
+
"additionalProperties": false,
|
|
88
|
+
"description": "Explicit record of a file omitted from the context; nothing is silently cut."
|
|
89
|
+
},
|
|
90
|
+
"default": [],
|
|
91
|
+
"description": "Files explicitly omitted, with reasons."
|
|
92
|
+
}
|
|
93
|
+
},
|
|
94
|
+
"additionalProperties": false,
|
|
95
|
+
"description": "Files included in or explicitly omitted from the pack."
|
|
96
|
+
},
|
|
97
|
+
"atlas": {
|
|
98
|
+
"type": "array",
|
|
99
|
+
"items": {
|
|
100
|
+
"type": "object",
|
|
101
|
+
"properties": {
|
|
102
|
+
"path": {
|
|
103
|
+
"type": "string",
|
|
104
|
+
"description": "Repo-relative path."
|
|
105
|
+
},
|
|
106
|
+
"disposition": {
|
|
107
|
+
"type": "string",
|
|
108
|
+
"enum": [
|
|
109
|
+
"full",
|
|
110
|
+
"included",
|
|
111
|
+
"manifest_only",
|
|
112
|
+
"excluded",
|
|
113
|
+
"sensitive",
|
|
114
|
+
"binary",
|
|
115
|
+
"vendored",
|
|
116
|
+
"oversized",
|
|
117
|
+
"read_error",
|
|
118
|
+
"omitted"
|
|
119
|
+
],
|
|
120
|
+
"description": "How a tracked path was accounted for in the Scope Atlas (full/included content, manifest_only, or excluded/sensitive/binary/vendored/oversized/read_error/omitted); no path is ever silently dropped."
|
|
121
|
+
},
|
|
122
|
+
"hash": {
|
|
123
|
+
"$ref": "#/definitions/ContextPack/properties/files/properties/omitted/items/properties/hash",
|
|
124
|
+
"description": "Content hash of the path, when read."
|
|
125
|
+
},
|
|
126
|
+
"bytes": {
|
|
127
|
+
"type": "integer",
|
|
128
|
+
"minimum": 0,
|
|
129
|
+
"description": "Size of the path in bytes, when known."
|
|
130
|
+
},
|
|
131
|
+
"reason": {
|
|
132
|
+
"type": "string",
|
|
133
|
+
"description": "Why the path got this disposition."
|
|
134
|
+
}
|
|
135
|
+
},
|
|
136
|
+
"required": [
|
|
137
|
+
"path",
|
|
138
|
+
"disposition"
|
|
139
|
+
],
|
|
140
|
+
"additionalProperties": false,
|
|
141
|
+
"description": "Accounting entry for one tracked path in the Scope Atlas."
|
|
142
|
+
},
|
|
143
|
+
"default": [],
|
|
144
|
+
"description": "Scope Atlas: per-path accounting of the whole tracked tree."
|
|
145
|
+
},
|
|
146
|
+
"instructions": {
|
|
147
|
+
"type": "array",
|
|
148
|
+
"items": {
|
|
149
|
+
"type": "string"
|
|
150
|
+
},
|
|
151
|
+
"default": [],
|
|
152
|
+
"description": "Instruction strings passed alongside the files."
|
|
153
|
+
},
|
|
154
|
+
"token_budget": {
|
|
155
|
+
"type": "object",
|
|
156
|
+
"properties": {
|
|
157
|
+
"limit": {
|
|
158
|
+
"type": "integer",
|
|
159
|
+
"exclusiveMinimum": 0,
|
|
160
|
+
"description": "Token budget limit for the pack."
|
|
161
|
+
},
|
|
162
|
+
"estimated_used": {
|
|
163
|
+
"type": "integer",
|
|
164
|
+
"minimum": 0,
|
|
165
|
+
"description": "Estimated tokens consumed by the pack."
|
|
166
|
+
}
|
|
167
|
+
},
|
|
168
|
+
"required": [
|
|
169
|
+
"limit",
|
|
170
|
+
"estimated_used"
|
|
171
|
+
],
|
|
172
|
+
"additionalProperties": false,
|
|
173
|
+
"description": "Token budget accounting for the pack, when computed."
|
|
174
|
+
}
|
|
175
|
+
},
|
|
176
|
+
"required": [
|
|
177
|
+
"task_contract_hash",
|
|
178
|
+
"hash",
|
|
179
|
+
"files"
|
|
180
|
+
],
|
|
181
|
+
"additionalProperties": false,
|
|
182
|
+
"description": "The deterministic, hashable context bundle every harness receives, built from the TaskContract plus repo state; omissions are explicit."
|
|
183
|
+
}
|
|
184
|
+
},
|
|
185
|
+
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
186
|
+
}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$ref": "#/definitions/ControlApplyCheckRequest",
|
|
3
|
+
"definitions": {
|
|
4
|
+
"ControlApplyCheckRequest": {
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"target": {
|
|
8
|
+
"anyOf": [
|
|
9
|
+
{
|
|
10
|
+
"type": "object",
|
|
11
|
+
"properties": {
|
|
12
|
+
"kind": {
|
|
13
|
+
"type": "string",
|
|
14
|
+
"const": "original_project"
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
"required": [
|
|
18
|
+
"kind"
|
|
19
|
+
],
|
|
20
|
+
"additionalProperties": false,
|
|
21
|
+
"description": "Apply to the project the run originally came from."
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"type": "object",
|
|
25
|
+
"properties": {
|
|
26
|
+
"kind": {
|
|
27
|
+
"type": "string",
|
|
28
|
+
"const": "project"
|
|
29
|
+
},
|
|
30
|
+
"root": {
|
|
31
|
+
"type": "string",
|
|
32
|
+
"description": "Absolute path of the target project root."
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
"required": [
|
|
36
|
+
"kind",
|
|
37
|
+
"root"
|
|
38
|
+
],
|
|
39
|
+
"additionalProperties": false,
|
|
40
|
+
"description": "Apply to an explicitly named project root."
|
|
41
|
+
}
|
|
42
|
+
],
|
|
43
|
+
"description": "Where a work product is delivered: the original project or an explicit project root.",
|
|
44
|
+
"default": {
|
|
45
|
+
"kind": "original_project"
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
"additionalProperties": false,
|
|
50
|
+
"description": "Request body for a dry-run apply check."
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
54
|
+
}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$ref": "#/definitions/ControlApplyRequest",
|
|
3
|
+
"definitions": {
|
|
4
|
+
"ControlApplyRequest": {
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"target": {
|
|
8
|
+
"anyOf": [
|
|
9
|
+
{
|
|
10
|
+
"type": "object",
|
|
11
|
+
"properties": {
|
|
12
|
+
"kind": {
|
|
13
|
+
"type": "string",
|
|
14
|
+
"const": "original_project"
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
"required": [
|
|
18
|
+
"kind"
|
|
19
|
+
],
|
|
20
|
+
"additionalProperties": false,
|
|
21
|
+
"description": "Apply to the project the run originally came from."
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"type": "object",
|
|
25
|
+
"properties": {
|
|
26
|
+
"kind": {
|
|
27
|
+
"type": "string",
|
|
28
|
+
"const": "project"
|
|
29
|
+
},
|
|
30
|
+
"root": {
|
|
31
|
+
"type": "string",
|
|
32
|
+
"description": "Absolute path of the target project root."
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
"required": [
|
|
36
|
+
"kind",
|
|
37
|
+
"root"
|
|
38
|
+
],
|
|
39
|
+
"additionalProperties": false,
|
|
40
|
+
"description": "Apply to an explicitly named project root."
|
|
41
|
+
}
|
|
42
|
+
],
|
|
43
|
+
"description": "Where a work product is delivered: the original project or an explicit project root.",
|
|
44
|
+
"default": {
|
|
45
|
+
"kind": "original_project"
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
"mode": {
|
|
49
|
+
"type": "string",
|
|
50
|
+
"enum": [
|
|
51
|
+
"artifact_only",
|
|
52
|
+
"apply",
|
|
53
|
+
"branch",
|
|
54
|
+
"commit",
|
|
55
|
+
"pr"
|
|
56
|
+
],
|
|
57
|
+
"default": "apply",
|
|
58
|
+
"description": "Delivery mode: artifact_only (export only), apply to the tree, or as a branch, commit, or PR."
|
|
59
|
+
},
|
|
60
|
+
"branch": {
|
|
61
|
+
"type": "string",
|
|
62
|
+
"description": "Branch name for branch/pr modes."
|
|
63
|
+
},
|
|
64
|
+
"message": {
|
|
65
|
+
"type": "string",
|
|
66
|
+
"description": "Commit message for commit/pr modes."
|
|
67
|
+
}
|
|
68
|
+
},
|
|
69
|
+
"additionalProperties": false,
|
|
70
|
+
"description": "Request body applying a run's work product to a project."
|
|
71
|
+
}
|
|
72
|
+
},
|
|
73
|
+
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
74
|
+
}
|