@opencode-ai/schema 0.0.0-beta-18219 → 0.0.0-beta-18230
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/credential.d.ts +153 -0
- package/dist/credential.js +15 -1
- package/dist/event-manifest.d.ts +256 -94
- package/dist/event-manifest.js +4 -3
- package/dist/integration.d.ts +0 -73
- package/dist/integration.js +1 -5
- package/package.json +1 -1
package/dist/credential.d.ts
CHANGED
|
@@ -4,6 +4,159 @@ export declare const ID: Schema.brand<Schema.String, "Credential.ID"> & {
|
|
|
4
4
|
create: () => string & import("effect/Brand").Brand<"Credential.ID">;
|
|
5
5
|
};
|
|
6
6
|
export type ID = typeof ID.Type;
|
|
7
|
+
export declare const Event: {
|
|
8
|
+
Updated: Schema.Struct<{
|
|
9
|
+
readonly id: Schema.brand<Schema.String, "Event.ID"> & {
|
|
10
|
+
create: () => string & import("effect/Brand").Brand<"Event.ID">;
|
|
11
|
+
};
|
|
12
|
+
readonly created: Schema.Finite;
|
|
13
|
+
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
14
|
+
readonly type: Schema.Literal<"credential.updated">;
|
|
15
|
+
readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
16
|
+
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
17
|
+
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
18
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
19
|
+
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
20
|
+
}>>, Schema.optionalKey<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
21
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
22
|
+
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
23
|
+
}>, never, never>;
|
|
24
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
25
|
+
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
26
|
+
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
27
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
28
|
+
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
29
|
+
}>>, Schema.optionalKey<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
30
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
31
|
+
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
32
|
+
}>, never, never>;
|
|
33
|
+
}>>, never, never>;
|
|
34
|
+
readonly data: Schema.Struct<{}>;
|
|
35
|
+
}> & {
|
|
36
|
+
type: "credential.updated";
|
|
37
|
+
durability: "ephemeral";
|
|
38
|
+
durable: undefined;
|
|
39
|
+
data: Schema.Struct<{}>;
|
|
40
|
+
};
|
|
41
|
+
Switched: Schema.Struct<{
|
|
42
|
+
readonly id: Schema.brand<Schema.String, "Event.ID"> & {
|
|
43
|
+
create: () => string & import("effect/Brand").Brand<"Event.ID">;
|
|
44
|
+
};
|
|
45
|
+
readonly created: Schema.Finite;
|
|
46
|
+
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
47
|
+
readonly type: Schema.Literal<"credential.switched">;
|
|
48
|
+
readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
49
|
+
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
50
|
+
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
51
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
52
|
+
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
53
|
+
}>>, Schema.optionalKey<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
54
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
55
|
+
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
56
|
+
}>, never, never>;
|
|
57
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
58
|
+
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
59
|
+
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
60
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
61
|
+
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
62
|
+
}>>, Schema.optionalKey<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
63
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
64
|
+
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
65
|
+
}>, never, never>;
|
|
66
|
+
}>>, never, never>;
|
|
67
|
+
readonly data: Schema.Struct<{
|
|
68
|
+
readonly integrationID: Schema.brand<Schema.String, "Integration.ID">;
|
|
69
|
+
readonly credentialID: Schema.NullOr<Schema.brand<Schema.String, "Credential.ID"> & {
|
|
70
|
+
create: () => string & import("effect/Brand").Brand<"Credential.ID">;
|
|
71
|
+
}>;
|
|
72
|
+
}>;
|
|
73
|
+
}> & {
|
|
74
|
+
type: "credential.switched";
|
|
75
|
+
durability: "ephemeral";
|
|
76
|
+
durable: undefined;
|
|
77
|
+
data: Schema.Struct<{
|
|
78
|
+
readonly integrationID: Schema.brand<Schema.String, "Integration.ID">;
|
|
79
|
+
readonly credentialID: Schema.NullOr<Schema.brand<Schema.String, "Credential.ID"> & {
|
|
80
|
+
create: () => string & import("effect/Brand").Brand<"Credential.ID">;
|
|
81
|
+
}>;
|
|
82
|
+
}>;
|
|
83
|
+
};
|
|
84
|
+
Definitions: readonly [Schema.Struct<{
|
|
85
|
+
readonly id: Schema.brand<Schema.String, "Event.ID"> & {
|
|
86
|
+
create: () => string & import("effect/Brand").Brand<"Event.ID">;
|
|
87
|
+
};
|
|
88
|
+
readonly created: Schema.Finite;
|
|
89
|
+
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
90
|
+
readonly type: Schema.Literal<"credential.updated">;
|
|
91
|
+
readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
92
|
+
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
93
|
+
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
94
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
95
|
+
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
96
|
+
}>>, Schema.optionalKey<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
97
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
98
|
+
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
99
|
+
}>, never, never>;
|
|
100
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
101
|
+
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
102
|
+
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
103
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
104
|
+
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
105
|
+
}>>, Schema.optionalKey<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
106
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
107
|
+
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
108
|
+
}>, never, never>;
|
|
109
|
+
}>>, never, never>;
|
|
110
|
+
readonly data: Schema.Struct<{}>;
|
|
111
|
+
}> & {
|
|
112
|
+
type: "credential.updated";
|
|
113
|
+
durability: "ephemeral";
|
|
114
|
+
durable: undefined;
|
|
115
|
+
data: Schema.Struct<{}>;
|
|
116
|
+
}, Schema.Struct<{
|
|
117
|
+
readonly id: Schema.brand<Schema.String, "Event.ID"> & {
|
|
118
|
+
create: () => string & import("effect/Brand").Brand<"Event.ID">;
|
|
119
|
+
};
|
|
120
|
+
readonly created: Schema.Finite;
|
|
121
|
+
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
122
|
+
readonly type: Schema.Literal<"credential.switched">;
|
|
123
|
+
readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
124
|
+
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
125
|
+
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
126
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
127
|
+
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
128
|
+
}>>, Schema.optionalKey<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
129
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
130
|
+
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
131
|
+
}>, never, never>;
|
|
132
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
133
|
+
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
134
|
+
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
135
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
136
|
+
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
137
|
+
}>>, Schema.optionalKey<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
138
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
139
|
+
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
140
|
+
}>, never, never>;
|
|
141
|
+
}>>, never, never>;
|
|
142
|
+
readonly data: Schema.Struct<{
|
|
143
|
+
readonly integrationID: Schema.brand<Schema.String, "Integration.ID">;
|
|
144
|
+
readonly credentialID: Schema.NullOr<Schema.brand<Schema.String, "Credential.ID"> & {
|
|
145
|
+
create: () => string & import("effect/Brand").Brand<"Credential.ID">;
|
|
146
|
+
}>;
|
|
147
|
+
}>;
|
|
148
|
+
}> & {
|
|
149
|
+
type: "credential.switched";
|
|
150
|
+
durability: "ephemeral";
|
|
151
|
+
durable: undefined;
|
|
152
|
+
data: Schema.Struct<{
|
|
153
|
+
readonly integrationID: Schema.brand<Schema.String, "Integration.ID">;
|
|
154
|
+
readonly credentialID: Schema.NullOr<Schema.brand<Schema.String, "Credential.ID"> & {
|
|
155
|
+
create: () => string & import("effect/Brand").Brand<"Credential.ID">;
|
|
156
|
+
}>;
|
|
157
|
+
}>;
|
|
158
|
+
}];
|
|
159
|
+
};
|
|
7
160
|
export interface OAuth extends Schema.Schema.Type<typeof OAuth> {
|
|
8
161
|
}
|
|
9
162
|
export declare const OAuth: Schema.Struct<{
|
package/dist/credential.js
CHANGED
|
@@ -1,11 +1,25 @@
|
|
|
1
1
|
export * as Credential from "./credential.js";
|
|
2
2
|
import { Schema } from "effect";
|
|
3
3
|
import { optional } from "./schema.js";
|
|
4
|
-
import {
|
|
4
|
+
import { ephemeral, inventory } from "./event.js";
|
|
5
|
+
import { IntegrationID, IntegrationMethodID } from "./integration-id.js";
|
|
5
6
|
import { ascending } from "./identifier.js";
|
|
6
7
|
import { NonNegativeInt, statics } from "./schema.js";
|
|
7
8
|
import { Form } from "./form.js";
|
|
8
9
|
export const ID = Schema.String.pipe(Schema.brand("Credential.ID"), statics((schema) => ({ create: () => schema.make("cred_" + ascending()) })));
|
|
10
|
+
const Updated = ephemeral({
|
|
11
|
+
type: "credential.updated",
|
|
12
|
+
schema: {},
|
|
13
|
+
});
|
|
14
|
+
const Switched = ephemeral({
|
|
15
|
+
type: "credential.switched",
|
|
16
|
+
schema: { integrationID: IntegrationID, credentialID: Schema.NullOr(ID) },
|
|
17
|
+
});
|
|
18
|
+
export const Event = {
|
|
19
|
+
Updated,
|
|
20
|
+
Switched,
|
|
21
|
+
Definitions: inventory(Updated, Switched),
|
|
22
|
+
};
|
|
9
23
|
export const OAuth = Schema.Struct({
|
|
10
24
|
type: Schema.Literal("oauth"),
|
|
11
25
|
methodID: IntegrationMethodID,
|
package/dist/event-manifest.d.ts
CHANGED
|
@@ -41,7 +41,7 @@ export declare const ServerDefinitions: readonly [Schema.Struct<{
|
|
|
41
41
|
};
|
|
42
42
|
readonly created: Schema.Finite;
|
|
43
43
|
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
44
|
-
readonly type: Schema.Literal<"
|
|
44
|
+
readonly type: Schema.Literal<"credential.updated">;
|
|
45
45
|
readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
46
46
|
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
47
47
|
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
@@ -63,7 +63,7 @@ export declare const ServerDefinitions: readonly [Schema.Struct<{
|
|
|
63
63
|
}>>, never, never>;
|
|
64
64
|
readonly data: Schema.Struct<{}>;
|
|
65
65
|
}> & {
|
|
66
|
-
type: "
|
|
66
|
+
type: "credential.updated";
|
|
67
67
|
durability: "ephemeral";
|
|
68
68
|
durable: undefined;
|
|
69
69
|
data: Schema.Struct<{}>;
|
|
@@ -73,7 +73,7 @@ export declare const ServerDefinitions: readonly [Schema.Struct<{
|
|
|
73
73
|
};
|
|
74
74
|
readonly created: Schema.Finite;
|
|
75
75
|
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
76
|
-
readonly type: Schema.Literal<"
|
|
76
|
+
readonly type: Schema.Literal<"credential.switched">;
|
|
77
77
|
readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
78
78
|
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
79
79
|
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
@@ -95,14 +95,52 @@ export declare const ServerDefinitions: readonly [Schema.Struct<{
|
|
|
95
95
|
}>>, never, never>;
|
|
96
96
|
readonly data: Schema.Struct<{
|
|
97
97
|
readonly integrationID: Schema.brand<Schema.String, "Integration.ID">;
|
|
98
|
+
readonly credentialID: Schema.NullOr<Schema.brand<Schema.String, "Credential.ID"> & {
|
|
99
|
+
create: () => string & import("effect/Brand").Brand<"Credential.ID">;
|
|
100
|
+
}>;
|
|
98
101
|
}>;
|
|
99
102
|
}> & {
|
|
100
|
-
type: "
|
|
103
|
+
type: "credential.switched";
|
|
101
104
|
durability: "ephemeral";
|
|
102
105
|
durable: undefined;
|
|
103
106
|
data: Schema.Struct<{
|
|
104
107
|
readonly integrationID: Schema.brand<Schema.String, "Integration.ID">;
|
|
108
|
+
readonly credentialID: Schema.NullOr<Schema.brand<Schema.String, "Credential.ID"> & {
|
|
109
|
+
create: () => string & import("effect/Brand").Brand<"Credential.ID">;
|
|
110
|
+
}>;
|
|
105
111
|
}>;
|
|
112
|
+
}, Schema.Struct<{
|
|
113
|
+
readonly id: Schema.brand<Schema.String, "Event.ID"> & {
|
|
114
|
+
create: () => string & import("effect/Brand").Brand<"Event.ID">;
|
|
115
|
+
};
|
|
116
|
+
readonly created: Schema.Finite;
|
|
117
|
+
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
118
|
+
readonly type: Schema.Literal<"integration.updated">;
|
|
119
|
+
readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
120
|
+
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
121
|
+
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
122
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
123
|
+
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
124
|
+
}>>, Schema.optionalKey<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
125
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
126
|
+
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
127
|
+
}>, never, never>;
|
|
128
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
129
|
+
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
130
|
+
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
131
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
132
|
+
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
133
|
+
}>>, Schema.optionalKey<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
134
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
135
|
+
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
136
|
+
}>, never, never>;
|
|
137
|
+
}>>, never, never>;
|
|
138
|
+
readonly data: Schema.Struct<{}>;
|
|
139
|
+
}> & {
|
|
140
|
+
type: "integration.updated";
|
|
141
|
+
durability: "ephemeral";
|
|
142
|
+
durable: undefined;
|
|
143
|
+
data: Schema.Struct<{}>;
|
|
106
144
|
}, Schema.Struct<{
|
|
107
145
|
readonly id: Schema.brand<Schema.String, "Event.ID"> & {
|
|
108
146
|
create: () => string & import("effect/Brand").Brand<"Event.ID">;
|
|
@@ -4075,6 +4113,92 @@ export declare const ServerDefinitions: readonly [Schema.Struct<{
|
|
|
4075
4113
|
durability: "ephemeral";
|
|
4076
4114
|
durable: undefined;
|
|
4077
4115
|
data: Schema.Struct<{}>;
|
|
4116
|
+
}, Schema.Struct<{
|
|
4117
|
+
readonly id: Schema.brand<Schema.String, "Event.ID"> & {
|
|
4118
|
+
create: () => string & import("effect/Brand").Brand<"Event.ID">;
|
|
4119
|
+
};
|
|
4120
|
+
readonly created: Schema.Finite;
|
|
4121
|
+
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
4122
|
+
readonly type: Schema.Literal<"project.updated">;
|
|
4123
|
+
readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
4124
|
+
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
4125
|
+
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
4126
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
4127
|
+
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
4128
|
+
}>>, Schema.optionalKey<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
4129
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
4130
|
+
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
4131
|
+
}>, never, never>;
|
|
4132
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
4133
|
+
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
4134
|
+
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
4135
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
4136
|
+
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
4137
|
+
}>>, Schema.optionalKey<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
4138
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
4139
|
+
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
4140
|
+
}>, never, never>;
|
|
4141
|
+
}>>, never, never>;
|
|
4142
|
+
readonly data: Schema.Struct<{
|
|
4143
|
+
readonly id: Schema.brand<Schema.String, "Project.ID"> & {
|
|
4144
|
+
global: string & import("effect/Brand").Brand<"Project.ID">;
|
|
4145
|
+
};
|
|
4146
|
+
readonly canonical: Schema.brand<Schema.String, "AbsolutePath">;
|
|
4147
|
+
readonly vcs: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<readonly ["git", "hg"]>>>, Schema.optionalKey<Schema.Literals<readonly ["git", "hg"]>>, never, never>;
|
|
4148
|
+
readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
4149
|
+
readonly icon: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
4150
|
+
readonly url: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
4151
|
+
readonly override: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
4152
|
+
readonly color: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
4153
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
4154
|
+
readonly url: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
4155
|
+
readonly override: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
4156
|
+
readonly color: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
4157
|
+
}>>, never, never>;
|
|
4158
|
+
readonly commands: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
4159
|
+
readonly start: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
4160
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
4161
|
+
readonly start: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
4162
|
+
}>>, never, never>;
|
|
4163
|
+
readonly time: Schema.Struct<{
|
|
4164
|
+
readonly created: Schema.Int;
|
|
4165
|
+
readonly updated: Schema.Int;
|
|
4166
|
+
readonly initialized: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
4167
|
+
}>;
|
|
4168
|
+
readonly sandboxes: Schema.$Array<Schema.String>;
|
|
4169
|
+
}>;
|
|
4170
|
+
}> & {
|
|
4171
|
+
type: "project.updated";
|
|
4172
|
+
durability: "ephemeral";
|
|
4173
|
+
durable: undefined;
|
|
4174
|
+
data: Schema.Struct<{
|
|
4175
|
+
readonly id: Schema.brand<Schema.String, "Project.ID"> & {
|
|
4176
|
+
global: string & import("effect/Brand").Brand<"Project.ID">;
|
|
4177
|
+
};
|
|
4178
|
+
readonly canonical: Schema.brand<Schema.String, "AbsolutePath">;
|
|
4179
|
+
readonly vcs: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<readonly ["git", "hg"]>>>, Schema.optionalKey<Schema.Literals<readonly ["git", "hg"]>>, never, never>;
|
|
4180
|
+
readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
4181
|
+
readonly icon: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
4182
|
+
readonly url: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
4183
|
+
readonly override: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
4184
|
+
readonly color: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
4185
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
4186
|
+
readonly url: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
4187
|
+
readonly override: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
4188
|
+
readonly color: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
4189
|
+
}>>, never, never>;
|
|
4190
|
+
readonly commands: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
4191
|
+
readonly start: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
4192
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
4193
|
+
readonly start: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
4194
|
+
}>>, never, never>;
|
|
4195
|
+
readonly time: Schema.Struct<{
|
|
4196
|
+
readonly created: Schema.Int;
|
|
4197
|
+
readonly updated: Schema.Int;
|
|
4198
|
+
readonly initialized: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
4199
|
+
}>;
|
|
4200
|
+
readonly sandboxes: Schema.$Array<Schema.String>;
|
|
4201
|
+
}>;
|
|
4078
4202
|
}, Schema.Struct<{
|
|
4079
4203
|
readonly id: Schema.brand<Schema.String, "Event.ID"> & {
|
|
4080
4204
|
create: () => string & import("effect/Brand").Brand<"Event.ID">;
|
|
@@ -5679,7 +5803,7 @@ export declare const Definitions: readonly [Schema.Struct<{
|
|
|
5679
5803
|
};
|
|
5680
5804
|
readonly created: Schema.Finite;
|
|
5681
5805
|
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
5682
|
-
readonly type: Schema.Literal<"
|
|
5806
|
+
readonly type: Schema.Literal<"credential.updated">;
|
|
5683
5807
|
readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
5684
5808
|
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
5685
5809
|
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
@@ -5701,7 +5825,7 @@ export declare const Definitions: readonly [Schema.Struct<{
|
|
|
5701
5825
|
}>>, never, never>;
|
|
5702
5826
|
readonly data: Schema.Struct<{}>;
|
|
5703
5827
|
}> & {
|
|
5704
|
-
type: "
|
|
5828
|
+
type: "credential.updated";
|
|
5705
5829
|
durability: "ephemeral";
|
|
5706
5830
|
durable: undefined;
|
|
5707
5831
|
data: Schema.Struct<{}>;
|
|
@@ -5711,7 +5835,7 @@ export declare const Definitions: readonly [Schema.Struct<{
|
|
|
5711
5835
|
};
|
|
5712
5836
|
readonly created: Schema.Finite;
|
|
5713
5837
|
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
5714
|
-
readonly type: Schema.Literal<"
|
|
5838
|
+
readonly type: Schema.Literal<"credential.switched">;
|
|
5715
5839
|
readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
5716
5840
|
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
5717
5841
|
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
@@ -5733,14 +5857,52 @@ export declare const Definitions: readonly [Schema.Struct<{
|
|
|
5733
5857
|
}>>, never, never>;
|
|
5734
5858
|
readonly data: Schema.Struct<{
|
|
5735
5859
|
readonly integrationID: Schema.brand<Schema.String, "Integration.ID">;
|
|
5860
|
+
readonly credentialID: Schema.NullOr<Schema.brand<Schema.String, "Credential.ID"> & {
|
|
5861
|
+
create: () => string & import("effect/Brand").Brand<"Credential.ID">;
|
|
5862
|
+
}>;
|
|
5736
5863
|
}>;
|
|
5737
5864
|
}> & {
|
|
5738
|
-
type: "
|
|
5865
|
+
type: "credential.switched";
|
|
5739
5866
|
durability: "ephemeral";
|
|
5740
5867
|
durable: undefined;
|
|
5741
5868
|
data: Schema.Struct<{
|
|
5742
5869
|
readonly integrationID: Schema.brand<Schema.String, "Integration.ID">;
|
|
5870
|
+
readonly credentialID: Schema.NullOr<Schema.brand<Schema.String, "Credential.ID"> & {
|
|
5871
|
+
create: () => string & import("effect/Brand").Brand<"Credential.ID">;
|
|
5872
|
+
}>;
|
|
5743
5873
|
}>;
|
|
5874
|
+
}, Schema.Struct<{
|
|
5875
|
+
readonly id: Schema.brand<Schema.String, "Event.ID"> & {
|
|
5876
|
+
create: () => string & import("effect/Brand").Brand<"Event.ID">;
|
|
5877
|
+
};
|
|
5878
|
+
readonly created: Schema.Finite;
|
|
5879
|
+
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
5880
|
+
readonly type: Schema.Literal<"integration.updated">;
|
|
5881
|
+
readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
5882
|
+
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
5883
|
+
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
5884
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
5885
|
+
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
5886
|
+
}>>, Schema.optionalKey<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
5887
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
5888
|
+
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
5889
|
+
}>, never, never>;
|
|
5890
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
5891
|
+
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
5892
|
+
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
5893
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
5894
|
+
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
5895
|
+
}>>, Schema.optionalKey<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
5896
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
5897
|
+
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
5898
|
+
}>, never, never>;
|
|
5899
|
+
}>>, never, never>;
|
|
5900
|
+
readonly data: Schema.Struct<{}>;
|
|
5901
|
+
}> & {
|
|
5902
|
+
type: "integration.updated";
|
|
5903
|
+
durability: "ephemeral";
|
|
5904
|
+
durable: undefined;
|
|
5905
|
+
data: Schema.Struct<{}>;
|
|
5744
5906
|
}, Schema.Struct<{
|
|
5745
5907
|
readonly id: Schema.brand<Schema.String, "Event.ID"> & {
|
|
5746
5908
|
create: () => string & import("effect/Brand").Brand<"Event.ID">;
|
|
@@ -9785,6 +9947,92 @@ export declare const Definitions: readonly [Schema.Struct<{
|
|
|
9785
9947
|
durability: "ephemeral";
|
|
9786
9948
|
durable: undefined;
|
|
9787
9949
|
data: Schema.Struct<{}>;
|
|
9950
|
+
}, Schema.Struct<{
|
|
9951
|
+
readonly id: Schema.brand<Schema.String, "Event.ID"> & {
|
|
9952
|
+
create: () => string & import("effect/Brand").Brand<"Event.ID">;
|
|
9953
|
+
};
|
|
9954
|
+
readonly created: Schema.Finite;
|
|
9955
|
+
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
9956
|
+
readonly type: Schema.Literal<"project.updated">;
|
|
9957
|
+
readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
9958
|
+
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
9959
|
+
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
9960
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
9961
|
+
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
9962
|
+
}>>, Schema.optionalKey<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
9963
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
9964
|
+
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
9965
|
+
}>, never, never>;
|
|
9966
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
9967
|
+
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
9968
|
+
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
9969
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
9970
|
+
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
9971
|
+
}>>, Schema.optionalKey<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
9972
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
9973
|
+
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
9974
|
+
}>, never, never>;
|
|
9975
|
+
}>>, never, never>;
|
|
9976
|
+
readonly data: Schema.Struct<{
|
|
9977
|
+
readonly id: Schema.brand<Schema.String, "Project.ID"> & {
|
|
9978
|
+
global: string & import("effect/Brand").Brand<"Project.ID">;
|
|
9979
|
+
};
|
|
9980
|
+
readonly canonical: Schema.brand<Schema.String, "AbsolutePath">;
|
|
9981
|
+
readonly vcs: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<readonly ["git", "hg"]>>>, Schema.optionalKey<Schema.Literals<readonly ["git", "hg"]>>, never, never>;
|
|
9982
|
+
readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
9983
|
+
readonly icon: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
9984
|
+
readonly url: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
9985
|
+
readonly override: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
9986
|
+
readonly color: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
9987
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
9988
|
+
readonly url: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
9989
|
+
readonly override: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
9990
|
+
readonly color: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
9991
|
+
}>>, never, never>;
|
|
9992
|
+
readonly commands: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
9993
|
+
readonly start: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
9994
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
9995
|
+
readonly start: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
9996
|
+
}>>, never, never>;
|
|
9997
|
+
readonly time: Schema.Struct<{
|
|
9998
|
+
readonly created: Schema.Int;
|
|
9999
|
+
readonly updated: Schema.Int;
|
|
10000
|
+
readonly initialized: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
10001
|
+
}>;
|
|
10002
|
+
readonly sandboxes: Schema.$Array<Schema.String>;
|
|
10003
|
+
}>;
|
|
10004
|
+
}> & {
|
|
10005
|
+
type: "project.updated";
|
|
10006
|
+
durability: "ephemeral";
|
|
10007
|
+
durable: undefined;
|
|
10008
|
+
data: Schema.Struct<{
|
|
10009
|
+
readonly id: Schema.brand<Schema.String, "Project.ID"> & {
|
|
10010
|
+
global: string & import("effect/Brand").Brand<"Project.ID">;
|
|
10011
|
+
};
|
|
10012
|
+
readonly canonical: Schema.brand<Schema.String, "AbsolutePath">;
|
|
10013
|
+
readonly vcs: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<readonly ["git", "hg"]>>>, Schema.optionalKey<Schema.Literals<readonly ["git", "hg"]>>, never, never>;
|
|
10014
|
+
readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
10015
|
+
readonly icon: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
10016
|
+
readonly url: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
10017
|
+
readonly override: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
10018
|
+
readonly color: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
10019
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
10020
|
+
readonly url: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
10021
|
+
readonly override: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
10022
|
+
readonly color: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
10023
|
+
}>>, never, never>;
|
|
10024
|
+
readonly commands: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
10025
|
+
readonly start: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
10026
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
10027
|
+
readonly start: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
10028
|
+
}>>, never, never>;
|
|
10029
|
+
readonly time: Schema.Struct<{
|
|
10030
|
+
readonly created: Schema.Int;
|
|
10031
|
+
readonly updated: Schema.Int;
|
|
10032
|
+
readonly initialized: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
10033
|
+
}>;
|
|
10034
|
+
readonly sandboxes: Schema.$Array<Schema.String>;
|
|
10035
|
+
}>;
|
|
9788
10036
|
}, Schema.Struct<{
|
|
9789
10037
|
readonly id: Schema.brand<Schema.String, "Event.ID"> & {
|
|
9790
10038
|
create: () => string & import("effect/Brand").Brand<"Event.ID">;
|
|
@@ -11259,92 +11507,6 @@ export declare const Definitions: readonly [Schema.Struct<{
|
|
|
11259
11507
|
data: Schema.Struct<{
|
|
11260
11508
|
readonly file: Schema.String;
|
|
11261
11509
|
}>;
|
|
11262
|
-
}, Schema.Struct<{
|
|
11263
|
-
readonly id: Schema.brand<Schema.String, "Event.ID"> & {
|
|
11264
|
-
create: () => string & import("effect/Brand").Brand<"Event.ID">;
|
|
11265
|
-
};
|
|
11266
|
-
readonly created: Schema.Finite;
|
|
11267
|
-
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
11268
|
-
readonly type: Schema.Literal<"project.updated">;
|
|
11269
|
-
readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
11270
|
-
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
11271
|
-
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
11272
|
-
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
11273
|
-
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
11274
|
-
}>>, Schema.optionalKey<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
11275
|
-
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
11276
|
-
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
11277
|
-
}>, never, never>;
|
|
11278
|
-
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
11279
|
-
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
11280
|
-
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
11281
|
-
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
11282
|
-
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
11283
|
-
}>>, Schema.optionalKey<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
11284
|
-
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
11285
|
-
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
11286
|
-
}>, never, never>;
|
|
11287
|
-
}>>, never, never>;
|
|
11288
|
-
readonly data: Schema.Struct<{
|
|
11289
|
-
readonly id: Schema.brand<Schema.String, "Project.ID"> & {
|
|
11290
|
-
global: string & import("effect/Brand").Brand<"Project.ID">;
|
|
11291
|
-
};
|
|
11292
|
-
readonly canonical: Schema.brand<Schema.String, "AbsolutePath">;
|
|
11293
|
-
readonly vcs: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<readonly ["git", "hg"]>>>, Schema.optionalKey<Schema.Literals<readonly ["git", "hg"]>>, never, never>;
|
|
11294
|
-
readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
11295
|
-
readonly icon: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
11296
|
-
readonly url: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
11297
|
-
readonly override: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
11298
|
-
readonly color: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
11299
|
-
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
11300
|
-
readonly url: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
11301
|
-
readonly override: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
11302
|
-
readonly color: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
11303
|
-
}>>, never, never>;
|
|
11304
|
-
readonly commands: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
11305
|
-
readonly start: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
11306
|
-
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
11307
|
-
readonly start: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
11308
|
-
}>>, never, never>;
|
|
11309
|
-
readonly time: Schema.Struct<{
|
|
11310
|
-
readonly created: Schema.Int;
|
|
11311
|
-
readonly updated: Schema.Int;
|
|
11312
|
-
readonly initialized: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
11313
|
-
}>;
|
|
11314
|
-
readonly sandboxes: Schema.$Array<Schema.String>;
|
|
11315
|
-
}>;
|
|
11316
|
-
}> & {
|
|
11317
|
-
type: "project.updated";
|
|
11318
|
-
durability: "ephemeral";
|
|
11319
|
-
durable: undefined;
|
|
11320
|
-
data: Schema.Struct<{
|
|
11321
|
-
readonly id: Schema.brand<Schema.String, "Project.ID"> & {
|
|
11322
|
-
global: string & import("effect/Brand").Brand<"Project.ID">;
|
|
11323
|
-
};
|
|
11324
|
-
readonly canonical: Schema.brand<Schema.String, "AbsolutePath">;
|
|
11325
|
-
readonly vcs: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<readonly ["git", "hg"]>>>, Schema.optionalKey<Schema.Literals<readonly ["git", "hg"]>>, never, never>;
|
|
11326
|
-
readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
11327
|
-
readonly icon: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
11328
|
-
readonly url: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
11329
|
-
readonly override: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
11330
|
-
readonly color: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
11331
|
-
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
11332
|
-
readonly url: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
11333
|
-
readonly override: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
11334
|
-
readonly color: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
11335
|
-
}>>, never, never>;
|
|
11336
|
-
readonly commands: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
11337
|
-
readonly start: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
11338
|
-
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
11339
|
-
readonly start: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
11340
|
-
}>>, never, never>;
|
|
11341
|
-
readonly time: Schema.Struct<{
|
|
11342
|
-
readonly created: Schema.Int;
|
|
11343
|
-
readonly updated: Schema.Int;
|
|
11344
|
-
readonly initialized: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
11345
|
-
}>;
|
|
11346
|
-
readonly sandboxes: Schema.$Array<Schema.String>;
|
|
11347
|
-
}>;
|
|
11348
11510
|
}, Schema.Struct<{
|
|
11349
11511
|
readonly id: Schema.brand<Schema.String, "Event.ID"> & {
|
|
11350
11512
|
create: () => string & import("effect/Brand").Brand<"Event.ID">;
|
package/dist/event-manifest.js
CHANGED
|
@@ -4,6 +4,7 @@ import { Agent } from "./agent.js";
|
|
|
4
4
|
import { Catalog } from "./catalog.js";
|
|
5
5
|
import { Command } from "./command.js";
|
|
6
6
|
import { Config } from "./config.js";
|
|
7
|
+
import { Credential } from "./credential.js";
|
|
7
8
|
import { Durable } from "./durable-event-manifest.js";
|
|
8
9
|
import { Event } from "./event.js";
|
|
9
10
|
import { FileSystem } from "./filesystem.js";
|
|
@@ -34,13 +35,13 @@ import { WorkspaceEvent } from "./workspace-event.js";
|
|
|
34
35
|
import { WorktreeEvent } from "./worktree-event.js";
|
|
35
36
|
import { WebSearch } from "./websearch.js";
|
|
36
37
|
const coreDefinitions = Event.inventory(...SessionEvent.Definitions);
|
|
37
|
-
const foundationDefinitions = Event.inventory(...ModelsDev.Event.Definitions, ...Integration.Event.Definitions, ...Catalog.Event.Definitions, ...Agent.Event.Definitions, ...coreDefinitions);
|
|
38
|
-
const featureDefinitions = Event.inventory(...FileSystem.Event.Definitions, ...Reference.Event.Definitions, ...Permission.Event.Definitions, ...Plugin.Event.Definitions, ...Worktree.Event.Definitions, ...Command.Event.Definitions, ...Config.Event.Definitions, ...Skill.Event.Definitions, ...Pty.Event.Definitions, ...PersistentPty.Event.Definitions, ...Shell.Event.Definitions, ...Form.Event.Definitions, ...WebSearch.Event.Definitions);
|
|
38
|
+
const foundationDefinitions = Event.inventory(...ModelsDev.Event.Definitions, ...Credential.Event.Definitions, ...Integration.Event.Definitions, ...Catalog.Event.Definitions, ...Agent.Event.Definitions, ...coreDefinitions);
|
|
39
|
+
const featureDefinitions = Event.inventory(...FileSystem.Event.Definitions, ...Reference.Event.Definitions, ...Permission.Event.Definitions, ...Plugin.Event.Definitions, ...Project.Event.Definitions, ...Worktree.Event.Definitions, ...Command.Event.Definitions, ...Config.Event.Definitions, ...Skill.Event.Definitions, ...Pty.Event.Definitions, ...PersistentPty.Event.Definitions, ...Shell.Event.Definitions, ...Form.Event.Definitions, ...WebSearch.Event.Definitions);
|
|
39
40
|
export const ServerDefinitions = Event.inventory(...foundationDefinitions, ...featureDefinitions,
|
|
40
41
|
// Current events the TUI consumes from the public stream.
|
|
41
42
|
...SessionStatusEvent.Definitions, ...TuiEvent.Definitions, ...InstallationEvent.Definitions, ...VcsEvent.Definitions, McpEvent.StatusChanged, McpEvent.ResourcesChanged);
|
|
42
43
|
export const Server = Event.latest(ServerDefinitions);
|
|
43
44
|
export const isServer = (event) => Server.has(event.type);
|
|
44
|
-
export const Definitions = Event.inventory(...foundationDefinitions, ...InstallationEvent.Definitions, ...featureDefinitions, ...LspEvent.Definitions, ...TuiEvent.Definitions, ...McpEvent.Definitions, ...LegacyEventV1.Definitions, ...FileSystemV1.Event.Definitions, ...
|
|
45
|
+
export const Definitions = Event.inventory(...foundationDefinitions, ...InstallationEvent.Definitions, ...featureDefinitions, ...LspEvent.Definitions, ...TuiEvent.Definitions, ...McpEvent.Definitions, ...LegacyEventV1.Definitions, ...FileSystemV1.Event.Definitions, ...SessionStatusEvent.Definitions, ...SessionCompactionEvent.Definitions, ...VcsEvent.Definitions, ...WorkspaceEvent.Definitions, ...WorktreeEvent.Definitions, ...ServerEvent.Definitions);
|
|
45
46
|
export const Latest = Event.latest(Definitions);
|
|
46
47
|
export { Durable };
|
package/dist/integration.d.ts
CHANGED
|
@@ -990,43 +990,6 @@ export declare const Event: {
|
|
|
990
990
|
durable: undefined;
|
|
991
991
|
data: Schema.Struct<{}>;
|
|
992
992
|
};
|
|
993
|
-
ConnectionUpdated: Schema.Struct<{
|
|
994
|
-
readonly id: Schema.brand<Schema.String, "Event.ID"> & {
|
|
995
|
-
create: () => string & import("effect/Brand").Brand<"Event.ID">;
|
|
996
|
-
};
|
|
997
|
-
readonly created: Schema.Finite;
|
|
998
|
-
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
999
|
-
readonly type: Schema.Literal<"integration.connection.updated">;
|
|
1000
|
-
readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
1001
|
-
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
1002
|
-
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
1003
|
-
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
1004
|
-
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
1005
|
-
}>>, Schema.optionalKey<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
1006
|
-
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
1007
|
-
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
1008
|
-
}>, never, never>;
|
|
1009
|
-
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
1010
|
-
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
1011
|
-
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
1012
|
-
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
1013
|
-
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
1014
|
-
}>>, Schema.optionalKey<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
1015
|
-
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
1016
|
-
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
1017
|
-
}>, never, never>;
|
|
1018
|
-
}>>, never, never>;
|
|
1019
|
-
readonly data: Schema.Struct<{
|
|
1020
|
-
readonly integrationID: Schema.brand<Schema.String, "Integration.ID">;
|
|
1021
|
-
}>;
|
|
1022
|
-
}> & {
|
|
1023
|
-
type: "integration.connection.updated";
|
|
1024
|
-
durability: "ephemeral";
|
|
1025
|
-
durable: undefined;
|
|
1026
|
-
data: Schema.Struct<{
|
|
1027
|
-
readonly integrationID: Schema.brand<Schema.String, "Integration.ID">;
|
|
1028
|
-
}>;
|
|
1029
|
-
};
|
|
1030
993
|
Definitions: readonly [Schema.Struct<{
|
|
1031
994
|
readonly id: Schema.brand<Schema.String, "Event.ID"> & {
|
|
1032
995
|
create: () => string & import("effect/Brand").Brand<"Event.ID">;
|
|
@@ -1059,42 +1022,6 @@ export declare const Event: {
|
|
|
1059
1022
|
durability: "ephemeral";
|
|
1060
1023
|
durable: undefined;
|
|
1061
1024
|
data: Schema.Struct<{}>;
|
|
1062
|
-
}, Schema.Struct<{
|
|
1063
|
-
readonly id: Schema.brand<Schema.String, "Event.ID"> & {
|
|
1064
|
-
create: () => string & import("effect/Brand").Brand<"Event.ID">;
|
|
1065
|
-
};
|
|
1066
|
-
readonly created: Schema.Finite;
|
|
1067
|
-
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
1068
|
-
readonly type: Schema.Literal<"integration.connection.updated">;
|
|
1069
|
-
readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
1070
|
-
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
1071
|
-
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
1072
|
-
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
1073
|
-
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
1074
|
-
}>>, Schema.optionalKey<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
1075
|
-
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
1076
|
-
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
1077
|
-
}>, never, never>;
|
|
1078
|
-
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
1079
|
-
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
1080
|
-
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
1081
|
-
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
1082
|
-
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
1083
|
-
}>>, Schema.optionalKey<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
1084
|
-
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
1085
|
-
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
1086
|
-
}>, never, never>;
|
|
1087
|
-
}>>, never, never>;
|
|
1088
|
-
readonly data: Schema.Struct<{
|
|
1089
|
-
readonly integrationID: Schema.brand<Schema.String, "Integration.ID">;
|
|
1090
|
-
}>;
|
|
1091
|
-
}> & {
|
|
1092
|
-
type: "integration.connection.updated";
|
|
1093
|
-
durability: "ephemeral";
|
|
1094
|
-
durable: undefined;
|
|
1095
|
-
data: Schema.Struct<{
|
|
1096
|
-
readonly integrationID: Schema.brand<Schema.String, "Integration.ID">;
|
|
1097
|
-
}>;
|
|
1098
1025
|
}];
|
|
1099
1026
|
};
|
|
1100
1027
|
export interface Ref extends Schema.Schema.Type<typeof Ref> {
|
package/dist/integration.js
CHANGED
|
@@ -37,11 +37,7 @@ const Updated = ephemeral({
|
|
|
37
37
|
type: "integration.updated",
|
|
38
38
|
schema: {},
|
|
39
39
|
});
|
|
40
|
-
const
|
|
41
|
-
type: "integration.connection.updated",
|
|
42
|
-
schema: { integrationID: ID },
|
|
43
|
-
});
|
|
44
|
-
export const Event = { Updated, ConnectionUpdated, Definitions: inventory(Updated, ConnectionUpdated) };
|
|
40
|
+
export const Event = { Updated, Definitions: inventory(Updated) };
|
|
45
41
|
export const Ref = Schema.Struct({
|
|
46
42
|
id: ID,
|
|
47
43
|
name: Schema.String,
|