@cat-factory/contracts 0.34.0 → 0.35.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/api-keys.d.ts +17 -0
- package/dist/api-keys.d.ts.map +1 -1
- package/dist/api-keys.js +2 -0
- package/dist/api-keys.js.map +1 -1
- package/dist/github.d.ts +14 -0
- package/dist/github.d.ts.map +1 -1
- package/dist/github.js +13 -0
- package/dist/github.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/observability.d.ts +63 -0
- package/dist/observability.d.ts.map +1 -1
- package/dist/observability.js +57 -0
- package/dist/observability.js.map +1 -1
- package/dist/requests.d.ts +7 -0
- package/dist/requests.d.ts.map +1 -1
- package/dist/requests.js +2 -0
- package/dist/requests.js.map +1 -1
- package/dist/routes/_shared.d.ts +49 -0
- package/dist/routes/_shared.d.ts.map +1 -0
- package/dist/routes/_shared.js +34 -0
- package/dist/routes/_shared.js.map +1 -0
- package/dist/routes/accounts.d.ts +775 -0
- package/dist/routes/accounts.d.ts.map +1 -0
- package/dist/routes/accounts.js +145 -0
- package/dist/routes/accounts.js.map +1 -0
- package/dist/routes/agent-runs.d.ts +659 -0
- package/dist/routes/agent-runs.d.ts.map +1 -0
- package/dist/routes/agent-runs.js +33 -0
- package/dist/routes/agent-runs.js.map +1 -0
- package/dist/routes/api-keys.d.ts +245 -0
- package/dist/routes/api-keys.d.ts.map +1 -0
- package/dist/routes/api-keys.js +49 -0
- package/dist/routes/api-keys.js.map +1 -0
- package/dist/routes/auth.d.ts +411 -0
- package/dist/routes/auth.d.ts.map +1 -0
- package/dist/routes/auth.js +129 -0
- package/dist/routes/auth.js.map +1 -0
- package/dist/routes/board.d.ts +1260 -0
- package/dist/routes/board.d.ts.map +1 -0
- package/dist/routes/board.js +85 -0
- package/dist/routes/board.js.map +1 -0
- package/dist/routes/bootstrap.d.ts +395 -0
- package/dist/routes/bootstrap.d.ts.map +1 -0
- package/dist/routes/bootstrap.js +56 -0
- package/dist/routes/bootstrap.js.map +1 -0
- package/dist/routes/brainstorm.d.ts +482 -0
- package/dist/routes/brainstorm.d.ts.map +1 -0
- package/dist/routes/brainstorm.js +69 -0
- package/dist/routes/brainstorm.js.map +1 -0
- package/dist/routes/clarity.d.ts +462 -0
- package/dist/routes/clarity.d.ts.map +1 -0
- package/dist/routes/clarity.js +67 -0
- package/dist/routes/clarity.js.map +1 -0
- package/dist/routes/consensus.d.ts +71 -0
- package/dist/routes/consensus.d.ts.map +1 -0
- package/dist/routes/consensus.js +23 -0
- package/dist/routes/consensus.js.map +1 -0
- package/dist/routes/documents.d.ts +449 -0
- package/dist/routes/documents.d.ts.map +1 -0
- package/dist/routes/documents.js +89 -0
- package/dist/routes/documents.js.map +1 -0
- package/dist/routes/environments.d.ts +715 -0
- package/dist/routes/environments.d.ts.map +1 -0
- package/dist/routes/environments.js +82 -0
- package/dist/routes/environments.js.map +1 -0
- package/dist/routes/execution.d.ts +2768 -0
- package/dist/routes/execution.d.ts.map +1 -0
- package/dist/routes/execution.js +119 -0
- package/dist/routes/execution.js.map +1 -0
- package/dist/routes/followUp.d.ts +277 -0
- package/dist/routes/followUp.d.ts.map +1 -0
- package/dist/routes/followUp.js +47 -0
- package/dist/routes/followUp.js.map +1 -0
- package/dist/routes/fragment-library.d.ts +594 -0
- package/dist/routes/fragment-library.d.ts.map +1 -0
- package/dist/routes/fragment-library.js +102 -0
- package/dist/routes/fragment-library.js.map +1 -0
- package/dist/routes/github.d.ts +807 -0
- package/dist/routes/github.d.ts.map +1 -0
- package/dist/routes/github.js +157 -0
- package/dist/routes/github.js.map +1 -0
- package/dist/routes/human-review.d.ts +290 -0
- package/dist/routes/human-review.d.ts.map +1 -0
- package/dist/routes/human-review.js +20 -0
- package/dist/routes/human-review.js.map +1 -0
- package/dist/routes/human-test.d.ts +1435 -0
- package/dist/routes/human-test.d.ts.map +1 -0
- package/dist/routes/human-test.js +48 -0
- package/dist/routes/human-test.js.map +1 -0
- package/dist/routes/incident-enrichment.d.ts +110 -0
- package/dist/routes/incident-enrichment.d.ts.map +1 -0
- package/dist/routes/incident-enrichment.js +26 -0
- package/dist/routes/incident-enrichment.js.map +1 -0
- package/dist/routes/index.d.ts +47 -0
- package/dist/routes/index.d.ts.map +1 -0
- package/dist/routes/index.js +50 -0
- package/dist/routes/index.js.map +1 -0
- package/dist/routes/kaizen.d.ts +113 -0
- package/dist/routes/kaizen.d.ts.map +1 -0
- package/dist/routes/kaizen.js +22 -0
- package/dist/routes/kaizen.js.map +1 -0
- package/dist/routes/localModels.d.ts +163 -0
- package/dist/routes/localModels.d.ts.map +1 -0
- package/dist/routes/localModels.js +41 -0
- package/dist/routes/localModels.js.map +1 -0
- package/dist/routes/localSettings.d.ts +93 -0
- package/dist/routes/localSettings.d.ts.map +1 -0
- package/dist/routes/localSettings.js +22 -0
- package/dist/routes/localSettings.js.map +1 -0
- package/dist/routes/merge.d.ts +197 -0
- package/dist/routes/merge.d.ts.map +1 -0
- package/dist/routes/merge.js +36 -0
- package/dist/routes/merge.js.map +1 -0
- package/dist/routes/model-presets.d.ts +162 -0
- package/dist/routes/model-presets.d.ts.map +1 -0
- package/dist/routes/model-presets.js +36 -0
- package/dist/routes/model-presets.js.map +1 -0
- package/dist/routes/models.d.ts +123 -0
- package/dist/routes/models.d.ts.map +1 -0
- package/dist/routes/models.js +25 -0
- package/dist/routes/models.js.map +1 -0
- package/dist/routes/notifications.d.ts +213 -0
- package/dist/routes/notifications.d.ts.map +1 -0
- package/dist/routes/notifications.js +31 -0
- package/dist/routes/notifications.js.map +1 -0
- package/dist/routes/openrouter.d.ts +145 -0
- package/dist/routes/openrouter.d.ts.map +1 -0
- package/dist/routes/openrouter.js +32 -0
- package/dist/routes/openrouter.js.map +1 -0
- package/dist/routes/personal-subscriptions.d.ts +124 -0
- package/dist/routes/personal-subscriptions.d.ts.map +1 -0
- package/dist/routes/personal-subscriptions.js +32 -0
- package/dist/routes/personal-subscriptions.js.map +1 -0
- package/dist/routes/pipelines.d.ts +457 -0
- package/dist/routes/pipelines.d.ts.map +1 -0
- package/dist/routes/pipelines.js +51 -0
- package/dist/routes/pipelines.js.map +1 -0
- package/dist/routes/prompt-fragments.d.ts +52 -0
- package/dist/routes/prompt-fragments.d.ts.map +1 -0
- package/dist/routes/prompt-fragments.js +14 -0
- package/dist/routes/prompt-fragments.js.map +1 -0
- package/dist/routes/provisioning-logs.d.ts +45 -0
- package/dist/routes/provisioning-logs.d.ts.map +1 -0
- package/dist/routes/provisioning-logs.js +14 -0
- package/dist/routes/provisioning-logs.js.map +1 -0
- package/dist/routes/recurring.d.ts +309 -0
- package/dist/routes/recurring.d.ts.map +1 -0
- package/dist/routes/recurring.js +50 -0
- package/dist/routes/recurring.js.map +1 -0
- package/dist/routes/release.d.ts +218 -0
- package/dist/routes/release.d.ts.map +1 -0
- package/dist/routes/release.js +47 -0
- package/dist/routes/release.js.map +1 -0
- package/dist/routes/requirements.d.ts +901 -0
- package/dist/routes/requirements.d.ts.map +1 -0
- package/dist/routes/requirements.js +96 -0
- package/dist/routes/requirements.js.map +1 -0
- package/dist/routes/runners.d.ts +442 -0
- package/dist/routes/runners.d.ts.map +1 -0
- package/dist/routes/runners.js +47 -0
- package/dist/routes/runners.js.map +1 -0
- package/dist/routes/sandbox.d.ts +898 -0
- package/dist/routes/sandbox.d.ts.map +1 -0
- package/dist/routes/sandbox.js +119 -0
- package/dist/routes/sandbox.js.map +1 -0
- package/dist/routes/service-fragment-defaults.d.ts +66 -0
- package/dist/routes/service-fragment-defaults.d.ts.map +1 -0
- package/dist/routes/service-fragment-defaults.js +20 -0
- package/dist/routes/service-fragment-defaults.js.map +1 -0
- package/dist/routes/services.d.ts +224 -0
- package/dist/routes/services.d.ts.map +1 -0
- package/dist/routes/services.js +44 -0
- package/dist/routes/services.js.map +1 -0
- package/dist/routes/slack.d.ts +332 -0
- package/dist/routes/slack.d.ts.map +1 -0
- package/dist/routes/slack.js +72 -0
- package/dist/routes/slack.js.map +1 -0
- package/dist/routes/spec.d.ts +76 -0
- package/dist/routes/spec.d.ts.map +1 -0
- package/dist/routes/spec.js +17 -0
- package/dist/routes/spec.js.map +1 -0
- package/dist/routes/tasks.d.ts +723 -0
- package/dist/routes/tasks.d.ts.map +1 -0
- package/dist/routes/tasks.js +108 -0
- package/dist/routes/tasks.js.map +1 -0
- package/dist/routes/tracker.d.ts +77 -0
- package/dist/routes/tracker.d.ts.map +1 -0
- package/dist/routes/tracker.js +20 -0
- package/dist/routes/tracker.js.map +1 -0
- package/dist/routes/user-secret.d.ts +231 -0
- package/dist/routes/user-secret.d.ts.map +1 -0
- package/dist/routes/user-secret.js +49 -0
- package/dist/routes/user-secret.js.map +1 -0
- package/dist/routes/vendor-credentials.d.ts +120 -0
- package/dist/routes/vendor-credentials.d.ts.map +1 -0
- package/dist/routes/vendor-credentials.js +33 -0
- package/dist/routes/vendor-credentials.js.map +1 -0
- package/dist/routes/workspace-settings.d.ts +93 -0
- package/dist/routes/workspace-settings.d.ts.map +1 -0
- package/dist/routes/workspace-settings.js +20 -0
- package/dist/routes/workspace-settings.js.map +1 -0
- package/dist/routes/workspaces.d.ts +1309 -0
- package/dist/routes/workspaces.d.ts.map +1 -0
- package/dist/routes/workspaces.js +45 -0
- package/dist/routes/workspaces.js.map +1 -0
- package/package.json +3 -1
|
@@ -0,0 +1,2768 @@
|
|
|
1
|
+
import { ContractNoBody } from '@toad-contracts/valibot';
|
|
2
|
+
import * as v from 'valibot';
|
|
3
|
+
export declare const startExecutionContract: {
|
|
4
|
+
readonly method: "post";
|
|
5
|
+
readonly requestPathParamsSchema: v.ObjectSchema<{
|
|
6
|
+
readonly blockId: v.StringSchema<undefined>;
|
|
7
|
+
}, undefined> & import("@toad-contracts/core").ObjectKeysCarrier;
|
|
8
|
+
readonly pathResolver: ({ blockId }: {
|
|
9
|
+
blockId: string;
|
|
10
|
+
}) => string;
|
|
11
|
+
readonly requestBodySchema: v.ObjectSchema<{
|
|
12
|
+
readonly pipelineId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
|
|
13
|
+
}, undefined>;
|
|
14
|
+
readonly responsesByStatusCode: {
|
|
15
|
+
readonly '4xx': v.ObjectSchema<{
|
|
16
|
+
readonly error: v.ObjectSchema<{
|
|
17
|
+
readonly code: v.StringSchema<undefined>;
|
|
18
|
+
readonly message: v.StringSchema<undefined>;
|
|
19
|
+
readonly details: v.OptionalSchema<v.UnknownSchema, undefined>;
|
|
20
|
+
readonly issues: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
21
|
+
readonly path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
22
|
+
readonly message: v.StringSchema<undefined>;
|
|
23
|
+
}, undefined>, undefined>, undefined>;
|
|
24
|
+
}, undefined>;
|
|
25
|
+
}, undefined>;
|
|
26
|
+
readonly '5xx': v.ObjectSchema<{
|
|
27
|
+
readonly error: v.ObjectSchema<{
|
|
28
|
+
readonly code: v.StringSchema<undefined>;
|
|
29
|
+
readonly message: v.StringSchema<undefined>;
|
|
30
|
+
readonly details: v.OptionalSchema<v.UnknownSchema, undefined>;
|
|
31
|
+
readonly issues: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
32
|
+
readonly path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
33
|
+
readonly message: v.StringSchema<undefined>;
|
|
34
|
+
}, undefined>, undefined>, undefined>;
|
|
35
|
+
}, undefined>;
|
|
36
|
+
}, undefined>;
|
|
37
|
+
readonly 201: v.ObjectSchema<{
|
|
38
|
+
readonly id: v.StringSchema<undefined>;
|
|
39
|
+
readonly blockId: v.StringSchema<undefined>;
|
|
40
|
+
readonly pipelineId: v.StringSchema<undefined>;
|
|
41
|
+
readonly pipelineName: v.StringSchema<undefined>;
|
|
42
|
+
readonly steps: v.ArraySchema<v.ObjectSchema<{
|
|
43
|
+
readonly runId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
44
|
+
readonly agentKind: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
|
|
45
|
+
readonly state: v.PicklistSchema<["pending", "working", "waiting_decision", "done"], undefined>;
|
|
46
|
+
readonly progress: v.NumberSchema<undefined>;
|
|
47
|
+
readonly metrics: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
|
|
48
|
+
readonly calls: v.NumberSchema<undefined>;
|
|
49
|
+
readonly promptTokens: v.NumberSchema<undefined>;
|
|
50
|
+
readonly completionTokens: v.NumberSchema<undefined>;
|
|
51
|
+
readonly peakCompletionTokens: v.NumberSchema<undefined>;
|
|
52
|
+
readonly maxOutputTokens: v.NullableSchema<v.NumberSchema<undefined>, undefined>;
|
|
53
|
+
readonly truncatedCalls: v.NumberSchema<undefined>;
|
|
54
|
+
readonly upstreamMs: v.NumberSchema<undefined>;
|
|
55
|
+
readonly overheadMs: v.NumberSchema<undefined>;
|
|
56
|
+
readonly errors: v.NumberSchema<undefined>;
|
|
57
|
+
readonly warnings: v.NumberSchema<undefined>;
|
|
58
|
+
}, undefined>, undefined>, undefined>;
|
|
59
|
+
readonly gate: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
|
|
60
|
+
readonly phase: v.PicklistSchema<["checking", "working"], undefined>;
|
|
61
|
+
readonly attempts: v.NumberSchema<undefined>;
|
|
62
|
+
readonly maxAttempts: v.NumberSchema<undefined>;
|
|
63
|
+
readonly headSha: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
64
|
+
readonly lastVerdict: v.OptionalSchema<v.NullableSchema<v.PicklistSchema<["pass", "pending", "fail"], undefined>, undefined>, undefined>;
|
|
65
|
+
readonly lastFailureSummary: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
66
|
+
readonly failingChecks: v.OptionalSchema<v.NullableSchema<v.ArraySchema<v.ObjectSchema<{
|
|
67
|
+
readonly name: v.StringSchema<undefined>;
|
|
68
|
+
readonly conclusion: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
69
|
+
readonly url: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
70
|
+
}, undefined>, undefined>, undefined>, undefined>;
|
|
71
|
+
readonly watchSince: v.OptionalSchema<v.NullableSchema<v.NumberSchema<undefined>, undefined>, undefined>;
|
|
72
|
+
readonly watchWindowMinutes: v.OptionalSchema<v.NullableSchema<v.NumberSchema<undefined>, undefined>, undefined>;
|
|
73
|
+
readonly regressedSignals: v.OptionalSchema<v.NullableSchema<v.ArraySchema<v.ObjectSchema<{
|
|
74
|
+
readonly kind: v.PicklistSchema<["monitor", "slo"], undefined>;
|
|
75
|
+
readonly id: v.StringSchema<undefined>;
|
|
76
|
+
readonly name: v.StringSchema<undefined>;
|
|
77
|
+
readonly state: v.PicklistSchema<["ok", "warn", "alert", "no_data"], undefined>;
|
|
78
|
+
readonly detail: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
79
|
+
}, undefined>, undefined>, undefined>, undefined>;
|
|
80
|
+
readonly attemptLog: v.OptionalSchema<v.NullableSchema<v.ArraySchema<v.ObjectSchema<{
|
|
81
|
+
readonly attempt: v.NumberSchema<undefined>;
|
|
82
|
+
readonly at: v.NumberSchema<undefined>;
|
|
83
|
+
readonly outcome: v.PicklistSchema<["completed", "failed"], undefined>;
|
|
84
|
+
readonly headSha: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
85
|
+
readonly summary: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
86
|
+
}, undefined>, undefined>, undefined>, undefined>;
|
|
87
|
+
readonly lastApprovals: v.OptionalSchema<v.NullableSchema<v.NumberSchema<undefined>, undefined>, undefined>;
|
|
88
|
+
readonly requiredApprovingReviewCount: v.OptionalSchema<v.NullableSchema<v.NumberSchema<undefined>, undefined>, undefined>;
|
|
89
|
+
readonly pendingThreadIds: v.OptionalSchema<v.NullableSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>, undefined>;
|
|
90
|
+
readonly lastAddressedCommentAt: v.OptionalSchema<v.NullableSchema<v.NumberSchema<undefined>, undefined>, undefined>;
|
|
91
|
+
readonly humanReviewGraceMinutes: v.OptionalSchema<v.NullableSchema<v.NumberSchema<undefined>, undefined>, undefined>;
|
|
92
|
+
readonly pendingFix: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
|
|
93
|
+
readonly instructions: v.StringSchema<undefined>;
|
|
94
|
+
readonly at: v.NumberSchema<undefined>;
|
|
95
|
+
}, undefined>, undefined>, undefined>;
|
|
96
|
+
}, undefined>, undefined>, undefined>;
|
|
97
|
+
readonly test: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
|
|
98
|
+
readonly phase: v.PicklistSchema<["testing", "fixing"], undefined>;
|
|
99
|
+
readonly attempts: v.NumberSchema<undefined>;
|
|
100
|
+
readonly maxAttempts: v.NumberSchema<undefined>;
|
|
101
|
+
readonly lastReport: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
|
|
102
|
+
readonly greenlight: v.BooleanSchema<undefined>;
|
|
103
|
+
readonly summary: v.StringSchema<undefined>;
|
|
104
|
+
readonly tested: v.ArraySchema<v.StringSchema<undefined>, undefined>;
|
|
105
|
+
readonly outcomes: v.ArraySchema<v.ObjectSchema<{
|
|
106
|
+
readonly name: v.StringSchema<undefined>;
|
|
107
|
+
readonly status: v.PicklistSchema<["passed", "failed", "skipped"], undefined>;
|
|
108
|
+
readonly detail: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
109
|
+
}, undefined>, undefined>;
|
|
110
|
+
readonly concerns: v.ArraySchema<v.ObjectSchema<{
|
|
111
|
+
readonly title: v.StringSchema<undefined>;
|
|
112
|
+
readonly detail: v.StringSchema<undefined>;
|
|
113
|
+
readonly severity: v.PicklistSchema<["low", "medium", "high", "critical"], undefined>;
|
|
114
|
+
}, undefined>, undefined>;
|
|
115
|
+
readonly environment: v.OptionalSchema<v.PicklistSchema<["local", "ephemeral"], undefined>, undefined>;
|
|
116
|
+
}, undefined>, undefined>, undefined>;
|
|
117
|
+
}, undefined>, undefined>, undefined>;
|
|
118
|
+
readonly humanTest: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
|
|
119
|
+
readonly phase: v.PicklistSchema<["provisioning", "awaiting_human", "fixing", "resolving_conflicts", "passed"], undefined>;
|
|
120
|
+
readonly environment: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
|
|
121
|
+
readonly id: v.StringSchema<undefined>;
|
|
122
|
+
readonly url: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
123
|
+
readonly status: v.PicklistSchema<["provisioning", "ready", "failed", "expired", "tearing_down", "torn_down"], undefined>;
|
|
124
|
+
readonly expiresAt: v.OptionalSchema<v.NullableSchema<v.NumberSchema<undefined>, undefined>, undefined>;
|
|
125
|
+
}, undefined>, undefined>, undefined>;
|
|
126
|
+
readonly degradedReason: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
127
|
+
readonly attempts: v.NumberSchema<undefined>;
|
|
128
|
+
readonly maxAttempts: v.NumberSchema<undefined>;
|
|
129
|
+
readonly headSha: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
130
|
+
readonly rounds: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
131
|
+
readonly kind: v.PicklistSchema<["fix", "pull-main"], undefined>;
|
|
132
|
+
readonly findings: v.StringSchema<undefined>;
|
|
133
|
+
readonly helperKind: v.StringSchema<undefined>;
|
|
134
|
+
readonly jobId: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
135
|
+
readonly outcome: v.OptionalSchema<v.NullableSchema<v.PicklistSchema<["completed", "failed"], undefined>, undefined>, undefined>;
|
|
136
|
+
readonly at: v.NumberSchema<undefined>;
|
|
137
|
+
}, undefined>, undefined>, undefined>;
|
|
138
|
+
readonly pendingAction: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
|
|
139
|
+
readonly type: v.PicklistSchema<["confirm", "request-fix", "pull-main", "recreate"], undefined>;
|
|
140
|
+
readonly findings: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
141
|
+
}, undefined>, undefined>, undefined>;
|
|
142
|
+
}, undefined>, undefined>, undefined>;
|
|
143
|
+
readonly environment: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
|
|
144
|
+
readonly id: v.StringSchema<undefined>;
|
|
145
|
+
readonly url: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
146
|
+
readonly status: v.PicklistSchema<["provisioning", "ready", "failed", "expired", "tearing_down", "torn_down"], undefined>;
|
|
147
|
+
readonly expiresAt: v.OptionalSchema<v.NullableSchema<v.NumberSchema<undefined>, undefined>, undefined>;
|
|
148
|
+
readonly lastError: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
149
|
+
}, undefined>, undefined>, undefined>;
|
|
150
|
+
readonly subtasks: v.OptionalSchema<v.ObjectSchema<{
|
|
151
|
+
readonly completed: v.NumberSchema<undefined>;
|
|
152
|
+
readonly inProgress: v.NumberSchema<undefined>;
|
|
153
|
+
readonly total: v.NumberSchema<undefined>;
|
|
154
|
+
readonly items: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
155
|
+
readonly label: v.StringSchema<undefined>;
|
|
156
|
+
readonly status: v.PicklistSchema<["pending", "in_progress", "completed"], undefined>;
|
|
157
|
+
}, undefined>, undefined>, undefined>;
|
|
158
|
+
}, undefined>, undefined>;
|
|
159
|
+
readonly startingContainer: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
160
|
+
readonly decision: v.NullableSchema<v.ObjectSchema<{
|
|
161
|
+
readonly id: v.StringSchema<undefined>;
|
|
162
|
+
readonly question: v.StringSchema<undefined>;
|
|
163
|
+
readonly options: v.ArraySchema<v.StringSchema<undefined>, undefined>;
|
|
164
|
+
readonly chosen: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
165
|
+
}, undefined>, undefined>;
|
|
166
|
+
readonly requiresApproval: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
167
|
+
readonly approval: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
|
|
168
|
+
readonly id: v.StringSchema<undefined>;
|
|
169
|
+
readonly status: v.PicklistSchema<["pending", "approved", "changes_requested", "rejected"], undefined>;
|
|
170
|
+
readonly proposal: v.StringSchema<undefined>;
|
|
171
|
+
readonly feedback: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
172
|
+
readonly comments: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
173
|
+
readonly quotedSource: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
174
|
+
readonly srcStart: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
|
|
175
|
+
readonly srcEnd: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
|
|
176
|
+
readonly anchorId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
177
|
+
readonly body: v.StringSchema<undefined>;
|
|
178
|
+
}, undefined>, undefined>, undefined>;
|
|
179
|
+
}, undefined>, undefined>, undefined>;
|
|
180
|
+
readonly companion: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
|
|
181
|
+
readonly threshold: v.NumberSchema<undefined>;
|
|
182
|
+
readonly maxAttempts: v.NumberSchema<undefined>;
|
|
183
|
+
readonly attempts: v.OptionalSchema<v.NumberSchema<undefined>, 0>;
|
|
184
|
+
readonly verdicts: v.ArraySchema<v.ObjectSchema<{
|
|
185
|
+
readonly rating: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>;
|
|
186
|
+
readonly threshold: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>;
|
|
187
|
+
readonly passed: v.BooleanSchema<undefined>;
|
|
188
|
+
readonly feedback: v.StringSchema<undefined>;
|
|
189
|
+
}, undefined>, undefined>;
|
|
190
|
+
readonly exceeded: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
191
|
+
}, undefined>, undefined>, undefined>;
|
|
192
|
+
readonly followUps: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
|
|
193
|
+
readonly enabled: v.BooleanSchema<undefined>;
|
|
194
|
+
readonly items: v.ArraySchema<v.ObjectSchema<{
|
|
195
|
+
readonly id: v.StringSchema<undefined>;
|
|
196
|
+
readonly kind: v.PicklistSchema<["follow_up", "question"], undefined>;
|
|
197
|
+
readonly title: v.StringSchema<undefined>;
|
|
198
|
+
readonly detail: v.StringSchema<undefined>;
|
|
199
|
+
readonly suggestedAction: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
200
|
+
readonly status: v.PicklistSchema<["pending", "filed", "queued", "answered", "dismissed"], undefined>;
|
|
201
|
+
readonly answer: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
202
|
+
readonly sentToCoder: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
203
|
+
readonly ticketExternalId: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
204
|
+
readonly ticketUrl: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
205
|
+
readonly createdAt: v.NumberSchema<undefined>;
|
|
206
|
+
readonly updatedAt: v.NumberSchema<undefined>;
|
|
207
|
+
}, undefined>, undefined>;
|
|
208
|
+
readonly loops: v.OptionalSchema<v.NumberSchema<undefined>, 0>;
|
|
209
|
+
readonly maxLoops: v.OptionalSchema<v.NumberSchema<undefined>, 3>;
|
|
210
|
+
}, undefined>, undefined>, undefined>;
|
|
211
|
+
readonly rework: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
|
|
212
|
+
readonly previousProposal: v.StringSchema<undefined>;
|
|
213
|
+
readonly feedback: v.StringSchema<undefined>;
|
|
214
|
+
readonly comments: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
215
|
+
readonly quotedSource: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
216
|
+
readonly srcStart: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
|
|
217
|
+
readonly srcEnd: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
|
|
218
|
+
readonly anchorId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
219
|
+
readonly body: v.StringSchema<undefined>;
|
|
220
|
+
}, undefined>, undefined>, undefined>;
|
|
221
|
+
}, undefined>, undefined>, undefined>;
|
|
222
|
+
readonly pendingIncorporation: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
|
|
223
|
+
readonly feedback: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
224
|
+
}, undefined>, undefined>, undefined>;
|
|
225
|
+
readonly pendingRecommendation: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
|
|
226
|
+
readonly itemIds: v.ArraySchema<v.StringSchema<undefined>, undefined>;
|
|
227
|
+
readonly note: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
228
|
+
}, undefined>, undefined>, undefined>;
|
|
229
|
+
readonly consensus: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
|
|
230
|
+
readonly enabled: v.BooleanSchema<undefined>;
|
|
231
|
+
readonly strategy: v.PicklistSchema<["specialist-panel", "debate", "ranked-voting"], undefined>;
|
|
232
|
+
readonly participants: v.ArraySchema<v.ObjectSchema<{
|
|
233
|
+
readonly id: v.StringSchema<undefined>;
|
|
234
|
+
readonly role: v.StringSchema<undefined>;
|
|
235
|
+
readonly systemFraming: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
236
|
+
readonly modelId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
237
|
+
}, undefined>, undefined>;
|
|
238
|
+
readonly synthesizerModelId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
239
|
+
readonly rounds: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>, v.MaxValueAction<number, 5, undefined>]>, undefined>;
|
|
240
|
+
readonly gating: v.OptionalSchema<v.ObjectSchema<{
|
|
241
|
+
readonly enabled: v.BooleanSchema<undefined>;
|
|
242
|
+
readonly minComplexity: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>, undefined>;
|
|
243
|
+
readonly minRisk: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>, undefined>;
|
|
244
|
+
readonly minImpact: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>, undefined>;
|
|
245
|
+
readonly onMissingEstimate: v.OptionalSchema<v.PicklistSchema<["consensus", "standard"], undefined>, "consensus">;
|
|
246
|
+
}, undefined>, undefined>;
|
|
247
|
+
}, undefined>, undefined>, undefined>;
|
|
248
|
+
readonly gating: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
|
|
249
|
+
readonly enabled: v.BooleanSchema<undefined>;
|
|
250
|
+
readonly minComplexity: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>, undefined>;
|
|
251
|
+
readonly minRisk: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>, undefined>;
|
|
252
|
+
readonly minImpact: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>, undefined>;
|
|
253
|
+
readonly onMissingEstimate: v.OptionalSchema<v.PicklistSchema<["run", "skip"], undefined>, "run">;
|
|
254
|
+
}, undefined>, undefined>, undefined>;
|
|
255
|
+
readonly skipped: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
256
|
+
readonly noBusinessSpecs: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
257
|
+
readonly technicalCorroborated: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
258
|
+
readonly output: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
259
|
+
readonly custom: v.OptionalSchema<v.UnknownSchema, undefined>;
|
|
260
|
+
readonly model: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
261
|
+
readonly selectedFragmentIds: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
262
|
+
readonly jobId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
263
|
+
readonly startedAt: v.OptionalSchema<v.NullableSchema<v.NumberSchema<undefined>, undefined>, undefined>;
|
|
264
|
+
readonly finishedAt: v.OptionalSchema<v.NullableSchema<v.NumberSchema<undefined>, undefined>, undefined>;
|
|
265
|
+
readonly pausedAt: v.OptionalSchema<v.NullableSchema<v.NumberSchema<undefined>, undefined>, undefined>;
|
|
266
|
+
readonly evictionRecoveries: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
|
|
267
|
+
readonly transientEvictionRecoveries: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
|
|
268
|
+
}, undefined>, undefined>;
|
|
269
|
+
readonly currentStep: v.NumberSchema<undefined>;
|
|
270
|
+
readonly status: v.PicklistSchema<["running", "blocked", "done", "paused", "failed"], undefined>;
|
|
271
|
+
readonly failure: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
|
|
272
|
+
readonly kind: v.PicklistSchema<["preflight", "dispatch", "evicted", "timeout", "agent", "job_failed", "rejected", "companion_rejected", "cancelled", "unknown"], undefined>;
|
|
273
|
+
readonly message: v.StringSchema<undefined>;
|
|
274
|
+
readonly detail: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
275
|
+
readonly hint: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
276
|
+
readonly occurredAt: v.NumberSchema<undefined>;
|
|
277
|
+
readonly lastSubtasks: v.NullableSchema<v.ObjectSchema<{
|
|
278
|
+
readonly completed: v.NumberSchema<undefined>;
|
|
279
|
+
readonly inProgress: v.NumberSchema<undefined>;
|
|
280
|
+
readonly total: v.NumberSchema<undefined>;
|
|
281
|
+
readonly items: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
282
|
+
readonly label: v.StringSchema<undefined>;
|
|
283
|
+
readonly status: v.PicklistSchema<["pending", "in_progress", "completed"], undefined>;
|
|
284
|
+
}, undefined>, undefined>, undefined>;
|
|
285
|
+
}, undefined>, undefined>;
|
|
286
|
+
}, undefined>, undefined>, undefined>;
|
|
287
|
+
readonly initiatedBy: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
288
|
+
}, undefined>;
|
|
289
|
+
};
|
|
290
|
+
};
|
|
291
|
+
export declare const cancelExecutionContract: {
|
|
292
|
+
readonly method: "delete";
|
|
293
|
+
readonly requestPathParamsSchema: v.ObjectSchema<{
|
|
294
|
+
readonly blockId: v.StringSchema<undefined>;
|
|
295
|
+
}, undefined> & import("@toad-contracts/core").ObjectKeysCarrier;
|
|
296
|
+
readonly pathResolver: ({ blockId }: {
|
|
297
|
+
blockId: string;
|
|
298
|
+
}) => string;
|
|
299
|
+
readonly responsesByStatusCode: {
|
|
300
|
+
readonly '4xx': v.ObjectSchema<{
|
|
301
|
+
readonly error: v.ObjectSchema<{
|
|
302
|
+
readonly code: v.StringSchema<undefined>;
|
|
303
|
+
readonly message: v.StringSchema<undefined>;
|
|
304
|
+
readonly details: v.OptionalSchema<v.UnknownSchema, undefined>;
|
|
305
|
+
readonly issues: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
306
|
+
readonly path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
307
|
+
readonly message: v.StringSchema<undefined>;
|
|
308
|
+
}, undefined>, undefined>, undefined>;
|
|
309
|
+
}, undefined>;
|
|
310
|
+
}, undefined>;
|
|
311
|
+
readonly '5xx': v.ObjectSchema<{
|
|
312
|
+
readonly error: v.ObjectSchema<{
|
|
313
|
+
readonly code: v.StringSchema<undefined>;
|
|
314
|
+
readonly message: v.StringSchema<undefined>;
|
|
315
|
+
readonly details: v.OptionalSchema<v.UnknownSchema, undefined>;
|
|
316
|
+
readonly issues: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
317
|
+
readonly path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
318
|
+
readonly message: v.StringSchema<undefined>;
|
|
319
|
+
}, undefined>, undefined>, undefined>;
|
|
320
|
+
}, undefined>;
|
|
321
|
+
}, undefined>;
|
|
322
|
+
readonly 200: v.ObjectSchema<{
|
|
323
|
+
readonly id: v.StringSchema<undefined>;
|
|
324
|
+
readonly title: v.StringSchema<undefined>;
|
|
325
|
+
readonly type: v.PicklistSchema<["frontend", "service", "api", "database", "queue", "integration", "external", "environment"], undefined>;
|
|
326
|
+
readonly description: v.StringSchema<undefined>;
|
|
327
|
+
readonly position: v.ObjectSchema<{
|
|
328
|
+
readonly x: v.NumberSchema<undefined>;
|
|
329
|
+
readonly y: v.NumberSchema<undefined>;
|
|
330
|
+
}, undefined>;
|
|
331
|
+
readonly size: v.OptionalSchema<v.ObjectSchema<{
|
|
332
|
+
readonly w: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 1, undefined>]>;
|
|
333
|
+
readonly h: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 1, undefined>]>;
|
|
334
|
+
}, undefined>, undefined>;
|
|
335
|
+
readonly status: v.PicklistSchema<["planned", "ready", "in_progress", "blocked", "pr_ready", "done"], undefined>;
|
|
336
|
+
readonly progress: v.NumberSchema<undefined>;
|
|
337
|
+
readonly dependsOn: v.ArraySchema<v.StringSchema<undefined>, undefined>;
|
|
338
|
+
readonly executionId: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
339
|
+
readonly level: v.PicklistSchema<["frame", "module", "task", "epic"], undefined>;
|
|
340
|
+
readonly parentId: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
341
|
+
readonly epicId: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
342
|
+
readonly autoStartDependents: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
343
|
+
readonly confidence: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
|
|
344
|
+
readonly estimate: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
|
|
345
|
+
readonly complexity: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>;
|
|
346
|
+
readonly risk: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>;
|
|
347
|
+
readonly impact: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>;
|
|
348
|
+
readonly rationale: v.StringSchema<undefined>;
|
|
349
|
+
readonly model: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
350
|
+
readonly createdAt: v.NumberSchema<undefined>;
|
|
351
|
+
}, undefined>, undefined>, undefined>;
|
|
352
|
+
readonly moduleName: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
353
|
+
readonly taskType: v.OptionalSchema<v.PicklistSchema<["feature", "bug", "document", "spike", "recurring"], undefined>, undefined>;
|
|
354
|
+
readonly taskTypeFields: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
|
|
355
|
+
readonly severity: v.OptionalSchema<v.PicklistSchema<["low", "medium", "high", "critical"], undefined>, undefined>;
|
|
356
|
+
readonly stepsToReproduce: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 4000, undefined>]>, undefined>;
|
|
357
|
+
readonly timeboxHours: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1000, undefined>]>, undefined>;
|
|
358
|
+
readonly docKind: v.OptionalSchema<v.PicklistSchema<["prd", "rfc", "runbook", "reference", "other"], undefined>, undefined>;
|
|
359
|
+
}, undefined>, undefined>, undefined>;
|
|
360
|
+
readonly technical: v.OptionalSchema<v.NullableSchema<v.BooleanSchema<undefined>, undefined>, undefined>;
|
|
361
|
+
readonly fragmentIds: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
362
|
+
readonly serviceFragmentIds: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
363
|
+
readonly modelId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
364
|
+
readonly agentConfig: v.OptionalSchema<v.RecordSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 120, undefined>]>, v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 400, undefined>]>, undefined>, undefined>;
|
|
365
|
+
readonly testComposePath: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
366
|
+
readonly noInfraDependencies: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
367
|
+
readonly defaultTestEnvironment: v.OptionalSchema<v.PicklistSchema<["local", "ephemeral"], undefined>, undefined>;
|
|
368
|
+
readonly cloudProvider: v.OptionalSchema<v.PicklistSchema<["cloudflare", "docker", "aws", "gcp", "azure", "custom"], undefined>, undefined>;
|
|
369
|
+
readonly instanceSize: v.OptionalSchema<v.PicklistSchema<["small", "medium", "large", "xlarge"], undefined>, undefined>;
|
|
370
|
+
readonly pullRequest: v.OptionalSchema<v.ObjectSchema<{
|
|
371
|
+
readonly url: v.StringSchema<undefined>;
|
|
372
|
+
readonly number: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
|
|
373
|
+
readonly branch: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
374
|
+
}, undefined>, undefined>;
|
|
375
|
+
readonly mergePresetId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
376
|
+
readonly modelPresetId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
377
|
+
readonly pipelineId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
378
|
+
readonly createdBy: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
379
|
+
readonly responsibleProductUserId: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
380
|
+
readonly trackerCommentOnPrOpen: v.OptionalSchema<v.NullableSchema<v.PicklistSchema<["on", "off"], undefined>, undefined>, undefined>;
|
|
381
|
+
readonly trackerResolveOnMerge: v.OptionalSchema<v.NullableSchema<v.PicklistSchema<["on", "off"], undefined>, undefined>, undefined>;
|
|
382
|
+
}, undefined>;
|
|
383
|
+
};
|
|
384
|
+
};
|
|
385
|
+
export declare const mergeBlockContract: {
|
|
386
|
+
readonly method: "post";
|
|
387
|
+
readonly requestPathParamsSchema: v.ObjectSchema<{
|
|
388
|
+
readonly blockId: v.StringSchema<undefined>;
|
|
389
|
+
}, undefined> & import("@toad-contracts/core").ObjectKeysCarrier;
|
|
390
|
+
readonly pathResolver: ({ blockId }: {
|
|
391
|
+
blockId: string;
|
|
392
|
+
}) => string;
|
|
393
|
+
readonly requestBodySchema: typeof ContractNoBody;
|
|
394
|
+
readonly responsesByStatusCode: {
|
|
395
|
+
readonly '4xx': v.ObjectSchema<{
|
|
396
|
+
readonly error: v.ObjectSchema<{
|
|
397
|
+
readonly code: v.StringSchema<undefined>;
|
|
398
|
+
readonly message: v.StringSchema<undefined>;
|
|
399
|
+
readonly details: v.OptionalSchema<v.UnknownSchema, undefined>;
|
|
400
|
+
readonly issues: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
401
|
+
readonly path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
402
|
+
readonly message: v.StringSchema<undefined>;
|
|
403
|
+
}, undefined>, undefined>, undefined>;
|
|
404
|
+
}, undefined>;
|
|
405
|
+
}, undefined>;
|
|
406
|
+
readonly '5xx': v.ObjectSchema<{
|
|
407
|
+
readonly error: v.ObjectSchema<{
|
|
408
|
+
readonly code: v.StringSchema<undefined>;
|
|
409
|
+
readonly message: v.StringSchema<undefined>;
|
|
410
|
+
readonly details: v.OptionalSchema<v.UnknownSchema, undefined>;
|
|
411
|
+
readonly issues: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
412
|
+
readonly path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
413
|
+
readonly message: v.StringSchema<undefined>;
|
|
414
|
+
}, undefined>, undefined>, undefined>;
|
|
415
|
+
}, undefined>;
|
|
416
|
+
}, undefined>;
|
|
417
|
+
readonly 200: v.ObjectSchema<{
|
|
418
|
+
readonly id: v.StringSchema<undefined>;
|
|
419
|
+
readonly title: v.StringSchema<undefined>;
|
|
420
|
+
readonly type: v.PicklistSchema<["frontend", "service", "api", "database", "queue", "integration", "external", "environment"], undefined>;
|
|
421
|
+
readonly description: v.StringSchema<undefined>;
|
|
422
|
+
readonly position: v.ObjectSchema<{
|
|
423
|
+
readonly x: v.NumberSchema<undefined>;
|
|
424
|
+
readonly y: v.NumberSchema<undefined>;
|
|
425
|
+
}, undefined>;
|
|
426
|
+
readonly size: v.OptionalSchema<v.ObjectSchema<{
|
|
427
|
+
readonly w: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 1, undefined>]>;
|
|
428
|
+
readonly h: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 1, undefined>]>;
|
|
429
|
+
}, undefined>, undefined>;
|
|
430
|
+
readonly status: v.PicklistSchema<["planned", "ready", "in_progress", "blocked", "pr_ready", "done"], undefined>;
|
|
431
|
+
readonly progress: v.NumberSchema<undefined>;
|
|
432
|
+
readonly dependsOn: v.ArraySchema<v.StringSchema<undefined>, undefined>;
|
|
433
|
+
readonly executionId: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
434
|
+
readonly level: v.PicklistSchema<["frame", "module", "task", "epic"], undefined>;
|
|
435
|
+
readonly parentId: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
436
|
+
readonly epicId: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
437
|
+
readonly autoStartDependents: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
438
|
+
readonly confidence: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
|
|
439
|
+
readonly estimate: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
|
|
440
|
+
readonly complexity: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>;
|
|
441
|
+
readonly risk: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>;
|
|
442
|
+
readonly impact: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>;
|
|
443
|
+
readonly rationale: v.StringSchema<undefined>;
|
|
444
|
+
readonly model: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
445
|
+
readonly createdAt: v.NumberSchema<undefined>;
|
|
446
|
+
}, undefined>, undefined>, undefined>;
|
|
447
|
+
readonly moduleName: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
448
|
+
readonly taskType: v.OptionalSchema<v.PicklistSchema<["feature", "bug", "document", "spike", "recurring"], undefined>, undefined>;
|
|
449
|
+
readonly taskTypeFields: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
|
|
450
|
+
readonly severity: v.OptionalSchema<v.PicklistSchema<["low", "medium", "high", "critical"], undefined>, undefined>;
|
|
451
|
+
readonly stepsToReproduce: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 4000, undefined>]>, undefined>;
|
|
452
|
+
readonly timeboxHours: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1000, undefined>]>, undefined>;
|
|
453
|
+
readonly docKind: v.OptionalSchema<v.PicklistSchema<["prd", "rfc", "runbook", "reference", "other"], undefined>, undefined>;
|
|
454
|
+
}, undefined>, undefined>, undefined>;
|
|
455
|
+
readonly technical: v.OptionalSchema<v.NullableSchema<v.BooleanSchema<undefined>, undefined>, undefined>;
|
|
456
|
+
readonly fragmentIds: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
457
|
+
readonly serviceFragmentIds: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
458
|
+
readonly modelId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
459
|
+
readonly agentConfig: v.OptionalSchema<v.RecordSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 120, undefined>]>, v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 400, undefined>]>, undefined>, undefined>;
|
|
460
|
+
readonly testComposePath: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
461
|
+
readonly noInfraDependencies: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
462
|
+
readonly defaultTestEnvironment: v.OptionalSchema<v.PicklistSchema<["local", "ephemeral"], undefined>, undefined>;
|
|
463
|
+
readonly cloudProvider: v.OptionalSchema<v.PicklistSchema<["cloudflare", "docker", "aws", "gcp", "azure", "custom"], undefined>, undefined>;
|
|
464
|
+
readonly instanceSize: v.OptionalSchema<v.PicklistSchema<["small", "medium", "large", "xlarge"], undefined>, undefined>;
|
|
465
|
+
readonly pullRequest: v.OptionalSchema<v.ObjectSchema<{
|
|
466
|
+
readonly url: v.StringSchema<undefined>;
|
|
467
|
+
readonly number: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
|
|
468
|
+
readonly branch: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
469
|
+
}, undefined>, undefined>;
|
|
470
|
+
readonly mergePresetId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
471
|
+
readonly modelPresetId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
472
|
+
readonly pipelineId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
473
|
+
readonly createdBy: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
474
|
+
readonly responsibleProductUserId: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
475
|
+
readonly trackerCommentOnPrOpen: v.OptionalSchema<v.NullableSchema<v.PicklistSchema<["on", "off"], undefined>, undefined>, undefined>;
|
|
476
|
+
readonly trackerResolveOnMerge: v.OptionalSchema<v.NullableSchema<v.PicklistSchema<["on", "off"], undefined>, undefined>, undefined>;
|
|
477
|
+
}, undefined>;
|
|
478
|
+
};
|
|
479
|
+
};
|
|
480
|
+
export declare const getSpendStatusContract: {
|
|
481
|
+
readonly method: "get";
|
|
482
|
+
readonly pathResolver: () => string;
|
|
483
|
+
readonly responsesByStatusCode: {
|
|
484
|
+
readonly '4xx': v.ObjectSchema<{
|
|
485
|
+
readonly error: v.ObjectSchema<{
|
|
486
|
+
readonly code: v.StringSchema<undefined>;
|
|
487
|
+
readonly message: v.StringSchema<undefined>;
|
|
488
|
+
readonly details: v.OptionalSchema<v.UnknownSchema, undefined>;
|
|
489
|
+
readonly issues: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
490
|
+
readonly path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
491
|
+
readonly message: v.StringSchema<undefined>;
|
|
492
|
+
}, undefined>, undefined>, undefined>;
|
|
493
|
+
}, undefined>;
|
|
494
|
+
}, undefined>;
|
|
495
|
+
readonly '5xx': v.ObjectSchema<{
|
|
496
|
+
readonly error: v.ObjectSchema<{
|
|
497
|
+
readonly code: v.StringSchema<undefined>;
|
|
498
|
+
readonly message: v.StringSchema<undefined>;
|
|
499
|
+
readonly details: v.OptionalSchema<v.UnknownSchema, undefined>;
|
|
500
|
+
readonly issues: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
501
|
+
readonly path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
502
|
+
readonly message: v.StringSchema<undefined>;
|
|
503
|
+
}, undefined>, undefined>, undefined>;
|
|
504
|
+
}, undefined>;
|
|
505
|
+
}, undefined>;
|
|
506
|
+
readonly 200: v.ObjectSchema<{
|
|
507
|
+
readonly periodStart: v.NumberSchema<undefined>;
|
|
508
|
+
readonly inputTokens: v.NumberSchema<undefined>;
|
|
509
|
+
readonly outputTokens: v.NumberSchema<undefined>;
|
|
510
|
+
readonly costSpent: v.NumberSchema<undefined>;
|
|
511
|
+
readonly costLimit: v.NumberSchema<undefined>;
|
|
512
|
+
readonly currency: v.StringSchema<undefined>;
|
|
513
|
+
readonly exceeded: v.BooleanSchema<undefined>;
|
|
514
|
+
}, undefined>;
|
|
515
|
+
};
|
|
516
|
+
};
|
|
517
|
+
export declare const resumeSpendContract: {
|
|
518
|
+
readonly method: "post";
|
|
519
|
+
readonly pathResolver: () => string;
|
|
520
|
+
readonly requestBodySchema: typeof ContractNoBody;
|
|
521
|
+
readonly responsesByStatusCode: {
|
|
522
|
+
readonly '4xx': v.ObjectSchema<{
|
|
523
|
+
readonly error: v.ObjectSchema<{
|
|
524
|
+
readonly code: v.StringSchema<undefined>;
|
|
525
|
+
readonly message: v.StringSchema<undefined>;
|
|
526
|
+
readonly details: v.OptionalSchema<v.UnknownSchema, undefined>;
|
|
527
|
+
readonly issues: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
528
|
+
readonly path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
529
|
+
readonly message: v.StringSchema<undefined>;
|
|
530
|
+
}, undefined>, undefined>, undefined>;
|
|
531
|
+
}, undefined>;
|
|
532
|
+
}, undefined>;
|
|
533
|
+
readonly '5xx': v.ObjectSchema<{
|
|
534
|
+
readonly error: v.ObjectSchema<{
|
|
535
|
+
readonly code: v.StringSchema<undefined>;
|
|
536
|
+
readonly message: v.StringSchema<undefined>;
|
|
537
|
+
readonly details: v.OptionalSchema<v.UnknownSchema, undefined>;
|
|
538
|
+
readonly issues: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
539
|
+
readonly path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
540
|
+
readonly message: v.StringSchema<undefined>;
|
|
541
|
+
}, undefined>, undefined>, undefined>;
|
|
542
|
+
}, undefined>;
|
|
543
|
+
}, undefined>;
|
|
544
|
+
readonly 200: v.ArraySchema<v.ObjectSchema<{
|
|
545
|
+
readonly id: v.StringSchema<undefined>;
|
|
546
|
+
readonly blockId: v.StringSchema<undefined>;
|
|
547
|
+
readonly pipelineId: v.StringSchema<undefined>;
|
|
548
|
+
readonly pipelineName: v.StringSchema<undefined>;
|
|
549
|
+
readonly steps: v.ArraySchema<v.ObjectSchema<{
|
|
550
|
+
readonly runId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
551
|
+
readonly agentKind: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
|
|
552
|
+
readonly state: v.PicklistSchema<["pending", "working", "waiting_decision", "done"], undefined>;
|
|
553
|
+
readonly progress: v.NumberSchema<undefined>;
|
|
554
|
+
readonly metrics: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
|
|
555
|
+
readonly calls: v.NumberSchema<undefined>;
|
|
556
|
+
readonly promptTokens: v.NumberSchema<undefined>;
|
|
557
|
+
readonly completionTokens: v.NumberSchema<undefined>;
|
|
558
|
+
readonly peakCompletionTokens: v.NumberSchema<undefined>;
|
|
559
|
+
readonly maxOutputTokens: v.NullableSchema<v.NumberSchema<undefined>, undefined>;
|
|
560
|
+
readonly truncatedCalls: v.NumberSchema<undefined>;
|
|
561
|
+
readonly upstreamMs: v.NumberSchema<undefined>;
|
|
562
|
+
readonly overheadMs: v.NumberSchema<undefined>;
|
|
563
|
+
readonly errors: v.NumberSchema<undefined>;
|
|
564
|
+
readonly warnings: v.NumberSchema<undefined>;
|
|
565
|
+
}, undefined>, undefined>, undefined>;
|
|
566
|
+
readonly gate: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
|
|
567
|
+
readonly phase: v.PicklistSchema<["checking", "working"], undefined>;
|
|
568
|
+
readonly attempts: v.NumberSchema<undefined>;
|
|
569
|
+
readonly maxAttempts: v.NumberSchema<undefined>;
|
|
570
|
+
readonly headSha: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
571
|
+
readonly lastVerdict: v.OptionalSchema<v.NullableSchema<v.PicklistSchema<["pass", "pending", "fail"], undefined>, undefined>, undefined>;
|
|
572
|
+
readonly lastFailureSummary: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
573
|
+
readonly failingChecks: v.OptionalSchema<v.NullableSchema<v.ArraySchema<v.ObjectSchema<{
|
|
574
|
+
readonly name: v.StringSchema<undefined>;
|
|
575
|
+
readonly conclusion: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
576
|
+
readonly url: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
577
|
+
}, undefined>, undefined>, undefined>, undefined>;
|
|
578
|
+
readonly watchSince: v.OptionalSchema<v.NullableSchema<v.NumberSchema<undefined>, undefined>, undefined>;
|
|
579
|
+
readonly watchWindowMinutes: v.OptionalSchema<v.NullableSchema<v.NumberSchema<undefined>, undefined>, undefined>;
|
|
580
|
+
readonly regressedSignals: v.OptionalSchema<v.NullableSchema<v.ArraySchema<v.ObjectSchema<{
|
|
581
|
+
readonly kind: v.PicklistSchema<["monitor", "slo"], undefined>;
|
|
582
|
+
readonly id: v.StringSchema<undefined>;
|
|
583
|
+
readonly name: v.StringSchema<undefined>;
|
|
584
|
+
readonly state: v.PicklistSchema<["ok", "warn", "alert", "no_data"], undefined>;
|
|
585
|
+
readonly detail: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
586
|
+
}, undefined>, undefined>, undefined>, undefined>;
|
|
587
|
+
readonly attemptLog: v.OptionalSchema<v.NullableSchema<v.ArraySchema<v.ObjectSchema<{
|
|
588
|
+
readonly attempt: v.NumberSchema<undefined>;
|
|
589
|
+
readonly at: v.NumberSchema<undefined>;
|
|
590
|
+
readonly outcome: v.PicklistSchema<["completed", "failed"], undefined>;
|
|
591
|
+
readonly headSha: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
592
|
+
readonly summary: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
593
|
+
}, undefined>, undefined>, undefined>, undefined>;
|
|
594
|
+
readonly lastApprovals: v.OptionalSchema<v.NullableSchema<v.NumberSchema<undefined>, undefined>, undefined>;
|
|
595
|
+
readonly requiredApprovingReviewCount: v.OptionalSchema<v.NullableSchema<v.NumberSchema<undefined>, undefined>, undefined>;
|
|
596
|
+
readonly pendingThreadIds: v.OptionalSchema<v.NullableSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>, undefined>;
|
|
597
|
+
readonly lastAddressedCommentAt: v.OptionalSchema<v.NullableSchema<v.NumberSchema<undefined>, undefined>, undefined>;
|
|
598
|
+
readonly humanReviewGraceMinutes: v.OptionalSchema<v.NullableSchema<v.NumberSchema<undefined>, undefined>, undefined>;
|
|
599
|
+
readonly pendingFix: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
|
|
600
|
+
readonly instructions: v.StringSchema<undefined>;
|
|
601
|
+
readonly at: v.NumberSchema<undefined>;
|
|
602
|
+
}, undefined>, undefined>, undefined>;
|
|
603
|
+
}, undefined>, undefined>, undefined>;
|
|
604
|
+
readonly test: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
|
|
605
|
+
readonly phase: v.PicklistSchema<["testing", "fixing"], undefined>;
|
|
606
|
+
readonly attempts: v.NumberSchema<undefined>;
|
|
607
|
+
readonly maxAttempts: v.NumberSchema<undefined>;
|
|
608
|
+
readonly lastReport: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
|
|
609
|
+
readonly greenlight: v.BooleanSchema<undefined>;
|
|
610
|
+
readonly summary: v.StringSchema<undefined>;
|
|
611
|
+
readonly tested: v.ArraySchema<v.StringSchema<undefined>, undefined>;
|
|
612
|
+
readonly outcomes: v.ArraySchema<v.ObjectSchema<{
|
|
613
|
+
readonly name: v.StringSchema<undefined>;
|
|
614
|
+
readonly status: v.PicklistSchema<["passed", "failed", "skipped"], undefined>;
|
|
615
|
+
readonly detail: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
616
|
+
}, undefined>, undefined>;
|
|
617
|
+
readonly concerns: v.ArraySchema<v.ObjectSchema<{
|
|
618
|
+
readonly title: v.StringSchema<undefined>;
|
|
619
|
+
readonly detail: v.StringSchema<undefined>;
|
|
620
|
+
readonly severity: v.PicklistSchema<["low", "medium", "high", "critical"], undefined>;
|
|
621
|
+
}, undefined>, undefined>;
|
|
622
|
+
readonly environment: v.OptionalSchema<v.PicklistSchema<["local", "ephemeral"], undefined>, undefined>;
|
|
623
|
+
}, undefined>, undefined>, undefined>;
|
|
624
|
+
}, undefined>, undefined>, undefined>;
|
|
625
|
+
readonly humanTest: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
|
|
626
|
+
readonly phase: v.PicklistSchema<["provisioning", "awaiting_human", "fixing", "resolving_conflicts", "passed"], undefined>;
|
|
627
|
+
readonly environment: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
|
|
628
|
+
readonly id: v.StringSchema<undefined>;
|
|
629
|
+
readonly url: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
630
|
+
readonly status: v.PicklistSchema<["provisioning", "ready", "failed", "expired", "tearing_down", "torn_down"], undefined>;
|
|
631
|
+
readonly expiresAt: v.OptionalSchema<v.NullableSchema<v.NumberSchema<undefined>, undefined>, undefined>;
|
|
632
|
+
}, undefined>, undefined>, undefined>;
|
|
633
|
+
readonly degradedReason: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
634
|
+
readonly attempts: v.NumberSchema<undefined>;
|
|
635
|
+
readonly maxAttempts: v.NumberSchema<undefined>;
|
|
636
|
+
readonly headSha: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
637
|
+
readonly rounds: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
638
|
+
readonly kind: v.PicklistSchema<["fix", "pull-main"], undefined>;
|
|
639
|
+
readonly findings: v.StringSchema<undefined>;
|
|
640
|
+
readonly helperKind: v.StringSchema<undefined>;
|
|
641
|
+
readonly jobId: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
642
|
+
readonly outcome: v.OptionalSchema<v.NullableSchema<v.PicklistSchema<["completed", "failed"], undefined>, undefined>, undefined>;
|
|
643
|
+
readonly at: v.NumberSchema<undefined>;
|
|
644
|
+
}, undefined>, undefined>, undefined>;
|
|
645
|
+
readonly pendingAction: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
|
|
646
|
+
readonly type: v.PicklistSchema<["confirm", "request-fix", "pull-main", "recreate"], undefined>;
|
|
647
|
+
readonly findings: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
648
|
+
}, undefined>, undefined>, undefined>;
|
|
649
|
+
}, undefined>, undefined>, undefined>;
|
|
650
|
+
readonly environment: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
|
|
651
|
+
readonly id: v.StringSchema<undefined>;
|
|
652
|
+
readonly url: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
653
|
+
readonly status: v.PicklistSchema<["provisioning", "ready", "failed", "expired", "tearing_down", "torn_down"], undefined>;
|
|
654
|
+
readonly expiresAt: v.OptionalSchema<v.NullableSchema<v.NumberSchema<undefined>, undefined>, undefined>;
|
|
655
|
+
readonly lastError: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
656
|
+
}, undefined>, undefined>, undefined>;
|
|
657
|
+
readonly subtasks: v.OptionalSchema<v.ObjectSchema<{
|
|
658
|
+
readonly completed: v.NumberSchema<undefined>;
|
|
659
|
+
readonly inProgress: v.NumberSchema<undefined>;
|
|
660
|
+
readonly total: v.NumberSchema<undefined>;
|
|
661
|
+
readonly items: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
662
|
+
readonly label: v.StringSchema<undefined>;
|
|
663
|
+
readonly status: v.PicklistSchema<["pending", "in_progress", "completed"], undefined>;
|
|
664
|
+
}, undefined>, undefined>, undefined>;
|
|
665
|
+
}, undefined>, undefined>;
|
|
666
|
+
readonly startingContainer: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
667
|
+
readonly decision: v.NullableSchema<v.ObjectSchema<{
|
|
668
|
+
readonly id: v.StringSchema<undefined>;
|
|
669
|
+
readonly question: v.StringSchema<undefined>;
|
|
670
|
+
readonly options: v.ArraySchema<v.StringSchema<undefined>, undefined>;
|
|
671
|
+
readonly chosen: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
672
|
+
}, undefined>, undefined>;
|
|
673
|
+
readonly requiresApproval: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
674
|
+
readonly approval: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
|
|
675
|
+
readonly id: v.StringSchema<undefined>;
|
|
676
|
+
readonly status: v.PicklistSchema<["pending", "approved", "changes_requested", "rejected"], undefined>;
|
|
677
|
+
readonly proposal: v.StringSchema<undefined>;
|
|
678
|
+
readonly feedback: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
679
|
+
readonly comments: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
680
|
+
readonly quotedSource: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
681
|
+
readonly srcStart: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
|
|
682
|
+
readonly srcEnd: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
|
|
683
|
+
readonly anchorId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
684
|
+
readonly body: v.StringSchema<undefined>;
|
|
685
|
+
}, undefined>, undefined>, undefined>;
|
|
686
|
+
}, undefined>, undefined>, undefined>;
|
|
687
|
+
readonly companion: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
|
|
688
|
+
readonly threshold: v.NumberSchema<undefined>;
|
|
689
|
+
readonly maxAttempts: v.NumberSchema<undefined>;
|
|
690
|
+
readonly attempts: v.OptionalSchema<v.NumberSchema<undefined>, 0>;
|
|
691
|
+
readonly verdicts: v.ArraySchema<v.ObjectSchema<{
|
|
692
|
+
readonly rating: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>;
|
|
693
|
+
readonly threshold: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>;
|
|
694
|
+
readonly passed: v.BooleanSchema<undefined>;
|
|
695
|
+
readonly feedback: v.StringSchema<undefined>;
|
|
696
|
+
}, undefined>, undefined>;
|
|
697
|
+
readonly exceeded: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
698
|
+
}, undefined>, undefined>, undefined>;
|
|
699
|
+
readonly followUps: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
|
|
700
|
+
readonly enabled: v.BooleanSchema<undefined>;
|
|
701
|
+
readonly items: v.ArraySchema<v.ObjectSchema<{
|
|
702
|
+
readonly id: v.StringSchema<undefined>;
|
|
703
|
+
readonly kind: v.PicklistSchema<["follow_up", "question"], undefined>;
|
|
704
|
+
readonly title: v.StringSchema<undefined>;
|
|
705
|
+
readonly detail: v.StringSchema<undefined>;
|
|
706
|
+
readonly suggestedAction: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
707
|
+
readonly status: v.PicklistSchema<["pending", "filed", "queued", "answered", "dismissed"], undefined>;
|
|
708
|
+
readonly answer: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
709
|
+
readonly sentToCoder: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
710
|
+
readonly ticketExternalId: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
711
|
+
readonly ticketUrl: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
712
|
+
readonly createdAt: v.NumberSchema<undefined>;
|
|
713
|
+
readonly updatedAt: v.NumberSchema<undefined>;
|
|
714
|
+
}, undefined>, undefined>;
|
|
715
|
+
readonly loops: v.OptionalSchema<v.NumberSchema<undefined>, 0>;
|
|
716
|
+
readonly maxLoops: v.OptionalSchema<v.NumberSchema<undefined>, 3>;
|
|
717
|
+
}, undefined>, undefined>, undefined>;
|
|
718
|
+
readonly rework: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
|
|
719
|
+
readonly previousProposal: v.StringSchema<undefined>;
|
|
720
|
+
readonly feedback: v.StringSchema<undefined>;
|
|
721
|
+
readonly comments: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
722
|
+
readonly quotedSource: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
723
|
+
readonly srcStart: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
|
|
724
|
+
readonly srcEnd: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
|
|
725
|
+
readonly anchorId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
726
|
+
readonly body: v.StringSchema<undefined>;
|
|
727
|
+
}, undefined>, undefined>, undefined>;
|
|
728
|
+
}, undefined>, undefined>, undefined>;
|
|
729
|
+
readonly pendingIncorporation: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
|
|
730
|
+
readonly feedback: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
731
|
+
}, undefined>, undefined>, undefined>;
|
|
732
|
+
readonly pendingRecommendation: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
|
|
733
|
+
readonly itemIds: v.ArraySchema<v.StringSchema<undefined>, undefined>;
|
|
734
|
+
readonly note: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
735
|
+
}, undefined>, undefined>, undefined>;
|
|
736
|
+
readonly consensus: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
|
|
737
|
+
readonly enabled: v.BooleanSchema<undefined>;
|
|
738
|
+
readonly strategy: v.PicklistSchema<["specialist-panel", "debate", "ranked-voting"], undefined>;
|
|
739
|
+
readonly participants: v.ArraySchema<v.ObjectSchema<{
|
|
740
|
+
readonly id: v.StringSchema<undefined>;
|
|
741
|
+
readonly role: v.StringSchema<undefined>;
|
|
742
|
+
readonly systemFraming: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
743
|
+
readonly modelId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
744
|
+
}, undefined>, undefined>;
|
|
745
|
+
readonly synthesizerModelId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
746
|
+
readonly rounds: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>, v.MaxValueAction<number, 5, undefined>]>, undefined>;
|
|
747
|
+
readonly gating: v.OptionalSchema<v.ObjectSchema<{
|
|
748
|
+
readonly enabled: v.BooleanSchema<undefined>;
|
|
749
|
+
readonly minComplexity: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>, undefined>;
|
|
750
|
+
readonly minRisk: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>, undefined>;
|
|
751
|
+
readonly minImpact: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>, undefined>;
|
|
752
|
+
readonly onMissingEstimate: v.OptionalSchema<v.PicklistSchema<["consensus", "standard"], undefined>, "consensus">;
|
|
753
|
+
}, undefined>, undefined>;
|
|
754
|
+
}, undefined>, undefined>, undefined>;
|
|
755
|
+
readonly gating: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
|
|
756
|
+
readonly enabled: v.BooleanSchema<undefined>;
|
|
757
|
+
readonly minComplexity: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>, undefined>;
|
|
758
|
+
readonly minRisk: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>, undefined>;
|
|
759
|
+
readonly minImpact: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>, undefined>;
|
|
760
|
+
readonly onMissingEstimate: v.OptionalSchema<v.PicklistSchema<["run", "skip"], undefined>, "run">;
|
|
761
|
+
}, undefined>, undefined>, undefined>;
|
|
762
|
+
readonly skipped: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
763
|
+
readonly noBusinessSpecs: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
764
|
+
readonly technicalCorroborated: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
765
|
+
readonly output: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
766
|
+
readonly custom: v.OptionalSchema<v.UnknownSchema, undefined>;
|
|
767
|
+
readonly model: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
768
|
+
readonly selectedFragmentIds: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
769
|
+
readonly jobId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
770
|
+
readonly startedAt: v.OptionalSchema<v.NullableSchema<v.NumberSchema<undefined>, undefined>, undefined>;
|
|
771
|
+
readonly finishedAt: v.OptionalSchema<v.NullableSchema<v.NumberSchema<undefined>, undefined>, undefined>;
|
|
772
|
+
readonly pausedAt: v.OptionalSchema<v.NullableSchema<v.NumberSchema<undefined>, undefined>, undefined>;
|
|
773
|
+
readonly evictionRecoveries: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
|
|
774
|
+
readonly transientEvictionRecoveries: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
|
|
775
|
+
}, undefined>, undefined>;
|
|
776
|
+
readonly currentStep: v.NumberSchema<undefined>;
|
|
777
|
+
readonly status: v.PicklistSchema<["running", "blocked", "done", "paused", "failed"], undefined>;
|
|
778
|
+
readonly failure: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
|
|
779
|
+
readonly kind: v.PicklistSchema<["preflight", "dispatch", "evicted", "timeout", "agent", "job_failed", "rejected", "companion_rejected", "cancelled", "unknown"], undefined>;
|
|
780
|
+
readonly message: v.StringSchema<undefined>;
|
|
781
|
+
readonly detail: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
782
|
+
readonly hint: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
783
|
+
readonly occurredAt: v.NumberSchema<undefined>;
|
|
784
|
+
readonly lastSubtasks: v.NullableSchema<v.ObjectSchema<{
|
|
785
|
+
readonly completed: v.NumberSchema<undefined>;
|
|
786
|
+
readonly inProgress: v.NumberSchema<undefined>;
|
|
787
|
+
readonly total: v.NumberSchema<undefined>;
|
|
788
|
+
readonly items: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
789
|
+
readonly label: v.StringSchema<undefined>;
|
|
790
|
+
readonly status: v.PicklistSchema<["pending", "in_progress", "completed"], undefined>;
|
|
791
|
+
}, undefined>, undefined>, undefined>;
|
|
792
|
+
}, undefined>, undefined>;
|
|
793
|
+
}, undefined>, undefined>, undefined>;
|
|
794
|
+
readonly initiatedBy: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
795
|
+
}, undefined>, undefined>;
|
|
796
|
+
};
|
|
797
|
+
};
|
|
798
|
+
export declare const getExecutionLlmMetricsContract: {
|
|
799
|
+
readonly method: "get";
|
|
800
|
+
readonly requestPathParamsSchema: v.ObjectSchema<{
|
|
801
|
+
readonly executionId: v.StringSchema<undefined>;
|
|
802
|
+
}, undefined> & import("@toad-contracts/core").ObjectKeysCarrier;
|
|
803
|
+
readonly pathResolver: ({ executionId }: {
|
|
804
|
+
executionId: string;
|
|
805
|
+
}) => string;
|
|
806
|
+
readonly responsesByStatusCode: {
|
|
807
|
+
readonly '4xx': v.ObjectSchema<{
|
|
808
|
+
readonly error: v.ObjectSchema<{
|
|
809
|
+
readonly code: v.StringSchema<undefined>;
|
|
810
|
+
readonly message: v.StringSchema<undefined>;
|
|
811
|
+
readonly details: v.OptionalSchema<v.UnknownSchema, undefined>;
|
|
812
|
+
readonly issues: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
813
|
+
readonly path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
814
|
+
readonly message: v.StringSchema<undefined>;
|
|
815
|
+
}, undefined>, undefined>, undefined>;
|
|
816
|
+
}, undefined>;
|
|
817
|
+
}, undefined>;
|
|
818
|
+
readonly '5xx': v.ObjectSchema<{
|
|
819
|
+
readonly error: v.ObjectSchema<{
|
|
820
|
+
readonly code: v.StringSchema<undefined>;
|
|
821
|
+
readonly message: v.StringSchema<undefined>;
|
|
822
|
+
readonly details: v.OptionalSchema<v.UnknownSchema, undefined>;
|
|
823
|
+
readonly issues: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
824
|
+
readonly path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
825
|
+
readonly message: v.StringSchema<undefined>;
|
|
826
|
+
}, undefined>, undefined>, undefined>;
|
|
827
|
+
}, undefined>;
|
|
828
|
+
}, undefined>;
|
|
829
|
+
readonly 200: v.ObjectSchema<{
|
|
830
|
+
readonly executionId: v.StringSchema<undefined>;
|
|
831
|
+
readonly calls: v.ArraySchema<v.ObjectSchema<{
|
|
832
|
+
readonly id: v.StringSchema<undefined>;
|
|
833
|
+
readonly workspaceId: v.StringSchema<undefined>;
|
|
834
|
+
readonly executionId: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
835
|
+
readonly agentKind: v.StringSchema<undefined>;
|
|
836
|
+
readonly provider: v.StringSchema<undefined>;
|
|
837
|
+
readonly model: v.StringSchema<undefined>;
|
|
838
|
+
readonly createdAt: v.NumberSchema<undefined>;
|
|
839
|
+
readonly streaming: v.BooleanSchema<undefined>;
|
|
840
|
+
readonly messageCount: v.NumberSchema<undefined>;
|
|
841
|
+
readonly toolCount: v.NumberSchema<undefined>;
|
|
842
|
+
readonly requestMaxTokens: v.NullableSchema<v.NumberSchema<undefined>, undefined>;
|
|
843
|
+
readonly promptTokens: v.NumberSchema<undefined>;
|
|
844
|
+
readonly cachedPromptTokens: v.OptionalSchema<v.NumberSchema<undefined>, 0>;
|
|
845
|
+
readonly completionTokens: v.NumberSchema<undefined>;
|
|
846
|
+
readonly totalTokens: v.NumberSchema<undefined>;
|
|
847
|
+
readonly finishReason: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
848
|
+
readonly upstreamMs: v.NumberSchema<undefined>;
|
|
849
|
+
readonly overheadMs: v.NumberSchema<undefined>;
|
|
850
|
+
readonly totalMs: v.NumberSchema<undefined>;
|
|
851
|
+
readonly ok: v.BooleanSchema<undefined>;
|
|
852
|
+
readonly httpStatus: v.NullableSchema<v.NumberSchema<undefined>, undefined>;
|
|
853
|
+
readonly errorMessage: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
854
|
+
readonly promptText: v.StringSchema<undefined>;
|
|
855
|
+
readonly promptPrefixCount: v.OptionalSchema<v.NumberSchema<undefined>, 0>;
|
|
856
|
+
readonly promptHash: v.OptionalSchema<v.StringSchema<undefined>, "">;
|
|
857
|
+
readonly responseText: v.StringSchema<undefined>;
|
|
858
|
+
readonly reasoningText: v.OptionalSchema<v.StringSchema<undefined>, "">;
|
|
859
|
+
}, undefined>, undefined>;
|
|
860
|
+
}, undefined>;
|
|
861
|
+
};
|
|
862
|
+
};
|
|
863
|
+
export declare const getExecutionAgentContextContract: {
|
|
864
|
+
readonly method: "get";
|
|
865
|
+
readonly requestPathParamsSchema: v.ObjectSchema<{
|
|
866
|
+
readonly executionId: v.StringSchema<undefined>;
|
|
867
|
+
}, undefined> & import("@toad-contracts/core").ObjectKeysCarrier;
|
|
868
|
+
readonly pathResolver: ({ executionId }: {
|
|
869
|
+
executionId: string;
|
|
870
|
+
}) => string;
|
|
871
|
+
readonly responsesByStatusCode: {
|
|
872
|
+
readonly '4xx': v.ObjectSchema<{
|
|
873
|
+
readonly error: v.ObjectSchema<{
|
|
874
|
+
readonly code: v.StringSchema<undefined>;
|
|
875
|
+
readonly message: v.StringSchema<undefined>;
|
|
876
|
+
readonly details: v.OptionalSchema<v.UnknownSchema, undefined>;
|
|
877
|
+
readonly issues: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
878
|
+
readonly path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
879
|
+
readonly message: v.StringSchema<undefined>;
|
|
880
|
+
}, undefined>, undefined>, undefined>;
|
|
881
|
+
}, undefined>;
|
|
882
|
+
}, undefined>;
|
|
883
|
+
readonly '5xx': v.ObjectSchema<{
|
|
884
|
+
readonly error: v.ObjectSchema<{
|
|
885
|
+
readonly code: v.StringSchema<undefined>;
|
|
886
|
+
readonly message: v.StringSchema<undefined>;
|
|
887
|
+
readonly details: v.OptionalSchema<v.UnknownSchema, undefined>;
|
|
888
|
+
readonly issues: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
889
|
+
readonly path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
890
|
+
readonly message: v.StringSchema<undefined>;
|
|
891
|
+
}, undefined>, undefined>, undefined>;
|
|
892
|
+
}, undefined>;
|
|
893
|
+
}, undefined>;
|
|
894
|
+
readonly 200: v.ObjectSchema<{
|
|
895
|
+
readonly executionId: v.StringSchema<undefined>;
|
|
896
|
+
readonly snapshots: v.ArraySchema<v.ObjectSchema<{
|
|
897
|
+
readonly id: v.StringSchema<undefined>;
|
|
898
|
+
readonly workspaceId: v.StringSchema<undefined>;
|
|
899
|
+
readonly executionId: v.StringSchema<undefined>;
|
|
900
|
+
readonly agentKind: v.StringSchema<undefined>;
|
|
901
|
+
readonly stepIndex: v.NumberSchema<undefined>;
|
|
902
|
+
readonly createdAt: v.NumberSchema<undefined>;
|
|
903
|
+
readonly model: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
904
|
+
readonly harness: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
905
|
+
readonly systemPrompt: v.StringSchema<undefined>;
|
|
906
|
+
readonly userPrompt: v.StringSchema<undefined>;
|
|
907
|
+
readonly fragments: v.ArraySchema<v.ObjectSchema<{
|
|
908
|
+
readonly id: v.StringSchema<undefined>;
|
|
909
|
+
readonly body: v.StringSchema<undefined>;
|
|
910
|
+
}, undefined>, undefined>;
|
|
911
|
+
readonly contextFiles: v.ArraySchema<v.ObjectSchema<{
|
|
912
|
+
readonly path: v.StringSchema<undefined>;
|
|
913
|
+
readonly title: v.StringSchema<undefined>;
|
|
914
|
+
readonly url: v.StringSchema<undefined>;
|
|
915
|
+
readonly content: v.StringSchema<undefined>;
|
|
916
|
+
}, undefined>, undefined>;
|
|
917
|
+
readonly extras: v.RecordSchema<v.StringSchema<undefined>, v.UnknownSchema, undefined>;
|
|
918
|
+
}, undefined>, undefined>;
|
|
919
|
+
}, undefined>;
|
|
920
|
+
};
|
|
921
|
+
};
|
|
922
|
+
export declare const exportExecutionLlmMetricsContract: {
|
|
923
|
+
readonly method: "get";
|
|
924
|
+
readonly requestPathParamsSchema: v.ObjectSchema<{
|
|
925
|
+
readonly executionId: v.StringSchema<undefined>;
|
|
926
|
+
}, undefined> & import("@toad-contracts/core").ObjectKeysCarrier;
|
|
927
|
+
readonly pathResolver: ({ executionId }: {
|
|
928
|
+
executionId: string;
|
|
929
|
+
}) => string;
|
|
930
|
+
readonly responsesByStatusCode: {
|
|
931
|
+
readonly '4xx': v.ObjectSchema<{
|
|
932
|
+
readonly error: v.ObjectSchema<{
|
|
933
|
+
readonly code: v.StringSchema<undefined>;
|
|
934
|
+
readonly message: v.StringSchema<undefined>;
|
|
935
|
+
readonly details: v.OptionalSchema<v.UnknownSchema, undefined>;
|
|
936
|
+
readonly issues: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
937
|
+
readonly path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
938
|
+
readonly message: v.StringSchema<undefined>;
|
|
939
|
+
}, undefined>, undefined>, undefined>;
|
|
940
|
+
}, undefined>;
|
|
941
|
+
}, undefined>;
|
|
942
|
+
readonly '5xx': v.ObjectSchema<{
|
|
943
|
+
readonly error: v.ObjectSchema<{
|
|
944
|
+
readonly code: v.StringSchema<undefined>;
|
|
945
|
+
readonly message: v.StringSchema<undefined>;
|
|
946
|
+
readonly details: v.OptionalSchema<v.UnknownSchema, undefined>;
|
|
947
|
+
readonly issues: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
948
|
+
readonly path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
949
|
+
readonly message: v.StringSchema<undefined>;
|
|
950
|
+
}, undefined>, undefined>, undefined>;
|
|
951
|
+
}, undefined>;
|
|
952
|
+
}, undefined>;
|
|
953
|
+
readonly 200: v.ObjectSchema<{
|
|
954
|
+
readonly kind: v.LiteralSchema<"cat-factory.llm-metrics-export", undefined>;
|
|
955
|
+
readonly version: v.LiteralSchema<1, undefined>;
|
|
956
|
+
readonly executionId: v.StringSchema<undefined>;
|
|
957
|
+
readonly generatedAt: v.NumberSchema<undefined>;
|
|
958
|
+
readonly totals: v.ObjectSchema<{
|
|
959
|
+
readonly calls: v.NumberSchema<undefined>;
|
|
960
|
+
readonly promptTokens: v.NumberSchema<undefined>;
|
|
961
|
+
readonly completionTokens: v.NumberSchema<undefined>;
|
|
962
|
+
readonly upstreamMs: v.NumberSchema<undefined>;
|
|
963
|
+
readonly overheadMs: v.NumberSchema<undefined>;
|
|
964
|
+
readonly transportOverheadRatio: v.NullableSchema<v.NumberSchema<undefined>, undefined>;
|
|
965
|
+
readonly errors: v.NumberSchema<undefined>;
|
|
966
|
+
readonly warnings: v.NumberSchema<undefined>;
|
|
967
|
+
readonly truncatedCalls: v.NumberSchema<undefined>;
|
|
968
|
+
}, undefined>;
|
|
969
|
+
readonly insights: v.ArraySchema<v.ObjectSchema<{
|
|
970
|
+
readonly agentKind: v.StringSchema<undefined>;
|
|
971
|
+
readonly calls: v.NumberSchema<undefined>;
|
|
972
|
+
readonly promptTokens: v.NumberSchema<undefined>;
|
|
973
|
+
readonly completionTokens: v.NumberSchema<undefined>;
|
|
974
|
+
readonly peakCompletionTokens: v.NumberSchema<undefined>;
|
|
975
|
+
readonly maxOutputTokens: v.NullableSchema<v.NumberSchema<undefined>, undefined>;
|
|
976
|
+
readonly outputHeadroomRatio: v.NullableSchema<v.NumberSchema<undefined>, undefined>;
|
|
977
|
+
readonly truncatedCalls: v.NumberSchema<undefined>;
|
|
978
|
+
readonly upstreamMs: v.NumberSchema<undefined>;
|
|
979
|
+
readonly overheadMs: v.NumberSchema<undefined>;
|
|
980
|
+
readonly transportOverheadRatio: v.NullableSchema<v.NumberSchema<undefined>, undefined>;
|
|
981
|
+
readonly errors: v.NumberSchema<undefined>;
|
|
982
|
+
readonly warnings: v.NumberSchema<undefined>;
|
|
983
|
+
}, undefined>, undefined>;
|
|
984
|
+
readonly calls: v.ArraySchema<v.ObjectSchema<{
|
|
985
|
+
readonly id: v.StringSchema<undefined>;
|
|
986
|
+
readonly workspaceId: v.StringSchema<undefined>;
|
|
987
|
+
readonly executionId: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
988
|
+
readonly agentKind: v.StringSchema<undefined>;
|
|
989
|
+
readonly provider: v.StringSchema<undefined>;
|
|
990
|
+
readonly model: v.StringSchema<undefined>;
|
|
991
|
+
readonly createdAt: v.NumberSchema<undefined>;
|
|
992
|
+
readonly streaming: v.BooleanSchema<undefined>;
|
|
993
|
+
readonly messageCount: v.NumberSchema<undefined>;
|
|
994
|
+
readonly toolCount: v.NumberSchema<undefined>;
|
|
995
|
+
readonly requestMaxTokens: v.NullableSchema<v.NumberSchema<undefined>, undefined>;
|
|
996
|
+
readonly promptTokens: v.NumberSchema<undefined>;
|
|
997
|
+
readonly cachedPromptTokens: v.OptionalSchema<v.NumberSchema<undefined>, 0>;
|
|
998
|
+
readonly completionTokens: v.NumberSchema<undefined>;
|
|
999
|
+
readonly totalTokens: v.NumberSchema<undefined>;
|
|
1000
|
+
readonly finishReason: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
1001
|
+
readonly upstreamMs: v.NumberSchema<undefined>;
|
|
1002
|
+
readonly overheadMs: v.NumberSchema<undefined>;
|
|
1003
|
+
readonly totalMs: v.NumberSchema<undefined>;
|
|
1004
|
+
readonly ok: v.BooleanSchema<undefined>;
|
|
1005
|
+
readonly httpStatus: v.NullableSchema<v.NumberSchema<undefined>, undefined>;
|
|
1006
|
+
readonly errorMessage: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
1007
|
+
readonly promptText: v.StringSchema<undefined>;
|
|
1008
|
+
readonly promptPrefixCount: v.OptionalSchema<v.NumberSchema<undefined>, 0>;
|
|
1009
|
+
readonly promptHash: v.OptionalSchema<v.StringSchema<undefined>, "">;
|
|
1010
|
+
readonly responseText: v.StringSchema<undefined>;
|
|
1011
|
+
readonly reasoningText: v.OptionalSchema<v.StringSchema<undefined>, "">;
|
|
1012
|
+
}, undefined>, undefined>;
|
|
1013
|
+
}, undefined>;
|
|
1014
|
+
};
|
|
1015
|
+
};
|
|
1016
|
+
export declare const resolveDecisionContract: {
|
|
1017
|
+
readonly method: "post";
|
|
1018
|
+
readonly requestPathParamsSchema: v.ObjectSchema<{
|
|
1019
|
+
readonly executionId: v.StringSchema<undefined>;
|
|
1020
|
+
readonly decisionId: v.StringSchema<undefined>;
|
|
1021
|
+
}, undefined> & import("@toad-contracts/core").ObjectKeysCarrier;
|
|
1022
|
+
readonly pathResolver: ({ executionId, decisionId }: {
|
|
1023
|
+
executionId: string;
|
|
1024
|
+
decisionId: string;
|
|
1025
|
+
}) => string;
|
|
1026
|
+
readonly requestBodySchema: v.ObjectSchema<{
|
|
1027
|
+
readonly choice: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
|
|
1028
|
+
}, undefined>;
|
|
1029
|
+
readonly responsesByStatusCode: {
|
|
1030
|
+
readonly '4xx': v.ObjectSchema<{
|
|
1031
|
+
readonly error: v.ObjectSchema<{
|
|
1032
|
+
readonly code: v.StringSchema<undefined>;
|
|
1033
|
+
readonly message: v.StringSchema<undefined>;
|
|
1034
|
+
readonly details: v.OptionalSchema<v.UnknownSchema, undefined>;
|
|
1035
|
+
readonly issues: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
1036
|
+
readonly path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1037
|
+
readonly message: v.StringSchema<undefined>;
|
|
1038
|
+
}, undefined>, undefined>, undefined>;
|
|
1039
|
+
}, undefined>;
|
|
1040
|
+
}, undefined>;
|
|
1041
|
+
readonly '5xx': v.ObjectSchema<{
|
|
1042
|
+
readonly error: v.ObjectSchema<{
|
|
1043
|
+
readonly code: v.StringSchema<undefined>;
|
|
1044
|
+
readonly message: v.StringSchema<undefined>;
|
|
1045
|
+
readonly details: v.OptionalSchema<v.UnknownSchema, undefined>;
|
|
1046
|
+
readonly issues: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
1047
|
+
readonly path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1048
|
+
readonly message: v.StringSchema<undefined>;
|
|
1049
|
+
}, undefined>, undefined>, undefined>;
|
|
1050
|
+
}, undefined>;
|
|
1051
|
+
}, undefined>;
|
|
1052
|
+
readonly 200: v.ObjectSchema<{
|
|
1053
|
+
readonly id: v.StringSchema<undefined>;
|
|
1054
|
+
readonly blockId: v.StringSchema<undefined>;
|
|
1055
|
+
readonly pipelineId: v.StringSchema<undefined>;
|
|
1056
|
+
readonly pipelineName: v.StringSchema<undefined>;
|
|
1057
|
+
readonly steps: v.ArraySchema<v.ObjectSchema<{
|
|
1058
|
+
readonly runId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1059
|
+
readonly agentKind: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
|
|
1060
|
+
readonly state: v.PicklistSchema<["pending", "working", "waiting_decision", "done"], undefined>;
|
|
1061
|
+
readonly progress: v.NumberSchema<undefined>;
|
|
1062
|
+
readonly metrics: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
|
|
1063
|
+
readonly calls: v.NumberSchema<undefined>;
|
|
1064
|
+
readonly promptTokens: v.NumberSchema<undefined>;
|
|
1065
|
+
readonly completionTokens: v.NumberSchema<undefined>;
|
|
1066
|
+
readonly peakCompletionTokens: v.NumberSchema<undefined>;
|
|
1067
|
+
readonly maxOutputTokens: v.NullableSchema<v.NumberSchema<undefined>, undefined>;
|
|
1068
|
+
readonly truncatedCalls: v.NumberSchema<undefined>;
|
|
1069
|
+
readonly upstreamMs: v.NumberSchema<undefined>;
|
|
1070
|
+
readonly overheadMs: v.NumberSchema<undefined>;
|
|
1071
|
+
readonly errors: v.NumberSchema<undefined>;
|
|
1072
|
+
readonly warnings: v.NumberSchema<undefined>;
|
|
1073
|
+
}, undefined>, undefined>, undefined>;
|
|
1074
|
+
readonly gate: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
|
|
1075
|
+
readonly phase: v.PicklistSchema<["checking", "working"], undefined>;
|
|
1076
|
+
readonly attempts: v.NumberSchema<undefined>;
|
|
1077
|
+
readonly maxAttempts: v.NumberSchema<undefined>;
|
|
1078
|
+
readonly headSha: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
1079
|
+
readonly lastVerdict: v.OptionalSchema<v.NullableSchema<v.PicklistSchema<["pass", "pending", "fail"], undefined>, undefined>, undefined>;
|
|
1080
|
+
readonly lastFailureSummary: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
1081
|
+
readonly failingChecks: v.OptionalSchema<v.NullableSchema<v.ArraySchema<v.ObjectSchema<{
|
|
1082
|
+
readonly name: v.StringSchema<undefined>;
|
|
1083
|
+
readonly conclusion: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
1084
|
+
readonly url: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
1085
|
+
}, undefined>, undefined>, undefined>, undefined>;
|
|
1086
|
+
readonly watchSince: v.OptionalSchema<v.NullableSchema<v.NumberSchema<undefined>, undefined>, undefined>;
|
|
1087
|
+
readonly watchWindowMinutes: v.OptionalSchema<v.NullableSchema<v.NumberSchema<undefined>, undefined>, undefined>;
|
|
1088
|
+
readonly regressedSignals: v.OptionalSchema<v.NullableSchema<v.ArraySchema<v.ObjectSchema<{
|
|
1089
|
+
readonly kind: v.PicklistSchema<["monitor", "slo"], undefined>;
|
|
1090
|
+
readonly id: v.StringSchema<undefined>;
|
|
1091
|
+
readonly name: v.StringSchema<undefined>;
|
|
1092
|
+
readonly state: v.PicklistSchema<["ok", "warn", "alert", "no_data"], undefined>;
|
|
1093
|
+
readonly detail: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1094
|
+
}, undefined>, undefined>, undefined>, undefined>;
|
|
1095
|
+
readonly attemptLog: v.OptionalSchema<v.NullableSchema<v.ArraySchema<v.ObjectSchema<{
|
|
1096
|
+
readonly attempt: v.NumberSchema<undefined>;
|
|
1097
|
+
readonly at: v.NumberSchema<undefined>;
|
|
1098
|
+
readonly outcome: v.PicklistSchema<["completed", "failed"], undefined>;
|
|
1099
|
+
readonly headSha: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
1100
|
+
readonly summary: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
1101
|
+
}, undefined>, undefined>, undefined>, undefined>;
|
|
1102
|
+
readonly lastApprovals: v.OptionalSchema<v.NullableSchema<v.NumberSchema<undefined>, undefined>, undefined>;
|
|
1103
|
+
readonly requiredApprovingReviewCount: v.OptionalSchema<v.NullableSchema<v.NumberSchema<undefined>, undefined>, undefined>;
|
|
1104
|
+
readonly pendingThreadIds: v.OptionalSchema<v.NullableSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>, undefined>;
|
|
1105
|
+
readonly lastAddressedCommentAt: v.OptionalSchema<v.NullableSchema<v.NumberSchema<undefined>, undefined>, undefined>;
|
|
1106
|
+
readonly humanReviewGraceMinutes: v.OptionalSchema<v.NullableSchema<v.NumberSchema<undefined>, undefined>, undefined>;
|
|
1107
|
+
readonly pendingFix: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
|
|
1108
|
+
readonly instructions: v.StringSchema<undefined>;
|
|
1109
|
+
readonly at: v.NumberSchema<undefined>;
|
|
1110
|
+
}, undefined>, undefined>, undefined>;
|
|
1111
|
+
}, undefined>, undefined>, undefined>;
|
|
1112
|
+
readonly test: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
|
|
1113
|
+
readonly phase: v.PicklistSchema<["testing", "fixing"], undefined>;
|
|
1114
|
+
readonly attempts: v.NumberSchema<undefined>;
|
|
1115
|
+
readonly maxAttempts: v.NumberSchema<undefined>;
|
|
1116
|
+
readonly lastReport: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
|
|
1117
|
+
readonly greenlight: v.BooleanSchema<undefined>;
|
|
1118
|
+
readonly summary: v.StringSchema<undefined>;
|
|
1119
|
+
readonly tested: v.ArraySchema<v.StringSchema<undefined>, undefined>;
|
|
1120
|
+
readonly outcomes: v.ArraySchema<v.ObjectSchema<{
|
|
1121
|
+
readonly name: v.StringSchema<undefined>;
|
|
1122
|
+
readonly status: v.PicklistSchema<["passed", "failed", "skipped"], undefined>;
|
|
1123
|
+
readonly detail: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1124
|
+
}, undefined>, undefined>;
|
|
1125
|
+
readonly concerns: v.ArraySchema<v.ObjectSchema<{
|
|
1126
|
+
readonly title: v.StringSchema<undefined>;
|
|
1127
|
+
readonly detail: v.StringSchema<undefined>;
|
|
1128
|
+
readonly severity: v.PicklistSchema<["low", "medium", "high", "critical"], undefined>;
|
|
1129
|
+
}, undefined>, undefined>;
|
|
1130
|
+
readonly environment: v.OptionalSchema<v.PicklistSchema<["local", "ephemeral"], undefined>, undefined>;
|
|
1131
|
+
}, undefined>, undefined>, undefined>;
|
|
1132
|
+
}, undefined>, undefined>, undefined>;
|
|
1133
|
+
readonly humanTest: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
|
|
1134
|
+
readonly phase: v.PicklistSchema<["provisioning", "awaiting_human", "fixing", "resolving_conflicts", "passed"], undefined>;
|
|
1135
|
+
readonly environment: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
|
|
1136
|
+
readonly id: v.StringSchema<undefined>;
|
|
1137
|
+
readonly url: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
1138
|
+
readonly status: v.PicklistSchema<["provisioning", "ready", "failed", "expired", "tearing_down", "torn_down"], undefined>;
|
|
1139
|
+
readonly expiresAt: v.OptionalSchema<v.NullableSchema<v.NumberSchema<undefined>, undefined>, undefined>;
|
|
1140
|
+
}, undefined>, undefined>, undefined>;
|
|
1141
|
+
readonly degradedReason: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
1142
|
+
readonly attempts: v.NumberSchema<undefined>;
|
|
1143
|
+
readonly maxAttempts: v.NumberSchema<undefined>;
|
|
1144
|
+
readonly headSha: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
1145
|
+
readonly rounds: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
1146
|
+
readonly kind: v.PicklistSchema<["fix", "pull-main"], undefined>;
|
|
1147
|
+
readonly findings: v.StringSchema<undefined>;
|
|
1148
|
+
readonly helperKind: v.StringSchema<undefined>;
|
|
1149
|
+
readonly jobId: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
1150
|
+
readonly outcome: v.OptionalSchema<v.NullableSchema<v.PicklistSchema<["completed", "failed"], undefined>, undefined>, undefined>;
|
|
1151
|
+
readonly at: v.NumberSchema<undefined>;
|
|
1152
|
+
}, undefined>, undefined>, undefined>;
|
|
1153
|
+
readonly pendingAction: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
|
|
1154
|
+
readonly type: v.PicklistSchema<["confirm", "request-fix", "pull-main", "recreate"], undefined>;
|
|
1155
|
+
readonly findings: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1156
|
+
}, undefined>, undefined>, undefined>;
|
|
1157
|
+
}, undefined>, undefined>, undefined>;
|
|
1158
|
+
readonly environment: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
|
|
1159
|
+
readonly id: v.StringSchema<undefined>;
|
|
1160
|
+
readonly url: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
1161
|
+
readonly status: v.PicklistSchema<["provisioning", "ready", "failed", "expired", "tearing_down", "torn_down"], undefined>;
|
|
1162
|
+
readonly expiresAt: v.OptionalSchema<v.NullableSchema<v.NumberSchema<undefined>, undefined>, undefined>;
|
|
1163
|
+
readonly lastError: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
1164
|
+
}, undefined>, undefined>, undefined>;
|
|
1165
|
+
readonly subtasks: v.OptionalSchema<v.ObjectSchema<{
|
|
1166
|
+
readonly completed: v.NumberSchema<undefined>;
|
|
1167
|
+
readonly inProgress: v.NumberSchema<undefined>;
|
|
1168
|
+
readonly total: v.NumberSchema<undefined>;
|
|
1169
|
+
readonly items: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
1170
|
+
readonly label: v.StringSchema<undefined>;
|
|
1171
|
+
readonly status: v.PicklistSchema<["pending", "in_progress", "completed"], undefined>;
|
|
1172
|
+
}, undefined>, undefined>, undefined>;
|
|
1173
|
+
}, undefined>, undefined>;
|
|
1174
|
+
readonly startingContainer: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
1175
|
+
readonly decision: v.NullableSchema<v.ObjectSchema<{
|
|
1176
|
+
readonly id: v.StringSchema<undefined>;
|
|
1177
|
+
readonly question: v.StringSchema<undefined>;
|
|
1178
|
+
readonly options: v.ArraySchema<v.StringSchema<undefined>, undefined>;
|
|
1179
|
+
readonly chosen: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
1180
|
+
}, undefined>, undefined>;
|
|
1181
|
+
readonly requiresApproval: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
1182
|
+
readonly approval: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
|
|
1183
|
+
readonly id: v.StringSchema<undefined>;
|
|
1184
|
+
readonly status: v.PicklistSchema<["pending", "approved", "changes_requested", "rejected"], undefined>;
|
|
1185
|
+
readonly proposal: v.StringSchema<undefined>;
|
|
1186
|
+
readonly feedback: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1187
|
+
readonly comments: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
1188
|
+
readonly quotedSource: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1189
|
+
readonly srcStart: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
|
|
1190
|
+
readonly srcEnd: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
|
|
1191
|
+
readonly anchorId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1192
|
+
readonly body: v.StringSchema<undefined>;
|
|
1193
|
+
}, undefined>, undefined>, undefined>;
|
|
1194
|
+
}, undefined>, undefined>, undefined>;
|
|
1195
|
+
readonly companion: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
|
|
1196
|
+
readonly threshold: v.NumberSchema<undefined>;
|
|
1197
|
+
readonly maxAttempts: v.NumberSchema<undefined>;
|
|
1198
|
+
readonly attempts: v.OptionalSchema<v.NumberSchema<undefined>, 0>;
|
|
1199
|
+
readonly verdicts: v.ArraySchema<v.ObjectSchema<{
|
|
1200
|
+
readonly rating: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>;
|
|
1201
|
+
readonly threshold: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>;
|
|
1202
|
+
readonly passed: v.BooleanSchema<undefined>;
|
|
1203
|
+
readonly feedback: v.StringSchema<undefined>;
|
|
1204
|
+
}, undefined>, undefined>;
|
|
1205
|
+
readonly exceeded: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
1206
|
+
}, undefined>, undefined>, undefined>;
|
|
1207
|
+
readonly followUps: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
|
|
1208
|
+
readonly enabled: v.BooleanSchema<undefined>;
|
|
1209
|
+
readonly items: v.ArraySchema<v.ObjectSchema<{
|
|
1210
|
+
readonly id: v.StringSchema<undefined>;
|
|
1211
|
+
readonly kind: v.PicklistSchema<["follow_up", "question"], undefined>;
|
|
1212
|
+
readonly title: v.StringSchema<undefined>;
|
|
1213
|
+
readonly detail: v.StringSchema<undefined>;
|
|
1214
|
+
readonly suggestedAction: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
1215
|
+
readonly status: v.PicklistSchema<["pending", "filed", "queued", "answered", "dismissed"], undefined>;
|
|
1216
|
+
readonly answer: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
1217
|
+
readonly sentToCoder: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
1218
|
+
readonly ticketExternalId: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
1219
|
+
readonly ticketUrl: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
1220
|
+
readonly createdAt: v.NumberSchema<undefined>;
|
|
1221
|
+
readonly updatedAt: v.NumberSchema<undefined>;
|
|
1222
|
+
}, undefined>, undefined>;
|
|
1223
|
+
readonly loops: v.OptionalSchema<v.NumberSchema<undefined>, 0>;
|
|
1224
|
+
readonly maxLoops: v.OptionalSchema<v.NumberSchema<undefined>, 3>;
|
|
1225
|
+
}, undefined>, undefined>, undefined>;
|
|
1226
|
+
readonly rework: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
|
|
1227
|
+
readonly previousProposal: v.StringSchema<undefined>;
|
|
1228
|
+
readonly feedback: v.StringSchema<undefined>;
|
|
1229
|
+
readonly comments: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
1230
|
+
readonly quotedSource: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1231
|
+
readonly srcStart: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
|
|
1232
|
+
readonly srcEnd: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
|
|
1233
|
+
readonly anchorId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1234
|
+
readonly body: v.StringSchema<undefined>;
|
|
1235
|
+
}, undefined>, undefined>, undefined>;
|
|
1236
|
+
}, undefined>, undefined>, undefined>;
|
|
1237
|
+
readonly pendingIncorporation: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
|
|
1238
|
+
readonly feedback: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1239
|
+
}, undefined>, undefined>, undefined>;
|
|
1240
|
+
readonly pendingRecommendation: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
|
|
1241
|
+
readonly itemIds: v.ArraySchema<v.StringSchema<undefined>, undefined>;
|
|
1242
|
+
readonly note: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1243
|
+
}, undefined>, undefined>, undefined>;
|
|
1244
|
+
readonly consensus: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
|
|
1245
|
+
readonly enabled: v.BooleanSchema<undefined>;
|
|
1246
|
+
readonly strategy: v.PicklistSchema<["specialist-panel", "debate", "ranked-voting"], undefined>;
|
|
1247
|
+
readonly participants: v.ArraySchema<v.ObjectSchema<{
|
|
1248
|
+
readonly id: v.StringSchema<undefined>;
|
|
1249
|
+
readonly role: v.StringSchema<undefined>;
|
|
1250
|
+
readonly systemFraming: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1251
|
+
readonly modelId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1252
|
+
}, undefined>, undefined>;
|
|
1253
|
+
readonly synthesizerModelId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1254
|
+
readonly rounds: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>, v.MaxValueAction<number, 5, undefined>]>, undefined>;
|
|
1255
|
+
readonly gating: v.OptionalSchema<v.ObjectSchema<{
|
|
1256
|
+
readonly enabled: v.BooleanSchema<undefined>;
|
|
1257
|
+
readonly minComplexity: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>, undefined>;
|
|
1258
|
+
readonly minRisk: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>, undefined>;
|
|
1259
|
+
readonly minImpact: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>, undefined>;
|
|
1260
|
+
readonly onMissingEstimate: v.OptionalSchema<v.PicklistSchema<["consensus", "standard"], undefined>, "consensus">;
|
|
1261
|
+
}, undefined>, undefined>;
|
|
1262
|
+
}, undefined>, undefined>, undefined>;
|
|
1263
|
+
readonly gating: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
|
|
1264
|
+
readonly enabled: v.BooleanSchema<undefined>;
|
|
1265
|
+
readonly minComplexity: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>, undefined>;
|
|
1266
|
+
readonly minRisk: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>, undefined>;
|
|
1267
|
+
readonly minImpact: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>, undefined>;
|
|
1268
|
+
readonly onMissingEstimate: v.OptionalSchema<v.PicklistSchema<["run", "skip"], undefined>, "run">;
|
|
1269
|
+
}, undefined>, undefined>, undefined>;
|
|
1270
|
+
readonly skipped: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
1271
|
+
readonly noBusinessSpecs: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
1272
|
+
readonly technicalCorroborated: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
1273
|
+
readonly output: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1274
|
+
readonly custom: v.OptionalSchema<v.UnknownSchema, undefined>;
|
|
1275
|
+
readonly model: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1276
|
+
readonly selectedFragmentIds: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
1277
|
+
readonly jobId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1278
|
+
readonly startedAt: v.OptionalSchema<v.NullableSchema<v.NumberSchema<undefined>, undefined>, undefined>;
|
|
1279
|
+
readonly finishedAt: v.OptionalSchema<v.NullableSchema<v.NumberSchema<undefined>, undefined>, undefined>;
|
|
1280
|
+
readonly pausedAt: v.OptionalSchema<v.NullableSchema<v.NumberSchema<undefined>, undefined>, undefined>;
|
|
1281
|
+
readonly evictionRecoveries: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
|
|
1282
|
+
readonly transientEvictionRecoveries: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
|
|
1283
|
+
}, undefined>, undefined>;
|
|
1284
|
+
readonly currentStep: v.NumberSchema<undefined>;
|
|
1285
|
+
readonly status: v.PicklistSchema<["running", "blocked", "done", "paused", "failed"], undefined>;
|
|
1286
|
+
readonly failure: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
|
|
1287
|
+
readonly kind: v.PicklistSchema<["preflight", "dispatch", "evicted", "timeout", "agent", "job_failed", "rejected", "companion_rejected", "cancelled", "unknown"], undefined>;
|
|
1288
|
+
readonly message: v.StringSchema<undefined>;
|
|
1289
|
+
readonly detail: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
1290
|
+
readonly hint: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
1291
|
+
readonly occurredAt: v.NumberSchema<undefined>;
|
|
1292
|
+
readonly lastSubtasks: v.NullableSchema<v.ObjectSchema<{
|
|
1293
|
+
readonly completed: v.NumberSchema<undefined>;
|
|
1294
|
+
readonly inProgress: v.NumberSchema<undefined>;
|
|
1295
|
+
readonly total: v.NumberSchema<undefined>;
|
|
1296
|
+
readonly items: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
1297
|
+
readonly label: v.StringSchema<undefined>;
|
|
1298
|
+
readonly status: v.PicklistSchema<["pending", "in_progress", "completed"], undefined>;
|
|
1299
|
+
}, undefined>, undefined>, undefined>;
|
|
1300
|
+
}, undefined>, undefined>;
|
|
1301
|
+
}, undefined>, undefined>, undefined>;
|
|
1302
|
+
readonly initiatedBy: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
1303
|
+
}, undefined>;
|
|
1304
|
+
};
|
|
1305
|
+
};
|
|
1306
|
+
export declare const approveStepContract: {
|
|
1307
|
+
readonly method: "post";
|
|
1308
|
+
readonly requestPathParamsSchema: v.ObjectSchema<{
|
|
1309
|
+
readonly executionId: v.StringSchema<undefined>;
|
|
1310
|
+
readonly approvalId: v.StringSchema<undefined>;
|
|
1311
|
+
}, undefined> & import("@toad-contracts/core").ObjectKeysCarrier;
|
|
1312
|
+
readonly pathResolver: ({ executionId, approvalId }: {
|
|
1313
|
+
executionId: string;
|
|
1314
|
+
approvalId: string;
|
|
1315
|
+
}) => string;
|
|
1316
|
+
readonly requestBodySchema: v.ObjectSchema<{
|
|
1317
|
+
readonly proposal: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 50000, undefined>]>, undefined>;
|
|
1318
|
+
}, undefined>;
|
|
1319
|
+
readonly responsesByStatusCode: {
|
|
1320
|
+
readonly '4xx': v.ObjectSchema<{
|
|
1321
|
+
readonly error: v.ObjectSchema<{
|
|
1322
|
+
readonly code: v.StringSchema<undefined>;
|
|
1323
|
+
readonly message: v.StringSchema<undefined>;
|
|
1324
|
+
readonly details: v.OptionalSchema<v.UnknownSchema, undefined>;
|
|
1325
|
+
readonly issues: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
1326
|
+
readonly path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1327
|
+
readonly message: v.StringSchema<undefined>;
|
|
1328
|
+
}, undefined>, undefined>, undefined>;
|
|
1329
|
+
}, undefined>;
|
|
1330
|
+
}, undefined>;
|
|
1331
|
+
readonly '5xx': v.ObjectSchema<{
|
|
1332
|
+
readonly error: v.ObjectSchema<{
|
|
1333
|
+
readonly code: v.StringSchema<undefined>;
|
|
1334
|
+
readonly message: v.StringSchema<undefined>;
|
|
1335
|
+
readonly details: v.OptionalSchema<v.UnknownSchema, undefined>;
|
|
1336
|
+
readonly issues: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
1337
|
+
readonly path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1338
|
+
readonly message: v.StringSchema<undefined>;
|
|
1339
|
+
}, undefined>, undefined>, undefined>;
|
|
1340
|
+
}, undefined>;
|
|
1341
|
+
}, undefined>;
|
|
1342
|
+
readonly 200: v.ObjectSchema<{
|
|
1343
|
+
readonly id: v.StringSchema<undefined>;
|
|
1344
|
+
readonly blockId: v.StringSchema<undefined>;
|
|
1345
|
+
readonly pipelineId: v.StringSchema<undefined>;
|
|
1346
|
+
readonly pipelineName: v.StringSchema<undefined>;
|
|
1347
|
+
readonly steps: v.ArraySchema<v.ObjectSchema<{
|
|
1348
|
+
readonly runId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1349
|
+
readonly agentKind: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
|
|
1350
|
+
readonly state: v.PicklistSchema<["pending", "working", "waiting_decision", "done"], undefined>;
|
|
1351
|
+
readonly progress: v.NumberSchema<undefined>;
|
|
1352
|
+
readonly metrics: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
|
|
1353
|
+
readonly calls: v.NumberSchema<undefined>;
|
|
1354
|
+
readonly promptTokens: v.NumberSchema<undefined>;
|
|
1355
|
+
readonly completionTokens: v.NumberSchema<undefined>;
|
|
1356
|
+
readonly peakCompletionTokens: v.NumberSchema<undefined>;
|
|
1357
|
+
readonly maxOutputTokens: v.NullableSchema<v.NumberSchema<undefined>, undefined>;
|
|
1358
|
+
readonly truncatedCalls: v.NumberSchema<undefined>;
|
|
1359
|
+
readonly upstreamMs: v.NumberSchema<undefined>;
|
|
1360
|
+
readonly overheadMs: v.NumberSchema<undefined>;
|
|
1361
|
+
readonly errors: v.NumberSchema<undefined>;
|
|
1362
|
+
readonly warnings: v.NumberSchema<undefined>;
|
|
1363
|
+
}, undefined>, undefined>, undefined>;
|
|
1364
|
+
readonly gate: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
|
|
1365
|
+
readonly phase: v.PicklistSchema<["checking", "working"], undefined>;
|
|
1366
|
+
readonly attempts: v.NumberSchema<undefined>;
|
|
1367
|
+
readonly maxAttempts: v.NumberSchema<undefined>;
|
|
1368
|
+
readonly headSha: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
1369
|
+
readonly lastVerdict: v.OptionalSchema<v.NullableSchema<v.PicklistSchema<["pass", "pending", "fail"], undefined>, undefined>, undefined>;
|
|
1370
|
+
readonly lastFailureSummary: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
1371
|
+
readonly failingChecks: v.OptionalSchema<v.NullableSchema<v.ArraySchema<v.ObjectSchema<{
|
|
1372
|
+
readonly name: v.StringSchema<undefined>;
|
|
1373
|
+
readonly conclusion: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
1374
|
+
readonly url: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
1375
|
+
}, undefined>, undefined>, undefined>, undefined>;
|
|
1376
|
+
readonly watchSince: v.OptionalSchema<v.NullableSchema<v.NumberSchema<undefined>, undefined>, undefined>;
|
|
1377
|
+
readonly watchWindowMinutes: v.OptionalSchema<v.NullableSchema<v.NumberSchema<undefined>, undefined>, undefined>;
|
|
1378
|
+
readonly regressedSignals: v.OptionalSchema<v.NullableSchema<v.ArraySchema<v.ObjectSchema<{
|
|
1379
|
+
readonly kind: v.PicklistSchema<["monitor", "slo"], undefined>;
|
|
1380
|
+
readonly id: v.StringSchema<undefined>;
|
|
1381
|
+
readonly name: v.StringSchema<undefined>;
|
|
1382
|
+
readonly state: v.PicklistSchema<["ok", "warn", "alert", "no_data"], undefined>;
|
|
1383
|
+
readonly detail: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1384
|
+
}, undefined>, undefined>, undefined>, undefined>;
|
|
1385
|
+
readonly attemptLog: v.OptionalSchema<v.NullableSchema<v.ArraySchema<v.ObjectSchema<{
|
|
1386
|
+
readonly attempt: v.NumberSchema<undefined>;
|
|
1387
|
+
readonly at: v.NumberSchema<undefined>;
|
|
1388
|
+
readonly outcome: v.PicklistSchema<["completed", "failed"], undefined>;
|
|
1389
|
+
readonly headSha: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
1390
|
+
readonly summary: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
1391
|
+
}, undefined>, undefined>, undefined>, undefined>;
|
|
1392
|
+
readonly lastApprovals: v.OptionalSchema<v.NullableSchema<v.NumberSchema<undefined>, undefined>, undefined>;
|
|
1393
|
+
readonly requiredApprovingReviewCount: v.OptionalSchema<v.NullableSchema<v.NumberSchema<undefined>, undefined>, undefined>;
|
|
1394
|
+
readonly pendingThreadIds: v.OptionalSchema<v.NullableSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>, undefined>;
|
|
1395
|
+
readonly lastAddressedCommentAt: v.OptionalSchema<v.NullableSchema<v.NumberSchema<undefined>, undefined>, undefined>;
|
|
1396
|
+
readonly humanReviewGraceMinutes: v.OptionalSchema<v.NullableSchema<v.NumberSchema<undefined>, undefined>, undefined>;
|
|
1397
|
+
readonly pendingFix: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
|
|
1398
|
+
readonly instructions: v.StringSchema<undefined>;
|
|
1399
|
+
readonly at: v.NumberSchema<undefined>;
|
|
1400
|
+
}, undefined>, undefined>, undefined>;
|
|
1401
|
+
}, undefined>, undefined>, undefined>;
|
|
1402
|
+
readonly test: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
|
|
1403
|
+
readonly phase: v.PicklistSchema<["testing", "fixing"], undefined>;
|
|
1404
|
+
readonly attempts: v.NumberSchema<undefined>;
|
|
1405
|
+
readonly maxAttempts: v.NumberSchema<undefined>;
|
|
1406
|
+
readonly lastReport: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
|
|
1407
|
+
readonly greenlight: v.BooleanSchema<undefined>;
|
|
1408
|
+
readonly summary: v.StringSchema<undefined>;
|
|
1409
|
+
readonly tested: v.ArraySchema<v.StringSchema<undefined>, undefined>;
|
|
1410
|
+
readonly outcomes: v.ArraySchema<v.ObjectSchema<{
|
|
1411
|
+
readonly name: v.StringSchema<undefined>;
|
|
1412
|
+
readonly status: v.PicklistSchema<["passed", "failed", "skipped"], undefined>;
|
|
1413
|
+
readonly detail: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1414
|
+
}, undefined>, undefined>;
|
|
1415
|
+
readonly concerns: v.ArraySchema<v.ObjectSchema<{
|
|
1416
|
+
readonly title: v.StringSchema<undefined>;
|
|
1417
|
+
readonly detail: v.StringSchema<undefined>;
|
|
1418
|
+
readonly severity: v.PicklistSchema<["low", "medium", "high", "critical"], undefined>;
|
|
1419
|
+
}, undefined>, undefined>;
|
|
1420
|
+
readonly environment: v.OptionalSchema<v.PicklistSchema<["local", "ephemeral"], undefined>, undefined>;
|
|
1421
|
+
}, undefined>, undefined>, undefined>;
|
|
1422
|
+
}, undefined>, undefined>, undefined>;
|
|
1423
|
+
readonly humanTest: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
|
|
1424
|
+
readonly phase: v.PicklistSchema<["provisioning", "awaiting_human", "fixing", "resolving_conflicts", "passed"], undefined>;
|
|
1425
|
+
readonly environment: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
|
|
1426
|
+
readonly id: v.StringSchema<undefined>;
|
|
1427
|
+
readonly url: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
1428
|
+
readonly status: v.PicklistSchema<["provisioning", "ready", "failed", "expired", "tearing_down", "torn_down"], undefined>;
|
|
1429
|
+
readonly expiresAt: v.OptionalSchema<v.NullableSchema<v.NumberSchema<undefined>, undefined>, undefined>;
|
|
1430
|
+
}, undefined>, undefined>, undefined>;
|
|
1431
|
+
readonly degradedReason: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
1432
|
+
readonly attempts: v.NumberSchema<undefined>;
|
|
1433
|
+
readonly maxAttempts: v.NumberSchema<undefined>;
|
|
1434
|
+
readonly headSha: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
1435
|
+
readonly rounds: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
1436
|
+
readonly kind: v.PicklistSchema<["fix", "pull-main"], undefined>;
|
|
1437
|
+
readonly findings: v.StringSchema<undefined>;
|
|
1438
|
+
readonly helperKind: v.StringSchema<undefined>;
|
|
1439
|
+
readonly jobId: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
1440
|
+
readonly outcome: v.OptionalSchema<v.NullableSchema<v.PicklistSchema<["completed", "failed"], undefined>, undefined>, undefined>;
|
|
1441
|
+
readonly at: v.NumberSchema<undefined>;
|
|
1442
|
+
}, undefined>, undefined>, undefined>;
|
|
1443
|
+
readonly pendingAction: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
|
|
1444
|
+
readonly type: v.PicklistSchema<["confirm", "request-fix", "pull-main", "recreate"], undefined>;
|
|
1445
|
+
readonly findings: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1446
|
+
}, undefined>, undefined>, undefined>;
|
|
1447
|
+
}, undefined>, undefined>, undefined>;
|
|
1448
|
+
readonly environment: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
|
|
1449
|
+
readonly id: v.StringSchema<undefined>;
|
|
1450
|
+
readonly url: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
1451
|
+
readonly status: v.PicklistSchema<["provisioning", "ready", "failed", "expired", "tearing_down", "torn_down"], undefined>;
|
|
1452
|
+
readonly expiresAt: v.OptionalSchema<v.NullableSchema<v.NumberSchema<undefined>, undefined>, undefined>;
|
|
1453
|
+
readonly lastError: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
1454
|
+
}, undefined>, undefined>, undefined>;
|
|
1455
|
+
readonly subtasks: v.OptionalSchema<v.ObjectSchema<{
|
|
1456
|
+
readonly completed: v.NumberSchema<undefined>;
|
|
1457
|
+
readonly inProgress: v.NumberSchema<undefined>;
|
|
1458
|
+
readonly total: v.NumberSchema<undefined>;
|
|
1459
|
+
readonly items: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
1460
|
+
readonly label: v.StringSchema<undefined>;
|
|
1461
|
+
readonly status: v.PicklistSchema<["pending", "in_progress", "completed"], undefined>;
|
|
1462
|
+
}, undefined>, undefined>, undefined>;
|
|
1463
|
+
}, undefined>, undefined>;
|
|
1464
|
+
readonly startingContainer: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
1465
|
+
readonly decision: v.NullableSchema<v.ObjectSchema<{
|
|
1466
|
+
readonly id: v.StringSchema<undefined>;
|
|
1467
|
+
readonly question: v.StringSchema<undefined>;
|
|
1468
|
+
readonly options: v.ArraySchema<v.StringSchema<undefined>, undefined>;
|
|
1469
|
+
readonly chosen: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
1470
|
+
}, undefined>, undefined>;
|
|
1471
|
+
readonly requiresApproval: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
1472
|
+
readonly approval: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
|
|
1473
|
+
readonly id: v.StringSchema<undefined>;
|
|
1474
|
+
readonly status: v.PicklistSchema<["pending", "approved", "changes_requested", "rejected"], undefined>;
|
|
1475
|
+
readonly proposal: v.StringSchema<undefined>;
|
|
1476
|
+
readonly feedback: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1477
|
+
readonly comments: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
1478
|
+
readonly quotedSource: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1479
|
+
readonly srcStart: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
|
|
1480
|
+
readonly srcEnd: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
|
|
1481
|
+
readonly anchorId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1482
|
+
readonly body: v.StringSchema<undefined>;
|
|
1483
|
+
}, undefined>, undefined>, undefined>;
|
|
1484
|
+
}, undefined>, undefined>, undefined>;
|
|
1485
|
+
readonly companion: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
|
|
1486
|
+
readonly threshold: v.NumberSchema<undefined>;
|
|
1487
|
+
readonly maxAttempts: v.NumberSchema<undefined>;
|
|
1488
|
+
readonly attempts: v.OptionalSchema<v.NumberSchema<undefined>, 0>;
|
|
1489
|
+
readonly verdicts: v.ArraySchema<v.ObjectSchema<{
|
|
1490
|
+
readonly rating: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>;
|
|
1491
|
+
readonly threshold: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>;
|
|
1492
|
+
readonly passed: v.BooleanSchema<undefined>;
|
|
1493
|
+
readonly feedback: v.StringSchema<undefined>;
|
|
1494
|
+
}, undefined>, undefined>;
|
|
1495
|
+
readonly exceeded: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
1496
|
+
}, undefined>, undefined>, undefined>;
|
|
1497
|
+
readonly followUps: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
|
|
1498
|
+
readonly enabled: v.BooleanSchema<undefined>;
|
|
1499
|
+
readonly items: v.ArraySchema<v.ObjectSchema<{
|
|
1500
|
+
readonly id: v.StringSchema<undefined>;
|
|
1501
|
+
readonly kind: v.PicklistSchema<["follow_up", "question"], undefined>;
|
|
1502
|
+
readonly title: v.StringSchema<undefined>;
|
|
1503
|
+
readonly detail: v.StringSchema<undefined>;
|
|
1504
|
+
readonly suggestedAction: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
1505
|
+
readonly status: v.PicklistSchema<["pending", "filed", "queued", "answered", "dismissed"], undefined>;
|
|
1506
|
+
readonly answer: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
1507
|
+
readonly sentToCoder: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
1508
|
+
readonly ticketExternalId: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
1509
|
+
readonly ticketUrl: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
1510
|
+
readonly createdAt: v.NumberSchema<undefined>;
|
|
1511
|
+
readonly updatedAt: v.NumberSchema<undefined>;
|
|
1512
|
+
}, undefined>, undefined>;
|
|
1513
|
+
readonly loops: v.OptionalSchema<v.NumberSchema<undefined>, 0>;
|
|
1514
|
+
readonly maxLoops: v.OptionalSchema<v.NumberSchema<undefined>, 3>;
|
|
1515
|
+
}, undefined>, undefined>, undefined>;
|
|
1516
|
+
readonly rework: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
|
|
1517
|
+
readonly previousProposal: v.StringSchema<undefined>;
|
|
1518
|
+
readonly feedback: v.StringSchema<undefined>;
|
|
1519
|
+
readonly comments: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
1520
|
+
readonly quotedSource: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1521
|
+
readonly srcStart: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
|
|
1522
|
+
readonly srcEnd: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
|
|
1523
|
+
readonly anchorId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1524
|
+
readonly body: v.StringSchema<undefined>;
|
|
1525
|
+
}, undefined>, undefined>, undefined>;
|
|
1526
|
+
}, undefined>, undefined>, undefined>;
|
|
1527
|
+
readonly pendingIncorporation: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
|
|
1528
|
+
readonly feedback: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1529
|
+
}, undefined>, undefined>, undefined>;
|
|
1530
|
+
readonly pendingRecommendation: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
|
|
1531
|
+
readonly itemIds: v.ArraySchema<v.StringSchema<undefined>, undefined>;
|
|
1532
|
+
readonly note: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1533
|
+
}, undefined>, undefined>, undefined>;
|
|
1534
|
+
readonly consensus: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
|
|
1535
|
+
readonly enabled: v.BooleanSchema<undefined>;
|
|
1536
|
+
readonly strategy: v.PicklistSchema<["specialist-panel", "debate", "ranked-voting"], undefined>;
|
|
1537
|
+
readonly participants: v.ArraySchema<v.ObjectSchema<{
|
|
1538
|
+
readonly id: v.StringSchema<undefined>;
|
|
1539
|
+
readonly role: v.StringSchema<undefined>;
|
|
1540
|
+
readonly systemFraming: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1541
|
+
readonly modelId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1542
|
+
}, undefined>, undefined>;
|
|
1543
|
+
readonly synthesizerModelId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1544
|
+
readonly rounds: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>, v.MaxValueAction<number, 5, undefined>]>, undefined>;
|
|
1545
|
+
readonly gating: v.OptionalSchema<v.ObjectSchema<{
|
|
1546
|
+
readonly enabled: v.BooleanSchema<undefined>;
|
|
1547
|
+
readonly minComplexity: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>, undefined>;
|
|
1548
|
+
readonly minRisk: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>, undefined>;
|
|
1549
|
+
readonly minImpact: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>, undefined>;
|
|
1550
|
+
readonly onMissingEstimate: v.OptionalSchema<v.PicklistSchema<["consensus", "standard"], undefined>, "consensus">;
|
|
1551
|
+
}, undefined>, undefined>;
|
|
1552
|
+
}, undefined>, undefined>, undefined>;
|
|
1553
|
+
readonly gating: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
|
|
1554
|
+
readonly enabled: v.BooleanSchema<undefined>;
|
|
1555
|
+
readonly minComplexity: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>, undefined>;
|
|
1556
|
+
readonly minRisk: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>, undefined>;
|
|
1557
|
+
readonly minImpact: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>, undefined>;
|
|
1558
|
+
readonly onMissingEstimate: v.OptionalSchema<v.PicklistSchema<["run", "skip"], undefined>, "run">;
|
|
1559
|
+
}, undefined>, undefined>, undefined>;
|
|
1560
|
+
readonly skipped: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
1561
|
+
readonly noBusinessSpecs: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
1562
|
+
readonly technicalCorroborated: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
1563
|
+
readonly output: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1564
|
+
readonly custom: v.OptionalSchema<v.UnknownSchema, undefined>;
|
|
1565
|
+
readonly model: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1566
|
+
readonly selectedFragmentIds: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
1567
|
+
readonly jobId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1568
|
+
readonly startedAt: v.OptionalSchema<v.NullableSchema<v.NumberSchema<undefined>, undefined>, undefined>;
|
|
1569
|
+
readonly finishedAt: v.OptionalSchema<v.NullableSchema<v.NumberSchema<undefined>, undefined>, undefined>;
|
|
1570
|
+
readonly pausedAt: v.OptionalSchema<v.NullableSchema<v.NumberSchema<undefined>, undefined>, undefined>;
|
|
1571
|
+
readonly evictionRecoveries: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
|
|
1572
|
+
readonly transientEvictionRecoveries: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
|
|
1573
|
+
}, undefined>, undefined>;
|
|
1574
|
+
readonly currentStep: v.NumberSchema<undefined>;
|
|
1575
|
+
readonly status: v.PicklistSchema<["running", "blocked", "done", "paused", "failed"], undefined>;
|
|
1576
|
+
readonly failure: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
|
|
1577
|
+
readonly kind: v.PicklistSchema<["preflight", "dispatch", "evicted", "timeout", "agent", "job_failed", "rejected", "companion_rejected", "cancelled", "unknown"], undefined>;
|
|
1578
|
+
readonly message: v.StringSchema<undefined>;
|
|
1579
|
+
readonly detail: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
1580
|
+
readonly hint: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
1581
|
+
readonly occurredAt: v.NumberSchema<undefined>;
|
|
1582
|
+
readonly lastSubtasks: v.NullableSchema<v.ObjectSchema<{
|
|
1583
|
+
readonly completed: v.NumberSchema<undefined>;
|
|
1584
|
+
readonly inProgress: v.NumberSchema<undefined>;
|
|
1585
|
+
readonly total: v.NumberSchema<undefined>;
|
|
1586
|
+
readonly items: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
1587
|
+
readonly label: v.StringSchema<undefined>;
|
|
1588
|
+
readonly status: v.PicklistSchema<["pending", "in_progress", "completed"], undefined>;
|
|
1589
|
+
}, undefined>, undefined>, undefined>;
|
|
1590
|
+
}, undefined>, undefined>;
|
|
1591
|
+
}, undefined>, undefined>, undefined>;
|
|
1592
|
+
readonly initiatedBy: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
1593
|
+
}, undefined>;
|
|
1594
|
+
};
|
|
1595
|
+
};
|
|
1596
|
+
export declare const requestStepChangesContract: {
|
|
1597
|
+
readonly method: "post";
|
|
1598
|
+
readonly requestPathParamsSchema: v.ObjectSchema<{
|
|
1599
|
+
readonly executionId: v.StringSchema<undefined>;
|
|
1600
|
+
readonly approvalId: v.StringSchema<undefined>;
|
|
1601
|
+
}, undefined> & import("@toad-contracts/core").ObjectKeysCarrier;
|
|
1602
|
+
readonly pathResolver: ({ executionId, approvalId }: {
|
|
1603
|
+
executionId: string;
|
|
1604
|
+
approvalId: string;
|
|
1605
|
+
}) => string;
|
|
1606
|
+
readonly requestBodySchema: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
1607
|
+
readonly feedback: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, 10000, undefined>]>, undefined>;
|
|
1608
|
+
readonly comments: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
1609
|
+
readonly quotedSource: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 20000, undefined>]>;
|
|
1610
|
+
readonly srcStart: v.NumberSchema<undefined>;
|
|
1611
|
+
readonly srcEnd: v.NumberSchema<undefined>;
|
|
1612
|
+
readonly body: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 5000, undefined>]>;
|
|
1613
|
+
}, undefined>, undefined>, undefined>;
|
|
1614
|
+
}, undefined>, v.CheckAction<{
|
|
1615
|
+
feedback?: string | undefined;
|
|
1616
|
+
comments?: {
|
|
1617
|
+
quotedSource: string;
|
|
1618
|
+
srcStart: number;
|
|
1619
|
+
srcEnd: number;
|
|
1620
|
+
body: string;
|
|
1621
|
+
}[] | undefined;
|
|
1622
|
+
}, "Provide freeform feedback or at least one comment">]>;
|
|
1623
|
+
readonly responsesByStatusCode: {
|
|
1624
|
+
readonly '4xx': v.ObjectSchema<{
|
|
1625
|
+
readonly error: v.ObjectSchema<{
|
|
1626
|
+
readonly code: v.StringSchema<undefined>;
|
|
1627
|
+
readonly message: v.StringSchema<undefined>;
|
|
1628
|
+
readonly details: v.OptionalSchema<v.UnknownSchema, undefined>;
|
|
1629
|
+
readonly issues: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
1630
|
+
readonly path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1631
|
+
readonly message: v.StringSchema<undefined>;
|
|
1632
|
+
}, undefined>, undefined>, undefined>;
|
|
1633
|
+
}, undefined>;
|
|
1634
|
+
}, undefined>;
|
|
1635
|
+
readonly '5xx': v.ObjectSchema<{
|
|
1636
|
+
readonly error: v.ObjectSchema<{
|
|
1637
|
+
readonly code: v.StringSchema<undefined>;
|
|
1638
|
+
readonly message: v.StringSchema<undefined>;
|
|
1639
|
+
readonly details: v.OptionalSchema<v.UnknownSchema, undefined>;
|
|
1640
|
+
readonly issues: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
1641
|
+
readonly path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1642
|
+
readonly message: v.StringSchema<undefined>;
|
|
1643
|
+
}, undefined>, undefined>, undefined>;
|
|
1644
|
+
}, undefined>;
|
|
1645
|
+
}, undefined>;
|
|
1646
|
+
readonly 200: v.ObjectSchema<{
|
|
1647
|
+
readonly id: v.StringSchema<undefined>;
|
|
1648
|
+
readonly blockId: v.StringSchema<undefined>;
|
|
1649
|
+
readonly pipelineId: v.StringSchema<undefined>;
|
|
1650
|
+
readonly pipelineName: v.StringSchema<undefined>;
|
|
1651
|
+
readonly steps: v.ArraySchema<v.ObjectSchema<{
|
|
1652
|
+
readonly runId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1653
|
+
readonly agentKind: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
|
|
1654
|
+
readonly state: v.PicklistSchema<["pending", "working", "waiting_decision", "done"], undefined>;
|
|
1655
|
+
readonly progress: v.NumberSchema<undefined>;
|
|
1656
|
+
readonly metrics: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
|
|
1657
|
+
readonly calls: v.NumberSchema<undefined>;
|
|
1658
|
+
readonly promptTokens: v.NumberSchema<undefined>;
|
|
1659
|
+
readonly completionTokens: v.NumberSchema<undefined>;
|
|
1660
|
+
readonly peakCompletionTokens: v.NumberSchema<undefined>;
|
|
1661
|
+
readonly maxOutputTokens: v.NullableSchema<v.NumberSchema<undefined>, undefined>;
|
|
1662
|
+
readonly truncatedCalls: v.NumberSchema<undefined>;
|
|
1663
|
+
readonly upstreamMs: v.NumberSchema<undefined>;
|
|
1664
|
+
readonly overheadMs: v.NumberSchema<undefined>;
|
|
1665
|
+
readonly errors: v.NumberSchema<undefined>;
|
|
1666
|
+
readonly warnings: v.NumberSchema<undefined>;
|
|
1667
|
+
}, undefined>, undefined>, undefined>;
|
|
1668
|
+
readonly gate: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
|
|
1669
|
+
readonly phase: v.PicklistSchema<["checking", "working"], undefined>;
|
|
1670
|
+
readonly attempts: v.NumberSchema<undefined>;
|
|
1671
|
+
readonly maxAttempts: v.NumberSchema<undefined>;
|
|
1672
|
+
readonly headSha: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
1673
|
+
readonly lastVerdict: v.OptionalSchema<v.NullableSchema<v.PicklistSchema<["pass", "pending", "fail"], undefined>, undefined>, undefined>;
|
|
1674
|
+
readonly lastFailureSummary: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
1675
|
+
readonly failingChecks: v.OptionalSchema<v.NullableSchema<v.ArraySchema<v.ObjectSchema<{
|
|
1676
|
+
readonly name: v.StringSchema<undefined>;
|
|
1677
|
+
readonly conclusion: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
1678
|
+
readonly url: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
1679
|
+
}, undefined>, undefined>, undefined>, undefined>;
|
|
1680
|
+
readonly watchSince: v.OptionalSchema<v.NullableSchema<v.NumberSchema<undefined>, undefined>, undefined>;
|
|
1681
|
+
readonly watchWindowMinutes: v.OptionalSchema<v.NullableSchema<v.NumberSchema<undefined>, undefined>, undefined>;
|
|
1682
|
+
readonly regressedSignals: v.OptionalSchema<v.NullableSchema<v.ArraySchema<v.ObjectSchema<{
|
|
1683
|
+
readonly kind: v.PicklistSchema<["monitor", "slo"], undefined>;
|
|
1684
|
+
readonly id: v.StringSchema<undefined>;
|
|
1685
|
+
readonly name: v.StringSchema<undefined>;
|
|
1686
|
+
readonly state: v.PicklistSchema<["ok", "warn", "alert", "no_data"], undefined>;
|
|
1687
|
+
readonly detail: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1688
|
+
}, undefined>, undefined>, undefined>, undefined>;
|
|
1689
|
+
readonly attemptLog: v.OptionalSchema<v.NullableSchema<v.ArraySchema<v.ObjectSchema<{
|
|
1690
|
+
readonly attempt: v.NumberSchema<undefined>;
|
|
1691
|
+
readonly at: v.NumberSchema<undefined>;
|
|
1692
|
+
readonly outcome: v.PicklistSchema<["completed", "failed"], undefined>;
|
|
1693
|
+
readonly headSha: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
1694
|
+
readonly summary: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
1695
|
+
}, undefined>, undefined>, undefined>, undefined>;
|
|
1696
|
+
readonly lastApprovals: v.OptionalSchema<v.NullableSchema<v.NumberSchema<undefined>, undefined>, undefined>;
|
|
1697
|
+
readonly requiredApprovingReviewCount: v.OptionalSchema<v.NullableSchema<v.NumberSchema<undefined>, undefined>, undefined>;
|
|
1698
|
+
readonly pendingThreadIds: v.OptionalSchema<v.NullableSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>, undefined>;
|
|
1699
|
+
readonly lastAddressedCommentAt: v.OptionalSchema<v.NullableSchema<v.NumberSchema<undefined>, undefined>, undefined>;
|
|
1700
|
+
readonly humanReviewGraceMinutes: v.OptionalSchema<v.NullableSchema<v.NumberSchema<undefined>, undefined>, undefined>;
|
|
1701
|
+
readonly pendingFix: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
|
|
1702
|
+
readonly instructions: v.StringSchema<undefined>;
|
|
1703
|
+
readonly at: v.NumberSchema<undefined>;
|
|
1704
|
+
}, undefined>, undefined>, undefined>;
|
|
1705
|
+
}, undefined>, undefined>, undefined>;
|
|
1706
|
+
readonly test: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
|
|
1707
|
+
readonly phase: v.PicklistSchema<["testing", "fixing"], undefined>;
|
|
1708
|
+
readonly attempts: v.NumberSchema<undefined>;
|
|
1709
|
+
readonly maxAttempts: v.NumberSchema<undefined>;
|
|
1710
|
+
readonly lastReport: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
|
|
1711
|
+
readonly greenlight: v.BooleanSchema<undefined>;
|
|
1712
|
+
readonly summary: v.StringSchema<undefined>;
|
|
1713
|
+
readonly tested: v.ArraySchema<v.StringSchema<undefined>, undefined>;
|
|
1714
|
+
readonly outcomes: v.ArraySchema<v.ObjectSchema<{
|
|
1715
|
+
readonly name: v.StringSchema<undefined>;
|
|
1716
|
+
readonly status: v.PicklistSchema<["passed", "failed", "skipped"], undefined>;
|
|
1717
|
+
readonly detail: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1718
|
+
}, undefined>, undefined>;
|
|
1719
|
+
readonly concerns: v.ArraySchema<v.ObjectSchema<{
|
|
1720
|
+
readonly title: v.StringSchema<undefined>;
|
|
1721
|
+
readonly detail: v.StringSchema<undefined>;
|
|
1722
|
+
readonly severity: v.PicklistSchema<["low", "medium", "high", "critical"], undefined>;
|
|
1723
|
+
}, undefined>, undefined>;
|
|
1724
|
+
readonly environment: v.OptionalSchema<v.PicklistSchema<["local", "ephemeral"], undefined>, undefined>;
|
|
1725
|
+
}, undefined>, undefined>, undefined>;
|
|
1726
|
+
}, undefined>, undefined>, undefined>;
|
|
1727
|
+
readonly humanTest: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
|
|
1728
|
+
readonly phase: v.PicklistSchema<["provisioning", "awaiting_human", "fixing", "resolving_conflicts", "passed"], undefined>;
|
|
1729
|
+
readonly environment: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
|
|
1730
|
+
readonly id: v.StringSchema<undefined>;
|
|
1731
|
+
readonly url: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
1732
|
+
readonly status: v.PicklistSchema<["provisioning", "ready", "failed", "expired", "tearing_down", "torn_down"], undefined>;
|
|
1733
|
+
readonly expiresAt: v.OptionalSchema<v.NullableSchema<v.NumberSchema<undefined>, undefined>, undefined>;
|
|
1734
|
+
}, undefined>, undefined>, undefined>;
|
|
1735
|
+
readonly degradedReason: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
1736
|
+
readonly attempts: v.NumberSchema<undefined>;
|
|
1737
|
+
readonly maxAttempts: v.NumberSchema<undefined>;
|
|
1738
|
+
readonly headSha: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
1739
|
+
readonly rounds: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
1740
|
+
readonly kind: v.PicklistSchema<["fix", "pull-main"], undefined>;
|
|
1741
|
+
readonly findings: v.StringSchema<undefined>;
|
|
1742
|
+
readonly helperKind: v.StringSchema<undefined>;
|
|
1743
|
+
readonly jobId: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
1744
|
+
readonly outcome: v.OptionalSchema<v.NullableSchema<v.PicklistSchema<["completed", "failed"], undefined>, undefined>, undefined>;
|
|
1745
|
+
readonly at: v.NumberSchema<undefined>;
|
|
1746
|
+
}, undefined>, undefined>, undefined>;
|
|
1747
|
+
readonly pendingAction: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
|
|
1748
|
+
readonly type: v.PicklistSchema<["confirm", "request-fix", "pull-main", "recreate"], undefined>;
|
|
1749
|
+
readonly findings: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1750
|
+
}, undefined>, undefined>, undefined>;
|
|
1751
|
+
}, undefined>, undefined>, undefined>;
|
|
1752
|
+
readonly environment: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
|
|
1753
|
+
readonly id: v.StringSchema<undefined>;
|
|
1754
|
+
readonly url: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
1755
|
+
readonly status: v.PicklistSchema<["provisioning", "ready", "failed", "expired", "tearing_down", "torn_down"], undefined>;
|
|
1756
|
+
readonly expiresAt: v.OptionalSchema<v.NullableSchema<v.NumberSchema<undefined>, undefined>, undefined>;
|
|
1757
|
+
readonly lastError: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
1758
|
+
}, undefined>, undefined>, undefined>;
|
|
1759
|
+
readonly subtasks: v.OptionalSchema<v.ObjectSchema<{
|
|
1760
|
+
readonly completed: v.NumberSchema<undefined>;
|
|
1761
|
+
readonly inProgress: v.NumberSchema<undefined>;
|
|
1762
|
+
readonly total: v.NumberSchema<undefined>;
|
|
1763
|
+
readonly items: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
1764
|
+
readonly label: v.StringSchema<undefined>;
|
|
1765
|
+
readonly status: v.PicklistSchema<["pending", "in_progress", "completed"], undefined>;
|
|
1766
|
+
}, undefined>, undefined>, undefined>;
|
|
1767
|
+
}, undefined>, undefined>;
|
|
1768
|
+
readonly startingContainer: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
1769
|
+
readonly decision: v.NullableSchema<v.ObjectSchema<{
|
|
1770
|
+
readonly id: v.StringSchema<undefined>;
|
|
1771
|
+
readonly question: v.StringSchema<undefined>;
|
|
1772
|
+
readonly options: v.ArraySchema<v.StringSchema<undefined>, undefined>;
|
|
1773
|
+
readonly chosen: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
1774
|
+
}, undefined>, undefined>;
|
|
1775
|
+
readonly requiresApproval: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
1776
|
+
readonly approval: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
|
|
1777
|
+
readonly id: v.StringSchema<undefined>;
|
|
1778
|
+
readonly status: v.PicklistSchema<["pending", "approved", "changes_requested", "rejected"], undefined>;
|
|
1779
|
+
readonly proposal: v.StringSchema<undefined>;
|
|
1780
|
+
readonly feedback: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1781
|
+
readonly comments: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
1782
|
+
readonly quotedSource: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1783
|
+
readonly srcStart: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
|
|
1784
|
+
readonly srcEnd: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
|
|
1785
|
+
readonly anchorId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1786
|
+
readonly body: v.StringSchema<undefined>;
|
|
1787
|
+
}, undefined>, undefined>, undefined>;
|
|
1788
|
+
}, undefined>, undefined>, undefined>;
|
|
1789
|
+
readonly companion: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
|
|
1790
|
+
readonly threshold: v.NumberSchema<undefined>;
|
|
1791
|
+
readonly maxAttempts: v.NumberSchema<undefined>;
|
|
1792
|
+
readonly attempts: v.OptionalSchema<v.NumberSchema<undefined>, 0>;
|
|
1793
|
+
readonly verdicts: v.ArraySchema<v.ObjectSchema<{
|
|
1794
|
+
readonly rating: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>;
|
|
1795
|
+
readonly threshold: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>;
|
|
1796
|
+
readonly passed: v.BooleanSchema<undefined>;
|
|
1797
|
+
readonly feedback: v.StringSchema<undefined>;
|
|
1798
|
+
}, undefined>, undefined>;
|
|
1799
|
+
readonly exceeded: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
1800
|
+
}, undefined>, undefined>, undefined>;
|
|
1801
|
+
readonly followUps: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
|
|
1802
|
+
readonly enabled: v.BooleanSchema<undefined>;
|
|
1803
|
+
readonly items: v.ArraySchema<v.ObjectSchema<{
|
|
1804
|
+
readonly id: v.StringSchema<undefined>;
|
|
1805
|
+
readonly kind: v.PicklistSchema<["follow_up", "question"], undefined>;
|
|
1806
|
+
readonly title: v.StringSchema<undefined>;
|
|
1807
|
+
readonly detail: v.StringSchema<undefined>;
|
|
1808
|
+
readonly suggestedAction: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
1809
|
+
readonly status: v.PicklistSchema<["pending", "filed", "queued", "answered", "dismissed"], undefined>;
|
|
1810
|
+
readonly answer: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
1811
|
+
readonly sentToCoder: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
1812
|
+
readonly ticketExternalId: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
1813
|
+
readonly ticketUrl: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
1814
|
+
readonly createdAt: v.NumberSchema<undefined>;
|
|
1815
|
+
readonly updatedAt: v.NumberSchema<undefined>;
|
|
1816
|
+
}, undefined>, undefined>;
|
|
1817
|
+
readonly loops: v.OptionalSchema<v.NumberSchema<undefined>, 0>;
|
|
1818
|
+
readonly maxLoops: v.OptionalSchema<v.NumberSchema<undefined>, 3>;
|
|
1819
|
+
}, undefined>, undefined>, undefined>;
|
|
1820
|
+
readonly rework: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
|
|
1821
|
+
readonly previousProposal: v.StringSchema<undefined>;
|
|
1822
|
+
readonly feedback: v.StringSchema<undefined>;
|
|
1823
|
+
readonly comments: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
1824
|
+
readonly quotedSource: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1825
|
+
readonly srcStart: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
|
|
1826
|
+
readonly srcEnd: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
|
|
1827
|
+
readonly anchorId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1828
|
+
readonly body: v.StringSchema<undefined>;
|
|
1829
|
+
}, undefined>, undefined>, undefined>;
|
|
1830
|
+
}, undefined>, undefined>, undefined>;
|
|
1831
|
+
readonly pendingIncorporation: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
|
|
1832
|
+
readonly feedback: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1833
|
+
}, undefined>, undefined>, undefined>;
|
|
1834
|
+
readonly pendingRecommendation: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
|
|
1835
|
+
readonly itemIds: v.ArraySchema<v.StringSchema<undefined>, undefined>;
|
|
1836
|
+
readonly note: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1837
|
+
}, undefined>, undefined>, undefined>;
|
|
1838
|
+
readonly consensus: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
|
|
1839
|
+
readonly enabled: v.BooleanSchema<undefined>;
|
|
1840
|
+
readonly strategy: v.PicklistSchema<["specialist-panel", "debate", "ranked-voting"], undefined>;
|
|
1841
|
+
readonly participants: v.ArraySchema<v.ObjectSchema<{
|
|
1842
|
+
readonly id: v.StringSchema<undefined>;
|
|
1843
|
+
readonly role: v.StringSchema<undefined>;
|
|
1844
|
+
readonly systemFraming: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1845
|
+
readonly modelId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1846
|
+
}, undefined>, undefined>;
|
|
1847
|
+
readonly synthesizerModelId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1848
|
+
readonly rounds: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>, v.MaxValueAction<number, 5, undefined>]>, undefined>;
|
|
1849
|
+
readonly gating: v.OptionalSchema<v.ObjectSchema<{
|
|
1850
|
+
readonly enabled: v.BooleanSchema<undefined>;
|
|
1851
|
+
readonly minComplexity: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>, undefined>;
|
|
1852
|
+
readonly minRisk: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>, undefined>;
|
|
1853
|
+
readonly minImpact: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>, undefined>;
|
|
1854
|
+
readonly onMissingEstimate: v.OptionalSchema<v.PicklistSchema<["consensus", "standard"], undefined>, "consensus">;
|
|
1855
|
+
}, undefined>, undefined>;
|
|
1856
|
+
}, undefined>, undefined>, undefined>;
|
|
1857
|
+
readonly gating: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
|
|
1858
|
+
readonly enabled: v.BooleanSchema<undefined>;
|
|
1859
|
+
readonly minComplexity: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>, undefined>;
|
|
1860
|
+
readonly minRisk: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>, undefined>;
|
|
1861
|
+
readonly minImpact: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>, undefined>;
|
|
1862
|
+
readonly onMissingEstimate: v.OptionalSchema<v.PicklistSchema<["run", "skip"], undefined>, "run">;
|
|
1863
|
+
}, undefined>, undefined>, undefined>;
|
|
1864
|
+
readonly skipped: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
1865
|
+
readonly noBusinessSpecs: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
1866
|
+
readonly technicalCorroborated: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
1867
|
+
readonly output: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1868
|
+
readonly custom: v.OptionalSchema<v.UnknownSchema, undefined>;
|
|
1869
|
+
readonly model: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1870
|
+
readonly selectedFragmentIds: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
1871
|
+
readonly jobId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1872
|
+
readonly startedAt: v.OptionalSchema<v.NullableSchema<v.NumberSchema<undefined>, undefined>, undefined>;
|
|
1873
|
+
readonly finishedAt: v.OptionalSchema<v.NullableSchema<v.NumberSchema<undefined>, undefined>, undefined>;
|
|
1874
|
+
readonly pausedAt: v.OptionalSchema<v.NullableSchema<v.NumberSchema<undefined>, undefined>, undefined>;
|
|
1875
|
+
readonly evictionRecoveries: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
|
|
1876
|
+
readonly transientEvictionRecoveries: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
|
|
1877
|
+
}, undefined>, undefined>;
|
|
1878
|
+
readonly currentStep: v.NumberSchema<undefined>;
|
|
1879
|
+
readonly status: v.PicklistSchema<["running", "blocked", "done", "paused", "failed"], undefined>;
|
|
1880
|
+
readonly failure: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
|
|
1881
|
+
readonly kind: v.PicklistSchema<["preflight", "dispatch", "evicted", "timeout", "agent", "job_failed", "rejected", "companion_rejected", "cancelled", "unknown"], undefined>;
|
|
1882
|
+
readonly message: v.StringSchema<undefined>;
|
|
1883
|
+
readonly detail: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
1884
|
+
readonly hint: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
1885
|
+
readonly occurredAt: v.NumberSchema<undefined>;
|
|
1886
|
+
readonly lastSubtasks: v.NullableSchema<v.ObjectSchema<{
|
|
1887
|
+
readonly completed: v.NumberSchema<undefined>;
|
|
1888
|
+
readonly inProgress: v.NumberSchema<undefined>;
|
|
1889
|
+
readonly total: v.NumberSchema<undefined>;
|
|
1890
|
+
readonly items: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
1891
|
+
readonly label: v.StringSchema<undefined>;
|
|
1892
|
+
readonly status: v.PicklistSchema<["pending", "in_progress", "completed"], undefined>;
|
|
1893
|
+
}, undefined>, undefined>, undefined>;
|
|
1894
|
+
}, undefined>, undefined>;
|
|
1895
|
+
}, undefined>, undefined>, undefined>;
|
|
1896
|
+
readonly initiatedBy: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
1897
|
+
}, undefined>;
|
|
1898
|
+
};
|
|
1899
|
+
};
|
|
1900
|
+
export declare const resolveStepExceededContract: {
|
|
1901
|
+
readonly method: "post";
|
|
1902
|
+
readonly requestPathParamsSchema: v.ObjectSchema<{
|
|
1903
|
+
readonly executionId: v.StringSchema<undefined>;
|
|
1904
|
+
readonly approvalId: v.StringSchema<undefined>;
|
|
1905
|
+
}, undefined> & import("@toad-contracts/core").ObjectKeysCarrier;
|
|
1906
|
+
readonly pathResolver: ({ executionId, approvalId }: {
|
|
1907
|
+
executionId: string;
|
|
1908
|
+
approvalId: string;
|
|
1909
|
+
}) => string;
|
|
1910
|
+
readonly requestBodySchema: v.ObjectSchema<{
|
|
1911
|
+
readonly choice: v.PicklistSchema<["extra-round", "proceed", "stop-reset"], undefined>;
|
|
1912
|
+
}, undefined>;
|
|
1913
|
+
readonly responsesByStatusCode: {
|
|
1914
|
+
readonly '4xx': v.ObjectSchema<{
|
|
1915
|
+
readonly error: v.ObjectSchema<{
|
|
1916
|
+
readonly code: v.StringSchema<undefined>;
|
|
1917
|
+
readonly message: v.StringSchema<undefined>;
|
|
1918
|
+
readonly details: v.OptionalSchema<v.UnknownSchema, undefined>;
|
|
1919
|
+
readonly issues: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
1920
|
+
readonly path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1921
|
+
readonly message: v.StringSchema<undefined>;
|
|
1922
|
+
}, undefined>, undefined>, undefined>;
|
|
1923
|
+
}, undefined>;
|
|
1924
|
+
}, undefined>;
|
|
1925
|
+
readonly '5xx': v.ObjectSchema<{
|
|
1926
|
+
readonly error: v.ObjectSchema<{
|
|
1927
|
+
readonly code: v.StringSchema<undefined>;
|
|
1928
|
+
readonly message: v.StringSchema<undefined>;
|
|
1929
|
+
readonly details: v.OptionalSchema<v.UnknownSchema, undefined>;
|
|
1930
|
+
readonly issues: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
1931
|
+
readonly path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1932
|
+
readonly message: v.StringSchema<undefined>;
|
|
1933
|
+
}, undefined>, undefined>, undefined>;
|
|
1934
|
+
}, undefined>;
|
|
1935
|
+
}, undefined>;
|
|
1936
|
+
readonly 200: v.ObjectSchema<{
|
|
1937
|
+
readonly id: v.StringSchema<undefined>;
|
|
1938
|
+
readonly blockId: v.StringSchema<undefined>;
|
|
1939
|
+
readonly pipelineId: v.StringSchema<undefined>;
|
|
1940
|
+
readonly pipelineName: v.StringSchema<undefined>;
|
|
1941
|
+
readonly steps: v.ArraySchema<v.ObjectSchema<{
|
|
1942
|
+
readonly runId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1943
|
+
readonly agentKind: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
|
|
1944
|
+
readonly state: v.PicklistSchema<["pending", "working", "waiting_decision", "done"], undefined>;
|
|
1945
|
+
readonly progress: v.NumberSchema<undefined>;
|
|
1946
|
+
readonly metrics: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
|
|
1947
|
+
readonly calls: v.NumberSchema<undefined>;
|
|
1948
|
+
readonly promptTokens: v.NumberSchema<undefined>;
|
|
1949
|
+
readonly completionTokens: v.NumberSchema<undefined>;
|
|
1950
|
+
readonly peakCompletionTokens: v.NumberSchema<undefined>;
|
|
1951
|
+
readonly maxOutputTokens: v.NullableSchema<v.NumberSchema<undefined>, undefined>;
|
|
1952
|
+
readonly truncatedCalls: v.NumberSchema<undefined>;
|
|
1953
|
+
readonly upstreamMs: v.NumberSchema<undefined>;
|
|
1954
|
+
readonly overheadMs: v.NumberSchema<undefined>;
|
|
1955
|
+
readonly errors: v.NumberSchema<undefined>;
|
|
1956
|
+
readonly warnings: v.NumberSchema<undefined>;
|
|
1957
|
+
}, undefined>, undefined>, undefined>;
|
|
1958
|
+
readonly gate: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
|
|
1959
|
+
readonly phase: v.PicklistSchema<["checking", "working"], undefined>;
|
|
1960
|
+
readonly attempts: v.NumberSchema<undefined>;
|
|
1961
|
+
readonly maxAttempts: v.NumberSchema<undefined>;
|
|
1962
|
+
readonly headSha: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
1963
|
+
readonly lastVerdict: v.OptionalSchema<v.NullableSchema<v.PicklistSchema<["pass", "pending", "fail"], undefined>, undefined>, undefined>;
|
|
1964
|
+
readonly lastFailureSummary: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
1965
|
+
readonly failingChecks: v.OptionalSchema<v.NullableSchema<v.ArraySchema<v.ObjectSchema<{
|
|
1966
|
+
readonly name: v.StringSchema<undefined>;
|
|
1967
|
+
readonly conclusion: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
1968
|
+
readonly url: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
1969
|
+
}, undefined>, undefined>, undefined>, undefined>;
|
|
1970
|
+
readonly watchSince: v.OptionalSchema<v.NullableSchema<v.NumberSchema<undefined>, undefined>, undefined>;
|
|
1971
|
+
readonly watchWindowMinutes: v.OptionalSchema<v.NullableSchema<v.NumberSchema<undefined>, undefined>, undefined>;
|
|
1972
|
+
readonly regressedSignals: v.OptionalSchema<v.NullableSchema<v.ArraySchema<v.ObjectSchema<{
|
|
1973
|
+
readonly kind: v.PicklistSchema<["monitor", "slo"], undefined>;
|
|
1974
|
+
readonly id: v.StringSchema<undefined>;
|
|
1975
|
+
readonly name: v.StringSchema<undefined>;
|
|
1976
|
+
readonly state: v.PicklistSchema<["ok", "warn", "alert", "no_data"], undefined>;
|
|
1977
|
+
readonly detail: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1978
|
+
}, undefined>, undefined>, undefined>, undefined>;
|
|
1979
|
+
readonly attemptLog: v.OptionalSchema<v.NullableSchema<v.ArraySchema<v.ObjectSchema<{
|
|
1980
|
+
readonly attempt: v.NumberSchema<undefined>;
|
|
1981
|
+
readonly at: v.NumberSchema<undefined>;
|
|
1982
|
+
readonly outcome: v.PicklistSchema<["completed", "failed"], undefined>;
|
|
1983
|
+
readonly headSha: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
1984
|
+
readonly summary: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
1985
|
+
}, undefined>, undefined>, undefined>, undefined>;
|
|
1986
|
+
readonly lastApprovals: v.OptionalSchema<v.NullableSchema<v.NumberSchema<undefined>, undefined>, undefined>;
|
|
1987
|
+
readonly requiredApprovingReviewCount: v.OptionalSchema<v.NullableSchema<v.NumberSchema<undefined>, undefined>, undefined>;
|
|
1988
|
+
readonly pendingThreadIds: v.OptionalSchema<v.NullableSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>, undefined>;
|
|
1989
|
+
readonly lastAddressedCommentAt: v.OptionalSchema<v.NullableSchema<v.NumberSchema<undefined>, undefined>, undefined>;
|
|
1990
|
+
readonly humanReviewGraceMinutes: v.OptionalSchema<v.NullableSchema<v.NumberSchema<undefined>, undefined>, undefined>;
|
|
1991
|
+
readonly pendingFix: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
|
|
1992
|
+
readonly instructions: v.StringSchema<undefined>;
|
|
1993
|
+
readonly at: v.NumberSchema<undefined>;
|
|
1994
|
+
}, undefined>, undefined>, undefined>;
|
|
1995
|
+
}, undefined>, undefined>, undefined>;
|
|
1996
|
+
readonly test: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
|
|
1997
|
+
readonly phase: v.PicklistSchema<["testing", "fixing"], undefined>;
|
|
1998
|
+
readonly attempts: v.NumberSchema<undefined>;
|
|
1999
|
+
readonly maxAttempts: v.NumberSchema<undefined>;
|
|
2000
|
+
readonly lastReport: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
|
|
2001
|
+
readonly greenlight: v.BooleanSchema<undefined>;
|
|
2002
|
+
readonly summary: v.StringSchema<undefined>;
|
|
2003
|
+
readonly tested: v.ArraySchema<v.StringSchema<undefined>, undefined>;
|
|
2004
|
+
readonly outcomes: v.ArraySchema<v.ObjectSchema<{
|
|
2005
|
+
readonly name: v.StringSchema<undefined>;
|
|
2006
|
+
readonly status: v.PicklistSchema<["passed", "failed", "skipped"], undefined>;
|
|
2007
|
+
readonly detail: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
2008
|
+
}, undefined>, undefined>;
|
|
2009
|
+
readonly concerns: v.ArraySchema<v.ObjectSchema<{
|
|
2010
|
+
readonly title: v.StringSchema<undefined>;
|
|
2011
|
+
readonly detail: v.StringSchema<undefined>;
|
|
2012
|
+
readonly severity: v.PicklistSchema<["low", "medium", "high", "critical"], undefined>;
|
|
2013
|
+
}, undefined>, undefined>;
|
|
2014
|
+
readonly environment: v.OptionalSchema<v.PicklistSchema<["local", "ephemeral"], undefined>, undefined>;
|
|
2015
|
+
}, undefined>, undefined>, undefined>;
|
|
2016
|
+
}, undefined>, undefined>, undefined>;
|
|
2017
|
+
readonly humanTest: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
|
|
2018
|
+
readonly phase: v.PicklistSchema<["provisioning", "awaiting_human", "fixing", "resolving_conflicts", "passed"], undefined>;
|
|
2019
|
+
readonly environment: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
|
|
2020
|
+
readonly id: v.StringSchema<undefined>;
|
|
2021
|
+
readonly url: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
2022
|
+
readonly status: v.PicklistSchema<["provisioning", "ready", "failed", "expired", "tearing_down", "torn_down"], undefined>;
|
|
2023
|
+
readonly expiresAt: v.OptionalSchema<v.NullableSchema<v.NumberSchema<undefined>, undefined>, undefined>;
|
|
2024
|
+
}, undefined>, undefined>, undefined>;
|
|
2025
|
+
readonly degradedReason: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
2026
|
+
readonly attempts: v.NumberSchema<undefined>;
|
|
2027
|
+
readonly maxAttempts: v.NumberSchema<undefined>;
|
|
2028
|
+
readonly headSha: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
2029
|
+
readonly rounds: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
2030
|
+
readonly kind: v.PicklistSchema<["fix", "pull-main"], undefined>;
|
|
2031
|
+
readonly findings: v.StringSchema<undefined>;
|
|
2032
|
+
readonly helperKind: v.StringSchema<undefined>;
|
|
2033
|
+
readonly jobId: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
2034
|
+
readonly outcome: v.OptionalSchema<v.NullableSchema<v.PicklistSchema<["completed", "failed"], undefined>, undefined>, undefined>;
|
|
2035
|
+
readonly at: v.NumberSchema<undefined>;
|
|
2036
|
+
}, undefined>, undefined>, undefined>;
|
|
2037
|
+
readonly pendingAction: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
|
|
2038
|
+
readonly type: v.PicklistSchema<["confirm", "request-fix", "pull-main", "recreate"], undefined>;
|
|
2039
|
+
readonly findings: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
2040
|
+
}, undefined>, undefined>, undefined>;
|
|
2041
|
+
}, undefined>, undefined>, undefined>;
|
|
2042
|
+
readonly environment: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
|
|
2043
|
+
readonly id: v.StringSchema<undefined>;
|
|
2044
|
+
readonly url: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
2045
|
+
readonly status: v.PicklistSchema<["provisioning", "ready", "failed", "expired", "tearing_down", "torn_down"], undefined>;
|
|
2046
|
+
readonly expiresAt: v.OptionalSchema<v.NullableSchema<v.NumberSchema<undefined>, undefined>, undefined>;
|
|
2047
|
+
readonly lastError: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
2048
|
+
}, undefined>, undefined>, undefined>;
|
|
2049
|
+
readonly subtasks: v.OptionalSchema<v.ObjectSchema<{
|
|
2050
|
+
readonly completed: v.NumberSchema<undefined>;
|
|
2051
|
+
readonly inProgress: v.NumberSchema<undefined>;
|
|
2052
|
+
readonly total: v.NumberSchema<undefined>;
|
|
2053
|
+
readonly items: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
2054
|
+
readonly label: v.StringSchema<undefined>;
|
|
2055
|
+
readonly status: v.PicklistSchema<["pending", "in_progress", "completed"], undefined>;
|
|
2056
|
+
}, undefined>, undefined>, undefined>;
|
|
2057
|
+
}, undefined>, undefined>;
|
|
2058
|
+
readonly startingContainer: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
2059
|
+
readonly decision: v.NullableSchema<v.ObjectSchema<{
|
|
2060
|
+
readonly id: v.StringSchema<undefined>;
|
|
2061
|
+
readonly question: v.StringSchema<undefined>;
|
|
2062
|
+
readonly options: v.ArraySchema<v.StringSchema<undefined>, undefined>;
|
|
2063
|
+
readonly chosen: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
2064
|
+
}, undefined>, undefined>;
|
|
2065
|
+
readonly requiresApproval: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
2066
|
+
readonly approval: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
|
|
2067
|
+
readonly id: v.StringSchema<undefined>;
|
|
2068
|
+
readonly status: v.PicklistSchema<["pending", "approved", "changes_requested", "rejected"], undefined>;
|
|
2069
|
+
readonly proposal: v.StringSchema<undefined>;
|
|
2070
|
+
readonly feedback: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
2071
|
+
readonly comments: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
2072
|
+
readonly quotedSource: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
2073
|
+
readonly srcStart: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
|
|
2074
|
+
readonly srcEnd: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
|
|
2075
|
+
readonly anchorId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
2076
|
+
readonly body: v.StringSchema<undefined>;
|
|
2077
|
+
}, undefined>, undefined>, undefined>;
|
|
2078
|
+
}, undefined>, undefined>, undefined>;
|
|
2079
|
+
readonly companion: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
|
|
2080
|
+
readonly threshold: v.NumberSchema<undefined>;
|
|
2081
|
+
readonly maxAttempts: v.NumberSchema<undefined>;
|
|
2082
|
+
readonly attempts: v.OptionalSchema<v.NumberSchema<undefined>, 0>;
|
|
2083
|
+
readonly verdicts: v.ArraySchema<v.ObjectSchema<{
|
|
2084
|
+
readonly rating: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>;
|
|
2085
|
+
readonly threshold: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>;
|
|
2086
|
+
readonly passed: v.BooleanSchema<undefined>;
|
|
2087
|
+
readonly feedback: v.StringSchema<undefined>;
|
|
2088
|
+
}, undefined>, undefined>;
|
|
2089
|
+
readonly exceeded: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
2090
|
+
}, undefined>, undefined>, undefined>;
|
|
2091
|
+
readonly followUps: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
|
|
2092
|
+
readonly enabled: v.BooleanSchema<undefined>;
|
|
2093
|
+
readonly items: v.ArraySchema<v.ObjectSchema<{
|
|
2094
|
+
readonly id: v.StringSchema<undefined>;
|
|
2095
|
+
readonly kind: v.PicklistSchema<["follow_up", "question"], undefined>;
|
|
2096
|
+
readonly title: v.StringSchema<undefined>;
|
|
2097
|
+
readonly detail: v.StringSchema<undefined>;
|
|
2098
|
+
readonly suggestedAction: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
2099
|
+
readonly status: v.PicklistSchema<["pending", "filed", "queued", "answered", "dismissed"], undefined>;
|
|
2100
|
+
readonly answer: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
2101
|
+
readonly sentToCoder: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
2102
|
+
readonly ticketExternalId: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
2103
|
+
readonly ticketUrl: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
2104
|
+
readonly createdAt: v.NumberSchema<undefined>;
|
|
2105
|
+
readonly updatedAt: v.NumberSchema<undefined>;
|
|
2106
|
+
}, undefined>, undefined>;
|
|
2107
|
+
readonly loops: v.OptionalSchema<v.NumberSchema<undefined>, 0>;
|
|
2108
|
+
readonly maxLoops: v.OptionalSchema<v.NumberSchema<undefined>, 3>;
|
|
2109
|
+
}, undefined>, undefined>, undefined>;
|
|
2110
|
+
readonly rework: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
|
|
2111
|
+
readonly previousProposal: v.StringSchema<undefined>;
|
|
2112
|
+
readonly feedback: v.StringSchema<undefined>;
|
|
2113
|
+
readonly comments: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
2114
|
+
readonly quotedSource: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
2115
|
+
readonly srcStart: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
|
|
2116
|
+
readonly srcEnd: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
|
|
2117
|
+
readonly anchorId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
2118
|
+
readonly body: v.StringSchema<undefined>;
|
|
2119
|
+
}, undefined>, undefined>, undefined>;
|
|
2120
|
+
}, undefined>, undefined>, undefined>;
|
|
2121
|
+
readonly pendingIncorporation: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
|
|
2122
|
+
readonly feedback: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
2123
|
+
}, undefined>, undefined>, undefined>;
|
|
2124
|
+
readonly pendingRecommendation: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
|
|
2125
|
+
readonly itemIds: v.ArraySchema<v.StringSchema<undefined>, undefined>;
|
|
2126
|
+
readonly note: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
2127
|
+
}, undefined>, undefined>, undefined>;
|
|
2128
|
+
readonly consensus: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
|
|
2129
|
+
readonly enabled: v.BooleanSchema<undefined>;
|
|
2130
|
+
readonly strategy: v.PicklistSchema<["specialist-panel", "debate", "ranked-voting"], undefined>;
|
|
2131
|
+
readonly participants: v.ArraySchema<v.ObjectSchema<{
|
|
2132
|
+
readonly id: v.StringSchema<undefined>;
|
|
2133
|
+
readonly role: v.StringSchema<undefined>;
|
|
2134
|
+
readonly systemFraming: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
2135
|
+
readonly modelId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
2136
|
+
}, undefined>, undefined>;
|
|
2137
|
+
readonly synthesizerModelId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
2138
|
+
readonly rounds: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>, v.MaxValueAction<number, 5, undefined>]>, undefined>;
|
|
2139
|
+
readonly gating: v.OptionalSchema<v.ObjectSchema<{
|
|
2140
|
+
readonly enabled: v.BooleanSchema<undefined>;
|
|
2141
|
+
readonly minComplexity: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>, undefined>;
|
|
2142
|
+
readonly minRisk: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>, undefined>;
|
|
2143
|
+
readonly minImpact: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>, undefined>;
|
|
2144
|
+
readonly onMissingEstimate: v.OptionalSchema<v.PicklistSchema<["consensus", "standard"], undefined>, "consensus">;
|
|
2145
|
+
}, undefined>, undefined>;
|
|
2146
|
+
}, undefined>, undefined>, undefined>;
|
|
2147
|
+
readonly gating: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
|
|
2148
|
+
readonly enabled: v.BooleanSchema<undefined>;
|
|
2149
|
+
readonly minComplexity: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>, undefined>;
|
|
2150
|
+
readonly minRisk: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>, undefined>;
|
|
2151
|
+
readonly minImpact: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>, undefined>;
|
|
2152
|
+
readonly onMissingEstimate: v.OptionalSchema<v.PicklistSchema<["run", "skip"], undefined>, "run">;
|
|
2153
|
+
}, undefined>, undefined>, undefined>;
|
|
2154
|
+
readonly skipped: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
2155
|
+
readonly noBusinessSpecs: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
2156
|
+
readonly technicalCorroborated: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
2157
|
+
readonly output: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
2158
|
+
readonly custom: v.OptionalSchema<v.UnknownSchema, undefined>;
|
|
2159
|
+
readonly model: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
2160
|
+
readonly selectedFragmentIds: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
2161
|
+
readonly jobId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
2162
|
+
readonly startedAt: v.OptionalSchema<v.NullableSchema<v.NumberSchema<undefined>, undefined>, undefined>;
|
|
2163
|
+
readonly finishedAt: v.OptionalSchema<v.NullableSchema<v.NumberSchema<undefined>, undefined>, undefined>;
|
|
2164
|
+
readonly pausedAt: v.OptionalSchema<v.NullableSchema<v.NumberSchema<undefined>, undefined>, undefined>;
|
|
2165
|
+
readonly evictionRecoveries: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
|
|
2166
|
+
readonly transientEvictionRecoveries: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
|
|
2167
|
+
}, undefined>, undefined>;
|
|
2168
|
+
readonly currentStep: v.NumberSchema<undefined>;
|
|
2169
|
+
readonly status: v.PicklistSchema<["running", "blocked", "done", "paused", "failed"], undefined>;
|
|
2170
|
+
readonly failure: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
|
|
2171
|
+
readonly kind: v.PicklistSchema<["preflight", "dispatch", "evicted", "timeout", "agent", "job_failed", "rejected", "companion_rejected", "cancelled", "unknown"], undefined>;
|
|
2172
|
+
readonly message: v.StringSchema<undefined>;
|
|
2173
|
+
readonly detail: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
2174
|
+
readonly hint: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
2175
|
+
readonly occurredAt: v.NumberSchema<undefined>;
|
|
2176
|
+
readonly lastSubtasks: v.NullableSchema<v.ObjectSchema<{
|
|
2177
|
+
readonly completed: v.NumberSchema<undefined>;
|
|
2178
|
+
readonly inProgress: v.NumberSchema<undefined>;
|
|
2179
|
+
readonly total: v.NumberSchema<undefined>;
|
|
2180
|
+
readonly items: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
2181
|
+
readonly label: v.StringSchema<undefined>;
|
|
2182
|
+
readonly status: v.PicklistSchema<["pending", "in_progress", "completed"], undefined>;
|
|
2183
|
+
}, undefined>, undefined>, undefined>;
|
|
2184
|
+
}, undefined>, undefined>;
|
|
2185
|
+
}, undefined>, undefined>, undefined>;
|
|
2186
|
+
readonly initiatedBy: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
2187
|
+
}, undefined>;
|
|
2188
|
+
};
|
|
2189
|
+
};
|
|
2190
|
+
export declare const restartExecutionContract: {
|
|
2191
|
+
readonly method: "post";
|
|
2192
|
+
readonly requestPathParamsSchema: v.ObjectSchema<{
|
|
2193
|
+
readonly executionId: v.StringSchema<undefined>;
|
|
2194
|
+
}, undefined> & import("@toad-contracts/core").ObjectKeysCarrier;
|
|
2195
|
+
readonly pathResolver: ({ executionId }: {
|
|
2196
|
+
executionId: string;
|
|
2197
|
+
}) => string;
|
|
2198
|
+
readonly requestBodySchema: v.ObjectSchema<{
|
|
2199
|
+
readonly fromStepIndex: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
2200
|
+
}, undefined>;
|
|
2201
|
+
readonly responsesByStatusCode: {
|
|
2202
|
+
readonly '4xx': v.ObjectSchema<{
|
|
2203
|
+
readonly error: v.ObjectSchema<{
|
|
2204
|
+
readonly code: v.StringSchema<undefined>;
|
|
2205
|
+
readonly message: v.StringSchema<undefined>;
|
|
2206
|
+
readonly details: v.OptionalSchema<v.UnknownSchema, undefined>;
|
|
2207
|
+
readonly issues: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
2208
|
+
readonly path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
2209
|
+
readonly message: v.StringSchema<undefined>;
|
|
2210
|
+
}, undefined>, undefined>, undefined>;
|
|
2211
|
+
}, undefined>;
|
|
2212
|
+
}, undefined>;
|
|
2213
|
+
readonly '5xx': v.ObjectSchema<{
|
|
2214
|
+
readonly error: v.ObjectSchema<{
|
|
2215
|
+
readonly code: v.StringSchema<undefined>;
|
|
2216
|
+
readonly message: v.StringSchema<undefined>;
|
|
2217
|
+
readonly details: v.OptionalSchema<v.UnknownSchema, undefined>;
|
|
2218
|
+
readonly issues: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
2219
|
+
readonly path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
2220
|
+
readonly message: v.StringSchema<undefined>;
|
|
2221
|
+
}, undefined>, undefined>, undefined>;
|
|
2222
|
+
}, undefined>;
|
|
2223
|
+
}, undefined>;
|
|
2224
|
+
readonly 200: v.ObjectSchema<{
|
|
2225
|
+
readonly id: v.StringSchema<undefined>;
|
|
2226
|
+
readonly blockId: v.StringSchema<undefined>;
|
|
2227
|
+
readonly pipelineId: v.StringSchema<undefined>;
|
|
2228
|
+
readonly pipelineName: v.StringSchema<undefined>;
|
|
2229
|
+
readonly steps: v.ArraySchema<v.ObjectSchema<{
|
|
2230
|
+
readonly runId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
2231
|
+
readonly agentKind: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
|
|
2232
|
+
readonly state: v.PicklistSchema<["pending", "working", "waiting_decision", "done"], undefined>;
|
|
2233
|
+
readonly progress: v.NumberSchema<undefined>;
|
|
2234
|
+
readonly metrics: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
|
|
2235
|
+
readonly calls: v.NumberSchema<undefined>;
|
|
2236
|
+
readonly promptTokens: v.NumberSchema<undefined>;
|
|
2237
|
+
readonly completionTokens: v.NumberSchema<undefined>;
|
|
2238
|
+
readonly peakCompletionTokens: v.NumberSchema<undefined>;
|
|
2239
|
+
readonly maxOutputTokens: v.NullableSchema<v.NumberSchema<undefined>, undefined>;
|
|
2240
|
+
readonly truncatedCalls: v.NumberSchema<undefined>;
|
|
2241
|
+
readonly upstreamMs: v.NumberSchema<undefined>;
|
|
2242
|
+
readonly overheadMs: v.NumberSchema<undefined>;
|
|
2243
|
+
readonly errors: v.NumberSchema<undefined>;
|
|
2244
|
+
readonly warnings: v.NumberSchema<undefined>;
|
|
2245
|
+
}, undefined>, undefined>, undefined>;
|
|
2246
|
+
readonly gate: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
|
|
2247
|
+
readonly phase: v.PicklistSchema<["checking", "working"], undefined>;
|
|
2248
|
+
readonly attempts: v.NumberSchema<undefined>;
|
|
2249
|
+
readonly maxAttempts: v.NumberSchema<undefined>;
|
|
2250
|
+
readonly headSha: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
2251
|
+
readonly lastVerdict: v.OptionalSchema<v.NullableSchema<v.PicklistSchema<["pass", "pending", "fail"], undefined>, undefined>, undefined>;
|
|
2252
|
+
readonly lastFailureSummary: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
2253
|
+
readonly failingChecks: v.OptionalSchema<v.NullableSchema<v.ArraySchema<v.ObjectSchema<{
|
|
2254
|
+
readonly name: v.StringSchema<undefined>;
|
|
2255
|
+
readonly conclusion: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
2256
|
+
readonly url: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
2257
|
+
}, undefined>, undefined>, undefined>, undefined>;
|
|
2258
|
+
readonly watchSince: v.OptionalSchema<v.NullableSchema<v.NumberSchema<undefined>, undefined>, undefined>;
|
|
2259
|
+
readonly watchWindowMinutes: v.OptionalSchema<v.NullableSchema<v.NumberSchema<undefined>, undefined>, undefined>;
|
|
2260
|
+
readonly regressedSignals: v.OptionalSchema<v.NullableSchema<v.ArraySchema<v.ObjectSchema<{
|
|
2261
|
+
readonly kind: v.PicklistSchema<["monitor", "slo"], undefined>;
|
|
2262
|
+
readonly id: v.StringSchema<undefined>;
|
|
2263
|
+
readonly name: v.StringSchema<undefined>;
|
|
2264
|
+
readonly state: v.PicklistSchema<["ok", "warn", "alert", "no_data"], undefined>;
|
|
2265
|
+
readonly detail: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
2266
|
+
}, undefined>, undefined>, undefined>, undefined>;
|
|
2267
|
+
readonly attemptLog: v.OptionalSchema<v.NullableSchema<v.ArraySchema<v.ObjectSchema<{
|
|
2268
|
+
readonly attempt: v.NumberSchema<undefined>;
|
|
2269
|
+
readonly at: v.NumberSchema<undefined>;
|
|
2270
|
+
readonly outcome: v.PicklistSchema<["completed", "failed"], undefined>;
|
|
2271
|
+
readonly headSha: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
2272
|
+
readonly summary: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
2273
|
+
}, undefined>, undefined>, undefined>, undefined>;
|
|
2274
|
+
readonly lastApprovals: v.OptionalSchema<v.NullableSchema<v.NumberSchema<undefined>, undefined>, undefined>;
|
|
2275
|
+
readonly requiredApprovingReviewCount: v.OptionalSchema<v.NullableSchema<v.NumberSchema<undefined>, undefined>, undefined>;
|
|
2276
|
+
readonly pendingThreadIds: v.OptionalSchema<v.NullableSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>, undefined>;
|
|
2277
|
+
readonly lastAddressedCommentAt: v.OptionalSchema<v.NullableSchema<v.NumberSchema<undefined>, undefined>, undefined>;
|
|
2278
|
+
readonly humanReviewGraceMinutes: v.OptionalSchema<v.NullableSchema<v.NumberSchema<undefined>, undefined>, undefined>;
|
|
2279
|
+
readonly pendingFix: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
|
|
2280
|
+
readonly instructions: v.StringSchema<undefined>;
|
|
2281
|
+
readonly at: v.NumberSchema<undefined>;
|
|
2282
|
+
}, undefined>, undefined>, undefined>;
|
|
2283
|
+
}, undefined>, undefined>, undefined>;
|
|
2284
|
+
readonly test: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
|
|
2285
|
+
readonly phase: v.PicklistSchema<["testing", "fixing"], undefined>;
|
|
2286
|
+
readonly attempts: v.NumberSchema<undefined>;
|
|
2287
|
+
readonly maxAttempts: v.NumberSchema<undefined>;
|
|
2288
|
+
readonly lastReport: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
|
|
2289
|
+
readonly greenlight: v.BooleanSchema<undefined>;
|
|
2290
|
+
readonly summary: v.StringSchema<undefined>;
|
|
2291
|
+
readonly tested: v.ArraySchema<v.StringSchema<undefined>, undefined>;
|
|
2292
|
+
readonly outcomes: v.ArraySchema<v.ObjectSchema<{
|
|
2293
|
+
readonly name: v.StringSchema<undefined>;
|
|
2294
|
+
readonly status: v.PicklistSchema<["passed", "failed", "skipped"], undefined>;
|
|
2295
|
+
readonly detail: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
2296
|
+
}, undefined>, undefined>;
|
|
2297
|
+
readonly concerns: v.ArraySchema<v.ObjectSchema<{
|
|
2298
|
+
readonly title: v.StringSchema<undefined>;
|
|
2299
|
+
readonly detail: v.StringSchema<undefined>;
|
|
2300
|
+
readonly severity: v.PicklistSchema<["low", "medium", "high", "critical"], undefined>;
|
|
2301
|
+
}, undefined>, undefined>;
|
|
2302
|
+
readonly environment: v.OptionalSchema<v.PicklistSchema<["local", "ephemeral"], undefined>, undefined>;
|
|
2303
|
+
}, undefined>, undefined>, undefined>;
|
|
2304
|
+
}, undefined>, undefined>, undefined>;
|
|
2305
|
+
readonly humanTest: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
|
|
2306
|
+
readonly phase: v.PicklistSchema<["provisioning", "awaiting_human", "fixing", "resolving_conflicts", "passed"], undefined>;
|
|
2307
|
+
readonly environment: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
|
|
2308
|
+
readonly id: v.StringSchema<undefined>;
|
|
2309
|
+
readonly url: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
2310
|
+
readonly status: v.PicklistSchema<["provisioning", "ready", "failed", "expired", "tearing_down", "torn_down"], undefined>;
|
|
2311
|
+
readonly expiresAt: v.OptionalSchema<v.NullableSchema<v.NumberSchema<undefined>, undefined>, undefined>;
|
|
2312
|
+
}, undefined>, undefined>, undefined>;
|
|
2313
|
+
readonly degradedReason: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
2314
|
+
readonly attempts: v.NumberSchema<undefined>;
|
|
2315
|
+
readonly maxAttempts: v.NumberSchema<undefined>;
|
|
2316
|
+
readonly headSha: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
2317
|
+
readonly rounds: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
2318
|
+
readonly kind: v.PicklistSchema<["fix", "pull-main"], undefined>;
|
|
2319
|
+
readonly findings: v.StringSchema<undefined>;
|
|
2320
|
+
readonly helperKind: v.StringSchema<undefined>;
|
|
2321
|
+
readonly jobId: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
2322
|
+
readonly outcome: v.OptionalSchema<v.NullableSchema<v.PicklistSchema<["completed", "failed"], undefined>, undefined>, undefined>;
|
|
2323
|
+
readonly at: v.NumberSchema<undefined>;
|
|
2324
|
+
}, undefined>, undefined>, undefined>;
|
|
2325
|
+
readonly pendingAction: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
|
|
2326
|
+
readonly type: v.PicklistSchema<["confirm", "request-fix", "pull-main", "recreate"], undefined>;
|
|
2327
|
+
readonly findings: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
2328
|
+
}, undefined>, undefined>, undefined>;
|
|
2329
|
+
}, undefined>, undefined>, undefined>;
|
|
2330
|
+
readonly environment: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
|
|
2331
|
+
readonly id: v.StringSchema<undefined>;
|
|
2332
|
+
readonly url: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
2333
|
+
readonly status: v.PicklistSchema<["provisioning", "ready", "failed", "expired", "tearing_down", "torn_down"], undefined>;
|
|
2334
|
+
readonly expiresAt: v.OptionalSchema<v.NullableSchema<v.NumberSchema<undefined>, undefined>, undefined>;
|
|
2335
|
+
readonly lastError: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
2336
|
+
}, undefined>, undefined>, undefined>;
|
|
2337
|
+
readonly subtasks: v.OptionalSchema<v.ObjectSchema<{
|
|
2338
|
+
readonly completed: v.NumberSchema<undefined>;
|
|
2339
|
+
readonly inProgress: v.NumberSchema<undefined>;
|
|
2340
|
+
readonly total: v.NumberSchema<undefined>;
|
|
2341
|
+
readonly items: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
2342
|
+
readonly label: v.StringSchema<undefined>;
|
|
2343
|
+
readonly status: v.PicklistSchema<["pending", "in_progress", "completed"], undefined>;
|
|
2344
|
+
}, undefined>, undefined>, undefined>;
|
|
2345
|
+
}, undefined>, undefined>;
|
|
2346
|
+
readonly startingContainer: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
2347
|
+
readonly decision: v.NullableSchema<v.ObjectSchema<{
|
|
2348
|
+
readonly id: v.StringSchema<undefined>;
|
|
2349
|
+
readonly question: v.StringSchema<undefined>;
|
|
2350
|
+
readonly options: v.ArraySchema<v.StringSchema<undefined>, undefined>;
|
|
2351
|
+
readonly chosen: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
2352
|
+
}, undefined>, undefined>;
|
|
2353
|
+
readonly requiresApproval: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
2354
|
+
readonly approval: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
|
|
2355
|
+
readonly id: v.StringSchema<undefined>;
|
|
2356
|
+
readonly status: v.PicklistSchema<["pending", "approved", "changes_requested", "rejected"], undefined>;
|
|
2357
|
+
readonly proposal: v.StringSchema<undefined>;
|
|
2358
|
+
readonly feedback: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
2359
|
+
readonly comments: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
2360
|
+
readonly quotedSource: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
2361
|
+
readonly srcStart: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
|
|
2362
|
+
readonly srcEnd: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
|
|
2363
|
+
readonly anchorId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
2364
|
+
readonly body: v.StringSchema<undefined>;
|
|
2365
|
+
}, undefined>, undefined>, undefined>;
|
|
2366
|
+
}, undefined>, undefined>, undefined>;
|
|
2367
|
+
readonly companion: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
|
|
2368
|
+
readonly threshold: v.NumberSchema<undefined>;
|
|
2369
|
+
readonly maxAttempts: v.NumberSchema<undefined>;
|
|
2370
|
+
readonly attempts: v.OptionalSchema<v.NumberSchema<undefined>, 0>;
|
|
2371
|
+
readonly verdicts: v.ArraySchema<v.ObjectSchema<{
|
|
2372
|
+
readonly rating: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>;
|
|
2373
|
+
readonly threshold: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>;
|
|
2374
|
+
readonly passed: v.BooleanSchema<undefined>;
|
|
2375
|
+
readonly feedback: v.StringSchema<undefined>;
|
|
2376
|
+
}, undefined>, undefined>;
|
|
2377
|
+
readonly exceeded: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
2378
|
+
}, undefined>, undefined>, undefined>;
|
|
2379
|
+
readonly followUps: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
|
|
2380
|
+
readonly enabled: v.BooleanSchema<undefined>;
|
|
2381
|
+
readonly items: v.ArraySchema<v.ObjectSchema<{
|
|
2382
|
+
readonly id: v.StringSchema<undefined>;
|
|
2383
|
+
readonly kind: v.PicklistSchema<["follow_up", "question"], undefined>;
|
|
2384
|
+
readonly title: v.StringSchema<undefined>;
|
|
2385
|
+
readonly detail: v.StringSchema<undefined>;
|
|
2386
|
+
readonly suggestedAction: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
2387
|
+
readonly status: v.PicklistSchema<["pending", "filed", "queued", "answered", "dismissed"], undefined>;
|
|
2388
|
+
readonly answer: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
2389
|
+
readonly sentToCoder: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
2390
|
+
readonly ticketExternalId: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
2391
|
+
readonly ticketUrl: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
2392
|
+
readonly createdAt: v.NumberSchema<undefined>;
|
|
2393
|
+
readonly updatedAt: v.NumberSchema<undefined>;
|
|
2394
|
+
}, undefined>, undefined>;
|
|
2395
|
+
readonly loops: v.OptionalSchema<v.NumberSchema<undefined>, 0>;
|
|
2396
|
+
readonly maxLoops: v.OptionalSchema<v.NumberSchema<undefined>, 3>;
|
|
2397
|
+
}, undefined>, undefined>, undefined>;
|
|
2398
|
+
readonly rework: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
|
|
2399
|
+
readonly previousProposal: v.StringSchema<undefined>;
|
|
2400
|
+
readonly feedback: v.StringSchema<undefined>;
|
|
2401
|
+
readonly comments: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
2402
|
+
readonly quotedSource: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
2403
|
+
readonly srcStart: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
|
|
2404
|
+
readonly srcEnd: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
|
|
2405
|
+
readonly anchorId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
2406
|
+
readonly body: v.StringSchema<undefined>;
|
|
2407
|
+
}, undefined>, undefined>, undefined>;
|
|
2408
|
+
}, undefined>, undefined>, undefined>;
|
|
2409
|
+
readonly pendingIncorporation: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
|
|
2410
|
+
readonly feedback: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
2411
|
+
}, undefined>, undefined>, undefined>;
|
|
2412
|
+
readonly pendingRecommendation: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
|
|
2413
|
+
readonly itemIds: v.ArraySchema<v.StringSchema<undefined>, undefined>;
|
|
2414
|
+
readonly note: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
2415
|
+
}, undefined>, undefined>, undefined>;
|
|
2416
|
+
readonly consensus: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
|
|
2417
|
+
readonly enabled: v.BooleanSchema<undefined>;
|
|
2418
|
+
readonly strategy: v.PicklistSchema<["specialist-panel", "debate", "ranked-voting"], undefined>;
|
|
2419
|
+
readonly participants: v.ArraySchema<v.ObjectSchema<{
|
|
2420
|
+
readonly id: v.StringSchema<undefined>;
|
|
2421
|
+
readonly role: v.StringSchema<undefined>;
|
|
2422
|
+
readonly systemFraming: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
2423
|
+
readonly modelId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
2424
|
+
}, undefined>, undefined>;
|
|
2425
|
+
readonly synthesizerModelId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
2426
|
+
readonly rounds: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>, v.MaxValueAction<number, 5, undefined>]>, undefined>;
|
|
2427
|
+
readonly gating: v.OptionalSchema<v.ObjectSchema<{
|
|
2428
|
+
readonly enabled: v.BooleanSchema<undefined>;
|
|
2429
|
+
readonly minComplexity: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>, undefined>;
|
|
2430
|
+
readonly minRisk: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>, undefined>;
|
|
2431
|
+
readonly minImpact: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>, undefined>;
|
|
2432
|
+
readonly onMissingEstimate: v.OptionalSchema<v.PicklistSchema<["consensus", "standard"], undefined>, "consensus">;
|
|
2433
|
+
}, undefined>, undefined>;
|
|
2434
|
+
}, undefined>, undefined>, undefined>;
|
|
2435
|
+
readonly gating: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
|
|
2436
|
+
readonly enabled: v.BooleanSchema<undefined>;
|
|
2437
|
+
readonly minComplexity: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>, undefined>;
|
|
2438
|
+
readonly minRisk: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>, undefined>;
|
|
2439
|
+
readonly minImpact: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>, undefined>;
|
|
2440
|
+
readonly onMissingEstimate: v.OptionalSchema<v.PicklistSchema<["run", "skip"], undefined>, "run">;
|
|
2441
|
+
}, undefined>, undefined>, undefined>;
|
|
2442
|
+
readonly skipped: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
2443
|
+
readonly noBusinessSpecs: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
2444
|
+
readonly technicalCorroborated: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
2445
|
+
readonly output: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
2446
|
+
readonly custom: v.OptionalSchema<v.UnknownSchema, undefined>;
|
|
2447
|
+
readonly model: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
2448
|
+
readonly selectedFragmentIds: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
2449
|
+
readonly jobId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
2450
|
+
readonly startedAt: v.OptionalSchema<v.NullableSchema<v.NumberSchema<undefined>, undefined>, undefined>;
|
|
2451
|
+
readonly finishedAt: v.OptionalSchema<v.NullableSchema<v.NumberSchema<undefined>, undefined>, undefined>;
|
|
2452
|
+
readonly pausedAt: v.OptionalSchema<v.NullableSchema<v.NumberSchema<undefined>, undefined>, undefined>;
|
|
2453
|
+
readonly evictionRecoveries: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
|
|
2454
|
+
readonly transientEvictionRecoveries: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
|
|
2455
|
+
}, undefined>, undefined>;
|
|
2456
|
+
readonly currentStep: v.NumberSchema<undefined>;
|
|
2457
|
+
readonly status: v.PicklistSchema<["running", "blocked", "done", "paused", "failed"], undefined>;
|
|
2458
|
+
readonly failure: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
|
|
2459
|
+
readonly kind: v.PicklistSchema<["preflight", "dispatch", "evicted", "timeout", "agent", "job_failed", "rejected", "companion_rejected", "cancelled", "unknown"], undefined>;
|
|
2460
|
+
readonly message: v.StringSchema<undefined>;
|
|
2461
|
+
readonly detail: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
2462
|
+
readonly hint: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
2463
|
+
readonly occurredAt: v.NumberSchema<undefined>;
|
|
2464
|
+
readonly lastSubtasks: v.NullableSchema<v.ObjectSchema<{
|
|
2465
|
+
readonly completed: v.NumberSchema<undefined>;
|
|
2466
|
+
readonly inProgress: v.NumberSchema<undefined>;
|
|
2467
|
+
readonly total: v.NumberSchema<undefined>;
|
|
2468
|
+
readonly items: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
2469
|
+
readonly label: v.StringSchema<undefined>;
|
|
2470
|
+
readonly status: v.PicklistSchema<["pending", "in_progress", "completed"], undefined>;
|
|
2471
|
+
}, undefined>, undefined>, undefined>;
|
|
2472
|
+
}, undefined>, undefined>;
|
|
2473
|
+
}, undefined>, undefined>, undefined>;
|
|
2474
|
+
readonly initiatedBy: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
2475
|
+
}, undefined>;
|
|
2476
|
+
};
|
|
2477
|
+
};
|
|
2478
|
+
export declare const rejectStepContract: {
|
|
2479
|
+
readonly method: "post";
|
|
2480
|
+
readonly requestPathParamsSchema: v.ObjectSchema<{
|
|
2481
|
+
readonly executionId: v.StringSchema<undefined>;
|
|
2482
|
+
readonly approvalId: v.StringSchema<undefined>;
|
|
2483
|
+
}, undefined> & import("@toad-contracts/core").ObjectKeysCarrier;
|
|
2484
|
+
readonly pathResolver: ({ executionId, approvalId }: {
|
|
2485
|
+
executionId: string;
|
|
2486
|
+
approvalId: string;
|
|
2487
|
+
}) => string;
|
|
2488
|
+
readonly requestBodySchema: v.ObjectSchema<{
|
|
2489
|
+
readonly reason: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, 2000, undefined>]>, undefined>;
|
|
2490
|
+
}, undefined>;
|
|
2491
|
+
readonly responsesByStatusCode: {
|
|
2492
|
+
readonly '4xx': v.ObjectSchema<{
|
|
2493
|
+
readonly error: v.ObjectSchema<{
|
|
2494
|
+
readonly code: v.StringSchema<undefined>;
|
|
2495
|
+
readonly message: v.StringSchema<undefined>;
|
|
2496
|
+
readonly details: v.OptionalSchema<v.UnknownSchema, undefined>;
|
|
2497
|
+
readonly issues: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
2498
|
+
readonly path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
2499
|
+
readonly message: v.StringSchema<undefined>;
|
|
2500
|
+
}, undefined>, undefined>, undefined>;
|
|
2501
|
+
}, undefined>;
|
|
2502
|
+
}, undefined>;
|
|
2503
|
+
readonly '5xx': v.ObjectSchema<{
|
|
2504
|
+
readonly error: v.ObjectSchema<{
|
|
2505
|
+
readonly code: v.StringSchema<undefined>;
|
|
2506
|
+
readonly message: v.StringSchema<undefined>;
|
|
2507
|
+
readonly details: v.OptionalSchema<v.UnknownSchema, undefined>;
|
|
2508
|
+
readonly issues: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
2509
|
+
readonly path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
2510
|
+
readonly message: v.StringSchema<undefined>;
|
|
2511
|
+
}, undefined>, undefined>, undefined>;
|
|
2512
|
+
}, undefined>;
|
|
2513
|
+
}, undefined>;
|
|
2514
|
+
readonly 200: v.ObjectSchema<{
|
|
2515
|
+
readonly id: v.StringSchema<undefined>;
|
|
2516
|
+
readonly blockId: v.StringSchema<undefined>;
|
|
2517
|
+
readonly pipelineId: v.StringSchema<undefined>;
|
|
2518
|
+
readonly pipelineName: v.StringSchema<undefined>;
|
|
2519
|
+
readonly steps: v.ArraySchema<v.ObjectSchema<{
|
|
2520
|
+
readonly runId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
2521
|
+
readonly agentKind: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
|
|
2522
|
+
readonly state: v.PicklistSchema<["pending", "working", "waiting_decision", "done"], undefined>;
|
|
2523
|
+
readonly progress: v.NumberSchema<undefined>;
|
|
2524
|
+
readonly metrics: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
|
|
2525
|
+
readonly calls: v.NumberSchema<undefined>;
|
|
2526
|
+
readonly promptTokens: v.NumberSchema<undefined>;
|
|
2527
|
+
readonly completionTokens: v.NumberSchema<undefined>;
|
|
2528
|
+
readonly peakCompletionTokens: v.NumberSchema<undefined>;
|
|
2529
|
+
readonly maxOutputTokens: v.NullableSchema<v.NumberSchema<undefined>, undefined>;
|
|
2530
|
+
readonly truncatedCalls: v.NumberSchema<undefined>;
|
|
2531
|
+
readonly upstreamMs: v.NumberSchema<undefined>;
|
|
2532
|
+
readonly overheadMs: v.NumberSchema<undefined>;
|
|
2533
|
+
readonly errors: v.NumberSchema<undefined>;
|
|
2534
|
+
readonly warnings: v.NumberSchema<undefined>;
|
|
2535
|
+
}, undefined>, undefined>, undefined>;
|
|
2536
|
+
readonly gate: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
|
|
2537
|
+
readonly phase: v.PicklistSchema<["checking", "working"], undefined>;
|
|
2538
|
+
readonly attempts: v.NumberSchema<undefined>;
|
|
2539
|
+
readonly maxAttempts: v.NumberSchema<undefined>;
|
|
2540
|
+
readonly headSha: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
2541
|
+
readonly lastVerdict: v.OptionalSchema<v.NullableSchema<v.PicklistSchema<["pass", "pending", "fail"], undefined>, undefined>, undefined>;
|
|
2542
|
+
readonly lastFailureSummary: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
2543
|
+
readonly failingChecks: v.OptionalSchema<v.NullableSchema<v.ArraySchema<v.ObjectSchema<{
|
|
2544
|
+
readonly name: v.StringSchema<undefined>;
|
|
2545
|
+
readonly conclusion: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
2546
|
+
readonly url: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
2547
|
+
}, undefined>, undefined>, undefined>, undefined>;
|
|
2548
|
+
readonly watchSince: v.OptionalSchema<v.NullableSchema<v.NumberSchema<undefined>, undefined>, undefined>;
|
|
2549
|
+
readonly watchWindowMinutes: v.OptionalSchema<v.NullableSchema<v.NumberSchema<undefined>, undefined>, undefined>;
|
|
2550
|
+
readonly regressedSignals: v.OptionalSchema<v.NullableSchema<v.ArraySchema<v.ObjectSchema<{
|
|
2551
|
+
readonly kind: v.PicklistSchema<["monitor", "slo"], undefined>;
|
|
2552
|
+
readonly id: v.StringSchema<undefined>;
|
|
2553
|
+
readonly name: v.StringSchema<undefined>;
|
|
2554
|
+
readonly state: v.PicklistSchema<["ok", "warn", "alert", "no_data"], undefined>;
|
|
2555
|
+
readonly detail: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
2556
|
+
}, undefined>, undefined>, undefined>, undefined>;
|
|
2557
|
+
readonly attemptLog: v.OptionalSchema<v.NullableSchema<v.ArraySchema<v.ObjectSchema<{
|
|
2558
|
+
readonly attempt: v.NumberSchema<undefined>;
|
|
2559
|
+
readonly at: v.NumberSchema<undefined>;
|
|
2560
|
+
readonly outcome: v.PicklistSchema<["completed", "failed"], undefined>;
|
|
2561
|
+
readonly headSha: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
2562
|
+
readonly summary: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
2563
|
+
}, undefined>, undefined>, undefined>, undefined>;
|
|
2564
|
+
readonly lastApprovals: v.OptionalSchema<v.NullableSchema<v.NumberSchema<undefined>, undefined>, undefined>;
|
|
2565
|
+
readonly requiredApprovingReviewCount: v.OptionalSchema<v.NullableSchema<v.NumberSchema<undefined>, undefined>, undefined>;
|
|
2566
|
+
readonly pendingThreadIds: v.OptionalSchema<v.NullableSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>, undefined>;
|
|
2567
|
+
readonly lastAddressedCommentAt: v.OptionalSchema<v.NullableSchema<v.NumberSchema<undefined>, undefined>, undefined>;
|
|
2568
|
+
readonly humanReviewGraceMinutes: v.OptionalSchema<v.NullableSchema<v.NumberSchema<undefined>, undefined>, undefined>;
|
|
2569
|
+
readonly pendingFix: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
|
|
2570
|
+
readonly instructions: v.StringSchema<undefined>;
|
|
2571
|
+
readonly at: v.NumberSchema<undefined>;
|
|
2572
|
+
}, undefined>, undefined>, undefined>;
|
|
2573
|
+
}, undefined>, undefined>, undefined>;
|
|
2574
|
+
readonly test: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
|
|
2575
|
+
readonly phase: v.PicklistSchema<["testing", "fixing"], undefined>;
|
|
2576
|
+
readonly attempts: v.NumberSchema<undefined>;
|
|
2577
|
+
readonly maxAttempts: v.NumberSchema<undefined>;
|
|
2578
|
+
readonly lastReport: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
|
|
2579
|
+
readonly greenlight: v.BooleanSchema<undefined>;
|
|
2580
|
+
readonly summary: v.StringSchema<undefined>;
|
|
2581
|
+
readonly tested: v.ArraySchema<v.StringSchema<undefined>, undefined>;
|
|
2582
|
+
readonly outcomes: v.ArraySchema<v.ObjectSchema<{
|
|
2583
|
+
readonly name: v.StringSchema<undefined>;
|
|
2584
|
+
readonly status: v.PicklistSchema<["passed", "failed", "skipped"], undefined>;
|
|
2585
|
+
readonly detail: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
2586
|
+
}, undefined>, undefined>;
|
|
2587
|
+
readonly concerns: v.ArraySchema<v.ObjectSchema<{
|
|
2588
|
+
readonly title: v.StringSchema<undefined>;
|
|
2589
|
+
readonly detail: v.StringSchema<undefined>;
|
|
2590
|
+
readonly severity: v.PicklistSchema<["low", "medium", "high", "critical"], undefined>;
|
|
2591
|
+
}, undefined>, undefined>;
|
|
2592
|
+
readonly environment: v.OptionalSchema<v.PicklistSchema<["local", "ephemeral"], undefined>, undefined>;
|
|
2593
|
+
}, undefined>, undefined>, undefined>;
|
|
2594
|
+
}, undefined>, undefined>, undefined>;
|
|
2595
|
+
readonly humanTest: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
|
|
2596
|
+
readonly phase: v.PicklistSchema<["provisioning", "awaiting_human", "fixing", "resolving_conflicts", "passed"], undefined>;
|
|
2597
|
+
readonly environment: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
|
|
2598
|
+
readonly id: v.StringSchema<undefined>;
|
|
2599
|
+
readonly url: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
2600
|
+
readonly status: v.PicklistSchema<["provisioning", "ready", "failed", "expired", "tearing_down", "torn_down"], undefined>;
|
|
2601
|
+
readonly expiresAt: v.OptionalSchema<v.NullableSchema<v.NumberSchema<undefined>, undefined>, undefined>;
|
|
2602
|
+
}, undefined>, undefined>, undefined>;
|
|
2603
|
+
readonly degradedReason: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
2604
|
+
readonly attempts: v.NumberSchema<undefined>;
|
|
2605
|
+
readonly maxAttempts: v.NumberSchema<undefined>;
|
|
2606
|
+
readonly headSha: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
2607
|
+
readonly rounds: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
2608
|
+
readonly kind: v.PicklistSchema<["fix", "pull-main"], undefined>;
|
|
2609
|
+
readonly findings: v.StringSchema<undefined>;
|
|
2610
|
+
readonly helperKind: v.StringSchema<undefined>;
|
|
2611
|
+
readonly jobId: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
2612
|
+
readonly outcome: v.OptionalSchema<v.NullableSchema<v.PicklistSchema<["completed", "failed"], undefined>, undefined>, undefined>;
|
|
2613
|
+
readonly at: v.NumberSchema<undefined>;
|
|
2614
|
+
}, undefined>, undefined>, undefined>;
|
|
2615
|
+
readonly pendingAction: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
|
|
2616
|
+
readonly type: v.PicklistSchema<["confirm", "request-fix", "pull-main", "recreate"], undefined>;
|
|
2617
|
+
readonly findings: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
2618
|
+
}, undefined>, undefined>, undefined>;
|
|
2619
|
+
}, undefined>, undefined>, undefined>;
|
|
2620
|
+
readonly environment: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
|
|
2621
|
+
readonly id: v.StringSchema<undefined>;
|
|
2622
|
+
readonly url: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
2623
|
+
readonly status: v.PicklistSchema<["provisioning", "ready", "failed", "expired", "tearing_down", "torn_down"], undefined>;
|
|
2624
|
+
readonly expiresAt: v.OptionalSchema<v.NullableSchema<v.NumberSchema<undefined>, undefined>, undefined>;
|
|
2625
|
+
readonly lastError: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
2626
|
+
}, undefined>, undefined>, undefined>;
|
|
2627
|
+
readonly subtasks: v.OptionalSchema<v.ObjectSchema<{
|
|
2628
|
+
readonly completed: v.NumberSchema<undefined>;
|
|
2629
|
+
readonly inProgress: v.NumberSchema<undefined>;
|
|
2630
|
+
readonly total: v.NumberSchema<undefined>;
|
|
2631
|
+
readonly items: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
2632
|
+
readonly label: v.StringSchema<undefined>;
|
|
2633
|
+
readonly status: v.PicklistSchema<["pending", "in_progress", "completed"], undefined>;
|
|
2634
|
+
}, undefined>, undefined>, undefined>;
|
|
2635
|
+
}, undefined>, undefined>;
|
|
2636
|
+
readonly startingContainer: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
2637
|
+
readonly decision: v.NullableSchema<v.ObjectSchema<{
|
|
2638
|
+
readonly id: v.StringSchema<undefined>;
|
|
2639
|
+
readonly question: v.StringSchema<undefined>;
|
|
2640
|
+
readonly options: v.ArraySchema<v.StringSchema<undefined>, undefined>;
|
|
2641
|
+
readonly chosen: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
2642
|
+
}, undefined>, undefined>;
|
|
2643
|
+
readonly requiresApproval: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
2644
|
+
readonly approval: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
|
|
2645
|
+
readonly id: v.StringSchema<undefined>;
|
|
2646
|
+
readonly status: v.PicklistSchema<["pending", "approved", "changes_requested", "rejected"], undefined>;
|
|
2647
|
+
readonly proposal: v.StringSchema<undefined>;
|
|
2648
|
+
readonly feedback: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
2649
|
+
readonly comments: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
2650
|
+
readonly quotedSource: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
2651
|
+
readonly srcStart: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
|
|
2652
|
+
readonly srcEnd: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
|
|
2653
|
+
readonly anchorId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
2654
|
+
readonly body: v.StringSchema<undefined>;
|
|
2655
|
+
}, undefined>, undefined>, undefined>;
|
|
2656
|
+
}, undefined>, undefined>, undefined>;
|
|
2657
|
+
readonly companion: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
|
|
2658
|
+
readonly threshold: v.NumberSchema<undefined>;
|
|
2659
|
+
readonly maxAttempts: v.NumberSchema<undefined>;
|
|
2660
|
+
readonly attempts: v.OptionalSchema<v.NumberSchema<undefined>, 0>;
|
|
2661
|
+
readonly verdicts: v.ArraySchema<v.ObjectSchema<{
|
|
2662
|
+
readonly rating: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>;
|
|
2663
|
+
readonly threshold: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>;
|
|
2664
|
+
readonly passed: v.BooleanSchema<undefined>;
|
|
2665
|
+
readonly feedback: v.StringSchema<undefined>;
|
|
2666
|
+
}, undefined>, undefined>;
|
|
2667
|
+
readonly exceeded: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
2668
|
+
}, undefined>, undefined>, undefined>;
|
|
2669
|
+
readonly followUps: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
|
|
2670
|
+
readonly enabled: v.BooleanSchema<undefined>;
|
|
2671
|
+
readonly items: v.ArraySchema<v.ObjectSchema<{
|
|
2672
|
+
readonly id: v.StringSchema<undefined>;
|
|
2673
|
+
readonly kind: v.PicklistSchema<["follow_up", "question"], undefined>;
|
|
2674
|
+
readonly title: v.StringSchema<undefined>;
|
|
2675
|
+
readonly detail: v.StringSchema<undefined>;
|
|
2676
|
+
readonly suggestedAction: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
2677
|
+
readonly status: v.PicklistSchema<["pending", "filed", "queued", "answered", "dismissed"], undefined>;
|
|
2678
|
+
readonly answer: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
2679
|
+
readonly sentToCoder: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
2680
|
+
readonly ticketExternalId: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
2681
|
+
readonly ticketUrl: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
2682
|
+
readonly createdAt: v.NumberSchema<undefined>;
|
|
2683
|
+
readonly updatedAt: v.NumberSchema<undefined>;
|
|
2684
|
+
}, undefined>, undefined>;
|
|
2685
|
+
readonly loops: v.OptionalSchema<v.NumberSchema<undefined>, 0>;
|
|
2686
|
+
readonly maxLoops: v.OptionalSchema<v.NumberSchema<undefined>, 3>;
|
|
2687
|
+
}, undefined>, undefined>, undefined>;
|
|
2688
|
+
readonly rework: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
|
|
2689
|
+
readonly previousProposal: v.StringSchema<undefined>;
|
|
2690
|
+
readonly feedback: v.StringSchema<undefined>;
|
|
2691
|
+
readonly comments: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
2692
|
+
readonly quotedSource: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
2693
|
+
readonly srcStart: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
|
|
2694
|
+
readonly srcEnd: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
|
|
2695
|
+
readonly anchorId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
2696
|
+
readonly body: v.StringSchema<undefined>;
|
|
2697
|
+
}, undefined>, undefined>, undefined>;
|
|
2698
|
+
}, undefined>, undefined>, undefined>;
|
|
2699
|
+
readonly pendingIncorporation: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
|
|
2700
|
+
readonly feedback: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
2701
|
+
}, undefined>, undefined>, undefined>;
|
|
2702
|
+
readonly pendingRecommendation: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
|
|
2703
|
+
readonly itemIds: v.ArraySchema<v.StringSchema<undefined>, undefined>;
|
|
2704
|
+
readonly note: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
2705
|
+
}, undefined>, undefined>, undefined>;
|
|
2706
|
+
readonly consensus: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
|
|
2707
|
+
readonly enabled: v.BooleanSchema<undefined>;
|
|
2708
|
+
readonly strategy: v.PicklistSchema<["specialist-panel", "debate", "ranked-voting"], undefined>;
|
|
2709
|
+
readonly participants: v.ArraySchema<v.ObjectSchema<{
|
|
2710
|
+
readonly id: v.StringSchema<undefined>;
|
|
2711
|
+
readonly role: v.StringSchema<undefined>;
|
|
2712
|
+
readonly systemFraming: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
2713
|
+
readonly modelId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
2714
|
+
}, undefined>, undefined>;
|
|
2715
|
+
readonly synthesizerModelId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
2716
|
+
readonly rounds: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>, v.MaxValueAction<number, 5, undefined>]>, undefined>;
|
|
2717
|
+
readonly gating: v.OptionalSchema<v.ObjectSchema<{
|
|
2718
|
+
readonly enabled: v.BooleanSchema<undefined>;
|
|
2719
|
+
readonly minComplexity: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>, undefined>;
|
|
2720
|
+
readonly minRisk: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>, undefined>;
|
|
2721
|
+
readonly minImpact: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>, undefined>;
|
|
2722
|
+
readonly onMissingEstimate: v.OptionalSchema<v.PicklistSchema<["consensus", "standard"], undefined>, "consensus">;
|
|
2723
|
+
}, undefined>, undefined>;
|
|
2724
|
+
}, undefined>, undefined>, undefined>;
|
|
2725
|
+
readonly gating: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
|
|
2726
|
+
readonly enabled: v.BooleanSchema<undefined>;
|
|
2727
|
+
readonly minComplexity: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>, undefined>;
|
|
2728
|
+
readonly minRisk: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>, undefined>;
|
|
2729
|
+
readonly minImpact: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>, undefined>;
|
|
2730
|
+
readonly onMissingEstimate: v.OptionalSchema<v.PicklistSchema<["run", "skip"], undefined>, "run">;
|
|
2731
|
+
}, undefined>, undefined>, undefined>;
|
|
2732
|
+
readonly skipped: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
2733
|
+
readonly noBusinessSpecs: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
2734
|
+
readonly technicalCorroborated: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
2735
|
+
readonly output: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
2736
|
+
readonly custom: v.OptionalSchema<v.UnknownSchema, undefined>;
|
|
2737
|
+
readonly model: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
2738
|
+
readonly selectedFragmentIds: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
2739
|
+
readonly jobId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
2740
|
+
readonly startedAt: v.OptionalSchema<v.NullableSchema<v.NumberSchema<undefined>, undefined>, undefined>;
|
|
2741
|
+
readonly finishedAt: v.OptionalSchema<v.NullableSchema<v.NumberSchema<undefined>, undefined>, undefined>;
|
|
2742
|
+
readonly pausedAt: v.OptionalSchema<v.NullableSchema<v.NumberSchema<undefined>, undefined>, undefined>;
|
|
2743
|
+
readonly evictionRecoveries: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
|
|
2744
|
+
readonly transientEvictionRecoveries: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
|
|
2745
|
+
}, undefined>, undefined>;
|
|
2746
|
+
readonly currentStep: v.NumberSchema<undefined>;
|
|
2747
|
+
readonly status: v.PicklistSchema<["running", "blocked", "done", "paused", "failed"], undefined>;
|
|
2748
|
+
readonly failure: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
|
|
2749
|
+
readonly kind: v.PicklistSchema<["preflight", "dispatch", "evicted", "timeout", "agent", "job_failed", "rejected", "companion_rejected", "cancelled", "unknown"], undefined>;
|
|
2750
|
+
readonly message: v.StringSchema<undefined>;
|
|
2751
|
+
readonly detail: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
2752
|
+
readonly hint: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
2753
|
+
readonly occurredAt: v.NumberSchema<undefined>;
|
|
2754
|
+
readonly lastSubtasks: v.NullableSchema<v.ObjectSchema<{
|
|
2755
|
+
readonly completed: v.NumberSchema<undefined>;
|
|
2756
|
+
readonly inProgress: v.NumberSchema<undefined>;
|
|
2757
|
+
readonly total: v.NumberSchema<undefined>;
|
|
2758
|
+
readonly items: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
2759
|
+
readonly label: v.StringSchema<undefined>;
|
|
2760
|
+
readonly status: v.PicklistSchema<["pending", "in_progress", "completed"], undefined>;
|
|
2761
|
+
}, undefined>, undefined>, undefined>;
|
|
2762
|
+
}, undefined>, undefined>;
|
|
2763
|
+
}, undefined>, undefined>, undefined>;
|
|
2764
|
+
readonly initiatedBy: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
2765
|
+
}, undefined>;
|
|
2766
|
+
};
|
|
2767
|
+
};
|
|
2768
|
+
//# sourceMappingURL=execution.d.ts.map
|