@reminix/sdk 0.10.0 → 0.12.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 +43 -0
- package/README.md +47 -0
- package/client.d.mts +19 -4
- package/client.d.mts.map +1 -1
- package/client.d.ts +19 -4
- package/client.d.ts.map +1 -1
- package/client.js +18 -0
- package/client.js.map +1 -1
- package/client.mjs +18 -0
- package/client.mjs.map +1 -1
- package/core/pagination.d.mts +57 -0
- package/core/pagination.d.mts.map +1 -0
- package/core/pagination.d.ts +57 -0
- package/core/pagination.d.ts.map +1 -0
- package/core/pagination.js +108 -0
- package/core/pagination.js.map +1 -0
- package/core/pagination.mjs +102 -0
- package/core/pagination.mjs.map +1 -0
- package/index.d.mts +1 -0
- package/index.d.mts.map +1 -1
- package/index.d.ts +1 -0
- package/index.d.ts.map +1 -1
- package/index.js +3 -1
- package/index.js.map +1 -1
- package/index.mjs +1 -0
- package/index.mjs.map +1 -1
- package/package.json +11 -1
- package/pagination.d.mts +2 -0
- package/pagination.d.mts.map +1 -0
- package/pagination.d.ts +2 -0
- package/pagination.d.ts.map +1 -0
- package/pagination.js +6 -0
- package/pagination.js.map +1 -0
- package/pagination.mjs +2 -0
- package/pagination.mjs.map +1 -0
- package/resources/agents.d.mts +246 -90
- package/resources/agents.d.mts.map +1 -1
- package/resources/agents.d.ts +246 -90
- package/resources/agents.d.ts.map +1 -1
- package/resources/agents.js +28 -2
- package/resources/agents.js.map +1 -1
- package/resources/agents.mjs +28 -2
- package/resources/agents.mjs.map +1 -1
- package/resources/conversations.d.mts +107 -0
- package/resources/conversations.d.mts.map +1 -0
- package/resources/conversations.d.ts +107 -0
- package/resources/conversations.d.ts.map +1 -0
- package/resources/conversations.js +41 -0
- package/resources/conversations.js.map +1 -0
- package/resources/conversations.mjs +37 -0
- package/resources/conversations.mjs.map +1 -0
- package/resources/execution-logs.d.mts +93 -0
- package/resources/execution-logs.d.mts.map +1 -0
- package/resources/execution-logs.d.ts +93 -0
- package/resources/execution-logs.d.ts.map +1 -0
- package/resources/execution-logs.js +33 -0
- package/resources/execution-logs.js.map +1 -0
- package/resources/execution-logs.mjs +29 -0
- package/resources/execution-logs.mjs.map +1 -0
- package/resources/index.d.mts +5 -2
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +5 -2
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +7 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +3 -0
- package/resources/index.mjs.map +1 -1
- package/resources/projects.d.mts +1 -11
- package/resources/projects.d.mts.map +1 -1
- package/resources/projects.d.ts +1 -11
- package/resources/projects.d.ts.map +1 -1
- package/resources/tools.d.mts +152 -0
- package/resources/tools.d.mts.map +1 -0
- package/resources/tools.d.ts +152 -0
- package/resources/tools.d.ts.map +1 -0
- package/resources/tools.js +59 -0
- package/resources/tools.js.map +1 -0
- package/resources/tools.mjs +55 -0
- package/resources/tools.mjs.map +1 -0
- package/src/client.ts +86 -4
- package/src/core/pagination.ts +165 -0
- package/src/index.ts +1 -0
- package/src/pagination.ts +2 -0
- package/src/resources/agents.ts +296 -89
- package/src/resources/conversations.ts +146 -0
- package/src/resources/execution-logs.ts +125 -0
- package/src/resources/index.ts +26 -2
- package/src/resources/projects.ts +1 -13
- package/src/resources/tools.ts +192 -0
- 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
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
import { APIResource } from "../core/resource.mjs";
|
|
2
|
+
import { APIPromise } from "../core/api-promise.mjs";
|
|
3
|
+
import { Cursor, type CursorParams, PagePromise } from "../core/pagination.mjs";
|
|
4
|
+
import { RequestOptions } from "../internal/request-options.mjs";
|
|
5
|
+
export declare class Conversations extends APIResource {
|
|
6
|
+
/**
|
|
7
|
+
* Get details of a specific conversation including all messages.
|
|
8
|
+
*/
|
|
9
|
+
retrieve(id: string, options?: RequestOptions): APIPromise<ConversationRetrieveResponse>;
|
|
10
|
+
/**
|
|
11
|
+
* List conversations for the project with optional filtering.
|
|
12
|
+
*
|
|
13
|
+
* Conversations store chat history between users and agents. Use filters to narrow
|
|
14
|
+
* down results by agent name or identity fields.
|
|
15
|
+
*
|
|
16
|
+
* **Filters:**
|
|
17
|
+
*
|
|
18
|
+
* - `agent_name`: Filter by agent name
|
|
19
|
+
* - `identity.*`: Filter by identity fields (e.g., identity.user_id=user_123)
|
|
20
|
+
*/
|
|
21
|
+
list(query?: ConversationListParams | null | undefined, options?: RequestOptions): PagePromise<ConversationsCursor, Conversation>;
|
|
22
|
+
/**
|
|
23
|
+
* Delete a conversation and all its messages. This action cannot be undone.
|
|
24
|
+
*/
|
|
25
|
+
delete(id: string, options?: RequestOptions): APIPromise<void>;
|
|
26
|
+
}
|
|
27
|
+
export type ConversationsCursor = Cursor<Conversation>;
|
|
28
|
+
export interface Conversation {
|
|
29
|
+
/**
|
|
30
|
+
* Unique conversation ID
|
|
31
|
+
*/
|
|
32
|
+
id: string;
|
|
33
|
+
/**
|
|
34
|
+
* Agent name
|
|
35
|
+
*/
|
|
36
|
+
agentName: string;
|
|
37
|
+
/**
|
|
38
|
+
* When the conversation was created
|
|
39
|
+
*/
|
|
40
|
+
createdAt: string;
|
|
41
|
+
/**
|
|
42
|
+
* Identity fields for conversation scoping
|
|
43
|
+
*/
|
|
44
|
+
identity: {
|
|
45
|
+
[key: string]: unknown;
|
|
46
|
+
};
|
|
47
|
+
/**
|
|
48
|
+
* Project ID
|
|
49
|
+
*/
|
|
50
|
+
projectId: string;
|
|
51
|
+
/**
|
|
52
|
+
* When the conversation was last updated
|
|
53
|
+
*/
|
|
54
|
+
updatedAt: string;
|
|
55
|
+
}
|
|
56
|
+
export interface ConversationRetrieveResponse extends Conversation {
|
|
57
|
+
/**
|
|
58
|
+
* Conversation messages
|
|
59
|
+
*/
|
|
60
|
+
messages: Array<ConversationRetrieveResponse.Message>;
|
|
61
|
+
}
|
|
62
|
+
export declare namespace ConversationRetrieveResponse {
|
|
63
|
+
interface Message {
|
|
64
|
+
/**
|
|
65
|
+
* Unique message ID
|
|
66
|
+
*/
|
|
67
|
+
id: string;
|
|
68
|
+
/**
|
|
69
|
+
* Message content
|
|
70
|
+
*/
|
|
71
|
+
content: string | null;
|
|
72
|
+
/**
|
|
73
|
+
* Conversation ID
|
|
74
|
+
*/
|
|
75
|
+
conversationId: string;
|
|
76
|
+
/**
|
|
77
|
+
* When the message was created
|
|
78
|
+
*/
|
|
79
|
+
createdAt: string;
|
|
80
|
+
/**
|
|
81
|
+
* Tool name (for tool messages)
|
|
82
|
+
*/
|
|
83
|
+
name: string | null;
|
|
84
|
+
/**
|
|
85
|
+
* Message role
|
|
86
|
+
*/
|
|
87
|
+
role: 'system' | 'user' | 'assistant' | 'tool';
|
|
88
|
+
/**
|
|
89
|
+
* Tool call ID (for tool messages)
|
|
90
|
+
*/
|
|
91
|
+
toolCallId: string | null;
|
|
92
|
+
/**
|
|
93
|
+
* Tool calls (for assistant messages)
|
|
94
|
+
*/
|
|
95
|
+
toolCalls?: unknown;
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
export interface ConversationListParams extends CursorParams {
|
|
99
|
+
/**
|
|
100
|
+
* Filter by agent name
|
|
101
|
+
*/
|
|
102
|
+
agent_name?: string;
|
|
103
|
+
}
|
|
104
|
+
export declare namespace Conversations {
|
|
105
|
+
export { type Conversation as Conversation, type ConversationRetrieveResponse as ConversationRetrieveResponse, type ConversationsCursor as ConversationsCursor, type ConversationListParams as ConversationListParams, };
|
|
106
|
+
}
|
|
107
|
+
//# sourceMappingURL=conversations.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"conversations.d.mts","sourceRoot":"","sources":["../src/resources/conversations.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,MAAM,EAAE,KAAK,YAAY,EAAE,WAAW,EAAE;OA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G,IAAI,CAAC;QAEpB;;WAEG;QACH,IAAI,EAAE,QAAQ,GAAG,MAAM,GAAG,WAAW,GAAG,MAAM,CAAC;QAE/C;;WAEG;QACH,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;QAE1B;;WAEG;QACH,SAAS,CAAC,EAAE,OAAO,CAAC;KACrB;CACF;AAED,MAAM,WAAW,sBAAuB,SAAQ,YAAY;IAC1D;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,CAAC,OAAO,WAAW,aAAa,CAAC;IACrC,OAAO,EACL,KAAK,YAAY,IAAI,YAAY,EACjC,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,sBAAsB,IAAI,sBAAsB,GACtD,CAAC;CACH"}
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
import { APIResource } from "../core/resource.js";
|
|
2
|
+
import { APIPromise } from "../core/api-promise.js";
|
|
3
|
+
import { Cursor, type CursorParams, PagePromise } from "../core/pagination.js";
|
|
4
|
+
import { RequestOptions } from "../internal/request-options.js";
|
|
5
|
+
export declare class Conversations extends APIResource {
|
|
6
|
+
/**
|
|
7
|
+
* Get details of a specific conversation including all messages.
|
|
8
|
+
*/
|
|
9
|
+
retrieve(id: string, options?: RequestOptions): APIPromise<ConversationRetrieveResponse>;
|
|
10
|
+
/**
|
|
11
|
+
* List conversations for the project with optional filtering.
|
|
12
|
+
*
|
|
13
|
+
* Conversations store chat history between users and agents. Use filters to narrow
|
|
14
|
+
* down results by agent name or identity fields.
|
|
15
|
+
*
|
|
16
|
+
* **Filters:**
|
|
17
|
+
*
|
|
18
|
+
* - `agent_name`: Filter by agent name
|
|
19
|
+
* - `identity.*`: Filter by identity fields (e.g., identity.user_id=user_123)
|
|
20
|
+
*/
|
|
21
|
+
list(query?: ConversationListParams | null | undefined, options?: RequestOptions): PagePromise<ConversationsCursor, Conversation>;
|
|
22
|
+
/**
|
|
23
|
+
* Delete a conversation and all its messages. This action cannot be undone.
|
|
24
|
+
*/
|
|
25
|
+
delete(id: string, options?: RequestOptions): APIPromise<void>;
|
|
26
|
+
}
|
|
27
|
+
export type ConversationsCursor = Cursor<Conversation>;
|
|
28
|
+
export interface Conversation {
|
|
29
|
+
/**
|
|
30
|
+
* Unique conversation ID
|
|
31
|
+
*/
|
|
32
|
+
id: string;
|
|
33
|
+
/**
|
|
34
|
+
* Agent name
|
|
35
|
+
*/
|
|
36
|
+
agentName: string;
|
|
37
|
+
/**
|
|
38
|
+
* When the conversation was created
|
|
39
|
+
*/
|
|
40
|
+
createdAt: string;
|
|
41
|
+
/**
|
|
42
|
+
* Identity fields for conversation scoping
|
|
43
|
+
*/
|
|
44
|
+
identity: {
|
|
45
|
+
[key: string]: unknown;
|
|
46
|
+
};
|
|
47
|
+
/**
|
|
48
|
+
* Project ID
|
|
49
|
+
*/
|
|
50
|
+
projectId: string;
|
|
51
|
+
/**
|
|
52
|
+
* When the conversation was last updated
|
|
53
|
+
*/
|
|
54
|
+
updatedAt: string;
|
|
55
|
+
}
|
|
56
|
+
export interface ConversationRetrieveResponse extends Conversation {
|
|
57
|
+
/**
|
|
58
|
+
* Conversation messages
|
|
59
|
+
*/
|
|
60
|
+
messages: Array<ConversationRetrieveResponse.Message>;
|
|
61
|
+
}
|
|
62
|
+
export declare namespace ConversationRetrieveResponse {
|
|
63
|
+
interface Message {
|
|
64
|
+
/**
|
|
65
|
+
* Unique message ID
|
|
66
|
+
*/
|
|
67
|
+
id: string;
|
|
68
|
+
/**
|
|
69
|
+
* Message content
|
|
70
|
+
*/
|
|
71
|
+
content: string | null;
|
|
72
|
+
/**
|
|
73
|
+
* Conversation ID
|
|
74
|
+
*/
|
|
75
|
+
conversationId: string;
|
|
76
|
+
/**
|
|
77
|
+
* When the message was created
|
|
78
|
+
*/
|
|
79
|
+
createdAt: string;
|
|
80
|
+
/**
|
|
81
|
+
* Tool name (for tool messages)
|
|
82
|
+
*/
|
|
83
|
+
name: string | null;
|
|
84
|
+
/**
|
|
85
|
+
* Message role
|
|
86
|
+
*/
|
|
87
|
+
role: 'system' | 'user' | 'assistant' | 'tool';
|
|
88
|
+
/**
|
|
89
|
+
* Tool call ID (for tool messages)
|
|
90
|
+
*/
|
|
91
|
+
toolCallId: string | null;
|
|
92
|
+
/**
|
|
93
|
+
* Tool calls (for assistant messages)
|
|
94
|
+
*/
|
|
95
|
+
toolCalls?: unknown;
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
export interface ConversationListParams extends CursorParams {
|
|
99
|
+
/**
|
|
100
|
+
* Filter by agent name
|
|
101
|
+
*/
|
|
102
|
+
agent_name?: string;
|
|
103
|
+
}
|
|
104
|
+
export declare namespace Conversations {
|
|
105
|
+
export { type Conversation as Conversation, type ConversationRetrieveResponse as ConversationRetrieveResponse, type ConversationsCursor as ConversationsCursor, type ConversationListParams as ConversationListParams, };
|
|
106
|
+
}
|
|
107
|
+
//# sourceMappingURL=conversations.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"conversations.d.ts","sourceRoot":"","sources":["../src/resources/conversations.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,MAAM,EAAE,KAAK,YAAY,EAAE,WAAW,EAAE;OAE1C,EAAE,cAAc,EAAE;AAGzB,qBAAa,aAAc,SAAQ,WAAW;IAC5C;;OAEG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,4BAA4B,CAAC;IAIxF;;;;;;;;;;OAUG;IACH,IAAI,CACF,KAAK,GAAE,sBAAsB,GAAG,IAAI,GAAG,SAAc,EACrD,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,mBAAmB,EAAE,YAAY,CAAC;IAIjD;;OAEG;IACH,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAA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,IAAI,4BAA4B,EACjE,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,sBAAsB,IAAI,sBAAsB,GACtD,CAAC;CACH"}
|
|
@@ -0,0 +1,41 @@
|
|
|
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 resource_1 = require("../core/resource.js");
|
|
6
|
+
const pagination_1 = require("../core/pagination.js");
|
|
7
|
+
const headers_1 = require("../internal/headers.js");
|
|
8
|
+
const path_1 = require("../internal/utils/path.js");
|
|
9
|
+
class Conversations extends resource_1.APIResource {
|
|
10
|
+
/**
|
|
11
|
+
* Get details of a specific conversation including all messages.
|
|
12
|
+
*/
|
|
13
|
+
retrieve(id, options) {
|
|
14
|
+
return this._client.get((0, path_1.path) `/conversations/${id}`, options);
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* List conversations for the project with optional filtering.
|
|
18
|
+
*
|
|
19
|
+
* Conversations store chat history between users and agents. Use filters to narrow
|
|
20
|
+
* down results by agent name or identity fields.
|
|
21
|
+
*
|
|
22
|
+
* **Filters:**
|
|
23
|
+
*
|
|
24
|
+
* - `agent_name`: Filter by agent name
|
|
25
|
+
* - `identity.*`: Filter by identity fields (e.g., identity.user_id=user_123)
|
|
26
|
+
*/
|
|
27
|
+
list(query = {}, options) {
|
|
28
|
+
return this._client.getAPIList('/conversations', (pagination_1.Cursor), { query, ...options });
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Delete a conversation and all its messages. This action cannot be undone.
|
|
32
|
+
*/
|
|
33
|
+
delete(id, options) {
|
|
34
|
+
return this._client.delete((0, path_1.path) `/conversations/${id}`, {
|
|
35
|
+
...options,
|
|
36
|
+
headers: (0, headers_1.buildHeaders)([{ Accept: '*/*' }, options?.headers]),
|
|
37
|
+
});
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
exports.Conversations = Conversations;
|
|
41
|
+
//# sourceMappingURL=conversations.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"conversations.js","sourceRoot":"","sources":["../src/resources/conversations.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAE/C,sDAA4E;AAC5E,oDAAmD;AAEnD,oDAA8C;AAE9C,MAAa,aAAc,SAAQ,sBAAW;IAC5C;;OAEG;IACH,QAAQ,CAAC,EAAU,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,kBAAkB,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IAC/D,CAAC;IAED;;;;;;;;;;OAUG;IACH,IAAI,CACF,QAAmD,EAAE,EACrD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,gBAAgB,EAAE,CAAA,mBAAoB,CAAA,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAChG,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,EAAU,EAAE,OAAwB;QACzC,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAA,WAAI,EAAA,kBAAkB,EAAE,EAAE,EAAE;YACrD,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;CACF;AAnCD,sCAmCC"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from "../core/resource.mjs";
|
|
3
|
+
import { Cursor } from "../core/pagination.mjs";
|
|
4
|
+
import { buildHeaders } from "../internal/headers.mjs";
|
|
5
|
+
import { path } from "../internal/utils/path.mjs";
|
|
6
|
+
export class Conversations extends APIResource {
|
|
7
|
+
/**
|
|
8
|
+
* Get details of a specific conversation including all messages.
|
|
9
|
+
*/
|
|
10
|
+
retrieve(id, options) {
|
|
11
|
+
return this._client.get(path `/conversations/${id}`, options);
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* List conversations for the project with optional filtering.
|
|
15
|
+
*
|
|
16
|
+
* Conversations store chat history between users and agents. Use filters to narrow
|
|
17
|
+
* down results by agent name or identity fields.
|
|
18
|
+
*
|
|
19
|
+
* **Filters:**
|
|
20
|
+
*
|
|
21
|
+
* - `agent_name`: Filter by agent name
|
|
22
|
+
* - `identity.*`: Filter by identity fields (e.g., identity.user_id=user_123)
|
|
23
|
+
*/
|
|
24
|
+
list(query = {}, options) {
|
|
25
|
+
return this._client.getAPIList('/conversations', (Cursor), { query, ...options });
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Delete a conversation and all its messages. This action cannot be undone.
|
|
29
|
+
*/
|
|
30
|
+
delete(id, options) {
|
|
31
|
+
return this._client.delete(path `/conversations/${id}`, {
|
|
32
|
+
...options,
|
|
33
|
+
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
34
|
+
});
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
//# sourceMappingURL=conversations.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"conversations.mjs","sourceRoot":"","sources":["../src/resources/conversations.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAEf,EAAE,MAAM,EAAkC;OAC1C,EAAE,YAAY,EAAE;OAEhB,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,aAAc,SAAQ,WAAW;IAC5C;;OAEG;IACH,QAAQ,CAAC,EAAU,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,kBAAkB,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IAC/D,CAAC;IAED;;;;;;;;;;OAUG;IACH,IAAI,CACF,QAAmD,EAAE,EACrD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,gBAAgB,EAAE,CAAA,MAAoB,CAAA,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAChG,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,EAAU,EAAE,OAAwB;QACzC,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAA,kBAAkB,EAAE,EAAE,EAAE;YACrD,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;CACF"}
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
import { APIResource } from "../core/resource.mjs";
|
|
2
|
+
import { APIPromise } from "../core/api-promise.mjs";
|
|
3
|
+
import { Cursor, type CursorParams, PagePromise } from "../core/pagination.mjs";
|
|
4
|
+
import { RequestOptions } from "../internal/request-options.mjs";
|
|
5
|
+
export declare class ExecutionLogs extends APIResource {
|
|
6
|
+
/**
|
|
7
|
+
* Get details of a specific execution log by ID.
|
|
8
|
+
*/
|
|
9
|
+
retrieve(id: string, options?: RequestOptions): APIPromise<ExecutionLog>;
|
|
10
|
+
/**
|
|
11
|
+
* List execution logs for the project with optional filtering.
|
|
12
|
+
*
|
|
13
|
+
* Execution logs track all agent invocations, chats, and tool executions. Use
|
|
14
|
+
* filters to narrow down results by type, source, name, or status.
|
|
15
|
+
*
|
|
16
|
+
* **Filters:**
|
|
17
|
+
*
|
|
18
|
+
* - `type`: Filter by execution type (agent_execute, tool_execute)
|
|
19
|
+
* - `source`: Filter by request source (api, cli, dashboard, widget, sdk)
|
|
20
|
+
* - `name`: Filter by agent or tool name
|
|
21
|
+
* - `status`: Filter by result status (success, error, timeout)
|
|
22
|
+
*/
|
|
23
|
+
list(query?: ExecutionLogListParams | null | undefined, options?: RequestOptions): PagePromise<ExecutionLogsCursor, ExecutionLog>;
|
|
24
|
+
}
|
|
25
|
+
export type ExecutionLogsCursor = Cursor<ExecutionLog>;
|
|
26
|
+
export interface ExecutionLog {
|
|
27
|
+
/**
|
|
28
|
+
* Unique execution log ID
|
|
29
|
+
*/
|
|
30
|
+
id: string;
|
|
31
|
+
/**
|
|
32
|
+
* When the execution occurred
|
|
33
|
+
*/
|
|
34
|
+
createdAt: string;
|
|
35
|
+
/**
|
|
36
|
+
* Execution duration in milliseconds
|
|
37
|
+
*/
|
|
38
|
+
durationMs: number | null;
|
|
39
|
+
/**
|
|
40
|
+
* Error message (null for success)
|
|
41
|
+
*/
|
|
42
|
+
error: string | null;
|
|
43
|
+
/**
|
|
44
|
+
* Agent or tool name
|
|
45
|
+
*/
|
|
46
|
+
name: string;
|
|
47
|
+
/**
|
|
48
|
+
* Project ID
|
|
49
|
+
*/
|
|
50
|
+
projectId: string;
|
|
51
|
+
/**
|
|
52
|
+
* Where the request originated
|
|
53
|
+
*/
|
|
54
|
+
source: 'api' | 'cli' | 'dashboard' | 'widget' | 'sdk';
|
|
55
|
+
/**
|
|
56
|
+
* Execution result status
|
|
57
|
+
*/
|
|
58
|
+
status: 'success' | 'error' | 'timeout';
|
|
59
|
+
/**
|
|
60
|
+
* Type of execution
|
|
61
|
+
*/
|
|
62
|
+
type: 'agent_execute' | 'agent_chat' | 'tool_execute';
|
|
63
|
+
/**
|
|
64
|
+
* Input parameters
|
|
65
|
+
*/
|
|
66
|
+
input?: unknown;
|
|
67
|
+
/**
|
|
68
|
+
* Output from execution (null for errors)
|
|
69
|
+
*/
|
|
70
|
+
output?: unknown;
|
|
71
|
+
}
|
|
72
|
+
export interface ExecutionLogListParams extends CursorParams {
|
|
73
|
+
/**
|
|
74
|
+
* Filter by agent or tool name
|
|
75
|
+
*/
|
|
76
|
+
name?: string;
|
|
77
|
+
/**
|
|
78
|
+
* Filter by request source
|
|
79
|
+
*/
|
|
80
|
+
source?: 'api' | 'cli' | 'dashboard' | 'widget' | 'sdk';
|
|
81
|
+
/**
|
|
82
|
+
* Filter by execution status
|
|
83
|
+
*/
|
|
84
|
+
status?: 'success' | 'error' | 'timeout';
|
|
85
|
+
/**
|
|
86
|
+
* Filter by execution type
|
|
87
|
+
*/
|
|
88
|
+
type?: 'agent_execute' | 'agent_chat' | 'tool_execute';
|
|
89
|
+
}
|
|
90
|
+
export declare namespace ExecutionLogs {
|
|
91
|
+
export { type ExecutionLog as ExecutionLog, type ExecutionLogsCursor as ExecutionLogsCursor, type ExecutionLogListParams as ExecutionLogListParams, };
|
|
92
|
+
}
|
|
93
|
+
//# sourceMappingURL=execution-logs.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"execution-logs.d.mts","sourceRoot":"","sources":["../src/resources/execution-logs.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,MAAM,EAAE,KAAK,YAAY,EAAE,WAAW,EAAE;OAC1C,EAAE,cAAc,EAAE;AAGzB,qBAAa,aAAc,SAAQ,WAAW;IAC5C;;OAEG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,YAAY,CAAC;IAIxE;;;;;;;;;;;;OAYG;IACH,IAAI,CACF,KAAK,GAAE,sBAAsB,GAAG,IAAI,GAAG,SAAc,EACrD,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,mBAAmB,EAAE,YAAY,CAAC;CAGlD;AAED,MAAM,MAAM,mBAAmB,GAAG,MAAM,CAAC,YAAY,CAAC,CAAC;AAEvD,MAAM,WAAW,YAAY;IAC3B;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAE1B;;OAEG;IACH,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IAErB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,MAAM,EAAE,KAAK,GAAG,KAAK,GAAG,WAAW,GAAG,QAAQ,GAAG,KAAK,CAAC;IAEvD;;OAEG;IACH,MAAM,EAAE,SAAS,GAAG,OAAO,GAAG,SAAS,CAAC;IAExC;;OAEG;IACH,IAAI,EAAE,eAAe,GAAG,YAAY,GAAG,cAAc,CAAC;IAEtD;;OAEG;IACH,KAAK,CAAC,EAAE,OAAO,CAAC;IAEhB;;OAEG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB;AAED,MAAM,WAAW,sBAAuB,SAAQ,YAAY;IAC1D;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,MAAM,CAAC,EAAE,KAAK,GAAG,KAAK,GAAG,WAAW,GAAG,QAAQ,GAAG,KAAK,CAAC;IAExD;;OAEG;IACH,MAAM,CAAC,EAAE,SAAS,GAAG,OAAO,GAAG,SAAS,CAAC;IAEzC;;OAEG;IACH,IAAI,CAAC,EAAE,eAAe,GAAG,YAAY,GAAG,cAAc,CAAC;CACxD;AAED,MAAM,CAAC,OAAO,WAAW,aAAa,CAAC;IACrC,OAAO,EACL,KAAK,YAAY,IAAI,YAAY,EACjC,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,sBAAsB,IAAI,sBAAsB,GACtD,CAAC;CACH"}
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
import { APIResource } from "../core/resource.js";
|
|
2
|
+
import { APIPromise } from "../core/api-promise.js";
|
|
3
|
+
import { Cursor, type CursorParams, PagePromise } from "../core/pagination.js";
|
|
4
|
+
import { RequestOptions } from "../internal/request-options.js";
|
|
5
|
+
export declare class ExecutionLogs extends APIResource {
|
|
6
|
+
/**
|
|
7
|
+
* Get details of a specific execution log by ID.
|
|
8
|
+
*/
|
|
9
|
+
retrieve(id: string, options?: RequestOptions): APIPromise<ExecutionLog>;
|
|
10
|
+
/**
|
|
11
|
+
* List execution logs for the project with optional filtering.
|
|
12
|
+
*
|
|
13
|
+
* Execution logs track all agent invocations, chats, and tool executions. Use
|
|
14
|
+
* filters to narrow down results by type, source, name, or status.
|
|
15
|
+
*
|
|
16
|
+
* **Filters:**
|
|
17
|
+
*
|
|
18
|
+
* - `type`: Filter by execution type (agent_execute, tool_execute)
|
|
19
|
+
* - `source`: Filter by request source (api, cli, dashboard, widget, sdk)
|
|
20
|
+
* - `name`: Filter by agent or tool name
|
|
21
|
+
* - `status`: Filter by result status (success, error, timeout)
|
|
22
|
+
*/
|
|
23
|
+
list(query?: ExecutionLogListParams | null | undefined, options?: RequestOptions): PagePromise<ExecutionLogsCursor, ExecutionLog>;
|
|
24
|
+
}
|
|
25
|
+
export type ExecutionLogsCursor = Cursor<ExecutionLog>;
|
|
26
|
+
export interface ExecutionLog {
|
|
27
|
+
/**
|
|
28
|
+
* Unique execution log ID
|
|
29
|
+
*/
|
|
30
|
+
id: string;
|
|
31
|
+
/**
|
|
32
|
+
* When the execution occurred
|
|
33
|
+
*/
|
|
34
|
+
createdAt: string;
|
|
35
|
+
/**
|
|
36
|
+
* Execution duration in milliseconds
|
|
37
|
+
*/
|
|
38
|
+
durationMs: number | null;
|
|
39
|
+
/**
|
|
40
|
+
* Error message (null for success)
|
|
41
|
+
*/
|
|
42
|
+
error: string | null;
|
|
43
|
+
/**
|
|
44
|
+
* Agent or tool name
|
|
45
|
+
*/
|
|
46
|
+
name: string;
|
|
47
|
+
/**
|
|
48
|
+
* Project ID
|
|
49
|
+
*/
|
|
50
|
+
projectId: string;
|
|
51
|
+
/**
|
|
52
|
+
* Where the request originated
|
|
53
|
+
*/
|
|
54
|
+
source: 'api' | 'cli' | 'dashboard' | 'widget' | 'sdk';
|
|
55
|
+
/**
|
|
56
|
+
* Execution result status
|
|
57
|
+
*/
|
|
58
|
+
status: 'success' | 'error' | 'timeout';
|
|
59
|
+
/**
|
|
60
|
+
* Type of execution
|
|
61
|
+
*/
|
|
62
|
+
type: 'agent_execute' | 'agent_chat' | 'tool_execute';
|
|
63
|
+
/**
|
|
64
|
+
* Input parameters
|
|
65
|
+
*/
|
|
66
|
+
input?: unknown;
|
|
67
|
+
/**
|
|
68
|
+
* Output from execution (null for errors)
|
|
69
|
+
*/
|
|
70
|
+
output?: unknown;
|
|
71
|
+
}
|
|
72
|
+
export interface ExecutionLogListParams extends CursorParams {
|
|
73
|
+
/**
|
|
74
|
+
* Filter by agent or tool name
|
|
75
|
+
*/
|
|
76
|
+
name?: string;
|
|
77
|
+
/**
|
|
78
|
+
* Filter by request source
|
|
79
|
+
*/
|
|
80
|
+
source?: 'api' | 'cli' | 'dashboard' | 'widget' | 'sdk';
|
|
81
|
+
/**
|
|
82
|
+
* Filter by execution status
|
|
83
|
+
*/
|
|
84
|
+
status?: 'success' | 'error' | 'timeout';
|
|
85
|
+
/**
|
|
86
|
+
* Filter by execution type
|
|
87
|
+
*/
|
|
88
|
+
type?: 'agent_execute' | 'agent_chat' | 'tool_execute';
|
|
89
|
+
}
|
|
90
|
+
export declare namespace ExecutionLogs {
|
|
91
|
+
export { type ExecutionLog as ExecutionLog, type ExecutionLogsCursor as ExecutionLogsCursor, type ExecutionLogListParams as ExecutionLogListParams, };
|
|
92
|
+
}
|
|
93
|
+
//# sourceMappingURL=execution-logs.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"execution-logs.d.ts","sourceRoot":"","sources":["../src/resources/execution-logs.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,MAAM,EAAE,KAAK,YAAY,EAAE,WAAW,EAAE;OAC1C,EAAE,cAAc,EAAE;AAGzB,qBAAa,aAAc,SAAQ,WAAW;IAC5C;;OAEG;IACH,QAAQ,CAAC,EA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E,eAAe,GAAG,YAAY,GAAG,cAAc,CAAC;CACxD;AAED,MAAM,CAAC,OAAO,WAAW,aAAa,CAAC;IACrC,OAAO,EACL,KAAK,YAAY,IAAI,YAAY,EACjC,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,sBAAsB,IAAI,sBAAsB,GACtD,CAAC;CACH"}
|
|
@@ -0,0 +1,33 @@
|
|
|
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.ExecutionLogs = void 0;
|
|
5
|
+
const resource_1 = require("../core/resource.js");
|
|
6
|
+
const pagination_1 = require("../core/pagination.js");
|
|
7
|
+
const path_1 = require("../internal/utils/path.js");
|
|
8
|
+
class ExecutionLogs extends resource_1.APIResource {
|
|
9
|
+
/**
|
|
10
|
+
* Get details of a specific execution log by ID.
|
|
11
|
+
*/
|
|
12
|
+
retrieve(id, options) {
|
|
13
|
+
return this._client.get((0, path_1.path) `/execution-logs/${id}`, options);
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* List execution logs for the project with optional filtering.
|
|
17
|
+
*
|
|
18
|
+
* Execution logs track all agent invocations, chats, and tool executions. Use
|
|
19
|
+
* filters to narrow down results by type, source, name, or status.
|
|
20
|
+
*
|
|
21
|
+
* **Filters:**
|
|
22
|
+
*
|
|
23
|
+
* - `type`: Filter by execution type (agent_execute, tool_execute)
|
|
24
|
+
* - `source`: Filter by request source (api, cli, dashboard, widget, sdk)
|
|
25
|
+
* - `name`: Filter by agent or tool name
|
|
26
|
+
* - `status`: Filter by result status (success, error, timeout)
|
|
27
|
+
*/
|
|
28
|
+
list(query = {}, options) {
|
|
29
|
+
return this._client.getAPIList('/execution-logs', (pagination_1.Cursor), { query, ...options });
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
exports.ExecutionLogs = ExecutionLogs;
|
|
33
|
+
//# sourceMappingURL=execution-logs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"execution-logs.js","sourceRoot":"","sources":["../src/resources/execution-logs.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAE/C,sDAA4E;AAE5E,oDAA8C;AAE9C,MAAa,aAAc,SAAQ,sBAAW;IAC5C;;OAEG;IACH,QAAQ,CAAC,EAAU,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,mBAAmB,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IAChE,CAAC;IAED;;;;;;;;;;;;OAYG;IACH,IAAI,CACF,QAAmD,EAAE,EACrD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,iBAAiB,EAAE,CAAA,mBAAoB,CAAA,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACjG,CAAC;CACF;AA3BD,sCA2BC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from "../core/resource.mjs";
|
|
3
|
+
import { Cursor } from "../core/pagination.mjs";
|
|
4
|
+
import { path } from "../internal/utils/path.mjs";
|
|
5
|
+
export class ExecutionLogs extends APIResource {
|
|
6
|
+
/**
|
|
7
|
+
* Get details of a specific execution log by ID.
|
|
8
|
+
*/
|
|
9
|
+
retrieve(id, options) {
|
|
10
|
+
return this._client.get(path `/execution-logs/${id}`, options);
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* List execution logs for the project with optional filtering.
|
|
14
|
+
*
|
|
15
|
+
* Execution logs track all agent invocations, chats, and tool executions. Use
|
|
16
|
+
* filters to narrow down results by type, source, name, or status.
|
|
17
|
+
*
|
|
18
|
+
* **Filters:**
|
|
19
|
+
*
|
|
20
|
+
* - `type`: Filter by execution type (agent_execute, tool_execute)
|
|
21
|
+
* - `source`: Filter by request source (api, cli, dashboard, widget, sdk)
|
|
22
|
+
* - `name`: Filter by agent or tool name
|
|
23
|
+
* - `status`: Filter by result status (success, error, timeout)
|
|
24
|
+
*/
|
|
25
|
+
list(query = {}, options) {
|
|
26
|
+
return this._client.getAPIList('/execution-logs', (Cursor), { query, ...options });
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
//# sourceMappingURL=execution-logs.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"execution-logs.mjs","sourceRoot":"","sources":["../src/resources/execution-logs.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAEf,EAAE,MAAM,EAAkC;OAE1C,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,aAAc,SAAQ,WAAW;IAC5C;;OAEG;IACH,QAAQ,CAAC,EAAU,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,mBAAmB,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IAChE,CAAC;IAED;;;;;;;;;;;;OAYG;IACH,IAAI,CACF,QAAmD,EAAE,EACrD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,iBAAiB,EAAE,CAAA,MAAoB,CAAA,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACjG,CAAC;CACF"}
|
package/resources/index.d.mts
CHANGED
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
export { Agents, type
|
|
1
|
+
export { Agents, type Agent, type AgentConfig, type ChatMessage, type StreamChunk, type AgentChatResponse, type AgentInvokeResponse, type AgentListParams, type AgentChatParams, type AgentChatParamsNonStreaming, type AgentChatParamsStreaming, type AgentInvokeParams, type AgentInvokeParamsNonStreaming, type AgentInvokeParamsStreaming, type AgentsCursor, } from "./agents.mjs";
|
|
2
2
|
export { ClientTokens, type ClientTokenCreateResponse, type ClientTokenCreateParams } from "./client-tokens.mjs";
|
|
3
|
-
export {
|
|
3
|
+
export { Conversations, type Conversation, type ConversationRetrieveResponse, type ConversationListParams, type ConversationsCursor, } from "./conversations.mjs";
|
|
4
|
+
export { ExecutionLogs, type ExecutionLog, type ExecutionLogListParams, type ExecutionLogsCursor, } from "./execution-logs.mjs";
|
|
5
|
+
export { Projects, type Project } from "./projects.mjs";
|
|
6
|
+
export { Tools, type Tool, type ToolCallResponse, type ToolListParams, type ToolCallParams, type ToolsCursor, } from "./tools.mjs";
|
|
4
7
|
//# sourceMappingURL=index.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"OAEO,EACL,MAAM,EACN,KAAK,WAAW,EAChB,KAAK,
|
|
1
|
+
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"OAEO,EACL,MAAM,EACN,KAAK,KAAK,EACV,KAAK,WAAW,EAChB,KAAK,WAAW,EAChB,KAAK,WAAW,EAChB,KAAK,iBAAiB,EACtB,KAAK,mBAAmB,EACxB,KAAK,eAAe,EACpB,KAAK,eAAe,EACpB,KAAK,2BAA2B,EAChC,KAAK,wBAAwB,EAC7B,KAAK,iBAAiB,EACtB,KAAK,6BAA6B,EAClC,KAAK,0BAA0B,EAC/B,KAAK,YAAY,GAClB;OACM,EAAE,YAAY,EAAE,KAAK,yBAAyB,EAAE,KAAK,uBAAuB,EAAE;OAC9E,EACL,aAAa,EACb,KAAK,YAAY,EACjB,KAAK,4BAA4B,EACjC,KAAK,sBAAsB,EAC3B,KAAK,mBAAmB,GACzB;OACM,EACL,aAAa,EACb,KAAK,YAAY,EACjB,KAAK,sBAAsB,EAC3B,KAAK,mBAAmB,GACzB;OACM,EAAE,QAAQ,EAAE,KAAK,OAAO,EAAE;OAC1B,EACL,KAAK,EACL,KAAK,IAAI,EACT,KAAK,gBAAgB,EACrB,KAAK,cAAc,EACnB,KAAK,cAAc,EACnB,KAAK,WAAW,GACjB"}
|
package/resources/index.d.ts
CHANGED
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
export { Agents, type
|
|
1
|
+
export { Agents, type Agent, type AgentConfig, type ChatMessage, type StreamChunk, type AgentChatResponse, type AgentInvokeResponse, type AgentListParams, type AgentChatParams, type AgentChatParamsNonStreaming, type AgentChatParamsStreaming, type AgentInvokeParams, type AgentInvokeParamsNonStreaming, type AgentInvokeParamsStreaming, type AgentsCursor, } from "./agents.js";
|
|
2
2
|
export { ClientTokens, type ClientTokenCreateResponse, type ClientTokenCreateParams } from "./client-tokens.js";
|
|
3
|
-
export {
|
|
3
|
+
export { Conversations, type Conversation, type ConversationRetrieveResponse, type ConversationListParams, type ConversationsCursor, } from "./conversations.js";
|
|
4
|
+
export { ExecutionLogs, type ExecutionLog, type ExecutionLogListParams, type ExecutionLogsCursor, } from "./execution-logs.js";
|
|
5
|
+
export { Projects, type Project } from "./projects.js";
|
|
6
|
+
export { Tools, type Tool, type ToolCallResponse, type ToolListParams, type ToolCallParams, type ToolsCursor, } from "./tools.js";
|
|
4
7
|
//# sourceMappingURL=index.d.ts.map
|
package/resources/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"OAEO,EACL,MAAM,EACN,KAAK,WAAW,EAChB,KAAK,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"OAEO,EACL,MAAM,EACN,KAAK,KAAK,EACV,KAAK,WAAW,EAChB,KAAK,WAAW,EAChB,KAAK,WAAW,EAChB,KAAK,iBAAiB,EACtB,KAAK,mBAAmB,EACxB,KAAK,eAAe,EACpB,KAAK,eAAe,EACpB,KAAK,2BAA2B,EAChC,KAAK,wBAAwB,EAC7B,KAAK,iBAAiB,EACtB,KAAK,6BAA6B,EAClC,KAAK,0BAA0B,EAC/B,KAAK,YAAY,GAClB;OACM,EAAE,YAAY,EAAE,KAAK,yBAAyB,EAAE,KAAK,uBAAuB,EAAE;OAC9E,EACL,aAAa,EACb,KAAK,YAAY,EACjB,KAAK,4BAA4B,EACjC,KAAK,sBAAsB,EAC3B,KAAK,mBAAmB,GACzB;OACM,EACL,aAAa,EACb,KAAK,YAAY,EACjB,KAAK,sBAAsB,EAC3B,KAAK,mBAAmB,GACzB;OACM,EAAE,QAAQ,EAAE,KAAK,OAAO,EAAE;OAC1B,EACL,KAAK,EACL,KAAK,IAAI,EACT,KAAK,gBAAgB,EACrB,KAAK,cAAc,EACnB,KAAK,cAAc,EACnB,KAAK,WAAW,GACjB"}
|
package/resources/index.js
CHANGED
|
@@ -1,11 +1,17 @@
|
|
|
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.Projects = exports.ClientTokens = exports.Agents = void 0;
|
|
4
|
+
exports.Tools = exports.Projects = exports.ExecutionLogs = exports.Conversations = exports.ClientTokens = 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
7
|
var client_tokens_1 = require("./client-tokens.js");
|
|
8
8
|
Object.defineProperty(exports, "ClientTokens", { enumerable: true, get: function () { return client_tokens_1.ClientTokens; } });
|
|
9
|
+
var conversations_1 = require("./conversations.js");
|
|
10
|
+
Object.defineProperty(exports, "Conversations", { enumerable: true, get: function () { return conversations_1.Conversations; } });
|
|
11
|
+
var execution_logs_1 = require("./execution-logs.js");
|
|
12
|
+
Object.defineProperty(exports, "ExecutionLogs", { enumerable: true, get: function () { return execution_logs_1.ExecutionLogs; } });
|
|
9
13
|
var projects_1 = require("./projects.js");
|
|
10
14
|
Object.defineProperty(exports, "Projects", { enumerable: true, get: function () { return projects_1.Projects; } });
|
|
15
|
+
var tools_1 = require("./tools.js");
|
|
16
|
+
Object.defineProperty(exports, "Tools", { enumerable: true, get: function () { return tools_1.Tools; } });
|
|
11
17
|
//# sourceMappingURL=index.js.map
|
package/resources/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,sCAgBkB;AAfhB,gGAAA,MAAM,OAAA;AAgBR,oDAA6G;AAApG,6GAAA,YAAY,OAAA;AACrB,oDAMyB;AALvB,8GAAA,aAAa,OAAA;AAMf,sDAK0B;AAJxB,+GAAA,aAAa,OAAA;AAKf,0CAAoD;AAA3C,oGAAA,QAAQ,OAAA;AACjB,oCAOiB;AANf,8FAAA,KAAK,OAAA"}
|
package/resources/index.mjs
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
export { Agents, } from "./agents.mjs";
|
|
3
3
|
export { ClientTokens } from "./client-tokens.mjs";
|
|
4
|
+
export { Conversations, } from "./conversations.mjs";
|
|
5
|
+
export { ExecutionLogs, } from "./execution-logs.mjs";
|
|
4
6
|
export { Projects } from "./projects.mjs";
|
|
7
|
+
export { Tools, } from "./tools.mjs";
|
|
5
8
|
//# sourceMappingURL=index.mjs.map
|