@inconvoai/node 0.4.0 → 0.6.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 +45 -0
- package/README.md +37 -20
- 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 +3 -11
- package/client.js.map +1 -1
- package/client.mjs +3 -11
- package/client.mjs.map +1 -1
- package/index.d.mts +1 -1
- package/index.d.ts +1 -1
- package/internal/parse.d.mts.map +1 -1
- package/internal/parse.d.ts.map +1 -1
- package/internal/parse.js +5 -0
- package/internal/parse.js.map +1 -1
- package/internal/parse.mjs +5 -0
- package/internal/parse.mjs.map +1 -1
- package/package.json +2 -2
- 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 +35 -16
- package/resources/agents/conversations/conversations.d.mts.map +1 -0
- package/resources/{conversations → agents/conversations}/conversations.d.ts +35 -16
- 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 +32 -17
- package/resources/agents/conversations/response/response.d.mts.map +1 -0
- package/resources/{conversations → agents/conversations}/response/response.d.ts +32 -17
- 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 +33 -16
- package/resources/agents/datasets/context.d.mts.map +1 -0
- package/resources/{datasets → agents/datasets}/context.d.ts +33 -16
- package/resources/agents/datasets/context.d.ts.map +1 -0
- package/resources/agents/datasets/context.js +66 -0
- package/resources/agents/datasets/context.js.map +1 -0
- package/resources/agents/datasets/context.mjs +62 -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 +3 -33
- package/src/index.ts +1 -1
- package/src/internal/parse.ts +6 -0
- package/src/resources/agents/agents.ts +36 -0
- package/src/resources/{conversations → agents/conversations}/conversations.ts +53 -21
- 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 +47 -25
- package/src/resources/agents/data-summary.ts +9 -2
- package/src/resources/{datasets → agents/datasets}/context.ts +47 -24
- 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
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
-
import { APIResource } from '
|
|
4
|
-
import { APIPromise } from '
|
|
5
|
-
import { RequestOptions } from '
|
|
6
|
-
import { path } from '
|
|
3
|
+
import { APIResource } from '../../../../core/resource';
|
|
4
|
+
import { APIPromise } from '../../../../core/api-promise';
|
|
5
|
+
import { RequestOptions } from '../../../../internal/request-options';
|
|
6
|
+
import { path } from '../../../../internal/utils/path';
|
|
7
7
|
|
|
8
8
|
export class FeedbackResource extends APIResource {
|
|
9
9
|
/**
|
|
@@ -12,18 +12,22 @@ export class FeedbackResource extends APIResource {
|
|
|
12
12
|
* @example
|
|
13
13
|
* ```ts
|
|
14
14
|
* const feedback =
|
|
15
|
-
* await client.conversations.response.feedback.create(
|
|
15
|
+
* await client.agents.conversations.response.feedback.create(
|
|
16
16
|
* 'response_id',
|
|
17
|
-
* {
|
|
17
|
+
* {
|
|
18
|
+
* agentId: 'agentId',
|
|
19
|
+
* convo_id: 'convo_id',
|
|
20
|
+
* rating: 'positive',
|
|
21
|
+
* },
|
|
18
22
|
* );
|
|
19
23
|
* ```
|
|
20
24
|
*/
|
|
21
25
|
create(responseID: string, params: FeedbackCreateParams, options?: RequestOptions): APIPromise<Feedback> {
|
|
22
|
-
const {
|
|
23
|
-
return this._client.post(
|
|
24
|
-
|
|
25
|
-
...options,
|
|
26
|
-
|
|
26
|
+
const { agentId, convo_id, ...body } = params;
|
|
27
|
+
return this._client.post(
|
|
28
|
+
path`/agents/${agentId}/conversations/${convo_id}/response/${responseID}/feedback`,
|
|
29
|
+
{ body, ...options },
|
|
30
|
+
);
|
|
27
31
|
}
|
|
28
32
|
|
|
29
33
|
/**
|
|
@@ -32,18 +36,22 @@ export class FeedbackResource extends APIResource {
|
|
|
32
36
|
* @example
|
|
33
37
|
* ```ts
|
|
34
38
|
* const feedback =
|
|
35
|
-
* await client.conversations.response.feedback.update(
|
|
39
|
+
* await client.agents.conversations.response.feedback.update(
|
|
36
40
|
* 'feedback_id',
|
|
37
|
-
* {
|
|
41
|
+
* {
|
|
42
|
+
* agentId: 'agentId',
|
|
43
|
+
* convo_id: 'convo_id',
|
|
44
|
+
* response_id: 'response_id',
|
|
45
|
+
* },
|
|
38
46
|
* );
|
|
39
47
|
* ```
|
|
40
48
|
*/
|
|
41
49
|
update(feedbackID: string, params: FeedbackUpdateParams, options?: RequestOptions): APIPromise<Feedback> {
|
|
42
|
-
const {
|
|
43
|
-
return this._client.patch(
|
|
44
|
-
|
|
45
|
-
...options,
|
|
46
|
-
|
|
50
|
+
const { agentId, convo_id, response_id, ...body } = params;
|
|
51
|
+
return this._client.patch(
|
|
52
|
+
path`/agents/${agentId}/conversations/${convo_id}/response/${response_id}/feedback/${feedbackID}`,
|
|
53
|
+
{ body, ...options },
|
|
54
|
+
);
|
|
47
55
|
}
|
|
48
56
|
}
|
|
49
57
|
|
|
@@ -56,10 +64,15 @@ export interface Feedback {
|
|
|
56
64
|
}
|
|
57
65
|
|
|
58
66
|
export interface FeedbackCreateParams {
|
|
67
|
+
/**
|
|
68
|
+
* Path param: The unique identifier of the agent
|
|
69
|
+
*/
|
|
70
|
+
agentId: string;
|
|
71
|
+
|
|
59
72
|
/**
|
|
60
73
|
* Path param
|
|
61
74
|
*/
|
|
62
|
-
|
|
75
|
+
convo_id: string;
|
|
63
76
|
|
|
64
77
|
/**
|
|
65
78
|
* Body param
|
|
@@ -73,10 +86,15 @@ export interface FeedbackCreateParams {
|
|
|
73
86
|
}
|
|
74
87
|
|
|
75
88
|
export interface FeedbackUpdateParams {
|
|
89
|
+
/**
|
|
90
|
+
* Path param: The unique identifier of the agent
|
|
91
|
+
*/
|
|
92
|
+
agentId: string;
|
|
93
|
+
|
|
76
94
|
/**
|
|
77
95
|
* Path param
|
|
78
96
|
*/
|
|
79
|
-
|
|
97
|
+
convo_id: string;
|
|
80
98
|
|
|
81
99
|
/**
|
|
82
100
|
* Path param
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
-
import { APIResource } from '
|
|
3
|
+
import { APIResource } from '../../../../core/resource';
|
|
4
4
|
import * as ResponseAPI from './response';
|
|
5
5
|
import * as FeedbackAPI from './feedback';
|
|
6
6
|
import { Feedback, FeedbackCreateParams, FeedbackResource, FeedbackUpdateParams } from './feedback';
|
|
7
|
-
import { APIPromise } from '
|
|
8
|
-
import { RequestOptions } from '
|
|
9
|
-
import { path } from '
|
|
10
|
-
import { SSEStream, createSSEStream } from '
|
|
7
|
+
import { APIPromise } from '../../../../core/api-promise';
|
|
8
|
+
import { RequestOptions } from '../../../../internal/request-options';
|
|
9
|
+
import { path } from '../../../../internal/utils/path';
|
|
10
|
+
import { SSEStream, createSSEStream } from '../../../../core/sse-stream';
|
|
11
11
|
|
|
12
12
|
export class Response extends APIResource {
|
|
13
13
|
feedback: FeedbackAPI.FeedbackResource = new FeedbackAPI.FeedbackResource(this._client);
|
|
@@ -17,36 +17,38 @@ export class Response extends APIResource {
|
|
|
17
17
|
*
|
|
18
18
|
* @example
|
|
19
19
|
* ```ts
|
|
20
|
-
* const response =
|
|
21
|
-
* 'id',
|
|
22
|
-
*
|
|
23
|
-
*
|
|
20
|
+
* const response =
|
|
21
|
+
* await client.agents.conversations.response.create('id', {
|
|
22
|
+
* agentId: 'agentId',
|
|
23
|
+
* message: 'message',
|
|
24
|
+
* });
|
|
24
25
|
* ```
|
|
25
26
|
*/
|
|
26
27
|
create(
|
|
27
28
|
id: string,
|
|
28
|
-
|
|
29
|
+
params: ResponseCreateParams & { stream: true },
|
|
29
30
|
options?: RequestOptions,
|
|
30
31
|
): SSEStream<ResponseStreamEvent>;
|
|
31
32
|
create(
|
|
32
33
|
id: string,
|
|
33
|
-
|
|
34
|
+
params: ResponseCreateParams & { stream?: false },
|
|
34
35
|
options?: RequestOptions,
|
|
35
36
|
): APIPromise<ResponseCreateResponse>;
|
|
36
37
|
create(
|
|
37
38
|
id: string,
|
|
38
|
-
|
|
39
|
+
params: ResponseCreateParams,
|
|
39
40
|
options?: RequestOptions,
|
|
40
41
|
): APIPromise<ResponseCreateResponse>;
|
|
41
42
|
create(
|
|
42
43
|
id: string,
|
|
43
|
-
|
|
44
|
+
params: ResponseCreateParams,
|
|
44
45
|
options?: RequestOptions,
|
|
45
46
|
): APIPromise<ResponseCreateResponse> | SSEStream<ResponseStreamEvent> {
|
|
47
|
+
const { agentId, ...body } = params;
|
|
46
48
|
if (body.stream === true) {
|
|
47
|
-
return this._createStreaming(id, body, options);
|
|
49
|
+
return this._createStreaming(id, agentId, body, options);
|
|
48
50
|
}
|
|
49
|
-
return this._client.post(path`/conversations/${id}/response`, { body, ...options });
|
|
51
|
+
return this._client.post(path`/agents/${agentId}/conversations/${id}/response`, { body, ...options });
|
|
50
52
|
}
|
|
51
53
|
|
|
52
54
|
/**
|
|
@@ -55,9 +57,12 @@ export class Response extends APIResource {
|
|
|
55
57
|
* @example
|
|
56
58
|
* ```ts
|
|
57
59
|
* const response =
|
|
58
|
-
* await client.conversations.response.retrieve(
|
|
60
|
+
* await client.agents.conversations.response.retrieve(
|
|
59
61
|
* 'response_id',
|
|
60
|
-
* {
|
|
62
|
+
* {
|
|
63
|
+
* agentId: 'agentId',
|
|
64
|
+
* conversation_id: 'conversation_id',
|
|
65
|
+
* },
|
|
61
66
|
* );
|
|
62
67
|
* ```
|
|
63
68
|
*/
|
|
@@ -66,13 +71,17 @@ export class Response extends APIResource {
|
|
|
66
71
|
params: ResponseRetrieveParams,
|
|
67
72
|
options?: RequestOptions,
|
|
68
73
|
): APIPromise<ResponseRetrieveResponse> {
|
|
69
|
-
const { conversation_id } = params;
|
|
70
|
-
return this._client.get(
|
|
74
|
+
const { agentId, conversation_id } = params;
|
|
75
|
+
return this._client.get(
|
|
76
|
+
path`/agents/${agentId}/conversations/${conversation_id}/response/${responseID}`,
|
|
77
|
+
options,
|
|
78
|
+
);
|
|
71
79
|
}
|
|
72
80
|
|
|
73
81
|
private _createStreaming(
|
|
74
82
|
id: string,
|
|
75
|
-
|
|
83
|
+
agentId: string,
|
|
84
|
+
body: Omit<ResponseCreateParams, 'agentId'>,
|
|
76
85
|
options?: RequestOptions,
|
|
77
86
|
): SSEStream<ResponseStreamEvent> {
|
|
78
87
|
// Create a controller for aborting the request if needed
|
|
@@ -90,7 +99,7 @@ export class Response extends APIResource {
|
|
|
90
99
|
};
|
|
91
100
|
|
|
92
101
|
// When __binaryResponse is true, post() returns the raw Response directly
|
|
93
|
-
const responsePromise = this._client.post(path`/conversations/${id}/response`, {
|
|
102
|
+
const responsePromise = this._client.post(path`/agents/${agentId}/conversations/${id}/response`, {
|
|
94
103
|
body,
|
|
95
104
|
...requestOptions,
|
|
96
105
|
}) as Promise<globalThis.Response>;
|
|
@@ -154,9 +163,9 @@ export namespace ResponseRetrieveResponse {
|
|
|
154
163
|
message: string;
|
|
155
164
|
|
|
156
165
|
/**
|
|
157
|
-
* Additional context as key-value pairs
|
|
166
|
+
* Additional context as key-value pairs (null when user context is disabled)
|
|
158
167
|
*/
|
|
159
|
-
userContext: { [key: string]: unknown };
|
|
168
|
+
userContext: { [key: string]: unknown } | null;
|
|
160
169
|
}
|
|
161
170
|
|
|
162
171
|
export interface Output {
|
|
@@ -227,16 +236,29 @@ export type ResponseStreamEvent = ResponseCreatedEvent | ResponseProgressEvent |
|
|
|
227
236
|
export type ResponseCreateStreamResponse = SSEStream<ResponseStreamEvent>;
|
|
228
237
|
|
|
229
238
|
export interface ResponseCreateParams {
|
|
239
|
+
/**
|
|
240
|
+
* Path param: The unique identifier of the agent
|
|
241
|
+
*/
|
|
242
|
+
agentId: string;
|
|
243
|
+
|
|
244
|
+
/**
|
|
245
|
+
* Body param
|
|
246
|
+
*/
|
|
230
247
|
message: string;
|
|
231
248
|
|
|
232
249
|
/**
|
|
233
|
-
* If true and the client sets `Accept: text/event-stream`, the API
|
|
234
|
-
* stream instead of a single JSON body.
|
|
250
|
+
* Body param: If true and the client sets `Accept: text/event-stream`, the API
|
|
251
|
+
* returns an SSE stream instead of a single JSON body.
|
|
235
252
|
*/
|
|
236
253
|
stream?: boolean;
|
|
237
254
|
}
|
|
238
255
|
|
|
239
256
|
export interface ResponseRetrieveParams {
|
|
257
|
+
/**
|
|
258
|
+
* The unique identifier of the agent
|
|
259
|
+
*/
|
|
260
|
+
agentId: string;
|
|
261
|
+
|
|
240
262
|
conversation_id: string;
|
|
241
263
|
}
|
|
242
264
|
|
|
@@ -3,13 +3,20 @@
|
|
|
3
3
|
import { APIResource } from '../../core/resource';
|
|
4
4
|
import { APIPromise } from '../../core/api-promise';
|
|
5
5
|
import { RequestOptions } from '../../internal/request-options';
|
|
6
|
+
import { path } from '../../internal/utils/path';
|
|
6
7
|
|
|
7
8
|
export class DataSummary extends APIResource {
|
|
8
9
|
/**
|
|
9
10
|
* Retrieve a summary of data available to the agent
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* ```ts
|
|
14
|
+
* const dataSummary =
|
|
15
|
+
* await client.agents.dataSummary.retrieve('agentId');
|
|
16
|
+
* ```
|
|
10
17
|
*/
|
|
11
|
-
retrieve(options?: RequestOptions): APIPromise<DataSummaryRetrieveResponse> {
|
|
12
|
-
return this._client.get(
|
|
18
|
+
retrieve(agentID: string, options?: RequestOptions): APIPromise<DataSummaryRetrieveResponse> {
|
|
19
|
+
return this._client.get(path`/agents/${agentID}/data-summary`, options);
|
|
13
20
|
}
|
|
14
21
|
}
|
|
15
22
|
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
-
import { APIResource } from '
|
|
4
|
-
import { APIPromise } from '
|
|
5
|
-
import { type Uploadable } from '
|
|
6
|
-
import { RequestOptions } from '
|
|
7
|
-
import { multipartFormRequestOptions } from '
|
|
8
|
-
import { path } from '
|
|
3
|
+
import { APIResource } from '../../../core/resource';
|
|
4
|
+
import { APIPromise } from '../../../core/api-promise';
|
|
5
|
+
import { type Uploadable } from '../../../core/uploads';
|
|
6
|
+
import { RequestOptions } from '../../../internal/request-options';
|
|
7
|
+
import { multipartFormRequestOptions } from '../../../internal/uploads';
|
|
8
|
+
import { path } from '../../../internal/utils/path';
|
|
9
9
|
|
|
10
10
|
export class Context extends APIResource {
|
|
11
11
|
/**
|
|
12
12
|
* List all dataset files scoped to a context value. These files are shared with
|
|
13
|
-
* all users who have this context value.
|
|
13
|
+
* all users who have this context value. Requires User Context to be enabled.
|
|
14
14
|
*
|
|
15
15
|
* @example
|
|
16
16
|
* ```ts
|
|
17
|
-
* const contexts = await client.datasets.context.list(
|
|
17
|
+
* const contexts = await client.agents.datasets.context.list(
|
|
18
18
|
* 'org_456',
|
|
19
|
-
* { contextKey: 'orgId' },
|
|
19
|
+
* { agentId: 'agentId', contextKey: 'orgId' },
|
|
20
20
|
* );
|
|
21
21
|
* ```
|
|
22
22
|
*/
|
|
@@ -25,18 +25,23 @@ export class Context extends APIResource {
|
|
|
25
25
|
params: ContextListParams,
|
|
26
26
|
options?: RequestOptions,
|
|
27
27
|
): APIPromise<ContextListResponse> {
|
|
28
|
-
const { contextKey } = params;
|
|
29
|
-
return this._client.get(path`/datasets/context/${contextKey}/${contextValue}`, options);
|
|
28
|
+
const { agentId, contextKey } = params;
|
|
29
|
+
return this._client.get(path`/agents/${agentId}/datasets/context/${contextKey}/${contextValue}`, options);
|
|
30
30
|
}
|
|
31
31
|
|
|
32
32
|
/**
|
|
33
|
-
* Delete a dataset file scoped to a context value.
|
|
33
|
+
* Delete a dataset file scoped to a context value. Requires User Context to be
|
|
34
|
+
* enabled.
|
|
34
35
|
*
|
|
35
36
|
* @example
|
|
36
37
|
* ```ts
|
|
37
|
-
* const context = await client.datasets.context.delete(
|
|
38
|
+
* const context = await client.agents.datasets.context.delete(
|
|
38
39
|
* 'shared_data.csv',
|
|
39
|
-
* {
|
|
40
|
+
* {
|
|
41
|
+
* agentId: 'agentId',
|
|
42
|
+
* contextKey: 'orgId',
|
|
43
|
+
* contextValue: 'org_456',
|
|
44
|
+
* },
|
|
40
45
|
* );
|
|
41
46
|
* ```
|
|
42
47
|
*/
|
|
@@ -45,23 +50,26 @@ export class Context extends APIResource {
|
|
|
45
50
|
params: ContextDeleteParams,
|
|
46
51
|
options?: RequestOptions,
|
|
47
52
|
): APIPromise<ContextDeleteResponse> {
|
|
48
|
-
const { contextKey, contextValue } = params;
|
|
49
|
-
return this._client.delete(
|
|
53
|
+
const { agentId, contextKey, contextValue } = params;
|
|
54
|
+
return this._client.delete(
|
|
55
|
+
path`/agents/${agentId}/datasets/context/${contextKey}/${contextValue}/${filename}`,
|
|
56
|
+
options,
|
|
57
|
+
);
|
|
50
58
|
}
|
|
51
59
|
|
|
52
60
|
/**
|
|
53
61
|
* Upload a dataset file scoped to a context value. This file will be shared with
|
|
54
|
-
* all users who have this context value.
|
|
62
|
+
* all users who have this context value. Requires User Context to be enabled and
|
|
63
|
+
* contextKey to be defined in the schema.
|
|
55
64
|
*
|
|
56
65
|
* @example
|
|
57
66
|
* ```ts
|
|
58
|
-
* const response =
|
|
59
|
-
* 'org_456',
|
|
60
|
-
*
|
|
67
|
+
* const response =
|
|
68
|
+
* await client.agents.datasets.context.upload('org_456', {
|
|
69
|
+
* agentId: 'agentId',
|
|
61
70
|
* contextKey: 'orgId',
|
|
62
71
|
* file: fs.createReadStream('path/to/file'),
|
|
63
|
-
* }
|
|
64
|
-
* );
|
|
72
|
+
* });
|
|
65
73
|
* ```
|
|
66
74
|
*/
|
|
67
75
|
upload(
|
|
@@ -69,9 +77,9 @@ export class Context extends APIResource {
|
|
|
69
77
|
params: ContextUploadParams,
|
|
70
78
|
options?: RequestOptions,
|
|
71
79
|
): APIPromise<ContextUploadResponse> {
|
|
72
|
-
const { contextKey, ...body } = params;
|
|
80
|
+
const { agentId, contextKey, ...body } = params;
|
|
73
81
|
return this._client.post(
|
|
74
|
-
path`/datasets/context/${contextKey}/${contextValue}`,
|
|
82
|
+
path`/agents/${agentId}/datasets/context/${contextKey}/${contextValue}`,
|
|
75
83
|
multipartFormRequestOptions({ body, ...options }, this._client),
|
|
76
84
|
);
|
|
77
85
|
}
|
|
@@ -106,6 +114,11 @@ export namespace ContextUploadResponse {
|
|
|
106
114
|
}
|
|
107
115
|
|
|
108
116
|
export interface ContextListParams {
|
|
117
|
+
/**
|
|
118
|
+
* The unique identifier of the agent
|
|
119
|
+
*/
|
|
120
|
+
agentId: string;
|
|
121
|
+
|
|
109
122
|
/**
|
|
110
123
|
* The context key (e.g., "orgId", "teamId")
|
|
111
124
|
*/
|
|
@@ -113,6 +126,11 @@ export interface ContextListParams {
|
|
|
113
126
|
}
|
|
114
127
|
|
|
115
128
|
export interface ContextDeleteParams {
|
|
129
|
+
/**
|
|
130
|
+
* The unique identifier of the agent
|
|
131
|
+
*/
|
|
132
|
+
agentId: string;
|
|
133
|
+
|
|
116
134
|
/**
|
|
117
135
|
* The context key (e.g., "orgId", "teamId")
|
|
118
136
|
*/
|
|
@@ -125,6 +143,11 @@ export interface ContextDeleteParams {
|
|
|
125
143
|
}
|
|
126
144
|
|
|
127
145
|
export interface ContextUploadParams {
|
|
146
|
+
/**
|
|
147
|
+
* Path param: The unique identifier of the agent
|
|
148
|
+
*/
|
|
149
|
+
agentId: string;
|
|
150
|
+
|
|
128
151
|
/**
|
|
129
152
|
* Path param: The context key (e.g., "orgId", "teamId")
|
|
130
153
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
-
import { APIResource } from '
|
|
3
|
+
import { APIResource } from '../../../core/resource';
|
|
4
4
|
import * as ContextAPI from './context';
|
|
5
5
|
import {
|
|
6
6
|
Context,
|
|
@@ -16,6 +16,7 @@ import {
|
|
|
16
16
|
User,
|
|
17
17
|
UserDeleteParams,
|
|
18
18
|
UserDeleteResponse,
|
|
19
|
+
UserListParams,
|
|
19
20
|
UserListResponse,
|
|
20
21
|
UserUploadParams,
|
|
21
22
|
UserUploadResponse,
|
|
@@ -35,6 +36,7 @@ export declare namespace Datasets {
|
|
|
35
36
|
type UserListResponse as UserListResponse,
|
|
36
37
|
type UserDeleteResponse as UserDeleteResponse,
|
|
37
38
|
type UserUploadResponse as UserUploadResponse,
|
|
39
|
+
type UserListParams as UserListParams,
|
|
38
40
|
type UserDeleteParams as UserDeleteParams,
|
|
39
41
|
type UserUploadParams as UserUploadParams,
|
|
40
42
|
};
|
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../../../core/resource';
|
|
4
|
+
import { APIPromise } from '../../../core/api-promise';
|
|
5
|
+
import { type Uploadable } from '../../../core/uploads';
|
|
6
|
+
import { RequestOptions } from '../../../internal/request-options';
|
|
7
|
+
import { multipartFormRequestOptions } from '../../../internal/uploads';
|
|
8
|
+
import { path } from '../../../internal/utils/path';
|
|
9
|
+
|
|
10
|
+
export class User extends APIResource {
|
|
11
|
+
/**
|
|
12
|
+
* List all dataset files scoped to a specific user.
|
|
13
|
+
*
|
|
14
|
+
* @example
|
|
15
|
+
* ```ts
|
|
16
|
+
* const users = await client.agents.datasets.user.list(
|
|
17
|
+
* 'user_123',
|
|
18
|
+
* { agentId: 'agentId' },
|
|
19
|
+
* );
|
|
20
|
+
* ```
|
|
21
|
+
*/
|
|
22
|
+
list(
|
|
23
|
+
userIdentifier: string,
|
|
24
|
+
params: UserListParams,
|
|
25
|
+
options?: RequestOptions,
|
|
26
|
+
): APIPromise<UserListResponse> {
|
|
27
|
+
const { agentId } = params;
|
|
28
|
+
return this._client.get(path`/agents/${agentId}/datasets/user/${userIdentifier}`, options);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* Delete a dataset file scoped to a specific user.
|
|
33
|
+
*
|
|
34
|
+
* @example
|
|
35
|
+
* ```ts
|
|
36
|
+
* const user = await client.agents.datasets.user.delete(
|
|
37
|
+
* 'data.csv',
|
|
38
|
+
* { agentId: 'agentId', userIdentifier: 'user_123' },
|
|
39
|
+
* );
|
|
40
|
+
* ```
|
|
41
|
+
*/
|
|
42
|
+
delete(
|
|
43
|
+
filename: string,
|
|
44
|
+
params: UserDeleteParams,
|
|
45
|
+
options?: RequestOptions,
|
|
46
|
+
): APIPromise<UserDeleteResponse> {
|
|
47
|
+
const { agentId, userIdentifier } = params;
|
|
48
|
+
return this._client.delete(path`/agents/${agentId}/datasets/user/${userIdentifier}/${filename}`, options);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* Upload a dataset file scoped to a specific user.
|
|
53
|
+
*
|
|
54
|
+
* @example
|
|
55
|
+
* ```ts
|
|
56
|
+
* const response = await client.agents.datasets.user.upload(
|
|
57
|
+
* 'user_123',
|
|
58
|
+
* {
|
|
59
|
+
* agentId: 'agentId',
|
|
60
|
+
* file: fs.createReadStream('path/to/file'),
|
|
61
|
+
* },
|
|
62
|
+
* );
|
|
63
|
+
* ```
|
|
64
|
+
*/
|
|
65
|
+
upload(
|
|
66
|
+
userIdentifier: string,
|
|
67
|
+
params: UserUploadParams,
|
|
68
|
+
options?: RequestOptions,
|
|
69
|
+
): APIPromise<UserUploadResponse> {
|
|
70
|
+
const { agentId, ...body } = params;
|
|
71
|
+
return this._client.post(
|
|
72
|
+
path`/agents/${agentId}/datasets/user/${userIdentifier}`,
|
|
73
|
+
multipartFormRequestOptions({ body, ...options }, this._client),
|
|
74
|
+
);
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export interface UserListResponse {
|
|
79
|
+
files: Array<string>;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
export interface UserDeleteResponse {
|
|
83
|
+
file: string;
|
|
84
|
+
|
|
85
|
+
success: boolean;
|
|
86
|
+
|
|
87
|
+
error?: string;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
export interface UserUploadResponse {
|
|
91
|
+
file: UserUploadResponse.File;
|
|
92
|
+
|
|
93
|
+
error?: string;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
export namespace UserUploadResponse {
|
|
97
|
+
export interface File {
|
|
98
|
+
name: string;
|
|
99
|
+
|
|
100
|
+
path: string;
|
|
101
|
+
|
|
102
|
+
size: number;
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
export interface UserListParams {
|
|
107
|
+
/**
|
|
108
|
+
* The unique identifier of the agent
|
|
109
|
+
*/
|
|
110
|
+
agentId: string;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
export interface UserDeleteParams {
|
|
114
|
+
/**
|
|
115
|
+
* The unique identifier of the agent
|
|
116
|
+
*/
|
|
117
|
+
agentId: string;
|
|
118
|
+
|
|
119
|
+
/**
|
|
120
|
+
* The user identifier
|
|
121
|
+
*/
|
|
122
|
+
userIdentifier: string;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
export interface UserUploadParams {
|
|
126
|
+
/**
|
|
127
|
+
* Path param: The unique identifier of the agent
|
|
128
|
+
*/
|
|
129
|
+
agentId: string;
|
|
130
|
+
|
|
131
|
+
/**
|
|
132
|
+
* Body param: The file to upload (CSV or JSON, max 10MB)
|
|
133
|
+
*/
|
|
134
|
+
file: Uploadable;
|
|
135
|
+
|
|
136
|
+
/**
|
|
137
|
+
* Body param: Optional notes or description for the dataset
|
|
138
|
+
*/
|
|
139
|
+
notes?: string;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
export declare namespace User {
|
|
143
|
+
export {
|
|
144
|
+
type UserListResponse as UserListResponse,
|
|
145
|
+
type UserDeleteResponse as UserDeleteResponse,
|
|
146
|
+
type UserUploadResponse as UserUploadResponse,
|
|
147
|
+
type UserListParams as UserListParams,
|
|
148
|
+
type UserDeleteParams as UserDeleteParams,
|
|
149
|
+
type UserUploadParams as UserUploadParams,
|
|
150
|
+
};
|
|
151
|
+
}
|
|
@@ -1,4 +1,16 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
3
|
export { Agents } from './agents';
|
|
4
|
+
export {
|
|
5
|
+
Conversations,
|
|
6
|
+
type InconvoConversation,
|
|
7
|
+
type ConversationCreateResponse,
|
|
8
|
+
type ConversationListResponse,
|
|
9
|
+
type ConversationCreateParams,
|
|
10
|
+
type ConversationRetrieveParams,
|
|
11
|
+
type ConversationListParams,
|
|
12
|
+
type ConversationListResponsesConversationsCursor,
|
|
13
|
+
} from './conversations/index';
|
|
4
14
|
export { DataSummary, type DataSummaryRetrieveResponse } from './data-summary';
|
|
15
|
+
export { Datasets } from './datasets/index';
|
|
16
|
+
export { McpServers } from './mcp-servers/index';
|
|
@@ -1,8 +1,14 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
-
import { APIResource } from '
|
|
3
|
+
import { APIResource } from '../../../core/resource';
|
|
4
4
|
import * as TenantsAPI from './tenants';
|
|
5
|
-
import {
|
|
5
|
+
import {
|
|
6
|
+
TenantCreateParams,
|
|
7
|
+
TenantCreateResponse,
|
|
8
|
+
TenantDeleteParams,
|
|
9
|
+
TenantDeleteResponse,
|
|
10
|
+
Tenants,
|
|
11
|
+
} from './tenants';
|
|
6
12
|
|
|
7
13
|
export class McpServers extends APIResource {
|
|
8
14
|
tenants: TenantsAPI.Tenants = new TenantsAPI.Tenants(this._client);
|
|
@@ -14,6 +20,7 @@ export declare namespace McpServers {
|
|
|
14
20
|
export {
|
|
15
21
|
Tenants as Tenants,
|
|
16
22
|
type TenantCreateResponse as TenantCreateResponse,
|
|
23
|
+
type TenantDeleteResponse as TenantDeleteResponse,
|
|
17
24
|
type TenantCreateParams as TenantCreateParams,
|
|
18
25
|
type TenantDeleteParams as TenantDeleteParams,
|
|
19
26
|
};
|