@honcho-ai/core 1.7.0 → 2.0.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 +58 -0
- package/LICENSE +1 -1
- package/README.md +12 -1
- package/index.d.mts +2 -5
- package/index.d.ts +2 -5
- package/index.d.ts.map +1 -1
- package/index.js +0 -3
- package/index.js.map +1 -1
- package/index.mjs +0 -3
- package/index.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/index.d.ts +1 -2
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +1 -3
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +0 -1
- package/resources/index.mjs.map +1 -1
- package/resources/workspaces/conclusions.d.ts +33 -66
- package/resources/workspaces/conclusions.d.ts.map +1 -1
- package/resources/workspaces/conclusions.js +12 -5
- package/resources/workspaces/conclusions.js.map +1 -1
- package/resources/workspaces/conclusions.mjs +12 -5
- package/resources/workspaces/conclusions.mjs.map +1 -1
- package/resources/workspaces/index.d.ts +6 -6
- package/resources/workspaces/index.d.ts.map +1 -1
- package/resources/workspaces/index.js +3 -4
- package/resources/workspaces/index.js.map +1 -1
- package/resources/workspaces/index.mjs +1 -1
- package/resources/workspaces/index.mjs.map +1 -1
- package/resources/workspaces/peers/index.d.ts +1 -1
- package/resources/workspaces/peers/index.d.ts.map +1 -1
- package/resources/workspaces/peers/peers.d.ts +82 -153
- package/resources/workspaces/peers/peers.d.ts.map +1 -1
- package/resources/workspaces/peers/peers.js +24 -20
- package/resources/workspaces/peers/peers.js.map +1 -1
- package/resources/workspaces/peers/peers.mjs +24 -20
- package/resources/workspaces/peers/peers.mjs.map +1 -1
- package/resources/workspaces/peers/sessions.d.ts +1 -1
- package/resources/workspaces/queue.d.ts +82 -0
- package/resources/workspaces/queue.d.ts.map +1 -0
- package/resources/workspaces/queue.js +16 -0
- package/resources/workspaces/queue.js.map +1 -0
- package/resources/workspaces/queue.mjs +12 -0
- package/resources/workspaces/queue.mjs.map +1 -0
- package/resources/workspaces/sessions/index.d.ts +2 -2
- 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 +13 -11
- package/resources/workspaces/sessions/messages.d.ts.map +1 -1
- package/resources/workspaces/sessions/messages.js +10 -8
- package/resources/workspaces/sessions/messages.js.map +1 -1
- package/resources/workspaces/sessions/messages.mjs +10 -8
- package/resources/workspaces/sessions/messages.mjs.map +1 -1
- package/resources/workspaces/sessions/peers.d.ts +15 -12
- package/resources/workspaces/sessions/peers.d.ts.map +1 -1
- package/resources/workspaces/sessions/peers.js +12 -7
- package/resources/workspaces/sessions/peers.js.map +1 -1
- package/resources/workspaces/sessions/peers.mjs +12 -7
- package/resources/workspaces/sessions/peers.mjs.map +1 -1
- package/resources/workspaces/sessions/sessions.d.ts +40 -118
- package/resources/workspaces/sessions/sessions.d.ts.map +1 -1
- package/resources/workspaces/sessions/sessions.js +19 -17
- package/resources/workspaces/sessions/sessions.js.map +1 -1
- package/resources/workspaces/sessions/sessions.mjs +19 -17
- package/resources/workspaces/sessions/sessions.mjs.map +1 -1
- package/resources/workspaces/webhooks.d.ts +2 -3
- package/resources/workspaces/webhooks.d.ts.map +1 -1
- package/resources/workspaces/webhooks.js +4 -1
- package/resources/workspaces/webhooks.js.map +1 -1
- package/resources/workspaces/webhooks.mjs +4 -1
- package/resources/workspaces/webhooks.mjs.map +1 -1
- package/resources/workspaces/workspaces.d.ts +59 -196
- package/resources/workspaces/workspaces.d.ts.map +1 -1
- package/resources/workspaces/workspaces.js +32 -34
- package/resources/workspaces/workspaces.js.map +1 -1
- package/resources/workspaces/workspaces.mjs +34 -36
- package/resources/workspaces/workspaces.mjs.map +1 -1
- package/src/index.ts +4 -21
- package/src/resources/index.ts +2 -7
- package/src/resources/workspaces/conclusions.ts +36 -78
- package/src/resources/workspaces/index.ts +9 -33
- package/src/resources/workspaces/peers/index.ts +4 -4
- package/src/resources/workspaces/peers/peers.ts +102 -181
- package/src/resources/workspaces/peers/sessions.ts +1 -1
- package/src/resources/workspaces/queue.ts +111 -0
- package/src/resources/workspaces/sessions/index.ts +2 -3
- package/src/resources/workspaces/sessions/messages.ts +25 -23
- package/src/resources/workspaces/sessions/peers.ts +16 -14
- package/src/resources/workspaces/sessions/sessions.ts +53 -143
- package/src/resources/workspaces/webhooks.ts +5 -5
- package/src/resources/workspaces/workspaces.ts +99 -325
- package/src/version.ts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
- package/resources/keys.d.ts +0 -29
- package/resources/keys.d.ts.map +0 -1
- package/resources/keys.js +0 -20
- package/resources/keys.js.map +0 -1
- package/resources/keys.mjs +0 -16
- package/resources/keys.mjs.map +0 -1
- package/resources/workspaces/observations.d.ts +0 -166
- package/resources/workspaces/observations.d.ts.map +0 -1
- package/resources/workspaces/observations.js +0 -64
- package/resources/workspaces/observations.js.map +0 -1
- package/resources/workspaces/observations.mjs +0 -59
- package/resources/workspaces/observations.mjs.map +0 -1
- package/src/resources/keys.ts +0 -51
- package/src/resources/workspaces/observations.ts +0 -249
|
@@ -6,38 +6,18 @@ import * as Core from "../../core.js";
|
|
|
6
6
|
import * as ConclusionsAPI from "./conclusions.js";
|
|
7
7
|
import {
|
|
8
8
|
Conclusion,
|
|
9
|
-
ConclusionCreate,
|
|
10
9
|
ConclusionCreateParams,
|
|
11
10
|
ConclusionCreateResponse,
|
|
12
|
-
ConclusionDeleteResponse,
|
|
13
|
-
ConclusionGet,
|
|
14
11
|
ConclusionListParams,
|
|
15
|
-
ConclusionQuery,
|
|
16
12
|
ConclusionQueryParams,
|
|
17
13
|
ConclusionQueryResponse,
|
|
18
14
|
Conclusions,
|
|
19
15
|
ConclusionsPage,
|
|
20
|
-
PageConclusion,
|
|
21
16
|
} from "./conclusions.js";
|
|
22
|
-
import * as
|
|
23
|
-
import {
|
|
24
|
-
Observation,
|
|
25
|
-
ObservationCreate,
|
|
26
|
-
ObservationCreateParams,
|
|
27
|
-
ObservationCreateResponse,
|
|
28
|
-
ObservationDeleteResponse,
|
|
29
|
-
ObservationGet,
|
|
30
|
-
ObservationListParams,
|
|
31
|
-
ObservationQuery,
|
|
32
|
-
ObservationQueryParams,
|
|
33
|
-
ObservationQueryResponse,
|
|
34
|
-
Observations,
|
|
35
|
-
ObservationsPage,
|
|
36
|
-
PageObservation,
|
|
37
|
-
} from "./observations.js";
|
|
17
|
+
import * as QueueAPI from "./queue.js";
|
|
18
|
+
import { Queue, QueueStatusParams, QueueStatusResponse } from "./queue.js";
|
|
38
19
|
import * as WebhooksAPI from "./webhooks.js";
|
|
39
20
|
import {
|
|
40
|
-
WebhookDeleteResponse,
|
|
41
21
|
WebhookEndpoint,
|
|
42
22
|
WebhookEndpointsPage,
|
|
43
23
|
WebhookGetOrCreateParams,
|
|
@@ -54,16 +34,16 @@ import {
|
|
|
54
34
|
PeerCardResponse,
|
|
55
35
|
PeerChatParams,
|
|
56
36
|
PeerChatResponse,
|
|
57
|
-
|
|
58
|
-
|
|
37
|
+
PeerContextParams,
|
|
38
|
+
PeerContextResponse,
|
|
59
39
|
PeerGetOrCreateParams,
|
|
60
40
|
PeerListParams,
|
|
41
|
+
PeerRepresentationParams,
|
|
42
|
+
PeerRepresentationResponse,
|
|
61
43
|
PeerSearchParams,
|
|
62
44
|
PeerSearchResponse,
|
|
63
45
|
PeerSetCardParams,
|
|
64
46
|
PeerUpdateParams,
|
|
65
|
-
PeerWorkingRepresentationParams,
|
|
66
|
-
PeerWorkingRepresentationResponse,
|
|
67
47
|
Peers,
|
|
68
48
|
PeersPage,
|
|
69
49
|
SessionGet,
|
|
@@ -74,30 +54,30 @@ import {
|
|
|
74
54
|
Session,
|
|
75
55
|
SessionCloneParams,
|
|
76
56
|
SessionConfiguration,
|
|
57
|
+
SessionContextParams,
|
|
58
|
+
SessionContextResponse,
|
|
77
59
|
SessionDeleteResponse,
|
|
78
|
-
SessionGetContextParams,
|
|
79
|
-
SessionGetContextResponse,
|
|
80
60
|
SessionGetOrCreateParams,
|
|
81
61
|
SessionListParams,
|
|
82
62
|
SessionSearchParams,
|
|
83
63
|
SessionSearchResponse,
|
|
84
64
|
SessionSummariesResponse,
|
|
85
65
|
SessionUpdateParams,
|
|
86
|
-
Sessions
|
|
66
|
+
Sessions,
|
|
87
67
|
SessionsPage,
|
|
88
68
|
Summary,
|
|
89
69
|
} from "./sessions/sessions.js";
|
|
90
70
|
import { Page, type PageParams } from "../../pagination.js";
|
|
91
71
|
|
|
92
72
|
export class Workspaces extends APIResource {
|
|
93
|
-
conclusions: ConclusionsAPI.Conclusions = new ConclusionsAPI.Conclusions(this._client);
|
|
94
|
-
observations: ObservationsAPI.Observations = new ObservationsAPI.Observations(this._client);
|
|
95
73
|
peers: PeersAPI.Peers = new PeersAPI.Peers(this._client);
|
|
96
74
|
sessions: SessionsAPI.Sessions = new SessionsAPI.Sessions(this._client);
|
|
97
75
|
webhooks: WebhooksAPI.Webhooks = new WebhooksAPI.Webhooks(this._client);
|
|
76
|
+
queue: QueueAPI.Queue = new QueueAPI.Queue(this._client);
|
|
77
|
+
conclusions: ConclusionsAPI.Conclusions = new ConclusionsAPI.Conclusions(this._client);
|
|
98
78
|
|
|
99
79
|
/**
|
|
100
|
-
* Update
|
|
80
|
+
* Update Workspace metadata and/or configuration.
|
|
101
81
|
*/
|
|
102
82
|
update(
|
|
103
83
|
workspaceId: string,
|
|
@@ -108,7 +88,7 @@ export class Workspaces extends APIResource {
|
|
|
108
88
|
}
|
|
109
89
|
|
|
110
90
|
/**
|
|
111
|
-
* Get all Workspaces
|
|
91
|
+
* Get all Workspaces, paginated with optional filters.
|
|
112
92
|
*/
|
|
113
93
|
list(
|
|
114
94
|
params?: WorkspaceListParams,
|
|
@@ -132,32 +112,16 @@ export class Workspaces extends APIResource {
|
|
|
132
112
|
}
|
|
133
113
|
|
|
134
114
|
/**
|
|
135
|
-
* Delete a Workspace
|
|
136
|
-
|
|
137
|
-
delete(workspaceId: string, options?: Core.RequestOptions): Core.APIPromise<Workspace> {
|
|
138
|
-
return this._client.delete(`/v2/workspaces/${workspaceId}`, options);
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
/**
|
|
142
|
-
* Deprecated: use /queue/status. Provides identical response payload.
|
|
115
|
+
* Delete a Workspace. This will permanently delete all sessions, peers, messages,
|
|
116
|
+
* and conclusions associated with the workspace.
|
|
143
117
|
*
|
|
144
|
-
*
|
|
118
|
+
* This action cannot be undone.
|
|
145
119
|
*/
|
|
146
|
-
|
|
147
|
-
workspaceId
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
deriverStatus(workspaceId: string, options?: Core.RequestOptions): Core.APIPromise<DeriverStatus>;
|
|
152
|
-
deriverStatus(
|
|
153
|
-
workspaceId: string,
|
|
154
|
-
query: WorkspaceDeriverStatusParams | Core.RequestOptions = {},
|
|
155
|
-
options?: Core.RequestOptions,
|
|
156
|
-
): Core.APIPromise<DeriverStatus> {
|
|
157
|
-
if (isRequestOptions(query)) {
|
|
158
|
-
return this.deriverStatus(workspaceId, {}, query);
|
|
159
|
-
}
|
|
160
|
-
return this._client.get(`/v2/workspaces/${workspaceId}/deriver/status`, { query, ...options });
|
|
120
|
+
delete(workspaceId: string, options?: Core.RequestOptions): Core.APIPromise<void> {
|
|
121
|
+
return this._client.delete(`/v2/workspaces/${workspaceId}`, {
|
|
122
|
+
...options,
|
|
123
|
+
headers: { Accept: '*/*', ...options?.headers },
|
|
124
|
+
});
|
|
161
125
|
}
|
|
162
126
|
|
|
163
127
|
/**
|
|
@@ -171,28 +135,31 @@ export class Workspaces extends APIResource {
|
|
|
171
135
|
}
|
|
172
136
|
|
|
173
137
|
/**
|
|
174
|
-
*
|
|
175
|
-
*
|
|
138
|
+
* Manually schedule a dream task for a specific collection.
|
|
139
|
+
*
|
|
140
|
+
* This endpoint bypasses all automatic dream conditions (document threshold,
|
|
141
|
+
* minimum hours between dreams) and schedules the dream task for a future
|
|
142
|
+
* execution.
|
|
143
|
+
*
|
|
144
|
+
* Currently this endpoint only supports scheduling immediate dreams. In the
|
|
145
|
+
* future, users may pass a cron-style expression to schedule dreams at specific
|
|
146
|
+
* times.
|
|
176
147
|
*/
|
|
177
|
-
|
|
178
|
-
workspaceId: string,
|
|
179
|
-
query?: WorkspaceQueueStatusParams,
|
|
180
|
-
options?: Core.RequestOptions,
|
|
181
|
-
): Core.APIPromise<QueueStatus>;
|
|
182
|
-
queueStatus(workspaceId: string, options?: Core.RequestOptions): Core.APIPromise<QueueStatus>;
|
|
183
|
-
queueStatus(
|
|
148
|
+
scheduleDream(
|
|
184
149
|
workspaceId: string,
|
|
185
|
-
|
|
150
|
+
body: WorkspaceScheduleDreamParams,
|
|
186
151
|
options?: Core.RequestOptions,
|
|
187
|
-
): Core.APIPromise<
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
152
|
+
): Core.APIPromise<void> {
|
|
153
|
+
return this._client.post(`/v2/workspaces/${workspaceId}/schedule_dream`, {
|
|
154
|
+
body,
|
|
155
|
+
...options,
|
|
156
|
+
headers: { Accept: '*/*', ...options?.headers },
|
|
157
|
+
});
|
|
192
158
|
}
|
|
193
159
|
|
|
194
160
|
/**
|
|
195
|
-
* Search a Workspace
|
|
161
|
+
* Search messages in a Workspace using optional filters. Use `limit` to control
|
|
162
|
+
* the number of results returned.
|
|
196
163
|
*/
|
|
197
164
|
search(
|
|
198
165
|
workspaceId: string,
|
|
@@ -201,108 +168,14 @@ export class Workspaces extends APIResource {
|
|
|
201
168
|
): Core.APIPromise<WorkspaceSearchResponse> {
|
|
202
169
|
return this._client.post(`/v2/workspaces/${workspaceId}/search`, { body, ...options });
|
|
203
170
|
}
|
|
204
|
-
|
|
205
|
-
/**
|
|
206
|
-
* Manually trigger a dream task immediately for a specific collection.
|
|
207
|
-
*
|
|
208
|
-
* This endpoint bypasses all automatic dream conditions (document threshold,
|
|
209
|
-
* minimum hours between dreams) and executes the dream task immediately without
|
|
210
|
-
* delay.
|
|
211
|
-
*/
|
|
212
|
-
triggerDream(
|
|
213
|
-
workspaceId: string,
|
|
214
|
-
body: WorkspaceTriggerDreamParams,
|
|
215
|
-
options?: Core.RequestOptions,
|
|
216
|
-
): Core.APIPromise<void> {
|
|
217
|
-
return this._client.post(`/v2/workspaces/${workspaceId}/trigger_dream`, {
|
|
218
|
-
body,
|
|
219
|
-
...options,
|
|
220
|
-
headers: { Accept: '*/*', ...options?.headers },
|
|
221
|
-
});
|
|
222
|
-
}
|
|
223
171
|
}
|
|
224
172
|
|
|
225
173
|
export class WorkspacesPage extends Page<Workspace> {}
|
|
226
174
|
|
|
227
|
-
export interface DeriverConfiguration {
|
|
228
|
-
/**
|
|
229
|
-
* TODO: currently unused. Custom instructions to use for the deriver on this
|
|
230
|
-
* workspace/session/message.
|
|
231
|
-
*/
|
|
232
|
-
custom_instructions?: string | null;
|
|
233
|
-
|
|
234
|
-
/**
|
|
235
|
-
* Whether to enable deriver functionality.
|
|
236
|
-
*/
|
|
237
|
-
enabled?: boolean | null;
|
|
238
|
-
}
|
|
239
|
-
|
|
240
|
-
/**
|
|
241
|
-
* Deprecated: use QueueStatus.
|
|
242
|
-
*/
|
|
243
|
-
export interface DeriverStatus {
|
|
244
|
-
/**
|
|
245
|
-
* Completed work units
|
|
246
|
-
*/
|
|
247
|
-
completed_work_units: number;
|
|
248
|
-
|
|
249
|
-
/**
|
|
250
|
-
* Work units currently being processed
|
|
251
|
-
*/
|
|
252
|
-
in_progress_work_units: number;
|
|
253
|
-
|
|
254
|
-
/**
|
|
255
|
-
* Work units waiting to be processed
|
|
256
|
-
*/
|
|
257
|
-
pending_work_units: number;
|
|
258
|
-
|
|
259
|
-
/**
|
|
260
|
-
* Total work units
|
|
261
|
-
*/
|
|
262
|
-
total_work_units: number;
|
|
263
|
-
|
|
264
|
-
/**
|
|
265
|
-
* Per-session status when not filtered by session
|
|
266
|
-
*/
|
|
267
|
-
sessions?: { [key: string]: DeriverStatus.Sessions } | null;
|
|
268
|
-
}
|
|
269
|
-
|
|
270
|
-
export namespace DeriverStatus {
|
|
271
|
-
/**
|
|
272
|
-
* Status for a specific session within the processing queue.
|
|
273
|
-
*/
|
|
274
|
-
export interface Sessions {
|
|
275
|
-
/**
|
|
276
|
-
* Completed work units
|
|
277
|
-
*/
|
|
278
|
-
completed_work_units: number;
|
|
279
|
-
|
|
280
|
-
/**
|
|
281
|
-
* Work units currently being processed
|
|
282
|
-
*/
|
|
283
|
-
in_progress_work_units: number;
|
|
284
|
-
|
|
285
|
-
/**
|
|
286
|
-
* Work units waiting to be processed
|
|
287
|
-
*/
|
|
288
|
-
pending_work_units: number;
|
|
289
|
-
|
|
290
|
-
/**
|
|
291
|
-
* Total work units
|
|
292
|
-
*/
|
|
293
|
-
total_work_units: number;
|
|
294
|
-
|
|
295
|
-
/**
|
|
296
|
-
* Session ID if filtered by session
|
|
297
|
-
*/
|
|
298
|
-
session_id?: string | null;
|
|
299
|
-
}
|
|
300
|
-
}
|
|
301
|
-
|
|
302
175
|
export interface DreamConfiguration {
|
|
303
176
|
/**
|
|
304
|
-
* Whether to enable dream functionality. If
|
|
305
|
-
* be disabled and this setting will be ignored.
|
|
177
|
+
* Whether to enable dream functionality. If reasoning is disabled, dreams will
|
|
178
|
+
* also be disabled and this setting will be ignored.
|
|
306
179
|
*/
|
|
307
180
|
enabled?: boolean | null;
|
|
308
181
|
}
|
|
@@ -331,71 +204,22 @@ export interface PeerCardConfiguration {
|
|
|
331
204
|
create?: boolean | null;
|
|
332
205
|
|
|
333
206
|
/**
|
|
334
|
-
* Whether to use peer card related to this peer during
|
|
207
|
+
* Whether to use peer card related to this peer during reasoning process.
|
|
335
208
|
*/
|
|
336
209
|
use?: boolean | null;
|
|
337
210
|
}
|
|
338
211
|
|
|
339
|
-
|
|
340
|
-
* Aggregated processing queue status.
|
|
341
|
-
*/
|
|
342
|
-
export interface QueueStatus {
|
|
343
|
-
/**
|
|
344
|
-
* Completed work units
|
|
345
|
-
*/
|
|
346
|
-
completed_work_units: number;
|
|
347
|
-
|
|
348
|
-
/**
|
|
349
|
-
* Work units currently being processed
|
|
350
|
-
*/
|
|
351
|
-
in_progress_work_units: number;
|
|
352
|
-
|
|
212
|
+
export interface ReasoningConfiguration {
|
|
353
213
|
/**
|
|
354
|
-
*
|
|
214
|
+
* TODO: currently unused. Custom instructions to use for the reasoning system on
|
|
215
|
+
* this workspace/session/message.
|
|
355
216
|
*/
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
/**
|
|
359
|
-
* Total work units
|
|
360
|
-
*/
|
|
361
|
-
total_work_units: number;
|
|
362
|
-
|
|
363
|
-
/**
|
|
364
|
-
* Per-session status when not filtered by session
|
|
365
|
-
*/
|
|
366
|
-
sessions?: { [key: string]: QueueStatus.Sessions } | null;
|
|
367
|
-
}
|
|
217
|
+
custom_instructions?: string | null;
|
|
368
218
|
|
|
369
|
-
export namespace QueueStatus {
|
|
370
219
|
/**
|
|
371
|
-
*
|
|
220
|
+
* Whether to enable reasoning functionality.
|
|
372
221
|
*/
|
|
373
|
-
|
|
374
|
-
/**
|
|
375
|
-
* Completed work units
|
|
376
|
-
*/
|
|
377
|
-
completed_work_units: number;
|
|
378
|
-
|
|
379
|
-
/**
|
|
380
|
-
* Work units currently being processed
|
|
381
|
-
*/
|
|
382
|
-
in_progress_work_units: number;
|
|
383
|
-
|
|
384
|
-
/**
|
|
385
|
-
* Work units waiting to be processed
|
|
386
|
-
*/
|
|
387
|
-
pending_work_units: number;
|
|
388
|
-
|
|
389
|
-
/**
|
|
390
|
-
* Total work units
|
|
391
|
-
*/
|
|
392
|
-
total_work_units: number;
|
|
393
|
-
|
|
394
|
-
/**
|
|
395
|
-
* Session ID if filtered by session
|
|
396
|
-
*/
|
|
397
|
-
session_id?: string | null;
|
|
398
|
-
}
|
|
222
|
+
enabled?: boolean | null;
|
|
399
223
|
}
|
|
400
224
|
|
|
401
225
|
export interface SummaryConfiguration {
|
|
@@ -435,22 +259,22 @@ export interface Workspace {
|
|
|
435
259
|
*/
|
|
436
260
|
export interface WorkspaceConfiguration {
|
|
437
261
|
/**
|
|
438
|
-
* Configuration for
|
|
439
|
-
|
|
440
|
-
deriver?: DeriverConfiguration | null;
|
|
441
|
-
|
|
442
|
-
/**
|
|
443
|
-
* Configuration for dream functionality. If deriver is disabled, dreams will also
|
|
444
|
-
* be disabled and these settings will be ignored.
|
|
262
|
+
* Configuration for dream functionality. If reasoning is disabled, dreams will
|
|
263
|
+
* also be disabled and these settings will be ignored.
|
|
445
264
|
*/
|
|
446
265
|
dream?: DreamConfiguration | null;
|
|
447
266
|
|
|
448
267
|
/**
|
|
449
|
-
* Configuration for peer card functionality. If
|
|
268
|
+
* Configuration for peer card functionality. If reasoning is disabled, peer cards
|
|
450
269
|
* will also be disabled and these settings will be ignored.
|
|
451
270
|
*/
|
|
452
271
|
peer_card?: PeerCardConfiguration | null;
|
|
453
272
|
|
|
273
|
+
/**
|
|
274
|
+
* Configuration for reasoning functionality.
|
|
275
|
+
*/
|
|
276
|
+
reasoning?: ReasoningConfiguration | null;
|
|
277
|
+
|
|
454
278
|
/**
|
|
455
279
|
* Configuration for summary functionality.
|
|
456
280
|
*/
|
|
@@ -480,23 +304,6 @@ export interface WorkspaceListParams extends PageParams {
|
|
|
480
304
|
filters?: { [key: string]: unknown } | null;
|
|
481
305
|
}
|
|
482
306
|
|
|
483
|
-
export interface WorkspaceDeriverStatusParams {
|
|
484
|
-
/**
|
|
485
|
-
* Optional observer ID to filter by
|
|
486
|
-
*/
|
|
487
|
-
observer_id?: string | null;
|
|
488
|
-
|
|
489
|
-
/**
|
|
490
|
-
* Optional sender ID to filter by
|
|
491
|
-
*/
|
|
492
|
-
sender_id?: string | null;
|
|
493
|
-
|
|
494
|
-
/**
|
|
495
|
-
* Optional session ID to filter by
|
|
496
|
-
*/
|
|
497
|
-
session_id?: string | null;
|
|
498
|
-
}
|
|
499
|
-
|
|
500
307
|
export interface WorkspaceGetOrCreateParams {
|
|
501
308
|
id: string;
|
|
502
309
|
|
|
@@ -511,21 +318,26 @@ export interface WorkspaceGetOrCreateParams {
|
|
|
511
318
|
metadata?: { [key: string]: unknown };
|
|
512
319
|
}
|
|
513
320
|
|
|
514
|
-
export interface
|
|
321
|
+
export interface WorkspaceScheduleDreamParams {
|
|
515
322
|
/**
|
|
516
|
-
*
|
|
323
|
+
* Type of dream to schedule
|
|
324
|
+
*/
|
|
325
|
+
dream_type: 'omni';
|
|
326
|
+
|
|
327
|
+
/**
|
|
328
|
+
* Observer peer name
|
|
517
329
|
*/
|
|
518
|
-
|
|
330
|
+
observer: string;
|
|
519
331
|
|
|
520
332
|
/**
|
|
521
|
-
*
|
|
333
|
+
* Session ID to scope the dream to
|
|
522
334
|
*/
|
|
523
|
-
|
|
335
|
+
session_id: string;
|
|
524
336
|
|
|
525
337
|
/**
|
|
526
|
-
*
|
|
338
|
+
* Observed peer name (defaults to observer if not specified)
|
|
527
339
|
*/
|
|
528
|
-
|
|
340
|
+
observed?: string | null;
|
|
529
341
|
}
|
|
530
342
|
|
|
531
343
|
export interface WorkspaceSearchParams {
|
|
@@ -545,43 +357,23 @@ export interface WorkspaceSearchParams {
|
|
|
545
357
|
limit?: number;
|
|
546
358
|
}
|
|
547
359
|
|
|
548
|
-
export interface WorkspaceTriggerDreamParams {
|
|
549
|
-
/**
|
|
550
|
-
* Type of dream to trigger
|
|
551
|
-
*/
|
|
552
|
-
dream_type: 'consolidate' | 'agent';
|
|
553
|
-
|
|
554
|
-
/**
|
|
555
|
-
* Observer peer name
|
|
556
|
-
*/
|
|
557
|
-
observer: string;
|
|
558
|
-
|
|
559
|
-
/**
|
|
560
|
-
* Observed peer name (defaults to observer if not specified)
|
|
561
|
-
*/
|
|
562
|
-
observed?: string | null;
|
|
563
|
-
}
|
|
564
|
-
|
|
565
360
|
Workspaces.WorkspacesPage = WorkspacesPage;
|
|
566
|
-
Workspaces.Conclusions = Conclusions;
|
|
567
|
-
Workspaces.ConclusionsPage = ConclusionsPage;
|
|
568
|
-
Workspaces.Observations = Observations;
|
|
569
|
-
Workspaces.ObservationsPage = ObservationsPage;
|
|
570
361
|
Workspaces.Peers = Peers;
|
|
571
362
|
Workspaces.PeersPage = PeersPage;
|
|
572
|
-
Workspaces.Sessions =
|
|
363
|
+
Workspaces.Sessions = Sessions;
|
|
573
364
|
Workspaces.SessionsPage = SessionsPage;
|
|
574
365
|
Workspaces.Webhooks = Webhooks;
|
|
575
366
|
Workspaces.WebhookEndpointsPage = WebhookEndpointsPage;
|
|
367
|
+
Workspaces.Queue = Queue;
|
|
368
|
+
Workspaces.Conclusions = Conclusions;
|
|
369
|
+
Workspaces.ConclusionsPage = ConclusionsPage;
|
|
576
370
|
|
|
577
371
|
export declare namespace Workspaces {
|
|
578
372
|
export {
|
|
579
|
-
type DeriverConfiguration as DeriverConfiguration,
|
|
580
|
-
type DeriverStatus as DeriverStatus,
|
|
581
373
|
type DreamConfiguration as DreamConfiguration,
|
|
582
374
|
type MessageSearchOptions as MessageSearchOptions,
|
|
583
375
|
type PeerCardConfiguration as PeerCardConfiguration,
|
|
584
|
-
type
|
|
376
|
+
type ReasoningConfiguration as ReasoningConfiguration,
|
|
585
377
|
type SummaryConfiguration as SummaryConfiguration,
|
|
586
378
|
type Workspace as Workspace,
|
|
587
379
|
type WorkspaceConfiguration as WorkspaceConfiguration,
|
|
@@ -589,43 +381,9 @@ export declare namespace Workspaces {
|
|
|
589
381
|
WorkspacesPage as WorkspacesPage,
|
|
590
382
|
type WorkspaceUpdateParams as WorkspaceUpdateParams,
|
|
591
383
|
type WorkspaceListParams as WorkspaceListParams,
|
|
592
|
-
type WorkspaceDeriverStatusParams as WorkspaceDeriverStatusParams,
|
|
593
384
|
type WorkspaceGetOrCreateParams as WorkspaceGetOrCreateParams,
|
|
594
|
-
type
|
|
385
|
+
type WorkspaceScheduleDreamParams as WorkspaceScheduleDreamParams,
|
|
595
386
|
type WorkspaceSearchParams as WorkspaceSearchParams,
|
|
596
|
-
type WorkspaceTriggerDreamParams as WorkspaceTriggerDreamParams,
|
|
597
|
-
};
|
|
598
|
-
|
|
599
|
-
export {
|
|
600
|
-
Conclusions as Conclusions,
|
|
601
|
-
type Conclusion as Conclusion,
|
|
602
|
-
type ConclusionCreate as ConclusionCreate,
|
|
603
|
-
type ConclusionGet as ConclusionGet,
|
|
604
|
-
type ConclusionQuery as ConclusionQuery,
|
|
605
|
-
type PageConclusion as PageConclusion,
|
|
606
|
-
type ConclusionCreateResponse as ConclusionCreateResponse,
|
|
607
|
-
type ConclusionDeleteResponse as ConclusionDeleteResponse,
|
|
608
|
-
type ConclusionQueryResponse as ConclusionQueryResponse,
|
|
609
|
-
ConclusionsPage as ConclusionsPage,
|
|
610
|
-
type ConclusionCreateParams as ConclusionCreateParams,
|
|
611
|
-
type ConclusionListParams as ConclusionListParams,
|
|
612
|
-
type ConclusionQueryParams as ConclusionQueryParams,
|
|
613
|
-
};
|
|
614
|
-
|
|
615
|
-
export {
|
|
616
|
-
Observations as Observations,
|
|
617
|
-
type Observation as Observation,
|
|
618
|
-
type ObservationCreate as ObservationCreate,
|
|
619
|
-
type ObservationGet as ObservationGet,
|
|
620
|
-
type ObservationQuery as ObservationQuery,
|
|
621
|
-
type PageObservation as PageObservation,
|
|
622
|
-
type ObservationCreateResponse as ObservationCreateResponse,
|
|
623
|
-
type ObservationDeleteResponse as ObservationDeleteResponse,
|
|
624
|
-
type ObservationQueryResponse as ObservationQueryResponse,
|
|
625
|
-
ObservationsPage as ObservationsPage,
|
|
626
|
-
type ObservationCreateParams as ObservationCreateParams,
|
|
627
|
-
type ObservationListParams as ObservationListParams,
|
|
628
|
-
type ObservationQueryParams as ObservationQueryParams,
|
|
629
387
|
};
|
|
630
388
|
|
|
631
389
|
export {
|
|
@@ -636,35 +394,35 @@ export declare namespace Workspaces {
|
|
|
636
394
|
type PeerCardResponse as PeerCardResponse,
|
|
637
395
|
type SessionGet as SessionGet,
|
|
638
396
|
type PeerChatResponse as PeerChatResponse,
|
|
639
|
-
type
|
|
397
|
+
type PeerContextResponse as PeerContextResponse,
|
|
398
|
+
type PeerRepresentationResponse as PeerRepresentationResponse,
|
|
640
399
|
type PeerSearchResponse as PeerSearchResponse,
|
|
641
|
-
type PeerWorkingRepresentationResponse as PeerWorkingRepresentationResponse,
|
|
642
400
|
PeersPage as PeersPage,
|
|
643
401
|
type PeerUpdateParams as PeerUpdateParams,
|
|
644
402
|
type PeerListParams as PeerListParams,
|
|
645
403
|
type PeerCardParams as PeerCardParams,
|
|
646
404
|
type PeerChatParams as PeerChatParams,
|
|
647
|
-
type
|
|
405
|
+
type PeerContextParams as PeerContextParams,
|
|
648
406
|
type PeerGetOrCreateParams as PeerGetOrCreateParams,
|
|
407
|
+
type PeerRepresentationParams as PeerRepresentationParams,
|
|
649
408
|
type PeerSearchParams as PeerSearchParams,
|
|
650
409
|
type PeerSetCardParams as PeerSetCardParams,
|
|
651
|
-
type PeerWorkingRepresentationParams as PeerWorkingRepresentationParams,
|
|
652
410
|
};
|
|
653
411
|
|
|
654
412
|
export {
|
|
655
|
-
|
|
413
|
+
Sessions as Sessions,
|
|
656
414
|
type Session as Session,
|
|
657
415
|
type SessionConfiguration as SessionConfiguration,
|
|
658
416
|
type Summary as Summary,
|
|
659
417
|
type SessionDeleteResponse as SessionDeleteResponse,
|
|
660
|
-
type
|
|
418
|
+
type SessionContextResponse as SessionContextResponse,
|
|
661
419
|
type SessionSearchResponse as SessionSearchResponse,
|
|
662
420
|
type SessionSummariesResponse as SessionSummariesResponse,
|
|
663
421
|
SessionsPage as SessionsPage,
|
|
664
422
|
type SessionUpdateParams as SessionUpdateParams,
|
|
665
423
|
type SessionListParams as SessionListParams,
|
|
666
424
|
type SessionCloneParams as SessionCloneParams,
|
|
667
|
-
type
|
|
425
|
+
type SessionContextParams as SessionContextParams,
|
|
668
426
|
type SessionGetOrCreateParams as SessionGetOrCreateParams,
|
|
669
427
|
type SessionSearchParams as SessionSearchParams,
|
|
670
428
|
};
|
|
@@ -672,10 +430,26 @@ export declare namespace Workspaces {
|
|
|
672
430
|
export {
|
|
673
431
|
Webhooks as Webhooks,
|
|
674
432
|
type WebhookEndpoint as WebhookEndpoint,
|
|
675
|
-
type WebhookDeleteResponse as WebhookDeleteResponse,
|
|
676
433
|
type WebhookTestEmitResponse as WebhookTestEmitResponse,
|
|
677
434
|
WebhookEndpointsPage as WebhookEndpointsPage,
|
|
678
435
|
type WebhookListParams as WebhookListParams,
|
|
679
436
|
type WebhookGetOrCreateParams as WebhookGetOrCreateParams,
|
|
680
437
|
};
|
|
438
|
+
|
|
439
|
+
export {
|
|
440
|
+
Queue as Queue,
|
|
441
|
+
type QueueStatusResponse as QueueStatusResponse,
|
|
442
|
+
type QueueStatusParams as QueueStatusParams,
|
|
443
|
+
};
|
|
444
|
+
|
|
445
|
+
export {
|
|
446
|
+
Conclusions as Conclusions,
|
|
447
|
+
type Conclusion as Conclusion,
|
|
448
|
+
type ConclusionCreateResponse as ConclusionCreateResponse,
|
|
449
|
+
type ConclusionQueryResponse as ConclusionQueryResponse,
|
|
450
|
+
ConclusionsPage as ConclusionsPage,
|
|
451
|
+
type ConclusionCreateParams as ConclusionCreateParams,
|
|
452
|
+
type ConclusionListParams as ConclusionListParams,
|
|
453
|
+
type ConclusionQueryParams as ConclusionQueryParams,
|
|
454
|
+
};
|
|
681
455
|
}
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '
|
|
1
|
+
export const VERSION = '2.0.0'; // x-release-please-version
|
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "
|
|
1
|
+
export declare const VERSION = "2.0.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
|
+
export const VERSION = '2.0.0'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|
package/resources/keys.d.ts
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { APIResource } from "../resource.js";
|
|
2
|
-
import * as Core from "../core.js";
|
|
3
|
-
export declare class Keys extends APIResource {
|
|
4
|
-
/**
|
|
5
|
-
* Create a new Key
|
|
6
|
-
*/
|
|
7
|
-
create(params?: KeyCreateParams, options?: Core.RequestOptions): Core.APIPromise<unknown>;
|
|
8
|
-
create(options?: Core.RequestOptions): Core.APIPromise<unknown>;
|
|
9
|
-
}
|
|
10
|
-
export type KeyCreateResponse = unknown;
|
|
11
|
-
export interface KeyCreateParams {
|
|
12
|
-
expires_at?: string | null;
|
|
13
|
-
/**
|
|
14
|
-
* ID of the peer to scope the key to
|
|
15
|
-
*/
|
|
16
|
-
peer_id?: string | null;
|
|
17
|
-
/**
|
|
18
|
-
* ID of the session to scope the key to
|
|
19
|
-
*/
|
|
20
|
-
session_id?: string | null;
|
|
21
|
-
/**
|
|
22
|
-
* ID of the workspace to scope the key to
|
|
23
|
-
*/
|
|
24
|
-
workspace_id?: string | null;
|
|
25
|
-
}
|
|
26
|
-
export declare namespace Keys {
|
|
27
|
-
export { type KeyCreateResponse as KeyCreateResponse, type KeyCreateParams as KeyCreateParams };
|
|
28
|
-
}
|
|
29
|
-
//# sourceMappingURL=keys.d.ts.map
|
package/resources/keys.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"keys.d.ts","sourceRoot":"","sources":["../src/resources/keys.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAE1C,OAAO,KAAK,IAAI,MAAM,SAAS,CAAC;AAEhC,qBAAa,IAAK,SAAQ,WAAW;IACnC;;OAEG;IACH,MAAM,CAAC,MAAM,CAAC,EAAE,eAAe,EAAE,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC;IACzF,MAAM,CAAC,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC;CAchE;AAED,MAAM,MAAM,iBAAiB,GAAG,OAAO,CAAC;AAExC,MAAM,WAAW,eAAe;IAC9B,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAE3B;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAExB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAE3B;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC9B;AAED,MAAM,CAAC,OAAO,WAAW,IAAI,CAAC;IAC5B,OAAO,EAAE,KAAK,iBAAiB,IAAI,iBAAiB,EAAE,KAAK,eAAe,IAAI,eAAe,EAAE,CAAC;CACjG"}
|