casedev 0.55.0 → 0.57.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 (114) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/package.json +1 -1
  3. package/resources/agent/agent.d.mts +0 -4
  4. package/resources/agent/agent.d.mts.map +1 -1
  5. package/resources/agent/agent.d.ts +0 -4
  6. package/resources/agent/agent.d.ts.map +1 -1
  7. package/resources/agent/agent.js +0 -4
  8. package/resources/agent/agent.js.map +1 -1
  9. package/resources/agent/agent.mjs +0 -4
  10. package/resources/agent/agent.mjs.map +1 -1
  11. package/resources/agent/index.d.mts +0 -1
  12. package/resources/agent/index.d.mts.map +1 -1
  13. package/resources/agent/index.d.ts +0 -1
  14. package/resources/agent/index.d.ts.map +1 -1
  15. package/resources/agent/index.js +1 -3
  16. package/resources/agent/index.js.map +1 -1
  17. package/resources/agent/index.mjs +0 -1
  18. package/resources/agent/index.mjs.map +1 -1
  19. package/resources/vault/vault.d.mts +7 -7
  20. package/resources/vault/vault.d.ts +7 -7
  21. package/resources/webhooks/v1/deliveries.d.mts +2 -2
  22. package/resources/webhooks/v1/deliveries.d.ts +2 -2
  23. package/resources/webhooks/v1/deliveries.js +2 -2
  24. package/resources/webhooks/v1/deliveries.mjs +2 -2
  25. package/src/resources/agent/agent.ts +0 -6
  26. package/src/resources/agent/index.ts +0 -1
  27. package/src/resources/vault/vault.ts +7 -7
  28. package/src/resources/webhooks/v1/deliveries.ts +2 -2
  29. package/src/version.ts +1 -1
  30. package/version.d.mts +1 -1
  31. package/version.d.ts +1 -1
  32. package/version.js +1 -1
  33. package/version.mjs +1 -1
  34. package/resources/agent/v2/chat/chat.d.mts +0 -196
  35. package/resources/agent/v2/chat/chat.d.mts.map +0 -1
  36. package/resources/agent/v2/chat/chat.d.ts +0 -196
  37. package/resources/agent/v2/chat/chat.d.ts.map +0 -1
  38. package/resources/agent/v2/chat/chat.js +0 -117
  39. package/resources/agent/v2/chat/chat.js.map +0 -1
  40. package/resources/agent/v2/chat/chat.mjs +0 -112
  41. package/resources/agent/v2/chat/chat.mjs.map +0 -1
  42. package/resources/agent/v2/chat/files.d.mts +0 -42
  43. package/resources/agent/v2/chat/files.d.mts.map +0 -1
  44. package/resources/agent/v2/chat/files.d.ts +0 -42
  45. package/resources/agent/v2/chat/files.d.ts.map +0 -1
  46. package/resources/agent/v2/chat/files.js +0 -33
  47. package/resources/agent/v2/chat/files.js.map +0 -1
  48. package/resources/agent/v2/chat/files.mjs +0 -29
  49. package/resources/agent/v2/chat/files.mjs.map +0 -1
  50. package/resources/agent/v2/chat/index.d.mts +0 -3
  51. package/resources/agent/v2/chat/index.d.mts.map +0 -1
  52. package/resources/agent/v2/chat/index.d.ts +0 -3
  53. package/resources/agent/v2/chat/index.d.ts.map +0 -1
  54. package/resources/agent/v2/chat/index.js +0 -9
  55. package/resources/agent/v2/chat/index.js.map +0 -1
  56. package/resources/agent/v2/chat/index.mjs +0 -4
  57. package/resources/agent/v2/chat/index.mjs.map +0 -1
  58. package/resources/agent/v2/chat.d.mts +0 -2
  59. package/resources/agent/v2/chat.d.mts.map +0 -1
  60. package/resources/agent/v2/chat.d.ts +0 -2
  61. package/resources/agent/v2/chat.d.ts.map +0 -1
  62. package/resources/agent/v2/chat.js +0 -6
  63. package/resources/agent/v2/chat.js.map +0 -1
  64. package/resources/agent/v2/chat.mjs +0 -3
  65. package/resources/agent/v2/chat.mjs.map +0 -1
  66. package/resources/agent/v2/execute.d.mts +0 -58
  67. package/resources/agent/v2/execute.d.mts.map +0 -1
  68. package/resources/agent/v2/execute.d.ts +0 -58
  69. package/resources/agent/v2/execute.d.ts.map +0 -1
  70. package/resources/agent/v2/execute.js +0 -20
  71. package/resources/agent/v2/execute.js.map +0 -1
  72. package/resources/agent/v2/execute.mjs +0 -16
  73. package/resources/agent/v2/execute.mjs.map +0 -1
  74. package/resources/agent/v2/index.d.mts +0 -5
  75. package/resources/agent/v2/index.d.mts.map +0 -1
  76. package/resources/agent/v2/index.d.ts +0 -5
  77. package/resources/agent/v2/index.d.ts.map +0 -1
  78. package/resources/agent/v2/index.js +0 -13
  79. package/resources/agent/v2/index.js.map +0 -1
  80. package/resources/agent/v2/index.mjs +0 -6
  81. package/resources/agent/v2/index.mjs.map +0 -1
  82. package/resources/agent/v2/run.d.mts +0 -73
  83. package/resources/agent/v2/run.d.mts.map +0 -1
  84. package/resources/agent/v2/run.d.ts +0 -73
  85. package/resources/agent/v2/run.d.ts.map +0 -1
  86. package/resources/agent/v2/run.js +0 -51
  87. package/resources/agent/v2/run.js.map +0 -1
  88. package/resources/agent/v2/run.mjs +0 -47
  89. package/resources/agent/v2/run.mjs.map +0 -1
  90. package/resources/agent/v2/v2.d.mts +0 -18
  91. package/resources/agent/v2/v2.d.mts.map +0 -1
  92. package/resources/agent/v2/v2.d.ts +0 -18
  93. package/resources/agent/v2/v2.d.ts.map +0 -1
  94. package/resources/agent/v2/v2.js +0 -25
  95. package/resources/agent/v2/v2.js.map +0 -1
  96. package/resources/agent/v2/v2.mjs +0 -20
  97. package/resources/agent/v2/v2.mjs.map +0 -1
  98. package/resources/agent/v2.d.mts +0 -2
  99. package/resources/agent/v2.d.mts.map +0 -1
  100. package/resources/agent/v2.d.ts +0 -2
  101. package/resources/agent/v2.d.ts.map +0 -1
  102. package/resources/agent/v2.js +0 -6
  103. package/resources/agent/v2.js.map +0 -1
  104. package/resources/agent/v2.mjs +0 -3
  105. package/resources/agent/v2.mjs.map +0 -1
  106. package/src/resources/agent/v2/chat/chat.ts +0 -314
  107. package/src/resources/agent/v2/chat/files.ts +0 -63
  108. package/src/resources/agent/v2/chat/index.ts +0 -17
  109. package/src/resources/agent/v2/chat.ts +0 -3
  110. package/src/resources/agent/v2/execute.ts +0 -91
  111. package/src/resources/agent/v2/index.ts +0 -28
  112. package/src/resources/agent/v2/run.ts +0 -137
  113. package/src/resources/agent/v2/v2.ts +0 -75
  114. package/src/resources/agent/v2.ts +0 -3
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../../src/resources/agent/v2/chat/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EACL,IAAI,GAYL;OACM,EAAE,KAAK,EAAkD"}
@@ -1,2 +0,0 @@
1
- export * from "./chat/index.mjs";
2
- //# sourceMappingURL=chat.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"chat.d.mts","sourceRoot":"","sources":["../../../src/resources/agent/v2/chat.ts"],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- export * from "./chat/index.js";
2
- //# sourceMappingURL=chat.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"chat.d.ts","sourceRoot":"","sources":["../../../src/resources/agent/v2/chat.ts"],"names":[],"mappings":""}
@@ -1,6 +0,0 @@
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("./chat/index.js"), exports);
6
- //# sourceMappingURL=chat.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"chat.js","sourceRoot":"","sources":["../../../src/resources/agent/v2/chat.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,0DAA6B"}
@@ -1,3 +0,0 @@
1
- // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
- export * from "./chat/index.mjs";
3
- //# sourceMappingURL=chat.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"chat.mjs","sourceRoot":"","sources":["../../../src/resources/agent/v2/chat.ts"],"names":[],"mappings":"AAAA,sFAAsF"}
@@ -1,58 +0,0 @@
1
- import { APIResource } from "../../../core/resource.mjs";
2
- import { APIPromise } from "../../../core/api-promise.mjs";
3
- import { RequestOptions } from "../../../internal/request-options.mjs";
4
- /**
5
- * Create, manage, and execute AI agents with tool access, sandbox environments, and async run workflows
6
- */
7
- export declare class Execute extends APIResource {
8
- /**
9
- * Creates an ephemeral agent and executes it immediately. By default this uses the
10
- * lightweight synchronous linc runtime on Vercel Sandbox. Set `agentRuntime: true`
11
- * to opt into the legacy Daytona-backed agent runtime.
12
- */
13
- create(body: ExecuteCreateParams, options?: RequestOptions): APIPromise<ExecuteCreateResponse>;
14
- }
15
- export interface ExecuteCreateResponse {
16
- agentId?: string;
17
- error?: string | null;
18
- logs?: ExecuteCreateResponse.Logs | null;
19
- message?: string | null;
20
- output?: string | null;
21
- provider?: 'daytona' | 'vercel';
22
- runId?: string;
23
- runtimeId?: string | null;
24
- runtimeState?: 'running' | 'ended' | 'error';
25
- status?: 'running' | 'completed' | 'failed';
26
- usage?: unknown | null;
27
- }
28
- export declare namespace ExecuteCreateResponse {
29
- interface Logs {
30
- linc?: string | null;
31
- runner?: string | null;
32
- }
33
- }
34
- export interface ExecuteCreateParams {
35
- prompt: string;
36
- /**
37
- * Set to true to opt into the legacy Daytona-backed agent runtime.
38
- */
39
- agentRuntime?: boolean | null;
40
- disabledTools?: Array<string> | null;
41
- enabledTools?: Array<string> | null;
42
- guidance?: string | null;
43
- instructions?: string;
44
- model?: string;
45
- objectIds?: Array<string> | null;
46
- sandbox?: ExecuteCreateParams.Sandbox | null;
47
- vaultIds?: Array<string> | null;
48
- }
49
- export declare namespace ExecuteCreateParams {
50
- interface Sandbox {
51
- cpu?: number;
52
- memoryMiB?: number;
53
- }
54
- }
55
- export declare namespace Execute {
56
- export { type ExecuteCreateResponse as ExecuteCreateResponse, type ExecuteCreateParams as ExecuteCreateParams, };
57
- }
58
- //# sourceMappingURL=execute.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"execute.d.mts","sourceRoot":"","sources":["../../../src/resources/agent/v2/execute.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB;;GAEG;AACH,qBAAa,OAAQ,SAAQ,WAAW;IACtC;;;;OAIG;IAC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,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC;IAEjC,OAAO,CAAC,EAAE,mBAAmB,CAAC,OAAO,GAAG,IAAI,CAAC;IAE7C,QAAQ,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC;CACjC;AAED,yBAAiB,mBAAmB,CAAC;IACnC,UAAiB,OAAO;QACtB,GAAG,CAAC,EAAE,MAAM,CAAC;QAEb,SAAS,CAAC,EAAE,MAAM,CAAC;KACpB;CACF;AAED,MAAM,CAAC,OAAO,WAAW,OAAO,CAAC;IAC/B,OAAO,EACL,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,mBAAmB,IAAI,mBAAmB,GAChD,CAAC;CACH"}
@@ -1,58 +0,0 @@
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 Execute extends APIResource {
8
- /**
9
- * Creates an ephemeral agent and executes it immediately. By default this uses the
10
- * lightweight synchronous linc runtime on Vercel Sandbox. Set `agentRuntime: true`
11
- * to opt into the legacy Daytona-backed agent runtime.
12
- */
13
- create(body: ExecuteCreateParams, options?: RequestOptions): APIPromise<ExecuteCreateResponse>;
14
- }
15
- export interface ExecuteCreateResponse {
16
- agentId?: string;
17
- error?: string | null;
18
- logs?: ExecuteCreateResponse.Logs | null;
19
- message?: string | null;
20
- output?: string | null;
21
- provider?: 'daytona' | 'vercel';
22
- runId?: string;
23
- runtimeId?: string | null;
24
- runtimeState?: 'running' | 'ended' | 'error';
25
- status?: 'running' | 'completed' | 'failed';
26
- usage?: unknown | null;
27
- }
28
- export declare namespace ExecuteCreateResponse {
29
- interface Logs {
30
- linc?: string | null;
31
- runner?: string | null;
32
- }
33
- }
34
- export interface ExecuteCreateParams {
35
- prompt: string;
36
- /**
37
- * Set to true to opt into the legacy Daytona-backed agent runtime.
38
- */
39
- agentRuntime?: boolean | null;
40
- disabledTools?: Array<string> | null;
41
- enabledTools?: Array<string> | null;
42
- guidance?: string | null;
43
- instructions?: string;
44
- model?: string;
45
- objectIds?: Array<string> | null;
46
- sandbox?: ExecuteCreateParams.Sandbox | null;
47
- vaultIds?: Array<string> | null;
48
- }
49
- export declare namespace ExecuteCreateParams {
50
- interface Sandbox {
51
- cpu?: number;
52
- memoryMiB?: number;
53
- }
54
- }
55
- export declare namespace Execute {
56
- export { type ExecuteCreateResponse as ExecuteCreateResponse, type ExecuteCreateParams as ExecuteCreateParams, };
57
- }
58
- //# sourceMappingURL=execute.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"execute.d.ts","sourceRoot":"","sources":["../../../src/resources/agent/v2/execute.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB;;GAEG;AACH,qBAAa,OAAQ,SAAQ,WAAW;IACtC;;;;OAIG;IACH,MAAM,CAAC,IAAI,EAAE,mBAAmB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,qBAAqB,CAAC;CAG/F;AAED,MAAM,WAAW,qBAAqB;IACpC,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEtB,IAAI,CAAC,EAAE,qBAAqB,CAAC,IAAI,GAAG,IAAI,CAAC;IAEzC,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAExB,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEvB,QAAQ,CAAC,EAAE,SAAS,GAAG,QAAQ,CAAC;IAEhC,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAE1B,YAAY,CAAC,EAAE,SAAS,GAAG,OAAO,GAAG,OAAO,CAAC;IAE7C,MAAM,CAAC,EAAE,SAAS,GAAG,WAAW,GAAG,QAAQ,CAAC;IAE5C,KAAK,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;CACxB;AAED,yBAAiB,qBAAqB,CAAC;IACrC,UAAiB,IAAI;QACnB,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;QAErB,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;KACxB;CACF;AAED,MAAM,WAAW,mBAAmB;IAClC,MAAM,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,YAAY,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;IAE9B,aAAa,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC;IAErC,YAAY,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC;IAEpC,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEzB,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf,SAAS,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC;IAEjC,OAAO,CAAC,EAAE,mBAAmB,CAAC,OAAO,GAAG,IAAI,CAAC;IAE7C,QAAQ,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC;CACjC;AAED,yBAAiB,mBAAmB,CAAC;IACnC,UAAiB,OAAO;QACtB,GAAG,CAAC,EAAE,MAAM,CAAC;QAEb,SAAS,CAAC,EAAE,MAAM,CAAC;KACpB;CACF;AAED,MAAM,CAAC,OAAO,WAAW,OAAO,CAAC;IAC/B,OAAO,EACL,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,mBAAmB,IAAI,mBAAmB,GAChD,CAAC;CACH"}
@@ -1,20 +0,0 @@
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.Execute = void 0;
5
- const resource_1 = require("../../../core/resource.js");
6
- /**
7
- * Create, manage, and execute AI agents with tool access, sandbox environments, and async run workflows
8
- */
9
- class Execute extends resource_1.APIResource {
10
- /**
11
- * Creates an ephemeral agent and executes it immediately. By default this uses the
12
- * lightweight synchronous linc runtime on Vercel Sandbox. Set `agentRuntime: true`
13
- * to opt into the legacy Daytona-backed agent runtime.
14
- */
15
- create(body, options) {
16
- return this._client.post('/agent/v2/execute', { body, ...options });
17
- }
18
- }
19
- exports.Execute = Execute;
20
- //# sourceMappingURL=execute.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"execute.js","sourceRoot":"","sources":["../../../src/resources/agent/v2/execute.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wDAAqD;AAIrD;;GAEG;AACH,MAAa,OAAQ,SAAQ,sBAAW;IACtC;;;;OAIG;IACH,MAAM,CAAC,IAAyB,EAAE,OAAwB;QACxD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,mBAAmB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACtE,CAAC;CACF;AATD,0BASC"}
@@ -1,16 +0,0 @@
1
- // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
- import { APIResource } from "../../../core/resource.mjs";
3
- /**
4
- * Create, manage, and execute AI agents with tool access, sandbox environments, and async run workflows
5
- */
6
- export class Execute extends APIResource {
7
- /**
8
- * Creates an ephemeral agent and executes it immediately. By default this uses the
9
- * lightweight synchronous linc runtime on Vercel Sandbox. Set `agentRuntime: true`
10
- * to opt into the legacy Daytona-backed agent runtime.
11
- */
12
- create(body, options) {
13
- return this._client.post('/agent/v2/execute', { body, ...options });
14
- }
15
- }
16
- //# sourceMappingURL=execute.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"execute.mjs","sourceRoot":"","sources":["../../../src/resources/agent/v2/execute.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAItB;;GAEG;AACH,MAAM,OAAO,OAAQ,SAAQ,WAAW;IACtC;;;;OAIG;IACH,MAAM,CAAC,IAAyB,EAAE,OAAwB;QACxD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,mBAAmB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACtE,CAAC;CACF"}
@@ -1,5 +0,0 @@
1
- export { Chat, type ChatCreateResponse, type ChatDeleteResponse, type ChatCancelResponse, type ChatCreateStreamTokenResponse, type ChatRespondResponse, type ChatStreamResponse, type ChatCreateParams, type ChatReplyToQuestionParams, type ChatRespondParams, type ChatSendMessageParams, type ChatStreamParams, } from "./chat/index.mjs";
2
- export { Execute, type ExecuteCreateResponse, type ExecuteCreateParams } from "./execute.mjs";
3
- export { Run, type RunCreateResponse, type RunEventsResponse, type RunExecResponse, type RunGetDetailsResponse, type RunGetStatusResponse, type RunCreateParams, type RunEventsParams, } from "./run.mjs";
4
- export { V2 } from "./v2.mjs";
5
- //# sourceMappingURL=index.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/resources/agent/v2/index.ts"],"names":[],"mappings":"OAEO,EACL,IAAI,EACJ,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,EACvB,KAAK,6BAA6B,EAClC,KAAK,mBAAmB,EACxB,KAAK,kBAAkB,EACvB,KAAK,gBAAgB,EACrB,KAAK,yBAAyB,EAC9B,KAAK,iBAAiB,EACtB,KAAK,qBAAqB,EAC1B,KAAK,gBAAgB,GACtB;OACM,EAAE,OAAO,EAAE,KAAK,qBAAqB,EAAE,KAAK,mBAAmB,EAAE;OACjE,EACL,GAAG,EACH,KAAK,iBAAiB,EACtB,KAAK,iBAAiB,EACtB,KAAK,eAAe,EACpB,KAAK,qBAAqB,EAC1B,KAAK,oBAAoB,EACzB,KAAK,eAAe,EACpB,KAAK,eAAe,GACrB;OACM,EAAE,EAAE,EAAE"}
@@ -1,5 +0,0 @@
1
- export { Chat, type ChatCreateResponse, type ChatDeleteResponse, type ChatCancelResponse, type ChatCreateStreamTokenResponse, type ChatRespondResponse, type ChatStreamResponse, type ChatCreateParams, type ChatReplyToQuestionParams, type ChatRespondParams, type ChatSendMessageParams, type ChatStreamParams, } from "./chat/index.js";
2
- export { Execute, type ExecuteCreateResponse, type ExecuteCreateParams } from "./execute.js";
3
- export { Run, type RunCreateResponse, type RunEventsResponse, type RunExecResponse, type RunGetDetailsResponse, type RunGetStatusResponse, type RunCreateParams, type RunEventsParams, } from "./run.js";
4
- export { V2 } from "./v2.js";
5
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/resources/agent/v2/index.ts"],"names":[],"mappings":"OAEO,EACL,IAAI,EACJ,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,EACvB,KAAK,6BAA6B,EAClC,KAAK,mBAAmB,EACxB,KAAK,kBAAkB,EACvB,KAAK,gBAAgB,EACrB,KAAK,yBAAyB,EAC9B,KAAK,iBAAiB,EACtB,KAAK,qBAAqB,EAC1B,KAAK,gBAAgB,GACtB;OACM,EAAE,OAAO,EAAE,KAAK,qBAAqB,EAAE,KAAK,mBAAmB,EAAE;OACjE,EACL,GAAG,EACH,KAAK,iBAAiB,EACtB,KAAK,iBAAiB,EACtB,KAAK,eAAe,EACpB,KAAK,qBAAqB,EAC1B,KAAK,oBAAoB,EACzB,KAAK,eAAe,EACpB,KAAK,eAAe,GACrB;OACM,EAAE,EAAE,EAAE"}
@@ -1,13 +0,0 @@
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.V2 = exports.Run = exports.Execute = exports.Chat = void 0;
5
- var index_1 = require("./chat/index.js");
6
- Object.defineProperty(exports, "Chat", { enumerable: true, get: function () { return index_1.Chat; } });
7
- var execute_1 = require("./execute.js");
8
- Object.defineProperty(exports, "Execute", { enumerable: true, get: function () { return execute_1.Execute; } });
9
- var run_1 = require("./run.js");
10
- Object.defineProperty(exports, "Run", { enumerable: true, get: function () { return run_1.Run; } });
11
- var v2_1 = require("./v2.js");
12
- Object.defineProperty(exports, "V2", { enumerable: true, get: function () { return v2_1.V2; } });
13
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/resources/agent/v2/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,yCAasB;AAZpB,6FAAA,IAAI,OAAA;AAaN,wCAA0F;AAAjF,kGAAA,OAAO,OAAA;AAChB,gCASe;AARb,0FAAA,GAAG,OAAA;AASL,8BAA0B;AAAjB,wFAAA,EAAE,OAAA"}
@@ -1,6 +0,0 @@
1
- // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
- export { Chat, } from "./chat/index.mjs";
3
- export { Execute } from "./execute.mjs";
4
- export { Run, } from "./run.mjs";
5
- export { V2 } from "./v2.mjs";
6
- //# sourceMappingURL=index.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/resources/agent/v2/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EACL,IAAI,GAYL;OACM,EAAE,OAAO,EAAwD;OACjE,EACL,GAAG,GAQJ;OACM,EAAE,EAAE,EAAE"}
@@ -1,73 +0,0 @@
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 Run extends APIResource {
9
- /**
10
- * Creates a v2 run in queued state. Call POST /agent/v2/run/:id/exec to start
11
- * execution on the Daytona runtime.
12
- */
13
- create(body: RunCreateParams, options?: RequestOptions): APIPromise<RunCreateResponse>;
14
- /**
15
- * Streams real-time v2 run events over SSE with replay support.
16
- */
17
- events(id: string, query?: RunEventsParams | undefined, options?: RequestOptions): APIPromise<Stream<RunEventsResponse>>;
18
- /**
19
- * Starts execution of a queued v2 run. The agent runs in a durable workflow on a
20
- * Daytona runtime.
21
- */
22
- exec(id: string, options?: RequestOptions): APIPromise<RunExecResponse>;
23
- /**
24
- * Full audit trail for a v2 run, with provider-neutral runtime metadata.
25
- */
26
- getDetails(id: string, options?: RequestOptions): APIPromise<unknown>;
27
- /**
28
- * Lightweight status poll for a v2 run including neutral runtime metadata.
29
- */
30
- getStatus(id: string, options?: RequestOptions): APIPromise<RunGetStatusResponse>;
31
- }
32
- export interface RunCreateResponse {
33
- id?: string;
34
- agentId?: string;
35
- createdAt?: string;
36
- objectIds?: Array<string> | null;
37
- status?: 'queued';
38
- }
39
- export type RunEventsResponse = string;
40
- export interface RunExecResponse {
41
- id?: string;
42
- message?: string;
43
- provider?: 'daytona';
44
- runtimeState?: 'running';
45
- status?: 'running';
46
- workflowId?: string;
47
- }
48
- export type RunGetDetailsResponse = unknown;
49
- export interface RunGetStatusResponse {
50
- id?: string;
51
- completedAt?: string | null;
52
- durationMs?: number | null;
53
- provider?: string | null;
54
- runtimeId?: string | null;
55
- runtimeState?: string | null;
56
- startedAt?: string | null;
57
- status?: 'queued' | 'running' | 'completed' | 'failed' | 'cancelled';
58
- }
59
- export interface RunCreateParams {
60
- agentId: string;
61
- prompt: string;
62
- callbackUrl?: string | null;
63
- guidance?: string | null;
64
- model?: string | null;
65
- objectIds?: Array<string> | null;
66
- }
67
- export interface RunEventsParams {
68
- lastEventId?: number;
69
- }
70
- export declare namespace Run {
71
- export { type RunCreateResponse as RunCreateResponse, type RunEventsResponse as RunEventsResponse, type RunExecResponse as RunExecResponse, type RunGetDetailsResponse as RunGetDetailsResponse, type RunGetStatusResponse as RunGetStatusResponse, type RunCreateParams as RunCreateParams, type RunEventsParams as RunEventsParams, };
72
- }
73
- //# sourceMappingURL=run.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"run.d.mts","sourceRoot":"","sources":["../../../src/resources/agent/v2/run.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,MAAM,EAAE;OAEV,EAAE,cAAc,EAAE;AAGzB;;GAEG;AACH,qBAAa,GAAI,SAAQ,WAAW;IAClC;;;OAGG;IACH,MAAM,CAAC,IAAI,EAAE,eAAe,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,iBAAiB,CAAC;IAItF;;OAEG;IACH,MAAM,CACJ,EAAE,EAAE,MAAM,EACV,KAAK,GAAE,eAAe,GAAG,SAAc,EACvC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,MAAM,CAAC,iBAAiB,CAAC,CAAC;IASxC;;;OAGG;IACH,IAAI,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,eAAe,CAAC;IAIvE;;OAEG;IACH,UAAU,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,OAAO,CAAC;IAIrE;;OAEG;IACH,SAAS,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,oBAAoB,CAAC;CAGlF;AAED,MAAM,WAAW,iBAAiB;IAChC,EAAE,CAAC,EAAE,MAAM,CAAC;IAEZ,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB,SAAS,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC;IAEjC,MAAM,CAAC,EAAE,QAAQ,CAAC;CACnB;AAED,MAAM,MAAM,iBAAiB,GAAG,MAAM,CAAC;AAEvC,MAAM,WAAW,eAAe;IAC9B,EA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e,IAAI,eAAe,EACvC,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,eAAe,IAAI,eAAe,GACxC,CAAC;CACH"}
@@ -1,73 +0,0 @@
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 Run extends APIResource {
9
- /**
10
- * Creates a v2 run in queued state. Call POST /agent/v2/run/:id/exec to start
11
- * execution on the Daytona runtime.
12
- */
13
- create(body: RunCreateParams, options?: RequestOptions): APIPromise<RunCreateResponse>;
14
- /**
15
- * Streams real-time v2 run events over SSE with replay support.
16
- */
17
- events(id: string, query?: RunEventsParams | undefined, options?: RequestOptions): APIPromise<Stream<RunEventsResponse>>;
18
- /**
19
- * Starts execution of a queued v2 run. The agent runs in a durable workflow on a
20
- * Daytona runtime.
21
- */
22
- exec(id: string, options?: RequestOptions): APIPromise<RunExecResponse>;
23
- /**
24
- * Full audit trail for a v2 run, with provider-neutral runtime metadata.
25
- */
26
- getDetails(id: string, options?: RequestOptions): APIPromise<unknown>;
27
- /**
28
- * Lightweight status poll for a v2 run including neutral runtime metadata.
29
- */
30
- getStatus(id: string, options?: RequestOptions): APIPromise<RunGetStatusResponse>;
31
- }
32
- export interface RunCreateResponse {
33
- id?: string;
34
- agentId?: string;
35
- createdAt?: string;
36
- objectIds?: Array<string> | null;
37
- status?: 'queued';
38
- }
39
- export type RunEventsResponse = string;
40
- export interface RunExecResponse {
41
- id?: string;
42
- message?: string;
43
- provider?: 'daytona';
44
- runtimeState?: 'running';
45
- status?: 'running';
46
- workflowId?: string;
47
- }
48
- export type RunGetDetailsResponse = unknown;
49
- export interface RunGetStatusResponse {
50
- id?: string;
51
- completedAt?: string | null;
52
- durationMs?: number | null;
53
- provider?: string | null;
54
- runtimeId?: string | null;
55
- runtimeState?: string | null;
56
- startedAt?: string | null;
57
- status?: 'queued' | 'running' | 'completed' | 'failed' | 'cancelled';
58
- }
59
- export interface RunCreateParams {
60
- agentId: string;
61
- prompt: string;
62
- callbackUrl?: string | null;
63
- guidance?: string | null;
64
- model?: string | null;
65
- objectIds?: Array<string> | null;
66
- }
67
- export interface RunEventsParams {
68
- lastEventId?: number;
69
- }
70
- export declare namespace Run {
71
- export { type RunCreateResponse as RunCreateResponse, type RunEventsResponse as RunEventsResponse, type RunExecResponse as RunExecResponse, type RunGetDetailsResponse as RunGetDetailsResponse, type RunGetStatusResponse as RunGetStatusResponse, type RunCreateParams as RunCreateParams, type RunEventsParams as RunEventsParams, };
72
- }
73
- //# sourceMappingURL=run.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"run.d.ts","sourceRoot":"","sources":["../../../src/resources/agent/v2/run.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,MAAM,EAAE;OAEV,EAAE,cAAc,EAAE;AAGzB;;GAEG;AACH,qBAAa,GAAI,SAAQ,WAAW;IAClC;;;OAGG;IACH,MAAM,CAAC,IAAI,EAAE,eAAe,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,iBAAiB,CAAC;IAItF;;OAEG;IACH,MAAM,CACJ,EAAE,EAAE,MAAM,EACV,KAAK,GAAE,eAAe,GAAG,SAAc,EACvC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,MAAM,CAAC,iBAAiB,CAAC,CAAC;IASxC;;;OAGG;IACH,IAAI,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,eAAe,CAAC;IAIvE;;OAEG;IACH,UAAU,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,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EhB,MAAM,EAAE,MAAM,CAAC;IAEf,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAE5B,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEzB,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEtB,SAAS,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC;CAClC;AAED,MAAM,WAAW,eAAe;IAC9B,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,CAAC,OAAO,WAAW,GAAG,CAAC;IAC3B,OAAO,EACL,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,eAAe,IAAI,eAAe,GACxC,CAAC;CACH"}
@@ -1,51 +0,0 @@
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.Run = 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 Run extends resource_1.APIResource {
12
- /**
13
- * Creates a v2 run in queued state. Call POST /agent/v2/run/:id/exec to start
14
- * execution on the Daytona runtime.
15
- */
16
- create(body, options) {
17
- return this._client.post('/agent/v2/run', { body, ...options });
18
- }
19
- /**
20
- * Streams real-time v2 run events over SSE with replay support.
21
- */
22
- events(id, query = {}, options) {
23
- return this._client.get((0, path_1.path) `/agent/v2/run/${id}/events`, {
24
- query,
25
- ...options,
26
- headers: (0, headers_1.buildHeaders)([{ Accept: 'text/event-stream' }, options?.headers]),
27
- stream: true,
28
- });
29
- }
30
- /**
31
- * Starts execution of a queued v2 run. The agent runs in a durable workflow on a
32
- * Daytona runtime.
33
- */
34
- exec(id, options) {
35
- return this._client.post((0, path_1.path) `/agent/v2/run/${id}/exec`, options);
36
- }
37
- /**
38
- * Full audit trail for a v2 run, with provider-neutral runtime metadata.
39
- */
40
- getDetails(id, options) {
41
- return this._client.get((0, path_1.path) `/agent/v2/run/${id}/details`, options);
42
- }
43
- /**
44
- * Lightweight status poll for a v2 run including neutral runtime metadata.
45
- */
46
- getStatus(id, options) {
47
- return this._client.get((0, path_1.path) `/agent/v2/run/${id}/status`, options);
48
- }
49
- }
50
- exports.Run = Run;
51
- //# sourceMappingURL=run.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"run.js","sourceRoot":"","sources":["../../../src/resources/agent/v2/run.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wDAAqD;AAGrD,0DAAyD;AAEzD,0DAAoD;AAEpD;;GAEG;AACH,MAAa,GAAI,SAAQ,sBAAW;IAClC;;;OAGG;IACH,MAAM,CAAC,IAAqB,EAAE,OAAwB;QACpD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,eAAe,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAClE,CAAC;IAED;;OAEG;IACH,MAAM,CACJ,EAAU,EACV,QAAqC,EAAE,EACvC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,iBAAiB,EAAE,SAAS,EAAE;YACxD,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,CAA0C,CAAC;IAC9C,CAAC;IAED;;;OAGG;IACH,IAAI,CAAC,EAAU,EAAE,OAAwB;QACvC,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,iBAAiB,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;IACpE,CAAC;IAED;;OAEG;IACH,UAAU,CAAC,EAAU,EAAE,OAAwB;QAC7C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,iBAAiB,EAAE,UAAU,EAAE,OAAO,CAAC,CAAC;IACtE,CAAC;IAED;;OAEG;IACH,SAAS,CAAC,EAAU,EAAE,OAAwB;QAC5C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,iBAAiB,EAAE,SAAS,EAAE,OAAO,CAAC,CAAC;IACrE,CAAC;CACF;AA9CD,kBA8CC"}
@@ -1,47 +0,0 @@
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 Run extends APIResource {
9
- /**
10
- * Creates a v2 run in queued state. Call POST /agent/v2/run/:id/exec to start
11
- * execution on the Daytona runtime.
12
- */
13
- create(body, options) {
14
- return this._client.post('/agent/v2/run', { body, ...options });
15
- }
16
- /**
17
- * Streams real-time v2 run events over SSE with replay support.
18
- */
19
- events(id, query = {}, options) {
20
- return this._client.get(path `/agent/v2/run/${id}/events`, {
21
- query,
22
- ...options,
23
- headers: buildHeaders([{ Accept: 'text/event-stream' }, options?.headers]),
24
- stream: true,
25
- });
26
- }
27
- /**
28
- * Starts execution of a queued v2 run. The agent runs in a durable workflow on a
29
- * Daytona runtime.
30
- */
31
- exec(id, options) {
32
- return this._client.post(path `/agent/v2/run/${id}/exec`, options);
33
- }
34
- /**
35
- * Full audit trail for a v2 run, with provider-neutral runtime metadata.
36
- */
37
- getDetails(id, options) {
38
- return this._client.get(path `/agent/v2/run/${id}/details`, options);
39
- }
40
- /**
41
- * Lightweight status poll for a v2 run including neutral runtime metadata.
42
- */
43
- getStatus(id, options) {
44
- return this._client.get(path `/agent/v2/run/${id}/status`, options);
45
- }
46
- }
47
- //# sourceMappingURL=run.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"run.mjs","sourceRoot":"","sources":["../../../src/resources/agent/v2/run.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAGf,EAAE,YAAY,EAAE;OAEhB,EAAE,IAAI,EAAE;AAEf;;GAEG;AACH,MAAM,OAAO,GAAI,SAAQ,WAAW;IAClC;;;OAGG;IACH,MAAM,CAAC,IAAqB,EAAE,OAAwB;QACpD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,eAAe,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAClE,CAAC;IAED;;OAEG;IACH,MAAM,CACJ,EAAU,EACV,QAAqC,EAAE,EACvC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,iBAAiB,EAAE,SAAS,EAAE;YACxD,KAAK;YACL,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC,CAAC,EAAE,MAAM,EAAE,mBAAmB,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;YAC1E,MAAM,EAAE,IAAI;SACb,CAA0C,CAAC;IAC9C,CAAC;IAED;;;OAGG;IACH,IAAI,CAAC,EAAU,EAAE,OAAwB;QACvC,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,iBAAiB,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;IACpE,CAAC;IAED;;OAEG;IACH,UAAU,CAAC,EAAU,EAAE,OAAwB;QAC7C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,iBAAiB,EAAE,UAAU,EAAE,OAAO,CAAC,CAAC;IACtE,CAAC;IAED;;OAEG;IACH,SAAS,CAAC,EAAU,EAAE,OAAwB;QAC5C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,iBAAiB,EAAE,SAAS,EAAE,OAAO,CAAC,CAAC;IACrE,CAAC;CACF"}
@@ -1,18 +0,0 @@
1
- import { APIResource } from "../../../core/resource.mjs";
2
- import * as ExecuteAPI from "./execute.mjs";
3
- import { Execute, ExecuteCreateParams, ExecuteCreateResponse } from "./execute.mjs";
4
- import * as RunAPI from "./run.mjs";
5
- import { Run, RunCreateParams, RunCreateResponse, RunEventsParams, RunEventsResponse, RunExecResponse, RunGetDetailsResponse, RunGetStatusResponse } from "./run.mjs";
6
- import * as ChatAPI from "./chat/chat.mjs";
7
- import { Chat, ChatCancelResponse, ChatCreateParams, ChatCreateResponse, ChatCreateStreamTokenResponse, ChatDeleteResponse, ChatReplyToQuestionParams, ChatRespondParams, ChatRespondResponse, ChatSendMessageParams, ChatStreamParams, ChatStreamResponse } from "./chat/chat.mjs";
8
- export declare class V2 extends APIResource {
9
- run: RunAPI.Run;
10
- execute: ExecuteAPI.Execute;
11
- chat: ChatAPI.Chat;
12
- }
13
- export declare namespace V2 {
14
- export { Run as Run, type RunCreateResponse as RunCreateResponse, type RunEventsResponse as RunEventsResponse, type RunExecResponse as RunExecResponse, type RunGetDetailsResponse as RunGetDetailsResponse, type RunGetStatusResponse as RunGetStatusResponse, type RunCreateParams as RunCreateParams, type RunEventsParams as RunEventsParams, };
15
- export { Execute as Execute, type ExecuteCreateResponse as ExecuteCreateResponse, type ExecuteCreateParams as ExecuteCreateParams, };
16
- export { Chat as Chat, 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, };
17
- }
18
- //# sourceMappingURL=v2.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"v2.d.mts","sourceRoot":"","sources":["../../../src/resources/agent/v2/v2.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,UAAU;OACf,EAAE,OAAO,EAAE,mBAAmB,EAAE,qBAAqB,EAAE;OACvD,KAAK,MAAM;OACX,EACL,GAAG,EACH,eAAe,EACf,iBAAiB,EACjB,eAAe,EACf,iBAAiB,EACjB,eAAe,EACf,qBAAqB,EACrB,oBAAoB,EACrB;OACM,KAAK,OAAO;OACZ,EACL,IAAI,EACJ,kBAAkB,EAClB,gBAAgB,EAChB,kBAAkB,EAClB,6BAA6B,EAC7B,kBAAkB,EAClB,yBAAyB,EACzB,iBAAiB,EACjB,mBAAmB,EACnB,qBAAqB,EACrB,gBAAgB,EAChB,kBAAkB,EACnB;AAED,qBAAa,EAAG,SAAQ,WAAW;IACjC,GAAG,EAAE,MAAM,CAAC,GAAG,CAAgC;IAC/C,OAAO,EAAE,UAAU,CAAC,OAAO,CAAwC;IACnE,IAAI,EAAE,OAAO,CAAC,IAAI,CAAkC;CACrD;AAMD,MAAM,CAAC,OAAO,WAAW,EAAE,CAAC;IAC1B,OAAO,EACL,GAAG,IAAI,GAAG,EACV,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,eAAe,IAAI,eAAe,GACxC,CAAC;IAEF,OAAO,EACL,OAAO,IAAI,OAAO,EAClB,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,mBAAmB,IAAI,mBAAmB,GAChD,CAAC;IAEF,OAAO,EACL,IAAI,IAAI,IAAI,EACZ,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,6BAA6B,IAAI,6BAA6B,EACnE,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,18 +0,0 @@
1
- import { APIResource } from "../../../core/resource.js";
2
- import * as ExecuteAPI from "./execute.js";
3
- import { Execute, ExecuteCreateParams, ExecuteCreateResponse } from "./execute.js";
4
- import * as RunAPI from "./run.js";
5
- import { Run, RunCreateParams, RunCreateResponse, RunEventsParams, RunEventsResponse, RunExecResponse, RunGetDetailsResponse, RunGetStatusResponse } from "./run.js";
6
- import * as ChatAPI from "./chat/chat.js";
7
- import { Chat, ChatCancelResponse, ChatCreateParams, ChatCreateResponse, ChatCreateStreamTokenResponse, ChatDeleteResponse, ChatReplyToQuestionParams, ChatRespondParams, ChatRespondResponse, ChatSendMessageParams, ChatStreamParams, ChatStreamResponse } from "./chat/chat.js";
8
- export declare class V2 extends APIResource {
9
- run: RunAPI.Run;
10
- execute: ExecuteAPI.Execute;
11
- chat: ChatAPI.Chat;
12
- }
13
- export declare namespace V2 {
14
- export { Run as Run, type RunCreateResponse as RunCreateResponse, type RunEventsResponse as RunEventsResponse, type RunExecResponse as RunExecResponse, type RunGetDetailsResponse as RunGetDetailsResponse, type RunGetStatusResponse as RunGetStatusResponse, type RunCreateParams as RunCreateParams, type RunEventsParams as RunEventsParams, };
15
- export { Execute as Execute, type ExecuteCreateResponse as ExecuteCreateResponse, type ExecuteCreateParams as ExecuteCreateParams, };
16
- export { Chat as Chat, 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, };
17
- }
18
- //# sourceMappingURL=v2.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"v2.d.ts","sourceRoot":"","sources":["../../../src/resources/agent/v2/v2.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,UAAU;OACf,EAAE,OAAO,EAAE,mBAAmB,EAAE,qBAAqB,EAAE;OACvD,KAAK,MAAM;OACX,EACL,GAAG,EACH,eAAe,EACf,iBAAiB,EACjB,eAAe,EACf,iBAAiB,EACjB,eAAe,EACf,qBAAqB,EACrB,oBAAoB,EACrB;OACM,KAAK,OAAO;OACZ,EACL,IAAI,EACJ,kBAAkB,EAClB,gBAAgB,EAChB,kBAAkB,EAClB,6BAA6B,EAC7B,kBAAkB,EAClB,yBAAyB,EACzB,iBAAiB,EACjB,mBAAmB,EACnB,qBAAqB,EACrB,gBAAgB,EAChB,kBAAkB,EACnB;AAED,qBAAa,EAAG,SAAQ,WAAW;IACjC,GAAG,EAAE,MAAM,CAAC,GAAG,CAAgC;IAC/C,OAAO,EAAE,UAAU,CAAC,OAAO,CAAwC;IACnE,IAAI,EAAE,OAAO,CAAC,IAAI,CAAkC;CACrD;AAMD,MAAM,CAAC,OAAO,WAAW,EAAE,CAAC;IAC1B,OAAO,EACL,GAAG,IAAI,GAAG,EACV,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,eAAe,IAAI,eAAe,GACxC,CAAC;IAEF,OAAO,EACL,OAAO,IAAI,OAAO,EAClB,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,mBAAmB,IAAI,mBAAmB,GAChD,CAAC;IAEF,OAAO,EACL,IAAI,IAAI,IAAI,EACZ,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,6BAA6B,IAAI,6BAA6B,EACnE,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,25 +0,0 @@
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.V2 = void 0;
5
- const tslib_1 = require("../../../internal/tslib.js");
6
- const resource_1 = require("../../../core/resource.js");
7
- const ExecuteAPI = tslib_1.__importStar(require("./execute.js"));
8
- const execute_1 = require("./execute.js");
9
- const RunAPI = tslib_1.__importStar(require("./run.js"));
10
- const run_1 = require("./run.js");
11
- const ChatAPI = tslib_1.__importStar(require("./chat/chat.js"));
12
- const chat_1 = require("./chat/chat.js");
13
- class V2 extends resource_1.APIResource {
14
- constructor() {
15
- super(...arguments);
16
- this.run = new RunAPI.Run(this._client);
17
- this.execute = new ExecuteAPI.Execute(this._client);
18
- this.chat = new ChatAPI.Chat(this._client);
19
- }
20
- }
21
- exports.V2 = V2;
22
- V2.Run = run_1.Run;
23
- V2.Execute = execute_1.Execute;
24
- V2.Chat = chat_1.Chat;
25
- //# sourceMappingURL=v2.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"v2.js","sourceRoot":"","sources":["../../../src/resources/agent/v2/v2.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,wDAAqD;AACrD,iEAAwC;AACxC,0CAAgF;AAChF,yDAAgC;AAChC,kCASe;AACf,gEAAuC;AACvC,yCAaqB;AAErB,MAAa,EAAG,SAAQ,sBAAW;IAAnC;;QACE,QAAG,GAAe,IAAI,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC/C,YAAO,GAAuB,IAAI,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACnE,SAAI,GAAiB,IAAI,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IACtD,CAAC;CAAA;AAJD,gBAIC;AAED,EAAE,CAAC,GAAG,GAAG,SAAG,CAAC;AACb,EAAE,CAAC,OAAO,GAAG,iBAAO,CAAC;AACrB,EAAE,CAAC,IAAI,GAAG,WAAI,CAAC"}