@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
|
@@ -4,58 +4,59 @@ import * as WorkspacesAPI from "../workspaces.js";
|
|
|
4
4
|
import * as MessagesAPI from "./messages.js";
|
|
5
5
|
import { Message, MessageCreate, MessageCreateParams, MessageCreateResponse, MessageListParams, MessageUpdateParams, MessageUploadParams, MessageUploadResponse, Messages, MessagesPage } from "./messages.js";
|
|
6
6
|
import * as PeersAPI from "./peers.js";
|
|
7
|
-
import { PeerAddParams, PeerListParams, PeerRemoveParams, PeerSetConfigParams,
|
|
7
|
+
import { PeerAddParams, PeerListParams, PeerRemoveParams, PeerSetConfigParams, PeerSetParams, Peers, SessionPeerConfig } from "./peers.js";
|
|
8
8
|
import { Page, type PageParams } from "../../../pagination.js";
|
|
9
9
|
export declare class Sessions extends APIResource {
|
|
10
10
|
messages: MessagesAPI.Messages;
|
|
11
11
|
peers: PeersAPI.Peers;
|
|
12
12
|
/**
|
|
13
|
-
* Update
|
|
13
|
+
* Update a Session's metadata and/or configuration.
|
|
14
14
|
*/
|
|
15
15
|
update(workspaceId: string, sessionId: string, body: SessionUpdateParams, options?: Core.RequestOptions): Core.APIPromise<Session>;
|
|
16
16
|
/**
|
|
17
|
-
* Get
|
|
17
|
+
* Get all Sessions for a Workspace, paginated with optional filters.
|
|
18
18
|
*/
|
|
19
19
|
list(workspaceId: string, params?: SessionListParams, options?: Core.RequestOptions): Core.PagePromise<SessionsPage, Session>;
|
|
20
20
|
list(workspaceId: string, options?: Core.RequestOptions): Core.PagePromise<SessionsPage, Session>;
|
|
21
21
|
/**
|
|
22
|
-
* Delete a
|
|
22
|
+
* Delete a Session and all associated messages.
|
|
23
23
|
*
|
|
24
|
-
* The
|
|
25
|
-
* actual deletion of all related data
|
|
26
|
-
*
|
|
24
|
+
* The Session is marked as inactive immediately and returns 202 Accepted. The
|
|
25
|
+
* actual deletion of all related data happens asynchronously via the queue with
|
|
26
|
+
* retry support.
|
|
27
27
|
*
|
|
28
28
|
* This action cannot be undone.
|
|
29
29
|
*/
|
|
30
30
|
delete(workspaceId: string, sessionId: string, options?: Core.RequestOptions): Core.APIPromise<unknown>;
|
|
31
31
|
/**
|
|
32
|
-
* Clone a
|
|
32
|
+
* Clone a Session, optionally up to a specific message ID.
|
|
33
33
|
*/
|
|
34
|
-
clone(workspaceId: string, sessionId: string,
|
|
34
|
+
clone(workspaceId: string, sessionId: string, params?: SessionCloneParams, options?: Core.RequestOptions): Core.APIPromise<Session>;
|
|
35
35
|
clone(workspaceId: string, sessionId: string, options?: Core.RequestOptions): Core.APIPromise<Session>;
|
|
36
36
|
/**
|
|
37
|
-
* Produce a context object from the
|
|
37
|
+
* Produce a context object from the Session. The caller provides an optional token
|
|
38
38
|
* limit which the entire context must fit into. If not provided, the context will
|
|
39
39
|
* be exhaustive (within configured max tokens). To do this, we allocate 40% of the
|
|
40
40
|
* token limit to the summary, and 60% to recent messages -- as many as can fit.
|
|
41
41
|
* Note that the summary will usually take up less space than this. If the caller
|
|
42
42
|
* does not want a summary, we allocate all the tokens to recent messages.
|
|
43
43
|
*/
|
|
44
|
-
|
|
45
|
-
|
|
44
|
+
context(workspaceId: string, sessionId: string, query?: SessionContextParams, options?: Core.RequestOptions): Core.APIPromise<SessionContextResponse>;
|
|
45
|
+
context(workspaceId: string, sessionId: string, options?: Core.RequestOptions): Core.APIPromise<SessionContextResponse>;
|
|
46
46
|
/**
|
|
47
|
-
* Get a
|
|
47
|
+
* Get a Session by ID or create a new Session with the given ID.
|
|
48
48
|
*
|
|
49
|
-
* If
|
|
50
|
-
*
|
|
49
|
+
* If Session ID is provided as a parameter, it verifies the Session is in the
|
|
50
|
+
* Workspace. Otherwise, it uses the session_id from the JWT for verification.
|
|
51
51
|
*/
|
|
52
52
|
getOrCreate(workspaceId: string, body: SessionGetOrCreateParams, options?: Core.RequestOptions): Core.APIPromise<Session>;
|
|
53
53
|
/**
|
|
54
|
-
* Search a Session
|
|
54
|
+
* Search a Session with optional filters. Use `limit` to control the number of
|
|
55
|
+
* results returned.
|
|
55
56
|
*/
|
|
56
57
|
search(workspaceId: string, sessionId: string, body: SessionSearchParams, options?: Core.RequestOptions): Core.APIPromise<SessionSearchResponse>;
|
|
57
58
|
/**
|
|
58
|
-
* Get available summaries for a
|
|
59
|
+
* Get available summaries for a Session.
|
|
59
60
|
*
|
|
60
61
|
* Returns both short and long summaries if available, including metadata like the
|
|
61
62
|
* message ID they cover up to, creation timestamp, and token count.
|
|
@@ -84,19 +85,19 @@ export interface Session {
|
|
|
84
85
|
*/
|
|
85
86
|
export interface SessionConfiguration {
|
|
86
87
|
/**
|
|
87
|
-
* Configuration for
|
|
88
|
-
|
|
89
|
-
deriver?: WorkspacesAPI.DeriverConfiguration | null;
|
|
90
|
-
/**
|
|
91
|
-
* Configuration for dream functionality. If deriver is disabled, dreams will also
|
|
92
|
-
* be disabled and these settings will be ignored.
|
|
88
|
+
* Configuration for dream functionality. If reasoning is disabled, dreams will
|
|
89
|
+
* also be disabled and these settings will be ignored.
|
|
93
90
|
*/
|
|
94
91
|
dream?: WorkspacesAPI.DreamConfiguration | null;
|
|
95
92
|
/**
|
|
96
|
-
* Configuration for peer card functionality. If
|
|
93
|
+
* Configuration for peer card functionality. If reasoning is disabled, peer cards
|
|
97
94
|
* will also be disabled and these settings will be ignored.
|
|
98
95
|
*/
|
|
99
96
|
peer_card?: WorkspacesAPI.PeerCardConfiguration | null;
|
|
97
|
+
/**
|
|
98
|
+
* Configuration for reasoning functionality.
|
|
99
|
+
*/
|
|
100
|
+
reasoning?: WorkspacesAPI.ReasoningConfiguration | null;
|
|
100
101
|
/**
|
|
101
102
|
* Configuration for summary functionality.
|
|
102
103
|
*/
|
|
@@ -126,7 +127,7 @@ export interface Summary {
|
|
|
126
127
|
token_count: number;
|
|
127
128
|
}
|
|
128
129
|
export type SessionDeleteResponse = unknown;
|
|
129
|
-
export interface
|
|
130
|
+
export interface SessionContextResponse {
|
|
130
131
|
id: string;
|
|
131
132
|
messages: Array<MessagesAPI.Message>;
|
|
132
133
|
/**
|
|
@@ -134,94 +135,15 @@ export interface SessionGetContextResponse {
|
|
|
134
135
|
*/
|
|
135
136
|
peer_card?: Array<string> | null;
|
|
136
137
|
/**
|
|
137
|
-
* A
|
|
138
|
-
*
|
|
139
|
-
*
|
|
140
|
-
* From there, deductive observations can be made by establishing logical
|
|
141
|
-
* relationships between explicit observations.
|
|
142
|
-
*
|
|
143
|
-
* In the future, we can add more levels of reasoning on top of these.
|
|
144
|
-
*
|
|
145
|
-
* All of a peer's observations are stored as documents in a collection. These
|
|
146
|
-
* documents can be queried in various ways to produce this Representation object.
|
|
147
|
-
*
|
|
148
|
-
* Additionally, a "working representation" is a version of this data structure
|
|
149
|
-
* representing the most recent observations within a single session.
|
|
150
|
-
*
|
|
151
|
-
* A representation can have a maximum number of observations, which is applied
|
|
152
|
-
* individually to each level of reasoning. If a maximum is set, observations are
|
|
153
|
-
* added and removed in FIFO order.
|
|
138
|
+
* A curated subset of a peer representation, if context is requested from a
|
|
139
|
+
* specific perspective
|
|
154
140
|
*/
|
|
155
|
-
peer_representation?:
|
|
141
|
+
peer_representation?: string | null;
|
|
156
142
|
/**
|
|
157
143
|
* The summary if available
|
|
158
144
|
*/
|
|
159
145
|
summary?: Summary | null;
|
|
160
146
|
}
|
|
161
|
-
export declare namespace SessionGetContextResponse {
|
|
162
|
-
/**
|
|
163
|
-
* A Representation is a traversable and diffable map of observations. At the base,
|
|
164
|
-
* we have a list of explicit observations, derived from a peer's messages.
|
|
165
|
-
*
|
|
166
|
-
* From there, deductive observations can be made by establishing logical
|
|
167
|
-
* relationships between explicit observations.
|
|
168
|
-
*
|
|
169
|
-
* In the future, we can add more levels of reasoning on top of these.
|
|
170
|
-
*
|
|
171
|
-
* All of a peer's observations are stored as documents in a collection. These
|
|
172
|
-
* documents can be queried in various ways to produce this Representation object.
|
|
173
|
-
*
|
|
174
|
-
* Additionally, a "working representation" is a version of this data structure
|
|
175
|
-
* representing the most recent observations within a single session.
|
|
176
|
-
*
|
|
177
|
-
* A representation can have a maximum number of observations, which is applied
|
|
178
|
-
* individually to each level of reasoning. If a maximum is set, observations are
|
|
179
|
-
* added and removed in FIFO order.
|
|
180
|
-
*/
|
|
181
|
-
interface PeerRepresentation {
|
|
182
|
-
/**
|
|
183
|
-
* Conclusions that MUST be true given explicit facts and premises - strict logical
|
|
184
|
-
* necessities. Each deduction should have premises and a single conclusion.
|
|
185
|
-
*/
|
|
186
|
-
deductive?: Array<PeerRepresentation.Deductive>;
|
|
187
|
-
/**
|
|
188
|
-
* Facts LITERALLY stated by the user - direct quotes or clear paraphrases only, no
|
|
189
|
-
* interpretation or inference. Example: ['The user is 25 years old', 'The user has
|
|
190
|
-
* a dog']
|
|
191
|
-
*/
|
|
192
|
-
explicit?: Array<PeerRepresentation.Explicit>;
|
|
193
|
-
}
|
|
194
|
-
namespace PeerRepresentation {
|
|
195
|
-
/**
|
|
196
|
-
* Deductive observation with multiple premises and one conclusion, plus metadata.
|
|
197
|
-
*/
|
|
198
|
-
interface Deductive {
|
|
199
|
-
/**
|
|
200
|
-
* The deductive conclusion
|
|
201
|
-
*/
|
|
202
|
-
conclusion: string;
|
|
203
|
-
created_at: string;
|
|
204
|
-
message_ids: Array<number>;
|
|
205
|
-
session_name: string;
|
|
206
|
-
/**
|
|
207
|
-
* Supporting premises or evidence for this conclusion
|
|
208
|
-
*/
|
|
209
|
-
premises?: Array<string>;
|
|
210
|
-
}
|
|
211
|
-
/**
|
|
212
|
-
* Explicit observation with content and metadata.
|
|
213
|
-
*/
|
|
214
|
-
interface Explicit {
|
|
215
|
-
/**
|
|
216
|
-
* The explicit observation
|
|
217
|
-
*/
|
|
218
|
-
content: string;
|
|
219
|
-
created_at: string;
|
|
220
|
-
message_ids: Array<number>;
|
|
221
|
-
session_name: string;
|
|
222
|
-
}
|
|
223
|
-
}
|
|
224
|
-
}
|
|
225
147
|
export type SessionSearchResponse = Array<MessagesAPI.Message>;
|
|
226
148
|
export interface SessionSummariesResponse {
|
|
227
149
|
id: string;
|
|
@@ -260,14 +182,14 @@ export interface SessionCloneParams {
|
|
|
260
182
|
*/
|
|
261
183
|
message_id?: string | null;
|
|
262
184
|
}
|
|
263
|
-
export interface
|
|
185
|
+
export interface SessionContextParams {
|
|
264
186
|
/**
|
|
265
|
-
* Only used if `last_message` is provided. Whether to include the most
|
|
266
|
-
*
|
|
187
|
+
* Only used if `last_message` is provided. Whether to include the most frequent
|
|
188
|
+
* conclusions in the representation
|
|
267
189
|
*/
|
|
268
|
-
|
|
190
|
+
include_most_frequent?: boolean;
|
|
269
191
|
/**
|
|
270
|
-
* The most recent message, used to fetch semantically relevant
|
|
192
|
+
* The most recent message, used to fetch semantically relevant conclusions
|
|
271
193
|
*/
|
|
272
194
|
last_message?: string | null;
|
|
273
195
|
/**
|
|
@@ -276,10 +198,10 @@ export interface SessionGetContextParams {
|
|
|
276
198
|
*/
|
|
277
199
|
limit_to_session?: boolean;
|
|
278
200
|
/**
|
|
279
|
-
* Only used if `last_message` is provided. The maximum number of
|
|
201
|
+
* Only used if `last_message` is provided. The maximum number of conclusions to
|
|
280
202
|
* include in the representation
|
|
281
203
|
*/
|
|
282
|
-
|
|
204
|
+
max_conclusions?: number | null;
|
|
283
205
|
/**
|
|
284
206
|
* A peer to get context for. If given, response will attempt to include
|
|
285
207
|
* representation and card from the perspective of that peer. Must be provided with
|
|
@@ -295,12 +217,12 @@ export interface SessionGetContextParams {
|
|
|
295
217
|
peer_target?: string | null;
|
|
296
218
|
/**
|
|
297
219
|
* Only used if `last_message` is provided. The maximum distance to search for
|
|
298
|
-
* semantically relevant
|
|
220
|
+
* semantically relevant conclusions
|
|
299
221
|
*/
|
|
300
222
|
search_max_distance?: number | null;
|
|
301
223
|
/**
|
|
302
224
|
* Only used if `last_message` is provided. The number of semantic-search-retrieved
|
|
303
|
-
*
|
|
225
|
+
* conclusions to include in the representation
|
|
304
226
|
*/
|
|
305
227
|
search_top_k?: number | null;
|
|
306
228
|
/**
|
|
@@ -347,8 +269,8 @@ export interface SessionSearchParams {
|
|
|
347
269
|
limit?: number;
|
|
348
270
|
}
|
|
349
271
|
export declare namespace Sessions {
|
|
350
|
-
export { type Session as Session, type SessionConfiguration as SessionConfiguration, type Summary as Summary, type SessionDeleteResponse as SessionDeleteResponse, type
|
|
272
|
+
export { type Session as Session, type SessionConfiguration as SessionConfiguration, type Summary as Summary, type SessionDeleteResponse as SessionDeleteResponse, type SessionContextResponse as SessionContextResponse, type SessionSearchResponse as SessionSearchResponse, type SessionSummariesResponse as SessionSummariesResponse, SessionsPage as SessionsPage, type SessionUpdateParams as SessionUpdateParams, type SessionListParams as SessionListParams, type SessionCloneParams as SessionCloneParams, type SessionContextParams as SessionContextParams, type SessionGetOrCreateParams as SessionGetOrCreateParams, type SessionSearchParams as SessionSearchParams, };
|
|
351
273
|
export { Messages as Messages, type Message as Message, type MessageCreate as MessageCreate, type MessageCreateResponse as MessageCreateResponse, type MessageUploadResponse as MessageUploadResponse, MessagesPage as MessagesPage, type MessageCreateParams as MessageCreateParams, type MessageUpdateParams as MessageUpdateParams, type MessageListParams as MessageListParams, type MessageUploadParams as MessageUploadParams, };
|
|
352
|
-
export { Peers as Peers, type SessionPeerConfig as SessionPeerConfig, type
|
|
274
|
+
export { Peers as Peers, type SessionPeerConfig as SessionPeerConfig, type PeerListParams as PeerListParams, type PeerAddParams as PeerAddParams, type PeerRemoveParams as PeerRemoveParams, type PeerSetParams as PeerSetParams, type PeerSetConfigParams as PeerSetConfigParams, };
|
|
353
275
|
}
|
|
354
276
|
//# sourceMappingURL=sessions.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sessions.d.ts","sourceRoot":"","sources":["../../../src/resources/workspaces/sessions/sessions.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAEhD,OAAO,KAAK,IAAI,MAAM,eAAe,CAAC;AACtC,OAAO,KAAK,aAAa,MAAM,eAAe,CAAC;AAC/C,OAAO,KAAK,WAAW,MAAM,YAAY,CAAC;AAC1C,OAAO,EACL,OAAO,EACP,aAAa,EACb,mBAAmB,EACnB,qBAAqB,EACrB,iBAAiB,EACjB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACrB,QAAQ,EACR,YAAY,EACb,MAAM,YAAY,CAAC;AACpB,OAAO,KAAK,QAAQ,MAAM,SAAS,CAAC;AACpC,OAAO,EACL,aAAa,EACb,cAAc,EACd,gBAAgB,EAChB,mBAAmB,EACnB,
|
|
1
|
+
{"version":3,"file":"sessions.d.ts","sourceRoot":"","sources":["../../../src/resources/workspaces/sessions/sessions.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAEhD,OAAO,KAAK,IAAI,MAAM,eAAe,CAAC;AACtC,OAAO,KAAK,aAAa,MAAM,eAAe,CAAC;AAC/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EAC7C,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,mBAAmB,IAAI,mBAAmB,GAChD,CAAC;IAEF,OAAO,EACL,QAAQ,IAAI,QAAQ,EACpB,KAAK,OAAO,IAAI,OAAO,EACvB,KAAK,aAAa,IAAI,aAAa,EACnC,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,YAAY,IAAI,YAAY,EAC5B,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,mBAAmB,IAAI,mBAAmB,GAChD,CAAC;IAEF,OAAO,EACL,KAAK,IAAI,KAAK,EACd,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,cAAc,IAAI,cAAc,EACrC,KAAK,aAAa,IAAI,aAAa,EACnC,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,aAAa,IAAI,aAAa,EACnC,KAAK,mBAAmB,IAAI,mBAAmB,GAChD,CAAC;CACH"}
|
|
@@ -39,7 +39,7 @@ class Sessions extends resource_1.APIResource {
|
|
|
39
39
|
this.peers = new PeersAPI.Peers(this._client);
|
|
40
40
|
}
|
|
41
41
|
/**
|
|
42
|
-
* Update
|
|
42
|
+
* Update a Session's metadata and/or configuration.
|
|
43
43
|
*/
|
|
44
44
|
update(workspaceId, sessionId, body, options) {
|
|
45
45
|
return this._client.put(`/v2/workspaces/${workspaceId}/sessions/${sessionId}`, { body, ...options });
|
|
@@ -57,29 +57,30 @@ class Sessions extends resource_1.APIResource {
|
|
|
57
57
|
});
|
|
58
58
|
}
|
|
59
59
|
/**
|
|
60
|
-
* Delete a
|
|
60
|
+
* Delete a Session and all associated messages.
|
|
61
61
|
*
|
|
62
|
-
* The
|
|
63
|
-
* actual deletion of all related data
|
|
64
|
-
*
|
|
62
|
+
* The Session is marked as inactive immediately and returns 202 Accepted. The
|
|
63
|
+
* actual deletion of all related data happens asynchronously via the queue with
|
|
64
|
+
* retry support.
|
|
65
65
|
*
|
|
66
66
|
* This action cannot be undone.
|
|
67
67
|
*/
|
|
68
68
|
delete(workspaceId, sessionId, options) {
|
|
69
69
|
return this._client.delete(`/v2/workspaces/${workspaceId}/sessions/${sessionId}`, options);
|
|
70
70
|
}
|
|
71
|
-
clone(workspaceId, sessionId,
|
|
72
|
-
if ((0, core_1.isRequestOptions)(
|
|
73
|
-
return this.clone(workspaceId, sessionId, {},
|
|
71
|
+
clone(workspaceId, sessionId, params = {}, options) {
|
|
72
|
+
if ((0, core_1.isRequestOptions)(params)) {
|
|
73
|
+
return this.clone(workspaceId, sessionId, {}, params);
|
|
74
74
|
}
|
|
75
|
-
|
|
76
|
-
|
|
75
|
+
const { message_id } = params;
|
|
76
|
+
return this._client.post(`/v2/workspaces/${workspaceId}/sessions/${sessionId}/clone`, {
|
|
77
|
+
query: { message_id },
|
|
77
78
|
...options,
|
|
78
79
|
});
|
|
79
80
|
}
|
|
80
|
-
|
|
81
|
+
context(workspaceId, sessionId, query = {}, options) {
|
|
81
82
|
if ((0, core_1.isRequestOptions)(query)) {
|
|
82
|
-
return this.
|
|
83
|
+
return this.context(workspaceId, sessionId, {}, query);
|
|
83
84
|
}
|
|
84
85
|
return this._client.get(`/v2/workspaces/${workspaceId}/sessions/${sessionId}/context`, {
|
|
85
86
|
query,
|
|
@@ -87,16 +88,17 @@ class Sessions extends resource_1.APIResource {
|
|
|
87
88
|
});
|
|
88
89
|
}
|
|
89
90
|
/**
|
|
90
|
-
* Get a
|
|
91
|
+
* Get a Session by ID or create a new Session with the given ID.
|
|
91
92
|
*
|
|
92
|
-
* If
|
|
93
|
-
*
|
|
93
|
+
* If Session ID is provided as a parameter, it verifies the Session is in the
|
|
94
|
+
* Workspace. Otherwise, it uses the session_id from the JWT for verification.
|
|
94
95
|
*/
|
|
95
96
|
getOrCreate(workspaceId, body, options) {
|
|
96
97
|
return this._client.post(`/v2/workspaces/${workspaceId}/sessions`, { body, ...options });
|
|
97
98
|
}
|
|
98
99
|
/**
|
|
99
|
-
* Search a Session
|
|
100
|
+
* Search a Session with optional filters. Use `limit` to control the number of
|
|
101
|
+
* results returned.
|
|
100
102
|
*/
|
|
101
103
|
search(workspaceId, sessionId, body, options) {
|
|
102
104
|
return this._client.post(`/v2/workspaces/${workspaceId}/sessions/${sessionId}/search`, {
|
|
@@ -105,7 +107,7 @@ class Sessions extends resource_1.APIResource {
|
|
|
105
107
|
});
|
|
106
108
|
}
|
|
107
109
|
/**
|
|
108
|
-
* Get available summaries for a
|
|
110
|
+
* Get available summaries for a Session.
|
|
109
111
|
*
|
|
110
112
|
* Returns both short and long summaries if available, including metadata like the
|
|
111
113
|
* message ID they cover up to, creation timestamp, and token count.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sessions.js","sourceRoot":"","sources":["../../../src/resources/workspaces/sessions/sessions.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEtF,mDAAgD;AAChD,2CAAiD;AAGjD,2DAA0C;AAC1C,4CAWoB;AACpB,qDAAoC;AACpC,
|
|
1
|
+
{"version":3,"file":"sessions.js","sourceRoot":"","sources":["../../../src/resources/workspaces/sessions/sessions.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEtF,mDAAgD;AAChD,2CAAiD;AAGjD,2DAA0C;AAC1C,4CAWoB;AACpB,qDAAoC;AACpC,sCAQiB;AACjB,uDAA4D;AAE5D,MAAa,QAAS,SAAQ,sBAAW;IAAzC;;QACE,aAAQ,GAAyB,IAAI,WAAW,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxE,UAAK,GAAmB,IAAI,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IA4J3D,CAAC;IA1JC;;OAEG;IACH,MA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,QAAQ,CAAC,YAAY,GAAG,uBAAY,CAAC;AACrC,QAAQ,CAAC,KAAK,GAAG,aAAK,CAAC"}
|
|
@@ -13,7 +13,7 @@ export class Sessions extends APIResource {
|
|
|
13
13
|
this.peers = new PeersAPI.Peers(this._client);
|
|
14
14
|
}
|
|
15
15
|
/**
|
|
16
|
-
* Update
|
|
16
|
+
* Update a Session's metadata and/or configuration.
|
|
17
17
|
*/
|
|
18
18
|
update(workspaceId, sessionId, body, options) {
|
|
19
19
|
return this._client.put(`/v2/workspaces/${workspaceId}/sessions/${sessionId}`, { body, ...options });
|
|
@@ -31,29 +31,30 @@ export class Sessions extends APIResource {
|
|
|
31
31
|
});
|
|
32
32
|
}
|
|
33
33
|
/**
|
|
34
|
-
* Delete a
|
|
34
|
+
* Delete a Session and all associated messages.
|
|
35
35
|
*
|
|
36
|
-
* The
|
|
37
|
-
* actual deletion of all related data
|
|
38
|
-
*
|
|
36
|
+
* The Session is marked as inactive immediately and returns 202 Accepted. The
|
|
37
|
+
* actual deletion of all related data happens asynchronously via the queue with
|
|
38
|
+
* retry support.
|
|
39
39
|
*
|
|
40
40
|
* This action cannot be undone.
|
|
41
41
|
*/
|
|
42
42
|
delete(workspaceId, sessionId, options) {
|
|
43
43
|
return this._client.delete(`/v2/workspaces/${workspaceId}/sessions/${sessionId}`, options);
|
|
44
44
|
}
|
|
45
|
-
clone(workspaceId, sessionId,
|
|
46
|
-
if (isRequestOptions(
|
|
47
|
-
return this.clone(workspaceId, sessionId, {},
|
|
45
|
+
clone(workspaceId, sessionId, params = {}, options) {
|
|
46
|
+
if (isRequestOptions(params)) {
|
|
47
|
+
return this.clone(workspaceId, sessionId, {}, params);
|
|
48
48
|
}
|
|
49
|
-
|
|
50
|
-
|
|
49
|
+
const { message_id } = params;
|
|
50
|
+
return this._client.post(`/v2/workspaces/${workspaceId}/sessions/${sessionId}/clone`, {
|
|
51
|
+
query: { message_id },
|
|
51
52
|
...options,
|
|
52
53
|
});
|
|
53
54
|
}
|
|
54
|
-
|
|
55
|
+
context(workspaceId, sessionId, query = {}, options) {
|
|
55
56
|
if (isRequestOptions(query)) {
|
|
56
|
-
return this.
|
|
57
|
+
return this.context(workspaceId, sessionId, {}, query);
|
|
57
58
|
}
|
|
58
59
|
return this._client.get(`/v2/workspaces/${workspaceId}/sessions/${sessionId}/context`, {
|
|
59
60
|
query,
|
|
@@ -61,16 +62,17 @@ export class Sessions extends APIResource {
|
|
|
61
62
|
});
|
|
62
63
|
}
|
|
63
64
|
/**
|
|
64
|
-
* Get a
|
|
65
|
+
* Get a Session by ID or create a new Session with the given ID.
|
|
65
66
|
*
|
|
66
|
-
* If
|
|
67
|
-
*
|
|
67
|
+
* If Session ID is provided as a parameter, it verifies the Session is in the
|
|
68
|
+
* Workspace. Otherwise, it uses the session_id from the JWT for verification.
|
|
68
69
|
*/
|
|
69
70
|
getOrCreate(workspaceId, body, options) {
|
|
70
71
|
return this._client.post(`/v2/workspaces/${workspaceId}/sessions`, { body, ...options });
|
|
71
72
|
}
|
|
72
73
|
/**
|
|
73
|
-
* Search a Session
|
|
74
|
+
* Search a Session with optional filters. Use `limit` to control the number of
|
|
75
|
+
* results returned.
|
|
74
76
|
*/
|
|
75
77
|
search(workspaceId, sessionId, body, options) {
|
|
76
78
|
return this._client.post(`/v2/workspaces/${workspaceId}/sessions/${sessionId}/search`, {
|
|
@@ -79,7 +81,7 @@ export class Sessions extends APIResource {
|
|
|
79
81
|
});
|
|
80
82
|
}
|
|
81
83
|
/**
|
|
82
|
-
* Get available summaries for a
|
|
84
|
+
* Get available summaries for a Session.
|
|
83
85
|
*
|
|
84
86
|
* Returns both short and long summaries if available, including metadata like the
|
|
85
87
|
* message ID they cover up to, creation timestamp, and token count.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sessions.mjs","sourceRoot":"","sources":["../../../src/resources/workspaces/sessions/sessions.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,EAAE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C;IAC3F,CAAC;IAED;;;OAGG;IACH,MAAM,CACJ,WAAmB,EACnB,SAAiB,EACjB,IAAyB,EACzB,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,kBAAkB,WAAW,aAAa,SAAS,SAAS,EAAE;YACrF,IAAI;YACJ,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,SAAS,CACP,WAAmB,EACnB,SAAiB,EACjB,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,kBAAkB,WAAW,aAAa,SAAS,YAAY,EAAE,OAAO,CAAC,CAAC;IACpG,CAAC;CACF;AAED,MAAM,OAAO,YAAa,SAAQ,IAAa;CAAG;AA8OlD,QAAQ,CAAC,YAAY,GAAG,YAAY,CAAC;AACrC,QAAQ,CAAC,QAAQ,GAAG,QAAQ,CAAC;AAC7B,QAAQ,CAAC,YAAY,GAAG,YAAY,CAAC;AACrC,QAAQ,CAAC,KAAK,GAAG,KAAK,CAAC"}
|
|
@@ -10,7 +10,7 @@ export declare class Webhooks extends APIResource {
|
|
|
10
10
|
/**
|
|
11
11
|
* Delete a specific webhook endpoint.
|
|
12
12
|
*/
|
|
13
|
-
delete(workspaceId: string, endpointId: string, options?: Core.RequestOptions): Core.APIPromise<
|
|
13
|
+
delete(workspaceId: string, endpointId: string, options?: Core.RequestOptions): Core.APIPromise<void>;
|
|
14
14
|
/**
|
|
15
15
|
* Get or create a webhook endpoint URL.
|
|
16
16
|
*/
|
|
@@ -28,7 +28,6 @@ export interface WebhookEndpoint {
|
|
|
28
28
|
url: string;
|
|
29
29
|
workspace_id: string | null;
|
|
30
30
|
}
|
|
31
|
-
export type WebhookDeleteResponse = unknown;
|
|
32
31
|
export type WebhookTestEmitResponse = unknown;
|
|
33
32
|
export interface WebhookListParams extends PageParams {
|
|
34
33
|
}
|
|
@@ -36,6 +35,6 @@ export interface WebhookGetOrCreateParams {
|
|
|
36
35
|
url: string;
|
|
37
36
|
}
|
|
38
37
|
export declare namespace Webhooks {
|
|
39
|
-
export { type WebhookEndpoint as WebhookEndpoint, type
|
|
38
|
+
export { type WebhookEndpoint as WebhookEndpoint, type WebhookTestEmitResponse as WebhookTestEmitResponse, WebhookEndpointsPage as WebhookEndpointsPage, type WebhookListParams as WebhookListParams, type WebhookGetOrCreateParams as WebhookGetOrCreateParams, };
|
|
40
39
|
}
|
|
41
40
|
//# sourceMappingURL=webhooks.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"webhooks.d.ts","sourceRoot":"","sources":["../../src/resources/workspaces/webhooks.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,OAAO,KAAK,IAAI,MAAM,YAAY,CAAC;AACnC,OAAO,EAAE,IAAI,EAAE,KAAK,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAEzD,qBAAa,QAAS,SAAQ,WAAW;IACvC;;OAEG;IACH,IAAI,CACF,WAAW,EAAE,MAAM,EACnB,KAAK,CAAC,EAAE,iBAAiB,EACzB,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAC5B,IAAI,CAAC,WAAW,CAAC,oBAAoB,EAAE,eAAe,CAAC;IAC1D,IAAI,CACF,WAAW,EAAE,MAAM,EACnB,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAC5B,IAAI,CAAC,WAAW,CAAC,oBAAoB,EAAE,eAAe,CAAC;IAe1D;;OAEG;IACH,MAAM,CAAC,WAAW,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,UAAU,CAAC,
|
|
1
|
+
{"version":3,"file":"webhooks.d.ts","sourceRoot":"","sources":["../../src/resources/workspaces/webhooks.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,OAAO,KAAK,I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,wBAAwB;IACvC,GAAG,EAAE,MAAM,CAAC;CACb;AAID,MAAM,CAAC,OAAO,WAAW,QAAQ,CAAC;IAChC,OAAO,EACL,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,oBAAoB,IAAI,oBAAoB,EAC5C,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,wBAAwB,IAAI,wBAAwB,GAC1D,CAAC;CACH"}
|
|
@@ -19,7 +19,10 @@ class Webhooks extends resource_1.APIResource {
|
|
|
19
19
|
* Delete a specific webhook endpoint.
|
|
20
20
|
*/
|
|
21
21
|
delete(workspaceId, endpointId, options) {
|
|
22
|
-
return this._client.delete(`/v2/workspaces/${workspaceId}/webhooks/${endpointId}`,
|
|
22
|
+
return this._client.delete(`/v2/workspaces/${workspaceId}/webhooks/${endpointId}`, {
|
|
23
|
+
...options,
|
|
24
|
+
headers: { Accept: '*/*', ...options?.headers },
|
|
25
|
+
});
|
|
23
26
|
}
|
|
24
27
|
/**
|
|
25
28
|
* Get or create a webhook endpoint URL.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"webhooks.js","sourceRoot":"","sources":["../../src/resources/workspaces/webhooks.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,gDAA6C;AAC7C,wCAA8C;AAE9C,oDAAyD;AAEzD,MAAa,QAAS,SAAQ,sBAAW;IAavC,IAAI,CACF,WAAmB,EACnB,QAAiD,EAAE,EACnD,OAA6B;QAE7B,IAAI,IAAA,uBAAgB,EAAC,KAAK,CAAC,EAAE;YAC3B,OAAO,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE,EAAE,EAAE,KAAK,CAAC,CAAC;SAC1C;QACD,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,kBAAkB,WAAW,WAAW,EAAE,oBAAoB,EAAE;YAC7F,KAAK;YACL,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,M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AAC,GAAG,CAAC,kBAAkB,WAAW,gBAAgB,EAAE,OAAO,CAAC,CAAC;IAClF,CAAC;CACF;AAtDD,4BAsDC;AAED,MAAa,oBAAqB,SAAQ,iBAAqB;CAAG;AAAlE,oDAAkE;AAoBlE,QAAQ,CAAC,oBAAoB,GAAG,oBAAoB,CAAC"}
|
|
@@ -16,7 +16,10 @@ export class Webhooks extends APIResource {
|
|
|
16
16
|
* Delete a specific webhook endpoint.
|
|
17
17
|
*/
|
|
18
18
|
delete(workspaceId, endpointId, options) {
|
|
19
|
-
return this._client.delete(`/v2/workspaces/${workspaceId}/webhooks/${endpointId}`,
|
|
19
|
+
return this._client.delete(`/v2/workspaces/${workspaceId}/webhooks/${endpointId}`, {
|
|
20
|
+
...options,
|
|
21
|
+
headers: { Accept: '*/*', ...options?.headers },
|
|
22
|
+
});
|
|
20
23
|
}
|
|
21
24
|
/**
|
|
22
25
|
* Get or create a webhook endpoint URL.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"webhooks.mjs","sourceRoot":"","sources":["../../src/resources/workspaces/webhooks.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,EAAE,gBAAgB,EAAE;OAEpB,EAAE,IAAI,EAAmB;AAEhC,MAAM,OAAO,QAAS,SAAQ,WAAW;IAavC,IAAI,CACF,WAAmB,EACnB,QAAiD,EAAE,EACnD,OAA6B;QAE7B,IAAI,gBAAgB,CAAC,KAAK,CAAC,EAAE;YAC3B,OAAO,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE,EAAE,EAAE,KAAK,CAAC,CAAC;SAC1C;QACD,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,kBAAkB,WAAW,WAAW,EAAE,oBAAoB,EAAE;YAC7F,KAAK;YACL,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,WAAmB,EAAE,UAAkB,EAAE,OAA6B;QAC3E,OA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