@cat-factory/contracts 0.89.0 → 0.91.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/entities.d.ts +87 -0
- package/dist/entities.d.ts.map +1 -1
- package/dist/entities.js +42 -0
- package/dist/entities.js.map +1 -1
- package/dist/notifications.d.ts +6 -2
- package/dist/notifications.d.ts.map +1 -1
- package/dist/notifications.js +7 -0
- package/dist/notifications.js.map +1 -1
- package/dist/routes/agent-runs.d.ts +14 -0
- package/dist/routes/agent-runs.d.ts.map +1 -1
- package/dist/routes/execution.d.ts +56 -0
- package/dist/routes/execution.d.ts.map +1 -1
- package/dist/routes/human-review.d.ts +7 -0
- package/dist/routes/human-review.d.ts.map +1 -1
- package/dist/routes/human-test.d.ts +35 -0
- package/dist/routes/human-test.d.ts.map +1 -1
- package/dist/routes/initiative.d.ts +378 -0
- package/dist/routes/initiative.d.ts.map +1 -1
- package/dist/routes/initiative.js +29 -0
- package/dist/routes/initiative.js.map +1 -1
- package/dist/routes/notifications.d.ts +6 -3
- package/dist/routes/notifications.d.ts.map +1 -1
- package/dist/routes/slack.d.ts +3 -3
- package/dist/routes/visual-confirm.d.ts +21 -0
- package/dist/routes/visual-confirm.d.ts.map +1 -1
- package/dist/routes/workspaces.d.ts +18 -2
- package/dist/routes/workspaces.d.ts.map +1 -1
- package/dist/service-connections.d.ts +13 -0
- package/dist/service-connections.d.ts.map +1 -1
- package/dist/service-connections.js +18 -0
- package/dist/service-connections.js.map +1 -1
- package/dist/slack.d.ts +2 -2
- package/dist/snapshot.d.ts +9 -1
- package/dist/snapshot.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1066,4 +1066,382 @@ export declare const proceedInitiativePlanningContract: {
|
|
|
1066
1066
|
}, undefined>;
|
|
1067
1067
|
};
|
|
1068
1068
|
};
|
|
1069
|
+
/** Pause an executing initiative — the loop stops spawning; in-flight tasks finish naturally. */
|
|
1070
|
+
export declare const pauseInitiativeContract: {
|
|
1071
|
+
readonly method: "post";
|
|
1072
|
+
readonly requestPathParamsSchema: v.ObjectSchema<{
|
|
1073
|
+
blockId: v.StringSchema<undefined>;
|
|
1074
|
+
}, undefined> & import("@toad-contracts/core").StandardObjectKeysV1<unknown, unknown>;
|
|
1075
|
+
readonly pathResolver: ({ blockId }: {
|
|
1076
|
+
blockId: string;
|
|
1077
|
+
}) => string;
|
|
1078
|
+
readonly requestBodySchema: typeof ContractNoBody;
|
|
1079
|
+
readonly responsesByStatusCode: {
|
|
1080
|
+
readonly '4xx': v.ObjectSchema<{
|
|
1081
|
+
readonly error: v.ObjectSchema<{
|
|
1082
|
+
readonly code: v.StringSchema<undefined>;
|
|
1083
|
+
readonly message: v.StringSchema<undefined>;
|
|
1084
|
+
readonly details: v.OptionalSchema<v.UnknownSchema, undefined>;
|
|
1085
|
+
readonly issues: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
1086
|
+
readonly path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1087
|
+
readonly message: v.StringSchema<undefined>;
|
|
1088
|
+
}, undefined>, undefined>, undefined>;
|
|
1089
|
+
}, undefined>;
|
|
1090
|
+
}, undefined>;
|
|
1091
|
+
readonly '5xx': v.ObjectSchema<{
|
|
1092
|
+
readonly error: v.ObjectSchema<{
|
|
1093
|
+
readonly code: v.StringSchema<undefined>;
|
|
1094
|
+
readonly message: v.StringSchema<undefined>;
|
|
1095
|
+
readonly details: v.OptionalSchema<v.UnknownSchema, undefined>;
|
|
1096
|
+
readonly issues: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
1097
|
+
readonly path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1098
|
+
readonly message: v.StringSchema<undefined>;
|
|
1099
|
+
}, undefined>, undefined>, undefined>;
|
|
1100
|
+
}, undefined>;
|
|
1101
|
+
}, undefined>;
|
|
1102
|
+
readonly 200: v.NullableSchema<v.ObjectSchema<{
|
|
1103
|
+
readonly id: v.StringSchema<undefined>;
|
|
1104
|
+
readonly blockId: v.StringSchema<undefined>;
|
|
1105
|
+
readonly slug: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 80, undefined>]>;
|
|
1106
|
+
readonly title: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 200, undefined>]>;
|
|
1107
|
+
readonly goal: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 8000, undefined>]>, "">;
|
|
1108
|
+
readonly constraints: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 2000, undefined>]>, undefined>, readonly []>;
|
|
1109
|
+
readonly nonGoals: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 2000, undefined>]>, undefined>, readonly []>;
|
|
1110
|
+
readonly qa: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
1111
|
+
readonly id: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 80, undefined>]>, undefined>;
|
|
1112
|
+
readonly question: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 2000, undefined>]>;
|
|
1113
|
+
readonly answer: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 2000, undefined>]>, "">;
|
|
1114
|
+
}, undefined>, undefined>, readonly []>;
|
|
1115
|
+
readonly interview: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
|
|
1116
|
+
readonly round: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
1117
|
+
readonly maxRounds: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>;
|
|
1118
|
+
readonly status: v.PicklistSchema<["awaiting", "done"], undefined>;
|
|
1119
|
+
}, undefined>, undefined>, undefined>;
|
|
1120
|
+
readonly analysisSummary: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 8000, undefined>]>, "">;
|
|
1121
|
+
readonly phases: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
1122
|
+
readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 80, undefined>]>;
|
|
1123
|
+
readonly title: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 200, undefined>]>;
|
|
1124
|
+
readonly goal: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 2000, undefined>]>, "">;
|
|
1125
|
+
readonly maxConcurrent: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>, v.MaxValueAction<number, 20, undefined>]>, undefined>;
|
|
1126
|
+
}, undefined>, undefined>, readonly []>;
|
|
1127
|
+
readonly items: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
1128
|
+
readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 80, undefined>]>;
|
|
1129
|
+
readonly phaseId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 80, undefined>]>;
|
|
1130
|
+
readonly title: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 200, undefined>]>;
|
|
1131
|
+
readonly description: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 8000, undefined>]>;
|
|
1132
|
+
readonly dependsOn: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 80, undefined>]>, undefined>, readonly []>;
|
|
1133
|
+
readonly estimate: v.OptionalSchema<v.ObjectSchema<{
|
|
1134
|
+
readonly complexity: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>;
|
|
1135
|
+
readonly risk: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>;
|
|
1136
|
+
readonly impact: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>;
|
|
1137
|
+
readonly rationale: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 2000, undefined>]>, "">;
|
|
1138
|
+
}, undefined>, undefined>;
|
|
1139
|
+
readonly pipelineId: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 80, undefined>]>, undefined>;
|
|
1140
|
+
readonly status: v.PicklistSchema<["pending", "in_progress", "pr_open", "done", "blocked", "skipped"], undefined>;
|
|
1141
|
+
readonly blockId: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
1142
|
+
readonly pr: v.OptionalSchema<v.ObjectSchema<{
|
|
1143
|
+
readonly url: v.StringSchema<undefined>;
|
|
1144
|
+
readonly number: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
|
|
1145
|
+
}, undefined>, undefined>;
|
|
1146
|
+
readonly note: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 2000, undefined>]>, undefined>;
|
|
1147
|
+
}, undefined>, undefined>, readonly []>;
|
|
1148
|
+
readonly policy: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
|
|
1149
|
+
readonly maxConcurrent: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>, v.MaxValueAction<number, 20, undefined>]>;
|
|
1150
|
+
readonly rules: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
1151
|
+
readonly pipelineId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 80, undefined>]>;
|
|
1152
|
+
readonly minComplexity: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>, undefined>;
|
|
1153
|
+
readonly minRisk: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>, undefined>;
|
|
1154
|
+
readonly minImpact: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>, undefined>;
|
|
1155
|
+
}, undefined>, undefined>, readonly []>;
|
|
1156
|
+
readonly defaultPipelineId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 80, undefined>]>;
|
|
1157
|
+
readonly onMissingEstimate: v.OptionalSchema<v.PicklistSchema<["default", "strongest"], undefined>, "default">;
|
|
1158
|
+
}, undefined>, undefined>, undefined>;
|
|
1159
|
+
readonly decisions: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
1160
|
+
readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 80, undefined>]>;
|
|
1161
|
+
readonly at: v.NumberSchema<undefined>;
|
|
1162
|
+
readonly title: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 200, undefined>]>;
|
|
1163
|
+
readonly detail: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 2000, undefined>]>, "">;
|
|
1164
|
+
readonly source: v.PicklistSchema<["planning", "human", "agent"], undefined>;
|
|
1165
|
+
}, undefined>, undefined>, readonly []>;
|
|
1166
|
+
readonly deviations: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
1167
|
+
readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 80, undefined>]>;
|
|
1168
|
+
readonly at: v.NumberSchema<undefined>;
|
|
1169
|
+
readonly itemId: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 80, undefined>]>, undefined>, undefined>;
|
|
1170
|
+
readonly description: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 2000, undefined>]>;
|
|
1171
|
+
readonly resolution: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 2000, undefined>]>, undefined>;
|
|
1172
|
+
}, undefined>, undefined>, readonly []>;
|
|
1173
|
+
readonly followUps: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
1174
|
+
readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 80, undefined>]>;
|
|
1175
|
+
readonly at: v.NumberSchema<undefined>;
|
|
1176
|
+
readonly sourceItemId: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 80, undefined>]>, undefined>, undefined>;
|
|
1177
|
+
readonly title: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 200, undefined>]>;
|
|
1178
|
+
readonly detail: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 2000, undefined>]>, "">;
|
|
1179
|
+
readonly status: v.PicklistSchema<["open", "promoted", "dismissed"], undefined>;
|
|
1180
|
+
readonly promotedItemId: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 80, undefined>]>, undefined>;
|
|
1181
|
+
}, undefined>, undefined>, readonly []>;
|
|
1182
|
+
readonly caveats: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 2000, undefined>]>, undefined>, readonly []>;
|
|
1183
|
+
readonly status: v.PicklistSchema<["planning", "awaiting_approval", "executing", "paused", "done", "cancelled"], undefined>;
|
|
1184
|
+
readonly doc: v.OptionalSchema<v.ObjectSchema<{
|
|
1185
|
+
readonly version: v.NumberSchema<undefined>;
|
|
1186
|
+
readonly hash: v.StringSchema<undefined>;
|
|
1187
|
+
readonly committedAt: v.NumberSchema<undefined>;
|
|
1188
|
+
}, undefined>, undefined>;
|
|
1189
|
+
readonly rev: v.NumberSchema<undefined>;
|
|
1190
|
+
readonly createdAt: v.NumberSchema<undefined>;
|
|
1191
|
+
readonly updatedAt: v.NumberSchema<undefined>;
|
|
1192
|
+
}, undefined>, undefined>;
|
|
1193
|
+
};
|
|
1194
|
+
};
|
|
1195
|
+
/** Resume a paused initiative back to executing (the next sweep picks it up). */
|
|
1196
|
+
export declare const resumeInitiativeContract: {
|
|
1197
|
+
readonly method: "post";
|
|
1198
|
+
readonly requestPathParamsSchema: v.ObjectSchema<{
|
|
1199
|
+
blockId: v.StringSchema<undefined>;
|
|
1200
|
+
}, undefined> & import("@toad-contracts/core").StandardObjectKeysV1<unknown, unknown>;
|
|
1201
|
+
readonly pathResolver: ({ blockId }: {
|
|
1202
|
+
blockId: string;
|
|
1203
|
+
}) => string;
|
|
1204
|
+
readonly requestBodySchema: typeof ContractNoBody;
|
|
1205
|
+
readonly responsesByStatusCode: {
|
|
1206
|
+
readonly '4xx': v.ObjectSchema<{
|
|
1207
|
+
readonly error: v.ObjectSchema<{
|
|
1208
|
+
readonly code: v.StringSchema<undefined>;
|
|
1209
|
+
readonly message: v.StringSchema<undefined>;
|
|
1210
|
+
readonly details: v.OptionalSchema<v.UnknownSchema, undefined>;
|
|
1211
|
+
readonly issues: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
1212
|
+
readonly path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1213
|
+
readonly message: v.StringSchema<undefined>;
|
|
1214
|
+
}, undefined>, undefined>, undefined>;
|
|
1215
|
+
}, undefined>;
|
|
1216
|
+
}, undefined>;
|
|
1217
|
+
readonly '5xx': v.ObjectSchema<{
|
|
1218
|
+
readonly error: v.ObjectSchema<{
|
|
1219
|
+
readonly code: v.StringSchema<undefined>;
|
|
1220
|
+
readonly message: v.StringSchema<undefined>;
|
|
1221
|
+
readonly details: v.OptionalSchema<v.UnknownSchema, undefined>;
|
|
1222
|
+
readonly issues: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
1223
|
+
readonly path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1224
|
+
readonly message: v.StringSchema<undefined>;
|
|
1225
|
+
}, undefined>, undefined>, undefined>;
|
|
1226
|
+
}, undefined>;
|
|
1227
|
+
}, undefined>;
|
|
1228
|
+
readonly 200: v.NullableSchema<v.ObjectSchema<{
|
|
1229
|
+
readonly id: v.StringSchema<undefined>;
|
|
1230
|
+
readonly blockId: v.StringSchema<undefined>;
|
|
1231
|
+
readonly slug: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 80, undefined>]>;
|
|
1232
|
+
readonly title: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 200, undefined>]>;
|
|
1233
|
+
readonly goal: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 8000, undefined>]>, "">;
|
|
1234
|
+
readonly constraints: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 2000, undefined>]>, undefined>, readonly []>;
|
|
1235
|
+
readonly nonGoals: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 2000, undefined>]>, undefined>, readonly []>;
|
|
1236
|
+
readonly qa: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
1237
|
+
readonly id: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 80, undefined>]>, undefined>;
|
|
1238
|
+
readonly question: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 2000, undefined>]>;
|
|
1239
|
+
readonly answer: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 2000, undefined>]>, "">;
|
|
1240
|
+
}, undefined>, undefined>, readonly []>;
|
|
1241
|
+
readonly interview: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
|
|
1242
|
+
readonly round: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
1243
|
+
readonly maxRounds: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>;
|
|
1244
|
+
readonly status: v.PicklistSchema<["awaiting", "done"], undefined>;
|
|
1245
|
+
}, undefined>, undefined>, undefined>;
|
|
1246
|
+
readonly analysisSummary: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 8000, undefined>]>, "">;
|
|
1247
|
+
readonly phases: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
1248
|
+
readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 80, undefined>]>;
|
|
1249
|
+
readonly title: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 200, undefined>]>;
|
|
1250
|
+
readonly goal: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 2000, undefined>]>, "">;
|
|
1251
|
+
readonly maxConcurrent: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>, v.MaxValueAction<number, 20, undefined>]>, undefined>;
|
|
1252
|
+
}, undefined>, undefined>, readonly []>;
|
|
1253
|
+
readonly items: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
1254
|
+
readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 80, undefined>]>;
|
|
1255
|
+
readonly phaseId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 80, undefined>]>;
|
|
1256
|
+
readonly title: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 200, undefined>]>;
|
|
1257
|
+
readonly description: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 8000, undefined>]>;
|
|
1258
|
+
readonly dependsOn: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 80, undefined>]>, undefined>, readonly []>;
|
|
1259
|
+
readonly estimate: v.OptionalSchema<v.ObjectSchema<{
|
|
1260
|
+
readonly complexity: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>;
|
|
1261
|
+
readonly risk: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>;
|
|
1262
|
+
readonly impact: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>;
|
|
1263
|
+
readonly rationale: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 2000, undefined>]>, "">;
|
|
1264
|
+
}, undefined>, undefined>;
|
|
1265
|
+
readonly pipelineId: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 80, undefined>]>, undefined>;
|
|
1266
|
+
readonly status: v.PicklistSchema<["pending", "in_progress", "pr_open", "done", "blocked", "skipped"], undefined>;
|
|
1267
|
+
readonly blockId: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
1268
|
+
readonly pr: v.OptionalSchema<v.ObjectSchema<{
|
|
1269
|
+
readonly url: v.StringSchema<undefined>;
|
|
1270
|
+
readonly number: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
|
|
1271
|
+
}, undefined>, undefined>;
|
|
1272
|
+
readonly note: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 2000, undefined>]>, undefined>;
|
|
1273
|
+
}, undefined>, undefined>, readonly []>;
|
|
1274
|
+
readonly policy: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
|
|
1275
|
+
readonly maxConcurrent: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>, v.MaxValueAction<number, 20, undefined>]>;
|
|
1276
|
+
readonly rules: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
1277
|
+
readonly pipelineId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 80, undefined>]>;
|
|
1278
|
+
readonly minComplexity: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>, undefined>;
|
|
1279
|
+
readonly minRisk: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>, undefined>;
|
|
1280
|
+
readonly minImpact: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>, undefined>;
|
|
1281
|
+
}, undefined>, undefined>, readonly []>;
|
|
1282
|
+
readonly defaultPipelineId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 80, undefined>]>;
|
|
1283
|
+
readonly onMissingEstimate: v.OptionalSchema<v.PicklistSchema<["default", "strongest"], undefined>, "default">;
|
|
1284
|
+
}, undefined>, undefined>, undefined>;
|
|
1285
|
+
readonly decisions: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
1286
|
+
readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 80, undefined>]>;
|
|
1287
|
+
readonly at: v.NumberSchema<undefined>;
|
|
1288
|
+
readonly title: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 200, undefined>]>;
|
|
1289
|
+
readonly detail: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 2000, undefined>]>, "">;
|
|
1290
|
+
readonly source: v.PicklistSchema<["planning", "human", "agent"], undefined>;
|
|
1291
|
+
}, undefined>, undefined>, readonly []>;
|
|
1292
|
+
readonly deviations: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
1293
|
+
readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 80, undefined>]>;
|
|
1294
|
+
readonly at: v.NumberSchema<undefined>;
|
|
1295
|
+
readonly itemId: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 80, undefined>]>, undefined>, undefined>;
|
|
1296
|
+
readonly description: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 2000, undefined>]>;
|
|
1297
|
+
readonly resolution: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 2000, undefined>]>, undefined>;
|
|
1298
|
+
}, undefined>, undefined>, readonly []>;
|
|
1299
|
+
readonly followUps: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
1300
|
+
readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 80, undefined>]>;
|
|
1301
|
+
readonly at: v.NumberSchema<undefined>;
|
|
1302
|
+
readonly sourceItemId: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 80, undefined>]>, undefined>, undefined>;
|
|
1303
|
+
readonly title: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 200, undefined>]>;
|
|
1304
|
+
readonly detail: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 2000, undefined>]>, "">;
|
|
1305
|
+
readonly status: v.PicklistSchema<["open", "promoted", "dismissed"], undefined>;
|
|
1306
|
+
readonly promotedItemId: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 80, undefined>]>, undefined>;
|
|
1307
|
+
}, undefined>, undefined>, readonly []>;
|
|
1308
|
+
readonly caveats: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 2000, undefined>]>, undefined>, readonly []>;
|
|
1309
|
+
readonly status: v.PicklistSchema<["planning", "awaiting_approval", "executing", "paused", "done", "cancelled"], undefined>;
|
|
1310
|
+
readonly doc: v.OptionalSchema<v.ObjectSchema<{
|
|
1311
|
+
readonly version: v.NumberSchema<undefined>;
|
|
1312
|
+
readonly hash: v.StringSchema<undefined>;
|
|
1313
|
+
readonly committedAt: v.NumberSchema<undefined>;
|
|
1314
|
+
}, undefined>, undefined>;
|
|
1315
|
+
readonly rev: v.NumberSchema<undefined>;
|
|
1316
|
+
readonly createdAt: v.NumberSchema<undefined>;
|
|
1317
|
+
readonly updatedAt: v.NumberSchema<undefined>;
|
|
1318
|
+
}, undefined>, undefined>;
|
|
1319
|
+
};
|
|
1320
|
+
};
|
|
1321
|
+
/** Cancel an initiative — the loop stops spawning further work (in-flight tasks are left to finish). */
|
|
1322
|
+
export declare const cancelInitiativeContract: {
|
|
1323
|
+
readonly method: "post";
|
|
1324
|
+
readonly requestPathParamsSchema: v.ObjectSchema<{
|
|
1325
|
+
blockId: v.StringSchema<undefined>;
|
|
1326
|
+
}, undefined> & import("@toad-contracts/core").StandardObjectKeysV1<unknown, unknown>;
|
|
1327
|
+
readonly pathResolver: ({ blockId }: {
|
|
1328
|
+
blockId: string;
|
|
1329
|
+
}) => string;
|
|
1330
|
+
readonly requestBodySchema: typeof ContractNoBody;
|
|
1331
|
+
readonly responsesByStatusCode: {
|
|
1332
|
+
readonly '4xx': v.ObjectSchema<{
|
|
1333
|
+
readonly error: v.ObjectSchema<{
|
|
1334
|
+
readonly code: v.StringSchema<undefined>;
|
|
1335
|
+
readonly message: v.StringSchema<undefined>;
|
|
1336
|
+
readonly details: v.OptionalSchema<v.UnknownSchema, undefined>;
|
|
1337
|
+
readonly issues: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
1338
|
+
readonly path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1339
|
+
readonly message: v.StringSchema<undefined>;
|
|
1340
|
+
}, undefined>, undefined>, undefined>;
|
|
1341
|
+
}, undefined>;
|
|
1342
|
+
}, undefined>;
|
|
1343
|
+
readonly '5xx': v.ObjectSchema<{
|
|
1344
|
+
readonly error: v.ObjectSchema<{
|
|
1345
|
+
readonly code: v.StringSchema<undefined>;
|
|
1346
|
+
readonly message: v.StringSchema<undefined>;
|
|
1347
|
+
readonly details: v.OptionalSchema<v.UnknownSchema, undefined>;
|
|
1348
|
+
readonly issues: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
1349
|
+
readonly path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1350
|
+
readonly message: v.StringSchema<undefined>;
|
|
1351
|
+
}, undefined>, undefined>, undefined>;
|
|
1352
|
+
}, undefined>;
|
|
1353
|
+
}, undefined>;
|
|
1354
|
+
readonly 200: v.NullableSchema<v.ObjectSchema<{
|
|
1355
|
+
readonly id: v.StringSchema<undefined>;
|
|
1356
|
+
readonly blockId: v.StringSchema<undefined>;
|
|
1357
|
+
readonly slug: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 80, undefined>]>;
|
|
1358
|
+
readonly title: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 200, undefined>]>;
|
|
1359
|
+
readonly goal: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 8000, undefined>]>, "">;
|
|
1360
|
+
readonly constraints: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 2000, undefined>]>, undefined>, readonly []>;
|
|
1361
|
+
readonly nonGoals: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 2000, undefined>]>, undefined>, readonly []>;
|
|
1362
|
+
readonly qa: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
1363
|
+
readonly id: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 80, undefined>]>, undefined>;
|
|
1364
|
+
readonly question: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 2000, undefined>]>;
|
|
1365
|
+
readonly answer: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 2000, undefined>]>, "">;
|
|
1366
|
+
}, undefined>, undefined>, readonly []>;
|
|
1367
|
+
readonly interview: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
|
|
1368
|
+
readonly round: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
1369
|
+
readonly maxRounds: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>;
|
|
1370
|
+
readonly status: v.PicklistSchema<["awaiting", "done"], undefined>;
|
|
1371
|
+
}, undefined>, undefined>, undefined>;
|
|
1372
|
+
readonly analysisSummary: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 8000, undefined>]>, "">;
|
|
1373
|
+
readonly phases: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
1374
|
+
readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 80, undefined>]>;
|
|
1375
|
+
readonly title: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 200, undefined>]>;
|
|
1376
|
+
readonly goal: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 2000, undefined>]>, "">;
|
|
1377
|
+
readonly maxConcurrent: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>, v.MaxValueAction<number, 20, undefined>]>, undefined>;
|
|
1378
|
+
}, undefined>, undefined>, readonly []>;
|
|
1379
|
+
readonly items: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
1380
|
+
readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 80, undefined>]>;
|
|
1381
|
+
readonly phaseId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 80, undefined>]>;
|
|
1382
|
+
readonly title: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 200, undefined>]>;
|
|
1383
|
+
readonly description: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 8000, undefined>]>;
|
|
1384
|
+
readonly dependsOn: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 80, undefined>]>, undefined>, readonly []>;
|
|
1385
|
+
readonly estimate: v.OptionalSchema<v.ObjectSchema<{
|
|
1386
|
+
readonly complexity: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>;
|
|
1387
|
+
readonly risk: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>;
|
|
1388
|
+
readonly impact: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>;
|
|
1389
|
+
readonly rationale: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 2000, undefined>]>, "">;
|
|
1390
|
+
}, undefined>, undefined>;
|
|
1391
|
+
readonly pipelineId: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 80, undefined>]>, undefined>;
|
|
1392
|
+
readonly status: v.PicklistSchema<["pending", "in_progress", "pr_open", "done", "blocked", "skipped"], undefined>;
|
|
1393
|
+
readonly blockId: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
1394
|
+
readonly pr: v.OptionalSchema<v.ObjectSchema<{
|
|
1395
|
+
readonly url: v.StringSchema<undefined>;
|
|
1396
|
+
readonly number: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
|
|
1397
|
+
}, undefined>, undefined>;
|
|
1398
|
+
readonly note: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 2000, undefined>]>, undefined>;
|
|
1399
|
+
}, undefined>, undefined>, readonly []>;
|
|
1400
|
+
readonly policy: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
|
|
1401
|
+
readonly maxConcurrent: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>, v.MaxValueAction<number, 20, undefined>]>;
|
|
1402
|
+
readonly rules: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
1403
|
+
readonly pipelineId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 80, undefined>]>;
|
|
1404
|
+
readonly minComplexity: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>, undefined>;
|
|
1405
|
+
readonly minRisk: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>, undefined>;
|
|
1406
|
+
readonly minImpact: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>, undefined>;
|
|
1407
|
+
}, undefined>, undefined>, readonly []>;
|
|
1408
|
+
readonly defaultPipelineId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 80, undefined>]>;
|
|
1409
|
+
readonly onMissingEstimate: v.OptionalSchema<v.PicklistSchema<["default", "strongest"], undefined>, "default">;
|
|
1410
|
+
}, undefined>, undefined>, undefined>;
|
|
1411
|
+
readonly decisions: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
1412
|
+
readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 80, undefined>]>;
|
|
1413
|
+
readonly at: v.NumberSchema<undefined>;
|
|
1414
|
+
readonly title: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 200, undefined>]>;
|
|
1415
|
+
readonly detail: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 2000, undefined>]>, "">;
|
|
1416
|
+
readonly source: v.PicklistSchema<["planning", "human", "agent"], undefined>;
|
|
1417
|
+
}, undefined>, undefined>, readonly []>;
|
|
1418
|
+
readonly deviations: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
1419
|
+
readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 80, undefined>]>;
|
|
1420
|
+
readonly at: v.NumberSchema<undefined>;
|
|
1421
|
+
readonly itemId: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 80, undefined>]>, undefined>, undefined>;
|
|
1422
|
+
readonly description: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 2000, undefined>]>;
|
|
1423
|
+
readonly resolution: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 2000, undefined>]>, undefined>;
|
|
1424
|
+
}, undefined>, undefined>, readonly []>;
|
|
1425
|
+
readonly followUps: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
1426
|
+
readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 80, undefined>]>;
|
|
1427
|
+
readonly at: v.NumberSchema<undefined>;
|
|
1428
|
+
readonly sourceItemId: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 80, undefined>]>, undefined>, undefined>;
|
|
1429
|
+
readonly title: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 200, undefined>]>;
|
|
1430
|
+
readonly detail: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 2000, undefined>]>, "">;
|
|
1431
|
+
readonly status: v.PicklistSchema<["open", "promoted", "dismissed"], undefined>;
|
|
1432
|
+
readonly promotedItemId: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 80, undefined>]>, undefined>;
|
|
1433
|
+
}, undefined>, undefined>, readonly []>;
|
|
1434
|
+
readonly caveats: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 2000, undefined>]>, undefined>, readonly []>;
|
|
1435
|
+
readonly status: v.PicklistSchema<["planning", "awaiting_approval", "executing", "paused", "done", "cancelled"], undefined>;
|
|
1436
|
+
readonly doc: v.OptionalSchema<v.ObjectSchema<{
|
|
1437
|
+
readonly version: v.NumberSchema<undefined>;
|
|
1438
|
+
readonly hash: v.StringSchema<undefined>;
|
|
1439
|
+
readonly committedAt: v.NumberSchema<undefined>;
|
|
1440
|
+
}, undefined>, undefined>;
|
|
1441
|
+
readonly rev: v.NumberSchema<undefined>;
|
|
1442
|
+
readonly createdAt: v.NumberSchema<undefined>;
|
|
1443
|
+
readonly updatedAt: v.NumberSchema<undefined>;
|
|
1444
|
+
}, undefined>, undefined>;
|
|
1445
|
+
};
|
|
1446
|
+
};
|
|
1069
1447
|
//# sourceMappingURL=initiative.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"initiative.d.ts","sourceRoot":"","sources":["../../src/routes/initiative.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAqB,MAAM,yBAAyB,CAAA;AAC3E,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAkB5B;;;;GAIG;AACH,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAQnC,CAAA;AAEF,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAIlC,CAAA;AAEF,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAKhC,CAAA;AAEF,uFAAuF;AACvF,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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AM5C,CAAA;AAQF,iGAAiG;AACjG,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAMlC,CAAA;AAEF,iFAAiF;AACjF,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAMnC,CAAA;AAEF,wGAAwG;AACxG,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAMnC,CAAA"}
|
|
@@ -70,4 +70,33 @@ export const proceedInitiativePlanningContract = defineApiContract({
|
|
|
70
70
|
requestBodySchema: ContractNoBody,
|
|
71
71
|
responsesByStatusCode: { 200: initiativeSchema, ...errorResponses },
|
|
72
72
|
});
|
|
73
|
+
// ---- Execution loop controls (slice 3) -------------------------------------
|
|
74
|
+
// Human controls over an executing initiative's loop. Each returns the updated initiative so
|
|
75
|
+
// the SPA patches its cache (the live `initiative` event carries the same entity). `null` is
|
|
76
|
+
// returned only when the block has no initiative (unchanged/no-op transitions still echo the
|
|
77
|
+
// current entity).
|
|
78
|
+
/** Pause an executing initiative — the loop stops spawning; in-flight tasks finish naturally. */
|
|
79
|
+
export const pauseInitiativeContract = defineApiContract({
|
|
80
|
+
method: 'post',
|
|
81
|
+
requestPathParamsSchema: blockIdParams,
|
|
82
|
+
pathResolver: ({ blockId }) => `/blocks/${blockId}/initiative/pause`,
|
|
83
|
+
requestBodySchema: ContractNoBody,
|
|
84
|
+
responsesByStatusCode: { 200: v.nullable(initiativeSchema), ...errorResponses },
|
|
85
|
+
});
|
|
86
|
+
/** Resume a paused initiative back to executing (the next sweep picks it up). */
|
|
87
|
+
export const resumeInitiativeContract = defineApiContract({
|
|
88
|
+
method: 'post',
|
|
89
|
+
requestPathParamsSchema: blockIdParams,
|
|
90
|
+
pathResolver: ({ blockId }) => `/blocks/${blockId}/initiative/resume`,
|
|
91
|
+
requestBodySchema: ContractNoBody,
|
|
92
|
+
responsesByStatusCode: { 200: v.nullable(initiativeSchema), ...errorResponses },
|
|
93
|
+
});
|
|
94
|
+
/** Cancel an initiative — the loop stops spawning further work (in-flight tasks are left to finish). */
|
|
95
|
+
export const cancelInitiativeContract = defineApiContract({
|
|
96
|
+
method: 'post',
|
|
97
|
+
requestPathParamsSchema: blockIdParams,
|
|
98
|
+
pathResolver: ({ blockId }) => `/blocks/${blockId}/initiative/cancel`,
|
|
99
|
+
requestBodySchema: ContractNoBody,
|
|
100
|
+
responsesByStatusCode: { 200: v.nullable(initiativeSchema), ...errorResponses },
|
|
101
|
+
});
|
|
73
102
|
//# sourceMappingURL=initiative.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"initiative.js","sourceRoot":"","sources":["../../src/routes/initiative.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAA;AAC3E,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAC5B,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAA;AAC5C,OAAO,EACL,8BAA8B,EAC9B,sBAAsB,EACtB,gBAAgB,GACjB,MAAM,kBAAkB,CAAA;AACzB,OAAO,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAA;AAEhE,8EAA8E;AAC9E,+EAA+E;AAC/E,sEAAsE;AACtE,uBAAuB;AACvB,8EAA8E;AAE9E,MAAM,kBAAkB,GAAG,iBAAiB,CAAC,cAAc,CAAC,CAAA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only 200: v.ArraySchema<v.ObjectSchema<{
|
|
30
30
|
readonly id: v.StringSchema<undefined>;
|
|
31
|
-
readonly type: v.PicklistSchema<["merge_review", "pipeline_complete", "ci_failed", "test_failed", "requirement_review", "clarity_review", "release_regression", "decision_required", "human_test_ready", "visual_confirmation_ready", "human_review", "followup_pending"], undefined>;
|
|
31
|
+
readonly type: v.PicklistSchema<["merge_review", "pipeline_complete", "ci_failed", "test_failed", "requirement_review", "clarity_review", "release_regression", "decision_required", "human_test_ready", "visual_confirmation_ready", "human_review", "followup_pending", "initiative"], undefined>;
|
|
32
32
|
readonly status: v.PicklistSchema<["open", "acted", "dismissed"], undefined>;
|
|
33
33
|
readonly severity: v.OptionalSchema<v.PicklistSchema<["normal", "urgent"], undefined>, undefined>;
|
|
34
34
|
readonly blockId: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
@@ -60,6 +60,7 @@ export declare const listNotificationsContract: {
|
|
|
60
60
|
}, undefined>, undefined>, undefined>;
|
|
61
61
|
readonly revertUrl: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
62
62
|
readonly targetUserId: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
63
|
+
readonly initiativeReason: v.OptionalSchema<v.PicklistSchema<["item_blocked", "complete"], undefined>, undefined>;
|
|
63
64
|
}, undefined>, undefined>, undefined>;
|
|
64
65
|
readonly createdAt: v.NumberSchema<undefined>;
|
|
65
66
|
readonly resolvedAt: v.NullableSchema<v.NumberSchema<undefined>, undefined>;
|
|
@@ -100,7 +101,7 @@ export declare const actNotificationContract: {
|
|
|
100
101
|
}, undefined>;
|
|
101
102
|
readonly 200: v.ObjectSchema<{
|
|
102
103
|
readonly id: v.StringSchema<undefined>;
|
|
103
|
-
readonly type: v.PicklistSchema<["merge_review", "pipeline_complete", "ci_failed", "test_failed", "requirement_review", "clarity_review", "release_regression", "decision_required", "human_test_ready", "visual_confirmation_ready", "human_review", "followup_pending"], undefined>;
|
|
104
|
+
readonly type: v.PicklistSchema<["merge_review", "pipeline_complete", "ci_failed", "test_failed", "requirement_review", "clarity_review", "release_regression", "decision_required", "human_test_ready", "visual_confirmation_ready", "human_review", "followup_pending", "initiative"], undefined>;
|
|
104
105
|
readonly status: v.PicklistSchema<["open", "acted", "dismissed"], undefined>;
|
|
105
106
|
readonly severity: v.OptionalSchema<v.PicklistSchema<["normal", "urgent"], undefined>, undefined>;
|
|
106
107
|
readonly blockId: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
@@ -132,6 +133,7 @@ export declare const actNotificationContract: {
|
|
|
132
133
|
}, undefined>, undefined>, undefined>;
|
|
133
134
|
readonly revertUrl: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
134
135
|
readonly targetUserId: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
136
|
+
readonly initiativeReason: v.OptionalSchema<v.PicklistSchema<["item_blocked", "complete"], undefined>, undefined>;
|
|
135
137
|
}, undefined>, undefined>, undefined>;
|
|
136
138
|
readonly createdAt: v.NumberSchema<undefined>;
|
|
137
139
|
readonly resolvedAt: v.NullableSchema<v.NumberSchema<undefined>, undefined>;
|
|
@@ -172,7 +174,7 @@ export declare const dismissNotificationContract: {
|
|
|
172
174
|
}, undefined>;
|
|
173
175
|
readonly 200: v.ObjectSchema<{
|
|
174
176
|
readonly id: v.StringSchema<undefined>;
|
|
175
|
-
readonly type: v.PicklistSchema<["merge_review", "pipeline_complete", "ci_failed", "test_failed", "requirement_review", "clarity_review", "release_regression", "decision_required", "human_test_ready", "visual_confirmation_ready", "human_review", "followup_pending"], undefined>;
|
|
177
|
+
readonly type: v.PicklistSchema<["merge_review", "pipeline_complete", "ci_failed", "test_failed", "requirement_review", "clarity_review", "release_regression", "decision_required", "human_test_ready", "visual_confirmation_ready", "human_review", "followup_pending", "initiative"], undefined>;
|
|
176
178
|
readonly status: v.PicklistSchema<["open", "acted", "dismissed"], undefined>;
|
|
177
179
|
readonly severity: v.OptionalSchema<v.PicklistSchema<["normal", "urgent"], undefined>, undefined>;
|
|
178
180
|
readonly blockId: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
@@ -204,6 +206,7 @@ export declare const dismissNotificationContract: {
|
|
|
204
206
|
}, undefined>, undefined>, undefined>;
|
|
205
207
|
readonly revertUrl: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
206
208
|
readonly targetUserId: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
209
|
+
readonly initiativeReason: v.OptionalSchema<v.PicklistSchema<["item_blocked", "complete"], undefined>, undefined>;
|
|
207
210
|
}, undefined>, undefined>, undefined>;
|
|
208
211
|
readonly createdAt: v.NumberSchema<undefined>;
|
|
209
212
|
readonly resolvedAt: v.NullableSchema<v.NumberSchema<undefined>, undefined>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"notifications.d.ts","sourceRoot":"","sources":["../../src/routes/notifications.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAqB,MAAM,yBAAyB,CAAA;AAC3E,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAa5B,eAAO,MAAM,yBAAyB
|
|
1
|
+
{"version":3,"file":"notifications.d.ts","sourceRoot":"","sources":["../../src/routes/notifications.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAqB,MAAM,yBAAyB,CAAA;AAC3E,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAa5B,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAIpC,CAAA;AAEF,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAMlC,CAAA;AAEF,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAMtC,CAAA"}
|
package/dist/routes/slack.d.ts
CHANGED
|
@@ -200,7 +200,7 @@ export declare const getSlackSettingsContract: {
|
|
|
200
200
|
}, undefined>;
|
|
201
201
|
}, undefined>;
|
|
202
202
|
readonly 200: v.ObjectSchema<{
|
|
203
|
-
readonly routes: v.RecordSchema<v.PicklistSchema<["merge_review", "pipeline_complete", "ci_failed", "test_failed", "requirement_review", "clarity_review", "release_regression", "decision_required", "human_test_ready", "visual_confirmation_ready", "human_review", "followup_pending"], undefined>, v.ObjectSchema<{
|
|
203
|
+
readonly routes: v.RecordSchema<v.PicklistSchema<["merge_review", "pipeline_complete", "ci_failed", "test_failed", "requirement_review", "clarity_review", "release_regression", "decision_required", "human_test_ready", "visual_confirmation_ready", "human_review", "followup_pending", "initiative"], undefined>, v.ObjectSchema<{
|
|
204
204
|
readonly enabled: v.BooleanSchema<undefined>;
|
|
205
205
|
readonly channel: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, 200, undefined>]>;
|
|
206
206
|
}, undefined>, undefined>;
|
|
@@ -213,7 +213,7 @@ export declare const updateSlackSettingsContract: {
|
|
|
213
213
|
readonly method: "put";
|
|
214
214
|
readonly pathResolver: () => string;
|
|
215
215
|
readonly requestBodySchema: v.ObjectSchema<{
|
|
216
|
-
readonly routes: v.RecordSchema<v.PicklistSchema<["merge_review", "pipeline_complete", "ci_failed", "test_failed", "requirement_review", "clarity_review", "release_regression", "decision_required", "human_test_ready", "visual_confirmation_ready", "human_review", "followup_pending"], undefined>, v.ObjectSchema<{
|
|
216
|
+
readonly routes: v.RecordSchema<v.PicklistSchema<["merge_review", "pipeline_complete", "ci_failed", "test_failed", "requirement_review", "clarity_review", "release_regression", "decision_required", "human_test_ready", "visual_confirmation_ready", "human_review", "followup_pending", "initiative"], undefined>, v.ObjectSchema<{
|
|
217
217
|
readonly enabled: v.BooleanSchema<undefined>;
|
|
218
218
|
readonly channel: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, 200, undefined>]>;
|
|
219
219
|
}, undefined>, undefined>;
|
|
@@ -243,7 +243,7 @@ export declare const updateSlackSettingsContract: {
|
|
|
243
243
|
}, undefined>;
|
|
244
244
|
}, undefined>;
|
|
245
245
|
readonly 200: v.ObjectSchema<{
|
|
246
|
-
readonly routes: v.RecordSchema<v.PicklistSchema<["merge_review", "pipeline_complete", "ci_failed", "test_failed", "requirement_review", "clarity_review", "release_regression", "decision_required", "human_test_ready", "visual_confirmation_ready", "human_review", "followup_pending"], undefined>, v.ObjectSchema<{
|
|
246
|
+
readonly routes: v.RecordSchema<v.PicklistSchema<["merge_review", "pipeline_complete", "ci_failed", "test_failed", "requirement_review", "clarity_review", "release_regression", "decision_required", "human_test_ready", "visual_confirmation_ready", "human_review", "followup_pending", "initiative"], undefined>, v.ObjectSchema<{
|
|
247
247
|
readonly enabled: v.BooleanSchema<undefined>;
|
|
248
248
|
readonly channel: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, 200, undefined>]>;
|
|
249
249
|
}, undefined>, undefined>;
|
|
@@ -492,6 +492,13 @@ export declare const approveVisualConfirmContract: {
|
|
|
492
492
|
}, "a secret entry must set exactly one of secretRef or valueTemplate.">]>, undefined>;
|
|
493
493
|
}, undefined>], undefined>, undefined>, undefined>;
|
|
494
494
|
}, undefined>, undefined>;
|
|
495
|
+
readonly deployEnvs: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.ObjectSchema<{
|
|
496
|
+
readonly status: v.PicklistSchema<["ready", "failed", "skipped"], undefined>;
|
|
497
|
+
readonly url: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
498
|
+
readonly error: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
499
|
+
}, undefined>, undefined>, undefined>;
|
|
500
|
+
readonly deployFrameId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
501
|
+
readonly deployPrimaryFrameId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
495
502
|
}, undefined>, undefined>;
|
|
496
503
|
readonly currentStep: v.NumberSchema<undefined>;
|
|
497
504
|
readonly status: v.PicklistSchema<["running", "blocked", "done", "paused", "failed"], undefined>;
|
|
@@ -1032,6 +1039,13 @@ export declare const requestVisualConfirmFixContract: {
|
|
|
1032
1039
|
}, "a secret entry must set exactly one of secretRef or valueTemplate.">]>, undefined>;
|
|
1033
1040
|
}, undefined>], undefined>, undefined>, undefined>;
|
|
1034
1041
|
}, undefined>, undefined>;
|
|
1042
|
+
readonly deployEnvs: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.ObjectSchema<{
|
|
1043
|
+
readonly status: v.PicklistSchema<["ready", "failed", "skipped"], undefined>;
|
|
1044
|
+
readonly url: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
1045
|
+
readonly error: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
1046
|
+
}, undefined>, undefined>, undefined>;
|
|
1047
|
+
readonly deployFrameId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1048
|
+
readonly deployPrimaryFrameId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1035
1049
|
}, undefined>, undefined>;
|
|
1036
1050
|
readonly currentStep: v.NumberSchema<undefined>;
|
|
1037
1051
|
readonly status: v.PicklistSchema<["running", "blocked", "done", "paused", "failed"], undefined>;
|
|
@@ -1570,6 +1584,13 @@ export declare const recaptureVisualConfirmContract: {
|
|
|
1570
1584
|
}, "a secret entry must set exactly one of secretRef or valueTemplate.">]>, undefined>;
|
|
1571
1585
|
}, undefined>], undefined>, undefined>, undefined>;
|
|
1572
1586
|
}, undefined>, undefined>;
|
|
1587
|
+
readonly deployEnvs: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.ObjectSchema<{
|
|
1588
|
+
readonly status: v.PicklistSchema<["ready", "failed", "skipped"], undefined>;
|
|
1589
|
+
readonly url: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
1590
|
+
readonly error: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
1591
|
+
}, undefined>, undefined>, undefined>;
|
|
1592
|
+
readonly deployFrameId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1593
|
+
readonly deployPrimaryFrameId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1573
1594
|
}, undefined>, undefined>;
|
|
1574
1595
|
readonly currentStep: v.NumberSchema<undefined>;
|
|
1575
1596
|
readonly status: v.PicklistSchema<["running", "blocked", "done", "paused", "failed"], undefined>;
|