@sealant/api-contracts-next 0.40.0-next.783 → 0.40.0-next.784
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.
|
@@ -717,9 +717,11 @@ export declare const ControlPlaneAPI: HttpApi.HttpApi<"sealantControlPlaneApi",
|
|
|
717
717
|
readonly workspaceId: import("effect/Schema").String;
|
|
718
718
|
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
719
719
|
readonly worktreeKey: import("effect/Schema").brand<import("effect/Schema").String, "ResourceWorktreeKey">;
|
|
720
|
+
readonly aliases: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").brand<import("effect/Schema").String, "ResourceInstanceAlias">, import("effect/Schema").Literals<readonly ["project", "worktree"]>>>;
|
|
720
721
|
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
721
722
|
readonly workspaceId: import("effect/Schema").String;
|
|
722
723
|
readonly worktreeKey: import("effect/Schema").brand<import("effect/Schema").String, "ResourceWorktreeKey">;
|
|
724
|
+
readonly aliases: import("effect/Schema").NullOr<import("effect/Schema").$Record<import("effect/Schema").brand<import("effect/Schema").String, "ResourceInstanceAlias">, import("effect/Schema").Literals<readonly ["project", "worktree"]>>>;
|
|
723
725
|
readonly attachedExecutors: import("effect/Schema").Int;
|
|
724
726
|
}>>, import("effect/Schema").toCodecJson<typeof import("./resource-domains.js").ResourceDomainForbiddenError | typeof import("./resource-domains.js").ResourceDomainNotFoundError | typeof import("./resource-domains.js").ResourceDomainInternalServerError | typeof import("./resource-instances.js").ResourceRuntimeUnsupportedError | typeof import("./resource-instances.js").ResourceDomainNotActiveError | typeof import("./resource-instances.js").ResourceWorkspaceNotFoundError | typeof import("./resource-instances.js").ResourceWorkspaceLinkedElsewhereError>, RequestRefusal, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"listResourceInstances", "GET", "/v1/resource-domains/:resourceDomainId/instances", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
|
|
725
727
|
readonly resourceDomainId: import("effect/Schema").String;
|
|
@@ -217,12 +217,24 @@ export declare const listResourceInstancesQuerySchema: Schema.Struct<{
|
|
|
217
217
|
/** `true`: the archived instances, whose volumes are kept. Otherwise every other one. */
|
|
218
218
|
readonly archived: Schema.optional<Schema.Literals<readonly ["true", "false"]>>;
|
|
219
219
|
}>;
|
|
220
|
+
/** Which instance a linked workspace reaches under an alias: the project's, or its worktree's. */
|
|
221
|
+
export declare const ResourceReachLevel: Schema.Literals<readonly ["project", "worktree"]>;
|
|
222
|
+
export type ResourceReachLevel = typeof ResourceReachLevel.Type;
|
|
223
|
+
/**
|
|
224
|
+
* A link's map from alias to the level the workspace reaches it at. An alias it does not name is not
|
|
225
|
+
* reached; a link with no map reaches every project instance and its worktree's own.
|
|
226
|
+
*/
|
|
227
|
+
export declare const ResourceReachAliases: Schema.$Record<Schema.brand<Schema.String, "ResourceInstanceAlias">, Schema.Literals<readonly ["project", "worktree"]>>;
|
|
228
|
+
export type ResourceReachAliases = typeof ResourceReachAliases.Type;
|
|
220
229
|
export declare const linkResourceWorkspaceRequestSchema: Schema.Struct<{
|
|
221
230
|
readonly worktreeKey: Schema.brand<Schema.String, "ResourceWorktreeKey">;
|
|
231
|
+
/** Replaces the link's map; omitted, the link has none. */
|
|
232
|
+
readonly aliases: Schema.optional<Schema.$Record<Schema.brand<Schema.String, "ResourceInstanceAlias">, Schema.Literals<readonly ["project", "worktree"]>>>;
|
|
222
233
|
}>;
|
|
223
234
|
export declare const resourceWorkspaceLinkSchema: Schema.Struct<{
|
|
224
235
|
readonly workspaceId: Schema.String;
|
|
225
236
|
readonly worktreeKey: Schema.brand<Schema.String, "ResourceWorktreeKey">;
|
|
237
|
+
readonly aliases: Schema.NullOr<Schema.$Record<Schema.brand<Schema.String, "ResourceInstanceAlias">, Schema.Literals<readonly ["project", "worktree"]>>>;
|
|
226
238
|
/** How many of the workspace's live executors were attached by this call. */
|
|
227
239
|
readonly attachedExecutors: Schema.Int;
|
|
228
240
|
}>;
|
|
@@ -416,9 +428,12 @@ export declare const ResourceInstancesGroup: HttpApiGroup.HttpApiGroup<"resource
|
|
|
416
428
|
readonly workspaceId: Schema.String;
|
|
417
429
|
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
418
430
|
readonly worktreeKey: Schema.brand<Schema.String, "ResourceWorktreeKey">;
|
|
431
|
+
/** Replaces the link's map; omitted, the link has none. */
|
|
432
|
+
readonly aliases: Schema.optional<Schema.$Record<Schema.brand<Schema.String, "ResourceInstanceAlias">, Schema.Literals<readonly ["project", "worktree"]>>>;
|
|
419
433
|
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
420
434
|
readonly workspaceId: Schema.String;
|
|
421
435
|
readonly worktreeKey: Schema.brand<Schema.String, "ResourceWorktreeKey">;
|
|
436
|
+
readonly aliases: Schema.NullOr<Schema.$Record<Schema.brand<Schema.String, "ResourceInstanceAlias">, Schema.Literals<readonly ["project", "worktree"]>>>;
|
|
422
437
|
/** How many of the workspace's live executors were attached by this call. */
|
|
423
438
|
readonly attachedExecutors: Schema.Int;
|
|
424
439
|
}>>, Schema.toCodecJson<typeof ResourceDomainForbiddenError | typeof ResourceDomainNotFoundError | typeof ResourceDomainInternalServerError | typeof ResourceRuntimeUnsupportedError | typeof ResourceDomainNotActiveError | typeof ResourceWorkspaceNotFoundError | typeof ResourceWorkspaceLinkedElsewhereError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"listResourceInstances", "GET", "/:resourceDomainId/instances", Schema.toCodecStringTree<Schema.Struct<{
|
|
@@ -206,12 +206,22 @@ export const listResourceInstancesQuerySchema = Schema.Struct({
|
|
|
206
206
|
/** `true`: the archived instances, whose volumes are kept. Otherwise every other one. */
|
|
207
207
|
archived: Schema.optional(Schema.Literals(["true", "false"])),
|
|
208
208
|
});
|
|
209
|
+
/** Which instance a linked workspace reaches under an alias: the project's, or its worktree's. */
|
|
210
|
+
export const ResourceReachLevel = Schema.Literals(["project", "worktree"]);
|
|
211
|
+
/**
|
|
212
|
+
* A link's map from alias to the level the workspace reaches it at. An alias it does not name is not
|
|
213
|
+
* reached; a link with no map reaches every project instance and its worktree's own.
|
|
214
|
+
*/
|
|
215
|
+
export const ResourceReachAliases = Schema.Record(ResourceInstanceAlias, ResourceReachLevel);
|
|
209
216
|
export const linkResourceWorkspaceRequestSchema = Schema.Struct({
|
|
210
217
|
worktreeKey: ResourceWorktreeKey,
|
|
218
|
+
/** Replaces the link's map; omitted, the link has none. */
|
|
219
|
+
aliases: Schema.optional(ResourceReachAliases),
|
|
211
220
|
});
|
|
212
221
|
export const resourceWorkspaceLinkSchema = Schema.Struct({
|
|
213
222
|
workspaceId: Schema.String,
|
|
214
223
|
worktreeKey: ResourceWorktreeKey,
|
|
224
|
+
aliases: Schema.NullOr(ResourceReachAliases),
|
|
215
225
|
/** How many of the workspace's live executors were attached by this call. */
|
|
216
226
|
attachedExecutors: Schema.Int,
|
|
217
227
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sealant/api-contracts-next",
|
|
3
|
-
"version": "0.40.0-next.
|
|
3
|
+
"version": "0.40.0-next.784",
|
|
4
4
|
"description": "Contract-first HTTP API definitions for Sealant services",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"peerDependencies": {
|
|
37
37
|
"effect": "^4.0.5"
|
|
38
38
|
},
|
|
39
|
-
"gitHead": "
|
|
39
|
+
"gitHead": "7a1ab24adbf054ba14347516e5a0680e330f3e5e",
|
|
40
40
|
"publishConfig": {
|
|
41
41
|
"access": "public"
|
|
42
42
|
}
|