@opencode-ai/schema 0.0.0-next-14855 → 0.0.0-reserved.0
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/README.md +3 -0
- package/index.js +1 -0
- package/package.json +3 -26
- package/dist/agent.d.ts +0 -159
- package/dist/agent.js +0 -43
- package/dist/catalog.d.ts +0 -69
- package/dist/catalog.js +0 -4
- package/dist/command.d.ts +0 -112
- package/dist/command.js +0 -18
- package/dist/config.d.ts +0 -69
- package/dist/config.js +0 -7
- package/dist/connection.d.ts +0 -28
- package/dist/connection.js +0 -15
- package/dist/credential.d.ts +0 -36
- package/dist/credential.js +0 -23
- package/dist/durable-event-manifest.d.ts +0 -2370
- package/dist/durable-event-manifest.js +0 -9
- package/dist/event-log.d.ts +0 -45
- package/dist/event-log.js +0 -43
- package/dist/event-manifest.d.ts +0 -15273
- package/dist/event-manifest.js +0 -52
- package/dist/event.d.ts +0 -142
- package/dist/event.js +0 -102
- package/dist/file-diff.d.ts +0 -11
- package/dist/file-diff.js +0 -10
- package/dist/filesystem-v1.d.ts +0 -1
- package/dist/filesystem-v1.js +0 -1
- package/dist/filesystem.d.ts +0 -118
- package/dist/filesystem.js +0 -35
- package/dist/form.d.ts +0 -1279
- package/dist/form.js +0 -112
- package/dist/ide-event.d.ts +0 -76
- package/dist/ide-event.js +0 -10
- package/dist/identifier.d.ts +0 -3
- package/dist/identifier.js +0 -24
- package/dist/index.d.ts +0 -32
- package/dist/index.js +0 -32
- package/dist/installation-event.d.ts +0 -149
- package/dist/installation-event.js +0 -16
- package/dist/integration-id.d.ts +0 -5
- package/dist/integration-id.js +0 -3
- package/dist/integration.d.ts +0 -532
- package/dist/integration.js +0 -93
- package/dist/legacy-event.d.ts +0 -1
- package/dist/legacy-event.js +0 -1
- package/dist/llm.d.ts +0 -28
- package/dist/llm.js +0 -19
- package/dist/location.d.ts +0 -36
- package/dist/location.js +0 -21
- package/dist/lsp-event.d.ts +0 -67
- package/dist/lsp-event.js +0 -4
- package/dist/mcp-event.d.ts +0 -188
- package/dist/mcp-event.js +0 -25
- package/dist/mcp.d.ts +0 -39
- package/dist/mcp.js +0 -38
- package/dist/model.d.ts +0 -213
- package/dist/model.js +0 -86
- package/dist/models-dev.d.ts +0 -69
- package/dist/models-dev.js +0 -7
- package/dist/permission-saved.d.ts +0 -18
- package/dist/permission-saved.js +0 -12
- package/dist/permission-v1.d.ts +0 -1
- package/dist/permission-v1.js +0 -1
- package/dist/permission.d.ts +0 -306
- package/dist/permission.js +0 -45
- package/dist/plugin.d.ts +0 -85
- package/dist/plugin.js +0 -12
- package/dist/project-copy.d.ts +0 -29
- package/dist/project-copy.js +0 -21
- package/dist/project-directories.d.ts +0 -85
- package/dist/project-directories.js +0 -8
- package/dist/project-id.d.ts +0 -5
- package/dist/project-id.js +0 -3
- package/dist/project.d.ts +0 -258
- package/dist/project.js +0 -44
- package/dist/prompt-input.d.ts +0 -106
- package/dist/prompt-input.js +0 -19
- package/dist/prompt.d.ts +0 -177
- package/dist/prompt.js +0 -43
- package/dist/provider.d.ts +0 -118
- package/dist/provider.js +0 -55
- package/dist/pty-ticket.d.ts +0 -8
- package/dist/pty-ticket.js +0 -7
- package/dist/pty.d.ts +0 -462
- package/dist/pty.js +0 -43
- package/dist/question-v1.d.ts +0 -1
- package/dist/question-v1.js +0 -1
- package/dist/question.d.ts +0 -456
- package/dist/question.js +0 -64
- package/dist/reference.d.ts +0 -120
- package/dist/reference.js +0 -31
- package/dist/revert.d.ts +0 -35
- package/dist/revert.js +0 -19
- package/dist/schema.d.ts +0 -10
- package/dist/schema.js +0 -14
- package/dist/server-event.d.ts +0 -132
- package/dist/server-event.js +0 -5
- package/dist/session-compaction-event.d.ts +0 -87
- package/dist/session-compaction-event.js +0 -10
- package/dist/session-context-entry.d.ts +0 -15
- package/dist/session-context-entry.js +0 -15
- package/dist/session-delivery.d.ts +0 -4
- package/dist/session-delivery.js +0 -3
- package/dist/session-event.d.ts +0 -12728
- package/dist/session-event.js +0 -423
- package/dist/session-id.d.ts +0 -6
- package/dist/session-id.js +0 -10
- package/dist/session-input.d.ts +0 -146
- package/dist/session-input.js +0 -18
- package/dist/session-message.d.ts +0 -1390
- package/dist/session-message.js +0 -175
- package/dist/session-status-event.d.ts +0 -299
- package/dist/session-status-event.js +0 -43
- package/dist/session-todo.d.ts +0 -117
- package/dist/session-todo.js +0 -21
- package/dist/session-v1.d.ts +0 -1
- package/dist/session-v1.js +0 -1
- package/dist/session.d.ts +0 -142
- package/dist/session.js +0 -43
- package/dist/shell.d.ts +0 -381
- package/dist/shell.js +0 -58
- package/dist/skill.d.ts +0 -126
- package/dist/skill.js +0 -45
- package/dist/tui-event.d.ts +0 -307
- package/dist/tui-event.js +0 -53
- package/dist/v1/filesystem.d.ts +0 -78
- package/dist/v1/filesystem.js +0 -8
- package/dist/v1/legacy-event.d.ts +0 -108
- package/dist/v1/legacy-event.js +0 -15
- package/dist/v1/permission.d.ts +0 -316
- package/dist/v1/permission.js +0 -41
- package/dist/v1/question.d.ts +0 -444
- package/dist/v1/question.js +0 -57
- package/dist/v1/session.d.ts +0 -7657
- package/dist/v1/session.js +0 -535
- package/dist/vcs-event.d.ts +0 -76
- package/dist/vcs-event.js +0 -11
- package/dist/vcs.d.ts +0 -12
- package/dist/vcs.js +0 -10
- package/dist/workspace-event.d.ts +0 -247
- package/dist/workspace-event.js +0 -25
- package/dist/workspace-id.d.ts +0 -6
- package/dist/workspace-id.js +0 -16
- package/dist/workspace.d.ts +0 -9
- package/dist/workspace.js +0 -5
- package/dist/worktree-event.d.ts +0 -153
- package/dist/worktree-event.js +0 -18
package/dist/integration.d.ts
DELETED
|
@@ -1,532 +0,0 @@
|
|
|
1
|
-
export * as Integration from "./integration.js";
|
|
2
|
-
import { Schema } from "effect";
|
|
3
|
-
export declare const ID: Schema.brand<Schema.String, "Integration.ID">;
|
|
4
|
-
export type ID = typeof ID.Type;
|
|
5
|
-
export declare const MethodID: Schema.brand<Schema.String, "Integration.MethodID">;
|
|
6
|
-
export type MethodID = typeof MethodID.Type;
|
|
7
|
-
export interface When extends Schema.Schema.Type<typeof When> {
|
|
8
|
-
}
|
|
9
|
-
export declare const When: Schema.Struct<{
|
|
10
|
-
readonly key: Schema.String;
|
|
11
|
-
readonly op: Schema.Literals<readonly ["eq", "neq"]>;
|
|
12
|
-
readonly value: Schema.String;
|
|
13
|
-
}>;
|
|
14
|
-
export interface TextPrompt extends Schema.Schema.Type<typeof TextPrompt> {
|
|
15
|
-
}
|
|
16
|
-
export declare const TextPrompt: Schema.Struct<{
|
|
17
|
-
readonly type: Schema.Literal<"text">;
|
|
18
|
-
readonly key: Schema.String;
|
|
19
|
-
readonly message: Schema.String;
|
|
20
|
-
readonly placeholder: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
21
|
-
readonly when: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
22
|
-
readonly key: Schema.String;
|
|
23
|
-
readonly op: Schema.Literals<readonly ["eq", "neq"]>;
|
|
24
|
-
readonly value: Schema.String;
|
|
25
|
-
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
26
|
-
readonly key: Schema.String;
|
|
27
|
-
readonly op: Schema.Literals<readonly ["eq", "neq"]>;
|
|
28
|
-
readonly value: Schema.String;
|
|
29
|
-
}>>, never, never>;
|
|
30
|
-
}>;
|
|
31
|
-
export interface SelectPrompt extends Schema.Schema.Type<typeof SelectPrompt> {
|
|
32
|
-
}
|
|
33
|
-
export declare const SelectPrompt: Schema.Struct<{
|
|
34
|
-
readonly type: Schema.Literal<"select">;
|
|
35
|
-
readonly key: Schema.String;
|
|
36
|
-
readonly message: Schema.String;
|
|
37
|
-
readonly options: Schema.$Array<Schema.Struct<{
|
|
38
|
-
readonly label: Schema.String;
|
|
39
|
-
readonly value: Schema.String;
|
|
40
|
-
readonly hint: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
41
|
-
}>>;
|
|
42
|
-
readonly when: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
43
|
-
readonly key: Schema.String;
|
|
44
|
-
readonly op: Schema.Literals<readonly ["eq", "neq"]>;
|
|
45
|
-
readonly value: Schema.String;
|
|
46
|
-
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
47
|
-
readonly key: Schema.String;
|
|
48
|
-
readonly op: Schema.Literals<readonly ["eq", "neq"]>;
|
|
49
|
-
readonly value: Schema.String;
|
|
50
|
-
}>>, never, never>;
|
|
51
|
-
}>;
|
|
52
|
-
export declare const Prompt: Schema.toTaggedUnion<"type", readonly [Schema.Struct<{
|
|
53
|
-
readonly type: Schema.Literal<"text">;
|
|
54
|
-
readonly key: Schema.String;
|
|
55
|
-
readonly message: Schema.String;
|
|
56
|
-
readonly placeholder: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
57
|
-
readonly when: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
58
|
-
readonly key: Schema.String;
|
|
59
|
-
readonly op: Schema.Literals<readonly ["eq", "neq"]>;
|
|
60
|
-
readonly value: Schema.String;
|
|
61
|
-
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
62
|
-
readonly key: Schema.String;
|
|
63
|
-
readonly op: Schema.Literals<readonly ["eq", "neq"]>;
|
|
64
|
-
readonly value: Schema.String;
|
|
65
|
-
}>>, never, never>;
|
|
66
|
-
}>, Schema.Struct<{
|
|
67
|
-
readonly type: Schema.Literal<"select">;
|
|
68
|
-
readonly key: Schema.String;
|
|
69
|
-
readonly message: Schema.String;
|
|
70
|
-
readonly options: Schema.$Array<Schema.Struct<{
|
|
71
|
-
readonly label: Schema.String;
|
|
72
|
-
readonly value: Schema.String;
|
|
73
|
-
readonly hint: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
74
|
-
}>>;
|
|
75
|
-
readonly when: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
76
|
-
readonly key: Schema.String;
|
|
77
|
-
readonly op: Schema.Literals<readonly ["eq", "neq"]>;
|
|
78
|
-
readonly value: Schema.String;
|
|
79
|
-
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
80
|
-
readonly key: Schema.String;
|
|
81
|
-
readonly op: Schema.Literals<readonly ["eq", "neq"]>;
|
|
82
|
-
readonly value: Schema.String;
|
|
83
|
-
}>>, never, never>;
|
|
84
|
-
}>]>;
|
|
85
|
-
export type Prompt = typeof Prompt.Type;
|
|
86
|
-
export interface OAuthMethod extends Schema.Schema.Type<typeof OAuthMethod> {
|
|
87
|
-
}
|
|
88
|
-
export declare const OAuthMethod: Schema.Struct<{
|
|
89
|
-
readonly id: Schema.brand<Schema.String, "Integration.MethodID">;
|
|
90
|
-
readonly type: Schema.Literal<"oauth">;
|
|
91
|
-
readonly label: Schema.String;
|
|
92
|
-
readonly prompts: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.toTaggedUnion<"type", readonly [Schema.Struct<{
|
|
93
|
-
readonly type: Schema.Literal<"text">;
|
|
94
|
-
readonly key: Schema.String;
|
|
95
|
-
readonly message: Schema.String;
|
|
96
|
-
readonly placeholder: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
97
|
-
readonly when: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
98
|
-
readonly key: Schema.String;
|
|
99
|
-
readonly op: Schema.Literals<readonly ["eq", "neq"]>;
|
|
100
|
-
readonly value: Schema.String;
|
|
101
|
-
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
102
|
-
readonly key: Schema.String;
|
|
103
|
-
readonly op: Schema.Literals<readonly ["eq", "neq"]>;
|
|
104
|
-
readonly value: Schema.String;
|
|
105
|
-
}>>, never, never>;
|
|
106
|
-
}>, Schema.Struct<{
|
|
107
|
-
readonly type: Schema.Literal<"select">;
|
|
108
|
-
readonly key: Schema.String;
|
|
109
|
-
readonly message: Schema.String;
|
|
110
|
-
readonly options: Schema.$Array<Schema.Struct<{
|
|
111
|
-
readonly label: Schema.String;
|
|
112
|
-
readonly value: Schema.String;
|
|
113
|
-
readonly hint: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
114
|
-
}>>;
|
|
115
|
-
readonly when: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
116
|
-
readonly key: Schema.String;
|
|
117
|
-
readonly op: Schema.Literals<readonly ["eq", "neq"]>;
|
|
118
|
-
readonly value: Schema.String;
|
|
119
|
-
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
120
|
-
readonly key: Schema.String;
|
|
121
|
-
readonly op: Schema.Literals<readonly ["eq", "neq"]>;
|
|
122
|
-
readonly value: Schema.String;
|
|
123
|
-
}>>, never, never>;
|
|
124
|
-
}>]>>>>, Schema.optionalKey<Schema.$Array<Schema.toTaggedUnion<"type", readonly [Schema.Struct<{
|
|
125
|
-
readonly type: Schema.Literal<"text">;
|
|
126
|
-
readonly key: Schema.String;
|
|
127
|
-
readonly message: Schema.String;
|
|
128
|
-
readonly placeholder: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
129
|
-
readonly when: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
130
|
-
readonly key: Schema.String;
|
|
131
|
-
readonly op: Schema.Literals<readonly ["eq", "neq"]>;
|
|
132
|
-
readonly value: Schema.String;
|
|
133
|
-
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
134
|
-
readonly key: Schema.String;
|
|
135
|
-
readonly op: Schema.Literals<readonly ["eq", "neq"]>;
|
|
136
|
-
readonly value: Schema.String;
|
|
137
|
-
}>>, never, never>;
|
|
138
|
-
}>, Schema.Struct<{
|
|
139
|
-
readonly type: Schema.Literal<"select">;
|
|
140
|
-
readonly key: Schema.String;
|
|
141
|
-
readonly message: Schema.String;
|
|
142
|
-
readonly options: Schema.$Array<Schema.Struct<{
|
|
143
|
-
readonly label: Schema.String;
|
|
144
|
-
readonly value: Schema.String;
|
|
145
|
-
readonly hint: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
146
|
-
}>>;
|
|
147
|
-
readonly when: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
148
|
-
readonly key: Schema.String;
|
|
149
|
-
readonly op: Schema.Literals<readonly ["eq", "neq"]>;
|
|
150
|
-
readonly value: Schema.String;
|
|
151
|
-
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
152
|
-
readonly key: Schema.String;
|
|
153
|
-
readonly op: Schema.Literals<readonly ["eq", "neq"]>;
|
|
154
|
-
readonly value: Schema.String;
|
|
155
|
-
}>>, never, never>;
|
|
156
|
-
}>]>>>, never, never>;
|
|
157
|
-
}>;
|
|
158
|
-
export interface KeyMethod extends Schema.Schema.Type<typeof KeyMethod> {
|
|
159
|
-
}
|
|
160
|
-
export declare const KeyMethod: Schema.Struct<{
|
|
161
|
-
readonly type: Schema.Literal<"key">;
|
|
162
|
-
readonly label: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
163
|
-
}>;
|
|
164
|
-
export interface EnvMethod extends Schema.Schema.Type<typeof EnvMethod> {
|
|
165
|
-
}
|
|
166
|
-
export declare const EnvMethod: Schema.Struct<{
|
|
167
|
-
readonly type: Schema.Literal<"env">;
|
|
168
|
-
readonly names: Schema.$Array<Schema.String>;
|
|
169
|
-
}>;
|
|
170
|
-
export declare const Method: Schema.Union<readonly [Schema.Struct<{
|
|
171
|
-
readonly id: Schema.brand<Schema.String, "Integration.MethodID">;
|
|
172
|
-
readonly type: Schema.Literal<"oauth">;
|
|
173
|
-
readonly label: Schema.String;
|
|
174
|
-
readonly prompts: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.toTaggedUnion<"type", readonly [Schema.Struct<{
|
|
175
|
-
readonly type: Schema.Literal<"text">;
|
|
176
|
-
readonly key: Schema.String;
|
|
177
|
-
readonly message: Schema.String;
|
|
178
|
-
readonly placeholder: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
179
|
-
readonly when: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
180
|
-
readonly key: Schema.String;
|
|
181
|
-
readonly op: Schema.Literals<readonly ["eq", "neq"]>;
|
|
182
|
-
readonly value: Schema.String;
|
|
183
|
-
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
184
|
-
readonly key: Schema.String;
|
|
185
|
-
readonly op: Schema.Literals<readonly ["eq", "neq"]>;
|
|
186
|
-
readonly value: Schema.String;
|
|
187
|
-
}>>, never, never>;
|
|
188
|
-
}>, Schema.Struct<{
|
|
189
|
-
readonly type: Schema.Literal<"select">;
|
|
190
|
-
readonly key: Schema.String;
|
|
191
|
-
readonly message: Schema.String;
|
|
192
|
-
readonly options: Schema.$Array<Schema.Struct<{
|
|
193
|
-
readonly label: Schema.String;
|
|
194
|
-
readonly value: Schema.String;
|
|
195
|
-
readonly hint: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
196
|
-
}>>;
|
|
197
|
-
readonly when: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
198
|
-
readonly key: Schema.String;
|
|
199
|
-
readonly op: Schema.Literals<readonly ["eq", "neq"]>;
|
|
200
|
-
readonly value: Schema.String;
|
|
201
|
-
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
202
|
-
readonly key: Schema.String;
|
|
203
|
-
readonly op: Schema.Literals<readonly ["eq", "neq"]>;
|
|
204
|
-
readonly value: Schema.String;
|
|
205
|
-
}>>, never, never>;
|
|
206
|
-
}>]>>>>, Schema.optionalKey<Schema.$Array<Schema.toTaggedUnion<"type", readonly [Schema.Struct<{
|
|
207
|
-
readonly type: Schema.Literal<"text">;
|
|
208
|
-
readonly key: Schema.String;
|
|
209
|
-
readonly message: Schema.String;
|
|
210
|
-
readonly placeholder: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
211
|
-
readonly when: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
212
|
-
readonly key: Schema.String;
|
|
213
|
-
readonly op: Schema.Literals<readonly ["eq", "neq"]>;
|
|
214
|
-
readonly value: Schema.String;
|
|
215
|
-
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
216
|
-
readonly key: Schema.String;
|
|
217
|
-
readonly op: Schema.Literals<readonly ["eq", "neq"]>;
|
|
218
|
-
readonly value: Schema.String;
|
|
219
|
-
}>>, never, never>;
|
|
220
|
-
}>, Schema.Struct<{
|
|
221
|
-
readonly type: Schema.Literal<"select">;
|
|
222
|
-
readonly key: Schema.String;
|
|
223
|
-
readonly message: Schema.String;
|
|
224
|
-
readonly options: Schema.$Array<Schema.Struct<{
|
|
225
|
-
readonly label: Schema.String;
|
|
226
|
-
readonly value: Schema.String;
|
|
227
|
-
readonly hint: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
228
|
-
}>>;
|
|
229
|
-
readonly when: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
230
|
-
readonly key: Schema.String;
|
|
231
|
-
readonly op: Schema.Literals<readonly ["eq", "neq"]>;
|
|
232
|
-
readonly value: Schema.String;
|
|
233
|
-
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
234
|
-
readonly key: Schema.String;
|
|
235
|
-
readonly op: Schema.Literals<readonly ["eq", "neq"]>;
|
|
236
|
-
readonly value: Schema.String;
|
|
237
|
-
}>>, never, never>;
|
|
238
|
-
}>]>>>, never, never>;
|
|
239
|
-
}>, Schema.Struct<{
|
|
240
|
-
readonly type: Schema.Literal<"key">;
|
|
241
|
-
readonly label: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
242
|
-
}>, Schema.Struct<{
|
|
243
|
-
readonly type: Schema.Literal<"env">;
|
|
244
|
-
readonly names: Schema.$Array<Schema.String>;
|
|
245
|
-
}>]>;
|
|
246
|
-
export type Method = typeof Method.Type;
|
|
247
|
-
export declare const Inputs: Schema.$Record<Schema.String, Schema.String>;
|
|
248
|
-
export type Inputs = typeof Inputs.Type;
|
|
249
|
-
export declare const Event: {
|
|
250
|
-
Updated: Schema.Struct<{
|
|
251
|
-
readonly id: Schema.brand<Schema.String, "Event.ID"> & {
|
|
252
|
-
create: () => string & import("effect/Brand").Brand<"Event.ID">;
|
|
253
|
-
};
|
|
254
|
-
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
255
|
-
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
256
|
-
readonly type: Schema.Literal<"integration.updated">;
|
|
257
|
-
readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
258
|
-
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
259
|
-
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
|
|
260
|
-
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
261
|
-
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
262
|
-
}>>, Schema.optionalKey<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
|
|
263
|
-
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
264
|
-
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
265
|
-
}>, never, never>;
|
|
266
|
-
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
267
|
-
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
268
|
-
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
|
|
269
|
-
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
270
|
-
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
271
|
-
}>>, Schema.optionalKey<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
|
|
272
|
-
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
273
|
-
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
274
|
-
}>, never, never>;
|
|
275
|
-
}>>, never, never>;
|
|
276
|
-
readonly data: Schema.Struct<{}>;
|
|
277
|
-
}> & {
|
|
278
|
-
type: "integration.updated";
|
|
279
|
-
durability: "ephemeral";
|
|
280
|
-
durable: undefined;
|
|
281
|
-
data: Schema.Struct<{}>;
|
|
282
|
-
};
|
|
283
|
-
ConnectionUpdated: Schema.Struct<{
|
|
284
|
-
readonly id: Schema.brand<Schema.String, "Event.ID"> & {
|
|
285
|
-
create: () => string & import("effect/Brand").Brand<"Event.ID">;
|
|
286
|
-
};
|
|
287
|
-
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
288
|
-
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
289
|
-
readonly type: Schema.Literal<"integration.connection.updated">;
|
|
290
|
-
readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
291
|
-
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
292
|
-
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
|
|
293
|
-
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
294
|
-
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
295
|
-
}>>, Schema.optionalKey<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
|
|
296
|
-
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
297
|
-
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
298
|
-
}>, never, never>;
|
|
299
|
-
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
300
|
-
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
301
|
-
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
|
|
302
|
-
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
303
|
-
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
304
|
-
}>>, Schema.optionalKey<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
|
|
305
|
-
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
306
|
-
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
307
|
-
}>, never, never>;
|
|
308
|
-
}>>, never, never>;
|
|
309
|
-
readonly data: Schema.Struct<{
|
|
310
|
-
readonly integrationID: Schema.brand<Schema.String, "Integration.ID">;
|
|
311
|
-
}>;
|
|
312
|
-
}> & {
|
|
313
|
-
type: "integration.connection.updated";
|
|
314
|
-
durability: "ephemeral";
|
|
315
|
-
durable: undefined;
|
|
316
|
-
data: Schema.Struct<{
|
|
317
|
-
readonly integrationID: Schema.brand<Schema.String, "Integration.ID">;
|
|
318
|
-
}>;
|
|
319
|
-
};
|
|
320
|
-
Definitions: readonly [Schema.Struct<{
|
|
321
|
-
readonly id: Schema.brand<Schema.String, "Event.ID"> & {
|
|
322
|
-
create: () => string & import("effect/Brand").Brand<"Event.ID">;
|
|
323
|
-
};
|
|
324
|
-
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
325
|
-
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
326
|
-
readonly type: Schema.Literal<"integration.updated">;
|
|
327
|
-
readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
328
|
-
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
329
|
-
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
|
|
330
|
-
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
331
|
-
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
332
|
-
}>>, Schema.optionalKey<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
|
|
333
|
-
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
334
|
-
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
335
|
-
}>, never, never>;
|
|
336
|
-
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
337
|
-
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
338
|
-
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
|
|
339
|
-
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
340
|
-
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
341
|
-
}>>, Schema.optionalKey<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
|
|
342
|
-
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
343
|
-
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
344
|
-
}>, never, never>;
|
|
345
|
-
}>>, never, never>;
|
|
346
|
-
readonly data: Schema.Struct<{}>;
|
|
347
|
-
}> & {
|
|
348
|
-
type: "integration.updated";
|
|
349
|
-
durability: "ephemeral";
|
|
350
|
-
durable: undefined;
|
|
351
|
-
data: Schema.Struct<{}>;
|
|
352
|
-
}, Schema.Struct<{
|
|
353
|
-
readonly id: Schema.brand<Schema.String, "Event.ID"> & {
|
|
354
|
-
create: () => string & import("effect/Brand").Brand<"Event.ID">;
|
|
355
|
-
};
|
|
356
|
-
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
357
|
-
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
358
|
-
readonly type: Schema.Literal<"integration.connection.updated">;
|
|
359
|
-
readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
360
|
-
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
361
|
-
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
|
|
362
|
-
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
363
|
-
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
364
|
-
}>>, Schema.optionalKey<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
|
|
365
|
-
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
366
|
-
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
367
|
-
}>, never, never>;
|
|
368
|
-
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
369
|
-
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
370
|
-
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
|
|
371
|
-
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
372
|
-
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
373
|
-
}>>, Schema.optionalKey<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
|
|
374
|
-
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
375
|
-
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
376
|
-
}>, never, never>;
|
|
377
|
-
}>>, never, never>;
|
|
378
|
-
readonly data: Schema.Struct<{
|
|
379
|
-
readonly integrationID: Schema.brand<Schema.String, "Integration.ID">;
|
|
380
|
-
}>;
|
|
381
|
-
}> & {
|
|
382
|
-
type: "integration.connection.updated";
|
|
383
|
-
durability: "ephemeral";
|
|
384
|
-
durable: undefined;
|
|
385
|
-
data: Schema.Struct<{
|
|
386
|
-
readonly integrationID: Schema.brand<Schema.String, "Integration.ID">;
|
|
387
|
-
}>;
|
|
388
|
-
}];
|
|
389
|
-
};
|
|
390
|
-
export interface Ref extends Schema.Schema.Type<typeof Ref> {
|
|
391
|
-
}
|
|
392
|
-
export declare const Ref: Schema.Struct<{
|
|
393
|
-
readonly id: Schema.brand<Schema.String, "Integration.ID">;
|
|
394
|
-
readonly name: Schema.String;
|
|
395
|
-
}>;
|
|
396
|
-
declare const Info_base: Schema.Class<Info, Schema.Struct<{
|
|
397
|
-
readonly id: Schema.brand<Schema.String, "Integration.ID">;
|
|
398
|
-
readonly name: Schema.String;
|
|
399
|
-
readonly methods: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
400
|
-
readonly id: Schema.brand<Schema.String, "Integration.MethodID">;
|
|
401
|
-
readonly type: Schema.Literal<"oauth">;
|
|
402
|
-
readonly label: Schema.String;
|
|
403
|
-
readonly prompts: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.toTaggedUnion<"type", readonly [Schema.Struct<{
|
|
404
|
-
readonly type: Schema.Literal<"text">;
|
|
405
|
-
readonly key: Schema.String;
|
|
406
|
-
readonly message: Schema.String;
|
|
407
|
-
readonly placeholder: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
408
|
-
readonly when: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
409
|
-
readonly key: Schema.String;
|
|
410
|
-
readonly op: Schema.Literals<readonly ["eq", "neq"]>;
|
|
411
|
-
readonly value: Schema.String;
|
|
412
|
-
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
413
|
-
readonly key: Schema.String;
|
|
414
|
-
readonly op: Schema.Literals<readonly ["eq", "neq"]>;
|
|
415
|
-
readonly value: Schema.String;
|
|
416
|
-
}>>, never, never>;
|
|
417
|
-
}>, Schema.Struct<{
|
|
418
|
-
readonly type: Schema.Literal<"select">;
|
|
419
|
-
readonly key: Schema.String;
|
|
420
|
-
readonly message: Schema.String;
|
|
421
|
-
readonly options: Schema.$Array<Schema.Struct<{
|
|
422
|
-
readonly label: Schema.String;
|
|
423
|
-
readonly value: Schema.String;
|
|
424
|
-
readonly hint: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
425
|
-
}>>;
|
|
426
|
-
readonly when: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
427
|
-
readonly key: Schema.String;
|
|
428
|
-
readonly op: Schema.Literals<readonly ["eq", "neq"]>;
|
|
429
|
-
readonly value: Schema.String;
|
|
430
|
-
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
431
|
-
readonly key: Schema.String;
|
|
432
|
-
readonly op: Schema.Literals<readonly ["eq", "neq"]>;
|
|
433
|
-
readonly value: Schema.String;
|
|
434
|
-
}>>, never, never>;
|
|
435
|
-
}>]>>>>, Schema.optionalKey<Schema.$Array<Schema.toTaggedUnion<"type", readonly [Schema.Struct<{
|
|
436
|
-
readonly type: Schema.Literal<"text">;
|
|
437
|
-
readonly key: Schema.String;
|
|
438
|
-
readonly message: Schema.String;
|
|
439
|
-
readonly placeholder: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
440
|
-
readonly when: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
441
|
-
readonly key: Schema.String;
|
|
442
|
-
readonly op: Schema.Literals<readonly ["eq", "neq"]>;
|
|
443
|
-
readonly value: Schema.String;
|
|
444
|
-
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
445
|
-
readonly key: Schema.String;
|
|
446
|
-
readonly op: Schema.Literals<readonly ["eq", "neq"]>;
|
|
447
|
-
readonly value: Schema.String;
|
|
448
|
-
}>>, never, never>;
|
|
449
|
-
}>, Schema.Struct<{
|
|
450
|
-
readonly type: Schema.Literal<"select">;
|
|
451
|
-
readonly key: Schema.String;
|
|
452
|
-
readonly message: Schema.String;
|
|
453
|
-
readonly options: Schema.$Array<Schema.Struct<{
|
|
454
|
-
readonly label: Schema.String;
|
|
455
|
-
readonly value: Schema.String;
|
|
456
|
-
readonly hint: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
457
|
-
}>>;
|
|
458
|
-
readonly when: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
459
|
-
readonly key: Schema.String;
|
|
460
|
-
readonly op: Schema.Literals<readonly ["eq", "neq"]>;
|
|
461
|
-
readonly value: Schema.String;
|
|
462
|
-
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
463
|
-
readonly key: Schema.String;
|
|
464
|
-
readonly op: Schema.Literals<readonly ["eq", "neq"]>;
|
|
465
|
-
readonly value: Schema.String;
|
|
466
|
-
}>>, never, never>;
|
|
467
|
-
}>]>>>, never, never>;
|
|
468
|
-
}>, Schema.Struct<{
|
|
469
|
-
readonly type: Schema.Literal<"key">;
|
|
470
|
-
readonly label: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
471
|
-
}>, Schema.Struct<{
|
|
472
|
-
readonly type: Schema.Literal<"env">;
|
|
473
|
-
readonly names: Schema.$Array<Schema.String>;
|
|
474
|
-
}>]>>;
|
|
475
|
-
readonly connections: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
476
|
-
readonly type: Schema.Literal<"credential">;
|
|
477
|
-
readonly id: Schema.brand<Schema.String, "Credential.ID"> & {
|
|
478
|
-
create: () => string & import("effect/Brand").Brand<"Credential.ID">;
|
|
479
|
-
};
|
|
480
|
-
readonly label: Schema.String;
|
|
481
|
-
}>, Schema.Struct<{
|
|
482
|
-
readonly type: Schema.Literal<"env">;
|
|
483
|
-
readonly name: Schema.String;
|
|
484
|
-
}>]>>;
|
|
485
|
-
}>, {}>;
|
|
486
|
-
export declare class Info extends Info_base {
|
|
487
|
-
}
|
|
488
|
-
export declare const AttemptID: Schema.brand<Schema.String, "Integration.AttemptID"> & {
|
|
489
|
-
create: () => string & import("effect/Brand").Brand<"Integration.AttemptID">;
|
|
490
|
-
};
|
|
491
|
-
export type AttemptID = typeof AttemptID.Type;
|
|
492
|
-
declare const Attempt_base: Schema.Class<Attempt, Schema.Struct<{
|
|
493
|
-
readonly attemptID: Schema.brand<Schema.String, "Integration.AttemptID"> & {
|
|
494
|
-
create: () => string & import("effect/Brand").Brand<"Integration.AttemptID">;
|
|
495
|
-
};
|
|
496
|
-
readonly url: Schema.String;
|
|
497
|
-
readonly instructions: Schema.String;
|
|
498
|
-
readonly mode: Schema.Literals<readonly ["auto", "code"]>;
|
|
499
|
-
readonly time: Schema.Struct<{
|
|
500
|
-
readonly created: Schema.Number;
|
|
501
|
-
readonly expires: Schema.Number;
|
|
502
|
-
}>;
|
|
503
|
-
}>, {}>;
|
|
504
|
-
export declare class Attempt extends Attempt_base {
|
|
505
|
-
}
|
|
506
|
-
export declare const AttemptStatus: Schema.Union<readonly [Schema.Struct<{
|
|
507
|
-
readonly status: Schema.Literal<"pending">;
|
|
508
|
-
readonly time: Schema.Struct<{
|
|
509
|
-
readonly created: Schema.Number;
|
|
510
|
-
readonly expires: Schema.Number;
|
|
511
|
-
}>;
|
|
512
|
-
}>, Schema.Struct<{
|
|
513
|
-
readonly status: Schema.Literal<"complete">;
|
|
514
|
-
readonly time: Schema.Struct<{
|
|
515
|
-
readonly created: Schema.Number;
|
|
516
|
-
readonly expires: Schema.Number;
|
|
517
|
-
}>;
|
|
518
|
-
}>, Schema.Struct<{
|
|
519
|
-
readonly status: Schema.Literal<"failed">;
|
|
520
|
-
readonly message: Schema.String;
|
|
521
|
-
readonly time: Schema.Struct<{
|
|
522
|
-
readonly created: Schema.Number;
|
|
523
|
-
readonly expires: Schema.Number;
|
|
524
|
-
}>;
|
|
525
|
-
}>, Schema.Struct<{
|
|
526
|
-
readonly status: Schema.Literal<"expired">;
|
|
527
|
-
readonly time: Schema.Struct<{
|
|
528
|
-
readonly created: Schema.Number;
|
|
529
|
-
readonly expires: Schema.Number;
|
|
530
|
-
}>;
|
|
531
|
-
}>]>;
|
|
532
|
-
export type AttemptStatus = typeof AttemptStatus.Type;
|
package/dist/integration.js
DELETED
|
@@ -1,93 +0,0 @@
|
|
|
1
|
-
export * as Integration from "./integration.js";
|
|
2
|
-
import { Schema } from "effect";
|
|
3
|
-
import { optional } from "./schema.js";
|
|
4
|
-
import { ephemeral, inventory } from "./event.js";
|
|
5
|
-
import { Connection } from "./connection.js";
|
|
6
|
-
import { ascending } from "./identifier.js";
|
|
7
|
-
import { statics } from "./schema.js";
|
|
8
|
-
import { IntegrationID, IntegrationMethodID } from "./integration-id.js";
|
|
9
|
-
export const ID = IntegrationID;
|
|
10
|
-
export const MethodID = IntegrationMethodID;
|
|
11
|
-
export const When = Schema.Struct({
|
|
12
|
-
key: Schema.String,
|
|
13
|
-
op: Schema.Literals(["eq", "neq"]),
|
|
14
|
-
value: Schema.String,
|
|
15
|
-
}).annotate({ identifier: "Integration.When" });
|
|
16
|
-
export const TextPrompt = Schema.Struct({
|
|
17
|
-
type: Schema.Literal("text"),
|
|
18
|
-
key: Schema.String,
|
|
19
|
-
message: Schema.String,
|
|
20
|
-
placeholder: optional(Schema.String),
|
|
21
|
-
when: optional(When),
|
|
22
|
-
}).annotate({ identifier: "Integration.TextPrompt" });
|
|
23
|
-
export const SelectPrompt = Schema.Struct({
|
|
24
|
-
type: Schema.Literal("select"),
|
|
25
|
-
key: Schema.String,
|
|
26
|
-
message: Schema.String,
|
|
27
|
-
options: Schema.Array(Schema.Struct({
|
|
28
|
-
label: Schema.String,
|
|
29
|
-
value: Schema.String,
|
|
30
|
-
hint: optional(Schema.String),
|
|
31
|
-
})),
|
|
32
|
-
when: optional(When),
|
|
33
|
-
}).annotate({ identifier: "Integration.SelectPrompt" });
|
|
34
|
-
export const Prompt = Schema.Union([TextPrompt, SelectPrompt]).pipe(Schema.toTaggedUnion("type"));
|
|
35
|
-
export const OAuthMethod = Schema.Struct({
|
|
36
|
-
id: MethodID,
|
|
37
|
-
type: Schema.Literal("oauth"),
|
|
38
|
-
label: Schema.String,
|
|
39
|
-
prompts: optional(Schema.Array(Prompt)),
|
|
40
|
-
}).annotate({ identifier: "Integration.OAuthMethod" });
|
|
41
|
-
export const KeyMethod = Schema.Struct({
|
|
42
|
-
type: Schema.Literal("key"),
|
|
43
|
-
label: optional(Schema.String),
|
|
44
|
-
}).annotate({ identifier: "Integration.KeyMethod" });
|
|
45
|
-
export const EnvMethod = Schema.Struct({
|
|
46
|
-
type: Schema.Literal("env"),
|
|
47
|
-
names: Schema.Array(Schema.String),
|
|
48
|
-
}).annotate({ identifier: "Integration.EnvMethod" });
|
|
49
|
-
export const Method = Schema.Union([OAuthMethod, KeyMethod, EnvMethod])
|
|
50
|
-
.pipe(Schema.toTaggedUnion("type"))
|
|
51
|
-
.annotate({ identifier: "Integration.Method" });
|
|
52
|
-
export const Inputs = Schema.Record(Schema.String, Schema.String).annotate({ identifier: "Integration.Inputs" });
|
|
53
|
-
const Updated = ephemeral({
|
|
54
|
-
type: "integration.updated",
|
|
55
|
-
schema: {},
|
|
56
|
-
});
|
|
57
|
-
const ConnectionUpdated = ephemeral({
|
|
58
|
-
type: "integration.connection.updated",
|
|
59
|
-
schema: { integrationID: ID },
|
|
60
|
-
});
|
|
61
|
-
export const Event = { Updated, ConnectionUpdated, Definitions: inventory(Updated, ConnectionUpdated) };
|
|
62
|
-
export const Ref = Schema.Struct({
|
|
63
|
-
id: ID,
|
|
64
|
-
name: Schema.String,
|
|
65
|
-
}).annotate({ identifier: "Integration.Ref" });
|
|
66
|
-
export class Info extends Schema.Class("Integration.Info")({
|
|
67
|
-
id: ID,
|
|
68
|
-
name: Schema.String,
|
|
69
|
-
methods: Schema.Array(Method),
|
|
70
|
-
connections: Schema.Array(Connection.Info),
|
|
71
|
-
}) {
|
|
72
|
-
}
|
|
73
|
-
export const AttemptID = Schema.String.pipe(Schema.brand("Integration.AttemptID"), statics((schema) => ({ create: () => schema.make("con_" + ascending()) })));
|
|
74
|
-
const AttemptTime = Schema.Struct({
|
|
75
|
-
created: Schema.Number,
|
|
76
|
-
expires: Schema.Number,
|
|
77
|
-
});
|
|
78
|
-
export class Attempt extends Schema.Class("Integration.Attempt")({
|
|
79
|
-
attemptID: AttemptID,
|
|
80
|
-
url: Schema.String,
|
|
81
|
-
instructions: Schema.String,
|
|
82
|
-
mode: Schema.Literals(["auto", "code"]),
|
|
83
|
-
time: AttemptTime,
|
|
84
|
-
}) {
|
|
85
|
-
}
|
|
86
|
-
export const AttemptStatus = Schema.Union([
|
|
87
|
-
Schema.Struct({ status: Schema.Literal("pending"), time: AttemptTime }),
|
|
88
|
-
Schema.Struct({ status: Schema.Literal("complete"), time: AttemptTime }),
|
|
89
|
-
Schema.Struct({ status: Schema.Literal("failed"), message: Schema.String, time: AttemptTime }),
|
|
90
|
-
Schema.Struct({ status: Schema.Literal("expired"), time: AttemptTime }),
|
|
91
|
-
])
|
|
92
|
-
.pipe(Schema.toTaggedUnion("status"))
|
|
93
|
-
.annotate({ identifier: "Integration.AttemptStatus" });
|
package/dist/legacy-event.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./v1/legacy-event.js";
|
package/dist/legacy-event.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./v1/legacy-event.js";
|
package/dist/llm.d.ts
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
export * as LLM from "./llm.js";
|
|
2
|
-
import { Schema } from "effect";
|
|
3
|
-
export declare const ProviderMetadata: Schema.$Record<Schema.String, Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
4
|
-
export type ProviderMetadata = Schema.Schema.Type<typeof ProviderMetadata>;
|
|
5
|
-
export interface ToolTextContent extends Schema.Schema.Type<typeof ToolTextContent> {
|
|
6
|
-
}
|
|
7
|
-
export declare const ToolTextContent: Schema.Struct<{
|
|
8
|
-
readonly type: Schema.Literal<"text">;
|
|
9
|
-
readonly text: Schema.String;
|
|
10
|
-
}>;
|
|
11
|
-
export interface ToolFileContent extends Schema.Schema.Type<typeof ToolFileContent> {
|
|
12
|
-
}
|
|
13
|
-
export declare const ToolFileContent: Schema.Struct<{
|
|
14
|
-
readonly type: Schema.Literal<"file">;
|
|
15
|
-
readonly uri: Schema.String;
|
|
16
|
-
readonly mime: Schema.String;
|
|
17
|
-
readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
18
|
-
}>;
|
|
19
|
-
export declare const ToolContent: Schema.Union<readonly [Schema.Struct<{
|
|
20
|
-
readonly type: Schema.Literal<"text">;
|
|
21
|
-
readonly text: Schema.String;
|
|
22
|
-
}>, Schema.Struct<{
|
|
23
|
-
readonly type: Schema.Literal<"file">;
|
|
24
|
-
readonly uri: Schema.String;
|
|
25
|
-
readonly mime: Schema.String;
|
|
26
|
-
readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
27
|
-
}>]>;
|
|
28
|
-
export type ToolContent = Schema.Schema.Type<typeof ToolContent>;
|