@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
|
@@ -10,7 +10,7 @@ import { type PageParams } from "../../../pagination.js";
|
|
|
10
10
|
|
|
11
11
|
export class Peers extends APIResource {
|
|
12
12
|
/**
|
|
13
|
-
* Get
|
|
13
|
+
* Get all Peers in a Session. Results are paginated.
|
|
14
14
|
*/
|
|
15
15
|
list(
|
|
16
16
|
workspaceId: string,
|
|
@@ -39,7 +39,8 @@ export class Peers extends APIResource {
|
|
|
39
39
|
}
|
|
40
40
|
|
|
41
41
|
/**
|
|
42
|
-
* Add
|
|
42
|
+
* Add Peers to a Session. If a Peer does not yet exist, it will be created
|
|
43
|
+
* automatically.
|
|
43
44
|
*/
|
|
44
45
|
add(
|
|
45
46
|
workspaceId: string,
|
|
@@ -54,9 +55,9 @@ export class Peers extends APIResource {
|
|
|
54
55
|
}
|
|
55
56
|
|
|
56
57
|
/**
|
|
57
|
-
* Get the configuration for a
|
|
58
|
+
* Get the configuration for a Peer in a Session.
|
|
58
59
|
*/
|
|
59
|
-
|
|
60
|
+
config(
|
|
60
61
|
workspaceId: string,
|
|
61
62
|
sessionId: string,
|
|
62
63
|
peerId: string,
|
|
@@ -69,7 +70,7 @@ export class Peers extends APIResource {
|
|
|
69
70
|
}
|
|
70
71
|
|
|
71
72
|
/**
|
|
72
|
-
* Remove
|
|
73
|
+
* Remove Peers by ID from a Session.
|
|
73
74
|
*/
|
|
74
75
|
remove(
|
|
75
76
|
workspaceId: string,
|
|
@@ -84,7 +85,10 @@ export class Peers extends APIResource {
|
|
|
84
85
|
}
|
|
85
86
|
|
|
86
87
|
/**
|
|
87
|
-
* Set the
|
|
88
|
+
* Set the Peers in a Session. If a Peer does not yet exist, it will be created
|
|
89
|
+
* automatically.
|
|
90
|
+
*
|
|
91
|
+
* This will fully replace the current set of Peers in the Session.
|
|
88
92
|
*/
|
|
89
93
|
set(
|
|
90
94
|
workspaceId: string,
|
|
@@ -99,7 +103,7 @@ export class Peers extends APIResource {
|
|
|
99
103
|
}
|
|
100
104
|
|
|
101
105
|
/**
|
|
102
|
-
* Set the configuration for a
|
|
106
|
+
* Set the configuration for a Peer in a Session.
|
|
103
107
|
*/
|
|
104
108
|
setConfig(
|
|
105
109
|
workspaceId: string,
|
|
@@ -107,17 +111,18 @@ export class Peers extends APIResource {
|
|
|
107
111
|
peerId: string,
|
|
108
112
|
body: PeerSetConfigParams,
|
|
109
113
|
options?: Core.RequestOptions,
|
|
110
|
-
): Core.APIPromise<
|
|
111
|
-
return this._client.
|
|
114
|
+
): Core.APIPromise<void> {
|
|
115
|
+
return this._client.put(`/v2/workspaces/${workspaceId}/sessions/${sessionId}/peers/${peerId}/config`, {
|
|
112
116
|
body,
|
|
113
117
|
...options,
|
|
118
|
+
headers: { Accept: '*/*', ...options?.headers },
|
|
114
119
|
});
|
|
115
120
|
}
|
|
116
121
|
}
|
|
117
122
|
|
|
118
123
|
export interface SessionPeerConfig {
|
|
119
124
|
/**
|
|
120
|
-
* Whether
|
|
125
|
+
* Whether Honcho will use reasoning to form a representation of this peer
|
|
121
126
|
*/
|
|
122
127
|
observe_me?: boolean | null;
|
|
123
128
|
|
|
@@ -128,8 +133,6 @@ export interface SessionPeerConfig {
|
|
|
128
133
|
observe_others?: boolean | null;
|
|
129
134
|
}
|
|
130
135
|
|
|
131
|
-
export type PeerSetConfigResponse = unknown;
|
|
132
|
-
|
|
133
136
|
export interface PeerListParams extends PageParams {}
|
|
134
137
|
|
|
135
138
|
export type PeerAddParams = { [key: string]: SessionPeerConfig };
|
|
@@ -140,7 +143,7 @@ export type PeerSetParams = { [key: string]: SessionPeerConfig };
|
|
|
140
143
|
|
|
141
144
|
export interface PeerSetConfigParams {
|
|
142
145
|
/**
|
|
143
|
-
* Whether
|
|
146
|
+
* Whether Honcho will use reasoning to form a representation of this peer
|
|
144
147
|
*/
|
|
145
148
|
observe_me?: boolean | null;
|
|
146
149
|
|
|
@@ -154,7 +157,6 @@ export interface PeerSetConfigParams {
|
|
|
154
157
|
export declare namespace Peers {
|
|
155
158
|
export {
|
|
156
159
|
type SessionPeerConfig as SessionPeerConfig,
|
|
157
|
-
type PeerSetConfigResponse as PeerSetConfigResponse,
|
|
158
160
|
type PeerListParams as PeerListParams,
|
|
159
161
|
type PeerAddParams as PeerAddParams,
|
|
160
162
|
type PeerRemoveParams as PeerRemoveParams,
|
|
@@ -4,7 +4,6 @@ import { APIResource } from "../../../resource.js";
|
|
|
4
4
|
import { isRequestOptions } from "../../../core.js";
|
|
5
5
|
import * as Core from "../../../core.js";
|
|
6
6
|
import * as WorkspacesAPI from "../workspaces.js";
|
|
7
|
-
import * as PeersAPI from "../peers/peers.js";
|
|
8
7
|
import * as MessagesAPI from "./messages.js";
|
|
9
8
|
import {
|
|
10
9
|
Message,
|
|
@@ -18,13 +17,12 @@ import {
|
|
|
18
17
|
Messages,
|
|
19
18
|
MessagesPage,
|
|
20
19
|
} from "./messages.js";
|
|
21
|
-
import * as
|
|
20
|
+
import * as PeersAPI from "./peers.js";
|
|
22
21
|
import {
|
|
23
22
|
PeerAddParams,
|
|
24
23
|
PeerListParams,
|
|
25
24
|
PeerRemoveParams,
|
|
26
25
|
PeerSetConfigParams,
|
|
27
|
-
PeerSetConfigResponse,
|
|
28
26
|
PeerSetParams,
|
|
29
27
|
Peers,
|
|
30
28
|
SessionPeerConfig,
|
|
@@ -33,10 +31,10 @@ import { Page, type PageParams } from "../../../pagination.js";
|
|
|
33
31
|
|
|
34
32
|
export class Sessions extends APIResource {
|
|
35
33
|
messages: MessagesAPI.Messages = new MessagesAPI.Messages(this._client);
|
|
36
|
-
peers:
|
|
34
|
+
peers: PeersAPI.Peers = new PeersAPI.Peers(this._client);
|
|
37
35
|
|
|
38
36
|
/**
|
|
39
|
-
* Update
|
|
37
|
+
* Update a Session's metadata and/or configuration.
|
|
40
38
|
*/
|
|
41
39
|
update(
|
|
42
40
|
workspaceId: string,
|
|
@@ -48,7 +46,7 @@ export class Sessions extends APIResource {
|
|
|
48
46
|
}
|
|
49
47
|
|
|
50
48
|
/**
|
|
51
|
-
* Get
|
|
49
|
+
* Get all Sessions for a Workspace, paginated with optional filters.
|
|
52
50
|
*/
|
|
53
51
|
list(
|
|
54
52
|
workspaceId: string,
|
|
@@ -74,11 +72,11 @@ export class Sessions extends APIResource {
|
|
|
74
72
|
}
|
|
75
73
|
|
|
76
74
|
/**
|
|
77
|
-
* Delete a
|
|
75
|
+
* Delete a Session and all associated messages.
|
|
78
76
|
*
|
|
79
|
-
* The
|
|
80
|
-
* actual deletion of all related data
|
|
81
|
-
*
|
|
77
|
+
* The Session is marked as inactive immediately and returns 202 Accepted. The
|
|
78
|
+
* actual deletion of all related data happens asynchronously via the queue with
|
|
79
|
+
* retry support.
|
|
82
80
|
*
|
|
83
81
|
* This action cannot be undone.
|
|
84
82
|
*/
|
|
@@ -87,57 +85,58 @@ export class Sessions extends APIResource {
|
|
|
87
85
|
}
|
|
88
86
|
|
|
89
87
|
/**
|
|
90
|
-
* Clone a
|
|
88
|
+
* Clone a Session, optionally up to a specific message ID.
|
|
91
89
|
*/
|
|
92
90
|
clone(
|
|
93
91
|
workspaceId: string,
|
|
94
92
|
sessionId: string,
|
|
95
|
-
|
|
93
|
+
params?: SessionCloneParams,
|
|
96
94
|
options?: Core.RequestOptions,
|
|
97
95
|
): Core.APIPromise<Session>;
|
|
98
96
|
clone(workspaceId: string, sessionId: string, options?: Core.RequestOptions): Core.APIPromise<Session>;
|
|
99
97
|
clone(
|
|
100
98
|
workspaceId: string,
|
|
101
99
|
sessionId: string,
|
|
102
|
-
|
|
100
|
+
params: SessionCloneParams | Core.RequestOptions = {},
|
|
103
101
|
options?: Core.RequestOptions,
|
|
104
102
|
): Core.APIPromise<Session> {
|
|
105
|
-
if (isRequestOptions(
|
|
106
|
-
return this.clone(workspaceId, sessionId, {},
|
|
103
|
+
if (isRequestOptions(params)) {
|
|
104
|
+
return this.clone(workspaceId, sessionId, {}, params);
|
|
107
105
|
}
|
|
108
|
-
|
|
109
|
-
|
|
106
|
+
const { message_id } = params;
|
|
107
|
+
return this._client.post(`/v2/workspaces/${workspaceId}/sessions/${sessionId}/clone`, {
|
|
108
|
+
query: { message_id },
|
|
110
109
|
...options,
|
|
111
110
|
});
|
|
112
111
|
}
|
|
113
112
|
|
|
114
113
|
/**
|
|
115
|
-
* Produce a context object from the
|
|
114
|
+
* Produce a context object from the Session. The caller provides an optional token
|
|
116
115
|
* limit which the entire context must fit into. If not provided, the context will
|
|
117
116
|
* be exhaustive (within configured max tokens). To do this, we allocate 40% of the
|
|
118
117
|
* token limit to the summary, and 60% to recent messages -- as many as can fit.
|
|
119
118
|
* Note that the summary will usually take up less space than this. If the caller
|
|
120
119
|
* does not want a summary, we allocate all the tokens to recent messages.
|
|
121
120
|
*/
|
|
122
|
-
|
|
121
|
+
context(
|
|
123
122
|
workspaceId: string,
|
|
124
123
|
sessionId: string,
|
|
125
|
-
query?:
|
|
124
|
+
query?: SessionContextParams,
|
|
126
125
|
options?: Core.RequestOptions,
|
|
127
|
-
): Core.APIPromise<
|
|
128
|
-
|
|
126
|
+
): Core.APIPromise<SessionContextResponse>;
|
|
127
|
+
context(
|
|
129
128
|
workspaceId: string,
|
|
130
129
|
sessionId: string,
|
|
131
130
|
options?: Core.RequestOptions,
|
|
132
|
-
): Core.APIPromise<
|
|
133
|
-
|
|
131
|
+
): Core.APIPromise<SessionContextResponse>;
|
|
132
|
+
context(
|
|
134
133
|
workspaceId: string,
|
|
135
134
|
sessionId: string,
|
|
136
|
-
query:
|
|
135
|
+
query: SessionContextParams | Core.RequestOptions = {},
|
|
137
136
|
options?: Core.RequestOptions,
|
|
138
|
-
): Core.APIPromise<
|
|
137
|
+
): Core.APIPromise<SessionContextResponse> {
|
|
139
138
|
if (isRequestOptions(query)) {
|
|
140
|
-
return this.
|
|
139
|
+
return this.context(workspaceId, sessionId, {}, query);
|
|
141
140
|
}
|
|
142
141
|
return this._client.get(`/v2/workspaces/${workspaceId}/sessions/${sessionId}/context`, {
|
|
143
142
|
query,
|
|
@@ -146,10 +145,10 @@ export class Sessions extends APIResource {
|
|
|
146
145
|
}
|
|
147
146
|
|
|
148
147
|
/**
|
|
149
|
-
* Get a
|
|
148
|
+
* Get a Session by ID or create a new Session with the given ID.
|
|
150
149
|
*
|
|
151
|
-
* If
|
|
152
|
-
*
|
|
150
|
+
* If Session ID is provided as a parameter, it verifies the Session is in the
|
|
151
|
+
* Workspace. Otherwise, it uses the session_id from the JWT for verification.
|
|
153
152
|
*/
|
|
154
153
|
getOrCreate(
|
|
155
154
|
workspaceId: string,
|
|
@@ -160,7 +159,8 @@ export class Sessions extends APIResource {
|
|
|
160
159
|
}
|
|
161
160
|
|
|
162
161
|
/**
|
|
163
|
-
* Search a Session
|
|
162
|
+
* Search a Session with optional filters. Use `limit` to control the number of
|
|
163
|
+
* results returned.
|
|
164
164
|
*/
|
|
165
165
|
search(
|
|
166
166
|
workspaceId: string,
|
|
@@ -175,7 +175,7 @@ export class Sessions extends APIResource {
|
|
|
175
175
|
}
|
|
176
176
|
|
|
177
177
|
/**
|
|
178
|
-
* Get available summaries for a
|
|
178
|
+
* Get available summaries for a Session.
|
|
179
179
|
*
|
|
180
180
|
* Returns both short and long summaries if available, including metadata like the
|
|
181
181
|
* message ID they cover up to, creation timestamp, and token count.
|
|
@@ -213,22 +213,22 @@ export interface Session {
|
|
|
213
213
|
*/
|
|
214
214
|
export interface SessionConfiguration {
|
|
215
215
|
/**
|
|
216
|
-
* Configuration for
|
|
217
|
-
|
|
218
|
-
deriver?: WorkspacesAPI.DeriverConfiguration | null;
|
|
219
|
-
|
|
220
|
-
/**
|
|
221
|
-
* Configuration for dream functionality. If deriver is disabled, dreams will also
|
|
222
|
-
* be disabled and these settings will be ignored.
|
|
216
|
+
* Configuration for dream functionality. If reasoning is disabled, dreams will
|
|
217
|
+
* also be disabled and these settings will be ignored.
|
|
223
218
|
*/
|
|
224
219
|
dream?: WorkspacesAPI.DreamConfiguration | null;
|
|
225
220
|
|
|
226
221
|
/**
|
|
227
|
-
* Configuration for peer card functionality. If
|
|
222
|
+
* Configuration for peer card functionality. If reasoning is disabled, peer cards
|
|
228
223
|
* will also be disabled and these settings will be ignored.
|
|
229
224
|
*/
|
|
230
225
|
peer_card?: WorkspacesAPI.PeerCardConfiguration | null;
|
|
231
226
|
|
|
227
|
+
/**
|
|
228
|
+
* Configuration for reasoning functionality.
|
|
229
|
+
*/
|
|
230
|
+
reasoning?: WorkspacesAPI.ReasoningConfiguration | null;
|
|
231
|
+
|
|
232
232
|
/**
|
|
233
233
|
* Configuration for summary functionality.
|
|
234
234
|
*/
|
|
@@ -266,7 +266,7 @@ export interface Summary {
|
|
|
266
266
|
|
|
267
267
|
export type SessionDeleteResponse = unknown;
|
|
268
268
|
|
|
269
|
-
export interface
|
|
269
|
+
export interface SessionContextResponse {
|
|
270
270
|
id: string;
|
|
271
271
|
|
|
272
272
|
messages: Array<MessagesAPI.Message>;
|
|
@@ -277,25 +277,10 @@ export interface SessionGetContextResponse {
|
|
|
277
277
|
peer_card?: Array<string> | null;
|
|
278
278
|
|
|
279
279
|
/**
|
|
280
|
-
* A
|
|
281
|
-
*
|
|
282
|
-
*
|
|
283
|
-
* From there, deductive observations can be made by establishing logical
|
|
284
|
-
* relationships between explicit observations.
|
|
285
|
-
*
|
|
286
|
-
* In the future, we can add more levels of reasoning on top of these.
|
|
287
|
-
*
|
|
288
|
-
* All of a peer's observations are stored as documents in a collection. These
|
|
289
|
-
* documents can be queried in various ways to produce this Representation object.
|
|
290
|
-
*
|
|
291
|
-
* Additionally, a "working representation" is a version of this data structure
|
|
292
|
-
* representing the most recent observations within a single session.
|
|
293
|
-
*
|
|
294
|
-
* A representation can have a maximum number of observations, which is applied
|
|
295
|
-
* individually to each level of reasoning. If a maximum is set, observations are
|
|
296
|
-
* added and removed in FIFO order.
|
|
280
|
+
* A curated subset of a peer representation, if context is requested from a
|
|
281
|
+
* specific perspective
|
|
297
282
|
*/
|
|
298
|
-
peer_representation?:
|
|
283
|
+
peer_representation?: string | null;
|
|
299
284
|
|
|
300
285
|
/**
|
|
301
286
|
* The summary if available
|
|
@@ -345,15 +330,15 @@ export interface SessionCloneParams {
|
|
|
345
330
|
message_id?: string | null;
|
|
346
331
|
}
|
|
347
332
|
|
|
348
|
-
export interface
|
|
333
|
+
export interface SessionContextParams {
|
|
349
334
|
/**
|
|
350
|
-
* Only used if `last_message` is provided. Whether to include the most
|
|
351
|
-
*
|
|
335
|
+
* Only used if `last_message` is provided. Whether to include the most frequent
|
|
336
|
+
* conclusions in the representation
|
|
352
337
|
*/
|
|
353
|
-
|
|
338
|
+
include_most_frequent?: boolean;
|
|
354
339
|
|
|
355
340
|
/**
|
|
356
|
-
* The most recent message, used to fetch semantically relevant
|
|
341
|
+
* The most recent message, used to fetch semantically relevant conclusions
|
|
357
342
|
*/
|
|
358
343
|
last_message?: string | null;
|
|
359
344
|
|
|
@@ -364,10 +349,10 @@ export interface SessionGetContextParams {
|
|
|
364
349
|
limit_to_session?: boolean;
|
|
365
350
|
|
|
366
351
|
/**
|
|
367
|
-
* Only used if `last_message` is provided. The maximum number of
|
|
352
|
+
* Only used if `last_message` is provided. The maximum number of conclusions to
|
|
368
353
|
* include in the representation
|
|
369
354
|
*/
|
|
370
|
-
|
|
355
|
+
max_conclusions?: number | null;
|
|
371
356
|
|
|
372
357
|
/**
|
|
373
358
|
* A peer to get context for. If given, response will attempt to include
|
|
@@ -386,13 +371,13 @@ export interface SessionGetContextParams {
|
|
|
386
371
|
|
|
387
372
|
/**
|
|
388
373
|
* Only used if `last_message` is provided. The maximum distance to search for
|
|
389
|
-
* semantically relevant
|
|
374
|
+
* semantically relevant conclusions
|
|
390
375
|
*/
|
|
391
376
|
search_max_distance?: number | null;
|
|
392
377
|
|
|
393
378
|
/**
|
|
394
379
|
* Only used if `last_message` is provided. The number of semantic-search-retrieved
|
|
395
|
-
*
|
|
380
|
+
* conclusions to include in the representation
|
|
396
381
|
*/
|
|
397
382
|
search_top_k?: number | null;
|
|
398
383
|
|
|
@@ -422,7 +407,7 @@ export interface SessionGetOrCreateParams {
|
|
|
422
407
|
|
|
423
408
|
metadata?: { [key: string]: unknown } | null;
|
|
424
409
|
|
|
425
|
-
peers?: { [key: string]:
|
|
410
|
+
peers?: { [key: string]: PeersAPI.SessionPeerConfig } | null;
|
|
426
411
|
}
|
|
427
412
|
|
|
428
413
|
export interface SessionSearchParams {
|
|
@@ -453,14 +438,14 @@ export declare namespace Sessions {
|
|
|
453
438
|
type SessionConfiguration as SessionConfiguration,
|
|
454
439
|
type Summary as Summary,
|
|
455
440
|
type SessionDeleteResponse as SessionDeleteResponse,
|
|
456
|
-
type
|
|
441
|
+
type SessionContextResponse as SessionContextResponse,
|
|
457
442
|
type SessionSearchResponse as SessionSearchResponse,
|
|
458
443
|
type SessionSummariesResponse as SessionSummariesResponse,
|
|
459
444
|
SessionsPage as SessionsPage,
|
|
460
445
|
type SessionUpdateParams as SessionUpdateParams,
|
|
461
446
|
type SessionListParams as SessionListParams,
|
|
462
447
|
type SessionCloneParams as SessionCloneParams,
|
|
463
|
-
type
|
|
448
|
+
type SessionContextParams as SessionContextParams,
|
|
464
449
|
type SessionGetOrCreateParams as SessionGetOrCreateParams,
|
|
465
450
|
type SessionSearchParams as SessionSearchParams,
|
|
466
451
|
};
|
|
@@ -481,7 +466,6 @@ export declare namespace Sessions {
|
|
|
481
466
|
export {
|
|
482
467
|
Peers as Peers,
|
|
483
468
|
type SessionPeerConfig as SessionPeerConfig,
|
|
484
|
-
type PeerSetConfigResponse as PeerSetConfigResponse,
|
|
485
469
|
type PeerListParams as PeerListParams,
|
|
486
470
|
type PeerAddParams as PeerAddParams,
|
|
487
471
|
type PeerRemoveParams as PeerRemoveParams,
|
|
@@ -35,8 +35,11 @@ export class Webhooks extends APIResource {
|
|
|
35
35
|
/**
|
|
36
36
|
* Delete a specific webhook endpoint.
|
|
37
37
|
*/
|
|
38
|
-
delete(workspaceId: string, endpointId: string, options?: Core.RequestOptions): Core.APIPromise<
|
|
39
|
-
return this._client.delete(`/v2/workspaces/${workspaceId}/webhooks/${endpointId}`,
|
|
38
|
+
delete(workspaceId: string, endpointId: string, options?: Core.RequestOptions): Core.APIPromise<void> {
|
|
39
|
+
return this._client.delete(`/v2/workspaces/${workspaceId}/webhooks/${endpointId}`, {
|
|
40
|
+
...options,
|
|
41
|
+
headers: { Accept: '*/*', ...options?.headers },
|
|
42
|
+
});
|
|
40
43
|
}
|
|
41
44
|
|
|
42
45
|
/**
|
|
@@ -70,8 +73,6 @@ export interface WebhookEndpoint {
|
|
|
70
73
|
workspace_id: string | null;
|
|
71
74
|
}
|
|
72
75
|
|
|
73
|
-
export type WebhookDeleteResponse = unknown;
|
|
74
|
-
|
|
75
76
|
export type WebhookTestEmitResponse = unknown;
|
|
76
77
|
|
|
77
78
|
export interface WebhookListParams extends PageParams {}
|
|
@@ -85,7 +86,6 @@ Webhooks.WebhookEndpointsPage = WebhookEndpointsPage;
|
|
|
85
86
|
export declare namespace Webhooks {
|
|
86
87
|
export {
|
|
87
88
|
type WebhookEndpoint as WebhookEndpoint,
|
|
88
|
-
type WebhookDeleteResponse as WebhookDeleteResponse,
|
|
89
89
|
type WebhookTestEmitResponse as WebhookTestEmitResponse,
|
|
90
90
|
WebhookEndpointsPage as WebhookEndpointsPage,
|
|
91
91
|
type WebhookListParams as WebhookListParams,
|