@opencode/protocol 2.0.18 → 2.0.20
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/credential.d.ts +68 -1
- package/dist/groups/credential.js +17 -0
- package/dist/groups/event.d.ts +115 -0
- package/dist/groups/integration.d.ts +36 -0
- package/dist/groups/message.d.ts +60 -0
- package/dist/groups/session.d.ts +198 -0
- package/package.json +2 -2
|
@@ -1,6 +1,73 @@
|
|
|
1
1
|
import { Schema } from "effect";
|
|
2
2
|
import { HttpApiEndpoint, HttpApiGroup, HttpApiSchema } from "effect/unstable/httpapi";
|
|
3
|
-
|
|
3
|
+
import { ConflictError } from "../errors.js";
|
|
4
|
+
export declare const CredentialGroup: HttpApiGroup.HttpApiGroup<"server.credential", HttpApiEndpoint.HttpApiEndpoint<"credential.list", "GET", "/api/credential", never, never, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
5
|
+
readonly data: Schema.$Array<Schema.Struct<{
|
|
6
|
+
readonly id: Schema.brand<Schema.String, "Credential.ID"> & {
|
|
7
|
+
create: () => string & import("effect/Brand").Brand<"Credential.ID">;
|
|
8
|
+
};
|
|
9
|
+
readonly integrationID: Schema.brand<Schema.String, "Integration.ID">;
|
|
10
|
+
readonly label: Schema.String;
|
|
11
|
+
readonly active: Schema.Boolean;
|
|
12
|
+
readonly value: Schema.Union<readonly [Schema.Struct<{
|
|
13
|
+
readonly type: Schema.Literal<"oauth">;
|
|
14
|
+
readonly methodID: Schema.brand<Schema.String, "Integration.MethodID">;
|
|
15
|
+
readonly refresh: Schema.String;
|
|
16
|
+
readonly access: Schema.String;
|
|
17
|
+
readonly expires: Schema.Int;
|
|
18
|
+
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
19
|
+
}>, Schema.Struct<{
|
|
20
|
+
readonly type: Schema.Literal<"key">;
|
|
21
|
+
readonly key: Schema.String;
|
|
22
|
+
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
23
|
+
readonly configuration: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean, Schema.$Array<Schema.String>]>>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean, Schema.$Array<Schema.String>]>>>, never, never>;
|
|
24
|
+
}>]>;
|
|
25
|
+
}>>;
|
|
26
|
+
}>>, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"credential.create", "POST", "/api/credential", never, never, Schema.toCodecJson<Schema.Struct<{
|
|
27
|
+
readonly id: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Credential.ID"> & {
|
|
28
|
+
create: () => string & import("effect/Brand").Brand<"Credential.ID">;
|
|
29
|
+
}>>, Schema.optionalKey<Schema.brand<Schema.String, "Credential.ID"> & {
|
|
30
|
+
create: () => string & import("effect/Brand").Brand<"Credential.ID">;
|
|
31
|
+
}>, never, never>;
|
|
32
|
+
readonly integrationID: Schema.brand<Schema.String, "Integration.ID">;
|
|
33
|
+
readonly label: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
34
|
+
readonly value: Schema.Union<readonly [Schema.Struct<{
|
|
35
|
+
readonly type: Schema.Literal<"oauth">;
|
|
36
|
+
readonly methodID: Schema.brand<Schema.String, "Integration.MethodID">;
|
|
37
|
+
readonly refresh: Schema.String;
|
|
38
|
+
readonly access: Schema.String;
|
|
39
|
+
readonly expires: Schema.Int;
|
|
40
|
+
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
41
|
+
}>, Schema.Struct<{
|
|
42
|
+
readonly type: Schema.Literal<"key">;
|
|
43
|
+
readonly key: Schema.String;
|
|
44
|
+
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
45
|
+
readonly configuration: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean, Schema.$Array<Schema.String>]>>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean, Schema.$Array<Schema.String>]>>>, never, never>;
|
|
46
|
+
}>]>;
|
|
47
|
+
readonly activate: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
|
|
48
|
+
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
49
|
+
readonly data: Schema.Struct<{
|
|
50
|
+
readonly id: Schema.brand<Schema.String, "Credential.ID"> & {
|
|
51
|
+
create: () => string & import("effect/Brand").Brand<"Credential.ID">;
|
|
52
|
+
};
|
|
53
|
+
readonly integrationID: Schema.brand<Schema.String, "Integration.ID">;
|
|
54
|
+
readonly label: Schema.String;
|
|
55
|
+
readonly active: Schema.Boolean;
|
|
56
|
+
readonly value: Schema.Union<readonly [Schema.Struct<{
|
|
57
|
+
readonly type: Schema.Literal<"oauth">;
|
|
58
|
+
readonly methodID: Schema.brand<Schema.String, "Integration.MethodID">;
|
|
59
|
+
readonly refresh: Schema.String;
|
|
60
|
+
readonly access: Schema.String;
|
|
61
|
+
readonly expires: Schema.Int;
|
|
62
|
+
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
63
|
+
}>, Schema.Struct<{
|
|
64
|
+
readonly type: Schema.Literal<"key">;
|
|
65
|
+
readonly key: Schema.String;
|
|
66
|
+
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
67
|
+
readonly configuration: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean, Schema.$Array<Schema.String>]>>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean, Schema.$Array<Schema.String>]>>>, never, never>;
|
|
68
|
+
}>]>;
|
|
69
|
+
}>;
|
|
70
|
+
}>>, Schema.toCodecJson<typeof ConflictError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"credential.update", "PATCH", "/api/credential/:credentialID", Schema.toCodecStringTree<Schema.Struct<{
|
|
4
71
|
credentialID: Schema.brand<Schema.String, "Credential.ID"> & {
|
|
5
72
|
create: () => string & import("effect/Brand").Brand<"Credential.ID">;
|
|
6
73
|
};
|
|
@@ -1,7 +1,24 @@
|
|
|
1
1
|
import { Credential } from "@opencode/schema/credential";
|
|
2
2
|
import { Schema } from "effect";
|
|
3
3
|
import { HttpApiEndpoint, HttpApiGroup, HttpApiSchema, OpenApi } from "effect/unstable/httpapi";
|
|
4
|
+
import { ConflictError } from "../errors.js";
|
|
4
5
|
export const CredentialGroup = HttpApiGroup.make("server.credential")
|
|
6
|
+
.add(HttpApiEndpoint.get("credential.list", "/api/credential", {
|
|
7
|
+
success: Schema.Struct({ data: Schema.Array(Credential.Entry) }),
|
|
8
|
+
}).annotateMerge(OpenApi.annotations({
|
|
9
|
+
identifier: "credential.list",
|
|
10
|
+
summary: "List credentials",
|
|
11
|
+
description: "List every stored integration credential, including its secret value.",
|
|
12
|
+
})))
|
|
13
|
+
.add(HttpApiEndpoint.post("credential.create", "/api/credential", {
|
|
14
|
+
payload: Credential.CreateInput,
|
|
15
|
+
success: Schema.Struct({ data: Credential.Entry }),
|
|
16
|
+
error: ConflictError,
|
|
17
|
+
}).annotateMerge(OpenApi.annotations({
|
|
18
|
+
identifier: "credential.create",
|
|
19
|
+
summary: "Create credential",
|
|
20
|
+
description: "Store an integration credential. It becomes the integration's active credential unless activate is false and the integration already has one. Fails with a conflict when the requested ID already exists.",
|
|
21
|
+
})))
|
|
5
22
|
.add(HttpApiEndpoint.patch("credential.update", "/api/credential/:credentialID", {
|
|
6
23
|
params: { credentialID: Credential.ID },
|
|
7
24
|
payload: Schema.Struct({ label: Schema.String }),
|
package/dist/groups/event.d.ts
CHANGED
|
@@ -1979,6 +1979,11 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
|
|
|
1979
1979
|
readonly type: Schema.String;
|
|
1980
1980
|
readonly message: Schema.String;
|
|
1981
1981
|
readonly status: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
1982
|
+
readonly response: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
1983
|
+
readonly body: Schema.String;
|
|
1984
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
1985
|
+
readonly body: Schema.String;
|
|
1986
|
+
}>>, never, never>;
|
|
1982
1987
|
}>;
|
|
1983
1988
|
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
1984
1989
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
@@ -1997,6 +2002,11 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
|
|
|
1997
2002
|
readonly type: Schema.String;
|
|
1998
2003
|
readonly message: Schema.String;
|
|
1999
2004
|
readonly status: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
2005
|
+
readonly response: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
2006
|
+
readonly body: Schema.String;
|
|
2007
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
2008
|
+
readonly body: Schema.String;
|
|
2009
|
+
}>>, never, never>;
|
|
2000
2010
|
}>;
|
|
2001
2011
|
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
2002
2012
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
@@ -2709,6 +2719,11 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
|
|
|
2709
2719
|
readonly type: Schema.String;
|
|
2710
2720
|
readonly message: Schema.String;
|
|
2711
2721
|
readonly status: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
2722
|
+
readonly response: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
2723
|
+
readonly body: Schema.String;
|
|
2724
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
2725
|
+
readonly body: Schema.String;
|
|
2726
|
+
}>>, never, never>;
|
|
2712
2727
|
}>;
|
|
2713
2728
|
readonly finish: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<readonly ["content-filter"]>>>, Schema.optionalKey<Schema.Literals<readonly ["content-filter"]>>, never, never>;
|
|
2714
2729
|
readonly rawFinish: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
@@ -2758,6 +2773,11 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
|
|
|
2758
2773
|
readonly type: Schema.String;
|
|
2759
2774
|
readonly message: Schema.String;
|
|
2760
2775
|
readonly status: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
2776
|
+
readonly response: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
2777
|
+
readonly body: Schema.String;
|
|
2778
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
2779
|
+
readonly body: Schema.String;
|
|
2780
|
+
}>>, never, never>;
|
|
2761
2781
|
}>;
|
|
2762
2782
|
readonly finish: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<readonly ["content-filter"]>>>, Schema.optionalKey<Schema.Literals<readonly ["content-filter"]>>, never, never>;
|
|
2763
2783
|
readonly rawFinish: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
@@ -3567,6 +3587,11 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
|
|
|
3567
3587
|
readonly type: Schema.String;
|
|
3568
3588
|
readonly message: Schema.String;
|
|
3569
3589
|
readonly status: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
3590
|
+
readonly response: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
3591
|
+
readonly body: Schema.String;
|
|
3592
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
3593
|
+
readonly body: Schema.String;
|
|
3594
|
+
}>>, never, never>;
|
|
3570
3595
|
}>;
|
|
3571
3596
|
readonly content: Schema.decodeTo<Schema.optional<Schema.toType<Schema.NonEmptyArray<Schema.Union<readonly [Schema.Struct<{
|
|
3572
3597
|
readonly type: Schema.Literal<"text">;
|
|
@@ -3610,6 +3635,11 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
|
|
|
3610
3635
|
readonly type: Schema.String;
|
|
3611
3636
|
readonly message: Schema.String;
|
|
3612
3637
|
readonly status: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
3638
|
+
readonly response: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
3639
|
+
readonly body: Schema.String;
|
|
3640
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
3641
|
+
readonly body: Schema.String;
|
|
3642
|
+
}>>, never, never>;
|
|
3613
3643
|
}>;
|
|
3614
3644
|
readonly content: Schema.decodeTo<Schema.optional<Schema.toType<Schema.NonEmptyArray<Schema.Union<readonly [Schema.Struct<{
|
|
3615
3645
|
readonly type: Schema.Literal<"text">;
|
|
@@ -3683,6 +3713,11 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
|
|
|
3683
3713
|
readonly type: Schema.String;
|
|
3684
3714
|
readonly message: Schema.String;
|
|
3685
3715
|
readonly status: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
3716
|
+
readonly response: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
3717
|
+
readonly body: Schema.String;
|
|
3718
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
3719
|
+
readonly body: Schema.String;
|
|
3720
|
+
}>>, never, never>;
|
|
3686
3721
|
}>;
|
|
3687
3722
|
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
3688
3723
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
@@ -3707,6 +3742,11 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
|
|
|
3707
3742
|
readonly type: Schema.String;
|
|
3708
3743
|
readonly message: Schema.String;
|
|
3709
3744
|
readonly status: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
3745
|
+
readonly response: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
3746
|
+
readonly body: Schema.String;
|
|
3747
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
3748
|
+
readonly body: Schema.String;
|
|
3749
|
+
}>>, never, never>;
|
|
3710
3750
|
}>;
|
|
3711
3751
|
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
3712
3752
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
@@ -4148,6 +4188,11 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
|
|
|
4148
4188
|
readonly type: Schema.String;
|
|
4149
4189
|
readonly message: Schema.String;
|
|
4150
4190
|
readonly status: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
4191
|
+
readonly response: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
4192
|
+
readonly body: Schema.String;
|
|
4193
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
4194
|
+
readonly body: Schema.String;
|
|
4195
|
+
}>>, never, never>;
|
|
4151
4196
|
}>;
|
|
4152
4197
|
readonly inputID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
4153
4198
|
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
@@ -4196,6 +4241,11 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
|
|
|
4196
4241
|
readonly type: Schema.String;
|
|
4197
4242
|
readonly message: Schema.String;
|
|
4198
4243
|
readonly status: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
4244
|
+
readonly response: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
4245
|
+
readonly body: Schema.String;
|
|
4246
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
4247
|
+
readonly body: Schema.String;
|
|
4248
|
+
}>>, never, never>;
|
|
4199
4249
|
}>;
|
|
4200
4250
|
readonly inputID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
4201
4251
|
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
@@ -7291,6 +7341,9 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
|
|
|
7291
7341
|
readonly type: string;
|
|
7292
7342
|
readonly message: string;
|
|
7293
7343
|
readonly status?: number | undefined;
|
|
7344
|
+
readonly response?: {
|
|
7345
|
+
readonly body: string;
|
|
7346
|
+
} | undefined;
|
|
7294
7347
|
};
|
|
7295
7348
|
readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
|
|
7296
7349
|
};
|
|
@@ -7570,6 +7623,9 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
|
|
|
7570
7623
|
readonly type: string;
|
|
7571
7624
|
readonly message: string;
|
|
7572
7625
|
readonly status?: number | undefined;
|
|
7626
|
+
readonly response?: {
|
|
7627
|
+
readonly body: string;
|
|
7628
|
+
} | undefined;
|
|
7573
7629
|
};
|
|
7574
7630
|
readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
7575
7631
|
readonly cost?: (number & import("effect/Brand").Brand<"Money.USD">) | undefined;
|
|
@@ -7895,6 +7951,9 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
|
|
|
7895
7951
|
readonly type: string;
|
|
7896
7952
|
readonly message: string;
|
|
7897
7953
|
readonly status?: number | undefined;
|
|
7954
|
+
readonly response?: {
|
|
7955
|
+
readonly body: string;
|
|
7956
|
+
} | undefined;
|
|
7898
7957
|
};
|
|
7899
7958
|
readonly executed: boolean;
|
|
7900
7959
|
readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
@@ -7946,6 +8005,9 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
|
|
|
7946
8005
|
readonly type: string;
|
|
7947
8006
|
readonly message: string;
|
|
7948
8007
|
readonly status?: number | undefined;
|
|
8008
|
+
readonly response?: {
|
|
8009
|
+
readonly body: string;
|
|
8010
|
+
} | undefined;
|
|
7949
8011
|
};
|
|
7950
8012
|
readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
|
|
7951
8013
|
};
|
|
@@ -8060,6 +8122,9 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
|
|
|
8060
8122
|
readonly type: string;
|
|
8061
8123
|
readonly message: string;
|
|
8062
8124
|
readonly status?: number | undefined;
|
|
8125
|
+
readonly response?: {
|
|
8126
|
+
readonly body: string;
|
|
8127
|
+
} | undefined;
|
|
8063
8128
|
};
|
|
8064
8129
|
readonly reason: "auto" | "manual";
|
|
8065
8130
|
readonly cost?: (number & import("effect/Brand").Brand<"Money.USD">) | undefined;
|
|
@@ -10548,6 +10613,11 @@ export declare const OpenCodeEvent: Schema.Union<readonly [Schema.Struct<{
|
|
|
10548
10613
|
readonly type: Schema.String;
|
|
10549
10614
|
readonly message: Schema.String;
|
|
10550
10615
|
readonly status: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
10616
|
+
readonly response: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
10617
|
+
readonly body: Schema.String;
|
|
10618
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
10619
|
+
readonly body: Schema.String;
|
|
10620
|
+
}>>, never, never>;
|
|
10551
10621
|
}>;
|
|
10552
10622
|
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
10553
10623
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
@@ -10566,6 +10636,11 @@ export declare const OpenCodeEvent: Schema.Union<readonly [Schema.Struct<{
|
|
|
10566
10636
|
readonly type: Schema.String;
|
|
10567
10637
|
readonly message: Schema.String;
|
|
10568
10638
|
readonly status: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
10639
|
+
readonly response: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
10640
|
+
readonly body: Schema.String;
|
|
10641
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
10642
|
+
readonly body: Schema.String;
|
|
10643
|
+
}>>, never, never>;
|
|
10569
10644
|
}>;
|
|
10570
10645
|
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
10571
10646
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
@@ -11278,6 +11353,11 @@ export declare const OpenCodeEvent: Schema.Union<readonly [Schema.Struct<{
|
|
|
11278
11353
|
readonly type: Schema.String;
|
|
11279
11354
|
readonly message: Schema.String;
|
|
11280
11355
|
readonly status: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
11356
|
+
readonly response: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
11357
|
+
readonly body: Schema.String;
|
|
11358
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
11359
|
+
readonly body: Schema.String;
|
|
11360
|
+
}>>, never, never>;
|
|
11281
11361
|
}>;
|
|
11282
11362
|
readonly finish: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<readonly ["content-filter"]>>>, Schema.optionalKey<Schema.Literals<readonly ["content-filter"]>>, never, never>;
|
|
11283
11363
|
readonly rawFinish: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
@@ -11327,6 +11407,11 @@ export declare const OpenCodeEvent: Schema.Union<readonly [Schema.Struct<{
|
|
|
11327
11407
|
readonly type: Schema.String;
|
|
11328
11408
|
readonly message: Schema.String;
|
|
11329
11409
|
readonly status: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
11410
|
+
readonly response: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
11411
|
+
readonly body: Schema.String;
|
|
11412
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
11413
|
+
readonly body: Schema.String;
|
|
11414
|
+
}>>, never, never>;
|
|
11330
11415
|
}>;
|
|
11331
11416
|
readonly finish: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<readonly ["content-filter"]>>>, Schema.optionalKey<Schema.Literals<readonly ["content-filter"]>>, never, never>;
|
|
11332
11417
|
readonly rawFinish: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
@@ -12136,6 +12221,11 @@ export declare const OpenCodeEvent: Schema.Union<readonly [Schema.Struct<{
|
|
|
12136
12221
|
readonly type: Schema.String;
|
|
12137
12222
|
readonly message: Schema.String;
|
|
12138
12223
|
readonly status: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
12224
|
+
readonly response: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
12225
|
+
readonly body: Schema.String;
|
|
12226
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
12227
|
+
readonly body: Schema.String;
|
|
12228
|
+
}>>, never, never>;
|
|
12139
12229
|
}>;
|
|
12140
12230
|
readonly content: Schema.decodeTo<Schema.optional<Schema.toType<Schema.NonEmptyArray<Schema.Union<readonly [Schema.Struct<{
|
|
12141
12231
|
readonly type: Schema.Literal<"text">;
|
|
@@ -12179,6 +12269,11 @@ export declare const OpenCodeEvent: Schema.Union<readonly [Schema.Struct<{
|
|
|
12179
12269
|
readonly type: Schema.String;
|
|
12180
12270
|
readonly message: Schema.String;
|
|
12181
12271
|
readonly status: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
12272
|
+
readonly response: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
12273
|
+
readonly body: Schema.String;
|
|
12274
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
12275
|
+
readonly body: Schema.String;
|
|
12276
|
+
}>>, never, never>;
|
|
12182
12277
|
}>;
|
|
12183
12278
|
readonly content: Schema.decodeTo<Schema.optional<Schema.toType<Schema.NonEmptyArray<Schema.Union<readonly [Schema.Struct<{
|
|
12184
12279
|
readonly type: Schema.Literal<"text">;
|
|
@@ -12252,6 +12347,11 @@ export declare const OpenCodeEvent: Schema.Union<readonly [Schema.Struct<{
|
|
|
12252
12347
|
readonly type: Schema.String;
|
|
12253
12348
|
readonly message: Schema.String;
|
|
12254
12349
|
readonly status: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
12350
|
+
readonly response: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
12351
|
+
readonly body: Schema.String;
|
|
12352
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
12353
|
+
readonly body: Schema.String;
|
|
12354
|
+
}>>, never, never>;
|
|
12255
12355
|
}>;
|
|
12256
12356
|
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
12257
12357
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
@@ -12276,6 +12376,11 @@ export declare const OpenCodeEvent: Schema.Union<readonly [Schema.Struct<{
|
|
|
12276
12376
|
readonly type: Schema.String;
|
|
12277
12377
|
readonly message: Schema.String;
|
|
12278
12378
|
readonly status: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
12379
|
+
readonly response: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
12380
|
+
readonly body: Schema.String;
|
|
12381
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
12382
|
+
readonly body: Schema.String;
|
|
12383
|
+
}>>, never, never>;
|
|
12279
12384
|
}>;
|
|
12280
12385
|
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
12281
12386
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
@@ -12717,6 +12822,11 @@ export declare const OpenCodeEvent: Schema.Union<readonly [Schema.Struct<{
|
|
|
12717
12822
|
readonly type: Schema.String;
|
|
12718
12823
|
readonly message: Schema.String;
|
|
12719
12824
|
readonly status: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
12825
|
+
readonly response: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
12826
|
+
readonly body: Schema.String;
|
|
12827
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
12828
|
+
readonly body: Schema.String;
|
|
12829
|
+
}>>, never, never>;
|
|
12720
12830
|
}>;
|
|
12721
12831
|
readonly inputID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
12722
12832
|
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
@@ -12765,6 +12875,11 @@ export declare const OpenCodeEvent: Schema.Union<readonly [Schema.Struct<{
|
|
|
12765
12875
|
readonly type: Schema.String;
|
|
12766
12876
|
readonly message: Schema.String;
|
|
12767
12877
|
readonly status: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
12878
|
+
readonly response: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
12879
|
+
readonly body: Schema.String;
|
|
12880
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
12881
|
+
readonly body: Schema.String;
|
|
12882
|
+
}>>, never, never>;
|
|
12768
12883
|
}>;
|
|
12769
12884
|
readonly inputID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
12770
12885
|
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
@@ -511,9 +511,27 @@ export declare const IntegrationGroup: HttpApiGroup.HttpApiGroup<"server.integra
|
|
|
511
511
|
};
|
|
512
512
|
readonly label: Schema.String;
|
|
513
513
|
readonly method: Schema.Literals<readonly ["key", "oauth"]>;
|
|
514
|
+
readonly status: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
515
|
+
readonly status: Schema.Literals<readonly ["needs_auth"]>;
|
|
516
|
+
readonly message: Schema.String;
|
|
517
|
+
readonly url: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
518
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
519
|
+
readonly status: Schema.Literals<readonly ["needs_auth"]>;
|
|
520
|
+
readonly message: Schema.String;
|
|
521
|
+
readonly url: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
522
|
+
}>>, never, never>;
|
|
514
523
|
}>, Schema.Struct<{
|
|
515
524
|
readonly type: Schema.Literal<"env">;
|
|
516
525
|
readonly name: Schema.String;
|
|
526
|
+
readonly status: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
527
|
+
readonly status: Schema.Literals<readonly ["needs_auth"]>;
|
|
528
|
+
readonly message: Schema.String;
|
|
529
|
+
readonly url: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
530
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
531
|
+
readonly status: Schema.Literals<readonly ["needs_auth"]>;
|
|
532
|
+
readonly message: Schema.String;
|
|
533
|
+
readonly url: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
534
|
+
}>>, never, never>;
|
|
517
535
|
}>]>>;
|
|
518
536
|
}>>;
|
|
519
537
|
}>>, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"integration.get", "GET", "/api/integration/:integrationID", Schema.toCodecStringTree<Schema.Struct<{
|
|
@@ -1027,9 +1045,27 @@ export declare const IntegrationGroup: HttpApiGroup.HttpApiGroup<"server.integra
|
|
|
1027
1045
|
};
|
|
1028
1046
|
readonly label: Schema.String;
|
|
1029
1047
|
readonly method: Schema.Literals<readonly ["key", "oauth"]>;
|
|
1048
|
+
readonly status: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
1049
|
+
readonly status: Schema.Literals<readonly ["needs_auth"]>;
|
|
1050
|
+
readonly message: Schema.String;
|
|
1051
|
+
readonly url: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
1052
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
1053
|
+
readonly status: Schema.Literals<readonly ["needs_auth"]>;
|
|
1054
|
+
readonly message: Schema.String;
|
|
1055
|
+
readonly url: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
1056
|
+
}>>, never, never>;
|
|
1030
1057
|
}>, Schema.Struct<{
|
|
1031
1058
|
readonly type: Schema.Literal<"env">;
|
|
1032
1059
|
readonly name: Schema.String;
|
|
1060
|
+
readonly status: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
1061
|
+
readonly status: Schema.Literals<readonly ["needs_auth"]>;
|
|
1062
|
+
readonly message: Schema.String;
|
|
1063
|
+
readonly url: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
1064
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
1065
|
+
readonly status: Schema.Literals<readonly ["needs_auth"]>;
|
|
1066
|
+
readonly message: Schema.String;
|
|
1067
|
+
readonly url: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
1068
|
+
}>>, never, never>;
|
|
1033
1069
|
}>]>>;
|
|
1034
1070
|
}>;
|
|
1035
1071
|
}>>, Schema.toCodecJson<typeof IntegrationNotFoundError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"integration.wellknown.add", "POST", "/api/experimental/integration/wellknown", never, Schema.toCodecStringTree<Schema.Struct<{
|
package/dist/groups/message.d.ts
CHANGED
|
@@ -406,6 +406,11 @@ export declare const PublicSessionMessage: Schema.Union<readonly [Schema.Struct<
|
|
|
406
406
|
readonly type: Schema.String;
|
|
407
407
|
readonly message: Schema.String;
|
|
408
408
|
readonly status: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
409
|
+
readonly response: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
410
|
+
readonly body: Schema.String;
|
|
411
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
412
|
+
readonly body: Schema.String;
|
|
413
|
+
}>>, never, never>;
|
|
409
414
|
}>;
|
|
410
415
|
readonly content: Schema.decodeTo<Schema.optional<Schema.toType<Schema.NonEmptyArray<Schema.Union<readonly [Schema.Struct<{
|
|
411
416
|
readonly type: Schema.Literal<"text">;
|
|
@@ -470,10 +475,20 @@ export declare const PublicSessionMessage: Schema.Union<readonly [Schema.Struct<
|
|
|
470
475
|
readonly type: Schema.String;
|
|
471
476
|
readonly message: Schema.String;
|
|
472
477
|
readonly status: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
478
|
+
readonly response: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
479
|
+
readonly body: Schema.String;
|
|
480
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
481
|
+
readonly body: Schema.String;
|
|
482
|
+
}>>, never, never>;
|
|
473
483
|
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
474
484
|
readonly type: Schema.String;
|
|
475
485
|
readonly message: Schema.String;
|
|
476
486
|
readonly status: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
487
|
+
readonly response: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
488
|
+
readonly body: Schema.String;
|
|
489
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
490
|
+
readonly body: Schema.String;
|
|
491
|
+
}>>, never, never>;
|
|
477
492
|
}>>, never, never>;
|
|
478
493
|
readonly retry: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
479
494
|
readonly attempt: Schema.Int;
|
|
@@ -482,6 +497,11 @@ export declare const PublicSessionMessage: Schema.Union<readonly [Schema.Struct<
|
|
|
482
497
|
readonly type: Schema.String;
|
|
483
498
|
readonly message: Schema.String;
|
|
484
499
|
readonly status: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
500
|
+
readonly response: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
501
|
+
readonly body: Schema.String;
|
|
502
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
503
|
+
readonly body: Schema.String;
|
|
504
|
+
}>>, never, never>;
|
|
485
505
|
}>;
|
|
486
506
|
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
487
507
|
readonly attempt: Schema.Int;
|
|
@@ -490,6 +510,11 @@ export declare const PublicSessionMessage: Schema.Union<readonly [Schema.Struct<
|
|
|
490
510
|
readonly type: Schema.String;
|
|
491
511
|
readonly message: Schema.String;
|
|
492
512
|
readonly status: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
513
|
+
readonly response: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
514
|
+
readonly body: Schema.String;
|
|
515
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
516
|
+
readonly body: Schema.String;
|
|
517
|
+
}>>, never, never>;
|
|
493
518
|
}>;
|
|
494
519
|
}>>, never, never>;
|
|
495
520
|
readonly time: Schema.Struct<{
|
|
@@ -674,6 +699,11 @@ export declare const PublicSessionMessage: Schema.Union<readonly [Schema.Struct<
|
|
|
674
699
|
readonly type: Schema.String;
|
|
675
700
|
readonly message: Schema.String;
|
|
676
701
|
readonly status: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
702
|
+
readonly response: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
703
|
+
readonly body: Schema.String;
|
|
704
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
705
|
+
readonly body: Schema.String;
|
|
706
|
+
}>>, never, never>;
|
|
677
707
|
}>;
|
|
678
708
|
readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
679
709
|
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
@@ -1106,6 +1136,11 @@ export declare const MessageGroup: HttpApiGroup.HttpApiGroup<"server.message", H
|
|
|
1106
1136
|
readonly type: Schema.String;
|
|
1107
1137
|
readonly message: Schema.String;
|
|
1108
1138
|
readonly status: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
1139
|
+
readonly response: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
1140
|
+
readonly body: Schema.String;
|
|
1141
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
1142
|
+
readonly body: Schema.String;
|
|
1143
|
+
}>>, never, never>;
|
|
1109
1144
|
}>;
|
|
1110
1145
|
readonly content: Schema.decodeTo<Schema.optional<Schema.toType<Schema.NonEmptyArray<Schema.Union<readonly [Schema.Struct<{
|
|
1111
1146
|
readonly type: Schema.Literal<"text">;
|
|
@@ -1170,10 +1205,20 @@ export declare const MessageGroup: HttpApiGroup.HttpApiGroup<"server.message", H
|
|
|
1170
1205
|
readonly type: Schema.String;
|
|
1171
1206
|
readonly message: Schema.String;
|
|
1172
1207
|
readonly status: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
1208
|
+
readonly response: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
1209
|
+
readonly body: Schema.String;
|
|
1210
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
1211
|
+
readonly body: Schema.String;
|
|
1212
|
+
}>>, never, never>;
|
|
1173
1213
|
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
1174
1214
|
readonly type: Schema.String;
|
|
1175
1215
|
readonly message: Schema.String;
|
|
1176
1216
|
readonly status: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
1217
|
+
readonly response: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
1218
|
+
readonly body: Schema.String;
|
|
1219
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
1220
|
+
readonly body: Schema.String;
|
|
1221
|
+
}>>, never, never>;
|
|
1177
1222
|
}>>, never, never>;
|
|
1178
1223
|
readonly retry: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
1179
1224
|
readonly attempt: Schema.Int;
|
|
@@ -1182,6 +1227,11 @@ export declare const MessageGroup: HttpApiGroup.HttpApiGroup<"server.message", H
|
|
|
1182
1227
|
readonly type: Schema.String;
|
|
1183
1228
|
readonly message: Schema.String;
|
|
1184
1229
|
readonly status: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
1230
|
+
readonly response: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
1231
|
+
readonly body: Schema.String;
|
|
1232
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
1233
|
+
readonly body: Schema.String;
|
|
1234
|
+
}>>, never, never>;
|
|
1185
1235
|
}>;
|
|
1186
1236
|
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
1187
1237
|
readonly attempt: Schema.Int;
|
|
@@ -1190,6 +1240,11 @@ export declare const MessageGroup: HttpApiGroup.HttpApiGroup<"server.message", H
|
|
|
1190
1240
|
readonly type: Schema.String;
|
|
1191
1241
|
readonly message: Schema.String;
|
|
1192
1242
|
readonly status: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
1243
|
+
readonly response: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
1244
|
+
readonly body: Schema.String;
|
|
1245
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
1246
|
+
readonly body: Schema.String;
|
|
1247
|
+
}>>, never, never>;
|
|
1193
1248
|
}>;
|
|
1194
1249
|
}>>, never, never>;
|
|
1195
1250
|
readonly time: Schema.Struct<{
|
|
@@ -1374,6 +1429,11 @@ export declare const MessageGroup: HttpApiGroup.HttpApiGroup<"server.message", H
|
|
|
1374
1429
|
readonly type: Schema.String;
|
|
1375
1430
|
readonly message: Schema.String;
|
|
1376
1431
|
readonly status: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
1432
|
+
readonly response: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
1433
|
+
readonly body: Schema.String;
|
|
1434
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
1435
|
+
readonly body: Schema.String;
|
|
1436
|
+
}>>, never, never>;
|
|
1377
1437
|
}>;
|
|
1378
1438
|
readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
1379
1439
|
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
package/dist/groups/session.d.ts
CHANGED
|
@@ -1261,6 +1261,11 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
|
|
|
1261
1261
|
readonly type: Schema.String;
|
|
1262
1262
|
readonly message: Schema.String;
|
|
1263
1263
|
readonly status: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
1264
|
+
readonly response: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
1265
|
+
readonly body: Schema.String;
|
|
1266
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
1267
|
+
readonly body: Schema.String;
|
|
1268
|
+
}>>, never, never>;
|
|
1264
1269
|
}>;
|
|
1265
1270
|
readonly content: Schema.decodeTo<Schema.optional<Schema.toType<Schema.NonEmptyArray<Schema.Union<readonly [Schema.Struct<{
|
|
1266
1271
|
readonly type: Schema.Literal<"text">;
|
|
@@ -1325,10 +1330,20 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
|
|
|
1325
1330
|
readonly type: Schema.String;
|
|
1326
1331
|
readonly message: Schema.String;
|
|
1327
1332
|
readonly status: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
1333
|
+
readonly response: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
1334
|
+
readonly body: Schema.String;
|
|
1335
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
1336
|
+
readonly body: Schema.String;
|
|
1337
|
+
}>>, never, never>;
|
|
1328
1338
|
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
1329
1339
|
readonly type: Schema.String;
|
|
1330
1340
|
readonly message: Schema.String;
|
|
1331
1341
|
readonly status: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
1342
|
+
readonly response: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
1343
|
+
readonly body: Schema.String;
|
|
1344
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
1345
|
+
readonly body: Schema.String;
|
|
1346
|
+
}>>, never, never>;
|
|
1332
1347
|
}>>, never, never>;
|
|
1333
1348
|
readonly retry: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
1334
1349
|
readonly attempt: Schema.Int;
|
|
@@ -1337,6 +1352,11 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
|
|
|
1337
1352
|
readonly type: Schema.String;
|
|
1338
1353
|
readonly message: Schema.String;
|
|
1339
1354
|
readonly status: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
1355
|
+
readonly response: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
1356
|
+
readonly body: Schema.String;
|
|
1357
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
1358
|
+
readonly body: Schema.String;
|
|
1359
|
+
}>>, never, never>;
|
|
1340
1360
|
}>;
|
|
1341
1361
|
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
1342
1362
|
readonly attempt: Schema.Int;
|
|
@@ -1345,6 +1365,11 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
|
|
|
1345
1365
|
readonly type: Schema.String;
|
|
1346
1366
|
readonly message: Schema.String;
|
|
1347
1367
|
readonly status: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
1368
|
+
readonly response: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
1369
|
+
readonly body: Schema.String;
|
|
1370
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
1371
|
+
readonly body: Schema.String;
|
|
1372
|
+
}>>, never, never>;
|
|
1348
1373
|
}>;
|
|
1349
1374
|
}>>, never, never>;
|
|
1350
1375
|
readonly time: Schema.Struct<{
|
|
@@ -1529,6 +1554,11 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
|
|
|
1529
1554
|
readonly type: Schema.String;
|
|
1530
1555
|
readonly message: Schema.String;
|
|
1531
1556
|
readonly status: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
1557
|
+
readonly response: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
1558
|
+
readonly body: Schema.String;
|
|
1559
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
1560
|
+
readonly body: Schema.String;
|
|
1561
|
+
}>>, never, never>;
|
|
1532
1562
|
}>;
|
|
1533
1563
|
readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
1534
1564
|
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
@@ -2310,6 +2340,11 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
|
|
|
2310
2340
|
readonly type: Schema.String;
|
|
2311
2341
|
readonly message: Schema.String;
|
|
2312
2342
|
readonly status: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
2343
|
+
readonly response: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
2344
|
+
readonly body: Schema.String;
|
|
2345
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
2346
|
+
readonly body: Schema.String;
|
|
2347
|
+
}>>, never, never>;
|
|
2313
2348
|
}>;
|
|
2314
2349
|
readonly content: Schema.decodeTo<Schema.optional<Schema.toType<Schema.NonEmptyArray<Schema.Union<readonly [Schema.Struct<{
|
|
2315
2350
|
readonly type: Schema.Literal<"text">;
|
|
@@ -2374,10 +2409,20 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
|
|
|
2374
2409
|
readonly type: Schema.String;
|
|
2375
2410
|
readonly message: Schema.String;
|
|
2376
2411
|
readonly status: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
2412
|
+
readonly response: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
2413
|
+
readonly body: Schema.String;
|
|
2414
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
2415
|
+
readonly body: Schema.String;
|
|
2416
|
+
}>>, never, never>;
|
|
2377
2417
|
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
2378
2418
|
readonly type: Schema.String;
|
|
2379
2419
|
readonly message: Schema.String;
|
|
2380
2420
|
readonly status: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
2421
|
+
readonly response: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
2422
|
+
readonly body: Schema.String;
|
|
2423
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
2424
|
+
readonly body: Schema.String;
|
|
2425
|
+
}>>, never, never>;
|
|
2381
2426
|
}>>, never, never>;
|
|
2382
2427
|
readonly retry: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
2383
2428
|
readonly attempt: Schema.Int;
|
|
@@ -2386,6 +2431,11 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
|
|
|
2386
2431
|
readonly type: Schema.String;
|
|
2387
2432
|
readonly message: Schema.String;
|
|
2388
2433
|
readonly status: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
2434
|
+
readonly response: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
2435
|
+
readonly body: Schema.String;
|
|
2436
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
2437
|
+
readonly body: Schema.String;
|
|
2438
|
+
}>>, never, never>;
|
|
2389
2439
|
}>;
|
|
2390
2440
|
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
2391
2441
|
readonly attempt: Schema.Int;
|
|
@@ -2394,6 +2444,11 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
|
|
|
2394
2444
|
readonly type: Schema.String;
|
|
2395
2445
|
readonly message: Schema.String;
|
|
2396
2446
|
readonly status: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
2447
|
+
readonly response: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
2448
|
+
readonly body: Schema.String;
|
|
2449
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
2450
|
+
readonly body: Schema.String;
|
|
2451
|
+
}>>, never, never>;
|
|
2397
2452
|
}>;
|
|
2398
2453
|
}>>, never, never>;
|
|
2399
2454
|
readonly time: Schema.Struct<{
|
|
@@ -2578,6 +2633,11 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
|
|
|
2578
2633
|
readonly type: Schema.String;
|
|
2579
2634
|
readonly message: Schema.String;
|
|
2580
2635
|
readonly status: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
2636
|
+
readonly response: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
2637
|
+
readonly body: Schema.String;
|
|
2638
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
2639
|
+
readonly body: Schema.String;
|
|
2640
|
+
}>>, never, never>;
|
|
2581
2641
|
}>;
|
|
2582
2642
|
readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
2583
2643
|
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
@@ -3933,6 +3993,11 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
|
|
|
3933
3993
|
readonly type: Schema.String;
|
|
3934
3994
|
readonly message: Schema.String;
|
|
3935
3995
|
readonly status: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
3996
|
+
readonly response: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
3997
|
+
readonly body: Schema.String;
|
|
3998
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
3999
|
+
readonly body: Schema.String;
|
|
4000
|
+
}>>, never, never>;
|
|
3936
4001
|
}>;
|
|
3937
4002
|
readonly content: Schema.decodeTo<Schema.optional<Schema.toType<Schema.NonEmptyArray<Schema.Union<readonly [Schema.Struct<{
|
|
3938
4003
|
readonly type: Schema.Literal<"text">;
|
|
@@ -3997,10 +4062,20 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
|
|
|
3997
4062
|
readonly type: Schema.String;
|
|
3998
4063
|
readonly message: Schema.String;
|
|
3999
4064
|
readonly status: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
4065
|
+
readonly response: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
4066
|
+
readonly body: Schema.String;
|
|
4067
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
4068
|
+
readonly body: Schema.String;
|
|
4069
|
+
}>>, never, never>;
|
|
4000
4070
|
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
4001
4071
|
readonly type: Schema.String;
|
|
4002
4072
|
readonly message: Schema.String;
|
|
4003
4073
|
readonly status: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
4074
|
+
readonly response: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
4075
|
+
readonly body: Schema.String;
|
|
4076
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
4077
|
+
readonly body: Schema.String;
|
|
4078
|
+
}>>, never, never>;
|
|
4004
4079
|
}>>, never, never>;
|
|
4005
4080
|
readonly retry: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
4006
4081
|
readonly attempt: Schema.Int;
|
|
@@ -4009,6 +4084,11 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
|
|
|
4009
4084
|
readonly type: Schema.String;
|
|
4010
4085
|
readonly message: Schema.String;
|
|
4011
4086
|
readonly status: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
4087
|
+
readonly response: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
4088
|
+
readonly body: Schema.String;
|
|
4089
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
4090
|
+
readonly body: Schema.String;
|
|
4091
|
+
}>>, never, never>;
|
|
4012
4092
|
}>;
|
|
4013
4093
|
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
4014
4094
|
readonly attempt: Schema.Int;
|
|
@@ -4017,6 +4097,11 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
|
|
|
4017
4097
|
readonly type: Schema.String;
|
|
4018
4098
|
readonly message: Schema.String;
|
|
4019
4099
|
readonly status: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
4100
|
+
readonly response: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
4101
|
+
readonly body: Schema.String;
|
|
4102
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
4103
|
+
readonly body: Schema.String;
|
|
4104
|
+
}>>, never, never>;
|
|
4020
4105
|
}>;
|
|
4021
4106
|
}>>, never, never>;
|
|
4022
4107
|
readonly time: Schema.Struct<{
|
|
@@ -4201,6 +4286,11 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
|
|
|
4201
4286
|
readonly type: Schema.String;
|
|
4202
4287
|
readonly message: Schema.String;
|
|
4203
4288
|
readonly status: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
4289
|
+
readonly response: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
4290
|
+
readonly body: Schema.String;
|
|
4291
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
4292
|
+
readonly body: Schema.String;
|
|
4293
|
+
}>>, never, never>;
|
|
4204
4294
|
}>;
|
|
4205
4295
|
readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
4206
4296
|
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
@@ -6118,6 +6208,11 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
|
|
|
6118
6208
|
readonly type: Schema.String;
|
|
6119
6209
|
readonly message: Schema.String;
|
|
6120
6210
|
readonly status: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
6211
|
+
readonly response: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
6212
|
+
readonly body: Schema.String;
|
|
6213
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
6214
|
+
readonly body: Schema.String;
|
|
6215
|
+
}>>, never, never>;
|
|
6121
6216
|
}>;
|
|
6122
6217
|
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
6123
6218
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
@@ -6136,6 +6231,11 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
|
|
|
6136
6231
|
readonly type: Schema.String;
|
|
6137
6232
|
readonly message: Schema.String;
|
|
6138
6233
|
readonly status: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
6234
|
+
readonly response: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
6235
|
+
readonly body: Schema.String;
|
|
6236
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
6237
|
+
readonly body: Schema.String;
|
|
6238
|
+
}>>, never, never>;
|
|
6139
6239
|
}>;
|
|
6140
6240
|
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
6141
6241
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
@@ -6848,6 +6948,11 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
|
|
|
6848
6948
|
readonly type: Schema.String;
|
|
6849
6949
|
readonly message: Schema.String;
|
|
6850
6950
|
readonly status: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
6951
|
+
readonly response: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
6952
|
+
readonly body: Schema.String;
|
|
6953
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
6954
|
+
readonly body: Schema.String;
|
|
6955
|
+
}>>, never, never>;
|
|
6851
6956
|
}>;
|
|
6852
6957
|
readonly finish: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<readonly ["content-filter"]>>>, Schema.optionalKey<Schema.Literals<readonly ["content-filter"]>>, never, never>;
|
|
6853
6958
|
readonly rawFinish: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
@@ -6897,6 +7002,11 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
|
|
|
6897
7002
|
readonly type: Schema.String;
|
|
6898
7003
|
readonly message: Schema.String;
|
|
6899
7004
|
readonly status: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
7005
|
+
readonly response: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
7006
|
+
readonly body: Schema.String;
|
|
7007
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
7008
|
+
readonly body: Schema.String;
|
|
7009
|
+
}>>, never, never>;
|
|
6900
7010
|
}>;
|
|
6901
7011
|
readonly finish: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<readonly ["content-filter"]>>>, Schema.optionalKey<Schema.Literals<readonly ["content-filter"]>>, never, never>;
|
|
6902
7012
|
readonly rawFinish: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
@@ -7490,6 +7600,11 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
|
|
|
7490
7600
|
readonly type: Schema.String;
|
|
7491
7601
|
readonly message: Schema.String;
|
|
7492
7602
|
readonly status: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
7603
|
+
readonly response: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
7604
|
+
readonly body: Schema.String;
|
|
7605
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
7606
|
+
readonly body: Schema.String;
|
|
7607
|
+
}>>, never, never>;
|
|
7493
7608
|
}>;
|
|
7494
7609
|
readonly content: Schema.decodeTo<Schema.optional<Schema.toType<Schema.NonEmptyArray<Schema.Union<readonly [Schema.Struct<{
|
|
7495
7610
|
readonly type: Schema.Literal<"text">;
|
|
@@ -7533,6 +7648,11 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
|
|
|
7533
7648
|
readonly type: Schema.String;
|
|
7534
7649
|
readonly message: Schema.String;
|
|
7535
7650
|
readonly status: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
7651
|
+
readonly response: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
7652
|
+
readonly body: Schema.String;
|
|
7653
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
7654
|
+
readonly body: Schema.String;
|
|
7655
|
+
}>>, never, never>;
|
|
7536
7656
|
}>;
|
|
7537
7657
|
readonly content: Schema.decodeTo<Schema.optional<Schema.toType<Schema.NonEmptyArray<Schema.Union<readonly [Schema.Struct<{
|
|
7538
7658
|
readonly type: Schema.Literal<"text">;
|
|
@@ -7606,6 +7726,11 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
|
|
|
7606
7726
|
readonly type: Schema.String;
|
|
7607
7727
|
readonly message: Schema.String;
|
|
7608
7728
|
readonly status: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
7729
|
+
readonly response: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
7730
|
+
readonly body: Schema.String;
|
|
7731
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
7732
|
+
readonly body: Schema.String;
|
|
7733
|
+
}>>, never, never>;
|
|
7609
7734
|
}>;
|
|
7610
7735
|
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
7611
7736
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
@@ -7630,6 +7755,11 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
|
|
|
7630
7755
|
readonly type: Schema.String;
|
|
7631
7756
|
readonly message: Schema.String;
|
|
7632
7757
|
readonly status: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
7758
|
+
readonly response: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
7759
|
+
readonly body: Schema.String;
|
|
7760
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
7761
|
+
readonly body: Schema.String;
|
|
7762
|
+
}>>, never, never>;
|
|
7633
7763
|
}>;
|
|
7634
7764
|
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
7635
7765
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
@@ -8027,6 +8157,11 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
|
|
|
8027
8157
|
readonly type: Schema.String;
|
|
8028
8158
|
readonly message: Schema.String;
|
|
8029
8159
|
readonly status: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
8160
|
+
readonly response: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
8161
|
+
readonly body: Schema.String;
|
|
8162
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
8163
|
+
readonly body: Schema.String;
|
|
8164
|
+
}>>, never, never>;
|
|
8030
8165
|
}>;
|
|
8031
8166
|
readonly inputID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
8032
8167
|
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
@@ -8075,6 +8210,11 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
|
|
|
8075
8210
|
readonly type: Schema.String;
|
|
8076
8211
|
readonly message: Schema.String;
|
|
8077
8212
|
readonly status: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
8213
|
+
readonly response: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
8214
|
+
readonly body: Schema.String;
|
|
8215
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
8216
|
+
readonly body: Schema.String;
|
|
8217
|
+
}>>, never, never>;
|
|
8078
8218
|
}>;
|
|
8079
8219
|
readonly inputID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
8080
8220
|
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
@@ -8471,6 +8611,11 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
|
|
|
8471
8611
|
readonly type: Schema.String;
|
|
8472
8612
|
readonly message: Schema.String;
|
|
8473
8613
|
readonly status: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
8614
|
+
readonly response: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
8615
|
+
readonly body: Schema.String;
|
|
8616
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
8617
|
+
readonly body: Schema.String;
|
|
8618
|
+
}>>, never, never>;
|
|
8474
8619
|
}>;
|
|
8475
8620
|
readonly content: Schema.decodeTo<Schema.optional<Schema.toType<Schema.NonEmptyArray<Schema.Union<readonly [Schema.Struct<{
|
|
8476
8621
|
readonly type: Schema.Literal<"text">;
|
|
@@ -8563,6 +8708,11 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
|
|
|
8563
8708
|
readonly type: Schema.String;
|
|
8564
8709
|
readonly message: Schema.String;
|
|
8565
8710
|
readonly status: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
8711
|
+
readonly response: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
8712
|
+
readonly body: Schema.String;
|
|
8713
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
8714
|
+
readonly body: Schema.String;
|
|
8715
|
+
}>>, never, never>;
|
|
8566
8716
|
}>;
|
|
8567
8717
|
readonly content: Schema.decodeTo<Schema.optional<Schema.toType<Schema.NonEmptyArray<Schema.Union<readonly [Schema.Struct<{
|
|
8568
8718
|
readonly type: Schema.Literal<"text">;
|
|
@@ -8851,6 +9001,9 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
|
|
|
8851
9001
|
readonly type: string;
|
|
8852
9002
|
readonly message: string;
|
|
8853
9003
|
readonly status?: number | undefined;
|
|
9004
|
+
readonly response?: {
|
|
9005
|
+
readonly body: string;
|
|
9006
|
+
} | undefined;
|
|
8854
9007
|
};
|
|
8855
9008
|
readonly status: "error";
|
|
8856
9009
|
readonly input: {
|
|
@@ -9202,6 +9355,9 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
|
|
|
9202
9355
|
readonly type: string;
|
|
9203
9356
|
readonly message: string;
|
|
9204
9357
|
readonly status?: number | undefined;
|
|
9358
|
+
readonly response?: {
|
|
9359
|
+
readonly body: string;
|
|
9360
|
+
} | undefined;
|
|
9205
9361
|
};
|
|
9206
9362
|
readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
|
|
9207
9363
|
};
|
|
@@ -9481,6 +9637,9 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
|
|
|
9481
9637
|
readonly type: string;
|
|
9482
9638
|
readonly message: string;
|
|
9483
9639
|
readonly status?: number | undefined;
|
|
9640
|
+
readonly response?: {
|
|
9641
|
+
readonly body: string;
|
|
9642
|
+
} | undefined;
|
|
9484
9643
|
};
|
|
9485
9644
|
readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
9486
9645
|
readonly cost?: (number & import("effect/Brand").Brand<"Money.USD">) | undefined;
|
|
@@ -9736,6 +9895,9 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
|
|
|
9736
9895
|
readonly type: string;
|
|
9737
9896
|
readonly message: string;
|
|
9738
9897
|
readonly status?: number | undefined;
|
|
9898
|
+
readonly response?: {
|
|
9899
|
+
readonly body: string;
|
|
9900
|
+
} | undefined;
|
|
9739
9901
|
};
|
|
9740
9902
|
readonly executed: boolean;
|
|
9741
9903
|
readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
@@ -9787,6 +9949,9 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
|
|
|
9787
9949
|
readonly type: string;
|
|
9788
9950
|
readonly message: string;
|
|
9789
9951
|
readonly status?: number | undefined;
|
|
9952
|
+
readonly response?: {
|
|
9953
|
+
readonly body: string;
|
|
9954
|
+
} | undefined;
|
|
9790
9955
|
};
|
|
9791
9956
|
readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
|
|
9792
9957
|
};
|
|
@@ -9886,6 +10051,9 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
|
|
|
9886
10051
|
readonly type: string;
|
|
9887
10052
|
readonly message: string;
|
|
9888
10053
|
readonly status?: number | undefined;
|
|
10054
|
+
readonly response?: {
|
|
10055
|
+
readonly body: string;
|
|
10056
|
+
} | undefined;
|
|
9889
10057
|
};
|
|
9890
10058
|
readonly reason: "auto" | "manual";
|
|
9891
10059
|
readonly cost?: (number & import("effect/Brand").Brand<"Money.USD">) | undefined;
|
|
@@ -10411,6 +10579,11 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
|
|
|
10411
10579
|
readonly type: Schema.String;
|
|
10412
10580
|
readonly message: Schema.String;
|
|
10413
10581
|
readonly status: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
10582
|
+
readonly response: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
10583
|
+
readonly body: Schema.String;
|
|
10584
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
10585
|
+
readonly body: Schema.String;
|
|
10586
|
+
}>>, never, never>;
|
|
10414
10587
|
}>;
|
|
10415
10588
|
readonly content: Schema.decodeTo<Schema.optional<Schema.toType<Schema.NonEmptyArray<Schema.Union<readonly [Schema.Struct<{
|
|
10416
10589
|
readonly type: Schema.Literal<"text">;
|
|
@@ -10475,10 +10648,20 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
|
|
|
10475
10648
|
readonly type: Schema.String;
|
|
10476
10649
|
readonly message: Schema.String;
|
|
10477
10650
|
readonly status: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
10651
|
+
readonly response: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
10652
|
+
readonly body: Schema.String;
|
|
10653
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
10654
|
+
readonly body: Schema.String;
|
|
10655
|
+
}>>, never, never>;
|
|
10478
10656
|
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
10479
10657
|
readonly type: Schema.String;
|
|
10480
10658
|
readonly message: Schema.String;
|
|
10481
10659
|
readonly status: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
10660
|
+
readonly response: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
10661
|
+
readonly body: Schema.String;
|
|
10662
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
10663
|
+
readonly body: Schema.String;
|
|
10664
|
+
}>>, never, never>;
|
|
10482
10665
|
}>>, never, never>;
|
|
10483
10666
|
readonly retry: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
10484
10667
|
readonly attempt: Schema.Int;
|
|
@@ -10487,6 +10670,11 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
|
|
|
10487
10670
|
readonly type: Schema.String;
|
|
10488
10671
|
readonly message: Schema.String;
|
|
10489
10672
|
readonly status: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
10673
|
+
readonly response: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
10674
|
+
readonly body: Schema.String;
|
|
10675
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
10676
|
+
readonly body: Schema.String;
|
|
10677
|
+
}>>, never, never>;
|
|
10490
10678
|
}>;
|
|
10491
10679
|
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
10492
10680
|
readonly attempt: Schema.Int;
|
|
@@ -10495,6 +10683,11 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
|
|
|
10495
10683
|
readonly type: Schema.String;
|
|
10496
10684
|
readonly message: Schema.String;
|
|
10497
10685
|
readonly status: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
10686
|
+
readonly response: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
10687
|
+
readonly body: Schema.String;
|
|
10688
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
10689
|
+
readonly body: Schema.String;
|
|
10690
|
+
}>>, never, never>;
|
|
10498
10691
|
}>;
|
|
10499
10692
|
}>>, never, never>;
|
|
10500
10693
|
readonly time: Schema.Struct<{
|
|
@@ -10679,6 +10872,11 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
|
|
|
10679
10872
|
readonly type: Schema.String;
|
|
10680
10873
|
readonly message: Schema.String;
|
|
10681
10874
|
readonly status: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
10875
|
+
readonly response: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
10876
|
+
readonly body: Schema.String;
|
|
10877
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
10878
|
+
readonly body: Schema.String;
|
|
10879
|
+
}>>, never, never>;
|
|
10682
10880
|
}>;
|
|
10683
10881
|
readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
10684
10882
|
create: () => string & import("effect/Brand").Brand<"Session.Message.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.20",
|
|
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.20",
|
|
36
36
|
"effect": "4.0.0-rc.112"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|