@honcho-ai/core 1.0.1 → 1.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 +14 -0
- package/index.d.mts +2 -2
- package/index.d.ts +2 -2
- package/index.d.ts.map +1 -1
- package/index.js.map +1 -1
- package/index.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/index.d.ts +1 -1
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs.map +1 -1
- package/resources/keys.js +1 -1
- package/resources/keys.mjs +1 -1
- package/resources/workspaces/index.d.ts +1 -1
- package/resources/workspaces/index.d.ts.map +1 -1
- package/resources/workspaces/index.js.map +1 -1
- package/resources/workspaces/index.mjs.map +1 -1
- package/resources/workspaces/peers/messages.d.ts +3 -1
- package/resources/workspaces/peers/messages.d.ts.map +1 -1
- package/resources/workspaces/peers/messages.js +2 -2
- package/resources/workspaces/peers/messages.mjs +2 -2
- package/resources/workspaces/peers/peers.d.ts +38 -14
- package/resources/workspaces/peers/peers.d.ts.map +1 -1
- package/resources/workspaces/peers/peers.js +13 -10
- package/resources/workspaces/peers/peers.js.map +1 -1
- package/resources/workspaces/peers/peers.mjs +13 -10
- package/resources/workspaces/peers/peers.mjs.map +1 -1
- package/resources/workspaces/peers/sessions.d.ts +3 -5
- package/resources/workspaces/peers/sessions.d.ts.map +1 -1
- package/resources/workspaces/peers/sessions.js +1 -1
- package/resources/workspaces/peers/sessions.js.map +1 -1
- package/resources/workspaces/peers/sessions.mjs +1 -1
- package/resources/workspaces/peers/sessions.mjs.map +1 -1
- package/resources/workspaces/sessions/messages.d.ts +12 -4
- package/resources/workspaces/sessions/messages.d.ts.map +1 -1
- package/resources/workspaces/sessions/messages.js +4 -4
- package/resources/workspaces/sessions/messages.mjs +4 -4
- package/resources/workspaces/sessions/peers.d.ts +10 -6
- package/resources/workspaces/sessions/peers.d.ts.map +1 -1
- package/resources/workspaces/sessions/peers.js +6 -6
- package/resources/workspaces/sessions/peers.mjs +6 -6
- package/resources/workspaces/sessions/sessions.d.ts +30 -14
- package/resources/workspaces/sessions/sessions.d.ts.map +1 -1
- package/resources/workspaces/sessions/sessions.js +8 -8
- package/resources/workspaces/sessions/sessions.js.map +1 -1
- package/resources/workspaces/sessions/sessions.mjs +8 -8
- package/resources/workspaces/sessions/sessions.mjs.map +1 -1
- package/resources/workspaces/workspaces.d.ts +103 -10
- package/resources/workspaces/workspaces.d.ts.map +1 -1
- package/resources/workspaces/workspaces.js +10 -4
- package/resources/workspaces/workspaces.js.map +1 -1
- package/resources/workspaces/workspaces.mjs +12 -6
- package/resources/workspaces/workspaces.mjs.map +1 -1
- package/src/index.ts +4 -0
- package/src/resources/index.ts +2 -0
- package/src/resources/keys.ts +1 -1
- package/src/resources/workspaces/index.ts +2 -0
- package/src/resources/workspaces/peers/messages.ts +3 -3
- package/src/resources/workspaces/peers/peers.ts +30 -24
- package/src/resources/workspaces/peers/sessions.ts +2 -7
- package/src/resources/workspaces/sessions/messages.ts +8 -8
- package/src/resources/workspaces/sessions/peers.ts +12 -12
- package/src/resources/workspaces/sessions/sessions.ts +24 -24
- package/src/resources/workspaces/workspaces.ts +124 -14
- package/src/version.ts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -32,7 +32,7 @@ export class Peers extends APIResource {
|
|
|
32
32
|
if (isRequestOptions(query)) {
|
|
33
33
|
return this.list(workspaceId, sessionId, {}, query);
|
|
34
34
|
}
|
|
35
|
-
return this._client.getAPIList(`/
|
|
35
|
+
return this._client.getAPIList(`/v2/workspaces/${workspaceId}/sessions/${sessionId}/peers`, PeersPage, {
|
|
36
36
|
query,
|
|
37
37
|
...options,
|
|
38
38
|
});
|
|
@@ -47,7 +47,7 @@ export class Peers extends APIResource {
|
|
|
47
47
|
body: PeerAddParams,
|
|
48
48
|
options?: Core.RequestOptions,
|
|
49
49
|
): Core.APIPromise<SessionsAPI.Session> {
|
|
50
|
-
return this._client.post(`/
|
|
50
|
+
return this._client.post(`/v2/workspaces/${workspaceId}/sessions/${sessionId}/peers`, {
|
|
51
51
|
body,
|
|
52
52
|
...options,
|
|
53
53
|
});
|
|
@@ -63,7 +63,7 @@ export class Peers extends APIResource {
|
|
|
63
63
|
options?: Core.RequestOptions,
|
|
64
64
|
): Core.APIPromise<PeerGetConfigResponse> {
|
|
65
65
|
return this._client.get(
|
|
66
|
-
`/
|
|
66
|
+
`/v2/workspaces/${workspaceId}/sessions/${sessionId}/peers/${peerId}/config`,
|
|
67
67
|
options,
|
|
68
68
|
);
|
|
69
69
|
}
|
|
@@ -77,7 +77,7 @@ export class Peers extends APIResource {
|
|
|
77
77
|
body: PeerRemoveParams,
|
|
78
78
|
options?: Core.RequestOptions,
|
|
79
79
|
): Core.APIPromise<SessionsAPI.Session> {
|
|
80
|
-
return this._client.delete(`/
|
|
80
|
+
return this._client.delete(`/v2/workspaces/${workspaceId}/sessions/${sessionId}/peers`, {
|
|
81
81
|
body,
|
|
82
82
|
...options,
|
|
83
83
|
});
|
|
@@ -92,7 +92,7 @@ export class Peers extends APIResource {
|
|
|
92
92
|
body: PeerSetParams,
|
|
93
93
|
options?: Core.RequestOptions,
|
|
94
94
|
): Core.APIPromise<SessionsAPI.Session> {
|
|
95
|
-
return this._client.put(`/
|
|
95
|
+
return this._client.put(`/v2/workspaces/${workspaceId}/sessions/${sessionId}/peers`, {
|
|
96
96
|
body,
|
|
97
97
|
...options,
|
|
98
98
|
});
|
|
@@ -108,7 +108,7 @@ export class Peers extends APIResource {
|
|
|
108
108
|
body: PeerSetConfigParams,
|
|
109
109
|
options?: Core.RequestOptions,
|
|
110
110
|
): Core.APIPromise<unknown> {
|
|
111
|
-
return this._client.post(`/
|
|
111
|
+
return this._client.post(`/v2/workspaces/${workspaceId}/sessions/${sessionId}/peers/${peerId}/config`, {
|
|
112
112
|
body,
|
|
113
113
|
...options,
|
|
114
114
|
});
|
|
@@ -120,7 +120,7 @@ export interface PeerGetConfigResponse {
|
|
|
120
120
|
* Whether other peers in this session should try to form a session-level
|
|
121
121
|
* theory-of-mind representation of this peer
|
|
122
122
|
*/
|
|
123
|
-
observe_me?: boolean;
|
|
123
|
+
observe_me?: boolean | null;
|
|
124
124
|
|
|
125
125
|
/**
|
|
126
126
|
* Whether this peer should form a session-level theory-of-mind representation of
|
|
@@ -133,7 +133,7 @@ export type PeerSetConfigResponse = unknown;
|
|
|
133
133
|
|
|
134
134
|
export interface PeerListParams extends PageParams {}
|
|
135
135
|
|
|
136
|
-
export type PeerAddParams =
|
|
136
|
+
export type PeerAddParams = { [key: string]: PeerAddParams.Body };
|
|
137
137
|
|
|
138
138
|
export namespace PeerAddParams {
|
|
139
139
|
export interface Body {
|
|
@@ -141,7 +141,7 @@ export namespace PeerAddParams {
|
|
|
141
141
|
* Whether other peers in this session should try to form a session-level
|
|
142
142
|
* theory-of-mind representation of this peer
|
|
143
143
|
*/
|
|
144
|
-
observe_me?: boolean;
|
|
144
|
+
observe_me?: boolean | null;
|
|
145
145
|
|
|
146
146
|
/**
|
|
147
147
|
* Whether this peer should form a session-level theory-of-mind representation of
|
|
@@ -153,7 +153,7 @@ export namespace PeerAddParams {
|
|
|
153
153
|
|
|
154
154
|
export type PeerRemoveParams = Array<string>;
|
|
155
155
|
|
|
156
|
-
export type PeerSetParams =
|
|
156
|
+
export type PeerSetParams = { [key: string]: PeerSetParams.Body };
|
|
157
157
|
|
|
158
158
|
export namespace PeerSetParams {
|
|
159
159
|
export interface Body {
|
|
@@ -161,7 +161,7 @@ export namespace PeerSetParams {
|
|
|
161
161
|
* Whether other peers in this session should try to form a session-level
|
|
162
162
|
* theory-of-mind representation of this peer
|
|
163
163
|
*/
|
|
164
|
-
observe_me?: boolean;
|
|
164
|
+
observe_me?: boolean | null;
|
|
165
165
|
|
|
166
166
|
/**
|
|
167
167
|
* Whether this peer should form a session-level theory-of-mind representation of
|
|
@@ -176,7 +176,7 @@ export interface PeerSetConfigParams {
|
|
|
176
176
|
* Whether other peers in this session should try to form a session-level
|
|
177
177
|
* theory-of-mind representation of this peer
|
|
178
178
|
*/
|
|
179
|
-
observe_me?: boolean;
|
|
179
|
+
observe_me?: boolean | null;
|
|
180
180
|
|
|
181
181
|
/**
|
|
182
182
|
* Whether this peer should form a session-level theory-of-mind representation of
|
|
@@ -40,7 +40,7 @@ export class Sessions extends APIResource {
|
|
|
40
40
|
body: SessionUpdateParams,
|
|
41
41
|
options?: Core.RequestOptions,
|
|
42
42
|
): Core.APIPromise<Session> {
|
|
43
|
-
return this._client.put(`/
|
|
43
|
+
return this._client.put(`/v2/workspaces/${workspaceId}/sessions/${sessionId}`, { body, ...options });
|
|
44
44
|
}
|
|
45
45
|
|
|
46
46
|
/**
|
|
@@ -61,7 +61,7 @@ export class Sessions extends APIResource {
|
|
|
61
61
|
return this.list(workspaceId, {}, params);
|
|
62
62
|
}
|
|
63
63
|
const { page, size, ...body } = params;
|
|
64
|
-
return this._client.getAPIList(`/
|
|
64
|
+
return this._client.getAPIList(`/v2/workspaces/${workspaceId}/sessions/list`, SessionsPage, {
|
|
65
65
|
query: { page, size },
|
|
66
66
|
body,
|
|
67
67
|
method: 'post',
|
|
@@ -73,7 +73,7 @@ export class Sessions extends APIResource {
|
|
|
73
73
|
* Delete a session by marking it as inactive
|
|
74
74
|
*/
|
|
75
75
|
delete(workspaceId: string, sessionId: string, options?: Core.RequestOptions): Core.APIPromise<unknown> {
|
|
76
|
-
return this._client.delete(`/
|
|
76
|
+
return this._client.delete(`/v2/workspaces/${workspaceId}/sessions/${sessionId}`, options);
|
|
77
77
|
}
|
|
78
78
|
|
|
79
79
|
/**
|
|
@@ -95,7 +95,7 @@ export class Sessions extends APIResource {
|
|
|
95
95
|
if (isRequestOptions(query)) {
|
|
96
96
|
return this.clone(workspaceId, sessionId, {}, query);
|
|
97
97
|
}
|
|
98
|
-
return this._client.get(`/
|
|
98
|
+
return this._client.get(`/v2/workspaces/${workspaceId}/sessions/${sessionId}/clone`, {
|
|
99
99
|
query,
|
|
100
100
|
...options,
|
|
101
101
|
});
|
|
@@ -128,7 +128,7 @@ export class Sessions extends APIResource {
|
|
|
128
128
|
if (isRequestOptions(query)) {
|
|
129
129
|
return this.getContext(workspaceId, sessionId, {}, query);
|
|
130
130
|
}
|
|
131
|
-
return this._client.get(`/
|
|
131
|
+
return this._client.get(`/v2/workspaces/${workspaceId}/sessions/${sessionId}/context`, {
|
|
132
132
|
query,
|
|
133
133
|
...options,
|
|
134
134
|
});
|
|
@@ -146,7 +146,7 @@ export class Sessions extends APIResource {
|
|
|
146
146
|
body: SessionGetOrCreateParams,
|
|
147
147
|
options?: Core.RequestOptions,
|
|
148
148
|
): Core.APIPromise<Session> {
|
|
149
|
-
return this._client.post(`/
|
|
149
|
+
return this._client.post(`/v2/workspaces/${workspaceId}/sessions`, { body, ...options });
|
|
150
150
|
}
|
|
151
151
|
|
|
152
152
|
/**
|
|
@@ -158,11 +158,11 @@ export class Sessions extends APIResource {
|
|
|
158
158
|
params: SessionSearchParams,
|
|
159
159
|
options?: Core.RequestOptions,
|
|
160
160
|
): Core.PagePromise<MessagesPage, MessagesAPI.Message> {
|
|
161
|
-
const {
|
|
161
|
+
const { page, size, ...body } = params;
|
|
162
162
|
return this._client.getAPIList(
|
|
163
|
-
`/
|
|
163
|
+
`/v2/workspaces/${workspaceId}/sessions/${sessionId}/search`,
|
|
164
164
|
MessagesPage,
|
|
165
|
-
{ query: { page, size }, body
|
|
165
|
+
{ query: { page, size }, body, method: 'post', ...options },
|
|
166
166
|
);
|
|
167
167
|
}
|
|
168
168
|
}
|
|
@@ -178,9 +178,9 @@ export interface Session {
|
|
|
178
178
|
|
|
179
179
|
workspace_id: string;
|
|
180
180
|
|
|
181
|
-
configuration?:
|
|
181
|
+
configuration?: { [key: string]: unknown };
|
|
182
182
|
|
|
183
|
-
metadata?:
|
|
183
|
+
metadata?: { [key: string]: unknown };
|
|
184
184
|
}
|
|
185
185
|
|
|
186
186
|
export type SessionDeleteResponse = unknown;
|
|
@@ -194,21 +194,16 @@ export interface SessionGetContextResponse {
|
|
|
194
194
|
}
|
|
195
195
|
|
|
196
196
|
export interface SessionUpdateParams {
|
|
197
|
-
configuration?:
|
|
197
|
+
configuration?: { [key: string]: unknown } | null;
|
|
198
198
|
|
|
199
|
-
metadata?:
|
|
199
|
+
metadata?: { [key: string]: unknown } | null;
|
|
200
200
|
}
|
|
201
201
|
|
|
202
202
|
export interface SessionListParams extends PageParams {
|
|
203
203
|
/**
|
|
204
204
|
* Body param:
|
|
205
205
|
*/
|
|
206
|
-
filter?:
|
|
207
|
-
|
|
208
|
-
/**
|
|
209
|
-
* Body param:
|
|
210
|
-
*/
|
|
211
|
-
is_active?: boolean;
|
|
206
|
+
filter?: { [key: string]: unknown } | null;
|
|
212
207
|
}
|
|
213
208
|
|
|
214
209
|
export interface SessionCloneParams {
|
|
@@ -233,11 +228,11 @@ export interface SessionGetContextParams {
|
|
|
233
228
|
export interface SessionGetOrCreateParams {
|
|
234
229
|
id: string;
|
|
235
230
|
|
|
236
|
-
configuration?:
|
|
231
|
+
configuration?: { [key: string]: unknown } | null;
|
|
237
232
|
|
|
238
|
-
metadata?:
|
|
233
|
+
metadata?: { [key: string]: unknown } | null;
|
|
239
234
|
|
|
240
|
-
peers?:
|
|
235
|
+
peers?: { [key: string]: SessionGetOrCreateParams.Peers } | null;
|
|
241
236
|
}
|
|
242
237
|
|
|
243
238
|
export namespace SessionGetOrCreateParams {
|
|
@@ -246,7 +241,7 @@ export namespace SessionGetOrCreateParams {
|
|
|
246
241
|
* Whether other peers in this session should try to form a session-level
|
|
247
242
|
* theory-of-mind representation of this peer
|
|
248
243
|
*/
|
|
249
|
-
observe_me?: boolean;
|
|
244
|
+
observe_me?: boolean | null;
|
|
250
245
|
|
|
251
246
|
/**
|
|
252
247
|
* Whether this peer should form a session-level theory-of-mind representation of
|
|
@@ -260,7 +255,12 @@ export interface SessionSearchParams extends PageParams {
|
|
|
260
255
|
/**
|
|
261
256
|
* Body param: Search query
|
|
262
257
|
*/
|
|
263
|
-
|
|
258
|
+
query: string;
|
|
259
|
+
|
|
260
|
+
/**
|
|
261
|
+
* Body param: Whether to explicitly use semantic search to filter the results
|
|
262
|
+
*/
|
|
263
|
+
semantic?: boolean | null;
|
|
264
264
|
}
|
|
265
265
|
|
|
266
266
|
Sessions.SessionsPage = SessionsPage;
|
|
@@ -32,7 +32,7 @@ import {
|
|
|
32
32
|
SessionListParams,
|
|
33
33
|
SessionSearchParams,
|
|
34
34
|
SessionUpdateParams,
|
|
35
|
-
Sessions,
|
|
35
|
+
Sessions as SessionsAPISessions,
|
|
36
36
|
SessionsPage,
|
|
37
37
|
} from "./sessions/sessions.js";
|
|
38
38
|
import { Page, type PageParams } from "../../pagination.js";
|
|
@@ -49,7 +49,7 @@ export class Workspaces extends APIResource {
|
|
|
49
49
|
body: WorkspaceUpdateParams,
|
|
50
50
|
options?: Core.RequestOptions,
|
|
51
51
|
): Core.APIPromise<Workspace> {
|
|
52
|
-
return this._client.put(`/
|
|
52
|
+
return this._client.put(`/v2/workspaces/${workspaceId}`, { body, ...options });
|
|
53
53
|
}
|
|
54
54
|
|
|
55
55
|
/**
|
|
@@ -68,7 +68,7 @@ export class Workspaces extends APIResource {
|
|
|
68
68
|
return this.list({}, params);
|
|
69
69
|
}
|
|
70
70
|
const { page, size, ...body } = params;
|
|
71
|
-
return this._client.getAPIList('/
|
|
71
|
+
return this._client.getAPIList('/v2/workspaces/list', WorkspacesPage, {
|
|
72
72
|
query: { page, size },
|
|
73
73
|
body,
|
|
74
74
|
method: 'post',
|
|
@@ -76,6 +76,26 @@ export class Workspaces extends APIResource {
|
|
|
76
76
|
});
|
|
77
77
|
}
|
|
78
78
|
|
|
79
|
+
/**
|
|
80
|
+
* Get the deriver processing status, optionally scoped to a peer and/or session
|
|
81
|
+
*/
|
|
82
|
+
deriverStatus(
|
|
83
|
+
workspaceId: string,
|
|
84
|
+
query?: WorkspaceDeriverStatusParams,
|
|
85
|
+
options?: Core.RequestOptions,
|
|
86
|
+
): Core.APIPromise<DeriverStatus>;
|
|
87
|
+
deriverStatus(workspaceId: string, options?: Core.RequestOptions): Core.APIPromise<DeriverStatus>;
|
|
88
|
+
deriverStatus(
|
|
89
|
+
workspaceId: string,
|
|
90
|
+
query: WorkspaceDeriverStatusParams | Core.RequestOptions = {},
|
|
91
|
+
options?: Core.RequestOptions,
|
|
92
|
+
): Core.APIPromise<DeriverStatus> {
|
|
93
|
+
if (isRequestOptions(query)) {
|
|
94
|
+
return this.deriverStatus(workspaceId, {}, query);
|
|
95
|
+
}
|
|
96
|
+
return this._client.get(`/v2/workspaces/${workspaceId}/deriver/status`, { query, ...options });
|
|
97
|
+
}
|
|
98
|
+
|
|
79
99
|
/**
|
|
80
100
|
* Get a Workspace by ID.
|
|
81
101
|
*
|
|
@@ -83,7 +103,7 @@ export class Workspaces extends APIResource {
|
|
|
83
103
|
* workspace_id). Otherwise, it uses the workspace_id from the JWT token.
|
|
84
104
|
*/
|
|
85
105
|
getOrCreate(body: WorkspaceGetOrCreateParams, options?: Core.RequestOptions): Core.APIPromise<Workspace> {
|
|
86
|
-
return this._client.post('/
|
|
106
|
+
return this._client.post('/v2/workspaces', { body, ...options });
|
|
87
107
|
}
|
|
88
108
|
|
|
89
109
|
/**
|
|
@@ -95,7 +115,7 @@ export class Workspaces extends APIResource {
|
|
|
95
115
|
options?: Core.RequestOptions,
|
|
96
116
|
): Core.PagePromise<MessagesPage, MessagesAPI.Message> {
|
|
97
117
|
const { body, page, size } = params;
|
|
98
|
-
return this._client.getAPIList(`/
|
|
118
|
+
return this._client.getAPIList(`/v2/workspaces/${workspaceId}/search`, MessagesPage, {
|
|
99
119
|
query: { page, size },
|
|
100
120
|
body: body,
|
|
101
121
|
method: 'post',
|
|
@@ -106,35 +126,123 @@ export class Workspaces extends APIResource {
|
|
|
106
126
|
|
|
107
127
|
export class WorkspacesPage extends Page<Workspace> {}
|
|
108
128
|
|
|
129
|
+
export interface DeriverStatus {
|
|
130
|
+
/**
|
|
131
|
+
* Completed work units
|
|
132
|
+
*/
|
|
133
|
+
completed_work_units: number;
|
|
134
|
+
|
|
135
|
+
/**
|
|
136
|
+
* Work units currently being processed
|
|
137
|
+
*/
|
|
138
|
+
in_progress_work_units: number;
|
|
139
|
+
|
|
140
|
+
/**
|
|
141
|
+
* Work units waiting to be processed
|
|
142
|
+
*/
|
|
143
|
+
pending_work_units: number;
|
|
144
|
+
|
|
145
|
+
/**
|
|
146
|
+
* Total work units
|
|
147
|
+
*/
|
|
148
|
+
total_work_units: number;
|
|
149
|
+
|
|
150
|
+
/**
|
|
151
|
+
* ID of the peer (optional when filtering by session only)
|
|
152
|
+
*/
|
|
153
|
+
peer_id?: string | null;
|
|
154
|
+
|
|
155
|
+
/**
|
|
156
|
+
* Session ID if filtered by session
|
|
157
|
+
*/
|
|
158
|
+
session_id?: string | null;
|
|
159
|
+
|
|
160
|
+
/**
|
|
161
|
+
* Per-session status when not filtered by session
|
|
162
|
+
*/
|
|
163
|
+
sessions?: { [key: string]: DeriverStatus.Sessions } | null;
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
export namespace DeriverStatus {
|
|
167
|
+
export interface Sessions {
|
|
168
|
+
/**
|
|
169
|
+
* Completed work units
|
|
170
|
+
*/
|
|
171
|
+
completed_work_units: number;
|
|
172
|
+
|
|
173
|
+
/**
|
|
174
|
+
* Work units currently being processed
|
|
175
|
+
*/
|
|
176
|
+
in_progress_work_units: number;
|
|
177
|
+
|
|
178
|
+
/**
|
|
179
|
+
* Work units waiting to be processed
|
|
180
|
+
*/
|
|
181
|
+
pending_work_units: number;
|
|
182
|
+
|
|
183
|
+
/**
|
|
184
|
+
* Total work units
|
|
185
|
+
*/
|
|
186
|
+
total_work_units: number;
|
|
187
|
+
|
|
188
|
+
/**
|
|
189
|
+
* ID of the peer (optional when filtering by session only)
|
|
190
|
+
*/
|
|
191
|
+
peer_id?: string | null;
|
|
192
|
+
|
|
193
|
+
/**
|
|
194
|
+
* Session ID if filtered by session
|
|
195
|
+
*/
|
|
196
|
+
session_id?: string | null;
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
|
|
109
200
|
export interface Workspace {
|
|
110
201
|
id: string;
|
|
111
202
|
|
|
112
203
|
created_at: string;
|
|
113
204
|
|
|
114
|
-
configuration?:
|
|
205
|
+
configuration?: { [key: string]: unknown };
|
|
115
206
|
|
|
116
|
-
metadata?:
|
|
207
|
+
metadata?: { [key: string]: unknown };
|
|
117
208
|
}
|
|
118
209
|
|
|
119
210
|
export interface WorkspaceUpdateParams {
|
|
120
|
-
configuration?:
|
|
211
|
+
configuration?: { [key: string]: unknown } | null;
|
|
121
212
|
|
|
122
|
-
metadata?:
|
|
213
|
+
metadata?: { [key: string]: unknown } | null;
|
|
123
214
|
}
|
|
124
215
|
|
|
125
216
|
export interface WorkspaceListParams extends PageParams {
|
|
126
217
|
/**
|
|
127
218
|
* Body param:
|
|
128
219
|
*/
|
|
129
|
-
filter?:
|
|
220
|
+
filter?: { [key: string]: unknown } | null;
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
export interface WorkspaceDeriverStatusParams {
|
|
224
|
+
/**
|
|
225
|
+
* Include work units triggered by this peer
|
|
226
|
+
*/
|
|
227
|
+
include_sender?: boolean;
|
|
228
|
+
|
|
229
|
+
/**
|
|
230
|
+
* Optional peer ID to filter by
|
|
231
|
+
*/
|
|
232
|
+
peer_id?: string | null;
|
|
233
|
+
|
|
234
|
+
/**
|
|
235
|
+
* Optional session ID to filter by
|
|
236
|
+
*/
|
|
237
|
+
session_id?: string | null;
|
|
130
238
|
}
|
|
131
239
|
|
|
132
240
|
export interface WorkspaceGetOrCreateParams {
|
|
133
241
|
id: string;
|
|
134
242
|
|
|
135
|
-
configuration?:
|
|
243
|
+
configuration?: { [key: string]: unknown };
|
|
136
244
|
|
|
137
|
-
metadata?:
|
|
245
|
+
metadata?: { [key: string]: unknown };
|
|
138
246
|
}
|
|
139
247
|
|
|
140
248
|
export interface WorkspaceSearchParams extends PageParams {
|
|
@@ -147,15 +255,17 @@ export interface WorkspaceSearchParams extends PageParams {
|
|
|
147
255
|
Workspaces.WorkspacesPage = WorkspacesPage;
|
|
148
256
|
Workspaces.Peers = Peers;
|
|
149
257
|
Workspaces.PeersPage = PeersPage;
|
|
150
|
-
Workspaces.Sessions =
|
|
258
|
+
Workspaces.Sessions = SessionsAPISessions;
|
|
151
259
|
Workspaces.SessionsPage = SessionsPage;
|
|
152
260
|
|
|
153
261
|
export declare namespace Workspaces {
|
|
154
262
|
export {
|
|
263
|
+
type DeriverStatus as DeriverStatus,
|
|
155
264
|
type Workspace as Workspace,
|
|
156
265
|
WorkspacesPage as WorkspacesPage,
|
|
157
266
|
type WorkspaceUpdateParams as WorkspaceUpdateParams,
|
|
158
267
|
type WorkspaceListParams as WorkspaceListParams,
|
|
268
|
+
type WorkspaceDeriverStatusParams as WorkspaceDeriverStatusParams,
|
|
159
269
|
type WorkspaceGetOrCreateParams as WorkspaceGetOrCreateParams,
|
|
160
270
|
type WorkspaceSearchParams as WorkspaceSearchParams,
|
|
161
271
|
};
|
|
@@ -177,7 +287,7 @@ export declare namespace Workspaces {
|
|
|
177
287
|
};
|
|
178
288
|
|
|
179
289
|
export {
|
|
180
|
-
|
|
290
|
+
SessionsAPISessions as Sessions,
|
|
181
291
|
type Session as Session,
|
|
182
292
|
type SessionDeleteResponse as SessionDeleteResponse,
|
|
183
293
|
type SessionGetContextResponse as SessionGetContextResponse,
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '1.0
|
|
1
|
+
export const VERSION = '1.1.0'; // x-release-please-version
|
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "1.0
|
|
1
|
+
export declare const VERSION = "1.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.0
|
|
1
|
+
export const VERSION = '1.1.0'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|