@honcho-ai/core 1.8.0 → 2.1.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 +48 -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 +109 -0
- package/resources/workspaces/conclusions.d.ts.map +1 -0
- package/resources/workspaces/conclusions.js +54 -0
- package/resources/workspaces/conclusions.js.map +1 -0
- package/resources/workspaces/conclusions.mjs +49 -0
- package/resources/workspaces/conclusions.mjs.map +1 -0
- package/resources/workspaces/index.d.ts +6 -5
- package/resources/workspaces/index.d.ts.map +1 -1
- package/resources/workspaces/index.js +6 -4
- package/resources/workspaces/index.js.map +1 -1
- package/resources/workspaces/index.mjs +2 -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/index.js.map +1 -1
- package/resources/workspaces/peers/index.mjs.map +1 -1
- package/resources/workspaces/peers/peers.d.ts +83 -152
- 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 +10 -13
- 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 +43 -58
- package/resources/workspaces/sessions/sessions.d.ts.map +1 -1
- package/resources/workspaces/sessions/sessions.js +21 -19
- package/resources/workspaces/sessions/sessions.js.map +1 -1
- package/resources/workspaces/sessions/sessions.mjs +21 -19
- 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 +73 -125
- package/resources/workspaces/workspaces.d.ts.map +1 -1
- package/resources/workspaces/workspaces.js +34 -25
- package/resources/workspaces/workspaces.js.map +1 -1
- package/resources/workspaces/workspaces.mjs +36 -27
- package/resources/workspaces/workspaces.mjs.map +1 -1
- package/src/index.ts +4 -17
- package/src/resources/index.ts +2 -5
- package/src/resources/workspaces/conclusions.ts +178 -0
- package/src/resources/workspaces/index.ts +18 -26
- package/src/resources/workspaces/peers/index.ts +4 -5
- package/src/resources/workspaces/peers/peers.ts +104 -182
- 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 +22 -26
- package/src/resources/workspaces/sessions/peers.ts +16 -14
- package/src/resources/workspaces/sessions/sessions.ts +56 -72
- package/src/resources/workspaces/webhooks.ts +5 -5
- package/src/resources/workspaces/workspaces.ts +125 -209
- 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 -156
- package/resources/workspaces/observations.d.ts.map +0 -1
- package/resources/workspaces/observations.js +0 -58
- package/resources/workspaces/observations.js.map +0 -1
- package/resources/workspaces/observations.mjs +0 -53
- package/resources/workspaces/observations.mjs.map +0 -1
- package/src/resources/keys.ts +0 -51
- package/src/resources/workspaces/observations.ts +0 -238
|
@@ -3,25 +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
|
|
6
|
+
import * as ConclusionsAPI from "./conclusions.js";
|
|
7
7
|
import {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
ObservationsPage,
|
|
20
|
-
PageObservation,
|
|
21
|
-
} from "./observations.js";
|
|
8
|
+
Conclusion,
|
|
9
|
+
ConclusionCreateParams,
|
|
10
|
+
ConclusionCreateResponse,
|
|
11
|
+
ConclusionListParams,
|
|
12
|
+
ConclusionQueryParams,
|
|
13
|
+
ConclusionQueryResponse,
|
|
14
|
+
Conclusions,
|
|
15
|
+
ConclusionsPage,
|
|
16
|
+
} from "./conclusions.js";
|
|
17
|
+
import * as QueueAPI from "./queue.js";
|
|
18
|
+
import { Queue, QueueStatusParams, QueueStatusResponse } from "./queue.js";
|
|
22
19
|
import * as WebhooksAPI from "./webhooks.js";
|
|
23
20
|
import {
|
|
24
|
-
WebhookDeleteResponse,
|
|
25
21
|
WebhookEndpoint,
|
|
26
22
|
WebhookEndpointsPage,
|
|
27
23
|
WebhookGetOrCreateParams,
|
|
@@ -38,19 +34,18 @@ import {
|
|
|
38
34
|
PeerCardResponse,
|
|
39
35
|
PeerChatParams,
|
|
40
36
|
PeerChatResponse,
|
|
41
|
-
|
|
42
|
-
|
|
37
|
+
PeerContextParams,
|
|
38
|
+
PeerContextResponse,
|
|
43
39
|
PeerGetOrCreateParams,
|
|
44
40
|
PeerListParams,
|
|
41
|
+
PeerRepresentationParams,
|
|
42
|
+
PeerRepresentationResponse,
|
|
45
43
|
PeerSearchParams,
|
|
46
44
|
PeerSearchResponse,
|
|
47
45
|
PeerSetCardParams,
|
|
48
46
|
PeerUpdateParams,
|
|
49
|
-
PeerWorkingRepresentationParams,
|
|
50
|
-
PeerWorkingRepresentationResponse,
|
|
51
47
|
Peers,
|
|
52
48
|
PeersPage,
|
|
53
|
-
Representation,
|
|
54
49
|
SessionGet,
|
|
55
50
|
} from "./peers/peers.js";
|
|
56
51
|
import * as MessagesAPI from "./sessions/messages.js";
|
|
@@ -59,29 +54,30 @@ import {
|
|
|
59
54
|
Session,
|
|
60
55
|
SessionCloneParams,
|
|
61
56
|
SessionConfiguration,
|
|
57
|
+
SessionContextParams,
|
|
58
|
+
SessionContextResponse,
|
|
62
59
|
SessionDeleteResponse,
|
|
63
|
-
SessionGetContextParams,
|
|
64
|
-
SessionGetContextResponse,
|
|
65
60
|
SessionGetOrCreateParams,
|
|
66
61
|
SessionListParams,
|
|
67
62
|
SessionSearchParams,
|
|
68
63
|
SessionSearchResponse,
|
|
69
64
|
SessionSummariesResponse,
|
|
70
65
|
SessionUpdateParams,
|
|
71
|
-
Sessions
|
|
66
|
+
Sessions,
|
|
72
67
|
SessionsPage,
|
|
73
68
|
Summary,
|
|
74
69
|
} from "./sessions/sessions.js";
|
|
75
70
|
import { Page, type PageParams } from "../../pagination.js";
|
|
76
71
|
|
|
77
72
|
export class Workspaces extends APIResource {
|
|
78
|
-
observations: ObservationsAPI.Observations = new ObservationsAPI.Observations(this._client);
|
|
79
73
|
peers: PeersAPI.Peers = new PeersAPI.Peers(this._client);
|
|
80
74
|
sessions: SessionsAPI.Sessions = new SessionsAPI.Sessions(this._client);
|
|
81
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);
|
|
82
78
|
|
|
83
79
|
/**
|
|
84
|
-
* Update
|
|
80
|
+
* Update Workspace metadata and/or configuration.
|
|
85
81
|
*/
|
|
86
82
|
update(
|
|
87
83
|
workspaceId: string,
|
|
@@ -92,7 +88,7 @@ export class Workspaces extends APIResource {
|
|
|
92
88
|
}
|
|
93
89
|
|
|
94
90
|
/**
|
|
95
|
-
* Get all Workspaces
|
|
91
|
+
* Get all Workspaces, paginated with optional filters.
|
|
96
92
|
*/
|
|
97
93
|
list(
|
|
98
94
|
params?: WorkspaceListParams,
|
|
@@ -116,31 +112,16 @@ export class Workspaces extends APIResource {
|
|
|
116
112
|
}
|
|
117
113
|
|
|
118
114
|
/**
|
|
119
|
-
* Delete a Workspace
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
/**
|
|
126
|
-
* Get the deriver processing status, optionally scoped to an observer, sender,
|
|
127
|
-
* and/or session
|
|
115
|
+
* Delete a Workspace. This will permanently delete all sessions, peers, messages,
|
|
116
|
+
* and conclusions associated with the workspace.
|
|
117
|
+
*
|
|
118
|
+
* This action cannot be undone.
|
|
128
119
|
*/
|
|
129
|
-
|
|
130
|
-
workspaceId
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
deriverStatus(workspaceId: string, options?: Core.RequestOptions): Core.APIPromise<DeriverStatus>;
|
|
135
|
-
deriverStatus(
|
|
136
|
-
workspaceId: string,
|
|
137
|
-
query: WorkspaceDeriverStatusParams | Core.RequestOptions = {},
|
|
138
|
-
options?: Core.RequestOptions,
|
|
139
|
-
): Core.APIPromise<DeriverStatus> {
|
|
140
|
-
if (isRequestOptions(query)) {
|
|
141
|
-
return this.deriverStatus(workspaceId, {}, query);
|
|
142
|
-
}
|
|
143
|
-
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
|
+
});
|
|
144
125
|
}
|
|
145
126
|
|
|
146
127
|
/**
|
|
@@ -154,111 +135,47 @@ export class Workspaces extends APIResource {
|
|
|
154
135
|
}
|
|
155
136
|
|
|
156
137
|
/**
|
|
157
|
-
*
|
|
158
|
-
*/
|
|
159
|
-
search(
|
|
160
|
-
workspaceId: string,
|
|
161
|
-
body: WorkspaceSearchParams,
|
|
162
|
-
options?: Core.RequestOptions,
|
|
163
|
-
): Core.APIPromise<WorkspaceSearchResponse> {
|
|
164
|
-
return this._client.post(`/v2/workspaces/${workspaceId}/search`, { body, ...options });
|
|
165
|
-
}
|
|
166
|
-
|
|
167
|
-
/**
|
|
168
|
-
* Manually trigger a dream task immediately for a specific collection.
|
|
138
|
+
* Manually schedule a dream task for a specific collection.
|
|
169
139
|
*
|
|
170
140
|
* This endpoint bypasses all automatic dream conditions (document threshold,
|
|
171
|
-
* minimum hours between dreams) and
|
|
172
|
-
*
|
|
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.
|
|
173
147
|
*/
|
|
174
|
-
|
|
148
|
+
scheduleDream(
|
|
175
149
|
workspaceId: string,
|
|
176
|
-
body:
|
|
150
|
+
body: WorkspaceScheduleDreamParams,
|
|
177
151
|
options?: Core.RequestOptions,
|
|
178
152
|
): Core.APIPromise<void> {
|
|
179
|
-
return this._client.post(`/v2/workspaces/${workspaceId}/
|
|
153
|
+
return this._client.post(`/v2/workspaces/${workspaceId}/schedule_dream`, {
|
|
180
154
|
body,
|
|
181
155
|
...options,
|
|
182
156
|
headers: { Accept: '*/*', ...options?.headers },
|
|
183
157
|
});
|
|
184
158
|
}
|
|
185
|
-
}
|
|
186
|
-
|
|
187
|
-
export class WorkspacesPage extends Page<Workspace> {}
|
|
188
159
|
|
|
189
|
-
export interface DeriverConfiguration {
|
|
190
160
|
/**
|
|
191
|
-
*
|
|
192
|
-
*
|
|
161
|
+
* Search messages in a Workspace using optional filters. Use `limit` to control
|
|
162
|
+
* the number of results returned.
|
|
193
163
|
*/
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
}
|
|
201
|
-
|
|
202
|
-
export interface DeriverStatus {
|
|
203
|
-
/**
|
|
204
|
-
* Completed work units
|
|
205
|
-
*/
|
|
206
|
-
completed_work_units: number;
|
|
207
|
-
|
|
208
|
-
/**
|
|
209
|
-
* Work units currently being processed
|
|
210
|
-
*/
|
|
211
|
-
in_progress_work_units: number;
|
|
212
|
-
|
|
213
|
-
/**
|
|
214
|
-
* Work units waiting to be processed
|
|
215
|
-
*/
|
|
216
|
-
pending_work_units: number;
|
|
217
|
-
|
|
218
|
-
/**
|
|
219
|
-
* Total work units
|
|
220
|
-
*/
|
|
221
|
-
total_work_units: number;
|
|
222
|
-
|
|
223
|
-
/**
|
|
224
|
-
* Per-session status when not filtered by session
|
|
225
|
-
*/
|
|
226
|
-
sessions?: { [key: string]: DeriverStatus.Sessions } | null;
|
|
227
|
-
}
|
|
228
|
-
|
|
229
|
-
export namespace DeriverStatus {
|
|
230
|
-
export interface Sessions {
|
|
231
|
-
/**
|
|
232
|
-
* Completed work units
|
|
233
|
-
*/
|
|
234
|
-
completed_work_units: number;
|
|
235
|
-
|
|
236
|
-
/**
|
|
237
|
-
* Work units currently being processed
|
|
238
|
-
*/
|
|
239
|
-
in_progress_work_units: number;
|
|
240
|
-
|
|
241
|
-
/**
|
|
242
|
-
* Work units waiting to be processed
|
|
243
|
-
*/
|
|
244
|
-
pending_work_units: number;
|
|
245
|
-
|
|
246
|
-
/**
|
|
247
|
-
* Total work units
|
|
248
|
-
*/
|
|
249
|
-
total_work_units: number;
|
|
250
|
-
|
|
251
|
-
/**
|
|
252
|
-
* Session ID if filtered by session
|
|
253
|
-
*/
|
|
254
|
-
session_id?: string | null;
|
|
164
|
+
search(
|
|
165
|
+
workspaceId: string,
|
|
166
|
+
body: WorkspaceSearchParams,
|
|
167
|
+
options?: Core.RequestOptions,
|
|
168
|
+
): Core.APIPromise<WorkspaceSearchResponse> {
|
|
169
|
+
return this._client.post(`/v2/workspaces/${workspaceId}/search`, { body, ...options });
|
|
255
170
|
}
|
|
256
171
|
}
|
|
257
172
|
|
|
173
|
+
export class WorkspacesPage extends Page<Workspace> {}
|
|
174
|
+
|
|
258
175
|
export interface DreamConfiguration {
|
|
259
176
|
/**
|
|
260
|
-
* Whether to enable dream functionality. If
|
|
261
|
-
* 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.
|
|
262
179
|
*/
|
|
263
180
|
enabled?: boolean | null;
|
|
264
181
|
}
|
|
@@ -287,11 +204,24 @@ export interface PeerCardConfiguration {
|
|
|
287
204
|
create?: boolean | null;
|
|
288
205
|
|
|
289
206
|
/**
|
|
290
|
-
* Whether to use peer card related to this peer during
|
|
207
|
+
* Whether to use peer card related to this peer during reasoning process.
|
|
291
208
|
*/
|
|
292
209
|
use?: boolean | null;
|
|
293
210
|
}
|
|
294
211
|
|
|
212
|
+
export interface ReasoningConfiguration {
|
|
213
|
+
/**
|
|
214
|
+
* TODO: currently unused. Custom instructions to use for the reasoning system on
|
|
215
|
+
* this workspace/session/message.
|
|
216
|
+
*/
|
|
217
|
+
custom_instructions?: string | null;
|
|
218
|
+
|
|
219
|
+
/**
|
|
220
|
+
* Whether to enable reasoning functionality.
|
|
221
|
+
*/
|
|
222
|
+
enabled?: boolean | null;
|
|
223
|
+
}
|
|
224
|
+
|
|
295
225
|
export interface SummaryConfiguration {
|
|
296
226
|
/**
|
|
297
227
|
* Whether to enable summary functionality.
|
|
@@ -329,22 +259,22 @@ export interface Workspace {
|
|
|
329
259
|
*/
|
|
330
260
|
export interface WorkspaceConfiguration {
|
|
331
261
|
/**
|
|
332
|
-
* Configuration for
|
|
333
|
-
|
|
334
|
-
deriver?: DeriverConfiguration | null;
|
|
335
|
-
|
|
336
|
-
/**
|
|
337
|
-
* Configuration for dream functionality. If deriver is disabled, dreams will also
|
|
338
|
-
* 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.
|
|
339
264
|
*/
|
|
340
265
|
dream?: DreamConfiguration | null;
|
|
341
266
|
|
|
342
267
|
/**
|
|
343
|
-
* Configuration for peer card functionality. If
|
|
268
|
+
* Configuration for peer card functionality. If reasoning is disabled, peer cards
|
|
344
269
|
* will also be disabled and these settings will be ignored.
|
|
345
270
|
*/
|
|
346
271
|
peer_card?: PeerCardConfiguration | null;
|
|
347
272
|
|
|
273
|
+
/**
|
|
274
|
+
* Configuration for reasoning functionality.
|
|
275
|
+
*/
|
|
276
|
+
reasoning?: ReasoningConfiguration | null;
|
|
277
|
+
|
|
348
278
|
/**
|
|
349
279
|
* Configuration for summary functionality.
|
|
350
280
|
*/
|
|
@@ -374,23 +304,6 @@ export interface WorkspaceListParams extends PageParams {
|
|
|
374
304
|
filters?: { [key: string]: unknown } | null;
|
|
375
305
|
}
|
|
376
306
|
|
|
377
|
-
export interface WorkspaceDeriverStatusParams {
|
|
378
|
-
/**
|
|
379
|
-
* Optional observer ID to filter by
|
|
380
|
-
*/
|
|
381
|
-
observer_id?: string | null;
|
|
382
|
-
|
|
383
|
-
/**
|
|
384
|
-
* Optional sender ID to filter by
|
|
385
|
-
*/
|
|
386
|
-
sender_id?: string | null;
|
|
387
|
-
|
|
388
|
-
/**
|
|
389
|
-
* Optional session ID to filter by
|
|
390
|
-
*/
|
|
391
|
-
session_id?: string | null;
|
|
392
|
-
}
|
|
393
|
-
|
|
394
307
|
export interface WorkspaceGetOrCreateParams {
|
|
395
308
|
id: string;
|
|
396
309
|
|
|
@@ -405,57 +318,62 @@ export interface WorkspaceGetOrCreateParams {
|
|
|
405
318
|
metadata?: { [key: string]: unknown };
|
|
406
319
|
}
|
|
407
320
|
|
|
408
|
-
export interface
|
|
321
|
+
export interface WorkspaceScheduleDreamParams {
|
|
409
322
|
/**
|
|
410
|
-
*
|
|
323
|
+
* Type of dream to schedule
|
|
411
324
|
*/
|
|
412
|
-
|
|
325
|
+
dream_type: 'omni';
|
|
413
326
|
|
|
414
327
|
/**
|
|
415
|
-
*
|
|
328
|
+
* Observer peer name
|
|
416
329
|
*/
|
|
417
|
-
|
|
330
|
+
observer: string;
|
|
418
331
|
|
|
419
332
|
/**
|
|
420
|
-
*
|
|
333
|
+
* Session ID to scope the dream to
|
|
421
334
|
*/
|
|
422
|
-
|
|
335
|
+
session_id: string;
|
|
336
|
+
|
|
337
|
+
/**
|
|
338
|
+
* Observed peer name (defaults to observer if not specified)
|
|
339
|
+
*/
|
|
340
|
+
observed?: string | null;
|
|
423
341
|
}
|
|
424
342
|
|
|
425
|
-
export interface
|
|
343
|
+
export interface WorkspaceSearchParams {
|
|
426
344
|
/**
|
|
427
|
-
*
|
|
345
|
+
* Search query
|
|
428
346
|
*/
|
|
429
|
-
|
|
347
|
+
query: string;
|
|
430
348
|
|
|
431
349
|
/**
|
|
432
|
-
*
|
|
350
|
+
* Filters to scope the search
|
|
433
351
|
*/
|
|
434
|
-
|
|
352
|
+
filters?: { [key: string]: unknown } | null;
|
|
435
353
|
|
|
436
354
|
/**
|
|
437
|
-
*
|
|
355
|
+
* Number of results to return
|
|
438
356
|
*/
|
|
439
|
-
|
|
357
|
+
limit?: number;
|
|
440
358
|
}
|
|
441
359
|
|
|
442
360
|
Workspaces.WorkspacesPage = WorkspacesPage;
|
|
443
|
-
Workspaces.Observations = Observations;
|
|
444
|
-
Workspaces.ObservationsPage = ObservationsPage;
|
|
445
361
|
Workspaces.Peers = Peers;
|
|
446
362
|
Workspaces.PeersPage = PeersPage;
|
|
447
|
-
Workspaces.Sessions =
|
|
363
|
+
Workspaces.Sessions = Sessions;
|
|
448
364
|
Workspaces.SessionsPage = SessionsPage;
|
|
449
365
|
Workspaces.Webhooks = Webhooks;
|
|
450
366
|
Workspaces.WebhookEndpointsPage = WebhookEndpointsPage;
|
|
367
|
+
Workspaces.Queue = Queue;
|
|
368
|
+
Workspaces.Conclusions = Conclusions;
|
|
369
|
+
Workspaces.ConclusionsPage = ConclusionsPage;
|
|
451
370
|
|
|
452
371
|
export declare namespace Workspaces {
|
|
453
372
|
export {
|
|
454
|
-
type DeriverConfiguration as DeriverConfiguration,
|
|
455
|
-
type DeriverStatus as DeriverStatus,
|
|
456
373
|
type DreamConfiguration as DreamConfiguration,
|
|
457
374
|
type MessageSearchOptions as MessageSearchOptions,
|
|
458
375
|
type PeerCardConfiguration as PeerCardConfiguration,
|
|
376
|
+
type ReasoningConfiguration as ReasoningConfiguration,
|
|
459
377
|
type SummaryConfiguration as SummaryConfiguration,
|
|
460
378
|
type Workspace as Workspace,
|
|
461
379
|
type WorkspaceConfiguration as WorkspaceConfiguration,
|
|
@@ -463,26 +381,9 @@ export declare namespace Workspaces {
|
|
|
463
381
|
WorkspacesPage as WorkspacesPage,
|
|
464
382
|
type WorkspaceUpdateParams as WorkspaceUpdateParams,
|
|
465
383
|
type WorkspaceListParams as WorkspaceListParams,
|
|
466
|
-
type WorkspaceDeriverStatusParams as WorkspaceDeriverStatusParams,
|
|
467
384
|
type WorkspaceGetOrCreateParams as WorkspaceGetOrCreateParams,
|
|
385
|
+
type WorkspaceScheduleDreamParams as WorkspaceScheduleDreamParams,
|
|
468
386
|
type WorkspaceSearchParams as WorkspaceSearchParams,
|
|
469
|
-
type WorkspaceTriggerDreamParams as WorkspaceTriggerDreamParams,
|
|
470
|
-
};
|
|
471
|
-
|
|
472
|
-
export {
|
|
473
|
-
Observations as Observations,
|
|
474
|
-
type Observation as Observation,
|
|
475
|
-
type ObservationCreate as ObservationCreate,
|
|
476
|
-
type ObservationGet as ObservationGet,
|
|
477
|
-
type ObservationQuery as ObservationQuery,
|
|
478
|
-
type PageObservation as PageObservation,
|
|
479
|
-
type ObservationCreateResponse as ObservationCreateResponse,
|
|
480
|
-
type ObservationDeleteResponse as ObservationDeleteResponse,
|
|
481
|
-
type ObservationQueryResponse as ObservationQueryResponse,
|
|
482
|
-
ObservationsPage as ObservationsPage,
|
|
483
|
-
type ObservationCreateParams as ObservationCreateParams,
|
|
484
|
-
type ObservationListParams as ObservationListParams,
|
|
485
|
-
type ObservationQueryParams as ObservationQueryParams,
|
|
486
387
|
};
|
|
487
388
|
|
|
488
389
|
export {
|
|
@@ -491,38 +392,37 @@ export declare namespace Workspaces {
|
|
|
491
392
|
type PageSession as PageSession,
|
|
492
393
|
type Peer as Peer,
|
|
493
394
|
type PeerCardResponse as PeerCardResponse,
|
|
494
|
-
type Representation as Representation,
|
|
495
395
|
type SessionGet as SessionGet,
|
|
496
396
|
type PeerChatResponse as PeerChatResponse,
|
|
497
|
-
type
|
|
397
|
+
type PeerContextResponse as PeerContextResponse,
|
|
398
|
+
type PeerRepresentationResponse as PeerRepresentationResponse,
|
|
498
399
|
type PeerSearchResponse as PeerSearchResponse,
|
|
499
|
-
type PeerWorkingRepresentationResponse as PeerWorkingRepresentationResponse,
|
|
500
400
|
PeersPage as PeersPage,
|
|
501
401
|
type PeerUpdateParams as PeerUpdateParams,
|
|
502
402
|
type PeerListParams as PeerListParams,
|
|
503
403
|
type PeerCardParams as PeerCardParams,
|
|
504
404
|
type PeerChatParams as PeerChatParams,
|
|
505
|
-
type
|
|
405
|
+
type PeerContextParams as PeerContextParams,
|
|
506
406
|
type PeerGetOrCreateParams as PeerGetOrCreateParams,
|
|
407
|
+
type PeerRepresentationParams as PeerRepresentationParams,
|
|
507
408
|
type PeerSearchParams as PeerSearchParams,
|
|
508
409
|
type PeerSetCardParams as PeerSetCardParams,
|
|
509
|
-
type PeerWorkingRepresentationParams as PeerWorkingRepresentationParams,
|
|
510
410
|
};
|
|
511
411
|
|
|
512
412
|
export {
|
|
513
|
-
|
|
413
|
+
Sessions as Sessions,
|
|
514
414
|
type Session as Session,
|
|
515
415
|
type SessionConfiguration as SessionConfiguration,
|
|
516
416
|
type Summary as Summary,
|
|
517
417
|
type SessionDeleteResponse as SessionDeleteResponse,
|
|
518
|
-
type
|
|
418
|
+
type SessionContextResponse as SessionContextResponse,
|
|
519
419
|
type SessionSearchResponse as SessionSearchResponse,
|
|
520
420
|
type SessionSummariesResponse as SessionSummariesResponse,
|
|
521
421
|
SessionsPage as SessionsPage,
|
|
522
422
|
type SessionUpdateParams as SessionUpdateParams,
|
|
523
423
|
type SessionListParams as SessionListParams,
|
|
524
424
|
type SessionCloneParams as SessionCloneParams,
|
|
525
|
-
type
|
|
425
|
+
type SessionContextParams as SessionContextParams,
|
|
526
426
|
type SessionGetOrCreateParams as SessionGetOrCreateParams,
|
|
527
427
|
type SessionSearchParams as SessionSearchParams,
|
|
528
428
|
};
|
|
@@ -530,10 +430,26 @@ export declare namespace Workspaces {
|
|
|
530
430
|
export {
|
|
531
431
|
Webhooks as Webhooks,
|
|
532
432
|
type WebhookEndpoint as WebhookEndpoint,
|
|
533
|
-
type WebhookDeleteResponse as WebhookDeleteResponse,
|
|
534
433
|
type WebhookTestEmitResponse as WebhookTestEmitResponse,
|
|
535
434
|
WebhookEndpointsPage as WebhookEndpointsPage,
|
|
536
435
|
type WebhookListParams as WebhookListParams,
|
|
537
436
|
type WebhookGetOrCreateParams as WebhookGetOrCreateParams,
|
|
538
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
|
+
};
|
|
539
455
|
}
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '1.
|
|
1
|
+
export const VERSION = '2.1.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 = "2.1.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 = '2.1.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"}
|
package/resources/keys.js
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.Keys = void 0;
|
|
5
|
-
const resource_1 = require("../resource.js");
|
|
6
|
-
const core_1 = require("../core.js");
|
|
7
|
-
class Keys extends resource_1.APIResource {
|
|
8
|
-
create(params = {}, options) {
|
|
9
|
-
if ((0, core_1.isRequestOptions)(params)) {
|
|
10
|
-
return this.create({}, params);
|
|
11
|
-
}
|
|
12
|
-
const { expires_at, peer_id, session_id, workspace_id } = params;
|
|
13
|
-
return this._client.post('/v2/keys', {
|
|
14
|
-
query: { expires_at, peer_id, session_id, workspace_id },
|
|
15
|
-
...options,
|
|
16
|
-
});
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
exports.Keys = Keys;
|
|
20
|
-
//# sourceMappingURL=keys.js.map
|
package/resources/keys.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"keys.js","sourceRoot":"","sources":["../src/resources/keys.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,6CAA0C;AAC1C,qCAA2C;AAG3C,MAAa,IAAK,SAAQ,sBAAW;IAMnC,MAAM,CACJ,SAAgD,EAAE,EAClD,OAA6B;QAE7B,IAAI,IAAA,uBAAgB,EAAC,MAAM,CAAC,EAAE;YAC5B,OAAO,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,MAAM,CAAC,CAAC;SAChC;QACD,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,GAAG,MAAM,CAAC;QACjE,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,UAAU,EAAE;YACnC,KAAK,EAAE,EAAE,UAAU,EAAE,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE;YACxD,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;CACF;AAnBD,oBAmBC"}
|
package/resources/keys.mjs
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
import { APIResource } from "../resource.mjs";
|
|
3
|
-
import { isRequestOptions } from "../core.mjs";
|
|
4
|
-
export class Keys extends APIResource {
|
|
5
|
-
create(params = {}, options) {
|
|
6
|
-
if (isRequestOptions(params)) {
|
|
7
|
-
return this.create({}, params);
|
|
8
|
-
}
|
|
9
|
-
const { expires_at, peer_id, session_id, workspace_id } = params;
|
|
10
|
-
return this._client.post('/v2/keys', {
|
|
11
|
-
query: { expires_at, peer_id, session_id, workspace_id },
|
|
12
|
-
...options,
|
|
13
|
-
});
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
//# sourceMappingURL=keys.mjs.map
|
package/resources/keys.mjs.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"keys.mjs","sourceRoot":"","sources":["../src/resources/keys.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,EAAE,gBAAgB,EAAE;AAG3B,MAAM,OAAO,IAAK,SAAQ,WAAW;IAMnC,MAAM,CACJ,SAAgD,EAAE,EAClD,OAA6B;QAE7B,IAAI,gBAAgB,CAAC,MAAM,CAAC,EAAE;YAC5B,OAAO,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,MAAM,CAAC,CAAC;SAChC;QACD,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,GAAG,MAAM,CAAC;QACjE,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,UAAU,EAAE;YACnC,KAAK,EAAE,EAAE,UAAU,EAAE,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE;YACxD,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;CACF"}
|