@opencode-ai/client 0.0.0-next-16234 → 0.0.0-next-16273
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/effect/api/api.d.ts +1548 -485
- package/dist/effect/generated/client.d.ts +1704 -7954
- package/dist/effect/generated/client.js +153 -150
- package/dist/promise/generated/client.d.ts +6 -5
- package/dist/promise/generated/client.js +8 -0
- package/dist/promise/generated/types.d.ts +123 -190
- package/dist/promise/generated/types.js +1 -0
- package/package.json +7 -7
|
@@ -8,18 +8,21 @@ import { ClientError } from "./client-error";
|
|
|
8
8
|
const mapClientError = (error) => HttpClientError.isHttpClientError(error) || Schema.isSchemaError(error) || Sse.Retry.is(error)
|
|
9
9
|
? new ClientError({ cause: error })
|
|
10
10
|
: error;
|
|
11
|
-
const
|
|
12
|
-
const
|
|
11
|
+
const preserveEffect = () => (effect) => effect;
|
|
12
|
+
const preserveStream = () => (stream) => stream;
|
|
13
|
+
const Endpoint0_0 = (raw) => () => preserveEffect()(raw["health.get"]({}).pipe(Effect.mapError(mapClientError)));
|
|
14
|
+
const Endpoint0_1 = (raw) => (input) => preserveEffect()(raw["health.stop"]({ payload: { instanceID: input["instanceID"] } }).pipe(Effect.mapError(mapClientError)));
|
|
13
15
|
const adaptGroup0 = (raw) => ({ get: Endpoint0_0(raw), stop: Endpoint0_1(raw) });
|
|
14
|
-
const Endpoint1_0 = (raw) => () => raw["server.get"]({}).pipe(Effect.mapError(mapClientError));
|
|
16
|
+
const Endpoint1_0 = (raw) => () => preserveEffect()(raw["server.get"]({}).pipe(Effect.mapError(mapClientError)));
|
|
15
17
|
const adaptGroup1 = (raw) => ({ get: Endpoint1_0(raw) });
|
|
16
|
-
const Endpoint2_0 = (raw) => (input) => raw["location.get"]({ query: { location: input?.["location"] } }).pipe(Effect.mapError(mapClientError));
|
|
18
|
+
const Endpoint2_0 = (raw) => (input) => preserveEffect()(raw["location.get"]({ query: { location: input?.["location"] } }).pipe(Effect.mapError(mapClientError)));
|
|
17
19
|
const adaptGroup2 = (raw) => ({ get: Endpoint2_0(raw) });
|
|
18
|
-
const Endpoint3_0 = (raw) => (input) => raw["agent.list"]({ query: { location: input?.["location"] } }).pipe(Effect.mapError(mapClientError));
|
|
19
|
-
const
|
|
20
|
-
const
|
|
20
|
+
const Endpoint3_0 = (raw) => (input) => preserveEffect()(raw["agent.list"]({ query: { location: input?.["location"] } }).pipe(Effect.mapError(mapClientError)));
|
|
21
|
+
const Endpoint3_1 = (raw) => (input) => preserveEffect()(raw["agent.get"]({ params: { agentID: input["agentID"] }, query: { location: input["location"] } }).pipe(Effect.mapError(mapClientError)));
|
|
22
|
+
const adaptGroup3 = (raw) => ({ list: Endpoint3_0(raw), get: Endpoint3_1(raw) });
|
|
23
|
+
const Endpoint4_0 = (raw) => (input) => preserveEffect()(raw["plugin.list"]({ query: { location: input?.["location"] } }).pipe(Effect.mapError(mapClientError)));
|
|
21
24
|
const adaptGroup4 = (raw) => ({ list: Endpoint4_0(raw) });
|
|
22
|
-
const Endpoint5_0 = (raw) => (input) => raw["session.list"]({
|
|
25
|
+
const Endpoint5_0 = (raw) => (input) => preserveEffect()(raw["session.list"]({
|
|
23
26
|
query: {
|
|
24
27
|
workspace: input?.["workspace"],
|
|
25
28
|
limit: input?.["limit"],
|
|
@@ -31,22 +34,22 @@ const Endpoint5_0 = (raw) => (input) => raw["session.list"]({
|
|
|
31
34
|
subpath: input?.["subpath"],
|
|
32
35
|
cursor: input?.["cursor"],
|
|
33
36
|
},
|
|
34
|
-
}).pipe(Effect.mapError(mapClientError));
|
|
35
|
-
const Endpoint5_1 = (raw) => (input) => raw["session.create"]({
|
|
37
|
+
}).pipe(Effect.mapError(mapClientError)));
|
|
38
|
+
const Endpoint5_1 = (raw) => (input) => preserveEffect()(raw["session.create"]({
|
|
36
39
|
payload: { id: input?.["id"], agent: input?.["agent"], model: input?.["model"], location: input?.["location"] },
|
|
37
|
-
}).pipe(Effect.mapError(mapClientError), Effect.map((value) => value.data));
|
|
38
|
-
const Endpoint5_2 = (raw) => () => raw["session.active"]({}).pipe(Effect.mapError(mapClientError), Effect.map((value) => value.data));
|
|
39
|
-
const Endpoint5_3 = (raw) => (input) => raw["session.get"]({ params: { sessionID: input["sessionID"] } }).pipe(Effect.mapError(mapClientError), Effect.map((value) => value.data));
|
|
40
|
-
const Endpoint5_4 = (raw) => (input) => raw["session.remove"]({ params: { sessionID: input["sessionID"] } }).pipe(Effect.mapError(mapClientError));
|
|
41
|
-
const Endpoint5_5 = (raw) => (input) => raw["session.fork"]({ params: { sessionID: input["sessionID"] }, payload: { messageID: input["messageID"] } }).pipe(Effect.mapError(mapClientError), Effect.map((value) => value.data));
|
|
42
|
-
const Endpoint5_6 = (raw) => (input) => raw["session.switchAgent"]({ params: { sessionID: input["sessionID"] }, payload: { agent: input["agent"] } }).pipe(Effect.mapError(mapClientError));
|
|
43
|
-
const Endpoint5_7 = (raw) => (input) => raw["session.switchModel"]({ params: { sessionID: input["sessionID"] }, payload: { model: input["model"] } }).pipe(Effect.mapError(mapClientError));
|
|
44
|
-
const Endpoint5_8 = (raw) => (input) => raw["session.rename"]({ params: { sessionID: input["sessionID"] }, payload: { title: input["title"] } }).pipe(Effect.mapError(mapClientError));
|
|
45
|
-
const Endpoint5_9 = (raw) => (input) => raw["session.move"]({
|
|
40
|
+
}).pipe(Effect.mapError(mapClientError), Effect.map((value) => value.data)));
|
|
41
|
+
const Endpoint5_2 = (raw) => () => preserveEffect()(raw["session.active"]({}).pipe(Effect.mapError(mapClientError), Effect.map((value) => value.data)));
|
|
42
|
+
const Endpoint5_3 = (raw) => (input) => preserveEffect()(raw["session.get"]({ params: { sessionID: input["sessionID"] } }).pipe(Effect.mapError(mapClientError), Effect.map((value) => value.data)));
|
|
43
|
+
const Endpoint5_4 = (raw) => (input) => preserveEffect()(raw["session.remove"]({ params: { sessionID: input["sessionID"] } }).pipe(Effect.mapError(mapClientError)));
|
|
44
|
+
const Endpoint5_5 = (raw) => (input) => preserveEffect()(raw["session.fork"]({ params: { sessionID: input["sessionID"] }, payload: { messageID: input["messageID"] } }).pipe(Effect.mapError(mapClientError), Effect.map((value) => value.data)));
|
|
45
|
+
const Endpoint5_6 = (raw) => (input) => preserveEffect()(raw["session.switchAgent"]({ params: { sessionID: input["sessionID"] }, payload: { agent: input["agent"] } }).pipe(Effect.mapError(mapClientError)));
|
|
46
|
+
const Endpoint5_7 = (raw) => (input) => preserveEffect()(raw["session.switchModel"]({ params: { sessionID: input["sessionID"] }, payload: { model: input["model"] } }).pipe(Effect.mapError(mapClientError)));
|
|
47
|
+
const Endpoint5_8 = (raw) => (input) => preserveEffect()(raw["session.rename"]({ params: { sessionID: input["sessionID"] }, payload: { title: input["title"] } }).pipe(Effect.mapError(mapClientError)));
|
|
48
|
+
const Endpoint5_9 = (raw) => (input) => preserveEffect()(raw["session.move"]({
|
|
46
49
|
params: { sessionID: input["sessionID"] },
|
|
47
50
|
payload: { directory: input["directory"], workspaceID: input["workspaceID"] },
|
|
48
|
-
}).pipe(Effect.mapError(mapClientError));
|
|
49
|
-
const Endpoint5_10 = (raw) => (input) => raw["session.prompt"]({
|
|
51
|
+
}).pipe(Effect.mapError(mapClientError)));
|
|
52
|
+
const Endpoint5_10 = (raw) => (input) => preserveEffect()(raw["session.prompt"]({
|
|
50
53
|
params: { sessionID: input["sessionID"] },
|
|
51
54
|
payload: {
|
|
52
55
|
id: input["id"],
|
|
@@ -57,8 +60,8 @@ const Endpoint5_10 = (raw) => (input) => raw["session.prompt"]({
|
|
|
57
60
|
delivery: input["delivery"],
|
|
58
61
|
resume: input["resume"],
|
|
59
62
|
},
|
|
60
|
-
}).pipe(Effect.mapError(mapClientError), Effect.map((value) => value.data));
|
|
61
|
-
const Endpoint5_11 = (raw) => (input) => raw["session.command"]({
|
|
63
|
+
}).pipe(Effect.mapError(mapClientError), Effect.map((value) => value.data)));
|
|
64
|
+
const Endpoint5_11 = (raw) => (input) => preserveEffect()(raw["session.command"]({
|
|
62
65
|
params: { sessionID: input["sessionID"] },
|
|
63
66
|
payload: {
|
|
64
67
|
id: input["id"],
|
|
@@ -71,12 +74,12 @@ const Endpoint5_11 = (raw) => (input) => raw["session.command"]({
|
|
|
71
74
|
delivery: input["delivery"],
|
|
72
75
|
resume: input["resume"],
|
|
73
76
|
},
|
|
74
|
-
}).pipe(Effect.mapError(mapClientError), Effect.map((value) => value.data));
|
|
75
|
-
const Endpoint5_12 = (raw) => (input) => raw["session.skill"]({
|
|
77
|
+
}).pipe(Effect.mapError(mapClientError), Effect.map((value) => value.data)));
|
|
78
|
+
const Endpoint5_12 = (raw) => (input) => preserveEffect()(raw["session.skill"]({
|
|
76
79
|
params: { sessionID: input["sessionID"] },
|
|
77
80
|
payload: { id: input["id"], skill: input["skill"], resume: input["resume"] },
|
|
78
|
-
}).pipe(Effect.mapError(mapClientError));
|
|
79
|
-
const Endpoint5_13 = (raw) => (input) => raw["session.synthetic"]({
|
|
81
|
+
}).pipe(Effect.mapError(mapClientError)));
|
|
82
|
+
const Endpoint5_13 = (raw) => (input) => preserveEffect()(raw["session.synthetic"]({
|
|
80
83
|
params: { sessionID: input["sessionID"] },
|
|
81
84
|
payload: {
|
|
82
85
|
id: input["id"],
|
|
@@ -86,35 +89,35 @@ const Endpoint5_13 = (raw) => (input) => raw["session.synthetic"]({
|
|
|
86
89
|
delivery: input["delivery"],
|
|
87
90
|
resume: input["resume"],
|
|
88
91
|
},
|
|
89
|
-
}).pipe(Effect.mapError(mapClientError), Effect.map((value) => value.data));
|
|
90
|
-
const Endpoint5_14 = (raw) => (input) => raw["session.shell"]({
|
|
92
|
+
}).pipe(Effect.mapError(mapClientError), Effect.map((value) => value.data)));
|
|
93
|
+
const Endpoint5_14 = (raw) => (input) => preserveEffect()(raw["session.shell"]({
|
|
91
94
|
params: { sessionID: input["sessionID"] },
|
|
92
95
|
payload: { id: input["id"], command: input["command"] },
|
|
93
|
-
}).pipe(Effect.mapError(mapClientError));
|
|
94
|
-
const Endpoint5_15 = (raw) => (input) => raw["session.compact"]({ params: { sessionID: input["sessionID"] }, payload: { id: input["id"] } }).pipe(Effect.mapError(mapClientError), Effect.map((value) => value.data));
|
|
95
|
-
const Endpoint5_16 = (raw) => (input) => raw["session.wait"]({ params: { sessionID: input["sessionID"] } }).pipe(Effect.mapError(mapClientError));
|
|
96
|
-
const Endpoint5_17 = (raw) => (input) => raw["session.revert.stage"]({
|
|
96
|
+
}).pipe(Effect.mapError(mapClientError)));
|
|
97
|
+
const Endpoint5_15 = (raw) => (input) => preserveEffect()(raw["session.compact"]({ params: { sessionID: input["sessionID"] }, payload: { id: input["id"] } }).pipe(Effect.mapError(mapClientError), Effect.map((value) => value.data)));
|
|
98
|
+
const Endpoint5_16 = (raw) => (input) => preserveEffect()(raw["session.wait"]({ params: { sessionID: input["sessionID"] } }).pipe(Effect.mapError(mapClientError)));
|
|
99
|
+
const Endpoint5_17 = (raw) => (input) => preserveEffect()(raw["session.revert.stage"]({
|
|
97
100
|
params: { sessionID: input["sessionID"] },
|
|
98
101
|
payload: { messageID: input["messageID"], files: input["files"] },
|
|
99
|
-
}).pipe(Effect.mapError(mapClientError), Effect.map((value) => value.data));
|
|
100
|
-
const Endpoint5_18 = (raw) => (input) => raw["session.revert.clear"]({ params: { sessionID: input["sessionID"] } }).pipe(Effect.mapError(mapClientError));
|
|
101
|
-
const Endpoint5_19 = (raw) => (input) => raw["session.revert.commit"]({ params: { sessionID: input["sessionID"] } }).pipe(Effect.mapError(mapClientError));
|
|
102
|
-
const Endpoint5_20 = (raw) => (input) => raw["session.context"]({ params: { sessionID: input["sessionID"] } }).pipe(Effect.mapError(mapClientError), Effect.map((value) => value.data));
|
|
103
|
-
const Endpoint5_21 = (raw) => (input) => raw["session.pending.list"]({ params: { sessionID: input["sessionID"] } }).pipe(Effect.mapError(mapClientError), Effect.map((value) => value.data));
|
|
104
|
-
const Endpoint5_22 = (raw) => (input) => raw["session.instructions.entry.list"]({ params: { sessionID: input["sessionID"] } }).pipe(Effect.mapError(mapClientError), Effect.map((value) => value.data));
|
|
105
|
-
const Endpoint5_23 = (raw) => (input) => raw["session.instructions.entry.put"]({
|
|
102
|
+
}).pipe(Effect.mapError(mapClientError), Effect.map((value) => value.data)));
|
|
103
|
+
const Endpoint5_18 = (raw) => (input) => preserveEffect()(raw["session.revert.clear"]({ params: { sessionID: input["sessionID"] } }).pipe(Effect.mapError(mapClientError)));
|
|
104
|
+
const Endpoint5_19 = (raw) => (input) => preserveEffect()(raw["session.revert.commit"]({ params: { sessionID: input["sessionID"] } }).pipe(Effect.mapError(mapClientError)));
|
|
105
|
+
const Endpoint5_20 = (raw) => (input) => preserveEffect()(raw["session.context"]({ params: { sessionID: input["sessionID"] } }).pipe(Effect.mapError(mapClientError), Effect.map((value) => value.data)));
|
|
106
|
+
const Endpoint5_21 = (raw) => (input) => preserveEffect()(raw["session.pending.list"]({ params: { sessionID: input["sessionID"] } }).pipe(Effect.mapError(mapClientError), Effect.map((value) => value.data)));
|
|
107
|
+
const Endpoint5_22 = (raw) => (input) => preserveEffect()(raw["session.instructions.entry.list"]({ params: { sessionID: input["sessionID"] } }).pipe(Effect.mapError(mapClientError), Effect.map((value) => value.data)));
|
|
108
|
+
const Endpoint5_23 = (raw) => (input) => preserveEffect()(raw["session.instructions.entry.put"]({
|
|
106
109
|
params: { sessionID: input["sessionID"], key: input["key"] },
|
|
107
110
|
payload: { value: input["value"] },
|
|
108
|
-
}).pipe(Effect.mapError(mapClientError));
|
|
109
|
-
const Endpoint5_24 = (raw) => (input) => raw["session.instructions.entry.remove"]({ params: { sessionID: input["sessionID"], key: input["key"] } }).pipe(Effect.mapError(mapClientError));
|
|
110
|
-
const Endpoint5_25 = (raw) => (input) => raw["session.generate"]({ params: { sessionID: input["sessionID"] }, payload: { prompt: input["prompt"] } }).pipe(Effect.mapError(mapClientError), Effect.map((value) => value.data));
|
|
111
|
-
const Endpoint5_26 = (raw) => (input) => Stream.unwrap(raw["session.log"]({
|
|
111
|
+
}).pipe(Effect.mapError(mapClientError)));
|
|
112
|
+
const Endpoint5_24 = (raw) => (input) => preserveEffect()(raw["session.instructions.entry.remove"]({ params: { sessionID: input["sessionID"], key: input["key"] } }).pipe(Effect.mapError(mapClientError)));
|
|
113
|
+
const Endpoint5_25 = (raw) => (input) => preserveEffect()(raw["session.generate"]({ params: { sessionID: input["sessionID"] }, payload: { prompt: input["prompt"] } }).pipe(Effect.mapError(mapClientError), Effect.map((value) => value.data)));
|
|
114
|
+
const Endpoint5_26 = (raw) => (input) => preserveStream()(Stream.unwrap(raw["session.log"]({
|
|
112
115
|
params: { sessionID: input["sessionID"] },
|
|
113
116
|
query: { after: input["after"], follow: input["follow"] },
|
|
114
|
-
}).pipe(Effect.mapError(mapClientError), Effect.map((stream) => stream.pipe(Stream.mapError(mapClientError)))));
|
|
115
|
-
const Endpoint5_27 = (raw) => (input) => raw["session.interrupt"]({ params: { sessionID: input["sessionID"] } }).pipe(Effect.mapError(mapClientError));
|
|
116
|
-
const Endpoint5_28 = (raw) => (input) => raw["session.background"]({ params: { sessionID: input["sessionID"] } }).pipe(Effect.mapError(mapClientError));
|
|
117
|
-
const Endpoint5_29 = (raw) => (input) => raw["session.message"]({ params: { sessionID: input["sessionID"], messageID: input["messageID"] } }).pipe(Effect.mapError(mapClientError), Effect.map((value) => value.data));
|
|
117
|
+
}).pipe(Effect.mapError(mapClientError), Effect.map((stream) => stream.pipe(Stream.mapError(mapClientError))))));
|
|
118
|
+
const Endpoint5_27 = (raw) => (input) => preserveEffect()(raw["session.interrupt"]({ params: { sessionID: input["sessionID"] } }).pipe(Effect.mapError(mapClientError)));
|
|
119
|
+
const Endpoint5_28 = (raw) => (input) => preserveEffect()(raw["session.background"]({ params: { sessionID: input["sessionID"] } }).pipe(Effect.mapError(mapClientError)));
|
|
120
|
+
const Endpoint5_29 = (raw) => (input) => preserveEffect()(raw["session.message"]({ params: { sessionID: input["sessionID"], messageID: input["messageID"] } }).pipe(Effect.mapError(mapClientError), Effect.map((value) => value.data)));
|
|
118
121
|
const adaptGroup5 = (raw) => ({
|
|
119
122
|
list: Endpoint5_0(raw),
|
|
120
123
|
create: Endpoint5_1(raw),
|
|
@@ -143,64 +146,64 @@ const adaptGroup5 = (raw) => ({
|
|
|
143
146
|
background: Endpoint5_28(raw),
|
|
144
147
|
message: Endpoint5_29(raw),
|
|
145
148
|
});
|
|
146
|
-
const Endpoint6_0 = (raw) => (input) => raw["session.messages"]({
|
|
149
|
+
const Endpoint6_0 = (raw) => (input) => preserveEffect()(raw["session.messages"]({
|
|
147
150
|
params: { sessionID: input["sessionID"] },
|
|
148
151
|
query: { limit: input["limit"], order: input["order"], cursor: input["cursor"] },
|
|
149
|
-
}).pipe(Effect.mapError(mapClientError));
|
|
152
|
+
}).pipe(Effect.mapError(mapClientError)));
|
|
150
153
|
const adaptGroup6 = (raw) => ({ list: Endpoint6_0(raw) });
|
|
151
|
-
const Endpoint7_0 = (raw) => (input) => raw["model.list"]({ query: { location: input?.["location"] } }).pipe(Effect.mapError(mapClientError));
|
|
152
|
-
const Endpoint7_1 = (raw) => (input) => raw["model.default"]({ query: { location: input?.["location"] } }).pipe(Effect.mapError(mapClientError));
|
|
154
|
+
const Endpoint7_0 = (raw) => (input) => preserveEffect()(raw["model.list"]({ query: { location: input?.["location"] } }).pipe(Effect.mapError(mapClientError)));
|
|
155
|
+
const Endpoint7_1 = (raw) => (input) => preserveEffect()(raw["model.default"]({ query: { location: input?.["location"] } }).pipe(Effect.mapError(mapClientError)));
|
|
153
156
|
const adaptGroup7 = (raw) => ({ list: Endpoint7_0(raw), default: Endpoint7_1(raw) });
|
|
154
|
-
const Endpoint8_0 = (raw) => (input) => raw["generate.text"]({
|
|
157
|
+
const Endpoint8_0 = (raw) => (input) => preserveEffect()(raw["generate.text"]({
|
|
155
158
|
query: { location: input["location"] },
|
|
156
159
|
payload: { prompt: input["prompt"], model: input["model"] },
|
|
157
|
-
}).pipe(Effect.mapError(mapClientError), Effect.map((value) => value.data));
|
|
160
|
+
}).pipe(Effect.mapError(mapClientError), Effect.map((value) => value.data)));
|
|
158
161
|
const adaptGroup8 = (raw) => ({ text: Endpoint8_0(raw) });
|
|
159
|
-
const Endpoint9_0 = (raw) => (input) => raw["provider.list"]({ query: { location: input?.["location"] } }).pipe(Effect.mapError(mapClientError));
|
|
160
|
-
const Endpoint9_1 = (raw) => (input) => raw["provider.get"]({ params: { providerID: input["providerID"] }, query: { location: input["location"] } }).pipe(Effect.mapError(mapClientError));
|
|
162
|
+
const Endpoint9_0 = (raw) => (input) => preserveEffect()(raw["provider.list"]({ query: { location: input?.["location"] } }).pipe(Effect.mapError(mapClientError)));
|
|
163
|
+
const Endpoint9_1 = (raw) => (input) => preserveEffect()(raw["provider.get"]({ params: { providerID: input["providerID"] }, query: { location: input["location"] } }).pipe(Effect.mapError(mapClientError)));
|
|
161
164
|
const adaptGroup9 = (raw) => ({ list: Endpoint9_0(raw), get: Endpoint9_1(raw) });
|
|
162
|
-
const Endpoint10_0 = (raw) => (input) => raw["integration.list"]({ query: { location: input?.["location"] } }).pipe(Effect.mapError(mapClientError));
|
|
163
|
-
const Endpoint10_1 = (raw) => (input) => raw["integration.get"]({
|
|
165
|
+
const Endpoint10_0 = (raw) => (input) => preserveEffect()(raw["integration.list"]({ query: { location: input?.["location"] } }).pipe(Effect.mapError(mapClientError)));
|
|
166
|
+
const Endpoint10_1 = (raw) => (input) => preserveEffect()(raw["integration.get"]({
|
|
164
167
|
params: { integrationID: input["integrationID"] },
|
|
165
168
|
query: { location: input["location"] },
|
|
166
|
-
}).pipe(Effect.mapError(mapClientError));
|
|
167
|
-
const Endpoint10_2 = (raw) => (input) => raw["integration.wellknown.add"]({ query: { location: input["location"] }, payload: { url: input["url"] } }).pipe(Effect.mapError(mapClientError));
|
|
168
|
-
const Endpoint10_3 = (raw) => (input) => raw["integration.connect.key"]({
|
|
169
|
+
}).pipe(Effect.mapError(mapClientError)));
|
|
170
|
+
const Endpoint10_2 = (raw) => (input) => preserveEffect()(raw["integration.wellknown.add"]({ query: { location: input["location"] }, payload: { url: input["url"] } }).pipe(Effect.mapError(mapClientError)));
|
|
171
|
+
const Endpoint10_3 = (raw) => (input) => preserveEffect()(raw["integration.connect.key"]({
|
|
169
172
|
params: { integrationID: input["integrationID"] },
|
|
170
173
|
query: { location: input["location"] },
|
|
171
174
|
payload: { key: input["key"], label: input["label"] },
|
|
172
|
-
}).pipe(Effect.mapError(mapClientError));
|
|
173
|
-
const Endpoint10_4 = (raw) => (input) => raw["integration.oauth.connect"]({
|
|
175
|
+
}).pipe(Effect.mapError(mapClientError)));
|
|
176
|
+
const Endpoint10_4 = (raw) => (input) => preserveEffect()(raw["integration.oauth.connect"]({
|
|
174
177
|
params: { integrationID: input["integrationID"] },
|
|
175
178
|
query: { location: input["location"] },
|
|
176
179
|
payload: { methodID: input["methodID"], inputs: input["inputs"], label: input["label"] },
|
|
177
|
-
}).pipe(Effect.mapError(mapClientError));
|
|
178
|
-
const Endpoint10_5 = (raw) => (input) => raw["integration.oauth.status"]({
|
|
180
|
+
}).pipe(Effect.mapError(mapClientError)));
|
|
181
|
+
const Endpoint10_5 = (raw) => (input) => preserveEffect()(raw["integration.oauth.status"]({
|
|
179
182
|
params: { integrationID: input["integrationID"], attemptID: input["attemptID"] },
|
|
180
183
|
query: { location: input["location"] },
|
|
181
|
-
}).pipe(Effect.mapError(mapClientError));
|
|
182
|
-
const Endpoint10_6 = (raw) => (input) => raw["integration.oauth.complete"]({
|
|
184
|
+
}).pipe(Effect.mapError(mapClientError)));
|
|
185
|
+
const Endpoint10_6 = (raw) => (input) => preserveEffect()(raw["integration.oauth.complete"]({
|
|
183
186
|
params: { integrationID: input["integrationID"], attemptID: input["attemptID"] },
|
|
184
187
|
query: { location: input["location"] },
|
|
185
188
|
payload: { code: input["code"] },
|
|
186
|
-
}).pipe(Effect.mapError(mapClientError));
|
|
187
|
-
const Endpoint10_7 = (raw) => (input) => raw["integration.oauth.cancel"]({
|
|
189
|
+
}).pipe(Effect.mapError(mapClientError)));
|
|
190
|
+
const Endpoint10_7 = (raw) => (input) => preserveEffect()(raw["integration.oauth.cancel"]({
|
|
188
191
|
params: { integrationID: input["integrationID"], attemptID: input["attemptID"] },
|
|
189
192
|
query: { location: input["location"] },
|
|
190
|
-
}).pipe(Effect.mapError(mapClientError));
|
|
191
|
-
const Endpoint10_8 = (raw) => (input) => raw["integration.command.connect"]({
|
|
193
|
+
}).pipe(Effect.mapError(mapClientError)));
|
|
194
|
+
const Endpoint10_8 = (raw) => (input) => preserveEffect()(raw["integration.command.connect"]({
|
|
192
195
|
params: { integrationID: input["integrationID"] },
|
|
193
196
|
query: { location: input["location"] },
|
|
194
197
|
payload: { methodID: input["methodID"], label: input["label"] },
|
|
195
|
-
}).pipe(Effect.mapError(mapClientError));
|
|
196
|
-
const Endpoint10_9 = (raw) => (input) => raw["integration.command.status"]({
|
|
198
|
+
}).pipe(Effect.mapError(mapClientError)));
|
|
199
|
+
const Endpoint10_9 = (raw) => (input) => preserveEffect()(raw["integration.command.status"]({
|
|
197
200
|
params: { integrationID: input["integrationID"], attemptID: input["attemptID"] },
|
|
198
201
|
query: { location: input["location"] },
|
|
199
|
-
}).pipe(Effect.mapError(mapClientError));
|
|
200
|
-
const Endpoint10_10 = (raw) => (input) => raw["integration.command.cancel"]({
|
|
202
|
+
}).pipe(Effect.mapError(mapClientError)));
|
|
203
|
+
const Endpoint10_10 = (raw) => (input) => preserveEffect()(raw["integration.command.cancel"]({
|
|
201
204
|
params: { integrationID: input["integrationID"], attemptID: input["attemptID"] },
|
|
202
205
|
query: { location: input["location"] },
|
|
203
|
-
}).pipe(Effect.mapError(mapClientError));
|
|
206
|
+
}).pipe(Effect.mapError(mapClientError)));
|
|
204
207
|
const adaptGroup10 = (raw) => ({
|
|
205
208
|
list: Endpoint10_0(raw),
|
|
206
209
|
get: Endpoint10_1(raw),
|
|
@@ -214,16 +217,16 @@ const adaptGroup10 = (raw) => ({
|
|
|
214
217
|
},
|
|
215
218
|
command: { connect: Endpoint10_8(raw), status: Endpoint10_9(raw), cancel: Endpoint10_10(raw) },
|
|
216
219
|
});
|
|
217
|
-
const Endpoint11_0 = (raw) => (input) => raw["mcp.list"]({ query: { location: input?.["location"] } }).pipe(Effect.mapError(mapClientError));
|
|
218
|
-
const Endpoint11_1 = (raw) => (input) => raw["mcp.add"]({
|
|
220
|
+
const Endpoint11_0 = (raw) => (input) => preserveEffect()(raw["mcp.list"]({ query: { location: input?.["location"] } }).pipe(Effect.mapError(mapClientError)));
|
|
221
|
+
const Endpoint11_1 = (raw) => (input) => preserveEffect()(raw["mcp.add"]({
|
|
219
222
|
params: { server: input["server"] },
|
|
220
223
|
query: { location: input["location"] },
|
|
221
224
|
payload: { config: input["config"] },
|
|
222
|
-
}).pipe(Effect.mapError(mapClientError));
|
|
223
|
-
const Endpoint11_2 = (raw) => (input) => raw["mcp.remove"]({ params: { server: input["server"] }, query: { location: input["location"] } }).pipe(Effect.mapError(mapClientError));
|
|
224
|
-
const Endpoint11_3 = (raw) => (input) => raw["mcp.connect"]({ params: { server: input["server"] }, query: { location: input["location"] } }).pipe(Effect.mapError(mapClientError));
|
|
225
|
-
const Endpoint11_4 = (raw) => (input) => raw["mcp.disconnect"]({ params: { server: input["server"] }, query: { location: input["location"] } }).pipe(Effect.mapError(mapClientError));
|
|
226
|
-
const Endpoint11_5 = (raw) => (input) => raw["mcp.resource.catalog"]({ query: { location: input?.["location"] } }).pipe(Effect.mapError(mapClientError));
|
|
225
|
+
}).pipe(Effect.mapError(mapClientError)));
|
|
226
|
+
const Endpoint11_2 = (raw) => (input) => preserveEffect()(raw["mcp.remove"]({ params: { server: input["server"] }, query: { location: input["location"] } }).pipe(Effect.mapError(mapClientError)));
|
|
227
|
+
const Endpoint11_3 = (raw) => (input) => preserveEffect()(raw["mcp.connect"]({ params: { server: input["server"] }, query: { location: input["location"] } }).pipe(Effect.mapError(mapClientError)));
|
|
228
|
+
const Endpoint11_4 = (raw) => (input) => preserveEffect()(raw["mcp.disconnect"]({ params: { server: input["server"] }, query: { location: input["location"] } }).pipe(Effect.mapError(mapClientError)));
|
|
229
|
+
const Endpoint11_5 = (raw) => (input) => preserveEffect()(raw["mcp.resource.catalog"]({ query: { location: input?.["location"] } }).pipe(Effect.mapError(mapClientError)));
|
|
227
230
|
const adaptGroup11 = (raw) => ({
|
|
228
231
|
list: Endpoint11_0(raw),
|
|
229
232
|
add: Endpoint11_1(raw),
|
|
@@ -232,40 +235,40 @@ const adaptGroup11 = (raw) => ({
|
|
|
232
235
|
disconnect: Endpoint11_4(raw),
|
|
233
236
|
resource: { catalog: Endpoint11_5(raw) },
|
|
234
237
|
});
|
|
235
|
-
const Endpoint12_0 = (raw) => (input) => raw["credential.update"]({
|
|
238
|
+
const Endpoint12_0 = (raw) => (input) => preserveEffect()(raw["credential.update"]({
|
|
236
239
|
params: { credentialID: input["credentialID"] },
|
|
237
240
|
query: { location: input["location"] },
|
|
238
241
|
payload: { label: input["label"] },
|
|
239
|
-
}).pipe(Effect.mapError(mapClientError));
|
|
240
|
-
const Endpoint12_1 = (raw) => (input) => raw["credential.remove"]({
|
|
242
|
+
}).pipe(Effect.mapError(mapClientError)));
|
|
243
|
+
const Endpoint12_1 = (raw) => (input) => preserveEffect()(raw["credential.remove"]({
|
|
241
244
|
params: { credentialID: input["credentialID"] },
|
|
242
245
|
query: { location: input["location"] },
|
|
243
|
-
}).pipe(Effect.mapError(mapClientError));
|
|
246
|
+
}).pipe(Effect.mapError(mapClientError)));
|
|
244
247
|
const adaptGroup12 = (raw) => ({ update: Endpoint12_0(raw), remove: Endpoint12_1(raw) });
|
|
245
|
-
const Endpoint13_0 = (raw) => () => raw["project.list"]({}).pipe(Effect.mapError(mapClientError));
|
|
246
|
-
const Endpoint13_1 = (raw) => (input) => raw["project.current"]({ query: { location: input?.["location"] } }).pipe(Effect.mapError(mapClientError));
|
|
247
|
-
const Endpoint13_2 = (raw) => (input) => raw["project.directories"]({
|
|
248
|
+
const Endpoint13_0 = (raw) => () => preserveEffect()(raw["project.list"]({}).pipe(Effect.mapError(mapClientError)));
|
|
249
|
+
const Endpoint13_1 = (raw) => (input) => preserveEffect()(raw["project.current"]({ query: { location: input?.["location"] } }).pipe(Effect.mapError(mapClientError)));
|
|
250
|
+
const Endpoint13_2 = (raw) => (input) => preserveEffect()(raw["project.directories"]({
|
|
248
251
|
params: { projectID: input["projectID"] },
|
|
249
252
|
query: { location: input["location"] },
|
|
250
|
-
}).pipe(Effect.mapError(mapClientError));
|
|
253
|
+
}).pipe(Effect.mapError(mapClientError)));
|
|
251
254
|
const adaptGroup13 = (raw) => ({
|
|
252
255
|
list: Endpoint13_0(raw),
|
|
253
256
|
current: Endpoint13_1(raw),
|
|
254
257
|
directories: Endpoint13_2(raw),
|
|
255
258
|
});
|
|
256
|
-
const Endpoint14_0 = (raw) => (input) => raw["form.request.list"]({ query: { location: input?.["location"] } }).pipe(Effect.mapError(mapClientError));
|
|
257
|
-
const Endpoint14_1 = (raw) => (input) => raw["session.form.list"]({ params: { sessionID: input["sessionID"] } }).pipe(Effect.mapError(mapClientError), Effect.map((value) => value.data));
|
|
258
|
-
const Endpoint14_2 = (raw) => (input) => raw["session.form.create"]({
|
|
259
|
+
const Endpoint14_0 = (raw) => (input) => preserveEffect()(raw["form.request.list"]({ query: { location: input?.["location"] } }).pipe(Effect.mapError(mapClientError)));
|
|
260
|
+
const Endpoint14_1 = (raw) => (input) => preserveEffect()(raw["session.form.list"]({ params: { sessionID: input["sessionID"] } }).pipe(Effect.mapError(mapClientError), Effect.map((value) => value.data)));
|
|
261
|
+
const Endpoint14_2 = (raw) => (input) => preserveEffect()(raw["session.form.create"]({
|
|
259
262
|
params: { sessionID: input["sessionID"] },
|
|
260
263
|
payload: { id: input["id"], title: input["title"], metadata: input["metadata"], fields: input["fields"] },
|
|
261
|
-
}).pipe(Effect.mapError(mapClientError), Effect.map((value) => value.data));
|
|
262
|
-
const Endpoint14_3 = (raw) => (input) => raw["session.form.get"]({ params: { sessionID: input["sessionID"], formID: input["formID"] } }).pipe(Effect.mapError(mapClientError), Effect.map((value) => value.data));
|
|
263
|
-
const Endpoint14_4 = (raw) => (input) => raw["session.form.state"]({ params: { sessionID: input["sessionID"], formID: input["formID"] } }).pipe(Effect.mapError(mapClientError), Effect.map((value) => value.data));
|
|
264
|
-
const Endpoint14_5 = (raw) => (input) => raw["session.form.reply"]({
|
|
264
|
+
}).pipe(Effect.mapError(mapClientError), Effect.map((value) => value.data)));
|
|
265
|
+
const Endpoint14_3 = (raw) => (input) => preserveEffect()(raw["session.form.get"]({ params: { sessionID: input["sessionID"], formID: input["formID"] } }).pipe(Effect.mapError(mapClientError), Effect.map((value) => value.data)));
|
|
266
|
+
const Endpoint14_4 = (raw) => (input) => preserveEffect()(raw["session.form.state"]({ params: { sessionID: input["sessionID"], formID: input["formID"] } }).pipe(Effect.mapError(mapClientError), Effect.map((value) => value.data)));
|
|
267
|
+
const Endpoint14_5 = (raw) => (input) => preserveEffect()(raw["session.form.reply"]({
|
|
265
268
|
params: { sessionID: input["sessionID"], formID: input["formID"] },
|
|
266
269
|
payload: { answer: input["answer"] },
|
|
267
|
-
}).pipe(Effect.mapError(mapClientError));
|
|
268
|
-
const Endpoint14_6 = (raw) => (input) => raw["session.form.cancel"]({ params: { sessionID: input["sessionID"], formID: input["formID"] } }).pipe(Effect.mapError(mapClientError));
|
|
270
|
+
}).pipe(Effect.mapError(mapClientError)));
|
|
271
|
+
const Endpoint14_6 = (raw) => (input) => preserveEffect()(raw["session.form.cancel"]({ params: { sessionID: input["sessionID"], formID: input["formID"] } }).pipe(Effect.mapError(mapClientError)));
|
|
269
272
|
const adaptGroup14 = (raw) => ({
|
|
270
273
|
request: { list: Endpoint14_0(raw) },
|
|
271
274
|
list: Endpoint14_1(raw),
|
|
@@ -275,10 +278,10 @@ const adaptGroup14 = (raw) => ({
|
|
|
275
278
|
reply: Endpoint14_5(raw),
|
|
276
279
|
cancel: Endpoint14_6(raw),
|
|
277
280
|
});
|
|
278
|
-
const Endpoint15_0 = (raw) => (input) => raw["permission.request.list"]({ query: { location: input?.["location"] } }).pipe(Effect.mapError(mapClientError));
|
|
279
|
-
const Endpoint15_1 = (raw) => (input) => raw["permission.saved.list"]({ query: { projectID: input?.["projectID"] } }).pipe(Effect.mapError(mapClientError), Effect.map((value) => value.data));
|
|
280
|
-
const Endpoint15_2 = (raw) => (input) => raw["permission.saved.remove"]({ params: { id: input["id"] } }).pipe(Effect.mapError(mapClientError));
|
|
281
|
-
const Endpoint15_3 = (raw) => (input) => raw["session.permission.create"]({
|
|
281
|
+
const Endpoint15_0 = (raw) => (input) => preserveEffect()(raw["permission.request.list"]({ query: { location: input?.["location"] } }).pipe(Effect.mapError(mapClientError)));
|
|
282
|
+
const Endpoint15_1 = (raw) => (input) => preserveEffect()(raw["permission.saved.list"]({ query: { projectID: input?.["projectID"] } }).pipe(Effect.mapError(mapClientError), Effect.map((value) => value.data)));
|
|
283
|
+
const Endpoint15_2 = (raw) => (input) => preserveEffect()(raw["permission.saved.remove"]({ params: { id: input["id"] } }).pipe(Effect.mapError(mapClientError)));
|
|
284
|
+
const Endpoint15_3 = (raw) => (input) => preserveEffect()(raw["session.permission.create"]({
|
|
282
285
|
params: { sessionID: input["sessionID"] },
|
|
283
286
|
payload: {
|
|
284
287
|
id: input["id"],
|
|
@@ -289,13 +292,13 @@ const Endpoint15_3 = (raw) => (input) => raw["session.permission.create"]({
|
|
|
289
292
|
source: input["source"],
|
|
290
293
|
agent: input["agent"],
|
|
291
294
|
},
|
|
292
|
-
}).pipe(Effect.mapError(mapClientError), Effect.map((value) => value.data));
|
|
293
|
-
const Endpoint15_4 = (raw) => (input) => raw["session.permission.list"]({ params: { sessionID: input["sessionID"] } }).pipe(Effect.mapError(mapClientError), Effect.map((value) => value.data));
|
|
294
|
-
const Endpoint15_5 = (raw) => (input) => raw["session.permission.get"]({ params: { sessionID: input["sessionID"], requestID: input["requestID"] } }).pipe(Effect.mapError(mapClientError), Effect.map((value) => value.data));
|
|
295
|
-
const Endpoint15_6 = (raw) => (input) => raw["session.permission.reply"]({
|
|
295
|
+
}).pipe(Effect.mapError(mapClientError), Effect.map((value) => value.data)));
|
|
296
|
+
const Endpoint15_4 = (raw) => (input) => preserveEffect()(raw["session.permission.list"]({ params: { sessionID: input["sessionID"] } }).pipe(Effect.mapError(mapClientError), Effect.map((value) => value.data)));
|
|
297
|
+
const Endpoint15_5 = (raw) => (input) => preserveEffect()(raw["session.permission.get"]({ params: { sessionID: input["sessionID"], requestID: input["requestID"] } }).pipe(Effect.mapError(mapClientError), Effect.map((value) => value.data)));
|
|
298
|
+
const Endpoint15_6 = (raw) => (input) => preserveEffect()(raw["session.permission.reply"]({
|
|
296
299
|
params: { sessionID: input["sessionID"], requestID: input["requestID"] },
|
|
297
300
|
payload: { reply: input["reply"], message: input["message"] },
|
|
298
|
-
}).pipe(Effect.mapError(mapClientError));
|
|
301
|
+
}).pipe(Effect.mapError(mapClientError)));
|
|
299
302
|
const adaptGroup15 = (raw) => ({
|
|
300
303
|
request: { list: Endpoint15_0(raw) },
|
|
301
304
|
saved: { list: Endpoint15_1(raw), remove: Endpoint15_2(raw) },
|
|
@@ -304,19 +307,19 @@ const adaptGroup15 = (raw) => ({
|
|
|
304
307
|
get: Endpoint15_5(raw),
|
|
305
308
|
reply: Endpoint15_6(raw),
|
|
306
309
|
});
|
|
307
|
-
const Endpoint16_0 = (raw) => (input) => raw["fs.list"]({ query: { location: input?.["location"], path: input?.["path"] } }).pipe(Effect.mapError(mapClientError));
|
|
308
|
-
const Endpoint16_1 = (raw) => (input) => raw["fs.find"]({
|
|
310
|
+
const Endpoint16_0 = (raw) => (input) => preserveEffect()(raw["fs.list"]({ query: { location: input?.["location"], path: input?.["path"] } }).pipe(Effect.mapError(mapClientError)));
|
|
311
|
+
const Endpoint16_1 = (raw) => (input) => preserveEffect()(raw["fs.find"]({
|
|
309
312
|
query: { location: input["location"], query: input["query"], type: input["type"], limit: input["limit"] },
|
|
310
|
-
}).pipe(Effect.mapError(mapClientError));
|
|
313
|
+
}).pipe(Effect.mapError(mapClientError)));
|
|
311
314
|
const adaptGroup16 = (raw) => ({ list: Endpoint16_0(raw), find: Endpoint16_1(raw) });
|
|
312
|
-
const Endpoint17_0 = (raw) => (input) => raw["command.list"]({ query: { location: input?.["location"] } }).pipe(Effect.mapError(mapClientError));
|
|
315
|
+
const Endpoint17_0 = (raw) => (input) => preserveEffect()(raw["command.list"]({ query: { location: input?.["location"] } }).pipe(Effect.mapError(mapClientError)));
|
|
313
316
|
const adaptGroup17 = (raw) => ({ list: Endpoint17_0(raw) });
|
|
314
|
-
const Endpoint18_0 = (raw) => (input) => raw["skill.list"]({ query: { location: input?.["location"] } }).pipe(Effect.mapError(mapClientError));
|
|
317
|
+
const Endpoint18_0 = (raw) => (input) => preserveEffect()(raw["skill.list"]({ query: { location: input?.["location"] } }).pipe(Effect.mapError(mapClientError)));
|
|
315
318
|
const adaptGroup18 = (raw) => ({ list: Endpoint18_0(raw) });
|
|
316
|
-
const Endpoint19_0 = (raw) => () => Stream.unwrap(raw["event.subscribe"]({}).pipe(Effect.mapError(mapClientError), Effect.map((stream) => stream.pipe(Stream.mapError(mapClientError)))));
|
|
319
|
+
const Endpoint19_0 = (raw) => () => preserveStream()(Stream.unwrap(raw["event.subscribe"]({}).pipe(Effect.mapError(mapClientError), Effect.map((stream) => stream.pipe(Stream.mapError(mapClientError))))));
|
|
317
320
|
const adaptGroup19 = (raw) => ({ subscribe: Endpoint19_0(raw) });
|
|
318
|
-
const Endpoint20_0 = (raw) => (input) => raw["pty.list"]({ query: { location: input?.["location"] } }).pipe(Effect.mapError(mapClientError));
|
|
319
|
-
const Endpoint20_1 = (raw) => (input) => raw["pty.create"]({
|
|
321
|
+
const Endpoint20_0 = (raw) => (input) => preserveEffect()(raw["pty.list"]({ query: { location: input?.["location"] } }).pipe(Effect.mapError(mapClientError)));
|
|
322
|
+
const Endpoint20_1 = (raw) => (input) => preserveEffect()(raw["pty.create"]({
|
|
320
323
|
query: { location: input?.["location"] },
|
|
321
324
|
payload: {
|
|
322
325
|
command: input?.["command"],
|
|
@@ -325,14 +328,14 @@ const Endpoint20_1 = (raw) => (input) => raw["pty.create"]({
|
|
|
325
328
|
title: input?.["title"],
|
|
326
329
|
env: input?.["env"],
|
|
327
330
|
},
|
|
328
|
-
}).pipe(Effect.mapError(mapClientError));
|
|
329
|
-
const Endpoint20_2 = (raw) => (input) => raw["pty.get"]({ params: { ptyID: input["ptyID"] }, query: { location: input["location"] } }).pipe(Effect.mapError(mapClientError));
|
|
330
|
-
const Endpoint20_3 = (raw) => (input) => raw["pty.update"]({
|
|
331
|
+
}).pipe(Effect.mapError(mapClientError)));
|
|
332
|
+
const Endpoint20_2 = (raw) => (input) => preserveEffect()(raw["pty.get"]({ params: { ptyID: input["ptyID"] }, query: { location: input["location"] } }).pipe(Effect.mapError(mapClientError)));
|
|
333
|
+
const Endpoint20_3 = (raw) => (input) => preserveEffect()(raw["pty.update"]({
|
|
331
334
|
params: { ptyID: input["ptyID"] },
|
|
332
335
|
query: { location: input["location"] },
|
|
333
336
|
payload: { title: input["title"], size: input["size"] },
|
|
334
|
-
}).pipe(Effect.mapError(mapClientError));
|
|
335
|
-
const Endpoint20_4 = (raw) => (input) => raw["pty.remove"]({ params: { ptyID: input["ptyID"] }, query: { location: input["location"] } }).pipe(Effect.mapError(mapClientError));
|
|
337
|
+
}).pipe(Effect.mapError(mapClientError)));
|
|
338
|
+
const Endpoint20_4 = (raw) => (input) => preserveEffect()(raw["pty.remove"]({ params: { ptyID: input["ptyID"] }, query: { location: input["location"] } }).pipe(Effect.mapError(mapClientError)));
|
|
336
339
|
const adaptGroup20 = (raw) => ({
|
|
337
340
|
list: Endpoint20_0(raw),
|
|
338
341
|
create: Endpoint20_1(raw),
|
|
@@ -340,22 +343,22 @@ const adaptGroup20 = (raw) => ({
|
|
|
340
343
|
update: Endpoint20_3(raw),
|
|
341
344
|
remove: Endpoint20_4(raw),
|
|
342
345
|
});
|
|
343
|
-
const Endpoint21_0 = (raw) => (input) => raw["shell.list"]({ query: { location: input?.["location"] } }).pipe(Effect.mapError(mapClientError));
|
|
344
|
-
const Endpoint21_1 = (raw) => (input) => raw["shell.create"]({
|
|
346
|
+
const Endpoint21_0 = (raw) => (input) => preserveEffect()(raw["shell.list"]({ query: { location: input?.["location"] } }).pipe(Effect.mapError(mapClientError)));
|
|
347
|
+
const Endpoint21_1 = (raw) => (input) => preserveEffect()(raw["shell.create"]({
|
|
345
348
|
query: { location: input["location"] },
|
|
346
349
|
payload: { command: input["command"], cwd: input["cwd"], timeout: input["timeout"], metadata: input["metadata"] },
|
|
347
|
-
}).pipe(Effect.mapError(mapClientError));
|
|
348
|
-
const Endpoint21_2 = (raw) => (input) => raw["shell.get"]({ params: { id: input["id"] }, query: { location: input["location"] } }).pipe(Effect.mapError(mapClientError));
|
|
349
|
-
const Endpoint21_3 = (raw) => (input) => raw["shell.timeout"]({
|
|
350
|
+
}).pipe(Effect.mapError(mapClientError)));
|
|
351
|
+
const Endpoint21_2 = (raw) => (input) => preserveEffect()(raw["shell.get"]({ params: { id: input["id"] }, query: { location: input["location"] } }).pipe(Effect.mapError(mapClientError)));
|
|
352
|
+
const Endpoint21_3 = (raw) => (input) => preserveEffect()(raw["shell.timeout"]({
|
|
350
353
|
params: { id: input["id"] },
|
|
351
354
|
query: { location: input["location"] },
|
|
352
355
|
payload: { timeout: input["timeout"] },
|
|
353
|
-
}).pipe(Effect.mapError(mapClientError));
|
|
354
|
-
const Endpoint21_4 = (raw) => (input) => raw["shell.output"]({
|
|
356
|
+
}).pipe(Effect.mapError(mapClientError)));
|
|
357
|
+
const Endpoint21_4 = (raw) => (input) => preserveEffect()(raw["shell.output"]({
|
|
355
358
|
params: { id: input["id"] },
|
|
356
359
|
query: { location: input["location"], cursor: input["cursor"], limit: input["limit"] },
|
|
357
|
-
}).pipe(Effect.mapError(mapClientError));
|
|
358
|
-
const Endpoint21_5 = (raw) => (input) => raw["shell.remove"]({ params: { id: input["id"] }, query: { location: input["location"] } }).pipe(Effect.mapError(mapClientError));
|
|
360
|
+
}).pipe(Effect.mapError(mapClientError)));
|
|
361
|
+
const Endpoint21_5 = (raw) => (input) => preserveEffect()(raw["shell.remove"]({ params: { id: input["id"] }, query: { location: input["location"] } }).pipe(Effect.mapError(mapClientError)));
|
|
359
362
|
const adaptGroup21 = (raw) => ({
|
|
360
363
|
list: Endpoint21_0(raw),
|
|
361
364
|
create: Endpoint21_1(raw),
|
|
@@ -364,53 +367,53 @@ const adaptGroup21 = (raw) => ({
|
|
|
364
367
|
output: Endpoint21_4(raw),
|
|
365
368
|
remove: Endpoint21_5(raw),
|
|
366
369
|
});
|
|
367
|
-
const Endpoint22_0 = (raw) => (input) => raw["question.request.list"]({ query: { location: input?.["location"] } }).pipe(Effect.mapError(mapClientError));
|
|
368
|
-
const Endpoint22_1 = (raw) => (input) => raw["session.question.list"]({ params: { sessionID: input["sessionID"] } }).pipe(Effect.mapError(mapClientError), Effect.map((value) => value.data));
|
|
369
|
-
const Endpoint22_2 = (raw) => (input) => raw["session.question.reply"]({
|
|
370
|
+
const Endpoint22_0 = (raw) => (input) => preserveEffect()(raw["question.request.list"]({ query: { location: input?.["location"] } }).pipe(Effect.mapError(mapClientError)));
|
|
371
|
+
const Endpoint22_1 = (raw) => (input) => preserveEffect()(raw["session.question.list"]({ params: { sessionID: input["sessionID"] } }).pipe(Effect.mapError(mapClientError), Effect.map((value) => value.data)));
|
|
372
|
+
const Endpoint22_2 = (raw) => (input) => preserveEffect()(raw["session.question.reply"]({
|
|
370
373
|
params: { sessionID: input["sessionID"], requestID: input["requestID"] },
|
|
371
374
|
payload: { answers: input["answers"] },
|
|
372
|
-
}).pipe(Effect.mapError(mapClientError));
|
|
373
|
-
const Endpoint22_3 = (raw) => (input) => raw["session.question.reject"]({ params: { sessionID: input["sessionID"], requestID: input["requestID"] } }).pipe(Effect.mapError(mapClientError));
|
|
375
|
+
}).pipe(Effect.mapError(mapClientError)));
|
|
376
|
+
const Endpoint22_3 = (raw) => (input) => preserveEffect()(raw["session.question.reject"]({ params: { sessionID: input["sessionID"], requestID: input["requestID"] } }).pipe(Effect.mapError(mapClientError)));
|
|
374
377
|
const adaptGroup22 = (raw) => ({
|
|
375
378
|
request: { list: Endpoint22_0(raw) },
|
|
376
379
|
list: Endpoint22_1(raw),
|
|
377
380
|
reply: Endpoint22_2(raw),
|
|
378
381
|
reject: Endpoint22_3(raw),
|
|
379
382
|
});
|
|
380
|
-
const Endpoint23_0 = (raw) => (input) => raw["reference.list"]({ query: { location: input?.["location"] } }).pipe(Effect.mapError(mapClientError));
|
|
383
|
+
const Endpoint23_0 = (raw) => (input) => preserveEffect()(raw["reference.list"]({ query: { location: input?.["location"] } }).pipe(Effect.mapError(mapClientError)));
|
|
381
384
|
const adaptGroup23 = (raw) => ({ list: Endpoint23_0(raw) });
|
|
382
|
-
const Endpoint24_0 = (raw) => (input) => raw["projectCopy.create"]({
|
|
385
|
+
const Endpoint24_0 = (raw) => (input) => preserveEffect()(raw["projectCopy.create"]({
|
|
383
386
|
params: { projectID: input["projectID"] },
|
|
384
387
|
query: { location: input["location"] },
|
|
385
388
|
payload: { strategy: input["strategy"], directory: input["directory"], name: input["name"] },
|
|
386
|
-
}).pipe(Effect.mapError(mapClientError));
|
|
387
|
-
const Endpoint24_1 = (raw) => (input) => raw["projectCopy.remove"]({
|
|
389
|
+
}).pipe(Effect.mapError(mapClientError)));
|
|
390
|
+
const Endpoint24_1 = (raw) => (input) => preserveEffect()(raw["projectCopy.remove"]({
|
|
388
391
|
params: { projectID: input["projectID"] },
|
|
389
392
|
query: { location: input["location"] },
|
|
390
393
|
payload: { directory: input["directory"], force: input["force"] },
|
|
391
|
-
}).pipe(Effect.mapError(mapClientError));
|
|
392
|
-
const Endpoint24_2 = (raw) => (input) => raw["projectCopy.refresh"]({
|
|
394
|
+
}).pipe(Effect.mapError(mapClientError)));
|
|
395
|
+
const Endpoint24_2 = (raw) => (input) => preserveEffect()(raw["projectCopy.refresh"]({
|
|
393
396
|
params: { projectID: input["projectID"] },
|
|
394
397
|
query: { location: input["location"] },
|
|
395
|
-
}).pipe(Effect.mapError(mapClientError));
|
|
398
|
+
}).pipe(Effect.mapError(mapClientError)));
|
|
396
399
|
const adaptGroup24 = (raw) => ({
|
|
397
400
|
create: Endpoint24_0(raw),
|
|
398
401
|
remove: Endpoint24_1(raw),
|
|
399
402
|
refresh: Endpoint24_2(raw),
|
|
400
403
|
});
|
|
401
|
-
const Endpoint25_0 = (raw) => (input) => raw["vcs.status"]({ query: { location: input?.["location"] } }).pipe(Effect.mapError(mapClientError));
|
|
402
|
-
const Endpoint25_1 = (raw) => (input) => raw["vcs.diff"]({ query: { location: input["location"], mode: input["mode"], context: input["context"] } }).pipe(Effect.mapError(mapClientError));
|
|
404
|
+
const Endpoint25_0 = (raw) => (input) => preserveEffect()(raw["vcs.status"]({ query: { location: input?.["location"] } }).pipe(Effect.mapError(mapClientError)));
|
|
405
|
+
const Endpoint25_1 = (raw) => (input) => preserveEffect()(raw["vcs.diff"]({ query: { location: input["location"], mode: input["mode"], context: input["context"] } }).pipe(Effect.mapError(mapClientError)));
|
|
403
406
|
const adaptGroup25 = (raw) => ({ status: Endpoint25_0(raw), diff: Endpoint25_1(raw) });
|
|
404
|
-
const Endpoint26_0 = (raw) => () => raw["debug.location"]({}).pipe(Effect.mapError(mapClientError));
|
|
405
|
-
const Endpoint26_1 = (raw) => (input) => raw["debug.location.evict"]({ query: { location: input?.["location"] } }).pipe(Effect.mapError(mapClientError));
|
|
407
|
+
const Endpoint26_0 = (raw) => () => preserveEffect()(raw["debug.location"]({}).pipe(Effect.mapError(mapClientError)));
|
|
408
|
+
const Endpoint26_1 = (raw) => (input) => preserveEffect()(raw["debug.location.evict"]({ query: { location: input?.["location"] } }).pipe(Effect.mapError(mapClientError)));
|
|
406
409
|
const adaptGroup26 = (raw) => ({
|
|
407
410
|
location: { list: Endpoint26_0(raw), evict: Endpoint26_1(raw) },
|
|
408
411
|
});
|
|
409
|
-
const Endpoint27_0 = (raw) => (input) => raw["websearch.providers"]({ query: { location: input?.["location"] } }).pipe(Effect.mapError(mapClientError));
|
|
410
|
-
const Endpoint27_1 = (raw) => (input) => raw["websearch.query"]({
|
|
412
|
+
const Endpoint27_0 = (raw) => (input) => preserveEffect()(raw["websearch.providers"]({ query: { location: input?.["location"] } }).pipe(Effect.mapError(mapClientError)));
|
|
413
|
+
const Endpoint27_1 = (raw) => (input) => preserveEffect()(raw["websearch.query"]({
|
|
411
414
|
query: { location: input["location"] },
|
|
412
415
|
payload: { query: input["query"], providerID: input["providerID"] },
|
|
413
|
-
}).pipe(Effect.mapError(mapClientError));
|
|
416
|
+
}).pipe(Effect.mapError(mapClientError)));
|
|
414
417
|
const adaptGroup27 = (raw) => ({
|
|
415
418
|
providers: Endpoint27_0(raw),
|
|
416
419
|
query: Endpoint27_1(raw),
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { HealthStopInput, ServerGetOutput, LocationGetInput, LocationGetOutput, AgentListInput, AgentListOutput, PluginListInput, PluginListOutput, SessionListInput, SessionCreateInput, SessionGetInput, SessionRemoveInput, SessionForkInput, SessionSwitchAgentInput, SessionSwitchModelInput, SessionRenameInput, SessionMoveInput, SessionPromptInput, SessionCommandInput, SessionSkillInput, SessionSyntheticInput, SessionShellInput, SessionCompactInput, SessionWaitInput, SessionRevertStageInput, SessionRevertClearInput, SessionRevertCommitInput, SessionContextInput, SessionPendingListInput, SessionInstructionsEntryListInput, SessionInstructionsEntryPutInput, SessionInstructionsEntryRemoveInput, SessionGenerateInput, SessionLogInput, SessionLogOutput, SessionInterruptInput, SessionBackgroundInput, SessionMessageInput, MessageListInput, ModelListInput, ModelListOutput, ModelDefaultInput, ModelDefaultOutput, GenerateTextInput, ProviderListInput, ProviderListOutput, ProviderGetInput, ProviderGetOutput, IntegrationListInput, IntegrationListOutput, IntegrationGetInput, IntegrationGetOutput, IntegrationWellknownAddInput, IntegrationConnectKeyInput, IntegrationOauthConnectInput, IntegrationOauthConnectOutput, IntegrationOauthStatusInput, IntegrationOauthStatusOutput, IntegrationOauthCompleteInput, IntegrationOauthCancelInput, IntegrationCommandConnectInput, IntegrationCommandConnectOutput, IntegrationCommandStatusInput, IntegrationCommandStatusOutput, IntegrationCommandCancelInput, McpListInput, McpListOutput, McpAddInput, McpRemoveInput, McpConnectInput, McpDisconnectInput, McpResourceCatalogInput, McpResourceCatalogOutput, CredentialUpdateInput, CredentialRemoveInput, ProjectListOutput, ProjectCurrentInput, ProjectDirectoriesInput, FormRequestListInput, FormRequestListOutput, FormListInput, FormCreateInput, FormGetInput, FormStateInput, FormReplyInput, FormCancelInput, PermissionRequestListInput, PermissionRequestListOutput, PermissionSavedListInput, PermissionSavedRemoveInput, PermissionCreateInput, PermissionListInput, PermissionGetInput, PermissionReplyInput, FileReadInput, FileReadOutput, FileListInput, FileListOutput, FileFindInput, FileFindOutput, CommandListInput, CommandListOutput, SkillListInput, SkillListOutput, EventSubscribeOutput, PtyListInput, PtyListOutput, PtyCreateInput, PtyCreateOutput, PtyGetInput, PtyGetOutput, PtyUpdateInput, PtyUpdateOutput, PtyRemoveInput, ShellListInput, ShellListOutput, ShellCreateInput, ShellCreateOutput, ShellGetInput, ShellGetOutput, ShellTimeoutInput, ShellTimeoutOutput, ShellOutputInput, ShellOutputOutput, ShellRemoveInput, QuestionRequestListInput, QuestionRequestListOutput, QuestionListInput, QuestionReplyInput, QuestionRejectInput, ReferenceListInput, ReferenceListOutput, ProjectCopyCreateInput, ProjectCopyRemoveInput, ProjectCopyRefreshInput, VcsStatusInput, VcsStatusOutput, VcsDiffInput, VcsDiffOutput, DebugLocationListOutput, DebugLocationEvictInput, WebsearchProvidersInput, WebsearchProvidersOutput, WebsearchQueryInput, WebsearchQueryOutput } from "./types";
|
|
1
|
+
import type { HealthStopInput, ServerGetOutput, LocationGetInput, LocationGetOutput, AgentListInput, AgentListOutput, AgentGetInput, AgentGetOutput, PluginListInput, PluginListOutput, SessionListInput, SessionCreateInput, SessionGetInput, SessionRemoveInput, SessionForkInput, SessionSwitchAgentInput, SessionSwitchModelInput, SessionRenameInput, SessionMoveInput, SessionPromptInput, SessionCommandInput, SessionSkillInput, SessionSyntheticInput, SessionShellInput, SessionCompactInput, SessionWaitInput, SessionRevertStageInput, SessionRevertClearInput, SessionRevertCommitInput, SessionContextInput, SessionPendingListInput, SessionInstructionsEntryListInput, SessionInstructionsEntryPutInput, SessionInstructionsEntryRemoveInput, SessionGenerateInput, SessionLogInput, SessionLogOutput, SessionInterruptInput, SessionBackgroundInput, SessionMessageInput, MessageListInput, ModelListInput, ModelListOutput, ModelDefaultInput, ModelDefaultOutput, GenerateTextInput, ProviderListInput, ProviderListOutput, ProviderGetInput, ProviderGetOutput, IntegrationListInput, IntegrationListOutput, IntegrationGetInput, IntegrationGetOutput, IntegrationWellknownAddInput, IntegrationConnectKeyInput, IntegrationOauthConnectInput, IntegrationOauthConnectOutput, IntegrationOauthStatusInput, IntegrationOauthStatusOutput, IntegrationOauthCompleteInput, IntegrationOauthCancelInput, IntegrationCommandConnectInput, IntegrationCommandConnectOutput, IntegrationCommandStatusInput, IntegrationCommandStatusOutput, IntegrationCommandCancelInput, McpListInput, McpListOutput, McpAddInput, McpRemoveInput, McpConnectInput, McpDisconnectInput, McpResourceCatalogInput, McpResourceCatalogOutput, CredentialUpdateInput, CredentialRemoveInput, ProjectListOutput, ProjectCurrentInput, ProjectDirectoriesInput, FormRequestListInput, FormRequestListOutput, FormListInput, FormCreateInput, FormGetInput, FormStateInput, FormReplyInput, FormCancelInput, PermissionRequestListInput, PermissionRequestListOutput, PermissionSavedListInput, PermissionSavedRemoveInput, PermissionCreateInput, PermissionListInput, PermissionGetInput, PermissionReplyInput, FileReadInput, FileReadOutput, FileListInput, FileListOutput, FileFindInput, FileFindOutput, CommandListInput, CommandListOutput, SkillListInput, SkillListOutput, EventSubscribeOutput, PtyListInput, PtyListOutput, PtyCreateInput, PtyCreateOutput, PtyGetInput, PtyGetOutput, PtyUpdateInput, PtyUpdateOutput, PtyRemoveInput, ShellListInput, ShellListOutput, ShellCreateInput, ShellCreateOutput, ShellGetInput, ShellGetOutput, ShellTimeoutInput, ShellTimeoutOutput, ShellOutputInput, ShellOutputOutput, ShellRemoveInput, QuestionRequestListInput, QuestionRequestListOutput, QuestionListInput, QuestionReplyInput, QuestionRejectInput, ReferenceListInput, ReferenceListOutput, ProjectCopyCreateInput, ProjectCopyRemoveInput, ProjectCopyRefreshInput, VcsStatusInput, VcsStatusOutput, VcsDiffInput, VcsDiffOutput, DebugLocationListOutput, DebugLocationEvictInput, WebsearchProvidersInput, WebsearchProvidersOutput, WebsearchQueryInput, WebsearchQueryOutput } from "./types";
|
|
2
2
|
export interface ClientOptions {
|
|
3
3
|
readonly baseUrl: string;
|
|
4
4
|
readonly fetch?: typeof globalThis.fetch;
|
|
@@ -21,6 +21,7 @@ export declare function make(options: ClientOptions): {
|
|
|
21
21
|
};
|
|
22
22
|
agent: {
|
|
23
23
|
list: (input?: AgentListInput, requestOptions?: RequestOptions) => Promise<AgentListOutput>;
|
|
24
|
+
get: (input: AgentGetInput, requestOptions?: RequestOptions) => Promise<AgentGetOutput>;
|
|
24
25
|
};
|
|
25
26
|
plugin: {
|
|
26
27
|
list: (input?: PluginListInput, requestOptions?: RequestOptions) => Promise<PluginListOutput>;
|
|
@@ -153,10 +154,10 @@ export declare function make(options: ClientOptions): {
|
|
|
153
154
|
};
|
|
154
155
|
create: (input: PermissionCreateInput, requestOptions?: RequestOptions) => Promise<{
|
|
155
156
|
id: string;
|
|
156
|
-
effect: import("./types").
|
|
157
|
+
effect: import("./types").PermissionEffect;
|
|
157
158
|
}>;
|
|
158
|
-
list: (input: PermissionListInput, requestOptions?: RequestOptions) => Promise<import("./types").
|
|
159
|
-
get: (input: PermissionGetInput, requestOptions?: RequestOptions) => Promise<import("./types").
|
|
159
|
+
list: (input: PermissionListInput, requestOptions?: RequestOptions) => Promise<import("./types").PermissionRequest[]>;
|
|
160
|
+
get: (input: PermissionGetInput, requestOptions?: RequestOptions) => Promise<import("./types").PermissionRequest>;
|
|
160
161
|
reply: (input: PermissionReplyInput, requestOptions?: RequestOptions) => Promise<void>;
|
|
161
162
|
};
|
|
162
163
|
file: {
|
|
@@ -192,7 +193,7 @@ export declare function make(options: ClientOptions): {
|
|
|
192
193
|
request: {
|
|
193
194
|
list: (input?: QuestionRequestListInput, requestOptions?: RequestOptions) => Promise<QuestionRequestListOutput>;
|
|
194
195
|
};
|
|
195
|
-
list: (input: QuestionListInput, requestOptions?: RequestOptions) => Promise<import("./types").
|
|
196
|
+
list: (input: QuestionListInput, requestOptions?: RequestOptions) => Promise<import("./types").QuestionRequest[]>;
|
|
196
197
|
reply: (input: QuestionReplyInput, requestOptions?: RequestOptions) => Promise<void>;
|
|
197
198
|
reject: (input: QuestionRejectInput, requestOptions?: RequestOptions) => Promise<void>;
|
|
198
199
|
};
|
|
@@ -160,6 +160,14 @@ export function make(options) {
|
|
|
160
160
|
declaredStatuses: [401, 400],
|
|
161
161
|
empty: false,
|
|
162
162
|
}, requestOptions),
|
|
163
|
+
get: (input, requestOptions) => request({
|
|
164
|
+
method: "GET",
|
|
165
|
+
path: `/api/agent/${encodeURIComponent(input.agentID)}`,
|
|
166
|
+
query: { location: input["location"] },
|
|
167
|
+
successStatus: 200,
|
|
168
|
+
declaredStatuses: [404, 401, 400],
|
|
169
|
+
empty: false,
|
|
170
|
+
}, requestOptions),
|
|
163
171
|
},
|
|
164
172
|
plugin: {
|
|
165
173
|
list: (input, requestOptions) => request({
|