casedev 0.24.0 → 0.26.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.
Files changed (65) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/package.json +1 -1
  3. package/resources/agent/v1/chat/chat.d.mts +163 -0
  4. package/resources/agent/v1/chat/chat.d.mts.map +1 -0
  5. package/resources/agent/v1/chat/chat.d.ts +163 -0
  6. package/resources/agent/v1/chat/chat.d.ts.map +1 -0
  7. package/resources/agent/v1/chat/chat.js +109 -0
  8. package/resources/agent/v1/chat/chat.js.map +1 -0
  9. package/resources/agent/v1/chat/chat.mjs +104 -0
  10. package/resources/agent/v1/chat/chat.mjs.map +1 -0
  11. package/resources/agent/v1/chat/files.d.mts +42 -0
  12. package/resources/agent/v1/chat/files.d.mts.map +1 -0
  13. package/resources/agent/v1/chat/files.d.ts +42 -0
  14. package/resources/agent/v1/chat/files.d.ts.map +1 -0
  15. package/resources/agent/v1/chat/files.js +33 -0
  16. package/resources/agent/v1/chat/files.js.map +1 -0
  17. package/resources/agent/v1/chat/files.mjs +29 -0
  18. package/resources/agent/v1/chat/files.mjs.map +1 -0
  19. package/resources/agent/v1/chat/index.d.mts +3 -0
  20. package/resources/agent/v1/chat/index.d.mts.map +1 -0
  21. package/resources/agent/v1/chat/index.d.ts +3 -0
  22. package/resources/agent/v1/chat/index.d.ts.map +1 -0
  23. package/resources/agent/v1/chat/index.js +9 -0
  24. package/resources/agent/v1/chat/index.js.map +1 -0
  25. package/resources/agent/v1/chat/index.mjs +4 -0
  26. package/resources/agent/v1/chat/index.mjs.map +1 -0
  27. package/resources/agent/v1/chat.d.mts +1 -158
  28. package/resources/agent/v1/chat.d.mts.map +1 -1
  29. package/resources/agent/v1/chat.d.ts +1 -158
  30. package/resources/agent/v1/chat.d.ts.map +1 -1
  31. package/resources/agent/v1/chat.js +2 -97
  32. package/resources/agent/v1/chat.js.map +1 -1
  33. package/resources/agent/v1/chat.mjs +1 -95
  34. package/resources/agent/v1/chat.mjs.map +1 -1
  35. package/resources/agent/v1/index.d.mts +1 -1
  36. package/resources/agent/v1/index.d.ts +1 -1
  37. package/resources/agent/v1/index.js +2 -2
  38. package/resources/agent/v1/index.js.map +1 -1
  39. package/resources/agent/v1/index.mjs +1 -1
  40. package/resources/agent/v1/v1.d.mts +2 -2
  41. package/resources/agent/v1/v1.d.mts.map +1 -1
  42. package/resources/agent/v1/v1.d.ts +2 -2
  43. package/resources/agent/v1/v1.d.ts.map +1 -1
  44. package/resources/agent/v1/v1.js +2 -2
  45. package/resources/agent/v1/v1.js.map +1 -1
  46. package/resources/agent/v1/v1.mjs +2 -2
  47. package/resources/agent/v1/v1.mjs.map +1 -1
  48. package/resources/legal/v1.d.mts +46 -11
  49. package/resources/legal/v1.d.mts.map +1 -1
  50. package/resources/legal/v1.d.ts +46 -11
  51. package/resources/legal/v1.d.ts.map +1 -1
  52. package/resources/legal/v1.js +3 -3
  53. package/resources/legal/v1.mjs +3 -3
  54. package/src/resources/agent/v1/chat/chat.ts +267 -0
  55. package/src/resources/agent/v1/chat/files.ts +63 -0
  56. package/src/resources/agent/v1/chat/index.ts +16 -0
  57. package/src/resources/agent/v1/chat.ts +1 -253
  58. package/src/resources/agent/v1/index.ts +1 -1
  59. package/src/resources/agent/v1/v1.ts +14 -14
  60. package/src/resources/legal/v1.ts +53 -11
  61. package/src/version.ts +1 -1
  62. package/version.d.mts +1 -1
  63. package/version.d.ts +1 -1
  64. package/version.js +1 -1
  65. package/version.mjs +1 -1
@@ -0,0 +1,42 @@
1
+ import { APIResource } from "../../../../core/resource.js";
2
+ import { APIPromise } from "../../../../core/api-promise.js";
3
+ import { RequestOptions } from "../../../../internal/request-options.js";
4
+ /**
5
+ * Create, manage, and execute AI agents with tool access, sandbox environments, and async run workflows
6
+ */
7
+ export declare class Files extends APIResource {
8
+ /**
9
+ * Lists files created by the agent in the sandbox workspace. Only available while
10
+ * the sandbox is running.
11
+ */
12
+ list(id: string, options?: RequestOptions): APIPromise<FileListResponse>;
13
+ /**
14
+ * Downloads a file from the sandbox workspace by path. Only available while the
15
+ * sandbox is running.
16
+ */
17
+ download(path_: string, params: FileDownloadParams, options?: RequestOptions): APIPromise<Response>;
18
+ }
19
+ export interface FileListResponse {
20
+ chatId?: string;
21
+ files?: Array<FileListResponse.File>;
22
+ }
23
+ export declare namespace FileListResponse {
24
+ interface File {
25
+ name?: string;
26
+ /**
27
+ * Relative path from /workspace
28
+ */
29
+ path?: string;
30
+ sizeBytes?: number;
31
+ }
32
+ }
33
+ export interface FileDownloadParams {
34
+ /**
35
+ * Chat session ID
36
+ */
37
+ id: string;
38
+ }
39
+ export declare namespace Files {
40
+ export { type FileListResponse as FileListResponse, type FileDownloadParams as FileDownloadParams };
41
+ }
42
+ //# sourceMappingURL=files.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"files.d.ts","sourceRoot":"","sources":["../../../../src/resources/agent/v1/chat/files.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OAEd,EAAE,cAAc,EAAE;AAGzB;;GAEG;AACH,qBAAa,KAAM,SAAQ,WAAW;IACpC;;;OAGG;IACH,IAAI,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,gBAAgB,CAAC;IAIxE;;;OAGG;IACH,QAAQ,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,kBAAkB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,QAAQ,CAAC;CAQpG;AAED,MAAM,WAAW,gBAAgB;IAC/B,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB,KAAK,CAAC,EAAE,KAAK,CAAC,gBAAgB,CAAC,IAAI,CAAC,CAAC;CACtC;AAED,yBAAiB,gBAAgB,CAAC;IAChC,UAAiB,IAAI;QACnB,IAAI,CAAC,EAAE,MAAM,CAAC;QAEd;;WAEG;QACH,IAAI,CAAC,EAAE,MAAM,CAAC;QAEd,SAAS,CAAC,EAAE,MAAM,CAAC;KACpB;CACF;AAED,MAAM,WAAW,kBAAkB;IACjC;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;CACZ;AAED,MAAM,CAAC,OAAO,WAAW,KAAK,CAAC;IAC7B,OAAO,EAAE,KAAK,gBAAgB,IAAI,gBAAgB,EAAE,KAAK,kBAAkB,IAAI,kBAAkB,EAAE,CAAC;CACrG"}
@@ -0,0 +1,33 @@
1
+ "use strict";
2
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.Files = 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
+ /**
9
+ * Create, manage, and execute AI agents with tool access, sandbox environments, and async run workflows
10
+ */
11
+ class Files extends resource_1.APIResource {
12
+ /**
13
+ * Lists files created by the agent in the sandbox workspace. Only available while
14
+ * the sandbox is running.
15
+ */
16
+ list(id, options) {
17
+ return this._client.get((0, path_1.path) `/agent/v1/chat/${id}/files`, options);
18
+ }
19
+ /**
20
+ * Downloads a file from the sandbox workspace by path. Only available while the
21
+ * sandbox is running.
22
+ */
23
+ download(path_, params, options) {
24
+ const { id } = params;
25
+ return this._client.get((0, path_1.path) `/agent/v1/chat/${id}/files/${path_}`, {
26
+ ...options,
27
+ headers: (0, headers_1.buildHeaders)([{ Accept: 'application/octet-stream' }, options?.headers]),
28
+ __binaryResponse: true,
29
+ });
30
+ }
31
+ }
32
+ exports.Files = Files;
33
+ //# sourceMappingURL=files.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"files.js","sourceRoot":"","sources":["../../../../src/resources/agent/v1/chat/files.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,2DAAwD;AAExD,6DAA4D;AAE5D,6DAAuD;AAEvD;;GAEG;AACH,MAAa,KAAM,SAAQ,sBAAW;IACpC;;;OAGG;IACH,IAAI,CAAC,EAAU,EAAE,OAAwB;QACvC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,kBAAkB,EAAE,QAAQ,EAAE,OAAO,CAAC,CAAC;IACrE,CAAC;IAED;;;OAGG;IACH,QAAQ,CAAC,KAAa,EAAE,MAA0B,EAAE,OAAwB;QAC1E,MAAM,EAAE,EAAE,EAAE,GAAG,MAAM,CAAC;QACtB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,kBAAkB,EAAE,UAAU,KAAK,EAAE,EAAE;YACjE,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC,CAAC,EAAE,MAAM,EAAE,0BAA0B,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;YACjF,gBAAgB,EAAE,IAAI;SACvB,CAAC,CAAC;IACL,CAAC;CACF;AArBD,sBAqBC"}
@@ -0,0 +1,29 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+ import { APIResource } from "../../../../core/resource.mjs";
3
+ import { buildHeaders } from "../../../../internal/headers.mjs";
4
+ import { path } from "../../../../internal/utils/path.mjs";
5
+ /**
6
+ * Create, manage, and execute AI agents with tool access, sandbox environments, and async run workflows
7
+ */
8
+ export class Files extends APIResource {
9
+ /**
10
+ * Lists files created by the agent in the sandbox workspace. Only available while
11
+ * the sandbox is running.
12
+ */
13
+ list(id, options) {
14
+ return this._client.get(path `/agent/v1/chat/${id}/files`, options);
15
+ }
16
+ /**
17
+ * Downloads a file from the sandbox workspace by path. Only available while the
18
+ * sandbox is running.
19
+ */
20
+ download(path_, params, options) {
21
+ const { id } = params;
22
+ return this._client.get(path `/agent/v1/chat/${id}/files/${path_}`, {
23
+ ...options,
24
+ headers: buildHeaders([{ Accept: 'application/octet-stream' }, options?.headers]),
25
+ __binaryResponse: true,
26
+ });
27
+ }
28
+ }
29
+ //# sourceMappingURL=files.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"files.mjs","sourceRoot":"","sources":["../../../../src/resources/agent/v1/chat/files.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAEf,EAAE,YAAY,EAAE;OAEhB,EAAE,IAAI,EAAE;AAEf;;GAEG;AACH,MAAM,OAAO,KAAM,SAAQ,WAAW;IACpC;;;OAGG;IACH,IAAI,CAAC,EAAU,EAAE,OAAwB;QACvC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,kBAAkB,EAAE,QAAQ,EAAE,OAAO,CAAC,CAAC;IACrE,CAAC;IAED;;;OAGG;IACH,QAAQ,CAAC,KAAa,EAAE,MAA0B,EAAE,OAAwB;QAC1E,MAAM,EAAE,EAAE,EAAE,GAAG,MAAM,CAAC;QACtB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,kBAAkB,EAAE,UAAU,KAAK,EAAE,EAAE;YACjE,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC,CAAC,EAAE,MAAM,EAAE,0BAA0B,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;YACjF,gBAAgB,EAAE,IAAI;SACvB,CAAC,CAAC;IACL,CAAC;CACF"}
@@ -0,0 +1,3 @@
1
+ export { Chat, type ChatCreateResponse, type ChatDeleteResponse, type ChatCancelResponse, type ChatRespondResponse, type ChatStreamResponse, type ChatCreateParams, type ChatReplyToQuestionParams, type ChatRespondParams, type ChatSendMessageParams, type ChatStreamParams, } from "./chat.mjs";
2
+ export { Files, type FileListResponse, type FileDownloadParams } from "./files.mjs";
3
+ //# sourceMappingURL=index.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../../src/resources/agent/v1/chat/index.ts"],"names":[],"mappings":"OAEO,EACL,IAAI,EACJ,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,EACvB,KAAK,mBAAmB,EACxB,KAAK,kBAAkB,EACvB,KAAK,gBAAgB,EACrB,KAAK,yBAAyB,EAC9B,KAAK,iBAAiB,EACtB,KAAK,qBAAqB,EAC1B,KAAK,gBAAgB,GACtB;OACM,EAAE,KAAK,EAAE,KAAK,gBAAgB,EAAE,KAAK,kBAAkB,EAAE"}
@@ -0,0 +1,3 @@
1
+ export { Chat, type ChatCreateResponse, type ChatDeleteResponse, type ChatCancelResponse, type ChatRespondResponse, type ChatStreamResponse, type ChatCreateParams, type ChatReplyToQuestionParams, type ChatRespondParams, type ChatSendMessageParams, type ChatStreamParams, } from "./chat.js";
2
+ export { Files, type FileListResponse, type FileDownloadParams } from "./files.js";
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/resources/agent/v1/chat/index.ts"],"names":[],"mappings":"OAEO,EACL,IAAI,EACJ,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,EACvB,KAAK,mBAAmB,EACxB,KAAK,kBAAkB,EACvB,KAAK,gBAAgB,EACrB,KAAK,yBAAyB,EAC9B,KAAK,iBAAiB,EACtB,KAAK,qBAAqB,EAC1B,KAAK,gBAAgB,GACtB;OACM,EAAE,KAAK,EAAE,KAAK,gBAAgB,EAAE,KAAK,kBAAkB,EAAE"}
@@ -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.Files = exports.Chat = void 0;
5
+ var chat_1 = require("./chat.js");
6
+ Object.defineProperty(exports, "Chat", { enumerable: true, get: function () { return chat_1.Chat; } });
7
+ var files_1 = require("./files.js");
8
+ Object.defineProperty(exports, "Files", { enumerable: true, get: function () { return files_1.Files; } });
9
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/resources/agent/v1/chat/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kCAYgB;AAXd,4FAAA,IAAI,OAAA;AAYN,oCAAgF;AAAvE,8FAAA,KAAK,OAAA"}
@@ -0,0 +1,4 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+ export { Chat, } from "./chat.mjs";
3
+ export { Files } from "./files.mjs";
4
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../../src/resources/agent/v1/chat/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EACL,IAAI,GAWL;OACM,EAAE,KAAK,EAAkD"}
@@ -1,159 +1,2 @@
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
- /**
6
- * Create, manage, and execute AI agents with tool access, sandbox environments, and async run workflows
7
- */
8
- export declare class Chat extends APIResource {
9
- /**
10
- * Creates a persistent OpenCode chat session in a Modal sandbox. Session state is
11
- * retained and can be resumed across requests.
12
- */
13
- create(body?: ChatCreateParams | null | undefined, options?: RequestOptions): APIPromise<ChatCreateResponse>;
14
- /**
15
- * Snapshots and terminates the active sandbox (if any), then marks the chat as
16
- * ended.
17
- */
18
- delete(id: string, options?: RequestOptions): APIPromise<ChatDeleteResponse>;
19
- /**
20
- * Aborts the active OpenCode generation for this chat session.
21
- */
22
- cancel(id: string, options?: RequestOptions): APIPromise<ChatCancelResponse>;
23
- /**
24
- * Answers a pending OpenCode question for the chat session bound to this agent
25
- * chat.
26
- */
27
- replyToQuestion(requestID: string, params: ChatReplyToQuestionParams, options?: RequestOptions): APIPromise<void>;
28
- /**
29
- * Streams a single assistant turn as normalized SSE events with stable turn,
30
- * message, and part IDs. Emits events: `turn.started`, `turn.status`,
31
- * `message.created`, `message.part.updated`, `message.completed`, `session.usage`,
32
- * `turn.completed`.
33
- *
34
- * **When to use this endpoint:** Recommended for building custom chat UIs that
35
- * need real-time streaming progress. This is the primary streaming endpoint for
36
- * new integrations.
37
- *
38
- * **Alternatives:**
39
- *
40
- * - `POST /chat/:id/message` — synchronous, returns complete response as JSON
41
- * (best for server-to-server)
42
- */
43
- respond(id: string, body: ChatRespondParams, options?: RequestOptions): APIPromise<Stream<ChatRespondResponse>>;
44
- /**
45
- * Sends a message and returns the complete response as a single JSON body. Blocks
46
- * until the agent turn completes.
47
- *
48
- * **When to use this endpoint:** Best for server-to-server integrations,
49
- * background processing, or any context where you want the full response in one
50
- * call without managing an SSE stream.
51
- *
52
- * **Alternatives:**
53
- *
54
- * - `POST /chat/:id/respond` — streaming SSE with normalized events (recommended
55
- * for custom chat UIs)
56
- */
57
- sendMessage(id: string, body: ChatSendMessageParams, options?: RequestOptions): APIPromise<void>;
58
- /**
59
- * Relays OpenCode SSE events for this chat. Supports replay from buffered events
60
- * using Last-Event-ID.
61
- */
62
- stream(id: string, query?: ChatStreamParams | undefined, options?: RequestOptions): APIPromise<Stream<ChatStreamResponse>>;
63
- }
64
- export interface ChatCreateResponse {
65
- id?: string;
66
- createdAt?: string;
67
- idleTimeoutMs?: number;
68
- status?: string;
69
- }
70
- export interface ChatDeleteResponse {
71
- id?: string;
72
- cost?: number;
73
- runtimeMs?: number;
74
- snapshotImageId?: string | null;
75
- status?: string;
76
- }
77
- export interface ChatCancelResponse {
78
- id?: string;
79
- ok?: boolean;
80
- }
81
- export type ChatRespondResponse = string;
82
- export type ChatStreamResponse = string;
83
- export interface ChatCreateParams {
84
- /**
85
- * Idle timeout before session is eligible for snapshot/termination. Defaults to 15
86
- * minutes.
87
- */
88
- idleTimeoutMs?: number | null;
89
- /**
90
- * Optional model override for the OpenCode session
91
- */
92
- model?: string | null;
93
- /**
94
- * Optional human-readable session title
95
- */
96
- title?: string;
97
- /**
98
- * Restrict the chat session to specific vault IDs
99
- */
100
- vaultIds?: Array<string> | null;
101
- }
102
- export interface ChatReplyToQuestionParams {
103
- /**
104
- * Path param: Chat session ID
105
- */
106
- id: string;
107
- /**
108
- * Body param: Answer selections for each prompt element in the pending question
109
- */
110
- answers: Array<Array<string>>;
111
- }
112
- export interface ChatRespondParams {
113
- /**
114
- * Message content parts. Currently only "text" type is supported. Additional types
115
- * (e.g. file, image) may be added in future versions.
116
- */
117
- parts?: Array<ChatRespondParams.Part>;
118
- }
119
- export declare namespace ChatRespondParams {
120
- interface Part {
121
- /**
122
- * The message text content
123
- */
124
- text: string;
125
- /**
126
- * Part type. Currently only "text" is supported.
127
- */
128
- type: 'text';
129
- }
130
- }
131
- export interface ChatSendMessageParams {
132
- /**
133
- * Message content parts. Currently only "text" type is supported. Additional types
134
- * (e.g. file, image) may be added in future versions.
135
- */
136
- parts?: Array<ChatSendMessageParams.Part>;
137
- }
138
- export declare namespace ChatSendMessageParams {
139
- interface Part {
140
- /**
141
- * The message text content
142
- */
143
- text: string;
144
- /**
145
- * Part type. Currently only "text" is supported.
146
- */
147
- type: 'text';
148
- }
149
- }
150
- export interface ChatStreamParams {
151
- /**
152
- * Replay events after this sequence number
153
- */
154
- lastEventId?: number;
155
- }
156
- export declare namespace Chat {
157
- export { type ChatCreateResponse as ChatCreateResponse, type ChatDeleteResponse as ChatDeleteResponse, type ChatCancelResponse as ChatCancelResponse, type ChatRespondResponse as ChatRespondResponse, type ChatStreamResponse as ChatStreamResponse, type ChatCreateParams as ChatCreateParams, type ChatReplyToQuestionParams as ChatReplyToQuestionParams, type ChatRespondParams as ChatRespondParams, type ChatSendMessageParams as ChatSendMessageParams, type ChatStreamParams as ChatStreamParams, };
158
- }
1
+ export * from "./chat/index.mjs";
159
2
  //# sourceMappingURL=chat.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"chat.d.mts","sourceRoot":"","sources":["../../../src/resources/agent/v1/chat.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,E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E,KAAK,CAAC,qBAAqB,CAAC,IAAI,CAAC,CAAC;CAC3C;AAED,yBAAiB,qBAAqB,CAAC;IACrC,UAAiB,IAAI;QACnB;;WAEG;QACH,IAAI,EAAE,MAAM,CAAC;QAEb;;WAEG;QACH,IAAI,EAAE,MAAM,CAAC;KACd;CACF;AAED,MAAM,WAAW,gBAAgB;IAC/B;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,CAAC,OAAO,WAAW,IAAI,CAAC;IAC5B,OAAO,EACL,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,gBAAgB,IAAI,gBAAgB,GAC1C,CAAC;CACH"}
1
+ {"version":3,"file":"chat.d.mts","sourceRoot":"","sources":["../../../src/resources/agent/v1/chat.ts"],"names":[],"mappings":""}
@@ -1,159 +1,2 @@
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
- /**
6
- * Create, manage, and execute AI agents with tool access, sandbox environments, and async run workflows
7
- */
8
- export declare class Chat extends APIResource {
9
- /**
10
- * Creates a persistent OpenCode chat session in a Modal sandbox. Session state is
11
- * retained and can be resumed across requests.
12
- */
13
- create(body?: ChatCreateParams | null | undefined, options?: RequestOptions): APIPromise<ChatCreateResponse>;
14
- /**
15
- * Snapshots and terminates the active sandbox (if any), then marks the chat as
16
- * ended.
17
- */
18
- delete(id: string, options?: RequestOptions): APIPromise<ChatDeleteResponse>;
19
- /**
20
- * Aborts the active OpenCode generation for this chat session.
21
- */
22
- cancel(id: string, options?: RequestOptions): APIPromise<ChatCancelResponse>;
23
- /**
24
- * Answers a pending OpenCode question for the chat session bound to this agent
25
- * chat.
26
- */
27
- replyToQuestion(requestID: string, params: ChatReplyToQuestionParams, options?: RequestOptions): APIPromise<void>;
28
- /**
29
- * Streams a single assistant turn as normalized SSE events with stable turn,
30
- * message, and part IDs. Emits events: `turn.started`, `turn.status`,
31
- * `message.created`, `message.part.updated`, `message.completed`, `session.usage`,
32
- * `turn.completed`.
33
- *
34
- * **When to use this endpoint:** Recommended for building custom chat UIs that
35
- * need real-time streaming progress. This is the primary streaming endpoint for
36
- * new integrations.
37
- *
38
- * **Alternatives:**
39
- *
40
- * - `POST /chat/:id/message` — synchronous, returns complete response as JSON
41
- * (best for server-to-server)
42
- */
43
- respond(id: string, body: ChatRespondParams, options?: RequestOptions): APIPromise<Stream<ChatRespondResponse>>;
44
- /**
45
- * Sends a message and returns the complete response as a single JSON body. Blocks
46
- * until the agent turn completes.
47
- *
48
- * **When to use this endpoint:** Best for server-to-server integrations,
49
- * background processing, or any context where you want the full response in one
50
- * call without managing an SSE stream.
51
- *
52
- * **Alternatives:**
53
- *
54
- * - `POST /chat/:id/respond` — streaming SSE with normalized events (recommended
55
- * for custom chat UIs)
56
- */
57
- sendMessage(id: string, body: ChatSendMessageParams, options?: RequestOptions): APIPromise<void>;
58
- /**
59
- * Relays OpenCode SSE events for this chat. Supports replay from buffered events
60
- * using Last-Event-ID.
61
- */
62
- stream(id: string, query?: ChatStreamParams | undefined, options?: RequestOptions): APIPromise<Stream<ChatStreamResponse>>;
63
- }
64
- export interface ChatCreateResponse {
65
- id?: string;
66
- createdAt?: string;
67
- idleTimeoutMs?: number;
68
- status?: string;
69
- }
70
- export interface ChatDeleteResponse {
71
- id?: string;
72
- cost?: number;
73
- runtimeMs?: number;
74
- snapshotImageId?: string | null;
75
- status?: string;
76
- }
77
- export interface ChatCancelResponse {
78
- id?: string;
79
- ok?: boolean;
80
- }
81
- export type ChatRespondResponse = string;
82
- export type ChatStreamResponse = string;
83
- export interface ChatCreateParams {
84
- /**
85
- * Idle timeout before session is eligible for snapshot/termination. Defaults to 15
86
- * minutes.
87
- */
88
- idleTimeoutMs?: number | null;
89
- /**
90
- * Optional model override for the OpenCode session
91
- */
92
- model?: string | null;
93
- /**
94
- * Optional human-readable session title
95
- */
96
- title?: string;
97
- /**
98
- * Restrict the chat session to specific vault IDs
99
- */
100
- vaultIds?: Array<string> | null;
101
- }
102
- export interface ChatReplyToQuestionParams {
103
- /**
104
- * Path param: Chat session ID
105
- */
106
- id: string;
107
- /**
108
- * Body param: Answer selections for each prompt element in the pending question
109
- */
110
- answers: Array<Array<string>>;
111
- }
112
- export interface ChatRespondParams {
113
- /**
114
- * Message content parts. Currently only "text" type is supported. Additional types
115
- * (e.g. file, image) may be added in future versions.
116
- */
117
- parts?: Array<ChatRespondParams.Part>;
118
- }
119
- export declare namespace ChatRespondParams {
120
- interface Part {
121
- /**
122
- * The message text content
123
- */
124
- text: string;
125
- /**
126
- * Part type. Currently only "text" is supported.
127
- */
128
- type: 'text';
129
- }
130
- }
131
- export interface ChatSendMessageParams {
132
- /**
133
- * Message content parts. Currently only "text" type is supported. Additional types
134
- * (e.g. file, image) may be added in future versions.
135
- */
136
- parts?: Array<ChatSendMessageParams.Part>;
137
- }
138
- export declare namespace ChatSendMessageParams {
139
- interface Part {
140
- /**
141
- * The message text content
142
- */
143
- text: string;
144
- /**
145
- * Part type. Currently only "text" is supported.
146
- */
147
- type: 'text';
148
- }
149
- }
150
- export interface ChatStreamParams {
151
- /**
152
- * Replay events after this sequence number
153
- */
154
- lastEventId?: number;
155
- }
156
- export declare namespace Chat {
157
- export { type ChatCreateResponse as ChatCreateResponse, type ChatDeleteResponse as ChatDeleteResponse, type ChatCancelResponse as ChatCancelResponse, type ChatRespondResponse as ChatRespondResponse, type ChatStreamResponse as ChatStreamResponse, type ChatCreateParams as ChatCreateParams, type ChatReplyToQuestionParams as ChatReplyToQuestionParams, type ChatRespondParams as ChatRespondParams, type ChatSendMessageParams as ChatSendMessageParams, type ChatStreamParams as ChatStreamParams, };
158
- }
1
+ export * from "./chat/index.js";
159
2
  //# sourceMappingURL=chat.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"chat.d.ts","sourceRoot":"","sources":["../../../src/resources/agent/v1/chat.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,MAAM,EAAE;OAEV,EAAE,cAAc,EAAE;AAGzB;;GAEG;AACH,qBAAa,IAAK,SAAQ,WAAW;IACnC;;;OAGG;IACH,MAAM,CACJ,IAAI,GAAE,gBAAgB,GAAG,IAAI,GAAG,SAAc,EAC9C,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,kBAAkB,CAAC;IAIjC;;;OAGG;IACH,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,kBAAkB,CAAC;IAI5E;;OAEG;IACH,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,kBAAkB,CAAC;IAI5E;;;OAGG;IACH,eAAe,CACb,SAAS,EAAE,MAAM,EACjB,MAAM,EAAE,yBAAyB,EACjC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,IAAI,CAAC;IASnB;;;;;;;;;;;;;;OAcG;IACH,OAAO,CACL,EAAE,EAAE,MAAM,EACV,IAAI,EAAE,iBAAiB,EACvB,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,MAAM,CAAC,mBAAmB,CAAC,CAAC;IAS1C;;;;;;;;;;;;OAYG;IACH,WAAW,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,qBAAqB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CA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W,iBAAiB;IAChC;;;OAGG;IACH,KAAK,CAAC,EAAE,KAAK,CAAC,iBAAiB,CAAC,IAAI,CAAC,CAAC;CACvC;AAED,yBAAiB,iBAAiB,CAAC;IACjC,UAAiB,IAAI;QACnB;;WAEG;QACH,IAAI,EAAE,MAAM,CAAC;QAEb;;WAEG;QACH,IAAI,EAAE,MAAM,CAAC;KACd;CACF;AAED,MAAM,WAAW,qBAAqB;IACpC;;;OAGG;IACH,KAAK,CAAC,EAAE,KAAK,CAAC,qBAAqB,CAAC,IAAI,CAAC,CAAC;CAC3C;AAED,yBAAiB,qBAAqB,CAAC;IACrC,UAAiB,IAAI;QACnB;;WAEG;QACH,IAAI,EAAE,MAAM,CAAC;QAEb;;WAEG;QACH,IAAI,EAAE,MAAM,CAAC;KACd;CACF;AAED,MAAM,WAAW,gBAAgB;IAC/B;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,CAAC,OAAO,WAAW,IAAI,CAAC;IAC5B,OAAO,EACL,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,gBAAgB,IAAI,gBAAgB,GAC1C,CAAC;CACH"}
1
+ {"version":3,"file":"chat.d.ts","sourceRoot":"","sources":["../../../src/resources/agent/v1/chat.ts"],"names":[],"mappings":""}
@@ -1,101 +1,6 @@
1
1
  "use strict";
2
2
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.Chat = 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
- /**
9
- * Create, manage, and execute AI agents with tool access, sandbox environments, and async run workflows
10
- */
11
- class Chat extends resource_1.APIResource {
12
- /**
13
- * Creates a persistent OpenCode chat session in a Modal sandbox. Session state is
14
- * retained and can be resumed across requests.
15
- */
16
- create(body = {}, options) {
17
- return this._client.post('/agent/v1/chat', { body, ...options });
18
- }
19
- /**
20
- * Snapshots and terminates the active sandbox (if any), then marks the chat as
21
- * ended.
22
- */
23
- delete(id, options) {
24
- return this._client.delete((0, path_1.path) `/agent/v1/chat/${id}`, options);
25
- }
26
- /**
27
- * Aborts the active OpenCode generation for this chat session.
28
- */
29
- cancel(id, options) {
30
- return this._client.post((0, path_1.path) `/agent/v1/chat/${id}/cancel`, options);
31
- }
32
- /**
33
- * Answers a pending OpenCode question for the chat session bound to this agent
34
- * chat.
35
- */
36
- replyToQuestion(requestID, params, options) {
37
- const { id, ...body } = params;
38
- return this._client.post((0, path_1.path) `/agent/v1/chat/${id}/question/${requestID}/reply`, {
39
- body,
40
- ...options,
41
- headers: (0, headers_1.buildHeaders)([{ Accept: '*/*' }, options?.headers]),
42
- });
43
- }
44
- /**
45
- * Streams a single assistant turn as normalized SSE events with stable turn,
46
- * message, and part IDs. Emits events: `turn.started`, `turn.status`,
47
- * `message.created`, `message.part.updated`, `message.completed`, `session.usage`,
48
- * `turn.completed`.
49
- *
50
- * **When to use this endpoint:** Recommended for building custom chat UIs that
51
- * need real-time streaming progress. This is the primary streaming endpoint for
52
- * new integrations.
53
- *
54
- * **Alternatives:**
55
- *
56
- * - `POST /chat/:id/message` — synchronous, returns complete response as JSON
57
- * (best for server-to-server)
58
- */
59
- respond(id, body, options) {
60
- return this._client.post((0, path_1.path) `/agent/v1/chat/${id}/respond`, {
61
- body,
62
- ...options,
63
- headers: (0, headers_1.buildHeaders)([{ Accept: 'text/event-stream' }, options?.headers]),
64
- stream: true,
65
- });
66
- }
67
- /**
68
- * Sends a message and returns the complete response as a single JSON body. Blocks
69
- * until the agent turn completes.
70
- *
71
- * **When to use this endpoint:** Best for server-to-server integrations,
72
- * background processing, or any context where you want the full response in one
73
- * call without managing an SSE stream.
74
- *
75
- * **Alternatives:**
76
- *
77
- * - `POST /chat/:id/respond` — streaming SSE with normalized events (recommended
78
- * for custom chat UIs)
79
- */
80
- sendMessage(id, body, options) {
81
- return this._client.post((0, path_1.path) `/agent/v1/chat/${id}/message`, {
82
- body,
83
- ...options,
84
- headers: (0, headers_1.buildHeaders)([{ Accept: '*/*' }, options?.headers]),
85
- });
86
- }
87
- /**
88
- * Relays OpenCode SSE events for this chat. Supports replay from buffered events
89
- * using Last-Event-ID.
90
- */
91
- stream(id, query = {}, options) {
92
- return this._client.get((0, path_1.path) `/agent/v1/chat/${id}/stream`, {
93
- query,
94
- ...options,
95
- headers: (0, headers_1.buildHeaders)([{ Accept: 'text/event-stream' }, options?.headers]),
96
- stream: true,
97
- });
98
- }
99
- }
100
- exports.Chat = Chat;
4
+ const tslib_1 = require("../../../internal/tslib.js");
5
+ tslib_1.__exportStar(require("./chat/index.js"), exports);
101
6
  //# sourceMappingURL=chat.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"chat.js","sourceRoot":"","sources":["../../../src/resources/agent/v1/chat.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wDAAqD;AAGrD,0DAAyD;AAEzD,0DAAoD;AAEpD;;GAEG;AACH,MAAa,IAAK,SAAQ,sBAAW;IACnC;;;OAGG;IACH,MAAM,CACJ,OAA4C,EAAE,EAC9C,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,gBAAgB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACnE,CAAC;IAED;;;OAGG;IACH,MAAM,CAAC,EAAU,EAAE,OAAwB;QACzC,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAA,W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