@opencode-ai/schema 0.0.0-dev-18227 → 0.0.0-dev-18231
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 +84 -8
- package/dist/event-manifest.js +2 -1
- 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">;
|
|
@@ -5765,7 +5803,7 @@ export declare const Definitions: readonly [Schema.Struct<{
|
|
|
5765
5803
|
};
|
|
5766
5804
|
readonly created: Schema.Finite;
|
|
5767
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>;
|
|
5768
|
-
readonly type: Schema.Literal<"
|
|
5806
|
+
readonly type: Schema.Literal<"credential.updated">;
|
|
5769
5807
|
readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
5770
5808
|
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
5771
5809
|
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
@@ -5787,7 +5825,7 @@ export declare const Definitions: readonly [Schema.Struct<{
|
|
|
5787
5825
|
}>>, never, never>;
|
|
5788
5826
|
readonly data: Schema.Struct<{}>;
|
|
5789
5827
|
}> & {
|
|
5790
|
-
type: "
|
|
5828
|
+
type: "credential.updated";
|
|
5791
5829
|
durability: "ephemeral";
|
|
5792
5830
|
durable: undefined;
|
|
5793
5831
|
data: Schema.Struct<{}>;
|
|
@@ -5797,7 +5835,7 @@ export declare const Definitions: readonly [Schema.Struct<{
|
|
|
5797
5835
|
};
|
|
5798
5836
|
readonly created: Schema.Finite;
|
|
5799
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>;
|
|
5800
|
-
readonly type: Schema.Literal<"
|
|
5838
|
+
readonly type: Schema.Literal<"credential.switched">;
|
|
5801
5839
|
readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
5802
5840
|
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
5803
5841
|
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
@@ -5819,14 +5857,52 @@ export declare const Definitions: readonly [Schema.Struct<{
|
|
|
5819
5857
|
}>>, never, never>;
|
|
5820
5858
|
readonly data: Schema.Struct<{
|
|
5821
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
|
+
}>;
|
|
5822
5863
|
}>;
|
|
5823
5864
|
}> & {
|
|
5824
|
-
type: "
|
|
5865
|
+
type: "credential.switched";
|
|
5825
5866
|
durability: "ephemeral";
|
|
5826
5867
|
durable: undefined;
|
|
5827
5868
|
data: Schema.Struct<{
|
|
5828
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
|
+
}>;
|
|
5829
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<{}>;
|
|
5830
5906
|
}, Schema.Struct<{
|
|
5831
5907
|
readonly id: Schema.brand<Schema.String, "Event.ID"> & {
|
|
5832
5908
|
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,7 +35,7 @@ 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 foundationDefinitions = Event.inventory(...ModelsDev.Event.Definitions, ...Credential.Event.Definitions, ...Integration.Event.Definitions, ...Catalog.Event.Definitions, ...Agent.Event.Definitions, ...coreDefinitions);
|
|
38
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.
|
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,
|