@honcho-ai/core 1.5.1 → 1.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +40 -0
- package/index.d.mts +2 -2
- package/index.d.ts +2 -2
- package/index.d.ts.map +1 -1
- package/index.js.map +1 -1
- package/index.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/index.d.ts +1 -1
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs.map +1 -1
- package/resources/workspaces/index.d.ts +4 -3
- package/resources/workspaces/index.d.ts.map +1 -1
- package/resources/workspaces/index.js +4 -1
- package/resources/workspaces/index.js.map +1 -1
- package/resources/workspaces/index.mjs +1 -0
- package/resources/workspaces/index.mjs.map +1 -1
- package/resources/workspaces/observations.d.ts +124 -0
- package/resources/workspaces/observations.d.ts.map +1 -0
- package/resources/workspaces/observations.js +46 -0
- package/resources/workspaces/observations.js.map +1 -0
- package/resources/workspaces/observations.mjs +41 -0
- package/resources/workspaces/observations.mjs.map +1 -0
- package/resources/workspaces/peers/index.d.ts +1 -1
- package/resources/workspaces/peers/index.d.ts.map +1 -1
- package/resources/workspaces/peers/index.js.map +1 -1
- package/resources/workspaces/peers/index.mjs.map +1 -1
- package/resources/workspaces/peers/peers.d.ts +190 -5
- package/resources/workspaces/peers/peers.d.ts.map +1 -1
- package/resources/workspaces/peers/peers.js +20 -0
- package/resources/workspaces/peers/peers.js.map +1 -1
- package/resources/workspaces/peers/peers.mjs +20 -0
- package/resources/workspaces/peers/peers.mjs.map +1 -1
- package/resources/workspaces/sessions/index.d.ts +1 -1
- package/resources/workspaces/sessions/index.d.ts.map +1 -1
- package/resources/workspaces/sessions/index.js.map +1 -1
- package/resources/workspaces/sessions/index.mjs.map +1 -1
- package/resources/workspaces/sessions/messages.d.ts +31 -1
- package/resources/workspaces/sessions/messages.d.ts.map +1 -1
- package/resources/workspaces/sessions/messages.js +1 -1
- package/resources/workspaces/sessions/messages.js.map +1 -1
- package/resources/workspaces/sessions/messages.mjs +1 -1
- package/resources/workspaces/sessions/messages.mjs.map +1 -1
- package/resources/workspaces/sessions/peers.d.ts +4 -6
- package/resources/workspaces/sessions/peers.d.ts.map +1 -1
- package/resources/workspaces/sessions/peers.js.map +1 -1
- package/resources/workspaces/sessions/peers.mjs.map +1 -1
- package/resources/workspaces/sessions/sessions.d.ts +77 -10
- package/resources/workspaces/sessions/sessions.d.ts.map +1 -1
- package/resources/workspaces/sessions/sessions.js +7 -1
- package/resources/workspaces/sessions/sessions.js.map +1 -1
- package/resources/workspaces/sessions/sessions.mjs +7 -1
- package/resources/workspaces/sessions/sessions.mjs.map +1 -1
- package/resources/workspaces/workspaces.d.ts +116 -11
- package/resources/workspaces/workspaces.d.ts.map +1 -1
- package/resources/workspaces/workspaces.js +18 -0
- package/resources/workspaces/workspaces.js.map +1 -1
- package/resources/workspaces/workspaces.mjs +18 -0
- package/resources/workspaces/workspaces.mjs.map +1 -1
- package/src/index.ts +12 -0
- package/src/resources/index.ts +6 -0
- package/src/resources/workspaces/index.ts +22 -1
- package/src/resources/workspaces/observations.ts +190 -0
- package/src/resources/workspaces/peers/index.ts +4 -1
- package/src/resources/workspaces/peers/peers.ts +255 -5
- package/src/resources/workspaces/sessions/index.ts +1 -0
- package/src/resources/workspaces/sessions/messages.ts +37 -1
- package/src/resources/workspaces/sessions/peers.ts +4 -6
- package/src/resources/workspaces/sessions/sessions.ts +87 -5
- package/src/resources/workspaces/workspaces.ts +175 -3
- package/src/version.ts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -3,11 +3,12 @@
|
|
|
3
3
|
import { APIResource } from "../../../resource.js";
|
|
4
4
|
import { isRequestOptions } from "../../../core.js";
|
|
5
5
|
import * as Core from "../../../core.js";
|
|
6
|
+
import * as WorkspacesAPI from "../workspaces.js";
|
|
6
7
|
import { Page, type PageParams } from "../../../pagination.js";
|
|
7
8
|
|
|
8
9
|
export class Messages extends APIResource {
|
|
9
10
|
/**
|
|
10
|
-
*
|
|
11
|
+
* Add new message(s) to a session.
|
|
11
12
|
*/
|
|
12
13
|
create(
|
|
13
14
|
workspaceId: string,
|
|
@@ -125,11 +126,40 @@ export interface MessageCreate {
|
|
|
125
126
|
|
|
126
127
|
peer_id: string;
|
|
127
128
|
|
|
129
|
+
/**
|
|
130
|
+
* The set of options that can be in a message DB-level configuration dictionary.
|
|
131
|
+
*
|
|
132
|
+
* All fields are optional. Message-level configuration overrides all other
|
|
133
|
+
* configurations.
|
|
134
|
+
*/
|
|
135
|
+
configuration?: MessageCreate.Configuration | null;
|
|
136
|
+
|
|
128
137
|
created_at?: string | null;
|
|
129
138
|
|
|
130
139
|
metadata?: { [key: string]: unknown } | null;
|
|
131
140
|
}
|
|
132
141
|
|
|
142
|
+
export namespace MessageCreate {
|
|
143
|
+
/**
|
|
144
|
+
* The set of options that can be in a message DB-level configuration dictionary.
|
|
145
|
+
*
|
|
146
|
+
* All fields are optional. Message-level configuration overrides all other
|
|
147
|
+
* configurations.
|
|
148
|
+
*/
|
|
149
|
+
export interface Configuration {
|
|
150
|
+
/**
|
|
151
|
+
* Configuration for deriver functionality.
|
|
152
|
+
*/
|
|
153
|
+
deriver?: WorkspacesAPI.DeriverConfiguration | null;
|
|
154
|
+
|
|
155
|
+
/**
|
|
156
|
+
* Configuration for peer card functionality. If deriver is disabled, peer cards
|
|
157
|
+
* will also be disabled and these settings will be ignored.
|
|
158
|
+
*/
|
|
159
|
+
peer_card?: WorkspacesAPI.PeerCardConfiguration | null;
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
|
|
133
163
|
export type MessageCreateResponse = Array<Message>;
|
|
134
164
|
|
|
135
165
|
export type MessageUploadResponse = Array<Message>;
|
|
@@ -158,6 +188,12 @@ export interface MessageUploadParams {
|
|
|
158
188
|
file: Core.Uploadable;
|
|
159
189
|
|
|
160
190
|
peer_id: string;
|
|
191
|
+
|
|
192
|
+
configuration?: string | null;
|
|
193
|
+
|
|
194
|
+
created_at?: string | null;
|
|
195
|
+
|
|
196
|
+
metadata?: string | null;
|
|
161
197
|
}
|
|
162
198
|
|
|
163
199
|
Messages.MessagesPage = MessagesPage;
|
|
@@ -117,8 +117,7 @@ export class Peers extends APIResource {
|
|
|
117
117
|
|
|
118
118
|
export interface SessionPeerConfig {
|
|
119
119
|
/**
|
|
120
|
-
* Whether
|
|
121
|
-
* theory-of-mind representation of this peer
|
|
120
|
+
* Whether honcho should form a global theory-of-mind representation of this peer
|
|
122
121
|
*/
|
|
123
122
|
observe_me?: boolean | null;
|
|
124
123
|
|
|
@@ -126,7 +125,7 @@ export interface SessionPeerConfig {
|
|
|
126
125
|
* Whether this peer should form a session-level theory-of-mind representation of
|
|
127
126
|
* other peers in the session
|
|
128
127
|
*/
|
|
129
|
-
observe_others?: boolean;
|
|
128
|
+
observe_others?: boolean | null;
|
|
130
129
|
}
|
|
131
130
|
|
|
132
131
|
export type PeerSetConfigResponse = unknown;
|
|
@@ -141,8 +140,7 @@ export type PeerSetParams = { [key: string]: SessionPeerConfig };
|
|
|
141
140
|
|
|
142
141
|
export interface PeerSetConfigParams {
|
|
143
142
|
/**
|
|
144
|
-
* Whether
|
|
145
|
-
* theory-of-mind representation of this peer
|
|
143
|
+
* Whether honcho should form a global theory-of-mind representation of this peer
|
|
146
144
|
*/
|
|
147
145
|
observe_me?: boolean | null;
|
|
148
146
|
|
|
@@ -150,7 +148,7 @@ export interface PeerSetConfigParams {
|
|
|
150
148
|
* Whether this peer should form a session-level theory-of-mind representation of
|
|
151
149
|
* other peers in the session
|
|
152
150
|
*/
|
|
153
|
-
observe_others?: boolean;
|
|
151
|
+
observe_others?: boolean | null;
|
|
154
152
|
}
|
|
155
153
|
|
|
156
154
|
export declare namespace Peers {
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
import { APIResource } from "../../../resource.js";
|
|
4
4
|
import { isRequestOptions } from "../../../core.js";
|
|
5
5
|
import * as Core from "../../../core.js";
|
|
6
|
+
import * as WorkspacesAPI from "../workspaces.js";
|
|
6
7
|
import * as MessagesAPI from "./messages.js";
|
|
7
8
|
import {
|
|
8
9
|
Message,
|
|
@@ -72,7 +73,13 @@ export class Sessions extends APIResource {
|
|
|
72
73
|
}
|
|
73
74
|
|
|
74
75
|
/**
|
|
75
|
-
* Delete a session
|
|
76
|
+
* Delete a session and all associated data.
|
|
77
|
+
*
|
|
78
|
+
* The session is marked as inactive immediately and returns 202 Accepted. The
|
|
79
|
+
* actual deletion of all related data (messages, embeddings, documents, etc.)
|
|
80
|
+
* happens asynchronously via the queue with retry support.
|
|
81
|
+
*
|
|
82
|
+
* This action cannot be undone.
|
|
76
83
|
*/
|
|
77
84
|
delete(workspaceId: string, sessionId: string, options?: Core.RequestOptions): Core.APIPromise<unknown> {
|
|
78
85
|
return this._client.delete(`/v2/workspaces/${workspaceId}/sessions/${sessionId}`, options);
|
|
@@ -197,6 +204,38 @@ export interface Session {
|
|
|
197
204
|
metadata?: { [key: string]: unknown };
|
|
198
205
|
}
|
|
199
206
|
|
|
207
|
+
/**
|
|
208
|
+
* The set of options that can be in a session DB-level configuration dictionary.
|
|
209
|
+
*
|
|
210
|
+
* All fields are optional. Session-level configuration overrides workspace-level
|
|
211
|
+
* configuration, which overrides global configuration.
|
|
212
|
+
*/
|
|
213
|
+
export interface SessionConfiguration {
|
|
214
|
+
/**
|
|
215
|
+
* Configuration for deriver functionality.
|
|
216
|
+
*/
|
|
217
|
+
deriver?: WorkspacesAPI.DeriverConfiguration | null;
|
|
218
|
+
|
|
219
|
+
/**
|
|
220
|
+
* Configuration for dream functionality. If deriver is disabled, dreams will also
|
|
221
|
+
* be disabled and these settings will be ignored.
|
|
222
|
+
*/
|
|
223
|
+
dream?: WorkspacesAPI.DreamConfiguration | null;
|
|
224
|
+
|
|
225
|
+
/**
|
|
226
|
+
* Configuration for peer card functionality. If deriver is disabled, peer cards
|
|
227
|
+
* will also be disabled and these settings will be ignored.
|
|
228
|
+
*/
|
|
229
|
+
peer_card?: WorkspacesAPI.PeerCardConfiguration | null;
|
|
230
|
+
|
|
231
|
+
/**
|
|
232
|
+
* Configuration for summary functionality.
|
|
233
|
+
*/
|
|
234
|
+
summary?: WorkspacesAPI.SummaryConfiguration | null;
|
|
235
|
+
|
|
236
|
+
[k: string]: unknown;
|
|
237
|
+
}
|
|
238
|
+
|
|
200
239
|
export interface Summary {
|
|
201
240
|
/**
|
|
202
241
|
* The summary text
|
|
@@ -310,7 +349,7 @@ export namespace SessionGetContextResponse {
|
|
|
310
349
|
|
|
311
350
|
created_at: string;
|
|
312
351
|
|
|
313
|
-
message_ids: Array<
|
|
352
|
+
message_ids: Array<number>;
|
|
314
353
|
|
|
315
354
|
session_name: string;
|
|
316
355
|
|
|
@@ -331,7 +370,7 @@ export namespace SessionGetContextResponse {
|
|
|
331
370
|
|
|
332
371
|
created_at: string;
|
|
333
372
|
|
|
334
|
-
message_ids: Array<
|
|
373
|
+
message_ids: Array<number>;
|
|
335
374
|
|
|
336
375
|
session_name: string;
|
|
337
376
|
}
|
|
@@ -355,7 +394,13 @@ export interface SessionSummariesResponse {
|
|
|
355
394
|
}
|
|
356
395
|
|
|
357
396
|
export interface SessionUpdateParams {
|
|
358
|
-
|
|
397
|
+
/**
|
|
398
|
+
* The set of options that can be in a session DB-level configuration dictionary.
|
|
399
|
+
*
|
|
400
|
+
* All fields are optional. Session-level configuration overrides workspace-level
|
|
401
|
+
* configuration, which overrides global configuration.
|
|
402
|
+
*/
|
|
403
|
+
configuration?: SessionConfiguration | null;
|
|
359
404
|
|
|
360
405
|
metadata?: { [key: string]: unknown } | null;
|
|
361
406
|
}
|
|
@@ -375,11 +420,29 @@ export interface SessionCloneParams {
|
|
|
375
420
|
}
|
|
376
421
|
|
|
377
422
|
export interface SessionGetContextParams {
|
|
423
|
+
/**
|
|
424
|
+
* Only used if `last_message` is provided. Whether to include the most derived
|
|
425
|
+
* observations in the representation
|
|
426
|
+
*/
|
|
427
|
+
include_most_derived?: boolean;
|
|
428
|
+
|
|
378
429
|
/**
|
|
379
430
|
* The most recent message, used to fetch semantically relevant observations
|
|
380
431
|
*/
|
|
381
432
|
last_message?: string | null;
|
|
382
433
|
|
|
434
|
+
/**
|
|
435
|
+
* Only used if `last_message` is provided. Whether to limit the representation to
|
|
436
|
+
* the session (as opposed to everything known about the target peer)
|
|
437
|
+
*/
|
|
438
|
+
limit_to_session?: boolean;
|
|
439
|
+
|
|
440
|
+
/**
|
|
441
|
+
* Only used if `last_message` is provided. The maximum number of observations to
|
|
442
|
+
* include in the representation
|
|
443
|
+
*/
|
|
444
|
+
max_observations?: number | null;
|
|
445
|
+
|
|
383
446
|
/**
|
|
384
447
|
* A peer to get context for. If given, response will attempt to include
|
|
385
448
|
* representation and card from the perspective of that peer. Must be provided with
|
|
@@ -395,6 +458,18 @@ export interface SessionGetContextParams {
|
|
|
395
458
|
*/
|
|
396
459
|
peer_target?: string | null;
|
|
397
460
|
|
|
461
|
+
/**
|
|
462
|
+
* Only used if `last_message` is provided. The maximum distance to search for
|
|
463
|
+
* semantically relevant observations
|
|
464
|
+
*/
|
|
465
|
+
search_max_distance?: number | null;
|
|
466
|
+
|
|
467
|
+
/**
|
|
468
|
+
* Only used if `last_message` is provided. The number of semantic-search-retrieved
|
|
469
|
+
* observations to include in the representation
|
|
470
|
+
*/
|
|
471
|
+
search_top_k?: number | null;
|
|
472
|
+
|
|
398
473
|
/**
|
|
399
474
|
* Whether or not to include a summary _if_ one is available for the session
|
|
400
475
|
*/
|
|
@@ -411,7 +486,13 @@ export interface SessionGetContextParams {
|
|
|
411
486
|
export interface SessionGetOrCreateParams {
|
|
412
487
|
id: string;
|
|
413
488
|
|
|
414
|
-
|
|
489
|
+
/**
|
|
490
|
+
* The set of options that can be in a session DB-level configuration dictionary.
|
|
491
|
+
*
|
|
492
|
+
* All fields are optional. Session-level configuration overrides workspace-level
|
|
493
|
+
* configuration, which overrides global configuration.
|
|
494
|
+
*/
|
|
495
|
+
configuration?: SessionConfiguration | null;
|
|
415
496
|
|
|
416
497
|
metadata?: { [key: string]: unknown } | null;
|
|
417
498
|
|
|
@@ -443,6 +524,7 @@ Sessions.Peers = Peers;
|
|
|
443
524
|
export declare namespace Sessions {
|
|
444
525
|
export {
|
|
445
526
|
type Session as Session,
|
|
527
|
+
type SessionConfiguration as SessionConfiguration,
|
|
446
528
|
type Summary as Summary,
|
|
447
529
|
type SessionDeleteResponse as SessionDeleteResponse,
|
|
448
530
|
type SessionGetContextResponse as SessionGetContextResponse,
|
|
@@ -3,6 +3,18 @@
|
|
|
3
3
|
import { APIResource } from "../../resource.js";
|
|
4
4
|
import { isRequestOptions } from "../../core.js";
|
|
5
5
|
import * as Core from "../../core.js";
|
|
6
|
+
import * as ObservationsAPI from "./observations.js";
|
|
7
|
+
import {
|
|
8
|
+
ObservationDeleteResponse,
|
|
9
|
+
ObservationGet,
|
|
10
|
+
ObservationListParams,
|
|
11
|
+
ObservationQuery,
|
|
12
|
+
ObservationQueryParams,
|
|
13
|
+
ObservationQueryResponse,
|
|
14
|
+
Observations,
|
|
15
|
+
ObservationsPage,
|
|
16
|
+
PageObservation,
|
|
17
|
+
} from "./observations.js";
|
|
6
18
|
import * as WebhooksAPI from "./webhooks.js";
|
|
7
19
|
import {
|
|
8
20
|
WebhookDeleteResponse,
|
|
@@ -22,10 +34,13 @@ import {
|
|
|
22
34
|
PeerCardResponse,
|
|
23
35
|
PeerChatParams,
|
|
24
36
|
PeerChatResponse,
|
|
37
|
+
PeerGetContextParams,
|
|
38
|
+
PeerGetContextResponse,
|
|
25
39
|
PeerGetOrCreateParams,
|
|
26
40
|
PeerListParams,
|
|
27
41
|
PeerSearchParams,
|
|
28
42
|
PeerSearchResponse,
|
|
43
|
+
PeerSetCardParams,
|
|
29
44
|
PeerUpdateParams,
|
|
30
45
|
PeerWorkingRepresentationParams,
|
|
31
46
|
PeerWorkingRepresentationResponse,
|
|
@@ -38,6 +53,7 @@ import * as SessionsAPI from "./sessions/sessions.js";
|
|
|
38
53
|
import {
|
|
39
54
|
Session,
|
|
40
55
|
SessionCloneParams,
|
|
56
|
+
SessionConfiguration,
|
|
41
57
|
SessionDeleteResponse,
|
|
42
58
|
SessionGetContextParams,
|
|
43
59
|
SessionGetContextResponse,
|
|
@@ -54,6 +70,7 @@ import {
|
|
|
54
70
|
import { Page, type PageParams } from "../../pagination.js";
|
|
55
71
|
|
|
56
72
|
export class Workspaces extends APIResource {
|
|
73
|
+
observations: ObservationsAPI.Observations = new ObservationsAPI.Observations(this._client);
|
|
57
74
|
peers: PeersAPI.Peers = new PeersAPI.Peers(this._client);
|
|
58
75
|
sessions: SessionsAPI.Sessions = new SessionsAPI.Sessions(this._client);
|
|
59
76
|
webhooks: WebhooksAPI.Webhooks = new WebhooksAPI.Webhooks(this._client);
|
|
@@ -141,10 +158,42 @@ export class Workspaces extends APIResource {
|
|
|
141
158
|
): Core.APIPromise<WorkspaceSearchResponse> {
|
|
142
159
|
return this._client.post(`/v2/workspaces/${workspaceId}/search`, { body, ...options });
|
|
143
160
|
}
|
|
161
|
+
|
|
162
|
+
/**
|
|
163
|
+
* Manually trigger a dream task immediately for a specific collection.
|
|
164
|
+
*
|
|
165
|
+
* This endpoint bypasses all automatic dream conditions (document threshold,
|
|
166
|
+
* minimum hours between dreams) and executes the dream task immediately without
|
|
167
|
+
* delay.
|
|
168
|
+
*/
|
|
169
|
+
triggerDream(
|
|
170
|
+
workspaceId: string,
|
|
171
|
+
body: WorkspaceTriggerDreamParams,
|
|
172
|
+
options?: Core.RequestOptions,
|
|
173
|
+
): Core.APIPromise<void> {
|
|
174
|
+
return this._client.post(`/v2/workspaces/${workspaceId}/trigger_dream`, {
|
|
175
|
+
body,
|
|
176
|
+
...options,
|
|
177
|
+
headers: { Accept: '*/*', ...options?.headers },
|
|
178
|
+
});
|
|
179
|
+
}
|
|
144
180
|
}
|
|
145
181
|
|
|
146
182
|
export class WorkspacesPage extends Page<Workspace> {}
|
|
147
183
|
|
|
184
|
+
export interface DeriverConfiguration {
|
|
185
|
+
/**
|
|
186
|
+
* TODO: currently unused. Custom instructions to use for the deriver on this
|
|
187
|
+
* workspace/session/message.
|
|
188
|
+
*/
|
|
189
|
+
custom_instructions?: string | null;
|
|
190
|
+
|
|
191
|
+
/**
|
|
192
|
+
* Whether to enable deriver functionality.
|
|
193
|
+
*/
|
|
194
|
+
enabled?: boolean | null;
|
|
195
|
+
}
|
|
196
|
+
|
|
148
197
|
export interface DeriverStatus {
|
|
149
198
|
/**
|
|
150
199
|
* Completed work units
|
|
@@ -201,6 +250,14 @@ export namespace DeriverStatus {
|
|
|
201
250
|
}
|
|
202
251
|
}
|
|
203
252
|
|
|
253
|
+
export interface DreamConfiguration {
|
|
254
|
+
/**
|
|
255
|
+
* Whether to enable dream functionality. If deriver is disabled, dreams will also
|
|
256
|
+
* be disabled and this setting will be ignored.
|
|
257
|
+
*/
|
|
258
|
+
enabled?: boolean | null;
|
|
259
|
+
}
|
|
260
|
+
|
|
204
261
|
export interface MessageSearchOptions {
|
|
205
262
|
/**
|
|
206
263
|
* Search query
|
|
@@ -218,6 +275,37 @@ export interface MessageSearchOptions {
|
|
|
218
275
|
limit?: number;
|
|
219
276
|
}
|
|
220
277
|
|
|
278
|
+
export interface PeerCardConfiguration {
|
|
279
|
+
/**
|
|
280
|
+
* Whether to generate peer card based on content.
|
|
281
|
+
*/
|
|
282
|
+
create?: boolean | null;
|
|
283
|
+
|
|
284
|
+
/**
|
|
285
|
+
* Whether to use peer card related to this peer during deriver process.
|
|
286
|
+
*/
|
|
287
|
+
use?: boolean | null;
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
export interface SummaryConfiguration {
|
|
291
|
+
/**
|
|
292
|
+
* Whether to enable summary functionality.
|
|
293
|
+
*/
|
|
294
|
+
enabled?: boolean | null;
|
|
295
|
+
|
|
296
|
+
/**
|
|
297
|
+
* Number of messages per long summary. Must be positive, greater than or equal to
|
|
298
|
+
* 20, and greater than messages_per_short_summary.
|
|
299
|
+
*/
|
|
300
|
+
messages_per_long_summary?: number | null;
|
|
301
|
+
|
|
302
|
+
/**
|
|
303
|
+
* Number of messages per short summary. Must be positive, greater than or equal to
|
|
304
|
+
* 10, and less than messages_per_long_summary.
|
|
305
|
+
*/
|
|
306
|
+
messages_per_short_summary?: number | null;
|
|
307
|
+
}
|
|
308
|
+
|
|
221
309
|
export interface Workspace {
|
|
222
310
|
id: string;
|
|
223
311
|
|
|
@@ -228,10 +316,48 @@ export interface Workspace {
|
|
|
228
316
|
metadata?: { [key: string]: unknown };
|
|
229
317
|
}
|
|
230
318
|
|
|
319
|
+
/**
|
|
320
|
+
* The set of options that can be in a workspace DB-level configuration dictionary.
|
|
321
|
+
*
|
|
322
|
+
* All fields are optional. Session-level configuration overrides workspace-level
|
|
323
|
+
* configuration, which overrides global configuration.
|
|
324
|
+
*/
|
|
325
|
+
export interface WorkspaceConfiguration {
|
|
326
|
+
/**
|
|
327
|
+
* Configuration for deriver functionality.
|
|
328
|
+
*/
|
|
329
|
+
deriver?: DeriverConfiguration | null;
|
|
330
|
+
|
|
331
|
+
/**
|
|
332
|
+
* Configuration for dream functionality. If deriver is disabled, dreams will also
|
|
333
|
+
* be disabled and these settings will be ignored.
|
|
334
|
+
*/
|
|
335
|
+
dream?: DreamConfiguration | null;
|
|
336
|
+
|
|
337
|
+
/**
|
|
338
|
+
* Configuration for peer card functionality. If deriver is disabled, peer cards
|
|
339
|
+
* will also be disabled and these settings will be ignored.
|
|
340
|
+
*/
|
|
341
|
+
peer_card?: PeerCardConfiguration | null;
|
|
342
|
+
|
|
343
|
+
/**
|
|
344
|
+
* Configuration for summary functionality.
|
|
345
|
+
*/
|
|
346
|
+
summary?: SummaryConfiguration | null;
|
|
347
|
+
|
|
348
|
+
[k: string]: unknown;
|
|
349
|
+
}
|
|
350
|
+
|
|
231
351
|
export type WorkspaceSearchResponse = Array<MessagesAPI.Message>;
|
|
232
352
|
|
|
233
353
|
export interface WorkspaceUpdateParams {
|
|
234
|
-
|
|
354
|
+
/**
|
|
355
|
+
* The set of options that can be in a workspace DB-level configuration dictionary.
|
|
356
|
+
*
|
|
357
|
+
* All fields are optional. Session-level configuration overrides workspace-level
|
|
358
|
+
* configuration, which overrides global configuration.
|
|
359
|
+
*/
|
|
360
|
+
configuration?: WorkspaceConfiguration | null;
|
|
235
361
|
|
|
236
362
|
metadata?: { [key: string]: unknown } | null;
|
|
237
363
|
}
|
|
@@ -263,7 +389,13 @@ export interface WorkspaceDeriverStatusParams {
|
|
|
263
389
|
export interface WorkspaceGetOrCreateParams {
|
|
264
390
|
id: string;
|
|
265
391
|
|
|
266
|
-
|
|
392
|
+
/**
|
|
393
|
+
* The set of options that can be in a workspace DB-level configuration dictionary.
|
|
394
|
+
*
|
|
395
|
+
* All fields are optional. Session-level configuration overrides workspace-level
|
|
396
|
+
* configuration, which overrides global configuration.
|
|
397
|
+
*/
|
|
398
|
+
configuration?: WorkspaceConfiguration;
|
|
267
399
|
|
|
268
400
|
metadata?: { [key: string]: unknown };
|
|
269
401
|
}
|
|
@@ -285,7 +417,25 @@ export interface WorkspaceSearchParams {
|
|
|
285
417
|
limit?: number;
|
|
286
418
|
}
|
|
287
419
|
|
|
420
|
+
export interface WorkspaceTriggerDreamParams {
|
|
421
|
+
/**
|
|
422
|
+
* Type of dream to trigger
|
|
423
|
+
*/
|
|
424
|
+
dream_type: 'consolidate' | 'agent';
|
|
425
|
+
|
|
426
|
+
/**
|
|
427
|
+
* Observer peer name
|
|
428
|
+
*/
|
|
429
|
+
observer: string;
|
|
430
|
+
|
|
431
|
+
/**
|
|
432
|
+
* Observed peer name (defaults to observer if not specified)
|
|
433
|
+
*/
|
|
434
|
+
observed?: string | null;
|
|
435
|
+
}
|
|
436
|
+
|
|
288
437
|
Workspaces.WorkspacesPage = WorkspacesPage;
|
|
438
|
+
Workspaces.ObservationsPage = ObservationsPage;
|
|
289
439
|
Workspaces.Peers = Peers;
|
|
290
440
|
Workspaces.PeersPage = PeersPage;
|
|
291
441
|
Workspaces.Sessions = SessionsAPISessions;
|
|
@@ -295,9 +445,14 @@ Workspaces.WebhookEndpointsPage = WebhookEndpointsPage;
|
|
|
295
445
|
|
|
296
446
|
export declare namespace Workspaces {
|
|
297
447
|
export {
|
|
448
|
+
type DeriverConfiguration as DeriverConfiguration,
|
|
298
449
|
type DeriverStatus as DeriverStatus,
|
|
450
|
+
type DreamConfiguration as DreamConfiguration,
|
|
299
451
|
type MessageSearchOptions as MessageSearchOptions,
|
|
452
|
+
type PeerCardConfiguration as PeerCardConfiguration,
|
|
453
|
+
type SummaryConfiguration as SummaryConfiguration,
|
|
300
454
|
type Workspace as Workspace,
|
|
455
|
+
type WorkspaceConfiguration as WorkspaceConfiguration,
|
|
301
456
|
type WorkspaceSearchResponse as WorkspaceSearchResponse,
|
|
302
457
|
WorkspacesPage as WorkspacesPage,
|
|
303
458
|
type WorkspaceUpdateParams as WorkspaceUpdateParams,
|
|
@@ -305,6 +460,19 @@ export declare namespace Workspaces {
|
|
|
305
460
|
type WorkspaceDeriverStatusParams as WorkspaceDeriverStatusParams,
|
|
306
461
|
type WorkspaceGetOrCreateParams as WorkspaceGetOrCreateParams,
|
|
307
462
|
type WorkspaceSearchParams as WorkspaceSearchParams,
|
|
463
|
+
type WorkspaceTriggerDreamParams as WorkspaceTriggerDreamParams,
|
|
464
|
+
};
|
|
465
|
+
|
|
466
|
+
export {
|
|
467
|
+
type Observations as Observations,
|
|
468
|
+
type ObservationGet as ObservationGet,
|
|
469
|
+
type ObservationQuery as ObservationQuery,
|
|
470
|
+
type PageObservation as PageObservation,
|
|
471
|
+
type ObservationDeleteResponse as ObservationDeleteResponse,
|
|
472
|
+
type ObservationQueryResponse as ObservationQueryResponse,
|
|
473
|
+
ObservationsPage as ObservationsPage,
|
|
474
|
+
type ObservationListParams as ObservationListParams,
|
|
475
|
+
type ObservationQueryParams as ObservationQueryParams,
|
|
308
476
|
};
|
|
309
477
|
|
|
310
478
|
export {
|
|
@@ -312,9 +480,10 @@ export declare namespace Workspaces {
|
|
|
312
480
|
type PagePeer as PagePeer,
|
|
313
481
|
type PageSession as PageSession,
|
|
314
482
|
type Peer as Peer,
|
|
315
|
-
type SessionGet as SessionGet,
|
|
316
483
|
type PeerCardResponse as PeerCardResponse,
|
|
484
|
+
type SessionGet as SessionGet,
|
|
317
485
|
type PeerChatResponse as PeerChatResponse,
|
|
486
|
+
type PeerGetContextResponse as PeerGetContextResponse,
|
|
318
487
|
type PeerSearchResponse as PeerSearchResponse,
|
|
319
488
|
type PeerWorkingRepresentationResponse as PeerWorkingRepresentationResponse,
|
|
320
489
|
PeersPage as PeersPage,
|
|
@@ -322,14 +491,17 @@ export declare namespace Workspaces {
|
|
|
322
491
|
type PeerListParams as PeerListParams,
|
|
323
492
|
type PeerCardParams as PeerCardParams,
|
|
324
493
|
type PeerChatParams as PeerChatParams,
|
|
494
|
+
type PeerGetContextParams as PeerGetContextParams,
|
|
325
495
|
type PeerGetOrCreateParams as PeerGetOrCreateParams,
|
|
326
496
|
type PeerSearchParams as PeerSearchParams,
|
|
497
|
+
type PeerSetCardParams as PeerSetCardParams,
|
|
327
498
|
type PeerWorkingRepresentationParams as PeerWorkingRepresentationParams,
|
|
328
499
|
};
|
|
329
500
|
|
|
330
501
|
export {
|
|
331
502
|
SessionsAPISessions as Sessions,
|
|
332
503
|
type Session as Session,
|
|
504
|
+
type SessionConfiguration as SessionConfiguration,
|
|
333
505
|
type Summary as Summary,
|
|
334
506
|
type SessionDeleteResponse as SessionDeleteResponse,
|
|
335
507
|
type SessionGetContextResponse as SessionGetContextResponse,
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '1.
|
|
1
|
+
export const VERSION = '1.6.0'; // x-release-please-version
|
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "1.
|
|
1
|
+
export declare const VERSION = "1.6.0";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/version.js
CHANGED
package/version.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '1.
|
|
1
|
+
export const VERSION = '1.6.0'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|