@@ -164,23 +164,36 @@ const Endpoint4_9 = (raw: RawClient["server.session"]) => (input: Endpoint4_9Inp
164164 payload : { id : input [ "id" ] , skill : input [ "skill" ] , resume : input [ "resume" ] } ,
165165 } ) . pipe ( Effect . mapError ( mapClientError ) )
166166
167- type Endpoint4_10Request = Parameters < RawClient [ "server.session" ] [ "session.compact" ] > [ 0 ]
168- type Endpoint4_10Input = { readonly sessionID : Endpoint4_10Request [ "params" ] [ "sessionID" ] }
167+ type Endpoint4_10Request = Parameters < RawClient [ "server.session" ] [ "session.synthetic" ] > [ 0 ]
168+ type Endpoint4_10Input = {
169+ readonly sessionID : Endpoint4_10Request [ "params" ] [ "sessionID" ]
170+ readonly text : Endpoint4_10Request [ "payload" ] [ "text" ]
171+ readonly description ?: Endpoint4_10Request [ "payload" ] [ "description" ]
172+ readonly metadata ?: Endpoint4_10Request [ "payload" ] [ "metadata" ]
173+ }
169174const Endpoint4_10 = ( raw : RawClient [ "server.session" ] ) => ( input : Endpoint4_10Input ) =>
170- raw [ "session.compact" ] ( { params : { sessionID : input [ "sessionID" ] } } ) . pipe ( Effect . mapError ( mapClientError ) )
175+ raw [ "session.synthetic" ] ( {
176+ params : { sessionID : input [ "sessionID" ] } ,
177+ payload : { text : input [ "text" ] , description : input [ "description" ] , metadata : input [ "metadata" ] } ,
178+ } ) . pipe ( Effect . mapError ( mapClientError ) )
171179
172- type Endpoint4_11Request = Parameters < RawClient [ "server.session" ] [ "session.wait " ] > [ 0 ]
180+ type Endpoint4_11Request = Parameters < RawClient [ "server.session" ] [ "session.compact " ] > [ 0 ]
173181type Endpoint4_11Input = { readonly sessionID : Endpoint4_11Request [ "params" ] [ "sessionID" ] }
174182const Endpoint4_11 = ( raw : RawClient [ "server.session" ] ) => ( input : Endpoint4_11Input ) =>
183+ raw [ "session.compact" ] ( { params : { sessionID : input [ "sessionID" ] } } ) . pipe ( Effect . mapError ( mapClientError ) )
184+
185+ type Endpoint4_12Request = Parameters < RawClient [ "server.session" ] [ "session.wait" ] > [ 0 ]
186+ type Endpoint4_12Input = { readonly sessionID : Endpoint4_12Request [ "params" ] [ "sessionID" ] }
187+ const Endpoint4_12 = ( raw : RawClient [ "server.session" ] ) => ( input : Endpoint4_12Input ) =>
175188 raw [ "session.wait" ] ( { params : { sessionID : input [ "sessionID" ] } } ) . pipe ( Effect . mapError ( mapClientError ) )
176189
177- type Endpoint4_12Request = Parameters < RawClient [ "server.session" ] [ "session.revert.stage" ] > [ 0 ]
178- type Endpoint4_12Input = {
179- readonly sessionID : Endpoint4_12Request [ "params" ] [ "sessionID" ]
180- readonly messageID : Endpoint4_12Request [ "payload" ] [ "messageID" ]
181- readonly files ?: Endpoint4_12Request [ "payload" ] [ "files" ]
190+ type Endpoint4_13Request = Parameters < RawClient [ "server.session" ] [ "session.revert.stage" ] > [ 0 ]
191+ type Endpoint4_13Input = {
192+ readonly sessionID : Endpoint4_13Request [ "params" ] [ "sessionID" ]
193+ readonly messageID : Endpoint4_13Request [ "payload" ] [ "messageID" ]
194+ readonly files ?: Endpoint4_13Request [ "payload" ] [ "files" ]
182195}
183- const Endpoint4_12 = ( raw : RawClient [ "server.session" ] ) => ( input : Endpoint4_12Input ) =>
196+ const Endpoint4_13 = ( raw : RawClient [ "server.session" ] ) => ( input : Endpoint4_13Input ) =>
184197 raw [ "session.revert.stage" ] ( {
185198 params : { sessionID : input [ "sessionID" ] } ,
186199 payload : { messageID : input [ "messageID" ] , files : input [ "files" ] } ,
@@ -189,65 +202,65 @@ const Endpoint4_12 = (raw: RawClient["server.session"]) => (input: Endpoint4_12I
189202 Effect . map ( ( value ) => value . data ) ,
190203 )
191204
192- type Endpoint4_13Request = Parameters < RawClient [ "server.session" ] [ "session.revert.clear" ] > [ 0 ]
193- type Endpoint4_13Input = { readonly sessionID : Endpoint4_13Request [ "params" ] [ "sessionID" ] }
194- const Endpoint4_13 = ( raw : RawClient [ "server.session" ] ) => ( input : Endpoint4_13Input ) =>
195- raw [ "session.revert.clear" ] ( { params : { sessionID : input [ "sessionID" ] } } ) . pipe ( Effect . mapError ( mapClientError ) )
196-
197- type Endpoint4_14Request = Parameters < RawClient [ "server.session" ] [ "session.revert.commit" ] > [ 0 ]
205+ type Endpoint4_14Request = Parameters < RawClient [ "server.session" ] [ "session.revert.clear" ] > [ 0 ]
198206type Endpoint4_14Input = { readonly sessionID : Endpoint4_14Request [ "params" ] [ "sessionID" ] }
199207const Endpoint4_14 = ( raw : RawClient [ "server.session" ] ) => ( input : Endpoint4_14Input ) =>
200- raw [ "session.revert.commit " ] ( { params : { sessionID : input [ "sessionID" ] } } ) . pipe ( Effect . mapError ( mapClientError ) )
208+ raw [ "session.revert.clear " ] ( { params : { sessionID : input [ "sessionID" ] } } ) . pipe ( Effect . mapError ( mapClientError ) )
201209
202- type Endpoint4_15Request = Parameters < RawClient [ "server.session" ] [ "session.context " ] > [ 0 ]
210+ type Endpoint4_15Request = Parameters < RawClient [ "server.session" ] [ "session.revert.commit " ] > [ 0 ]
203211type Endpoint4_15Input = { readonly sessionID : Endpoint4_15Request [ "params" ] [ "sessionID" ] }
204212const Endpoint4_15 = ( raw : RawClient [ "server.session" ] ) => ( input : Endpoint4_15Input ) =>
213+ raw [ "session.revert.commit" ] ( { params : { sessionID : input [ "sessionID" ] } } ) . pipe ( Effect . mapError ( mapClientError ) )
214+
215+ type Endpoint4_16Request = Parameters < RawClient [ "server.session" ] [ "session.context" ] > [ 0 ]
216+ type Endpoint4_16Input = { readonly sessionID : Endpoint4_16Request [ "params" ] [ "sessionID" ] }
217+ const Endpoint4_16 = ( raw : RawClient [ "server.session" ] ) => ( input : Endpoint4_16Input ) =>
205218 raw [ "session.context" ] ( { params : { sessionID : input [ "sessionID" ] } } ) . pipe (
206219 Effect . mapError ( mapClientError ) ,
207220 Effect . map ( ( value ) => value . data ) ,
208221 )
209222
210- type Endpoint4_16Request = Parameters < RawClient [ "server.session" ] [ "session.history" ] > [ 0 ]
211- type Endpoint4_16Input = {
212- readonly sessionID : Endpoint4_16Request [ "params" ] [ "sessionID" ]
213- readonly limit ?: Endpoint4_16Request [ "query" ] [ "limit" ]
214- readonly after ?: Endpoint4_16Request [ "query" ] [ "after" ]
223+ type Endpoint4_17Request = Parameters < RawClient [ "server.session" ] [ "session.history" ] > [ 0 ]
224+ type Endpoint4_17Input = {
225+ readonly sessionID : Endpoint4_17Request [ "params" ] [ "sessionID" ]
226+ readonly limit ?: Endpoint4_17Request [ "query" ] [ "limit" ]
227+ readonly after ?: Endpoint4_17Request [ "query" ] [ "after" ]
215228}
216- const Endpoint4_16 = ( raw : RawClient [ "server.session" ] ) => ( input : Endpoint4_16Input ) =>
229+ const Endpoint4_17 = ( raw : RawClient [ "server.session" ] ) => ( input : Endpoint4_17Input ) =>
217230 raw [ "session.history" ] ( {
218231 params : { sessionID : input [ "sessionID" ] } ,
219232 query : { limit : input [ "limit" ] , after : input [ "after" ] } ,
220233 } ) . pipe ( Effect . mapError ( mapClientError ) )
221234
222- type Endpoint4_17Request = Parameters < RawClient [ "server.session" ] [ "session.events" ] > [ 0 ]
223- type Endpoint4_17Input = {
224- readonly sessionID : Endpoint4_17Request [ "params" ] [ "sessionID" ]
225- readonly after ?: Endpoint4_17Request [ "query" ] [ "after" ]
235+ type Endpoint4_18Request = Parameters < RawClient [ "server.session" ] [ "session.events" ] > [ 0 ]
236+ type Endpoint4_18Input = {
237+ readonly sessionID : Endpoint4_18Request [ "params" ] [ "sessionID" ]
238+ readonly after ?: Endpoint4_18Request [ "query" ] [ "after" ]
226239}
227- const Endpoint4_17 = ( raw : RawClient [ "server.session" ] ) => ( input : Endpoint4_17Input ) =>
240+ const Endpoint4_18 = ( raw : RawClient [ "server.session" ] ) => ( input : Endpoint4_18Input ) =>
228241 Stream . unwrap (
229242 raw [ "session.events" ] ( { params : { sessionID : input [ "sessionID" ] } , query : { after : input [ "after" ] } } ) . pipe (
230243 Effect . mapError ( mapClientError ) ,
231244 Effect . map ( ( stream ) => stream . pipe ( Stream . mapError ( mapClientError ) ) ) ,
232245 ) ,
233246 )
234247
235- type Endpoint4_18Request = Parameters < RawClient [ "server.session" ] [ "session.interrupt" ] > [ 0 ]
236- type Endpoint4_18Input = { readonly sessionID : Endpoint4_18Request [ "params" ] [ "sessionID" ] }
237- const Endpoint4_18 = ( raw : RawClient [ "server.session" ] ) => ( input : Endpoint4_18Input ) =>
238- raw [ "session.interrupt" ] ( { params : { sessionID : input [ "sessionID" ] } } ) . pipe ( Effect . mapError ( mapClientError ) )
239-
240- type Endpoint4_19Request = Parameters < RawClient [ "server.session" ] [ "session.background" ] > [ 0 ]
248+ type Endpoint4_19Request = Parameters < RawClient [ "server.session" ] [ "session.interrupt" ] > [ 0 ]
241249type Endpoint4_19Input = { readonly sessionID : Endpoint4_19Request [ "params" ] [ "sessionID" ] }
242250const Endpoint4_19 = ( raw : RawClient [ "server.session" ] ) => ( input : Endpoint4_19Input ) =>
251+ raw [ "session.interrupt" ] ( { params : { sessionID : input [ "sessionID" ] } } ) . pipe ( Effect . mapError ( mapClientError ) )
252+
253+ type Endpoint4_20Request = Parameters < RawClient [ "server.session" ] [ "session.background" ] > [ 0 ]
254+ type Endpoint4_20Input = { readonly sessionID : Endpoint4_20Request [ "params" ] [ "sessionID" ] }
255+ const Endpoint4_20 = ( raw : RawClient [ "server.session" ] ) => ( input : Endpoint4_20Input ) =>
243256 raw [ "session.background" ] ( { params : { sessionID : input [ "sessionID" ] } } ) . pipe ( Effect . mapError ( mapClientError ) )
244257
245- type Endpoint4_20Request = Parameters < RawClient [ "server.session" ] [ "session.message" ] > [ 0 ]
246- type Endpoint4_20Input = {
247- readonly sessionID : Endpoint4_20Request [ "params" ] [ "sessionID" ]
248- readonly messageID : Endpoint4_20Request [ "params" ] [ "messageID" ]
258+ type Endpoint4_21Request = Parameters < RawClient [ "server.session" ] [ "session.message" ] > [ 0 ]
259+ type Endpoint4_21Input = {
260+ readonly sessionID : Endpoint4_21Request [ "params" ] [ "sessionID" ]
261+ readonly messageID : Endpoint4_21Request [ "params" ] [ "messageID" ]
249262}
250- const Endpoint4_20 = ( raw : RawClient [ "server.session" ] ) => ( input : Endpoint4_20Input ) =>
263+ const Endpoint4_21 = ( raw : RawClient [ "server.session" ] ) => ( input : Endpoint4_21Input ) =>
251264 raw [ "session.message" ] ( { params : { sessionID : input [ "sessionID" ] , messageID : input [ "messageID" ] } } ) . pipe (
252265 Effect . mapError ( mapClientError ) ,
253266 Effect . map ( ( value ) => value . data ) ,
@@ -264,17 +277,18 @@ const adaptGroup4 = (raw: RawClient["server.session"]) => ({
264277 rename : Endpoint4_7 ( raw ) ,
265278 prompt : Endpoint4_8 ( raw ) ,
266279 skill : Endpoint4_9 ( raw ) ,
267- compact : Endpoint4_10 ( raw ) ,
268- wait : Endpoint4_11 ( raw ) ,
269- revertStage : Endpoint4_12 ( raw ) ,
270- revertClear : Endpoint4_13 ( raw ) ,
271- revertCommit : Endpoint4_14 ( raw ) ,
272- context : Endpoint4_15 ( raw ) ,
273- history : Endpoint4_16 ( raw ) ,
274- events : Endpoint4_17 ( raw ) ,
275- interrupt : Endpoint4_18 ( raw ) ,
276- background : Endpoint4_19 ( raw ) ,
277- message : Endpoint4_20 ( raw ) ,
280+ synthetic : Endpoint4_10 ( raw ) ,
281+ compact : Endpoint4_11 ( raw ) ,
282+ wait : Endpoint4_12 ( raw ) ,
283+ revertStage : Endpoint4_13 ( raw ) ,
284+ revertClear : Endpoint4_14 ( raw ) ,
285+ revertCommit : Endpoint4_15 ( raw ) ,
286+ context : Endpoint4_16 ( raw ) ,
287+ history : Endpoint4_17 ( raw ) ,
288+ events : Endpoint4_18 ( raw ) ,
289+ interrupt : Endpoint4_19 ( raw ) ,
290+ background : Endpoint4_20 ( raw ) ,
291+ message : Endpoint4_21 ( raw ) ,
278292} )
279293
280294type Endpoint5_0Request = Parameters < RawClient [ "server.message" ] [ "session.messages" ] > [ 0 ]
0 commit comments