@opencode/protocol 2.0.20 → 2.0.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/groups/session.d.ts
CHANGED
|
@@ -11298,6 +11298,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
|
|
|
11298
11298
|
readonly answer: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean, Schema.$Array<Schema.String>]>>;
|
|
11299
11299
|
}>, Schema.Struct<{
|
|
11300
11300
|
readonly status: Schema.Literal<"cancelled">;
|
|
11301
|
+
readonly message: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
11301
11302
|
}>]>;
|
|
11302
11303
|
readonly fields: Schema.NonEmptyArray<Schema.Union<readonly [Schema.Struct<{
|
|
11303
11304
|
readonly type: Schema.Literal<"string">;
|
|
@@ -11437,7 +11438,9 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
|
|
|
11437
11438
|
formID: Schema.brand<Schema.String, "Form.ID"> & {
|
|
11438
11439
|
create: (id?: string) => string & import("effect/Brand").Brand<"Form.ID">;
|
|
11439
11440
|
};
|
|
11440
|
-
}>>,
|
|
11441
|
+
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
11442
|
+
readonly message: Schema.optional<Schema.String>;
|
|
11443
|
+
}>>, never, never, Schema.toCodecJson<HttpApiSchema.NoContent>, Schema.toCodecJson<typeof SessionNotFoundError | typeof FormNotFoundError | typeof FormAlreadySettledError>, FormI, HttpApiMiddleware.Requires<FormI>> | HttpApiEndpoint.HttpApiEndpoint<"session.environment", "PUT", "/api/session/:sessionID/environment", Schema.toCodecStringTree<Schema.Struct<{
|
|
11441
11444
|
sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
11442
11445
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
11443
11446
|
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
package/dist/groups/session.js
CHANGED
|
@@ -614,6 +614,7 @@ export const makeSessionGroup = (sessionLocationMiddleware, formLocationMiddlewa
|
|
|
614
614
|
})))
|
|
615
615
|
.add(HttpApiEndpoint.delete("session.form.cancel", "/api/session/:sessionID/form/:formID", {
|
|
616
616
|
params: { sessionID: Schema.String, formID: Form.ID },
|
|
617
|
+
query: Schema.Struct({ message: Schema.optional(Schema.String) }),
|
|
617
618
|
success: HttpApiSchema.NoContent,
|
|
618
619
|
error: [SessionNotFoundError, FormAlreadySettledError, FormNotFoundError],
|
|
619
620
|
})
|
|
@@ -621,7 +622,7 @@ export const makeSessionGroup = (sessionLocationMiddleware, formLocationMiddlewa
|
|
|
621
622
|
.annotateMerge(OpenApi.annotations({
|
|
622
623
|
identifier: "session.form.cancel",
|
|
623
624
|
summary: "Cancel form",
|
|
624
|
-
description: "Cancel a pending form.",
|
|
625
|
+
description: "Cancel a pending form, optionally telling the asker why it was not answered.",
|
|
625
626
|
})))
|
|
626
627
|
.add(HttpApiEndpoint.put("session.environment", "/api/session/:sessionID/environment", {
|
|
627
628
|
params: { sessionID: Session.ID },
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json.schemastore.org/package.json",
|
|
3
3
|
"name": "@opencode/protocol",
|
|
4
|
-
"version": "2.0.
|
|
4
|
+
"version": "2.0.21",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"repository": {
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"typecheck": "tsgo --noEmit"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@opencode/schema": "2.0.
|
|
35
|
+
"@opencode/schema": "2.0.21",
|
|
36
36
|
"effect": "4.0.0-rc.112"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|