@letta-ai/letta-client 1.6.6 → 1.6.8
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 +23 -0
- package/client.d.mts +4 -13
- package/client.d.mts.map +1 -1
- package/client.d.ts +4 -13
- package/client.d.ts.map +1 -1
- package/client.js +0 -9
- package/client.js.map +1 -1
- package/client.mjs +0 -9
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/agents/agents.d.mts +165 -13
- package/resources/agents/agents.d.mts.map +1 -1
- package/resources/agents/agents.d.ts +165 -13
- package/resources/agents/agents.d.ts.map +1 -1
- package/resources/agents/agents.js +0 -8
- package/resources/agents/agents.js.map +1 -1
- package/resources/agents/agents.mjs +0 -8
- package/resources/agents/agents.mjs.map +1 -1
- package/resources/agents/index.d.mts +1 -3
- package/resources/agents/index.d.mts.map +1 -1
- package/resources/agents/index.d.ts +1 -3
- package/resources/agents/index.d.ts.map +1 -1
- package/resources/agents/index.js +1 -5
- package/resources/agents/index.js.map +1 -1
- package/resources/agents/index.mjs +0 -2
- package/resources/agents/index.mjs.map +1 -1
- package/resources/agents/messages.d.mts +1 -2
- package/resources/agents/messages.d.mts.map +1 -1
- package/resources/agents/messages.d.ts +1 -2
- package/resources/agents/messages.d.ts.map +1 -1
- package/resources/agents/messages.js.map +1 -1
- package/resources/agents/messages.mjs.map +1 -1
- package/resources/conversations/conversations.d.mts +12 -3
- package/resources/conversations/conversations.d.mts.map +1 -1
- package/resources/conversations/conversations.d.ts +12 -3
- package/resources/conversations/conversations.d.ts.map +1 -1
- package/resources/conversations/conversations.js +8 -0
- package/resources/conversations/conversations.js.map +1 -1
- package/resources/conversations/conversations.mjs +8 -0
- package/resources/conversations/conversations.mjs.map +1 -1
- package/resources/conversations/index.d.mts +2 -2
- package/resources/conversations/index.d.mts.map +1 -1
- package/resources/conversations/index.d.ts +2 -2
- package/resources/conversations/index.d.ts.map +1 -1
- package/resources/conversations/index.js.map +1 -1
- package/resources/conversations/index.mjs.map +1 -1
- package/resources/conversations/messages.d.mts +12 -16
- package/resources/conversations/messages.d.mts.map +1 -1
- package/resources/conversations/messages.d.ts +12 -16
- package/resources/conversations/messages.d.ts.map +1 -1
- package/resources/conversations/messages.js +3 -3
- package/resources/conversations/messages.js.map +1 -1
- package/resources/conversations/messages.mjs +3 -3
- package/resources/conversations/messages.mjs.map +1 -1
- package/resources/index.d.mts +2 -5
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +2 -5
- 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/resources/messages.d.mts +6 -1
- package/resources/messages.d.mts.map +1 -1
- package/resources/messages.d.ts +6 -1
- package/resources/messages.d.ts.map +1 -1
- package/resources/messages.js +7 -0
- package/resources/messages.js.map +1 -1
- package/resources/messages.mjs +7 -0
- package/resources/messages.mjs.map +1 -1
- package/src/client.ts +4 -79
- package/src/resources/agents/agents.ts +210 -37
- package/src/resources/agents/index.ts +0 -13
- package/src/resources/agents/messages.ts +1 -3
- package/src/resources/conversations/conversations.ts +12 -2
- package/src/resources/conversations/index.ts +1 -1
- package/src/resources/conversations/messages.ts +17 -19
- package/src/resources/index.ts +2 -35
- package/src/resources/messages.ts +11 -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
- package/resources/agents/groups.d.mts +0 -22
- package/resources/agents/groups.d.mts.map +0 -1
- package/resources/agents/groups.d.ts +0 -22
- package/resources/agents/groups.d.ts.map +0 -1
- package/resources/agents/groups.js +0 -20
- package/resources/agents/groups.js.map +0 -1
- package/resources/agents/groups.mjs +0 -16
- package/resources/agents/groups.mjs.map +0 -1
- package/resources/agents/schedule.d.mts +0 -197
- package/resources/agents/schedule.d.mts.map +0 -1
- package/resources/agents/schedule.d.ts +0 -197
- package/resources/agents/schedule.d.ts.map +0 -1
- package/resources/agents/schedule.js +0 -40
- package/resources/agents/schedule.js.map +0 -1
- package/resources/agents/schedule.mjs +0 -36
- package/resources/agents/schedule.mjs.map +0 -1
- package/resources/batches/batches.d.mts +0 -240
- package/resources/batches/batches.d.mts.map +0 -1
- package/resources/batches/batches.d.ts +0 -240
- package/resources/batches/batches.d.ts.map +0 -1
- package/resources/batches/batches.js +0 -46
- package/resources/batches/batches.js.map +0 -1
- package/resources/batches/batches.mjs +0 -41
- package/resources/batches/batches.mjs.map +0 -1
- package/resources/batches/index.d.mts +0 -3
- package/resources/batches/index.d.mts.map +0 -1
- package/resources/batches/index.d.ts +0 -3
- package/resources/batches/index.d.ts.map +0 -1
- package/resources/batches/index.js +0 -9
- package/resources/batches/index.js.map +0 -1
- package/resources/batches/index.mjs +0 -4
- package/resources/batches/index.mjs.map +0 -1
- package/resources/batches/messages.d.mts +0 -22
- package/resources/batches/messages.d.mts.map +0 -1
- package/resources/batches/messages.d.ts +0 -22
- package/resources/batches/messages.d.ts.map +0 -1
- package/resources/batches/messages.js +0 -17
- package/resources/batches/messages.js.map +0 -1
- package/resources/batches/messages.mjs +0 -13
- package/resources/batches/messages.mjs.map +0 -1
- package/resources/batches.d.mts +0 -2
- package/resources/batches.d.mts.map +0 -1
- package/resources/batches.d.ts +0 -2
- package/resources/batches.d.ts.map +0 -1
- package/resources/batches.js +0 -6
- package/resources/batches.js.map +0 -1
- package/resources/batches.mjs +0 -3
- package/resources/batches.mjs.map +0 -1
- package/resources/groups/groups.d.mts +0 -197
- package/resources/groups/groups.d.mts.map +0 -1
- package/resources/groups/groups.d.ts +0 -197
- package/resources/groups/groups.d.ts.map +0 -1
- package/resources/groups/groups.js +0 -49
- package/resources/groups/groups.js.map +0 -1
- package/resources/groups/groups.mjs +0 -44
- package/resources/groups/groups.mjs.map +0 -1
- package/resources/groups/index.d.mts +0 -3
- package/resources/groups/index.d.mts.map +0 -1
- package/resources/groups/index.d.ts +0 -3
- package/resources/groups/index.d.ts.map +0 -1
- package/resources/groups/index.js +0 -9
- package/resources/groups/index.js.map +0 -1
- package/resources/groups/index.mjs +0 -4
- package/resources/groups/index.mjs.map +0 -1
- package/resources/groups/messages.d.mts +0 -360
- package/resources/groups/messages.d.mts.map +0 -1
- package/resources/groups/messages.d.ts +0 -360
- package/resources/groups/messages.d.ts.map +0 -1
- package/resources/groups/messages.js +0 -54
- package/resources/groups/messages.js.map +0 -1
- package/resources/groups/messages.mjs +0 -50
- package/resources/groups/messages.mjs.map +0 -1
- package/resources/groups.d.mts +0 -2
- package/resources/groups.d.mts.map +0 -1
- package/resources/groups.d.ts +0 -2
- package/resources/groups.d.ts.map +0 -1
- package/resources/groups.js +0 -6
- package/resources/groups.js.map +0 -1
- package/resources/groups.mjs +0 -3
- package/resources/groups.mjs.map +0 -1
- package/resources/identities/agents.d.mts +0 -23
- package/resources/identities/agents.d.mts.map +0 -1
- package/resources/identities/agents.d.ts +0 -23
- package/resources/identities/agents.d.ts.map +0 -1
- package/resources/identities/agents.js +0 -17
- package/resources/identities/agents.js.map +0 -1
- package/resources/identities/agents.mjs +0 -13
- package/resources/identities/agents.mjs.map +0 -1
- package/resources/identities/blocks.d.mts +0 -18
- package/resources/identities/blocks.d.mts.map +0 -1
- package/resources/identities/blocks.d.ts +0 -18
- package/resources/identities/blocks.d.ts.map +0 -1
- package/resources/identities/blocks.js +0 -17
- package/resources/identities/blocks.js.map +0 -1
- package/resources/identities/blocks.mjs +0 -13
- package/resources/identities/blocks.mjs.map +0 -1
- package/resources/identities/identities.d.mts +0 -204
- package/resources/identities/identities.d.mts.map +0 -1
- package/resources/identities/identities.d.ts +0 -204
- package/resources/identities/identities.d.ts.map +0 -1
- package/resources/identities/identities.js +0 -63
- package/resources/identities/identities.js.map +0 -1
- package/resources/identities/identities.mjs +0 -58
- package/resources/identities/identities.mjs.map +0 -1
- package/resources/identities/index.d.mts +0 -5
- package/resources/identities/index.d.mts.map +0 -1
- package/resources/identities/index.d.ts +0 -5
- package/resources/identities/index.d.ts.map +0 -1
- package/resources/identities/index.js +0 -13
- package/resources/identities/index.js.map +0 -1
- package/resources/identities/index.mjs +0 -6
- package/resources/identities/index.mjs.map +0 -1
- package/resources/identities/properties.d.mts +0 -18
- package/resources/identities/properties.d.mts.map +0 -1
- package/resources/identities/properties.d.ts +0 -18
- package/resources/identities/properties.d.ts.map +0 -1
- package/resources/identities/properties.js +0 -17
- package/resources/identities/properties.js.map +0 -1
- package/resources/identities/properties.mjs +0 -13
- package/resources/identities/properties.mjs.map +0 -1
- package/resources/identities.d.mts +0 -2
- package/resources/identities.d.mts.map +0 -1
- package/resources/identities.d.ts +0 -2
- package/resources/identities.d.ts.map +0 -1
- package/resources/identities.js +0 -6
- package/resources/identities.js.map +0 -1
- package/resources/identities.mjs +0 -3
- package/resources/identities.mjs.map +0 -1
- package/src/resources/agents/groups.ts +0 -37
- package/src/resources/agents/schedule.ts +0 -361
- package/src/resources/batches/batches.ts +0 -317
- package/src/resources/batches/index.ts +0 -11
- package/src/resources/batches/messages.ts +0 -38
- package/src/resources/batches.ts +0 -3
- package/src/resources/groups/groups.ts +0 -334
- package/src/resources/groups/index.ts +0 -27
- package/src/resources/groups/messages.ts +0 -505
- package/src/resources/groups.ts +0 -3
- package/src/resources/identities/agents.ts +0 -48
- package/src/resources/identities/blocks.ts +0 -33
- package/src/resources/identities/identities.ts +0 -286
- package/src/resources/identities/index.ts +0 -17
- package/src/resources/identities/properties.ts +0 -30
- package/src/resources/identities.ts +0 -3
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { APIResource } from "../../core/resource.mjs";
|
|
2
2
|
import * as AgentsAPI from "../agents/agents.mjs";
|
|
3
3
|
import * as MessagesAPI from "../agents/messages.mjs";
|
|
4
|
+
import { MessagesArrayPage } from "../agents/messages.mjs";
|
|
4
5
|
import { APIPromise } from "../../core/api-promise.mjs";
|
|
6
|
+
import { type ArrayPageParams, PagePromise } from "../../core/pagination.mjs";
|
|
5
7
|
import { Stream } from "../../core/streaming.mjs";
|
|
6
8
|
import { RequestOptions } from "../../internal/request-options.mjs";
|
|
7
9
|
export declare class Messages extends APIResource {
|
|
@@ -16,10 +18,9 @@ export declare class Messages extends APIResource {
|
|
|
16
18
|
* List all messages in a conversation.
|
|
17
19
|
*
|
|
18
20
|
* Returns LettaMessage objects (UserMessage, AssistantMessage, etc.) for all
|
|
19
|
-
* messages in the conversation,
|
|
20
|
-
* for cursor-based pagination.
|
|
21
|
+
* messages in the conversation, with support for cursor-based pagination.
|
|
21
22
|
*/
|
|
22
|
-
list(conversationID: string, query?: MessageListParams | null | undefined, options?: RequestOptions):
|
|
23
|
+
list(conversationID: string, query?: MessageListParams | null | undefined, options?: RequestOptions): PagePromise<MessagesArrayPage, MessagesAPI.Message>;
|
|
23
24
|
/**
|
|
24
25
|
* Resume the stream for the most recent active run in a conversation.
|
|
25
26
|
*
|
|
@@ -28,7 +29,6 @@ export declare class Messages extends APIResource {
|
|
|
28
29
|
*/
|
|
29
30
|
stream(conversationID: string, body?: MessageStreamParams | undefined, options?: RequestOptions): APIPromise<Stream<MessagesAPI.LettaStreamingResponse>>;
|
|
30
31
|
}
|
|
31
|
-
export type MessageListResponse = Array<MessagesAPI.Message>;
|
|
32
32
|
export type MessageStreamResponse = unknown;
|
|
33
33
|
export interface MessageCreateParams {
|
|
34
34
|
/**
|
|
@@ -156,21 +156,16 @@ export declare namespace MessageCreateParams {
|
|
|
156
156
|
}
|
|
157
157
|
}
|
|
158
158
|
}
|
|
159
|
-
export interface MessageListParams {
|
|
159
|
+
export interface MessageListParams extends ArrayPageParams {
|
|
160
160
|
/**
|
|
161
|
-
*
|
|
162
|
-
* ID in the conversation
|
|
161
|
+
* Group ID to filter messages by.
|
|
163
162
|
*/
|
|
164
|
-
|
|
163
|
+
group_id?: string | null;
|
|
165
164
|
/**
|
|
166
|
-
*
|
|
167
|
-
*
|
|
165
|
+
* Whether to include error messages and error statuses. For debugging purposes
|
|
166
|
+
* only.
|
|
168
167
|
*/
|
|
169
|
-
|
|
170
|
-
/**
|
|
171
|
-
* Maximum number of messages to return
|
|
172
|
-
*/
|
|
173
|
-
limit?: number | null;
|
|
168
|
+
include_err?: boolean | null;
|
|
174
169
|
}
|
|
175
170
|
export interface MessageStreamParams {
|
|
176
171
|
/**
|
|
@@ -193,6 +188,7 @@ export interface MessageStreamParams {
|
|
|
193
188
|
starting_after?: number;
|
|
194
189
|
}
|
|
195
190
|
export declare namespace Messages {
|
|
196
|
-
export { type
|
|
191
|
+
export { type MessageStreamResponse as MessageStreamResponse, type MessageCreateParams as MessageCreateParams, type MessageListParams as MessageListParams, type MessageStreamParams as MessageStreamParams, };
|
|
197
192
|
}
|
|
193
|
+
export { type MessagesArrayPage };
|
|
198
194
|
//# sourceMappingURL=messages.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"messages.d.mts","sourceRoot":"","sources":["../../src/resources/conversations/messages.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,SAAS;OACd,KAAK,WAAW;OAChB,EAAE,UAAU,EAAE;OACd,EAAE,MAAM,EAAE;OACV,EAAE,cAAc,EAAE;AAGzB,qBAAa,QAAS,SAAQ,WAAW;IACvC;;;;;OAKG;IACH,MAAM,CACJ,cAAc,EAAE,MAAM,EACtB,IAAI,EAAE,mBAAmB,EACzB,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,MAAM,CAAC,WAAW,CAAC,sBAAsB,CAAC,CAAC;IAQzD
|
|
1
|
+
{"version":3,"file":"messages.d.mts","sourceRoot":"","sources":["../../src/resources/conversations/messages.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,SAAS;OACd,KAAK,WAAW;OAChB,EAAE,iBAAiB,EAAE;OACrB,EAAE,UAAU,EAAE;OACd,EAAa,KAAK,eAAe,EAAE,WAAW,EAAE;OAChD,EAAE,MAAM,EAAE;OACV,EAAE,cAAc,EAAE;AAGzB,qBAAa,QAAS,SAAQ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I,CAAC;IAEzB;;;OAGG;IACH,WAAW,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;CAC9B;AAED,MAAM,WAAW,mBAAmB;IAClC;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAE3B;;;OAGG;IACH,aAAa,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;IAE/B;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAE9B;;;OAGG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAED,MAAM,CAAC,OAAO,WAAW,QAAQ,CAAC;IAChC,OAAO,EACL,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,mBAAmB,IAAI,mBAAmB,GAChD,CAAC;CACH;AAED,OAAO,EAAE,KAAK,iBAAiB,EAAE,CAAC"}
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { APIResource } from "../../core/resource.js";
|
|
2
2
|
import * as AgentsAPI from "../agents/agents.js";
|
|
3
3
|
import * as MessagesAPI from "../agents/messages.js";
|
|
4
|
+
import { MessagesArrayPage } from "../agents/messages.js";
|
|
4
5
|
import { APIPromise } from "../../core/api-promise.js";
|
|
6
|
+
import { type ArrayPageParams, PagePromise } from "../../core/pagination.js";
|
|
5
7
|
import { Stream } from "../../core/streaming.js";
|
|
6
8
|
import { RequestOptions } from "../../internal/request-options.js";
|
|
7
9
|
export declare class Messages extends APIResource {
|
|
@@ -16,10 +18,9 @@ export declare class Messages extends APIResource {
|
|
|
16
18
|
* List all messages in a conversation.
|
|
17
19
|
*
|
|
18
20
|
* Returns LettaMessage objects (UserMessage, AssistantMessage, etc.) for all
|
|
19
|
-
* messages in the conversation,
|
|
20
|
-
* for cursor-based pagination.
|
|
21
|
+
* messages in the conversation, with support for cursor-based pagination.
|
|
21
22
|
*/
|
|
22
|
-
list(conversationID: string, query?: MessageListParams | null | undefined, options?: RequestOptions):
|
|
23
|
+
list(conversationID: string, query?: MessageListParams | null | undefined, options?: RequestOptions): PagePromise<MessagesArrayPage, MessagesAPI.Message>;
|
|
23
24
|
/**
|
|
24
25
|
* Resume the stream for the most recent active run in a conversation.
|
|
25
26
|
*
|
|
@@ -28,7 +29,6 @@ export declare class Messages extends APIResource {
|
|
|
28
29
|
*/
|
|
29
30
|
stream(conversationID: string, body?: MessageStreamParams | undefined, options?: RequestOptions): APIPromise<Stream<MessagesAPI.LettaStreamingResponse>>;
|
|
30
31
|
}
|
|
31
|
-
export type MessageListResponse = Array<MessagesAPI.Message>;
|
|
32
32
|
export type MessageStreamResponse = unknown;
|
|
33
33
|
export interface MessageCreateParams {
|
|
34
34
|
/**
|
|
@@ -156,21 +156,16 @@ export declare namespace MessageCreateParams {
|
|
|
156
156
|
}
|
|
157
157
|
}
|
|
158
158
|
}
|
|
159
|
-
export interface MessageListParams {
|
|
159
|
+
export interface MessageListParams extends ArrayPageParams {
|
|
160
160
|
/**
|
|
161
|
-
*
|
|
162
|
-
* ID in the conversation
|
|
161
|
+
* Group ID to filter messages by.
|
|
163
162
|
*/
|
|
164
|
-
|
|
163
|
+
group_id?: string | null;
|
|
165
164
|
/**
|
|
166
|
-
*
|
|
167
|
-
*
|
|
165
|
+
* Whether to include error messages and error statuses. For debugging purposes
|
|
166
|
+
* only.
|
|
168
167
|
*/
|
|
169
|
-
|
|
170
|
-
/**
|
|
171
|
-
* Maximum number of messages to return
|
|
172
|
-
*/
|
|
173
|
-
limit?: number | null;
|
|
168
|
+
include_err?: boolean | null;
|
|
174
169
|
}
|
|
175
170
|
export interface MessageStreamParams {
|
|
176
171
|
/**
|
|
@@ -193,6 +188,7 @@ export interface MessageStreamParams {
|
|
|
193
188
|
starting_after?: number;
|
|
194
189
|
}
|
|
195
190
|
export declare namespace Messages {
|
|
196
|
-
export { type
|
|
191
|
+
export { type MessageStreamResponse as MessageStreamResponse, type MessageCreateParams as MessageCreateParams, type MessageListParams as MessageListParams, type MessageStreamParams as MessageStreamParams, };
|
|
197
192
|
}
|
|
193
|
+
export { type MessagesArrayPage };
|
|
198
194
|
//# sourceMappingURL=messages.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"messages.d.ts","sourceRoot":"","sources":["../../src/resources/conversations/messages.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,SAAS;OACd,KAAK,WAAW;OAChB,EAAE,UAAU,EAAE;OACd,EAAE,MAAM,EAAE;OACV,EAAE,cAAc,EAAE;AAGzB,qBAAa,QAAS,SAAQ,WAAW;IACvC;;;;;OAKG;IACH,MAAM,CACJ,cAAc,EAAE,MAAM,EACtB,IAAI,EAAE,mBAAmB,EACzB,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,MAAM,CAAC,WAAW,CAAC,sBAAsB,CAAC,CAAC;IAQzD
|
|
1
|
+
{"version":3,"file":"messages.d.ts","sourceRoot":"","sources":["../../src/resources/conversations/messages.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,SAAS;OACd,KAAK,WAAW;OAChB,EAAE,iBAAiB,EAAE;OACrB,EAAE,UAAU,EAAE;OACd,EAAa,KAAK,eAAe,EAAE,WAAW,EAAE;OAChD,EAAE,MAAM,EAAE;OACV,EAAE,cAAc,EAAE;AAGzB,qBAAa,QAAS,SAAQ,WAAW;IACvC;;;;;OAKG;IACH,MAAM,CACJ,cAAc,EAAE,MAAM,EACtB,IAAI,EAAE,mBAAmB,EACzB,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,MAAM,CAAC,WAAW,CAAC,sBAAsB,CAAC,CAAC;IAQzD;;;;;OAKG;IACH,IAAI,CACF,cAAc,EAAE,MAAM,EACtB,KAAK,GAAE,iBAAiB,GAAG,IAAI,GAAG,SAAc,EAChD,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,iBAAiB,EAAE,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AAED,MAAM,CAAC,OAAO,WAAW,QAAQ,CAAC;IAChC,OAAO,EACL,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,mBAAmB,IAAI,mBAAmB,GAChD,CAAC;CACH;AAED,OAAO,EAAE,KAAK,iBAAiB,EAAE,CAAC"}
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
exports.Messages = void 0;
|
|
5
5
|
const resource_1 = require("../../core/resource.js");
|
|
6
|
+
const pagination_1 = require("../../core/pagination.js");
|
|
6
7
|
const path_1 = require("../../internal/utils/path.js");
|
|
7
8
|
class Messages extends resource_1.APIResource {
|
|
8
9
|
/**
|
|
@@ -22,11 +23,10 @@ class Messages extends resource_1.APIResource {
|
|
|
22
23
|
* List all messages in a conversation.
|
|
23
24
|
*
|
|
24
25
|
* Returns LettaMessage objects (UserMessage, AssistantMessage, etc.) for all
|
|
25
|
-
* messages in the conversation,
|
|
26
|
-
* for cursor-based pagination.
|
|
26
|
+
* messages in the conversation, with support for cursor-based pagination.
|
|
27
27
|
*/
|
|
28
28
|
list(conversationID, query = {}, options) {
|
|
29
|
-
return this._client.
|
|
29
|
+
return this._client.getAPIList((0, path_1.path) `/v1/conversations/${conversationID}/messages`, (pagination_1.ArrayPage), { query, ...options });
|
|
30
30
|
}
|
|
31
31
|
/**
|
|
32
32
|
* Resume the stream for the most recent active run in a conversation.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"messages.js","sourceRoot":"","sources":["../../src/resources/conversations/messages.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;
|
|
1
|
+
{"version":3,"file":"messages.js","sourceRoot":"","sources":["../../src/resources/conversations/messages.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAKlD,yDAAqF;AAGrF,uDAAiD;AAEjD,MAAa,QAAS,SAAQ,sBAAW;IACvC;;;;;OAKG;IACH,MAAM,CACJ,cAAsB,EACtB,IAAyB,EACzB,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,qBAAqB,cAAc,WAAW,EAAE;YAC3E,IAAI;YACJ,GAAG,OAAO;YACV,MAAM,EAAE,IAAI;SACb,CAA2D,CAAC;IAC/D,CAAC;IAED;;;;;OAKG;IACH,IAAI,CACF,cAAsB,EACtB,QAA8C,EAAE,EAChD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAC5B,IAAA,WAAI,EAAA,qBAAqB,cAAc,WAAW,EAClD,CAAA,sBAA8B,CAAA,EAC9B,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CACtB,CAAC;IACJ,CAAC;IAED;;;;;OAKG;IACH,MAAM,CACJ,cAAsB,EACtB,OAAwC,EAAE,EAC1C,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,qBAAqB,cAAc,SAAS,EAAE;YACzE,IAAI;YACJ,GAAG,OAAO;YACV,MAAM,EAAE,IAAI;SACb,CAA2D,CAAC;IAC/D,CAAC;CACF;AAtDD,4BAsDC"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
import { APIResource } from "../../core/resource.mjs";
|
|
3
|
+
import { ArrayPage } from "../../core/pagination.mjs";
|
|
3
4
|
import { path } from "../../internal/utils/path.mjs";
|
|
4
5
|
export class Messages extends APIResource {
|
|
5
6
|
/**
|
|
@@ -19,11 +20,10 @@ export class Messages extends APIResource {
|
|
|
19
20
|
* List all messages in a conversation.
|
|
20
21
|
*
|
|
21
22
|
* Returns LettaMessage objects (UserMessage, AssistantMessage, etc.) for all
|
|
22
|
-
* messages in the conversation,
|
|
23
|
-
* for cursor-based pagination.
|
|
23
|
+
* messages in the conversation, with support for cursor-based pagination.
|
|
24
24
|
*/
|
|
25
25
|
list(conversationID, query = {}, options) {
|
|
26
|
-
return this._client.
|
|
26
|
+
return this._client.getAPIList(path `/v1/conversations/${conversationID}/messages`, (ArrayPage), { query, ...options });
|
|
27
27
|
}
|
|
28
28
|
/**
|
|
29
29
|
* Resume the stream for the most recent active run in a conversation.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"messages.mjs","sourceRoot":"","sources":["../../src/resources/conversations/messages.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;
|
|
1
|
+
{"version":3,"file":"messages.mjs","sourceRoot":"","sources":["../../src/resources/conversations/messages.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAKf,EAAE,SAAS,EAAqC;OAGhD,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,QAAS,SAAQ,WAAW;IACvC;;;;;OAKG;IACH,MAAM,CACJ,cAAsB,EACtB,IAAyB,EACzB,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,qBAAqB,cAAc,WAAW,EAAE;YAC3E,IAAI;YACJ,GAAG,OAAO;YACV,MAAM,EAAE,IAAI;SACb,CAA2D,CAAC;IAC/D,CAAC;IAED;;;;;OAKG;IACH,IAAI,CACF,cAAsB,EACtB,QAA8C,EAAE,EAChD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAC5B,IAAI,CAAA,qBAAqB,cAAc,WAAW,EAClD,CAAA,SAA8B,CAAA,EAC9B,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CACtB,CAAC;IACJ,CAAC;IAED;;;;;OAKG;IACH,MAAM,CACJ,cAAsB,EACtB,OAAwC,EAAE,EAC1C,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,qBAAqB,cAAc,SAAS,EAAE;YACzE,IAAI;YACJ,GAAG,OAAO;YACV,MAAM,EAAE,IAAI;SACb,CAA2D,CAAC;IAC/D,CAAC;CACF"}
|
package/resources/index.d.mts
CHANGED
|
@@ -1,14 +1,11 @@
|
|
|
1
1
|
export { AccessTokens, type AccessTokenCreateResponse, type AccessTokenListResponse, type AccessTokenDeleteResponse, type AccessTokenCreateParams, type AccessTokenListParams, type AccessTokenDeleteParams, } from "./access-tokens.mjs";
|
|
2
2
|
export { Agents, type AgentEnvironmentVariable, type AgentState, type AgentType, type AnthropicModelSettings, type AzureModelSettings, type BedrockModelSettings, type ChildToolRule, type ConditionalToolRule, type ContinueToolRule, type DeepseekModelSettings, type GoogleAIModelSettings, type GoogleVertexModelSettings, type GroqModelSettings, type InitToolRule, type JsonObjectResponseFormat, type JsonSchemaResponseFormat, type LettaMessageContentUnion, type MaxCountPerStepToolRule, type MessageCreate, type OpenAIModelSettings, type ParentToolRule, type RequiredBeforeExitToolRule, type RequiresApprovalToolRule, type TerminalToolRule, type TextResponseFormat, type TogetherModelSettings, type XaiModelSettings, type AgentDeleteResponse, type AgentExportFileResponse, type AgentImportFileResponse, type AgentCreateParams, type AgentRetrieveParams, type AgentUpdateParams, type AgentListParams, type AgentExportFileParams, type AgentImportFileParams, type AgentStatesArrayPage, } from "./agents/agents.mjs";
|
|
3
3
|
export { Archives, type Archive, type VectorDBProvider, type ArchiveCreateParams, type ArchiveUpdateParams, type ArchiveListParams, type ArchivesArrayPage, } from "./archives/archives.mjs";
|
|
4
|
-
export { Batches, type BatchJob, type BatchCancelResponse, type BatchCreateParams, type BatchListParams, type BatchJobsArrayPage, } from "./batches/batches.mjs";
|
|
5
4
|
export { Blocks, type BlockResponse, type CreateBlock, type BlockDeleteResponse, type BlockCreateParams, type BlockUpdateParams, type BlockListParams, type BlockResponsesArrayPage, } from "./blocks/blocks.mjs";
|
|
6
|
-
export { Conversations, type Conversation, type CreateConversation, type ConversationListResponse, type ConversationCreateParams, type ConversationListParams, } from "./conversations/conversations.mjs";
|
|
5
|
+
export { Conversations, type Conversation, type CreateConversation, type ConversationListResponse, type ConversationCancelResponse, type ConversationCreateParams, type ConversationListParams, } from "./conversations/conversations.mjs";
|
|
7
6
|
export { Folders, type Folder, type FolderDeleteResponse, type FolderCreateParams, type FolderUpdateParams, type FolderListParams, type FoldersArrayPage, } from "./folders/folders.mjs";
|
|
8
|
-
export { Groups, type DynamicManager, type Group, type ManagerType, type RoundRobinManager, type SleeptimeManager, type SupervisorManager, type VoiceSleeptimeManager, type GroupDeleteResponse, type GroupCreateParams, type GroupUpdateParams, type GroupListParams, type GroupsArrayPage, } from "./groups/groups.mjs";
|
|
9
|
-
export { Identities, type Identity, type IdentityProperty, type IdentityType, type IdentityDeleteResponse, type IdentityCreateParams, type IdentityUpdateParams, type IdentityListParams, type IdentityUpsertParams, type IdentitiesArrayPage, } from "./identities/identities.mjs";
|
|
10
7
|
export { McpServers, type CreateSseMcpServer, type CreateStdioMcpServer, type CreateStreamableHTTPMcpServer, type SseMcpServer, type StdioMcpServer, type StreamableHTTPMcpServer, type UpdateSseMcpServer, type UpdateStdioMcpServer, type UpdateStreamableHTTPMcpServer, type McpServerCreateResponse, type McpServerRetrieveResponse, type McpServerUpdateResponse, type McpServerListResponse, type McpServerRefreshResponse, type McpServerCreateParams, type McpServerUpdateParams, type McpServerRefreshParams, } from "./mcp-servers/mcp-servers.mjs";
|
|
11
|
-
export { Messages, type MessageSearchRequest, type MessageSearchResult, type MessageListResponse, type MessageSearchResponse, type MessageListParams, type MessageSearchParams, } from "./messages.mjs";
|
|
8
|
+
export { Messages, type MessageSearchRequest, type MessageSearchResult, type MessageRetrieveResponse, type MessageListResponse, type MessageSearchResponse, type MessageListParams, type MessageSearchParams, } from "./messages.mjs";
|
|
12
9
|
export { Models, type EmbeddingConfig, type EmbeddingModel, type LlmConfig, type Model, type ProviderCategory, type ProviderType, type ModelListResponse, type ModelListParams, } from "./models/models.mjs";
|
|
13
10
|
export { Passages, type Passage, type PassageSearchResponse, type PassageSearchParams } from "./passages.mjs";
|
|
14
11
|
export { Runs, type Job, type StopReasonType, type RunListParams } from "./runs/runs.mjs";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"OAEO,EACL,YAAY,EACZ,KAAK,yBAAyB,EAC9B,KAAK,uBAAuB,EAC5B,KAAK,yBAAyB,EAC9B,KAAK,uBAAuB,EAC5B,KAAK,qBAAqB,EAC1B,KAAK,uBAAuB,GAC7B;OACM,EACL,MAAM,EACN,KAAK,wBAAwB,EAC7B,KAAK,UAAU,EACf,KAAK,SAAS,EACd,KAAK,sBAAsB,EAC3B,KAAK,kBAAkB,EACvB,KAAK,oBAAoB,EACzB,KAAK,aAAa,EAClB,KAAK,mBAAmB,EACxB,KAAK,gBAAgB,EACrB,KAAK,qBAAqB,EAC1B,KAAK,qBAAqB,EAC1B,KAAK,yBAAyB,EAC9B,KAAK,iBAAiB,EACtB,KAAK,YAAY,EACjB,KAAK,wBAAwB,EAC7B,KAAK,wBAAwB,EAC7B,KAAK,wBAAwB,EAC7B,KAAK,uBAAuB,EAC5B,KAAK,aAAa,EAClB,KAAK,mBAAmB,EACxB,KAAK,cAAc,EACnB,KAAK,0BAA0B,EAC/B,KAAK,wBAAwB,EAC7B,KAAK,gBAAgB,EACrB,KAAK,kBAAkB,EACvB,KAAK,qBAAqB,EAC1B,KAAK,gBAAgB,EACrB,KAAK,mBAAmB,EACxB,KAAK,uBAAuB,EAC5B,KAAK,uBAAuB,EAC5B,KAAK,iBAAiB,EACtB,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,EACtB,KAAK,eAAe,EACpB,KAAK,qBAAqB,EAC1B,KAAK,qBAAqB,EAC1B,KAAK,oBAAoB,GAC1B;OACM,EACL,QAAQ,EACR,KAAK,OAAO,EACZ,KAAK,gBAAgB,EACrB,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,EACxB,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,GAAG,EAAE,KAAK,cAAc,EAAE,KAAK,aAAa,EAAE;OAC3D,EACL,KAAK,EACL,KAAK,aAAa,EAClB,KAAK,IAAI,EACT,KAAK,cAAc,EACnB,KAAK,cAAc,GACpB;OACM,EAAE,IAAI,EAAE,KAAK,eAAe,EAAE,KAAK,aAAa,EAAE;OAClD,EACL,SAAS,EACT,KAAK,sBAAsB,EAC3B,KAAK,sBAAsB,EAC3B,KAAK,sBAAsB,EAC3B,KAAK,oBAAoB,EACzB,KAAK,oBAAoB,EACzB,KAAK,oBAAoB,GAC1B;OACM,EACL,KAAK,EACL,KAAK,cAAc,EACnB,KAAK,cAAc,EACnB,KAAK,IAAI,EACT,KAAK,UAAU,EACf,KAAK,iBAAiB,EACtB,KAAK,iBAAiB,EACtB,KAAK,gBAAgB,EACrB,KAAK,QAAQ,EACb,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,EACvB,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACrB,KAAK,cAAc,EACnB,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACrB,KAAK,cAAc,GACpB;OACM,EAAE,KAAK,cAAc,EAAE"}
|
package/resources/index.d.ts
CHANGED
|
@@ -1,14 +1,11 @@
|
|
|
1
1
|
export { AccessTokens, type AccessTokenCreateResponse, type AccessTokenListResponse, type AccessTokenDeleteResponse, type AccessTokenCreateParams, type AccessTokenListParams, type AccessTokenDeleteParams, } from "./access-tokens.js";
|
|
2
2
|
export { Agents, type AgentEnvironmentVariable, type AgentState, type AgentType, type AnthropicModelSettings, type AzureModelSettings, type BedrockModelSettings, type ChildToolRule, type ConditionalToolRule, type ContinueToolRule, type DeepseekModelSettings, type GoogleAIModelSettings, type GoogleVertexModelSettings, type GroqModelSettings, type InitToolRule, type JsonObjectResponseFormat, type JsonSchemaResponseFormat, type LettaMessageContentUnion, type MaxCountPerStepToolRule, type MessageCreate, type OpenAIModelSettings, type ParentToolRule, type RequiredBeforeExitToolRule, type RequiresApprovalToolRule, type TerminalToolRule, type TextResponseFormat, type TogetherModelSettings, type XaiModelSettings, type AgentDeleteResponse, type AgentExportFileResponse, type AgentImportFileResponse, type AgentCreateParams, type AgentRetrieveParams, type AgentUpdateParams, type AgentListParams, type AgentExportFileParams, type AgentImportFileParams, type AgentStatesArrayPage, } from "./agents/agents.js";
|
|
3
3
|
export { Archives, type Archive, type VectorDBProvider, type ArchiveCreateParams, type ArchiveUpdateParams, type ArchiveListParams, type ArchivesArrayPage, } from "./archives/archives.js";
|
|
4
|
-
export { Batches, type BatchJob, type BatchCancelResponse, type BatchCreateParams, type BatchListParams, type BatchJobsArrayPage, } from "./batches/batches.js";
|
|
5
4
|
export { Blocks, type BlockResponse, type CreateBlock, type BlockDeleteResponse, type BlockCreateParams, type BlockUpdateParams, type BlockListParams, type BlockResponsesArrayPage, } from "./blocks/blocks.js";
|
|
6
|
-
export { Conversations, type Conversation, type CreateConversation, type ConversationListResponse, type ConversationCreateParams, type ConversationListParams, } from "./conversations/conversations.js";
|
|
5
|
+
export { Conversations, type Conversation, type CreateConversation, type ConversationListResponse, type ConversationCancelResponse, type ConversationCreateParams, type ConversationListParams, } from "./conversations/conversations.js";
|
|
7
6
|
export { Folders, type Folder, type FolderDeleteResponse, type FolderCreateParams, type FolderUpdateParams, type FolderListParams, type FoldersArrayPage, } from "./folders/folders.js";
|
|
8
|
-
export { Groups, type DynamicManager, type Group, type ManagerType, type RoundRobinManager, type SleeptimeManager, type SupervisorManager, type VoiceSleeptimeManager, type GroupDeleteResponse, type GroupCreateParams, type GroupUpdateParams, type GroupListParams, type GroupsArrayPage, } from "./groups/groups.js";
|
|
9
|
-
export { Identities, type Identity, type IdentityProperty, type IdentityType, type IdentityDeleteResponse, type IdentityCreateParams, type IdentityUpdateParams, type IdentityListParams, type IdentityUpsertParams, type IdentitiesArrayPage, } from "./identities/identities.js";
|
|
10
7
|
export { McpServers, type CreateSseMcpServer, type CreateStdioMcpServer, type CreateStreamableHTTPMcpServer, type SseMcpServer, type StdioMcpServer, type StreamableHTTPMcpServer, type UpdateSseMcpServer, type UpdateStdioMcpServer, type UpdateStreamableHTTPMcpServer, type McpServerCreateResponse, type McpServerRetrieveResponse, type McpServerUpdateResponse, type McpServerListResponse, type McpServerRefreshResponse, type McpServerCreateParams, type McpServerUpdateParams, type McpServerRefreshParams, } from "./mcp-servers/mcp-servers.js";
|
|
11
|
-
export { Messages, type MessageSearchRequest, type MessageSearchResult, type MessageListResponse, type MessageSearchResponse, type MessageListParams, type MessageSearchParams, } from "./messages.js";
|
|
8
|
+
export { Messages, type MessageSearchRequest, type MessageSearchResult, type MessageRetrieveResponse, type MessageListResponse, type MessageSearchResponse, type MessageListParams, type MessageSearchParams, } from "./messages.js";
|
|
12
9
|
export { Models, type EmbeddingConfig, type EmbeddingModel, type LlmConfig, type Model, type ProviderCategory, type ProviderType, type ModelListResponse, type ModelListParams, } from "./models/models.js";
|
|
13
10
|
export { Passages, type Passage, type PassageSearchResponse, type PassageSearchParams } from "./passages.js";
|
|
14
11
|
export { Runs, type Job, type StopReasonType, type RunListParams } from "./runs/runs.js";
|
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,YAAY,EACZ,KAAK,yBAAyB,EAC9B,KAAK,uBAAuB,EAC5B,KAAK,yBAAyB,EAC9B,KAAK,uBAAuB,EAC5B,KAAK,qBAAqB,EAC1B,KAAK,uBAAuB,GAC7B;OACM,EACL,MAAM,EACN,KAAK,wBAAwB,EAC7B,KAAK,UAAU,EACf,KAAK,SAAS,EACd,KAAK,sBAAsB,EAC3B,KAAK,kBAAkB,EACvB,KAAK,oBAAoB,EACzB,KAAK,aAAa,EAClB,KAAK,mBAAmB,EACxB,KAAK,gBAAgB,EACrB,KAAK,qBAAqB,EAC1B,KAAK,qBAAqB,EAC1B,KAAK,yBAAyB,EAC9B,KAAK,iBAAiB,EACtB,KAAK,YA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AK,gBAAgB,EACrB,KAAK,cAAc,GACpB;OACM,EAAE,KAAK,cAAc,EAAE"}
|
package/resources/index.js
CHANGED
|
@@ -1,25 +1,19 @@
|
|
|
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.Tools = exports.Templates = exports.Tags = exports.Steps = exports.Runs = exports.Passages = exports.Models = exports.Messages = exports.McpServers = exports.
|
|
4
|
+
exports.Tools = exports.Templates = exports.Tags = exports.Steps = exports.Runs = exports.Passages = exports.Models = exports.Messages = exports.McpServers = exports.Folders = exports.Conversations = exports.Blocks = exports.Archives = exports.Agents = exports.AccessTokens = void 0;
|
|
5
5
|
var access_tokens_1 = require("./access-tokens.js");
|
|
6
6
|
Object.defineProperty(exports, "AccessTokens", { enumerable: true, get: function () { return access_tokens_1.AccessTokens; } });
|
|
7
7
|
var agents_1 = require("./agents/agents.js");
|
|
8
8
|
Object.defineProperty(exports, "Agents", { enumerable: true, get: function () { return agents_1.Agents; } });
|
|
9
9
|
var archives_1 = require("./archives/archives.js");
|
|
10
10
|
Object.defineProperty(exports, "Archives", { enumerable: true, get: function () { return archives_1.Archives; } });
|
|
11
|
-
var batches_1 = require("./batches/batches.js");
|
|
12
|
-
Object.defineProperty(exports, "Batches", { enumerable: true, get: function () { return batches_1.Batches; } });
|
|
13
11
|
var blocks_1 = require("./blocks/blocks.js");
|
|
14
12
|
Object.defineProperty(exports, "Blocks", { enumerable: true, get: function () { return blocks_1.Blocks; } });
|
|
15
13
|
var conversations_1 = require("./conversations/conversations.js");
|
|
16
14
|
Object.defineProperty(exports, "Conversations", { enumerable: true, get: function () { return conversations_1.Conversations; } });
|
|
17
15
|
var folders_1 = require("./folders/folders.js");
|
|
18
16
|
Object.defineProperty(exports, "Folders", { enumerable: true, get: function () { return folders_1.Folders; } });
|
|
19
|
-
var groups_1 = require("./groups/groups.js");
|
|
20
|
-
Object.defineProperty(exports, "Groups", { enumerable: true, get: function () { return groups_1.Groups; } });
|
|
21
|
-
var identities_1 = require("./identities/identities.js");
|
|
22
|
-
Object.defineProperty(exports, "Identities", { enumerable: true, get: function () { return identities_1.Identities; } });
|
|
23
17
|
var mcp_servers_1 = require("./mcp-servers/mcp-servers.js");
|
|
24
18
|
Object.defineProperty(exports, "McpServers", { enumerable: true, get: function () { return mcp_servers_1.McpServers; } });
|
|
25
19
|
var messages_1 = require("./messages.js");
|
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,oDAQyB;AAPvB,6GAAA,YAAY,OAAA;AAQd,6CAuCyB;AAtCvB,gGAAA,MAAM,OAAA;AAuCR,mDAQ6B;AAP3B,oGAAA,QAAQ,OAAA;AAQV,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,oDAQyB;AAPvB,6GAAA,YAAY,OAAA;AAQd,6CAuCyB;AAtCvB,gGAAA,MAAM,OAAA;AAuCR,mDAQ6B;AAP3B,oGAAA,QAAQ,OAAA;AAQV,6CASyB;AARvB,gGAAA,MAAM,OAAA;AASR,kEAQuC;AAPrC,8GAAA,aAAa,OAAA;AAQf,gDAQ2B;AAPzB,kGAAA,OAAO,OAAA;AAQT,4DAmBmC;AAlBjC,yGAAA,UAAU,OAAA;AAmBZ,0CASoB;AARlB,oGAAA,QAAQ,OAAA;AASV,6CAUyB;AATvB,gGAAA,MAAM,OAAA;AAUR,0CAA0G;AAAjG,oGAAA,QAAQ,OAAA;AACjB,uCAAsF;AAA7E,4FAAA,IAAI,OAAA;AACb,0CAMuB;AALrB,8FAAA,KAAK,OAAA;AAMP,kCAAwE;AAA/D,4FAAA,IAAI,OAAA;AACb,sDAQ+B;AAP7B,sGAAA,SAAS,OAAA;AAQX,oCAkBiB;AAjBf,8FAAA,KAAK,OAAA"}
|
package/resources/index.mjs
CHANGED
|
@@ -2,12 +2,9 @@
|
|
|
2
2
|
export { AccessTokens, } from "./access-tokens.mjs";
|
|
3
3
|
export { Agents, } from "./agents/agents.mjs";
|
|
4
4
|
export { Archives, } from "./archives/archives.mjs";
|
|
5
|
-
export { Batches, } from "./batches/batches.mjs";
|
|
6
5
|
export { Blocks, } from "./blocks/blocks.mjs";
|
|
7
6
|
export { Conversations, } from "./conversations/conversations.mjs";
|
|
8
7
|
export { Folders, } from "./folders/folders.mjs";
|
|
9
|
-
export { Groups, } from "./groups/groups.mjs";
|
|
10
|
-
export { Identities, } from "./identities/identities.mjs";
|
|
11
8
|
export { McpServers, } from "./mcp-servers/mcp-servers.mjs";
|
|
12
9
|
export { Messages, } from "./messages.mjs";
|
|
13
10
|
export { Models, } from "./models/models.mjs";
|
package/resources/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EACL,YAAY,GAOb;OACM,EACL,MAAM,GAsCP;OACM,EACL,QAAQ,GAOT;OACM,EACL,
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EACL,YAAY,GAOb;OACM,EACL,MAAM,GAsCP;OACM,EACL,QAAQ,GAOT;OACM,EACL,MAAM,GAQP;OACM,EACL,aAAa,GAOd;OACM,EACL,OAAO,GAOR;OACM,EACL,UAAU,GAkBX;OACM,EACL,QAAQ,GAQT;OACM,EACL,MAAM,GASP;OACM,EAAE,QAAQ,EAAsE;OAChF,EAAE,IAAI,EAAqD;OAC3D,EACL,KAAK,GAKN;OACM,EAAE,IAAI,EAA4C;OAClD,EACL,SAAS,GAOV;OACM,EACL,KAAK,GAiBN"}
|
package/resources/messages.d.mts
CHANGED
|
@@ -3,6 +3,10 @@ import * as AgentsMessagesAPI from "./agents/messages.mjs";
|
|
|
3
3
|
import { APIPromise } from "../core/api-promise.mjs";
|
|
4
4
|
import { RequestOptions } from "../internal/request-options.mjs";
|
|
5
5
|
export declare class Messages extends APIResource {
|
|
6
|
+
/**
|
|
7
|
+
* Retrieve a message by ID.
|
|
8
|
+
*/
|
|
9
|
+
retrieve(messageID: string, options?: RequestOptions): APIPromise<MessageRetrieveResponse>;
|
|
6
10
|
/**
|
|
7
11
|
* List messages across all agents for the current user.
|
|
8
12
|
*/
|
|
@@ -70,6 +74,7 @@ export interface MessageSearchResult {
|
|
|
70
74
|
*/
|
|
71
75
|
vector_rank?: number | null;
|
|
72
76
|
}
|
|
77
|
+
export type MessageRetrieveResponse = Array<AgentsMessagesAPI.Message>;
|
|
73
78
|
export type MessageListResponse = Array<AgentsMessagesAPI.Message>;
|
|
74
79
|
export type MessageSearchResponse = Array<MessageSearchResponse.SystemMessageListResult | MessageSearchResponse.UserMessageListResult | MessageSearchResponse.ReasoningMessageListResult | MessageSearchResponse.AssistantMessageListResult>;
|
|
75
80
|
export declare namespace MessageSearchResponse {
|
|
@@ -230,6 +235,6 @@ export interface MessageSearchParams {
|
|
|
230
235
|
start_date?: string | null;
|
|
231
236
|
}
|
|
232
237
|
export declare namespace Messages {
|
|
233
|
-
export { type MessageSearchRequest as MessageSearchRequest, type MessageSearchResult as MessageSearchResult, type MessageListResponse as MessageListResponse, type MessageSearchResponse as MessageSearchResponse, type MessageListParams as MessageListParams, type MessageSearchParams as MessageSearchParams, };
|
|
238
|
+
export { type MessageSearchRequest as MessageSearchRequest, type MessageSearchResult as MessageSearchResult, type MessageRetrieveResponse as MessageRetrieveResponse, type MessageListResponse as MessageListResponse, type MessageSearchResponse as MessageSearchResponse, type MessageListParams as MessageListParams, type MessageSearchParams as MessageSearchParams, };
|
|
234
239
|
}
|
|
235
240
|
//# sourceMappingURL=messages.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"messages.d.mts","sourceRoot":"","sources":["../src/resources/messages.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,iBAAiB;OACtB,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;
|
|
1
|
+
{"version":3,"file":"messages.d.mts","sourceRoot":"","sources":["../src/resources/messages.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,iBAAiB;OACtB,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,QAAS,SAAQ,WAAW;IACvC;;OAEG;IACH,QAAQ,CAAC,SAAS,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,uBAAuB,CAAC;IAI1F;;OAEG;IACH,IAAI,CACF,KAAK,GAAE,iBAAiB,GAAG,IAAI,GAAG,SAAc,EAChD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,mBAAmB,CAAC;IAIlC;;;;;OAKG;IACH,MAAM,CAAC,IAAI,EAAE,mBAAmB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,qBAAqB,CAAC;CAG/F;AAED,MAAM,WAAW,oBAAoB;IACnC;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEzB;;OAEG;IACH,eAAe,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEhC;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEzB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,WAAW,CAAC,EAAE,QAAQ,GAAG,KAAK,GAAG,QAAQ,CAAC;IAE1C;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC5B;AAED;;GAEG;AACH,MAAM,WAAW,mBAAmB;IACl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AAW,CAAC,EAAE,QAAQ,GAAG,KAAK,GAAG,QAAQ,CAAC;IAE1C;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC5B;AAED,MAAM,CAAC,OAAO,WAAW,QAAQ,CAAC;IAChC,OAAO,EACL,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,mBAAmB,IAAI,mBAAmB,GAChD,CAAC;CACH"}
|
package/resources/messages.d.ts
CHANGED
|
@@ -3,6 +3,10 @@ import * as AgentsMessagesAPI from "./agents/messages.js";
|
|
|
3
3
|
import { APIPromise } from "../core/api-promise.js";
|
|
4
4
|
import { RequestOptions } from "../internal/request-options.js";
|
|
5
5
|
export declare class Messages extends APIResource {
|
|
6
|
+
/**
|
|
7
|
+
* Retrieve a message by ID.
|
|
8
|
+
*/
|
|
9
|
+
retrieve(messageID: string, options?: RequestOptions): APIPromise<MessageRetrieveResponse>;
|
|
6
10
|
/**
|
|
7
11
|
* List messages across all agents for the current user.
|
|
8
12
|
*/
|
|
@@ -70,6 +74,7 @@ export interface MessageSearchResult {
|
|
|
70
74
|
*/
|
|
71
75
|
vector_rank?: number | null;
|
|
72
76
|
}
|
|
77
|
+
export type MessageRetrieveResponse = Array<AgentsMessagesAPI.Message>;
|
|
73
78
|
export type MessageListResponse = Array<AgentsMessagesAPI.Message>;
|
|
74
79
|
export type MessageSearchResponse = Array<MessageSearchResponse.SystemMessageListResult | MessageSearchResponse.UserMessageListResult | MessageSearchResponse.ReasoningMessageListResult | MessageSearchResponse.AssistantMessageListResult>;
|
|
75
80
|
export declare namespace MessageSearchResponse {
|
|
@@ -230,6 +235,6 @@ export interface MessageSearchParams {
|
|
|
230
235
|
start_date?: string | null;
|
|
231
236
|
}
|
|
232
237
|
export declare namespace Messages {
|
|
233
|
-
export { type MessageSearchRequest as MessageSearchRequest, type MessageSearchResult as MessageSearchResult, type MessageListResponse as MessageListResponse, type MessageSearchResponse as MessageSearchResponse, type MessageListParams as MessageListParams, type MessageSearchParams as MessageSearchParams, };
|
|
238
|
+
export { type MessageSearchRequest as MessageSearchRequest, type MessageSearchResult as MessageSearchResult, type MessageRetrieveResponse as MessageRetrieveResponse, type MessageListResponse as MessageListResponse, type MessageSearchResponse as MessageSearchResponse, type MessageListParams as MessageListParams, type MessageSearchParams as MessageSearchParams, };
|
|
234
239
|
}
|
|
235
240
|
//# sourceMappingURL=messages.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"messages.d.ts","sourceRoot":"","sources":["../src/resources/messages.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,iBAAiB;OACtB,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;
|
|
1
|
+
{"version":3,"file":"messages.d.ts","sourceRoot":"","sources":["../src/resources/messages.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,iBAAiB;OACtB,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,QAAS,SAAQ,WAAW;IACvC;;OAEG;IACH,QAAQ,CAAC,SAAS,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,uBAAuB,CAAC;IAI1F;;OAEG;IACH,IAAI,CACF,KAAK,GAAE,iBAAiB,GAAG,IAAI,GAAG,SAAc,EAChD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,mBAAmB,CAAC;IAIlC;;;;;OAKG;IACH,MAAM,CAAC,IAAI,EAAE,mBAAmB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,qBAAqB,CAAC;CAG/F;AAED,MAAM,WAAW,oBAAoB;IACnC;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AC;IAEhC;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEtB;;;OAGG;IACH,KAAK,CAAC,EAAE,KAAK,GAAG,MAAM,CAAC;CACxB;AAED,MAAM,WAAW,mBAAmB;IAClC;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEzB;;OAEG;IACH,eAAe,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEhC;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEzB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,WAAW,CAAC,EAAE,QAAQ,GAAG,KAAK,GAAG,QAAQ,CAAC;IAE1C;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC5B;AAED,MAAM,CAAC,OAAO,WAAW,QAAQ,CAAC;IAChC,OAAO,EACL,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,mBAAmB,IAAI,mBAAmB,GAChD,CAAC;CACH"}
|
package/resources/messages.js
CHANGED
|
@@ -3,7 +3,14 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
exports.Messages = void 0;
|
|
5
5
|
const resource_1 = require("../core/resource.js");
|
|
6
|
+
const path_1 = require("../internal/utils/path.js");
|
|
6
7
|
class Messages extends resource_1.APIResource {
|
|
8
|
+
/**
|
|
9
|
+
* Retrieve a message by ID.
|
|
10
|
+
*/
|
|
11
|
+
retrieve(messageID, options) {
|
|
12
|
+
return this._client.get((0, path_1.path) `/v1/messages/${messageID}`, options);
|
|
13
|
+
}
|
|
7
14
|
/**
|
|
8
15
|
* List messages across all agents for the current user.
|
|
9
16
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"messages.js","sourceRoot":"","sources":["../src/resources/messages.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;
|
|
1
|
+
{"version":3,"file":"messages.js","sourceRoot":"","sources":["../src/resources/messages.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAI/C,oDAA8C;AAE9C,MAAa,QAAS,SAAQ,sBAAW;IACvC;;OAEG;IACH,QAAQ,CAAC,SAAiB,EAAE,OAAwB;QAClD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,gBAAgB,SAAS,EAAE,EAAE,OAAO,CAAC,CAAC;IACpE,CAAC;IAED;;OAEG;IACH,IAAI,CACF,QAA8C,EAAE,EAChD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,eAAe,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAClE,CAAC;IAED;;;;;OAKG;IACH,MAAM,CAAC,IAAyB,EAAE,OAAwB;QACxD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,qBAAqB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACxE,CAAC;CACF;AA3BD,4BA2BC"}
|
package/resources/messages.mjs
CHANGED
|
@@ -1,6 +1,13 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
import { APIResource } from "../core/resource.mjs";
|
|
3
|
+
import { path } from "../internal/utils/path.mjs";
|
|
3
4
|
export class Messages extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* Retrieve a message by ID.
|
|
7
|
+
*/
|
|
8
|
+
retrieve(messageID, options) {
|
|
9
|
+
return this._client.get(path `/v1/messages/${messageID}`, options);
|
|
10
|
+
}
|
|
4
11
|
/**
|
|
5
12
|
* List messages across all agents for the current user.
|
|
6
13
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"messages.mjs","sourceRoot":"","sources":["../src/resources/messages.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;
|
|
1
|
+
{"version":3,"file":"messages.mjs","sourceRoot":"","sources":["../src/resources/messages.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAIf,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,QAAS,SAAQ,WAAW;IACvC;;OAEG;IACH,QAAQ,CAAC,SAAiB,EAAE,OAAwB;QAClD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,gBAAgB,SAAS,EAAE,EAAE,OAAO,CAAC,CAAC;IACpE,CAAC;IAED;;OAEG;IACH,IAAI,CACF,QAA8C,EAAE,EAChD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,eAAe,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAClE,CAAC;IAED;;;;;OAKG;IACH,MAAM,CAAC,IAAyB,EAAE,OAAwB;QACxD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,qBAAqB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACxE,CAAC;CACF"}
|