@onkernel/sdk 0.1.0-alpha.9 → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +72 -0
- package/README.md +42 -29
- package/client.d.mts +5 -5
- package/client.d.mts.map +1 -1
- package/client.d.ts +5 -5
- package/client.d.ts.map +1 -1
- package/client.js +4 -4
- package/client.js.map +1 -1
- package/client.mjs +4 -4
- package/client.mjs.map +1 -1
- package/core/app-framework.d.mts +3 -3
- package/core/app-framework.d.mts.map +1 -1
- package/core/app-framework.d.ts +3 -3
- package/core/app-framework.d.ts.map +1 -1
- package/core/app-framework.js +14 -31
- package/core/app-framework.js.map +1 -1
- package/core/app-framework.mjs +14 -31
- package/core/app-framework.mjs.map +1 -1
- package/core/streaming.d.mts +31 -0
- package/core/streaming.d.mts.map +1 -0
- package/core/streaming.d.ts +31 -0
- package/core/streaming.d.ts.map +1 -0
- package/core/streaming.js +257 -0
- package/core/streaming.js.map +1 -0
- package/core/streaming.mjs +252 -0
- package/core/streaming.mjs.map +1 -0
- package/internal/decoders/line.d.mts +17 -0
- package/internal/decoders/line.d.mts.map +1 -0
- package/internal/decoders/line.d.ts +17 -0
- package/internal/decoders/line.d.ts.map +1 -0
- package/internal/decoders/line.js +113 -0
- package/internal/decoders/line.js.map +1 -0
- package/internal/decoders/line.mjs +108 -0
- package/internal/decoders/line.mjs.map +1 -0
- package/internal/parse.d.mts.map +1 -1
- package/internal/parse.d.ts.map +1 -1
- package/internal/parse.js +10 -0
- package/internal/parse.js.map +1 -1
- package/internal/parse.mjs +10 -0
- package/internal/parse.mjs.map +1 -1
- package/internal/request-options.d.mts +2 -0
- package/internal/request-options.d.mts.map +1 -1
- package/internal/request-options.d.ts +2 -0
- package/internal/request-options.d.ts.map +1 -1
- package/internal/request-options.js.map +1 -1
- package/internal/request-options.mjs.map +1 -1
- package/package.json +11 -4
- package/resources/apps/apps.d.mts +65 -0
- package/resources/apps/apps.d.mts.map +1 -0
- package/resources/apps/apps.d.ts +65 -0
- package/resources/apps/apps.d.ts.map +1 -0
- package/resources/apps/apps.js +33 -0
- package/resources/apps/apps.js.map +1 -0
- package/resources/apps/apps.mjs +28 -0
- package/resources/apps/apps.mjs.map +1 -0
- package/resources/apps/deployments.d.mts +157 -0
- package/resources/apps/deployments.d.mts.map +1 -0
- package/resources/apps/deployments.d.ts +157 -0
- package/resources/apps/deployments.d.ts.map +1 -0
- package/resources/apps/deployments.js +43 -0
- package/resources/apps/deployments.js.map +1 -0
- package/resources/apps/deployments.mjs +39 -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 -140
- package/resources/apps.d.mts.map +1 -1
- package/resources/apps.d.ts +1 -140
- package/resources/apps.d.ts.map +1 -1
- package/resources/apps.js +2 -49
- package/resources/apps.js.map +1 -1
- package/resources/apps.mjs +1 -47
- 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 +13 -21
- package/src/core/app-framework.ts +19 -36
- package/src/core/streaming.ts +301 -0
- package/src/internal/decoders/line.ts +135 -0
- package/src/internal/parse.ts +14 -0
- package/src/internal/request-options.ts +2 -0
- package/src/resources/apps/apps.ts +104 -0
- package/src/resources/apps/deployments.ts +202 -0
- package/src/resources/apps/index.ts +15 -0
- package/src/resources/apps/invocations.ts +140 -0
- package/src/resources/apps.ts +1 -184
- package/src/resources/browsers.ts +85 -0
- package/src/resources/index.ts +6 -8
- package/src/streaming.ts +2 -0
- package/src/version.ts +1 -1
- package/streaming.d.mts +2 -0
- package/streaming.d.mts.map +1 -0
- package/streaming.d.ts +2 -0
- package/streaming.d.ts.map +1 -0
- package/streaming.js +6 -0
- package/streaming.js.map +1 -0
- package/streaming.mjs +2 -0
- package/streaming.mjs.map +1 -0
- 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 -33
- package/resources/browser.d.mts.map +0 -1
- package/resources/browser.d.ts +0 -33
- 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 -48
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.1.0
|
|
1
|
+
export declare const VERSION = "0.1.0";
|
|
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,UAAU,CAAC"}
|
package/version.js
CHANGED
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,OAAO,CAAC,CAAC,2BAA2B"}
|
package/version.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '0.1.0
|
|
1
|
+
export const VERSION = '0.1.0'; // 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,OAAO,CAAC,CAAC,2BAA2B"}
|
package/resources/browser.d.mts
DELETED
|
@@ -1,33 +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(body: BrowserCreateSessionParams, 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 interface BrowserCreateSessionParams {
|
|
25
|
-
/**
|
|
26
|
-
* Kernel App invocation ID
|
|
27
|
-
*/
|
|
28
|
-
invocationId: string;
|
|
29
|
-
}
|
|
30
|
-
export declare namespace Browser {
|
|
31
|
-
export { type BrowserCreateSessionResponse as BrowserCreateSessionResponse, type BrowserCreateSessionParams as BrowserCreateSessionParams, };
|
|
32
|
-
}
|
|
33
|
-
//# 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,CACX,IAAI,EAAE,0BAA0B,EAChC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,4BAA4B,CAAC;CAG5C;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,WAAW,0BAA0B;IACzC;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,CAAC,OAAO,WAAW,OAAO,CAAC;IAC/B,OAAO,EACL,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,0BAA0B,IAAI,0BAA0B,GAC9D,CAAC;CACH"}
|
package/resources/browser.d.ts
DELETED
|
@@ -1,33 +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(body: BrowserCreateSessionParams, 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 interface BrowserCreateSessionParams {
|
|
25
|
-
/**
|
|
26
|
-
* Kernel App invocation ID
|
|
27
|
-
*/
|
|
28
|
-
invocationId: string;
|
|
29
|
-
}
|
|
30
|
-
export declare namespace Browser {
|
|
31
|
-
export { type BrowserCreateSessionResponse as BrowserCreateSessionResponse, type BrowserCreateSessionParams as BrowserCreateSessionParams, };
|
|
32
|
-
}
|
|
33
|
-
//# 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,CACX,IAAI,EAAE,0BAA0B,EAChC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,4BAA4B,CAAC;CAG5C;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,WAAW,0BAA0B;IACzC;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,CAAC,OAAO,WAAW,OAAO,CAAC;IAC/B,OAAO,EACL,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,0BAA0B,IAAI,0BAA0B,GAC9D,CAAC;CACH"}
|
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(body, options) {
|
|
11
|
-
return this._client.post('/browser', { body, ...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,CACX,IAAgC,EAChC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,UAAU,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC7D,CAAC;CACF;AAVD,0BAUC"}
|
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(body, options) {
|
|
8
|
-
return this._client.post('/browser', { body, ...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,CACX,IAAgC,EAChC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,UAAU,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC7D,CAAC;CACF"}
|
package/src/resources/browser.ts
DELETED
|
@@ -1,48 +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(
|
|
12
|
-
body: BrowserCreateSessionParams,
|
|
13
|
-
options?: RequestOptions,
|
|
14
|
-
): APIPromise<BrowserCreateSessionResponse> {
|
|
15
|
-
return this._client.post('/browser', { body, ...options });
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
export interface BrowserCreateSessionResponse {
|
|
20
|
-
/**
|
|
21
|
-
* Websocket URL for Chrome DevTools Protocol connections to the browser session
|
|
22
|
-
*/
|
|
23
|
-
cdp_ws_url: string;
|
|
24
|
-
|
|
25
|
-
/**
|
|
26
|
-
* Remote URL for live viewing the browser session
|
|
27
|
-
*/
|
|
28
|
-
remote_url: string;
|
|
29
|
-
|
|
30
|
-
/**
|
|
31
|
-
* Unique identifier for the browser session
|
|
32
|
-
*/
|
|
33
|
-
sessionId: string;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
export interface BrowserCreateSessionParams {
|
|
37
|
-
/**
|
|
38
|
-
* Kernel App invocation ID
|
|
39
|
-
*/
|
|
40
|
-
invocationId: string;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
export declare namespace Browser {
|
|
44
|
-
export {
|
|
45
|
-
type BrowserCreateSessionResponse as BrowserCreateSessionResponse,
|
|
46
|
-
type BrowserCreateSessionParams as BrowserCreateSessionParams,
|
|
47
|
-
};
|
|
48
|
-
}
|