@honcho-ai/core 1.6.0 → 1.7.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 +31 -0
- package/README.md +2 -2
- package/index.d.mts +6 -8
- package/index.d.ts +6 -8
- package/index.d.ts.map +1 -1
- package/index.js +7 -8
- package/index.js.map +1 -1
- package/index.mjs +7 -8
- 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/workspaces/conclusions.d.ts +142 -0
- package/resources/workspaces/conclusions.d.ts.map +1 -0
- package/resources/workspaces/conclusions.js +47 -0
- package/resources/workspaces/conclusions.js.map +1 -0
- package/resources/workspaces/conclusions.mjs +42 -0
- package/resources/workspaces/conclusions.mjs.map +1 -0
- package/resources/workspaces/index.d.ts +3 -2
- package/resources/workspaces/index.d.ts.map +1 -1
- package/resources/workspaces/index.js +4 -1
- package/resources/workspaces/index.js.map +1 -1
- package/resources/workspaces/index.mjs +1 -0
- package/resources/workspaces/index.mjs.map +1 -1
- package/resources/workspaces/observations.d.ts +67 -25
- package/resources/workspaces/observations.d.ts.map +1 -1
- package/resources/workspaces/observations.js +18 -0
- package/resources/workspaces/observations.js.map +1 -1
- package/resources/workspaces/observations.mjs +18 -0
- package/resources/workspaces/observations.mjs.map +1 -1
- package/resources/workspaces/workspaces.d.ts +90 -5
- package/resources/workspaces/workspaces.d.ts.map +1 -1
- package/resources/workspaces/workspaces.js +12 -0
- package/resources/workspaces/workspaces.js.map +1 -1
- package/resources/workspaces/workspaces.mjs +13 -1
- package/resources/workspaces/workspaces.mjs.map +1 -1
- package/src/index.ts +12 -10
- package/src/resources/index.ts +2 -0
- package/src/resources/workspaces/conclusions.ts +220 -0
- package/src/resources/workspaces/index.ts +21 -0
- package/src/resources/workspaces/observations.ts +91 -32
- package/src/resources/workspaces/workspaces.ts +156 -3
- package/src/version.ts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,36 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 1.7.0 (2025-12-08)
|
|
4
|
+
|
|
5
|
+
Full Changelog: [v1.6.1...v1.7.0](https://github.com/plastic-labs/honcho-node-core/compare/v1.6.1...v1.7.0)
|
|
6
|
+
|
|
7
|
+
### Features
|
|
8
|
+
|
|
9
|
+
* **api:** Backwards compatible changes ([e49197a](https://github.com/plastic-labs/honcho-node-core/commit/e49197a92c36c981677906b0dd976512cda99470))
|
|
10
|
+
* **mcp:** add typescript check to code execution tool ([31051a6](https://github.com/plastic-labs/honcho-node-core/commit/31051a66e40df4f8f6edc9c6805ee975cdc083d7))
|
|
11
|
+
* **mcp:** handle code mode calls in the Stainless API ([fddafb6](https://github.com/plastic-labs/honcho-node-core/commit/fddafb66d75b5f01ec67b752036d9371e7e62cbc))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
### Bug Fixes
|
|
15
|
+
|
|
16
|
+
* **mcp:** correct code tool API endpoint ([4540d45](https://github.com/plastic-labs/honcho-node-core/commit/4540d45ea4af22fb5c227cee0e20b5ab6904e1ce))
|
|
17
|
+
* **mcp:** return correct lines on typescript errors ([0a71490](https://github.com/plastic-labs/honcho-node-core/commit/0a714908f0c1510b29aa9d0546ae05d6a7008fb6))
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Chores
|
|
21
|
+
|
|
22
|
+
* **internal:** codegen related update ([f718e5d](https://github.com/plastic-labs/honcho-node-core/commit/f718e5d9c983596b5bd6982e89b92823039f3e3d))
|
|
23
|
+
* **internal:** codegen related update ([9789e2b](https://github.com/plastic-labs/honcho-node-core/commit/9789e2b21990a21483e7ae1bf4c2c7f6b70eca29))
|
|
24
|
+
* use latest @modelcontextprotocol/sdk ([22a5ace](https://github.com/plastic-labs/honcho-node-core/commit/22a5aceb3583baff3528a0adf97949a528393059))
|
|
25
|
+
|
|
26
|
+
## 1.6.1 (2025-12-04)
|
|
27
|
+
|
|
28
|
+
Full Changelog: [v1.6.0...v1.6.1](https://github.com/plastic-labs/honcho-node-core/compare/v1.6.0...v1.6.1)
|
|
29
|
+
|
|
30
|
+
### Features
|
|
31
|
+
|
|
32
|
+
* **api:** Add Manual Observation Creation ([99000b7](https://github.com/plastic-labs/honcho-node-core/commit/99000b70b612db3d56851febb5af240929ce3174))
|
|
33
|
+
|
|
3
34
|
## 1.6.0 (2025-12-03)
|
|
4
35
|
|
|
5
36
|
Full Changelog: [v1.5.1...v1.6.0](https://github.com/plastic-labs/honcho-node-core/compare/v1.5.1...v1.6.0)
|
package/README.md
CHANGED
|
@@ -24,7 +24,7 @@ import Honcho from '@honcho-ai/core';
|
|
|
24
24
|
|
|
25
25
|
const client = new Honcho({
|
|
26
26
|
apiKey: process.env['HONCHO_API_KEY'], // This is the default and can be omitted
|
|
27
|
-
environment: 'local', //
|
|
27
|
+
environment: 'local', // defaults to 'production'
|
|
28
28
|
});
|
|
29
29
|
|
|
30
30
|
const workspace = await client.workspaces.getOrCreate({ id: 'id' });
|
|
@@ -42,7 +42,7 @@ import Honcho from '@honcho-ai/core';
|
|
|
42
42
|
|
|
43
43
|
const client = new Honcho({
|
|
44
44
|
apiKey: process.env['HONCHO_API_KEY'], // This is the default and can be omitted
|
|
45
|
-
environment: 'local', //
|
|
45
|
+
environment: 'local', // defaults to 'production'
|
|
46
46
|
});
|
|
47
47
|
|
|
48
48
|
const params: Honcho.WorkspaceGetOrCreateParams = { id: 'id' };
|
package/index.d.mts
CHANGED
|
@@ -6,11 +6,10 @@ import { type PageParams, PageResponse } from "./pagination.js";
|
|
|
6
6
|
import * as Uploads from "./uploads.js";
|
|
7
7
|
import * as API from "./resources/index.js";
|
|
8
8
|
import { KeyCreateParams, KeyCreateResponse, Keys } from "./resources/keys.js";
|
|
9
|
-
import { DeriverConfiguration, DeriverStatus, DreamConfiguration, MessageSearchOptions, PeerCardConfiguration, SummaryConfiguration, Workspace, WorkspaceConfiguration, WorkspaceDeriverStatusParams, WorkspaceGetOrCreateParams, WorkspaceListParams, WorkspaceSearchParams, WorkspaceSearchResponse, WorkspaceTriggerDreamParams, WorkspaceUpdateParams, Workspaces, WorkspacesPage } from "./resources/workspaces/workspaces.js";
|
|
9
|
+
import { DeriverConfiguration, DeriverStatus, DreamConfiguration, MessageSearchOptions, PeerCardConfiguration, QueueStatus, SummaryConfiguration, Workspace, WorkspaceConfiguration, WorkspaceDeriverStatusParams, WorkspaceGetOrCreateParams, WorkspaceListParams, WorkspaceQueueStatusParams, WorkspaceSearchParams, WorkspaceSearchResponse, WorkspaceTriggerDreamParams, WorkspaceUpdateParams, Workspaces, WorkspacesPage } from "./resources/workspaces/workspaces.js";
|
|
10
10
|
declare const environments: {
|
|
11
|
-
demo: string;
|
|
12
|
-
local: string;
|
|
13
11
|
production: string;
|
|
12
|
+
local: string;
|
|
14
13
|
};
|
|
15
14
|
type Environment = keyof typeof environments;
|
|
16
15
|
export interface ClientOptions {
|
|
@@ -22,9 +21,8 @@ export interface ClientOptions {
|
|
|
22
21
|
* Specifies the environment to use for the API.
|
|
23
22
|
*
|
|
24
23
|
* Each environment maps to a different base URL:
|
|
25
|
-
* - `demo` corresponds to `https://demo.honcho.dev`
|
|
26
|
-
* - `local` corresponds to `http://localhost:8000`
|
|
27
24
|
* - `production` corresponds to `https://api.honcho.dev`
|
|
25
|
+
* - `local` corresponds to `http://localhost:8000`
|
|
28
26
|
*/
|
|
29
27
|
environment?: Environment | undefined;
|
|
30
28
|
/**
|
|
@@ -90,8 +88,8 @@ export declare class Honcho extends Core.APIClient {
|
|
|
90
88
|
* API Client for interfacing with the Honcho API.
|
|
91
89
|
*
|
|
92
90
|
* @param {string | null | undefined} [opts.apiKey=process.env['HONCHO_API_KEY'] ?? null]
|
|
93
|
-
* @param {Environment} [opts.environment=
|
|
94
|
-
* @param {string} [opts.baseURL=process.env['HONCHO_BASE_URL'] ?? https://
|
|
91
|
+
* @param {Environment} [opts.environment=production] - Specifies the environment URL to use for the API.
|
|
92
|
+
* @param {string} [opts.baseURL=process.env['HONCHO_BASE_URL'] ?? https://api.honcho.dev] - Override the default base URL for the API.
|
|
95
93
|
* @param {number} [opts.timeout=1 minute] - The maximum amount of time (in milliseconds) the client will wait for a response before timing out.
|
|
96
94
|
* @param {number} [opts.httpAgent] - An HTTP agent used to manage HTTP(s) connections.
|
|
97
95
|
* @param {Core.Fetch} [opts.fetch] - Specify a custom `fetch` function implementation.
|
|
@@ -127,7 +125,7 @@ export declare namespace Honcho {
|
|
|
127
125
|
export type RequestOptions = Core.RequestOptions;
|
|
128
126
|
export import Page = Pagination.Page;
|
|
129
127
|
export { type PageParams as PageParams, type PageResponse as PageResponse };
|
|
130
|
-
export { Workspaces as Workspaces, type DeriverConfiguration as DeriverConfiguration, type DeriverStatus as DeriverStatus, type DreamConfiguration as DreamConfiguration, type MessageSearchOptions as MessageSearchOptions, type PeerCardConfiguration as PeerCardConfiguration, type SummaryConfiguration as SummaryConfiguration, type Workspace as Workspace, type WorkspaceConfiguration as WorkspaceConfiguration, type WorkspaceSearchResponse as WorkspaceSearchResponse, WorkspacesPage as WorkspacesPage, type WorkspaceUpdateParams as WorkspaceUpdateParams, type WorkspaceListParams as WorkspaceListParams, type WorkspaceDeriverStatusParams as WorkspaceDeriverStatusParams, type WorkspaceGetOrCreateParams as WorkspaceGetOrCreateParams, type WorkspaceSearchParams as WorkspaceSearchParams, type WorkspaceTriggerDreamParams as WorkspaceTriggerDreamParams, };
|
|
128
|
+
export { Workspaces as Workspaces, type DeriverConfiguration as DeriverConfiguration, type DeriverStatus as DeriverStatus, type DreamConfiguration as DreamConfiguration, type MessageSearchOptions as MessageSearchOptions, type PeerCardConfiguration as PeerCardConfiguration, type QueueStatus as QueueStatus, type SummaryConfiguration as SummaryConfiguration, type Workspace as Workspace, type WorkspaceConfiguration as WorkspaceConfiguration, type WorkspaceSearchResponse as WorkspaceSearchResponse, WorkspacesPage as WorkspacesPage, type WorkspaceUpdateParams as WorkspaceUpdateParams, type WorkspaceListParams as WorkspaceListParams, type WorkspaceDeriverStatusParams as WorkspaceDeriverStatusParams, type WorkspaceGetOrCreateParams as WorkspaceGetOrCreateParams, type WorkspaceQueueStatusParams as WorkspaceQueueStatusParams, type WorkspaceSearchParams as WorkspaceSearchParams, type WorkspaceTriggerDreamParams as WorkspaceTriggerDreamParams, };
|
|
131
129
|
export { Keys as Keys, type KeyCreateResponse as KeyCreateResponse, type KeyCreateParams as KeyCreateParams, };
|
|
132
130
|
}
|
|
133
131
|
export { toFile, fileFromPath } from "./uploads.js";
|
package/index.d.ts
CHANGED
|
@@ -6,11 +6,10 @@ import { type PageParams, PageResponse } from "./pagination.js";
|
|
|
6
6
|
import * as Uploads from "./uploads.js";
|
|
7
7
|
import * as API from "./resources/index.js";
|
|
8
8
|
import { KeyCreateParams, KeyCreateResponse, Keys } from "./resources/keys.js";
|
|
9
|
-
import { DeriverConfiguration, DeriverStatus, DreamConfiguration, MessageSearchOptions, PeerCardConfiguration, SummaryConfiguration, Workspace, WorkspaceConfiguration, WorkspaceDeriverStatusParams, WorkspaceGetOrCreateParams, WorkspaceListParams, WorkspaceSearchParams, WorkspaceSearchResponse, WorkspaceTriggerDreamParams, WorkspaceUpdateParams, Workspaces, WorkspacesPage } from "./resources/workspaces/workspaces.js";
|
|
9
|
+
import { DeriverConfiguration, DeriverStatus, DreamConfiguration, MessageSearchOptions, PeerCardConfiguration, QueueStatus, SummaryConfiguration, Workspace, WorkspaceConfiguration, WorkspaceDeriverStatusParams, WorkspaceGetOrCreateParams, WorkspaceListParams, WorkspaceQueueStatusParams, WorkspaceSearchParams, WorkspaceSearchResponse, WorkspaceTriggerDreamParams, WorkspaceUpdateParams, Workspaces, WorkspacesPage } from "./resources/workspaces/workspaces.js";
|
|
10
10
|
declare const environments: {
|
|
11
|
-
demo: string;
|
|
12
|
-
local: string;
|
|
13
11
|
production: string;
|
|
12
|
+
local: string;
|
|
14
13
|
};
|
|
15
14
|
type Environment = keyof typeof environments;
|
|
16
15
|
export interface ClientOptions {
|
|
@@ -22,9 +21,8 @@ export interface ClientOptions {
|
|
|
22
21
|
* Specifies the environment to use for the API.
|
|
23
22
|
*
|
|
24
23
|
* Each environment maps to a different base URL:
|
|
25
|
-
* - `demo` corresponds to `https://demo.honcho.dev`
|
|
26
|
-
* - `local` corresponds to `http://localhost:8000`
|
|
27
24
|
* - `production` corresponds to `https://api.honcho.dev`
|
|
25
|
+
* - `local` corresponds to `http://localhost:8000`
|
|
28
26
|
*/
|
|
29
27
|
environment?: Environment | undefined;
|
|
30
28
|
/**
|
|
@@ -90,8 +88,8 @@ export declare class Honcho extends Core.APIClient {
|
|
|
90
88
|
* API Client for interfacing with the Honcho API.
|
|
91
89
|
*
|
|
92
90
|
* @param {string | null | undefined} [opts.apiKey=process.env['HONCHO_API_KEY'] ?? null]
|
|
93
|
-
* @param {Environment} [opts.environment=
|
|
94
|
-
* @param {string} [opts.baseURL=process.env['HONCHO_BASE_URL'] ?? https://
|
|
91
|
+
* @param {Environment} [opts.environment=production] - Specifies the environment URL to use for the API.
|
|
92
|
+
* @param {string} [opts.baseURL=process.env['HONCHO_BASE_URL'] ?? https://api.honcho.dev] - Override the default base URL for the API.
|
|
95
93
|
* @param {number} [opts.timeout=1 minute] - The maximum amount of time (in milliseconds) the client will wait for a response before timing out.
|
|
96
94
|
* @param {number} [opts.httpAgent] - An HTTP agent used to manage HTTP(s) connections.
|
|
97
95
|
* @param {Core.Fetch} [opts.fetch] - Specify a custom `fetch` function implementation.
|
|
@@ -127,7 +125,7 @@ export declare namespace Honcho {
|
|
|
127
125
|
export type RequestOptions = Core.RequestOptions;
|
|
128
126
|
export import Page = Pagination.Page;
|
|
129
127
|
export { type PageParams as PageParams, type PageResponse as PageResponse };
|
|
130
|
-
export { Workspaces as Workspaces, type DeriverConfiguration as DeriverConfiguration, type DeriverStatus as DeriverStatus, type DreamConfiguration as DreamConfiguration, type MessageSearchOptions as MessageSearchOptions, type PeerCardConfiguration as PeerCardConfiguration, type SummaryConfiguration as SummaryConfiguration, type Workspace as Workspace, type WorkspaceConfiguration as WorkspaceConfiguration, type WorkspaceSearchResponse as WorkspaceSearchResponse, WorkspacesPage as WorkspacesPage, type WorkspaceUpdateParams as WorkspaceUpdateParams, type WorkspaceListParams as WorkspaceListParams, type WorkspaceDeriverStatusParams as WorkspaceDeriverStatusParams, type WorkspaceGetOrCreateParams as WorkspaceGetOrCreateParams, type WorkspaceSearchParams as WorkspaceSearchParams, type WorkspaceTriggerDreamParams as WorkspaceTriggerDreamParams, };
|
|
128
|
+
export { Workspaces as Workspaces, type DeriverConfiguration as DeriverConfiguration, type DeriverStatus as DeriverStatus, type DreamConfiguration as DreamConfiguration, type MessageSearchOptions as MessageSearchOptions, type PeerCardConfiguration as PeerCardConfiguration, type QueueStatus as QueueStatus, type SummaryConfiguration as SummaryConfiguration, type Workspace as Workspace, type WorkspaceConfiguration as WorkspaceConfiguration, type WorkspaceSearchResponse as WorkspaceSearchResponse, WorkspacesPage as WorkspacesPage, type WorkspaceUpdateParams as WorkspaceUpdateParams, type WorkspaceListParams as WorkspaceListParams, type WorkspaceDeriverStatusParams as WorkspaceDeriverStatusParams, type WorkspaceGetOrCreateParams as WorkspaceGetOrCreateParams, type WorkspaceQueueStatusParams as WorkspaceQueueStatusParams, type WorkspaceSearchParams as WorkspaceSearchParams, type WorkspaceTriggerDreamParams as WorkspaceTriggerDreamParams, };
|
|
131
129
|
export { Keys as Keys, type KeyCreateResponse as KeyCreateResponse, type KeyCreateParams as KeyCreateParams, };
|
|
132
130
|
}
|
|
133
131
|
export { toFile, fileFromPath } from "./uploads.js";
|
package/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["src/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,KAAK,EAAE,MAAM,gBAAgB,C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C7C,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,WAAW,IAAI,WAAW,EAC/B,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,SAAS,IAAI,SAAS,EAC3B,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,cAAc,IAAI,cAAc,EAChC,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,2BAA2B,IAAI,2BAA2B,GAChE,CAAC;IAEF,OAAO,EACL,IAAI,IAAI,IAAI,EACZ,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,eAAe,IAAI,eAAe,GACxC,CAAC;CACH;AAED,OAAO,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AACjD,OAAO,EACL,WAAW,EACX,QAAQ,EACR,kBAAkB,EAClB,yBAAyB,EACzB,iBAAiB,EACjB,aAAa,EACb,aAAa,EACb,cAAc,EACd,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACrB,wBAAwB,GACzB,MAAM,SAAS,CAAC;AAEjB,eAAe,MAAM,CAAC"}
|
package/index.js
CHANGED
|
@@ -34,9 +34,8 @@ const API = __importStar(require("./resources/index.js"));
|
|
|
34
34
|
const keys_1 = require("./resources/keys.js");
|
|
35
35
|
const workspaces_1 = require("./resources/workspaces/workspaces.js");
|
|
36
36
|
const environments = {
|
|
37
|
-
demo: 'https://demo.honcho.dev',
|
|
38
|
-
local: 'http://localhost:8000',
|
|
39
37
|
production: 'https://api.honcho.dev',
|
|
38
|
+
local: 'http://localhost:8000',
|
|
40
39
|
};
|
|
41
40
|
/**
|
|
42
41
|
* API Client for interfacing with the Honcho API.
|
|
@@ -46,8 +45,8 @@ class Honcho extends Core.APIClient {
|
|
|
46
45
|
* API Client for interfacing with the Honcho API.
|
|
47
46
|
*
|
|
48
47
|
* @param {string | null | undefined} [opts.apiKey=process.env['HONCHO_API_KEY'] ?? null]
|
|
49
|
-
* @param {Environment} [opts.environment=
|
|
50
|
-
* @param {string} [opts.baseURL=process.env['HONCHO_BASE_URL'] ?? https://
|
|
48
|
+
* @param {Environment} [opts.environment=production] - Specifies the environment URL to use for the API.
|
|
49
|
+
* @param {string} [opts.baseURL=process.env['HONCHO_BASE_URL'] ?? https://api.honcho.dev] - Override the default base URL for the API.
|
|
51
50
|
* @param {number} [opts.timeout=1 minute] - The maximum amount of time (in milliseconds) the client will wait for a response before timing out.
|
|
52
51
|
* @param {number} [opts.httpAgent] - An HTTP agent used to manage HTTP(s) connections.
|
|
53
52
|
* @param {Core.Fetch} [opts.fetch] - Specify a custom `fetch` function implementation.
|
|
@@ -60,14 +59,14 @@ class Honcho extends Core.APIClient {
|
|
|
60
59
|
apiKey,
|
|
61
60
|
...opts,
|
|
62
61
|
baseURL,
|
|
63
|
-
environment: opts.environment ?? '
|
|
62
|
+
environment: opts.environment ?? 'production',
|
|
64
63
|
};
|
|
65
64
|
if (baseURL && opts.environment) {
|
|
66
65
|
throw new Errors.HonchoError('Ambiguous URL; The `baseURL` option (or HONCHO_BASE_URL env var) and the `environment` option are given. If you want to use the environment you must pass baseURL: null');
|
|
67
66
|
}
|
|
68
67
|
super({
|
|
69
|
-
baseURL: options.baseURL || environments[options.environment || '
|
|
70
|
-
baseURLOverridden: baseURL ? baseURL !== environments[options.environment || '
|
|
68
|
+
baseURL: options.baseURL || environments[options.environment || 'production'],
|
|
69
|
+
baseURLOverridden: baseURL ? baseURL !== environments[options.environment || 'production'] : false,
|
|
71
70
|
timeout: options.timeout ?? 60000 /* 1 minute */,
|
|
72
71
|
httpAgent: options.httpAgent,
|
|
73
72
|
maxRetries: options.maxRetries,
|
|
@@ -97,7 +96,7 @@ class Honcho extends Core.APIClient {
|
|
|
97
96
|
}
|
|
98
97
|
exports.Honcho = Honcho;
|
|
99
98
|
_a = Honcho, _Honcho_instances = new WeakSet(), _Honcho_baseURLOverridden = function _Honcho_baseURLOverridden() {
|
|
100
|
-
return this.baseURL !== environments[this._options.environment || '
|
|
99
|
+
return this.baseURL !== environments[this._options.environment || 'production'];
|
|
101
100
|
};
|
|
102
101
|
Honcho.Honcho = _a;
|
|
103
102
|
Honcho.DEFAULT_TIMEOUT = 60000; // 1 minute
|
package/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["src/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGtF,gDAA+B;AAC/B,mDAAkC;AAClC,4DAA2C;AAE3C,sDAAqC;AACrC,0DAAyC;AACzC,8CAA4E;AAC5E,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["src/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGtF,gDAA+B;AAC/B,mDAAkC;AAClC,4DAA2C;AAE3C,sDAAqC;AACrC,0DAAyC;AACzC,8CAA4E;AAC5E,qEAoB2C;AAE3C,MAAM,YAAY,GAAG;IACnB,UAAU,EAAE,wBAAwB;IACpC,KAAK,EAAE,uBAAuB;CAC/B,CAAC;AA6EF;;GAEG;AACH,MAAa,MAAO,SAAQ,IAAI,CAAC,SAAS;IAKxC;;;;;;;;;;;;OAYG;IACH,YAAY,EACV,OAAO,GAAG,IAAI,CAAC,OAAO,CAAC,iBAAiB,CAAC,EACzC,MAAM,GAAG,IAAI,CAAC,OAAO,CAAC,gBAAgB,CAAC,IAAI,IAAI,EAC/C,GAAG,IAAI,KACU,EAAE;QACnB,MAAM,OAAO,GAAkB;YAC7B,MAAM;YACN,GAAG,IAAI;YAC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yB,OAAA;AACzB,0GAAA,iBAAiB,OAAA;AACjB,sGAAA,aAAa,OAAA;AACb,sGAAA,aAAa,OAAA;AACb,uGAAA,cAAc,OAAA;AACd,wGAAA,eAAe,OAAA;AACf,4GAAA,mBAAmB,OAAA;AACnB,4GAAA,mBAAmB,OAAA;AACnB,8GAAA,qBAAqB,OAAA;AACrB,iHAAA,wBAAwB,OAAA;AAG1B,kBAAe,MAAM,CAAC"}
|
package/index.mjs
CHANGED
|
@@ -8,9 +8,8 @@ import * as API from "./resources/index.mjs";
|
|
|
8
8
|
import { Keys } from "./resources/keys.mjs";
|
|
9
9
|
import { Workspaces, WorkspacesPage, } from "./resources/workspaces/workspaces.mjs";
|
|
10
10
|
const environments = {
|
|
11
|
-
demo: 'https://demo.honcho.dev',
|
|
12
|
-
local: 'http://localhost:8000',
|
|
13
11
|
production: 'https://api.honcho.dev',
|
|
12
|
+
local: 'http://localhost:8000',
|
|
14
13
|
};
|
|
15
14
|
/**
|
|
16
15
|
* API Client for interfacing with the Honcho API.
|
|
@@ -20,8 +19,8 @@ export class Honcho extends Core.APIClient {
|
|
|
20
19
|
* API Client for interfacing with the Honcho API.
|
|
21
20
|
*
|
|
22
21
|
* @param {string | null | undefined} [opts.apiKey=process.env['HONCHO_API_KEY'] ?? null]
|
|
23
|
-
* @param {Environment} [opts.environment=
|
|
24
|
-
* @param {string} [opts.baseURL=process.env['HONCHO_BASE_URL'] ?? https://
|
|
22
|
+
* @param {Environment} [opts.environment=production] - Specifies the environment URL to use for the API.
|
|
23
|
+
* @param {string} [opts.baseURL=process.env['HONCHO_BASE_URL'] ?? https://api.honcho.dev] - Override the default base URL for the API.
|
|
25
24
|
* @param {number} [opts.timeout=1 minute] - The maximum amount of time (in milliseconds) the client will wait for a response before timing out.
|
|
26
25
|
* @param {number} [opts.httpAgent] - An HTTP agent used to manage HTTP(s) connections.
|
|
27
26
|
* @param {Core.Fetch} [opts.fetch] - Specify a custom `fetch` function implementation.
|
|
@@ -34,14 +33,14 @@ export class Honcho extends Core.APIClient {
|
|
|
34
33
|
apiKey,
|
|
35
34
|
...opts,
|
|
36
35
|
baseURL,
|
|
37
|
-
environment: opts.environment ?? '
|
|
36
|
+
environment: opts.environment ?? 'production',
|
|
38
37
|
};
|
|
39
38
|
if (baseURL && opts.environment) {
|
|
40
39
|
throw new Errors.HonchoError('Ambiguous URL; The `baseURL` option (or HONCHO_BASE_URL env var) and the `environment` option are given. If you want to use the environment you must pass baseURL: null');
|
|
41
40
|
}
|
|
42
41
|
super({
|
|
43
|
-
baseURL: options.baseURL || environments[options.environment || '
|
|
44
|
-
baseURLOverridden: baseURL ? baseURL !== environments[options.environment || '
|
|
42
|
+
baseURL: options.baseURL || environments[options.environment || 'production'],
|
|
43
|
+
baseURLOverridden: baseURL ? baseURL !== environments[options.environment || 'production'] : false,
|
|
45
44
|
timeout: options.timeout ?? 60000 /* 1 minute */,
|
|
46
45
|
httpAgent: options.httpAgent,
|
|
47
46
|
maxRetries: options.maxRetries,
|
|
@@ -70,7 +69,7 @@ export class Honcho extends Core.APIClient {
|
|
|
70
69
|
}
|
|
71
70
|
}
|
|
72
71
|
_a = Honcho, _Honcho_instances = new WeakSet(), _Honcho_baseURLOverridden = function _Honcho_baseURLOverridden() {
|
|
73
|
-
return this.baseURL !== environments[this._options.environment || '
|
|
72
|
+
return this.baseURL !== environments[this._options.environment || 'production'];
|
|
74
73
|
};
|
|
75
74
|
Honcho.Honcho = _a;
|
|
76
75
|
Honcho.DEFAULT_TIMEOUT = 60000; // 1 minute
|
package/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["src/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;;OAG/E,KAAK,IAAI;OACT,KAAK,MAAM;OACX,KAAK,UAAU;OAEf,KAAK,OAAO;OACZ,KAAK,GAAG;OACR,EAAsC,IAAI,EAAE;OAC5C,
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot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zC,0BAAmB,GAAG,MAAM,CAAC,mBAAmB,CAAC;AACjD,0BAAmB,GAAG,MAAM,CAAC,mBAAmB,CAAC;AACjD,4BAAqB,GAAG,MAAM,CAAC,qBAAqB,CAAC;AACrD,+BAAwB,GAAG,MAAM,CAAC,wBAAwB,CAAC;AAE3D,aAAM,GAAG,OAAO,CAAC,MAAM,CAAC;AACxB,mBAAY,GAAG,OAAO,CAAC,YAAY,CAAC;AAG7C,MAAM,CAAC,UAAU,GAAG,UAAU,CAAC;AAC/B,MAAM,CAAC,cAAc,GAAG,cAAc,CAAC;AACvC,MAAM,CAAC,IAAI,GAAG,IAAI,CAAC;OAqCZ,EAAE,MAAM,EAAE,YAAY,EAAE;OACxB,EACL,WAAW,EACX,QAAQ,EACR,kBAAkB,EAClB,yBAAyB,EACzB,iBAAiB,EACjB,aAAa,EACb,aAAa,EACb,cAAc,EACd,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACrB,wBAAwB,GACzB;AAED,eAAe,MAAM,CAAC"}
|
package/package.json
CHANGED
package/resources/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export { Keys, type KeyCreateResponse, type KeyCreateParams } from "./keys.js";
|
|
2
|
-
export { WorkspacesPage, Workspaces, type DeriverConfiguration, type DeriverStatus, type DreamConfiguration, type MessageSearchOptions, type PeerCardConfiguration, type SummaryConfiguration, type Workspace, type WorkspaceConfiguration, type WorkspaceSearchResponse, type WorkspaceUpdateParams, type WorkspaceListParams, type WorkspaceDeriverStatusParams, type WorkspaceGetOrCreateParams, type WorkspaceSearchParams, type WorkspaceTriggerDreamParams, } from "./workspaces/workspaces.js";
|
|
2
|
+
export { WorkspacesPage, Workspaces, type DeriverConfiguration, type DeriverStatus, type DreamConfiguration, type MessageSearchOptions, type PeerCardConfiguration, type QueueStatus, type SummaryConfiguration, type Workspace, type WorkspaceConfiguration, type WorkspaceSearchResponse, type WorkspaceUpdateParams, type WorkspaceListParams, type WorkspaceDeriverStatusParams, type WorkspaceGetOrCreateParams, type WorkspaceQueueStatusParams, type WorkspaceSearchParams, type WorkspaceTriggerDreamParams, } from "./workspaces/workspaces.js";
|
|
3
3
|
//# sourceMappingURL=index.d.ts.map
|
package/resources/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,IAAI,EAAE,KAAK,iBAAiB,EAAE,KAAK,eAAe,EAAE,MAAM,QAAQ,CAAC;AAC5E,OAAO,EACL,cAAc,EACd,UAAU,EACV,KAAK,oBAAoB,EACzB,KAAK,aAAa,EAClB,KAAK,kBAAkB,EACvB,KAAK,oBAAoB,EACzB,KAAK,qBAAqB,EAC1B,KAAK,oBAAoB,EACzB,KAAK,SAAS,EACd,KAAK,sBAAsB,EAC3B,KAAK,uBAAuB,EAC5B,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,EACxB,KAAK,4BAA4B,EACjC,KAAK,0BAA0B,EAC/B,KAAK,qBAAqB,EAC1B,KAAK,2BAA2B,GACjC,MAAM,yBAAyB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,IAAI,EAAE,KAAK,iBAAiB,EAAE,KAAK,eAAe,EAAE,MAAM,QAAQ,CAAC;AAC5E,OAAO,EACL,cAAc,EACd,UAAU,EACV,KAAK,oBAAoB,EACzB,KAAK,aAAa,EAClB,KAAK,kBAAkB,EACvB,KAAK,oBAAoB,EACzB,KAAK,qBAAqB,EAC1B,KAAK,WAAW,EAChB,KAAK,oBAAoB,EACzB,KAAK,SAAS,EACd,KAAK,sBAAsB,EAC3B,KAAK,uBAAuB,EAC5B,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,EACxB,KAAK,4BAA4B,EACjC,KAAK,0BAA0B,EAC/B,KAAK,0BAA0B,EAC/B,KAAK,qBAAqB,EAC1B,KAAK,2BAA2B,GACjC,MAAM,yBAAyB,CAAC"}
|
package/resources/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kCAA4E;AAAnE,4FAAA,IAAI,OAAA;AACb,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kCAA4E;AAAnE,4FAAA,IAAI,OAAA;AACb,yDAoBiC;AAnB/B,4GAAA,cAAc,OAAA;AACd,wGAAA,UAAU,OAAA"}
|
package/resources/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,IAAI,EAAgD;OACtD,EACL,cAAc,EACd,UAAU,
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,IAAI,EAAgD;OACtD,EACL,cAAc,EACd,UAAU,GAkBX"}
|
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
import { APIResource } from "../../resource.js";
|
|
2
|
+
import * as Core from "../../core.js";
|
|
3
|
+
import { Page, type PageParams } from "../../pagination.js";
|
|
4
|
+
export declare class Conclusions extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* Create one or more conclusions.
|
|
7
|
+
*
|
|
8
|
+
* Conclusions are theory-of-mind facts derived from interactions between peers.
|
|
9
|
+
*/
|
|
10
|
+
create(workspaceId: string, body: ConclusionCreateParams, options?: Core.RequestOptions): Core.APIPromise<ConclusionCreateResponse>;
|
|
11
|
+
/**
|
|
12
|
+
* List conclusions using custom filters, ordered by recency unless `reverse` is
|
|
13
|
+
* true.
|
|
14
|
+
*/
|
|
15
|
+
list(workspaceId: string, params?: ConclusionListParams, options?: Core.RequestOptions): Core.PagePromise<ConclusionsPage, Conclusion>;
|
|
16
|
+
list(workspaceId: string, options?: Core.RequestOptions): Core.PagePromise<ConclusionsPage, Conclusion>;
|
|
17
|
+
/**
|
|
18
|
+
* Delete a specific conclusion (document).
|
|
19
|
+
*/
|
|
20
|
+
delete(workspaceId: string, conclusionId: string, options?: Core.RequestOptions): Core.APIPromise<unknown>;
|
|
21
|
+
/**
|
|
22
|
+
* Query conclusions using semantic search.
|
|
23
|
+
*/
|
|
24
|
+
query(workspaceId: string, body: ConclusionQueryParams, options?: Core.RequestOptions): Core.APIPromise<ConclusionQueryResponse>;
|
|
25
|
+
}
|
|
26
|
+
export declare class ConclusionsPage extends Page<Conclusion> {
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Conclusion response - external view of a document.
|
|
30
|
+
*/
|
|
31
|
+
export interface Conclusion {
|
|
32
|
+
id: string;
|
|
33
|
+
content: string;
|
|
34
|
+
created_at: string;
|
|
35
|
+
/**
|
|
36
|
+
* The peer the conclusion is about
|
|
37
|
+
*/
|
|
38
|
+
observed_id: string;
|
|
39
|
+
/**
|
|
40
|
+
* The peer who made the conclusion
|
|
41
|
+
*/
|
|
42
|
+
observer_id: string;
|
|
43
|
+
session_id: string;
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* Schema for creating a single conclusion.
|
|
47
|
+
*/
|
|
48
|
+
export interface ConclusionCreate {
|
|
49
|
+
content: string;
|
|
50
|
+
/**
|
|
51
|
+
* The peer the conclusion is about
|
|
52
|
+
*/
|
|
53
|
+
observed_id: string;
|
|
54
|
+
/**
|
|
55
|
+
* The peer making the conclusion
|
|
56
|
+
*/
|
|
57
|
+
observer_id: string;
|
|
58
|
+
/**
|
|
59
|
+
* The session this conclusion relates to
|
|
60
|
+
*/
|
|
61
|
+
session_id: string;
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* Schema for listing conclusions with optional filters.
|
|
65
|
+
*/
|
|
66
|
+
export interface ConclusionGet {
|
|
67
|
+
filters?: {
|
|
68
|
+
[key: string]: unknown;
|
|
69
|
+
} | null;
|
|
70
|
+
}
|
|
71
|
+
/**
|
|
72
|
+
* Query parameters for semantic search of conclusions.
|
|
73
|
+
*/
|
|
74
|
+
export interface ConclusionQuery {
|
|
75
|
+
/**
|
|
76
|
+
* Semantic search query
|
|
77
|
+
*/
|
|
78
|
+
query: string;
|
|
79
|
+
/**
|
|
80
|
+
* Maximum cosine distance threshold for results
|
|
81
|
+
*/
|
|
82
|
+
distance?: number | null;
|
|
83
|
+
/**
|
|
84
|
+
* Additional filters to apply
|
|
85
|
+
*/
|
|
86
|
+
filters?: {
|
|
87
|
+
[key: string]: unknown;
|
|
88
|
+
} | null;
|
|
89
|
+
/**
|
|
90
|
+
* Number of results to return
|
|
91
|
+
*/
|
|
92
|
+
top_k?: number;
|
|
93
|
+
}
|
|
94
|
+
export interface PageConclusion {
|
|
95
|
+
items: Array<Conclusion>;
|
|
96
|
+
page: number;
|
|
97
|
+
size: number;
|
|
98
|
+
pages?: number;
|
|
99
|
+
total?: number;
|
|
100
|
+
}
|
|
101
|
+
export type ConclusionCreateResponse = Array<Conclusion>;
|
|
102
|
+
export type ConclusionDeleteResponse = unknown;
|
|
103
|
+
export type ConclusionQueryResponse = Array<Conclusion>;
|
|
104
|
+
export interface ConclusionCreateParams {
|
|
105
|
+
conclusions: Array<ConclusionCreate>;
|
|
106
|
+
}
|
|
107
|
+
export interface ConclusionListParams extends PageParams {
|
|
108
|
+
/**
|
|
109
|
+
* Query param: Whether to reverse the order of results
|
|
110
|
+
*/
|
|
111
|
+
reverse?: boolean | null;
|
|
112
|
+
/**
|
|
113
|
+
* Body param:
|
|
114
|
+
*/
|
|
115
|
+
filters?: {
|
|
116
|
+
[key: string]: unknown;
|
|
117
|
+
} | null;
|
|
118
|
+
}
|
|
119
|
+
export interface ConclusionQueryParams {
|
|
120
|
+
/**
|
|
121
|
+
* Semantic search query
|
|
122
|
+
*/
|
|
123
|
+
query: string;
|
|
124
|
+
/**
|
|
125
|
+
* Maximum cosine distance threshold for results
|
|
126
|
+
*/
|
|
127
|
+
distance?: number | null;
|
|
128
|
+
/**
|
|
129
|
+
* Additional filters to apply
|
|
130
|
+
*/
|
|
131
|
+
filters?: {
|
|
132
|
+
[key: string]: unknown;
|
|
133
|
+
} | null;
|
|
134
|
+
/**
|
|
135
|
+
* Number of results to return
|
|
136
|
+
*/
|
|
137
|
+
top_k?: number;
|
|
138
|
+
}
|
|
139
|
+
export declare namespace Conclusions {
|
|
140
|
+
export { type Conclusion as Conclusion, type ConclusionCreate as ConclusionCreate, type ConclusionGet as ConclusionGet, type ConclusionQuery as ConclusionQuery, type PageConclusion as PageConclusion, type ConclusionCreateResponse as ConclusionCreateResponse, type ConclusionDeleteResponse as ConclusionDeleteResponse, type ConclusionQueryResponse as ConclusionQueryResponse, ConclusionsPage as ConclusionsPage, type ConclusionCreateParams as ConclusionCreateParams, type ConclusionListParams as ConclusionListParams, type ConclusionQueryParams as ConclusionQueryParams, };
|
|
141
|
+
}
|
|
142
|
+
//# sourceMappingURL=conclusions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"conclusions.d.ts","sourceRoot":"","sources":["../../src/resources/workspaces/conclusions.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,WAAY,SAAQ,WAAW;IAC1C;;;;OAIG;IACH,MAAM,CACJ,WAAW,EAAE,MAAM,EACnB,IAAI,EAAE,sBAAsB,EAC5B,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAC5B,IAAI,CAAC,UAAU,CAAC,wBAAwB,CAAC;IAI5C;;;OA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GAAG,OAAO,CAAA;KAAE,GAAG,IAAI,CAAC;IAE5C;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAID,MAAM,CAAC,OAAO,WAAW,WAAW,CAAC;IACnC,OAAO,EACL,KAAK,UAAU,IAAI,UAAU,EAC7B,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,aAAa,IAAI,aAAa,EACnC,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,cAAc,IAAI,cAAc,EACrC,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,eAAe,IAAI,eAAe,EAClC,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,qBAAqB,IAAI,qBAAqB,GACpD,CAAC;CACH"}
|
|
@@ -0,0 +1,47 @@
|
|
|
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.ConclusionsPage = exports.Conclusions = 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 Conclusions extends resource_1.APIResource {
|
|
9
|
+
/**
|
|
10
|
+
* Create one or more conclusions.
|
|
11
|
+
*
|
|
12
|
+
* Conclusions are theory-of-mind facts derived from interactions between peers.
|
|
13
|
+
*/
|
|
14
|
+
create(workspaceId, body, options) {
|
|
15
|
+
return this._client.post(`/v2/workspaces/${workspaceId}/conclusions`, { body, ...options });
|
|
16
|
+
}
|
|
17
|
+
list(workspaceId, params = {}, options) {
|
|
18
|
+
if ((0, core_1.isRequestOptions)(params)) {
|
|
19
|
+
return this.list(workspaceId, {}, params);
|
|
20
|
+
}
|
|
21
|
+
const { page, reverse, size, ...body } = params;
|
|
22
|
+
return this._client.getAPIList(`/v2/workspaces/${workspaceId}/conclusions/list`, ConclusionsPage, {
|
|
23
|
+
query: { page, reverse, size },
|
|
24
|
+
body,
|
|
25
|
+
method: 'post',
|
|
26
|
+
...options,
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* Delete a specific conclusion (document).
|
|
31
|
+
*/
|
|
32
|
+
delete(workspaceId, conclusionId, options) {
|
|
33
|
+
return this._client.delete(`/v2/workspaces/${workspaceId}/conclusions/${conclusionId}`, options);
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* Query conclusions using semantic search.
|
|
37
|
+
*/
|
|
38
|
+
query(workspaceId, body, options) {
|
|
39
|
+
return this._client.post(`/v2/workspaces/${workspaceId}/conclusions/query`, { body, ...options });
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
exports.Conclusions = Conclusions;
|
|
43
|
+
class ConclusionsPage extends pagination_1.Page {
|
|
44
|
+
}
|
|
45
|
+
exports.ConclusionsPage = ConclusionsPage;
|
|
46
|
+
Conclusions.ConclusionsPage = ConclusionsPage;
|
|
47
|
+
//# sourceMappingURL=conclusions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"conclusions.js","sourceRoot":"","sources":["../../src/resources/workspaces/conclusions.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,gDAA6C;AAC7C,wCAA8C;AAE9C,oDAAyD;AAEzD,MAAa,WAAY,SAAQ,sBAAW;IAC1C;;;;OAIG;IACH,MAAM,CACJ,WAAmB,EACnB,IAA4B,EAC5B,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,kBAAkB,WAAW,cAAc,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC9F,CAAC;IAYD,IAAI,CACF,WAAmB,EACnB,SAAqD,EAAE,EACvD,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,mBAAmB,EAAE,eAAe,EAAE;YAChG,KAAK,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE;YAC9B,IAAI;YACJ,MAAM,EAAE,MAAM;YACd,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,WAAmB,EAAE,YAAoB,EAAE,OAA6B;QAC7E,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,kBAAkB,WAAW,gBAAgB,YAAY,EAAE,EAAE,OAAO,CAAC,CAAC;IACnG,CAAC;IAED;;OAEG;IACH,KAAK,CACH,WAAmB,EACnB,IAA2B,EAC3B,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,kBAAkB,WAAW,oBAAoB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACpG,CAAC;CACF;AA1DD,kCA0DC;AAED,MAAa,eAAgB,SAAQ,iBAAgB;CAAG;AAAxD,0CAAwD;AAuIxD,WAAW,CAAC,eAAe,GAAG,eAAe,CAAC"}
|
|
@@ -0,0 +1,42 @@
|
|
|
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 Conclusions extends APIResource {
|
|
6
|
+
/**
|
|
7
|
+
* Create one or more conclusions.
|
|
8
|
+
*
|
|
9
|
+
* Conclusions are theory-of-mind facts derived from interactions between peers.
|
|
10
|
+
*/
|
|
11
|
+
create(workspaceId, body, options) {
|
|
12
|
+
return this._client.post(`/v2/workspaces/${workspaceId}/conclusions`, { body, ...options });
|
|
13
|
+
}
|
|
14
|
+
list(workspaceId, params = {}, options) {
|
|
15
|
+
if (isRequestOptions(params)) {
|
|
16
|
+
return this.list(workspaceId, {}, params);
|
|
17
|
+
}
|
|
18
|
+
const { page, reverse, size, ...body } = params;
|
|
19
|
+
return this._client.getAPIList(`/v2/workspaces/${workspaceId}/conclusions/list`, ConclusionsPage, {
|
|
20
|
+
query: { page, reverse, size },
|
|
21
|
+
body,
|
|
22
|
+
method: 'post',
|
|
23
|
+
...options,
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Delete a specific conclusion (document).
|
|
28
|
+
*/
|
|
29
|
+
delete(workspaceId, conclusionId, options) {
|
|
30
|
+
return this._client.delete(`/v2/workspaces/${workspaceId}/conclusions/${conclusionId}`, options);
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Query conclusions using semantic search.
|
|
34
|
+
*/
|
|
35
|
+
query(workspaceId, body, options) {
|
|
36
|
+
return this._client.post(`/v2/workspaces/${workspaceId}/conclusions/query`, { body, ...options });
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
export class ConclusionsPage extends Page {
|
|
40
|
+
}
|
|
41
|
+
Conclusions.ConclusionsPage = ConclusionsPage;
|
|
42
|
+
//# sourceMappingURL=conclusions.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"conclusions.mjs","sourceRoot":"","sources":["../../src/resources/workspaces/conclusions.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,EAAE,gBAAgB,EAAE;OAEpB,EAAE,IAAI,EAAmB;AAEhC,MAAM,OAAO,WAAY,SAAQ,WAAW;IAC1C;;;;OAIG;IACH,MAAM,CACJ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clusions, type Conclusion, type ConclusionCreate, type ConclusionGet, type ConclusionQuery, type PageConclusion, type ConclusionCreateResponse, type ConclusionDeleteResponse, type ConclusionQueryResponse, type ConclusionCreateParams, type ConclusionListParams, type ConclusionQueryParams, } from "./conclusions.js";
|
|
2
|
+
export { ObservationsPage, Observations, type Observation, type ObservationCreate, type ObservationGet, type ObservationQuery, type PageObservation, type ObservationCreateResponse, type ObservationDeleteResponse, type ObservationQueryResponse, type ObservationCreateParams, type ObservationListParams, type ObservationQueryParams, } from "./observations.js";
|
|
2
3
|
export { PeersPage, Peers, type PagePeer, type PageSession, type Peer, type PeerCardResponse, type SessionGet, type PeerChatResponse, type PeerGetContextResponse, type PeerSearchResponse, type PeerWorkingRepresentationResponse, type PeerUpdateParams, type PeerListParams, type PeerCardParams, type PeerChatParams, type PeerGetContextParams, type PeerGetOrCreateParams, type PeerSearchParams, type PeerSetCardParams, type PeerWorkingRepresentationParams, } from "./peers/index.js";
|
|
3
4
|
export { SessionsPage, Sessions, type Session, type SessionConfiguration, type Summary, type SessionDeleteResponse, type SessionGetContextResponse, type SessionSearchResponse, type SessionSummariesResponse, type SessionUpdateParams, type SessionListParams, type SessionCloneParams, type SessionGetContextParams, type SessionGetOrCreateParams, type SessionSearchParams, } from "./sessions/index.js";
|
|
4
5
|
export { WebhookEndpointsPage, Webhooks, type WebhookEndpoint, type WebhookDeleteResponse, type WebhookTestEmitResponse, type WebhookListParams, type WebhookGetOrCreateParams, } from "./webhooks.js";
|
|
5
|
-
export { WorkspacesPage, Workspaces, type DeriverConfiguration, type DeriverStatus, type DreamConfiguration, type MessageSearchOptions, type PeerCardConfiguration, type SummaryConfiguration, type Workspace, type WorkspaceConfiguration, type WorkspaceSearchResponse, type WorkspaceUpdateParams, type WorkspaceListParams, type WorkspaceDeriverStatusParams, type WorkspaceGetOrCreateParams, type WorkspaceSearchParams, type WorkspaceTriggerDreamParams, } from "./workspaces.js";
|
|
6
|
+
export { WorkspacesPage, Workspaces, type DeriverConfiguration, type DeriverStatus, type DreamConfiguration, type MessageSearchOptions, type PeerCardConfiguration, type QueueStatus, type SummaryConfiguration, type Workspace, type WorkspaceConfiguration, type WorkspaceSearchResponse, type WorkspaceUpdateParams, type WorkspaceListParams, type WorkspaceDeriverStatusParams, type WorkspaceGetOrCreateParams, type WorkspaceQueueStatusParams, type WorkspaceSearchParams, type WorkspaceTriggerDreamParams, } from "./workspaces.js";
|
|
6
7
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/workspaces/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,gBAAgB,EAChB,YAAY,EACZ,KAAK,cAAc,EACnB,KAAK,gBAAgB,EACrB,KAAK,eAAe,EACpB,KAAK,yBAAyB,EAC9B,KAAK,wBAAwB,EAC7B,KAAK,qBAAqB,EAC1B,KAAK,sBAAsB,GAC5B,MAAM,gBAAgB,CAAC;AACxB,OAAO,EACL,SAAS,EACT,KAAK,EACL,KAAK,QAAQ,EACb,KAAK,WAAW,EAChB,KAAK,IAAI,EACT,KAAK,gBAAgB,EACrB,KAAK,UAAU,EACf,KAAK,gBAAgB,EACrB,KAAK,sBAAsB,EAC3B,KAAK,kBAAkB,EACvB,KAAK,iCAAiC,EACtC,KAAK,gBAAgB,EACrB,KAAK,cAAc,EACnB,KAAK,cAAc,EACnB,KAAK,cAAc,EACnB,KAAK,oBAAoB,EACzB,KAAK,qBAAqB,EAC1B,KAAK,gBAAgB,EACrB,KAAK,iBAAiB,EACtB,KAAK,+BAA+B,GACrC,MAAM,eAAe,CAAC;AACvB,OAAO,EACL,YAAY,EACZ,QAAQ,EACR,KAAK,OAAO,EACZ,KAAK,oBAAoB,EACzB,KAAK,OAAO,EACZ,KAAK,qBAAqB,EAC1B,KAAK,yBAAyB,EAC9B,KAAK,qBAAqB,EAC1B,KAAK,wBAAwB,EAC7B,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,EACtB,KAAK,kBAAkB,EACvB,KAAK,uBAAuB,EAC5B,KAAK,wBAAwB,EAC7B,KAAK,mBAAmB,GACzB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EACL,oBAAoB,EACpB,QAAQ,EACR,KAAK,eAAe,EACpB,KAAK,qBAAqB,EAC1B,KAAK,uBAAuB,EAC5B,KAAK,iBAAiB,EACtB,KAAK,wBAAwB,GAC9B,MAAM,YAAY,CAAC;AACpB,OAAO,EACL,cAAc,EACd,UAAU,EACV,KAAK,oBAAoB,EACzB,KAAK,aAAa,EAClB,KAAK,kBAAkB,EACvB,KAAK,oBAAoB,EACzB,KAAK,qBAAqB,EAC1B,KAAK,oBAAoB,EACzB,KAAK,SAAS,EACd,KAAK,sBAAsB,EAC3B,KAAK,uBAAuB,EAC5B,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,EACxB,KAAK,4BAA4B,EACjC,KAAK,0BAA0B,EAC/B,KAAK,qBAAqB,EAC1B,KAAK,2BAA2B,GACjC,MAAM,cAAc,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/workspaces/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,eAAe,EACf,WAAW,EACX,KAAK,UAAU,EACf,KAAK,gBAAgB,EACrB,KAAK,aAAa,EAClB,KAAK,eAAe,EACpB,KAAK,cAAc,EACnB,KAAK,wBAAwB,EAC7B,KAAK,wBAAwB,EAC7B,KAAK,uBAAuB,EAC5B,KAAK,sBAAsB,EAC3B,KAAK,oBAAoB,EACzB,KAAK,qBAAqB,GAC3B,MAAM,eAAe,CAAC;AACvB,OAAO,EACL,gBAAgB,EAChB,YAAY,EACZ,KAAK,WAAW,EAChB,KAAK,iBAAiB,EACtB,KAAK,cAAc,EACnB,KAAK,gBAAgB,EACrB,KAAK,eAAe,EACpB,KAAK,yBAAyB,EAC9B,KAAK,yBAAyB,EAC9B,KAAK,wBAAwB,EAC7B,KAAK,uBAAuB,EAC5B,KAAK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