casedev 0.65.1 → 0.67.2

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 (243) hide show
  1. package/CHANGELOG.md +32 -0
  2. package/client.d.mts +3 -3
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +3 -3
  5. package/client.d.ts.map +1 -1
  6. package/client.js +3 -3
  7. package/client.js.map +1 -1
  8. package/client.mjs +3 -3
  9. package/client.mjs.map +1 -1
  10. package/package.json +15 -9
  11. package/resources/agent/agent.d.mts +4 -0
  12. package/resources/agent/agent.d.mts.map +1 -1
  13. package/resources/agent/agent.d.ts +4 -0
  14. package/resources/agent/agent.d.ts.map +1 -1
  15. package/resources/agent/agent.js +4 -0
  16. package/resources/agent/agent.js.map +1 -1
  17. package/resources/agent/agent.mjs +4 -0
  18. package/resources/agent/agent.mjs.map +1 -1
  19. package/resources/agent/index.d.mts +1 -0
  20. package/resources/agent/index.d.mts.map +1 -1
  21. package/resources/agent/index.d.ts +1 -0
  22. package/resources/agent/index.d.ts.map +1 -1
  23. package/resources/agent/index.js +5 -3
  24. package/resources/agent/index.js.map +1 -1
  25. package/resources/agent/index.mjs +1 -0
  26. package/resources/agent/index.mjs.map +1 -1
  27. package/resources/agent/skills/index.d.mts +3 -0
  28. package/resources/agent/skills/index.d.mts.map +1 -0
  29. package/resources/agent/skills/index.d.ts +3 -0
  30. package/resources/agent/skills/index.d.ts.map +1 -0
  31. package/resources/agent/skills/index.js +9 -0
  32. package/resources/agent/skills/index.js.map +1 -0
  33. package/resources/agent/skills/index.mjs +4 -0
  34. package/resources/agent/skills/index.mjs.map +1 -0
  35. package/resources/agent/skills/namespaces.d.mts +66 -0
  36. package/resources/agent/skills/namespaces.d.mts.map +1 -0
  37. package/resources/agent/skills/namespaces.d.ts +66 -0
  38. package/resources/agent/skills/namespaces.d.ts.map +1 -0
  39. package/resources/agent/skills/namespaces.js +84 -0
  40. package/resources/agent/skills/namespaces.js.map +1 -0
  41. package/resources/agent/skills/namespaces.mjs +80 -0
  42. package/resources/agent/skills/namespaces.mjs.map +1 -0
  43. package/resources/agent/skills/skills.d.mts +10 -0
  44. package/resources/agent/skills/skills.d.mts.map +1 -0
  45. package/resources/agent/skills/skills.d.ts +10 -0
  46. package/resources/agent/skills/skills.d.ts.map +1 -0
  47. package/resources/agent/skills/skills.js +17 -0
  48. package/resources/agent/skills/skills.js.map +1 -0
  49. package/resources/agent/skills/skills.mjs +12 -0
  50. package/resources/agent/skills/skills.mjs.map +1 -0
  51. package/resources/agent/skills.d.mts +2 -0
  52. package/resources/agent/skills.d.mts.map +1 -0
  53. package/resources/agent/skills.d.ts +2 -0
  54. package/resources/agent/skills.d.ts.map +1 -0
  55. package/resources/agent/skills.js +6 -0
  56. package/resources/agent/skills.js.map +1 -0
  57. package/resources/{worker.mjs → agent/skills.mjs} +2 -2
  58. package/resources/agent/skills.mjs.map +1 -0
  59. package/resources/compute/v1/instances.d.mts +5 -14
  60. package/resources/compute/v1/instances.d.mts.map +1 -1
  61. package/resources/compute/v1/instances.d.ts +5 -14
  62. package/resources/compute/v1/instances.d.ts.map +1 -1
  63. package/resources/compute/v1/instances.js +5 -7
  64. package/resources/compute/v1/instances.js.map +1 -1
  65. package/resources/compute/v1/instances.mjs +5 -7
  66. package/resources/compute/v1/instances.mjs.map +1 -1
  67. package/resources/index.d.mts +1 -1
  68. package/resources/index.d.mts.map +1 -1
  69. package/resources/index.d.ts +1 -1
  70. package/resources/index.d.ts.map +1 -1
  71. package/resources/index.js +3 -3
  72. package/resources/index.js.map +1 -1
  73. package/resources/index.mjs +1 -1
  74. package/resources/index.mjs.map +1 -1
  75. package/resources/media/index.d.mts +3 -0
  76. package/resources/media/index.d.mts.map +1 -0
  77. package/resources/media/index.d.ts +3 -0
  78. package/resources/media/index.d.ts.map +1 -0
  79. package/resources/media/index.js +9 -0
  80. package/resources/media/index.js.map +1 -0
  81. package/resources/media/index.mjs +4 -0
  82. package/resources/media/index.mjs.map +1 -0
  83. package/resources/media/media.d.mts +10 -0
  84. package/resources/media/media.d.mts.map +1 -0
  85. package/resources/media/media.d.ts +10 -0
  86. package/resources/media/media.d.ts.map +1 -0
  87. package/resources/{worker/worker.js → media/media.js} +7 -7
  88. package/resources/media/media.js.map +1 -0
  89. package/resources/{worker/worker.mjs → media/media.mjs} +5 -5
  90. package/resources/media/media.mjs.map +1 -0
  91. package/resources/media/v1/clips.d.mts +14 -0
  92. package/resources/media/v1/clips.d.mts.map +1 -0
  93. package/resources/media/v1/clips.d.ts +14 -0
  94. package/resources/media/v1/clips.d.ts.map +1 -0
  95. package/resources/media/v1/clips.js +29 -0
  96. package/resources/media/v1/clips.js.map +1 -0
  97. package/resources/media/v1/clips.mjs +25 -0
  98. package/resources/media/v1/clips.mjs.map +1 -0
  99. package/resources/media/v1/index.d.mts +4 -0
  100. package/resources/media/v1/index.d.mts.map +1 -0
  101. package/resources/media/v1/index.d.ts +4 -0
  102. package/resources/media/v1/index.d.ts.map +1 -0
  103. package/resources/media/v1/index.js +11 -0
  104. package/resources/media/v1/index.js.map +1 -0
  105. package/resources/media/v1/index.mjs +5 -0
  106. package/resources/media/v1/index.mjs.map +1 -0
  107. package/resources/media/v1/transcripts/index.d.mts +3 -0
  108. package/resources/media/v1/transcripts/index.d.mts.map +1 -0
  109. package/resources/media/v1/transcripts/index.d.ts +3 -0
  110. package/resources/media/v1/transcripts/index.d.ts.map +1 -0
  111. package/resources/media/v1/transcripts/index.js +9 -0
  112. package/resources/media/v1/transcripts/index.js.map +1 -0
  113. package/resources/media/v1/transcripts/index.mjs +4 -0
  114. package/resources/media/v1/transcripts/index.mjs.map +1 -0
  115. package/resources/media/v1/transcripts/search.d.mts +10 -0
  116. package/resources/media/v1/transcripts/search.d.mts.map +1 -0
  117. package/resources/media/v1/transcripts/search.d.ts +10 -0
  118. package/resources/media/v1/transcripts/search.d.ts.map +1 -0
  119. package/resources/media/v1/transcripts/search.js +19 -0
  120. package/resources/media/v1/transcripts/search.js.map +1 -0
  121. package/resources/media/v1/transcripts/search.mjs +15 -0
  122. package/resources/media/v1/transcripts/search.mjs.map +1 -0
  123. package/resources/media/v1/transcripts/transcripts.d.mts +10 -0
  124. package/resources/media/v1/transcripts/transcripts.d.mts.map +1 -0
  125. package/resources/media/v1/transcripts/transcripts.d.ts +10 -0
  126. package/resources/media/v1/transcripts/transcripts.d.ts.map +1 -0
  127. package/resources/media/v1/transcripts/transcripts.js +17 -0
  128. package/resources/media/v1/transcripts/transcripts.js.map +1 -0
  129. package/resources/media/v1/transcripts/transcripts.mjs +12 -0
  130. package/resources/media/v1/transcripts/transcripts.mjs.map +1 -0
  131. package/resources/media/v1/transcripts.d.mts +2 -0
  132. package/resources/media/v1/transcripts.d.mts.map +1 -0
  133. package/resources/media/v1/transcripts.d.ts +2 -0
  134. package/resources/media/v1/transcripts.d.ts.map +1 -0
  135. package/resources/media/v1/transcripts.js +6 -0
  136. package/resources/media/v1/transcripts.js.map +1 -0
  137. package/resources/media/v1/transcripts.mjs +3 -0
  138. package/resources/media/v1/transcripts.mjs.map +1 -0
  139. package/resources/media/v1/v1.d.mts +14 -0
  140. package/resources/media/v1/v1.d.mts.map +1 -0
  141. package/resources/media/v1/v1.d.ts +14 -0
  142. package/resources/media/v1/v1.d.ts.map +1 -0
  143. package/resources/media/v1/v1.js +21 -0
  144. package/resources/media/v1/v1.js.map +1 -0
  145. package/resources/media/v1/v1.mjs +16 -0
  146. package/resources/media/v1/v1.mjs.map +1 -0
  147. package/resources/media/v1.d.mts +2 -0
  148. package/resources/media/v1.d.mts.map +1 -0
  149. package/resources/media/v1.d.ts +2 -0
  150. package/resources/media/v1.d.ts.map +1 -0
  151. package/resources/media/v1.js +6 -0
  152. package/resources/media/v1.js.map +1 -0
  153. package/resources/media/v1.mjs +3 -0
  154. package/resources/media/v1.mjs.map +1 -0
  155. package/resources/media.d.mts +2 -0
  156. package/resources/media.d.mts.map +1 -0
  157. package/resources/media.d.ts +2 -0
  158. package/resources/media.d.ts.map +1 -0
  159. package/resources/{worker.js → media.js} +2 -2
  160. package/resources/media.js.map +1 -0
  161. package/resources/media.mjs +3 -0
  162. package/resources/media.mjs.map +1 -0
  163. package/resources/ocr/v1.d.mts +2 -3
  164. package/resources/ocr/v1.d.mts.map +1 -1
  165. package/resources/ocr/v1.d.ts +2 -3
  166. package/resources/ocr/v1.d.ts.map +1 -1
  167. package/resources/ocr/v1.js +2 -3
  168. package/resources/ocr/v1.js.map +1 -1
  169. package/resources/ocr/v1.mjs +2 -3
  170. package/resources/ocr/v1.mjs.map +1 -1
  171. package/resources/vault/objects.d.mts +3 -4
  172. package/resources/vault/objects.d.mts.map +1 -1
  173. package/resources/vault/objects.d.ts +3 -4
  174. package/resources/vault/objects.d.ts.map +1 -1
  175. package/resources/vault/objects.js +3 -4
  176. package/resources/vault/objects.js.map +1 -1
  177. package/resources/vault/objects.mjs +3 -4
  178. package/resources/vault/objects.mjs.map +1 -1
  179. package/resources/vault/vault.d.mts +2 -1
  180. package/resources/vault/vault.d.mts.map +1 -1
  181. package/resources/vault/vault.d.ts +2 -1
  182. package/resources/vault/vault.d.ts.map +1 -1
  183. package/resources/vault/vault.js.map +1 -1
  184. package/resources/vault/vault.mjs.map +1 -1
  185. package/src/client.ts +5 -5
  186. package/src/resources/agent/agent.ts +6 -0
  187. package/src/resources/agent/index.ts +1 -0
  188. package/src/resources/agent/skills/index.ts +4 -0
  189. package/src/resources/agent/skills/namespaces.ts +126 -0
  190. package/src/resources/agent/skills/skills.ts +19 -0
  191. package/src/resources/{worker.ts → agent/skills.ts} +1 -1
  192. package/src/resources/compute/v1/instances.ts +5 -18
  193. package/src/resources/index.ts +1 -1
  194. package/src/resources/media/index.ts +4 -0
  195. package/src/resources/media/media.ts +15 -0
  196. package/src/resources/media/v1/clips.ts +29 -0
  197. package/src/resources/media/v1/index.ts +5 -0
  198. package/src/resources/media/v1/transcripts/index.ts +4 -0
  199. package/src/resources/media/v1/transcripts/search.ts +18 -0
  200. package/src/resources/media/v1/transcripts/transcripts.ts +15 -0
  201. package/src/resources/media/v1/transcripts.ts +3 -0
  202. package/src/resources/media/v1/v1.ts +21 -0
  203. package/src/resources/media/v1.ts +3 -0
  204. package/src/resources/media.ts +3 -0
  205. package/src/resources/ocr/v1.ts +2 -3
  206. package/src/resources/vault/objects.ts +3 -4
  207. package/src/resources/vault/vault.ts +2 -1
  208. package/src/version.ts +1 -1
  209. package/version.d.mts +1 -1
  210. package/version.d.ts +1 -1
  211. package/version.js +1 -1
  212. package/version.mjs +1 -1
  213. package/resources/worker/index.d.mts +0 -3
  214. package/resources/worker/index.d.mts.map +0 -1
  215. package/resources/worker/index.d.ts +0 -3
  216. package/resources/worker/index.d.ts.map +0 -1
  217. package/resources/worker/index.js +0 -9
  218. package/resources/worker/index.js.map +0 -1
  219. package/resources/worker/index.mjs +0 -4
  220. package/resources/worker/index.mjs.map +0 -1
  221. package/resources/worker/v1.d.mts +0 -68
  222. package/resources/worker/v1.d.mts.map +0 -1
  223. package/resources/worker/v1.d.ts +0 -68
  224. package/resources/worker/v1.d.ts.map +0 -1
  225. package/resources/worker/v1.js +0 -105
  226. package/resources/worker/v1.js.map +0 -1
  227. package/resources/worker/v1.mjs +0 -101
  228. package/resources/worker/v1.mjs.map +0 -1
  229. package/resources/worker/worker.d.mts +0 -10
  230. package/resources/worker/worker.d.mts.map +0 -1
  231. package/resources/worker/worker.d.ts +0 -10
  232. package/resources/worker/worker.d.ts.map +0 -1
  233. package/resources/worker/worker.js.map +0 -1
  234. package/resources/worker/worker.mjs.map +0 -1
  235. package/resources/worker.d.mts +0 -2
  236. package/resources/worker.d.mts.map +0 -1
  237. package/resources/worker.d.ts +0 -2
  238. package/resources/worker.d.ts.map +0 -1
  239. package/resources/worker.js.map +0 -1
  240. package/resources/worker.mjs.map +0 -1
  241. package/src/resources/worker/index.ts +0 -11
  242. package/src/resources/worker/v1.ts +0 -142
  243. package/src/resources/worker/worker.ts +0 -29
@@ -0,0 +1,18 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ import { APIResource } from '../../../../core/resource';
4
+ import { APIPromise } from '../../../../core/api-promise';
5
+ import { buildHeaders } from '../../../../internal/headers';
6
+ import { RequestOptions } from '../../../../internal/request-options';
7
+
8
+ export class Search extends APIResource {
9
+ /**
10
+ * Search transcript words
11
+ */
12
+ create(options?: RequestOptions): APIPromise<void> {
13
+ return this._client.post('/media/v1/transcripts/search', {
14
+ ...options,
15
+ headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
16
+ });
17
+ }
18
+ }
@@ -0,0 +1,15 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ import { APIResource } from '../../../../core/resource';
4
+ import * as SearchAPI from './search';
5
+ import { Search } from './search';
6
+
7
+ export class Transcripts extends APIResource {
8
+ search: SearchAPI.Search = new SearchAPI.Search(this._client);
9
+ }
10
+
11
+ Transcripts.Search = Search;
12
+
13
+ export declare namespace Transcripts {
14
+ export { Search as Search };
15
+ }
@@ -0,0 +1,3 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ export * from './transcripts/index';
@@ -0,0 +1,21 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ import { APIResource } from '../../../core/resource';
4
+ import * as ClipsAPI from './clips';
5
+ import { Clips } from './clips';
6
+ import * as TranscriptsAPI from './transcripts/transcripts';
7
+ import { Transcripts } from './transcripts/transcripts';
8
+
9
+ export class V1 extends APIResource {
10
+ clips: ClipsAPI.Clips = new ClipsAPI.Clips(this._client);
11
+ transcripts: TranscriptsAPI.Transcripts = new TranscriptsAPI.Transcripts(this._client);
12
+ }
13
+
14
+ V1.Clips = Clips;
15
+ V1.Transcripts = Transcripts;
16
+
17
+ export declare namespace V1 {
18
+ export { Clips as Clips };
19
+
20
+ export { Transcripts as Transcripts };
21
+ }
@@ -0,0 +1,3 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ export * from './v1/index';
@@ -0,0 +1,3 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ export * from './media/index';
@@ -28,9 +28,8 @@ export class V1 extends APIResource {
28
28
  }
29
29
 
30
30
  /**
31
- * Download OCR processing results in various formats. Returns the processed
32
- * document as text extraction, structured JSON with coordinates, searchable PDF
33
- * with text layer, or the original uploaded document.
31
+ * Download OCR processing results in various formats by redirecting to the OCR
32
+ * service download URL.
34
33
  *
35
34
  * @example
36
35
  * ```ts
@@ -117,10 +117,9 @@ export class Objects extends APIResource {
117
117
  }
118
118
 
119
119
  /**
120
- * Downloads a file from a vault. Returns the actual file content as a binary
121
- * stream with appropriate headers for file download. Useful for retrieving
122
- * contracts, depositions, case files, and other legal documents stored in your
123
- * vault.
120
+ * Downloads a file from a vault by redirecting to a short-lived presigned S3 URL.
121
+ * Useful for retrieving contracts, depositions, case files, and other legal
122
+ * documents stored in your vault.
124
123
  *
125
124
  * @example
126
125
  * ```ts
@@ -935,7 +935,8 @@ export interface VaultSearchParams {
935
935
  method?: 'vector' | 'graph' | 'hybrid' | 'global' | 'local' | 'fast' | 'entity';
936
936
 
937
937
  /**
938
- * Maximum number of results to return
938
+ * Maximum number of results to return. Hybrid search supports 1 to 50; other
939
+ * methods may support up to 100.
939
940
  */
940
941
  topK?: number;
941
942
  }
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const VERSION = '0.65.1'; // x-release-please-version
1
+ export const VERSION = '0.67.2'; // x-release-please-version
package/version.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "0.65.1";
1
+ export declare const VERSION = "0.67.2";
2
2
  //# sourceMappingURL=version.d.mts.map
package/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "0.65.1";
1
+ export declare const VERSION = "0.67.2";
2
2
  //# sourceMappingURL=version.d.ts.map
package/version.js CHANGED
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.VERSION = void 0;
4
- exports.VERSION = '0.65.1'; // x-release-please-version
4
+ exports.VERSION = '0.67.2'; // x-release-please-version
5
5
  //# sourceMappingURL=version.js.map
package/version.mjs CHANGED
@@ -1,2 +1,2 @@
1
- export const VERSION = '0.65.1'; // x-release-please-version
1
+ export const VERSION = '0.67.2'; // x-release-please-version
2
2
  //# sourceMappingURL=version.mjs.map
@@ -1,3 +0,0 @@
1
- export { V1, type V1ProxyDeleteParams, type V1ProxyGetParams, type V1ProxyPatchParams, type V1ProxyPostParams, type V1ProxyPutParams, } from "./v1.mjs";
2
- export { Worker } from "./worker.mjs";
3
- //# sourceMappingURL=index.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../src/resources/worker/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,EAAE,EACF,KAAK,mBAAmB,EACxB,KAAK,gBAAgB,EACrB,KAAK,kBAAkB,EACvB,KAAK,iBAAiB,EACtB,KAAK,gBAAgB,GACtB,iBAAa;AACd,OAAO,EAAE,MAAM,EAAE,qBAAiB"}
@@ -1,3 +0,0 @@
1
- export { V1, type V1ProxyDeleteParams, type V1ProxyGetParams, type V1ProxyPatchParams, type V1ProxyPostParams, type V1ProxyPutParams, } from "./v1.js";
2
- export { Worker } from "./worker.js";
3
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/worker/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,EAAE,EACF,KAAK,mBAAmB,EACxB,KAAK,gBAAgB,EACrB,KAAK,kBAAkB,EACvB,KAAK,iBAAiB,EACtB,KAAK,gBAAgB,GACtB,gBAAa;AACd,OAAO,EAAE,MAAM,EAAE,oBAAiB"}
@@ -1,9 +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.Worker = exports.V1 = void 0;
5
- var v1_1 = require("./v1.js");
6
- Object.defineProperty(exports, "V1", { enumerable: true, get: function () { return v1_1.V1; } });
7
- var worker_1 = require("./worker.js");
8
- Object.defineProperty(exports, "Worker", { enumerable: true, get: function () { return worker_1.Worker; } });
9
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/worker/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,8BAOc;AANZ,wFAAA,EAAE,OAAA;AAOJ,sCAAkC;AAAzB,gGAAA,MAAM,OAAA"}
@@ -1,4 +0,0 @@
1
- // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
- export { V1, } from "./v1.mjs";
3
- export { Worker } from "./worker.mjs";
4
- //# sourceMappingURL=index.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/worker/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EACL,EAAE,GAMH,iBAAa;AACd,OAAO,EAAE,MAAM,EAAE,qBAAiB"}
@@ -1,68 +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
- export declare class V1 extends APIResource {
5
- /**
6
- * Creates a Daytona-backed worker runtime. The worker exposes its native runtime
7
- * API through /worker/v1/:id/\* without reshaping payloads or events.
8
- */
9
- create(options?: RequestOptions): APIPromise<void>;
10
- /**
11
- * Get worker
12
- */
13
- retrieve(id: string, options?: RequestOptions): APIPromise<void>;
14
- /**
15
- * End worker
16
- */
17
- delete(id: string, options?: RequestOptions): APIPromise<void>;
18
- /**
19
- * Starts or resumes the worker sandbox and OpenCode server. Native
20
- * /worker/v1/:id/\* proxy routes require this lifecycle primitive to have
21
- * completed first.
22
- */
23
- boot(id: string, options?: RequestOptions): APIPromise<void>;
24
- /**
25
- * Forwards a DELETE request to the worker runtime without translating response
26
- * shapes.
27
- */
28
- proxyDelete(workerPath: string, params: V1ProxyDeleteParams, options?: RequestOptions): APIPromise<void>;
29
- /**
30
- * Forwards a GET request to the worker runtime without translating response or SSE
31
- * event shapes.
32
- */
33
- proxyGet(workerPath: string, params: V1ProxyGetParams, options?: RequestOptions): APIPromise<void>;
34
- /**
35
- * Forwards a PATCH request to the worker runtime without translating request or
36
- * response shapes.
37
- */
38
- proxyPatch(workerPath: string, params: V1ProxyPatchParams, options?: RequestOptions): APIPromise<void>;
39
- /**
40
- * Forwards a POST request to the worker runtime without translating request,
41
- * response, or SSE event shapes.
42
- */
43
- proxyPost(workerPath: string, params: V1ProxyPostParams, options?: RequestOptions): APIPromise<void>;
44
- /**
45
- * Forwards a PUT request to the worker runtime without translating request or
46
- * response shapes.
47
- */
48
- proxyPut(workerPath: string, params: V1ProxyPutParams, options?: RequestOptions): APIPromise<void>;
49
- }
50
- export interface V1ProxyDeleteParams {
51
- id: string;
52
- }
53
- export interface V1ProxyGetParams {
54
- id: string;
55
- }
56
- export interface V1ProxyPatchParams {
57
- id: string;
58
- }
59
- export interface V1ProxyPostParams {
60
- id: string;
61
- }
62
- export interface V1ProxyPutParams {
63
- id: string;
64
- }
65
- export declare namespace V1 {
66
- export { type V1ProxyDeleteParams as V1ProxyDeleteParams, type V1ProxyGetParams as V1ProxyGetParams, type V1ProxyPatchParams as V1ProxyPatchParams, type V1ProxyPostParams as V1ProxyPostParams, type V1ProxyPutParams as V1ProxyPutParams, };
67
- }
68
- //# sourceMappingURL=v1.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"v1.d.mts","sourceRoot":"","sources":["../../src/resources/worker/v1.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,EAAE,UAAU,EAAE,mCAA+B;AAEpD,OAAO,EAAE,cAAc,EAAE,2C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BAAgB;IAC/B,EAAE,EAAE,MAAM,CAAC;CACZ;AAED,MAAM,WAAW,kBAAkB;IACjC,EAAE,EAAE,MAAM,CAAC;CACZ;AAED,MAAM,WAAW,iBAAiB;IAChC,EAAE,EAAE,MAAM,CAAC;CACZ;AAED,MAAM,WAAW,gBAAgB;IAC/B,EAAE,EAAE,MAAM,CAAC;CACZ;AAED,MAAM,CAAC,OAAO,WAAW,EAAE,CAAC;IAC1B,OAAO,EACL,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,gBAAgB,IAAI,gBAAgB,GAC1C,CAAC;CACH"}
@@ -1,68 +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
- export declare class V1 extends APIResource {
5
- /**
6
- * Creates a Daytona-backed worker runtime. The worker exposes its native runtime
7
- * API through /worker/v1/:id/\* without reshaping payloads or events.
8
- */
9
- create(options?: RequestOptions): APIPromise<void>;
10
- /**
11
- * Get worker
12
- */
13
- retrieve(id: string, options?: RequestOptions): APIPromise<void>;
14
- /**
15
- * End worker
16
- */
17
- delete(id: string, options?: RequestOptions): APIPromise<void>;
18
- /**
19
- * Starts or resumes the worker sandbox and OpenCode server. Native
20
- * /worker/v1/:id/\* proxy routes require this lifecycle primitive to have
21
- * completed first.
22
- */
23
- boot(id: string, options?: RequestOptions): APIPromise<void>;
24
- /**
25
- * Forwards a DELETE request to the worker runtime without translating response
26
- * shapes.
27
- */
28
- proxyDelete(workerPath: string, params: V1ProxyDeleteParams, options?: RequestOptions): APIPromise<void>;
29
- /**
30
- * Forwards a GET request to the worker runtime without translating response or SSE
31
- * event shapes.
32
- */
33
- proxyGet(workerPath: string, params: V1ProxyGetParams, options?: RequestOptions): APIPromise<void>;
34
- /**
35
- * Forwards a PATCH request to the worker runtime without translating request or
36
- * response shapes.
37
- */
38
- proxyPatch(workerPath: string, params: V1ProxyPatchParams, options?: RequestOptions): APIPromise<void>;
39
- /**
40
- * Forwards a POST request to the worker runtime without translating request,
41
- * response, or SSE event shapes.
42
- */
43
- proxyPost(workerPath: string, params: V1ProxyPostParams, options?: RequestOptions): APIPromise<void>;
44
- /**
45
- * Forwards a PUT request to the worker runtime without translating request or
46
- * response shapes.
47
- */
48
- proxyPut(workerPath: string, params: V1ProxyPutParams, options?: RequestOptions): APIPromise<void>;
49
- }
50
- export interface V1ProxyDeleteParams {
51
- id: string;
52
- }
53
- export interface V1ProxyGetParams {
54
- id: string;
55
- }
56
- export interface V1ProxyPatchParams {
57
- id: string;
58
- }
59
- export interface V1ProxyPostParams {
60
- id: string;
61
- }
62
- export interface V1ProxyPutParams {
63
- id: string;
64
- }
65
- export declare namespace V1 {
66
- export { type V1ProxyDeleteParams as V1ProxyDeleteParams, type V1ProxyGetParams as V1ProxyGetParams, type V1ProxyPatchParams as V1ProxyPatchParams, type V1ProxyPostParams as V1ProxyPostParams, type V1ProxyPutParams as V1ProxyPutParams, };
67
- }
68
- //# sourceMappingURL=v1.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"v1.d.ts","sourceRoot":"","sources":["../../src/resources/worker/v1.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,EAAE,UAAU,EAAE,kCAA+B;AAEpD,OAAO,EAAE,cAAc,EAAE,0CAAuC;AAGhE,qBAAa,EAAG,SAAQ,WAAW;IACjC;;;OAGG;IACH,MAAM,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;IAOlD;;OAEG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;IAOhE;;OAEG;IACH,MAAM,CAAC,EAAE,EAAE,MA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O,EACL,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,gBAAgB,IAAI,gBAAgB,GAC1C,CAAC;CACH"}
@@ -1,105 +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.V1 = void 0;
5
- const resource_1 = require("../../core/resource.js");
6
- const headers_1 = require("../../internal/headers.js");
7
- const path_1 = require("../../internal/utils/path.js");
8
- class V1 extends resource_1.APIResource {
9
- /**
10
- * Creates a Daytona-backed worker runtime. The worker exposes its native runtime
11
- * API through /worker/v1/:id/\* without reshaping payloads or events.
12
- */
13
- create(options) {
14
- return this._client.post('/worker/v1', {
15
- ...options,
16
- headers: (0, headers_1.buildHeaders)([{ Accept: '*/*' }, options?.headers]),
17
- });
18
- }
19
- /**
20
- * Get worker
21
- */
22
- retrieve(id, options) {
23
- return this._client.get((0, path_1.path) `/worker/v1/${id}`, {
24
- ...options,
25
- headers: (0, headers_1.buildHeaders)([{ Accept: '*/*' }, options?.headers]),
26
- });
27
- }
28
- /**
29
- * End worker
30
- */
31
- delete(id, options) {
32
- return this._client.delete((0, path_1.path) `/worker/v1/${id}`, {
33
- ...options,
34
- headers: (0, headers_1.buildHeaders)([{ Accept: '*/*' }, options?.headers]),
35
- });
36
- }
37
- /**
38
- * Starts or resumes the worker sandbox and OpenCode server. Native
39
- * /worker/v1/:id/\* proxy routes require this lifecycle primitive to have
40
- * completed first.
41
- */
42
- boot(id, options) {
43
- return this._client.post((0, path_1.path) `/worker/v1/${id}/boot`, {
44
- ...options,
45
- headers: (0, headers_1.buildHeaders)([{ Accept: '*/*' }, options?.headers]),
46
- });
47
- }
48
- /**
49
- * Forwards a DELETE request to the worker runtime without translating response
50
- * shapes.
51
- */
52
- proxyDelete(workerPath, params, options) {
53
- const { id } = params;
54
- return this._client.delete((0, path_1.path) `/worker/v1/${id}/${workerPath}`, {
55
- ...options,
56
- headers: (0, headers_1.buildHeaders)([{ Accept: '*/*' }, options?.headers]),
57
- });
58
- }
59
- /**
60
- * Forwards a GET request to the worker runtime without translating response or SSE
61
- * event shapes.
62
- */
63
- proxyGet(workerPath, params, options) {
64
- const { id } = params;
65
- return this._client.get((0, path_1.path) `/worker/v1/${id}/${workerPath}`, {
66
- ...options,
67
- headers: (0, headers_1.buildHeaders)([{ Accept: '*/*' }, options?.headers]),
68
- });
69
- }
70
- /**
71
- * Forwards a PATCH request to the worker runtime without translating request or
72
- * response shapes.
73
- */
74
- proxyPatch(workerPath, params, options) {
75
- const { id } = params;
76
- return this._client.patch((0, path_1.path) `/worker/v1/${id}/${workerPath}`, {
77
- ...options,
78
- headers: (0, headers_1.buildHeaders)([{ Accept: '*/*' }, options?.headers]),
79
- });
80
- }
81
- /**
82
- * Forwards a POST request to the worker runtime without translating request,
83
- * response, or SSE event shapes.
84
- */
85
- proxyPost(workerPath, params, options) {
86
- const { id } = params;
87
- return this._client.post((0, path_1.path) `/worker/v1/${id}/${workerPath}`, {
88
- ...options,
89
- headers: (0, headers_1.buildHeaders)([{ Accept: '*/*' }, options?.headers]),
90
- });
91
- }
92
- /**
93
- * Forwards a PUT request to the worker runtime without translating request or
94
- * response shapes.
95
- */
96
- proxyPut(workerPath, params, options) {
97
- const { id } = params;
98
- return this._client.put((0, path_1.path) `/worker/v1/${id}/${workerPath}`, {
99
- ...options,
100
- headers: (0, headers_1.buildHeaders)([{ Accept: '*/*' }, options?.headers]),
101
- });
102
- }
103
- }
104
- exports.V1 = V1;
105
- //# sourceMappingURL=v1.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"v1.js","sourceRoot":"","sources":["../../src/resources/worker/v1.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAElD,uDAAsD;AAEtD,uDAAiD;AAEjD,M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AAA,cAAc,EAAE,IAAI,UAAU,EAAE,EAAE;YAC7D,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;IAED;;;OAGG;IACH,QAAQ,CAAC,UAAkB,EAAE,MAAwB,EAAE,OAAwB;QAC7E,MAAM,EAAE,EAAE,EAAE,GAAG,MAAM,CAAC;QACtB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,cAAc,EAAE,IAAI,UAAU,EAAE,EAAE;YAC5D,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;CACF;AAvGD,gBAuGC"}
@@ -1,101 +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
- export class V1 extends APIResource {
6
- /**
7
- * Creates a Daytona-backed worker runtime. The worker exposes its native runtime
8
- * API through /worker/v1/:id/\* without reshaping payloads or events.
9
- */
10
- create(options) {
11
- return this._client.post('/worker/v1', {
12
- ...options,
13
- headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
14
- });
15
- }
16
- /**
17
- * Get worker
18
- */
19
- retrieve(id, options) {
20
- return this._client.get(path `/worker/v1/${id}`, {
21
- ...options,
22
- headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
23
- });
24
- }
25
- /**
26
- * End worker
27
- */
28
- delete(id, options) {
29
- return this._client.delete(path `/worker/v1/${id}`, {
30
- ...options,
31
- headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
32
- });
33
- }
34
- /**
35
- * Starts or resumes the worker sandbox and OpenCode server. Native
36
- * /worker/v1/:id/\* proxy routes require this lifecycle primitive to have
37
- * completed first.
38
- */
39
- boot(id, options) {
40
- return this._client.post(path `/worker/v1/${id}/boot`, {
41
- ...options,
42
- headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
43
- });
44
- }
45
- /**
46
- * Forwards a DELETE request to the worker runtime without translating response
47
- * shapes.
48
- */
49
- proxyDelete(workerPath, params, options) {
50
- const { id } = params;
51
- return this._client.delete(path `/worker/v1/${id}/${workerPath}`, {
52
- ...options,
53
- headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
54
- });
55
- }
56
- /**
57
- * Forwards a GET request to the worker runtime without translating response or SSE
58
- * event shapes.
59
- */
60
- proxyGet(workerPath, params, options) {
61
- const { id } = params;
62
- return this._client.get(path `/worker/v1/${id}/${workerPath}`, {
63
- ...options,
64
- headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
65
- });
66
- }
67
- /**
68
- * Forwards a PATCH request to the worker runtime without translating request or
69
- * response shapes.
70
- */
71
- proxyPatch(workerPath, params, options) {
72
- const { id } = params;
73
- return this._client.patch(path `/worker/v1/${id}/${workerPath}`, {
74
- ...options,
75
- headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
76
- });
77
- }
78
- /**
79
- * Forwards a POST request to the worker runtime without translating request,
80
- * response, or SSE event shapes.
81
- */
82
- proxyPost(workerPath, params, options) {
83
- const { id } = params;
84
- return this._client.post(path `/worker/v1/${id}/${workerPath}`, {
85
- ...options,
86
- headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
87
- });
88
- }
89
- /**
90
- * Forwards a PUT request to the worker runtime without translating request or
91
- * response shapes.
92
- */
93
- proxyPut(workerPath, params, options) {
94
- const { id } = params;
95
- return this._client.put(path `/worker/v1/${id}/${workerPath}`, {
96
- ...options,
97
- headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
98
- });
99
- }
100
- }
101
- //# sourceMappingURL=v1.mjs.map
@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AC,UAAkB,EAAE,MAAyB,EAAE,OAAwB;QAC/E,MAAM,EAAE,EAAE,EAAE,GAAG,MAAM,CAAC;QACtB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,cAAc,EAAE,IAAI,UAAU,EAAE,EAAE;YAC7D,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;IAED;;;OAGG;IACH,QAAQ,CAAC,UAAkB,EAAE,MAAwB,EAAE,OAAwB;QAC7E,MAAM,EAAE,EAAE,EAAE,GAAG,MAAM,CAAC;QACtB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,cAAc,EAAE,IAAI,UAAU,EAAE,EAAE;YAC5D,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;CACF"}
@@ -1,10 +0,0 @@
1
- import { APIResource } from "../../core/resource.mjs";
2
- import * as V1API from "./v1.mjs";
3
- import { V1, V1ProxyDeleteParams, V1ProxyGetParams, V1ProxyPatchParams, V1ProxyPostParams, V1ProxyPutParams } from "./v1.mjs";
4
- export declare class Worker extends APIResource {
5
- v1: V1API.V1;
6
- }
7
- export declare namespace Worker {
8
- export { V1 as V1, type V1ProxyDeleteParams as V1ProxyDeleteParams, type V1ProxyGetParams as V1ProxyGetParams, type V1ProxyPatchParams as V1ProxyPatchParams, type V1ProxyPostParams as V1ProxyPostParams, type V1ProxyPutParams as V1ProxyPutParams, };
9
- }
10
- //# sourceMappingURL=worker.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"worker.d.mts","sourceRoot":"","sources":["../../src/resources/worker/worker.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,KAAK,KAAK,iBAAa;AAC9B,OAAO,EACL,EAAE,EACF,mBAAmB,EACnB,gBAAgB,EAChB,kBAAkB,EAClB,iBAAiB,EACjB,gBAAgB,EACjB,iBAAa;AAEd,qBAAa,MAAO,SAAQ,WAAW;IACrC,EAAE,EAAE,KAAK,CAAC,EAAE,CAA8B;CAC3C;AAID,MAAM,CAAC,OAAO,WAAW,MAAM,CAAC;IAC9B,OAAO,EACL,EAAE,IAAI,EAAE,EACR,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,gBAAgB,IAAI,gBAAgB,GAC1C,CAAC;CACH"}
@@ -1,10 +0,0 @@
1
- import { APIResource } from "../../core/resource.js";
2
- import * as V1API from "./v1.js";
3
- import { V1, V1ProxyDeleteParams, V1ProxyGetParams, V1ProxyPatchParams, V1ProxyPostParams, V1ProxyPutParams } from "./v1.js";
4
- export declare class Worker extends APIResource {
5
- v1: V1API.V1;
6
- }
7
- export declare namespace Worker {
8
- export { V1 as V1, type V1ProxyDeleteParams as V1ProxyDeleteParams, type V1ProxyGetParams as V1ProxyGetParams, type V1ProxyPatchParams as V1ProxyPatchParams, type V1ProxyPostParams as V1ProxyPostParams, type V1ProxyPutParams as V1ProxyPutParams, };
9
- }
10
- //# sourceMappingURL=worker.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"worker.d.ts","sourceRoot":"","sources":["../../src/resources/worker/worker.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,KAAK,KAAK,gBAAa;AAC9B,OAAO,EACL,EAAE,EACF,mBAAmB,EACnB,gBAAgB,EAChB,kBAAkB,EAClB,iBAAiB,EACjB,gBAAgB,EACjB,gBAAa;AAEd,qBAAa,MAAO,SAAQ,WAAW;IACrC,EAAE,EAAE,KAAK,CAAC,EAAE,CAA8B;CAC3C;AAID,MAAM,CAAC,OAAO,WAAW,MAAM,CAAC;IAC9B,OAAO,EACL,EAAE,IAAI,EAAE,EACR,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,gBAAgB,IAAI,gBAAgB,GAC1C,CAAC;CACH"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"worker.js","sourceRoot":"","sources":["../../src/resources/worker/worker.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,qDAAkD;AAClD,uDAA8B;AAC9B,gCAOc;AAEd,MAAa,MAAO,SAAQ,sBAAW;IAAvC;;QACE,OAAE,GAAa,IAAI,KAAK,CAAC,EAAE,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAC5C,CAAC;CAAA;AAFD,wBAEC;AAED,MAAM,CAAC,EAAE,GAAG,OAAE,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"worker.mjs","sourceRoot":"","sources":["../../src/resources/worker/worker.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,KAAK,KAAK,iBAAa;AAC9B,OAAO,EACL,EAAE,GAMH,iBAAa;AAEd,MAAM,OAAO,MAAO,SAAQ,WAAW;IAAvC;;QACE,OAAE,GAAa,IAAI,KAAK,CAAC,EAAE,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAC5C,CAAC;CAAA;AAED,MAAM,CAAC,EAAE,GAAG,EAAE,CAAC"}
@@ -1,2 +0,0 @@
1
- export * from "./worker/index.mjs";
2
- //# sourceMappingURL=worker.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"worker.d.mts","sourceRoot":"","sources":["../src/resources/worker.ts"],"names":[],"mappings":"AAEA,mCAA+B"}
@@ -1,2 +0,0 @@
1
- export * from "./worker/index.js";
2
- //# sourceMappingURL=worker.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"worker.d.ts","sourceRoot":"","sources":["../src/resources/worker.ts"],"names":[],"mappings":"AAEA,kCAA+B"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"worker.js","sourceRoot":"","sources":["../src/resources/worker.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,4DAA+B"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"worker.mjs","sourceRoot":"","sources":["../src/resources/worker.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,mCAA+B"}
@@ -1,11 +0,0 @@
1
- // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
-
3
- export {
4
- V1,
5
- type V1ProxyDeleteParams,
6
- type V1ProxyGetParams,
7
- type V1ProxyPatchParams,
8
- type V1ProxyPostParams,
9
- type V1ProxyPutParams,
10
- } from './v1';
11
- export { Worker } from './worker';