@honcho-ai/core 1.5.1 → 1.6.1
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 +48 -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 +156 -0
- package/resources/workspaces/observations.d.ts.map +1 -0
- package/resources/workspaces/observations.js +58 -0
- package/resources/workspaces/observations.js.map +1 -0
- package/resources/workspaces/observations.mjs +53 -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 +25 -1
- package/src/resources/workspaces/observations.ts +238 -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 +181 -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,21 @@
|
|
|
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
|
+
ObservationCreate,
|
|
9
|
+
ObservationCreateParams,
|
|
10
|
+
ObservationCreateResponse,
|
|
11
|
+
ObservationDeleteResponse,
|
|
12
|
+
ObservationGet,
|
|
13
|
+
ObservationListParams,
|
|
14
|
+
ObservationQuery,
|
|
15
|
+
ObservationQueryParams,
|
|
16
|
+
ObservationQueryResponse,
|
|
17
|
+
Observations,
|
|
18
|
+
ObservationsPage,
|
|
19
|
+
PageObservation,
|
|
20
|
+
} from "./observations.js";
|
|
6
21
|
import * as WebhooksAPI from "./webhooks.js";
|
|
7
22
|
import {
|
|
8
23
|
WebhookDeleteResponse,
|
|
@@ -22,10 +37,13 @@ import {
|
|
|
22
37
|
PeerCardResponse,
|
|
23
38
|
PeerChatParams,
|
|
24
39
|
PeerChatResponse,
|
|
40
|
+
PeerGetContextParams,
|
|
41
|
+
PeerGetContextResponse,
|
|
25
42
|
PeerGetOrCreateParams,
|
|
26
43
|
PeerListParams,
|
|
27
44
|
PeerSearchParams,
|
|
28
45
|
PeerSearchResponse,
|
|
46
|
+
PeerSetCardParams,
|
|
29
47
|
PeerUpdateParams,
|
|
30
48
|
PeerWorkingRepresentationParams,
|
|
31
49
|
PeerWorkingRepresentationResponse,
|
|
@@ -38,6 +56,7 @@ import * as SessionsAPI from "./sessions/sessions.js";
|
|
|
38
56
|
import {
|
|
39
57
|
Session,
|
|
40
58
|
SessionCloneParams,
|
|
59
|
+
SessionConfiguration,
|
|
41
60
|
SessionDeleteResponse,
|
|
42
61
|
SessionGetContextParams,
|
|
43
62
|
SessionGetContextResponse,
|
|
@@ -54,6 +73,7 @@ import {
|
|
|
54
73
|
import { Page, type PageParams } from "../../pagination.js";
|
|
55
74
|
|
|
56
75
|
export class Workspaces extends APIResource {
|
|
76
|
+
observations: ObservationsAPI.Observations = new ObservationsAPI.Observations(this._client);
|
|
57
77
|
peers: PeersAPI.Peers = new PeersAPI.Peers(this._client);
|
|
58
78
|
sessions: SessionsAPI.Sessions = new SessionsAPI.Sessions(this._client);
|
|
59
79
|
webhooks: WebhooksAPI.Webhooks = new WebhooksAPI.Webhooks(this._client);
|
|
@@ -141,10 +161,42 @@ export class Workspaces extends APIResource {
|
|
|
141
161
|
): Core.APIPromise<WorkspaceSearchResponse> {
|
|
142
162
|
return this._client.post(`/v2/workspaces/${workspaceId}/search`, { body, ...options });
|
|
143
163
|
}
|
|
164
|
+
|
|
165
|
+
/**
|
|
166
|
+
* Manually trigger a dream task immediately for a specific collection.
|
|
167
|
+
*
|
|
168
|
+
* This endpoint bypasses all automatic dream conditions (document threshold,
|
|
169
|
+
* minimum hours between dreams) and executes the dream task immediately without
|
|
170
|
+
* delay.
|
|
171
|
+
*/
|
|
172
|
+
triggerDream(
|
|
173
|
+
workspaceId: string,
|
|
174
|
+
body: WorkspaceTriggerDreamParams,
|
|
175
|
+
options?: Core.RequestOptions,
|
|
176
|
+
): Core.APIPromise<void> {
|
|
177
|
+
return this._client.post(`/v2/workspaces/${workspaceId}/trigger_dream`, {
|
|
178
|
+
body,
|
|
179
|
+
...options,
|
|
180
|
+
headers: { Accept: '*/*', ...options?.headers },
|
|
181
|
+
});
|
|
182
|
+
}
|
|
144
183
|
}
|
|
145
184
|
|
|
146
185
|
export class WorkspacesPage extends Page<Workspace> {}
|
|
147
186
|
|
|
187
|
+
export interface DeriverConfiguration {
|
|
188
|
+
/**
|
|
189
|
+
* TODO: currently unused. Custom instructions to use for the deriver on this
|
|
190
|
+
* workspace/session/message.
|
|
191
|
+
*/
|
|
192
|
+
custom_instructions?: string | null;
|
|
193
|
+
|
|
194
|
+
/**
|
|
195
|
+
* Whether to enable deriver functionality.
|
|
196
|
+
*/
|
|
197
|
+
enabled?: boolean | null;
|
|
198
|
+
}
|
|
199
|
+
|
|
148
200
|
export interface DeriverStatus {
|
|
149
201
|
/**
|
|
150
202
|
* Completed work units
|
|
@@ -201,6 +253,14 @@ export namespace DeriverStatus {
|
|
|
201
253
|
}
|
|
202
254
|
}
|
|
203
255
|
|
|
256
|
+
export interface DreamConfiguration {
|
|
257
|
+
/**
|
|
258
|
+
* Whether to enable dream functionality. If deriver is disabled, dreams will also
|
|
259
|
+
* be disabled and this setting will be ignored.
|
|
260
|
+
*/
|
|
261
|
+
enabled?: boolean | null;
|
|
262
|
+
}
|
|
263
|
+
|
|
204
264
|
export interface MessageSearchOptions {
|
|
205
265
|
/**
|
|
206
266
|
* Search query
|
|
@@ -218,6 +278,37 @@ export interface MessageSearchOptions {
|
|
|
218
278
|
limit?: number;
|
|
219
279
|
}
|
|
220
280
|
|
|
281
|
+
export interface PeerCardConfiguration {
|
|
282
|
+
/**
|
|
283
|
+
* Whether to generate peer card based on content.
|
|
284
|
+
*/
|
|
285
|
+
create?: boolean | null;
|
|
286
|
+
|
|
287
|
+
/**
|
|
288
|
+
* Whether to use peer card related to this peer during deriver process.
|
|
289
|
+
*/
|
|
290
|
+
use?: boolean | null;
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
export interface SummaryConfiguration {
|
|
294
|
+
/**
|
|
295
|
+
* Whether to enable summary functionality.
|
|
296
|
+
*/
|
|
297
|
+
enabled?: boolean | null;
|
|
298
|
+
|
|
299
|
+
/**
|
|
300
|
+
* Number of messages per long summary. Must be positive, greater than or equal to
|
|
301
|
+
* 20, and greater than messages_per_short_summary.
|
|
302
|
+
*/
|
|
303
|
+
messages_per_long_summary?: number | null;
|
|
304
|
+
|
|
305
|
+
/**
|
|
306
|
+
* Number of messages per short summary. Must be positive, greater than or equal to
|
|
307
|
+
* 10, and less than messages_per_long_summary.
|
|
308
|
+
*/
|
|
309
|
+
messages_per_short_summary?: number | null;
|
|
310
|
+
}
|
|
311
|
+
|
|
221
312
|
export interface Workspace {
|
|
222
313
|
id: string;
|
|
223
314
|
|
|
@@ -228,10 +319,48 @@ export interface Workspace {
|
|
|
228
319
|
metadata?: { [key: string]: unknown };
|
|
229
320
|
}
|
|
230
321
|
|
|
322
|
+
/**
|
|
323
|
+
* The set of options that can be in a workspace DB-level configuration dictionary.
|
|
324
|
+
*
|
|
325
|
+
* All fields are optional. Session-level configuration overrides workspace-level
|
|
326
|
+
* configuration, which overrides global configuration.
|
|
327
|
+
*/
|
|
328
|
+
export interface WorkspaceConfiguration {
|
|
329
|
+
/**
|
|
330
|
+
* Configuration for deriver functionality.
|
|
331
|
+
*/
|
|
332
|
+
deriver?: DeriverConfiguration | null;
|
|
333
|
+
|
|
334
|
+
/**
|
|
335
|
+
* Configuration for dream functionality. If deriver is disabled, dreams will also
|
|
336
|
+
* be disabled and these settings will be ignored.
|
|
337
|
+
*/
|
|
338
|
+
dream?: DreamConfiguration | null;
|
|
339
|
+
|
|
340
|
+
/**
|
|
341
|
+
* Configuration for peer card functionality. If deriver is disabled, peer cards
|
|
342
|
+
* will also be disabled and these settings will be ignored.
|
|
343
|
+
*/
|
|
344
|
+
peer_card?: PeerCardConfiguration | null;
|
|
345
|
+
|
|
346
|
+
/**
|
|
347
|
+
* Configuration for summary functionality.
|
|
348
|
+
*/
|
|
349
|
+
summary?: SummaryConfiguration | null;
|
|
350
|
+
|
|
351
|
+
[k: string]: unknown;
|
|
352
|
+
}
|
|
353
|
+
|
|
231
354
|
export type WorkspaceSearchResponse = Array<MessagesAPI.Message>;
|
|
232
355
|
|
|
233
356
|
export interface WorkspaceUpdateParams {
|
|
234
|
-
|
|
357
|
+
/**
|
|
358
|
+
* The set of options that can be in a workspace DB-level configuration dictionary.
|
|
359
|
+
*
|
|
360
|
+
* All fields are optional. Session-level configuration overrides workspace-level
|
|
361
|
+
* configuration, which overrides global configuration.
|
|
362
|
+
*/
|
|
363
|
+
configuration?: WorkspaceConfiguration | null;
|
|
235
364
|
|
|
236
365
|
metadata?: { [key: string]: unknown } | null;
|
|
237
366
|
}
|
|
@@ -263,7 +392,13 @@ export interface WorkspaceDeriverStatusParams {
|
|
|
263
392
|
export interface WorkspaceGetOrCreateParams {
|
|
264
393
|
id: string;
|
|
265
394
|
|
|
266
|
-
|
|
395
|
+
/**
|
|
396
|
+
* The set of options that can be in a workspace DB-level configuration dictionary.
|
|
397
|
+
*
|
|
398
|
+
* All fields are optional. Session-level configuration overrides workspace-level
|
|
399
|
+
* configuration, which overrides global configuration.
|
|
400
|
+
*/
|
|
401
|
+
configuration?: WorkspaceConfiguration;
|
|
267
402
|
|
|
268
403
|
metadata?: { [key: string]: unknown };
|
|
269
404
|
}
|
|
@@ -285,7 +420,25 @@ export interface WorkspaceSearchParams {
|
|
|
285
420
|
limit?: number;
|
|
286
421
|
}
|
|
287
422
|
|
|
423
|
+
export interface WorkspaceTriggerDreamParams {
|
|
424
|
+
/**
|
|
425
|
+
* Type of dream to trigger
|
|
426
|
+
*/
|
|
427
|
+
dream_type: 'consolidate' | 'agent';
|
|
428
|
+
|
|
429
|
+
/**
|
|
430
|
+
* Observer peer name
|
|
431
|
+
*/
|
|
432
|
+
observer: string;
|
|
433
|
+
|
|
434
|
+
/**
|
|
435
|
+
* Observed peer name (defaults to observer if not specified)
|
|
436
|
+
*/
|
|
437
|
+
observed?: string | null;
|
|
438
|
+
}
|
|
439
|
+
|
|
288
440
|
Workspaces.WorkspacesPage = WorkspacesPage;
|
|
441
|
+
Workspaces.ObservationsPage = ObservationsPage;
|
|
289
442
|
Workspaces.Peers = Peers;
|
|
290
443
|
Workspaces.PeersPage = PeersPage;
|
|
291
444
|
Workspaces.Sessions = SessionsAPISessions;
|
|
@@ -295,9 +448,14 @@ Workspaces.WebhookEndpointsPage = WebhookEndpointsPage;
|
|
|
295
448
|
|
|
296
449
|
export declare namespace Workspaces {
|
|
297
450
|
export {
|
|
451
|
+
type DeriverConfiguration as DeriverConfiguration,
|
|
298
452
|
type DeriverStatus as DeriverStatus,
|
|
453
|
+
type DreamConfiguration as DreamConfiguration,
|
|
299
454
|
type MessageSearchOptions as MessageSearchOptions,
|
|
455
|
+
type PeerCardConfiguration as PeerCardConfiguration,
|
|
456
|
+
type SummaryConfiguration as SummaryConfiguration,
|
|
300
457
|
type Workspace as Workspace,
|
|
458
|
+
type WorkspaceConfiguration as WorkspaceConfiguration,
|
|
301
459
|
type WorkspaceSearchResponse as WorkspaceSearchResponse,
|
|
302
460
|
WorkspacesPage as WorkspacesPage,
|
|
303
461
|
type WorkspaceUpdateParams as WorkspaceUpdateParams,
|
|
@@ -305,6 +463,22 @@ export declare namespace Workspaces {
|
|
|
305
463
|
type WorkspaceDeriverStatusParams as WorkspaceDeriverStatusParams,
|
|
306
464
|
type WorkspaceGetOrCreateParams as WorkspaceGetOrCreateParams,
|
|
307
465
|
type WorkspaceSearchParams as WorkspaceSearchParams,
|
|
466
|
+
type WorkspaceTriggerDreamParams as WorkspaceTriggerDreamParams,
|
|
467
|
+
};
|
|
468
|
+
|
|
469
|
+
export {
|
|
470
|
+
type Observations as Observations,
|
|
471
|
+
type ObservationCreate as ObservationCreate,
|
|
472
|
+
type ObservationGet as ObservationGet,
|
|
473
|
+
type ObservationQuery as ObservationQuery,
|
|
474
|
+
type PageObservation as PageObservation,
|
|
475
|
+
type ObservationCreateResponse as ObservationCreateResponse,
|
|
476
|
+
type ObservationDeleteResponse as ObservationDeleteResponse,
|
|
477
|
+
type ObservationQueryResponse as ObservationQueryResponse,
|
|
478
|
+
ObservationsPage as ObservationsPage,
|
|
479
|
+
type ObservationCreateParams as ObservationCreateParams,
|
|
480
|
+
type ObservationListParams as ObservationListParams,
|
|
481
|
+
type ObservationQueryParams as ObservationQueryParams,
|
|
308
482
|
};
|
|
309
483
|
|
|
310
484
|
export {
|
|
@@ -312,9 +486,10 @@ export declare namespace Workspaces {
|
|
|
312
486
|
type PagePeer as PagePeer,
|
|
313
487
|
type PageSession as PageSession,
|
|
314
488
|
type Peer as Peer,
|
|
315
|
-
type SessionGet as SessionGet,
|
|
316
489
|
type PeerCardResponse as PeerCardResponse,
|
|
490
|
+
type SessionGet as SessionGet,
|
|
317
491
|
type PeerChatResponse as PeerChatResponse,
|
|
492
|
+
type PeerGetContextResponse as PeerGetContextResponse,
|
|
318
493
|
type PeerSearchResponse as PeerSearchResponse,
|
|
319
494
|
type PeerWorkingRepresentationResponse as PeerWorkingRepresentationResponse,
|
|
320
495
|
PeersPage as PeersPage,
|
|
@@ -322,14 +497,17 @@ export declare namespace Workspaces {
|
|
|
322
497
|
type PeerListParams as PeerListParams,
|
|
323
498
|
type PeerCardParams as PeerCardParams,
|
|
324
499
|
type PeerChatParams as PeerChatParams,
|
|
500
|
+
type PeerGetContextParams as PeerGetContextParams,
|
|
325
501
|
type PeerGetOrCreateParams as PeerGetOrCreateParams,
|
|
326
502
|
type PeerSearchParams as PeerSearchParams,
|
|
503
|
+
type PeerSetCardParams as PeerSetCardParams,
|
|
327
504
|
type PeerWorkingRepresentationParams as PeerWorkingRepresentationParams,
|
|
328
505
|
};
|
|
329
506
|
|
|
330
507
|
export {
|
|
331
508
|
SessionsAPISessions as Sessions,
|
|
332
509
|
type Session as Session,
|
|
510
|
+
type SessionConfiguration as SessionConfiguration,
|
|
333
511
|
type Summary as Summary,
|
|
334
512
|
type SessionDeleteResponse as SessionDeleteResponse,
|
|
335
513
|
type SessionGetContextResponse as SessionGetContextResponse,
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '1.
|
|
1
|
+
export const VERSION = '1.6.1'; // 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.1";
|
|
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.1'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|