@opencode/schema 2.0.19 → 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/connection.d.ts +47 -0
- package/dist/connection.js +8 -0
- package/dist/credential.d.ts +48 -0
- package/dist/credential.js +14 -0
- package/dist/event-manifest.d.ts +100 -0
- package/dist/integration.d.ts +18 -0
- package/dist/session-error.d.ts +5 -0
- package/dist/session-error.js +1 -0
- package/dist/session-event.d.ts +290 -0
- package/dist/session-message.d.ts +95 -0
- package/dist/session-transfer.d.ts +30 -0
- package/package.json +1 -1
package/dist/connection.d.ts
CHANGED
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
export * as Connection from "./connection.js";
|
|
2
2
|
import { Schema } from "effect";
|
|
3
|
+
/**
|
|
4
|
+
* Runtime problem an integration reported for a connection. `needs_auth` asks the user to sign in again:
|
|
5
|
+
* at `url` when set (the credential itself stays valid), otherwise by reconnecting the integration.
|
|
6
|
+
*/
|
|
7
|
+
export interface Status extends Schema.Schema.Type<typeof Status> {
|
|
8
|
+
}
|
|
9
|
+
export declare const Status: Schema.Struct<{
|
|
10
|
+
readonly status: Schema.Literals<readonly ["needs_auth"]>;
|
|
11
|
+
readonly message: Schema.String;
|
|
12
|
+
readonly url: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
13
|
+
}>;
|
|
3
14
|
export interface CredentialInfo extends Schema.Schema.Type<typeof CredentialInfo> {
|
|
4
15
|
}
|
|
5
16
|
export declare const CredentialInfo: Schema.Struct<{
|
|
@@ -10,12 +21,30 @@ export declare const CredentialInfo: Schema.Struct<{
|
|
|
10
21
|
readonly label: Schema.String;
|
|
11
22
|
/** How the credential was obtained: a stored key or an OAuth grant. */
|
|
12
23
|
readonly method: Schema.Literals<readonly ["key", "oauth"]>;
|
|
24
|
+
readonly status: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
25
|
+
readonly status: Schema.Literals<readonly ["needs_auth"]>;
|
|
26
|
+
readonly message: Schema.String;
|
|
27
|
+
readonly url: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
28
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
29
|
+
readonly status: Schema.Literals<readonly ["needs_auth"]>;
|
|
30
|
+
readonly message: Schema.String;
|
|
31
|
+
readonly url: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
32
|
+
}>>, never, never>;
|
|
13
33
|
}>;
|
|
14
34
|
export interface EnvInfo extends Schema.Schema.Type<typeof EnvInfo> {
|
|
15
35
|
}
|
|
16
36
|
export declare const EnvInfo: Schema.Struct<{
|
|
17
37
|
readonly type: Schema.Literal<"env">;
|
|
18
38
|
readonly name: Schema.String;
|
|
39
|
+
readonly status: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
40
|
+
readonly status: Schema.Literals<readonly ["needs_auth"]>;
|
|
41
|
+
readonly message: Schema.String;
|
|
42
|
+
readonly url: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
43
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
44
|
+
readonly status: Schema.Literals<readonly ["needs_auth"]>;
|
|
45
|
+
readonly message: Schema.String;
|
|
46
|
+
readonly url: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
47
|
+
}>>, never, never>;
|
|
19
48
|
}>;
|
|
20
49
|
export declare const Info: Schema.Union<readonly [Schema.Struct<{
|
|
21
50
|
readonly type: Schema.Literal<"credential">;
|
|
@@ -25,8 +54,26 @@ export declare const Info: Schema.Union<readonly [Schema.Struct<{
|
|
|
25
54
|
readonly label: Schema.String;
|
|
26
55
|
/** How the credential was obtained: a stored key or an OAuth grant. */
|
|
27
56
|
readonly method: Schema.Literals<readonly ["key", "oauth"]>;
|
|
57
|
+
readonly status: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
58
|
+
readonly status: Schema.Literals<readonly ["needs_auth"]>;
|
|
59
|
+
readonly message: Schema.String;
|
|
60
|
+
readonly url: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
61
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
62
|
+
readonly status: Schema.Literals<readonly ["needs_auth"]>;
|
|
63
|
+
readonly message: Schema.String;
|
|
64
|
+
readonly url: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
65
|
+
}>>, never, never>;
|
|
28
66
|
}>, Schema.Struct<{
|
|
29
67
|
readonly type: Schema.Literal<"env">;
|
|
30
68
|
readonly name: Schema.String;
|
|
69
|
+
readonly status: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
70
|
+
readonly status: Schema.Literals<readonly ["needs_auth"]>;
|
|
71
|
+
readonly message: Schema.String;
|
|
72
|
+
readonly url: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
73
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
74
|
+
readonly status: Schema.Literals<readonly ["needs_auth"]>;
|
|
75
|
+
readonly message: Schema.String;
|
|
76
|
+
readonly url: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
77
|
+
}>>, never, never>;
|
|
31
78
|
}>]>;
|
|
32
79
|
export type Info = typeof Info.Type;
|
package/dist/connection.js
CHANGED
|
@@ -1,16 +1,24 @@
|
|
|
1
1
|
export * as Connection from "./connection.js";
|
|
2
2
|
import { Schema } from "effect";
|
|
3
3
|
import { Credential } from "./credential.js";
|
|
4
|
+
import { optional } from "./schema.js";
|
|
5
|
+
export const Status = Schema.Struct({
|
|
6
|
+
status: Schema.Literals(["needs_auth"]),
|
|
7
|
+
message: Schema.String,
|
|
8
|
+
url: optional(Schema.String),
|
|
9
|
+
}).annotate({ identifier: "Connection.Status" });
|
|
4
10
|
export const CredentialInfo = Schema.Struct({
|
|
5
11
|
type: Schema.Literal("credential"),
|
|
6
12
|
id: Credential.ID,
|
|
7
13
|
label: Schema.String,
|
|
8
14
|
/** How the credential was obtained: a stored key or an OAuth grant. */
|
|
9
15
|
method: Schema.Literals(["key", "oauth"]),
|
|
16
|
+
status: optional(Status),
|
|
10
17
|
}).annotate({ identifier: "Connection.CredentialInfo" });
|
|
11
18
|
export const EnvInfo = Schema.Struct({
|
|
12
19
|
type: Schema.Literal("env"),
|
|
13
20
|
name: Schema.String,
|
|
21
|
+
status: optional(Status),
|
|
14
22
|
}).annotate({ identifier: "Connection.EnvInfo" });
|
|
15
23
|
export const Info = Schema.Union([CredentialInfo, EnvInfo])
|
|
16
24
|
.pipe(Schema.toTaggedUnion("type"))
|
package/dist/credential.d.ts
CHANGED
|
@@ -189,3 +189,51 @@ export declare const Value: Schema.Union<readonly [Schema.Struct<{
|
|
|
189
189
|
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>;
|
|
190
190
|
}>]>;
|
|
191
191
|
export type Value = Schema.Schema.Type<typeof Value>;
|
|
192
|
+
export interface Entry extends Schema.Schema.Type<typeof Entry> {
|
|
193
|
+
}
|
|
194
|
+
export declare const Entry: Schema.Struct<{
|
|
195
|
+
readonly id: Schema.brand<Schema.String, "Credential.ID"> & {
|
|
196
|
+
create: () => string & import("effect/Brand").Brand<"Credential.ID">;
|
|
197
|
+
};
|
|
198
|
+
readonly integrationID: Schema.brand<Schema.String, "Integration.ID">;
|
|
199
|
+
readonly label: Schema.String;
|
|
200
|
+
readonly active: Schema.Boolean;
|
|
201
|
+
readonly value: Schema.Union<readonly [Schema.Struct<{
|
|
202
|
+
readonly type: Schema.Literal<"oauth">;
|
|
203
|
+
readonly methodID: Schema.brand<Schema.String, "Integration.MethodID">;
|
|
204
|
+
readonly refresh: Schema.String;
|
|
205
|
+
readonly access: Schema.String;
|
|
206
|
+
readonly expires: Schema.Int;
|
|
207
|
+
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
208
|
+
}>, Schema.Struct<{
|
|
209
|
+
readonly type: Schema.Literal<"key">;
|
|
210
|
+
readonly key: Schema.String;
|
|
211
|
+
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
212
|
+
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>;
|
|
213
|
+
}>]>;
|
|
214
|
+
}>;
|
|
215
|
+
export interface CreateInput extends Schema.Schema.Type<typeof CreateInput> {
|
|
216
|
+
}
|
|
217
|
+
export declare const CreateInput: Schema.Struct<{
|
|
218
|
+
readonly id: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Credential.ID"> & {
|
|
219
|
+
create: () => string & import("effect/Brand").Brand<"Credential.ID">;
|
|
220
|
+
}>>, Schema.optionalKey<Schema.brand<Schema.String, "Credential.ID"> & {
|
|
221
|
+
create: () => string & import("effect/Brand").Brand<"Credential.ID">;
|
|
222
|
+
}>, never, never>;
|
|
223
|
+
readonly integrationID: Schema.brand<Schema.String, "Integration.ID">;
|
|
224
|
+
readonly label: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
225
|
+
readonly value: Schema.Union<readonly [Schema.Struct<{
|
|
226
|
+
readonly type: Schema.Literal<"oauth">;
|
|
227
|
+
readonly methodID: Schema.brand<Schema.String, "Integration.MethodID">;
|
|
228
|
+
readonly refresh: Schema.String;
|
|
229
|
+
readonly access: Schema.String;
|
|
230
|
+
readonly expires: Schema.Int;
|
|
231
|
+
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
232
|
+
}>, Schema.Struct<{
|
|
233
|
+
readonly type: Schema.Literal<"key">;
|
|
234
|
+
readonly key: Schema.String;
|
|
235
|
+
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
236
|
+
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>;
|
|
237
|
+
}>]>;
|
|
238
|
+
readonly activate: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
|
|
239
|
+
}>;
|
package/dist/credential.js
CHANGED
|
@@ -37,3 +37,17 @@ export const Key = Schema.Struct({
|
|
|
37
37
|
export const Value = Schema.Union([OAuth, Key])
|
|
38
38
|
.pipe(Schema.toTaggedUnion("type"))
|
|
39
39
|
.annotate({ identifier: "Credential.Value" });
|
|
40
|
+
export const Entry = Schema.Struct({
|
|
41
|
+
id: ID,
|
|
42
|
+
integrationID: IntegrationID,
|
|
43
|
+
label: Schema.String,
|
|
44
|
+
active: Schema.Boolean,
|
|
45
|
+
value: Value,
|
|
46
|
+
}).annotate({ identifier: "Credential.Entry" });
|
|
47
|
+
export const CreateInput = Schema.Struct({
|
|
48
|
+
id: optional(ID),
|
|
49
|
+
integrationID: IntegrationID,
|
|
50
|
+
label: optional(Schema.String),
|
|
51
|
+
value: Value,
|
|
52
|
+
activate: optional(Schema.Boolean),
|
|
53
|
+
}).annotate({ identifier: "Credential.CreateInput" });
|
package/dist/event-manifest.d.ts
CHANGED
|
@@ -1935,6 +1935,11 @@ export declare const ServerDefinitions: readonly [Schema.Struct<{
|
|
|
1935
1935
|
readonly type: Schema.String;
|
|
1936
1936
|
readonly message: Schema.String;
|
|
1937
1937
|
readonly status: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
1938
|
+
readonly response: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
1939
|
+
readonly body: Schema.String;
|
|
1940
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
1941
|
+
readonly body: Schema.String;
|
|
1942
|
+
}>>, never, never>;
|
|
1938
1943
|
}>;
|
|
1939
1944
|
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
1940
1945
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
@@ -1953,6 +1958,11 @@ export declare const ServerDefinitions: readonly [Schema.Struct<{
|
|
|
1953
1958
|
readonly type: Schema.String;
|
|
1954
1959
|
readonly message: Schema.String;
|
|
1955
1960
|
readonly status: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
1961
|
+
readonly response: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
1962
|
+
readonly body: Schema.String;
|
|
1963
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
1964
|
+
readonly body: Schema.String;
|
|
1965
|
+
}>>, never, never>;
|
|
1956
1966
|
}>;
|
|
1957
1967
|
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
1958
1968
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
@@ -2665,6 +2675,11 @@ export declare const ServerDefinitions: readonly [Schema.Struct<{
|
|
|
2665
2675
|
readonly type: Schema.String;
|
|
2666
2676
|
readonly message: Schema.String;
|
|
2667
2677
|
readonly status: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
2678
|
+
readonly response: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
2679
|
+
readonly body: Schema.String;
|
|
2680
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
2681
|
+
readonly body: Schema.String;
|
|
2682
|
+
}>>, never, never>;
|
|
2668
2683
|
}>;
|
|
2669
2684
|
readonly finish: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<readonly ["content-filter"]>>>, Schema.optionalKey<Schema.Literals<readonly ["content-filter"]>>, never, never>;
|
|
2670
2685
|
readonly rawFinish: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
@@ -2714,6 +2729,11 @@ export declare const ServerDefinitions: readonly [Schema.Struct<{
|
|
|
2714
2729
|
readonly type: Schema.String;
|
|
2715
2730
|
readonly message: Schema.String;
|
|
2716
2731
|
readonly status: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
2732
|
+
readonly response: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
2733
|
+
readonly body: Schema.String;
|
|
2734
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
2735
|
+
readonly body: Schema.String;
|
|
2736
|
+
}>>, never, never>;
|
|
2717
2737
|
}>;
|
|
2718
2738
|
readonly finish: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<readonly ["content-filter"]>>>, Schema.optionalKey<Schema.Literals<readonly ["content-filter"]>>, never, never>;
|
|
2719
2739
|
readonly rawFinish: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
@@ -3523,6 +3543,11 @@ export declare const ServerDefinitions: readonly [Schema.Struct<{
|
|
|
3523
3543
|
readonly type: Schema.String;
|
|
3524
3544
|
readonly message: Schema.String;
|
|
3525
3545
|
readonly status: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
3546
|
+
readonly response: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
3547
|
+
readonly body: Schema.String;
|
|
3548
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
3549
|
+
readonly body: Schema.String;
|
|
3550
|
+
}>>, never, never>;
|
|
3526
3551
|
}>;
|
|
3527
3552
|
readonly content: Schema.decodeTo<Schema.optional<Schema.toType<Schema.NonEmptyArray<Schema.Union<readonly [Schema.Struct<{
|
|
3528
3553
|
readonly type: Schema.Literal<"text">;
|
|
@@ -3566,6 +3591,11 @@ export declare const ServerDefinitions: readonly [Schema.Struct<{
|
|
|
3566
3591
|
readonly type: Schema.String;
|
|
3567
3592
|
readonly message: Schema.String;
|
|
3568
3593
|
readonly status: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
3594
|
+
readonly response: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
3595
|
+
readonly body: Schema.String;
|
|
3596
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
3597
|
+
readonly body: Schema.String;
|
|
3598
|
+
}>>, never, never>;
|
|
3569
3599
|
}>;
|
|
3570
3600
|
readonly content: Schema.decodeTo<Schema.optional<Schema.toType<Schema.NonEmptyArray<Schema.Union<readonly [Schema.Struct<{
|
|
3571
3601
|
readonly type: Schema.Literal<"text">;
|
|
@@ -3639,6 +3669,11 @@ export declare const ServerDefinitions: readonly [Schema.Struct<{
|
|
|
3639
3669
|
readonly type: Schema.String;
|
|
3640
3670
|
readonly message: Schema.String;
|
|
3641
3671
|
readonly status: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
3672
|
+
readonly response: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
3673
|
+
readonly body: Schema.String;
|
|
3674
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
3675
|
+
readonly body: Schema.String;
|
|
3676
|
+
}>>, never, never>;
|
|
3642
3677
|
}>;
|
|
3643
3678
|
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
3644
3679
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
@@ -3663,6 +3698,11 @@ export declare const ServerDefinitions: readonly [Schema.Struct<{
|
|
|
3663
3698
|
readonly type: Schema.String;
|
|
3664
3699
|
readonly message: Schema.String;
|
|
3665
3700
|
readonly status: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
3701
|
+
readonly response: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
3702
|
+
readonly body: Schema.String;
|
|
3703
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
3704
|
+
readonly body: Schema.String;
|
|
3705
|
+
}>>, never, never>;
|
|
3666
3706
|
}>;
|
|
3667
3707
|
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
3668
3708
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
@@ -4104,6 +4144,11 @@ export declare const ServerDefinitions: readonly [Schema.Struct<{
|
|
|
4104
4144
|
readonly type: Schema.String;
|
|
4105
4145
|
readonly message: Schema.String;
|
|
4106
4146
|
readonly status: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
4147
|
+
readonly response: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
4148
|
+
readonly body: Schema.String;
|
|
4149
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
4150
|
+
readonly body: Schema.String;
|
|
4151
|
+
}>>, never, never>;
|
|
4107
4152
|
}>;
|
|
4108
4153
|
readonly inputID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
4109
4154
|
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
@@ -4152,6 +4197,11 @@ export declare const ServerDefinitions: readonly [Schema.Struct<{
|
|
|
4152
4197
|
readonly type: Schema.String;
|
|
4153
4198
|
readonly message: Schema.String;
|
|
4154
4199
|
readonly status: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
4200
|
+
readonly response: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
4201
|
+
readonly body: Schema.String;
|
|
4202
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
4203
|
+
readonly body: Schema.String;
|
|
4204
|
+
}>>, never, never>;
|
|
4155
4205
|
}>;
|
|
4156
4206
|
readonly inputID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
4157
4207
|
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
@@ -8221,6 +8271,11 @@ export declare const Definitions: readonly [Schema.Struct<{
|
|
|
8221
8271
|
readonly type: Schema.String;
|
|
8222
8272
|
readonly message: Schema.String;
|
|
8223
8273
|
readonly status: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
8274
|
+
readonly response: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
8275
|
+
readonly body: Schema.String;
|
|
8276
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
8277
|
+
readonly body: Schema.String;
|
|
8278
|
+
}>>, never, never>;
|
|
8224
8279
|
}>;
|
|
8225
8280
|
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
8226
8281
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
@@ -8239,6 +8294,11 @@ export declare const Definitions: readonly [Schema.Struct<{
|
|
|
8239
8294
|
readonly type: Schema.String;
|
|
8240
8295
|
readonly message: Schema.String;
|
|
8241
8296
|
readonly status: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
8297
|
+
readonly response: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
8298
|
+
readonly body: Schema.String;
|
|
8299
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
8300
|
+
readonly body: Schema.String;
|
|
8301
|
+
}>>, never, never>;
|
|
8242
8302
|
}>;
|
|
8243
8303
|
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
8244
8304
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
@@ -8951,6 +9011,11 @@ export declare const Definitions: readonly [Schema.Struct<{
|
|
|
8951
9011
|
readonly type: Schema.String;
|
|
8952
9012
|
readonly message: Schema.String;
|
|
8953
9013
|
readonly status: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
9014
|
+
readonly response: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
9015
|
+
readonly body: Schema.String;
|
|
9016
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
9017
|
+
readonly body: Schema.String;
|
|
9018
|
+
}>>, never, never>;
|
|
8954
9019
|
}>;
|
|
8955
9020
|
readonly finish: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<readonly ["content-filter"]>>>, Schema.optionalKey<Schema.Literals<readonly ["content-filter"]>>, never, never>;
|
|
8956
9021
|
readonly rawFinish: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
@@ -9000,6 +9065,11 @@ export declare const Definitions: readonly [Schema.Struct<{
|
|
|
9000
9065
|
readonly type: Schema.String;
|
|
9001
9066
|
readonly message: Schema.String;
|
|
9002
9067
|
readonly status: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
9068
|
+
readonly response: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
9069
|
+
readonly body: Schema.String;
|
|
9070
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
9071
|
+
readonly body: Schema.String;
|
|
9072
|
+
}>>, never, never>;
|
|
9003
9073
|
}>;
|
|
9004
9074
|
readonly finish: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<readonly ["content-filter"]>>>, Schema.optionalKey<Schema.Literals<readonly ["content-filter"]>>, never, never>;
|
|
9005
9075
|
readonly rawFinish: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
@@ -9809,6 +9879,11 @@ export declare const Definitions: readonly [Schema.Struct<{
|
|
|
9809
9879
|
readonly type: Schema.String;
|
|
9810
9880
|
readonly message: Schema.String;
|
|
9811
9881
|
readonly status: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
9882
|
+
readonly response: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
9883
|
+
readonly body: Schema.String;
|
|
9884
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
9885
|
+
readonly body: Schema.String;
|
|
9886
|
+
}>>, never, never>;
|
|
9812
9887
|
}>;
|
|
9813
9888
|
readonly content: Schema.decodeTo<Schema.optional<Schema.toType<Schema.NonEmptyArray<Schema.Union<readonly [Schema.Struct<{
|
|
9814
9889
|
readonly type: Schema.Literal<"text">;
|
|
@@ -9852,6 +9927,11 @@ export declare const Definitions: readonly [Schema.Struct<{
|
|
|
9852
9927
|
readonly type: Schema.String;
|
|
9853
9928
|
readonly message: Schema.String;
|
|
9854
9929
|
readonly status: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
9930
|
+
readonly response: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
9931
|
+
readonly body: Schema.String;
|
|
9932
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
9933
|
+
readonly body: Schema.String;
|
|
9934
|
+
}>>, never, never>;
|
|
9855
9935
|
}>;
|
|
9856
9936
|
readonly content: Schema.decodeTo<Schema.optional<Schema.toType<Schema.NonEmptyArray<Schema.Union<readonly [Schema.Struct<{
|
|
9857
9937
|
readonly type: Schema.Literal<"text">;
|
|
@@ -9925,6 +10005,11 @@ export declare const Definitions: readonly [Schema.Struct<{
|
|
|
9925
10005
|
readonly type: Schema.String;
|
|
9926
10006
|
readonly message: Schema.String;
|
|
9927
10007
|
readonly status: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
10008
|
+
readonly response: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
10009
|
+
readonly body: Schema.String;
|
|
10010
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
10011
|
+
readonly body: Schema.String;
|
|
10012
|
+
}>>, never, never>;
|
|
9928
10013
|
}>;
|
|
9929
10014
|
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
9930
10015
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
@@ -9949,6 +10034,11 @@ export declare const Definitions: readonly [Schema.Struct<{
|
|
|
9949
10034
|
readonly type: Schema.String;
|
|
9950
10035
|
readonly message: Schema.String;
|
|
9951
10036
|
readonly status: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
10037
|
+
readonly response: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
10038
|
+
readonly body: Schema.String;
|
|
10039
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
10040
|
+
readonly body: Schema.String;
|
|
10041
|
+
}>>, never, never>;
|
|
9952
10042
|
}>;
|
|
9953
10043
|
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
9954
10044
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
@@ -10390,6 +10480,11 @@ export declare const Definitions: readonly [Schema.Struct<{
|
|
|
10390
10480
|
readonly type: Schema.String;
|
|
10391
10481
|
readonly message: Schema.String;
|
|
10392
10482
|
readonly status: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
10483
|
+
readonly response: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
10484
|
+
readonly body: Schema.String;
|
|
10485
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
10486
|
+
readonly body: Schema.String;
|
|
10487
|
+
}>>, never, never>;
|
|
10393
10488
|
}>;
|
|
10394
10489
|
readonly inputID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
10395
10490
|
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
@@ -10438,6 +10533,11 @@ export declare const Definitions: readonly [Schema.Struct<{
|
|
|
10438
10533
|
readonly type: Schema.String;
|
|
10439
10534
|
readonly message: Schema.String;
|
|
10440
10535
|
readonly status: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
10536
|
+
readonly response: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
10537
|
+
readonly body: Schema.String;
|
|
10538
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
10539
|
+
readonly body: Schema.String;
|
|
10540
|
+
}>>, never, never>;
|
|
10441
10541
|
}>;
|
|
10442
10542
|
readonly inputID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
10443
10543
|
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
package/dist/integration.d.ts
CHANGED
|
@@ -1572,9 +1572,27 @@ export declare const Info: Schema.Struct<{
|
|
|
1572
1572
|
};
|
|
1573
1573
|
readonly label: Schema.String;
|
|
1574
1574
|
readonly method: Schema.Literals<readonly ["key", "oauth"]>;
|
|
1575
|
+
readonly status: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
1576
|
+
readonly status: Schema.Literals<readonly ["needs_auth"]>;
|
|
1577
|
+
readonly message: Schema.String;
|
|
1578
|
+
readonly url: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
1579
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
1580
|
+
readonly status: Schema.Literals<readonly ["needs_auth"]>;
|
|
1581
|
+
readonly message: Schema.String;
|
|
1582
|
+
readonly url: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
1583
|
+
}>>, never, never>;
|
|
1575
1584
|
}>, Schema.Struct<{
|
|
1576
1585
|
readonly type: Schema.Literal<"env">;
|
|
1577
1586
|
readonly name: Schema.String;
|
|
1587
|
+
readonly status: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
1588
|
+
readonly status: Schema.Literals<readonly ["needs_auth"]>;
|
|
1589
|
+
readonly message: Schema.String;
|
|
1590
|
+
readonly url: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
1591
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
1592
|
+
readonly status: Schema.Literals<readonly ["needs_auth"]>;
|
|
1593
|
+
readonly message: Schema.String;
|
|
1594
|
+
readonly url: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
1595
|
+
}>>, never, never>;
|
|
1578
1596
|
}>]>>;
|
|
1579
1597
|
}>;
|
|
1580
1598
|
export interface Info extends Schema.Schema.Type<typeof Info> {
|
package/dist/session-error.d.ts
CHANGED
|
@@ -6,4 +6,9 @@ export declare const Error: Schema.Struct<{
|
|
|
6
6
|
readonly type: Schema.String;
|
|
7
7
|
readonly message: Schema.String;
|
|
8
8
|
readonly status: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
9
|
+
readonly response: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
10
|
+
readonly body: Schema.String;
|
|
11
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
12
|
+
readonly body: Schema.String;
|
|
13
|
+
}>>, never, never>;
|
|
9
14
|
}>;
|
package/dist/session-error.js
CHANGED
|
@@ -5,4 +5,5 @@ export const Error = Schema.Struct({
|
|
|
5
5
|
type: Schema.String,
|
|
6
6
|
message: Schema.String,
|
|
7
7
|
status: Schema.Int.check(Schema.isBetween({ minimum: 100, maximum: 599 })).pipe(optional),
|
|
8
|
+
response: Schema.Struct({ body: Schema.String }).pipe(optional),
|
|
8
9
|
}).annotate({ identifier: "Session.StructuredError" });
|