@mobilerun/sdk 5.2.1 → 5.4.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 +20 -0
- package/client.d.mts +13 -7
- package/client.d.mts.map +1 -1
- package/client.d.ts +13 -7
- package/client.d.ts.map +1 -1
- package/client.js +9 -3
- package/client.js.map +1 -1
- package/client.mjs +9 -3
- package/client.mjs.map +1 -1
- package/core/streaming.d.mts +33 -0
- package/core/streaming.d.mts.map +1 -0
- package/core/streaming.d.ts +33 -0
- package/core/streaming.d.ts.map +1 -0
- package/core/streaming.js +263 -0
- package/core/streaming.js.map +1 -0
- package/core/streaming.mjs +258 -0
- package/core/streaming.mjs.map +1 -0
- package/internal/decoders/line.d.mts +17 -0
- package/internal/decoders/line.d.mts.map +1 -0
- package/internal/decoders/line.d.ts +17 -0
- package/internal/decoders/line.d.ts.map +1 -0
- package/internal/decoders/line.js +113 -0
- package/internal/decoders/line.js.map +1 -0
- package/internal/decoders/line.mjs +108 -0
- package/internal/decoders/line.mjs.map +1 -0
- package/internal/parse.d.mts.map +1 -1
- package/internal/parse.d.ts.map +1 -1
- package/internal/parse.js +10 -0
- package/internal/parse.js.map +1 -1
- package/internal/parse.mjs +10 -0
- package/internal/parse.mjs.map +1 -1
- package/internal/request-options.d.mts +2 -0
- package/internal/request-options.d.mts.map +1 -1
- package/internal/request-options.d.ts +2 -0
- package/internal/request-options.d.ts.map +1 -1
- package/internal/request-options.js.map +1 -1
- package/internal/request-options.mjs.map +1 -1
- package/internal/tslib.js +18 -18
- package/package.json +11 -1
- package/resources/apps.d.mts +2 -2
- package/resources/apps.d.mts.map +1 -1
- package/resources/apps.d.ts +2 -2
- package/resources/apps.d.ts.map +1 -1
- package/resources/assistant/assistant.d.mts +10 -0
- package/resources/assistant/assistant.d.mts.map +1 -0
- package/resources/assistant/assistant.d.ts +10 -0
- package/resources/assistant/assistant.d.ts.map +1 -0
- package/resources/assistant/assistant.js +17 -0
- package/resources/assistant/assistant.js.map +1 -0
- package/resources/assistant/assistant.mjs +12 -0
- package/resources/assistant/assistant.mjs.map +1 -0
- package/resources/assistant/conversations.d.mts +295 -0
- package/resources/assistant/conversations.d.mts.map +1 -0
- package/resources/assistant/conversations.d.ts +295 -0
- package/resources/assistant/conversations.d.ts.map +1 -0
- package/resources/assistant/conversations.js +109 -0
- package/resources/assistant/conversations.js.map +1 -0
- package/resources/assistant/conversations.mjs +105 -0
- package/resources/assistant/conversations.mjs.map +1 -0
- package/resources/assistant/index.d.mts +3 -0
- package/resources/assistant/index.d.mts.map +1 -0
- package/resources/assistant/index.d.ts +3 -0
- package/resources/assistant/index.d.ts.map +1 -0
- package/resources/assistant/index.js +9 -0
- package/resources/assistant/index.js.map +1 -0
- package/resources/assistant/index.mjs +4 -0
- package/resources/assistant/index.mjs.map +1 -0
- package/resources/assistant.d.mts +2 -0
- package/resources/assistant.d.mts.map +1 -0
- package/resources/assistant.d.ts +2 -0
- package/resources/assistant.d.ts.map +1 -0
- package/resources/assistant.js +6 -0
- package/resources/assistant.js.map +1 -0
- package/resources/assistant.mjs +3 -0
- package/resources/assistant.mjs.map +1 -0
- package/resources/devices/clipboard.d.mts +40 -0
- package/resources/devices/clipboard.d.mts.map +1 -0
- package/resources/devices/clipboard.d.ts +40 -0
- package/resources/devices/clipboard.d.ts.map +1 -0
- package/resources/devices/clipboard.js +50 -0
- package/resources/devices/clipboard.js.map +1 -0
- package/resources/devices/clipboard.mjs +46 -0
- package/resources/devices/clipboard.mjs.map +1 -0
- package/resources/devices/devices.d.mts +5 -0
- package/resources/devices/devices.d.mts.map +1 -1
- package/resources/devices/devices.d.ts +5 -0
- package/resources/devices/devices.d.ts.map +1 -1
- package/resources/devices/devices.js +4 -0
- package/resources/devices/devices.js.map +1 -1
- package/resources/devices/devices.mjs +4 -0
- package/resources/devices/devices.mjs.map +1 -1
- package/resources/devices/index.d.mts +1 -0
- package/resources/devices/index.d.mts.map +1 -1
- package/resources/devices/index.d.ts +1 -0
- package/resources/devices/index.d.ts.map +1 -1
- package/resources/devices/index.js +3 -1
- package/resources/devices/index.js.map +1 -1
- package/resources/devices/index.mjs +1 -0
- package/resources/devices/index.mjs.map +1 -1
- package/resources/esims/esims.d.mts +45 -45
- package/resources/esims/esims.d.mts.map +1 -1
- package/resources/esims/esims.d.ts +45 -45
- package/resources/esims/esims.d.ts.map +1 -1
- package/resources/esims/esims.js +3 -3
- package/resources/esims/esims.js.map +1 -1
- package/resources/esims/esims.mjs +3 -3
- package/resources/esims/esims.mjs.map +1 -1
- package/resources/esims/index.d.mts +1 -1
- package/resources/esims/index.d.mts.map +1 -1
- package/resources/esims/index.d.ts +1 -1
- package/resources/esims/index.d.ts.map +1 -1
- package/resources/esims/index.js.map +1 -1
- package/resources/esims/index.mjs.map +1 -1
- package/resources/esims/messages.d.mts +15 -20
- package/resources/esims/messages.d.mts.map +1 -1
- package/resources/esims/messages.d.ts +15 -20
- package/resources/esims/messages.d.ts.map +1 -1
- package/resources/files.d.mts +126 -0
- package/resources/files.d.mts.map +1 -0
- package/resources/files.d.ts +126 -0
- package/resources/files.d.ts.map +1 -0
- package/resources/files.js +68 -0
- package/resources/files.js.map +1 -0
- package/resources/files.mjs +64 -0
- package/resources/files.mjs.map +1 -0
- package/resources/index.d.mts +5 -3
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +5 -3
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +7 -3
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +3 -1
- package/resources/index.mjs.map +1 -1
- package/resources/mailboxes/index.d.mts +3 -0
- package/resources/mailboxes/index.d.mts.map +1 -0
- package/resources/mailboxes/index.d.ts +3 -0
- package/resources/mailboxes/index.d.ts.map +1 -0
- package/resources/mailboxes/index.js +9 -0
- package/resources/mailboxes/index.js.map +1 -0
- package/resources/mailboxes/index.mjs +4 -0
- package/resources/mailboxes/index.mjs.map +1 -0
- package/resources/mailboxes/mailboxes.d.mts +366 -0
- package/resources/mailboxes/mailboxes.d.mts.map +1 -0
- package/resources/mailboxes/mailboxes.d.ts +366 -0
- package/resources/mailboxes/mailboxes.d.ts.map +1 -0
- package/resources/mailboxes/mailboxes.js +146 -0
- package/resources/mailboxes/mailboxes.js.map +1 -0
- package/resources/mailboxes/mailboxes.mjs +141 -0
- package/resources/mailboxes/mailboxes.mjs.map +1 -0
- package/resources/mailboxes/messages.d.mts +82 -0
- package/resources/mailboxes/messages.d.mts.map +1 -0
- package/resources/mailboxes/messages.d.ts +82 -0
- package/resources/mailboxes/messages.d.ts.map +1 -0
- package/resources/mailboxes/messages.js +39 -0
- package/resources/mailboxes/messages.js.map +1 -0
- package/resources/mailboxes/messages.mjs +35 -0
- package/resources/mailboxes/messages.mjs.map +1 -0
- package/resources/mailboxes.d.mts +2 -0
- package/resources/mailboxes.d.mts.map +1 -0
- package/resources/mailboxes.d.ts +2 -0
- package/resources/mailboxes.d.ts.map +1 -0
- package/resources/mailboxes.js +6 -0
- package/resources/mailboxes.js.map +1 -0
- package/resources/mailboxes.mjs +3 -0
- package/resources/mailboxes.mjs.map +1 -0
- package/resources/messages/conversations.d.mts +18 -23
- package/resources/messages/conversations.d.mts.map +1 -1
- package/resources/messages/conversations.d.ts +18 -23
- package/resources/messages/conversations.d.ts.map +1 -1
- package/resources/messages/messages.d.mts +15 -20
- package/resources/messages/messages.d.mts.map +1 -1
- package/resources/messages/messages.d.ts +15 -20
- package/resources/messages/messages.d.ts.map +1 -1
- package/resources/messages/messages.js.map +1 -1
- package/resources/messages/messages.mjs.map +1 -1
- package/resources/models.d.mts +20 -5
- package/resources/models.d.mts.map +1 -1
- package/resources/models.d.ts +20 -5
- package/resources/models.d.ts.map +1 -1
- package/resources/models.js +1 -1
- package/resources/models.mjs +1 -1
- package/resources/numbers/index.d.mts +1 -1
- package/resources/numbers/index.d.mts.map +1 -1
- package/resources/numbers/index.d.ts +1 -1
- package/resources/numbers/index.d.ts.map +1 -1
- package/resources/numbers/index.js.map +1 -1
- package/resources/numbers/index.mjs.map +1 -1
- package/resources/numbers/messages.d.mts +15 -27
- package/resources/numbers/messages.d.mts.map +1 -1
- package/resources/numbers/messages.d.ts +15 -27
- package/resources/numbers/messages.d.ts.map +1 -1
- package/resources/numbers/messages.js.map +1 -1
- package/resources/numbers/messages.mjs.map +1 -1
- package/resources/numbers/numbers.d.mts +70 -22
- package/resources/numbers/numbers.d.mts.map +1 -1
- package/resources/numbers/numbers.d.ts +70 -22
- package/resources/numbers/numbers.d.ts.map +1 -1
- package/resources/numbers/numbers.js +17 -0
- package/resources/numbers/numbers.js.map +1 -1
- package/resources/numbers/numbers.mjs +17 -0
- package/resources/numbers/numbers.mjs.map +1 -1
- package/resources/store/apps.d.mts +2 -2
- package/resources/store/apps.d.mts.map +1 -1
- package/resources/store/apps.d.ts +2 -2
- package/resources/store/apps.d.ts.map +1 -1
- package/resources/workflows/events.d.mts +1 -0
- package/resources/workflows/events.d.mts.map +1 -1
- package/resources/workflows/events.d.ts +1 -0
- package/resources/workflows/events.d.ts.map +1 -1
- package/resources/workflows/executions.d.mts +21 -0
- package/resources/workflows/executions.d.mts.map +1 -1
- package/resources/workflows/executions.d.ts +21 -0
- package/resources/workflows/executions.d.ts.map +1 -1
- package/resources/workflows/flows/flows.d.mts +8 -0
- package/resources/workflows/flows/flows.d.mts.map +1 -1
- package/resources/workflows/flows/flows.d.ts +8 -0
- package/resources/workflows/flows/flows.d.ts.map +1 -1
- package/resources/workflows/flows/flows.js.map +1 -1
- package/resources/workflows/flows/flows.mjs.map +1 -1
- package/src/client.ts +74 -4
- package/src/core/streaming.ts +315 -0
- package/src/internal/decoders/line.ts +135 -0
- package/src/internal/parse.ts +14 -0
- package/src/internal/request-options.ts +2 -0
- package/src/resources/apps.ts +2 -2
- package/src/resources/assistant/assistant.ts +59 -0
- package/src/resources/assistant/conversations.ts +524 -0
- package/src/resources/assistant/index.ts +26 -0
- package/src/resources/assistant.ts +3 -0
- package/src/resources/devices/clipboard.ts +87 -0
- package/src/resources/devices/devices.ts +13 -0
- package/src/resources/devices/index.ts +6 -0
- package/src/resources/esims/esims.ts +63 -57
- package/src/resources/esims/index.ts +1 -0
- package/src/resources/esims/messages.ts +24 -30
- package/src/resources/files.ts +225 -0
- package/src/resources/index.ts +33 -1
- package/src/resources/mailboxes/index.ts +26 -0
- package/src/resources/mailboxes/mailboxes.ts +618 -0
- package/src/resources/mailboxes/messages.ts +134 -0
- package/src/resources/mailboxes.ts +3 -0
- package/src/resources/messages/conversations.ts +28 -34
- package/src/resources/messages/messages.ts +24 -30
- package/src/resources/models.ts +22 -7
- package/src/resources/numbers/index.ts +2 -0
- package/src/resources/numbers/messages.ts +24 -43
- package/src/resources/numbers/numbers.ts +97 -21
- package/src/resources/store/apps.ts +2 -2
- package/src/resources/workflows/events.ts +2 -0
- package/src/resources/workflows/executions.ts +27 -0
- package/src/resources/workflows/flows/flows.ts +16 -0
- package/src/streaming.ts +2 -0
- package/src/version.ts +1 -1
- package/streaming.d.mts +3 -0
- package/streaming.d.mts.map +1 -0
- package/streaming.d.ts +3 -0
- package/streaming.d.ts.map +1 -0
- package/streaming.js +6 -0
- package/streaming.js.map +1 -0
- package/streaming.mjs +3 -0
- package/streaming.mjs.map +1 -0
- 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.d.mts +0 -27
- package/resources/agents.d.mts.map +0 -1
- package/resources/agents.d.ts +0 -27
- package/resources/agents.d.ts.map +0 -1
- package/resources/agents.js +0 -15
- package/resources/agents.js.map +0 -1
- package/resources/agents.mjs +0 -11
- package/resources/agents.mjs.map +0 -1
- package/src/resources/agents.ts +0 -42
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { APIResource } from "../../core/resource.js";
|
|
2
|
+
import * as ConversationsAPI from "./conversations.js";
|
|
3
|
+
import { ConversationAbortParams, ConversationAbortResponse, ConversationAnswerPermissionParams, ConversationAnswerPermissionResponse, ConversationAnswerQuestionParams, ConversationAnswerQuestionResponse, ConversationCreateParams, ConversationCreateResponse, ConversationHistoryParams, ConversationHistoryResponse, ConversationListParams, ConversationListResponse, ConversationRejectQuestionParams, ConversationRejectQuestionResponse, ConversationSendParams, ConversationSendResponse, ConversationStreamParams, ConversationStreamResponse, ConversationUpdateParams, ConversationUpdateResponse, Conversations } from "./conversations.js";
|
|
4
|
+
export declare class Assistant extends APIResource {
|
|
5
|
+
conversations: ConversationsAPI.Conversations;
|
|
6
|
+
}
|
|
7
|
+
export declare namespace Assistant {
|
|
8
|
+
export { Conversations as Conversations, type ConversationCreateResponse as ConversationCreateResponse, type ConversationUpdateResponse as ConversationUpdateResponse, type ConversationListResponse as ConversationListResponse, type ConversationAbortResponse as ConversationAbortResponse, type ConversationAnswerPermissionResponse as ConversationAnswerPermissionResponse, type ConversationAnswerQuestionResponse as ConversationAnswerQuestionResponse, type ConversationHistoryResponse as ConversationHistoryResponse, type ConversationRejectQuestionResponse as ConversationRejectQuestionResponse, type ConversationSendResponse as ConversationSendResponse, type ConversationStreamResponse as ConversationStreamResponse, type ConversationCreateParams as ConversationCreateParams, type ConversationUpdateParams as ConversationUpdateParams, type ConversationListParams as ConversationListParams, type ConversationAbortParams as ConversationAbortParams, type ConversationAnswerPermissionParams as ConversationAnswerPermissionParams, type ConversationAnswerQuestionParams as ConversationAnswerQuestionParams, type ConversationHistoryParams as ConversationHistoryParams, type ConversationRejectQuestionParams as ConversationRejectQuestionParams, type ConversationSendParams as ConversationSendParams, type ConversationStreamParams as ConversationStreamParams, };
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=assistant.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"assistant.d.ts","sourceRoot":"","sources":["../../src/resources/assistant/assistant.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,KAAK,gBAAgB,2BAAwB;AACpD,OAAO,EACL,uBAAuB,EACvB,yBAAyB,EACzB,kCAAkC,E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penAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.Assistant = void 0;
|
|
5
|
+
const tslib_1 = require("../../internal/tslib.js");
|
|
6
|
+
const resource_1 = require("../../core/resource.js");
|
|
7
|
+
const ConversationsAPI = tslib_1.__importStar(require("./conversations.js"));
|
|
8
|
+
const conversations_1 = require("./conversations.js");
|
|
9
|
+
class Assistant extends resource_1.APIResource {
|
|
10
|
+
constructor() {
|
|
11
|
+
super(...arguments);
|
|
12
|
+
this.conversations = new ConversationsAPI.Conversations(this._client);
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
exports.Assistant = Assistant;
|
|
16
|
+
Assistant.Conversations = conversations_1.Conversations;
|
|
17
|
+
//# sourceMappingURL=assistant.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"assistant.js","sourceRoot":"","sources":["../../src/resources/assistant/assistant.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,qDAAkD;AAClD,6EAAoD;AACpD,sDAsByB;AAEzB,MAAa,SAAU,SAAQ,sBAAW;IAA1C;;QACE,kBAAa,GAAmC,IAAI,gBAAgB,CAAC,aAAa,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IACnG,CAAC;CAAA;AAFD,8BAEC;AAED,SAAS,CAAC,aAAa,GAAG,6BAAa,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from "../../core/resource.mjs";
|
|
3
|
+
import * as ConversationsAPI from "./conversations.mjs";
|
|
4
|
+
import { Conversations, } from "./conversations.mjs";
|
|
5
|
+
export class Assistant extends APIResource {
|
|
6
|
+
constructor() {
|
|
7
|
+
super(...arguments);
|
|
8
|
+
this.conversations = new ConversationsAPI.Conversations(this._client);
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
Assistant.Conversations = Conversations;
|
|
12
|
+
//# sourceMappingURL=assistant.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"assistant.mjs","sourceRoot":"","sources":["../../src/resources/assistant/assistant.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,KAAK,gBAAgB,4BAAwB;AACpD,OAAO,EAqBL,aAAa,GACd,4BAAwB;AAEzB,MAAM,OAAO,SAAU,SAAQ,WAAW;IAA1C;;QACE,kBAAa,GAAmC,IAAI,gBAAgB,CAAC,aAAa,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IACnG,CAAC;CAAA;AAED,SAAS,CAAC,aAAa,GAAG,aAAa,CAAC"}
|
|
@@ -0,0 +1,295 @@
|
|
|
1
|
+
import { APIResource } from "../../core/resource.mjs";
|
|
2
|
+
import { APIPromise } from "../../core/api-promise.mjs";
|
|
3
|
+
import { Stream } from "../../core/streaming.mjs";
|
|
4
|
+
import { RequestOptions } from "../../internal/request-options.mjs";
|
|
5
|
+
export declare class Conversations extends APIResource {
|
|
6
|
+
/**
|
|
7
|
+
* Creates a titled agent session. Setup may occur on the first prompt. Idempotent
|
|
8
|
+
* via the `Idempotency-Key` header — a duplicate submit by the same authenticated
|
|
9
|
+
* caller within the 24-hour idempotency window returns the already-created session
|
|
10
|
+
* instead of a second one.
|
|
11
|
+
*/
|
|
12
|
+
create(params: ConversationCreateParams, options?: RequestOptions): APIPromise<ConversationCreateResponse>;
|
|
13
|
+
/**
|
|
14
|
+
* Rename, change status, and/or pin. Title updates apply best-effort. Archiving
|
|
15
|
+
* always clears the pinned flag. `title` is rejected with 409
|
|
16
|
+
* `code: "session_title_managed_by_workflow"` when this chat is bound to a
|
|
17
|
+
* workflow — a bound chat's title is managed by the workflow. Other fields
|
|
18
|
+
* (description, status, pinned) remain updateable; archiving a bound chat stays
|
|
19
|
+
* allowed.
|
|
20
|
+
*/
|
|
21
|
+
update(id: string, body: ConversationUpdateParams, options?: RequestOptions): APIPromise<ConversationUpdateResponse>;
|
|
22
|
+
/**
|
|
23
|
+
* Default (`kind` absent or `chat`): active named chat sessions, pinned first then
|
|
24
|
+
* most recent activity — `workflowId` must be absent, or the request 400s.
|
|
25
|
+
* `mine=true` (only valid with `kind=chat`) narrows to sessions the caller
|
|
26
|
+
* created. `kind=agent_workflow`: workflow-linked sessions for one workflow
|
|
27
|
+
* (`workflowId` required, or the request 400s), no status filter, newest episode
|
|
28
|
+
* first.
|
|
29
|
+
*/
|
|
30
|
+
list(query?: ConversationListParams | null | undefined, options?: RequestOptions): APIPromise<ConversationListResponse>;
|
|
31
|
+
/**
|
|
32
|
+
* Abort the in-flight chat turn owned by `sessionId`. Idempotent. A turn owned by
|
|
33
|
+
* a different session is left untouched (204).
|
|
34
|
+
*/
|
|
35
|
+
abort(body: ConversationAbortParams, options?: RequestOptions): APIPromise<ConversationAbortResponse>;
|
|
36
|
+
/**
|
|
37
|
+
* Deliver a HITL approval/rejection for an in-flight turn.
|
|
38
|
+
*/
|
|
39
|
+
answerPermission(body: ConversationAnswerPermissionParams, options?: RequestOptions): APIPromise<ConversationAnswerPermissionResponse>;
|
|
40
|
+
/**
|
|
41
|
+
* Deliver the user's answers to the agent's pending question for an in-flight
|
|
42
|
+
* turn. Idempotent via the `idempotency-key` header.
|
|
43
|
+
*/
|
|
44
|
+
answerQuestion(body: ConversationAnswerQuestionParams, options?: RequestOptions): APIPromise<ConversationAnswerQuestionResponse>;
|
|
45
|
+
/**
|
|
46
|
+
* Return the user's chat history for the given session. History remains readable
|
|
47
|
+
* after the session is no longer active.
|
|
48
|
+
*/
|
|
49
|
+
history(query: ConversationHistoryParams, options?: RequestOptions): APIPromise<ConversationHistoryResponse>;
|
|
50
|
+
/**
|
|
51
|
+
* Dismiss the agent's pending question. Already-resolved questions return 200
|
|
52
|
+
* (no-op) so multi-tab dismiss stays idempotent.
|
|
53
|
+
*/
|
|
54
|
+
rejectQuestion(body: ConversationRejectQuestionParams, options?: RequestOptions): APIPromise<ConversationRejectQuestionResponse>;
|
|
55
|
+
/**
|
|
56
|
+
* Send a single user message. The response format follows the Accept header:
|
|
57
|
+
* `text/event-stream` for SSE, `application/json` for a buffered assistant reply.
|
|
58
|
+
* `sessionId` targets a concrete active chat. The resolved chat session ID is
|
|
59
|
+
* returned as `chatSessionId` in the JSON body and as the `X-Chat-Session-Id`
|
|
60
|
+
* response header on the SSE response.
|
|
61
|
+
*/
|
|
62
|
+
send(body: ConversationSendParams, options?: RequestOptions): APIPromise<ConversationSendResponse>;
|
|
63
|
+
/**
|
|
64
|
+
* Reconnect to the in-flight turn stream. Replays buffered events from the start
|
|
65
|
+
* of the active turn, then continues live until the turn finishes. Responds 204
|
|
66
|
+
* when no active turn exists for the requested session. Upstream streaming
|
|
67
|
+
* failures return a retryable 503 with `Retry-After`. Resume is best-effort. Does
|
|
68
|
+
* not start an inactive session.
|
|
69
|
+
*/
|
|
70
|
+
stream(query: ConversationStreamParams, options?: RequestOptions): APIPromise<Stream<ConversationStreamResponse>>;
|
|
71
|
+
}
|
|
72
|
+
export interface ConversationCreateResponse {
|
|
73
|
+
session: ConversationCreateResponse.Session;
|
|
74
|
+
}
|
|
75
|
+
export declare namespace ConversationCreateResponse {
|
|
76
|
+
interface Session {
|
|
77
|
+
id: string;
|
|
78
|
+
agent: string | null;
|
|
79
|
+
basePromptTokens: number | null;
|
|
80
|
+
contextExhaustedAt: string | null;
|
|
81
|
+
costCents: number;
|
|
82
|
+
costUsd: number;
|
|
83
|
+
createdAt: string;
|
|
84
|
+
description: string | null;
|
|
85
|
+
lastActiveAt: string;
|
|
86
|
+
peakPromptTokens: number | null;
|
|
87
|
+
pinned: boolean;
|
|
88
|
+
promptStatus: 'ready' | 'machine_replaced';
|
|
89
|
+
status: string;
|
|
90
|
+
title: string;
|
|
91
|
+
turnActive: boolean;
|
|
92
|
+
turnStartedAt: string | null;
|
|
93
|
+
createdBy?: string | null;
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
export interface ConversationUpdateResponse {
|
|
97
|
+
session: ConversationUpdateResponse.Session;
|
|
98
|
+
}
|
|
99
|
+
export declare namespace ConversationUpdateResponse {
|
|
100
|
+
interface Session {
|
|
101
|
+
id: string;
|
|
102
|
+
agent: string | null;
|
|
103
|
+
basePromptTokens: number | null;
|
|
104
|
+
contextExhaustedAt: string | null;
|
|
105
|
+
costCents: number;
|
|
106
|
+
costUsd: number;
|
|
107
|
+
createdAt: string;
|
|
108
|
+
description: string | null;
|
|
109
|
+
lastActiveAt: string;
|
|
110
|
+
peakPromptTokens: number | null;
|
|
111
|
+
pinned: boolean;
|
|
112
|
+
promptStatus: 'ready' | 'machine_replaced';
|
|
113
|
+
status: string;
|
|
114
|
+
title: string;
|
|
115
|
+
turnActive: boolean;
|
|
116
|
+
turnStartedAt: string | null;
|
|
117
|
+
createdBy?: string | null;
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
export interface ConversationListResponse {
|
|
121
|
+
sessions: Array<ConversationListResponse.UnionMember0 | ConversationListResponse.UnionMember1>;
|
|
122
|
+
}
|
|
123
|
+
export declare namespace ConversationListResponse {
|
|
124
|
+
interface UnionMember0 {
|
|
125
|
+
id: string;
|
|
126
|
+
agent: string | null;
|
|
127
|
+
basePromptTokens: number | null;
|
|
128
|
+
contextExhaustedAt: string | null;
|
|
129
|
+
costCents: number;
|
|
130
|
+
costUsd: number;
|
|
131
|
+
createdAt: string;
|
|
132
|
+
description: string | null;
|
|
133
|
+
episode: number;
|
|
134
|
+
kind: 'chat';
|
|
135
|
+
lastActiveAt: string;
|
|
136
|
+
peakPromptTokens: number | null;
|
|
137
|
+
pinned: boolean;
|
|
138
|
+
promptStatus: 'ready' | 'machine_replaced';
|
|
139
|
+
sourceExecutionId: null;
|
|
140
|
+
status: string;
|
|
141
|
+
title: string;
|
|
142
|
+
turnActive: boolean;
|
|
143
|
+
turnStartedAt: string | null;
|
|
144
|
+
workflowId: null;
|
|
145
|
+
createdBy?: string | null;
|
|
146
|
+
}
|
|
147
|
+
interface UnionMember1 {
|
|
148
|
+
id: string;
|
|
149
|
+
agent: string | null;
|
|
150
|
+
basePromptTokens: number | null;
|
|
151
|
+
contextExhaustedAt: string | null;
|
|
152
|
+
costCents: number;
|
|
153
|
+
costUsd: number;
|
|
154
|
+
createdAt: string;
|
|
155
|
+
description: string | null;
|
|
156
|
+
episode: number;
|
|
157
|
+
kind: 'agent_workflow';
|
|
158
|
+
lastActiveAt: string;
|
|
159
|
+
peakPromptTokens: number | null;
|
|
160
|
+
pinned: boolean;
|
|
161
|
+
promptStatus: 'ready' | 'machine_replaced';
|
|
162
|
+
sourceExecutionId: string;
|
|
163
|
+
status: string;
|
|
164
|
+
title: string;
|
|
165
|
+
turnActive: boolean;
|
|
166
|
+
turnStartedAt: string | null;
|
|
167
|
+
workflowId: string;
|
|
168
|
+
createdBy?: string | null;
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
export interface ConversationAbortResponse {
|
|
172
|
+
ok: true;
|
|
173
|
+
}
|
|
174
|
+
export interface ConversationAnswerPermissionResponse {
|
|
175
|
+
ok: true;
|
|
176
|
+
}
|
|
177
|
+
export interface ConversationAnswerQuestionResponse {
|
|
178
|
+
ok: true;
|
|
179
|
+
}
|
|
180
|
+
export interface ConversationHistoryResponse {
|
|
181
|
+
messages: Array<ConversationHistoryResponse.Message>;
|
|
182
|
+
turnActive: boolean;
|
|
183
|
+
truncated?: boolean;
|
|
184
|
+
}
|
|
185
|
+
export declare namespace ConversationHistoryResponse {
|
|
186
|
+
interface Message {
|
|
187
|
+
id: string;
|
|
188
|
+
parts: Array<Message.Part>;
|
|
189
|
+
role: 'user' | 'assistant' | 'system';
|
|
190
|
+
createdAt?: string;
|
|
191
|
+
createdBy?: string | null;
|
|
192
|
+
feedback?: boolean | null;
|
|
193
|
+
metadata?: Message.Metadata;
|
|
194
|
+
source?: 'cloud' | 'telegram' | 'api' | 'workflow' | 'notification';
|
|
195
|
+
synthetic?: boolean;
|
|
196
|
+
/**
|
|
197
|
+
* @deprecated Deprecated: use createdBy.
|
|
198
|
+
*/
|
|
199
|
+
userId?: string | null;
|
|
200
|
+
}
|
|
201
|
+
namespace Message {
|
|
202
|
+
interface Part {
|
|
203
|
+
type: string;
|
|
204
|
+
[k: string]: unknown;
|
|
205
|
+
}
|
|
206
|
+
interface Metadata {
|
|
207
|
+
agent?: string;
|
|
208
|
+
agentMessageId?: string;
|
|
209
|
+
agentSessionId?: string;
|
|
210
|
+
turnAnchorMessageId?: string;
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
export interface ConversationRejectQuestionResponse {
|
|
215
|
+
ok: true;
|
|
216
|
+
}
|
|
217
|
+
export interface ConversationSendResponse {
|
|
218
|
+
assistantText: string;
|
|
219
|
+
chatSessionId: string;
|
|
220
|
+
errorText?: string;
|
|
221
|
+
}
|
|
222
|
+
export type ConversationStreamResponse = string;
|
|
223
|
+
export interface ConversationCreateParams {
|
|
224
|
+
/**
|
|
225
|
+
* Body param
|
|
226
|
+
*/
|
|
227
|
+
title: string;
|
|
228
|
+
/**
|
|
229
|
+
* Body param
|
|
230
|
+
*/
|
|
231
|
+
agent?: string;
|
|
232
|
+
/**
|
|
233
|
+
* Body param
|
|
234
|
+
*/
|
|
235
|
+
description?: string;
|
|
236
|
+
/**
|
|
237
|
+
* Header param: Optional client key. Reusing the same key with the same request
|
|
238
|
+
* body by the same authenticated caller within 24 hours returns the
|
|
239
|
+
* already-created session instead of a second one.
|
|
240
|
+
*/
|
|
241
|
+
'Idempotency-Key'?: string;
|
|
242
|
+
}
|
|
243
|
+
export interface ConversationUpdateParams {
|
|
244
|
+
description?: string | null;
|
|
245
|
+
pinned?: boolean;
|
|
246
|
+
status?: 'active' | 'archived';
|
|
247
|
+
title?: string;
|
|
248
|
+
}
|
|
249
|
+
export interface ConversationListParams {
|
|
250
|
+
kind?: 'chat' | 'agent_workflow';
|
|
251
|
+
mine?: 'true' | 'false';
|
|
252
|
+
workflowId?: string;
|
|
253
|
+
}
|
|
254
|
+
export interface ConversationAbortParams {
|
|
255
|
+
sessionId: string;
|
|
256
|
+
}
|
|
257
|
+
export interface ConversationAnswerPermissionParams {
|
|
258
|
+
permissionId: string;
|
|
259
|
+
response: 'once' | 'always' | 'reject';
|
|
260
|
+
}
|
|
261
|
+
export interface ConversationAnswerQuestionParams {
|
|
262
|
+
answers: Array<Array<ConversationAnswerQuestionParams.Label | ConversationAnswerQuestionParams.Custom | ConversationAnswerQuestionParams.UnionMember2>>;
|
|
263
|
+
questionId: string;
|
|
264
|
+
}
|
|
265
|
+
export declare namespace ConversationAnswerQuestionParams {
|
|
266
|
+
interface Label {
|
|
267
|
+
label: string;
|
|
268
|
+
}
|
|
269
|
+
interface Custom {
|
|
270
|
+
custom: string;
|
|
271
|
+
}
|
|
272
|
+
interface UnionMember2 {
|
|
273
|
+
custom: string;
|
|
274
|
+
label: string;
|
|
275
|
+
}
|
|
276
|
+
}
|
|
277
|
+
export interface ConversationHistoryParams {
|
|
278
|
+
sessionId: string;
|
|
279
|
+
limit?: number;
|
|
280
|
+
}
|
|
281
|
+
export interface ConversationRejectQuestionParams {
|
|
282
|
+
questionId: string;
|
|
283
|
+
}
|
|
284
|
+
export interface ConversationSendParams {
|
|
285
|
+
message: string;
|
|
286
|
+
sessionId: string;
|
|
287
|
+
agent?: string;
|
|
288
|
+
}
|
|
289
|
+
export interface ConversationStreamParams {
|
|
290
|
+
sessionId: string;
|
|
291
|
+
}
|
|
292
|
+
export declare namespace Conversations {
|
|
293
|
+
export { type ConversationCreateResponse as ConversationCreateResponse, type ConversationUpdateResponse as ConversationUpdateResponse, type ConversationListResponse as ConversationListResponse, type ConversationAbortResponse as ConversationAbortResponse, type ConversationAnswerPermissionResponse as ConversationAnswerPermissionResponse, type ConversationAnswerQuestionResponse as ConversationAnswerQuestionResponse, type ConversationHistoryResponse as ConversationHistoryResponse, type ConversationRejectQuestionResponse as ConversationRejectQuestionResponse, type ConversationSendResponse as ConversationSendResponse, type ConversationStreamResponse as ConversationStreamResponse, type ConversationCreateParams as ConversationCreateParams, type ConversationUpdateParams as ConversationUpdateParams, type ConversationListParams as ConversationListParams, type ConversationAbortParams as ConversationAbortParams, type ConversationAnswerPermissionParams as ConversationAnswerPermissionParams, type ConversationAnswerQuestionParams as ConversationAnswerQuestionParams, type ConversationHistoryParams as ConversationHistoryParams, type ConversationRejectQuestionParams as ConversationRejectQuestionParams, type ConversationSendParams as ConversationSendParams, type ConversationStreamParams as ConversationStreamParams, };
|
|
294
|
+
}
|
|
295
|
+
//# sourceMappingURL=conversations.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"conversations.d.mts","sourceRoot":"","sources":["../../src/resources/assistant/conversations.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,EAAE,UAAU,EAAE,mCAA+B;AACpD,OAAO,EAAE,MAAM,EAAE,iCAA6B;AAE9C,OAAO,EAAE,cAAc,EAAE,2CAAuC;AAGhE,qBAAa,aAAc,SAAQ,WAAW;IAC5C;;;;;OAKG;IACH,MAAM,CAAC,MAAM,EAAE,wBAAwB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,0BAA0B,CAAC;IAY1G;;;;;;;OAOG;IACH,MAAM,CACJ,EAAE,EAAE,MAAM,EACV,IAAI,EAAE,wBAAwB,EAC9B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,0BAA0B,CAAC;IAIzC;;;;;;;OAOG;IACH,IAAI,CACF,KAAK,GAAE,sBAAsB,GAAG,IAAI,GAAG,SAAc,EACrD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,wBAAwB,CAAC;IAIvC;;;OAGG;IACH,KAAK,CAAC,IAAI,EAAE,uBAAuB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,yBAAyB,CAAC;IAIrG;;OAEG;I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B,EAC7D,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,kCAAkC,IAAI,kCAAkC,EAC7E,KAAK,gCAAgC,IAAI,gCAAgC,EACzE,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,gCAAgC,IAAI,gCAAgC,EACzE,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,wBAAwB,IAAI,wBAAwB,GAC1D,CAAC;CACH"}
|
|
@@ -0,0 +1,295 @@
|
|
|
1
|
+
import { APIResource } from "../../core/resource.js";
|
|
2
|
+
import { APIPromise } from "../../core/api-promise.js";
|
|
3
|
+
import { Stream } from "../../core/streaming.js";
|
|
4
|
+
import { RequestOptions } from "../../internal/request-options.js";
|
|
5
|
+
export declare class Conversations extends APIResource {
|
|
6
|
+
/**
|
|
7
|
+
* Creates a titled agent session. Setup may occur on the first prompt. Idempotent
|
|
8
|
+
* via the `Idempotency-Key` header — a duplicate submit by the same authenticated
|
|
9
|
+
* caller within the 24-hour idempotency window returns the already-created session
|
|
10
|
+
* instead of a second one.
|
|
11
|
+
*/
|
|
12
|
+
create(params: ConversationCreateParams, options?: RequestOptions): APIPromise<ConversationCreateResponse>;
|
|
13
|
+
/**
|
|
14
|
+
* Rename, change status, and/or pin. Title updates apply best-effort. Archiving
|
|
15
|
+
* always clears the pinned flag. `title` is rejected with 409
|
|
16
|
+
* `code: "session_title_managed_by_workflow"` when this chat is bound to a
|
|
17
|
+
* workflow — a bound chat's title is managed by the workflow. Other fields
|
|
18
|
+
* (description, status, pinned) remain updateable; archiving a bound chat stays
|
|
19
|
+
* allowed.
|
|
20
|
+
*/
|
|
21
|
+
update(id: string, body: ConversationUpdateParams, options?: RequestOptions): APIPromise<ConversationUpdateResponse>;
|
|
22
|
+
/**
|
|
23
|
+
* Default (`kind` absent or `chat`): active named chat sessions, pinned first then
|
|
24
|
+
* most recent activity — `workflowId` must be absent, or the request 400s.
|
|
25
|
+
* `mine=true` (only valid with `kind=chat`) narrows to sessions the caller
|
|
26
|
+
* created. `kind=agent_workflow`: workflow-linked sessions for one workflow
|
|
27
|
+
* (`workflowId` required, or the request 400s), no status filter, newest episode
|
|
28
|
+
* first.
|
|
29
|
+
*/
|
|
30
|
+
list(query?: ConversationListParams | null | undefined, options?: RequestOptions): APIPromise<ConversationListResponse>;
|
|
31
|
+
/**
|
|
32
|
+
* Abort the in-flight chat turn owned by `sessionId`. Idempotent. A turn owned by
|
|
33
|
+
* a different session is left untouched (204).
|
|
34
|
+
*/
|
|
35
|
+
abort(body: ConversationAbortParams, options?: RequestOptions): APIPromise<ConversationAbortResponse>;
|
|
36
|
+
/**
|
|
37
|
+
* Deliver a HITL approval/rejection for an in-flight turn.
|
|
38
|
+
*/
|
|
39
|
+
answerPermission(body: ConversationAnswerPermissionParams, options?: RequestOptions): APIPromise<ConversationAnswerPermissionResponse>;
|
|
40
|
+
/**
|
|
41
|
+
* Deliver the user's answers to the agent's pending question for an in-flight
|
|
42
|
+
* turn. Idempotent via the `idempotency-key` header.
|
|
43
|
+
*/
|
|
44
|
+
answerQuestion(body: ConversationAnswerQuestionParams, options?: RequestOptions): APIPromise<ConversationAnswerQuestionResponse>;
|
|
45
|
+
/**
|
|
46
|
+
* Return the user's chat history for the given session. History remains readable
|
|
47
|
+
* after the session is no longer active.
|
|
48
|
+
*/
|
|
49
|
+
history(query: ConversationHistoryParams, options?: RequestOptions): APIPromise<ConversationHistoryResponse>;
|
|
50
|
+
/**
|
|
51
|
+
* Dismiss the agent's pending question. Already-resolved questions return 200
|
|
52
|
+
* (no-op) so multi-tab dismiss stays idempotent.
|
|
53
|
+
*/
|
|
54
|
+
rejectQuestion(body: ConversationRejectQuestionParams, options?: RequestOptions): APIPromise<ConversationRejectQuestionResponse>;
|
|
55
|
+
/**
|
|
56
|
+
* Send a single user message. The response format follows the Accept header:
|
|
57
|
+
* `text/event-stream` for SSE, `application/json` for a buffered assistant reply.
|
|
58
|
+
* `sessionId` targets a concrete active chat. The resolved chat session ID is
|
|
59
|
+
* returned as `chatSessionId` in the JSON body and as the `X-Chat-Session-Id`
|
|
60
|
+
* response header on the SSE response.
|
|
61
|
+
*/
|
|
62
|
+
send(body: ConversationSendParams, options?: RequestOptions): APIPromise<ConversationSendResponse>;
|
|
63
|
+
/**
|
|
64
|
+
* Reconnect to the in-flight turn stream. Replays buffered events from the start
|
|
65
|
+
* of the active turn, then continues live until the turn finishes. Responds 204
|
|
66
|
+
* when no active turn exists for the requested session. Upstream streaming
|
|
67
|
+
* failures return a retryable 503 with `Retry-After`. Resume is best-effort. Does
|
|
68
|
+
* not start an inactive session.
|
|
69
|
+
*/
|
|
70
|
+
stream(query: ConversationStreamParams, options?: RequestOptions): APIPromise<Stream<ConversationStreamResponse>>;
|
|
71
|
+
}
|
|
72
|
+
export interface ConversationCreateResponse {
|
|
73
|
+
session: ConversationCreateResponse.Session;
|
|
74
|
+
}
|
|
75
|
+
export declare namespace ConversationCreateResponse {
|
|
76
|
+
interface Session {
|
|
77
|
+
id: string;
|
|
78
|
+
agent: string | null;
|
|
79
|
+
basePromptTokens: number | null;
|
|
80
|
+
contextExhaustedAt: string | null;
|
|
81
|
+
costCents: number;
|
|
82
|
+
costUsd: number;
|
|
83
|
+
createdAt: string;
|
|
84
|
+
description: string | null;
|
|
85
|
+
lastActiveAt: string;
|
|
86
|
+
peakPromptTokens: number | null;
|
|
87
|
+
pinned: boolean;
|
|
88
|
+
promptStatus: 'ready' | 'machine_replaced';
|
|
89
|
+
status: string;
|
|
90
|
+
title: string;
|
|
91
|
+
turnActive: boolean;
|
|
92
|
+
turnStartedAt: string | null;
|
|
93
|
+
createdBy?: string | null;
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
export interface ConversationUpdateResponse {
|
|
97
|
+
session: ConversationUpdateResponse.Session;
|
|
98
|
+
}
|
|
99
|
+
export declare namespace ConversationUpdateResponse {
|
|
100
|
+
interface Session {
|
|
101
|
+
id: string;
|
|
102
|
+
agent: string | null;
|
|
103
|
+
basePromptTokens: number | null;
|
|
104
|
+
contextExhaustedAt: string | null;
|
|
105
|
+
costCents: number;
|
|
106
|
+
costUsd: number;
|
|
107
|
+
createdAt: string;
|
|
108
|
+
description: string | null;
|
|
109
|
+
lastActiveAt: string;
|
|
110
|
+
peakPromptTokens: number | null;
|
|
111
|
+
pinned: boolean;
|
|
112
|
+
promptStatus: 'ready' | 'machine_replaced';
|
|
113
|
+
status: string;
|
|
114
|
+
title: string;
|
|
115
|
+
turnActive: boolean;
|
|
116
|
+
turnStartedAt: string | null;
|
|
117
|
+
createdBy?: string | null;
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
export interface ConversationListResponse {
|
|
121
|
+
sessions: Array<ConversationListResponse.UnionMember0 | ConversationListResponse.UnionMember1>;
|
|
122
|
+
}
|
|
123
|
+
export declare namespace ConversationListResponse {
|
|
124
|
+
interface UnionMember0 {
|
|
125
|
+
id: string;
|
|
126
|
+
agent: string | null;
|
|
127
|
+
basePromptTokens: number | null;
|
|
128
|
+
contextExhaustedAt: string | null;
|
|
129
|
+
costCents: number;
|
|
130
|
+
costUsd: number;
|
|
131
|
+
createdAt: string;
|
|
132
|
+
description: string | null;
|
|
133
|
+
episode: number;
|
|
134
|
+
kind: 'chat';
|
|
135
|
+
lastActiveAt: string;
|
|
136
|
+
peakPromptTokens: number | null;
|
|
137
|
+
pinned: boolean;
|
|
138
|
+
promptStatus: 'ready' | 'machine_replaced';
|
|
139
|
+
sourceExecutionId: null;
|
|
140
|
+
status: string;
|
|
141
|
+
title: string;
|
|
142
|
+
turnActive: boolean;
|
|
143
|
+
turnStartedAt: string | null;
|
|
144
|
+
workflowId: null;
|
|
145
|
+
createdBy?: string | null;
|
|
146
|
+
}
|
|
147
|
+
interface UnionMember1 {
|
|
148
|
+
id: string;
|
|
149
|
+
agent: string | null;
|
|
150
|
+
basePromptTokens: number | null;
|
|
151
|
+
contextExhaustedAt: string | null;
|
|
152
|
+
costCents: number;
|
|
153
|
+
costUsd: number;
|
|
154
|
+
createdAt: string;
|
|
155
|
+
description: string | null;
|
|
156
|
+
episode: number;
|
|
157
|
+
kind: 'agent_workflow';
|
|
158
|
+
lastActiveAt: string;
|
|
159
|
+
peakPromptTokens: number | null;
|
|
160
|
+
pinned: boolean;
|
|
161
|
+
promptStatus: 'ready' | 'machine_replaced';
|
|
162
|
+
sourceExecutionId: string;
|
|
163
|
+
status: string;
|
|
164
|
+
title: string;
|
|
165
|
+
turnActive: boolean;
|
|
166
|
+
turnStartedAt: string | null;
|
|
167
|
+
workflowId: string;
|
|
168
|
+
createdBy?: string | null;
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
export interface ConversationAbortResponse {
|
|
172
|
+
ok: true;
|
|
173
|
+
}
|
|
174
|
+
export interface ConversationAnswerPermissionResponse {
|
|
175
|
+
ok: true;
|
|
176
|
+
}
|
|
177
|
+
export interface ConversationAnswerQuestionResponse {
|
|
178
|
+
ok: true;
|
|
179
|
+
}
|
|
180
|
+
export interface ConversationHistoryResponse {
|
|
181
|
+
messages: Array<ConversationHistoryResponse.Message>;
|
|
182
|
+
turnActive: boolean;
|
|
183
|
+
truncated?: boolean;
|
|
184
|
+
}
|
|
185
|
+
export declare namespace ConversationHistoryResponse {
|
|
186
|
+
interface Message {
|
|
187
|
+
id: string;
|
|
188
|
+
parts: Array<Message.Part>;
|
|
189
|
+
role: 'user' | 'assistant' | 'system';
|
|
190
|
+
createdAt?: string;
|
|
191
|
+
createdBy?: string | null;
|
|
192
|
+
feedback?: boolean | null;
|
|
193
|
+
metadata?: Message.Metadata;
|
|
194
|
+
source?: 'cloud' | 'telegram' | 'api' | 'workflow' | 'notification';
|
|
195
|
+
synthetic?: boolean;
|
|
196
|
+
/**
|
|
197
|
+
* @deprecated Deprecated: use createdBy.
|
|
198
|
+
*/
|
|
199
|
+
userId?: string | null;
|
|
200
|
+
}
|
|
201
|
+
namespace Message {
|
|
202
|
+
interface Part {
|
|
203
|
+
type: string;
|
|
204
|
+
[k: string]: unknown;
|
|
205
|
+
}
|
|
206
|
+
interface Metadata {
|
|
207
|
+
agent?: string;
|
|
208
|
+
agentMessageId?: string;
|
|
209
|
+
agentSessionId?: string;
|
|
210
|
+
turnAnchorMessageId?: string;
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
export interface ConversationRejectQuestionResponse {
|
|
215
|
+
ok: true;
|
|
216
|
+
}
|
|
217
|
+
export interface ConversationSendResponse {
|
|
218
|
+
assistantText: string;
|
|
219
|
+
chatSessionId: string;
|
|
220
|
+
errorText?: string;
|
|
221
|
+
}
|
|
222
|
+
export type ConversationStreamResponse = string;
|
|
223
|
+
export interface ConversationCreateParams {
|
|
224
|
+
/**
|
|
225
|
+
* Body param
|
|
226
|
+
*/
|
|
227
|
+
title: string;
|
|
228
|
+
/**
|
|
229
|
+
* Body param
|
|
230
|
+
*/
|
|
231
|
+
agent?: string;
|
|
232
|
+
/**
|
|
233
|
+
* Body param
|
|
234
|
+
*/
|
|
235
|
+
description?: string;
|
|
236
|
+
/**
|
|
237
|
+
* Header param: Optional client key. Reusing the same key with the same request
|
|
238
|
+
* body by the same authenticated caller within 24 hours returns the
|
|
239
|
+
* already-created session instead of a second one.
|
|
240
|
+
*/
|
|
241
|
+
'Idempotency-Key'?: string;
|
|
242
|
+
}
|
|
243
|
+
export interface ConversationUpdateParams {
|
|
244
|
+
description?: string | null;
|
|
245
|
+
pinned?: boolean;
|
|
246
|
+
status?: 'active' | 'archived';
|
|
247
|
+
title?: string;
|
|
248
|
+
}
|
|
249
|
+
export interface ConversationListParams {
|
|
250
|
+
kind?: 'chat' | 'agent_workflow';
|
|
251
|
+
mine?: 'true' | 'false';
|
|
252
|
+
workflowId?: string;
|
|
253
|
+
}
|
|
254
|
+
export interface ConversationAbortParams {
|
|
255
|
+
sessionId: string;
|
|
256
|
+
}
|
|
257
|
+
export interface ConversationAnswerPermissionParams {
|
|
258
|
+
permissionId: string;
|
|
259
|
+
response: 'once' | 'always' | 'reject';
|
|
260
|
+
}
|
|
261
|
+
export interface ConversationAnswerQuestionParams {
|
|
262
|
+
answers: Array<Array<ConversationAnswerQuestionParams.Label | ConversationAnswerQuestionParams.Custom | ConversationAnswerQuestionParams.UnionMember2>>;
|
|
263
|
+
questionId: string;
|
|
264
|
+
}
|
|
265
|
+
export declare namespace ConversationAnswerQuestionParams {
|
|
266
|
+
interface Label {
|
|
267
|
+
label: string;
|
|
268
|
+
}
|
|
269
|
+
interface Custom {
|
|
270
|
+
custom: string;
|
|
271
|
+
}
|
|
272
|
+
interface UnionMember2 {
|
|
273
|
+
custom: string;
|
|
274
|
+
label: string;
|
|
275
|
+
}
|
|
276
|
+
}
|
|
277
|
+
export interface ConversationHistoryParams {
|
|
278
|
+
sessionId: string;
|
|
279
|
+
limit?: number;
|
|
280
|
+
}
|
|
281
|
+
export interface ConversationRejectQuestionParams {
|
|
282
|
+
questionId: string;
|
|
283
|
+
}
|
|
284
|
+
export interface ConversationSendParams {
|
|
285
|
+
message: string;
|
|
286
|
+
sessionId: string;
|
|
287
|
+
agent?: string;
|
|
288
|
+
}
|
|
289
|
+
export interface ConversationStreamParams {
|
|
290
|
+
sessionId: string;
|
|
291
|
+
}
|
|
292
|
+
export declare namespace Conversations {
|
|
293
|
+
export { type ConversationCreateResponse as ConversationCreateResponse, type ConversationUpdateResponse as ConversationUpdateResponse, type ConversationListResponse as ConversationListResponse, type ConversationAbortResponse as ConversationAbortResponse, type ConversationAnswerPermissionResponse as ConversationAnswerPermissionResponse, type ConversationAnswerQuestionResponse as ConversationAnswerQuestionResponse, type ConversationHistoryResponse as ConversationHistoryResponse, type ConversationRejectQuestionResponse as ConversationRejectQuestionResponse, type ConversationSendResponse as ConversationSendResponse, type ConversationStreamResponse as ConversationStreamResponse, type ConversationCreateParams as ConversationCreateParams, type ConversationUpdateParams as ConversationUpdateParams, type ConversationListParams as ConversationListParams, type ConversationAbortParams as ConversationAbortParams, type ConversationAnswerPermissionParams as ConversationAnswerPermissionParams, type ConversationAnswerQuestionParams as ConversationAnswerQuestionParams, type ConversationHistoryParams as ConversationHistoryParams, type ConversationRejectQuestionParams as ConversationRejectQuestionParams, type ConversationSendParams as ConversationSendParams, type ConversationStreamParams as ConversationStreamParams, };
|
|
294
|
+
}
|
|
295
|
+
//# sourceMappingURL=conversations.d.ts.map
|