@onkernel/sdk 0.1.0-alpha.1 → 0.1.0-alpha.11
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 +84 -0
- package/README.md +34 -45
- package/client.d.mts +28 -6
- package/client.d.mts.map +1 -1
- package/client.d.ts +28 -6
- package/client.d.ts.map +1 -1
- package/client.js +28 -8
- package/client.js.map +1 -1
- package/client.mjs +28 -8
- package/client.mjs.map +1 -1
- package/core/app-framework.d.mts +49 -0
- package/core/app-framework.d.mts.map +1 -0
- package/core/app-framework.d.ts +49 -0
- package/core/app-framework.d.ts.map +1 -0
- package/core/app-framework.js +105 -0
- package/core/app-framework.js.map +1 -0
- package/core/app-framework.mjs +101 -0
- package/core/app-framework.mjs.map +1 -0
- package/index.d.mts +1 -0
- package/index.d.mts.map +1 -1
- package/index.d.ts +1 -0
- package/index.d.ts.map +1 -1
- package/index.js +3 -1
- package/index.js.map +1 -1
- package/index.mjs +1 -0
- package/index.mjs.map +1 -1
- package/internal/headers.js +1 -1
- package/internal/headers.js.map +1 -1
- package/internal/headers.mjs +1 -1
- package/internal/headers.mjs.map +1 -1
- package/internal/tslib.js +17 -17
- package/package.json +1 -4
- package/resources/apps/apps.d.mts +14 -0
- package/resources/apps/apps.d.mts.map +1 -0
- package/resources/apps/apps.d.ts +14 -0
- package/resources/apps/apps.d.ts.map +1 -0
- package/resources/apps/apps.js +21 -0
- package/resources/apps/apps.js.map +1 -0
- package/resources/apps/apps.mjs +16 -0
- package/resources/apps/apps.mjs.map +1 -0
- package/resources/apps/deployments.d.mts +82 -0
- package/resources/apps/deployments.d.mts.map +1 -0
- package/resources/apps/deployments.d.ts +82 -0
- package/resources/apps/deployments.d.ts.map +1 -0
- package/resources/apps/deployments.js +24 -0
- package/resources/apps/deployments.js.map +1 -0
- package/resources/apps/deployments.mjs +20 -0
- package/resources/apps/deployments.mjs.map +1 -0
- package/resources/apps/index.d.mts +4 -0
- package/resources/apps/index.d.mts.map +1 -0
- package/resources/apps/index.d.ts +4 -0
- package/resources/apps/index.d.ts.map +1 -0
- package/resources/apps/index.js +11 -0
- package/resources/apps/index.js.map +1 -0
- package/resources/apps/index.mjs +5 -0
- package/resources/apps/index.mjs.map +1 -0
- package/resources/apps/invocations.d.mts +110 -0
- package/resources/apps/invocations.d.mts.map +1 -0
- package/resources/apps/invocations.d.ts +110 -0
- package/resources/apps/invocations.d.ts.map +1 -0
- package/resources/apps/invocations.js +38 -0
- package/resources/apps/invocations.js.map +1 -0
- package/resources/apps/invocations.mjs +34 -0
- package/resources/apps/invocations.mjs.map +1 -0
- package/resources/apps.d.mts +1 -111
- package/resources/apps.d.mts.map +1 -1
- package/resources/apps.d.ts +1 -111
- package/resources/apps.d.ts.map +1 -1
- package/resources/apps.js +2 -50
- package/resources/apps.js.map +1 -1
- package/resources/apps.mjs +1 -48
- package/resources/apps.mjs.map +1 -1
- package/resources/browsers.d.mts +65 -0
- package/resources/browsers.d.mts.map +1 -0
- package/resources/browsers.d.ts +65 -0
- package/resources/browsers.d.ts.map +1 -0
- package/resources/browsers.js +36 -0
- package/resources/browsers.js.map +1 -0
- package/resources/browsers.mjs +32 -0
- package/resources/browsers.mjs.map +1 -0
- package/resources/index.d.mts +2 -2
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +2 -2
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +4 -4
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +2 -2
- package/resources/index.mjs.map +1 -1
- package/src/client.ts +53 -22
- package/src/core/app-framework.ts +137 -0
- package/src/index.ts +2 -0
- package/src/internal/headers.ts +1 -1
- package/src/resources/apps/apps.ts +35 -0
- package/src/resources/apps/deployments.ts +103 -0
- package/src/resources/apps/index.ts +10 -0
- package/src/resources/apps/invocations.ts +140 -0
- package/src/resources/apps.ts +1 -148
- package/src/resources/browsers.ts +85 -0
- package/src/resources/index.ts +6 -8
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.mts.map +1 -1
- package/version.d.ts +1 -1
- package/version.d.ts.map +1 -1
- package/version.js +1 -1
- package/version.js.map +1 -1
- package/version.mjs +1 -1
- package/version.mjs.map +1 -1
- package/resources/browser.d.mts +0 -27
- package/resources/browser.d.mts.map +0 -1
- package/resources/browser.d.ts +0 -27
- package/resources/browser.d.ts.map +0 -1
- package/resources/browser.js +0 -15
- package/resources/browser.js.map +0 -1
- package/resources/browser.mjs +0 -11
- package/resources/browser.mjs.map +0 -1
- package/src/resources/browser.ts +0 -35
package/src/resources/apps.ts
CHANGED
|
@@ -1,150 +1,3 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
import { APIPromise } from '../core/api-promise';
|
|
5
|
-
import { type Uploadable } from '../core/uploads';
|
|
6
|
-
import { RequestOptions } from '../internal/request-options';
|
|
7
|
-
import { multipartFormRequestOptions } from '../internal/uploads';
|
|
8
|
-
import { path } from '../internal/utils/path';
|
|
9
|
-
|
|
10
|
-
export class Apps extends APIResource {
|
|
11
|
-
/**
|
|
12
|
-
* Deploy a new application
|
|
13
|
-
*
|
|
14
|
-
* @example
|
|
15
|
-
* ```ts
|
|
16
|
-
* const response = await client.apps.deploy({
|
|
17
|
-
* appName: 'my-awesome-app',
|
|
18
|
-
* file: fs.createReadStream('path/to/file'),
|
|
19
|
-
* version: '1.0.0',
|
|
20
|
-
* });
|
|
21
|
-
* ```
|
|
22
|
-
*/
|
|
23
|
-
deploy(body: AppDeployParams, options?: RequestOptions): APIPromise<AppDeployResponse> {
|
|
24
|
-
return this._client.post('/apps/deploy', multipartFormRequestOptions({ body, ...options }, this._client));
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
/**
|
|
28
|
-
* Invoke an application
|
|
29
|
-
*
|
|
30
|
-
* @example
|
|
31
|
-
* ```ts
|
|
32
|
-
* const response = await client.apps.invoke({
|
|
33
|
-
* appName: 'my-awesome-app',
|
|
34
|
-
* payload: '{ "data": "example input" }',
|
|
35
|
-
* version: '1.0.0',
|
|
36
|
-
* });
|
|
37
|
-
* ```
|
|
38
|
-
*/
|
|
39
|
-
invoke(body: AppInvokeParams, options?: RequestOptions): APIPromise<AppInvokeResponse> {
|
|
40
|
-
return this._client.post('/apps/invoke', { body, ...options });
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
/**
|
|
44
|
-
* Get an app invocation by id
|
|
45
|
-
*
|
|
46
|
-
* @example
|
|
47
|
-
* ```ts
|
|
48
|
-
* const response = await client.apps.retrieveInvocation(
|
|
49
|
-
* 'ckqwer3o20000jb9s7abcdef',
|
|
50
|
-
* );
|
|
51
|
-
* ```
|
|
52
|
-
*/
|
|
53
|
-
retrieveInvocation(id: string, options?: RequestOptions): APIPromise<AppRetrieveInvocationResponse> {
|
|
54
|
-
return this._client.get(path`/apps/invocations/${id}`, options);
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
export interface AppDeployResponse {
|
|
59
|
-
/**
|
|
60
|
-
* ID of the deployed app version
|
|
61
|
-
*/
|
|
62
|
-
id: string;
|
|
63
|
-
|
|
64
|
-
/**
|
|
65
|
-
* Success message
|
|
66
|
-
*/
|
|
67
|
-
message: string;
|
|
68
|
-
|
|
69
|
-
/**
|
|
70
|
-
* Status of the deployment
|
|
71
|
-
*/
|
|
72
|
-
success: boolean;
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
export interface AppInvokeResponse {
|
|
76
|
-
/**
|
|
77
|
-
* ID of the invocation
|
|
78
|
-
*/
|
|
79
|
-
id: string;
|
|
80
|
-
|
|
81
|
-
/**
|
|
82
|
-
* Status of the invocation
|
|
83
|
-
*/
|
|
84
|
-
status: string;
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
export interface AppRetrieveInvocationResponse {
|
|
88
|
-
id: string;
|
|
89
|
-
|
|
90
|
-
appName: string;
|
|
91
|
-
|
|
92
|
-
finishedAt: string | null;
|
|
93
|
-
|
|
94
|
-
input: string;
|
|
95
|
-
|
|
96
|
-
output: string;
|
|
97
|
-
|
|
98
|
-
startedAt: string;
|
|
99
|
-
|
|
100
|
-
status: string;
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
export interface AppDeployParams {
|
|
104
|
-
/**
|
|
105
|
-
* Name of the application
|
|
106
|
-
*/
|
|
107
|
-
appName: string;
|
|
108
|
-
|
|
109
|
-
/**
|
|
110
|
-
* ZIP file containing the application
|
|
111
|
-
*/
|
|
112
|
-
file: Uploadable;
|
|
113
|
-
|
|
114
|
-
/**
|
|
115
|
-
* Version of the application
|
|
116
|
-
*/
|
|
117
|
-
version: string;
|
|
118
|
-
|
|
119
|
-
/**
|
|
120
|
-
* AWS region for deployment (e.g. "aws.us-east-1a")
|
|
121
|
-
*/
|
|
122
|
-
region?: string;
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
export interface AppInvokeParams {
|
|
126
|
-
/**
|
|
127
|
-
* Name of the application
|
|
128
|
-
*/
|
|
129
|
-
appName: string;
|
|
130
|
-
|
|
131
|
-
/**
|
|
132
|
-
* Input data for the application
|
|
133
|
-
*/
|
|
134
|
-
payload: unknown;
|
|
135
|
-
|
|
136
|
-
/**
|
|
137
|
-
* Version of the application
|
|
138
|
-
*/
|
|
139
|
-
version: string;
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
export declare namespace Apps {
|
|
143
|
-
export {
|
|
144
|
-
type AppDeployResponse as AppDeployResponse,
|
|
145
|
-
type AppInvokeResponse as AppInvokeResponse,
|
|
146
|
-
type AppRetrieveInvocationResponse as AppRetrieveInvocationResponse,
|
|
147
|
-
type AppDeployParams as AppDeployParams,
|
|
148
|
-
type AppInvokeParams as AppInvokeParams,
|
|
149
|
-
};
|
|
150
|
-
}
|
|
3
|
+
export * from './apps/index';
|
|
@@ -0,0 +1,85 @@
|
|
|
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 { RequestOptions } from '../internal/request-options';
|
|
6
|
+
import { path } from '../internal/utils/path';
|
|
7
|
+
|
|
8
|
+
export class Browsers extends APIResource {
|
|
9
|
+
/**
|
|
10
|
+
* Create Browser Session
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* ```ts
|
|
14
|
+
* const browser = await client.browsers.create({
|
|
15
|
+
* invocation_id: 'ckqwer3o20000jb9s7abcdef',
|
|
16
|
+
* });
|
|
17
|
+
* ```
|
|
18
|
+
*/
|
|
19
|
+
create(body: BrowserCreateParams, options?: RequestOptions): APIPromise<BrowserCreateResponse> {
|
|
20
|
+
return this._client.post('/browsers', { body, ...options });
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* Get Browser Session by ID
|
|
25
|
+
*
|
|
26
|
+
* @example
|
|
27
|
+
* ```ts
|
|
28
|
+
* const browser = await client.browsers.retrieve(
|
|
29
|
+
* 'e5bf36fe-9247-4e2b-8b5a-2f594cc1c073',
|
|
30
|
+
* );
|
|
31
|
+
* ```
|
|
32
|
+
*/
|
|
33
|
+
retrieve(id: string, options?: RequestOptions): APIPromise<BrowserRetrieveResponse> {
|
|
34
|
+
return this._client.get(path`/browsers/${id}`, options);
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export interface BrowserCreateResponse {
|
|
39
|
+
/**
|
|
40
|
+
* Remote URL for live viewing the browser session
|
|
41
|
+
*/
|
|
42
|
+
browser_live_view_url: string;
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* Websocket URL for Chrome DevTools Protocol connections to the browser session
|
|
46
|
+
*/
|
|
47
|
+
cdp_ws_url: string;
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* Unique identifier for the browser session
|
|
51
|
+
*/
|
|
52
|
+
session_id: string;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export interface BrowserRetrieveResponse {
|
|
56
|
+
/**
|
|
57
|
+
* Remote URL for live viewing the browser session
|
|
58
|
+
*/
|
|
59
|
+
browser_live_view_url: string;
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* Websocket URL for Chrome DevTools Protocol connections to the browser session
|
|
63
|
+
*/
|
|
64
|
+
cdp_ws_url: string;
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* Unique identifier for the browser session
|
|
68
|
+
*/
|
|
69
|
+
session_id: string;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export interface BrowserCreateParams {
|
|
73
|
+
/**
|
|
74
|
+
* action invocation ID
|
|
75
|
+
*/
|
|
76
|
+
invocation_id: string;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export declare namespace Browsers {
|
|
80
|
+
export {
|
|
81
|
+
type BrowserCreateResponse as BrowserCreateResponse,
|
|
82
|
+
type BrowserRetrieveResponse as BrowserRetrieveResponse,
|
|
83
|
+
type BrowserCreateParams as BrowserCreateParams,
|
|
84
|
+
};
|
|
85
|
+
}
|
package/src/resources/index.ts
CHANGED
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
+
export { Apps } from './apps/apps';
|
|
3
4
|
export {
|
|
4
|
-
|
|
5
|
-
type
|
|
6
|
-
type
|
|
7
|
-
type
|
|
8
|
-
|
|
9
|
-
type AppInvokeParams,
|
|
10
|
-
} from './apps';
|
|
11
|
-
export { Browser, type BrowserCreateSessionResponse } from './browser';
|
|
5
|
+
Browsers,
|
|
6
|
+
type BrowserCreateResponse,
|
|
7
|
+
type BrowserRetrieveResponse,
|
|
8
|
+
type BrowserCreateParams,
|
|
9
|
+
} from './browsers';
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '0.1.0-alpha.
|
|
1
|
+
export const VERSION = '0.1.0-alpha.11'; // x-release-please-version
|
package/version.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.1.0-alpha.
|
|
1
|
+
export declare const VERSION = "0.1.0-alpha.11";
|
|
2
2
|
//# sourceMappingURL=version.d.mts.map
|
package/version.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.d.mts","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO,
|
|
1
|
+
{"version":3,"file":"version.d.mts","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO,mBAAmB,CAAC"}
|
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.1.0-alpha.
|
|
1
|
+
export declare const VERSION = "0.1.0-alpha.11";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/version.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.d.ts","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO,
|
|
1
|
+
{"version":3,"file":"version.d.ts","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO,mBAAmB,CAAC"}
|
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.1.0-alpha.
|
|
4
|
+
exports.VERSION = '0.1.0-alpha.11'; // x-release-please-version
|
|
5
5
|
//# sourceMappingURL=version.js.map
|
package/version.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.js","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":";;;AAAa,QAAA,OAAO,GAAG,
|
|
1
|
+
{"version":3,"file":"version.js","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":";;;AAAa,QAAA,OAAO,GAAG,gBAAgB,CAAC,CAAC,2BAA2B"}
|
package/version.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '0.1.0-alpha.
|
|
1
|
+
export const VERSION = '0.1.0-alpha.11'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|
package/version.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.mjs","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,OAAO,GAAG,
|
|
1
|
+
{"version":3,"file":"version.mjs","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,OAAO,GAAG,gBAAgB,CAAC,CAAC,2BAA2B"}
|
package/resources/browser.d.mts
DELETED
|
@@ -1,27 +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 Browser extends APIResource {
|
|
5
|
-
/**
|
|
6
|
-
* Create Browser Session
|
|
7
|
-
*/
|
|
8
|
-
createSession(options?: RequestOptions): APIPromise<BrowserCreateSessionResponse>;
|
|
9
|
-
}
|
|
10
|
-
export interface BrowserCreateSessionResponse {
|
|
11
|
-
/**
|
|
12
|
-
* Websocket URL for Chrome DevTools Protocol connections to the browser session
|
|
13
|
-
*/
|
|
14
|
-
cdp_ws_url: string;
|
|
15
|
-
/**
|
|
16
|
-
* Remote URL for live viewing the browser session
|
|
17
|
-
*/
|
|
18
|
-
remote_url: string;
|
|
19
|
-
/**
|
|
20
|
-
* Unique identifier for the browser session
|
|
21
|
-
*/
|
|
22
|
-
sessionId: string;
|
|
23
|
-
}
|
|
24
|
-
export declare namespace Browser {
|
|
25
|
-
export { type BrowserCreateSessionResponse as BrowserCreateSessionResponse };
|
|
26
|
-
}
|
|
27
|
-
//# sourceMappingURL=browser.d.mts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"browser.d.mts","sourceRoot":"","sources":["../src/resources/browser.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,OAAQ,SAAQ,WAAW;IACtC;;OAEG;IACH,aAAa,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,4BAA4B,CAAC;CAGlF;AAED,MAAM,WAAW,4BAA4B;IAC3C;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,CAAC,OAAO,WAAW,OAAO,CAAC;IAC/B,OAAO,EAAE,KAAK,4BAA4B,IAAI,4BAA4B,EAAE,CAAC;CAC9E"}
|
package/resources/browser.d.ts
DELETED
|
@@ -1,27 +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 Browser extends APIResource {
|
|
5
|
-
/**
|
|
6
|
-
* Create Browser Session
|
|
7
|
-
*/
|
|
8
|
-
createSession(options?: RequestOptions): APIPromise<BrowserCreateSessionResponse>;
|
|
9
|
-
}
|
|
10
|
-
export interface BrowserCreateSessionResponse {
|
|
11
|
-
/**
|
|
12
|
-
* Websocket URL for Chrome DevTools Protocol connections to the browser session
|
|
13
|
-
*/
|
|
14
|
-
cdp_ws_url: string;
|
|
15
|
-
/**
|
|
16
|
-
* Remote URL for live viewing the browser session
|
|
17
|
-
*/
|
|
18
|
-
remote_url: string;
|
|
19
|
-
/**
|
|
20
|
-
* Unique identifier for the browser session
|
|
21
|
-
*/
|
|
22
|
-
sessionId: string;
|
|
23
|
-
}
|
|
24
|
-
export declare namespace Browser {
|
|
25
|
-
export { type BrowserCreateSessionResponse as BrowserCreateSessionResponse };
|
|
26
|
-
}
|
|
27
|
-
//# sourceMappingURL=browser.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"browser.d.ts","sourceRoot":"","sources":["../src/resources/browser.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,OAAQ,SAAQ,WAAW;IACtC;;OAEG;IACH,aAAa,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,4BAA4B,CAAC;CAGlF;AAED,MAAM,WAAW,4BAA4B;IAC3C;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,CAAC,OAAO,WAAW,OAAO,CAAC;IAC/B,OAAO,EAAE,KAAK,4BAA4B,IAAI,4BAA4B,EAAE,CAAC;CAC9E"}
|
package/resources/browser.js
DELETED
|
@@ -1,15 +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.Browser = void 0;
|
|
5
|
-
const resource_1 = require("../core/resource.js");
|
|
6
|
-
class Browser extends resource_1.APIResource {
|
|
7
|
-
/**
|
|
8
|
-
* Create Browser Session
|
|
9
|
-
*/
|
|
10
|
-
createSession(options) {
|
|
11
|
-
return this._client.post('/browser', options);
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
exports.Browser = Browser;
|
|
15
|
-
//# sourceMappingURL=browser.js.map
|
package/resources/browser.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"browser.js","sourceRoot":"","sources":["../src/resources/browser.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAI/C,MAAa,OAAQ,SAAQ,sBAAW;IACtC;;OAEG;IACH,aAAa,CAAC,OAAwB;QACpC,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,UAAU,EAAE,OAAO,CAAC,CAAC;IAChD,CAAC;CACF;AAPD,0BAOC"}
|
package/resources/browser.mjs
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
import { APIResource } from "../core/resource.mjs";
|
|
3
|
-
export class Browser extends APIResource {
|
|
4
|
-
/**
|
|
5
|
-
* Create Browser Session
|
|
6
|
-
*/
|
|
7
|
-
createSession(options) {
|
|
8
|
-
return this._client.post('/browser', options);
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
//# sourceMappingURL=browser.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"browser.mjs","sourceRoot":"","sources":["../src/resources/browser.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAItB,MAAM,OAAO,OAAQ,SAAQ,WAAW;IACtC;;OAEG;IACH,aAAa,CAAC,OAAwB;QACpC,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,UAAU,EAAE,OAAO,CAAC,CAAC;IAChD,CAAC;CACF"}
|
package/src/resources/browser.ts
DELETED
|
@@ -1,35 +0,0 @@
|
|
|
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 { RequestOptions } from '../internal/request-options';
|
|
6
|
-
|
|
7
|
-
export class Browser extends APIResource {
|
|
8
|
-
/**
|
|
9
|
-
* Create Browser Session
|
|
10
|
-
*/
|
|
11
|
-
createSession(options?: RequestOptions): APIPromise<BrowserCreateSessionResponse> {
|
|
12
|
-
return this._client.post('/browser', options);
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
export interface BrowserCreateSessionResponse {
|
|
17
|
-
/**
|
|
18
|
-
* Websocket URL for Chrome DevTools Protocol connections to the browser session
|
|
19
|
-
*/
|
|
20
|
-
cdp_ws_url: string;
|
|
21
|
-
|
|
22
|
-
/**
|
|
23
|
-
* Remote URL for live viewing the browser session
|
|
24
|
-
*/
|
|
25
|
-
remote_url: string;
|
|
26
|
-
|
|
27
|
-
/**
|
|
28
|
-
* Unique identifier for the browser session
|
|
29
|
-
*/
|
|
30
|
-
sessionId: string;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
export declare namespace Browser {
|
|
34
|
-
export { type BrowserCreateSessionResponse as BrowserCreateSessionResponse };
|
|
35
|
-
}
|