@inconvoai/node 0.4.0 → 0.5.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 +24 -0
- package/README.md +36 -19
- package/client.d.mts +0 -9
- package/client.d.mts.map +1 -1
- package/client.d.ts +0 -9
- package/client.d.ts.map +1 -1
- package/client.js +0 -9
- package/client.js.map +1 -1
- package/client.mjs +0 -9
- package/client.mjs.map +1 -1
- package/index.d.mts +1 -1
- package/index.d.ts +1 -1
- package/package.json +1 -1
- package/resources/agents/agents.d.mts +12 -0
- package/resources/agents/agents.d.mts.map +1 -1
- package/resources/agents/agents.d.ts +12 -0
- package/resources/agents/agents.d.ts.map +1 -1
- package/resources/agents/agents.js +12 -0
- package/resources/agents/agents.js.map +1 -1
- package/resources/agents/agents.mjs +12 -0
- package/resources/agents/agents.mjs.map +1 -1
- package/resources/{conversations → agents/conversations}/conversations.d.mts +24 -13
- package/resources/agents/conversations/conversations.d.mts.map +1 -0
- package/resources/{conversations → agents/conversations}/conversations.d.ts +24 -13
- package/resources/agents/conversations/conversations.d.ts.map +1 -0
- package/resources/agents/conversations/conversations.js +64 -0
- package/resources/agents/conversations/conversations.js.map +1 -0
- package/resources/agents/conversations/conversations.mjs +59 -0
- package/resources/agents/conversations/conversations.mjs.map +1 -0
- package/resources/{conversations → agents/conversations}/index.d.mts +1 -1
- package/resources/agents/conversations/index.d.mts.map +1 -0
- package/resources/{conversations → agents/conversations}/index.d.ts +1 -1
- package/resources/agents/conversations/index.d.ts.map +1 -0
- package/resources/agents/conversations/index.js.map +1 -0
- package/resources/agents/conversations/index.mjs.map +1 -0
- package/resources/{conversations → agents/conversations}/response/feedback.d.mts +25 -9
- package/resources/agents/conversations/response/feedback.d.mts.map +1 -0
- package/resources/{conversations → agents/conversations}/response/feedback.d.ts +25 -9
- package/resources/agents/conversations/response/feedback.d.ts.map +1 -0
- package/resources/agents/conversations/response/feedback.js +50 -0
- package/resources/agents/conversations/response/feedback.js.map +1 -0
- package/resources/agents/conversations/response/feedback.mjs +46 -0
- package/resources/agents/conversations/response/feedback.mjs.map +1 -0
- package/resources/agents/conversations/response/index.d.mts.map +1 -0
- package/resources/agents/conversations/response/index.d.ts.map +1 -0
- package/resources/agents/conversations/response/index.js.map +1 -0
- package/resources/agents/conversations/response/index.mjs.map +1 -0
- package/resources/{conversations → agents/conversations}/response/response.d.mts +30 -15
- package/resources/agents/conversations/response/response.d.mts.map +1 -0
- package/resources/{conversations → agents/conversations}/response/response.d.ts +30 -15
- package/resources/agents/conversations/response/response.d.ts.map +1 -0
- package/resources/{conversations → agents/conversations}/response/response.js +17 -13
- package/resources/agents/conversations/response/response.js.map +1 -0
- package/resources/{conversations → agents/conversations}/response/response.mjs +16 -12
- package/resources/agents/conversations/response/response.mjs.map +1 -0
- package/resources/agents/conversations/response.d.mts.map +1 -0
- package/resources/agents/conversations/response.d.ts.map +1 -0
- package/resources/{conversations → agents/conversations}/response.js +1 -1
- package/resources/agents/conversations/response.js.map +1 -0
- package/resources/agents/conversations/response.mjs.map +1 -0
- package/resources/agents/conversations.d.mts.map +1 -0
- package/resources/agents/conversations.d.ts.map +1 -0
- package/resources/{conversations.js → agents/conversations.js} +1 -1
- package/resources/agents/conversations.js.map +1 -0
- package/resources/agents/conversations.mjs.map +1 -0
- package/resources/agents/data-summary.d.mts +7 -1
- package/resources/agents/data-summary.d.mts.map +1 -1
- package/resources/agents/data-summary.d.ts +7 -1
- package/resources/agents/data-summary.d.ts.map +1 -1
- package/resources/agents/data-summary.js +9 -2
- package/resources/agents/data-summary.js.map +1 -1
- package/resources/agents/data-summary.mjs +9 -2
- package/resources/agents/data-summary.mjs.map +1 -1
- package/resources/{datasets → agents/datasets}/context.d.mts +28 -13
- package/resources/agents/datasets/context.d.mts.map +1 -0
- package/resources/{datasets → agents/datasets}/context.d.ts +28 -13
- package/resources/agents/datasets/context.d.ts.map +1 -0
- package/resources/agents/datasets/context.js +64 -0
- package/resources/agents/datasets/context.js.map +1 -0
- package/resources/agents/datasets/context.mjs +60 -0
- package/resources/agents/datasets/context.mjs.map +1 -0
- package/resources/{datasets → agents/datasets}/datasets.d.mts +3 -3
- package/resources/agents/datasets/datasets.d.mts.map +1 -0
- package/resources/{datasets → agents/datasets}/datasets.d.ts +3 -3
- package/resources/agents/datasets/datasets.d.ts.map +1 -0
- package/resources/{datasets → agents/datasets}/datasets.js +2 -2
- package/resources/agents/datasets/datasets.js.map +1 -0
- package/resources/{datasets → agents/datasets}/datasets.mjs +1 -1
- package/resources/agents/datasets/datasets.mjs.map +1 -0
- package/resources/{datasets → agents/datasets}/index.d.mts +1 -1
- package/resources/agents/datasets/index.d.mts.map +1 -0
- package/resources/{datasets → agents/datasets}/index.d.ts +1 -1
- package/resources/agents/datasets/index.d.ts.map +1 -0
- package/resources/agents/datasets/index.js.map +1 -0
- package/resources/agents/datasets/index.mjs.map +1 -0
- package/resources/agents/datasets/user.d.mts +98 -0
- package/resources/agents/datasets/user.d.mts.map +1 -0
- package/resources/agents/datasets/user.d.ts +98 -0
- package/resources/agents/datasets/user.d.ts.map +1 -0
- package/resources/agents/datasets/user.js +59 -0
- package/resources/agents/datasets/user.js.map +1 -0
- package/resources/agents/datasets/user.mjs +55 -0
- package/resources/agents/datasets/user.mjs.map +1 -0
- package/resources/agents/datasets.d.mts.map +1 -0
- package/resources/agents/datasets.d.ts.map +1 -0
- package/resources/{datasets.js → agents/datasets.js} +1 -1
- package/resources/agents/datasets.js.map +1 -0
- package/resources/agents/datasets.mjs.map +1 -0
- package/resources/agents/index.d.mts +3 -0
- package/resources/agents/index.d.mts.map +1 -1
- package/resources/agents/index.d.ts +3 -0
- package/resources/agents/index.d.ts.map +1 -1
- package/resources/agents/index.js +7 -1
- package/resources/agents/index.js.map +1 -1
- package/resources/agents/index.mjs +3 -0
- package/resources/agents/index.mjs.map +1 -1
- package/resources/agents/mcp-servers/index.d.mts +3 -0
- package/resources/agents/mcp-servers/index.d.mts.map +1 -0
- package/resources/agents/mcp-servers/index.d.ts +3 -0
- package/resources/agents/mcp-servers/index.d.ts.map +1 -0
- package/resources/agents/mcp-servers/index.js.map +1 -0
- package/resources/agents/mcp-servers/index.mjs.map +1 -0
- package/resources/agents/mcp-servers/mcp-servers.d.mts +10 -0
- package/resources/agents/mcp-servers/mcp-servers.d.mts.map +1 -0
- package/resources/agents/mcp-servers/mcp-servers.d.ts +10 -0
- package/resources/agents/mcp-servers/mcp-servers.d.ts.map +1 -0
- package/resources/{mcp-servers → agents/mcp-servers}/mcp-servers.js +2 -2
- package/resources/agents/mcp-servers/mcp-servers.js.map +1 -0
- package/resources/{mcp-servers → agents/mcp-servers}/mcp-servers.mjs +2 -2
- package/resources/agents/mcp-servers/mcp-servers.mjs.map +1 -0
- package/resources/agents/mcp-servers/tenants.d.mts +79 -0
- package/resources/agents/mcp-servers/tenants.d.mts.map +1 -0
- package/resources/agents/mcp-servers/tenants.d.ts +79 -0
- package/resources/agents/mcp-servers/tenants.d.ts.map +1 -0
- package/resources/agents/mcp-servers/tenants.js +50 -0
- package/resources/agents/mcp-servers/tenants.js.map +1 -0
- package/resources/agents/mcp-servers/tenants.mjs +46 -0
- package/resources/agents/mcp-servers/tenants.mjs.map +1 -0
- package/resources/agents/mcp-servers.d.mts.map +1 -0
- package/resources/agents/mcp-servers.d.ts.map +1 -0
- package/resources/{mcp-servers.js → agents/mcp-servers.js} +1 -1
- package/resources/agents/mcp-servers.js.map +1 -0
- package/resources/agents/mcp-servers.mjs.map +1 -0
- package/resources/index.d.mts +0 -3
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +0 -3
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +1 -7
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +0 -3
- package/resources/index.mjs.map +1 -1
- package/src/client.ts +0 -31
- package/src/index.ts +1 -1
- package/src/resources/agents/agents.ts +36 -0
- package/src/resources/{conversations → agents/conversations}/conversations.ts +42 -18
- package/src/resources/{conversations → agents/conversations}/index.ts +1 -0
- package/src/resources/{conversations → agents/conversations}/response/feedback.ts +38 -20
- package/src/resources/{conversations → agents/conversations}/response/response.ts +45 -23
- package/src/resources/agents/data-summary.ts +9 -2
- package/src/resources/{datasets → agents/datasets}/context.ts +42 -21
- package/src/resources/{datasets → agents/datasets}/datasets.ts +3 -1
- package/src/resources/{datasets → agents/datasets}/index.ts +1 -0
- package/src/resources/agents/datasets/user.ts +151 -0
- package/src/resources/agents/index.ts +12 -0
- package/src/resources/{mcp-servers → agents/mcp-servers}/index.ts +1 -0
- package/src/resources/{mcp-servers → agents/mcp-servers}/mcp-servers.ts +9 -2
- package/src/resources/agents/mcp-servers/tenants.ts +108 -0
- package/src/resources/index.ts +0 -11
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
- package/resources/conversations/conversations.d.mts.map +0 -1
- package/resources/conversations/conversations.d.ts.map +0 -1
- package/resources/conversations/conversations.js +0 -61
- package/resources/conversations/conversations.js.map +0 -1
- package/resources/conversations/conversations.mjs +0 -56
- package/resources/conversations/conversations.mjs.map +0 -1
- package/resources/conversations/index.d.mts.map +0 -1
- package/resources/conversations/index.d.ts.map +0 -1
- package/resources/conversations/index.js.map +0 -1
- package/resources/conversations/index.mjs.map +0 -1
- package/resources/conversations/response/feedback.d.mts.map +0 -1
- package/resources/conversations/response/feedback.d.ts.map +0 -1
- package/resources/conversations/response/feedback.js +0 -48
- package/resources/conversations/response/feedback.js.map +0 -1
- package/resources/conversations/response/feedback.mjs +0 -44
- package/resources/conversations/response/feedback.mjs.map +0 -1
- package/resources/conversations/response/index.d.mts.map +0 -1
- package/resources/conversations/response/index.d.ts.map +0 -1
- package/resources/conversations/response/index.js.map +0 -1
- package/resources/conversations/response/index.mjs.map +0 -1
- package/resources/conversations/response/response.d.mts.map +0 -1
- package/resources/conversations/response/response.d.ts.map +0 -1
- package/resources/conversations/response/response.js.map +0 -1
- package/resources/conversations/response/response.mjs.map +0 -1
- package/resources/conversations/response.d.mts.map +0 -1
- package/resources/conversations/response.d.ts.map +0 -1
- package/resources/conversations/response.js.map +0 -1
- package/resources/conversations/response.mjs.map +0 -1
- package/resources/conversations.d.mts.map +0 -1
- package/resources/conversations.d.ts.map +0 -1
- package/resources/conversations.js.map +0 -1
- package/resources/conversations.mjs.map +0 -1
- package/resources/datasets/context.d.mts.map +0 -1
- package/resources/datasets/context.d.ts.map +0 -1
- package/resources/datasets/context.js +0 -61
- package/resources/datasets/context.js.map +0 -1
- package/resources/datasets/context.mjs +0 -57
- package/resources/datasets/context.mjs.map +0 -1
- package/resources/datasets/datasets.d.mts.map +0 -1
- package/resources/datasets/datasets.d.ts.map +0 -1
- package/resources/datasets/datasets.js.map +0 -1
- package/resources/datasets/datasets.mjs.map +0 -1
- package/resources/datasets/index.d.mts.map +0 -1
- package/resources/datasets/index.d.ts.map +0 -1
- package/resources/datasets/index.js.map +0 -1
- package/resources/datasets/index.mjs.map +0 -1
- package/resources/datasets/user.d.mts +0 -77
- package/resources/datasets/user.d.mts.map +0 -1
- package/resources/datasets/user.d.ts +0 -77
- package/resources/datasets/user.d.ts.map +0 -1
- package/resources/datasets/user.js +0 -50
- package/resources/datasets/user.js.map +0 -1
- package/resources/datasets/user.mjs +0 -46
- package/resources/datasets/user.mjs.map +0 -1
- package/resources/datasets.d.mts.map +0 -1
- package/resources/datasets.d.ts.map +0 -1
- package/resources/datasets.js.map +0 -1
- package/resources/datasets.mjs.map +0 -1
- package/resources/mcp-servers/index.d.mts +0 -3
- package/resources/mcp-servers/index.d.mts.map +0 -1
- package/resources/mcp-servers/index.d.ts +0 -3
- package/resources/mcp-servers/index.d.ts.map +0 -1
- package/resources/mcp-servers/index.js.map +0 -1
- package/resources/mcp-servers/index.mjs.map +0 -1
- package/resources/mcp-servers/mcp-servers.d.mts +0 -10
- package/resources/mcp-servers/mcp-servers.d.mts.map +0 -1
- package/resources/mcp-servers/mcp-servers.d.ts +0 -10
- package/resources/mcp-servers/mcp-servers.d.ts.map +0 -1
- package/resources/mcp-servers/mcp-servers.js.map +0 -1
- package/resources/mcp-servers/mcp-servers.mjs.map +0 -1
- package/resources/mcp-servers/tenants.d.mts +0 -63
- package/resources/mcp-servers/tenants.d.mts.map +0 -1
- package/resources/mcp-servers/tenants.d.ts +0 -63
- package/resources/mcp-servers/tenants.d.ts.map +0 -1
- package/resources/mcp-servers/tenants.js +0 -47
- package/resources/mcp-servers/tenants.js.map +0 -1
- package/resources/mcp-servers/tenants.mjs +0 -43
- package/resources/mcp-servers/tenants.mjs.map +0 -1
- package/resources/mcp-servers.d.mts.map +0 -1
- package/resources/mcp-servers.d.ts.map +0 -1
- package/resources/mcp-servers.js.map +0 -1
- package/resources/mcp-servers.mjs.map +0 -1
- package/src/resources/datasets/user.ts +0 -120
- package/src/resources/mcp-servers/tenants.ts +0 -81
- /package/resources/{conversations → agents/conversations}/index.js +0 -0
- /package/resources/{conversations → agents/conversations}/index.mjs +0 -0
- /package/resources/{conversations → agents/conversations}/response/index.d.mts +0 -0
- /package/resources/{conversations → agents/conversations}/response/index.d.ts +0 -0
- /package/resources/{conversations → agents/conversations}/response/index.js +0 -0
- /package/resources/{conversations → agents/conversations}/response/index.mjs +0 -0
- /package/resources/{conversations → agents/conversations}/response.d.mts +0 -0
- /package/resources/{conversations → agents/conversations}/response.d.ts +0 -0
- /package/resources/{conversations → agents/conversations}/response.mjs +0 -0
- /package/resources/{conversations.d.mts → agents/conversations.d.mts} +0 -0
- /package/resources/{conversations.d.ts → agents/conversations.d.ts} +0 -0
- /package/resources/{conversations.mjs → agents/conversations.mjs} +0 -0
- /package/resources/{datasets → agents/datasets}/index.js +0 -0
- /package/resources/{datasets → agents/datasets}/index.mjs +0 -0
- /package/resources/{datasets.d.mts → agents/datasets.d.mts} +0 -0
- /package/resources/{datasets.d.ts → agents/datasets.d.ts} +0 -0
- /package/resources/{datasets.mjs → agents/datasets.mjs} +0 -0
- /package/resources/{mcp-servers → agents/mcp-servers}/index.js +0 -0
- /package/resources/{mcp-servers → agents/mcp-servers}/index.mjs +0 -0
- /package/resources/{mcp-servers.d.mts → agents/mcp-servers.d.mts} +0 -0
- /package/resources/{mcp-servers.d.ts → agents/mcp-servers.d.ts} +0 -0
- /package/resources/{mcp-servers.mjs → agents/mcp-servers.mjs} +0 -0
- /package/src/resources/{conversations → agents/conversations}/response/index.ts +0 -0
- /package/src/resources/{conversations → agents/conversations}/response.ts +0 -0
- /package/src/resources/{conversations.ts → agents/conversations.ts} +0 -0
- /package/src/resources/{datasets.ts → agents/datasets.ts} +0 -0
- /package/src/resources/{mcp-servers.ts → agents/mcp-servers.ts} +0 -0
|
@@ -6,12 +6,24 @@ const tslib_1 = require("../../internal/tslib.js");
|
|
|
6
6
|
const resource_1 = require("../../core/resource.js");
|
|
7
7
|
const DataSummaryAPI = tslib_1.__importStar(require("./data-summary.js"));
|
|
8
8
|
const data_summary_1 = require("./data-summary.js");
|
|
9
|
+
const ConversationsAPI = tslib_1.__importStar(require("./conversations/conversations.js"));
|
|
10
|
+
const conversations_1 = require("./conversations/conversations.js");
|
|
11
|
+
const DatasetsAPI = tslib_1.__importStar(require("./datasets/datasets.js"));
|
|
12
|
+
const datasets_1 = require("./datasets/datasets.js");
|
|
13
|
+
const McpServersAPI = tslib_1.__importStar(require("./mcp-servers/mcp-servers.js"));
|
|
14
|
+
const mcp_servers_1 = require("./mcp-servers/mcp-servers.js");
|
|
9
15
|
class Agents extends resource_1.APIResource {
|
|
10
16
|
constructor() {
|
|
11
17
|
super(...arguments);
|
|
12
18
|
this.dataSummary = new DataSummaryAPI.DataSummary(this._client);
|
|
19
|
+
this.conversations = new ConversationsAPI.Conversations(this._client);
|
|
20
|
+
this.datasets = new DatasetsAPI.Datasets(this._client);
|
|
21
|
+
this.mcpServers = new McpServersAPI.McpServers(this._client);
|
|
13
22
|
}
|
|
14
23
|
}
|
|
15
24
|
exports.Agents = Agents;
|
|
16
25
|
Agents.DataSummary = data_summary_1.DataSummary;
|
|
26
|
+
Agents.Conversations = conversations_1.Conversations;
|
|
27
|
+
Agents.Datasets = datasets_1.Datasets;
|
|
28
|
+
Agents.McpServers = mcp_servers_1.McpServers;
|
|
17
29
|
//# sourceMappingURL=agents.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agents.js","sourceRoot":"","sources":["../../src/resources/agents/agents.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,qDAAkD;AAClD,0EAAiD;AACjD,oDAA0E;
|
|
1
|
+
{"version":3,"file":"agents.js","sourceRoot":"","sources":["../../src/resources/agents/agents.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,qDAAkD;AAClD,0EAAiD;AACjD,oDAA0E;AAC1E,2FAAkE;AAClE,oEASuC;AACvC,4EAAmD;AACnD,qDAA+C;AAC/C,oFAA2D;AAC3D,8DAAuD;AAEvD,MAAa,MAAO,SAAQ,sBAAW;IAAvC;;QACE,gBAAW,GAA+B,IAAI,cAAc,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACvF,kBAAa,GAAmC,IAAI,gBAAgB,CAAC,aAAa,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACjG,aAAQ,GAAyB,IAAI,WAAW,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxE,eAAU,GAA6B,IAAI,aAAa,CAAC,UAAU,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IACpF,CAAC;CAAA;AALD,wBAKC;AAED,MAAM,CAAC,WAAW,GAAG,0BAAW,CAAC;AACjC,MAAM,CAAC,aAAa,GAAG,6BAAa,CAAC;AACrC,MAAM,CAAC,QAAQ,GAAG,mBAAQ,CAAC;AAC3B,MAAM,CAAC,UAAU,GAAG,wBAAU,CAAC"}
|
|
@@ -2,11 +2,23 @@
|
|
|
2
2
|
import { APIResource } from "../../core/resource.mjs";
|
|
3
3
|
import * as DataSummaryAPI from "./data-summary.mjs";
|
|
4
4
|
import { DataSummary } from "./data-summary.mjs";
|
|
5
|
+
import * as ConversationsAPI from "./conversations/conversations.mjs";
|
|
6
|
+
import { Conversations, } from "./conversations/conversations.mjs";
|
|
7
|
+
import * as DatasetsAPI from "./datasets/datasets.mjs";
|
|
8
|
+
import { Datasets } from "./datasets/datasets.mjs";
|
|
9
|
+
import * as McpServersAPI from "./mcp-servers/mcp-servers.mjs";
|
|
10
|
+
import { McpServers } from "./mcp-servers/mcp-servers.mjs";
|
|
5
11
|
export class Agents extends APIResource {
|
|
6
12
|
constructor() {
|
|
7
13
|
super(...arguments);
|
|
8
14
|
this.dataSummary = new DataSummaryAPI.DataSummary(this._client);
|
|
15
|
+
this.conversations = new ConversationsAPI.Conversations(this._client);
|
|
16
|
+
this.datasets = new DatasetsAPI.Datasets(this._client);
|
|
17
|
+
this.mcpServers = new McpServersAPI.McpServers(this._client);
|
|
9
18
|
}
|
|
10
19
|
}
|
|
11
20
|
Agents.DataSummary = DataSummary;
|
|
21
|
+
Agents.Conversations = Conversations;
|
|
22
|
+
Agents.Datasets = Datasets;
|
|
23
|
+
Agents.McpServers = McpServers;
|
|
12
24
|
//# sourceMappingURL=agents.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agents.mjs","sourceRoot":"","sources":["../../src/resources/agents/agents.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,KAAK,cAAc;OACnB,EAAE,WAAW,EAA+B;
|
|
1
|
+
{"version":3,"file":"agents.mjs","sourceRoot":"","sources":["../../src/resources/agents/agents.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,KAAK,cAAc;OACnB,EAAE,WAAW,EAA+B;OAC5C,KAAK,gBAAgB;OACrB,EAOL,aAAa,GAEd;OACM,KAAK,WAAW;OAChB,EAAE,QAAQ,EAAE;OACZ,KAAK,aAAa;OAClB,EAAE,UAAU,EAAE;AAErB,MAAM,OAAO,MAAO,SAAQ,WAAW;IAAvC;;QACE,gBAAW,GAA+B,IAAI,cAAc,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACvF,kBAAa,GAAmC,IAAI,gBAAgB,CAAC,aAAa,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACjG,aAAQ,GAAyB,IAAI,WAAW,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxE,eAAU,GAA6B,IAAI,aAAa,CAAC,UAAU,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IACpF,CAAC;CAAA;AAED,MAAM,CAAC,WAAW,GAAG,WAAW,CAAC;AACjC,MAAM,CAAC,aAAa,GAAG,aAAa,CAAC;AACrC,MAAM,CAAC,QAAQ,GAAG,QAAQ,CAAC;AAC3B,MAAM,CAAC,UAAU,GAAG,UAAU,CAAC"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { APIResource } from "
|
|
1
|
+
import { APIResource } from "../../../core/resource.mjs";
|
|
2
2
|
import * as ResponseAPI from "./response/response.mjs";
|
|
3
3
|
import { Chart, Response, ResponseCreateParams, ResponseCreateResponse, ResponseRetrieveParams, ResponseRetrieveResponse, Table } from "./response/response.mjs";
|
|
4
|
-
import { APIPromise } from "
|
|
5
|
-
import { ConversationsCursor, type ConversationsCursorParams, PagePromise } from "
|
|
6
|
-
import { RequestOptions } from "
|
|
4
|
+
import { APIPromise } from "../../../core/api-promise.mjs";
|
|
5
|
+
import { ConversationsCursor, type ConversationsCursorParams, PagePromise } from "../../../core/pagination.mjs";
|
|
6
|
+
import { RequestOptions } from "../../../internal/request-options.mjs";
|
|
7
7
|
export declare class Conversations extends APIResource {
|
|
8
8
|
response: ResponseAPI.Response;
|
|
9
9
|
/**
|
|
@@ -11,34 +11,39 @@ export declare class Conversations extends APIResource {
|
|
|
11
11
|
*
|
|
12
12
|
* @example
|
|
13
13
|
* ```ts
|
|
14
|
-
* const conversation =
|
|
15
|
-
*
|
|
16
|
-
*
|
|
14
|
+
* const conversation =
|
|
15
|
+
* await client.agents.conversations.create('agentId', {
|
|
16
|
+
* userIdentifier: 'user_123',
|
|
17
|
+
* });
|
|
17
18
|
* ```
|
|
18
19
|
*/
|
|
19
|
-
create(body: ConversationCreateParams, options?: RequestOptions): APIPromise<ConversationCreateResponse>;
|
|
20
|
+
create(agentID: string, body: ConversationCreateParams, options?: RequestOptions): APIPromise<ConversationCreateResponse>;
|
|
20
21
|
/**
|
|
21
22
|
* Retrieve conversation
|
|
22
23
|
*
|
|
23
24
|
* @example
|
|
24
25
|
* ```ts
|
|
25
26
|
* const inconvoConversation =
|
|
26
|
-
* await client.conversations.retrieve('id'
|
|
27
|
+
* await client.agents.conversations.retrieve('id', {
|
|
28
|
+
* agentId: 'agentId',
|
|
29
|
+
* });
|
|
27
30
|
* ```
|
|
28
31
|
*/
|
|
29
|
-
retrieve(id: string, options?: RequestOptions): APIPromise<InconvoConversation>;
|
|
32
|
+
retrieve(id: string, params: ConversationRetrieveParams, options?: RequestOptions): APIPromise<InconvoConversation>;
|
|
30
33
|
/**
|
|
31
34
|
* List conversations
|
|
32
35
|
*
|
|
33
36
|
* @example
|
|
34
37
|
* ```ts
|
|
35
38
|
* // Automatically fetches more pages as needed.
|
|
36
|
-
* for await (const conversationListResponse of client.conversations.list(
|
|
39
|
+
* for await (const conversationListResponse of client.agents.conversations.list(
|
|
40
|
+
* 'agentId',
|
|
41
|
+
* )) {
|
|
37
42
|
* // ...
|
|
38
43
|
* }
|
|
39
44
|
* ```
|
|
40
45
|
*/
|
|
41
|
-
list(query?: ConversationListParams | null | undefined, options?: RequestOptions): PagePromise<ConversationListResponsesConversationsCursor, ConversationListResponse>;
|
|
46
|
+
list(agentID: string, query?: ConversationListParams | null | undefined, options?: RequestOptions): PagePromise<ConversationListResponsesConversationsCursor, ConversationListResponse>;
|
|
42
47
|
}
|
|
43
48
|
export type ConversationListResponsesConversationsCursor = ConversationsCursor<ConversationListResponse>;
|
|
44
49
|
export interface InconvoConversation {
|
|
@@ -95,6 +100,12 @@ export interface ConversationCreateParams {
|
|
|
95
100
|
[key: string]: unknown;
|
|
96
101
|
};
|
|
97
102
|
}
|
|
103
|
+
export interface ConversationRetrieveParams {
|
|
104
|
+
/**
|
|
105
|
+
* The unique identifier of the agent
|
|
106
|
+
*/
|
|
107
|
+
agentId: string;
|
|
108
|
+
}
|
|
98
109
|
export interface ConversationListParams extends ConversationsCursorParams {
|
|
99
110
|
/**
|
|
100
111
|
* Arbitrary userContext filters, encoded as a deep object. Example: GET
|
|
@@ -109,7 +120,7 @@ export interface ConversationListParams extends ConversationsCursorParams {
|
|
|
109
120
|
userIdentifier?: string;
|
|
110
121
|
}
|
|
111
122
|
export declare namespace Conversations {
|
|
112
|
-
export { type InconvoConversation as InconvoConversation, type ConversationCreateResponse as ConversationCreateResponse, type ConversationListResponse as ConversationListResponse, type ConversationListResponsesConversationsCursor as ConversationListResponsesConversationsCursor, type ConversationCreateParams as ConversationCreateParams, type ConversationListParams as ConversationListParams, };
|
|
123
|
+
export { type InconvoConversation as InconvoConversation, type ConversationCreateResponse as ConversationCreateResponse, type ConversationListResponse as ConversationListResponse, type ConversationListResponsesConversationsCursor as ConversationListResponsesConversationsCursor, type ConversationCreateParams as ConversationCreateParams, type ConversationRetrieveParams as ConversationRetrieveParams, type ConversationListParams as ConversationListParams, };
|
|
113
124
|
export { Response as Response, type Chart as Chart, type Table as Table, type ResponseCreateResponse as ResponseCreateResponse, type ResponseRetrieveResponse as ResponseRetrieveResponse, type ResponseCreateParams as ResponseCreateParams, type ResponseRetrieveParams as ResponseRetrieveParams, };
|
|
114
125
|
}
|
|
115
126
|
//# sourceMappingURL=conversations.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"conversations.d.mts","sourceRoot":"","sources":["../../../src/resources/agents/conversations/conversations.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,WAAW;OAChB,EACL,KAAK,EACL,QAAQ,E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sBAAsB,IAAI,sBAAsB,GACtD,CAAC;IAEF,OAAO,EACL,QAAQ,IAAI,QAAQ,EACpB,KAAK,KAAK,IAAI,KAAK,EACnB,KAAK,KAAK,IAAI,KAAK,EACnB,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,sBAAsB,IAAI,sBAAsB,GACtD,CAAC;CACH"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { APIResource } from "
|
|
1
|
+
import { APIResource } from "../../../core/resource.js";
|
|
2
2
|
import * as ResponseAPI from "./response/response.js";
|
|
3
3
|
import { Chart, Response, ResponseCreateParams, ResponseCreateResponse, ResponseRetrieveParams, ResponseRetrieveResponse, Table } from "./response/response.js";
|
|
4
|
-
import { APIPromise } from "
|
|
5
|
-
import { ConversationsCursor, type ConversationsCursorParams, PagePromise } from "
|
|
6
|
-
import { RequestOptions } from "
|
|
4
|
+
import { APIPromise } from "../../../core/api-promise.js";
|
|
5
|
+
import { ConversationsCursor, type ConversationsCursorParams, PagePromise } from "../../../core/pagination.js";
|
|
6
|
+
import { RequestOptions } from "../../../internal/request-options.js";
|
|
7
7
|
export declare class Conversations extends APIResource {
|
|
8
8
|
response: ResponseAPI.Response;
|
|
9
9
|
/**
|
|
@@ -11,34 +11,39 @@ export declare class Conversations extends APIResource {
|
|
|
11
11
|
*
|
|
12
12
|
* @example
|
|
13
13
|
* ```ts
|
|
14
|
-
* const conversation =
|
|
15
|
-
*
|
|
16
|
-
*
|
|
14
|
+
* const conversation =
|
|
15
|
+
* await client.agents.conversations.create('agentId', {
|
|
16
|
+
* userIdentifier: 'user_123',
|
|
17
|
+
* });
|
|
17
18
|
* ```
|
|
18
19
|
*/
|
|
19
|
-
create(body: ConversationCreateParams, options?: RequestOptions): APIPromise<ConversationCreateResponse>;
|
|
20
|
+
create(agentID: string, body: ConversationCreateParams, options?: RequestOptions): APIPromise<ConversationCreateResponse>;
|
|
20
21
|
/**
|
|
21
22
|
* Retrieve conversation
|
|
22
23
|
*
|
|
23
24
|
* @example
|
|
24
25
|
* ```ts
|
|
25
26
|
* const inconvoConversation =
|
|
26
|
-
* await client.conversations.retrieve('id'
|
|
27
|
+
* await client.agents.conversations.retrieve('id', {
|
|
28
|
+
* agentId: 'agentId',
|
|
29
|
+
* });
|
|
27
30
|
* ```
|
|
28
31
|
*/
|
|
29
|
-
retrieve(id: string, options?: RequestOptions): APIPromise<InconvoConversation>;
|
|
32
|
+
retrieve(id: string, params: ConversationRetrieveParams, options?: RequestOptions): APIPromise<InconvoConversation>;
|
|
30
33
|
/**
|
|
31
34
|
* List conversations
|
|
32
35
|
*
|
|
33
36
|
* @example
|
|
34
37
|
* ```ts
|
|
35
38
|
* // Automatically fetches more pages as needed.
|
|
36
|
-
* for await (const conversationListResponse of client.conversations.list(
|
|
39
|
+
* for await (const conversationListResponse of client.agents.conversations.list(
|
|
40
|
+
* 'agentId',
|
|
41
|
+
* )) {
|
|
37
42
|
* // ...
|
|
38
43
|
* }
|
|
39
44
|
* ```
|
|
40
45
|
*/
|
|
41
|
-
list(query?: ConversationListParams | null | undefined, options?: RequestOptions): PagePromise<ConversationListResponsesConversationsCursor, ConversationListResponse>;
|
|
46
|
+
list(agentID: string, query?: ConversationListParams | null | undefined, options?: RequestOptions): PagePromise<ConversationListResponsesConversationsCursor, ConversationListResponse>;
|
|
42
47
|
}
|
|
43
48
|
export type ConversationListResponsesConversationsCursor = ConversationsCursor<ConversationListResponse>;
|
|
44
49
|
export interface InconvoConversation {
|
|
@@ -95,6 +100,12 @@ export interface ConversationCreateParams {
|
|
|
95
100
|
[key: string]: unknown;
|
|
96
101
|
};
|
|
97
102
|
}
|
|
103
|
+
export interface ConversationRetrieveParams {
|
|
104
|
+
/**
|
|
105
|
+
* The unique identifier of the agent
|
|
106
|
+
*/
|
|
107
|
+
agentId: string;
|
|
108
|
+
}
|
|
98
109
|
export interface ConversationListParams extends ConversationsCursorParams {
|
|
99
110
|
/**
|
|
100
111
|
* Arbitrary userContext filters, encoded as a deep object. Example: GET
|
|
@@ -109,7 +120,7 @@ export interface ConversationListParams extends ConversationsCursorParams {
|
|
|
109
120
|
userIdentifier?: string;
|
|
110
121
|
}
|
|
111
122
|
export declare namespace Conversations {
|
|
112
|
-
export { type InconvoConversation as InconvoConversation, type ConversationCreateResponse as ConversationCreateResponse, type ConversationListResponse as ConversationListResponse, type ConversationListResponsesConversationsCursor as ConversationListResponsesConversationsCursor, type ConversationCreateParams as ConversationCreateParams, type ConversationListParams as ConversationListParams, };
|
|
123
|
+
export { type InconvoConversation as InconvoConversation, type ConversationCreateResponse as ConversationCreateResponse, type ConversationListResponse as ConversationListResponse, type ConversationListResponsesConversationsCursor as ConversationListResponsesConversationsCursor, type ConversationCreateParams as ConversationCreateParams, type ConversationRetrieveParams as ConversationRetrieveParams, type ConversationListParams as ConversationListParams, };
|
|
113
124
|
export { Response as Response, type Chart as Chart, type Table as Table, type ResponseCreateResponse as ResponseCreateResponse, type ResponseRetrieveResponse as ResponseRetrieveResponse, type ResponseCreateParams as ResponseCreateParams, type ResponseRetrieveParams as ResponseRetrieveParams, };
|
|
114
125
|
}
|
|
115
126
|
//# sourceMappingURL=conversations.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"conversations.d.ts","sourceRoot":"","sources":["../../../src/resources/agents/conversations/conversations.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,WAAW;OAChB,EACL,KAAK,EACL,QAAQ,EACR,oBAAoB,EACpB,sBAAsB,EACtB,sBAAsB,EACtB,wBAAwB,EACxB,KAAK,EACN;OACM,EAAE,UAAU,EAAE;OACd,EAAE,mBAAmB,EAAE,KAAK,yBAAyB,EAAE,WAAW,EAAE;OACpE,EAAE,cAAc,EAAE;AAGzB,qBAAa,aAAc,SAAQ,WAAW;IAC5C,QAAQ,EAAE,WAAW,CAAC,QAAQ,CAA0C;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IAAI,sBAAsB,GACtD,CAAC;CACH"}
|
|
@@ -0,0 +1,64 @@
|
|
|
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.Conversations = void 0;
|
|
5
|
+
const tslib_1 = require("../../../internal/tslib.js");
|
|
6
|
+
const resource_1 = require("../../../core/resource.js");
|
|
7
|
+
const ResponseAPI = tslib_1.__importStar(require("./response/response.js"));
|
|
8
|
+
const response_1 = require("./response/response.js");
|
|
9
|
+
const pagination_1 = require("../../../core/pagination.js");
|
|
10
|
+
const path_1 = require("../../../internal/utils/path.js");
|
|
11
|
+
class Conversations extends resource_1.APIResource {
|
|
12
|
+
constructor() {
|
|
13
|
+
super(...arguments);
|
|
14
|
+
this.response = new ResponseAPI.Response(this._client);
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Create conversation
|
|
18
|
+
*
|
|
19
|
+
* @example
|
|
20
|
+
* ```ts
|
|
21
|
+
* const conversation =
|
|
22
|
+
* await client.agents.conversations.create('agentId', {
|
|
23
|
+
* userIdentifier: 'user_123',
|
|
24
|
+
* });
|
|
25
|
+
* ```
|
|
26
|
+
*/
|
|
27
|
+
create(agentID, body, options) {
|
|
28
|
+
return this._client.post((0, path_1.path) `/agents/${agentID}/conversations`, { body, ...options });
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Retrieve conversation
|
|
32
|
+
*
|
|
33
|
+
* @example
|
|
34
|
+
* ```ts
|
|
35
|
+
* const inconvoConversation =
|
|
36
|
+
* await client.agents.conversations.retrieve('id', {
|
|
37
|
+
* agentId: 'agentId',
|
|
38
|
+
* });
|
|
39
|
+
* ```
|
|
40
|
+
*/
|
|
41
|
+
retrieve(id, params, options) {
|
|
42
|
+
const { agentId } = params;
|
|
43
|
+
return this._client.get((0, path_1.path) `/agents/${agentId}/conversations/${id}`, options);
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* List conversations
|
|
47
|
+
*
|
|
48
|
+
* @example
|
|
49
|
+
* ```ts
|
|
50
|
+
* // Automatically fetches more pages as needed.
|
|
51
|
+
* for await (const conversationListResponse of client.agents.conversations.list(
|
|
52
|
+
* 'agentId',
|
|
53
|
+
* )) {
|
|
54
|
+
* // ...
|
|
55
|
+
* }
|
|
56
|
+
* ```
|
|
57
|
+
*/
|
|
58
|
+
list(agentID, query = {}, options) {
|
|
59
|
+
return this._client.getAPIList((0, path_1.path) `/agents/${agentID}/conversations`, (pagination_1.ConversationsCursor), { query, ...options });
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
exports.Conversations = Conversations;
|
|
63
|
+
Conversations.Response = response_1.Response;
|
|
64
|
+
//# sourceMappingURL=conversations.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"conversations.js","sourceRoot":"","sources":["../../../src/resources/agents/conversations/conversations.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,wDAAqD;AACrD,4EAAmD;AACnD,qDAQ6B;AAE7B,4DAA4G;AAE5G,0DAAoD;AAEpD,MAAa,aAAc,SAAQ,sBAAW;IAA9C;;QACE,aAAQ,GAAyB,IAAI,WAAW,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAiE1E,CAAC;IA/DC;;;;;;;;;;OAUG;IACH,MAAM,CACJ,OAAe,EACf,IAA8B,EAC9B,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,WAAW,OAAO,gBAAgB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACzF,CAAC;IAED;;;;;;;;;;OAUG;IACH,QAAQ,CACN,EAAU,EACV,MAAkC,EAClC,OAAwB;QAExB,MAAM,EAAE,OAAO,EAAE,GAAG,MAAM,CAAC;QAC3B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,WAAW,OAAO,kBAAkB,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IACjF,CAAC;IAED;;;;;;;;;;;;OAYG;IACH,IAAI,CACF,OAAe,EACf,QAAmD,EAAE,EACrD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAC5B,IAAA,WAAI,EAAA,WAAW,OAAO,gBAAgB,EACtC,CAAA,gCAA6C,CAAA,EAC7C,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CACtB,CAAC;IACJ,CAAC;CACF;AAlED,sCAkEC;AAyFD,aAAa,CAAC,QAAQ,GAAG,mBAAQ,CAAC"}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from "../../../core/resource.mjs";
|
|
3
|
+
import * as ResponseAPI from "./response/response.mjs";
|
|
4
|
+
import { Response, } from "./response/response.mjs";
|
|
5
|
+
import { ConversationsCursor } from "../../../core/pagination.mjs";
|
|
6
|
+
import { path } from "../../../internal/utils/path.mjs";
|
|
7
|
+
export class Conversations extends APIResource {
|
|
8
|
+
constructor() {
|
|
9
|
+
super(...arguments);
|
|
10
|
+
this.response = new ResponseAPI.Response(this._client);
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Create conversation
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* ```ts
|
|
17
|
+
* const conversation =
|
|
18
|
+
* await client.agents.conversations.create('agentId', {
|
|
19
|
+
* userIdentifier: 'user_123',
|
|
20
|
+
* });
|
|
21
|
+
* ```
|
|
22
|
+
*/
|
|
23
|
+
create(agentID, body, options) {
|
|
24
|
+
return this._client.post(path `/agents/${agentID}/conversations`, { body, ...options });
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Retrieve conversation
|
|
28
|
+
*
|
|
29
|
+
* @example
|
|
30
|
+
* ```ts
|
|
31
|
+
* const inconvoConversation =
|
|
32
|
+
* await client.agents.conversations.retrieve('id', {
|
|
33
|
+
* agentId: 'agentId',
|
|
34
|
+
* });
|
|
35
|
+
* ```
|
|
36
|
+
*/
|
|
37
|
+
retrieve(id, params, options) {
|
|
38
|
+
const { agentId } = params;
|
|
39
|
+
return this._client.get(path `/agents/${agentId}/conversations/${id}`, options);
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* List conversations
|
|
43
|
+
*
|
|
44
|
+
* @example
|
|
45
|
+
* ```ts
|
|
46
|
+
* // Automatically fetches more pages as needed.
|
|
47
|
+
* for await (const conversationListResponse of client.agents.conversations.list(
|
|
48
|
+
* 'agentId',
|
|
49
|
+
* )) {
|
|
50
|
+
* // ...
|
|
51
|
+
* }
|
|
52
|
+
* ```
|
|
53
|
+
*/
|
|
54
|
+
list(agentID, query = {}, options) {
|
|
55
|
+
return this._client.getAPIList(path `/agents/${agentID}/conversations`, (ConversationsCursor), { query, ...options });
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
Conversations.Response = Response;
|
|
59
|
+
//# sourceMappingURL=conversations.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"conversations.mjs","sourceRoot":"","sources":["../../../src/resources/agents/conversations/conversations.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,KAAK,WAAW;OAChB,EAEL,QAAQ,GAMT;OAEM,EAAE,mBAAmB,EAA+C;OAEpE,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,aAAc,SAAQ,WAAW;IAA9C;;QACE,aAAQ,GAAyB,IAAI,WAAW,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAiE1E,CAAC;IA/DC;;;;;;;;;;OAUG;IACH,MAAM,CACJ,OAAe,EACf,IAA8B,EAC9B,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,WAAW,OAAO,gBAAgB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACzF,CAAC;IAED;;;;;;;;;;OAUG;IACH,QAAQ,CACN,EAAU,EACV,MAAkC,EAClC,OAAwB;QAExB,MAAM,EAAE,OAAO,EAAE,GAAG,MAAM,CAAC;QAC3B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,WAAW,OAAO,kBAAkB,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IACjF,CAAC;IAED;;;;;;;;;;;;OAYG;IACH,IAAI,CACF,OAAe,EACf,QAAmD,EAAE,EACrD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAC5B,IAAI,CAAA,WAAW,OAAO,gBAAgB,EACtC,CAAA,mBAA6C,CAAA,EAC7C,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CACtB,CAAC;IACJ,CAAC;CACF;AAyFD,aAAa,CAAC,QAAQ,GAAG,QAAQ,CAAC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { Conversations, type InconvoConversation, type ConversationCreateResponse, type ConversationListResponse, type ConversationCreateParams, type ConversationListParams, type ConversationListResponsesConversationsCursor, } from "./conversations.mjs";
|
|
1
|
+
export { Conversations, type InconvoConversation, type ConversationCreateResponse, type ConversationListResponse, type ConversationCreateParams, type ConversationRetrieveParams, type ConversationListParams, type ConversationListResponsesConversationsCursor, } from "./conversations.mjs";
|
|
2
2
|
export { Response, type Chart, type Table, type ResponseCreateResponse, type ResponseRetrieveResponse, type ResponseCreateParams, type ResponseRetrieveParams, } from "./response/index.mjs";
|
|
3
3
|
//# sourceMappingURL=index.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/resources/agents/conversations/index.ts"],"names":[],"mappings":"OAEO,EACL,aAAa,EACb,KAAK,mBAAmB,EACxB,KAAK,0BAA0B,EAC/B,KAAK,wBAAwB,EAC7B,KAAK,wBAAwB,EAC7B,KAAK,0BAA0B,EAC/B,KAAK,sBAAsB,EAC3B,KAAK,4CAA4C,GAClD;OACM,EACL,QAAQ,EACR,KAAK,KAAK,EACV,KAAK,KAAK,EACV,KAAK,sBAAsB,EAC3B,KAAK,wBAAwB,EAC7B,KAAK,oBAAoB,EACzB,KAAK,sBAAsB,GAC5B"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { Conversations, type InconvoConversation, type ConversationCreateResponse, type ConversationListResponse, type ConversationCreateParams, type ConversationListParams, type ConversationListResponsesConversationsCursor, } from "./conversations.js";
|
|
1
|
+
export { Conversations, type InconvoConversation, type ConversationCreateResponse, type ConversationListResponse, type ConversationCreateParams, type ConversationRetrieveParams, type ConversationListParams, type ConversationListResponsesConversationsCursor, } from "./conversations.js";
|
|
2
2
|
export { Response, type Chart, type Table, type ResponseCreateResponse, type ResponseRetrieveResponse, type ResponseCreateParams, type ResponseRetrieveParams, } from "./response/index.js";
|
|
3
3
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/resources/agents/conversations/index.ts"],"names":[],"mappings":"OAEO,EACL,aAAa,EACb,KAAK,mBAAmB,EACxB,KAAK,0BAA0B,EAC/B,KAAK,wBAAwB,EAC7B,KAAK,wBAAwB,EAC7B,KAAK,0BAA0B,EAC/B,KAAK,sBAAsB,EAC3B,KAAK,4CAA4C,GAClD;OACM,EACL,QAAQ,EACR,KAAK,KAAK,EACV,KAAK,KAAK,EACV,KAAK,sBAAsB,EAC3B,KAAK,wBAAwB,EAC7B,KAAK,oBAAoB,EACzB,KAAK,sBAAsB,GAC5B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/resources/agents/conversations/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,oDASyB;AARvB,8GAAA,aAAa,OAAA;AASf,6CAQ0B;AAPxB,iGAAA,QAAQ,OAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/resources/agents/conversations/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EACL,aAAa,GAQd;OACM,EACL,QAAQ,GAOT"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { APIResource } from "
|
|
2
|
-
import { APIPromise } from "
|
|
3
|
-
import { RequestOptions } from "
|
|
1
|
+
import { APIResource } from "../../../../core/resource.mjs";
|
|
2
|
+
import { APIPromise } from "../../../../core/api-promise.mjs";
|
|
3
|
+
import { RequestOptions } from "../../../../internal/request-options.mjs";
|
|
4
4
|
export declare class FeedbackResource extends APIResource {
|
|
5
5
|
/**
|
|
6
6
|
* Create feedback
|
|
@@ -8,9 +8,13 @@ export declare class FeedbackResource extends APIResource {
|
|
|
8
8
|
* @example
|
|
9
9
|
* ```ts
|
|
10
10
|
* const feedback =
|
|
11
|
-
* await client.conversations.response.feedback.create(
|
|
11
|
+
* await client.agents.conversations.response.feedback.create(
|
|
12
12
|
* 'response_id',
|
|
13
|
-
* {
|
|
13
|
+
* {
|
|
14
|
+
* agentId: 'agentId',
|
|
15
|
+
* convo_id: 'convo_id',
|
|
16
|
+
* rating: 'positive',
|
|
17
|
+
* },
|
|
14
18
|
* );
|
|
15
19
|
* ```
|
|
16
20
|
*/
|
|
@@ -21,9 +25,13 @@ export declare class FeedbackResource extends APIResource {
|
|
|
21
25
|
* @example
|
|
22
26
|
* ```ts
|
|
23
27
|
* const feedback =
|
|
24
|
-
* await client.conversations.response.feedback.update(
|
|
28
|
+
* await client.agents.conversations.response.feedback.update(
|
|
25
29
|
* 'feedback_id',
|
|
26
|
-
* {
|
|
30
|
+
* {
|
|
31
|
+
* agentId: 'agentId',
|
|
32
|
+
* convo_id: 'convo_id',
|
|
33
|
+
* response_id: 'response_id',
|
|
34
|
+
* },
|
|
27
35
|
* );
|
|
28
36
|
* ```
|
|
29
37
|
*/
|
|
@@ -35,10 +43,14 @@ export interface Feedback {
|
|
|
35
43
|
comment?: string;
|
|
36
44
|
}
|
|
37
45
|
export interface FeedbackCreateParams {
|
|
46
|
+
/**
|
|
47
|
+
* Path param: The unique identifier of the agent
|
|
48
|
+
*/
|
|
49
|
+
agentId: string;
|
|
38
50
|
/**
|
|
39
51
|
* Path param
|
|
40
52
|
*/
|
|
41
|
-
|
|
53
|
+
convo_id: string;
|
|
42
54
|
/**
|
|
43
55
|
* Body param
|
|
44
56
|
*/
|
|
@@ -49,10 +61,14 @@ export interface FeedbackCreateParams {
|
|
|
49
61
|
comment?: string;
|
|
50
62
|
}
|
|
51
63
|
export interface FeedbackUpdateParams {
|
|
64
|
+
/**
|
|
65
|
+
* Path param: The unique identifier of the agent
|
|
66
|
+
*/
|
|
67
|
+
agentId: string;
|
|
52
68
|
/**
|
|
53
69
|
* Path param
|
|
54
70
|
*/
|
|
55
|
-
|
|
71
|
+
convo_id: string;
|
|
56
72
|
/**
|
|
57
73
|
* Path param
|
|
58
74
|
*/
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"feedback.d.mts","sourceRoot":"","sources":["../../../../src/resources/agents/conversations/response/feedback.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,gBAAiB,SAAQ,WAAW;IAC/C;;;;;;;;;;;;;;;OAeG;IACH,MAAM,CAAC,UAAU,EAAE,MAAM,EAAE,MAAM,EAAE,oBAAoB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,QAAQ,CAAC;IAQxG;;;;;;;;;;;;;;;OAeG;IACH,MAAM,CAAC,UAAU,EAAE,MAAM,EAAE,MAAM,EAAE,oBAAoB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,QAAQ,CAAC;CAOzG;AAED,MAAM,WAAW,QAAQ;IACvB,EAAE,EAAE,MAAM,CAAC;IAEX,MAAM,EAAE,UAAU,GAAG,UAAU,CAAC;IAEhC,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,oBAAoB;IACnC;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,MAAM,EAAE,UAAU,GAAG,UAAU,CAAC;IAEhC;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,oBAAoB;IACnC;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,MAAM,CAAC,EAAE,UAAU,GAAG,UAAU,CAAC;CAClC;AAED,MAAM,CAAC,OAAO,WAAW,gBAAgB,CAAC;IACxC,OAAO,EACL,KAAK,QAAQ,IAAI,QAAQ,EACzB,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,oBAAoB,IAAI,oBAAoB,GAClD,CAAC;CACH"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { APIResource } from "
|
|
2
|
-
import { APIPromise } from "
|
|
3
|
-
import { RequestOptions } from "
|
|
1
|
+
import { APIResource } from "../../../../core/resource.js";
|
|
2
|
+
import { APIPromise } from "../../../../core/api-promise.js";
|
|
3
|
+
import { RequestOptions } from "../../../../internal/request-options.js";
|
|
4
4
|
export declare class FeedbackResource extends APIResource {
|
|
5
5
|
/**
|
|
6
6
|
* Create feedback
|
|
@@ -8,9 +8,13 @@ export declare class FeedbackResource extends APIResource {
|
|
|
8
8
|
* @example
|
|
9
9
|
* ```ts
|
|
10
10
|
* const feedback =
|
|
11
|
-
* await client.conversations.response.feedback.create(
|
|
11
|
+
* await client.agents.conversations.response.feedback.create(
|
|
12
12
|
* 'response_id',
|
|
13
|
-
* {
|
|
13
|
+
* {
|
|
14
|
+
* agentId: 'agentId',
|
|
15
|
+
* convo_id: 'convo_id',
|
|
16
|
+
* rating: 'positive',
|
|
17
|
+
* },
|
|
14
18
|
* );
|
|
15
19
|
* ```
|
|
16
20
|
*/
|
|
@@ -21,9 +25,13 @@ export declare class FeedbackResource extends APIResource {
|
|
|
21
25
|
* @example
|
|
22
26
|
* ```ts
|
|
23
27
|
* const feedback =
|
|
24
|
-
* await client.conversations.response.feedback.update(
|
|
28
|
+
* await client.agents.conversations.response.feedback.update(
|
|
25
29
|
* 'feedback_id',
|
|
26
|
-
* {
|
|
30
|
+
* {
|
|
31
|
+
* agentId: 'agentId',
|
|
32
|
+
* convo_id: 'convo_id',
|
|
33
|
+
* response_id: 'response_id',
|
|
34
|
+
* },
|
|
27
35
|
* );
|
|
28
36
|
* ```
|
|
29
37
|
*/
|
|
@@ -35,10 +43,14 @@ export interface Feedback {
|
|
|
35
43
|
comment?: string;
|
|
36
44
|
}
|
|
37
45
|
export interface FeedbackCreateParams {
|
|
46
|
+
/**
|
|
47
|
+
* Path param: The unique identifier of the agent
|
|
48
|
+
*/
|
|
49
|
+
agentId: string;
|
|
38
50
|
/**
|
|
39
51
|
* Path param
|
|
40
52
|
*/
|
|
41
|
-
|
|
53
|
+
convo_id: string;
|
|
42
54
|
/**
|
|
43
55
|
* Body param
|
|
44
56
|
*/
|
|
@@ -49,10 +61,14 @@ export interface FeedbackCreateParams {
|
|
|
49
61
|
comment?: string;
|
|
50
62
|
}
|
|
51
63
|
export interface FeedbackUpdateParams {
|
|
64
|
+
/**
|
|
65
|
+
* Path param: The unique identifier of the agent
|
|
66
|
+
*/
|
|
67
|
+
agentId: string;
|
|
52
68
|
/**
|
|
53
69
|
* Path param
|
|
54
70
|
*/
|
|
55
|
-
|
|
71
|
+
convo_id: string;
|
|
56
72
|
/**
|
|
57
73
|
* Path param
|
|
58
74
|
*/
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"feedback.d.ts","sourceRoot":"","sources":["../../../../src/resources/agents/conversations/response/feedback.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,gBAAiB,SAAQ,WAAW;IAC/C;;;;;;;;;;;;;;;OAeG;IACH,MAAM,CAAC,UAAU,EAAE,MAAM,EAAE,MAAM,EAAE,oBAAoB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,QAAQ,CAAC;IAQxG;;;;;;;;;;;;;;;OAeG;IACH,MAAM,CAAC,UAAU,EAAE,MAAM,EAAE,MAAM,EAAE,oBAAoB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,QAAQ,CAAC;CAOzG;AAED,MAAM,WAAW,QAAQ;IACvB,EAAE,EAAE,MAAM,CAAC;IAEX,MAAM,EAAE,UAAU,GAAG,UAAU,CAAC;IAEhC,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,oBAAoB;IACnC;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,MAAM,EAAE,UAAU,GAAG,UAAU,CAAC;IAEhC;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,oBAAoB;IACnC;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,MAAM,CAAC,EAAE,UAAU,GAAG,UAAU,CAAC;CAClC;AAED,MAAM,CAAC,OAAO,WAAW,gBAAgB,CAAC;IACxC,OAAO,EACL,KAAK,QAAQ,IAAI,QAAQ,EACzB,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,oBAAoB,IAAI,oBAAoB,GAClD,CAAC;CACH"}
|
|
@@ -0,0 +1,50 @@
|
|
|
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.FeedbackResource = void 0;
|
|
5
|
+
const resource_1 = require("../../../../core/resource.js");
|
|
6
|
+
const path_1 = require("../../../../internal/utils/path.js");
|
|
7
|
+
class FeedbackResource extends resource_1.APIResource {
|
|
8
|
+
/**
|
|
9
|
+
* Create feedback
|
|
10
|
+
*
|
|
11
|
+
* @example
|
|
12
|
+
* ```ts
|
|
13
|
+
* const feedback =
|
|
14
|
+
* await client.agents.conversations.response.feedback.create(
|
|
15
|
+
* 'response_id',
|
|
16
|
+
* {
|
|
17
|
+
* agentId: 'agentId',
|
|
18
|
+
* convo_id: 'convo_id',
|
|
19
|
+
* rating: 'positive',
|
|
20
|
+
* },
|
|
21
|
+
* );
|
|
22
|
+
* ```
|
|
23
|
+
*/
|
|
24
|
+
create(responseID, params, options) {
|
|
25
|
+
const { agentId, convo_id, ...body } = params;
|
|
26
|
+
return this._client.post((0, path_1.path) `/agents/${agentId}/conversations/${convo_id}/response/${responseID}/feedback`, { body, ...options });
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Update feedback
|
|
30
|
+
*
|
|
31
|
+
* @example
|
|
32
|
+
* ```ts
|
|
33
|
+
* const feedback =
|
|
34
|
+
* await client.agents.conversations.response.feedback.update(
|
|
35
|
+
* 'feedback_id',
|
|
36
|
+
* {
|
|
37
|
+
* agentId: 'agentId',
|
|
38
|
+
* convo_id: 'convo_id',
|
|
39
|
+
* response_id: 'response_id',
|
|
40
|
+
* },
|
|
41
|
+
* );
|
|
42
|
+
* ```
|
|
43
|
+
*/
|
|
44
|
+
update(feedbackID, params, options) {
|
|
45
|
+
const { agentId, convo_id, response_id, ...body } = params;
|
|
46
|
+
return this._client.patch((0, path_1.path) `/agents/${agentId}/conversations/${convo_id}/response/${response_id}/feedback/${feedbackID}`, { body, ...options });
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
exports.FeedbackResource = FeedbackResource;
|
|
50
|
+
//# sourceMappingURL=feedback.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"feedback.js","sourceRoot":"","sources":["../../../../src/resources/agents/conversations/response/feedback.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,2DAAwD;AAGxD,6DAAuD;AAEvD,MAAa,gBAAiB,SAAQ,sBAAW;IAC/C;;;;;;;;;;;;;;;OAeG;IACH,MAAM,CAAC,UAAkB,EAAE,MAA4B,EAAE,OAAwB;QAC/E,MAAM,EAAE,OAAO,EAAE,QAAQ,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QAC9C,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CACtB,IAAA,WAAI,EAAA,WAAW,OAAO,kBAAkB,QAAQ,aAAa,UAAU,WAAW,EAClF,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CACrB,CAAC;IACJ,CAAC;IAED;;;;;;;;;;;;;;;OAeG;IACH,MAAM,CAAC,UAAkB,EAAE,MAA4B,EAAE,OAAwB;QAC/E,MAAM,EAAE,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QAC3D,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CACvB,IAAA,WAAI,EAAA,WAAW,OAAO,kBAAkB,QAAQ,aAAa,WAAW,aAAa,UAAU,EAAE,EACjG,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CACrB,CAAC;IACJ,CAAC;CACF;AAhDD,4CAgDC"}
|