@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
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"}
|
|
@@ -1,166 +0,0 @@
|
|
|
1
|
-
import { APIResource } from "../../resource.js";
|
|
2
|
-
import * as Core from "../../core.js";
|
|
3
|
-
import * as ConclusionsAPI from "./conclusions.js";
|
|
4
|
-
import { Page, type PageParams } from "../../pagination.js";
|
|
5
|
-
export declare class Observations extends APIResource {
|
|
6
|
-
/**
|
|
7
|
-
* Create one or more observations.
|
|
8
|
-
*
|
|
9
|
-
* Creates observations (theory-of-mind facts) for the specified observer/observed
|
|
10
|
-
* peer pairs. Each observation must reference existing peers and a session within
|
|
11
|
-
* the workspace. Embeddings are automatically generated for semantic search.
|
|
12
|
-
*
|
|
13
|
-
* Maximum of 100 observations per request.
|
|
14
|
-
*
|
|
15
|
-
* @deprecated
|
|
16
|
-
*/
|
|
17
|
-
create(workspaceId: string, body: ObservationCreateParams, options?: Core.RequestOptions): Core.APIPromise<ObservationCreateResponse>;
|
|
18
|
-
/**
|
|
19
|
-
* List all observations using custom filters. Observations are listed by recency
|
|
20
|
-
* unless `reverse` is set to `true`.
|
|
21
|
-
*
|
|
22
|
-
* Observations can be filtered by session_id, observer_id and observed_id using
|
|
23
|
-
* the filters parameter.
|
|
24
|
-
*
|
|
25
|
-
* @deprecated
|
|
26
|
-
*/
|
|
27
|
-
list(workspaceId: string, params?: ObservationListParams, options?: Core.RequestOptions): Core.PagePromise<ObservationsPage, Observation>;
|
|
28
|
-
list(workspaceId: string, options?: Core.RequestOptions): Core.PagePromise<ObservationsPage, Observation>;
|
|
29
|
-
/**
|
|
30
|
-
* Delete a specific observation.
|
|
31
|
-
*
|
|
32
|
-
* This permanently deletes the observation (document) from the theory-of-mind
|
|
33
|
-
* system. This action cannot be undone.
|
|
34
|
-
*
|
|
35
|
-
* @deprecated
|
|
36
|
-
*/
|
|
37
|
-
delete(workspaceId: string, observationId: string, options?: Core.RequestOptions): Core.APIPromise<unknown>;
|
|
38
|
-
/**
|
|
39
|
-
* Query observations using semantic search.
|
|
40
|
-
*
|
|
41
|
-
* Performs vector similarity search on observations to find semantically relevant
|
|
42
|
-
* results. Observer and observed are required for semantic search and must be
|
|
43
|
-
* provided in filters.
|
|
44
|
-
*
|
|
45
|
-
* @deprecated
|
|
46
|
-
*/
|
|
47
|
-
query(workspaceId: string, body: ObservationQueryParams, options?: Core.RequestOptions): Core.APIPromise<ObservationQueryResponse>;
|
|
48
|
-
}
|
|
49
|
-
export declare class ObservationsPage extends Page<Observation> {
|
|
50
|
-
}
|
|
51
|
-
/**
|
|
52
|
-
* Deprecated: use Conclusion.
|
|
53
|
-
*/
|
|
54
|
-
export interface Observation {
|
|
55
|
-
id: string;
|
|
56
|
-
content: string;
|
|
57
|
-
created_at: string;
|
|
58
|
-
/**
|
|
59
|
-
* The peer the conclusion is about
|
|
60
|
-
*/
|
|
61
|
-
observed_id: string;
|
|
62
|
-
/**
|
|
63
|
-
* The peer who made the conclusion
|
|
64
|
-
*/
|
|
65
|
-
observer_id: string;
|
|
66
|
-
session_id: string;
|
|
67
|
-
}
|
|
68
|
-
/**
|
|
69
|
-
* Deprecated: use ConclusionCreate.
|
|
70
|
-
*/
|
|
71
|
-
export interface ObservationCreate {
|
|
72
|
-
content: string;
|
|
73
|
-
/**
|
|
74
|
-
* The peer the conclusion is about
|
|
75
|
-
*/
|
|
76
|
-
observed_id: string;
|
|
77
|
-
/**
|
|
78
|
-
* The peer making the conclusion
|
|
79
|
-
*/
|
|
80
|
-
observer_id: string;
|
|
81
|
-
/**
|
|
82
|
-
* The session this conclusion relates to
|
|
83
|
-
*/
|
|
84
|
-
session_id: string;
|
|
85
|
-
}
|
|
86
|
-
/**
|
|
87
|
-
* Deprecated: use ConclusionGet.
|
|
88
|
-
*/
|
|
89
|
-
export interface ObservationGet {
|
|
90
|
-
filters?: {
|
|
91
|
-
[key: string]: unknown;
|
|
92
|
-
} | null;
|
|
93
|
-
}
|
|
94
|
-
/**
|
|
95
|
-
* Deprecated: use ConclusionQuery.
|
|
96
|
-
*/
|
|
97
|
-
export interface ObservationQuery {
|
|
98
|
-
/**
|
|
99
|
-
* Semantic search query
|
|
100
|
-
*/
|
|
101
|
-
query: string;
|
|
102
|
-
/**
|
|
103
|
-
* Maximum cosine distance threshold for results
|
|
104
|
-
*/
|
|
105
|
-
distance?: number | null;
|
|
106
|
-
/**
|
|
107
|
-
* Additional filters to apply
|
|
108
|
-
*/
|
|
109
|
-
filters?: {
|
|
110
|
-
[key: string]: unknown;
|
|
111
|
-
} | null;
|
|
112
|
-
/**
|
|
113
|
-
* Number of results to return
|
|
114
|
-
*/
|
|
115
|
-
top_k?: number;
|
|
116
|
-
}
|
|
117
|
-
export interface PageObservation {
|
|
118
|
-
items: Array<Observation>;
|
|
119
|
-
page: number;
|
|
120
|
-
size: number;
|
|
121
|
-
pages?: number;
|
|
122
|
-
total?: number;
|
|
123
|
-
}
|
|
124
|
-
export type ObservationCreateResponse = Array<Observation>;
|
|
125
|
-
export type ObservationDeleteResponse = unknown;
|
|
126
|
-
export type ObservationQueryResponse = Array<Observation>;
|
|
127
|
-
export interface ObservationCreateParams {
|
|
128
|
-
conclusions: Array<ConclusionsAPI.ConclusionCreate>;
|
|
129
|
-
observations: Array<ObservationCreate>;
|
|
130
|
-
}
|
|
131
|
-
export interface ObservationListParams extends PageParams {
|
|
132
|
-
/**
|
|
133
|
-
* Query param: Whether to reverse the order of results
|
|
134
|
-
*/
|
|
135
|
-
reverse?: boolean | null;
|
|
136
|
-
/**
|
|
137
|
-
* Body param:
|
|
138
|
-
*/
|
|
139
|
-
filters?: {
|
|
140
|
-
[key: string]: unknown;
|
|
141
|
-
} | null;
|
|
142
|
-
}
|
|
143
|
-
export interface ObservationQueryParams {
|
|
144
|
-
/**
|
|
145
|
-
* Semantic search query
|
|
146
|
-
*/
|
|
147
|
-
query: string;
|
|
148
|
-
/**
|
|
149
|
-
* Maximum cosine distance threshold for results
|
|
150
|
-
*/
|
|
151
|
-
distance?: number | null;
|
|
152
|
-
/**
|
|
153
|
-
* Additional filters to apply
|
|
154
|
-
*/
|
|
155
|
-
filters?: {
|
|
156
|
-
[key: string]: unknown;
|
|
157
|
-
} | null;
|
|
158
|
-
/**
|
|
159
|
-
* Number of results to return
|
|
160
|
-
*/
|
|
161
|
-
top_k?: number;
|
|
162
|
-
}
|
|
163
|
-
export declare namespace Observations {
|
|
164
|
-
export { type Observation as Observation, type ObservationCreate as ObservationCreate, type ObservationGet as ObservationGet, type ObservationQuery as ObservationQuery, type PageObservation as PageObservation, type ObservationCreateResponse as ObservationCreateResponse, type ObservationDeleteResponse as ObservationDeleteResponse, type ObservationQueryResponse as ObservationQueryResponse, ObservationsPage as ObservationsPage, type ObservationCreateParams as ObservationCreateParams, type ObservationListParams as ObservationListParams, type ObservationQueryParams as ObservationQueryParams, };
|
|
165
|
-
}
|
|
166
|
-
//# sourceMappingURL=observations.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1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ated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.ObservationsPage = exports.Observations = void 0;
|
|
5
|
-
const resource_1 = require("../../resource.js");
|
|
6
|
-
const core_1 = require("../../core.js");
|
|
7
|
-
const pagination_1 = require("../../pagination.js");
|
|
8
|
-
class Observations extends resource_1.APIResource {
|
|
9
|
-
/**
|
|
10
|
-
* Create one or more observations.
|
|
11
|
-
*
|
|
12
|
-
* Creates observations (theory-of-mind facts) for the specified observer/observed
|
|
13
|
-
* peer pairs. Each observation must reference existing peers and a session within
|
|
14
|
-
* the workspace. Embeddings are automatically generated for semantic search.
|
|
15
|
-
*
|
|
16
|
-
* Maximum of 100 observations per request.
|
|
17
|
-
*
|
|
18
|
-
* @deprecated
|
|
19
|
-
*/
|
|
20
|
-
create(workspaceId, body, options) {
|
|
21
|
-
return this._client.post(`/v2/workspaces/${workspaceId}/observations`, { body, ...options });
|
|
22
|
-
}
|
|
23
|
-
list(workspaceId, params = {}, options) {
|
|
24
|
-
if ((0, core_1.isRequestOptions)(params)) {
|
|
25
|
-
return this.list(workspaceId, {}, params);
|
|
26
|
-
}
|
|
27
|
-
const { page, reverse, size, ...body } = params;
|
|
28
|
-
return this._client.getAPIList(`/v2/workspaces/${workspaceId}/observations/list`, ObservationsPage, {
|
|
29
|
-
query: { page, reverse, size },
|
|
30
|
-
body,
|
|
31
|
-
method: 'post',
|
|
32
|
-
...options,
|
|
33
|
-
});
|
|
34
|
-
}
|
|
35
|
-
/**
|
|
36
|
-
* Delete a specific observation.
|
|
37
|
-
*
|
|
38
|
-
* This permanently deletes the observation (document) from the theory-of-mind
|
|
39
|
-
* system. This action cannot be undone.
|
|
40
|
-
*
|
|
41
|
-
* @deprecated
|
|
42
|
-
*/
|
|
43
|
-
delete(workspaceId, observationId, options) {
|
|
44
|
-
return this._client.delete(`/v2/workspaces/${workspaceId}/observations/${observationId}`, options);
|
|
45
|
-
}
|
|
46
|
-
/**
|
|
47
|
-
* Query observations using semantic search.
|
|
48
|
-
*
|
|
49
|
-
* Performs vector similarity search on observations to find semantically relevant
|
|
50
|
-
* results. Observer and observed are required for semantic search and must be
|
|
51
|
-
* provided in filters.
|
|
52
|
-
*
|
|
53
|
-
* @deprecated
|
|
54
|
-
*/
|
|
55
|
-
query(workspaceId, body, options) {
|
|
56
|
-
return this._client.post(`/v2/workspaces/${workspaceId}/observations/query`, { body, ...options });
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
exports.Observations = Observations;
|
|
60
|
-
class ObservationsPage extends pagination_1.Page {
|
|
61
|
-
}
|
|
62
|
-
exports.ObservationsPage = ObservationsPage;
|
|
63
|
-
Observations.ObservationsPage = ObservationsPage;
|
|
64
|
-
//# sourceMappingURL=observations.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"observations.js","sourceRoot":"","sources":["../../src/resources/workspaces/observations.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,gDAA6C;AAC7C,wCAA8C;AAG9C,oDAAyD;AAEzD,MAAa,YAAa,SAAQ,sBAAW;IAC3C;;;;;;;;;;OAUG;IACH,MAAM,CACJ,WAAmB,EACnB,IAA6B,EAC7B,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,kBAAkB,WAAW,eAAe,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC/F,CAAC;IAiBD,IAAI,CACF,WAAmB,EACnB,SAAsD,EAAE,EACxD,OAA6B;QAE7B,IAAI,IAAA,uBAAgB,EAAC,MAAM,CAAC,EAAE;YAC5B,OAAO,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE,EAAE,EAAE,MAAM,CAAC,CAAC;SAC3C;QACD,MAAM,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QAChD,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,kBAAkB,WAAW,oBAAoB,EAAE,gBAAgB,EAAE;YAClG,KAAK,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE;YAC9B,IAAI;YACJ,MAAM,EAAE,MAAM;YACd,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;OAOG;IACH,MAAM,CACJ,WAAmB,EACnB,aAAqB,EACrB,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,kBAAkB,WAAW,iBAAiB,aAAa,EAAE,EAAE,OAAO,CAAC,CAAC;IACrG,CAAC;IAED;;;;;;;;OAQG;IACH,KAAK,CACH,WAAmB,EACnB,IAA4B,EAC5B,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,kBAAkB,WAAW,qBAAqB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACrG,CAAC;CACF;AApFD,oCAoFC;AAED,MAAa,gBAAiB,SAAQ,iBAAiB;CAAG;AAA1D,4CAA0D;AAyI1D,YAAY,CAAC,gBAAgB,GAAG,gBAAgB,CAAC"}
|
|
@@ -1,59 +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
|
-
import { Page } from "../../pagination.mjs";
|
|
5
|
-
export class Observations extends APIResource {
|
|
6
|
-
/**
|
|
7
|
-
* Create one or more observations.
|
|
8
|
-
*
|
|
9
|
-
* Creates observations (theory-of-mind facts) for the specified observer/observed
|
|
10
|
-
* peer pairs. Each observation must reference existing peers and a session within
|
|
11
|
-
* the workspace. Embeddings are automatically generated for semantic search.
|
|
12
|
-
*
|
|
13
|
-
* Maximum of 100 observations per request.
|
|
14
|
-
*
|
|
15
|
-
* @deprecated
|
|
16
|
-
*/
|
|
17
|
-
create(workspaceId, body, options) {
|
|
18
|
-
return this._client.post(`/v2/workspaces/${workspaceId}/observations`, { body, ...options });
|
|
19
|
-
}
|
|
20
|
-
list(workspaceId, params = {}, options) {
|
|
21
|
-
if (isRequestOptions(params)) {
|
|
22
|
-
return this.list(workspaceId, {}, params);
|
|
23
|
-
}
|
|
24
|
-
const { page, reverse, size, ...body } = params;
|
|
25
|
-
return this._client.getAPIList(`/v2/workspaces/${workspaceId}/observations/list`, ObservationsPage, {
|
|
26
|
-
query: { page, reverse, size },
|
|
27
|
-
body,
|
|
28
|
-
method: 'post',
|
|
29
|
-
...options,
|
|
30
|
-
});
|
|
31
|
-
}
|
|
32
|
-
/**
|
|
33
|
-
* Delete a specific observation.
|
|
34
|
-
*
|
|
35
|
-
* This permanently deletes the observation (document) from the theory-of-mind
|
|
36
|
-
* system. This action cannot be undone.
|
|
37
|
-
*
|
|
38
|
-
* @deprecated
|
|
39
|
-
*/
|
|
40
|
-
delete(workspaceId, observationId, options) {
|
|
41
|
-
return this._client.delete(`/v2/workspaces/${workspaceId}/observations/${observationId}`, options);
|
|
42
|
-
}
|
|
43
|
-
/**
|
|
44
|
-
* Query observations using semantic search.
|
|
45
|
-
*
|
|
46
|
-
* Performs vector similarity search on observations to find semantically relevant
|
|
47
|
-
* results. Observer and observed are required for semantic search and must be
|
|
48
|
-
* provided in filters.
|
|
49
|
-
*
|
|
50
|
-
* @deprecated
|
|
51
|
-
*/
|
|
52
|
-
query(workspaceId, body, options) {
|
|
53
|
-
return this._client.post(`/v2/workspaces/${workspaceId}/observations/query`, { body, ...options });
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
export class ObservationsPage extends Page {
|
|
57
|
-
}
|
|
58
|
-
Observations.ObservationsPage = ObservationsPage;
|
|
59
|
-
//# sourceMappingURL=observations.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"observations.mjs","sourceRoot":"","sources":["../../src/resources/workspaces/observations.ts"],"names":[],"mappings":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AC,CAAC;IACrG,CAAC;CACF;AAED,MAAM,OAAO,gBAAiB,SAAQ,IAAiB;CAAG;AAyI1D,YAAY,CAAC,gBAAgB,GAAG,gBAAgB,CAAC"}
|
package/src/resources/keys.ts
DELETED
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
|
|
3
|
-
import { APIResource } from "../resource.js";
|
|
4
|
-
import { isRequestOptions } from "../core.js";
|
|
5
|
-
import * as Core from "../core.js";
|
|
6
|
-
|
|
7
|
-
export class Keys extends APIResource {
|
|
8
|
-
/**
|
|
9
|
-
* Create a new Key
|
|
10
|
-
*/
|
|
11
|
-
create(params?: KeyCreateParams, options?: Core.RequestOptions): Core.APIPromise<unknown>;
|
|
12
|
-
create(options?: Core.RequestOptions): Core.APIPromise<unknown>;
|
|
13
|
-
create(
|
|
14
|
-
params: KeyCreateParams | Core.RequestOptions = {},
|
|
15
|
-
options?: Core.RequestOptions,
|
|
16
|
-
): Core.APIPromise<unknown> {
|
|
17
|
-
if (isRequestOptions(params)) {
|
|
18
|
-
return this.create({}, params);
|
|
19
|
-
}
|
|
20
|
-
const { expires_at, peer_id, session_id, workspace_id } = params;
|
|
21
|
-
return this._client.post('/v2/keys', {
|
|
22
|
-
query: { expires_at, peer_id, session_id, workspace_id },
|
|
23
|
-
...options,
|
|
24
|
-
});
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
export type KeyCreateResponse = unknown;
|
|
29
|
-
|
|
30
|
-
export interface KeyCreateParams {
|
|
31
|
-
expires_at?: string | null;
|
|
32
|
-
|
|
33
|
-
/**
|
|
34
|
-
* ID of the peer to scope the key to
|
|
35
|
-
*/
|
|
36
|
-
peer_id?: string | null;
|
|
37
|
-
|
|
38
|
-
/**
|
|
39
|
-
* ID of the session to scope the key to
|
|
40
|
-
*/
|
|
41
|
-
session_id?: string | null;
|
|
42
|
-
|
|
43
|
-
/**
|
|
44
|
-
* ID of the workspace to scope the key to
|
|
45
|
-
*/
|
|
46
|
-
workspace_id?: string | null;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
export declare namespace Keys {
|
|
50
|
-
export { type KeyCreateResponse as KeyCreateResponse, type KeyCreateParams as KeyCreateParams };
|
|
51
|
-
}
|
|
@@ -1,249 +0,0 @@
|
|
|
1
|
-
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
|
|
3
|
-
import { APIResource } from "../../resource.js";
|
|
4
|
-
import { isRequestOptions } from "../../core.js";
|
|
5
|
-
import * as Core from "../../core.js";
|
|
6
|
-
import * as ConclusionsAPI from "./conclusions.js";
|
|
7
|
-
import { Page, type PageParams } from "../../pagination.js";
|
|
8
|
-
|
|
9
|
-
export class Observations extends APIResource {
|
|
10
|
-
/**
|
|
11
|
-
* Create one or more observations.
|
|
12
|
-
*
|
|
13
|
-
* Creates observations (theory-of-mind facts) for the specified observer/observed
|
|
14
|
-
* peer pairs. Each observation must reference existing peers and a session within
|
|
15
|
-
* the workspace. Embeddings are automatically generated for semantic search.
|
|
16
|
-
*
|
|
17
|
-
* Maximum of 100 observations per request.
|
|
18
|
-
*
|
|
19
|
-
* @deprecated
|
|
20
|
-
*/
|
|
21
|
-
create(
|
|
22
|
-
workspaceId: string,
|
|
23
|
-
body: ObservationCreateParams,
|
|
24
|
-
options?: Core.RequestOptions,
|
|
25
|
-
): Core.APIPromise<ObservationCreateResponse> {
|
|
26
|
-
return this._client.post(`/v2/workspaces/${workspaceId}/observations`, { body, ...options });
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
/**
|
|
30
|
-
* List all observations using custom filters. Observations are listed by recency
|
|
31
|
-
* unless `reverse` is set to `true`.
|
|
32
|
-
*
|
|
33
|
-
* Observations can be filtered by session_id, observer_id and observed_id using
|
|
34
|
-
* the filters parameter.
|
|
35
|
-
*
|
|
36
|
-
* @deprecated
|
|
37
|
-
*/
|
|
38
|
-
list(
|
|
39
|
-
workspaceId: string,
|
|
40
|
-
params?: ObservationListParams,
|
|
41
|
-
options?: Core.RequestOptions,
|
|
42
|
-
): Core.PagePromise<ObservationsPage, Observation>;
|
|
43
|
-
list(workspaceId: string, options?: Core.RequestOptions): Core.PagePromise<ObservationsPage, Observation>;
|
|
44
|
-
list(
|
|
45
|
-
workspaceId: string,
|
|
46
|
-
params: ObservationListParams | Core.RequestOptions = {},
|
|
47
|
-
options?: Core.RequestOptions,
|
|
48
|
-
): Core.PagePromise<ObservationsPage, Observation> {
|
|
49
|
-
if (isRequestOptions(params)) {
|
|
50
|
-
return this.list(workspaceId, {}, params);
|
|
51
|
-
}
|
|
52
|
-
const { page, reverse, size, ...body } = params;
|
|
53
|
-
return this._client.getAPIList(`/v2/workspaces/${workspaceId}/observations/list`, ObservationsPage, {
|
|
54
|
-
query: { page, reverse, size },
|
|
55
|
-
body,
|
|
56
|
-
method: 'post',
|
|
57
|
-
...options,
|
|
58
|
-
});
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
/**
|
|
62
|
-
* Delete a specific observation.
|
|
63
|
-
*
|
|
64
|
-
* This permanently deletes the observation (document) from the theory-of-mind
|
|
65
|
-
* system. This action cannot be undone.
|
|
66
|
-
*
|
|
67
|
-
* @deprecated
|
|
68
|
-
*/
|
|
69
|
-
delete(
|
|
70
|
-
workspaceId: string,
|
|
71
|
-
observationId: string,
|
|
72
|
-
options?: Core.RequestOptions,
|
|
73
|
-
): Core.APIPromise<unknown> {
|
|
74
|
-
return this._client.delete(`/v2/workspaces/${workspaceId}/observations/${observationId}`, options);
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
/**
|
|
78
|
-
* Query observations using semantic search.
|
|
79
|
-
*
|
|
80
|
-
* Performs vector similarity search on observations to find semantically relevant
|
|
81
|
-
* results. Observer and observed are required for semantic search and must be
|
|
82
|
-
* provided in filters.
|
|
83
|
-
*
|
|
84
|
-
* @deprecated
|
|
85
|
-
*/
|
|
86
|
-
query(
|
|
87
|
-
workspaceId: string,
|
|
88
|
-
body: ObservationQueryParams,
|
|
89
|
-
options?: Core.RequestOptions,
|
|
90
|
-
): Core.APIPromise<ObservationQueryResponse> {
|
|
91
|
-
return this._client.post(`/v2/workspaces/${workspaceId}/observations/query`, { body, ...options });
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
export class ObservationsPage extends Page<Observation> {}
|
|
96
|
-
|
|
97
|
-
/**
|
|
98
|
-
* Deprecated: use Conclusion.
|
|
99
|
-
*/
|
|
100
|
-
export interface Observation {
|
|
101
|
-
id: string;
|
|
102
|
-
|
|
103
|
-
content: string;
|
|
104
|
-
|
|
105
|
-
created_at: string;
|
|
106
|
-
|
|
107
|
-
/**
|
|
108
|
-
* The peer the conclusion is about
|
|
109
|
-
*/
|
|
110
|
-
observed_id: string;
|
|
111
|
-
|
|
112
|
-
/**
|
|
113
|
-
* The peer who made the conclusion
|
|
114
|
-
*/
|
|
115
|
-
observer_id: string;
|
|
116
|
-
|
|
117
|
-
session_id: string;
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
/**
|
|
121
|
-
* Deprecated: use ConclusionCreate.
|
|
122
|
-
*/
|
|
123
|
-
export interface ObservationCreate {
|
|
124
|
-
content: string;
|
|
125
|
-
|
|
126
|
-
/**
|
|
127
|
-
* The peer the conclusion is about
|
|
128
|
-
*/
|
|
129
|
-
observed_id: string;
|
|
130
|
-
|
|
131
|
-
/**
|
|
132
|
-
* The peer making the conclusion
|
|
133
|
-
*/
|
|
134
|
-
observer_id: string;
|
|
135
|
-
|
|
136
|
-
/**
|
|
137
|
-
* The session this conclusion relates to
|
|
138
|
-
*/
|
|
139
|
-
session_id: string;
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
/**
|
|
143
|
-
* Deprecated: use ConclusionGet.
|
|
144
|
-
*/
|
|
145
|
-
export interface ObservationGet {
|
|
146
|
-
filters?: { [key: string]: unknown } | null;
|
|
147
|
-
}
|
|
148
|
-
|
|
149
|
-
/**
|
|
150
|
-
* Deprecated: use ConclusionQuery.
|
|
151
|
-
*/
|
|
152
|
-
export interface ObservationQuery {
|
|
153
|
-
/**
|
|
154
|
-
* Semantic search query
|
|
155
|
-
*/
|
|
156
|
-
query: string;
|
|
157
|
-
|
|
158
|
-
/**
|
|
159
|
-
* Maximum cosine distance threshold for results
|
|
160
|
-
*/
|
|
161
|
-
distance?: number | null;
|
|
162
|
-
|
|
163
|
-
/**
|
|
164
|
-
* Additional filters to apply
|
|
165
|
-
*/
|
|
166
|
-
filters?: { [key: string]: unknown } | null;
|
|
167
|
-
|
|
168
|
-
/**
|
|
169
|
-
* Number of results to return
|
|
170
|
-
*/
|
|
171
|
-
top_k?: number;
|
|
172
|
-
}
|
|
173
|
-
|
|
174
|
-
export interface PageObservation {
|
|
175
|
-
items: Array<Observation>;
|
|
176
|
-
|
|
177
|
-
page: number;
|
|
178
|
-
|
|
179
|
-
size: number;
|
|
180
|
-
|
|
181
|
-
pages?: number;
|
|
182
|
-
|
|
183
|
-
total?: number;
|
|
184
|
-
}
|
|
185
|
-
|
|
186
|
-
export type ObservationCreateResponse = Array<Observation>;
|
|
187
|
-
|
|
188
|
-
export type ObservationDeleteResponse = unknown;
|
|
189
|
-
|
|
190
|
-
export type ObservationQueryResponse = Array<Observation>;
|
|
191
|
-
|
|
192
|
-
export interface ObservationCreateParams {
|
|
193
|
-
conclusions: Array<ConclusionsAPI.ConclusionCreate>;
|
|
194
|
-
|
|
195
|
-
observations: Array<ObservationCreate>;
|
|
196
|
-
}
|
|
197
|
-
|
|
198
|
-
export interface ObservationListParams extends PageParams {
|
|
199
|
-
/**
|
|
200
|
-
* Query param: Whether to reverse the order of results
|
|
201
|
-
*/
|
|
202
|
-
reverse?: boolean | null;
|
|
203
|
-
|
|
204
|
-
/**
|
|
205
|
-
* Body param:
|
|
206
|
-
*/
|
|
207
|
-
filters?: { [key: string]: unknown } | null;
|
|
208
|
-
}
|
|
209
|
-
|
|
210
|
-
export interface ObservationQueryParams {
|
|
211
|
-
/**
|
|
212
|
-
* Semantic search query
|
|
213
|
-
*/
|
|
214
|
-
query: string;
|
|
215
|
-
|
|
216
|
-
/**
|
|
217
|
-
* Maximum cosine distance threshold for results
|
|
218
|
-
*/
|
|
219
|
-
distance?: number | null;
|
|
220
|
-
|
|
221
|
-
/**
|
|
222
|
-
* Additional filters to apply
|
|
223
|
-
*/
|
|
224
|
-
filters?: { [key: string]: unknown } | null;
|
|
225
|
-
|
|
226
|
-
/**
|
|
227
|
-
* Number of results to return
|
|
228
|
-
*/
|
|
229
|
-
top_k?: number;
|
|
230
|
-
}
|
|
231
|
-
|
|
232
|
-
Observations.ObservationsPage = ObservationsPage;
|
|
233
|
-
|
|
234
|
-
export declare namespace Observations {
|
|
235
|
-
export {
|
|
236
|
-
type Observation as Observation,
|
|
237
|
-
type ObservationCreate as ObservationCreate,
|
|
238
|
-
type ObservationGet as ObservationGet,
|
|
239
|
-
type ObservationQuery as ObservationQuery,
|
|
240
|
-
type PageObservation as PageObservation,
|
|
241
|
-
type ObservationCreateResponse as ObservationCreateResponse,
|
|
242
|
-
type ObservationDeleteResponse as ObservationDeleteResponse,
|
|
243
|
-
type ObservationQueryResponse as ObservationQueryResponse,
|
|
244
|
-
ObservationsPage as ObservationsPage,
|
|
245
|
-
type ObservationCreateParams as ObservationCreateParams,
|
|
246
|
-
type ObservationListParams as ObservationListParams,
|
|
247
|
-
type ObservationQueryParams as ObservationQueryParams,
|
|
248
|
-
};
|
|
249
|
-
}
|