@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
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import { APIResource } from "../../../core/resource.mjs";
|
|
2
|
+
import { APIPromise } from "../../../core/api-promise.mjs";
|
|
3
|
+
import { type Uploadable } from "../../../core/uploads.mjs";
|
|
4
|
+
import { RequestOptions } from "../../../internal/request-options.mjs";
|
|
5
|
+
export declare class User extends APIResource {
|
|
6
|
+
/**
|
|
7
|
+
* List all dataset files scoped to a specific user.
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* ```ts
|
|
11
|
+
* const users = await client.agents.datasets.user.list(
|
|
12
|
+
* 'user_123',
|
|
13
|
+
* { agentId: 'agentId' },
|
|
14
|
+
* );
|
|
15
|
+
* ```
|
|
16
|
+
*/
|
|
17
|
+
list(userIdentifier: string, params: UserListParams, options?: RequestOptions): APIPromise<UserListResponse>;
|
|
18
|
+
/**
|
|
19
|
+
* Delete a dataset file scoped to a specific user.
|
|
20
|
+
*
|
|
21
|
+
* @example
|
|
22
|
+
* ```ts
|
|
23
|
+
* const user = await client.agents.datasets.user.delete(
|
|
24
|
+
* 'data.csv',
|
|
25
|
+
* { agentId: 'agentId', userIdentifier: 'user_123' },
|
|
26
|
+
* );
|
|
27
|
+
* ```
|
|
28
|
+
*/
|
|
29
|
+
delete(filename: string, params: UserDeleteParams, options?: RequestOptions): APIPromise<UserDeleteResponse>;
|
|
30
|
+
/**
|
|
31
|
+
* Upload a dataset file scoped to a specific user.
|
|
32
|
+
*
|
|
33
|
+
* @example
|
|
34
|
+
* ```ts
|
|
35
|
+
* const response = await client.agents.datasets.user.upload(
|
|
36
|
+
* 'user_123',
|
|
37
|
+
* {
|
|
38
|
+
* agentId: 'agentId',
|
|
39
|
+
* file: fs.createReadStream('path/to/file'),
|
|
40
|
+
* },
|
|
41
|
+
* );
|
|
42
|
+
* ```
|
|
43
|
+
*/
|
|
44
|
+
upload(userIdentifier: string, params: UserUploadParams, options?: RequestOptions): APIPromise<UserUploadResponse>;
|
|
45
|
+
}
|
|
46
|
+
export interface UserListResponse {
|
|
47
|
+
files: Array<string>;
|
|
48
|
+
}
|
|
49
|
+
export interface UserDeleteResponse {
|
|
50
|
+
file: string;
|
|
51
|
+
success: boolean;
|
|
52
|
+
error?: string;
|
|
53
|
+
}
|
|
54
|
+
export interface UserUploadResponse {
|
|
55
|
+
file: UserUploadResponse.File;
|
|
56
|
+
error?: string;
|
|
57
|
+
}
|
|
58
|
+
export declare namespace UserUploadResponse {
|
|
59
|
+
interface File {
|
|
60
|
+
name: string;
|
|
61
|
+
path: string;
|
|
62
|
+
size: number;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
export interface UserListParams {
|
|
66
|
+
/**
|
|
67
|
+
* The unique identifier of the agent
|
|
68
|
+
*/
|
|
69
|
+
agentId: string;
|
|
70
|
+
}
|
|
71
|
+
export interface UserDeleteParams {
|
|
72
|
+
/**
|
|
73
|
+
* The unique identifier of the agent
|
|
74
|
+
*/
|
|
75
|
+
agentId: string;
|
|
76
|
+
/**
|
|
77
|
+
* The user identifier
|
|
78
|
+
*/
|
|
79
|
+
userIdentifier: string;
|
|
80
|
+
}
|
|
81
|
+
export interface UserUploadParams {
|
|
82
|
+
/**
|
|
83
|
+
* Path param: The unique identifier of the agent
|
|
84
|
+
*/
|
|
85
|
+
agentId: string;
|
|
86
|
+
/**
|
|
87
|
+
* Body param: The file to upload (CSV or JSON, max 10MB)
|
|
88
|
+
*/
|
|
89
|
+
file: Uploadable;
|
|
90
|
+
/**
|
|
91
|
+
* Body param: Optional notes or description for the dataset
|
|
92
|
+
*/
|
|
93
|
+
notes?: string;
|
|
94
|
+
}
|
|
95
|
+
export declare namespace User {
|
|
96
|
+
export { type UserListResponse as UserListResponse, type UserDeleteResponse as UserDeleteResponse, type UserUploadResponse as UserUploadResponse, type UserListParams as UserListParams, type UserDeleteParams as UserDeleteParams, type UserUploadParams as UserUploadParams, };
|
|
97
|
+
}
|
|
98
|
+
//# sourceMappingURL=user.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"user.d.mts","sourceRoot":"","sources":["../../../src/resources/agents/datasets/user.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,KAAK,UAAU,EAAE;OACnB,EAAE,cAAc,EAAE;AAIzB,qBAAa,IAAK,SAAQ,WAAW;IACnC;;;;;;;;;;OAUG;IACH,IAAI,CACF,cAAc,EAAE,MAAM,EACtB,MAAM,EAAE,cAAc,EACtB,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,gBAAgB,CAAC;IAK/B;;;;;;;;;;OAUG;IACH,MAAM,CACJ,QAAQ,EAAE,MAAM,EAChB,MAAM,EAAE,gBAAgB,EACxB,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,kBAAkB,CAAC;IAKjC;;;;;;;;;;;;;OAaG;IACH,MAAM,CACJ,cAAc,EAAE,MAAM,EACtB,MAAM,EAAE,gBAAgB,EACxB,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,kBAAkB,CAAC;CAOlC;AAED,MAAM,WAAW,gBAAgB;IAC/B,KAAK,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;CACtB;AAED,MAAM,WAAW,kBAAkB;IACjC,IAAI,EAAE,MAAM,CAAC;IAEb,OAAO,EAAE,OAAO,CAAC;IAEjB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,kBAAkB;IACjC,IAAI,EAAE,kBAAkB,CAAC,IAAI,CAAC;IAE9B,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,yBAAiB,kBAAkB,CAAC;IAClC,UAAiB,IAAI;QACnB,IAAI,EAAE,MAAM,CAAC;QAEb,IAAI,EAAE,MAAM,CAAC;QAEb,IAAI,EAAE,MAAM,CAAC;KACd;CACF;AAED,MAAM,WAAW,cAAc;IAC7B;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,gBAAgB;IAC/B;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,cAAc,EAAE,MAAM,CAAC;CACxB;AAED,MAAM,WAAW,gBAAgB;IAC/B;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,IAAI,EAAE,UAAU,CAAC;IAEjB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,CAAC,OAAO,WAAW,IAAI,CAAC;IAC5B,OAAO,EACL,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,cAAc,IAAI,cAAc,EACrC,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,gBAAgB,IAAI,gBAAgB,GAC1C,CAAC;CACH"}
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import { APIResource } from "../../../core/resource.js";
|
|
2
|
+
import { APIPromise } from "../../../core/api-promise.js";
|
|
3
|
+
import { type Uploadable } from "../../../core/uploads.js";
|
|
4
|
+
import { RequestOptions } from "../../../internal/request-options.js";
|
|
5
|
+
export declare class User extends APIResource {
|
|
6
|
+
/**
|
|
7
|
+
* List all dataset files scoped to a specific user.
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* ```ts
|
|
11
|
+
* const users = await client.agents.datasets.user.list(
|
|
12
|
+
* 'user_123',
|
|
13
|
+
* { agentId: 'agentId' },
|
|
14
|
+
* );
|
|
15
|
+
* ```
|
|
16
|
+
*/
|
|
17
|
+
list(userIdentifier: string, params: UserListParams, options?: RequestOptions): APIPromise<UserListResponse>;
|
|
18
|
+
/**
|
|
19
|
+
* Delete a dataset file scoped to a specific user.
|
|
20
|
+
*
|
|
21
|
+
* @example
|
|
22
|
+
* ```ts
|
|
23
|
+
* const user = await client.agents.datasets.user.delete(
|
|
24
|
+
* 'data.csv',
|
|
25
|
+
* { agentId: 'agentId', userIdentifier: 'user_123' },
|
|
26
|
+
* );
|
|
27
|
+
* ```
|
|
28
|
+
*/
|
|
29
|
+
delete(filename: string, params: UserDeleteParams, options?: RequestOptions): APIPromise<UserDeleteResponse>;
|
|
30
|
+
/**
|
|
31
|
+
* Upload a dataset file scoped to a specific user.
|
|
32
|
+
*
|
|
33
|
+
* @example
|
|
34
|
+
* ```ts
|
|
35
|
+
* const response = await client.agents.datasets.user.upload(
|
|
36
|
+
* 'user_123',
|
|
37
|
+
* {
|
|
38
|
+
* agentId: 'agentId',
|
|
39
|
+
* file: fs.createReadStream('path/to/file'),
|
|
40
|
+
* },
|
|
41
|
+
* );
|
|
42
|
+
* ```
|
|
43
|
+
*/
|
|
44
|
+
upload(userIdentifier: string, params: UserUploadParams, options?: RequestOptions): APIPromise<UserUploadResponse>;
|
|
45
|
+
}
|
|
46
|
+
export interface UserListResponse {
|
|
47
|
+
files: Array<string>;
|
|
48
|
+
}
|
|
49
|
+
export interface UserDeleteResponse {
|
|
50
|
+
file: string;
|
|
51
|
+
success: boolean;
|
|
52
|
+
error?: string;
|
|
53
|
+
}
|
|
54
|
+
export interface UserUploadResponse {
|
|
55
|
+
file: UserUploadResponse.File;
|
|
56
|
+
error?: string;
|
|
57
|
+
}
|
|
58
|
+
export declare namespace UserUploadResponse {
|
|
59
|
+
interface File {
|
|
60
|
+
name: string;
|
|
61
|
+
path: string;
|
|
62
|
+
size: number;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
export interface UserListParams {
|
|
66
|
+
/**
|
|
67
|
+
* The unique identifier of the agent
|
|
68
|
+
*/
|
|
69
|
+
agentId: string;
|
|
70
|
+
}
|
|
71
|
+
export interface UserDeleteParams {
|
|
72
|
+
/**
|
|
73
|
+
* The unique identifier of the agent
|
|
74
|
+
*/
|
|
75
|
+
agentId: string;
|
|
76
|
+
/**
|
|
77
|
+
* The user identifier
|
|
78
|
+
*/
|
|
79
|
+
userIdentifier: string;
|
|
80
|
+
}
|
|
81
|
+
export interface UserUploadParams {
|
|
82
|
+
/**
|
|
83
|
+
* Path param: The unique identifier of the agent
|
|
84
|
+
*/
|
|
85
|
+
agentId: string;
|
|
86
|
+
/**
|
|
87
|
+
* Body param: The file to upload (CSV or JSON, max 10MB)
|
|
88
|
+
*/
|
|
89
|
+
file: Uploadable;
|
|
90
|
+
/**
|
|
91
|
+
* Body param: Optional notes or description for the dataset
|
|
92
|
+
*/
|
|
93
|
+
notes?: string;
|
|
94
|
+
}
|
|
95
|
+
export declare namespace User {
|
|
96
|
+
export { type UserListResponse as UserListResponse, type UserDeleteResponse as UserDeleteResponse, type UserUploadResponse as UserUploadResponse, type UserListParams as UserListParams, type UserDeleteParams as UserDeleteParams, type UserUploadParams as UserUploadParams, };
|
|
97
|
+
}
|
|
98
|
+
//# sourceMappingURL=user.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"user.d.ts","sourceRoot":"","sources":["../../../src/resources/agents/datasets/user.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,KAAK,UAAU,EAAE;OACnB,EAAE,cAAc,EAAE;AAIzB,qBAAa,IAAK,SAAQ,WAAW;IACnC;;;;;;;;;;OAUG;IACH,IAAI,CACF,cAAc,EAAE,MAAM,EACtB,MAAM,EAAE,cAAc,EACtB,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,gBAAgB,CAAC;IAK/B;;;;;;;;;;OAUG;IACH,MAAM,CACJ,QAAQ,EAAE,MAAM,EAChB,MAAM,EAAE,gBAAgB,EACxB,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,kBAAkB,CAAC;IAKjC;;;;;;;;;;;;;OAaG;IACH,MAAM,CACJ,cAAc,EAAE,MAAM,EACtB,MAAM,EAAE,gBAAgB,EACxB,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,kBAAkB,CAAC;CAOlC;AAED,MAAM,WAAW,gBAAgB;IAC/B,KAAK,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;CACtB;AAED,MAAM,WAAW,kBAAkB;IACjC,IAAI,EAAE,MAAM,CAAC;IAEb,OAAO,EAAE,OAAO,CAAC;IAEjB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,kBAAkB;IACjC,IAAI,EAAE,kBAAkB,CAAC,IAAI,CAAC;IAE9B,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,yBAAiB,kBAAkB,CAAC;IAClC,UAAiB,IAAI;QACnB,IAAI,EAAE,MAAM,CAAC;QAEb,IAAI,EAAE,MAAM,CAAC;QAEb,IAAI,EAAE,MAAM,CAAC;KACd;CACF;AAED,MAAM,WAAW,cAAc;IAC7B;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,gBAAgB;IAC/B;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,cAAc,EAAE,MAAM,CAAC;CACxB;AAED,MAAM,WAAW,gBAAgB;IAC/B;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,IAAI,EAAE,UAAU,CAAC;IAEjB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,CAAC,OAAO,WAAW,IAAI,CAAC;IAC5B,OAAO,EACL,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,cAAc,IAAI,cAAc,EACrC,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,gBAAgB,IAAI,gBAAgB,GAC1C,CAAC;CACH"}
|
|
@@ -0,0 +1,59 @@
|
|
|
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.User = void 0;
|
|
5
|
+
const resource_1 = require("../../../core/resource.js");
|
|
6
|
+
const uploads_1 = require("../../../internal/uploads.js");
|
|
7
|
+
const path_1 = require("../../../internal/utils/path.js");
|
|
8
|
+
class User extends resource_1.APIResource {
|
|
9
|
+
/**
|
|
10
|
+
* List all dataset files scoped to a specific user.
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* ```ts
|
|
14
|
+
* const users = await client.agents.datasets.user.list(
|
|
15
|
+
* 'user_123',
|
|
16
|
+
* { agentId: 'agentId' },
|
|
17
|
+
* );
|
|
18
|
+
* ```
|
|
19
|
+
*/
|
|
20
|
+
list(userIdentifier, params, options) {
|
|
21
|
+
const { agentId } = params;
|
|
22
|
+
return this._client.get((0, path_1.path) `/agents/${agentId}/datasets/user/${userIdentifier}`, options);
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Delete a dataset file scoped to a specific user.
|
|
26
|
+
*
|
|
27
|
+
* @example
|
|
28
|
+
* ```ts
|
|
29
|
+
* const user = await client.agents.datasets.user.delete(
|
|
30
|
+
* 'data.csv',
|
|
31
|
+
* { agentId: 'agentId', userIdentifier: 'user_123' },
|
|
32
|
+
* );
|
|
33
|
+
* ```
|
|
34
|
+
*/
|
|
35
|
+
delete(filename, params, options) {
|
|
36
|
+
const { agentId, userIdentifier } = params;
|
|
37
|
+
return this._client.delete((0, path_1.path) `/agents/${agentId}/datasets/user/${userIdentifier}/${filename}`, options);
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* Upload a dataset file scoped to a specific user.
|
|
41
|
+
*
|
|
42
|
+
* @example
|
|
43
|
+
* ```ts
|
|
44
|
+
* const response = await client.agents.datasets.user.upload(
|
|
45
|
+
* 'user_123',
|
|
46
|
+
* {
|
|
47
|
+
* agentId: 'agentId',
|
|
48
|
+
* file: fs.createReadStream('path/to/file'),
|
|
49
|
+
* },
|
|
50
|
+
* );
|
|
51
|
+
* ```
|
|
52
|
+
*/
|
|
53
|
+
upload(userIdentifier, params, options) {
|
|
54
|
+
const { agentId, ...body } = params;
|
|
55
|
+
return this._client.post((0, path_1.path) `/agents/${agentId}/datasets/user/${userIdentifier}`, (0, uploads_1.multipartFormRequestOptions)({ body, ...options }, this._client));
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
exports.User = User;
|
|
59
|
+
//# sourceMappingURL=user.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"user.js","sourceRoot":"","sources":["../../../src/resources/agents/datasets/user.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wDAAqD;AAIrD,0DAAwE;AACxE,0DAAoD;AAEpD,MAAa,IAAK,SAAQ,sBAAW;IACnC;;;;;;;;;;OAUG;IACH,IAAI,CACF,cAAsB,EACtB,MAAsB,EACtB,OAAwB;QAExB,MAAM,EAAE,OAAO,EAAE,GAAG,MAAM,CAAC;QAC3B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,WAAW,OAAO,kBAAkB,cAAc,EAAE,EAAE,OAAO,CAAC,CAAC;IAC7F,CAAC;IAED;;;;;;;;;;OAUG;IACH,MAAM,CACJ,QAAgB,EAChB,MAAwB,EACxB,OAAwB;QAExB,MAAM,EAAE,OAAO,EAAE,cAAc,EAAE,GAAG,MAAM,CAAC;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAA,WAAI,EAAA,WAAW,OAAO,kBAAkB,cAAc,IAAI,QAAQ,EAAE,EAAE,OAAO,CAAC,CAAC;IAC5G,CAAC;IAED;;;;;;;;;;;;;OAaG;IACH,MAAM,CACJ,cAAsB,EACtB,MAAwB,EACxB,OAAwB;QAExB,MAAM,EAAE,OAAO,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QACpC,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CACtB,IAAA,WAAI,EAAA,WAAW,OAAO,kBAAkB,cAAc,EAAE,EACxD,IAAA,qCAA2B,EAAC,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,EAAE,IAAI,CAAC,OAAO,CAAC,CAChE,CAAC;IACJ,CAAC;CACF;AAlED,oBAkEC"}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from "../../../core/resource.mjs";
|
|
3
|
+
import { multipartFormRequestOptions } from "../../../internal/uploads.mjs";
|
|
4
|
+
import { path } from "../../../internal/utils/path.mjs";
|
|
5
|
+
export class User extends APIResource {
|
|
6
|
+
/**
|
|
7
|
+
* List all dataset files scoped to a specific user.
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* ```ts
|
|
11
|
+
* const users = await client.agents.datasets.user.list(
|
|
12
|
+
* 'user_123',
|
|
13
|
+
* { agentId: 'agentId' },
|
|
14
|
+
* );
|
|
15
|
+
* ```
|
|
16
|
+
*/
|
|
17
|
+
list(userIdentifier, params, options) {
|
|
18
|
+
const { agentId } = params;
|
|
19
|
+
return this._client.get(path `/agents/${agentId}/datasets/user/${userIdentifier}`, options);
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Delete a dataset file scoped to a specific user.
|
|
23
|
+
*
|
|
24
|
+
* @example
|
|
25
|
+
* ```ts
|
|
26
|
+
* const user = await client.agents.datasets.user.delete(
|
|
27
|
+
* 'data.csv',
|
|
28
|
+
* { agentId: 'agentId', userIdentifier: 'user_123' },
|
|
29
|
+
* );
|
|
30
|
+
* ```
|
|
31
|
+
*/
|
|
32
|
+
delete(filename, params, options) {
|
|
33
|
+
const { agentId, userIdentifier } = params;
|
|
34
|
+
return this._client.delete(path `/agents/${agentId}/datasets/user/${userIdentifier}/${filename}`, options);
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* Upload a dataset file scoped to a specific user.
|
|
38
|
+
*
|
|
39
|
+
* @example
|
|
40
|
+
* ```ts
|
|
41
|
+
* const response = await client.agents.datasets.user.upload(
|
|
42
|
+
* 'user_123',
|
|
43
|
+
* {
|
|
44
|
+
* agentId: 'agentId',
|
|
45
|
+
* file: fs.createReadStream('path/to/file'),
|
|
46
|
+
* },
|
|
47
|
+
* );
|
|
48
|
+
* ```
|
|
49
|
+
*/
|
|
50
|
+
upload(userIdentifier, params, options) {
|
|
51
|
+
const { agentId, ...body } = params;
|
|
52
|
+
return this._client.post(path `/agents/${agentId}/datasets/user/${userIdentifier}`, multipartFormRequestOptions({ body, ...options }, this._client));
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
//# sourceMappingURL=user.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"user.mjs","sourceRoot":"","sources":["../../../src/resources/agents/datasets/user.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAIf,EAAE,2BAA2B,EAAE;OAC/B,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,IAAK,SAAQ,WAAW;IACnC;;;;;;;;;;OAUG;IACH,IAAI,CACF,cAAsB,EACtB,MAAsB,EACtB,OAAwB;QAExB,MAAM,EAAE,OAAO,EAAE,GAAG,MAAM,CAAC;QAC3B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,WAAW,OAAO,kBAAkB,cAAc,EAAE,EAAE,OAAO,CAAC,CAAC;IAC7F,CAAC;IAED;;;;;;;;;;OAUG;IACH,MAAM,CACJ,QAAgB,EAChB,MAAwB,EACxB,OAAwB;QAExB,MAAM,EAAE,OAAO,EAAE,cAAc,EAAE,GAAG,MAAM,CAAC;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAA,WAAW,OAAO,kBAAkB,cAAc,IAAI,QAAQ,EAAE,EAAE,OAAO,CAAC,CAAC;IAC5G,CAAC;IAED;;;;;;;;;;;;;OAaG;IACH,MAAM,CACJ,cAAsB,EACtB,MAAwB,EACxB,OAAwB;QAExB,MAAM,EAAE,OAAO,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QACpC,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CACtB,IAAI,CAAA,WAAW,OAAO,kBAAkB,cAAc,EAAE,EACxD,2BAA2B,CAAC,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,EAAE,IAAI,CAAC,OAAO,CAAC,CAChE,CAAC;IACJ,CAAC;CACF"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"datasets.d.mts","sourceRoot":"","sources":["../../src/resources/agents/datasets.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"datasets.d.ts","sourceRoot":"","sources":["../../src/resources/agents/datasets.ts"],"names":[],"mappings":""}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
const tslib_1 = require("
|
|
4
|
+
const tslib_1 = require("../../internal/tslib.js");
|
|
5
5
|
tslib_1.__exportStar(require("./datasets/index.js"), exports);
|
|
6
6
|
//# sourceMappingURL=datasets.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"datasets.js","sourceRoot":"","sources":["../../src/resources/agents/datasets.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,8DAAiC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"datasets.mjs","sourceRoot":"","sources":["../../src/resources/agents/datasets.ts"],"names":[],"mappings":"AAAA,sFAAsF"}
|
|
@@ -1,3 +1,6 @@
|
|
|
1
1
|
export { Agents } from "./agents.mjs";
|
|
2
|
+
export { Conversations, type InconvoConversation, type ConversationCreateResponse, type ConversationListResponse, type ConversationCreateParams, type ConversationRetrieveParams, type ConversationListParams, type ConversationListResponsesConversationsCursor, } from "./conversations/index.mjs";
|
|
2
3
|
export { DataSummary, type DataSummaryRetrieveResponse } from "./data-summary.mjs";
|
|
4
|
+
export { Datasets } from "./datasets/index.mjs";
|
|
5
|
+
export { McpServers } from "./mcp-servers/index.mjs";
|
|
3
6
|
//# sourceMappingURL=index.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../src/resources/agents/index.ts"],"names":[],"mappings":"OAEO,EAAE,MAAM,EAAE;OACV,EAAE,WAAW,EAAE,KAAK,2BAA2B,EAAE"}
|
|
1
|
+
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../src/resources/agents/index.ts"],"names":[],"mappings":"OAEO,EAAE,MAAM,EAAE;OACV,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,EAAE,WAAW,EAAE,KAAK,2BAA2B,EAAE;OACjD,EAAE,QAAQ,EAAE;OACZ,EAAE,UAAU,EAAE"}
|
|
@@ -1,3 +1,6 @@
|
|
|
1
1
|
export { Agents } from "./agents.js";
|
|
2
|
+
export { Conversations, type InconvoConversation, type ConversationCreateResponse, type ConversationListResponse, type ConversationCreateParams, type ConversationRetrieveParams, type ConversationListParams, type ConversationListResponsesConversationsCursor, } from "./conversations/index.js";
|
|
2
3
|
export { DataSummary, type DataSummaryRetrieveResponse } from "./data-summary.js";
|
|
4
|
+
export { Datasets } from "./datasets/index.js";
|
|
5
|
+
export { McpServers } from "./mcp-servers/index.js";
|
|
3
6
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/agents/index.ts"],"names":[],"mappings":"OAEO,EAAE,MAAM,EAAE;OACV,EAAE,WAAW,EAAE,KAAK,2BAA2B,EAAE"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/agents/index.ts"],"names":[],"mappings":"OAEO,EAAE,MAAM,EAAE;OACV,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,EAAE,WAAW,EAAE,KAAK,2BAA2B,EAAE;OACjD,EAAE,QAAQ,EAAE;OACZ,EAAE,UAAU,EAAE"}
|
|
@@ -1,9 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.DataSummary = exports.Agents = void 0;
|
|
4
|
+
exports.McpServers = exports.Datasets = exports.DataSummary = exports.Conversations = exports.Agents = void 0;
|
|
5
5
|
var agents_1 = require("./agents.js");
|
|
6
6
|
Object.defineProperty(exports, "Agents", { enumerable: true, get: function () { return agents_1.Agents; } });
|
|
7
|
+
var index_1 = require("./conversations/index.js");
|
|
8
|
+
Object.defineProperty(exports, "Conversations", { enumerable: true, get: function () { return index_1.Conversations; } });
|
|
7
9
|
var data_summary_1 = require("./data-summary.js");
|
|
8
10
|
Object.defineProperty(exports, "DataSummary", { enumerable: true, get: function () { return data_summary_1.DataSummary; } });
|
|
11
|
+
var index_2 = require("./datasets/index.js");
|
|
12
|
+
Object.defineProperty(exports, "Datasets", { enumerable: true, get: function () { return index_2.Datasets; } });
|
|
13
|
+
var index_3 = require("./mcp-servers/index.js");
|
|
14
|
+
Object.defineProperty(exports, "McpServers", { enumerable: true, get: function () { return index_3.McpServers; } });
|
|
9
15
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/agents/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,sCAAkC;AAAzB,gGAAA,MAAM,OAAA;AACf,kDAA+E;AAAtE,2GAAA,WAAW,OAAA"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/agents/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,sCAAkC;AAAzB,gGAAA,MAAM,OAAA;AACf,kDAS+B;AAR7B,sGAAA,aAAa,OAAA;AASf,kDAA+E;AAAtE,2GAAA,WAAW,OAAA;AACpB,6CAA4C;AAAnC,iGAAA,QAAQ,OAAA;AACjB,gDAAiD;AAAxC,mGAAA,UAAU,OAAA"}
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
export { Agents } from "./agents.mjs";
|
|
3
|
+
export { Conversations, } from "./conversations/index.mjs";
|
|
3
4
|
export { DataSummary } from "./data-summary.mjs";
|
|
5
|
+
export { Datasets } from "./datasets/index.mjs";
|
|
6
|
+
export { McpServers } from "./mcp-servers/index.mjs";
|
|
4
7
|
//# sourceMappingURL=index.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/agents/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,MAAM,EAAE;OACV,EAAE,WAAW,EAAoC"}
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/agents/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,MAAM,EAAE;OACV,EACL,aAAa,GAQd;OACM,EAAE,WAAW,EAAoC;OACjD,EAAE,QAAQ,EAAE;OACZ,EAAE,UAAU,EAAE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/resources/agents/mcp-servers/index.ts"],"names":[],"mappings":"OAEO,EAAE,UAAU,EAAE;OACd,EACL,OAAO,EACP,KAAK,oBAAoB,EACzB,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,GACxB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/resources/agents/mcp-servers/index.ts"],"names":[],"mappings":"OAEO,EAAE,UAAU,EAAE;OACd,EACL,OAAO,EACP,KAAK,oBAAoB,EACzB,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,GACxB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/resources/agents/mcp-servers/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,gDAA2C;AAAlC,yGAAA,UAAU,OAAA;AACnB,wCAMmB;AALjB,kGAAA,OAAO,OAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/resources/agents/mcp-servers/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,UAAU,EAAE;OACd,EACL,OAAO,GAKR"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { APIResource } from "../../../core/resource.mjs";
|
|
2
|
+
import * as TenantsAPI from "./tenants.mjs";
|
|
3
|
+
import { TenantCreateParams, TenantCreateResponse, TenantDeleteParams, TenantDeleteResponse, Tenants } from "./tenants.mjs";
|
|
4
|
+
export declare class McpServers extends APIResource {
|
|
5
|
+
tenants: TenantsAPI.Tenants;
|
|
6
|
+
}
|
|
7
|
+
export declare namespace McpServers {
|
|
8
|
+
export { Tenants as Tenants, type TenantCreateResponse as TenantCreateResponse, type TenantDeleteResponse as TenantDeleteResponse, type TenantCreateParams as TenantCreateParams, type TenantDeleteParams as TenantDeleteParams, };
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=mcp-servers.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mcp-servers.d.mts","sourceRoot":"","sources":["../../../src/resources/agents/mcp-servers/mcp-servers.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,UAAU;OACf,EACL,kBAAkB,EAClB,oBAAoB,EACpB,kBAAkB,EAClB,oBAAoB,EACpB,OAAO,EACR;AAED,qBAAa,UAAW,SAAQ,WAAW;IACzC,OAAO,EAAE,UAAU,CAAC,OAAO,CAAwC;CACpE;AAID,MAAM,CAAC,OAAO,WAAW,UAAU,CAAC;IAClC,OAAO,EACL,OAAO,IAAI,OAAO,EAClB,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,kBAAkB,IAAI,kBAAkB,GAC9C,CAAC;CACH"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { APIResource } from "../../../core/resource.js";
|
|
2
|
+
import * as TenantsAPI from "./tenants.js";
|
|
3
|
+
import { TenantCreateParams, TenantCreateResponse, TenantDeleteParams, TenantDeleteResponse, Tenants } from "./tenants.js";
|
|
4
|
+
export declare class McpServers extends APIResource {
|
|
5
|
+
tenants: TenantsAPI.Tenants;
|
|
6
|
+
}
|
|
7
|
+
export declare namespace McpServers {
|
|
8
|
+
export { Tenants as Tenants, type TenantCreateResponse as TenantCreateResponse, type TenantDeleteResponse as TenantDeleteResponse, type TenantCreateParams as TenantCreateParams, type TenantDeleteParams as TenantDeleteParams, };
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=mcp-servers.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mcp-servers.d.ts","sourceRoot":"","sources":["../../../src/resources/agents/mcp-servers/mcp-servers.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,UAAU;OACf,EACL,kBAAkB,EAClB,oBAAoB,EACpB,kBAAkB,EAClB,oBAAoB,EACpB,OAAO,EACR;AAED,qBAAa,UAAW,SAAQ,WAAW;IACzC,OAAO,EAAE,UAAU,CAAC,OAAO,CAAwC;CACpE;AAID,MAAM,CAAC,OAAO,WAAW,UAAU,CAAC;IAClC,OAAO,EACL,OAAO,IAAI,OAAO,EAClB,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,kBAAkB,IAAI,kBAAkB,GAC9C,CAAC;CACH"}
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
exports.McpServers = void 0;
|
|
5
|
-
const tslib_1 = require("
|
|
6
|
-
const resource_1 = require("
|
|
5
|
+
const tslib_1 = require("../../../internal/tslib.js");
|
|
6
|
+
const resource_1 = require("../../../core/resource.js");
|
|
7
7
|
const TenantsAPI = tslib_1.__importStar(require("./tenants.js"));
|
|
8
8
|
const tenants_1 = require("./tenants.js");
|
|
9
9
|
class McpServers extends resource_1.APIResource {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mcp-servers.js","sourceRoot":"","sources":["../../../src/resources/agents/mcp-servers/mcp-servers.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,wDAAqD;AACrD,iEAAwC;AACxC,0CAMmB;AAEnB,MAAa,UAAW,SAAQ,sBAAW;IAA3C;;QACE,YAAO,GAAuB,IAAI,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IACrE,CAAC;CAAA;AAFD,gCAEC;AAED,UAAU,CAAC,OAAO,GAAG,iBAAO,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
import { APIResource } from "
|
|
2
|
+
import { APIResource } from "../../../core/resource.mjs";
|
|
3
3
|
import * as TenantsAPI from "./tenants.mjs";
|
|
4
|
-
import { Tenants } from "./tenants.mjs";
|
|
4
|
+
import { Tenants, } from "./tenants.mjs";
|
|
5
5
|
export class McpServers extends APIResource {
|
|
6
6
|
constructor() {
|
|
7
7
|
super(...arguments);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mcp-servers.mjs","sourceRoot":"","sources":["../../../src/resources/agents/mcp-servers/mcp-servers.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,KAAK,UAAU;OACf,EAKL,OAAO,GACR;AAED,MAAM,OAAO,UAAW,SAAQ,WAAW;IAA3C;;QACE,YAAO,GAAuB,IAAI,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IACrE,CAAC;CAAA;AAED,UAAU,CAAC,OAAO,GAAG,OAAO,CAAC"}
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import { APIResource } from "../../../core/resource.mjs";
|
|
2
|
+
import { APIPromise } from "../../../core/api-promise.mjs";
|
|
3
|
+
import { RequestOptions } from "../../../internal/request-options.mjs";
|
|
4
|
+
export declare class Tenants extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* Create a tenant for an MCP Server
|
|
7
|
+
*
|
|
8
|
+
* @example
|
|
9
|
+
* ```ts
|
|
10
|
+
* const tenant =
|
|
11
|
+
* await client.agents.mcpServers.tenants.create(
|
|
12
|
+
* 'mcpserver_id',
|
|
13
|
+
* {
|
|
14
|
+
* agentId: 'agentId',
|
|
15
|
+
* tenant: {
|
|
16
|
+
* 'fromapi@api.com': { organisationId: 'bar' },
|
|
17
|
+
* },
|
|
18
|
+
* },
|
|
19
|
+
* );
|
|
20
|
+
* ```
|
|
21
|
+
*/
|
|
22
|
+
create(mcpserverID: string, params: TenantCreateParams, options?: RequestOptions): APIPromise<TenantCreateResponse>;
|
|
23
|
+
/**
|
|
24
|
+
* Delete a tenant mapping from an MCP Server
|
|
25
|
+
*
|
|
26
|
+
* @example
|
|
27
|
+
* ```ts
|
|
28
|
+
* const tenant =
|
|
29
|
+
* await client.agents.mcpServers.tenants.delete(
|
|
30
|
+
* 'mcpserver_id',
|
|
31
|
+
* { agentId: 'agentId', tenant_key: 'tenant_key' },
|
|
32
|
+
* );
|
|
33
|
+
* ```
|
|
34
|
+
*/
|
|
35
|
+
delete(mcpserverID: string, params: TenantDeleteParams, options?: RequestOptions): APIPromise<TenantDeleteResponse>;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Arbitrary key-value mapping.
|
|
39
|
+
*
|
|
40
|
+
* - Keys are strings.
|
|
41
|
+
* - Values are JSON objects with arbitrary properties.
|
|
42
|
+
*/
|
|
43
|
+
export type TenantCreateResponse = {
|
|
44
|
+
[key: string]: {
|
|
45
|
+
[key: string]: unknown;
|
|
46
|
+
};
|
|
47
|
+
};
|
|
48
|
+
export interface TenantDeleteResponse {
|
|
49
|
+
success: boolean;
|
|
50
|
+
tenantKey: string;
|
|
51
|
+
}
|
|
52
|
+
export interface TenantCreateParams {
|
|
53
|
+
/**
|
|
54
|
+
* Path param: The unique identifier of the agent
|
|
55
|
+
*/
|
|
56
|
+
agentId: string;
|
|
57
|
+
/**
|
|
58
|
+
* Body param: Arbitrary key-value mapping.
|
|
59
|
+
*
|
|
60
|
+
* - Keys are strings.
|
|
61
|
+
* - Values are JSON objects with arbitrary properties.
|
|
62
|
+
*/
|
|
63
|
+
tenant: {
|
|
64
|
+
[key: string]: {
|
|
65
|
+
[key: string]: unknown;
|
|
66
|
+
};
|
|
67
|
+
};
|
|
68
|
+
}
|
|
69
|
+
export interface TenantDeleteParams {
|
|
70
|
+
/**
|
|
71
|
+
* The unique identifier of the agent
|
|
72
|
+
*/
|
|
73
|
+
agentId: string;
|
|
74
|
+
tenant_key: string;
|
|
75
|
+
}
|
|
76
|
+
export declare namespace Tenants {
|
|
77
|
+
export { type TenantCreateResponse as TenantCreateResponse, type TenantDeleteResponse as TenantDeleteResponse, type TenantCreateParams as TenantCreateParams, type TenantDeleteParams as TenantDeleteParams, };
|
|
78
|
+
}
|
|
79
|
+
//# sourceMappingURL=tenants.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tenants.d.mts","sourceRoot":"","sources":["../../../src/resources/agents/mcp-servers/tenants.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,OAAQ,SAAQ,WAAW;IACtC;;;;;;;;;;;;;;;;OAgBG;IACH,MAAM,CACJ,WAAW,EAAE,MAAM,EACnB,MAAM,EAAE,kBAAkB,EAC1B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,oBAAoB,CAAC;IAQnC;;;;;;;;;;;OAWG;IACH,MAAM,CACJ,WAAW,EAAE,MAAM,EACnB,MAAM,EAAE,kBAAkB,EAC1B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,oBAAoB,CAAC;CAOpC;AAED;;;;;GAKG;AACH,MAAM,MAAM,oBAAoB,GAAG;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;KAAE,CAAA;CAAE,CAAC;AAEjF,MAAM,WAAW,oBAAoB;IACnC,OAAO,EAAE,OAAO,CAAC;IAEjB,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,kBAAkB;IACjC;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAEhB;;;;;OAKG;IACH,MAAM,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG;YAAE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;SAAE,CAAA;KAAE,CAAC;CACvD;AAED,MAAM,WAAW,kBAAkB;IACjC;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAEhB,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,CAAC,OAAO,WAAW,OAAO,CAAC;IAC/B,OAAO,EACL,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,kBAAkB,IAAI,kBAAkB,GAC9C,CAAC;CACH"}
|