@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.
- package/dist/public-api.d.ts +93 -4
- package/dist/public-api.d.ts.map +1 -1
- package/dist/public-api.js +89 -4
- package/dist/public-api.js.map +1 -1
- package/dist/public-provisioning.d.ts +220 -13
- package/dist/public-provisioning.d.ts.map +1 -1
- package/dist/public-provisioning.js +181 -15
- package/dist/public-provisioning.js.map +1 -1
- package/dist/routes/public-api.d.ts +18 -0
- package/dist/routes/public-api.d.ts.map +1 -1
- package/dist/routes/public-board.d.ts +4 -0
- package/dist/routes/public-board.d.ts.map +1 -1
- package/dist/routes/public-provisioning.d.ts +507 -321
- package/dist/routes/public-provisioning.d.ts.map +1 -1
- package/dist/routes/public-provisioning.js +77 -5
- package/dist/routes/public-provisioning.js.map +1 -1
- package/package.json +1 -1
|
@@ -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:
|
|
13
|
-
readonly repoName:
|
|
14
|
-
readonly type:
|
|
15
|
-
readonly description:
|
|
16
|
-
readonly private:
|
|
17
|
-
readonly instructions:
|
|
18
|
-
readonly referenceArchitectureId:
|
|
19
|
-
}, undefined>,
|
|
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':
|
|
29
|
-
readonly error:
|
|
30
|
-
readonly code:
|
|
31
|
-
readonly message:
|
|
32
|
-
readonly details:
|
|
33
|
-
readonly issues:
|
|
34
|
-
readonly path:
|
|
35
|
-
readonly message:
|
|
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':
|
|
40
|
-
readonly error:
|
|
41
|
-
readonly code:
|
|
42
|
-
readonly message:
|
|
43
|
-
readonly details:
|
|
44
|
-
readonly issues:
|
|
45
|
-
readonly path:
|
|
46
|
-
readonly message:
|
|
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:
|
|
51
|
-
readonly jobId:
|
|
52
|
-
readonly status:
|
|
53
|
-
readonly repoName:
|
|
54
|
-
readonly repoOwner:
|
|
55
|
-
readonly repoUrl:
|
|
56
|
-
readonly serviceId:
|
|
57
|
-
readonly progress:
|
|
58
|
-
readonly completed:
|
|
59
|
-
readonly inProgress:
|
|
60
|
-
readonly total:
|
|
61
|
-
readonly items:
|
|
62
|
-
readonly label:
|
|
63
|
-
readonly status:
|
|
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:
|
|
67
|
-
readonly failureKind:
|
|
68
|
-
readonly failureDetail:
|
|
69
|
-
readonly failureHint:
|
|
70
|
-
readonly createdAt:
|
|
71
|
-
readonly updatedAt:
|
|
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:
|
|
81
|
-
jobId:
|
|
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':
|
|
88
|
-
readonly error:
|
|
89
|
-
readonly code:
|
|
90
|
-
readonly message:
|
|
91
|
-
readonly details:
|
|
92
|
-
readonly issues:
|
|
93
|
-
readonly path:
|
|
94
|
-
readonly message:
|
|
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':
|
|
99
|
-
readonly error:
|
|
100
|
-
readonly code:
|
|
101
|
-
readonly message:
|
|
102
|
-
readonly details:
|
|
103
|
-
readonly issues:
|
|
104
|
-
readonly path:
|
|
105
|
-
readonly message:
|
|
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:
|
|
110
|
-
readonly jobId:
|
|
111
|
-
readonly status:
|
|
112
|
-
readonly repoName:
|
|
113
|
-
readonly repoOwner:
|
|
114
|
-
readonly repoUrl:
|
|
115
|
-
readonly serviceId:
|
|
116
|
-
readonly progress:
|
|
117
|
-
readonly completed:
|
|
118
|
-
readonly inProgress:
|
|
119
|
-
readonly total:
|
|
120
|
-
readonly items:
|
|
121
|
-
readonly label:
|
|
122
|
-
readonly status:
|
|
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:
|
|
126
|
-
readonly failureKind:
|
|
127
|
-
readonly failureDetail:
|
|
128
|
-
readonly failureHint:
|
|
129
|
-
readonly createdAt:
|
|
130
|
-
readonly updatedAt:
|
|
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:
|
|
149
|
-
readonly connection:
|
|
150
|
-
readonly engine:
|
|
151
|
-
readonly kubernetes:
|
|
152
|
-
readonly label:
|
|
153
|
-
readonly apiServerUrl:
|
|
154
|
-
readonly caCertPem:
|
|
155
|
-
readonly insecureSkipTlsVerify:
|
|
156
|
-
readonly namespaceTemplate:
|
|
157
|
-
readonly url:
|
|
158
|
-
readonly source:
|
|
159
|
-
readonly hostTemplate:
|
|
160
|
-
readonly port:
|
|
161
|
-
readonly scheme:
|
|
162
|
-
}, undefined>,
|
|
163
|
-
readonly source:
|
|
164
|
-
readonly ingressName:
|
|
165
|
-
readonly scheme:
|
|
166
|
-
}, undefined>,
|
|
167
|
-
readonly source:
|
|
168
|
-
readonly serviceName:
|
|
169
|
-
readonly port:
|
|
170
|
-
readonly scheme:
|
|
171
|
-
}, undefined>,
|
|
172
|
-
readonly source:
|
|
173
|
-
readonly gatewayName:
|
|
174
|
-
readonly scheme:
|
|
175
|
-
}, undefined>,
|
|
176
|
-
readonly source:
|
|
177
|
-
readonly httpRouteName:
|
|
178
|
-
readonly scheme:
|
|
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:
|
|
181
|
-
readonly defaultTtlMs:
|
|
182
|
-
readonly labels:
|
|
183
|
-
readonly annotations:
|
|
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:
|
|
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':
|
|
190
|
-
readonly error:
|
|
191
|
-
readonly code:
|
|
192
|
-
readonly message:
|
|
193
|
-
readonly details:
|
|
194
|
-
readonly issues:
|
|
195
|
-
readonly path:
|
|
196
|
-
readonly message:
|
|
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':
|
|
201
|
-
readonly error:
|
|
202
|
-
readonly code:
|
|
203
|
-
readonly message:
|
|
204
|
-
readonly details:
|
|
205
|
-
readonly issues:
|
|
206
|
-
readonly path:
|
|
207
|
-
readonly message:
|
|
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:
|
|
212
|
-
readonly ok:
|
|
213
|
-
readonly message:
|
|
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:
|
|
230
|
-
readonly connection:
|
|
231
|
-
readonly engine:
|
|
232
|
-
readonly kubernetes:
|
|
233
|
-
readonly label:
|
|
234
|
-
readonly apiServerUrl:
|
|
235
|
-
readonly caCertPem:
|
|
236
|
-
readonly insecureSkipTlsVerify:
|
|
237
|
-
readonly namespaceTemplate:
|
|
238
|
-
readonly url:
|
|
239
|
-
readonly source:
|
|
240
|
-
readonly hostTemplate:
|
|
241
|
-
readonly port:
|
|
242
|
-
readonly scheme:
|
|
243
|
-
}, undefined>,
|
|
244
|
-
readonly source:
|
|
245
|
-
readonly ingressName:
|
|
246
|
-
readonly scheme:
|
|
247
|
-
}, undefined>,
|
|
248
|
-
readonly source:
|
|
249
|
-
readonly serviceName:
|
|
250
|
-
readonly port:
|
|
251
|
-
readonly scheme:
|
|
252
|
-
}, undefined>,
|
|
253
|
-
readonly source:
|
|
254
|
-
readonly gatewayName:
|
|
255
|
-
readonly scheme:
|
|
256
|
-
}, undefined>,
|
|
257
|
-
readonly source:
|
|
258
|
-
readonly httpRouteName:
|
|
259
|
-
readonly scheme:
|
|
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:
|
|
262
|
-
readonly defaultTtlMs:
|
|
263
|
-
readonly labels:
|
|
264
|
-
readonly annotations:
|
|
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:
|
|
394
|
+
readonly secrets: v.RecordSchema<v.StringSchema<undefined>, v.StringSchema<undefined>, undefined>;
|
|
268
395
|
}, undefined>;
|
|
269
396
|
readonly responsesByStatusCode: {
|
|
270
|
-
readonly '4xx':
|
|
271
|
-
readonly error:
|
|
272
|
-
readonly code:
|
|
273
|
-
readonly message:
|
|
274
|
-
readonly details:
|
|
275
|
-
readonly issues:
|
|
276
|
-
readonly path:
|
|
277
|
-
readonly message:
|
|
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':
|
|
282
|
-
readonly error:
|
|
283
|
-
readonly code:
|
|
284
|
-
readonly message:
|
|
285
|
-
readonly details:
|
|
286
|
-
readonly issues:
|
|
287
|
-
readonly path:
|
|
288
|
-
readonly message:
|
|
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:
|
|
293
|
-
readonly provisionType:
|
|
294
|
-
readonly engine:
|
|
295
|
-
readonly label:
|
|
296
|
-
readonly apiServerUrl:
|
|
297
|
-
readonly secretKeys:
|
|
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:
|
|
317
|
-
serviceId:
|
|
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:
|
|
323
|
-
readonly title:
|
|
324
|
-
readonly description:
|
|
325
|
-
readonly provisioning:
|
|
326
|
-
readonly type:
|
|
327
|
-
readonly manifestSource:
|
|
328
|
-
readonly type:
|
|
329
|
-
readonly path:
|
|
330
|
-
readonly renderer:
|
|
331
|
-
}, undefined>,
|
|
332
|
-
readonly type:
|
|
333
|
-
readonly repo:
|
|
334
|
-
readonly ref:
|
|
335
|
-
readonly path:
|
|
336
|
-
readonly renderer:
|
|
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>,
|
|
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':
|
|
359
|
-
readonly error:
|
|
360
|
-
readonly code:
|
|
361
|
-
readonly message:
|
|
362
|
-
readonly details:
|
|
363
|
-
readonly issues:
|
|
364
|
-
readonly path:
|
|
365
|
-
readonly message:
|
|
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':
|
|
370
|
-
readonly error:
|
|
371
|
-
readonly code:
|
|
372
|
-
readonly message:
|
|
373
|
-
readonly details:
|
|
374
|
-
readonly issues:
|
|
375
|
-
readonly path:
|
|
376
|
-
readonly message:
|
|
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:
|
|
381
|
-
readonly serviceId:
|
|
382
|
-
readonly title:
|
|
383
|
-
readonly description:
|
|
384
|
-
readonly type:
|
|
385
|
-
readonly status:
|
|
386
|
-
readonly provisioning:
|
|
387
|
-
readonly type:
|
|
388
|
-
readonly manifestSource:
|
|
389
|
-
readonly type:
|
|
390
|
-
readonly path:
|
|
391
|
-
readonly renderer:
|
|
392
|
-
}, undefined>,
|
|
393
|
-
readonly type:
|
|
394
|
-
readonly repo:
|
|
395
|
-
readonly ref:
|
|
396
|
-
readonly path:
|
|
397
|
-
readonly renderer:
|
|
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':
|
|
416
|
-
readonly error:
|
|
417
|
-
readonly code:
|
|
418
|
-
readonly message:
|
|
419
|
-
readonly details:
|
|
420
|
-
readonly issues:
|
|
421
|
-
readonly path:
|
|
422
|
-
readonly message:
|
|
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':
|
|
427
|
-
readonly error:
|
|
428
|
-
readonly code:
|
|
429
|
-
readonly message:
|
|
430
|
-
readonly details:
|
|
431
|
-
readonly issues:
|
|
432
|
-
readonly path:
|
|
433
|
-
readonly message:
|
|
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:
|
|
438
|
-
readonly models:
|
|
439
|
-
readonly modelId:
|
|
440
|
-
readonly label:
|
|
441
|
-
readonly provider:
|
|
442
|
-
readonly available:
|
|
443
|
-
readonly policyBlocked:
|
|
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:
|
|
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':
|
|
461
|
-
readonly error:
|
|
462
|
-
readonly code:
|
|
463
|
-
readonly message:
|
|
464
|
-
readonly details:
|
|
465
|
-
readonly issues:
|
|
466
|
-
readonly path:
|
|
467
|
-
readonly message:
|
|
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':
|
|
472
|
-
readonly error:
|
|
473
|
-
readonly code:
|
|
474
|
-
readonly message:
|
|
475
|
-
readonly details:
|
|
476
|
-
readonly issues:
|
|
477
|
-
readonly path:
|
|
478
|
-
readonly message:
|
|
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:
|
|
483
|
-
readonly connection:
|
|
484
|
-
readonly provider:
|
|
485
|
-
readonly accountLogin:
|
|
486
|
-
readonly method:
|
|
487
|
-
readonly canCreateRepos:
|
|
488
|
-
readonly canManageWorkflows:
|
|
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
|
|
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
|
|
687
|
+
export declare const listPublicModelPresetsContract: {
|
|
500
688
|
readonly method: "get";
|
|
501
689
|
readonly pathResolver: () => string;
|
|
502
690
|
readonly responsesByStatusCode: {
|
|
503
|
-
readonly '4xx':
|
|
504
|
-
readonly error:
|
|
505
|
-
readonly code:
|
|
506
|
-
readonly message:
|
|
507
|
-
readonly details:
|
|
508
|
-
readonly issues:
|
|
509
|
-
readonly path:
|
|
510
|
-
readonly message:
|
|
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':
|
|
515
|
-
readonly error:
|
|
516
|
-
readonly code:
|
|
517
|
-
readonly message:
|
|
518
|
-
readonly details:
|
|
519
|
-
readonly issues:
|
|
520
|
-
readonly path:
|
|
521
|
-
readonly message:
|
|
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:
|
|
526
|
-
readonly presets:
|
|
527
|
-
readonly presetId:
|
|
528
|
-
readonly name:
|
|
529
|
-
readonly isDefault:
|
|
530
|
-
readonly
|
|
531
|
-
readonly
|
|
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
|
};
|