@usine/orchestrator 0.4.1-next.290.ga7692ae → 0.4.1-next.291.g2bf4be2
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/operator/http.d.ts +54 -54
- package/dist/operator/http.d.ts.map +1 -1
- package/package.json +11 -11
package/dist/operator/http.d.ts
CHANGED
|
@@ -166,20 +166,42 @@ export declare class ConfigurationRevertRefusal extends ConfigurationRevertRefus
|
|
|
166
166
|
* The operator's HTTP API contract for reads and interventions, shared by server handlers and
|
|
167
167
|
* generated clients. An action's acknowledgement only means the request was accepted.
|
|
168
168
|
*/
|
|
169
|
-
export declare const OperatorApi: HttpApi.HttpApi<"OperatorApi", HttpApiGroup.HttpApiGroup<"operator", HttpApiEndpoint.HttpApiEndpoint<"
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
}>>, never, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
176
|
-
readonly ok: Schema.Literal<true>;
|
|
177
|
-
}>>, never, OperatorHttpPolicy, never> | HttpApiEndpoint.HttpApiEndpoint<"configuration", "GET", "/api/configuration", never, never, never, never, Schema.toCodecJson<typeof ConfigurationView>, never, OperatorHttpPolicy, never> | HttpApiEndpoint.HttpApiEndpoint<"configurationCapabilities", "GET", "/api/configuration/capabilities", never, never, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
169
|
+
export declare const OperatorApi: HttpApi.HttpApi<"OperatorApi", HttpApiGroup.HttpApiGroup<"operator", HttpApiEndpoint.HttpApiEndpoint<"deleteConfigurationEntity", "DELETE", "/api/configuration/entities/:kind/:identifier", Schema.toCodecStringTree<Schema.Struct<{
|
|
170
|
+
readonly kind: Schema.String;
|
|
171
|
+
readonly identifier: Schema.brand<Schema.NonEmptyString, "ConfigurationEntityId">;
|
|
172
|
+
}>>, never, Schema.toCodecJson<typeof ConfigurationWrite>, never, Schema.toCodecJson<typeof ConfigurationRevisionView>, Schema.toCodecJson<typeof RestartRequiredRefusal | typeof ReloadPreflightRefusal | typeof FactoryConfigRefusal | typeof StaleRevisionRefusal | typeof ConfigurationInvalidRefusal | typeof ConfigurationRevertRefusal>, OperatorHttpPolicy, never> | HttpApiEndpoint.HttpApiEndpoint<"agents", "GET", "/api/agents", never, never, never, never, Schema.toCodecJson<Schema.$Array<Schema.brand<Schema.String, "AgentName">>>, never, OperatorHttpPolicy, never> | HttpApiEndpoint.HttpApiEndpoint<"configurationRepositories", "GET", "/api/configuration/repositories", never, never, never, never, Schema.toCodecJson<Schema.$Array<Schema.brand<Schema.String, "RepositoryName">>>, never, OperatorHttpPolicy, never> | HttpApiEndpoint.HttpApiEndpoint<"configurationLabels", "GET", "/api/configuration/labels/:repository", Schema.toCodecStringTree<Schema.Struct<{
|
|
173
|
+
repository: Schema.brand<Schema.String, "RepositoryName">;
|
|
174
|
+
}>>, never, never, never, Schema.toCodecJson<Schema.$Array<typeof RepositoryLabel>>, never, OperatorHttpPolicy, never> | HttpApiEndpoint.HttpApiEndpoint<"serverVersion", "GET", "/api/version", never, never, never, never, Schema.toCodecJson<Schema.String>, never, OperatorHttpPolicy, never> | HttpApiEndpoint.HttpApiEndpoint<"configurationCapabilities", "GET", "/api/configuration/capabilities", never, never, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
178
175
|
readonly harnesses: Schema.$Array<Schema.Literals<readonly ["claude", "codex", "pi"]>>;
|
|
179
176
|
readonly efforts: Schema.$Array<Schema.Literals<readonly ["off", "minimal", "low", "medium", "high", "xhigh", "max"]>>;
|
|
180
|
-
}>>, never, OperatorHttpPolicy, never> | HttpApiEndpoint.HttpApiEndpoint<"
|
|
181
|
-
|
|
182
|
-
}>>, never, never, never, Schema.toCodecJson<
|
|
177
|
+
}>>, never, OperatorHttpPolicy, never> | HttpApiEndpoint.HttpApiEndpoint<"overview", "GET", "/api/overview", never, never, never, never, Schema.toCodecJson<Schema.Union<readonly [typeof import("./overview.ts").ReadyOverview, typeof import("./overview.ts").NeedsSetupOverview]>>, never, OperatorHttpPolicy, never> | HttpApiEndpoint.HttpApiEndpoint<"configuration", "GET", "/api/configuration", never, never, never, never, Schema.toCodecJson<typeof ConfigurationView>, never, OperatorHttpPolicy, never> | HttpApiEndpoint.HttpApiEndpoint<"project", "GET", "/api/projects/:project", Schema.toCodecStringTree<Schema.Struct<{
|
|
178
|
+
project: Schema.brand<Schema.String, "ProjectId">;
|
|
179
|
+
}>>, never, never, never, Schema.toCodecJson<typeof ProjectView>, never, OperatorHttpPolicy, never> | HttpApiEndpoint.HttpApiEndpoint<"githubChanges", "GET", "/api/runs/:runId/github-changes", Schema.toCodecStringTree<Schema.Struct<{
|
|
180
|
+
runId: Schema.brand<Schema.NonEmptyString, "RunId">;
|
|
181
|
+
}>>, never, never, never, Schema.toCodecJson<typeof RunGitHubChangesView>, never, OperatorHttpPolicy, never> | HttpApiEndpoint.HttpApiEndpoint<"task", "GET", "/api/projects/:owner/:repository/tasks/:item", Schema.toCodecStringTree<Schema.Struct<{
|
|
182
|
+
owner: Schema.String;
|
|
183
|
+
repository: Schema.String;
|
|
184
|
+
item: Schema.compose<Schema.brand<Schema.Int, "ItemNumber">, Schema.FiniteFromString>;
|
|
185
|
+
}>>, never, never, never, Schema.toCodecJson<typeof TaskView>, never, OperatorHttpPolicy, never> | HttpApiEndpoint.HttpApiEndpoint<"desk", "GET", "/api/desk", never, never, never, never, Schema.toCodecJson<typeof DeskView>, never, OperatorHttpPolicy, never> | HttpApiEndpoint.HttpApiEndpoint<"configurationEntity", "GET", "/api/configuration/entities/:kind/:identifier", Schema.toCodecStringTree<Schema.Struct<{
|
|
186
|
+
readonly kind: Schema.String;
|
|
187
|
+
readonly identifier: Schema.brand<Schema.NonEmptyString, "ConfigurationEntityId">;
|
|
188
|
+
}>>, never, never, never, Schema.toCodecJson<typeof ConfigurationEntityView>, Schema.toCodecJson<typeof RestartRequiredRefusal | typeof ReloadPreflightRefusal | typeof FactoryConfigRefusal | typeof StaleRevisionRefusal | typeof ConfigurationInvalidRefusal | typeof ConfigurationRevertRefusal>, OperatorHttpPolicy, never> | HttpApiEndpoint.HttpApiEndpoint<"configurationRevision", "GET", "/api/configuration/revisions/:number", Schema.toCodecStringTree<Schema.Struct<{
|
|
189
|
+
number: Schema.compose<Schema.brand<Schema.Int, "ConfigurationRevisionNumber">, Schema.FiniteFromString>;
|
|
190
|
+
}>>, never, never, never, Schema.toCodecJson<typeof ConfigurationRevisionView>, Schema.toCodecJson<typeof RestartRequiredRefusal | typeof ReloadPreflightRefusal | typeof FactoryConfigRefusal | typeof StaleRevisionRefusal | typeof ConfigurationInvalidRefusal | typeof ConfigurationRevertRefusal>, OperatorHttpPolicy, never> | HttpApiEndpoint.HttpApiEndpoint<"upgradeStatus", "GET", "/api/upgrade", never, never, never, never, Schema.toCodecJson<typeof UpgradeView>, never, OperatorHttpPolicy, never> | HttpApiEndpoint.HttpApiEndpoint<"statistics", "GET", "/api/statistics", never, Schema.toCodecStringTree<Schema.Struct<{
|
|
191
|
+
readonly window: Schema.withDecodingDefaultKey<Schema.compose<Schema.Literals<readonly ["7d", "30d", "all"]>, Schema.Union<readonly [Schema.String, Schema.decodeTo<Schema.String, Schema.NonEmptyArray<Schema.String>, never, never>]>>, never>;
|
|
192
|
+
}>>, never, never, Schema.toCodecJson<typeof StatisticsView>, never, OperatorHttpPolicy, never> | HttpApiEndpoint.HttpApiEndpoint<"runStatistics", "GET", "/api/statistics/runs", never, Schema.toCodecStringTree<Schema.Struct<{
|
|
193
|
+
readonly window: Schema.withDecodingDefaultKey<Schema.compose<Schema.Literals<readonly ["7d", "30d", "all"]>, Schema.Union<readonly [Schema.String, Schema.decodeTo<Schema.String, Schema.NonEmptyArray<Schema.String>, never, never>]>>, never>;
|
|
194
|
+
}>>, never, never, Schema.toCodecJson<typeof RunStatisticsView>, never, OperatorHttpPolicy, never> | HttpApiEndpoint.HttpApiEndpoint<"projectTask", "GET", "/api/projects/:project/tasks/:item", Schema.toCodecStringTree<Schema.Struct<{
|
|
195
|
+
project: Schema.brand<Schema.String, "ProjectId">;
|
|
196
|
+
item: Schema.compose<Schema.brand<Schema.Int, "ItemNumber">, Schema.FiniteFromString>;
|
|
197
|
+
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
198
|
+
readonly repository: Schema.brand<Schema.String, "RepositoryName">;
|
|
199
|
+
}>>, never, never, Schema.toCodecJson<typeof TaskView>, never, OperatorHttpPolicy, never> | HttpApiEndpoint.HttpApiEndpoint<"configurationRevisions", "GET", "/api/configuration/revisions", never, Schema.toCodecStringTree<Schema.Struct<{
|
|
200
|
+
readonly kind: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.decodeTo<Schema.String, Schema.NonEmptyArray<Schema.String>, never, never>]>>;
|
|
201
|
+
readonly identifier: Schema.optionalKey<Schema.compose<Schema.brand<Schema.NonEmptyString, "ConfigurationEntityId">, Schema.Union<readonly [Schema.String, Schema.decodeTo<Schema.String, Schema.NonEmptyArray<Schema.String>, never, never>]>>>;
|
|
202
|
+
readonly before: Schema.optionalKey<Schema.compose<Schema.brand<Schema.Int, "ConfigurationRevisionNumber">, Schema.compose<Schema.FiniteFromString, Schema.Union<readonly [Schema.String, Schema.decodeTo<Schema.String, Schema.NonEmptyArray<Schema.String>, never, never>]>>>>;
|
|
203
|
+
readonly limit: Schema.withDecodingDefaultKey<Schema.compose<Schema.Int, Schema.compose<Schema.FiniteFromString, Schema.Union<readonly [Schema.String, Schema.decodeTo<Schema.String, Schema.NonEmptyArray<Schema.String>, never, never>]>>>, never>;
|
|
204
|
+
}>>, never, never, Schema.toCodecJson<typeof ConfigurationRevisionPage>, Schema.toCodecJson<typeof RestartRequiredRefusal | typeof ReloadPreflightRefusal | typeof FactoryConfigRefusal | typeof StaleRevisionRefusal | typeof ConfigurationInvalidRefusal | typeof ConfigurationRevertRefusal>, OperatorHttpPolicy, never> | HttpApiEndpoint.HttpApiEndpoint<"detail", "GET", "/api/runs/:runId", Schema.toCodecStringTree<Schema.Struct<{
|
|
183
205
|
runId: Schema.brand<Schema.NonEmptyString, "RunId">;
|
|
184
206
|
}>>, Schema.toCodecStringTree<Schema.Union<readonly [Schema.decodeTo<Schema.toType<typeof ColdTranscriptRequest>, Schema.Struct<{
|
|
185
207
|
readonly after: Schema.optionalKey<Schema.Never>;
|
|
@@ -193,7 +215,15 @@ export declare const OperatorApi: HttpApi.HttpApi<"OperatorApi", HttpApiGroup.Ht
|
|
|
193
215
|
readonly after: Schema.optionalKey<Schema.Never>;
|
|
194
216
|
readonly before: Schema.compose<Schema.brand<Schema.Int, "TranscriptSequence">, Schema.compose<Schema.FiniteFromString, Schema.Union<readonly [Schema.String, Schema.decodeTo<Schema.String, Schema.NonEmptyArray<Schema.String>, never, never>]>>>;
|
|
195
217
|
readonly attempt: Schema.compose<Schema.brand<Schema.NonEmptyString, "AttemptId">, Schema.Union<readonly [Schema.String, Schema.decodeTo<Schema.String, Schema.NonEmptyArray<Schema.String>, never, never>]>>;
|
|
196
|
-
}>, never, never>]>>, never, never, Schema.toCodecJson<typeof RunDetailView>, never, OperatorHttpPolicy, never> | HttpApiEndpoint.HttpApiEndpoint<"
|
|
218
|
+
}>, never, never>]>>, never, never, Schema.toCodecJson<typeof RunDetailView>, never, OperatorHttpPolicy, never> | HttpApiEndpoint.HttpApiEndpoint<"approve", "POST", "/api/runs/:runId/approve", Schema.toCodecStringTree<Schema.Struct<{
|
|
219
|
+
runId: Schema.brand<Schema.NonEmptyString, "RunId">;
|
|
220
|
+
}>>, never, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
221
|
+
readonly ok: Schema.Literal<true>;
|
|
222
|
+
}>>, never, OperatorHttpPolicy, never> | HttpApiEndpoint.HttpApiEndpoint<"cancel", "POST", "/api/runs/:runId/cancel", Schema.toCodecStringTree<Schema.Struct<{
|
|
223
|
+
runId: Schema.brand<Schema.NonEmptyString, "RunId">;
|
|
224
|
+
}>>, never, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
225
|
+
readonly ok: Schema.Literal<true>;
|
|
226
|
+
}>>, never, OperatorHttpPolicy, never> | HttpApiEndpoint.HttpApiEndpoint<"discardLeftovers", "POST", "/api/workers/:worker/discard-leftovers", Schema.toCodecStringTree<Schema.Struct<{
|
|
197
227
|
worker: Schema.brand<Schema.String, "WorkerName">;
|
|
198
228
|
}>>, never, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
199
229
|
readonly ok: Schema.Literal<true>;
|
|
@@ -203,9 +233,7 @@ export declare const OperatorApi: HttpApi.HttpApi<"OperatorApi", HttpApiGroup.Ht
|
|
|
203
233
|
runId: Schema.brand<Schema.NonEmptyString, "RunId">;
|
|
204
234
|
}>>, never, Schema.toCodecJson<typeof EditAndRetry>, never, Schema.toCodecJson<Schema.Struct<{
|
|
205
235
|
readonly ok: Schema.Literal<true>;
|
|
206
|
-
}>>, never, OperatorHttpPolicy, never> | HttpApiEndpoint.HttpApiEndpoint<"
|
|
207
|
-
runId: Schema.brand<Schema.NonEmptyString, "RunId">;
|
|
208
|
-
}>>, never, never, never, Schema.toCodecJson<typeof RunGitHubChangesView>, never, OperatorHttpPolicy, never> | HttpApiEndpoint.HttpApiEndpoint<"intervene", "POST", "/api/runs/:runId/intervene", Schema.toCodecStringTree<Schema.Struct<{
|
|
236
|
+
}>>, never, OperatorHttpPolicy, never> | HttpApiEndpoint.HttpApiEndpoint<"intervene", "POST", "/api/runs/:runId/intervene", Schema.toCodecStringTree<Schema.Struct<{
|
|
209
237
|
runId: Schema.brand<Schema.NonEmptyString, "RunId">;
|
|
210
238
|
}>>, never, Schema.toCodecJson<typeof SessionIntervention>, never, Schema.toCodecJson<Schema.Struct<{
|
|
211
239
|
readonly ok: Schema.Literal<true>;
|
|
@@ -225,7 +253,7 @@ export declare const OperatorApi: HttpApi.HttpApi<"OperatorApi", HttpApiGroup.Ht
|
|
|
225
253
|
readonly toLane: Schema.brand<Schema.NonEmptyString, "BoardLaneId">;
|
|
226
254
|
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
227
255
|
readonly ok: Schema.Literal<true>;
|
|
228
|
-
}>>, never, OperatorHttpPolicy, never> | HttpApiEndpoint.HttpApiEndpoint<"
|
|
256
|
+
}>>, never, OperatorHttpPolicy, never> | HttpApiEndpoint.HttpApiEndpoint<"pause", "POST", "/api/loops/:loop/pause", Schema.toCodecStringTree<Schema.Struct<{
|
|
229
257
|
loop: Schema.brand<Schema.NonEmptyString, "LoopName">;
|
|
230
258
|
}>>, never, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
231
259
|
readonly ok: Schema.Literal<true>;
|
|
@@ -234,14 +262,7 @@ export declare const OperatorApi: HttpApi.HttpApi<"OperatorApi", HttpApiGroup.Ht
|
|
|
234
262
|
loop: Schema.brand<Schema.NonEmptyString, "LoopName">;
|
|
235
263
|
}>>, never, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
236
264
|
readonly ok: Schema.Literal<true>;
|
|
237
|
-
}>>, never, OperatorHttpPolicy, never> | HttpApiEndpoint.HttpApiEndpoint<"
|
|
238
|
-
project: Schema.brand<Schema.String, "ProjectId">;
|
|
239
|
-
}>>, never, never, never, Schema.toCodecJson<typeof ProjectView>, never, OperatorHttpPolicy, never> | HttpApiEndpoint.HttpApiEndpoint<"projectTask", "GET", "/api/projects/:project/tasks/:item", Schema.toCodecStringTree<Schema.Struct<{
|
|
240
|
-
project: Schema.brand<Schema.String, "ProjectId">;
|
|
241
|
-
item: Schema.compose<Schema.brand<Schema.Int, "ItemNumber">, Schema.FiniteFromString>;
|
|
242
|
-
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
243
|
-
readonly repository: Schema.brand<Schema.String, "RepositoryName">;
|
|
244
|
-
}>>, never, never, Schema.toCodecJson<typeof TaskView>, never, OperatorHttpPolicy, never> | HttpApiEndpoint.HttpApiEndpoint<"requestUpgrade", "POST", "/api/upgrade", never, never, Schema.toCodecJson<typeof UpgradeRequest>, never, Schema.toCodecJson<Schema.Struct<{
|
|
265
|
+
}>>, never, OperatorHttpPolicy, never> | HttpApiEndpoint.HttpApiEndpoint<"requestUpgrade", "POST", "/api/upgrade", never, never, Schema.toCodecJson<typeof UpgradeRequest>, never, Schema.toCodecJson<Schema.Struct<{
|
|
245
266
|
readonly ok: Schema.Literal<true>;
|
|
246
267
|
}>>, never, OperatorHttpPolicy, never> | HttpApiEndpoint.HttpApiEndpoint<"resetCycleBudget", "POST", "/api/cycle-budgets/reset", never, never, Schema.toCodecJson<Schema.Struct<{
|
|
247
268
|
readonly askId: Schema.brand<Schema.brand<Schema.NonEmptyString, "EventId">, "CycleBudgetAskId">;
|
|
@@ -257,17 +278,7 @@ export declare const OperatorApi: HttpApi.HttpApi<"OperatorApi", HttpApiGroup.Ht
|
|
|
257
278
|
runId: Schema.brand<Schema.NonEmptyString, "RunId">;
|
|
258
279
|
}>>, never, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
259
280
|
readonly ok: Schema.Literal<true>;
|
|
260
|
-
}>>, never, OperatorHttpPolicy, never> | HttpApiEndpoint.HttpApiEndpoint<"
|
|
261
|
-
runId: Schema.brand<Schema.NonEmptyString, "RunId">;
|
|
262
|
-
}>>, never, Schema.toCodecJson<typeof EditAndRetry>, never, Schema.toCodecJson<Schema.Union<readonly [typeof import("@usine/engine/engine").Claimed, typeof import("@usine/engine/engine").CycleBlocked]>>, never, OperatorHttpPolicy, never> | HttpApiEndpoint.HttpApiEndpoint<"runStatistics", "GET", "/api/statistics/runs", never, Schema.toCodecStringTree<Schema.Struct<{
|
|
263
|
-
readonly window: Schema.withDecodingDefaultKey<Schema.compose<Schema.Literals<readonly ["7d", "30d", "all"]>, Schema.Union<readonly [Schema.String, Schema.decodeTo<Schema.String, Schema.NonEmptyArray<Schema.String>, never, never>]>>, never>;
|
|
264
|
-
}>>, never, never, Schema.toCodecJson<typeof RunStatisticsView>, never, OperatorHttpPolicy, never> | HttpApiEndpoint.HttpApiEndpoint<"serverVersion", "GET", "/api/version", never, never, never, never, Schema.toCodecJson<Schema.String>, never, OperatorHttpPolicy, never> | HttpApiEndpoint.HttpApiEndpoint<"statistics", "GET", "/api/statistics", never, Schema.toCodecStringTree<Schema.Struct<{
|
|
265
|
-
readonly window: Schema.withDecodingDefaultKey<Schema.compose<Schema.Literals<readonly ["7d", "30d", "all"]>, Schema.Union<readonly [Schema.String, Schema.decodeTo<Schema.String, Schema.NonEmptyArray<Schema.String>, never, never>]>>, never>;
|
|
266
|
-
}>>, never, never, Schema.toCodecJson<typeof StatisticsView>, never, OperatorHttpPolicy, never> | HttpApiEndpoint.HttpApiEndpoint<"task", "GET", "/api/projects/:owner/:repository/tasks/:item", Schema.toCodecStringTree<Schema.Struct<{
|
|
267
|
-
owner: Schema.String;
|
|
268
|
-
repository: Schema.String;
|
|
269
|
-
item: Schema.compose<Schema.brand<Schema.Int, "ItemNumber">, Schema.FiniteFromString>;
|
|
270
|
-
}>>, never, never, never, Schema.toCodecJson<typeof TaskView>, never, OperatorHttpPolicy, never> | HttpApiEndpoint.HttpApiEndpoint<"undoDismissNeed", "POST", "/api/attention/undo", never, never, Schema.toCodecJson<typeof AttentionKey>, never, Schema.toCodecJson<Schema.Struct<{
|
|
281
|
+
}>>, never, OperatorHttpPolicy, never> | HttpApiEndpoint.HttpApiEndpoint<"undoDismissNeed", "POST", "/api/attention/undo", never, never, Schema.toCodecJson<typeof AttentionKey>, never, Schema.toCodecJson<Schema.Struct<{
|
|
271
282
|
readonly ok: Schema.Literal<true>;
|
|
272
283
|
}>>, never, OperatorHttpPolicy, never> | HttpApiEndpoint.HttpApiEndpoint<"unpause", "POST", "/api/loops/:loop/unpause", Schema.toCodecStringTree<Schema.Struct<{
|
|
273
284
|
loop: Schema.brand<Schema.NonEmptyString, "LoopName">;
|
|
@@ -278,7 +289,11 @@ export declare const OperatorApi: HttpApi.HttpApi<"OperatorApi", HttpApiGroup.Ht
|
|
|
278
289
|
loop: Schema.brand<Schema.NonEmptyString, "LoopName">;
|
|
279
290
|
}>>, never, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
280
291
|
readonly ok: Schema.Literal<true>;
|
|
281
|
-
}>>, never, OperatorHttpPolicy, never> | HttpApiEndpoint.HttpApiEndpoint<"
|
|
292
|
+
}>>, never, OperatorHttpPolicy, never> | HttpApiEndpoint.HttpApiEndpoint<"runAgain", "POST", "/api/runs/:runId/run-again", Schema.toCodecStringTree<Schema.Struct<{
|
|
293
|
+
runId: Schema.brand<Schema.NonEmptyString, "RunId">;
|
|
294
|
+
}>>, never, Schema.toCodecJson<typeof EditAndRetry>, never, Schema.toCodecJson<Schema.Union<readonly [typeof import("@usine/engine/engine").Claimed, typeof import("@usine/engine/engine").CycleBlocked]>>, never, OperatorHttpPolicy, never> | HttpApiEndpoint.HttpApiEndpoint<"revertConfigurationRevision", "POST", "/api/configuration/revisions/:number/revert", Schema.toCodecStringTree<Schema.Struct<{
|
|
295
|
+
number: Schema.compose<Schema.brand<Schema.Int, "ConfigurationRevisionNumber">, Schema.FiniteFromString>;
|
|
296
|
+
}>>, never, Schema.toCodecJson<typeof ConfigurationWrite>, never, Schema.toCodecJson<typeof ConfigurationRevisionView>, Schema.toCodecJson<typeof RestartRequiredRefusal | typeof ReloadPreflightRefusal | typeof FactoryConfigRefusal | typeof StaleRevisionRefusal | typeof ConfigurationInvalidRefusal | typeof ConfigurationRevertRefusal>, OperatorHttpPolicy, never> | HttpApiEndpoint.HttpApiEndpoint<"checkLoop", "POST", "/api/configuration/loops/check", never, never, Schema.toCodecJson<Schema.Union<readonly [Schema.Struct<{
|
|
282
297
|
readonly name: Schema.brand<Schema.NonEmptyString, "LoopName">;
|
|
283
298
|
readonly value: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
284
299
|
readonly text: Schema.optionalKey<Schema.Never>;
|
|
@@ -286,20 +301,7 @@ export declare const OperatorApi: HttpApi.HttpApi<"OperatorApi", HttpApiGroup.Ht
|
|
|
286
301
|
readonly name: Schema.brand<Schema.NonEmptyString, "LoopName">;
|
|
287
302
|
readonly text: Schema.String;
|
|
288
303
|
readonly value: Schema.optionalKey<Schema.Never>;
|
|
289
|
-
}>]>>, never, Schema.toCodecJson<typeof LoopCheck>, Schema.toCodecJson<typeof RestartRequiredRefusal | typeof ReloadPreflightRefusal | typeof FactoryConfigRefusal | typeof StaleRevisionRefusal | typeof ConfigurationInvalidRefusal | typeof ConfigurationRevertRefusal>, OperatorHttpPolicy, never> | HttpApiEndpoint.HttpApiEndpoint<"
|
|
290
|
-
readonly kind: Schema.String;
|
|
291
|
-
readonly identifier: Schema.brand<Schema.NonEmptyString, "ConfigurationEntityId">;
|
|
292
|
-
}>>, never, never, never, Schema.toCodecJson<typeof ConfigurationEntityView>, Schema.toCodecJson<typeof RestartRequiredRefusal | typeof ReloadPreflightRefusal | typeof FactoryConfigRefusal | typeof StaleRevisionRefusal | typeof ConfigurationInvalidRefusal | typeof ConfigurationRevertRefusal>, OperatorHttpPolicy, never> | HttpApiEndpoint.HttpApiEndpoint<"configurationRevision", "GET", "/api/configuration/revisions/:number", Schema.toCodecStringTree<Schema.Struct<{
|
|
293
|
-
number: Schema.compose<Schema.brand<Schema.Int, "ConfigurationRevisionNumber">, Schema.FiniteFromString>;
|
|
294
|
-
}>>, never, never, never, Schema.toCodecJson<typeof ConfigurationRevisionView>, Schema.toCodecJson<typeof RestartRequiredRefusal | typeof ReloadPreflightRefusal | typeof FactoryConfigRefusal | typeof StaleRevisionRefusal | typeof ConfigurationInvalidRefusal | typeof ConfigurationRevertRefusal>, OperatorHttpPolicy, never> | HttpApiEndpoint.HttpApiEndpoint<"configurationRevisions", "GET", "/api/configuration/revisions", never, Schema.toCodecStringTree<Schema.Struct<{
|
|
295
|
-
readonly kind: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.decodeTo<Schema.String, Schema.NonEmptyArray<Schema.String>, never, never>]>>;
|
|
296
|
-
readonly identifier: Schema.optionalKey<Schema.compose<Schema.brand<Schema.NonEmptyString, "ConfigurationEntityId">, Schema.Union<readonly [Schema.String, Schema.decodeTo<Schema.String, Schema.NonEmptyArray<Schema.String>, never, never>]>>>;
|
|
297
|
-
readonly before: Schema.optionalKey<Schema.compose<Schema.brand<Schema.Int, "ConfigurationRevisionNumber">, Schema.compose<Schema.FiniteFromString, Schema.Union<readonly [Schema.String, Schema.decodeTo<Schema.String, Schema.NonEmptyArray<Schema.String>, never, never>]>>>>;
|
|
298
|
-
readonly limit: Schema.withDecodingDefaultKey<Schema.compose<Schema.Int, Schema.compose<Schema.FiniteFromString, Schema.Union<readonly [Schema.String, Schema.decodeTo<Schema.String, Schema.NonEmptyArray<Schema.String>, never, never>]>>>, never>;
|
|
299
|
-
}>>, never, never, Schema.toCodecJson<typeof ConfigurationRevisionPage>, Schema.toCodecJson<typeof RestartRequiredRefusal | typeof ReloadPreflightRefusal | typeof FactoryConfigRefusal | typeof StaleRevisionRefusal | typeof ConfigurationInvalidRefusal | typeof ConfigurationRevertRefusal>, OperatorHttpPolicy, never> | HttpApiEndpoint.HttpApiEndpoint<"deleteConfigurationEntity", "DELETE", "/api/configuration/entities/:kind/:identifier", Schema.toCodecStringTree<Schema.Struct<{
|
|
300
|
-
readonly kind: Schema.String;
|
|
301
|
-
readonly identifier: Schema.brand<Schema.NonEmptyString, "ConfigurationEntityId">;
|
|
302
|
-
}>>, never, Schema.toCodecJson<typeof ConfigurationWrite>, never, Schema.toCodecJson<typeof ConfigurationRevisionView>, Schema.toCodecJson<typeof RestartRequiredRefusal | typeof ReloadPreflightRefusal | typeof FactoryConfigRefusal | typeof StaleRevisionRefusal | typeof ConfigurationInvalidRefusal | typeof ConfigurationRevertRefusal>, OperatorHttpPolicy, never> | HttpApiEndpoint.HttpApiEndpoint<"previewLoop", "POST", "/api/configuration/loops/preview", never, never, Schema.toCodecJson<typeof LoopPreviewRequest>, never, Schema.toCodecJson<typeof LoopPreview>, Schema.toCodecJson<typeof RestartRequiredRefusal | typeof ReloadPreflightRefusal | typeof FactoryConfigRefusal | typeof StaleRevisionRefusal | typeof ConfigurationInvalidRefusal | typeof ConfigurationRevertRefusal>, OperatorHttpPolicy, never> | HttpApiEndpoint.HttpApiEndpoint<"replaceConfigurationEntity", "PUT", "/api/configuration/entities/:kind/:identifier", Schema.toCodecStringTree<Schema.Struct<{
|
|
304
|
+
}>]>>, never, Schema.toCodecJson<typeof LoopCheck>, Schema.toCodecJson<typeof RestartRequiredRefusal | typeof ReloadPreflightRefusal | typeof FactoryConfigRefusal | typeof StaleRevisionRefusal | typeof ConfigurationInvalidRefusal | typeof ConfigurationRevertRefusal>, OperatorHttpPolicy, never> | HttpApiEndpoint.HttpApiEndpoint<"previewLoop", "POST", "/api/configuration/loops/preview", never, never, Schema.toCodecJson<typeof LoopPreviewRequest>, never, Schema.toCodecJson<typeof LoopPreview>, Schema.toCodecJson<typeof RestartRequiredRefusal | typeof ReloadPreflightRefusal | typeof FactoryConfigRefusal | typeof StaleRevisionRefusal | typeof ConfigurationInvalidRefusal | typeof ConfigurationRevertRefusal>, OperatorHttpPolicy, never> | HttpApiEndpoint.HttpApiEndpoint<"replaceConfigurationEntity", "PUT", "/api/configuration/entities/:kind/:identifier", Schema.toCodecStringTree<Schema.Struct<{
|
|
303
305
|
readonly kind: Schema.String;
|
|
304
306
|
readonly identifier: Schema.brand<Schema.NonEmptyString, "ConfigurationEntityId">;
|
|
305
307
|
}>>, never, Schema.toCodecJson<Schema.Union<readonly [Schema.Struct<{
|
|
@@ -314,7 +316,5 @@ export declare const OperatorApi: HttpApi.HttpApi<"OperatorApi", HttpApiGroup.Ht
|
|
|
314
316
|
readonly text: Schema.String;
|
|
315
317
|
readonly value: Schema.optionalKey<Schema.Never>;
|
|
316
318
|
readonly position: Schema.optionalKey<Schema.Int>;
|
|
317
|
-
}>]>>, never, Schema.toCodecJson<typeof ConfigurationRevisionView>, Schema.toCodecJson<typeof RestartRequiredRefusal | typeof ReloadPreflightRefusal | typeof FactoryConfigRefusal | typeof StaleRevisionRefusal | typeof ConfigurationInvalidRefusal | typeof ConfigurationRevertRefusal>, OperatorHttpPolicy, never
|
|
318
|
-
number: Schema.compose<Schema.brand<Schema.Int, "ConfigurationRevisionNumber">, Schema.FiniteFromString>;
|
|
319
|
-
}>>, never, Schema.toCodecJson<typeof ConfigurationWrite>, never, Schema.toCodecJson<typeof ConfigurationRevisionView>, Schema.toCodecJson<typeof RestartRequiredRefusal | typeof ReloadPreflightRefusal | typeof FactoryConfigRefusal | typeof StaleRevisionRefusal | typeof ConfigurationInvalidRefusal | typeof ConfigurationRevertRefusal>, OperatorHttpPolicy, never>, false>>;
|
|
319
|
+
}>]>>, never, Schema.toCodecJson<typeof ConfigurationRevisionView>, Schema.toCodecJson<typeof RestartRequiredRefusal | typeof ReloadPreflightRefusal | typeof FactoryConfigRefusal | typeof StaleRevisionRefusal | typeof ConfigurationInvalidRefusal | typeof ConfigurationRevertRefusal>, OperatorHttpPolicy, never>, false>>;
|
|
320
320
|
//# sourceMappingURL=http.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"http.d.ts","sourceRoot":"","sources":["../../src/operator/http.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAEL,SAAS,EACT,kBAAkB,EAClB,WAAW,EACZ,MAAM,gCAAgC,CAAC;AACxC,OAAO,EACL,SAAS,EACT,SAAS,EACT,kBAAkB,EAClB,WAAW,GACZ,MAAM,gCAAgC,CAAC;AAGxC,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AACxD,OAAO,EAGL,sBAAsB,EACvB,MAAM,6BAA6B,CAAC;AACrC,OAAO,EACL,uBAAuB,EAEvB,yBAAyB,EACzB,yBAAyB,EACzB,kBAAkB,EAGnB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EACL,uBAAuB,EACvB,wBAAwB,EACxB,yBAAyB,EACzB,yBAAyB,EACzB,kBAAkB,GACnB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAC3D,OAAO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AUzC;CAAG;AAEJ,qDAAqD;AACrD,MAAM,MAAM,aAAa,GAAG,sBAAsB,GAAG,sBAAsB,GAAG,oBAAoB,CAAC;AAEnG,0FAA0F;AAC1F,eAAO,MAAM,aAAa,UAAW,mBAAmB,WAAW,MAAM,KAAG,aA+BxE,CAAC;;;;;;;AAEL,qBAAa,oBAAqB,SAAQ,yBAUzC;CAAG;;;;;;;;;;;;AAEJ,qBAAa,2BAA4B,SAAQ,gCAchD;CAAG;;;;;;AAEJ,qBAAa,0BAA2B,SAAQ,+BAS/C;CAAG;AAoFJ;;;GAGG;AACH,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;+TA2NvB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@usine/orchestrator",
|
|
3
|
-
"version": "0.4.1-next.
|
|
3
|
+
"version": "0.4.1-next.291.g2bf4be2",
|
|
4
4
|
"description": "The embeddable usine composition: the full engine as an Effect layer, startable in-process.",
|
|
5
5
|
"license": "AGPL-3.0-only",
|
|
6
6
|
"repository": {
|
|
@@ -90,22 +90,22 @@
|
|
|
90
90
|
"dependencies": {
|
|
91
91
|
"@effect/platform-node": "4.0.6",
|
|
92
92
|
"@effect/platform-node-shared": "4.0.6",
|
|
93
|
-
"@usine/agents": "0.5.1-next.
|
|
94
|
-
"@usine/
|
|
95
|
-
"@usine/
|
|
96
|
-
"@usine/engine": "0.5.1-next.
|
|
97
|
-
"@usine/
|
|
98
|
-
"@usine/
|
|
99
|
-
"@usine/
|
|
100
|
-
"@usine/github": "0.3.1-next.
|
|
93
|
+
"@usine/agents": "0.5.1-next.291.g2bf4be2",
|
|
94
|
+
"@usine/core": "0.5.1-next.291.g2bf4be2",
|
|
95
|
+
"@usine/executor": "0.4.1-next.291.g2bf4be2",
|
|
96
|
+
"@usine/engine": "0.5.1-next.291.g2bf4be2",
|
|
97
|
+
"@usine/durable": "0.2.1-next.291.g2bf4be2",
|
|
98
|
+
"@usine/config": "0.4.1-next.291.g2bf4be2",
|
|
99
|
+
"@usine/expression": "0.4.1-next.291.g2bf4be2",
|
|
100
|
+
"@usine/github": "0.3.1-next.291.g2bf4be2"
|
|
101
101
|
},
|
|
102
102
|
"devDependencies": {
|
|
103
103
|
"@effect/vitest": "4.0.6",
|
|
104
104
|
"effect": "4.0.6",
|
|
105
105
|
"typescript": "7.0.2",
|
|
106
106
|
"vitest": "5.0.5",
|
|
107
|
-
"@usine/
|
|
108
|
-
"@usine/
|
|
107
|
+
"@usine/tsconfig": "0.0.0",
|
|
108
|
+
"@usine/gateway": "0.2.1-next.291.g2bf4be2"
|
|
109
109
|
},
|
|
110
110
|
"peerDependencies": {
|
|
111
111
|
"effect": "4.0.6"
|