@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 @@
|
|
|
1
|
+
{"version":3,"file":"conversations.d.ts","sourceRoot":"","sources":["../../src/resources/assistant/conversations.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,EAAE,UAAU,EAAE,kCAA+B;AACpD,OAAO,EAA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IAC/C,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,sBAAsB;IACrC,OAAO,EAAE,MAAM,CAAC;IAEhB,SAAS,EAAE,MAAM,CAAC;IAElB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,wBAAwB;IACvC,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,CAAC,OAAO,WAAW,aAAa,CAAC;IACrC,OAAO,EACL,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,oCAAoC,IAAI,oCAAoC,EACjF,KAAK,kCAAkC,IAAI,kCAAkC,EAC7E,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,kCAAkC,IAAI,kCAAkC,EAC7E,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,0BAA0B,IAAI,0BAA0B,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,109 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.Conversations = void 0;
|
|
5
|
+
const resource_1 = require("../../core/resource.js");
|
|
6
|
+
const headers_1 = require("../../internal/headers.js");
|
|
7
|
+
const path_1 = require("../../internal/utils/path.js");
|
|
8
|
+
class Conversations extends resource_1.APIResource {
|
|
9
|
+
/**
|
|
10
|
+
* Creates a titled agent session. Setup may occur on the first prompt. Idempotent
|
|
11
|
+
* via the `Idempotency-Key` header — a duplicate submit by the same authenticated
|
|
12
|
+
* caller within the 24-hour idempotency window returns the already-created session
|
|
13
|
+
* instead of a second one.
|
|
14
|
+
*/
|
|
15
|
+
create(params, options) {
|
|
16
|
+
const { 'Idempotency-Key': idempotencyKey, ...body } = params;
|
|
17
|
+
return this._client.post('/assistant/chat/sessions', {
|
|
18
|
+
body,
|
|
19
|
+
...options,
|
|
20
|
+
headers: (0, headers_1.buildHeaders)([
|
|
21
|
+
{ ...(idempotencyKey != null ? { 'Idempotency-Key': idempotencyKey } : undefined) },
|
|
22
|
+
options?.headers,
|
|
23
|
+
]),
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Rename, change status, and/or pin. Title updates apply best-effort. Archiving
|
|
28
|
+
* always clears the pinned flag. `title` is rejected with 409
|
|
29
|
+
* `code: "session_title_managed_by_workflow"` when this chat is bound to a
|
|
30
|
+
* workflow — a bound chat's title is managed by the workflow. Other fields
|
|
31
|
+
* (description, status, pinned) remain updateable; archiving a bound chat stays
|
|
32
|
+
* allowed.
|
|
33
|
+
*/
|
|
34
|
+
update(id, body, options) {
|
|
35
|
+
return this._client.patch((0, path_1.path) `/assistant/chat/sessions/${id}`, { body, ...options });
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Default (`kind` absent or `chat`): active named chat sessions, pinned first then
|
|
39
|
+
* most recent activity — `workflowId` must be absent, or the request 400s.
|
|
40
|
+
* `mine=true` (only valid with `kind=chat`) narrows to sessions the caller
|
|
41
|
+
* created. `kind=agent_workflow`: workflow-linked sessions for one workflow
|
|
42
|
+
* (`workflowId` required, or the request 400s), no status filter, newest episode
|
|
43
|
+
* first.
|
|
44
|
+
*/
|
|
45
|
+
list(query = {}, options) {
|
|
46
|
+
return this._client.get('/assistant/chat/sessions', { query, ...options });
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* Abort the in-flight chat turn owned by `sessionId`. Idempotent. A turn owned by
|
|
50
|
+
* a different session is left untouched (204).
|
|
51
|
+
*/
|
|
52
|
+
abort(body, options) {
|
|
53
|
+
return this._client.post('/assistant/chat/abort', { body, ...options });
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* Deliver a HITL approval/rejection for an in-flight turn.
|
|
57
|
+
*/
|
|
58
|
+
answerPermission(body, options) {
|
|
59
|
+
return this._client.post('/assistant/chat/permission', { body, ...options });
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* Deliver the user's answers to the agent's pending question for an in-flight
|
|
63
|
+
* turn. Idempotent via the `idempotency-key` header.
|
|
64
|
+
*/
|
|
65
|
+
answerQuestion(body, options) {
|
|
66
|
+
return this._client.post('/assistant/chat/question', { body, ...options });
|
|
67
|
+
}
|
|
68
|
+
/**
|
|
69
|
+
* Return the user's chat history for the given session. History remains readable
|
|
70
|
+
* after the session is no longer active.
|
|
71
|
+
*/
|
|
72
|
+
history(query, options) {
|
|
73
|
+
return this._client.get('/assistant/chat/messages', { query, ...options });
|
|
74
|
+
}
|
|
75
|
+
/**
|
|
76
|
+
* Dismiss the agent's pending question. Already-resolved questions return 200
|
|
77
|
+
* (no-op) so multi-tab dismiss stays idempotent.
|
|
78
|
+
*/
|
|
79
|
+
rejectQuestion(body, options) {
|
|
80
|
+
return this._client.post('/assistant/chat/question/reject', { body, ...options });
|
|
81
|
+
}
|
|
82
|
+
/**
|
|
83
|
+
* Send a single user message. The response format follows the Accept header:
|
|
84
|
+
* `text/event-stream` for SSE, `application/json` for a buffered assistant reply.
|
|
85
|
+
* `sessionId` targets a concrete active chat. The resolved chat session ID is
|
|
86
|
+
* returned as `chatSessionId` in the JSON body and as the `X-Chat-Session-Id`
|
|
87
|
+
* response header on the SSE response.
|
|
88
|
+
*/
|
|
89
|
+
send(body, options) {
|
|
90
|
+
return this._client.post('/assistant/chat/message', { body, ...options });
|
|
91
|
+
}
|
|
92
|
+
/**
|
|
93
|
+
* Reconnect to the in-flight turn stream. Replays buffered events from the start
|
|
94
|
+
* of the active turn, then continues live until the turn finishes. Responds 204
|
|
95
|
+
* when no active turn exists for the requested session. Upstream streaming
|
|
96
|
+
* failures return a retryable 503 with `Retry-After`. Resume is best-effort. Does
|
|
97
|
+
* not start an inactive session.
|
|
98
|
+
*/
|
|
99
|
+
stream(query, options) {
|
|
100
|
+
return this._client.get('/assistant/chat/stream', {
|
|
101
|
+
query,
|
|
102
|
+
...options,
|
|
103
|
+
headers: (0, headers_1.buildHeaders)([{ Accept: 'text/event-stream' }, options?.headers]),
|
|
104
|
+
stream: true,
|
|
105
|
+
});
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
exports.Conversations = Conversations;
|
|
109
|
+
//# sourceMappingURL=conversations.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"conversations.js","sourceRoot":"","sources":["../../src/resources/assistant/conversations.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAGlD,uDAAsD;AAEtD,uDAAiD;AAEjD,MAAa,aAAc,SAAQ,sBAAW;IAC5C;;;;;OAKG;IACH,MAAM,CAAC,MAAgC,EAAE,OAAwB;QAC/D,MAAM,EAAE,iBAAiB,EAAE,cAAc,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QAC9D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,0BAA0B,EAAE;YACnD,IAAI;YACJ,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC;gBACpB,EAAE,GAAG,CAAC,cAAc,IAAI,IAAI,CAAC,CAAC,CAAC,EAAE,iBAAiB,EAAE,cAAc,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC,EAAE;gBACnF,OAAO,E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,CAAC,IAAI,CAAC,iCAAiC,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACpF,CAAC;IAED;;;;;;OAMG;IACH,IAAI,CAAC,IAA4B,EAAE,OAAwB;QACzD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,yBAAyB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC5E,CAAC;IAED;;;;;;OAMG;IACH,MAAM,CACJ,KAA+B,EAC/B,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,wBAAwB,EAAE;YAChD,KAAK;YACL,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC,CAAC,EAAE,MAAM,EAAE,mBAAmB,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;YAC1E,MAAM,EAAE,IAAI;SACb,CAAmD,CAAC;IACvD,CAAC;CACF;AAlID,sCAkIC"}
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from "../../core/resource.mjs";
|
|
3
|
+
import { buildHeaders } from "../../internal/headers.mjs";
|
|
4
|
+
import { path } from "../../internal/utils/path.mjs";
|
|
5
|
+
export 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, options) {
|
|
13
|
+
const { 'Idempotency-Key': idempotencyKey, ...body } = params;
|
|
14
|
+
return this._client.post('/assistant/chat/sessions', {
|
|
15
|
+
body,
|
|
16
|
+
...options,
|
|
17
|
+
headers: buildHeaders([
|
|
18
|
+
{ ...(idempotencyKey != null ? { 'Idempotency-Key': idempotencyKey } : undefined) },
|
|
19
|
+
options?.headers,
|
|
20
|
+
]),
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Rename, change status, and/or pin. Title updates apply best-effort. Archiving
|
|
25
|
+
* always clears the pinned flag. `title` is rejected with 409
|
|
26
|
+
* `code: "session_title_managed_by_workflow"` when this chat is bound to a
|
|
27
|
+
* workflow — a bound chat's title is managed by the workflow. Other fields
|
|
28
|
+
* (description, status, pinned) remain updateable; archiving a bound chat stays
|
|
29
|
+
* allowed.
|
|
30
|
+
*/
|
|
31
|
+
update(id, body, options) {
|
|
32
|
+
return this._client.patch(path `/assistant/chat/sessions/${id}`, { body, ...options });
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* Default (`kind` absent or `chat`): active named chat sessions, pinned first then
|
|
36
|
+
* most recent activity — `workflowId` must be absent, or the request 400s.
|
|
37
|
+
* `mine=true` (only valid with `kind=chat`) narrows to sessions the caller
|
|
38
|
+
* created. `kind=agent_workflow`: workflow-linked sessions for one workflow
|
|
39
|
+
* (`workflowId` required, or the request 400s), no status filter, newest episode
|
|
40
|
+
* first.
|
|
41
|
+
*/
|
|
42
|
+
list(query = {}, options) {
|
|
43
|
+
return this._client.get('/assistant/chat/sessions', { query, ...options });
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* Abort the in-flight chat turn owned by `sessionId`. Idempotent. A turn owned by
|
|
47
|
+
* a different session is left untouched (204).
|
|
48
|
+
*/
|
|
49
|
+
abort(body, options) {
|
|
50
|
+
return this._client.post('/assistant/chat/abort', { body, ...options });
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* Deliver a HITL approval/rejection for an in-flight turn.
|
|
54
|
+
*/
|
|
55
|
+
answerPermission(body, options) {
|
|
56
|
+
return this._client.post('/assistant/chat/permission', { body, ...options });
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* Deliver the user's answers to the agent's pending question for an in-flight
|
|
60
|
+
* turn. Idempotent via the `idempotency-key` header.
|
|
61
|
+
*/
|
|
62
|
+
answerQuestion(body, options) {
|
|
63
|
+
return this._client.post('/assistant/chat/question', { body, ...options });
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* Return the user's chat history for the given session. History remains readable
|
|
67
|
+
* after the session is no longer active.
|
|
68
|
+
*/
|
|
69
|
+
history(query, options) {
|
|
70
|
+
return this._client.get('/assistant/chat/messages', { query, ...options });
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* Dismiss the agent's pending question. Already-resolved questions return 200
|
|
74
|
+
* (no-op) so multi-tab dismiss stays idempotent.
|
|
75
|
+
*/
|
|
76
|
+
rejectQuestion(body, options) {
|
|
77
|
+
return this._client.post('/assistant/chat/question/reject', { body, ...options });
|
|
78
|
+
}
|
|
79
|
+
/**
|
|
80
|
+
* Send a single user message. The response format follows the Accept header:
|
|
81
|
+
* `text/event-stream` for SSE, `application/json` for a buffered assistant reply.
|
|
82
|
+
* `sessionId` targets a concrete active chat. The resolved chat session ID is
|
|
83
|
+
* returned as `chatSessionId` in the JSON body and as the `X-Chat-Session-Id`
|
|
84
|
+
* response header on the SSE response.
|
|
85
|
+
*/
|
|
86
|
+
send(body, options) {
|
|
87
|
+
return this._client.post('/assistant/chat/message', { body, ...options });
|
|
88
|
+
}
|
|
89
|
+
/**
|
|
90
|
+
* Reconnect to the in-flight turn stream. Replays buffered events from the start
|
|
91
|
+
* of the active turn, then continues live until the turn finishes. Responds 204
|
|
92
|
+
* when no active turn exists for the requested session. Upstream streaming
|
|
93
|
+
* failures return a retryable 503 with `Retry-After`. Resume is best-effort. Does
|
|
94
|
+
* not start an inactive session.
|
|
95
|
+
*/
|
|
96
|
+
stream(query, options) {
|
|
97
|
+
return this._client.get('/assistant/chat/stream', {
|
|
98
|
+
query,
|
|
99
|
+
...options,
|
|
100
|
+
headers: buildHeaders([{ Accept: 'text/event-stream' }, options?.headers]),
|
|
101
|
+
stream: true,
|
|
102
|
+
});
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
//# sourceMappingURL=conversations.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"conversations.mjs","sourceRoot":"","sources":["../../src/resources/assistant/conversations.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAGlD,OAAO,EAAE,YAAY,EAAE,mCAA+B;AAEtD,OAAO,EAAE,IAAI,EAAE,sCAAkC;AAEjD,MAAM,OAAO,aAAc,SAAQ,WAAW;IAC5C;;;;;OAKG;IACH,MAAM,CAAC,MAAgC,EAAE,OAAwB;QAC/D,MAAM,EAAE,iBAAiB,EAAE,cAAc,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QAC9D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,0BAA0B,EAAE;YACnD,IAAI;YACJ,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC;gBACpB,EAAE,GAAG,CAAC,cAAc,IAAI,IAAI,CAAC,CAAC,CAAC,EAAE,iBAAiB,EAAE,cAAc,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC,EAAE;gBACnF,OAAO,EAAE,OAAO;aACjB,CAAC;SACH,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;OAOG;IACH,MAAM,CACJ,EAAU,EACV,IAA8B,EAC9B,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,CAAA,4BAA4B,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACxF,CAAC;IAED;;;;;;;OAOG;IACH,IAAI,CACF,QAAmD,EAAE,EACrD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,0BAA0B,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC7E,CAAC;IAED;;;OAGG;IACH,KAAK,C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EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;YAC1E,MAAM,EAAE,IAAI;SACb,CAAmD,CAAC;IACvD,CAAC;CACF"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export { Assistant } from "./assistant.mjs";
|
|
2
|
+
export { Conversations, type ConversationCreateResponse, type ConversationUpdateResponse, type ConversationListResponse, type ConversationAbortResponse, type ConversationAnswerPermissionResponse, type ConversationAnswerQuestionResponse, type ConversationHistoryResponse, type ConversationRejectQuestionResponse, type ConversationSendResponse, type ConversationStreamResponse, type ConversationCreateParams, type ConversationUpdateParams, type ConversationListParams, type ConversationAbortParams, type ConversationAnswerPermissionParams, type ConversationAnswerQuestionParams, type ConversationHistoryParams, type ConversationRejectQuestionParams, type ConversationSendParams, type ConversationStreamParams, } from "./conversations.mjs";
|
|
3
|
+
//# sourceMappingURL=index.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../src/resources/assistant/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAE,wBAAoB;AACxC,OAAO,EACL,aAAa,EACb,KAAK,0BAA0B,EAC/B,KAAK,0BAA0B,EAC/B,KAAK,wBAAwB,EAC7B,KAAK,yBAAyB,EAC9B,KAAK,oCAAoC,EACzC,KAAK,kCAAkC,EACvC,KAAK,2BAA2B,EAChC,KAAK,kCAAkC,EACvC,KAAK,wBAAwB,EAC7B,KAAK,0BAA0B,EAC/B,KAAK,wBAAwB,EAC7B,KAAK,wBAAwB,EAC7B,KAAK,sBAAsB,EAC3B,KAAK,uBAAuB,EAC5B,KAAK,kCAAkC,EACvC,KAAK,gCAAgC,EACrC,KAAK,yBAAyB,EAC9B,KAAK,gCAAgC,EACrC,KAAK,sBAAsB,EAC3B,KAAK,wBAAwB,GAC9B,4BAAwB"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export { Assistant } from "./assistant.js";
|
|
2
|
+
export { Conversations, type ConversationCreateResponse, type ConversationUpdateResponse, type ConversationListResponse, type ConversationAbortResponse, type ConversationAnswerPermissionResponse, type ConversationAnswerQuestionResponse, type ConversationHistoryResponse, type ConversationRejectQuestionResponse, type ConversationSendResponse, type ConversationStreamResponse, type ConversationCreateParams, type ConversationUpdateParams, type ConversationListParams, type ConversationAbortParams, type ConversationAnswerPermissionParams, type ConversationAnswerQuestionParams, type ConversationHistoryParams, type ConversationRejectQuestionParams, type ConversationSendParams, type ConversationStreamParams, } from "./conversations.js";
|
|
3
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/assistant/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAE,uBAAoB;AACxC,OAAO,EACL,aAAa,EACb,KAAK,0BAA0B,EAC/B,KAAK,0BAA0B,EAC/B,KAAK,wBAAwB,EAC7B,KAAK,yBAAyB,EAC9B,KAAK,oCAAoC,EACzC,KAAK,kCAAkC,EACvC,KAAK,2BAA2B,EAChC,KAAK,kCAAkC,EACvC,KAAK,wBAAwB,EAC7B,KAAK,0BAA0B,EAC/B,KAAK,wBAAwB,EAC7B,KAAK,wBAAwB,EAC7B,KAAK,sBAAsB,EAC3B,KAAK,uBAAuB,EAC5B,KAAK,kCAAkC,EACvC,KAAK,gCAAgC,EACrC,KAAK,yBAAyB,EAC9B,KAAK,gCAAgC,EACrC,KAAK,sBAAsB,EAC3B,KAAK,wBAAwB,GAC9B,2BAAwB"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.Conversations = exports.Assistant = void 0;
|
|
5
|
+
var assistant_1 = require("./assistant.js");
|
|
6
|
+
Object.defineProperty(exports, "Assistant", { enumerable: true, get: function () { return assistant_1.Assistant; } });
|
|
7
|
+
var conversations_1 = require("./conversations.js");
|
|
8
|
+
Object.defineProperty(exports, "Conversations", { enumerable: true, get: function () { return conversations_1.Conversations; } });
|
|
9
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/assistant/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,4CAAwC;AAA/B,sGAAA,SAAS,OAAA;AAClB,oDAsByB;AArBvB,8GAAA,aAAa,OAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/assistant/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,SAAS,EAAE,wBAAoB;AACxC,OAAO,EACL,aAAa,GAqBd,4BAAwB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"assistant.d.mts","sourceRoot":"","sources":["../src/resources/assistant.ts"],"names":[],"mappings":"AAEA,sCAAkC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"assistant.d.ts","sourceRoot":"","sources":["../src/resources/assistant.ts"],"names":[],"mappings":"AAEA,qCAAkC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
const tslib_1 = require("../internal/tslib.js");
|
|
5
|
+
tslib_1.__exportStar(require("./assistant/index.js"), exports);
|
|
6
|
+
//# sourceMappingURL=assistant.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"assistant.js","sourceRoot":"","sources":["../src/resources/assistant.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,+DAAkC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"assistant.mjs","sourceRoot":"","sources":["../src/resources/assistant.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,sCAAkC"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { APIResource } from "../../core/resource.mjs";
|
|
2
|
+
import { APIPromise } from "../../core/api-promise.mjs";
|
|
3
|
+
import { RequestOptions } from "../../internal/request-options.mjs";
|
|
4
|
+
export declare class Clipboard extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* Returns the current text content of the device's clipboard. Devices without
|
|
7
|
+
* clipboard support return an unsupported-feature error.
|
|
8
|
+
*/
|
|
9
|
+
get(deviceID: string, params?: ClipboardGetParams | null | undefined, options?: RequestOptions): APIPromise<ClipboardGetResponse>;
|
|
10
|
+
/**
|
|
11
|
+
* Replaces the device's clipboard content with the text in the request body; an
|
|
12
|
+
* empty text clears the clipboard. Devices without clipboard support return an
|
|
13
|
+
* unsupported-feature error.
|
|
14
|
+
*/
|
|
15
|
+
set(deviceID: string, params: ClipboardSetParams, options?: RequestOptions): APIPromise<void>;
|
|
16
|
+
}
|
|
17
|
+
export interface ClipboardGetResponse {
|
|
18
|
+
text: string;
|
|
19
|
+
/**
|
|
20
|
+
* A URL to the JSON Schema for this object.
|
|
21
|
+
*/
|
|
22
|
+
$schema?: string;
|
|
23
|
+
}
|
|
24
|
+
export interface ClipboardGetParams {
|
|
25
|
+
'X-Device-Display-ID'?: number;
|
|
26
|
+
}
|
|
27
|
+
export interface ClipboardSetParams {
|
|
28
|
+
/**
|
|
29
|
+
* Body param
|
|
30
|
+
*/
|
|
31
|
+
text: string;
|
|
32
|
+
/**
|
|
33
|
+
* Header param
|
|
34
|
+
*/
|
|
35
|
+
'X-Device-Display-ID'?: number;
|
|
36
|
+
}
|
|
37
|
+
export declare namespace Clipboard {
|
|
38
|
+
export { type ClipboardGetResponse as ClipboardGetResponse, type ClipboardGetParams as ClipboardGetParams, type ClipboardSetParams as ClipboardSetParams, };
|
|
39
|
+
}
|
|
40
|
+
//# sourceMappingURL=clipboard.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"clipboard.d.mts","sourceRoot":"","sources":["../../src/resources/devices/clipboard.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,EAAE,UAAU,EAAE,mCAA+B;AAEpD,OAAO,EAAE,cAAc,EAAE,2CAAuC;AAGhE,qBAAa,SAAU,SAAQ,WAAW;IACxC;;;OAGG;IACH,GAAG,CACD,QAAQ,EAAE,MAAM,EAChB,MAAM,GAAE,kBAAkB,GAAG,IAAI,GAAG,SAAc,EAClD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,oBAAoB,CAAC;IAenC;;;;OAIG;IACH,GAAG,CAAC,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,kBAAkB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;CAgB9F;AAED,MAAM,WAAW,oBAAoB;IACnC,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,kBAAkB;IACjC,qBAAqB,CAAC,EAAE,MAAM,CAAC;CAChC;AAED,MAAM,WAAW,kBAAkB;IACjC;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,qBAAqB,CAAC,EAAE,MAAM,CAAC;CAChC;AAED,MAAM,CAAC,OAAO,WAAW,SAAS,CAAC;IACjC,OAAO,EACL,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,kBAAkB,IAAI,kBAAkB,GAC9C,CAAC;CACH"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { APIResource } from "../../core/resource.js";
|
|
2
|
+
import { APIPromise } from "../../core/api-promise.js";
|
|
3
|
+
import { RequestOptions } from "../../internal/request-options.js";
|
|
4
|
+
export declare class Clipboard extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* Returns the current text content of the device's clipboard. Devices without
|
|
7
|
+
* clipboard support return an unsupported-feature error.
|
|
8
|
+
*/
|
|
9
|
+
get(deviceID: string, params?: ClipboardGetParams | null | undefined, options?: RequestOptions): APIPromise<ClipboardGetResponse>;
|
|
10
|
+
/**
|
|
11
|
+
* Replaces the device's clipboard content with the text in the request body; an
|
|
12
|
+
* empty text clears the clipboard. Devices without clipboard support return an
|
|
13
|
+
* unsupported-feature error.
|
|
14
|
+
*/
|
|
15
|
+
set(deviceID: string, params: ClipboardSetParams, options?: RequestOptions): APIPromise<void>;
|
|
16
|
+
}
|
|
17
|
+
export interface ClipboardGetResponse {
|
|
18
|
+
text: string;
|
|
19
|
+
/**
|
|
20
|
+
* A URL to the JSON Schema for this object.
|
|
21
|
+
*/
|
|
22
|
+
$schema?: string;
|
|
23
|
+
}
|
|
24
|
+
export interface ClipboardGetParams {
|
|
25
|
+
'X-Device-Display-ID'?: number;
|
|
26
|
+
}
|
|
27
|
+
export interface ClipboardSetParams {
|
|
28
|
+
/**
|
|
29
|
+
* Body param
|
|
30
|
+
*/
|
|
31
|
+
text: string;
|
|
32
|
+
/**
|
|
33
|
+
* Header param
|
|
34
|
+
*/
|
|
35
|
+
'X-Device-Display-ID'?: number;
|
|
36
|
+
}
|
|
37
|
+
export declare namespace Clipboard {
|
|
38
|
+
export { type ClipboardGetResponse as ClipboardGetResponse, type ClipboardGetParams as ClipboardGetParams, type ClipboardSetParams as ClipboardSetParams, };
|
|
39
|
+
}
|
|
40
|
+
//# sourceMappingURL=clipboard.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"clipboard.d.ts","sourceRoot":"","sources":["../../src/resources/devices/clipboard.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,EAAE,UAAU,EAAE,kCAA+B;AAEpD,OAAO,EAAE,cAAc,EAAE,0CAAuC;AAGhE,qBAAa,SAAU,SAAQ,WAAW;IACxC;;;OAGG;IACH,GAAG,CACD,QAAQ,EAAE,MAAM,EAChB,MAAM,GAAE,kBAAkB,GAAG,IAAI,GAAG,SAAc,EAClD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,oBAAoB,CAAC;IAenC;;;;OAIG;IACH,GAAG,CAAC,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,kBAAkB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;CAgB9F;AAED,MAAM,WAAW,oBAAoB;IACnC,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,kBAAkB;IACjC,qBAAqB,CAAC,EAAE,MAAM,CAAC;CAChC;AAED,MAAM,WAAW,kBAAkB;IACjC;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,qBAAqB,CAAC,EAAE,MAAM,CAAC;CAChC;AAED,MAAM,CAAC,OAAO,WAAW,SAAS,CAAC;IACjC,OAAO,EACL,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,kBAAkB,IAAI,kBAAkB,GAC9C,CAAC;CACH"}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.Clipboard = void 0;
|
|
5
|
+
const resource_1 = require("../../core/resource.js");
|
|
6
|
+
const headers_1 = require("../../internal/headers.js");
|
|
7
|
+
const path_1 = require("../../internal/utils/path.js");
|
|
8
|
+
class Clipboard extends resource_1.APIResource {
|
|
9
|
+
/**
|
|
10
|
+
* Returns the current text content of the device's clipboard. Devices without
|
|
11
|
+
* clipboard support return an unsupported-feature error.
|
|
12
|
+
*/
|
|
13
|
+
get(deviceID, params = {}, options) {
|
|
14
|
+
const { 'X-Device-Display-ID': xDeviceDisplayID } = params ?? {};
|
|
15
|
+
return this._client.get((0, path_1.path) `/devices/${deviceID}/clipboard`, {
|
|
16
|
+
...options,
|
|
17
|
+
headers: (0, headers_1.buildHeaders)([
|
|
18
|
+
{
|
|
19
|
+
...(xDeviceDisplayID?.toString() != null ?
|
|
20
|
+
{ 'X-Device-Display-ID': xDeviceDisplayID?.toString() }
|
|
21
|
+
: undefined),
|
|
22
|
+
},
|
|
23
|
+
options?.headers,
|
|
24
|
+
]),
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Replaces the device's clipboard content with the text in the request body; an
|
|
29
|
+
* empty text clears the clipboard. Devices without clipboard support return an
|
|
30
|
+
* unsupported-feature error.
|
|
31
|
+
*/
|
|
32
|
+
set(deviceID, params, options) {
|
|
33
|
+
const { 'X-Device-Display-ID': xDeviceDisplayID, ...body } = params;
|
|
34
|
+
return this._client.post((0, path_1.path) `/devices/${deviceID}/clipboard`, {
|
|
35
|
+
body,
|
|
36
|
+
...options,
|
|
37
|
+
headers: (0, headers_1.buildHeaders)([
|
|
38
|
+
{
|
|
39
|
+
Accept: '*/*',
|
|
40
|
+
...(xDeviceDisplayID?.toString() != null ?
|
|
41
|
+
{ 'X-Device-Display-ID': xDeviceDisplayID?.toString() }
|
|
42
|
+
: undefined),
|
|
43
|
+
},
|
|
44
|
+
options?.headers,
|
|
45
|
+
]),
|
|
46
|
+
});
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
exports.Clipboard = Clipboard;
|
|
50
|
+
//# sourceMappingURL=clipboard.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"clipboard.js","sourceRoot":"","sources":["../../src/resources/devices/clipboard.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAElD,uDAAsD;AAEtD,uDAAi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BUTING.md for details.
|
|
2
|
+
import { APIResource } from "../../core/resource.mjs";
|
|
3
|
+
import { buildHeaders } from "../../internal/headers.mjs";
|
|
4
|
+
import { path } from "../../internal/utils/path.mjs";
|
|
5
|
+
export class Clipboard extends APIResource {
|
|
6
|
+
/**
|
|
7
|
+
* Returns the current text content of the device's clipboard. Devices without
|
|
8
|
+
* clipboard support return an unsupported-feature error.
|
|
9
|
+
*/
|
|
10
|
+
get(deviceID, params = {}, options) {
|
|
11
|
+
const { 'X-Device-Display-ID': xDeviceDisplayID } = params ?? {};
|
|
12
|
+
return this._client.get(path `/devices/${deviceID}/clipboard`, {
|
|
13
|
+
...options,
|
|
14
|
+
headers: buildHeaders([
|
|
15
|
+
{
|
|
16
|
+
...(xDeviceDisplayID?.toString() != null ?
|
|
17
|
+
{ 'X-Device-Display-ID': xDeviceDisplayID?.toString() }
|
|
18
|
+
: undefined),
|
|
19
|
+
},
|
|
20
|
+
options?.headers,
|
|
21
|
+
]),
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Replaces the device's clipboard content with the text in the request body; an
|
|
26
|
+
* empty text clears the clipboard. Devices without clipboard support return an
|
|
27
|
+
* unsupported-feature error.
|
|
28
|
+
*/
|
|
29
|
+
set(deviceID, params, options) {
|
|
30
|
+
const { 'X-Device-Display-ID': xDeviceDisplayID, ...body } = params;
|
|
31
|
+
return this._client.post(path `/devices/${deviceID}/clipboard`, {
|
|
32
|
+
body,
|
|
33
|
+
...options,
|
|
34
|
+
headers: buildHeaders([
|
|
35
|
+
{
|
|
36
|
+
Accept: '*/*',
|
|
37
|
+
...(xDeviceDisplayID?.toString() != null ?
|
|
38
|
+
{ 'X-Device-Display-ID': xDeviceDisplayID?.toString() }
|
|
39
|
+
: undefined),
|
|
40
|
+
},
|
|
41
|
+
options?.headers,
|
|
42
|
+
]),
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
//# sourceMappingURL=clipboard.mjs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gB,EAAE,QAAQ,EAAE,EAAE;wBACzD,CAAC,CAAC,SAAS,CAAC;iBACb;gBACD,OAAO,EAAE,OAAO;aACjB,CAAC;SACH,CAAC,CAAC;IACL,CAAC;CACF"}
|
|
@@ -6,6 +6,8 @@ import * as AppsAPI from "./apps.mjs";
|
|
|
6
6
|
import { AppDeleteParams, AppGrantPermissionParams, AppInstallParams, AppListInstallsParams, AppListInstallsResponse, AppListParams, AppListResponse, AppRevokePermissionParams, AppStartParams, AppStopParams, Apps } from "./apps.mjs";
|
|
7
7
|
import * as BrowserAPI from "./browser.mjs";
|
|
8
8
|
import { Browser, BrowserExecuteScriptParams, BrowserExecuteScriptResponse } from "./browser.mjs";
|
|
9
|
+
import * as ClipboardAPI from "./clipboard.mjs";
|
|
10
|
+
import { Clipboard, ClipboardGetParams, ClipboardGetResponse, ClipboardSetParams } from "./clipboard.mjs";
|
|
9
11
|
import * as DeepLinkAPI from "./deep-link.mjs";
|
|
10
12
|
import { DeepLink, DeepLinkExecuteDeepLinkParams } from "./deep-link.mjs";
|
|
11
13
|
import * as FilesAPI from "./files.mjs";
|
|
@@ -50,6 +52,7 @@ export declare class Devices extends APIResource {
|
|
|
50
52
|
proxy: ProxyAPI.Proxy;
|
|
51
53
|
state: StateAPI.State;
|
|
52
54
|
tasks: TasksAPI.Tasks;
|
|
55
|
+
clipboard: ClipboardAPI.Clipboard;
|
|
53
56
|
timezone: TimezoneAPI.Timezone;
|
|
54
57
|
language: LanguageAPI.Language;
|
|
55
58
|
deepLink: DeepLinkAPI.DeepLink;
|
|
@@ -270,6 +273,7 @@ export declare namespace DeviceRetrieveCapabilitiesResponse {
|
|
|
270
273
|
apps: boolean;
|
|
271
274
|
browser: boolean;
|
|
272
275
|
cameraInjection: boolean;
|
|
276
|
+
clipboard: boolean;
|
|
273
277
|
esim: boolean;
|
|
274
278
|
files: boolean;
|
|
275
279
|
fingerprint: boolean;
|
|
@@ -488,6 +492,7 @@ export declare namespace Devices {
|
|
|
488
492
|
export { ProxyAPIProxy as Proxy, type ProxyStatusResponse as ProxyStatusResponse, type ProxyConnectParams as ProxyConnectParams, type ProxyDisconnectParams as ProxyDisconnectParams, type ProxyStatusParams as ProxyStatusParams, };
|
|
489
493
|
export { State as State, type A11YNode as A11YNode, type StateScreenshotResponse as StateScreenshotResponse, type StateTimeResponse as StateTimeResponse, type StateUiResponse as StateUiResponse, type StateScreenshotParams as StateScreenshotParams, type StateTimeParams as StateTimeParams, type StateUiParams as StateUiParams, };
|
|
490
494
|
export { Tasks as Tasks, type TaskListResponse as TaskListResponse, type TaskListParams as TaskListParams };
|
|
495
|
+
export { Clipboard as Clipboard, type ClipboardGetResponse as ClipboardGetResponse, type ClipboardGetParams as ClipboardGetParams, type ClipboardSetParams as ClipboardSetParams, };
|
|
491
496
|
export { Timezone as Timezone, type TimezoneGetResponse as TimezoneGetResponse, type TimezoneGetParams as TimezoneGetParams, type TimezoneSetParams as TimezoneSetParams, };
|
|
492
497
|
export { Language as Language, type LanguageGetResponse as LanguageGetResponse, type LanguageGetParams as LanguageGetParams, type LanguageSetParams as LanguageSetParams, };
|
|
493
498
|
export { DeepLink as DeepLink, type DeepLinkExecuteDeepLinkParams as DeepLinkExecuteDeepLinkParams };
|