casedev 0.55.0 → 0.56.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 +8 -0
- package/package.json +1 -1
- package/resources/agent/agent.d.mts +0 -4
- package/resources/agent/agent.d.mts.map +1 -1
- package/resources/agent/agent.d.ts +0 -4
- package/resources/agent/agent.d.ts.map +1 -1
- package/resources/agent/agent.js +0 -4
- package/resources/agent/agent.js.map +1 -1
- package/resources/agent/agent.mjs +0 -4
- package/resources/agent/agent.mjs.map +1 -1
- package/resources/agent/index.d.mts +0 -1
- package/resources/agent/index.d.mts.map +1 -1
- package/resources/agent/index.d.ts +0 -1
- package/resources/agent/index.d.ts.map +1 -1
- package/resources/agent/index.js +1 -3
- package/resources/agent/index.js.map +1 -1
- package/resources/agent/index.mjs +0 -1
- package/resources/agent/index.mjs.map +1 -1
- package/resources/webhooks/v1/deliveries.d.mts +2 -2
- package/resources/webhooks/v1/deliveries.d.ts +2 -2
- package/resources/webhooks/v1/deliveries.js +2 -2
- package/resources/webhooks/v1/deliveries.mjs +2 -2
- package/src/resources/agent/agent.ts +0 -6
- package/src/resources/agent/index.ts +0 -1
- package/src/resources/webhooks/v1/deliveries.ts +2 -2
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
- package/resources/agent/v2/chat/chat.d.mts +0 -196
- package/resources/agent/v2/chat/chat.d.mts.map +0 -1
- package/resources/agent/v2/chat/chat.d.ts +0 -196
- package/resources/agent/v2/chat/chat.d.ts.map +0 -1
- package/resources/agent/v2/chat/chat.js +0 -117
- package/resources/agent/v2/chat/chat.js.map +0 -1
- package/resources/agent/v2/chat/chat.mjs +0 -112
- package/resources/agent/v2/chat/chat.mjs.map +0 -1
- package/resources/agent/v2/chat/files.d.mts +0 -42
- package/resources/agent/v2/chat/files.d.mts.map +0 -1
- package/resources/agent/v2/chat/files.d.ts +0 -42
- package/resources/agent/v2/chat/files.d.ts.map +0 -1
- package/resources/agent/v2/chat/files.js +0 -33
- package/resources/agent/v2/chat/files.js.map +0 -1
- package/resources/agent/v2/chat/files.mjs +0 -29
- package/resources/agent/v2/chat/files.mjs.map +0 -1
- package/resources/agent/v2/chat/index.d.mts +0 -3
- package/resources/agent/v2/chat/index.d.mts.map +0 -1
- package/resources/agent/v2/chat/index.d.ts +0 -3
- package/resources/agent/v2/chat/index.d.ts.map +0 -1
- package/resources/agent/v2/chat/index.js +0 -9
- package/resources/agent/v2/chat/index.js.map +0 -1
- package/resources/agent/v2/chat/index.mjs +0 -4
- package/resources/agent/v2/chat/index.mjs.map +0 -1
- package/resources/agent/v2/chat.d.mts +0 -2
- package/resources/agent/v2/chat.d.mts.map +0 -1
- package/resources/agent/v2/chat.d.ts +0 -2
- package/resources/agent/v2/chat.d.ts.map +0 -1
- package/resources/agent/v2/chat.js +0 -6
- package/resources/agent/v2/chat.js.map +0 -1
- package/resources/agent/v2/chat.mjs +0 -3
- package/resources/agent/v2/chat.mjs.map +0 -1
- package/resources/agent/v2/execute.d.mts +0 -58
- package/resources/agent/v2/execute.d.mts.map +0 -1
- package/resources/agent/v2/execute.d.ts +0 -58
- package/resources/agent/v2/execute.d.ts.map +0 -1
- package/resources/agent/v2/execute.js +0 -20
- package/resources/agent/v2/execute.js.map +0 -1
- package/resources/agent/v2/execute.mjs +0 -16
- package/resources/agent/v2/execute.mjs.map +0 -1
- package/resources/agent/v2/index.d.mts +0 -5
- package/resources/agent/v2/index.d.mts.map +0 -1
- package/resources/agent/v2/index.d.ts +0 -5
- package/resources/agent/v2/index.d.ts.map +0 -1
- package/resources/agent/v2/index.js +0 -13
- package/resources/agent/v2/index.js.map +0 -1
- package/resources/agent/v2/index.mjs +0 -6
- package/resources/agent/v2/index.mjs.map +0 -1
- package/resources/agent/v2/run.d.mts +0 -73
- package/resources/agent/v2/run.d.mts.map +0 -1
- package/resources/agent/v2/run.d.ts +0 -73
- package/resources/agent/v2/run.d.ts.map +0 -1
- package/resources/agent/v2/run.js +0 -51
- package/resources/agent/v2/run.js.map +0 -1
- package/resources/agent/v2/run.mjs +0 -47
- package/resources/agent/v2/run.mjs.map +0 -1
- package/resources/agent/v2/v2.d.mts +0 -18
- package/resources/agent/v2/v2.d.mts.map +0 -1
- package/resources/agent/v2/v2.d.ts +0 -18
- package/resources/agent/v2/v2.d.ts.map +0 -1
- package/resources/agent/v2/v2.js +0 -25
- package/resources/agent/v2/v2.js.map +0 -1
- package/resources/agent/v2/v2.mjs +0 -20
- package/resources/agent/v2/v2.mjs.map +0 -1
- package/resources/agent/v2.d.mts +0 -2
- package/resources/agent/v2.d.mts.map +0 -1
- package/resources/agent/v2.d.ts +0 -2
- package/resources/agent/v2.d.ts.map +0 -1
- package/resources/agent/v2.js +0 -6
- package/resources/agent/v2.js.map +0 -1
- package/resources/agent/v2.mjs +0 -3
- package/resources/agent/v2.mjs.map +0 -1
- package/src/resources/agent/v2/chat/chat.ts +0 -314
- package/src/resources/agent/v2/chat/files.ts +0 -63
- package/src/resources/agent/v2/chat/index.ts +0 -17
- package/src/resources/agent/v2/chat.ts +0 -3
- package/src/resources/agent/v2/execute.ts +0 -91
- package/src/resources/agent/v2/index.ts +0 -28
- package/src/resources/agent/v2/run.ts +0 -137
- package/src/resources/agent/v2/v2.ts +0 -75
- package/src/resources/agent/v2.ts +0 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.56.0 (2026-04-24)
|
|
4
|
+
|
|
5
|
+
Full Changelog: [v0.55.0...v0.56.0](https://github.com/CaseMark/casedev-typescript/compare/v0.55.0...v0.56.0)
|
|
6
|
+
|
|
7
|
+
### Features
|
|
8
|
+
|
|
9
|
+
* **api:** api update ([c7b5e9c](https://github.com/CaseMark/casedev-typescript/commit/c7b5e9c47ab4982373643ccca087f3850656acab))
|
|
10
|
+
|
|
3
11
|
## 0.55.0 (2026-04-23)
|
|
4
12
|
|
|
5
13
|
Full Changelog: [v0.54.0...v0.55.0](https://github.com/CaseMark/casedev-typescript/compare/v0.54.0...v0.55.0)
|
package/package.json
CHANGED
|
@@ -1,14 +1,10 @@
|
|
|
1
1
|
import { APIResource } from "../../core/resource.mjs";
|
|
2
2
|
import * as V1API from "./v1/v1.mjs";
|
|
3
3
|
import { V1 } from "./v1/v1.mjs";
|
|
4
|
-
import * as V2API from "./v2/v2.mjs";
|
|
5
|
-
import { V2 } from "./v2/v2.mjs";
|
|
6
4
|
export declare class Agent extends APIResource {
|
|
7
5
|
v1: V1API.V1;
|
|
8
|
-
v2: V2API.V2;
|
|
9
6
|
}
|
|
10
7
|
export declare namespace Agent {
|
|
11
8
|
export { V1 as V1 };
|
|
12
|
-
export { V2 as V2 };
|
|
13
9
|
}
|
|
14
10
|
//# sourceMappingURL=agent.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agent.d.mts","sourceRoot":"","sources":["../../src/resources/agent/agent.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,KAAK;OACV,EAAE,EAAE,EAAE;
|
|
1
|
+
{"version":3,"file":"agent.d.mts","sourceRoot":"","sources":["../../src/resources/agent/agent.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,KAAK;OACV,EAAE,EAAE,EAAE;AAEb,qBAAa,KAAM,SAAQ,WAAW;IACpC,EAAE,EAAE,KAAK,CAAC,EAAE,CAA8B;CAC3C;AAID,MAAM,CAAC,OAAO,WAAW,KAAK,CAAC;IAC7B,OAAO,EAAE,EAAE,IAAI,EAAE,EAAE,CAAC;CACrB"}
|
|
@@ -1,14 +1,10 @@
|
|
|
1
1
|
import { APIResource } from "../../core/resource.js";
|
|
2
2
|
import * as V1API from "./v1/v1.js";
|
|
3
3
|
import { V1 } from "./v1/v1.js";
|
|
4
|
-
import * as V2API from "./v2/v2.js";
|
|
5
|
-
import { V2 } from "./v2/v2.js";
|
|
6
4
|
export declare class Agent extends APIResource {
|
|
7
5
|
v1: V1API.V1;
|
|
8
|
-
v2: V2API.V2;
|
|
9
6
|
}
|
|
10
7
|
export declare namespace Agent {
|
|
11
8
|
export { V1 as V1 };
|
|
12
|
-
export { V2 as V2 };
|
|
13
9
|
}
|
|
14
10
|
//# sourceMappingURL=agent.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agent.d.ts","sourceRoot":"","sources":["../../src/resources/agent/agent.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,KAAK;OACV,EAAE,EAAE,EAAE;
|
|
1
|
+
{"version":3,"file":"agent.d.ts","sourceRoot":"","sources":["../../src/resources/agent/agent.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,KAAK;OACV,EAAE,EAAE,EAAE;AAEb,qBAAa,KAAM,SAAQ,WAAW;IACpC,EAAE,EAAE,KAAK,CAAC,EAAE,CAA8B;CAC3C;AAID,MAAM,CAAC,OAAO,WAAW,KAAK,CAAC;IAC7B,OAAO,EAAE,EAAE,IAAI,EAAE,EAAE,CAAC;CACrB"}
|
package/resources/agent/agent.js
CHANGED
|
@@ -6,16 +6,12 @@ const tslib_1 = require("../../internal/tslib.js");
|
|
|
6
6
|
const resource_1 = require("../../core/resource.js");
|
|
7
7
|
const V1API = tslib_1.__importStar(require("./v1/v1.js"));
|
|
8
8
|
const v1_1 = require("./v1/v1.js");
|
|
9
|
-
const V2API = tslib_1.__importStar(require("./v2/v2.js"));
|
|
10
|
-
const v2_1 = require("./v2/v2.js");
|
|
11
9
|
class Agent extends resource_1.APIResource {
|
|
12
10
|
constructor() {
|
|
13
11
|
super(...arguments);
|
|
14
12
|
this.v1 = new V1API.V1(this._client);
|
|
15
|
-
this.v2 = new V2API.V2(this._client);
|
|
16
13
|
}
|
|
17
14
|
}
|
|
18
15
|
exports.Agent = Agent;
|
|
19
16
|
Agent.V1 = v1_1.V1;
|
|
20
|
-
Agent.V2 = v2_1.V2;
|
|
21
17
|
//# sourceMappingURL=agent.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agent.js","sourceRoot":"","sources":["../../src/resources/agent/agent.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,qDAAkD;AAClD,0DAAiC;AACjC,mCAA6B;
|
|
1
|
+
{"version":3,"file":"agent.js","sourceRoot":"","sources":["../../src/resources/agent/agent.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,qDAAkD;AAClD,0DAAiC;AACjC,mCAA6B;AAE7B,MAAa,KAAM,SAAQ,sBAAW;IAAtC;;QACE,OAAE,GAAa,IAAI,KAAK,CAAC,EAAE,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAC5C,CAAC;CAAA;AAFD,sBAEC;AAED,KAAK,CAAC,EAAE,GAAG,OAAE,CAAC"}
|
|
@@ -2,15 +2,11 @@
|
|
|
2
2
|
import { APIResource } from "../../core/resource.mjs";
|
|
3
3
|
import * as V1API from "./v1/v1.mjs";
|
|
4
4
|
import { V1 } from "./v1/v1.mjs";
|
|
5
|
-
import * as V2API from "./v2/v2.mjs";
|
|
6
|
-
import { V2 } from "./v2/v2.mjs";
|
|
7
5
|
export class Agent extends APIResource {
|
|
8
6
|
constructor() {
|
|
9
7
|
super(...arguments);
|
|
10
8
|
this.v1 = new V1API.V1(this._client);
|
|
11
|
-
this.v2 = new V2API.V2(this._client);
|
|
12
9
|
}
|
|
13
10
|
}
|
|
14
11
|
Agent.V1 = V1;
|
|
15
|
-
Agent.V2 = V2;
|
|
16
12
|
//# sourceMappingURL=agent.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agent.mjs","sourceRoot":"","sources":["../../src/resources/agent/agent.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,KAAK,KAAK;OACV,EAAE,EAAE,EAAE;
|
|
1
|
+
{"version":3,"file":"agent.mjs","sourceRoot":"","sources":["../../src/resources/agent/agent.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,KAAK,KAAK;OACV,EAAE,EAAE,EAAE;AAEb,MAAM,OAAO,KAAM,SAAQ,WAAW;IAAtC;;QACE,OAAE,GAAa,IAAI,KAAK,CAAC,EAAE,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAC5C,CAAC;CAAA;AAED,KAAK,CAAC,EAAE,GAAG,EAAE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../src/resources/agent/index.ts"],"names":[],"mappings":"OAEO,EAAE,KAAK,EAAE;OACT,EAAE,EAAE,EAAE
|
|
1
|
+
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../src/resources/agent/index.ts"],"names":[],"mappings":"OAEO,EAAE,KAAK,EAAE;OACT,EAAE,EAAE,EAAE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/agent/index.ts"],"names":[],"mappings":"OAEO,EAAE,KAAK,EAAE;OACT,EAAE,EAAE,EAAE
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/agent/index.ts"],"names":[],"mappings":"OAEO,EAAE,KAAK,EAAE;OACT,EAAE,EAAE,EAAE"}
|
package/resources/agent/index.js
CHANGED
|
@@ -1,11 +1,9 @@
|
|
|
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.
|
|
4
|
+
exports.V1 = exports.Agent = void 0;
|
|
5
5
|
var agent_1 = require("./agent.js");
|
|
6
6
|
Object.defineProperty(exports, "Agent", { enumerable: true, get: function () { return agent_1.Agent; } });
|
|
7
7
|
var index_1 = require("./v1/index.js");
|
|
8
8
|
Object.defineProperty(exports, "V1", { enumerable: true, get: function () { return index_1.V1; } });
|
|
9
|
-
var index_2 = require("./v2/index.js");
|
|
10
|
-
Object.defineProperty(exports, "V2", { enumerable: true, get: function () { return index_2.V2; } });
|
|
11
9
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/agent/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,oCAAgC;AAAvB,8FAAA,KAAK,OAAA;AACd,uCAAgC;AAAvB,2FAAA,EAAE,OAAA
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/agent/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,oCAAgC;AAAvB,8FAAA,KAAK,OAAA;AACd,uCAAgC;AAAvB,2FAAA,EAAE,OAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/agent/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,KAAK,EAAE;OACT,EAAE,EAAE,EAAE
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/agent/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,KAAK,EAAE;OACT,EAAE,EAAE,EAAE"}
|
|
@@ -16,8 +16,8 @@ export declare class Deliveries extends APIResource {
|
|
|
16
16
|
list(query?: DeliveryListParams | null | undefined, options?: RequestOptions): APIPromise<void>;
|
|
17
17
|
/**
|
|
18
18
|
* Re-sends the original event to its endpoint. The payload is reconstructed from
|
|
19
|
-
* the delivery record (same eventId, eventType, and occurred_at).
|
|
20
|
-
*
|
|
19
|
+
* the delivery record (same eventId, eventType, and occurred_at). Replay
|
|
20
|
+
* deliveries include a Case.dev replay marker header so receivers can distinguish
|
|
21
21
|
* replays from first-time deliveries. Uses the endpoint's current signing secret —
|
|
22
22
|
* not the one in force at the original delivery time.
|
|
23
23
|
*/
|
|
@@ -16,8 +16,8 @@ export declare class Deliveries extends APIResource {
|
|
|
16
16
|
list(query?: DeliveryListParams | null | undefined, options?: RequestOptions): APIPromise<void>;
|
|
17
17
|
/**
|
|
18
18
|
* Re-sends the original event to its endpoint. The payload is reconstructed from
|
|
19
|
-
* the delivery record (same eventId, eventType, and occurred_at).
|
|
20
|
-
*
|
|
19
|
+
* the delivery record (same eventId, eventType, and occurred_at). Replay
|
|
20
|
+
* deliveries include a Case.dev replay marker header so receivers can distinguish
|
|
21
21
|
* replays from first-time deliveries. Uses the endpoint's current signing secret —
|
|
22
22
|
* not the one in force at the original delivery time.
|
|
23
23
|
*/
|
|
@@ -31,8 +31,8 @@ class Deliveries extends resource_1.APIResource {
|
|
|
31
31
|
}
|
|
32
32
|
/**
|
|
33
33
|
* Re-sends the original event to its endpoint. The payload is reconstructed from
|
|
34
|
-
* the delivery record (same eventId, eventType, and occurred_at).
|
|
35
|
-
*
|
|
34
|
+
* the delivery record (same eventId, eventType, and occurred_at). Replay
|
|
35
|
+
* deliveries include a Case.dev replay marker header so receivers can distinguish
|
|
36
36
|
* replays from first-time deliveries. Uses the endpoint's current signing secret —
|
|
37
37
|
* not the one in force at the original delivery time.
|
|
38
38
|
*/
|
|
@@ -28,8 +28,8 @@ export class Deliveries extends APIResource {
|
|
|
28
28
|
}
|
|
29
29
|
/**
|
|
30
30
|
* Re-sends the original event to its endpoint. The payload is reconstructed from
|
|
31
|
-
* the delivery record (same eventId, eventType, and occurred_at).
|
|
32
|
-
*
|
|
31
|
+
* the delivery record (same eventId, eventType, and occurred_at). Replay
|
|
32
|
+
* deliveries include a Case.dev replay marker header so receivers can distinguish
|
|
33
33
|
* replays from first-time deliveries. Uses the endpoint's current signing secret —
|
|
34
34
|
* not the one in force at the original delivery time.
|
|
35
35
|
*/
|
|
@@ -3,19 +3,13 @@
|
|
|
3
3
|
import { APIResource } from '../../core/resource';
|
|
4
4
|
import * as V1API from './v1/v1';
|
|
5
5
|
import { V1 } from './v1/v1';
|
|
6
|
-
import * as V2API from './v2/v2';
|
|
7
|
-
import { V2 } from './v2/v2';
|
|
8
6
|
|
|
9
7
|
export class Agent extends APIResource {
|
|
10
8
|
v1: V1API.V1 = new V1API.V1(this._client);
|
|
11
|
-
v2: V2API.V2 = new V2API.V2(this._client);
|
|
12
9
|
}
|
|
13
10
|
|
|
14
11
|
Agent.V1 = V1;
|
|
15
|
-
Agent.V2 = V2;
|
|
16
12
|
|
|
17
13
|
export declare namespace Agent {
|
|
18
14
|
export { V1 as V1 };
|
|
19
|
-
|
|
20
|
-
export { V2 as V2 };
|
|
21
15
|
}
|
|
@@ -34,8 +34,8 @@ export class Deliveries extends APIResource {
|
|
|
34
34
|
|
|
35
35
|
/**
|
|
36
36
|
* Re-sends the original event to its endpoint. The payload is reconstructed from
|
|
37
|
-
* the delivery record (same eventId, eventType, and occurred_at).
|
|
38
|
-
*
|
|
37
|
+
* the delivery record (same eventId, eventType, and occurred_at). Replay
|
|
38
|
+
* deliveries include a Case.dev replay marker header so receivers can distinguish
|
|
39
39
|
* replays from first-time deliveries. Uses the endpoint's current signing secret —
|
|
40
40
|
* not the one in force at the original delivery time.
|
|
41
41
|
*/
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '0.
|
|
1
|
+
export const VERSION = '0.56.0'; // x-release-please-version
|
package/version.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.
|
|
1
|
+
export declare const VERSION = "0.56.0";
|
|
2
2
|
//# sourceMappingURL=version.d.mts.map
|
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.
|
|
1
|
+
export declare const VERSION = "0.56.0";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/version.js
CHANGED
package/version.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '0.
|
|
1
|
+
export const VERSION = '0.56.0'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|
|
@@ -1,196 +0,0 @@
|
|
|
1
|
-
import { APIResource } from "../../../../core/resource.mjs";
|
|
2
|
-
import * as FilesAPI from "./files.mjs";
|
|
3
|
-
import { FileDownloadParams, FileListResponse, Files } from "./files.mjs";
|
|
4
|
-
import { APIPromise } from "../../../../core/api-promise.mjs";
|
|
5
|
-
import { Stream } from "../../../../core/streaming.mjs";
|
|
6
|
-
import { RequestOptions } from "../../../../internal/request-options.mjs";
|
|
7
|
-
/**
|
|
8
|
-
* Create, manage, and execute AI agents with tool access, sandbox environments, and async run workflows
|
|
9
|
-
*/
|
|
10
|
-
export declare class Chat extends APIResource {
|
|
11
|
-
files: FilesAPI.Files;
|
|
12
|
-
/**
|
|
13
|
-
* Creates a persistent OpenCode chat session backed by a Daytona runtime. Session
|
|
14
|
-
* state is retained and can be resumed or recovered across requests.
|
|
15
|
-
*/
|
|
16
|
-
create(body?: ChatCreateParams | null | undefined, options?: RequestOptions): APIPromise<ChatCreateResponse>;
|
|
17
|
-
/**
|
|
18
|
-
* Terminates the active Daytona runtime (if any), then marks the chat as ended.
|
|
19
|
-
*/
|
|
20
|
-
delete(id: string, options?: RequestOptions): APIPromise<ChatDeleteResponse>;
|
|
21
|
-
/**
|
|
22
|
-
* Aborts the active OpenCode generation for this Daytona-backed chat session.
|
|
23
|
-
*/
|
|
24
|
-
cancel(id: string, options?: RequestOptions): APIPromise<ChatCancelResponse>;
|
|
25
|
-
/**
|
|
26
|
-
* Returns a short-lived token that allows browser clients to connect directly to
|
|
27
|
-
* the agent chat SSE stream without exposing the underlying org API key.
|
|
28
|
-
*/
|
|
29
|
-
createStreamToken(id: string, options?: RequestOptions): APIPromise<ChatCreateStreamTokenResponse>;
|
|
30
|
-
/**
|
|
31
|
-
* Answers a pending OpenCode question for the Daytona-backed chat session and
|
|
32
|
-
* resumes or recovers the runtime if needed.
|
|
33
|
-
*/
|
|
34
|
-
replyToQuestion(requestID: string, params: ChatReplyToQuestionParams, options?: RequestOptions): APIPromise<void>;
|
|
35
|
-
/**
|
|
36
|
-
* Streams a single assistant turn from a Daytona-backed chat runtime as normalized
|
|
37
|
-
* SSE events with stable turn, message, and part IDs. Emits events:
|
|
38
|
-
* `turn.started`, `turn.status`, `message.created`, `message.part.updated`,
|
|
39
|
-
* `message.completed`, `session.usage`, `turn.completed`.
|
|
40
|
-
*
|
|
41
|
-
* **When to use this endpoint:** Recommended for building custom chat UIs that
|
|
42
|
-
* need real-time streaming progress. This is the primary streaming endpoint for
|
|
43
|
-
* new integrations.
|
|
44
|
-
*
|
|
45
|
-
* **Alternatives:**
|
|
46
|
-
*
|
|
47
|
-
* - `POST /chat/:id/message` — synchronous, returns complete response as JSON
|
|
48
|
-
* (best for server-to-server)
|
|
49
|
-
*/
|
|
50
|
-
respond(id: string, body: ChatRespondParams, options?: RequestOptions): APIPromise<Stream<ChatRespondResponse>>;
|
|
51
|
-
/**
|
|
52
|
-
* Sends a message to a Daytona-backed chat runtime and returns the complete
|
|
53
|
-
* response as a single JSON body. Blocks until the assistant turn completes.
|
|
54
|
-
*
|
|
55
|
-
* **When to use this endpoint:** Best for server-to-server integrations,
|
|
56
|
-
* background processing, or any context where you want the full response in one
|
|
57
|
-
* call without managing an SSE stream.
|
|
58
|
-
*
|
|
59
|
-
* **Alternatives:**
|
|
60
|
-
*
|
|
61
|
-
* - `POST /chat/:id/respond` — streaming SSE with normalized events (recommended
|
|
62
|
-
* for custom chat UIs)
|
|
63
|
-
*/
|
|
64
|
-
sendMessage(id: string, body: ChatSendMessageParams, options?: RequestOptions): APIPromise<void>;
|
|
65
|
-
/**
|
|
66
|
-
* Relays OpenCode SSE events for this Daytona-backed chat runtime. Supports replay
|
|
67
|
-
* from buffered events using Last-Event-ID and transparently reconnects stopped or
|
|
68
|
-
* archived runtimes. Accepts either Bearer token auth or a short-lived stream
|
|
69
|
-
* token via query parameter. When both are provided, Bearer auth takes precedence.
|
|
70
|
-
*/
|
|
71
|
-
stream(id: string, query?: ChatStreamParams | undefined, options?: RequestOptions): APIPromise<Stream<ChatStreamResponse>>;
|
|
72
|
-
}
|
|
73
|
-
export interface ChatCreateResponse {
|
|
74
|
-
id?: string;
|
|
75
|
-
createdAt?: string;
|
|
76
|
-
idleTimeoutMs?: number;
|
|
77
|
-
provider?: 'daytona';
|
|
78
|
-
runtimeState?: string;
|
|
79
|
-
status?: string;
|
|
80
|
-
}
|
|
81
|
-
export interface ChatDeleteResponse {
|
|
82
|
-
id?: string;
|
|
83
|
-
cost?: number;
|
|
84
|
-
provider?: string | null;
|
|
85
|
-
runtimeId?: string | null;
|
|
86
|
-
runtimeMs?: number;
|
|
87
|
-
status?: string;
|
|
88
|
-
}
|
|
89
|
-
export interface ChatCancelResponse {
|
|
90
|
-
id?: string;
|
|
91
|
-
ok?: boolean;
|
|
92
|
-
}
|
|
93
|
-
export interface ChatCreateStreamTokenResponse {
|
|
94
|
-
token: string;
|
|
95
|
-
expiresAt: string;
|
|
96
|
-
streamUrl: string;
|
|
97
|
-
}
|
|
98
|
-
export type ChatRespondResponse = string;
|
|
99
|
-
export type ChatStreamResponse = string;
|
|
100
|
-
export interface ChatCreateParams {
|
|
101
|
-
/**
|
|
102
|
-
* Idle timeout before the runtime is eligible to stop. Defaults to 15 minutes.
|
|
103
|
-
*/
|
|
104
|
-
idleTimeoutMs?: number | null;
|
|
105
|
-
/**
|
|
106
|
-
* Optional hidden app instructions merged into the chat runtime bootstrap and
|
|
107
|
-
* never exposed as a user message. Only accepted for privileged C3 system keys.
|
|
108
|
-
*/
|
|
109
|
-
instructions?: string | null;
|
|
110
|
-
/**
|
|
111
|
-
* Optional model override for the OpenCode session
|
|
112
|
-
*/
|
|
113
|
-
model?: string | null;
|
|
114
|
-
/**
|
|
115
|
-
* Optional human-readable session title
|
|
116
|
-
*/
|
|
117
|
-
title?: string;
|
|
118
|
-
/**
|
|
119
|
-
* Restrict the chat session to specific vault IDs
|
|
120
|
-
*/
|
|
121
|
-
vaultIds?: Array<string> | null;
|
|
122
|
-
}
|
|
123
|
-
export interface ChatReplyToQuestionParams {
|
|
124
|
-
/**
|
|
125
|
-
* Path param: Chat session ID
|
|
126
|
-
*/
|
|
127
|
-
id: string;
|
|
128
|
-
/**
|
|
129
|
-
* Body param: Answer selections for each prompt element in the pending question
|
|
130
|
-
*/
|
|
131
|
-
answers: Array<Array<string>>;
|
|
132
|
-
}
|
|
133
|
-
export interface ChatRespondParams {
|
|
134
|
-
/**
|
|
135
|
-
* Optional model override. When provided, the runtime bootstrap config is updated
|
|
136
|
-
* so subsequent turns use this model. Conversation history is preserved.
|
|
137
|
-
*/
|
|
138
|
-
model?: string | null;
|
|
139
|
-
/**
|
|
140
|
-
* Message content parts. Currently only "text" type is supported. Additional types
|
|
141
|
-
* (e.g. file, image) may be added in future versions.
|
|
142
|
-
*/
|
|
143
|
-
parts?: Array<ChatRespondParams.Part>;
|
|
144
|
-
}
|
|
145
|
-
export declare namespace ChatRespondParams {
|
|
146
|
-
interface Part {
|
|
147
|
-
/**
|
|
148
|
-
* The message text content
|
|
149
|
-
*/
|
|
150
|
-
text: string;
|
|
151
|
-
/**
|
|
152
|
-
* Part type. Currently only "text" is supported.
|
|
153
|
-
*/
|
|
154
|
-
type: 'text';
|
|
155
|
-
}
|
|
156
|
-
}
|
|
157
|
-
export interface ChatSendMessageParams {
|
|
158
|
-
/**
|
|
159
|
-
* Optional model override. When provided, the runtime bootstrap config is updated
|
|
160
|
-
* so subsequent turns use this model. Conversation history is preserved.
|
|
161
|
-
*/
|
|
162
|
-
model?: string | null;
|
|
163
|
-
/**
|
|
164
|
-
* Message content parts. Currently only "text" type is supported. Additional types
|
|
165
|
-
* (e.g. file, image) may be added in future versions.
|
|
166
|
-
*/
|
|
167
|
-
parts?: Array<ChatSendMessageParams.Part>;
|
|
168
|
-
}
|
|
169
|
-
export declare namespace ChatSendMessageParams {
|
|
170
|
-
interface Part {
|
|
171
|
-
/**
|
|
172
|
-
* The message text content
|
|
173
|
-
*/
|
|
174
|
-
text: string;
|
|
175
|
-
/**
|
|
176
|
-
* Part type. Currently only "text" is supported.
|
|
177
|
-
*/
|
|
178
|
-
type: 'text';
|
|
179
|
-
}
|
|
180
|
-
}
|
|
181
|
-
export interface ChatStreamParams {
|
|
182
|
-
/**
|
|
183
|
-
* Short-lived stream token from POST /agent/v2/chat/:id/stream-token. If provided,
|
|
184
|
-
* Bearer auth is not required.
|
|
185
|
-
*/
|
|
186
|
-
token?: string;
|
|
187
|
-
/**
|
|
188
|
-
* Replay events after this sequence number
|
|
189
|
-
*/
|
|
190
|
-
lastEventId?: number;
|
|
191
|
-
}
|
|
192
|
-
export declare namespace Chat {
|
|
193
|
-
export { type ChatCreateResponse as ChatCreateResponse, type ChatDeleteResponse as ChatDeleteResponse, type ChatCancelResponse as ChatCancelResponse, type ChatCreateStreamTokenResponse as ChatCreateStreamTokenResponse, 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, };
|
|
194
|
-
export { Files as Files, type FileListResponse as FileListResponse, type FileDownloadParams as FileDownloadParams, };
|
|
195
|
-
}
|
|
196
|
-
//# sourceMappingURL=chat.d.mts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"chat.d.mts","sourceRoot":"","sources":["../../../../src/resources/agent/v2/chat/chat.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,QAAQ;OACb,EAAE,kBAAkB,EAAE,gBAAgB,EAAE,KAAK,EAAE;OAC/C,EAAE,UAAU,EAAE;OACd,EAAE,MAAM,EAAE;OAEV,EAAE,cAAc,EAAE;AAGzB;;GAEG;AACH,qBAAa,IAAK,SAAQ,WAAW;IACnC,KA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