@opencode/protocol 0.0.0-dev-19654 → 0.0.0-dev-19657
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/api.d.ts +3 -3
- package/dist/api.js +2 -2
- package/dist/groups/form.d.ts +3 -651
- package/dist/groups/form.js +6 -83
- package/dist/groups/permission.d.ts +6 -13
- package/dist/groups/permission.js +1 -13
- package/dist/groups/session.d.ts +540 -24
- package/dist/groups/session.js +83 -24
- package/package.json +2 -2
package/dist/groups/session.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { InstructionEntry } from "@opencode/schema/instruction-entry";
|
|
|
3
3
|
import { Event } from "@opencode/schema/event";
|
|
4
4
|
import { Context, Effect, Schema } from "effect";
|
|
5
5
|
import { HttpApiEndpoint, HttpApiGroup, HttpApiMiddleware, HttpApiSchema } from "effect/unstable/httpapi";
|
|
6
|
-
import { ConflictError, CommandExecutionError, CommandNotFoundError, InvalidCursorError, InvalidRequestError, MessageNotFoundError, ServiceUnavailableError, SessionBusyError, SessionNotFoundError, SkillNotFoundError, UnknownError } from "../errors.js";
|
|
6
|
+
import { ConflictError, CommandExecutionError, CommandNotFoundError, FormAlreadySettledError, FormInvalidAnswerError, FormNotFoundError, InvalidCursorError, InvalidRequestError, MessageNotFoundError, ServiceUnavailableError, SessionBusyError, SessionNotFoundError, SkillNotFoundError, UnknownError } from "../errors.js";
|
|
7
7
|
import { SessionEvent } from "@opencode/schema/session-event";
|
|
8
8
|
declare const SessionsCursorInput: Schema.Union<readonly [Schema.Struct<{
|
|
9
9
|
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
@@ -106,7 +106,7 @@ export declare const SessionsQuery: Schema.Struct<{
|
|
|
106
106
|
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
107
107
|
}, Schema.decodeTo<Schema.Null, Schema.Literal<"null">, never, never>]>>;
|
|
108
108
|
}>;
|
|
109
|
-
export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(sessionLocationMiddleware: Context.Key<I, S>) => HttpApiGroup.HttpApiGroup<"server.session", HttpApiEndpoint.HttpApiEndpoint<"session.list", "GET", "/api/session", never, Schema.toCodecStringTree<Schema.Struct<{
|
|
109
|
+
export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, FormI extends HttpApiMiddleware.AnyId, FormS>(sessionLocationMiddleware: Context.Key<I, S>, formLocationMiddleware: Context.Key<FormI, FormS>) => HttpApiGroup.HttpApiGroup<"server.session", HttpApiEndpoint.HttpApiEndpoint<"session.list", "GET", "/api/session", never, Schema.toCodecStringTree<Schema.Struct<{
|
|
110
110
|
readonly directory: Schema.optional<Schema.brand<Schema.String, "AbsolutePath">>;
|
|
111
111
|
readonly project: Schema.optional<Schema.brand<Schema.String, "Project.ID"> & {
|
|
112
112
|
global: string & import("effect/Brand").Brand<"Project.ID">;
|
|
@@ -3016,13 +3016,18 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
3016
3016
|
readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
|
|
3017
3017
|
};
|
|
3018
3018
|
};
|
|
3019
|
-
}>>, never, Schema.toCodecJson<HttpApiSchema.NoContent>, Schema.toCodecJson<typeof SessionNotFoundError>, I, HttpApiMiddleware.Requires<I>> | HttpApiEndpoint.HttpApiEndpoint<"session.
|
|
3019
|
+
}>>, never, Schema.toCodecJson<HttpApiSchema.NoContent>, Schema.toCodecJson<typeof SessionNotFoundError>, I, HttpApiMiddleware.Requires<I>> | HttpApiEndpoint.HttpApiEndpoint<"session.update", "PATCH", "/api/session/:sessionID", Schema.toCodecStringTree<Schema.Struct<{
|
|
3020
3020
|
sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
3021
3021
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
3022
3022
|
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
3023
3023
|
};
|
|
3024
3024
|
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
3025
|
-
readonly title: Schema.String
|
|
3025
|
+
readonly title: Schema.optional<Schema.String>;
|
|
3026
|
+
readonly permissions: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
3027
|
+
readonly action: Schema.String;
|
|
3028
|
+
readonly resource: Schema.String;
|
|
3029
|
+
readonly effect: Schema.Literals<readonly ["allow", "deny", "ask"]>;
|
|
3030
|
+
}>>>;
|
|
3026
3031
|
}>>, never, Schema.toCodecJson<HttpApiSchema.NoContent>, Schema.toCodecJson<typeof SessionNotFoundError>, I, HttpApiMiddleware.Requires<I>> | HttpApiEndpoint.HttpApiEndpoint<"session.move", "POST", "/api/session/:sessionID/move", Schema.toCodecStringTree<Schema.Struct<{
|
|
3027
3032
|
sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
3028
3033
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
@@ -4458,16 +4463,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
4458
4463
|
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
4459
4464
|
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
4460
4465
|
};
|
|
4461
|
-
}>>, never, never, never, Schema.toCodecJson<HttpApiSchema.NoContent>, Schema.toCodecJson<typeof
|
|
4462
|
-
sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
4463
|
-
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
4464
|
-
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
4465
|
-
};
|
|
4466
|
-
inboxID: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
4467
|
-
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
4468
|
-
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
4469
|
-
};
|
|
4470
|
-
}>>, never, never, never, Schema.toCodecJson<HttpApiSchema.NoContent>, Schema.toCodecJson<typeof ConflictError | typeof SessionNotFoundError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"session.inbox.queue", "POST", "/api/session/:sessionID/inbox/:inboxID/queue", Schema.toCodecStringTree<Schema.Struct<{
|
|
4466
|
+
}>>, never, never, never, Schema.toCodecJson<HttpApiSchema.NoContent>, Schema.toCodecJson<typeof SessionNotFoundError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"session.inbox.update", "PATCH", "/api/session/:sessionID/inbox/:inboxID", Schema.toCodecStringTree<Schema.Struct<{
|
|
4471
4467
|
sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
4472
4468
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
4473
4469
|
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
@@ -4476,7 +4472,9 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
4476
4472
|
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
4477
4473
|
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
4478
4474
|
};
|
|
4479
|
-
}>>, never,
|
|
4475
|
+
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
4476
|
+
readonly delivery: Schema.Literals<readonly ["steer", "queue"]>;
|
|
4477
|
+
}>>, never, Schema.toCodecJson<HttpApiSchema.NoContent>, Schema.toCodecJson<typeof ConflictError | typeof SessionNotFoundError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"session.instructions.entry.list", "GET", "/api/experimental/session/:sessionID/instructions/entries", Schema.toCodecStringTree<Schema.Struct<{
|
|
4480
4478
|
sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
4481
4479
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
4482
4480
|
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
@@ -8731,11 +8729,6 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
8731
8729
|
readonly id: string;
|
|
8732
8730
|
readonly type: "tool";
|
|
8733
8731
|
readonly name: string;
|
|
8734
|
-
readonly time: {
|
|
8735
|
-
readonly created: number;
|
|
8736
|
-
readonly completed?: number | undefined;
|
|
8737
|
-
readonly ran?: number | undefined;
|
|
8738
|
-
};
|
|
8739
8732
|
readonly state: {
|
|
8740
8733
|
readonly status: "streaming";
|
|
8741
8734
|
readonly input: string;
|
|
@@ -8803,6 +8796,11 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
8803
8796
|
readonly name?: string | undefined;
|
|
8804
8797
|
})[]] | undefined;
|
|
8805
8798
|
};
|
|
8799
|
+
readonly time: {
|
|
8800
|
+
readonly created: number;
|
|
8801
|
+
readonly completed?: number | undefined;
|
|
8802
|
+
readonly ran?: number | undefined;
|
|
8803
|
+
};
|
|
8806
8804
|
readonly executed?: boolean | undefined;
|
|
8807
8805
|
readonly providerState?: {
|
|
8808
8806
|
readonly [x: string]: unknown;
|
|
@@ -8819,13 +8817,13 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
8819
8817
|
} | {
|
|
8820
8818
|
readonly type: "reasoning";
|
|
8821
8819
|
readonly text: string;
|
|
8820
|
+
readonly state?: {
|
|
8821
|
+
readonly [x: string]: unknown;
|
|
8822
|
+
} | undefined;
|
|
8822
8823
|
readonly time?: {
|
|
8823
8824
|
readonly created: number;
|
|
8824
8825
|
readonly completed?: number | undefined;
|
|
8825
8826
|
} | undefined;
|
|
8826
|
-
readonly state?: {
|
|
8827
|
-
readonly [x: string]: unknown;
|
|
8828
|
-
} | undefined;
|
|
8829
8827
|
})[];
|
|
8830
8828
|
readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
|
|
8831
8829
|
};
|
|
@@ -10619,7 +10617,525 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
10619
10617
|
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
10620
10618
|
}>;
|
|
10621
10619
|
}>]>;
|
|
10622
|
-
}>>, Schema.toCodecJson<typeof SessionNotFoundError | typeof MessageNotFoundError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"session.
|
|
10620
|
+
}>>, Schema.toCodecJson<typeof SessionNotFoundError | typeof MessageNotFoundError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"session.form.list", "GET", "/api/session/:sessionID/form", Schema.toCodecStringTree<Schema.Struct<{
|
|
10621
|
+
sessionID: Schema.String;
|
|
10622
|
+
}>>, never, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
10623
|
+
readonly data: Schema.$Array<Schema.Struct<{
|
|
10624
|
+
readonly fields: Schema.NonEmptyArray<Schema.Union<readonly [Schema.Struct<{
|
|
10625
|
+
readonly type: Schema.Literal<"string">;
|
|
10626
|
+
readonly format: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<readonly ["email", "uri", "date", "date-time"]>>>, Schema.optionalKey<Schema.Literals<readonly ["email", "uri", "date", "date-time"]>>, never, never>;
|
|
10627
|
+
readonly minLength: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
10628
|
+
readonly maxLength: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
10629
|
+
readonly pattern: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
10630
|
+
readonly placeholder: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
10631
|
+
readonly default: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
10632
|
+
readonly options: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
|
|
10633
|
+
readonly value: Schema.String;
|
|
10634
|
+
readonly label: Schema.String;
|
|
10635
|
+
readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
10636
|
+
}>>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
10637
|
+
readonly value: Schema.String;
|
|
10638
|
+
readonly label: Schema.String;
|
|
10639
|
+
readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
10640
|
+
}>>>, never, never>;
|
|
10641
|
+
readonly custom: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
|
|
10642
|
+
readonly key: Schema.String;
|
|
10643
|
+
readonly title: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
10644
|
+
readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
10645
|
+
readonly required: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
|
|
10646
|
+
readonly when: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
|
|
10647
|
+
readonly key: Schema.String;
|
|
10648
|
+
readonly op: Schema.Literals<readonly ["eq", "neq"]>;
|
|
10649
|
+
readonly value: Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean]>;
|
|
10650
|
+
}>>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
10651
|
+
readonly key: Schema.String;
|
|
10652
|
+
readonly op: Schema.Literals<readonly ["eq", "neq"]>;
|
|
10653
|
+
readonly value: Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean]>;
|
|
10654
|
+
}>>>, never, never>;
|
|
10655
|
+
}>, Schema.Struct<{
|
|
10656
|
+
readonly type: Schema.Literal<"number">;
|
|
10657
|
+
readonly minimum: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Number>>, Schema.optionalKey<Schema.Number>, never, never>;
|
|
10658
|
+
readonly maximum: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Number>>, Schema.optionalKey<Schema.Number>, never, never>;
|
|
10659
|
+
readonly default: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Number>>, Schema.optionalKey<Schema.Number>, never, never>;
|
|
10660
|
+
readonly key: Schema.String;
|
|
10661
|
+
readonly title: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
10662
|
+
readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
10663
|
+
readonly required: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
|
|
10664
|
+
readonly when: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
|
|
10665
|
+
readonly key: Schema.String;
|
|
10666
|
+
readonly op: Schema.Literals<readonly ["eq", "neq"]>;
|
|
10667
|
+
readonly value: Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean]>;
|
|
10668
|
+
}>>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
10669
|
+
readonly key: Schema.String;
|
|
10670
|
+
readonly op: Schema.Literals<readonly ["eq", "neq"]>;
|
|
10671
|
+
readonly value: Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean]>;
|
|
10672
|
+
}>>>, never, never>;
|
|
10673
|
+
}>, Schema.Struct<{
|
|
10674
|
+
readonly type: Schema.Literal<"integer">;
|
|
10675
|
+
readonly minimum: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Number>>, Schema.optionalKey<Schema.Number>, never, never>;
|
|
10676
|
+
readonly maximum: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Number>>, Schema.optionalKey<Schema.Number>, never, never>;
|
|
10677
|
+
readonly default: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Number>>, Schema.optionalKey<Schema.Number>, never, never>;
|
|
10678
|
+
readonly key: Schema.String;
|
|
10679
|
+
readonly title: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
10680
|
+
readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
10681
|
+
readonly required: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
|
|
10682
|
+
readonly when: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
|
|
10683
|
+
readonly key: Schema.String;
|
|
10684
|
+
readonly op: Schema.Literals<readonly ["eq", "neq"]>;
|
|
10685
|
+
readonly value: Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean]>;
|
|
10686
|
+
}>>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
10687
|
+
readonly key: Schema.String;
|
|
10688
|
+
readonly op: Schema.Literals<readonly ["eq", "neq"]>;
|
|
10689
|
+
readonly value: Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean]>;
|
|
10690
|
+
}>>>, never, never>;
|
|
10691
|
+
}>, Schema.Struct<{
|
|
10692
|
+
readonly type: Schema.Literal<"boolean">;
|
|
10693
|
+
readonly default: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
|
|
10694
|
+
readonly key: Schema.String;
|
|
10695
|
+
readonly title: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
10696
|
+
readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
10697
|
+
readonly required: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
|
|
10698
|
+
readonly when: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
|
|
10699
|
+
readonly key: Schema.String;
|
|
10700
|
+
readonly op: Schema.Literals<readonly ["eq", "neq"]>;
|
|
10701
|
+
readonly value: Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean]>;
|
|
10702
|
+
}>>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
10703
|
+
readonly key: Schema.String;
|
|
10704
|
+
readonly op: Schema.Literals<readonly ["eq", "neq"]>;
|
|
10705
|
+
readonly value: Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean]>;
|
|
10706
|
+
}>>>, never, never>;
|
|
10707
|
+
}>, Schema.Struct<{
|
|
10708
|
+
readonly type: Schema.Literal<"multiselect">;
|
|
10709
|
+
readonly options: Schema.$Array<Schema.Struct<{
|
|
10710
|
+
readonly value: Schema.String;
|
|
10711
|
+
readonly label: Schema.String;
|
|
10712
|
+
readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
10713
|
+
}>>;
|
|
10714
|
+
readonly minItems: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
10715
|
+
readonly maxItems: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
10716
|
+
readonly custom: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
|
|
10717
|
+
readonly default: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.String>>>, Schema.optionalKey<Schema.$Array<Schema.String>>, never, never>;
|
|
10718
|
+
readonly key: Schema.String;
|
|
10719
|
+
readonly title: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
10720
|
+
readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
10721
|
+
readonly required: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
|
|
10722
|
+
readonly when: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
|
|
10723
|
+
readonly key: Schema.String;
|
|
10724
|
+
readonly op: Schema.Literals<readonly ["eq", "neq"]>;
|
|
10725
|
+
readonly value: Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean]>;
|
|
10726
|
+
}>>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
10727
|
+
readonly key: Schema.String;
|
|
10728
|
+
readonly op: Schema.Literals<readonly ["eq", "neq"]>;
|
|
10729
|
+
readonly value: Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean]>;
|
|
10730
|
+
}>>>, never, never>;
|
|
10731
|
+
}>, Schema.Struct<{
|
|
10732
|
+
readonly key: Schema.String;
|
|
10733
|
+
readonly type: Schema.Literal<"external">;
|
|
10734
|
+
readonly url: Schema.String;
|
|
10735
|
+
readonly title: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
10736
|
+
readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
10737
|
+
}>]>>;
|
|
10738
|
+
readonly id: Schema.brand<Schema.String, "Form.ID"> & {
|
|
10739
|
+
create: (id?: string) => string & import("effect/Brand").Brand<"Form.ID">;
|
|
10740
|
+
};
|
|
10741
|
+
readonly sessionID: Schema.String;
|
|
10742
|
+
readonly title: Schema.String;
|
|
10743
|
+
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
10744
|
+
}>>;
|
|
10745
|
+
}>>, Schema.toCodecJson<typeof SessionNotFoundError>, FormI, HttpApiMiddleware.Requires<FormI>> | HttpApiEndpoint.HttpApiEndpoint<"session.form.create", "POST", "/api/session/:sessionID/form", Schema.toCodecStringTree<Schema.Struct<{
|
|
10746
|
+
sessionID: Schema.String;
|
|
10747
|
+
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
10748
|
+
readonly id: Schema.optional<Schema.brand<Schema.String, "Form.ID"> & {
|
|
10749
|
+
create: (id?: string) => string & import("effect/Brand").Brand<"Form.ID">;
|
|
10750
|
+
}>;
|
|
10751
|
+
readonly title: Schema.String;
|
|
10752
|
+
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
10753
|
+
readonly fields: Schema.NonEmptyArray<Schema.Union<readonly [Schema.Struct<{
|
|
10754
|
+
readonly type: Schema.Literal<"string">;
|
|
10755
|
+
readonly format: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<readonly ["email", "uri", "date", "date-time"]>>>, Schema.optionalKey<Schema.Literals<readonly ["email", "uri", "date", "date-time"]>>, never, never>;
|
|
10756
|
+
readonly minLength: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
10757
|
+
readonly maxLength: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
10758
|
+
readonly pattern: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
10759
|
+
readonly placeholder: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
10760
|
+
readonly default: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
10761
|
+
readonly options: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
|
|
10762
|
+
readonly value: Schema.String;
|
|
10763
|
+
readonly label: Schema.String;
|
|
10764
|
+
readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
10765
|
+
}>>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
10766
|
+
readonly value: Schema.String;
|
|
10767
|
+
readonly label: Schema.String;
|
|
10768
|
+
readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
10769
|
+
}>>>, never, never>;
|
|
10770
|
+
readonly custom: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
|
|
10771
|
+
readonly key: Schema.String;
|
|
10772
|
+
readonly title: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
10773
|
+
readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
10774
|
+
readonly required: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
|
|
10775
|
+
readonly when: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
|
|
10776
|
+
readonly key: Schema.String;
|
|
10777
|
+
readonly op: Schema.Literals<readonly ["eq", "neq"]>;
|
|
10778
|
+
readonly value: Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean]>;
|
|
10779
|
+
}>>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
10780
|
+
readonly key: Schema.String;
|
|
10781
|
+
readonly op: Schema.Literals<readonly ["eq", "neq"]>;
|
|
10782
|
+
readonly value: Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean]>;
|
|
10783
|
+
}>>>, never, never>;
|
|
10784
|
+
}>, Schema.Struct<{
|
|
10785
|
+
readonly type: Schema.Literal<"number">;
|
|
10786
|
+
readonly minimum: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Number>>, Schema.optionalKey<Schema.Number>, never, never>;
|
|
10787
|
+
readonly maximum: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Number>>, Schema.optionalKey<Schema.Number>, never, never>;
|
|
10788
|
+
readonly default: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Number>>, Schema.optionalKey<Schema.Number>, never, never>;
|
|
10789
|
+
readonly key: Schema.String;
|
|
10790
|
+
readonly title: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
10791
|
+
readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
10792
|
+
readonly required: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
|
|
10793
|
+
readonly when: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
|
|
10794
|
+
readonly key: Schema.String;
|
|
10795
|
+
readonly op: Schema.Literals<readonly ["eq", "neq"]>;
|
|
10796
|
+
readonly value: Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean]>;
|
|
10797
|
+
}>>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
10798
|
+
readonly key: Schema.String;
|
|
10799
|
+
readonly op: Schema.Literals<readonly ["eq", "neq"]>;
|
|
10800
|
+
readonly value: Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean]>;
|
|
10801
|
+
}>>>, never, never>;
|
|
10802
|
+
}>, Schema.Struct<{
|
|
10803
|
+
readonly type: Schema.Literal<"integer">;
|
|
10804
|
+
readonly minimum: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Number>>, Schema.optionalKey<Schema.Number>, never, never>;
|
|
10805
|
+
readonly maximum: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Number>>, Schema.optionalKey<Schema.Number>, never, never>;
|
|
10806
|
+
readonly default: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Number>>, Schema.optionalKey<Schema.Number>, never, never>;
|
|
10807
|
+
readonly key: Schema.String;
|
|
10808
|
+
readonly title: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
10809
|
+
readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
10810
|
+
readonly required: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
|
|
10811
|
+
readonly when: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
|
|
10812
|
+
readonly key: Schema.String;
|
|
10813
|
+
readonly op: Schema.Literals<readonly ["eq", "neq"]>;
|
|
10814
|
+
readonly value: Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean]>;
|
|
10815
|
+
}>>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
10816
|
+
readonly key: Schema.String;
|
|
10817
|
+
readonly op: Schema.Literals<readonly ["eq", "neq"]>;
|
|
10818
|
+
readonly value: Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean]>;
|
|
10819
|
+
}>>>, never, never>;
|
|
10820
|
+
}>, Schema.Struct<{
|
|
10821
|
+
readonly type: Schema.Literal<"boolean">;
|
|
10822
|
+
readonly default: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
|
|
10823
|
+
readonly key: Schema.String;
|
|
10824
|
+
readonly title: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
10825
|
+
readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
10826
|
+
readonly required: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
|
|
10827
|
+
readonly when: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
|
|
10828
|
+
readonly key: Schema.String;
|
|
10829
|
+
readonly op: Schema.Literals<readonly ["eq", "neq"]>;
|
|
10830
|
+
readonly value: Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean]>;
|
|
10831
|
+
}>>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
10832
|
+
readonly key: Schema.String;
|
|
10833
|
+
readonly op: Schema.Literals<readonly ["eq", "neq"]>;
|
|
10834
|
+
readonly value: Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean]>;
|
|
10835
|
+
}>>>, never, never>;
|
|
10836
|
+
}>, Schema.Struct<{
|
|
10837
|
+
readonly type: Schema.Literal<"multiselect">;
|
|
10838
|
+
readonly options: Schema.$Array<Schema.Struct<{
|
|
10839
|
+
readonly value: Schema.String;
|
|
10840
|
+
readonly label: Schema.String;
|
|
10841
|
+
readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
10842
|
+
}>>;
|
|
10843
|
+
readonly minItems: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
10844
|
+
readonly maxItems: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
10845
|
+
readonly custom: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
|
|
10846
|
+
readonly default: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.String>>>, Schema.optionalKey<Schema.$Array<Schema.String>>, never, never>;
|
|
10847
|
+
readonly key: Schema.String;
|
|
10848
|
+
readonly title: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
10849
|
+
readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
10850
|
+
readonly required: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
|
|
10851
|
+
readonly when: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
|
|
10852
|
+
readonly key: Schema.String;
|
|
10853
|
+
readonly op: Schema.Literals<readonly ["eq", "neq"]>;
|
|
10854
|
+
readonly value: Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean]>;
|
|
10855
|
+
}>>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
10856
|
+
readonly key: Schema.String;
|
|
10857
|
+
readonly op: Schema.Literals<readonly ["eq", "neq"]>;
|
|
10858
|
+
readonly value: Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean]>;
|
|
10859
|
+
}>>>, never, never>;
|
|
10860
|
+
}>, Schema.Struct<{
|
|
10861
|
+
readonly key: Schema.String;
|
|
10862
|
+
readonly type: Schema.Literal<"external">;
|
|
10863
|
+
readonly url: Schema.String;
|
|
10864
|
+
readonly title: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
10865
|
+
readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
10866
|
+
}>]>>;
|
|
10867
|
+
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
10868
|
+
readonly data: Schema.Struct<{
|
|
10869
|
+
readonly fields: Schema.NonEmptyArray<Schema.Union<readonly [Schema.Struct<{
|
|
10870
|
+
readonly type: Schema.Literal<"string">;
|
|
10871
|
+
readonly format: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<readonly ["email", "uri", "date", "date-time"]>>>, Schema.optionalKey<Schema.Literals<readonly ["email", "uri", "date", "date-time"]>>, never, never>;
|
|
10872
|
+
readonly minLength: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
10873
|
+
readonly maxLength: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
10874
|
+
readonly pattern: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
10875
|
+
readonly placeholder: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
10876
|
+
readonly default: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
10877
|
+
readonly options: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
|
|
10878
|
+
readonly value: Schema.String;
|
|
10879
|
+
readonly label: Schema.String;
|
|
10880
|
+
readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
10881
|
+
}>>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
10882
|
+
readonly value: Schema.String;
|
|
10883
|
+
readonly label: Schema.String;
|
|
10884
|
+
readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
10885
|
+
}>>>, never, never>;
|
|
10886
|
+
readonly custom: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
|
|
10887
|
+
readonly key: Schema.String;
|
|
10888
|
+
readonly title: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
10889
|
+
readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
10890
|
+
readonly required: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
|
|
10891
|
+
readonly when: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
|
|
10892
|
+
readonly key: Schema.String;
|
|
10893
|
+
readonly op: Schema.Literals<readonly ["eq", "neq"]>;
|
|
10894
|
+
readonly value: Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean]>;
|
|
10895
|
+
}>>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
10896
|
+
readonly key: Schema.String;
|
|
10897
|
+
readonly op: Schema.Literals<readonly ["eq", "neq"]>;
|
|
10898
|
+
readonly value: Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean]>;
|
|
10899
|
+
}>>>, never, never>;
|
|
10900
|
+
}>, Schema.Struct<{
|
|
10901
|
+
readonly type: Schema.Literal<"number">;
|
|
10902
|
+
readonly minimum: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Number>>, Schema.optionalKey<Schema.Number>, never, never>;
|
|
10903
|
+
readonly maximum: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Number>>, Schema.optionalKey<Schema.Number>, never, never>;
|
|
10904
|
+
readonly default: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Number>>, Schema.optionalKey<Schema.Number>, never, never>;
|
|
10905
|
+
readonly key: Schema.String;
|
|
10906
|
+
readonly title: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
10907
|
+
readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
10908
|
+
readonly required: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
|
|
10909
|
+
readonly when: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
|
|
10910
|
+
readonly key: Schema.String;
|
|
10911
|
+
readonly op: Schema.Literals<readonly ["eq", "neq"]>;
|
|
10912
|
+
readonly value: Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean]>;
|
|
10913
|
+
}>>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
10914
|
+
readonly key: Schema.String;
|
|
10915
|
+
readonly op: Schema.Literals<readonly ["eq", "neq"]>;
|
|
10916
|
+
readonly value: Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean]>;
|
|
10917
|
+
}>>>, never, never>;
|
|
10918
|
+
}>, Schema.Struct<{
|
|
10919
|
+
readonly type: Schema.Literal<"integer">;
|
|
10920
|
+
readonly minimum: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Number>>, Schema.optionalKey<Schema.Number>, never, never>;
|
|
10921
|
+
readonly maximum: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Number>>, Schema.optionalKey<Schema.Number>, never, never>;
|
|
10922
|
+
readonly default: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Number>>, Schema.optionalKey<Schema.Number>, never, never>;
|
|
10923
|
+
readonly key: Schema.String;
|
|
10924
|
+
readonly title: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
10925
|
+
readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
10926
|
+
readonly required: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
|
|
10927
|
+
readonly when: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
|
|
10928
|
+
readonly key: Schema.String;
|
|
10929
|
+
readonly op: Schema.Literals<readonly ["eq", "neq"]>;
|
|
10930
|
+
readonly value: Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean]>;
|
|
10931
|
+
}>>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
10932
|
+
readonly key: Schema.String;
|
|
10933
|
+
readonly op: Schema.Literals<readonly ["eq", "neq"]>;
|
|
10934
|
+
readonly value: Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean]>;
|
|
10935
|
+
}>>>, never, never>;
|
|
10936
|
+
}>, Schema.Struct<{
|
|
10937
|
+
readonly type: Schema.Literal<"boolean">;
|
|
10938
|
+
readonly default: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
|
|
10939
|
+
readonly key: Schema.String;
|
|
10940
|
+
readonly title: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
10941
|
+
readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
10942
|
+
readonly required: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
|
|
10943
|
+
readonly when: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
|
|
10944
|
+
readonly key: Schema.String;
|
|
10945
|
+
readonly op: Schema.Literals<readonly ["eq", "neq"]>;
|
|
10946
|
+
readonly value: Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean]>;
|
|
10947
|
+
}>>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
10948
|
+
readonly key: Schema.String;
|
|
10949
|
+
readonly op: Schema.Literals<readonly ["eq", "neq"]>;
|
|
10950
|
+
readonly value: Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean]>;
|
|
10951
|
+
}>>>, never, never>;
|
|
10952
|
+
}>, Schema.Struct<{
|
|
10953
|
+
readonly type: Schema.Literal<"multiselect">;
|
|
10954
|
+
readonly options: Schema.$Array<Schema.Struct<{
|
|
10955
|
+
readonly value: Schema.String;
|
|
10956
|
+
readonly label: Schema.String;
|
|
10957
|
+
readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
10958
|
+
}>>;
|
|
10959
|
+
readonly minItems: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
10960
|
+
readonly maxItems: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
10961
|
+
readonly custom: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
|
|
10962
|
+
readonly default: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.String>>>, Schema.optionalKey<Schema.$Array<Schema.String>>, never, never>;
|
|
10963
|
+
readonly key: Schema.String;
|
|
10964
|
+
readonly title: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
10965
|
+
readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
10966
|
+
readonly required: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
|
|
10967
|
+
readonly when: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
|
|
10968
|
+
readonly key: Schema.String;
|
|
10969
|
+
readonly op: Schema.Literals<readonly ["eq", "neq"]>;
|
|
10970
|
+
readonly value: Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean]>;
|
|
10971
|
+
}>>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
10972
|
+
readonly key: Schema.String;
|
|
10973
|
+
readonly op: Schema.Literals<readonly ["eq", "neq"]>;
|
|
10974
|
+
readonly value: Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean]>;
|
|
10975
|
+
}>>>, never, never>;
|
|
10976
|
+
}>, Schema.Struct<{
|
|
10977
|
+
readonly key: Schema.String;
|
|
10978
|
+
readonly type: Schema.Literal<"external">;
|
|
10979
|
+
readonly url: Schema.String;
|
|
10980
|
+
readonly title: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
10981
|
+
readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
10982
|
+
}>]>>;
|
|
10983
|
+
readonly id: Schema.brand<Schema.String, "Form.ID"> & {
|
|
10984
|
+
create: (id?: string) => string & import("effect/Brand").Brand<"Form.ID">;
|
|
10985
|
+
};
|
|
10986
|
+
readonly sessionID: Schema.String;
|
|
10987
|
+
readonly title: Schema.String;
|
|
10988
|
+
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
10989
|
+
}>;
|
|
10990
|
+
}>>, Schema.toCodecJson<typeof InvalidRequestError | typeof ConflictError | typeof SessionNotFoundError>, FormI, HttpApiMiddleware.Requires<FormI>> | HttpApiEndpoint.HttpApiEndpoint<"session.form.get", "GET", "/api/session/:sessionID/form/:formID", Schema.toCodecStringTree<Schema.Struct<{
|
|
10991
|
+
sessionID: Schema.String;
|
|
10992
|
+
formID: Schema.brand<Schema.String, "Form.ID"> & {
|
|
10993
|
+
create: (id?: string) => string & import("effect/Brand").Brand<"Form.ID">;
|
|
10994
|
+
};
|
|
10995
|
+
}>>, never, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
10996
|
+
readonly data: Schema.Struct<{
|
|
10997
|
+
readonly state: Schema.Union<readonly [Schema.Struct<{
|
|
10998
|
+
readonly status: Schema.Literal<"pending">;
|
|
10999
|
+
}>, Schema.Struct<{
|
|
11000
|
+
readonly status: Schema.Literal<"answered">;
|
|
11001
|
+
readonly answer: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean, Schema.$Array<Schema.String>]>>;
|
|
11002
|
+
}>, Schema.Struct<{
|
|
11003
|
+
readonly status: Schema.Literal<"cancelled">;
|
|
11004
|
+
}>]>;
|
|
11005
|
+
readonly fields: Schema.NonEmptyArray<Schema.Union<readonly [Schema.Struct<{
|
|
11006
|
+
readonly type: Schema.Literal<"string">;
|
|
11007
|
+
readonly format: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<readonly ["email", "uri", "date", "date-time"]>>>, Schema.optionalKey<Schema.Literals<readonly ["email", "uri", "date", "date-time"]>>, never, never>;
|
|
11008
|
+
readonly minLength: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
11009
|
+
readonly maxLength: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
11010
|
+
readonly pattern: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
11011
|
+
readonly placeholder: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
11012
|
+
readonly default: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
11013
|
+
readonly options: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
|
|
11014
|
+
readonly value: Schema.String;
|
|
11015
|
+
readonly label: Schema.String;
|
|
11016
|
+
readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
11017
|
+
}>>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
11018
|
+
readonly value: Schema.String;
|
|
11019
|
+
readonly label: Schema.String;
|
|
11020
|
+
readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
11021
|
+
}>>>, never, never>;
|
|
11022
|
+
readonly custom: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
|
|
11023
|
+
readonly key: Schema.String;
|
|
11024
|
+
readonly title: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
11025
|
+
readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
11026
|
+
readonly required: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
|
|
11027
|
+
readonly when: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
|
|
11028
|
+
readonly key: Schema.String;
|
|
11029
|
+
readonly op: Schema.Literals<readonly ["eq", "neq"]>;
|
|
11030
|
+
readonly value: Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean]>;
|
|
11031
|
+
}>>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
11032
|
+
readonly key: Schema.String;
|
|
11033
|
+
readonly op: Schema.Literals<readonly ["eq", "neq"]>;
|
|
11034
|
+
readonly value: Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean]>;
|
|
11035
|
+
}>>>, never, never>;
|
|
11036
|
+
}>, Schema.Struct<{
|
|
11037
|
+
readonly type: Schema.Literal<"number">;
|
|
11038
|
+
readonly minimum: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Number>>, Schema.optionalKey<Schema.Number>, never, never>;
|
|
11039
|
+
readonly maximum: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Number>>, Schema.optionalKey<Schema.Number>, never, never>;
|
|
11040
|
+
readonly default: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Number>>, Schema.optionalKey<Schema.Number>, never, never>;
|
|
11041
|
+
readonly key: Schema.String;
|
|
11042
|
+
readonly title: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
11043
|
+
readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
11044
|
+
readonly required: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
|
|
11045
|
+
readonly when: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
|
|
11046
|
+
readonly key: Schema.String;
|
|
11047
|
+
readonly op: Schema.Literals<readonly ["eq", "neq"]>;
|
|
11048
|
+
readonly value: Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean]>;
|
|
11049
|
+
}>>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
11050
|
+
readonly key: Schema.String;
|
|
11051
|
+
readonly op: Schema.Literals<readonly ["eq", "neq"]>;
|
|
11052
|
+
readonly value: Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean]>;
|
|
11053
|
+
}>>>, never, never>;
|
|
11054
|
+
}>, Schema.Struct<{
|
|
11055
|
+
readonly type: Schema.Literal<"integer">;
|
|
11056
|
+
readonly minimum: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Number>>, Schema.optionalKey<Schema.Number>, never, never>;
|
|
11057
|
+
readonly maximum: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Number>>, Schema.optionalKey<Schema.Number>, never, never>;
|
|
11058
|
+
readonly default: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Number>>, Schema.optionalKey<Schema.Number>, never, never>;
|
|
11059
|
+
readonly key: Schema.String;
|
|
11060
|
+
readonly title: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
11061
|
+
readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
11062
|
+
readonly required: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
|
|
11063
|
+
readonly when: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
|
|
11064
|
+
readonly key: Schema.String;
|
|
11065
|
+
readonly op: Schema.Literals<readonly ["eq", "neq"]>;
|
|
11066
|
+
readonly value: Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean]>;
|
|
11067
|
+
}>>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
11068
|
+
readonly key: Schema.String;
|
|
11069
|
+
readonly op: Schema.Literals<readonly ["eq", "neq"]>;
|
|
11070
|
+
readonly value: Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean]>;
|
|
11071
|
+
}>>>, never, never>;
|
|
11072
|
+
}>, Schema.Struct<{
|
|
11073
|
+
readonly type: Schema.Literal<"boolean">;
|
|
11074
|
+
readonly default: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
|
|
11075
|
+
readonly key: Schema.String;
|
|
11076
|
+
readonly title: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
11077
|
+
readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
11078
|
+
readonly required: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
|
|
11079
|
+
readonly when: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
|
|
11080
|
+
readonly key: Schema.String;
|
|
11081
|
+
readonly op: Schema.Literals<readonly ["eq", "neq"]>;
|
|
11082
|
+
readonly value: Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean]>;
|
|
11083
|
+
}>>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
11084
|
+
readonly key: Schema.String;
|
|
11085
|
+
readonly op: Schema.Literals<readonly ["eq", "neq"]>;
|
|
11086
|
+
readonly value: Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean]>;
|
|
11087
|
+
}>>>, never, never>;
|
|
11088
|
+
}>, Schema.Struct<{
|
|
11089
|
+
readonly type: Schema.Literal<"multiselect">;
|
|
11090
|
+
readonly options: Schema.$Array<Schema.Struct<{
|
|
11091
|
+
readonly value: Schema.String;
|
|
11092
|
+
readonly label: Schema.String;
|
|
11093
|
+
readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
11094
|
+
}>>;
|
|
11095
|
+
readonly minItems: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
11096
|
+
readonly maxItems: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
11097
|
+
readonly custom: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
|
|
11098
|
+
readonly default: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.String>>>, Schema.optionalKey<Schema.$Array<Schema.String>>, never, never>;
|
|
11099
|
+
readonly key: Schema.String;
|
|
11100
|
+
readonly title: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
11101
|
+
readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
11102
|
+
readonly required: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
|
|
11103
|
+
readonly when: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
|
|
11104
|
+
readonly key: Schema.String;
|
|
11105
|
+
readonly op: Schema.Literals<readonly ["eq", "neq"]>;
|
|
11106
|
+
readonly value: Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean]>;
|
|
11107
|
+
}>>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
11108
|
+
readonly key: Schema.String;
|
|
11109
|
+
readonly op: Schema.Literals<readonly ["eq", "neq"]>;
|
|
11110
|
+
readonly value: Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean]>;
|
|
11111
|
+
}>>>, never, never>;
|
|
11112
|
+
}>, Schema.Struct<{
|
|
11113
|
+
readonly key: Schema.String;
|
|
11114
|
+
readonly type: Schema.Literal<"external">;
|
|
11115
|
+
readonly url: Schema.String;
|
|
11116
|
+
readonly title: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
11117
|
+
readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
11118
|
+
}>]>>;
|
|
11119
|
+
readonly id: Schema.brand<Schema.String, "Form.ID"> & {
|
|
11120
|
+
create: (id?: string) => string & import("effect/Brand").Brand<"Form.ID">;
|
|
11121
|
+
};
|
|
11122
|
+
readonly sessionID: Schema.String;
|
|
11123
|
+
readonly title: Schema.String;
|
|
11124
|
+
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
11125
|
+
}>;
|
|
11126
|
+
}>>, Schema.toCodecJson<typeof SessionNotFoundError | typeof FormNotFoundError>, FormI, HttpApiMiddleware.Requires<FormI>> | HttpApiEndpoint.HttpApiEndpoint<"session.form.reply", "POST", "/api/session/:sessionID/form/:formID/reply", Schema.toCodecStringTree<Schema.Struct<{
|
|
11127
|
+
sessionID: Schema.String;
|
|
11128
|
+
formID: Schema.brand<Schema.String, "Form.ID"> & {
|
|
11129
|
+
create: (id?: string) => string & import("effect/Brand").Brand<"Form.ID">;
|
|
11130
|
+
};
|
|
11131
|
+
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
11132
|
+
readonly answer: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean, Schema.$Array<Schema.String>]>>;
|
|
11133
|
+
}>>, never, Schema.toCodecJson<HttpApiSchema.NoContent>, Schema.toCodecJson<typeof SessionNotFoundError | typeof FormNotFoundError | typeof FormAlreadySettledError | typeof FormInvalidAnswerError>, FormI, HttpApiMiddleware.Requires<FormI>> | HttpApiEndpoint.HttpApiEndpoint<"session.form.cancel", "DELETE", "/api/session/:sessionID/form/:formID", Schema.toCodecStringTree<Schema.Struct<{
|
|
11134
|
+
sessionID: Schema.String;
|
|
11135
|
+
formID: Schema.brand<Schema.String, "Form.ID"> & {
|
|
11136
|
+
create: (id?: string) => string & import("effect/Brand").Brand<"Form.ID">;
|
|
11137
|
+
};
|
|
11138
|
+
}>>, never, 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<{
|
|
10623
11139
|
sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
10624
11140
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
10625
11141
|
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|