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.
- package/CHANGELOG.md +32 -0
- package/client.d.mts +3 -3
- package/client.d.mts.map +1 -1
- package/client.d.ts +3 -3
- package/client.d.ts.map +1 -1
- package/client.js +3 -3
- package/client.js.map +1 -1
- package/client.mjs +3 -3
- package/client.mjs.map +1 -1
- package/package.json +15 -9
- package/resources/agent/agent.d.mts +4 -0
- package/resources/agent/agent.d.mts.map +1 -1
- package/resources/agent/agent.d.ts +4 -0
- package/resources/agent/agent.d.ts.map +1 -1
- package/resources/agent/agent.js +4 -0
- package/resources/agent/agent.js.map +1 -1
- package/resources/agent/agent.mjs +4 -0
- package/resources/agent/agent.mjs.map +1 -1
- package/resources/agent/index.d.mts +1 -0
- package/resources/agent/index.d.mts.map +1 -1
- package/resources/agent/index.d.ts +1 -0
- package/resources/agent/index.d.ts.map +1 -1
- package/resources/agent/index.js +5 -3
- package/resources/agent/index.js.map +1 -1
- package/resources/agent/index.mjs +1 -0
- package/resources/agent/index.mjs.map +1 -1
- package/resources/agent/skills/index.d.mts +3 -0
- package/resources/agent/skills/index.d.mts.map +1 -0
- package/resources/agent/skills/index.d.ts +3 -0
- package/resources/agent/skills/index.d.ts.map +1 -0
- package/resources/agent/skills/index.js +9 -0
- package/resources/agent/skills/index.js.map +1 -0
- package/resources/agent/skills/index.mjs +4 -0
- package/resources/agent/skills/index.mjs.map +1 -0
- package/resources/agent/skills/namespaces.d.mts +66 -0
- package/resources/agent/skills/namespaces.d.mts.map +1 -0
- package/resources/agent/skills/namespaces.d.ts +66 -0
- package/resources/agent/skills/namespaces.d.ts.map +1 -0
- package/resources/agent/skills/namespaces.js +84 -0
- package/resources/agent/skills/namespaces.js.map +1 -0
- package/resources/agent/skills/namespaces.mjs +80 -0
- package/resources/agent/skills/namespaces.mjs.map +1 -0
- package/resources/agent/skills/skills.d.mts +10 -0
- package/resources/agent/skills/skills.d.mts.map +1 -0
- package/resources/agent/skills/skills.d.ts +10 -0
- package/resources/agent/skills/skills.d.ts.map +1 -0
- package/resources/agent/skills/skills.js +17 -0
- package/resources/agent/skills/skills.js.map +1 -0
- package/resources/agent/skills/skills.mjs +12 -0
- package/resources/agent/skills/skills.mjs.map +1 -0
- package/resources/agent/skills.d.mts +2 -0
- package/resources/agent/skills.d.mts.map +1 -0
- package/resources/agent/skills.d.ts +2 -0
- package/resources/agent/skills.d.ts.map +1 -0
- package/resources/agent/skills.js +6 -0
- package/resources/agent/skills.js.map +1 -0
- package/resources/{worker.mjs → agent/skills.mjs} +2 -2
- package/resources/agent/skills.mjs.map +1 -0
- package/resources/compute/v1/instances.d.mts +5 -14
- package/resources/compute/v1/instances.d.mts.map +1 -1
- package/resources/compute/v1/instances.d.ts +5 -14
- package/resources/compute/v1/instances.d.ts.map +1 -1
- package/resources/compute/v1/instances.js +5 -7
- package/resources/compute/v1/instances.js.map +1 -1
- package/resources/compute/v1/instances.mjs +5 -7
- package/resources/compute/v1/instances.mjs.map +1 -1
- package/resources/index.d.mts +1 -1
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +1 -1
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +3 -3
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +1 -1
- package/resources/index.mjs.map +1 -1
- package/resources/media/index.d.mts +3 -0
- package/resources/media/index.d.mts.map +1 -0
- package/resources/media/index.d.ts +3 -0
- package/resources/media/index.d.ts.map +1 -0
- package/resources/media/index.js +9 -0
- package/resources/media/index.js.map +1 -0
- package/resources/media/index.mjs +4 -0
- package/resources/media/index.mjs.map +1 -0
- package/resources/media/media.d.mts +10 -0
- package/resources/media/media.d.mts.map +1 -0
- package/resources/media/media.d.ts +10 -0
- package/resources/media/media.d.ts.map +1 -0
- package/resources/{worker/worker.js → media/media.js} +7 -7
- package/resources/media/media.js.map +1 -0
- package/resources/{worker/worker.mjs → media/media.mjs} +5 -5
- package/resources/media/media.mjs.map +1 -0
- package/resources/media/v1/clips.d.mts +14 -0
- package/resources/media/v1/clips.d.mts.map +1 -0
- package/resources/media/v1/clips.d.ts +14 -0
- package/resources/media/v1/clips.d.ts.map +1 -0
- package/resources/media/v1/clips.js +29 -0
- package/resources/media/v1/clips.js.map +1 -0
- package/resources/media/v1/clips.mjs +25 -0
- package/resources/media/v1/clips.mjs.map +1 -0
- package/resources/media/v1/index.d.mts +4 -0
- package/resources/media/v1/index.d.mts.map +1 -0
- package/resources/media/v1/index.d.ts +4 -0
- package/resources/media/v1/index.d.ts.map +1 -0
- package/resources/media/v1/index.js +11 -0
- package/resources/media/v1/index.js.map +1 -0
- package/resources/media/v1/index.mjs +5 -0
- package/resources/media/v1/index.mjs.map +1 -0
- package/resources/media/v1/transcripts/index.d.mts +3 -0
- package/resources/media/v1/transcripts/index.d.mts.map +1 -0
- package/resources/media/v1/transcripts/index.d.ts +3 -0
- package/resources/media/v1/transcripts/index.d.ts.map +1 -0
- package/resources/media/v1/transcripts/index.js +9 -0
- package/resources/media/v1/transcripts/index.js.map +1 -0
- package/resources/media/v1/transcripts/index.mjs +4 -0
- package/resources/media/v1/transcripts/index.mjs.map +1 -0
- package/resources/media/v1/transcripts/search.d.mts +10 -0
- package/resources/media/v1/transcripts/search.d.mts.map +1 -0
- package/resources/media/v1/transcripts/search.d.ts +10 -0
- package/resources/media/v1/transcripts/search.d.ts.map +1 -0
- package/resources/media/v1/transcripts/search.js +19 -0
- package/resources/media/v1/transcripts/search.js.map +1 -0
- package/resources/media/v1/transcripts/search.mjs +15 -0
- package/resources/media/v1/transcripts/search.mjs.map +1 -0
- package/resources/media/v1/transcripts/transcripts.d.mts +10 -0
- package/resources/media/v1/transcripts/transcripts.d.mts.map +1 -0
- package/resources/media/v1/transcripts/transcripts.d.ts +10 -0
- package/resources/media/v1/transcripts/transcripts.d.ts.map +1 -0
- package/resources/media/v1/transcripts/transcripts.js +17 -0
- package/resources/media/v1/transcripts/transcripts.js.map +1 -0
- package/resources/media/v1/transcripts/transcripts.mjs +12 -0
- package/resources/media/v1/transcripts/transcripts.mjs.map +1 -0
- package/resources/media/v1/transcripts.d.mts +2 -0
- package/resources/media/v1/transcripts.d.mts.map +1 -0
- package/resources/media/v1/transcripts.d.ts +2 -0
- package/resources/media/v1/transcripts.d.ts.map +1 -0
- package/resources/media/v1/transcripts.js +6 -0
- package/resources/media/v1/transcripts.js.map +1 -0
- package/resources/media/v1/transcripts.mjs +3 -0
- package/resources/media/v1/transcripts.mjs.map +1 -0
- package/resources/media/v1/v1.d.mts +14 -0
- package/resources/media/v1/v1.d.mts.map +1 -0
- package/resources/media/v1/v1.d.ts +14 -0
- package/resources/media/v1/v1.d.ts.map +1 -0
- package/resources/media/v1/v1.js +21 -0
- package/resources/media/v1/v1.js.map +1 -0
- package/resources/media/v1/v1.mjs +16 -0
- package/resources/media/v1/v1.mjs.map +1 -0
- package/resources/media/v1.d.mts +2 -0
- package/resources/media/v1.d.mts.map +1 -0
- package/resources/media/v1.d.ts +2 -0
- package/resources/media/v1.d.ts.map +1 -0
- package/resources/media/v1.js +6 -0
- package/resources/media/v1.js.map +1 -0
- package/resources/media/v1.mjs +3 -0
- package/resources/media/v1.mjs.map +1 -0
- package/resources/media.d.mts +2 -0
- package/resources/media.d.mts.map +1 -0
- package/resources/media.d.ts +2 -0
- package/resources/media.d.ts.map +1 -0
- package/resources/{worker.js → media.js} +2 -2
- package/resources/media.js.map +1 -0
- package/resources/media.mjs +3 -0
- package/resources/media.mjs.map +1 -0
- package/resources/ocr/v1.d.mts +2 -3
- package/resources/ocr/v1.d.mts.map +1 -1
- package/resources/ocr/v1.d.ts +2 -3
- package/resources/ocr/v1.d.ts.map +1 -1
- package/resources/ocr/v1.js +2 -3
- package/resources/ocr/v1.js.map +1 -1
- package/resources/ocr/v1.mjs +2 -3
- package/resources/ocr/v1.mjs.map +1 -1
- package/resources/vault/objects.d.mts +3 -4
- package/resources/vault/objects.d.mts.map +1 -1
- package/resources/vault/objects.d.ts +3 -4
- package/resources/vault/objects.d.ts.map +1 -1
- package/resources/vault/objects.js +3 -4
- package/resources/vault/objects.js.map +1 -1
- package/resources/vault/objects.mjs +3 -4
- package/resources/vault/objects.mjs.map +1 -1
- package/resources/vault/vault.d.mts +2 -1
- package/resources/vault/vault.d.mts.map +1 -1
- package/resources/vault/vault.d.ts +2 -1
- package/resources/vault/vault.d.ts.map +1 -1
- package/resources/vault/vault.js.map +1 -1
- package/resources/vault/vault.mjs.map +1 -1
- package/src/client.ts +5 -5
- package/src/resources/agent/agent.ts +6 -0
- package/src/resources/agent/index.ts +1 -0
- package/src/resources/agent/skills/index.ts +4 -0
- package/src/resources/agent/skills/namespaces.ts +126 -0
- package/src/resources/agent/skills/skills.ts +19 -0
- package/src/resources/{worker.ts → agent/skills.ts} +1 -1
- package/src/resources/compute/v1/instances.ts +5 -18
- package/src/resources/index.ts +1 -1
- package/src/resources/media/index.ts +4 -0
- package/src/resources/media/media.ts +15 -0
- package/src/resources/media/v1/clips.ts +29 -0
- package/src/resources/media/v1/index.ts +5 -0
- package/src/resources/media/v1/transcripts/index.ts +4 -0
- package/src/resources/media/v1/transcripts/search.ts +18 -0
- package/src/resources/media/v1/transcripts/transcripts.ts +15 -0
- package/src/resources/media/v1/transcripts.ts +3 -0
- package/src/resources/media/v1/v1.ts +21 -0
- package/src/resources/media/v1.ts +3 -0
- package/src/resources/media.ts +3 -0
- package/src/resources/ocr/v1.ts +2 -3
- package/src/resources/vault/objects.ts +3 -4
- package/src/resources/vault/vault.ts +2 -1
- 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/worker/index.d.mts +0 -3
- package/resources/worker/index.d.mts.map +0 -1
- package/resources/worker/index.d.ts +0 -3
- package/resources/worker/index.d.ts.map +0 -1
- package/resources/worker/index.js +0 -9
- package/resources/worker/index.js.map +0 -1
- package/resources/worker/index.mjs +0 -4
- package/resources/worker/index.mjs.map +0 -1
- package/resources/worker/v1.d.mts +0 -68
- package/resources/worker/v1.d.mts.map +0 -1
- package/resources/worker/v1.d.ts +0 -68
- package/resources/worker/v1.d.ts.map +0 -1
- package/resources/worker/v1.js +0 -105
- package/resources/worker/v1.js.map +0 -1
- package/resources/worker/v1.mjs +0 -101
- package/resources/worker/v1.mjs.map +0 -1
- package/resources/worker/worker.d.mts +0 -10
- package/resources/worker/worker.d.mts.map +0 -1
- package/resources/worker/worker.d.ts +0 -10
- package/resources/worker/worker.d.ts.map +0 -1
- package/resources/worker/worker.js.map +0 -1
- package/resources/worker/worker.mjs.map +0 -1
- package/resources/worker.d.mts +0 -2
- package/resources/worker.d.mts.map +0 -1
- package/resources/worker.d.ts +0 -2
- package/resources/worker.d.ts.map +0 -1
- package/resources/worker.js.map +0 -1
- package/resources/worker.mjs.map +0 -1
- package/src/resources/worker/index.ts +0 -11
- package/src/resources/worker/v1.ts +0 -142
- 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,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
|
+
}
|
package/src/resources/ocr/v1.ts
CHANGED
|
@@ -28,9 +28,8 @@ export class V1 extends APIResource {
|
|
|
28
28
|
}
|
|
29
29
|
|
|
30
30
|
/**
|
|
31
|
-
* Download OCR processing results in various formats
|
|
32
|
-
*
|
|
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
|
|
121
|
-
*
|
|
122
|
-
*
|
|
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.
|
|
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.
|
|
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.
|
|
1
|
+
export declare const VERSION = "0.67.2";
|
|
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.67.2'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.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 +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 +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,2CAAuC;AAGhE,qBAAa,EAAG,SAAQ,WAAW;IACjC;;;OAGG;IACH,MAAM,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAA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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"}
|
package/resources/worker/v1.d.ts
DELETED
|
@@ -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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C;IAQpG;;;OAGG;IACH,QAAQ,CAAC,UAAU,EAAE,MAAM,EAAE,MAAM,EAAE,gBAAgB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;CAOnG;AAED,MAAM,WAAW,mBAAmB;IAClC,EAAE,EAAE,MAAM,CAAC;CACZ;AAED,MAAM,WAAW,gBAAgB;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"}
|
package/resources/worker/v1.js
DELETED
|
@@ -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;
|
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;SAC7D,CAAC,CAAC;IACL,CAAC;IAED;;;OAGG;IACH,SAAS,CAAC,UAAkB,EAAE,MAAyB,EAAE,OAAwB;QAC/E,MAAM,EAAE,EAAE,EAAE,GAAG,MAAM,CAAC;QACtB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,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"}
|
package/resources/worker/v1.mjs
DELETED
|
@@ -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
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"v1.mjs","sourceRoot":"","sources":["../../src/resources/worker/v1.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,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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"}
|
package/resources/worker.d.mts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"worker.d.mts","sourceRoot":"","sources":["../src/resources/worker.ts"],"names":[],"mappings":"AAEA,mCAA+B"}
|
package/resources/worker.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"worker.d.ts","sourceRoot":"","sources":["../src/resources/worker.ts"],"names":[],"mappings":"AAEA,kCAA+B"}
|
package/resources/worker.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"worker.js","sourceRoot":"","sources":["../src/resources/worker.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,4DAA+B"}
|
package/resources/worker.mjs.map
DELETED
|
@@ -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';
|