@cat-factory/contracts 0.294.0 → 0.296.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.
@@ -1,3 +1,4 @@
1
+ import * as v from 'valibot';
1
2
  /**
2
3
  * Create a repository and adapt it with the bootstrapper agent.
3
4
  *
@@ -9,14 +10,14 @@
9
10
  export declare const startPublicRepoBootstrapContract: {
10
11
  readonly method: "post";
11
12
  readonly pathResolver: () => string;
12
- readonly requestBodySchema: import("valibot").SchemaWithPipe<readonly [import("valibot").ObjectSchema<{
13
- readonly repoName: import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").TrimAction, import("valibot").RegexAction<string, "Only letters, digits, '.', '_' and '-' are allowed">, import("valibot").MinLengthAction<string, 1, undefined>, import("valibot").MaxLengthAction<string, 100, undefined>]>;
14
- readonly type: import("valibot").OptionalSchema<import("valibot").PicklistSchema<["service", "frontend", "library", "document"], undefined>, undefined>;
15
- readonly description: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").MaxLengthAction<string, 2000, undefined>]>, undefined>;
16
- readonly private: import("valibot").OptionalSchema<import("valibot").BooleanSchema<undefined>, undefined>;
17
- readonly instructions: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").MaxLengthAction<string, 8000, undefined>]>, undefined>;
18
- readonly referenceArchitectureId: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").MinLengthAction<string, 1, undefined>]>, undefined>;
19
- }, undefined>, import("valibot").CheckAction<{
13
+ readonly requestBodySchema: v.SchemaWithPipe<readonly [v.ObjectSchema<{
14
+ readonly repoName: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, "Only letters, digits, '.', '_' and '-' are allowed">, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 100, undefined>]>;
15
+ readonly type: v.OptionalSchema<v.PicklistSchema<["service", "frontend", "library", "document"], undefined>, undefined>;
16
+ readonly description: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 2000, undefined>]>, undefined>;
17
+ readonly private: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
18
+ readonly instructions: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 8000, undefined>]>, undefined>;
19
+ readonly referenceArchitectureId: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>;
20
+ }, undefined>, v.CheckAction<{
20
21
  repoName: string;
21
22
  type?: "document" | "frontend" | "library" | "service" | undefined;
22
23
  description?: string | undefined;
@@ -25,50 +26,176 @@ export declare const startPublicRepoBootstrapContract: {
25
26
  referenceArchitectureId?: string | undefined;
26
27
  }, "Provide a reference architecture or freeform instructions to bootstrap from.">]>;
27
28
  readonly responsesByStatusCode: {
28
- readonly '4xx': import("valibot").ObjectSchema<{
29
- readonly error: import("valibot").ObjectSchema<{
30
- readonly code: import("valibot").StringSchema<undefined>;
31
- readonly message: import("valibot").StringSchema<undefined>;
32
- readonly details: import("valibot").OptionalSchema<import("valibot").UnknownSchema, undefined>;
33
- readonly issues: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").ObjectSchema<{
34
- readonly path: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
35
- readonly message: import("valibot").StringSchema<undefined>;
29
+ readonly '4xx': v.ObjectSchema<{
30
+ readonly error: v.ObjectSchema<{
31
+ readonly code: v.StringSchema<undefined>;
32
+ readonly message: v.StringSchema<undefined>;
33
+ readonly details: v.OptionalSchema<v.UnknownSchema, undefined>;
34
+ readonly issues: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
35
+ readonly path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
36
+ readonly message: v.StringSchema<undefined>;
36
37
  }, undefined>, undefined>, undefined>;
37
38
  }, undefined>;
38
39
  }, undefined>;
39
- readonly '5xx': import("valibot").ObjectSchema<{
40
- readonly error: import("valibot").ObjectSchema<{
41
- readonly code: import("valibot").StringSchema<undefined>;
42
- readonly message: import("valibot").StringSchema<undefined>;
43
- readonly details: import("valibot").OptionalSchema<import("valibot").UnknownSchema, undefined>;
44
- readonly issues: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").ObjectSchema<{
45
- readonly path: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
46
- readonly message: import("valibot").StringSchema<undefined>;
40
+ readonly '5xx': v.ObjectSchema<{
41
+ readonly error: v.ObjectSchema<{
42
+ readonly code: v.StringSchema<undefined>;
43
+ readonly message: v.StringSchema<undefined>;
44
+ readonly details: v.OptionalSchema<v.UnknownSchema, undefined>;
45
+ readonly issues: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
46
+ readonly path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
47
+ readonly message: v.StringSchema<undefined>;
47
48
  }, undefined>, undefined>, undefined>;
48
49
  }, undefined>;
49
50
  }, undefined>;
50
- readonly 201: import("valibot").ObjectSchema<{
51
- readonly jobId: import("valibot").StringSchema<undefined>;
52
- readonly status: import("valibot").PicklistSchema<["pending", "running", "succeeded", "failed"], undefined>;
53
- readonly repoName: import("valibot").StringSchema<undefined>;
54
- readonly repoOwner: import("valibot").NullableSchema<import("valibot").StringSchema<undefined>, undefined>;
55
- readonly repoUrl: import("valibot").NullableSchema<import("valibot").StringSchema<undefined>, undefined>;
56
- readonly serviceId: import("valibot").NullableSchema<import("valibot").StringSchema<undefined>, undefined>;
57
- readonly progress: import("valibot").NullableSchema<import("valibot").ObjectSchema<{
58
- readonly completed: import("valibot").NumberSchema<undefined>;
59
- readonly inProgress: import("valibot").NumberSchema<undefined>;
60
- readonly total: import("valibot").NumberSchema<undefined>;
61
- readonly items: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").ObjectSchema<{
62
- readonly label: import("valibot").StringSchema<undefined>;
63
- readonly status: import("valibot").PicklistSchema<["pending", "in_progress", "completed"], undefined>;
51
+ readonly 201: v.ObjectSchema<{
52
+ readonly jobId: v.StringSchema<undefined>;
53
+ readonly status: v.PicklistSchema<["pending", "running", "succeeded", "failed"], undefined>;
54
+ readonly repoName: v.StringSchema<undefined>;
55
+ readonly repoOwner: v.NullableSchema<v.StringSchema<undefined>, undefined>;
56
+ readonly repoUrl: v.NullableSchema<v.StringSchema<undefined>, undefined>;
57
+ readonly serviceId: v.NullableSchema<v.StringSchema<undefined>, undefined>;
58
+ readonly progress: v.NullableSchema<v.ObjectSchema<{
59
+ readonly completed: v.NumberSchema<undefined>;
60
+ readonly inProgress: v.NumberSchema<undefined>;
61
+ readonly total: v.NumberSchema<undefined>;
62
+ readonly items: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
63
+ readonly label: v.StringSchema<undefined>;
64
+ readonly status: v.PicklistSchema<["pending", "in_progress", "completed"], undefined>;
64
65
  }, undefined>, undefined>, undefined>;
65
66
  }, undefined>, undefined>;
66
- readonly error: import("valibot").NullableSchema<import("valibot").StringSchema<undefined>, undefined>;
67
- readonly failureKind: import("valibot").NullableSchema<import("valibot").PicklistSchema<["preflight", "dispatch", "environment", "evicted", "timeout", "agent", "job_failed", "rejected", "companion_rejected", "stalled", "cancelled", "unknown"], undefined>, undefined>;
68
- readonly failureDetail: import("valibot").NullableSchema<import("valibot").StringSchema<undefined>, undefined>;
69
- readonly failureHint: import("valibot").NullableSchema<import("valibot").StringSchema<undefined>, undefined>;
70
- readonly createdAt: import("valibot").NumberSchema<undefined>;
71
- readonly updatedAt: import("valibot").NumberSchema<undefined>;
67
+ readonly error: v.NullableSchema<v.StringSchema<undefined>, undefined>;
68
+ readonly failureKind: v.NullableSchema<v.PicklistSchema<["preflight", "dispatch", "environment", "evicted", "timeout", "agent", "job_failed", "rejected", "companion_rejected", "stalled", "cancelled", "unknown"], undefined>, undefined>;
69
+ readonly failureDetail: v.NullableSchema<v.StringSchema<undefined>, undefined>;
70
+ readonly failureHint: v.NullableSchema<v.StringSchema<undefined>, undefined>;
71
+ readonly createdAt: v.NumberSchema<undefined>;
72
+ readonly updatedAt: v.NumberSchema<undefined>;
73
+ }, undefined>;
74
+ };
75
+ } & {
76
+ readonly minScope: "admin";
77
+ };
78
+ /**
79
+ * The repositories the workspace's connection can REACH, linked or not.
80
+ *
81
+ * The discovery half of {@link linkPublicRepoContract}, and the read that makes an absent repository
82
+ * diagnosable: `GET /api/v1/repos` lists what this workspace has LINKED, so a repository that exists
83
+ * and is reachable is missing from it in exactly the way one that was never created is, and those
84
+ * need opposite fixes. Here, the first appears with `linked: false` and the second does not appear.
85
+ *
86
+ * `q` filters server-side, as the app's own picker does, because a wide installation can reach
87
+ * thousands of repositories: pass `owner/name` for an exact point-read (authoritative for
88
+ * reachability, where a name search can miss an exact slug), a substring to search, or nothing to
89
+ * browse what is accessible. Each call reaches the provider, so it is a setup-time read rather than
90
+ * one to poll.
91
+ */
92
+ export declare const listPublicAvailableReposContract: {
93
+ readonly method: "get";
94
+ readonly pathResolver: () => string;
95
+ readonly requestQuerySchema: v.ObjectSchema<{
96
+ readonly q: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
97
+ }, undefined>;
98
+ readonly responsesByStatusCode: {
99
+ readonly '4xx': v.ObjectSchema<{
100
+ readonly error: v.ObjectSchema<{
101
+ readonly code: v.StringSchema<undefined>;
102
+ readonly message: v.StringSchema<undefined>;
103
+ readonly details: v.OptionalSchema<v.UnknownSchema, undefined>;
104
+ readonly issues: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
105
+ readonly path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
106
+ readonly message: v.StringSchema<undefined>;
107
+ }, undefined>, undefined>, undefined>;
108
+ }, undefined>;
109
+ }, undefined>;
110
+ readonly '5xx': v.ObjectSchema<{
111
+ readonly error: v.ObjectSchema<{
112
+ readonly code: v.StringSchema<undefined>;
113
+ readonly message: v.StringSchema<undefined>;
114
+ readonly details: v.OptionalSchema<v.UnknownSchema, undefined>;
115
+ readonly issues: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
116
+ readonly path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
117
+ readonly message: v.StringSchema<undefined>;
118
+ }, undefined>, undefined>, undefined>;
119
+ }, undefined>;
120
+ }, undefined>;
121
+ readonly 200: v.ObjectSchema<{
122
+ readonly repos: v.ArraySchema<v.ObjectSchema<{
123
+ readonly repoId: v.NumberSchema<undefined>;
124
+ readonly provider: v.PicklistSchema<["github", "gitlab"], undefined>;
125
+ readonly owner: v.StringSchema<undefined>;
126
+ readonly name: v.StringSchema<undefined>;
127
+ readonly defaultBranch: v.StringSchema<undefined>;
128
+ readonly private: v.BooleanSchema<undefined>;
129
+ readonly linked: v.BooleanSchema<undefined>;
130
+ readonly monorepo: v.BooleanSchema<undefined>;
131
+ readonly serviceId: v.NullableSchema<v.StringSchema<undefined>, undefined>;
132
+ readonly linkedElsewhere: v.BooleanSchema<undefined>;
133
+ readonly personal: v.BooleanSchema<undefined>;
134
+ }, undefined>, undefined>;
135
+ readonly truncated: v.BooleanSchema<undefined>;
136
+ }, undefined>;
137
+ };
138
+ } & {
139
+ readonly minScope: "admin";
140
+ };
141
+ /**
142
+ * Adopt a reachable repository into this workspace, so a service can be created against it.
143
+ *
144
+ * The act a headless caller could not perform: linking is explicit per workspace and nothing does it
145
+ * for you (the provider webhook for an added repository does not project one, and a resync refreshes
146
+ * what is already linked), so a repository created by any means at all stayed invisible to
147
+ * `GET /api/v1/repos` and unusable by `POST /api/v1/services` until a person opened the app's picker.
148
+ *
149
+ * **Idempotent, and answers 200 either way.** Adopting a repository this workspace already links
150
+ * returns the same row rather than refusing, because the caller that most needs this endpoint is a
151
+ * setup script re-running itself, and a 409 there would make every re-run a special case. What the
152
+ * row does report is whether the repository is spoken for (`serviceId`, `linkedElsewhere`), which is
153
+ * the question the caller asks next.
154
+ *
155
+ * A repository the connection cannot reach is a `404` with `details.reason: 'repo_not_reachable'`,
156
+ * never a link to nothing: the two states this endpoint must not blur are "your credential cannot see
157
+ * it" and "it does not exist", and neither is fixed by retrying.
158
+ */
159
+ export declare const linkPublicRepoContract: {
160
+ readonly method: "post";
161
+ readonly pathResolver: () => string;
162
+ readonly requestBodySchema: v.ObjectSchema<{
163
+ readonly owner: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, "Only letters, digits, '.', '_', '-' and '/' between segments are allowed">, v.CheckAction<string, "No path segment may be '.' or '..'">, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>;
164
+ readonly name: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, "Only letters, digits, '.', '_' and '-' are allowed">, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 100, undefined>]>;
165
+ }, undefined>;
166
+ readonly responsesByStatusCode: {
167
+ readonly '4xx': v.ObjectSchema<{
168
+ readonly error: v.ObjectSchema<{
169
+ readonly code: v.StringSchema<undefined>;
170
+ readonly message: v.StringSchema<undefined>;
171
+ readonly details: v.OptionalSchema<v.UnknownSchema, undefined>;
172
+ readonly issues: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
173
+ readonly path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
174
+ readonly message: v.StringSchema<undefined>;
175
+ }, undefined>, undefined>, undefined>;
176
+ }, undefined>;
177
+ }, undefined>;
178
+ readonly '5xx': v.ObjectSchema<{
179
+ readonly error: v.ObjectSchema<{
180
+ readonly code: v.StringSchema<undefined>;
181
+ readonly message: v.StringSchema<undefined>;
182
+ readonly details: v.OptionalSchema<v.UnknownSchema, undefined>;
183
+ readonly issues: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
184
+ readonly path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
185
+ readonly message: v.StringSchema<undefined>;
186
+ }, undefined>, undefined>, undefined>;
187
+ }, undefined>;
188
+ }, undefined>;
189
+ readonly 200: v.ObjectSchema<{
190
+ readonly repoId: v.NumberSchema<undefined>;
191
+ readonly provider: v.StringSchema<undefined>;
192
+ readonly owner: v.StringSchema<undefined>;
193
+ readonly name: v.StringSchema<undefined>;
194
+ readonly defaultBranch: v.StringSchema<undefined>;
195
+ readonly private: v.BooleanSchema<undefined>;
196
+ readonly monorepo: v.BooleanSchema<undefined>;
197
+ readonly serviceId: v.NullableSchema<v.StringSchema<undefined>, undefined>;
198
+ readonly linkedElsewhere: v.BooleanSchema<undefined>;
72
199
  }, undefined>;
73
200
  };
74
201
  } & {
@@ -77,57 +204,57 @@ export declare const startPublicRepoBootstrapContract: {
77
204
  /** Poll one bootstrap run. Idempotent, and the only way to learn a run's outcome. */
78
205
  export declare const getPublicRepoBootstrapContract: {
79
206
  readonly method: "get";
80
- readonly requestPathParamsSchema: import("valibot").ObjectSchema<{
81
- jobId: import("valibot").StringSchema<undefined>;
207
+ readonly requestPathParamsSchema: v.ObjectSchema<{
208
+ jobId: v.StringSchema<undefined>;
82
209
  }, undefined> & import("@toad-contracts/core").StandardObjectKeysV1<unknown, unknown>;
83
210
  readonly pathResolver: ({ jobId }: {
84
211
  jobId: string;
85
212
  }) => string;
86
213
  readonly responsesByStatusCode: {
87
- readonly '4xx': import("valibot").ObjectSchema<{
88
- readonly error: import("valibot").ObjectSchema<{
89
- readonly code: import("valibot").StringSchema<undefined>;
90
- readonly message: import("valibot").StringSchema<undefined>;
91
- readonly details: import("valibot").OptionalSchema<import("valibot").UnknownSchema, undefined>;
92
- readonly issues: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").ObjectSchema<{
93
- readonly path: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
94
- readonly message: import("valibot").StringSchema<undefined>;
214
+ readonly '4xx': v.ObjectSchema<{
215
+ readonly error: v.ObjectSchema<{
216
+ readonly code: v.StringSchema<undefined>;
217
+ readonly message: v.StringSchema<undefined>;
218
+ readonly details: v.OptionalSchema<v.UnknownSchema, undefined>;
219
+ readonly issues: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
220
+ readonly path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
221
+ readonly message: v.StringSchema<undefined>;
95
222
  }, undefined>, undefined>, undefined>;
96
223
  }, undefined>;
97
224
  }, undefined>;
98
- readonly '5xx': import("valibot").ObjectSchema<{
99
- readonly error: import("valibot").ObjectSchema<{
100
- readonly code: import("valibot").StringSchema<undefined>;
101
- readonly message: import("valibot").StringSchema<undefined>;
102
- readonly details: import("valibot").OptionalSchema<import("valibot").UnknownSchema, undefined>;
103
- readonly issues: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").ObjectSchema<{
104
- readonly path: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
105
- readonly message: import("valibot").StringSchema<undefined>;
225
+ readonly '5xx': v.ObjectSchema<{
226
+ readonly error: v.ObjectSchema<{
227
+ readonly code: v.StringSchema<undefined>;
228
+ readonly message: v.StringSchema<undefined>;
229
+ readonly details: v.OptionalSchema<v.UnknownSchema, undefined>;
230
+ readonly issues: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
231
+ readonly path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
232
+ readonly message: v.StringSchema<undefined>;
106
233
  }, undefined>, undefined>, undefined>;
107
234
  }, undefined>;
108
235
  }, undefined>;
109
- readonly 200: import("valibot").ObjectSchema<{
110
- readonly jobId: import("valibot").StringSchema<undefined>;
111
- readonly status: import("valibot").PicklistSchema<["pending", "running", "succeeded", "failed"], undefined>;
112
- readonly repoName: import("valibot").StringSchema<undefined>;
113
- readonly repoOwner: import("valibot").NullableSchema<import("valibot").StringSchema<undefined>, undefined>;
114
- readonly repoUrl: import("valibot").NullableSchema<import("valibot").StringSchema<undefined>, undefined>;
115
- readonly serviceId: import("valibot").NullableSchema<import("valibot").StringSchema<undefined>, undefined>;
116
- readonly progress: import("valibot").NullableSchema<import("valibot").ObjectSchema<{
117
- readonly completed: import("valibot").NumberSchema<undefined>;
118
- readonly inProgress: import("valibot").NumberSchema<undefined>;
119
- readonly total: import("valibot").NumberSchema<undefined>;
120
- readonly items: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").ObjectSchema<{
121
- readonly label: import("valibot").StringSchema<undefined>;
122
- readonly status: import("valibot").PicklistSchema<["pending", "in_progress", "completed"], undefined>;
236
+ readonly 200: v.ObjectSchema<{
237
+ readonly jobId: v.StringSchema<undefined>;
238
+ readonly status: v.PicklistSchema<["pending", "running", "succeeded", "failed"], undefined>;
239
+ readonly repoName: v.StringSchema<undefined>;
240
+ readonly repoOwner: v.NullableSchema<v.StringSchema<undefined>, undefined>;
241
+ readonly repoUrl: v.NullableSchema<v.StringSchema<undefined>, undefined>;
242
+ readonly serviceId: v.NullableSchema<v.StringSchema<undefined>, undefined>;
243
+ readonly progress: v.NullableSchema<v.ObjectSchema<{
244
+ readonly completed: v.NumberSchema<undefined>;
245
+ readonly inProgress: v.NumberSchema<undefined>;
246
+ readonly total: v.NumberSchema<undefined>;
247
+ readonly items: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
248
+ readonly label: v.StringSchema<undefined>;
249
+ readonly status: v.PicklistSchema<["pending", "in_progress", "completed"], undefined>;
123
250
  }, undefined>, undefined>, undefined>;
124
251
  }, undefined>, undefined>;
125
- readonly error: import("valibot").NullableSchema<import("valibot").StringSchema<undefined>, undefined>;
126
- readonly failureKind: import("valibot").NullableSchema<import("valibot").PicklistSchema<["preflight", "dispatch", "environment", "evicted", "timeout", "agent", "job_failed", "rejected", "companion_rejected", "stalled", "cancelled", "unknown"], undefined>, undefined>;
127
- readonly failureDetail: import("valibot").NullableSchema<import("valibot").StringSchema<undefined>, undefined>;
128
- readonly failureHint: import("valibot").NullableSchema<import("valibot").StringSchema<undefined>, undefined>;
129
- readonly createdAt: import("valibot").NumberSchema<undefined>;
130
- readonly updatedAt: import("valibot").NumberSchema<undefined>;
252
+ readonly error: v.NullableSchema<v.StringSchema<undefined>, undefined>;
253
+ readonly failureKind: v.NullableSchema<v.PicklistSchema<["preflight", "dispatch", "environment", "evicted", "timeout", "agent", "job_failed", "rejected", "companion_rejected", "stalled", "cancelled", "unknown"], undefined>, undefined>;
254
+ readonly failureDetail: v.NullableSchema<v.StringSchema<undefined>, undefined>;
255
+ readonly failureHint: v.NullableSchema<v.StringSchema<undefined>, undefined>;
256
+ readonly createdAt: v.NumberSchema<undefined>;
257
+ readonly updatedAt: v.NumberSchema<undefined>;
131
258
  }, undefined>;
132
259
  };
133
260
  } & {
@@ -145,72 +272,72 @@ export declare const getPublicRepoBootstrapContract: {
145
272
  export declare const testPublicEnvironmentConnectionContract: {
146
273
  readonly method: "post";
147
274
  readonly pathResolver: () => string;
148
- readonly requestBodySchema: import("valibot").ObjectSchema<{
149
- readonly connection: import("valibot").VariantSchema<"engine", [import("valibot").ObjectSchema<{
150
- readonly engine: import("valibot").LiteralSchema<"kubernetes", undefined>;
151
- readonly kubernetes: import("valibot").ObjectSchema<{
152
- readonly label: import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").TrimAction, import("valibot").MinLengthAction<string, 1, undefined>, import("valibot").MaxLengthAction<string, 120, undefined>]>;
153
- readonly apiServerUrl: import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").UrlAction<string, undefined>, import("valibot").MaxLengthAction<string, 500, undefined>]>;
154
- readonly caCertPem: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
155
- readonly insecureSkipTlsVerify: import("valibot").OptionalSchema<import("valibot").BooleanSchema<undefined>, undefined>;
156
- readonly namespaceTemplate: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").TrimAction, import("valibot").MinLengthAction<string, 1, undefined>, import("valibot").MaxLengthAction<string, 200, undefined>]>, undefined>;
157
- readonly url: import("valibot").VariantSchema<"source", [import("valibot").ObjectSchema<{
158
- readonly source: import("valibot").LiteralSchema<"ingressTemplate", undefined>;
159
- readonly hostTemplate: import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").TrimAction, import("valibot").MinLengthAction<string, 1, undefined>, import("valibot").MaxLengthAction<string, 500, undefined>]>;
160
- readonly port: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 1, undefined>, import("valibot").MaxValueAction<number, 65535, undefined>]>, undefined>;
161
- readonly scheme: import("valibot").OptionalSchema<import("valibot").PicklistSchema<["http", "https"], undefined>, undefined>;
162
- }, undefined>, import("valibot").ObjectSchema<{
163
- readonly source: import("valibot").LiteralSchema<"ingressStatus", undefined>;
164
- readonly ingressName: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").TrimAction, import("valibot").MinLengthAction<string, 1, undefined>]>, undefined>;
165
- readonly scheme: import("valibot").OptionalSchema<import("valibot").PicklistSchema<["http", "https"], undefined>, undefined>;
166
- }, undefined>, import("valibot").ObjectSchema<{
167
- readonly source: import("valibot").LiteralSchema<"serviceStatus", undefined>;
168
- readonly serviceName: import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").TrimAction, import("valibot").MinLengthAction<string, 1, undefined>]>;
169
- readonly port: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 1, undefined>, import("valibot").MaxValueAction<number, 65535, undefined>]>, undefined>;
170
- readonly scheme: import("valibot").OptionalSchema<import("valibot").PicklistSchema<["http", "https"], undefined>, undefined>;
171
- }, undefined>, import("valibot").ObjectSchema<{
172
- readonly source: import("valibot").LiteralSchema<"gatewayStatus", undefined>;
173
- readonly gatewayName: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").TrimAction, import("valibot").MinLengthAction<string, 1, undefined>]>, undefined>;
174
- readonly scheme: import("valibot").OptionalSchema<import("valibot").PicklistSchema<["http", "https"], undefined>, undefined>;
175
- }, undefined>, import("valibot").ObjectSchema<{
176
- readonly source: import("valibot").LiteralSchema<"httpRouteStatus", undefined>;
177
- readonly httpRouteName: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").TrimAction, import("valibot").MinLengthAction<string, 1, undefined>]>, undefined>;
178
- readonly scheme: import("valibot").OptionalSchema<import("valibot").PicklistSchema<["http", "https"], undefined>, undefined>;
275
+ readonly requestBodySchema: v.ObjectSchema<{
276
+ readonly connection: v.VariantSchema<"engine", [v.ObjectSchema<{
277
+ readonly engine: v.LiteralSchema<"kubernetes", undefined>;
278
+ readonly kubernetes: v.ObjectSchema<{
279
+ readonly label: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 120, undefined>]>;
280
+ readonly apiServerUrl: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UrlAction<string, undefined>, v.MaxLengthAction<string, 500, undefined>]>;
281
+ readonly caCertPem: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
282
+ readonly insecureSkipTlsVerify: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
283
+ readonly namespaceTemplate: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 200, undefined>]>, undefined>;
284
+ readonly url: v.VariantSchema<"source", [v.ObjectSchema<{
285
+ readonly source: v.LiteralSchema<"ingressTemplate", undefined>;
286
+ readonly hostTemplate: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 500, undefined>]>;
287
+ readonly port: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>, v.MaxValueAction<number, 65535, undefined>]>, undefined>;
288
+ readonly scheme: v.OptionalSchema<v.PicklistSchema<["http", "https"], undefined>, undefined>;
289
+ }, undefined>, v.ObjectSchema<{
290
+ readonly source: v.LiteralSchema<"ingressStatus", undefined>;
291
+ readonly ingressName: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>, undefined>;
292
+ readonly scheme: v.OptionalSchema<v.PicklistSchema<["http", "https"], undefined>, undefined>;
293
+ }, undefined>, v.ObjectSchema<{
294
+ readonly source: v.LiteralSchema<"serviceStatus", undefined>;
295
+ readonly serviceName: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>;
296
+ readonly port: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>, v.MaxValueAction<number, 65535, undefined>]>, undefined>;
297
+ readonly scheme: v.OptionalSchema<v.PicklistSchema<["http", "https"], undefined>, undefined>;
298
+ }, undefined>, v.ObjectSchema<{
299
+ readonly source: v.LiteralSchema<"gatewayStatus", undefined>;
300
+ readonly gatewayName: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>, undefined>;
301
+ readonly scheme: v.OptionalSchema<v.PicklistSchema<["http", "https"], undefined>, undefined>;
302
+ }, undefined>, v.ObjectSchema<{
303
+ readonly source: v.LiteralSchema<"httpRouteStatus", undefined>;
304
+ readonly httpRouteName: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>, undefined>;
305
+ readonly scheme: v.OptionalSchema<v.PicklistSchema<["http", "https"], undefined>, undefined>;
179
306
  }, undefined>], undefined>;
180
- readonly imageTemplate: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").TrimAction, import("valibot").MaxLengthAction<string, 500, undefined>]>, undefined>;
181
- readonly defaultTtlMs: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").NumberSchema<undefined>, import("valibot").MinValueAction<number, 60000, undefined>]>, undefined>;
182
- readonly labels: import("valibot").OptionalSchema<import("valibot").RecordSchema<import("valibot").StringSchema<undefined>, import("valibot").StringSchema<undefined>, undefined>, undefined>;
183
- readonly annotations: import("valibot").OptionalSchema<import("valibot").RecordSchema<import("valibot").StringSchema<undefined>, import("valibot").StringSchema<undefined>, undefined>, undefined>;
307
+ readonly imageTemplate: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, 500, undefined>]>, undefined>;
308
+ readonly defaultTtlMs: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 60000, undefined>]>, undefined>;
309
+ readonly labels: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.StringSchema<undefined>, undefined>, undefined>;
310
+ readonly annotations: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.StringSchema<undefined>, undefined>, undefined>;
184
311
  }, undefined>;
185
312
  }, undefined>], undefined>;
186
- readonly secrets: import("valibot").OptionalSchema<import("valibot").RecordSchema<import("valibot").StringSchema<undefined>, import("valibot").StringSchema<undefined>, undefined>, undefined>;
313
+ readonly secrets: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.StringSchema<undefined>, undefined>, undefined>;
187
314
  }, undefined>;
188
315
  readonly responsesByStatusCode: {
189
- readonly '4xx': import("valibot").ObjectSchema<{
190
- readonly error: import("valibot").ObjectSchema<{
191
- readonly code: import("valibot").StringSchema<undefined>;
192
- readonly message: import("valibot").StringSchema<undefined>;
193
- readonly details: import("valibot").OptionalSchema<import("valibot").UnknownSchema, undefined>;
194
- readonly issues: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").ObjectSchema<{
195
- readonly path: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
196
- readonly message: import("valibot").StringSchema<undefined>;
316
+ readonly '4xx': v.ObjectSchema<{
317
+ readonly error: v.ObjectSchema<{
318
+ readonly code: v.StringSchema<undefined>;
319
+ readonly message: v.StringSchema<undefined>;
320
+ readonly details: v.OptionalSchema<v.UnknownSchema, undefined>;
321
+ readonly issues: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
322
+ readonly path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
323
+ readonly message: v.StringSchema<undefined>;
197
324
  }, undefined>, undefined>, undefined>;
198
325
  }, undefined>;
199
326
  }, undefined>;
200
- readonly '5xx': import("valibot").ObjectSchema<{
201
- readonly error: import("valibot").ObjectSchema<{
202
- readonly code: import("valibot").StringSchema<undefined>;
203
- readonly message: import("valibot").StringSchema<undefined>;
204
- readonly details: import("valibot").OptionalSchema<import("valibot").UnknownSchema, undefined>;
205
- readonly issues: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").ObjectSchema<{
206
- readonly path: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
207
- readonly message: import("valibot").StringSchema<undefined>;
327
+ readonly '5xx': v.ObjectSchema<{
328
+ readonly error: v.ObjectSchema<{
329
+ readonly code: v.StringSchema<undefined>;
330
+ readonly message: v.StringSchema<undefined>;
331
+ readonly details: v.OptionalSchema<v.UnknownSchema, undefined>;
332
+ readonly issues: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
333
+ readonly path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
334
+ readonly message: v.StringSchema<undefined>;
208
335
  }, undefined>, undefined>, undefined>;
209
336
  }, undefined>;
210
337
  }, undefined>;
211
- readonly 200: import("valibot").ObjectSchema<{
212
- readonly ok: import("valibot").BooleanSchema<undefined>;
213
- readonly message: import("valibot").NullableSchema<import("valibot").StringSchema<undefined>, undefined>;
338
+ readonly 200: v.ObjectSchema<{
339
+ readonly ok: v.BooleanSchema<undefined>;
340
+ readonly message: v.NullableSchema<v.StringSchema<undefined>, undefined>;
214
341
  }, undefined>;
215
342
  };
216
343
  } & {
@@ -226,75 +353,75 @@ export declare const testPublicEnvironmentConnectionContract: {
226
353
  export declare const connectPublicEnvironmentContract: {
227
354
  readonly method: "post";
228
355
  readonly pathResolver: () => string;
229
- readonly requestBodySchema: import("valibot").ObjectSchema<{
230
- readonly connection: import("valibot").VariantSchema<"engine", [import("valibot").ObjectSchema<{
231
- readonly engine: import("valibot").LiteralSchema<"kubernetes", undefined>;
232
- readonly kubernetes: import("valibot").ObjectSchema<{
233
- readonly label: import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").TrimAction, import("valibot").MinLengthAction<string, 1, undefined>, import("valibot").MaxLengthAction<string, 120, undefined>]>;
234
- readonly apiServerUrl: import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").UrlAction<string, undefined>, import("valibot").MaxLengthAction<string, 500, undefined>]>;
235
- readonly caCertPem: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
236
- readonly insecureSkipTlsVerify: import("valibot").OptionalSchema<import("valibot").BooleanSchema<undefined>, undefined>;
237
- readonly namespaceTemplate: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").TrimAction, import("valibot").MinLengthAction<string, 1, undefined>, import("valibot").MaxLengthAction<string, 200, undefined>]>, undefined>;
238
- readonly url: import("valibot").VariantSchema<"source", [import("valibot").ObjectSchema<{
239
- readonly source: import("valibot").LiteralSchema<"ingressTemplate", undefined>;
240
- readonly hostTemplate: import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").TrimAction, import("valibot").MinLengthAction<string, 1, undefined>, import("valibot").MaxLengthAction<string, 500, undefined>]>;
241
- readonly port: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 1, undefined>, import("valibot").MaxValueAction<number, 65535, undefined>]>, undefined>;
242
- readonly scheme: import("valibot").OptionalSchema<import("valibot").PicklistSchema<["http", "https"], undefined>, undefined>;
243
- }, undefined>, import("valibot").ObjectSchema<{
244
- readonly source: import("valibot").LiteralSchema<"ingressStatus", undefined>;
245
- readonly ingressName: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").TrimAction, import("valibot").MinLengthAction<string, 1, undefined>]>, undefined>;
246
- readonly scheme: import("valibot").OptionalSchema<import("valibot").PicklistSchema<["http", "https"], undefined>, undefined>;
247
- }, undefined>, import("valibot").ObjectSchema<{
248
- readonly source: import("valibot").LiteralSchema<"serviceStatus", undefined>;
249
- readonly serviceName: import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").TrimAction, import("valibot").MinLengthAction<string, 1, undefined>]>;
250
- readonly port: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 1, undefined>, import("valibot").MaxValueAction<number, 65535, undefined>]>, undefined>;
251
- readonly scheme: import("valibot").OptionalSchema<import("valibot").PicklistSchema<["http", "https"], undefined>, undefined>;
252
- }, undefined>, import("valibot").ObjectSchema<{
253
- readonly source: import("valibot").LiteralSchema<"gatewayStatus", undefined>;
254
- readonly gatewayName: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").TrimAction, import("valibot").MinLengthAction<string, 1, undefined>]>, undefined>;
255
- readonly scheme: import("valibot").OptionalSchema<import("valibot").PicklistSchema<["http", "https"], undefined>, undefined>;
256
- }, undefined>, import("valibot").ObjectSchema<{
257
- readonly source: import("valibot").LiteralSchema<"httpRouteStatus", undefined>;
258
- readonly httpRouteName: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").TrimAction, import("valibot").MinLengthAction<string, 1, undefined>]>, undefined>;
259
- readonly scheme: import("valibot").OptionalSchema<import("valibot").PicklistSchema<["http", "https"], undefined>, undefined>;
356
+ readonly requestBodySchema: v.ObjectSchema<{
357
+ readonly connection: v.VariantSchema<"engine", [v.ObjectSchema<{
358
+ readonly engine: v.LiteralSchema<"kubernetes", undefined>;
359
+ readonly kubernetes: v.ObjectSchema<{
360
+ readonly label: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 120, undefined>]>;
361
+ readonly apiServerUrl: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UrlAction<string, undefined>, v.MaxLengthAction<string, 500, undefined>]>;
362
+ readonly caCertPem: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
363
+ readonly insecureSkipTlsVerify: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
364
+ readonly namespaceTemplate: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 200, undefined>]>, undefined>;
365
+ readonly url: v.VariantSchema<"source", [v.ObjectSchema<{
366
+ readonly source: v.LiteralSchema<"ingressTemplate", undefined>;
367
+ readonly hostTemplate: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 500, undefined>]>;
368
+ readonly port: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>, v.MaxValueAction<number, 65535, undefined>]>, undefined>;
369
+ readonly scheme: v.OptionalSchema<v.PicklistSchema<["http", "https"], undefined>, undefined>;
370
+ }, undefined>, v.ObjectSchema<{
371
+ readonly source: v.LiteralSchema<"ingressStatus", undefined>;
372
+ readonly ingressName: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>, undefined>;
373
+ readonly scheme: v.OptionalSchema<v.PicklistSchema<["http", "https"], undefined>, undefined>;
374
+ }, undefined>, v.ObjectSchema<{
375
+ readonly source: v.LiteralSchema<"serviceStatus", undefined>;
376
+ readonly serviceName: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>;
377
+ readonly port: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>, v.MaxValueAction<number, 65535, undefined>]>, undefined>;
378
+ readonly scheme: v.OptionalSchema<v.PicklistSchema<["http", "https"], undefined>, undefined>;
379
+ }, undefined>, v.ObjectSchema<{
380
+ readonly source: v.LiteralSchema<"gatewayStatus", undefined>;
381
+ readonly gatewayName: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>, undefined>;
382
+ readonly scheme: v.OptionalSchema<v.PicklistSchema<["http", "https"], undefined>, undefined>;
383
+ }, undefined>, v.ObjectSchema<{
384
+ readonly source: v.LiteralSchema<"httpRouteStatus", undefined>;
385
+ readonly httpRouteName: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>, undefined>;
386
+ readonly scheme: v.OptionalSchema<v.PicklistSchema<["http", "https"], undefined>, undefined>;
260
387
  }, undefined>], undefined>;
261
- readonly imageTemplate: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").TrimAction, import("valibot").MaxLengthAction<string, 500, undefined>]>, undefined>;
262
- readonly defaultTtlMs: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").NumberSchema<undefined>, import("valibot").MinValueAction<number, 60000, undefined>]>, undefined>;
263
- readonly labels: import("valibot").OptionalSchema<import("valibot").RecordSchema<import("valibot").StringSchema<undefined>, import("valibot").StringSchema<undefined>, undefined>, undefined>;
264
- readonly annotations: import("valibot").OptionalSchema<import("valibot").RecordSchema<import("valibot").StringSchema<undefined>, import("valibot").StringSchema<undefined>, undefined>, undefined>;
388
+ readonly imageTemplate: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, 500, undefined>]>, undefined>;
389
+ readonly defaultTtlMs: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 60000, undefined>]>, undefined>;
390
+ readonly labels: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.StringSchema<undefined>, undefined>, undefined>;
391
+ readonly annotations: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.StringSchema<undefined>, undefined>, undefined>;
265
392
  }, undefined>;
266
393
  }, undefined>], undefined>;
267
- readonly secrets: import("valibot").RecordSchema<import("valibot").StringSchema<undefined>, import("valibot").StringSchema<undefined>, undefined>;
394
+ readonly secrets: v.RecordSchema<v.StringSchema<undefined>, v.StringSchema<undefined>, undefined>;
268
395
  }, undefined>;
269
396
  readonly responsesByStatusCode: {
270
- readonly '4xx': import("valibot").ObjectSchema<{
271
- readonly error: import("valibot").ObjectSchema<{
272
- readonly code: import("valibot").StringSchema<undefined>;
273
- readonly message: import("valibot").StringSchema<undefined>;
274
- readonly details: import("valibot").OptionalSchema<import("valibot").UnknownSchema, undefined>;
275
- readonly issues: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").ObjectSchema<{
276
- readonly path: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
277
- readonly message: import("valibot").StringSchema<undefined>;
397
+ readonly '4xx': v.ObjectSchema<{
398
+ readonly error: v.ObjectSchema<{
399
+ readonly code: v.StringSchema<undefined>;
400
+ readonly message: v.StringSchema<undefined>;
401
+ readonly details: v.OptionalSchema<v.UnknownSchema, undefined>;
402
+ readonly issues: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
403
+ readonly path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
404
+ readonly message: v.StringSchema<undefined>;
278
405
  }, undefined>, undefined>, undefined>;
279
406
  }, undefined>;
280
407
  }, undefined>;
281
- readonly '5xx': import("valibot").ObjectSchema<{
282
- readonly error: import("valibot").ObjectSchema<{
283
- readonly code: import("valibot").StringSchema<undefined>;
284
- readonly message: import("valibot").StringSchema<undefined>;
285
- readonly details: import("valibot").OptionalSchema<import("valibot").UnknownSchema, undefined>;
286
- readonly issues: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").ObjectSchema<{
287
- readonly path: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
288
- readonly message: import("valibot").StringSchema<undefined>;
408
+ readonly '5xx': v.ObjectSchema<{
409
+ readonly error: v.ObjectSchema<{
410
+ readonly code: v.StringSchema<undefined>;
411
+ readonly message: v.StringSchema<undefined>;
412
+ readonly details: v.OptionalSchema<v.UnknownSchema, undefined>;
413
+ readonly issues: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
414
+ readonly path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
415
+ readonly message: v.StringSchema<undefined>;
289
416
  }, undefined>, undefined>, undefined>;
290
417
  }, undefined>;
291
418
  }, undefined>;
292
- readonly 201: import("valibot").ObjectSchema<{
293
- readonly provisionType: import("valibot").StringSchema<undefined>;
294
- readonly engine: import("valibot").LiteralSchema<"kubernetes", undefined>;
295
- readonly label: import("valibot").StringSchema<undefined>;
296
- readonly apiServerUrl: import("valibot").StringSchema<undefined>;
297
- readonly secretKeys: import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>;
419
+ readonly 201: v.ObjectSchema<{
420
+ readonly provisionType: v.StringSchema<undefined>;
421
+ readonly engine: v.LiteralSchema<"kubernetes", undefined>;
422
+ readonly label: v.StringSchema<undefined>;
423
+ readonly apiServerUrl: v.StringSchema<undefined>;
424
+ readonly secretKeys: v.ArraySchema<v.StringSchema<undefined>, undefined>;
298
425
  }, undefined>;
299
426
  };
300
427
  } & {
@@ -313,30 +440,30 @@ export declare const connectPublicEnvironmentContract: {
313
440
  */
314
441
  export declare const updatePublicServiceContract: {
315
442
  readonly method: "patch";
316
- readonly requestPathParamsSchema: import("valibot").ObjectSchema<{
317
- serviceId: import("valibot").StringSchema<undefined>;
443
+ readonly requestPathParamsSchema: v.ObjectSchema<{
444
+ serviceId: v.StringSchema<undefined>;
318
445
  }, undefined> & import("@toad-contracts/core").StandardObjectKeysV1<unknown, unknown>;
319
446
  readonly pathResolver: ({ serviceId }: {
320
447
  serviceId: string;
321
448
  }) => string;
322
- readonly requestBodySchema: import("valibot").SchemaWithPipe<readonly [import("valibot").ObjectSchema<{
323
- readonly title: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").TrimAction, import("valibot").MinLengthAction<string, 1, undefined>, import("valibot").MaxLengthAction<string, 200, undefined>]>, undefined>;
324
- readonly description: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").MaxLengthAction<string, 2000, undefined>]>, undefined>;
325
- readonly provisioning: import("valibot").OptionalSchema<import("valibot").VariantSchema<"type", [import("valibot").ObjectSchema<{
326
- readonly type: import("valibot").LiteralSchema<"kubernetes", undefined>;
327
- readonly manifestSource: import("valibot").VariantSchema<"type", [import("valibot").ObjectSchema<{
328
- readonly type: import("valibot").LiteralSchema<"colocated", undefined>;
329
- readonly path: import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").TrimAction, import("valibot").MinLengthAction<string, 1, undefined>, import("valibot").MaxLengthAction<string, 500, undefined>]>;
330
- readonly renderer: import("valibot").OptionalSchema<import("valibot").PicklistSchema<["raw", "kustomize"], undefined>, undefined>;
331
- }, undefined>, import("valibot").ObjectSchema<{
332
- readonly type: import("valibot").LiteralSchema<"separate", undefined>;
333
- readonly repo: import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").TrimAction, import("valibot").RegexAction<string, "must be \"owner/repo\"">]>;
334
- readonly ref: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").TrimAction, import("valibot").MinLengthAction<string, 1, undefined>]>, undefined>;
335
- readonly path: import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").TrimAction, import("valibot").MinLengthAction<string, 1, undefined>, import("valibot").MaxLengthAction<string, 500, undefined>]>;
336
- readonly renderer: import("valibot").OptionalSchema<import("valibot").PicklistSchema<["raw", "kustomize"], undefined>, undefined>;
449
+ readonly requestBodySchema: v.SchemaWithPipe<readonly [v.ObjectSchema<{
450
+ readonly title: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 200, undefined>]>, undefined>;
451
+ readonly description: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 2000, undefined>]>, undefined>;
452
+ readonly provisioning: v.OptionalSchema<v.VariantSchema<"type", [v.ObjectSchema<{
453
+ readonly type: v.LiteralSchema<"kubernetes", undefined>;
454
+ readonly manifestSource: v.VariantSchema<"type", [v.ObjectSchema<{
455
+ readonly type: v.LiteralSchema<"colocated", undefined>;
456
+ readonly path: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 500, undefined>]>;
457
+ readonly renderer: v.OptionalSchema<v.PicklistSchema<["raw", "kustomize"], undefined>, undefined>;
458
+ }, undefined>, v.ObjectSchema<{
459
+ readonly type: v.LiteralSchema<"separate", undefined>;
460
+ readonly repo: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, "must be \"owner/repo\"">]>;
461
+ readonly ref: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>, undefined>;
462
+ readonly path: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 500, undefined>]>;
463
+ readonly renderer: v.OptionalSchema<v.PicklistSchema<["raw", "kustomize"], undefined>, undefined>;
337
464
  }, undefined>], undefined>;
338
465
  }, undefined>], undefined>, undefined>;
339
- }, undefined>, import("valibot").CheckAction<{
466
+ }, undefined>, v.CheckAction<{
340
467
  title?: string | undefined;
341
468
  description?: string | undefined;
342
469
  provisioning?: {
@@ -355,46 +482,46 @@ export declare const updatePublicServiceContract: {
355
482
  } | undefined;
356
483
  }, "Supply at least one of title, description or provisioning.">]>;
357
484
  readonly responsesByStatusCode: {
358
- readonly '4xx': import("valibot").ObjectSchema<{
359
- readonly error: import("valibot").ObjectSchema<{
360
- readonly code: import("valibot").StringSchema<undefined>;
361
- readonly message: import("valibot").StringSchema<undefined>;
362
- readonly details: import("valibot").OptionalSchema<import("valibot").UnknownSchema, undefined>;
363
- readonly issues: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").ObjectSchema<{
364
- readonly path: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
365
- readonly message: import("valibot").StringSchema<undefined>;
485
+ readonly '4xx': v.ObjectSchema<{
486
+ readonly error: v.ObjectSchema<{
487
+ readonly code: v.StringSchema<undefined>;
488
+ readonly message: v.StringSchema<undefined>;
489
+ readonly details: v.OptionalSchema<v.UnknownSchema, undefined>;
490
+ readonly issues: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
491
+ readonly path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
492
+ readonly message: v.StringSchema<undefined>;
366
493
  }, undefined>, undefined>, undefined>;
367
494
  }, undefined>;
368
495
  }, undefined>;
369
- readonly '5xx': import("valibot").ObjectSchema<{
370
- readonly error: import("valibot").ObjectSchema<{
371
- readonly code: import("valibot").StringSchema<undefined>;
372
- readonly message: import("valibot").StringSchema<undefined>;
373
- readonly details: import("valibot").OptionalSchema<import("valibot").UnknownSchema, undefined>;
374
- readonly issues: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").ObjectSchema<{
375
- readonly path: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
376
- readonly message: import("valibot").StringSchema<undefined>;
496
+ readonly '5xx': v.ObjectSchema<{
497
+ readonly error: v.ObjectSchema<{
498
+ readonly code: v.StringSchema<undefined>;
499
+ readonly message: v.StringSchema<undefined>;
500
+ readonly details: v.OptionalSchema<v.UnknownSchema, undefined>;
501
+ readonly issues: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
502
+ readonly path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
503
+ readonly message: v.StringSchema<undefined>;
377
504
  }, undefined>, undefined>, undefined>;
378
505
  }, undefined>;
379
506
  }, undefined>;
380
- readonly 200: import("valibot").ObjectSchema<{
381
- readonly serviceId: import("valibot").StringSchema<undefined>;
382
- readonly title: import("valibot").StringSchema<undefined>;
383
- readonly description: import("valibot").StringSchema<undefined>;
384
- readonly type: import("valibot").PicklistSchema<["frontend", "service", "library", "document", "api", "database", "queue", "integration", "external", "environment"], undefined>;
385
- readonly status: import("valibot").PicklistSchema<["planned", "ready", "in_progress", "blocked", "pr_ready", "done"], undefined>;
386
- readonly provisioning: import("valibot").OptionalSchema<import("valibot").VariantSchema<"type", [import("valibot").ObjectSchema<{
387
- readonly type: import("valibot").LiteralSchema<"kubernetes", undefined>;
388
- readonly manifestSource: import("valibot").VariantSchema<"type", [import("valibot").ObjectSchema<{
389
- readonly type: import("valibot").LiteralSchema<"colocated", undefined>;
390
- readonly path: import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").TrimAction, import("valibot").MinLengthAction<string, 1, undefined>, import("valibot").MaxLengthAction<string, 500, undefined>]>;
391
- readonly renderer: import("valibot").OptionalSchema<import("valibot").PicklistSchema<["raw", "kustomize"], undefined>, undefined>;
392
- }, undefined>, import("valibot").ObjectSchema<{
393
- readonly type: import("valibot").LiteralSchema<"separate", undefined>;
394
- readonly repo: import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").TrimAction, import("valibot").RegexAction<string, "must be \"owner/repo\"">]>;
395
- readonly ref: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").TrimAction, import("valibot").MinLengthAction<string, 1, undefined>]>, undefined>;
396
- readonly path: import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").TrimAction, import("valibot").MinLengthAction<string, 1, undefined>, import("valibot").MaxLengthAction<string, 500, undefined>]>;
397
- readonly renderer: import("valibot").OptionalSchema<import("valibot").PicklistSchema<["raw", "kustomize"], undefined>, undefined>;
507
+ readonly 200: v.ObjectSchema<{
508
+ readonly serviceId: v.StringSchema<undefined>;
509
+ readonly title: v.StringSchema<undefined>;
510
+ readonly description: v.StringSchema<undefined>;
511
+ readonly type: v.PicklistSchema<["frontend", "service", "library", "document", "api", "database", "queue", "integration", "external", "environment"], undefined>;
512
+ readonly status: v.PicklistSchema<["planned", "ready", "in_progress", "blocked", "pr_ready", "done"], undefined>;
513
+ readonly provisioning: v.OptionalSchema<v.VariantSchema<"type", [v.ObjectSchema<{
514
+ readonly type: v.LiteralSchema<"kubernetes", undefined>;
515
+ readonly manifestSource: v.VariantSchema<"type", [v.ObjectSchema<{
516
+ readonly type: v.LiteralSchema<"colocated", undefined>;
517
+ readonly path: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 500, undefined>]>;
518
+ readonly renderer: v.OptionalSchema<v.PicklistSchema<["raw", "kustomize"], undefined>, undefined>;
519
+ }, undefined>, v.ObjectSchema<{
520
+ readonly type: v.LiteralSchema<"separate", undefined>;
521
+ readonly repo: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, "must be \"owner/repo\"">]>;
522
+ readonly ref: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>, undefined>;
523
+ readonly path: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 500, undefined>]>;
524
+ readonly renderer: v.OptionalSchema<v.PicklistSchema<["raw", "kustomize"], undefined>, undefined>;
398
525
  }, undefined>], undefined>;
399
526
  }, undefined>], undefined>, undefined>;
400
527
  }, undefined>;
@@ -412,37 +539,37 @@ export declare const listPublicWiredModelsContract: {
412
539
  readonly method: "get";
413
540
  readonly pathResolver: () => string;
414
541
  readonly responsesByStatusCode: {
415
- readonly '4xx': import("valibot").ObjectSchema<{
416
- readonly error: import("valibot").ObjectSchema<{
417
- readonly code: import("valibot").StringSchema<undefined>;
418
- readonly message: import("valibot").StringSchema<undefined>;
419
- readonly details: import("valibot").OptionalSchema<import("valibot").UnknownSchema, undefined>;
420
- readonly issues: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").ObjectSchema<{
421
- readonly path: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
422
- readonly message: import("valibot").StringSchema<undefined>;
542
+ readonly '4xx': v.ObjectSchema<{
543
+ readonly error: v.ObjectSchema<{
544
+ readonly code: v.StringSchema<undefined>;
545
+ readonly message: v.StringSchema<undefined>;
546
+ readonly details: v.OptionalSchema<v.UnknownSchema, undefined>;
547
+ readonly issues: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
548
+ readonly path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
549
+ readonly message: v.StringSchema<undefined>;
423
550
  }, undefined>, undefined>, undefined>;
424
551
  }, undefined>;
425
552
  }, undefined>;
426
- readonly '5xx': import("valibot").ObjectSchema<{
427
- readonly error: import("valibot").ObjectSchema<{
428
- readonly code: import("valibot").StringSchema<undefined>;
429
- readonly message: import("valibot").StringSchema<undefined>;
430
- readonly details: import("valibot").OptionalSchema<import("valibot").UnknownSchema, undefined>;
431
- readonly issues: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").ObjectSchema<{
432
- readonly path: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
433
- readonly message: import("valibot").StringSchema<undefined>;
553
+ readonly '5xx': v.ObjectSchema<{
554
+ readonly error: v.ObjectSchema<{
555
+ readonly code: v.StringSchema<undefined>;
556
+ readonly message: v.StringSchema<undefined>;
557
+ readonly details: v.OptionalSchema<v.UnknownSchema, undefined>;
558
+ readonly issues: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
559
+ readonly path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
560
+ readonly message: v.StringSchema<undefined>;
434
561
  }, undefined>, undefined>, undefined>;
435
562
  }, undefined>;
436
563
  }, undefined>;
437
- readonly 200: import("valibot").ObjectSchema<{
438
- readonly models: import("valibot").ArraySchema<import("valibot").ObjectSchema<{
439
- readonly modelId: import("valibot").StringSchema<undefined>;
440
- readonly label: import("valibot").StringSchema<undefined>;
441
- readonly provider: import("valibot").StringSchema<undefined>;
442
- readonly available: import("valibot").BooleanSchema<undefined>;
443
- readonly policyBlocked: import("valibot").BooleanSchema<undefined>;
564
+ readonly 200: v.ObjectSchema<{
565
+ readonly models: v.ArraySchema<v.ObjectSchema<{
566
+ readonly modelId: v.StringSchema<undefined>;
567
+ readonly label: v.StringSchema<undefined>;
568
+ readonly provider: v.StringSchema<undefined>;
569
+ readonly available: v.BooleanSchema<undefined>;
570
+ readonly policyBlocked: v.BooleanSchema<undefined>;
444
571
  }, undefined>, undefined>;
445
- readonly excludesUserScopedModels: import("valibot").BooleanSchema<undefined>;
572
+ readonly excludesUserScopedModels: v.BooleanSchema<undefined>;
446
573
  }, undefined>;
447
574
  };
448
575
  } & {
@@ -457,35 +584,35 @@ export declare const getPublicVcsConnectionContract: {
457
584
  readonly method: "get";
458
585
  readonly pathResolver: () => string;
459
586
  readonly responsesByStatusCode: {
460
- readonly '4xx': import("valibot").ObjectSchema<{
461
- readonly error: import("valibot").ObjectSchema<{
462
- readonly code: import("valibot").StringSchema<undefined>;
463
- readonly message: import("valibot").StringSchema<undefined>;
464
- readonly details: import("valibot").OptionalSchema<import("valibot").UnknownSchema, undefined>;
465
- readonly issues: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").ObjectSchema<{
466
- readonly path: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
467
- readonly message: import("valibot").StringSchema<undefined>;
587
+ readonly '4xx': v.ObjectSchema<{
588
+ readonly error: v.ObjectSchema<{
589
+ readonly code: v.StringSchema<undefined>;
590
+ readonly message: v.StringSchema<undefined>;
591
+ readonly details: v.OptionalSchema<v.UnknownSchema, undefined>;
592
+ readonly issues: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
593
+ readonly path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
594
+ readonly message: v.StringSchema<undefined>;
468
595
  }, undefined>, undefined>, undefined>;
469
596
  }, undefined>;
470
597
  }, undefined>;
471
- readonly '5xx': import("valibot").ObjectSchema<{
472
- readonly error: import("valibot").ObjectSchema<{
473
- readonly code: import("valibot").StringSchema<undefined>;
474
- readonly message: import("valibot").StringSchema<undefined>;
475
- readonly details: import("valibot").OptionalSchema<import("valibot").UnknownSchema, undefined>;
476
- readonly issues: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").ObjectSchema<{
477
- readonly path: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
478
- readonly message: import("valibot").StringSchema<undefined>;
598
+ readonly '5xx': v.ObjectSchema<{
599
+ readonly error: v.ObjectSchema<{
600
+ readonly code: v.StringSchema<undefined>;
601
+ readonly message: v.StringSchema<undefined>;
602
+ readonly details: v.OptionalSchema<v.UnknownSchema, undefined>;
603
+ readonly issues: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
604
+ readonly path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
605
+ readonly message: v.StringSchema<undefined>;
479
606
  }, undefined>, undefined>, undefined>;
480
607
  }, undefined>;
481
608
  }, undefined>;
482
- readonly 200: import("valibot").ObjectSchema<{
483
- readonly connection: import("valibot").NullableSchema<import("valibot").ObjectSchema<{
484
- readonly provider: import("valibot").PicklistSchema<["github", "gitlab"], undefined>;
485
- readonly accountLogin: import("valibot").StringSchema<undefined>;
486
- readonly method: import("valibot").PicklistSchema<["app", "pat"], undefined>;
487
- readonly canCreateRepos: import("valibot").BooleanSchema<undefined>;
488
- readonly canManageWorkflows: import("valibot").BooleanSchema<undefined>;
609
+ readonly 200: v.ObjectSchema<{
610
+ readonly connection: v.NullableSchema<v.ObjectSchema<{
611
+ readonly provider: v.PicklistSchema<["github", "gitlab"], undefined>;
612
+ readonly accountLogin: v.StringSchema<undefined>;
613
+ readonly method: v.PicklistSchema<["app", "pat"], undefined>;
614
+ readonly canCreateRepos: v.BooleanSchema<undefined>;
615
+ readonly canManageWorkflows: v.BooleanSchema<undefined>;
489
616
  }, undefined>, undefined>;
490
617
  }, undefined>;
491
618
  };
@@ -493,44 +620,103 @@ export declare const getPublicVcsConnectionContract: {
493
620
  readonly minScope: "admin";
494
621
  };
495
622
  /**
496
- * The workspace's merge-preset library. The `isDefault` row is the policy a task that pins none
623
+ * The workspace's risk-policy library. The `isDefault` row is the policy a task that pins none
497
624
  * resolves, so it is the one that decides whether this caller's runs can land without a person.
625
+ *
626
+ * The id a caller reads here is the one it pins as `riskPolicyId`. It answered at
627
+ * `/api/v1/merge-presets` in 1.41.0, under the name the product renamed away from a month before
628
+ * that release; the correction is a rename in place rather than a dual-served migration because
629
+ * 1.41.0 had no adopters, and `backend/docs/public-api-versions.md` records the exception.
630
+ */
631
+ export declare const listPublicRiskPoliciesContract: {
632
+ readonly method: "get";
633
+ readonly pathResolver: () => string;
634
+ readonly responsesByStatusCode: {
635
+ readonly '4xx': v.ObjectSchema<{
636
+ readonly error: v.ObjectSchema<{
637
+ readonly code: v.StringSchema<undefined>;
638
+ readonly message: v.StringSchema<undefined>;
639
+ readonly details: v.OptionalSchema<v.UnknownSchema, undefined>;
640
+ readonly issues: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
641
+ readonly path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
642
+ readonly message: v.StringSchema<undefined>;
643
+ }, undefined>, undefined>, undefined>;
644
+ }, undefined>;
645
+ }, undefined>;
646
+ readonly '5xx': v.ObjectSchema<{
647
+ readonly error: v.ObjectSchema<{
648
+ readonly code: v.StringSchema<undefined>;
649
+ readonly message: v.StringSchema<undefined>;
650
+ readonly details: v.OptionalSchema<v.UnknownSchema, undefined>;
651
+ readonly issues: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
652
+ readonly path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
653
+ readonly message: v.StringSchema<undefined>;
654
+ }, undefined>, undefined>, undefined>;
655
+ }, undefined>;
656
+ }, undefined>;
657
+ readonly 200: v.ObjectSchema<{
658
+ readonly policies: v.ArraySchema<v.ObjectSchema<{
659
+ readonly policyId: v.StringSchema<undefined>;
660
+ readonly name: v.StringSchema<undefined>;
661
+ readonly isDefault: v.BooleanSchema<undefined>;
662
+ readonly autoMergeEnabled: v.BooleanSchema<undefined>;
663
+ readonly ciMaxAttempts: v.NumberSchema<undefined>;
664
+ readonly dryRunRoles: v.ArraySchema<v.PicklistSchema<readonly ["admin", "member", "viewer"], undefined>, undefined>;
665
+ readonly submissionRestrictedRoles: v.ArraySchema<v.PicklistSchema<readonly ["admin", "member", "viewer"], undefined>, undefined>;
666
+ }, undefined>, undefined>;
667
+ }, undefined>;
668
+ };
669
+ } & {
670
+ readonly minScope: "admin";
671
+ };
672
+ /**
673
+ * The workspace's model-preset library, and which one a task pinning none resolves.
674
+ *
675
+ * Beside the risk policies rather than beside the pipelines because the two libraries are siblings:
676
+ * a caller setting a workspace up reads both to learn what its runs will cost and whether they can
677
+ * land. It is what makes `modelPresetId` on task create usable, since an id a caller cannot
678
+ * discover is one it has to hard-code.
679
+ *
680
+ * `admin` follows this file's rule and ADR 0034's reversibility argument, not a claim that a lower
681
+ * rung would be wrong. A `write` key can PIN a preset and cannot LIST one, which is the same gap the
682
+ * public pipeline list was added to close, so relaxing this to `read` is the likely next step. That
683
+ * direction is available; the other one is not. What a refused pin may NOT do is close the gap by
684
+ * accident: the `422` names the id that missed and never the library's contents, or a `write` key
685
+ * would read by typo what this route holds at `admin`.
498
686
  */
499
- export declare const listPublicMergePresetsContract: {
687
+ export declare const listPublicModelPresetsContract: {
500
688
  readonly method: "get";
501
689
  readonly pathResolver: () => string;
502
690
  readonly responsesByStatusCode: {
503
- readonly '4xx': import("valibot").ObjectSchema<{
504
- readonly error: import("valibot").ObjectSchema<{
505
- readonly code: import("valibot").StringSchema<undefined>;
506
- readonly message: import("valibot").StringSchema<undefined>;
507
- readonly details: import("valibot").OptionalSchema<import("valibot").UnknownSchema, undefined>;
508
- readonly issues: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").ObjectSchema<{
509
- readonly path: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
510
- readonly message: import("valibot").StringSchema<undefined>;
691
+ readonly '4xx': v.ObjectSchema<{
692
+ readonly error: v.ObjectSchema<{
693
+ readonly code: v.StringSchema<undefined>;
694
+ readonly message: v.StringSchema<undefined>;
695
+ readonly details: v.OptionalSchema<v.UnknownSchema, undefined>;
696
+ readonly issues: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
697
+ readonly path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
698
+ readonly message: v.StringSchema<undefined>;
511
699
  }, undefined>, undefined>, undefined>;
512
700
  }, undefined>;
513
701
  }, undefined>;
514
- readonly '5xx': import("valibot").ObjectSchema<{
515
- readonly error: import("valibot").ObjectSchema<{
516
- readonly code: import("valibot").StringSchema<undefined>;
517
- readonly message: import("valibot").StringSchema<undefined>;
518
- readonly details: import("valibot").OptionalSchema<import("valibot").UnknownSchema, undefined>;
519
- readonly issues: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").ObjectSchema<{
520
- readonly path: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
521
- readonly message: import("valibot").StringSchema<undefined>;
702
+ readonly '5xx': v.ObjectSchema<{
703
+ readonly error: v.ObjectSchema<{
704
+ readonly code: v.StringSchema<undefined>;
705
+ readonly message: v.StringSchema<undefined>;
706
+ readonly details: v.OptionalSchema<v.UnknownSchema, undefined>;
707
+ readonly issues: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
708
+ readonly path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
709
+ readonly message: v.StringSchema<undefined>;
522
710
  }, undefined>, undefined>, undefined>;
523
711
  }, undefined>;
524
712
  }, undefined>;
525
- readonly 200: import("valibot").ObjectSchema<{
526
- readonly presets: import("valibot").ArraySchema<import("valibot").ObjectSchema<{
527
- readonly presetId: import("valibot").StringSchema<undefined>;
528
- readonly name: import("valibot").StringSchema<undefined>;
529
- readonly isDefault: import("valibot").BooleanSchema<undefined>;
530
- readonly autoMergeEnabled: import("valibot").BooleanSchema<undefined>;
531
- readonly ciMaxAttempts: import("valibot").NumberSchema<undefined>;
532
- readonly dryRunRoles: import("valibot").ArraySchema<import("valibot").PicklistSchema<readonly ["admin", "member", "viewer"], undefined>, undefined>;
533
- readonly submissionRestrictedRoles: import("valibot").ArraySchema<import("valibot").PicklistSchema<readonly ["admin", "member", "viewer"], undefined>, undefined>;
713
+ readonly 200: v.ObjectSchema<{
714
+ readonly presets: v.ArraySchema<v.ObjectSchema<{
715
+ readonly presetId: v.StringSchema<undefined>;
716
+ readonly name: v.StringSchema<undefined>;
717
+ readonly isDefault: v.BooleanSchema<undefined>;
718
+ readonly baseModelId: v.StringSchema<undefined>;
719
+ readonly overrides: v.RecordSchema<v.StringSchema<undefined>, v.StringSchema<undefined>, undefined>;
534
720
  }, undefined>, undefined>;
535
721
  }, undefined>;
536
722
  };