@honcho-ai/core 1.2.0 → 1.3.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.
Files changed (64) hide show
  1. package/CHANGELOG.md +27 -0
  2. package/index.d.mts +2 -2
  3. package/index.d.ts +2 -2
  4. package/index.d.ts.map +1 -1
  5. package/index.js.map +1 -1
  6. package/index.mjs.map +1 -1
  7. package/package.json +1 -5
  8. package/resources/index.d.ts +1 -1
  9. package/resources/index.d.ts.map +1 -1
  10. package/resources/index.js.map +1 -1
  11. package/resources/index.mjs.map +1 -1
  12. package/resources/workspaces/index.d.ts +3 -3
  13. package/resources/workspaces/index.d.ts.map +1 -1
  14. package/resources/workspaces/index.js.map +1 -1
  15. package/resources/workspaces/index.mjs.map +1 -1
  16. package/resources/workspaces/peers/index.d.ts +1 -1
  17. package/resources/workspaces/peers/index.d.ts.map +1 -1
  18. package/resources/workspaces/peers/index.js.map +1 -1
  19. package/resources/workspaces/peers/index.mjs.map +1 -1
  20. package/resources/workspaces/peers/peers.d.ts +23 -11
  21. package/resources/workspaces/peers/peers.d.ts.map +1 -1
  22. package/resources/workspaces/peers/peers.js +4 -12
  23. package/resources/workspaces/peers/peers.js.map +1 -1
  24. package/resources/workspaces/peers/peers.mjs +3 -11
  25. package/resources/workspaces/peers/peers.mjs.map +1 -1
  26. package/resources/workspaces/peers/sessions.d.ts +1 -1
  27. package/resources/workspaces/peers/sessions.d.ts.map +1 -1
  28. package/resources/workspaces/sessions/index.d.ts +2 -2
  29. package/resources/workspaces/sessions/index.d.ts.map +1 -1
  30. package/resources/workspaces/sessions/index.js.map +1 -1
  31. package/resources/workspaces/sessions/index.mjs.map +1 -1
  32. package/resources/workspaces/sessions/messages.d.ts +2 -2
  33. package/resources/workspaces/sessions/messages.d.ts.map +1 -1
  34. package/resources/workspaces/sessions/peers.d.ts +5 -33
  35. package/resources/workspaces/sessions/peers.d.ts.map +1 -1
  36. package/resources/workspaces/sessions/peers.js.map +1 -1
  37. package/resources/workspaces/sessions/peers.mjs.map +1 -1
  38. package/resources/workspaces/sessions/sessions.d.ts +27 -34
  39. package/resources/workspaces/sessions/sessions.d.ts.map +1 -1
  40. package/resources/workspaces/sessions/sessions.js +7 -7
  41. package/resources/workspaces/sessions/sessions.js.map +1 -1
  42. package/resources/workspaces/sessions/sessions.mjs +8 -8
  43. package/resources/workspaces/sessions/sessions.mjs.map +1 -1
  44. package/resources/workspaces/workspaces.d.ts +38 -13
  45. package/resources/workspaces/workspaces.d.ts.map +1 -1
  46. package/resources/workspaces/workspaces.js +4 -12
  47. package/resources/workspaces/workspaces.js.map +1 -1
  48. package/resources/workspaces/workspaces.mjs +3 -11
  49. package/resources/workspaces/workspaces.mjs.map +1 -1
  50. package/src/index.ts +4 -0
  51. package/src/resources/index.ts +2 -0
  52. package/src/resources/workspaces/index.ts +5 -0
  53. package/src/resources/workspaces/peers/index.ts +2 -0
  54. package/src/resources/workspaces/peers/peers.ts +31 -19
  55. package/src/resources/workspaces/peers/sessions.ts +1 -1
  56. package/src/resources/workspaces/sessions/index.ts +2 -1
  57. package/src/resources/workspaces/sessions/messages.ts +2 -2
  58. package/src/resources/workspaces/sessions/peers.ts +5 -37
  59. package/src/resources/workspaces/sessions/sessions.ts +35 -46
  60. package/src/resources/workspaces/workspaces.ts +45 -17
  61. package/src/version.ts +1 -1
  62. package/version.d.ts +1 -1
  63. package/version.js +1 -1
  64. package/version.mjs +1 -1
@@ -6,7 +6,6 @@ import * as Core from "../../../core.js";
6
6
  import * as SessionsAPI from "./sessions.js";
7
7
  import { SessionListParams, Sessions } from "./sessions.js";
8
8
  import * as MessagesAPI from "../sessions/messages.js";
9
- import { MessagesPage } from "../sessions/messages.js";
10
9
  import * as SessionsSessionsAPI from "../sessions/sessions.js";
11
10
  import { Page, type PageParams } from "../../../pagination.js";
12
11
 
@@ -67,7 +66,7 @@ export class Peers extends APIResource {
67
66
  * Get a Peer by ID
68
67
  *
69
68
  * If peer_id is provided as a query parameter, it uses that (must match JWT
70
- * workspace_id). Otherwise, it uses the peer_id from the JWT token.
69
+ * workspace_id). Otherwise, it uses the peer_id from the JWT.
71
70
  */
72
71
  getOrCreate(
73
72
  workspaceId: string,
@@ -83,16 +82,10 @@ export class Peers extends APIResource {
83
82
  search(
84
83
  workspaceId: string,
85
84
  peerId: string,
86
- params: PeerSearchParams,
85
+ body: PeerSearchParams,
87
86
  options?: Core.RequestOptions,
88
- ): Core.PagePromise<MessagesPage, MessagesAPI.Message> {
89
- const { page, size, ...body } = params;
90
- return this._client.getAPIList(`/v2/workspaces/${workspaceId}/peers/${peerId}/search`, MessagesPage, {
91
- query: { page, size },
92
- body,
93
- method: 'post',
94
- ...options,
95
- });
87
+ ): Core.APIPromise<PeerSearchResponse> {
88
+ return this._client.post(`/v2/workspaces/${workspaceId}/peers/${peerId}/search`, { body, ...options });
96
89
  }
97
90
 
98
91
  /**
@@ -118,6 +111,18 @@ export class Peers extends APIResource {
118
111
 
119
112
  export class PeersPage extends Page<Peer> {}
120
113
 
114
+ export interface PagePeer {
115
+ items: Array<Peer>;
116
+
117
+ page: number;
118
+
119
+ size: number;
120
+
121
+ pages?: number;
122
+
123
+ total?: number;
124
+ }
125
+
121
126
  export interface PageSession {
122
127
  items: Array<SessionsSessionsAPI.Session>;
123
128
 
@@ -143,13 +148,15 @@ export interface Peer {
143
148
  }
144
149
 
145
150
  export interface SessionGet {
146
- filter?: { [key: string]: unknown } | null;
151
+ filters?: { [key: string]: unknown } | null;
147
152
  }
148
153
 
149
154
  export interface PeerChatResponse {
150
155
  content: string;
151
156
  }
152
157
 
158
+ export type PeerSearchResponse = Array<MessagesAPI.Message>;
159
+
153
160
  export type PeerWorkingRepresentationResponse = { [key: string]: unknown };
154
161
 
155
162
  export interface PeerUpdateParams {
@@ -162,7 +169,7 @@ export interface PeerListParams extends PageParams {
162
169
  /**
163
170
  * Body param:
164
171
  */
165
- filter?: { [key: string]: unknown } | null;
172
+ filters?: { [key: string]: unknown } | null;
166
173
  }
167
174
 
168
175
  export interface PeerChatParams {
@@ -192,16 +199,21 @@ export interface PeerGetOrCreateParams {
192
199
  metadata?: { [key: string]: unknown } | null;
193
200
  }
194
201
 
195
- export interface PeerSearchParams extends PageParams {
202
+ export interface PeerSearchParams {
196
203
  /**
197
- * Body param: Search query
204
+ * Search query
198
205
  */
199
206
  query: string;
200
207
 
201
208
  /**
202
- * Body param: Whether to explicitly use semantic search to filter the results
209
+ * Filters to scope the search
203
210
  */
204
- semantic?: boolean | null;
211
+ filters?: { [key: string]: unknown } | null;
212
+
213
+ /**
214
+ * Number of results to return
215
+ */
216
+ limit?: number;
205
217
  }
206
218
 
207
219
  export interface PeerWorkingRepresentationParams {
@@ -222,10 +234,12 @@ Peers.Sessions = Sessions;
222
234
 
223
235
  export declare namespace Peers {
224
236
  export {
237
+ type PagePeer as PagePeer,
225
238
  type PageSession as PageSession,
226
239
  type Peer as Peer,
227
240
  type SessionGet as SessionGet,
228
241
  type PeerChatResponse as PeerChatResponse,
242
+ type PeerSearchResponse as PeerSearchResponse,
229
243
  type PeerWorkingRepresentationResponse as PeerWorkingRepresentationResponse,
230
244
  PeersPage as PeersPage,
231
245
  type PeerUpdateParams as PeerUpdateParams,
@@ -238,5 +252,3 @@ export declare namespace Peers {
238
252
 
239
253
  export { Sessions as Sessions, type SessionListParams as SessionListParams };
240
254
  }
241
-
242
- export { MessagesPage };
@@ -45,7 +45,7 @@ export interface SessionListParams extends PageParams {
45
45
  /**
46
46
  * Body param:
47
47
  */
48
- filter?: { [key: string]: unknown } | null;
48
+ filters?: { [key: string]: unknown } | null;
49
49
  }
50
50
 
51
51
  export declare namespace Sessions {
@@ -14,7 +14,7 @@ export {
14
14
  } from "./messages.js";
15
15
  export {
16
16
  Peers,
17
- type PeerGetConfigResponse,
17
+ type SessionPeerConfig,
18
18
  type PeerSetConfigResponse,
19
19
  type PeerListParams,
20
20
  type PeerAddParams,
@@ -28,6 +28,7 @@ export {
28
28
  type Session,
29
29
  type SessionDeleteResponse,
30
30
  type SessionGetContextResponse,
31
+ type SessionSearchResponse,
31
32
  type SessionUpdateParams,
32
33
  type SessionListParams,
33
34
  type SessionCloneParams,
@@ -111,7 +111,7 @@ export interface Message {
111
111
 
112
112
  peer_id: string;
113
113
 
114
- session_id: string | null;
114
+ session_id: string;
115
115
 
116
116
  token_count: number;
117
117
 
@@ -149,7 +149,7 @@ export interface MessageListParams extends PageParams {
149
149
  /**
150
150
  * Body param:
151
151
  */
152
- filter?: { [key: string]: unknown } | null;
152
+ filters?: { [key: string]: unknown } | null;
153
153
  }
154
154
 
155
155
  export interface MessageUploadParams {
@@ -61,7 +61,7 @@ export class Peers extends APIResource {
61
61
  sessionId: string,
62
62
  peerId: string,
63
63
  options?: Core.RequestOptions,
64
- ): Core.APIPromise<PeerGetConfigResponse> {
64
+ ): Core.APIPromise<SessionPeerConfig> {
65
65
  return this._client.get(
66
66
  `/v2/workspaces/${workspaceId}/sessions/${sessionId}/peers/${peerId}/config`,
67
67
  options,
@@ -115,7 +115,7 @@ export class Peers extends APIResource {
115
115
  }
116
116
  }
117
117
 
118
- export interface PeerGetConfigResponse {
118
+ export interface SessionPeerConfig {
119
119
  /**
120
120
  * Whether other peers in this session should try to form a session-level
121
121
  * theory-of-mind representation of this peer
@@ -133,43 +133,11 @@ export type PeerSetConfigResponse = unknown;
133
133
 
134
134
  export interface PeerListParams extends PageParams {}
135
135
 
136
- export type PeerAddParams = { [key: string]: PeerAddParams.Body };
137
-
138
- export namespace PeerAddParams {
139
- export interface Body {
140
- /**
141
- * Whether other peers in this session should try to form a session-level
142
- * theory-of-mind representation of this peer
143
- */
144
- observe_me?: boolean | null;
145
-
146
- /**
147
- * Whether this peer should form a session-level theory-of-mind representation of
148
- * other peers in the session
149
- */
150
- observe_others?: boolean;
151
- }
152
- }
136
+ export type PeerAddParams = { [key: string]: SessionPeerConfig };
153
137
 
154
138
  export type PeerRemoveParams = Array<string>;
155
139
 
156
- export type PeerSetParams = { [key: string]: PeerSetParams.Body };
157
-
158
- export namespace PeerSetParams {
159
- export interface Body {
160
- /**
161
- * Whether other peers in this session should try to form a session-level
162
- * theory-of-mind representation of this peer
163
- */
164
- observe_me?: boolean | null;
165
-
166
- /**
167
- * Whether this peer should form a session-level theory-of-mind representation of
168
- * other peers in the session
169
- */
170
- observe_others?: boolean;
171
- }
172
- }
140
+ export type PeerSetParams = { [key: string]: SessionPeerConfig };
173
141
 
174
142
  export interface PeerSetConfigParams {
175
143
  /**
@@ -187,7 +155,7 @@ export interface PeerSetConfigParams {
187
155
 
188
156
  export declare namespace Peers {
189
157
  export {
190
- type PeerGetConfigResponse as PeerGetConfigResponse,
158
+ type SessionPeerConfig as SessionPeerConfig,
191
159
  type PeerSetConfigResponse as PeerSetConfigResponse,
192
160
  type PeerListParams as PeerListParams,
193
161
  type PeerAddParams as PeerAddParams,
@@ -19,13 +19,13 @@ import {
19
19
  import * as PeersAPI from "./peers.js";
20
20
  import {
21
21
  PeerAddParams,
22
- PeerGetConfigResponse,
23
22
  PeerListParams,
24
23
  PeerRemoveParams,
25
24
  PeerSetConfigParams,
26
25
  PeerSetConfigResponse,
27
26
  PeerSetParams,
28
- Peers as PeersAPIPeers,
27
+ Peers,
28
+ SessionPeerConfig,
29
29
  } from "./peers.js";
30
30
  import { Page, type PageParams } from "../../../pagination.js";
31
31
 
@@ -104,11 +104,12 @@ export class Sessions extends APIResource {
104
104
  }
105
105
 
106
106
  /**
107
- * Produce a context object from the session. The caller provides a token limit
108
- * which the entire context must fit into. To do this, we allocate 40% of the token
109
- * limit to the summary, and 60% to recent messages -- as many as can fit. If the
110
- * caller does not want a summary, we allocate all the tokens to recent messages.
111
- * The default token limit if not provided is 2048. (TODO: make this configurable)
107
+ * Produce a context object from the session. The caller provides an optional token
108
+ * limit which the entire context must fit into. If not provided, the context will
109
+ * be exhaustive (within configured max tokens). To do this, we allocate 40% of the
110
+ * token limit to the summary, and 60% to recent messages -- as many as can fit.
111
+ * Note that the summary will usually take up less space than this. If the caller
112
+ * does not want a summary, we allocate all the tokens to recent messages.
112
113
  */
113
114
  getContext(
114
115
  workspaceId: string,
@@ -140,8 +141,7 @@ export class Sessions extends APIResource {
140
141
  * Get a specific session in a workspace.
141
142
  *
142
143
  * If session_id is provided as a query parameter, it verifies the session is in
143
- * the workspace. Otherwise, it uses the session_id from the JWT token for
144
- * verification.
144
+ * the workspace. Otherwise, it uses the session_id from the JWT for verification.
145
145
  */
146
146
  getOrCreate(
147
147
  workspaceId: string,
@@ -157,15 +157,13 @@ export class Sessions extends APIResource {
157
157
  search(
158
158
  workspaceId: string,
159
159
  sessionId: string,
160
- params: SessionSearchParams,
160
+ body: SessionSearchParams,
161
161
  options?: Core.RequestOptions,
162
- ): Core.PagePromise<MessagesPage, MessagesAPI.Message> {
163
- const { page, size, ...body } = params;
164
- return this._client.getAPIList(
165
- `/v2/workspaces/${workspaceId}/sessions/${sessionId}/search`,
166
- MessagesPage,
167
- { query: { page, size }, body, method: 'post', ...options },
168
- );
162
+ ): Core.APIPromise<SessionSearchResponse> {
163
+ return this._client.post(`/v2/workspaces/${workspaceId}/sessions/${sessionId}/search`, {
164
+ body,
165
+ ...options,
166
+ });
169
167
  }
170
168
  }
171
169
 
@@ -195,6 +193,8 @@ export interface SessionGetContextResponse {
195
193
  summary: string;
196
194
  }
197
195
 
196
+ export type SessionSearchResponse = Array<MessagesAPI.Message>;
197
+
198
198
  export interface SessionUpdateParams {
199
199
  configuration?: { [key: string]: unknown } | null;
200
200
 
@@ -205,7 +205,7 @@ export interface SessionListParams extends PageParams {
205
205
  /**
206
206
  * Body param:
207
207
  */
208
- filter?: { [key: string]: unknown } | null;
208
+ filters?: { [key: string]: unknown } | null;
209
209
  }
210
210
 
211
211
  export interface SessionCloneParams {
@@ -217,12 +217,13 @@ export interface SessionCloneParams {
217
217
 
218
218
  export interface SessionGetContextParams {
219
219
  /**
220
- * Whether to summarize the session history prior to the cutoff message
220
+ * Whether or not to include a summary _if_ one is available for the session
221
221
  */
222
222
  summary?: boolean;
223
223
 
224
224
  /**
225
- * Number of tokens to use for the context. Includes summary if set to true
225
+ * Number of tokens to use for the context. Includes summary if set to true. If not
226
+ * provided, the context will be exhaustive (within 100000 tokens)
226
227
  */
227
228
  tokens?: number | null;
228
229
  }
@@ -234,47 +235,37 @@ export interface SessionGetOrCreateParams {
234
235
 
235
236
  metadata?: { [key: string]: unknown } | null;
236
237
 
237
- peers?: { [key: string]: SessionGetOrCreateParams.Peers } | null;
238
- }
239
-
240
- export namespace SessionGetOrCreateParams {
241
- export interface Peers {
242
- /**
243
- * Whether other peers in this session should try to form a session-level
244
- * theory-of-mind representation of this peer
245
- */
246
- observe_me?: boolean | null;
247
-
248
- /**
249
- * Whether this peer should form a session-level theory-of-mind representation of
250
- * other peers in the session
251
- */
252
- observe_others?: boolean;
253
- }
238
+ peers?: { [key: string]: PeersAPI.SessionPeerConfig } | null;
254
239
  }
255
240
 
256
- export interface SessionSearchParams extends PageParams {
241
+ export interface SessionSearchParams {
257
242
  /**
258
- * Body param: Search query
243
+ * Search query
259
244
  */
260
245
  query: string;
261
246
 
262
247
  /**
263
- * Body param: Whether to explicitly use semantic search to filter the results
248
+ * Filters to scope the search
249
+ */
250
+ filters?: { [key: string]: unknown } | null;
251
+
252
+ /**
253
+ * Number of results to return
264
254
  */
265
- semantic?: boolean | null;
255
+ limit?: number;
266
256
  }
267
257
 
268
258
  Sessions.SessionsPage = SessionsPage;
269
259
  Sessions.Messages = Messages;
270
260
  Sessions.MessagesPage = MessagesPage;
271
- Sessions.Peers = PeersAPIPeers;
261
+ Sessions.Peers = Peers;
272
262
 
273
263
  export declare namespace Sessions {
274
264
  export {
275
265
  type Session as Session,
276
266
  type SessionDeleteResponse as SessionDeleteResponse,
277
267
  type SessionGetContextResponse as SessionGetContextResponse,
268
+ type SessionSearchResponse as SessionSearchResponse,
278
269
  SessionsPage as SessionsPage,
279
270
  type SessionUpdateParams as SessionUpdateParams,
280
271
  type SessionListParams as SessionListParams,
@@ -298,8 +289,8 @@ export declare namespace Sessions {
298
289
  };
299
290
 
300
291
  export {
301
- PeersAPIPeers as Peers,
302
- type PeerGetConfigResponse as PeerGetConfigResponse,
292
+ Peers as Peers,
293
+ type SessionPeerConfig as SessionPeerConfig,
303
294
  type PeerSetConfigResponse as PeerSetConfigResponse,
304
295
  type PeerListParams as PeerListParams,
305
296
  type PeerAddParams as PeerAddParams,
@@ -308,5 +299,3 @@ export declare namespace Sessions {
308
299
  type PeerSetConfigParams as PeerSetConfigParams,
309
300
  };
310
301
  }
311
-
312
- export { MessagesPage };
@@ -5,6 +5,7 @@ import { isRequestOptions } from "../../core.js";
5
5
  import * as Core from "../../core.js";
6
6
  import * as PeersAPI from "./peers/peers.js";
7
7
  import {
8
+ PagePeer,
8
9
  PageSession,
9
10
  Peer,
10
11
  PeerChatParams,
@@ -12,6 +13,7 @@ import {
12
13
  PeerGetOrCreateParams,
13
14
  PeerListParams,
14
15
  PeerSearchParams,
16
+ PeerSearchResponse,
15
17
  PeerUpdateParams,
16
18
  PeerWorkingRepresentationParams,
17
19
  PeerWorkingRepresentationResponse,
@@ -20,7 +22,6 @@ import {
20
22
  SessionGet,
21
23
  } from "./peers/peers.js";
22
24
  import * as MessagesAPI from "./sessions/messages.js";
23
- import { MessagesPage } from "./sessions/messages.js";
24
25
  import * as SessionsAPI from "./sessions/sessions.js";
25
26
  import {
26
27
  Session,
@@ -31,6 +32,7 @@ import {
31
32
  SessionGetOrCreateParams,
32
33
  SessionListParams,
33
34
  SessionSearchParams,
35
+ SessionSearchResponse,
34
36
  SessionUpdateParams,
35
37
  Sessions as SessionsAPISessions,
36
38
  SessionsPage,
@@ -101,7 +103,7 @@ export class Workspaces extends APIResource {
101
103
  * Get a Workspace by ID.
102
104
  *
103
105
  * If workspace_id is provided as a query parameter, it uses that (must match JWT
104
- * workspace_id). Otherwise, it uses the workspace_id from the JWT token.
106
+ * workspace_id). Otherwise, it uses the workspace_id from the JWT.
105
107
  */
106
108
  getOrCreate(body: WorkspaceGetOrCreateParams, options?: Core.RequestOptions): Core.APIPromise<Workspace> {
107
109
  return this._client.post('/v2/workspaces', { body, ...options });
@@ -112,16 +114,10 @@ export class Workspaces extends APIResource {
112
114
  */
113
115
  search(
114
116
  workspaceId: string,
115
- params: WorkspaceSearchParams,
117
+ body: WorkspaceSearchParams,
116
118
  options?: Core.RequestOptions,
117
- ): Core.PagePromise<MessagesPage, MessagesAPI.Message> {
118
- const { body, page, size } = params;
119
- return this._client.getAPIList(`/v2/workspaces/${workspaceId}/search`, MessagesPage, {
120
- query: { page, size },
121
- body: body,
122
- method: 'post',
123
- ...options,
124
- });
119
+ ): Core.APIPromise<WorkspaceSearchResponse> {
120
+ return this._client.post(`/v2/workspaces/${workspaceId}/search`, { body, ...options });
125
121
  }
126
122
  }
127
123
 
@@ -183,6 +179,23 @@ export namespace DeriverStatus {
183
179
  }
184
180
  }
185
181
 
182
+ export interface MessageSearchOptions {
183
+ /**
184
+ * Search query
185
+ */
186
+ query: string;
187
+
188
+ /**
189
+ * Filters to scope the search
190
+ */
191
+ filters?: { [key: string]: unknown } | null;
192
+
193
+ /**
194
+ * Number of results to return
195
+ */
196
+ limit?: number;
197
+ }
198
+
186
199
  export interface Workspace {
187
200
  id: string;
188
201
 
@@ -193,6 +206,8 @@ export interface Workspace {
193
206
  metadata?: { [key: string]: unknown };
194
207
  }
195
208
 
209
+ export type WorkspaceSearchResponse = Array<MessagesAPI.Message>;
210
+
196
211
  export interface WorkspaceUpdateParams {
197
212
  configuration?: { [key: string]: unknown } | null;
198
213
 
@@ -203,7 +218,7 @@ export interface WorkspaceListParams extends PageParams {
203
218
  /**
204
219
  * Body param:
205
220
  */
206
- filter?: { [key: string]: unknown } | null;
221
+ filters?: { [key: string]: unknown } | null;
207
222
  }
208
223
 
209
224
  export interface WorkspaceDeriverStatusParams {
@@ -231,11 +246,21 @@ export interface WorkspaceGetOrCreateParams {
231
246
  metadata?: { [key: string]: unknown };
232
247
  }
233
248
 
234
- export interface WorkspaceSearchParams extends PageParams {
249
+ export interface WorkspaceSearchParams {
235
250
  /**
236
- * Body param: Search query
251
+ * Search query
237
252
  */
238
- body: string;
253
+ query: string;
254
+
255
+ /**
256
+ * Filters to scope the search
257
+ */
258
+ filters?: { [key: string]: unknown } | null;
259
+
260
+ /**
261
+ * Number of results to return
262
+ */
263
+ limit?: number;
239
264
  }
240
265
 
241
266
  Workspaces.WorkspacesPage = WorkspacesPage;
@@ -247,7 +272,9 @@ Workspaces.SessionsPage = SessionsPage;
247
272
  export declare namespace Workspaces {
248
273
  export {
249
274
  type DeriverStatus as DeriverStatus,
275
+ type MessageSearchOptions as MessageSearchOptions,
250
276
  type Workspace as Workspace,
277
+ type WorkspaceSearchResponse as WorkspaceSearchResponse,
251
278
  WorkspacesPage as WorkspacesPage,
252
279
  type WorkspaceUpdateParams as WorkspaceUpdateParams,
253
280
  type WorkspaceListParams as WorkspaceListParams,
@@ -258,10 +285,12 @@ export declare namespace Workspaces {
258
285
 
259
286
  export {
260
287
  Peers as Peers,
288
+ type PagePeer as PagePeer,
261
289
  type PageSession as PageSession,
262
290
  type Peer as Peer,
263
291
  type SessionGet as SessionGet,
264
292
  type PeerChatResponse as PeerChatResponse,
293
+ type PeerSearchResponse as PeerSearchResponse,
265
294
  type PeerWorkingRepresentationResponse as PeerWorkingRepresentationResponse,
266
295
  PeersPage as PeersPage,
267
296
  type PeerUpdateParams as PeerUpdateParams,
@@ -277,6 +306,7 @@ export declare namespace Workspaces {
277
306
  type Session as Session,
278
307
  type SessionDeleteResponse as SessionDeleteResponse,
279
308
  type SessionGetContextResponse as SessionGetContextResponse,
309
+ type SessionSearchResponse as SessionSearchResponse,
280
310
  SessionsPage as SessionsPage,
281
311
  type SessionUpdateParams as SessionUpdateParams,
282
312
  type SessionListParams as SessionListParams,
@@ -286,5 +316,3 @@ export declare namespace Workspaces {
286
316
  type SessionSearchParams as SessionSearchParams,
287
317
  };
288
318
  }
289
-
290
- export { MessagesPage };
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const VERSION = '1.2.0'; // x-release-please-version
1
+ export const VERSION = '1.3.0'; // x-release-please-version
package/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "1.2.0";
1
+ export declare const VERSION = "1.3.0";
2
2
  //# sourceMappingURL=version.d.ts.map
package/version.js CHANGED
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.VERSION = void 0;
4
- exports.VERSION = '1.2.0'; // x-release-please-version
4
+ exports.VERSION = '1.3.0'; // x-release-please-version
5
5
  //# sourceMappingURL=version.js.map
package/version.mjs CHANGED
@@ -1,2 +1,2 @@
1
- export const VERSION = '1.2.0'; // x-release-please-version
1
+ export const VERSION = '1.3.0'; // x-release-please-version
2
2
  //# sourceMappingURL=version.mjs.map