@sealant/sdk 0.0.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/LICENSE +202 -0
- package/README.md +61 -0
- package/dist/client.d.ts +20 -0
- package/dist/client.js +107 -0
- package/dist/effect/api-client.d.ts +1762 -0
- package/dist/effect/api-client.js +29 -0
- package/dist/effect/operations.d.ts +236 -0
- package/dist/effect/operations.js +18 -0
- package/dist/effect/run-harness.d.ts +9 -0
- package/dist/effect/run-harness.js +63 -0
- package/dist/effect/runtime.d.ts +22 -0
- package/dist/effect/runtime.js +63 -0
- package/dist/errors.d.ts +39 -0
- package/dist/errors.js +47 -0
- package/dist/facade/context.d.ts +9 -0
- package/dist/facade/context.js +9 -0
- package/dist/facade/record.d.ts +20 -0
- package/dist/facade/record.js +222 -0
- package/dist/facade/run.d.ts +30 -0
- package/dist/facade/run.js +57 -0
- package/dist/facade/sandbox.d.ts +23 -0
- package/dist/facade/sandbox.js +89 -0
- package/dist/harness.d.ts +34 -0
- package/dist/harness.js +37 -0
- package/dist/index.d.ts +20 -0
- package/dist/index.js +19 -0
- package/dist/internal/blueprint.d.ts +30 -0
- package/dist/internal/blueprint.js +69 -0
- package/dist/internal/config.d.ts +24 -0
- package/dist/internal/config.js +17 -0
- package/dist/internal/credentials.d.ts +22 -0
- package/dist/internal/credentials.js +26 -0
- package/dist/internal/map-error.d.ts +8 -0
- package/dist/internal/map-error.js +44 -0
- package/dist/types.d.ts +291 -0
- package/dist/types.js +17 -0
- package/package.json +41 -0
|
@@ -0,0 +1,1762 @@
|
|
|
1
|
+
import { Context, Effect, Layer } from "effect";
|
|
2
|
+
import { HttpClient } from "effect/unstable/http";
|
|
3
|
+
import { HttpApiClient } from "effect/unstable/httpapi";
|
|
4
|
+
import type { SealantInternalConfig } from "../internal/config.js";
|
|
5
|
+
/** Builds the contract-derived client. Requires an `HttpClient` in context (provided by the layer). */
|
|
6
|
+
declare const buildControlPlaneClient: (config: SealantInternalConfig) => Effect.Effect<{
|
|
7
|
+
readonly connectedAccounts: {
|
|
8
|
+
readonly archiveConnectedAccount: <Mode extends import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
|
|
9
|
+
readonly params: {
|
|
10
|
+
readonly connectedAccountId: string;
|
|
11
|
+
};
|
|
12
|
+
readonly query: {
|
|
13
|
+
readonly ownerUserId: string;
|
|
14
|
+
};
|
|
15
|
+
readonly responseMode?: Mode;
|
|
16
|
+
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
17
|
+
readonly connectedAccountId: string;
|
|
18
|
+
readonly ownerUserId: string;
|
|
19
|
+
readonly provider: "claude" | "codex" | "github";
|
|
20
|
+
readonly name: string;
|
|
21
|
+
readonly kind: string;
|
|
22
|
+
readonly status: "active" | "archived" | "invalid";
|
|
23
|
+
readonly metadata: {
|
|
24
|
+
readonly [x: string]: unknown;
|
|
25
|
+
};
|
|
26
|
+
readonly connectedAt: string;
|
|
27
|
+
readonly updatedAt: string;
|
|
28
|
+
readonly lastUsedAt: string | null;
|
|
29
|
+
readonly lastSyncedAt: string | null;
|
|
30
|
+
}, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("@sealant/api-contracts").ConnectedAccountInternalServerError | import("@sealant/api-contracts").ConnectedAccountNotFoundError | import("effect/Schema").SchemaError), [Mode] extends ["response-only"] ? never : never>;
|
|
31
|
+
readonly createConnectedAccount: <Mode extends import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
|
|
32
|
+
readonly payload: {
|
|
33
|
+
readonly ownerUserId: string;
|
|
34
|
+
readonly provider: "claude" | "codex" | "github";
|
|
35
|
+
readonly name?: string | undefined;
|
|
36
|
+
readonly secret: string;
|
|
37
|
+
};
|
|
38
|
+
readonly responseMode?: Mode;
|
|
39
|
+
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
40
|
+
readonly connectedAccountId: string;
|
|
41
|
+
readonly ownerUserId: string;
|
|
42
|
+
readonly provider: "claude" | "codex" | "github";
|
|
43
|
+
readonly name: string;
|
|
44
|
+
readonly kind: string;
|
|
45
|
+
readonly status: "active" | "archived" | "invalid";
|
|
46
|
+
readonly metadata: {
|
|
47
|
+
readonly [x: string]: unknown;
|
|
48
|
+
};
|
|
49
|
+
readonly connectedAt: string;
|
|
50
|
+
readonly updatedAt: string;
|
|
51
|
+
readonly lastUsedAt: string | null;
|
|
52
|
+
readonly lastSyncedAt: string | null;
|
|
53
|
+
}, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("@sealant/api-contracts").ConnectedAccountBadRequestError | import("@sealant/api-contracts").ConnectedAccountConflictError | import("@sealant/api-contracts").ConnectedAccountInternalServerError | import("@sealant/api-contracts").ConnectedAccountNotFoundError | import("@sealant/api-contracts").ConnectedAccountServiceUnavailableError | import("effect/Schema").SchemaError), [Mode] extends ["response-only"] ? never : never>;
|
|
54
|
+
readonly listConnectedAccounts: <Mode extends import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
|
|
55
|
+
readonly query: {
|
|
56
|
+
readonly ownerUserId: string;
|
|
57
|
+
};
|
|
58
|
+
readonly responseMode?: Mode;
|
|
59
|
+
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
60
|
+
readonly items: readonly {
|
|
61
|
+
readonly connectedAccountId: string;
|
|
62
|
+
readonly ownerUserId: string;
|
|
63
|
+
readonly provider: "claude" | "codex" | "github";
|
|
64
|
+
readonly name: string;
|
|
65
|
+
readonly kind: string;
|
|
66
|
+
readonly status: "active" | "archived" | "invalid";
|
|
67
|
+
readonly metadata: {
|
|
68
|
+
readonly [x: string]: unknown;
|
|
69
|
+
};
|
|
70
|
+
readonly connectedAt: string;
|
|
71
|
+
readonly updatedAt: string;
|
|
72
|
+
readonly lastUsedAt: string | null;
|
|
73
|
+
readonly lastSyncedAt: string | null;
|
|
74
|
+
}[];
|
|
75
|
+
}, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("@sealant/api-contracts").ConnectedAccountInternalServerError | import("effect/Schema").SchemaError), [Mode] extends ["response-only"] ? never : never>;
|
|
76
|
+
readonly markConnectedAccountInvalid: <Mode extends import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
|
|
77
|
+
readonly params: {
|
|
78
|
+
readonly connectedAccountId: string;
|
|
79
|
+
};
|
|
80
|
+
readonly payload: {
|
|
81
|
+
readonly ownerUserId: string;
|
|
82
|
+
};
|
|
83
|
+
readonly responseMode?: Mode;
|
|
84
|
+
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
85
|
+
readonly connectedAccountId: string;
|
|
86
|
+
readonly ownerUserId: string;
|
|
87
|
+
readonly provider: "claude" | "codex" | "github";
|
|
88
|
+
readonly name: string;
|
|
89
|
+
readonly kind: string;
|
|
90
|
+
readonly status: "active" | "archived" | "invalid";
|
|
91
|
+
readonly metadata: {
|
|
92
|
+
readonly [x: string]: unknown;
|
|
93
|
+
};
|
|
94
|
+
readonly connectedAt: string;
|
|
95
|
+
readonly updatedAt: string;
|
|
96
|
+
readonly lastUsedAt: string | null;
|
|
97
|
+
readonly lastSyncedAt: string | null;
|
|
98
|
+
}, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("@sealant/api-contracts").ConnectedAccountInternalServerError | import("@sealant/api-contracts").ConnectedAccountNotFoundError | import("effect/Schema").SchemaError), [Mode] extends ["response-only"] ? never : never>;
|
|
99
|
+
};
|
|
100
|
+
readonly github: {
|
|
101
|
+
readonly handleWebhook: <Mode extends import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
|
|
102
|
+
readonly headers: {
|
|
103
|
+
readonly "x-github-delivery"?: string | undefined;
|
|
104
|
+
readonly "x-github-event"?: string | undefined;
|
|
105
|
+
readonly "x-hub-signature-256"?: string | undefined;
|
|
106
|
+
};
|
|
107
|
+
readonly payload: string;
|
|
108
|
+
readonly responseMode?: Mode;
|
|
109
|
+
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
110
|
+
readonly deliveryId: string;
|
|
111
|
+
readonly status: "failed" | "ignored" | "processed" | "received";
|
|
112
|
+
}, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("@sealant/api-contracts").GitHubBadRequestError | import("@sealant/api-contracts").GitHubInternalServerError | import("@sealant/api-contracts").GitHubServiceUnavailableError | import("@sealant/api-contracts").GitHubUnauthorizedError | import("effect/Schema").SchemaError), [Mode] extends ["response-only"] ? never : never>;
|
|
113
|
+
readonly importInstallation: <Mode extends import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
|
|
114
|
+
readonly payload: {
|
|
115
|
+
readonly userId: string;
|
|
116
|
+
readonly externalInstallationId: string;
|
|
117
|
+
};
|
|
118
|
+
readonly responseMode?: Mode;
|
|
119
|
+
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
120
|
+
readonly installation: {
|
|
121
|
+
readonly installationId: string;
|
|
122
|
+
readonly externalInstallationId: string;
|
|
123
|
+
readonly accountLogin: string;
|
|
124
|
+
readonly accountType: "organization" | "user";
|
|
125
|
+
readonly status: "active" | "deleted" | "suspended";
|
|
126
|
+
readonly repositorySelection: "all" | "selected";
|
|
127
|
+
readonly lastSyncedAt?: string | undefined;
|
|
128
|
+
};
|
|
129
|
+
readonly syncedRepositoryCount: number;
|
|
130
|
+
readonly syncedAt: string;
|
|
131
|
+
}, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("@sealant/api-contracts").GitHubInternalServerError | import("@sealant/api-contracts").GitHubNotFoundError | import("@sealant/api-contracts").GitHubServiceUnavailableError | import("effect/Schema").SchemaError), [Mode] extends ["response-only"] ? never : never>;
|
|
132
|
+
readonly listInstallationRepositories: <Mode extends import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
|
|
133
|
+
readonly params: {
|
|
134
|
+
readonly installationId: string;
|
|
135
|
+
};
|
|
136
|
+
readonly query: {
|
|
137
|
+
readonly userId: string;
|
|
138
|
+
readonly search?: string | undefined;
|
|
139
|
+
};
|
|
140
|
+
readonly responseMode?: Mode;
|
|
141
|
+
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
142
|
+
readonly items: readonly {
|
|
143
|
+
readonly installationRepositoryId: string;
|
|
144
|
+
readonly installationId: string;
|
|
145
|
+
readonly repositoryId: string;
|
|
146
|
+
readonly externalRepositoryId: string;
|
|
147
|
+
readonly owner: string;
|
|
148
|
+
readonly name: string;
|
|
149
|
+
readonly fullName: string;
|
|
150
|
+
readonly defaultBranch: string;
|
|
151
|
+
readonly isPrivate: boolean;
|
|
152
|
+
readonly isArchived: boolean;
|
|
153
|
+
readonly lastSyncedAt?: string | undefined;
|
|
154
|
+
}[];
|
|
155
|
+
}, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("@sealant/api-contracts").GitHubForbiddenError | import("@sealant/api-contracts").GitHubInternalServerError | import("@sealant/api-contracts").GitHubNotFoundError | import("@sealant/api-contracts").GitHubServiceUnavailableError | import("effect/Schema").SchemaError), [Mode] extends ["response-only"] ? never : never>;
|
|
156
|
+
readonly listInstallations: <Mode extends import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
|
|
157
|
+
readonly query: {
|
|
158
|
+
readonly userId: string;
|
|
159
|
+
};
|
|
160
|
+
readonly responseMode?: Mode;
|
|
161
|
+
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
162
|
+
readonly items: readonly {
|
|
163
|
+
readonly installationId: string;
|
|
164
|
+
readonly externalInstallationId: string;
|
|
165
|
+
readonly accountLogin: string;
|
|
166
|
+
readonly accountType: "organization" | "user";
|
|
167
|
+
readonly status: "active" | "deleted" | "suspended";
|
|
168
|
+
readonly repositorySelection: "all" | "selected";
|
|
169
|
+
readonly lastSyncedAt?: string | undefined;
|
|
170
|
+
}[];
|
|
171
|
+
}, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("@sealant/api-contracts").GitHubInternalServerError | import("@sealant/api-contracts").GitHubServiceUnavailableError | import("effect/Schema").SchemaError), [Mode] extends ["response-only"] ? never : never>;
|
|
172
|
+
readonly syncInstallation: <Mode extends import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
|
|
173
|
+
readonly params: {
|
|
174
|
+
readonly installationId: string;
|
|
175
|
+
};
|
|
176
|
+
readonly query: {
|
|
177
|
+
readonly userId: string;
|
|
178
|
+
};
|
|
179
|
+
readonly responseMode?: Mode;
|
|
180
|
+
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
181
|
+
readonly installationId: string;
|
|
182
|
+
readonly syncedRepositoryCount: number;
|
|
183
|
+
readonly syncedAt: string;
|
|
184
|
+
}, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("@sealant/api-contracts").GitHubForbiddenError | import("@sealant/api-contracts").GitHubInternalServerError | import("@sealant/api-contracts").GitHubNotFoundError | import("@sealant/api-contracts").GitHubServiceUnavailableError | import("effect/Schema").SchemaError), [Mode] extends ["response-only"] ? never : never>;
|
|
185
|
+
};
|
|
186
|
+
readonly packages: {
|
|
187
|
+
readonly resolvePackage: <Mode extends import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
|
|
188
|
+
readonly query: {
|
|
189
|
+
readonly query: string;
|
|
190
|
+
readonly targetOs?: "arch" | "fedora" | "nix" | undefined;
|
|
191
|
+
};
|
|
192
|
+
readonly responseMode?: Mode;
|
|
193
|
+
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
194
|
+
readonly requested: string;
|
|
195
|
+
readonly normalized: string;
|
|
196
|
+
readonly status: "ambiguous" | "invalid" | "not-found" | "resolved" | "unsupported";
|
|
197
|
+
readonly source: "cache" | "override" | "repology";
|
|
198
|
+
readonly canonicalId?: string | undefined;
|
|
199
|
+
readonly selectedProject?: string | undefined;
|
|
200
|
+
readonly osSupport: {
|
|
201
|
+
readonly arch: {
|
|
202
|
+
readonly supported: boolean;
|
|
203
|
+
readonly repo?: string | undefined;
|
|
204
|
+
readonly packageName?: string | undefined;
|
|
205
|
+
readonly projectName?: string | undefined;
|
|
206
|
+
readonly version?: string | undefined;
|
|
207
|
+
readonly status?: string | undefined;
|
|
208
|
+
};
|
|
209
|
+
readonly fedora: {
|
|
210
|
+
readonly supported: boolean;
|
|
211
|
+
readonly repo?: string | undefined;
|
|
212
|
+
readonly packageName?: string | undefined;
|
|
213
|
+
readonly projectName?: string | undefined;
|
|
214
|
+
readonly version?: string | undefined;
|
|
215
|
+
readonly status?: string | undefined;
|
|
216
|
+
};
|
|
217
|
+
readonly nix: {
|
|
218
|
+
readonly supported: boolean;
|
|
219
|
+
readonly repo?: string | undefined;
|
|
220
|
+
readonly packageName?: string | undefined;
|
|
221
|
+
readonly projectName?: string | undefined;
|
|
222
|
+
readonly version?: string | undefined;
|
|
223
|
+
readonly status?: string | undefined;
|
|
224
|
+
};
|
|
225
|
+
};
|
|
226
|
+
readonly alternatives: readonly {
|
|
227
|
+
readonly projectName: string;
|
|
228
|
+
}[];
|
|
229
|
+
readonly fetchedAt: string;
|
|
230
|
+
readonly expiresAt: string;
|
|
231
|
+
}, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("@sealant/api-contracts").PackagesBadGatewayError | import("@sealant/api-contracts").PackagesInternalServerError | import("effect/Schema").SchemaError), [Mode] extends ["response-only"] ? never : never>;
|
|
232
|
+
};
|
|
233
|
+
readonly profiles: {
|
|
234
|
+
readonly listProfileCredentialBindings: <Mode extends import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
|
|
235
|
+
readonly params: {
|
|
236
|
+
readonly profileId: string;
|
|
237
|
+
};
|
|
238
|
+
readonly query: {
|
|
239
|
+
readonly ownerUserId: string;
|
|
240
|
+
};
|
|
241
|
+
readonly responseMode?: Mode;
|
|
242
|
+
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
243
|
+
readonly items: readonly {
|
|
244
|
+
readonly profileId: string;
|
|
245
|
+
readonly provider: "claude" | "codex" | "github";
|
|
246
|
+
readonly connectedAccountId: string;
|
|
247
|
+
readonly account: {
|
|
248
|
+
readonly connectedAccountId: string;
|
|
249
|
+
readonly ownerUserId: string;
|
|
250
|
+
readonly provider: "claude" | "codex" | "github";
|
|
251
|
+
readonly name: string;
|
|
252
|
+
readonly kind: string;
|
|
253
|
+
readonly status: "active" | "archived" | "invalid";
|
|
254
|
+
readonly metadata: {
|
|
255
|
+
readonly [x: string]: unknown;
|
|
256
|
+
};
|
|
257
|
+
readonly connectedAt: string;
|
|
258
|
+
readonly updatedAt: string;
|
|
259
|
+
readonly lastUsedAt: string | null;
|
|
260
|
+
readonly lastSyncedAt: string | null;
|
|
261
|
+
};
|
|
262
|
+
}[];
|
|
263
|
+
}, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("@sealant/api-contracts").ProfileInternalServerError | import("@sealant/api-contracts").ProfileNotFoundError | import("effect/Schema").SchemaError), [Mode] extends ["response-only"] ? never : never>;
|
|
264
|
+
readonly listProfiles: <Mode extends import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
|
|
265
|
+
readonly query: {
|
|
266
|
+
readonly ownerUserId: string;
|
|
267
|
+
};
|
|
268
|
+
readonly responseMode?: Mode;
|
|
269
|
+
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
270
|
+
readonly items: readonly {
|
|
271
|
+
readonly profileId: string;
|
|
272
|
+
readonly ownerUserId: string;
|
|
273
|
+
readonly slug: string;
|
|
274
|
+
readonly name: string;
|
|
275
|
+
readonly description: string | null;
|
|
276
|
+
readonly status: "active" | "archived";
|
|
277
|
+
readonly activeRevisionId: string | null;
|
|
278
|
+
readonly createdAt: string;
|
|
279
|
+
readonly updatedAt: string;
|
|
280
|
+
}[];
|
|
281
|
+
}, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("@sealant/api-contracts").ProfileInternalServerError | import("effect/Schema").SchemaError), [Mode] extends ["response-only"] ? never : never>;
|
|
282
|
+
readonly setProfileCredentialBinding: <Mode extends import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
|
|
283
|
+
readonly params: {
|
|
284
|
+
readonly profileId: string;
|
|
285
|
+
};
|
|
286
|
+
readonly payload: {
|
|
287
|
+
readonly ownerUserId: string;
|
|
288
|
+
readonly provider: "claude" | "codex" | "github";
|
|
289
|
+
readonly connectedAccountId: string | null;
|
|
290
|
+
};
|
|
291
|
+
readonly responseMode?: Mode;
|
|
292
|
+
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
293
|
+
readonly items: readonly {
|
|
294
|
+
readonly profileId: string;
|
|
295
|
+
readonly provider: "claude" | "codex" | "github";
|
|
296
|
+
readonly connectedAccountId: string;
|
|
297
|
+
readonly account: {
|
|
298
|
+
readonly connectedAccountId: string;
|
|
299
|
+
readonly ownerUserId: string;
|
|
300
|
+
readonly provider: "claude" | "codex" | "github";
|
|
301
|
+
readonly name: string;
|
|
302
|
+
readonly kind: string;
|
|
303
|
+
readonly status: "active" | "archived" | "invalid";
|
|
304
|
+
readonly metadata: {
|
|
305
|
+
readonly [x: string]: unknown;
|
|
306
|
+
};
|
|
307
|
+
readonly connectedAt: string;
|
|
308
|
+
readonly updatedAt: string;
|
|
309
|
+
readonly lastUsedAt: string | null;
|
|
310
|
+
readonly lastSyncedAt: string | null;
|
|
311
|
+
};
|
|
312
|
+
}[];
|
|
313
|
+
}, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("@sealant/api-contracts").ProfileBadRequestError | import("@sealant/api-contracts").ProfileConflictError | import("@sealant/api-contracts").ProfileInternalServerError | import("@sealant/api-contracts").ProfileNotFoundError | import("effect/Schema").SchemaError), [Mode] extends ["response-only"] ? never : never>;
|
|
314
|
+
};
|
|
315
|
+
readonly registries: {
|
|
316
|
+
readonly getRegistry: <Mode extends import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
|
|
317
|
+
readonly params: {
|
|
318
|
+
readonly registryId: string;
|
|
319
|
+
};
|
|
320
|
+
readonly responseMode?: Mode;
|
|
321
|
+
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
322
|
+
readonly name: string;
|
|
323
|
+
readonly baseUrl: string;
|
|
324
|
+
readonly pushRegistry: string;
|
|
325
|
+
readonly hasBasicAuth: boolean;
|
|
326
|
+
}, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("@sealant/api-contracts").RegistriesNotFoundError | import("effect/Schema").SchemaError), [Mode] extends ["response-only"] ? never : never>;
|
|
327
|
+
readonly getRegistryManifest: <Mode extends import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
|
|
328
|
+
readonly params: {
|
|
329
|
+
readonly registryId: string;
|
|
330
|
+
};
|
|
331
|
+
readonly query: {
|
|
332
|
+
readonly repository: string;
|
|
333
|
+
readonly reference: string;
|
|
334
|
+
};
|
|
335
|
+
readonly responseMode?: Mode;
|
|
336
|
+
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
337
|
+
readonly repository: string;
|
|
338
|
+
readonly reference: string;
|
|
339
|
+
readonly digest?: string | undefined;
|
|
340
|
+
readonly contentType: string | null;
|
|
341
|
+
readonly manifest: unknown;
|
|
342
|
+
}, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("@sealant/api-contracts").RegistriesBadGatewayError | import("@sealant/api-contracts").RegistriesNotFoundError | import("effect/Schema").SchemaError), [Mode] extends ["response-only"] ? never : never>;
|
|
343
|
+
readonly listRegistryExtensions: <Mode extends import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
|
|
344
|
+
readonly params: {
|
|
345
|
+
readonly registryId: string;
|
|
346
|
+
};
|
|
347
|
+
readonly responseMode?: Mode;
|
|
348
|
+
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
349
|
+
readonly extensions: readonly {
|
|
350
|
+
readonly name: string;
|
|
351
|
+
readonly url?: string | undefined;
|
|
352
|
+
readonly description?: string | undefined;
|
|
353
|
+
readonly endpoints: readonly string[];
|
|
354
|
+
}[];
|
|
355
|
+
}, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("@sealant/api-contracts").RegistriesBadGatewayError | import("@sealant/api-contracts").RegistriesNotFoundError | import("effect/Schema").SchemaError), [Mode] extends ["response-only"] ? never : never>;
|
|
356
|
+
readonly listRegistryTags: <Mode extends import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
|
|
357
|
+
readonly params: {
|
|
358
|
+
readonly registryId: string;
|
|
359
|
+
};
|
|
360
|
+
readonly query: {
|
|
361
|
+
readonly repository: string;
|
|
362
|
+
};
|
|
363
|
+
readonly responseMode?: Mode;
|
|
364
|
+
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
365
|
+
readonly repository: string;
|
|
366
|
+
readonly tags: readonly string[];
|
|
367
|
+
}, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("@sealant/api-contracts").RegistriesBadGatewayError | import("@sealant/api-contracts").RegistriesNotFoundError | import("effect/Schema").SchemaError), [Mode] extends ["response-only"] ? never : never>;
|
|
368
|
+
readonly pingRegistry: <Mode extends import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
|
|
369
|
+
readonly params: {
|
|
370
|
+
readonly registryId: string;
|
|
371
|
+
};
|
|
372
|
+
readonly responseMode?: Mode;
|
|
373
|
+
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
374
|
+
readonly name: string;
|
|
375
|
+
readonly reachable: true;
|
|
376
|
+
}, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("@sealant/api-contracts").RegistriesBadGatewayError | import("@sealant/api-contracts").RegistriesNotFoundError | import("effect/Schema").SchemaError), [Mode] extends ["response-only"] ? never : never>;
|
|
377
|
+
};
|
|
378
|
+
readonly runs: {
|
|
379
|
+
readonly createRun: <Mode extends import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
|
|
380
|
+
readonly payload: {
|
|
381
|
+
readonly sandboxId: string;
|
|
382
|
+
readonly harnessId: string;
|
|
383
|
+
readonly ownerUserId: string;
|
|
384
|
+
readonly mode?: "interactive" | "one-shot" | undefined;
|
|
385
|
+
readonly prompt?: string | undefined;
|
|
386
|
+
readonly attemptId?: string | undefined;
|
|
387
|
+
readonly command?: {
|
|
388
|
+
readonly executable: string;
|
|
389
|
+
readonly args: readonly string[];
|
|
390
|
+
readonly cwd?: string | undefined;
|
|
391
|
+
} | undefined;
|
|
392
|
+
};
|
|
393
|
+
readonly responseMode?: Mode;
|
|
394
|
+
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
395
|
+
readonly runId: string;
|
|
396
|
+
readonly sandboxId: string;
|
|
397
|
+
readonly attemptId?: string | undefined;
|
|
398
|
+
readonly ownerUserId: string;
|
|
399
|
+
readonly harnessId: string;
|
|
400
|
+
readonly mode: "interactive" | "one-shot";
|
|
401
|
+
readonly status: "cancelled" | "completed" | "failed" | "queued" | "running";
|
|
402
|
+
readonly prompt?: string | undefined;
|
|
403
|
+
readonly exitCode?: number | undefined;
|
|
404
|
+
readonly errorMessage?: string | undefined;
|
|
405
|
+
readonly startedAt?: string | undefined;
|
|
406
|
+
readonly finishedAt?: string | undefined;
|
|
407
|
+
readonly createdAt: string;
|
|
408
|
+
readonly updatedAt: string;
|
|
409
|
+
}, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("@sealant/api-contracts").RunBadRequestError | import("@sealant/api-contracts").RunInternalServerError | import("@sealant/api-contracts").RunNotFoundError | import("effect/Schema").SchemaError), [Mode] extends ["response-only"] ? never : never>;
|
|
410
|
+
readonly getRun: <Mode extends import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
|
|
411
|
+
readonly params: {
|
|
412
|
+
readonly runId: string;
|
|
413
|
+
};
|
|
414
|
+
readonly responseMode?: Mode;
|
|
415
|
+
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
416
|
+
readonly runId: string;
|
|
417
|
+
readonly sandboxId: string;
|
|
418
|
+
readonly attemptId?: string | undefined;
|
|
419
|
+
readonly ownerUserId: string;
|
|
420
|
+
readonly harnessId: string;
|
|
421
|
+
readonly mode: "interactive" | "one-shot";
|
|
422
|
+
readonly status: "cancelled" | "completed" | "failed" | "queued" | "running";
|
|
423
|
+
readonly prompt?: string | undefined;
|
|
424
|
+
readonly exitCode?: number | undefined;
|
|
425
|
+
readonly errorMessage?: string | undefined;
|
|
426
|
+
readonly startedAt?: string | undefined;
|
|
427
|
+
readonly finishedAt?: string | undefined;
|
|
428
|
+
readonly createdAt: string;
|
|
429
|
+
readonly updatedAt: string;
|
|
430
|
+
}, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("@sealant/api-contracts").RunInternalServerError | import("@sealant/api-contracts").RunNotFoundError | import("effect/Schema").SchemaError), [Mode] extends ["response-only"] ? never : never>;
|
|
431
|
+
readonly getRunChanges: <Mode extends import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
|
|
432
|
+
readonly params: {
|
|
433
|
+
readonly runId: string;
|
|
434
|
+
};
|
|
435
|
+
readonly responseMode?: Mode;
|
|
436
|
+
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
437
|
+
readonly files: readonly {
|
|
438
|
+
readonly path: string;
|
|
439
|
+
readonly change: "added" | "deleted" | "modified" | "renamed";
|
|
440
|
+
readonly oldPath?: string | undefined;
|
|
441
|
+
}[];
|
|
442
|
+
readonly diff: string;
|
|
443
|
+
}, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("@sealant/api-contracts").RunInternalServerError | import("@sealant/api-contracts").RunNotFoundError | import("effect/Schema").SchemaError), [Mode] extends ["response-only"] ? never : never>;
|
|
444
|
+
readonly getRunEvent: <Mode extends import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
|
|
445
|
+
readonly params: {
|
|
446
|
+
readonly runId: string;
|
|
447
|
+
readonly sequence: string;
|
|
448
|
+
};
|
|
449
|
+
readonly responseMode?: Mode;
|
|
450
|
+
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
451
|
+
readonly eventId: string;
|
|
452
|
+
readonly runId: string;
|
|
453
|
+
readonly runtimeId: string;
|
|
454
|
+
readonly executionId?: string | undefined;
|
|
455
|
+
readonly sessionId?: string | undefined;
|
|
456
|
+
readonly processId?: string | undefined;
|
|
457
|
+
readonly requestId?: string | undefined;
|
|
458
|
+
readonly schemaVersion: number;
|
|
459
|
+
readonly sequence: string;
|
|
460
|
+
readonly observedAt: string;
|
|
461
|
+
readonly monotonicTimestamp: string;
|
|
462
|
+
readonly captureMethod: number;
|
|
463
|
+
readonly confidence: number;
|
|
464
|
+
readonly payloadCase: string;
|
|
465
|
+
readonly payload: unknown;
|
|
466
|
+
readonly ingestedAt: string;
|
|
467
|
+
}, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("@sealant/api-contracts").RunBadRequestError | import("@sealant/api-contracts").RunInternalServerError | import("@sealant/api-contracts").RunNotFoundError | import("effect/Schema").SchemaError), [Mode] extends ["response-only"] ? never : never>;
|
|
468
|
+
readonly getRunLoss: <Mode extends import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
|
|
469
|
+
readonly params: {
|
|
470
|
+
readonly runId: string;
|
|
471
|
+
};
|
|
472
|
+
readonly responseMode?: Mode;
|
|
473
|
+
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
474
|
+
readonly runId: string;
|
|
475
|
+
readonly droppedEventCount: string;
|
|
476
|
+
readonly sequenceGapCount: number;
|
|
477
|
+
readonly watchOverflowCount: number;
|
|
478
|
+
readonly earlyClose: boolean;
|
|
479
|
+
readonly spans: readonly {
|
|
480
|
+
readonly kind: "dropped_event" | "early_close" | "sequence_gap" | "watch_overflow";
|
|
481
|
+
readonly fromSequence?: string | undefined;
|
|
482
|
+
readonly toSequence?: string | undefined;
|
|
483
|
+
readonly droppedCount?: string | undefined;
|
|
484
|
+
readonly detectedVia: "gap" | "marker";
|
|
485
|
+
readonly reason?: string | undefined;
|
|
486
|
+
}[];
|
|
487
|
+
}, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("@sealant/api-contracts").RunInternalServerError | import("@sealant/api-contracts").RunNotFoundError | import("effect/Schema").SchemaError), [Mode] extends ["response-only"] ? never : never>;
|
|
488
|
+
readonly getRunScrollback: <Mode extends import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
|
|
489
|
+
readonly params: {
|
|
490
|
+
readonly runId: string;
|
|
491
|
+
};
|
|
492
|
+
readonly query: {
|
|
493
|
+
readonly processId: string;
|
|
494
|
+
readonly stream: "stderr" | "stdout";
|
|
495
|
+
readonly atSequence?: string | undefined;
|
|
496
|
+
};
|
|
497
|
+
readonly responseMode?: Mode;
|
|
498
|
+
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
499
|
+
readonly processId: string;
|
|
500
|
+
readonly stream: "stderr" | "stdout";
|
|
501
|
+
readonly byteCount: number;
|
|
502
|
+
readonly contentBase64: string;
|
|
503
|
+
}, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("@sealant/api-contracts").RunBadRequestError | import("@sealant/api-contracts").RunInternalServerError | import("@sealant/api-contracts").RunNotFoundError | import("effect/Schema").SchemaError), [Mode] extends ["response-only"] ? never : never>;
|
|
504
|
+
readonly getRunTimeline: <Mode extends import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
|
|
505
|
+
readonly params: {
|
|
506
|
+
readonly runId: string;
|
|
507
|
+
};
|
|
508
|
+
readonly query: {
|
|
509
|
+
readonly fromSequence?: string | undefined;
|
|
510
|
+
readonly toSequence?: string | undefined;
|
|
511
|
+
readonly limit?: string | undefined;
|
|
512
|
+
readonly kinds?: string | undefined;
|
|
513
|
+
};
|
|
514
|
+
readonly responseMode?: Mode;
|
|
515
|
+
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
516
|
+
readonly items: readonly {
|
|
517
|
+
readonly eventId: string;
|
|
518
|
+
readonly sequence: string;
|
|
519
|
+
readonly kind: string;
|
|
520
|
+
readonly occurredAt: string;
|
|
521
|
+
readonly summary: string;
|
|
522
|
+
readonly ref?: unknown;
|
|
523
|
+
readonly processId?: string | undefined;
|
|
524
|
+
readonly captureMethod: number;
|
|
525
|
+
readonly confidence: number;
|
|
526
|
+
}[];
|
|
527
|
+
}, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("@sealant/api-contracts").RunBadRequestError | import("@sealant/api-contracts").RunInternalServerError | import("@sealant/api-contracts").RunNotFoundError | import("effect/Schema").SchemaError), [Mode] extends ["response-only"] ? never : never>;
|
|
528
|
+
readonly listRuns: <Mode extends import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
|
|
529
|
+
readonly query: {
|
|
530
|
+
readonly sandboxId?: string | undefined;
|
|
531
|
+
readonly ownerUserId?: string | undefined;
|
|
532
|
+
readonly status?: "cancelled" | "completed" | "failed" | "queued" | "running" | undefined;
|
|
533
|
+
readonly limit?: string | undefined;
|
|
534
|
+
};
|
|
535
|
+
readonly responseMode?: Mode;
|
|
536
|
+
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
537
|
+
readonly items: readonly {
|
|
538
|
+
readonly runId: string;
|
|
539
|
+
readonly sandboxId: string;
|
|
540
|
+
readonly attemptId?: string | undefined;
|
|
541
|
+
readonly ownerUserId: string;
|
|
542
|
+
readonly harnessId: string;
|
|
543
|
+
readonly mode: "interactive" | "one-shot";
|
|
544
|
+
readonly status: "cancelled" | "completed" | "failed" | "queued" | "running";
|
|
545
|
+
readonly prompt?: string | undefined;
|
|
546
|
+
readonly exitCode?: number | undefined;
|
|
547
|
+
readonly errorMessage?: string | undefined;
|
|
548
|
+
readonly startedAt?: string | undefined;
|
|
549
|
+
readonly finishedAt?: string | undefined;
|
|
550
|
+
readonly createdAt: string;
|
|
551
|
+
readonly updatedAt: string;
|
|
552
|
+
}[];
|
|
553
|
+
}, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("@sealant/api-contracts").RunBadRequestError | import("@sealant/api-contracts").RunInternalServerError | import("effect/Schema").SchemaError), [Mode] extends ["response-only"] ? never : never>;
|
|
554
|
+
readonly updateRun: <Mode extends import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
|
|
555
|
+
readonly params: {
|
|
556
|
+
readonly runId: string;
|
|
557
|
+
};
|
|
558
|
+
readonly payload: {
|
|
559
|
+
readonly status?: "cancelled" | "completed" | "failed" | "queued" | "running" | undefined;
|
|
560
|
+
readonly exitCode?: number | undefined;
|
|
561
|
+
readonly errorMessage?: string | undefined;
|
|
562
|
+
};
|
|
563
|
+
readonly responseMode?: Mode;
|
|
564
|
+
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
565
|
+
readonly runId: string;
|
|
566
|
+
readonly sandboxId: string;
|
|
567
|
+
readonly attemptId?: string | undefined;
|
|
568
|
+
readonly ownerUserId: string;
|
|
569
|
+
readonly harnessId: string;
|
|
570
|
+
readonly mode: "interactive" | "one-shot";
|
|
571
|
+
readonly status: "cancelled" | "completed" | "failed" | "queued" | "running";
|
|
572
|
+
readonly prompt?: string | undefined;
|
|
573
|
+
readonly exitCode?: number | undefined;
|
|
574
|
+
readonly errorMessage?: string | undefined;
|
|
575
|
+
readonly startedAt?: string | undefined;
|
|
576
|
+
readonly finishedAt?: string | undefined;
|
|
577
|
+
readonly createdAt: string;
|
|
578
|
+
readonly updatedAt: string;
|
|
579
|
+
}, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("@sealant/api-contracts").RunBadRequestError | import("@sealant/api-contracts").RunInternalServerError | import("@sealant/api-contracts").RunNotFoundError | import("effect/Schema").SchemaError), [Mode] extends ["response-only"] ? never : never>;
|
|
580
|
+
};
|
|
581
|
+
readonly sandboxes: {
|
|
582
|
+
readonly createSandbox: <Mode extends import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
|
|
583
|
+
readonly headers: {
|
|
584
|
+
readonly "idempotency-key"?: string | undefined;
|
|
585
|
+
};
|
|
586
|
+
readonly payload: {
|
|
587
|
+
readonly ownerUserId: string;
|
|
588
|
+
readonly registryId: string;
|
|
589
|
+
readonly repository: string;
|
|
590
|
+
readonly tag: string;
|
|
591
|
+
readonly name?: string | undefined;
|
|
592
|
+
readonly sourceSelection?: {
|
|
593
|
+
readonly provider: "github";
|
|
594
|
+
readonly installationId: string;
|
|
595
|
+
readonly installationRepositoryId: string;
|
|
596
|
+
readonly ref?: string | undefined;
|
|
597
|
+
} | undefined;
|
|
598
|
+
readonly dotfilesSelection?: {
|
|
599
|
+
readonly provider: "github";
|
|
600
|
+
readonly installationId: string;
|
|
601
|
+
readonly installationRepositoryId: string;
|
|
602
|
+
readonly ref?: string | undefined;
|
|
603
|
+
} | undefined;
|
|
604
|
+
readonly credentials?: {
|
|
605
|
+
readonly profileId?: string | undefined;
|
|
606
|
+
readonly claude?: string | undefined;
|
|
607
|
+
readonly codex?: string | undefined;
|
|
608
|
+
readonly github?: string | undefined;
|
|
609
|
+
} | undefined;
|
|
610
|
+
readonly spec: unknown;
|
|
611
|
+
};
|
|
612
|
+
readonly responseMode?: Mode;
|
|
613
|
+
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
614
|
+
readonly sandboxId: string;
|
|
615
|
+
readonly name: string;
|
|
616
|
+
readonly status: "cancelled" | "failed" | "queued" | "ready" | "running";
|
|
617
|
+
readonly registryId: string;
|
|
618
|
+
readonly repository: string;
|
|
619
|
+
readonly tag: string;
|
|
620
|
+
}, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("@sealant/api-contracts").SandboxBadGatewayError | import("@sealant/api-contracts").SandboxBadRequestError | import("@sealant/api-contracts").SandboxConflictError | import("@sealant/api-contracts").SandboxForbiddenError | import("@sealant/api-contracts").SandboxInternalServerError | import("@sealant/api-contracts").SandboxNotFoundError | import("@sealant/api-contracts").SandboxServiceUnavailableError | import("effect/Schema").SchemaError), [Mode] extends ["response-only"] ? never : never>;
|
|
621
|
+
readonly getSandbox: <Mode extends import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
|
|
622
|
+
readonly params: {
|
|
623
|
+
readonly sandboxId: string;
|
|
624
|
+
};
|
|
625
|
+
readonly responseMode?: Mode;
|
|
626
|
+
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
627
|
+
readonly sandboxId: string;
|
|
628
|
+
readonly name: string;
|
|
629
|
+
readonly ownerUserId: string;
|
|
630
|
+
readonly status: "cancelled" | "failed" | "queued" | "ready" | "running";
|
|
631
|
+
readonly registryId?: string | undefined;
|
|
632
|
+
readonly repository?: string | undefined;
|
|
633
|
+
readonly tag?: string | undefined;
|
|
634
|
+
readonly runtime?: {
|
|
635
|
+
readonly adapter: "docker" | "k3s" | "k8s";
|
|
636
|
+
readonly resourceId: string;
|
|
637
|
+
readonly reference: string;
|
|
638
|
+
readonly status: "failed" | "pending" | "ready" | "running" | "stopped";
|
|
639
|
+
readonly endpoint?: string | undefined;
|
|
640
|
+
} | undefined;
|
|
641
|
+
readonly publishedImage?: {
|
|
642
|
+
readonly reference: string;
|
|
643
|
+
readonly digestReference: string;
|
|
644
|
+
readonly digest: string;
|
|
645
|
+
} | undefined;
|
|
646
|
+
readonly error?: {
|
|
647
|
+
readonly message: string;
|
|
648
|
+
readonly code?: string | undefined;
|
|
649
|
+
} | undefined;
|
|
650
|
+
readonly createdAt: string;
|
|
651
|
+
readonly updatedAt: string;
|
|
652
|
+
readonly startedAt?: string | undefined;
|
|
653
|
+
readonly finishedAt?: string | undefined;
|
|
654
|
+
readonly spec?: unknown;
|
|
655
|
+
}, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("@sealant/api-contracts").SandboxInternalServerError | import("@sealant/api-contracts").SandboxNotFoundError | import("effect/Schema").SchemaError), [Mode] extends ["response-only"] ? never : never>;
|
|
656
|
+
readonly getSandboxSshTarget: <Mode extends import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
|
|
657
|
+
readonly params: {
|
|
658
|
+
readonly sandboxId: string;
|
|
659
|
+
};
|
|
660
|
+
readonly headers: {
|
|
661
|
+
readonly "x-sealant-gateway-token"?: string | undefined;
|
|
662
|
+
readonly "x-sealant-principal-id"?: string | undefined;
|
|
663
|
+
};
|
|
664
|
+
readonly responseMode?: Mode;
|
|
665
|
+
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
666
|
+
readonly sandboxId: string;
|
|
667
|
+
readonly attemptId: string;
|
|
668
|
+
readonly runtime: {
|
|
669
|
+
readonly adapter: "docker" | "k3s" | "k8s";
|
|
670
|
+
readonly resourceId: string;
|
|
671
|
+
readonly reference: string;
|
|
672
|
+
readonly status: "failed" | "pending" | "ready" | "running" | "stopped";
|
|
673
|
+
readonly endpoint: string;
|
|
674
|
+
};
|
|
675
|
+
}, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("@sealant/api-contracts").SandboxConflictError | import("@sealant/api-contracts").SandboxInternalServerError | import("@sealant/api-contracts").SandboxNotFoundError | import("@sealant/api-contracts").SandboxServiceUnavailableError | import("@sealant/api-contracts").SandboxUnauthorizedError | import("effect/Schema").SchemaError), [Mode] extends ["response-only"] ? never : never>;
|
|
676
|
+
readonly listSandboxAttempts: <Mode extends import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
|
|
677
|
+
readonly params: {
|
|
678
|
+
readonly sandboxId: string;
|
|
679
|
+
};
|
|
680
|
+
readonly query: {
|
|
681
|
+
readonly limit?: string | undefined;
|
|
682
|
+
};
|
|
683
|
+
readonly responseMode?: Mode;
|
|
684
|
+
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
685
|
+
readonly items: readonly {
|
|
686
|
+
readonly attemptId: string;
|
|
687
|
+
readonly relation: "launch" | "rebuild" | "resume" | "retry";
|
|
688
|
+
readonly status: "cancelled" | "failed" | "queued" | "ready" | "running";
|
|
689
|
+
readonly triggerType: "api" | "manual" | "retry" | "schedule";
|
|
690
|
+
readonly triggerRef?: string | undefined;
|
|
691
|
+
readonly runtime?: {
|
|
692
|
+
readonly adapter: "docker" | "k3s" | "k8s";
|
|
693
|
+
readonly resourceId: string;
|
|
694
|
+
readonly reference: string;
|
|
695
|
+
readonly status: "failed" | "pending" | "ready" | "running" | "stopped";
|
|
696
|
+
readonly endpoint?: string | undefined;
|
|
697
|
+
} | undefined;
|
|
698
|
+
readonly publishedImage?: {
|
|
699
|
+
readonly reference: string;
|
|
700
|
+
readonly digestReference: string;
|
|
701
|
+
readonly digest: string;
|
|
702
|
+
} | undefined;
|
|
703
|
+
readonly error?: {
|
|
704
|
+
readonly message: string;
|
|
705
|
+
readonly code?: string | undefined;
|
|
706
|
+
} | undefined;
|
|
707
|
+
readonly spec?: unknown;
|
|
708
|
+
readonly queuedAt: string;
|
|
709
|
+
readonly createdAt: string;
|
|
710
|
+
readonly updatedAt: string;
|
|
711
|
+
readonly linkedAt: string;
|
|
712
|
+
readonly startedAt?: string | undefined;
|
|
713
|
+
readonly finishedAt?: string | undefined;
|
|
714
|
+
readonly durationMs?: number | undefined;
|
|
715
|
+
}[];
|
|
716
|
+
}, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("@sealant/api-contracts").SandboxBadRequestError | import("@sealant/api-contracts").SandboxInternalServerError | import("@sealant/api-contracts").SandboxNotFoundError | import("effect/Schema").SchemaError), [Mode] extends ["response-only"] ? never : never>;
|
|
717
|
+
readonly listSandboxEvents: <Mode extends import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
|
|
718
|
+
readonly params: {
|
|
719
|
+
readonly sandboxId: string;
|
|
720
|
+
};
|
|
721
|
+
readonly query: {
|
|
722
|
+
readonly limit?: string | undefined;
|
|
723
|
+
};
|
|
724
|
+
readonly responseMode?: Mode;
|
|
725
|
+
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
726
|
+
readonly items: readonly {
|
|
727
|
+
readonly eventId: string;
|
|
728
|
+
readonly sandboxId: string;
|
|
729
|
+
readonly attemptId?: string | undefined;
|
|
730
|
+
readonly type: "attempt.cancelled" | "attempt.failed" | "attempt.queued" | "attempt.running" | "attempt.succeeded" | "image.published" | "runtime.failed" | "runtime.pending" | "runtime.ready" | "runtime.running" | "runtime.stopped" | "sandbox.created";
|
|
731
|
+
readonly occurredAt: string;
|
|
732
|
+
readonly message?: string | undefined;
|
|
733
|
+
readonly data?: unknown;
|
|
734
|
+
}[];
|
|
735
|
+
}, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("@sealant/api-contracts").SandboxBadRequestError | import("@sealant/api-contracts").SandboxInternalServerError | import("@sealant/api-contracts").SandboxNotFoundError | import("effect/Schema").SchemaError), [Mode] extends ["response-only"] ? never : never>;
|
|
736
|
+
readonly listSandboxes: <Mode extends import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
|
|
737
|
+
readonly query: {
|
|
738
|
+
readonly ownerUserId: string;
|
|
739
|
+
readonly status?: "cancelled" | "failed" | "queued" | "ready" | "running" | undefined;
|
|
740
|
+
readonly limit?: string | undefined;
|
|
741
|
+
};
|
|
742
|
+
readonly responseMode?: Mode;
|
|
743
|
+
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
744
|
+
readonly items: readonly {
|
|
745
|
+
readonly sandboxId: string;
|
|
746
|
+
readonly name: string;
|
|
747
|
+
readonly ownerUserId: string;
|
|
748
|
+
readonly status: "cancelled" | "failed" | "queued" | "ready" | "running";
|
|
749
|
+
readonly registryId?: string | undefined;
|
|
750
|
+
readonly repository?: string | undefined;
|
|
751
|
+
readonly tag?: string | undefined;
|
|
752
|
+
readonly runtime?: {
|
|
753
|
+
readonly adapter: "docker" | "k3s" | "k8s";
|
|
754
|
+
readonly resourceId: string;
|
|
755
|
+
readonly reference: string;
|
|
756
|
+
readonly status: "failed" | "pending" | "ready" | "running" | "stopped";
|
|
757
|
+
readonly endpoint?: string | undefined;
|
|
758
|
+
} | undefined;
|
|
759
|
+
readonly publishedImage?: {
|
|
760
|
+
readonly reference: string;
|
|
761
|
+
readonly digestReference: string;
|
|
762
|
+
readonly digest: string;
|
|
763
|
+
} | undefined;
|
|
764
|
+
readonly error?: {
|
|
765
|
+
readonly message: string;
|
|
766
|
+
readonly code?: string | undefined;
|
|
767
|
+
} | undefined;
|
|
768
|
+
readonly createdAt: string;
|
|
769
|
+
readonly updatedAt: string;
|
|
770
|
+
readonly startedAt?: string | undefined;
|
|
771
|
+
readonly finishedAt?: string | undefined;
|
|
772
|
+
}[];
|
|
773
|
+
}, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("@sealant/api-contracts").SandboxBadRequestError | import("@sealant/api-contracts").SandboxInternalServerError | import("effect/Schema").SchemaError), [Mode] extends ["response-only"] ? never : never>;
|
|
774
|
+
readonly renameSandbox: <Mode extends import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
|
|
775
|
+
readonly params: {
|
|
776
|
+
readonly sandboxId: string;
|
|
777
|
+
};
|
|
778
|
+
readonly payload: {
|
|
779
|
+
readonly name: string;
|
|
780
|
+
};
|
|
781
|
+
readonly responseMode?: Mode;
|
|
782
|
+
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
783
|
+
readonly sandboxId: string;
|
|
784
|
+
readonly name: string;
|
|
785
|
+
readonly updatedAt: string;
|
|
786
|
+
}, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("@sealant/api-contracts").SandboxInternalServerError | import("@sealant/api-contracts").SandboxNotFoundError | import("effect/Schema").SchemaError), [Mode] extends ["response-only"] ? never : never>;
|
|
787
|
+
};
|
|
788
|
+
readonly sshKeys: {
|
|
789
|
+
readonly archiveSshKey: <Mode extends import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
|
|
790
|
+
readonly params: {
|
|
791
|
+
readonly sshKeyId: string;
|
|
792
|
+
};
|
|
793
|
+
readonly query: {
|
|
794
|
+
readonly ownerUserId: string;
|
|
795
|
+
};
|
|
796
|
+
readonly responseMode?: Mode;
|
|
797
|
+
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
798
|
+
readonly sshKeyId: string;
|
|
799
|
+
readonly ownerUserId: string;
|
|
800
|
+
readonly name: string;
|
|
801
|
+
readonly algorithm: string;
|
|
802
|
+
readonly fingerprint: string;
|
|
803
|
+
readonly createdAt: string;
|
|
804
|
+
}, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("effect/Schema").SchemaError | import("@sealant/api-contracts").SshKeyInternalServerError | import("@sealant/api-contracts").SshKeyNotFoundError), [Mode] extends ["response-only"] ? never : never>;
|
|
805
|
+
readonly createSshKey: <Mode extends import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
|
|
806
|
+
readonly payload: {
|
|
807
|
+
readonly ownerUserId: string;
|
|
808
|
+
readonly name?: string | undefined;
|
|
809
|
+
readonly publicKey: string;
|
|
810
|
+
};
|
|
811
|
+
readonly responseMode?: Mode;
|
|
812
|
+
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
813
|
+
readonly sshKeyId: string;
|
|
814
|
+
readonly ownerUserId: string;
|
|
815
|
+
readonly name: string;
|
|
816
|
+
readonly algorithm: string;
|
|
817
|
+
readonly fingerprint: string;
|
|
818
|
+
readonly createdAt: string;
|
|
819
|
+
}, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("effect/Schema").SchemaError | import("@sealant/api-contracts").SshKeyBadRequestError | import("@sealant/api-contracts").SshKeyConflictError | import("@sealant/api-contracts").SshKeyInternalServerError | import("@sealant/api-contracts").SshKeyNotFoundError), [Mode] extends ["response-only"] ? never : never>;
|
|
820
|
+
readonly listSshKeys: <Mode extends import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
|
|
821
|
+
readonly query: {
|
|
822
|
+
readonly ownerUserId: string;
|
|
823
|
+
};
|
|
824
|
+
readonly responseMode?: Mode;
|
|
825
|
+
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
826
|
+
readonly items: readonly {
|
|
827
|
+
readonly sshKeyId: string;
|
|
828
|
+
readonly ownerUserId: string;
|
|
829
|
+
readonly name: string;
|
|
830
|
+
readonly algorithm: string;
|
|
831
|
+
readonly fingerprint: string;
|
|
832
|
+
readonly createdAt: string;
|
|
833
|
+
}[];
|
|
834
|
+
}, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("effect/Schema").SchemaError | import("@sealant/api-contracts").SshKeyInternalServerError), [Mode] extends ["response-only"] ? never : never>;
|
|
835
|
+
readonly resolveSshPrincipal: <Mode extends import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
|
|
836
|
+
readonly headers: {
|
|
837
|
+
readonly "x-sealant-gateway-token"?: string | undefined;
|
|
838
|
+
};
|
|
839
|
+
readonly payload: {
|
|
840
|
+
readonly algo: string;
|
|
841
|
+
readonly publicKeyBase64: string;
|
|
842
|
+
};
|
|
843
|
+
readonly responseMode?: Mode;
|
|
844
|
+
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
845
|
+
readonly principalId: string;
|
|
846
|
+
readonly sshKeyId: string;
|
|
847
|
+
readonly fingerprint: string;
|
|
848
|
+
}, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("effect/Schema").SchemaError | import("@sealant/api-contracts").SshKeyInternalServerError | import("@sealant/api-contracts").SshKeyNotFoundError | import("@sealant/api-contracts").SshKeyServiceUnavailableError | import("@sealant/api-contracts").SshKeyUnauthorizedError), [Mode] extends ["response-only"] ? never : never>;
|
|
849
|
+
};
|
|
850
|
+
readonly system: {
|
|
851
|
+
readonly getIndex: <Mode extends import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: void | {
|
|
852
|
+
readonly responseMode?: Mode;
|
|
853
|
+
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
854
|
+
readonly name: string;
|
|
855
|
+
readonly version: string;
|
|
856
|
+
readonly docsPath: string;
|
|
857
|
+
readonly openApiPath: string;
|
|
858
|
+
}, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("effect/Schema").SchemaError), [Mode] extends ["response-only"] ? never : never>;
|
|
859
|
+
readonly getSetupState: <Mode extends import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: void | {
|
|
860
|
+
readonly responseMode?: Mode;
|
|
861
|
+
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
862
|
+
readonly needsSetup: boolean;
|
|
863
|
+
readonly sshGateway: {
|
|
864
|
+
readonly host: string;
|
|
865
|
+
readonly port: number;
|
|
866
|
+
readonly usernamePrefix: string;
|
|
867
|
+
} | null;
|
|
868
|
+
}, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("effect/Schema").SchemaError | import("@sealant/api-contracts").SystemInternalServerError), [Mode] extends ["response-only"] ? never : never>;
|
|
869
|
+
readonly health: <Mode extends import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: void | {
|
|
870
|
+
readonly responseMode?: Mode;
|
|
871
|
+
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
872
|
+
readonly status: "ok";
|
|
873
|
+
}, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("effect/Schema").SchemaError), [Mode] extends ["response-only"] ? never : never>;
|
|
874
|
+
readonly ready: <Mode extends import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: void | {
|
|
875
|
+
readonly responseMode?: Mode;
|
|
876
|
+
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
877
|
+
readonly status: "ok";
|
|
878
|
+
}, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("effect/Schema").SchemaError), [Mode] extends ["response-only"] ? never : never>;
|
|
879
|
+
};
|
|
880
|
+
}, never, HttpClient.HttpClient>;
|
|
881
|
+
/** The fully-typed control-plane client, derived from the `@sealant/api-contracts` HttpApi. */
|
|
882
|
+
export type ControlPlaneClient = Effect.Success<ReturnType<typeof buildControlPlaneClient>>;
|
|
883
|
+
declare const SealantApiClient_base: Context.ServiceClass<SealantApiClient, "@sealant/sdk/SealantApiClient", {
|
|
884
|
+
readonly connectedAccounts: {
|
|
885
|
+
readonly archiveConnectedAccount: <Mode extends import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
|
|
886
|
+
readonly params: {
|
|
887
|
+
readonly connectedAccountId: string;
|
|
888
|
+
};
|
|
889
|
+
readonly query: {
|
|
890
|
+
readonly ownerUserId: string;
|
|
891
|
+
};
|
|
892
|
+
readonly responseMode?: Mode;
|
|
893
|
+
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
894
|
+
readonly connectedAccountId: string;
|
|
895
|
+
readonly ownerUserId: string;
|
|
896
|
+
readonly provider: "claude" | "codex" | "github";
|
|
897
|
+
readonly name: string;
|
|
898
|
+
readonly kind: string;
|
|
899
|
+
readonly status: "active" | "archived" | "invalid";
|
|
900
|
+
readonly metadata: {
|
|
901
|
+
readonly [x: string]: unknown;
|
|
902
|
+
};
|
|
903
|
+
readonly connectedAt: string;
|
|
904
|
+
readonly updatedAt: string;
|
|
905
|
+
readonly lastUsedAt: string | null;
|
|
906
|
+
readonly lastSyncedAt: string | null;
|
|
907
|
+
}, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("@sealant/api-contracts").ConnectedAccountInternalServerError | import("@sealant/api-contracts").ConnectedAccountNotFoundError | import("effect/Schema").SchemaError), [Mode] extends ["response-only"] ? never : never>;
|
|
908
|
+
readonly createConnectedAccount: <Mode extends import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
|
|
909
|
+
readonly payload: {
|
|
910
|
+
readonly ownerUserId: string;
|
|
911
|
+
readonly provider: "claude" | "codex" | "github";
|
|
912
|
+
readonly name?: string | undefined;
|
|
913
|
+
readonly secret: string;
|
|
914
|
+
};
|
|
915
|
+
readonly responseMode?: Mode;
|
|
916
|
+
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
917
|
+
readonly connectedAccountId: string;
|
|
918
|
+
readonly ownerUserId: string;
|
|
919
|
+
readonly provider: "claude" | "codex" | "github";
|
|
920
|
+
readonly name: string;
|
|
921
|
+
readonly kind: string;
|
|
922
|
+
readonly status: "active" | "archived" | "invalid";
|
|
923
|
+
readonly metadata: {
|
|
924
|
+
readonly [x: string]: unknown;
|
|
925
|
+
};
|
|
926
|
+
readonly connectedAt: string;
|
|
927
|
+
readonly updatedAt: string;
|
|
928
|
+
readonly lastUsedAt: string | null;
|
|
929
|
+
readonly lastSyncedAt: string | null;
|
|
930
|
+
}, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("@sealant/api-contracts").ConnectedAccountBadRequestError | import("@sealant/api-contracts").ConnectedAccountConflictError | import("@sealant/api-contracts").ConnectedAccountInternalServerError | import("@sealant/api-contracts").ConnectedAccountNotFoundError | import("@sealant/api-contracts").ConnectedAccountServiceUnavailableError | import("effect/Schema").SchemaError), [Mode] extends ["response-only"] ? never : never>;
|
|
931
|
+
readonly listConnectedAccounts: <Mode extends import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
|
|
932
|
+
readonly query: {
|
|
933
|
+
readonly ownerUserId: string;
|
|
934
|
+
};
|
|
935
|
+
readonly responseMode?: Mode;
|
|
936
|
+
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
937
|
+
readonly items: readonly {
|
|
938
|
+
readonly connectedAccountId: string;
|
|
939
|
+
readonly ownerUserId: string;
|
|
940
|
+
readonly provider: "claude" | "codex" | "github";
|
|
941
|
+
readonly name: string;
|
|
942
|
+
readonly kind: string;
|
|
943
|
+
readonly status: "active" | "archived" | "invalid";
|
|
944
|
+
readonly metadata: {
|
|
945
|
+
readonly [x: string]: unknown;
|
|
946
|
+
};
|
|
947
|
+
readonly connectedAt: string;
|
|
948
|
+
readonly updatedAt: string;
|
|
949
|
+
readonly lastUsedAt: string | null;
|
|
950
|
+
readonly lastSyncedAt: string | null;
|
|
951
|
+
}[];
|
|
952
|
+
}, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("@sealant/api-contracts").ConnectedAccountInternalServerError | import("effect/Schema").SchemaError), [Mode] extends ["response-only"] ? never : never>;
|
|
953
|
+
readonly markConnectedAccountInvalid: <Mode extends import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
|
|
954
|
+
readonly params: {
|
|
955
|
+
readonly connectedAccountId: string;
|
|
956
|
+
};
|
|
957
|
+
readonly payload: {
|
|
958
|
+
readonly ownerUserId: string;
|
|
959
|
+
};
|
|
960
|
+
readonly responseMode?: Mode;
|
|
961
|
+
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
962
|
+
readonly connectedAccountId: string;
|
|
963
|
+
readonly ownerUserId: string;
|
|
964
|
+
readonly provider: "claude" | "codex" | "github";
|
|
965
|
+
readonly name: string;
|
|
966
|
+
readonly kind: string;
|
|
967
|
+
readonly status: "active" | "archived" | "invalid";
|
|
968
|
+
readonly metadata: {
|
|
969
|
+
readonly [x: string]: unknown;
|
|
970
|
+
};
|
|
971
|
+
readonly connectedAt: string;
|
|
972
|
+
readonly updatedAt: string;
|
|
973
|
+
readonly lastUsedAt: string | null;
|
|
974
|
+
readonly lastSyncedAt: string | null;
|
|
975
|
+
}, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("@sealant/api-contracts").ConnectedAccountInternalServerError | import("@sealant/api-contracts").ConnectedAccountNotFoundError | import("effect/Schema").SchemaError), [Mode] extends ["response-only"] ? never : never>;
|
|
976
|
+
};
|
|
977
|
+
readonly github: {
|
|
978
|
+
readonly handleWebhook: <Mode extends import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
|
|
979
|
+
readonly headers: {
|
|
980
|
+
readonly "x-github-delivery"?: string | undefined;
|
|
981
|
+
readonly "x-github-event"?: string | undefined;
|
|
982
|
+
readonly "x-hub-signature-256"?: string | undefined;
|
|
983
|
+
};
|
|
984
|
+
readonly payload: string;
|
|
985
|
+
readonly responseMode?: Mode;
|
|
986
|
+
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
987
|
+
readonly deliveryId: string;
|
|
988
|
+
readonly status: "failed" | "ignored" | "processed" | "received";
|
|
989
|
+
}, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("@sealant/api-contracts").GitHubBadRequestError | import("@sealant/api-contracts").GitHubInternalServerError | import("@sealant/api-contracts").GitHubServiceUnavailableError | import("@sealant/api-contracts").GitHubUnauthorizedError | import("effect/Schema").SchemaError), [Mode] extends ["response-only"] ? never : never>;
|
|
990
|
+
readonly importInstallation: <Mode extends import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
|
|
991
|
+
readonly payload: {
|
|
992
|
+
readonly userId: string;
|
|
993
|
+
readonly externalInstallationId: string;
|
|
994
|
+
};
|
|
995
|
+
readonly responseMode?: Mode;
|
|
996
|
+
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
997
|
+
readonly installation: {
|
|
998
|
+
readonly installationId: string;
|
|
999
|
+
readonly externalInstallationId: string;
|
|
1000
|
+
readonly accountLogin: string;
|
|
1001
|
+
readonly accountType: "organization" | "user";
|
|
1002
|
+
readonly status: "active" | "deleted" | "suspended";
|
|
1003
|
+
readonly repositorySelection: "all" | "selected";
|
|
1004
|
+
readonly lastSyncedAt?: string | undefined;
|
|
1005
|
+
};
|
|
1006
|
+
readonly syncedRepositoryCount: number;
|
|
1007
|
+
readonly syncedAt: string;
|
|
1008
|
+
}, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("@sealant/api-contracts").GitHubInternalServerError | import("@sealant/api-contracts").GitHubNotFoundError | import("@sealant/api-contracts").GitHubServiceUnavailableError | import("effect/Schema").SchemaError), [Mode] extends ["response-only"] ? never : never>;
|
|
1009
|
+
readonly listInstallationRepositories: <Mode extends import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
|
|
1010
|
+
readonly params: {
|
|
1011
|
+
readonly installationId: string;
|
|
1012
|
+
};
|
|
1013
|
+
readonly query: {
|
|
1014
|
+
readonly userId: string;
|
|
1015
|
+
readonly search?: string | undefined;
|
|
1016
|
+
};
|
|
1017
|
+
readonly responseMode?: Mode;
|
|
1018
|
+
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
1019
|
+
readonly items: readonly {
|
|
1020
|
+
readonly installationRepositoryId: string;
|
|
1021
|
+
readonly installationId: string;
|
|
1022
|
+
readonly repositoryId: string;
|
|
1023
|
+
readonly externalRepositoryId: string;
|
|
1024
|
+
readonly owner: string;
|
|
1025
|
+
readonly name: string;
|
|
1026
|
+
readonly fullName: string;
|
|
1027
|
+
readonly defaultBranch: string;
|
|
1028
|
+
readonly isPrivate: boolean;
|
|
1029
|
+
readonly isArchived: boolean;
|
|
1030
|
+
readonly lastSyncedAt?: string | undefined;
|
|
1031
|
+
}[];
|
|
1032
|
+
}, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("@sealant/api-contracts").GitHubForbiddenError | import("@sealant/api-contracts").GitHubInternalServerError | import("@sealant/api-contracts").GitHubNotFoundError | import("@sealant/api-contracts").GitHubServiceUnavailableError | import("effect/Schema").SchemaError), [Mode] extends ["response-only"] ? never : never>;
|
|
1033
|
+
readonly listInstallations: <Mode extends import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
|
|
1034
|
+
readonly query: {
|
|
1035
|
+
readonly userId: string;
|
|
1036
|
+
};
|
|
1037
|
+
readonly responseMode?: Mode;
|
|
1038
|
+
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
1039
|
+
readonly items: readonly {
|
|
1040
|
+
readonly installationId: string;
|
|
1041
|
+
readonly externalInstallationId: string;
|
|
1042
|
+
readonly accountLogin: string;
|
|
1043
|
+
readonly accountType: "organization" | "user";
|
|
1044
|
+
readonly status: "active" | "deleted" | "suspended";
|
|
1045
|
+
readonly repositorySelection: "all" | "selected";
|
|
1046
|
+
readonly lastSyncedAt?: string | undefined;
|
|
1047
|
+
}[];
|
|
1048
|
+
}, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("@sealant/api-contracts").GitHubInternalServerError | import("@sealant/api-contracts").GitHubServiceUnavailableError | import("effect/Schema").SchemaError), [Mode] extends ["response-only"] ? never : never>;
|
|
1049
|
+
readonly syncInstallation: <Mode extends import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
|
|
1050
|
+
readonly params: {
|
|
1051
|
+
readonly installationId: string;
|
|
1052
|
+
};
|
|
1053
|
+
readonly query: {
|
|
1054
|
+
readonly userId: string;
|
|
1055
|
+
};
|
|
1056
|
+
readonly responseMode?: Mode;
|
|
1057
|
+
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
1058
|
+
readonly installationId: string;
|
|
1059
|
+
readonly syncedRepositoryCount: number;
|
|
1060
|
+
readonly syncedAt: string;
|
|
1061
|
+
}, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("@sealant/api-contracts").GitHubForbiddenError | import("@sealant/api-contracts").GitHubInternalServerError | import("@sealant/api-contracts").GitHubNotFoundError | import("@sealant/api-contracts").GitHubServiceUnavailableError | import("effect/Schema").SchemaError), [Mode] extends ["response-only"] ? never : never>;
|
|
1062
|
+
};
|
|
1063
|
+
readonly packages: {
|
|
1064
|
+
readonly resolvePackage: <Mode extends import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
|
|
1065
|
+
readonly query: {
|
|
1066
|
+
readonly query: string;
|
|
1067
|
+
readonly targetOs?: "arch" | "fedora" | "nix" | undefined;
|
|
1068
|
+
};
|
|
1069
|
+
readonly responseMode?: Mode;
|
|
1070
|
+
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
1071
|
+
readonly requested: string;
|
|
1072
|
+
readonly normalized: string;
|
|
1073
|
+
readonly status: "ambiguous" | "invalid" | "not-found" | "resolved" | "unsupported";
|
|
1074
|
+
readonly source: "cache" | "override" | "repology";
|
|
1075
|
+
readonly canonicalId?: string | undefined;
|
|
1076
|
+
readonly selectedProject?: string | undefined;
|
|
1077
|
+
readonly osSupport: {
|
|
1078
|
+
readonly arch: {
|
|
1079
|
+
readonly supported: boolean;
|
|
1080
|
+
readonly repo?: string | undefined;
|
|
1081
|
+
readonly packageName?: string | undefined;
|
|
1082
|
+
readonly projectName?: string | undefined;
|
|
1083
|
+
readonly version?: string | undefined;
|
|
1084
|
+
readonly status?: string | undefined;
|
|
1085
|
+
};
|
|
1086
|
+
readonly fedora: {
|
|
1087
|
+
readonly supported: boolean;
|
|
1088
|
+
readonly repo?: string | undefined;
|
|
1089
|
+
readonly packageName?: string | undefined;
|
|
1090
|
+
readonly projectName?: string | undefined;
|
|
1091
|
+
readonly version?: string | undefined;
|
|
1092
|
+
readonly status?: string | undefined;
|
|
1093
|
+
};
|
|
1094
|
+
readonly nix: {
|
|
1095
|
+
readonly supported: boolean;
|
|
1096
|
+
readonly repo?: string | undefined;
|
|
1097
|
+
readonly packageName?: string | undefined;
|
|
1098
|
+
readonly projectName?: string | undefined;
|
|
1099
|
+
readonly version?: string | undefined;
|
|
1100
|
+
readonly status?: string | undefined;
|
|
1101
|
+
};
|
|
1102
|
+
};
|
|
1103
|
+
readonly alternatives: readonly {
|
|
1104
|
+
readonly projectName: string;
|
|
1105
|
+
}[];
|
|
1106
|
+
readonly fetchedAt: string;
|
|
1107
|
+
readonly expiresAt: string;
|
|
1108
|
+
}, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("@sealant/api-contracts").PackagesBadGatewayError | import("@sealant/api-contracts").PackagesInternalServerError | import("effect/Schema").SchemaError), [Mode] extends ["response-only"] ? never : never>;
|
|
1109
|
+
};
|
|
1110
|
+
readonly profiles: {
|
|
1111
|
+
readonly listProfileCredentialBindings: <Mode extends import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
|
|
1112
|
+
readonly params: {
|
|
1113
|
+
readonly profileId: string;
|
|
1114
|
+
};
|
|
1115
|
+
readonly query: {
|
|
1116
|
+
readonly ownerUserId: string;
|
|
1117
|
+
};
|
|
1118
|
+
readonly responseMode?: Mode;
|
|
1119
|
+
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
1120
|
+
readonly items: readonly {
|
|
1121
|
+
readonly profileId: string;
|
|
1122
|
+
readonly provider: "claude" | "codex" | "github";
|
|
1123
|
+
readonly connectedAccountId: string;
|
|
1124
|
+
readonly account: {
|
|
1125
|
+
readonly connectedAccountId: string;
|
|
1126
|
+
readonly ownerUserId: string;
|
|
1127
|
+
readonly provider: "claude" | "codex" | "github";
|
|
1128
|
+
readonly name: string;
|
|
1129
|
+
readonly kind: string;
|
|
1130
|
+
readonly status: "active" | "archived" | "invalid";
|
|
1131
|
+
readonly metadata: {
|
|
1132
|
+
readonly [x: string]: unknown;
|
|
1133
|
+
};
|
|
1134
|
+
readonly connectedAt: string;
|
|
1135
|
+
readonly updatedAt: string;
|
|
1136
|
+
readonly lastUsedAt: string | null;
|
|
1137
|
+
readonly lastSyncedAt: string | null;
|
|
1138
|
+
};
|
|
1139
|
+
}[];
|
|
1140
|
+
}, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("@sealant/api-contracts").ProfileInternalServerError | import("@sealant/api-contracts").ProfileNotFoundError | import("effect/Schema").SchemaError), [Mode] extends ["response-only"] ? never : never>;
|
|
1141
|
+
readonly listProfiles: <Mode extends import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
|
|
1142
|
+
readonly query: {
|
|
1143
|
+
readonly ownerUserId: string;
|
|
1144
|
+
};
|
|
1145
|
+
readonly responseMode?: Mode;
|
|
1146
|
+
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
1147
|
+
readonly items: readonly {
|
|
1148
|
+
readonly profileId: string;
|
|
1149
|
+
readonly ownerUserId: string;
|
|
1150
|
+
readonly slug: string;
|
|
1151
|
+
readonly name: string;
|
|
1152
|
+
readonly description: string | null;
|
|
1153
|
+
readonly status: "active" | "archived";
|
|
1154
|
+
readonly activeRevisionId: string | null;
|
|
1155
|
+
readonly createdAt: string;
|
|
1156
|
+
readonly updatedAt: string;
|
|
1157
|
+
}[];
|
|
1158
|
+
}, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("@sealant/api-contracts").ProfileInternalServerError | import("effect/Schema").SchemaError), [Mode] extends ["response-only"] ? never : never>;
|
|
1159
|
+
readonly setProfileCredentialBinding: <Mode extends import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
|
|
1160
|
+
readonly params: {
|
|
1161
|
+
readonly profileId: string;
|
|
1162
|
+
};
|
|
1163
|
+
readonly payload: {
|
|
1164
|
+
readonly ownerUserId: string;
|
|
1165
|
+
readonly provider: "claude" | "codex" | "github";
|
|
1166
|
+
readonly connectedAccountId: string | null;
|
|
1167
|
+
};
|
|
1168
|
+
readonly responseMode?: Mode;
|
|
1169
|
+
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
1170
|
+
readonly items: readonly {
|
|
1171
|
+
readonly profileId: string;
|
|
1172
|
+
readonly provider: "claude" | "codex" | "github";
|
|
1173
|
+
readonly connectedAccountId: string;
|
|
1174
|
+
readonly account: {
|
|
1175
|
+
readonly connectedAccountId: string;
|
|
1176
|
+
readonly ownerUserId: string;
|
|
1177
|
+
readonly provider: "claude" | "codex" | "github";
|
|
1178
|
+
readonly name: string;
|
|
1179
|
+
readonly kind: string;
|
|
1180
|
+
readonly status: "active" | "archived" | "invalid";
|
|
1181
|
+
readonly metadata: {
|
|
1182
|
+
readonly [x: string]: unknown;
|
|
1183
|
+
};
|
|
1184
|
+
readonly connectedAt: string;
|
|
1185
|
+
readonly updatedAt: string;
|
|
1186
|
+
readonly lastUsedAt: string | null;
|
|
1187
|
+
readonly lastSyncedAt: string | null;
|
|
1188
|
+
};
|
|
1189
|
+
}[];
|
|
1190
|
+
}, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("@sealant/api-contracts").ProfileBadRequestError | import("@sealant/api-contracts").ProfileConflictError | import("@sealant/api-contracts").ProfileInternalServerError | import("@sealant/api-contracts").ProfileNotFoundError | import("effect/Schema").SchemaError), [Mode] extends ["response-only"] ? never : never>;
|
|
1191
|
+
};
|
|
1192
|
+
readonly registries: {
|
|
1193
|
+
readonly getRegistry: <Mode extends import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
|
|
1194
|
+
readonly params: {
|
|
1195
|
+
readonly registryId: string;
|
|
1196
|
+
};
|
|
1197
|
+
readonly responseMode?: Mode;
|
|
1198
|
+
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
1199
|
+
readonly name: string;
|
|
1200
|
+
readonly baseUrl: string;
|
|
1201
|
+
readonly pushRegistry: string;
|
|
1202
|
+
readonly hasBasicAuth: boolean;
|
|
1203
|
+
}, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("@sealant/api-contracts").RegistriesNotFoundError | import("effect/Schema").SchemaError), [Mode] extends ["response-only"] ? never : never>;
|
|
1204
|
+
readonly getRegistryManifest: <Mode extends import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
|
|
1205
|
+
readonly params: {
|
|
1206
|
+
readonly registryId: string;
|
|
1207
|
+
};
|
|
1208
|
+
readonly query: {
|
|
1209
|
+
readonly repository: string;
|
|
1210
|
+
readonly reference: string;
|
|
1211
|
+
};
|
|
1212
|
+
readonly responseMode?: Mode;
|
|
1213
|
+
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
1214
|
+
readonly repository: string;
|
|
1215
|
+
readonly reference: string;
|
|
1216
|
+
readonly digest?: string | undefined;
|
|
1217
|
+
readonly contentType: string | null;
|
|
1218
|
+
readonly manifest: unknown;
|
|
1219
|
+
}, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("@sealant/api-contracts").RegistriesBadGatewayError | import("@sealant/api-contracts").RegistriesNotFoundError | import("effect/Schema").SchemaError), [Mode] extends ["response-only"] ? never : never>;
|
|
1220
|
+
readonly listRegistryExtensions: <Mode extends import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
|
|
1221
|
+
readonly params: {
|
|
1222
|
+
readonly registryId: string;
|
|
1223
|
+
};
|
|
1224
|
+
readonly responseMode?: Mode;
|
|
1225
|
+
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
1226
|
+
readonly extensions: readonly {
|
|
1227
|
+
readonly name: string;
|
|
1228
|
+
readonly url?: string | undefined;
|
|
1229
|
+
readonly description?: string | undefined;
|
|
1230
|
+
readonly endpoints: readonly string[];
|
|
1231
|
+
}[];
|
|
1232
|
+
}, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("@sealant/api-contracts").RegistriesBadGatewayError | import("@sealant/api-contracts").RegistriesNotFoundError | import("effect/Schema").SchemaError), [Mode] extends ["response-only"] ? never : never>;
|
|
1233
|
+
readonly listRegistryTags: <Mode extends import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
|
|
1234
|
+
readonly params: {
|
|
1235
|
+
readonly registryId: string;
|
|
1236
|
+
};
|
|
1237
|
+
readonly query: {
|
|
1238
|
+
readonly repository: string;
|
|
1239
|
+
};
|
|
1240
|
+
readonly responseMode?: Mode;
|
|
1241
|
+
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
1242
|
+
readonly repository: string;
|
|
1243
|
+
readonly tags: readonly string[];
|
|
1244
|
+
}, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("@sealant/api-contracts").RegistriesBadGatewayError | import("@sealant/api-contracts").RegistriesNotFoundError | import("effect/Schema").SchemaError), [Mode] extends ["response-only"] ? never : never>;
|
|
1245
|
+
readonly pingRegistry: <Mode extends import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
|
|
1246
|
+
readonly params: {
|
|
1247
|
+
readonly registryId: string;
|
|
1248
|
+
};
|
|
1249
|
+
readonly responseMode?: Mode;
|
|
1250
|
+
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
1251
|
+
readonly name: string;
|
|
1252
|
+
readonly reachable: true;
|
|
1253
|
+
}, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("@sealant/api-contracts").RegistriesBadGatewayError | import("@sealant/api-contracts").RegistriesNotFoundError | import("effect/Schema").SchemaError), [Mode] extends ["response-only"] ? never : never>;
|
|
1254
|
+
};
|
|
1255
|
+
readonly runs: {
|
|
1256
|
+
readonly createRun: <Mode extends import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
|
|
1257
|
+
readonly payload: {
|
|
1258
|
+
readonly sandboxId: string;
|
|
1259
|
+
readonly harnessId: string;
|
|
1260
|
+
readonly ownerUserId: string;
|
|
1261
|
+
readonly mode?: "interactive" | "one-shot" | undefined;
|
|
1262
|
+
readonly prompt?: string | undefined;
|
|
1263
|
+
readonly attemptId?: string | undefined;
|
|
1264
|
+
readonly command?: {
|
|
1265
|
+
readonly executable: string;
|
|
1266
|
+
readonly args: readonly string[];
|
|
1267
|
+
readonly cwd?: string | undefined;
|
|
1268
|
+
} | undefined;
|
|
1269
|
+
};
|
|
1270
|
+
readonly responseMode?: Mode;
|
|
1271
|
+
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
1272
|
+
readonly runId: string;
|
|
1273
|
+
readonly sandboxId: string;
|
|
1274
|
+
readonly attemptId?: string | undefined;
|
|
1275
|
+
readonly ownerUserId: string;
|
|
1276
|
+
readonly harnessId: string;
|
|
1277
|
+
readonly mode: "interactive" | "one-shot";
|
|
1278
|
+
readonly status: "cancelled" | "completed" | "failed" | "queued" | "running";
|
|
1279
|
+
readonly prompt?: string | undefined;
|
|
1280
|
+
readonly exitCode?: number | undefined;
|
|
1281
|
+
readonly errorMessage?: string | undefined;
|
|
1282
|
+
readonly startedAt?: string | undefined;
|
|
1283
|
+
readonly finishedAt?: string | undefined;
|
|
1284
|
+
readonly createdAt: string;
|
|
1285
|
+
readonly updatedAt: string;
|
|
1286
|
+
}, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("@sealant/api-contracts").RunBadRequestError | import("@sealant/api-contracts").RunInternalServerError | import("@sealant/api-contracts").RunNotFoundError | import("effect/Schema").SchemaError), [Mode] extends ["response-only"] ? never : never>;
|
|
1287
|
+
readonly getRun: <Mode extends import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
|
|
1288
|
+
readonly params: {
|
|
1289
|
+
readonly runId: string;
|
|
1290
|
+
};
|
|
1291
|
+
readonly responseMode?: Mode;
|
|
1292
|
+
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
1293
|
+
readonly runId: string;
|
|
1294
|
+
readonly sandboxId: string;
|
|
1295
|
+
readonly attemptId?: string | undefined;
|
|
1296
|
+
readonly ownerUserId: string;
|
|
1297
|
+
readonly harnessId: string;
|
|
1298
|
+
readonly mode: "interactive" | "one-shot";
|
|
1299
|
+
readonly status: "cancelled" | "completed" | "failed" | "queued" | "running";
|
|
1300
|
+
readonly prompt?: string | undefined;
|
|
1301
|
+
readonly exitCode?: number | undefined;
|
|
1302
|
+
readonly errorMessage?: string | undefined;
|
|
1303
|
+
readonly startedAt?: string | undefined;
|
|
1304
|
+
readonly finishedAt?: string | undefined;
|
|
1305
|
+
readonly createdAt: string;
|
|
1306
|
+
readonly updatedAt: string;
|
|
1307
|
+
}, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("@sealant/api-contracts").RunInternalServerError | import("@sealant/api-contracts").RunNotFoundError | import("effect/Schema").SchemaError), [Mode] extends ["response-only"] ? never : never>;
|
|
1308
|
+
readonly getRunChanges: <Mode extends import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
|
|
1309
|
+
readonly params: {
|
|
1310
|
+
readonly runId: string;
|
|
1311
|
+
};
|
|
1312
|
+
readonly responseMode?: Mode;
|
|
1313
|
+
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
1314
|
+
readonly files: readonly {
|
|
1315
|
+
readonly path: string;
|
|
1316
|
+
readonly change: "added" | "deleted" | "modified" | "renamed";
|
|
1317
|
+
readonly oldPath?: string | undefined;
|
|
1318
|
+
}[];
|
|
1319
|
+
readonly diff: string;
|
|
1320
|
+
}, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("@sealant/api-contracts").RunInternalServerError | import("@sealant/api-contracts").RunNotFoundError | import("effect/Schema").SchemaError), [Mode] extends ["response-only"] ? never : never>;
|
|
1321
|
+
readonly getRunEvent: <Mode extends import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
|
|
1322
|
+
readonly params: {
|
|
1323
|
+
readonly runId: string;
|
|
1324
|
+
readonly sequence: string;
|
|
1325
|
+
};
|
|
1326
|
+
readonly responseMode?: Mode;
|
|
1327
|
+
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
1328
|
+
readonly eventId: string;
|
|
1329
|
+
readonly runId: string;
|
|
1330
|
+
readonly runtimeId: string;
|
|
1331
|
+
readonly executionId?: string | undefined;
|
|
1332
|
+
readonly sessionId?: string | undefined;
|
|
1333
|
+
readonly processId?: string | undefined;
|
|
1334
|
+
readonly requestId?: string | undefined;
|
|
1335
|
+
readonly schemaVersion: number;
|
|
1336
|
+
readonly sequence: string;
|
|
1337
|
+
readonly observedAt: string;
|
|
1338
|
+
readonly monotonicTimestamp: string;
|
|
1339
|
+
readonly captureMethod: number;
|
|
1340
|
+
readonly confidence: number;
|
|
1341
|
+
readonly payloadCase: string;
|
|
1342
|
+
readonly payload: unknown;
|
|
1343
|
+
readonly ingestedAt: string;
|
|
1344
|
+
}, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("@sealant/api-contracts").RunBadRequestError | import("@sealant/api-contracts").RunInternalServerError | import("@sealant/api-contracts").RunNotFoundError | import("effect/Schema").SchemaError), [Mode] extends ["response-only"] ? never : never>;
|
|
1345
|
+
readonly getRunLoss: <Mode extends import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
|
|
1346
|
+
readonly params: {
|
|
1347
|
+
readonly runId: string;
|
|
1348
|
+
};
|
|
1349
|
+
readonly responseMode?: Mode;
|
|
1350
|
+
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
1351
|
+
readonly runId: string;
|
|
1352
|
+
readonly droppedEventCount: string;
|
|
1353
|
+
readonly sequenceGapCount: number;
|
|
1354
|
+
readonly watchOverflowCount: number;
|
|
1355
|
+
readonly earlyClose: boolean;
|
|
1356
|
+
readonly spans: readonly {
|
|
1357
|
+
readonly kind: "dropped_event" | "early_close" | "sequence_gap" | "watch_overflow";
|
|
1358
|
+
readonly fromSequence?: string | undefined;
|
|
1359
|
+
readonly toSequence?: string | undefined;
|
|
1360
|
+
readonly droppedCount?: string | undefined;
|
|
1361
|
+
readonly detectedVia: "gap" | "marker";
|
|
1362
|
+
readonly reason?: string | undefined;
|
|
1363
|
+
}[];
|
|
1364
|
+
}, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("@sealant/api-contracts").RunInternalServerError | import("@sealant/api-contracts").RunNotFoundError | import("effect/Schema").SchemaError), [Mode] extends ["response-only"] ? never : never>;
|
|
1365
|
+
readonly getRunScrollback: <Mode extends import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
|
|
1366
|
+
readonly params: {
|
|
1367
|
+
readonly runId: string;
|
|
1368
|
+
};
|
|
1369
|
+
readonly query: {
|
|
1370
|
+
readonly processId: string;
|
|
1371
|
+
readonly stream: "stderr" | "stdout";
|
|
1372
|
+
readonly atSequence?: string | undefined;
|
|
1373
|
+
};
|
|
1374
|
+
readonly responseMode?: Mode;
|
|
1375
|
+
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
1376
|
+
readonly processId: string;
|
|
1377
|
+
readonly stream: "stderr" | "stdout";
|
|
1378
|
+
readonly byteCount: number;
|
|
1379
|
+
readonly contentBase64: string;
|
|
1380
|
+
}, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("@sealant/api-contracts").RunBadRequestError | import("@sealant/api-contracts").RunInternalServerError | import("@sealant/api-contracts").RunNotFoundError | import("effect/Schema").SchemaError), [Mode] extends ["response-only"] ? never : never>;
|
|
1381
|
+
readonly getRunTimeline: <Mode extends import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
|
|
1382
|
+
readonly params: {
|
|
1383
|
+
readonly runId: string;
|
|
1384
|
+
};
|
|
1385
|
+
readonly query: {
|
|
1386
|
+
readonly fromSequence?: string | undefined;
|
|
1387
|
+
readonly toSequence?: string | undefined;
|
|
1388
|
+
readonly limit?: string | undefined;
|
|
1389
|
+
readonly kinds?: string | undefined;
|
|
1390
|
+
};
|
|
1391
|
+
readonly responseMode?: Mode;
|
|
1392
|
+
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
1393
|
+
readonly items: readonly {
|
|
1394
|
+
readonly eventId: string;
|
|
1395
|
+
readonly sequence: string;
|
|
1396
|
+
readonly kind: string;
|
|
1397
|
+
readonly occurredAt: string;
|
|
1398
|
+
readonly summary: string;
|
|
1399
|
+
readonly ref?: unknown;
|
|
1400
|
+
readonly processId?: string | undefined;
|
|
1401
|
+
readonly captureMethod: number;
|
|
1402
|
+
readonly confidence: number;
|
|
1403
|
+
}[];
|
|
1404
|
+
}, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("@sealant/api-contracts").RunBadRequestError | import("@sealant/api-contracts").RunInternalServerError | import("@sealant/api-contracts").RunNotFoundError | import("effect/Schema").SchemaError), [Mode] extends ["response-only"] ? never : never>;
|
|
1405
|
+
readonly listRuns: <Mode extends import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
|
|
1406
|
+
readonly query: {
|
|
1407
|
+
readonly sandboxId?: string | undefined;
|
|
1408
|
+
readonly ownerUserId?: string | undefined;
|
|
1409
|
+
readonly status?: "cancelled" | "completed" | "failed" | "queued" | "running" | undefined;
|
|
1410
|
+
readonly limit?: string | undefined;
|
|
1411
|
+
};
|
|
1412
|
+
readonly responseMode?: Mode;
|
|
1413
|
+
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
1414
|
+
readonly items: readonly {
|
|
1415
|
+
readonly runId: string;
|
|
1416
|
+
readonly sandboxId: string;
|
|
1417
|
+
readonly attemptId?: string | undefined;
|
|
1418
|
+
readonly ownerUserId: string;
|
|
1419
|
+
readonly harnessId: string;
|
|
1420
|
+
readonly mode: "interactive" | "one-shot";
|
|
1421
|
+
readonly status: "cancelled" | "completed" | "failed" | "queued" | "running";
|
|
1422
|
+
readonly prompt?: string | undefined;
|
|
1423
|
+
readonly exitCode?: number | undefined;
|
|
1424
|
+
readonly errorMessage?: string | undefined;
|
|
1425
|
+
readonly startedAt?: string | undefined;
|
|
1426
|
+
readonly finishedAt?: string | undefined;
|
|
1427
|
+
readonly createdAt: string;
|
|
1428
|
+
readonly updatedAt: string;
|
|
1429
|
+
}[];
|
|
1430
|
+
}, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("@sealant/api-contracts").RunBadRequestError | import("@sealant/api-contracts").RunInternalServerError | import("effect/Schema").SchemaError), [Mode] extends ["response-only"] ? never : never>;
|
|
1431
|
+
readonly updateRun: <Mode extends import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
|
|
1432
|
+
readonly params: {
|
|
1433
|
+
readonly runId: string;
|
|
1434
|
+
};
|
|
1435
|
+
readonly payload: {
|
|
1436
|
+
readonly status?: "cancelled" | "completed" | "failed" | "queued" | "running" | undefined;
|
|
1437
|
+
readonly exitCode?: number | undefined;
|
|
1438
|
+
readonly errorMessage?: string | undefined;
|
|
1439
|
+
};
|
|
1440
|
+
readonly responseMode?: Mode;
|
|
1441
|
+
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
1442
|
+
readonly runId: string;
|
|
1443
|
+
readonly sandboxId: string;
|
|
1444
|
+
readonly attemptId?: string | undefined;
|
|
1445
|
+
readonly ownerUserId: string;
|
|
1446
|
+
readonly harnessId: string;
|
|
1447
|
+
readonly mode: "interactive" | "one-shot";
|
|
1448
|
+
readonly status: "cancelled" | "completed" | "failed" | "queued" | "running";
|
|
1449
|
+
readonly prompt?: string | undefined;
|
|
1450
|
+
readonly exitCode?: number | undefined;
|
|
1451
|
+
readonly errorMessage?: string | undefined;
|
|
1452
|
+
readonly startedAt?: string | undefined;
|
|
1453
|
+
readonly finishedAt?: string | undefined;
|
|
1454
|
+
readonly createdAt: string;
|
|
1455
|
+
readonly updatedAt: string;
|
|
1456
|
+
}, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("@sealant/api-contracts").RunBadRequestError | import("@sealant/api-contracts").RunInternalServerError | import("@sealant/api-contracts").RunNotFoundError | import("effect/Schema").SchemaError), [Mode] extends ["response-only"] ? never : never>;
|
|
1457
|
+
};
|
|
1458
|
+
readonly sandboxes: {
|
|
1459
|
+
readonly createSandbox: <Mode extends import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
|
|
1460
|
+
readonly headers: {
|
|
1461
|
+
readonly "idempotency-key"?: string | undefined;
|
|
1462
|
+
};
|
|
1463
|
+
readonly payload: {
|
|
1464
|
+
readonly ownerUserId: string;
|
|
1465
|
+
readonly registryId: string;
|
|
1466
|
+
readonly repository: string;
|
|
1467
|
+
readonly tag: string;
|
|
1468
|
+
readonly name?: string | undefined;
|
|
1469
|
+
readonly sourceSelection?: {
|
|
1470
|
+
readonly provider: "github";
|
|
1471
|
+
readonly installationId: string;
|
|
1472
|
+
readonly installationRepositoryId: string;
|
|
1473
|
+
readonly ref?: string | undefined;
|
|
1474
|
+
} | undefined;
|
|
1475
|
+
readonly dotfilesSelection?: {
|
|
1476
|
+
readonly provider: "github";
|
|
1477
|
+
readonly installationId: string;
|
|
1478
|
+
readonly installationRepositoryId: string;
|
|
1479
|
+
readonly ref?: string | undefined;
|
|
1480
|
+
} | undefined;
|
|
1481
|
+
readonly credentials?: {
|
|
1482
|
+
readonly profileId?: string | undefined;
|
|
1483
|
+
readonly claude?: string | undefined;
|
|
1484
|
+
readonly codex?: string | undefined;
|
|
1485
|
+
readonly github?: string | undefined;
|
|
1486
|
+
} | undefined;
|
|
1487
|
+
readonly spec: unknown;
|
|
1488
|
+
};
|
|
1489
|
+
readonly responseMode?: Mode;
|
|
1490
|
+
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
1491
|
+
readonly sandboxId: string;
|
|
1492
|
+
readonly name: string;
|
|
1493
|
+
readonly status: "cancelled" | "failed" | "queued" | "ready" | "running";
|
|
1494
|
+
readonly registryId: string;
|
|
1495
|
+
readonly repository: string;
|
|
1496
|
+
readonly tag: string;
|
|
1497
|
+
}, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("@sealant/api-contracts").SandboxBadGatewayError | import("@sealant/api-contracts").SandboxBadRequestError | import("@sealant/api-contracts").SandboxConflictError | import("@sealant/api-contracts").SandboxForbiddenError | import("@sealant/api-contracts").SandboxInternalServerError | import("@sealant/api-contracts").SandboxNotFoundError | import("@sealant/api-contracts").SandboxServiceUnavailableError | import("effect/Schema").SchemaError), [Mode] extends ["response-only"] ? never : never>;
|
|
1498
|
+
readonly getSandbox: <Mode extends import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
|
|
1499
|
+
readonly params: {
|
|
1500
|
+
readonly sandboxId: string;
|
|
1501
|
+
};
|
|
1502
|
+
readonly responseMode?: Mode;
|
|
1503
|
+
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
1504
|
+
readonly sandboxId: string;
|
|
1505
|
+
readonly name: string;
|
|
1506
|
+
readonly ownerUserId: string;
|
|
1507
|
+
readonly status: "cancelled" | "failed" | "queued" | "ready" | "running";
|
|
1508
|
+
readonly registryId?: string | undefined;
|
|
1509
|
+
readonly repository?: string | undefined;
|
|
1510
|
+
readonly tag?: string | undefined;
|
|
1511
|
+
readonly runtime?: {
|
|
1512
|
+
readonly adapter: "docker" | "k3s" | "k8s";
|
|
1513
|
+
readonly resourceId: string;
|
|
1514
|
+
readonly reference: string;
|
|
1515
|
+
readonly status: "failed" | "pending" | "ready" | "running" | "stopped";
|
|
1516
|
+
readonly endpoint?: string | undefined;
|
|
1517
|
+
} | undefined;
|
|
1518
|
+
readonly publishedImage?: {
|
|
1519
|
+
readonly reference: string;
|
|
1520
|
+
readonly digestReference: string;
|
|
1521
|
+
readonly digest: string;
|
|
1522
|
+
} | undefined;
|
|
1523
|
+
readonly error?: {
|
|
1524
|
+
readonly message: string;
|
|
1525
|
+
readonly code?: string | undefined;
|
|
1526
|
+
} | undefined;
|
|
1527
|
+
readonly createdAt: string;
|
|
1528
|
+
readonly updatedAt: string;
|
|
1529
|
+
readonly startedAt?: string | undefined;
|
|
1530
|
+
readonly finishedAt?: string | undefined;
|
|
1531
|
+
readonly spec?: unknown;
|
|
1532
|
+
}, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("@sealant/api-contracts").SandboxInternalServerError | import("@sealant/api-contracts").SandboxNotFoundError | import("effect/Schema").SchemaError), [Mode] extends ["response-only"] ? never : never>;
|
|
1533
|
+
readonly getSandboxSshTarget: <Mode extends import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
|
|
1534
|
+
readonly params: {
|
|
1535
|
+
readonly sandboxId: string;
|
|
1536
|
+
};
|
|
1537
|
+
readonly headers: {
|
|
1538
|
+
readonly "x-sealant-gateway-token"?: string | undefined;
|
|
1539
|
+
readonly "x-sealant-principal-id"?: string | undefined;
|
|
1540
|
+
};
|
|
1541
|
+
readonly responseMode?: Mode;
|
|
1542
|
+
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
1543
|
+
readonly sandboxId: string;
|
|
1544
|
+
readonly attemptId: string;
|
|
1545
|
+
readonly runtime: {
|
|
1546
|
+
readonly adapter: "docker" | "k3s" | "k8s";
|
|
1547
|
+
readonly resourceId: string;
|
|
1548
|
+
readonly reference: string;
|
|
1549
|
+
readonly status: "failed" | "pending" | "ready" | "running" | "stopped";
|
|
1550
|
+
readonly endpoint: string;
|
|
1551
|
+
};
|
|
1552
|
+
}, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("@sealant/api-contracts").SandboxConflictError | import("@sealant/api-contracts").SandboxInternalServerError | import("@sealant/api-contracts").SandboxNotFoundError | import("@sealant/api-contracts").SandboxServiceUnavailableError | import("@sealant/api-contracts").SandboxUnauthorizedError | import("effect/Schema").SchemaError), [Mode] extends ["response-only"] ? never : never>;
|
|
1553
|
+
readonly listSandboxAttempts: <Mode extends import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
|
|
1554
|
+
readonly params: {
|
|
1555
|
+
readonly sandboxId: string;
|
|
1556
|
+
};
|
|
1557
|
+
readonly query: {
|
|
1558
|
+
readonly limit?: string | undefined;
|
|
1559
|
+
};
|
|
1560
|
+
readonly responseMode?: Mode;
|
|
1561
|
+
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
1562
|
+
readonly items: readonly {
|
|
1563
|
+
readonly attemptId: string;
|
|
1564
|
+
readonly relation: "launch" | "rebuild" | "resume" | "retry";
|
|
1565
|
+
readonly status: "cancelled" | "failed" | "queued" | "ready" | "running";
|
|
1566
|
+
readonly triggerType: "api" | "manual" | "retry" | "schedule";
|
|
1567
|
+
readonly triggerRef?: string | undefined;
|
|
1568
|
+
readonly runtime?: {
|
|
1569
|
+
readonly adapter: "docker" | "k3s" | "k8s";
|
|
1570
|
+
readonly resourceId: string;
|
|
1571
|
+
readonly reference: string;
|
|
1572
|
+
readonly status: "failed" | "pending" | "ready" | "running" | "stopped";
|
|
1573
|
+
readonly endpoint?: string | undefined;
|
|
1574
|
+
} | undefined;
|
|
1575
|
+
readonly publishedImage?: {
|
|
1576
|
+
readonly reference: string;
|
|
1577
|
+
readonly digestReference: string;
|
|
1578
|
+
readonly digest: string;
|
|
1579
|
+
} | undefined;
|
|
1580
|
+
readonly error?: {
|
|
1581
|
+
readonly message: string;
|
|
1582
|
+
readonly code?: string | undefined;
|
|
1583
|
+
} | undefined;
|
|
1584
|
+
readonly spec?: unknown;
|
|
1585
|
+
readonly queuedAt: string;
|
|
1586
|
+
readonly createdAt: string;
|
|
1587
|
+
readonly updatedAt: string;
|
|
1588
|
+
readonly linkedAt: string;
|
|
1589
|
+
readonly startedAt?: string | undefined;
|
|
1590
|
+
readonly finishedAt?: string | undefined;
|
|
1591
|
+
readonly durationMs?: number | undefined;
|
|
1592
|
+
}[];
|
|
1593
|
+
}, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("@sealant/api-contracts").SandboxBadRequestError | import("@sealant/api-contracts").SandboxInternalServerError | import("@sealant/api-contracts").SandboxNotFoundError | import("effect/Schema").SchemaError), [Mode] extends ["response-only"] ? never : never>;
|
|
1594
|
+
readonly listSandboxEvents: <Mode extends import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
|
|
1595
|
+
readonly params: {
|
|
1596
|
+
readonly sandboxId: string;
|
|
1597
|
+
};
|
|
1598
|
+
readonly query: {
|
|
1599
|
+
readonly limit?: string | undefined;
|
|
1600
|
+
};
|
|
1601
|
+
readonly responseMode?: Mode;
|
|
1602
|
+
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
1603
|
+
readonly items: readonly {
|
|
1604
|
+
readonly eventId: string;
|
|
1605
|
+
readonly sandboxId: string;
|
|
1606
|
+
readonly attemptId?: string | undefined;
|
|
1607
|
+
readonly type: "attempt.cancelled" | "attempt.failed" | "attempt.queued" | "attempt.running" | "attempt.succeeded" | "image.published" | "runtime.failed" | "runtime.pending" | "runtime.ready" | "runtime.running" | "runtime.stopped" | "sandbox.created";
|
|
1608
|
+
readonly occurredAt: string;
|
|
1609
|
+
readonly message?: string | undefined;
|
|
1610
|
+
readonly data?: unknown;
|
|
1611
|
+
}[];
|
|
1612
|
+
}, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("@sealant/api-contracts").SandboxBadRequestError | import("@sealant/api-contracts").SandboxInternalServerError | import("@sealant/api-contracts").SandboxNotFoundError | import("effect/Schema").SchemaError), [Mode] extends ["response-only"] ? never : never>;
|
|
1613
|
+
readonly listSandboxes: <Mode extends import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
|
|
1614
|
+
readonly query: {
|
|
1615
|
+
readonly ownerUserId: string;
|
|
1616
|
+
readonly status?: "cancelled" | "failed" | "queued" | "ready" | "running" | undefined;
|
|
1617
|
+
readonly limit?: string | undefined;
|
|
1618
|
+
};
|
|
1619
|
+
readonly responseMode?: Mode;
|
|
1620
|
+
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
1621
|
+
readonly items: readonly {
|
|
1622
|
+
readonly sandboxId: string;
|
|
1623
|
+
readonly name: string;
|
|
1624
|
+
readonly ownerUserId: string;
|
|
1625
|
+
readonly status: "cancelled" | "failed" | "queued" | "ready" | "running";
|
|
1626
|
+
readonly registryId?: string | undefined;
|
|
1627
|
+
readonly repository?: string | undefined;
|
|
1628
|
+
readonly tag?: string | undefined;
|
|
1629
|
+
readonly runtime?: {
|
|
1630
|
+
readonly adapter: "docker" | "k3s" | "k8s";
|
|
1631
|
+
readonly resourceId: string;
|
|
1632
|
+
readonly reference: string;
|
|
1633
|
+
readonly status: "failed" | "pending" | "ready" | "running" | "stopped";
|
|
1634
|
+
readonly endpoint?: string | undefined;
|
|
1635
|
+
} | undefined;
|
|
1636
|
+
readonly publishedImage?: {
|
|
1637
|
+
readonly reference: string;
|
|
1638
|
+
readonly digestReference: string;
|
|
1639
|
+
readonly digest: string;
|
|
1640
|
+
} | undefined;
|
|
1641
|
+
readonly error?: {
|
|
1642
|
+
readonly message: string;
|
|
1643
|
+
readonly code?: string | undefined;
|
|
1644
|
+
} | undefined;
|
|
1645
|
+
readonly createdAt: string;
|
|
1646
|
+
readonly updatedAt: string;
|
|
1647
|
+
readonly startedAt?: string | undefined;
|
|
1648
|
+
readonly finishedAt?: string | undefined;
|
|
1649
|
+
}[];
|
|
1650
|
+
}, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("@sealant/api-contracts").SandboxBadRequestError | import("@sealant/api-contracts").SandboxInternalServerError | import("effect/Schema").SchemaError), [Mode] extends ["response-only"] ? never : never>;
|
|
1651
|
+
readonly renameSandbox: <Mode extends import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
|
|
1652
|
+
readonly params: {
|
|
1653
|
+
readonly sandboxId: string;
|
|
1654
|
+
};
|
|
1655
|
+
readonly payload: {
|
|
1656
|
+
readonly name: string;
|
|
1657
|
+
};
|
|
1658
|
+
readonly responseMode?: Mode;
|
|
1659
|
+
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
1660
|
+
readonly sandboxId: string;
|
|
1661
|
+
readonly name: string;
|
|
1662
|
+
readonly updatedAt: string;
|
|
1663
|
+
}, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("@sealant/api-contracts").SandboxInternalServerError | import("@sealant/api-contracts").SandboxNotFoundError | import("effect/Schema").SchemaError), [Mode] extends ["response-only"] ? never : never>;
|
|
1664
|
+
};
|
|
1665
|
+
readonly sshKeys: {
|
|
1666
|
+
readonly archiveSshKey: <Mode extends import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
|
|
1667
|
+
readonly params: {
|
|
1668
|
+
readonly sshKeyId: string;
|
|
1669
|
+
};
|
|
1670
|
+
readonly query: {
|
|
1671
|
+
readonly ownerUserId: string;
|
|
1672
|
+
};
|
|
1673
|
+
readonly responseMode?: Mode;
|
|
1674
|
+
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
1675
|
+
readonly sshKeyId: string;
|
|
1676
|
+
readonly ownerUserId: string;
|
|
1677
|
+
readonly name: string;
|
|
1678
|
+
readonly algorithm: string;
|
|
1679
|
+
readonly fingerprint: string;
|
|
1680
|
+
readonly createdAt: string;
|
|
1681
|
+
}, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("effect/Schema").SchemaError | import("@sealant/api-contracts").SshKeyInternalServerError | import("@sealant/api-contracts").SshKeyNotFoundError), [Mode] extends ["response-only"] ? never : never>;
|
|
1682
|
+
readonly createSshKey: <Mode extends import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
|
|
1683
|
+
readonly payload: {
|
|
1684
|
+
readonly ownerUserId: string;
|
|
1685
|
+
readonly name?: string | undefined;
|
|
1686
|
+
readonly publicKey: string;
|
|
1687
|
+
};
|
|
1688
|
+
readonly responseMode?: Mode;
|
|
1689
|
+
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
1690
|
+
readonly sshKeyId: string;
|
|
1691
|
+
readonly ownerUserId: string;
|
|
1692
|
+
readonly name: string;
|
|
1693
|
+
readonly algorithm: string;
|
|
1694
|
+
readonly fingerprint: string;
|
|
1695
|
+
readonly createdAt: string;
|
|
1696
|
+
}, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("effect/Schema").SchemaError | import("@sealant/api-contracts").SshKeyBadRequestError | import("@sealant/api-contracts").SshKeyConflictError | import("@sealant/api-contracts").SshKeyInternalServerError | import("@sealant/api-contracts").SshKeyNotFoundError), [Mode] extends ["response-only"] ? never : never>;
|
|
1697
|
+
readonly listSshKeys: <Mode extends import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
|
|
1698
|
+
readonly query: {
|
|
1699
|
+
readonly ownerUserId: string;
|
|
1700
|
+
};
|
|
1701
|
+
readonly responseMode?: Mode;
|
|
1702
|
+
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
1703
|
+
readonly items: readonly {
|
|
1704
|
+
readonly sshKeyId: string;
|
|
1705
|
+
readonly ownerUserId: string;
|
|
1706
|
+
readonly name: string;
|
|
1707
|
+
readonly algorithm: string;
|
|
1708
|
+
readonly fingerprint: string;
|
|
1709
|
+
readonly createdAt: string;
|
|
1710
|
+
}[];
|
|
1711
|
+
}, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("effect/Schema").SchemaError | import("@sealant/api-contracts").SshKeyInternalServerError), [Mode] extends ["response-only"] ? never : never>;
|
|
1712
|
+
readonly resolveSshPrincipal: <Mode extends import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
|
|
1713
|
+
readonly headers: {
|
|
1714
|
+
readonly "x-sealant-gateway-token"?: string | undefined;
|
|
1715
|
+
};
|
|
1716
|
+
readonly payload: {
|
|
1717
|
+
readonly algo: string;
|
|
1718
|
+
readonly publicKeyBase64: string;
|
|
1719
|
+
};
|
|
1720
|
+
readonly responseMode?: Mode;
|
|
1721
|
+
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
1722
|
+
readonly principalId: string;
|
|
1723
|
+
readonly sshKeyId: string;
|
|
1724
|
+
readonly fingerprint: string;
|
|
1725
|
+
}, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("effect/Schema").SchemaError | import("@sealant/api-contracts").SshKeyInternalServerError | import("@sealant/api-contracts").SshKeyNotFoundError | import("@sealant/api-contracts").SshKeyServiceUnavailableError | import("@sealant/api-contracts").SshKeyUnauthorizedError), [Mode] extends ["response-only"] ? never : never>;
|
|
1726
|
+
};
|
|
1727
|
+
readonly system: {
|
|
1728
|
+
readonly getIndex: <Mode extends import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: void | {
|
|
1729
|
+
readonly responseMode?: Mode;
|
|
1730
|
+
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
1731
|
+
readonly name: string;
|
|
1732
|
+
readonly version: string;
|
|
1733
|
+
readonly docsPath: string;
|
|
1734
|
+
readonly openApiPath: string;
|
|
1735
|
+
}, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("effect/Schema").SchemaError), [Mode] extends ["response-only"] ? never : never>;
|
|
1736
|
+
readonly getSetupState: <Mode extends import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: void | {
|
|
1737
|
+
readonly responseMode?: Mode;
|
|
1738
|
+
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
1739
|
+
readonly needsSetup: boolean;
|
|
1740
|
+
readonly sshGateway: {
|
|
1741
|
+
readonly host: string;
|
|
1742
|
+
readonly port: number;
|
|
1743
|
+
readonly usernamePrefix: string;
|
|
1744
|
+
} | null;
|
|
1745
|
+
}, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("effect/Schema").SchemaError | import("@sealant/api-contracts").SystemInternalServerError), [Mode] extends ["response-only"] ? never : never>;
|
|
1746
|
+
readonly health: <Mode extends import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: void | {
|
|
1747
|
+
readonly responseMode?: Mode;
|
|
1748
|
+
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
1749
|
+
readonly status: "ok";
|
|
1750
|
+
}, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("effect/Schema").SchemaError), [Mode] extends ["response-only"] ? never : never>;
|
|
1751
|
+
readonly ready: <Mode extends import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: void | {
|
|
1752
|
+
readonly responseMode?: Mode;
|
|
1753
|
+
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
1754
|
+
readonly status: "ok";
|
|
1755
|
+
}, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("effect/Schema").SchemaError), [Mode] extends ["response-only"] ? never : never>;
|
|
1756
|
+
};
|
|
1757
|
+
}>;
|
|
1758
|
+
export declare class SealantApiClient extends SealantApiClient_base {
|
|
1759
|
+
}
|
|
1760
|
+
/** Live layer: derives the client over the global-fetch `HttpClient`, with an optional bearer token. */
|
|
1761
|
+
export declare const sealantApiClientLayer: (config: SealantInternalConfig) => Layer.Layer<SealantApiClient, never, never>;
|
|
1762
|
+
export {};
|