@onkernel/sdk 0.28.0 → 0.30.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 +31 -0
- package/client.d.mts +2 -2
- package/client.d.mts.map +1 -1
- package/client.d.ts +2 -2
- package/client.d.ts.map +1 -1
- package/client.js +3 -2
- package/client.js.map +1 -1
- package/client.mjs +3 -2
- package/client.mjs.map +1 -1
- package/internal/parse.d.mts.map +1 -1
- package/internal/parse.d.ts.map +1 -1
- package/internal/parse.js +5 -0
- package/internal/parse.js.map +1 -1
- package/internal/parse.mjs +5 -0
- package/internal/parse.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/browser-pools.d.mts +8 -8
- package/resources/browser-pools.d.ts +8 -8
- package/resources/browsers/browsers.d.mts +10 -10
- package/resources/browsers/browsers.d.ts +10 -10
- 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.map +1 -1
- package/resources/index.mjs.map +1 -1
- package/resources/invocations.d.mts +81 -1
- package/resources/invocations.d.mts.map +1 -1
- package/resources/invocations.d.ts +81 -1
- package/resources/invocations.d.ts.map +1 -1
- package/resources/invocations.js +13 -0
- package/resources/invocations.js.map +1 -1
- package/resources/invocations.mjs +13 -0
- package/resources/invocations.mjs.map +1 -1
- package/resources/shared.d.mts +2 -2
- package/resources/shared.d.ts +2 -2
- package/src/client.ts +5 -2
- package/src/internal/parse.ts +6 -0
- package/src/resources/browser-pools.ts +8 -8
- package/src/resources/browsers/browsers.ts +10 -10
- package/src/resources/index.ts +1 -0
- package/src/resources/invocations.ts +98 -0
- package/src/resources/shared.ts +2 -2
- 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
|
@@ -195,8 +195,8 @@ export interface BrowserCreateResponse {
|
|
|
195
195
|
* image defaults apply (1920x1080@25). Only specific viewport configurations are
|
|
196
196
|
* supported. The server will reject unsupported combinations. Supported
|
|
197
197
|
* resolutions are: 2560x1440@10, 1920x1080@25, 1920x1200@25, 1440x900@25,
|
|
198
|
-
* 1024x768@60, 1200x800@60 If refresh_rate is not provided, it will
|
|
199
|
-
* automatically determined from the width and height if they match a supported
|
|
198
|
+
* 1280x800@60, 1024x768@60, 1200x800@60 If refresh_rate is not provided, it will
|
|
199
|
+
* be automatically determined from the width and height if they match a supported
|
|
200
200
|
* configuration exactly. Note: Higher resolutions may affect the responsiveness of
|
|
201
201
|
* live view browser
|
|
202
202
|
*/
|
|
@@ -258,8 +258,8 @@ export interface BrowserRetrieveResponse {
|
|
|
258
258
|
* image defaults apply (1920x1080@25). Only specific viewport configurations are
|
|
259
259
|
* supported. The server will reject unsupported combinations. Supported
|
|
260
260
|
* resolutions are: 2560x1440@10, 1920x1080@25, 1920x1200@25, 1440x900@25,
|
|
261
|
-
* 1024x768@60, 1200x800@60 If refresh_rate is not provided, it will
|
|
262
|
-
* automatically determined from the width and height if they match a supported
|
|
261
|
+
* 1280x800@60, 1024x768@60, 1200x800@60 If refresh_rate is not provided, it will
|
|
262
|
+
* be automatically determined from the width and height if they match a supported
|
|
263
263
|
* configuration exactly. Note: Higher resolutions may affect the responsiveness of
|
|
264
264
|
* live view browser
|
|
265
265
|
*/
|
|
@@ -321,8 +321,8 @@ export interface BrowserUpdateResponse {
|
|
|
321
321
|
* image defaults apply (1920x1080@25). Only specific viewport configurations are
|
|
322
322
|
* supported. The server will reject unsupported combinations. Supported
|
|
323
323
|
* resolutions are: 2560x1440@10, 1920x1080@25, 1920x1200@25, 1440x900@25,
|
|
324
|
-
* 1024x768@60, 1200x800@60 If refresh_rate is not provided, it will
|
|
325
|
-
* automatically determined from the width and height if they match a supported
|
|
324
|
+
* 1280x800@60, 1024x768@60, 1200x800@60 If refresh_rate is not provided, it will
|
|
325
|
+
* be automatically determined from the width and height if they match a supported
|
|
326
326
|
* configuration exactly. Note: Higher resolutions may affect the responsiveness of
|
|
327
327
|
* live view browser
|
|
328
328
|
*/
|
|
@@ -384,8 +384,8 @@ export interface BrowserListResponse {
|
|
|
384
384
|
* image defaults apply (1920x1080@25). Only specific viewport configurations are
|
|
385
385
|
* supported. The server will reject unsupported combinations. Supported
|
|
386
386
|
* resolutions are: 2560x1440@10, 1920x1080@25, 1920x1200@25, 1440x900@25,
|
|
387
|
-
* 1024x768@60, 1200x800@60 If refresh_rate is not provided, it will
|
|
388
|
-
* automatically determined from the width and height if they match a supported
|
|
387
|
+
* 1280x800@60, 1024x768@60, 1200x800@60 If refresh_rate is not provided, it will
|
|
388
|
+
* be automatically determined from the width and height if they match a supported
|
|
389
389
|
* configuration exactly. Note: Higher resolutions may affect the responsiveness of
|
|
390
390
|
* live view browser
|
|
391
391
|
*/
|
|
@@ -444,8 +444,8 @@ export interface BrowserCreateParams {
|
|
|
444
444
|
* image defaults apply (1920x1080@25). Only specific viewport configurations are
|
|
445
445
|
* supported. The server will reject unsupported combinations. Supported
|
|
446
446
|
* resolutions are: 2560x1440@10, 1920x1080@25, 1920x1200@25, 1440x900@25,
|
|
447
|
-
* 1024x768@60, 1200x800@60 If refresh_rate is not provided, it will
|
|
448
|
-
* automatically determined from the width and height if they match a supported
|
|
447
|
+
* 1280x800@60, 1024x768@60, 1200x800@60 If refresh_rate is not provided, it will
|
|
448
|
+
* be automatically determined from the width and height if they match a supported
|
|
449
449
|
* configuration exactly. Note: Higher resolutions may affect the responsiveness of
|
|
450
450
|
* live view browser
|
|
451
451
|
*/
|
|
@@ -195,8 +195,8 @@ export interface BrowserCreateResponse {
|
|
|
195
195
|
* image defaults apply (1920x1080@25). Only specific viewport configurations are
|
|
196
196
|
* supported. The server will reject unsupported combinations. Supported
|
|
197
197
|
* resolutions are: 2560x1440@10, 1920x1080@25, 1920x1200@25, 1440x900@25,
|
|
198
|
-
* 1024x768@60, 1200x800@60 If refresh_rate is not provided, it will
|
|
199
|
-
* automatically determined from the width and height if they match a supported
|
|
198
|
+
* 1280x800@60, 1024x768@60, 1200x800@60 If refresh_rate is not provided, it will
|
|
199
|
+
* be automatically determined from the width and height if they match a supported
|
|
200
200
|
* configuration exactly. Note: Higher resolutions may affect the responsiveness of
|
|
201
201
|
* live view browser
|
|
202
202
|
*/
|
|
@@ -258,8 +258,8 @@ export interface BrowserRetrieveResponse {
|
|
|
258
258
|
* image defaults apply (1920x1080@25). Only specific viewport configurations are
|
|
259
259
|
* supported. The server will reject unsupported combinations. Supported
|
|
260
260
|
* resolutions are: 2560x1440@10, 1920x1080@25, 1920x1200@25, 1440x900@25,
|
|
261
|
-
* 1024x768@60, 1200x800@60 If refresh_rate is not provided, it will
|
|
262
|
-
* automatically determined from the width and height if they match a supported
|
|
261
|
+
* 1280x800@60, 1024x768@60, 1200x800@60 If refresh_rate is not provided, it will
|
|
262
|
+
* be automatically determined from the width and height if they match a supported
|
|
263
263
|
* configuration exactly. Note: Higher resolutions may affect the responsiveness of
|
|
264
264
|
* live view browser
|
|
265
265
|
*/
|
|
@@ -321,8 +321,8 @@ export interface BrowserUpdateResponse {
|
|
|
321
321
|
* image defaults apply (1920x1080@25). Only specific viewport configurations are
|
|
322
322
|
* supported. The server will reject unsupported combinations. Supported
|
|
323
323
|
* resolutions are: 2560x1440@10, 1920x1080@25, 1920x1200@25, 1440x900@25,
|
|
324
|
-
* 1024x768@60, 1200x800@60 If refresh_rate is not provided, it will
|
|
325
|
-
* automatically determined from the width and height if they match a supported
|
|
324
|
+
* 1280x800@60, 1024x768@60, 1200x800@60 If refresh_rate is not provided, it will
|
|
325
|
+
* be automatically determined from the width and height if they match a supported
|
|
326
326
|
* configuration exactly. Note: Higher resolutions may affect the responsiveness of
|
|
327
327
|
* live view browser
|
|
328
328
|
*/
|
|
@@ -384,8 +384,8 @@ export interface BrowserListResponse {
|
|
|
384
384
|
* image defaults apply (1920x1080@25). Only specific viewport configurations are
|
|
385
385
|
* supported. The server will reject unsupported combinations. Supported
|
|
386
386
|
* resolutions are: 2560x1440@10, 1920x1080@25, 1920x1200@25, 1440x900@25,
|
|
387
|
-
* 1024x768@60, 1200x800@60 If refresh_rate is not provided, it will
|
|
388
|
-
* automatically determined from the width and height if they match a supported
|
|
387
|
+
* 1280x800@60, 1024x768@60, 1200x800@60 If refresh_rate is not provided, it will
|
|
388
|
+
* be automatically determined from the width and height if they match a supported
|
|
389
389
|
* configuration exactly. Note: Higher resolutions may affect the responsiveness of
|
|
390
390
|
* live view browser
|
|
391
391
|
*/
|
|
@@ -444,8 +444,8 @@ export interface BrowserCreateParams {
|
|
|
444
444
|
* image defaults apply (1920x1080@25). Only specific viewport configurations are
|
|
445
445
|
* supported. The server will reject unsupported combinations. Supported
|
|
446
446
|
* resolutions are: 2560x1440@10, 1920x1080@25, 1920x1200@25, 1440x900@25,
|
|
447
|
-
* 1024x768@60, 1200x800@60 If refresh_rate is not provided, it will
|
|
448
|
-
* automatically determined from the width and height if they match a supported
|
|
447
|
+
* 1280x800@60, 1024x768@60, 1200x800@60 If refresh_rate is not provided, it will
|
|
448
|
+
* be automatically determined from the width and height if they match a supported
|
|
449
449
|
* configuration exactly. Note: Higher resolutions may affect the responsiveness of
|
|
450
450
|
* live view browser
|
|
451
451
|
*/
|
package/resources/index.d.mts
CHANGED
|
@@ -7,7 +7,7 @@ export { CredentialProviders, type CreateCredentialProviderRequest, type Credent
|
|
|
7
7
|
export { Credentials, type CreateCredentialRequest, type Credential, type UpdateCredentialRequest, type CredentialTotpCodeResponse, type CredentialCreateParams, type CredentialUpdateParams, type CredentialListParams, type CredentialsOffsetPagination, } from "./credentials.mjs";
|
|
8
8
|
export { Deployments, type DeploymentStateEvent, type DeploymentCreateResponse, type DeploymentRetrieveResponse, type DeploymentListResponse, type DeploymentFollowResponse, type DeploymentCreateParams, type DeploymentListParams, type DeploymentFollowParams, type DeploymentListResponsesOffsetPagination, } from "./deployments.mjs";
|
|
9
9
|
export { Extensions, type ExtensionListResponse, type ExtensionUploadResponse, type ExtensionDownloadFromChromeStoreParams, type ExtensionUploadParams, } from "./extensions.mjs";
|
|
10
|
-
export { Invocations, type InvocationStateEvent, type InvocationCreateResponse, type InvocationRetrieveResponse, type InvocationUpdateResponse, type InvocationListResponse, type InvocationFollowResponse, type InvocationCreateParams, type InvocationUpdateParams, type InvocationListParams, type InvocationFollowParams, type InvocationListResponsesOffsetPagination, } from "./invocations.mjs";
|
|
10
|
+
export { Invocations, type InvocationStateEvent, type InvocationCreateResponse, type InvocationRetrieveResponse, type InvocationUpdateResponse, type InvocationListResponse, type InvocationFollowResponse, type InvocationListBrowsersResponse, type InvocationCreateParams, type InvocationUpdateParams, type InvocationListParams, type InvocationFollowParams, type InvocationListResponsesOffsetPagination, } from "./invocations.mjs";
|
|
11
11
|
export { Profiles, type ProfileListResponse, type ProfileCreateParams } from "./profiles.mjs";
|
|
12
12
|
export { Proxies, type ProxyCreateResponse, type ProxyRetrieveResponse, type ProxyListResponse, type ProxyCheckResponse, type ProxyCreateParams, } from "./proxies.mjs";
|
|
13
13
|
//# sourceMappingURL=index.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":";OAGO,EAAE,MAAM,EAAE;OACV,EACL,IAAI,EACJ,KAAK,eAAe,EACpB,KAAK,aAAa,EAClB,KAAK,gCAAgC,GACtC;OACM,EACL,YAAY,EACZ,KAAK,WAAW,EAChB,KAAK,uBAAuB,EAC5B,KAAK,0BAA0B,EAC/B,KAAK,uBAAuB,EAC5B,KAAK,uBAAuB,EAC5B,KAAK,uBAAuB,EAC5B,KAAK,wBAAwB,EAC7B,KAAK,wBAAwB,GAC9B;OACM,EACL,QAAQ,EACR,KAAK,kBAAkB,EACvB,KAAK,OAAO,EACZ,KAAK,qBAAqB,EAC1B,KAAK,uBAAuB,EAC5B,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,EACxB,KAAK,qBAAqB,EAC1B,KAA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,EACV,KAAK,qBAAqB,EAC1B,KAAK,uBAAuB,EAC5B,KAAK,sCAAsC,EAC3C,KAAK,qBAAqB,GAC3B;OACM,EACL,WAAW,EACX,KAAK,oBAAoB,EACzB,KAAK,wBAAwB,EAC7B,KAAK,0BAA0B,EAC/B,KAAK,wBAAwB,EAC7B,KAAK,sBAAsB,EAC3B,KAAK,wBAAwB,EAC7B,KAAK,8BAA8B,EACnC,KAAK,sBAAsB,EAC3B,KAAK,sBAAsB,EAC3B,KAAK,oBAAoB,EACzB,KAAK,sBAAsB,EAC3B,KAAK,uCAAuC,GAC7C;OACM,EAAE,QAAQ,EAAE,KAAK,mBAAmB,EAAE,KAAK,mBAAmB,EAAE;OAChE,EACL,OAAO,EACP,KAAK,mBAAmB,EACxB,KAAK,qBAAqB,EAC1B,KAAK,iBAAiB,EACtB,KAAK,kBAAkB,EACvB,KAAK,iBAAiB,GACvB"}
|
package/resources/index.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ export { CredentialProviders, type CreateCredentialProviderRequest, type Credent
|
|
|
7
7
|
export { Credentials, type CreateCredentialRequest, type Credential, type UpdateCredentialRequest, type CredentialTotpCodeResponse, type CredentialCreateParams, type CredentialUpdateParams, type CredentialListParams, type CredentialsOffsetPagination, } from "./credentials.js";
|
|
8
8
|
export { Deployments, type DeploymentStateEvent, type DeploymentCreateResponse, type DeploymentRetrieveResponse, type DeploymentListResponse, type DeploymentFollowResponse, type DeploymentCreateParams, type DeploymentListParams, type DeploymentFollowParams, type DeploymentListResponsesOffsetPagination, } from "./deployments.js";
|
|
9
9
|
export { Extensions, type ExtensionListResponse, type ExtensionUploadResponse, type ExtensionDownloadFromChromeStoreParams, type ExtensionUploadParams, } from "./extensions.js";
|
|
10
|
-
export { Invocations, type InvocationStateEvent, type InvocationCreateResponse, type InvocationRetrieveResponse, type InvocationUpdateResponse, type InvocationListResponse, type InvocationFollowResponse, type InvocationCreateParams, type InvocationUpdateParams, type InvocationListParams, type InvocationFollowParams, type InvocationListResponsesOffsetPagination, } from "./invocations.js";
|
|
10
|
+
export { Invocations, type InvocationStateEvent, type InvocationCreateResponse, type InvocationRetrieveResponse, type InvocationUpdateResponse, type InvocationListResponse, type InvocationFollowResponse, type InvocationListBrowsersResponse, type InvocationCreateParams, type InvocationUpdateParams, type InvocationListParams, type InvocationFollowParams, type InvocationListResponsesOffsetPagination, } from "./invocations.js";
|
|
11
11
|
export { Profiles, type ProfileListResponse, type ProfileCreateParams } from "./profiles.js";
|
|
12
12
|
export { Proxies, type ProxyCreateResponse, type ProxyRetrieveResponse, type ProxyListResponse, type ProxyCheckResponse, type ProxyCreateParams, } from "./proxies.js";
|
|
13
13
|
//# sourceMappingURL=index.d.ts.map
|
package/resources/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":";OAGO,EAAE,MAAM,EAAE;OACV,EACL,IAAI,EACJ,KAAK,eAAe,EACpB,KAAK,aAAa,EAClB,KAAK,gCAAgC,GACtC;OACM,EACL,YAAY,EACZ,KAAK,WAAW,EAChB,KAAK,uBAAuB,EAC5B,KAAK,0BAA0B,EAC/B,KAAK,uBAAuB,EAC5B,KAAK,uBAAuB,EAC5B,KAAK,uBAAuB,EAC5B,KAAK,wBAAwB,EAC7B,KAAK,wBAAwB,GAC9B;OACM,EACL,QAAQ,EACR,KAAK,kBAAkB,EACvB,KAAK,OAAO,EACZ,KAAK,qBAAqB,EAC1B,KAAK,uBAAuB,EAC5B,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,EACxB,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,EACtB,KAAK,mBAAmB,EACxB,KAAK,2BAA2B,EAChC,KAAK,oCAAoC,GAC1C;OACM,EACL,mBAAmB,EACnB,KAAK,+BAA+B,EACpC,KAAK,kBAAkB,EACvB,KAAK,4BAA4B,EACjC,KA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wB,EAC7B,KAAK,sBAAsB,EAC3B,KAAK,wBAAwB,EAC7B,KAAK,8BAA8B,EACnC,KAAK,sBAAsB,EAC3B,KAAK,sBAAsB,EAC3B,KAAK,oBAAoB,EACzB,KAAK,sBAAsB,EAC3B,KAAK,uCAAuC,GAC7C;OACM,EAAE,QAAQ,EAAE,KAAK,mBAAmB,EAAE,KAAK,mBAAmB,EAAE;OAChE,EACL,OAAO,EACP,KAAK,mBAAmB,EACxB,KAAK,qBAAqB,EAC1B,KAAK,iBAAiB,EACtB,KAAK,kBAAkB,EACvB,KAAK,iBAAiB,GACvB"}
|
package/resources/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,sDAAyB;AACzB,6CAAyC;AAAhC,gGAAA,MAAM,OAAA;AACf,kCAKgB;AAJd,4FAAA,IAAI,OAAA;AAKN,oDAUyB;AATvB,6GAAA,YAAY,OAAA;AAUd,mDAe6B;AAd3B,oGAAA,QAAQ,OAAA;AAeV,kEASgC;AAR9B,2HAAA,mBAAmB,OAAA;AASrB,gDAUuB;AATrB,0GAAA,WAAW,OAAA;AAUb,gDAWuB;AAVrB,0GAAA,WAAW,OAAA;AAWb,8CAMsB;AALpB,wGAAA,UAAU,OAAA;AAMZ,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,sDAAyB;AACzB,6CAAyC;AAAhC,gGAAA,MAAM,OAAA;AACf,kCAKgB;AAJd,4FAAA,IAAI,OAAA;AAKN,oDAUyB;AATvB,6GAAA,YAAY,OAAA;AAUd,mDAe6B;AAd3B,oGAAA,QAAQ,OAAA;AAeV,kEASgC;AAR9B,2HAAA,mBAAmB,OAAA;AASrB,gDAUuB;AATrB,0GAAA,WAAW,OAAA;AAUb,gDAWuB;AAVrB,0GAAA,WAAW,OAAA;AAWb,8CAMsB;AALpB,wGAAA,UAAU,OAAA;AAMZ,gDAcuB;AAbrB,0GAAA,WAAW,OAAA;AAcb,0CAA0F;AAAjF,oGAAA,QAAQ,OAAA;AACjB,wCAOmB;AANjB,kGAAA,OAAO,OAAA"}
|
package/resources/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;;OAG/E,EAAE,MAAM,EAAE;OACV,EACL,IAAI,GAIL;OACM,EACL,YAAY,GASb;OACM,EACL,QAAQ,GAcT;OACM,EACL,mBAAmB,GAQpB;OACM,EACL,WAAW,GASZ;OACM,EACL,WAAW,GAUZ;OACM,EACL,UAAU,GAKX;OACM,EACL,WAAW,
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;;OAG/E,EAAE,MAAM,EAAE;OACV,EACL,IAAI,GAIL;OACM,EACL,YAAY,GASb;OACM,EACL,QAAQ,GAcT;OACM,EACL,mBAAmB,GAQpB;OACM,EACL,WAAW,GASZ;OACM,EACL,WAAW,GAUZ;OACM,EACL,UAAU,GAKX;OACM,EACL,WAAW,GAaZ;OACM,EAAE,QAAQ,EAAsD;OAChE,EACL,OAAO,GAMR"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { APIResource } from "../core/resource.mjs";
|
|
2
2
|
import * as Shared from "./shared.mjs";
|
|
3
|
+
import * as BrowsersAPI from "./browsers/browsers.mjs";
|
|
3
4
|
import { APIPromise } from "../core/api-promise.mjs";
|
|
4
5
|
import { OffsetPagination, type OffsetPaginationParams, PagePromise } from "../core/pagination.mjs";
|
|
5
6
|
import { Stream } from "../core/streaming.mjs";
|
|
@@ -74,6 +75,17 @@ export declare class Invocations extends APIResource {
|
|
|
74
75
|
* ```
|
|
75
76
|
*/
|
|
76
77
|
follow(id: string, query?: InvocationFollowParams | undefined, options?: RequestOptions): APIPromise<Stream<InvocationFollowResponse>>;
|
|
78
|
+
/**
|
|
79
|
+
* Returns all active browser sessions created within the specified invocation.
|
|
80
|
+
*
|
|
81
|
+
* @example
|
|
82
|
+
* ```ts
|
|
83
|
+
* const response = await client.invocations.listBrowsers(
|
|
84
|
+
* 'id',
|
|
85
|
+
* );
|
|
86
|
+
* ```
|
|
87
|
+
*/
|
|
88
|
+
listBrowsers(id: string, options?: RequestOptions): APIPromise<InvocationListBrowsersResponse>;
|
|
77
89
|
}
|
|
78
90
|
export type InvocationListResponsesOffsetPagination = OffsetPagination<InvocationListResponse>;
|
|
79
91
|
/**
|
|
@@ -295,6 +307,74 @@ export interface InvocationListResponse {
|
|
|
295
307
|
* Union type representing any invocation event.
|
|
296
308
|
*/
|
|
297
309
|
export type InvocationFollowResponse = Shared.LogEvent | InvocationStateEvent | Shared.ErrorEvent | Shared.HeartbeatEvent;
|
|
310
|
+
export interface InvocationListBrowsersResponse {
|
|
311
|
+
browsers: Array<InvocationListBrowsersResponse.Browser>;
|
|
312
|
+
}
|
|
313
|
+
export declare namespace InvocationListBrowsersResponse {
|
|
314
|
+
interface Browser {
|
|
315
|
+
/**
|
|
316
|
+
* Websocket URL for Chrome DevTools Protocol connections to the browser session
|
|
317
|
+
*/
|
|
318
|
+
cdp_ws_url: string;
|
|
319
|
+
/**
|
|
320
|
+
* When the browser session was created.
|
|
321
|
+
*/
|
|
322
|
+
created_at: string;
|
|
323
|
+
/**
|
|
324
|
+
* Whether the browser session is running in headless mode.
|
|
325
|
+
*/
|
|
326
|
+
headless: boolean;
|
|
327
|
+
/**
|
|
328
|
+
* Unique identifier for the browser session
|
|
329
|
+
*/
|
|
330
|
+
session_id: string;
|
|
331
|
+
/**
|
|
332
|
+
* Whether the browser session is running in stealth mode.
|
|
333
|
+
*/
|
|
334
|
+
stealth: boolean;
|
|
335
|
+
/**
|
|
336
|
+
* The number of seconds of inactivity before the browser session is terminated.
|
|
337
|
+
*/
|
|
338
|
+
timeout_seconds: number;
|
|
339
|
+
/**
|
|
340
|
+
* Remote URL for live viewing the browser session. Only available for non-headless
|
|
341
|
+
* browsers.
|
|
342
|
+
*/
|
|
343
|
+
browser_live_view_url?: string;
|
|
344
|
+
/**
|
|
345
|
+
* When the browser session was soft-deleted. Only present for deleted sessions.
|
|
346
|
+
*/
|
|
347
|
+
deleted_at?: string;
|
|
348
|
+
/**
|
|
349
|
+
* Whether the browser session is running in kiosk mode.
|
|
350
|
+
*/
|
|
351
|
+
kiosk_mode?: boolean;
|
|
352
|
+
/**
|
|
353
|
+
* @deprecated DEPRECATED: Use timeout_seconds (up to 72 hours) and Profiles
|
|
354
|
+
* instead.
|
|
355
|
+
*/
|
|
356
|
+
persistence?: BrowsersAPI.BrowserPersistence;
|
|
357
|
+
/**
|
|
358
|
+
* Browser profile metadata.
|
|
359
|
+
*/
|
|
360
|
+
profile?: BrowsersAPI.Profile;
|
|
361
|
+
/**
|
|
362
|
+
* ID of the proxy associated with this browser session, if any.
|
|
363
|
+
*/
|
|
364
|
+
proxy_id?: string;
|
|
365
|
+
/**
|
|
366
|
+
* Initial browser window size in pixels with optional refresh rate. If omitted,
|
|
367
|
+
* image defaults apply (1920x1080@25). Only specific viewport configurations are
|
|
368
|
+
* supported. The server will reject unsupported combinations. Supported
|
|
369
|
+
* resolutions are: 2560x1440@10, 1920x1080@25, 1920x1200@25, 1440x900@25,
|
|
370
|
+
* 1280x800@60, 1024x768@60, 1200x800@60 If refresh_rate is not provided, it will
|
|
371
|
+
* be automatically determined from the width and height if they match a supported
|
|
372
|
+
* configuration exactly. Note: Higher resolutions may affect the responsiveness of
|
|
373
|
+
* live view browser
|
|
374
|
+
*/
|
|
375
|
+
viewport?: Shared.BrowserViewport;
|
|
376
|
+
}
|
|
377
|
+
}
|
|
298
378
|
export interface InvocationCreateParams {
|
|
299
379
|
/**
|
|
300
380
|
* Name of the action to invoke
|
|
@@ -367,6 +447,6 @@ export interface InvocationFollowParams {
|
|
|
367
447
|
since?: string;
|
|
368
448
|
}
|
|
369
449
|
export declare namespace Invocations {
|
|
370
|
-
export { type InvocationStateEvent as InvocationStateEvent, type InvocationCreateResponse as InvocationCreateResponse, type InvocationRetrieveResponse as InvocationRetrieveResponse, type InvocationUpdateResponse as InvocationUpdateResponse, type InvocationListResponse as InvocationListResponse, type InvocationFollowResponse as InvocationFollowResponse, type InvocationListResponsesOffsetPagination as InvocationListResponsesOffsetPagination, type InvocationCreateParams as InvocationCreateParams, type InvocationUpdateParams as InvocationUpdateParams, type InvocationListParams as InvocationListParams, type InvocationFollowParams as InvocationFollowParams, };
|
|
450
|
+
export { type InvocationStateEvent as InvocationStateEvent, type InvocationCreateResponse as InvocationCreateResponse, type InvocationRetrieveResponse as InvocationRetrieveResponse, type InvocationUpdateResponse as InvocationUpdateResponse, type InvocationListResponse as InvocationListResponse, type InvocationFollowResponse as InvocationFollowResponse, type InvocationListBrowsersResponse as InvocationListBrowsersResponse, type InvocationListResponsesOffsetPagination as InvocationListResponsesOffsetPagination, type InvocationCreateParams as InvocationCreateParams, type InvocationUpdateParams as InvocationUpdateParams, type InvocationListParams as InvocationListParams, type InvocationFollowParams as InvocationFollowParams, };
|
|
371
451
|
}
|
|
372
452
|
//# sourceMappingURL=invocations.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"invocations.d.mts","sourceRoot":"","sources":["../src/resources/invocations.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,MAAM;OACX,EAAE,UAAU,EAAE;OACd,EAAE,gBAAgB,EAAE,KAAK,sBAAsB,EAAE,WAAW,EAAE;OAC9D,EAAE,MAAM,EAAE;OAEV,EAAE,cAAc,EAAE;AAGzB,qBAAa,WAAY,SAAQ,WAAW;IAC1C;;;;;;;;;;;OAWG;IACH,MAAM,CAAC,IAAI,EAAE,sBAAsB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,wBAAwB,CAA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;IAClE;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IAEvB;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,MAAM,CAAC,EAAE,QAAQ,GAAG,SAAS,GAAG,WAAW,GAAG,QAAQ,CAAC;IAEvD;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,sBAAsB;IACrC;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,CAAC,OAAO,WAAW,WAAW,CAAC;IACnC,OAAO,EACL,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,8BAA8B,IAAI,8BAA8B,EACrE,KAAK,uCAAuC,IAAI,uCAAuC,EACvF,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,sBAAsB,IAAI,sBAAsB,GACtD,CAAC;CACH"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { APIResource } from "../core/resource.js";
|
|
2
2
|
import * as Shared from "./shared.js";
|
|
3
|
+
import * as BrowsersAPI from "./browsers/browsers.js";
|
|
3
4
|
import { APIPromise } from "../core/api-promise.js";
|
|
4
5
|
import { OffsetPagination, type OffsetPaginationParams, PagePromise } from "../core/pagination.js";
|
|
5
6
|
import { Stream } from "../core/streaming.js";
|
|
@@ -74,6 +75,17 @@ export declare class Invocations extends APIResource {
|
|
|
74
75
|
* ```
|
|
75
76
|
*/
|
|
76
77
|
follow(id: string, query?: InvocationFollowParams | undefined, options?: RequestOptions): APIPromise<Stream<InvocationFollowResponse>>;
|
|
78
|
+
/**
|
|
79
|
+
* Returns all active browser sessions created within the specified invocation.
|
|
80
|
+
*
|
|
81
|
+
* @example
|
|
82
|
+
* ```ts
|
|
83
|
+
* const response = await client.invocations.listBrowsers(
|
|
84
|
+
* 'id',
|
|
85
|
+
* );
|
|
86
|
+
* ```
|
|
87
|
+
*/
|
|
88
|
+
listBrowsers(id: string, options?: RequestOptions): APIPromise<InvocationListBrowsersResponse>;
|
|
77
89
|
}
|
|
78
90
|
export type InvocationListResponsesOffsetPagination = OffsetPagination<InvocationListResponse>;
|
|
79
91
|
/**
|
|
@@ -295,6 +307,74 @@ export interface InvocationListResponse {
|
|
|
295
307
|
* Union type representing any invocation event.
|
|
296
308
|
*/
|
|
297
309
|
export type InvocationFollowResponse = Shared.LogEvent | InvocationStateEvent | Shared.ErrorEvent | Shared.HeartbeatEvent;
|
|
310
|
+
export interface InvocationListBrowsersResponse {
|
|
311
|
+
browsers: Array<InvocationListBrowsersResponse.Browser>;
|
|
312
|
+
}
|
|
313
|
+
export declare namespace InvocationListBrowsersResponse {
|
|
314
|
+
interface Browser {
|
|
315
|
+
/**
|
|
316
|
+
* Websocket URL for Chrome DevTools Protocol connections to the browser session
|
|
317
|
+
*/
|
|
318
|
+
cdp_ws_url: string;
|
|
319
|
+
/**
|
|
320
|
+
* When the browser session was created.
|
|
321
|
+
*/
|
|
322
|
+
created_at: string;
|
|
323
|
+
/**
|
|
324
|
+
* Whether the browser session is running in headless mode.
|
|
325
|
+
*/
|
|
326
|
+
headless: boolean;
|
|
327
|
+
/**
|
|
328
|
+
* Unique identifier for the browser session
|
|
329
|
+
*/
|
|
330
|
+
session_id: string;
|
|
331
|
+
/**
|
|
332
|
+
* Whether the browser session is running in stealth mode.
|
|
333
|
+
*/
|
|
334
|
+
stealth: boolean;
|
|
335
|
+
/**
|
|
336
|
+
* The number of seconds of inactivity before the browser session is terminated.
|
|
337
|
+
*/
|
|
338
|
+
timeout_seconds: number;
|
|
339
|
+
/**
|
|
340
|
+
* Remote URL for live viewing the browser session. Only available for non-headless
|
|
341
|
+
* browsers.
|
|
342
|
+
*/
|
|
343
|
+
browser_live_view_url?: string;
|
|
344
|
+
/**
|
|
345
|
+
* When the browser session was soft-deleted. Only present for deleted sessions.
|
|
346
|
+
*/
|
|
347
|
+
deleted_at?: string;
|
|
348
|
+
/**
|
|
349
|
+
* Whether the browser session is running in kiosk mode.
|
|
350
|
+
*/
|
|
351
|
+
kiosk_mode?: boolean;
|
|
352
|
+
/**
|
|
353
|
+
* @deprecated DEPRECATED: Use timeout_seconds (up to 72 hours) and Profiles
|
|
354
|
+
* instead.
|
|
355
|
+
*/
|
|
356
|
+
persistence?: BrowsersAPI.BrowserPersistence;
|
|
357
|
+
/**
|
|
358
|
+
* Browser profile metadata.
|
|
359
|
+
*/
|
|
360
|
+
profile?: BrowsersAPI.Profile;
|
|
361
|
+
/**
|
|
362
|
+
* ID of the proxy associated with this browser session, if any.
|
|
363
|
+
*/
|
|
364
|
+
proxy_id?: string;
|
|
365
|
+
/**
|
|
366
|
+
* Initial browser window size in pixels with optional refresh rate. If omitted,
|
|
367
|
+
* image defaults apply (1920x1080@25). Only specific viewport configurations are
|
|
368
|
+
* supported. The server will reject unsupported combinations. Supported
|
|
369
|
+
* resolutions are: 2560x1440@10, 1920x1080@25, 1920x1200@25, 1440x900@25,
|
|
370
|
+
* 1280x800@60, 1024x768@60, 1200x800@60 If refresh_rate is not provided, it will
|
|
371
|
+
* be automatically determined from the width and height if they match a supported
|
|
372
|
+
* configuration exactly. Note: Higher resolutions may affect the responsiveness of
|
|
373
|
+
* live view browser
|
|
374
|
+
*/
|
|
375
|
+
viewport?: Shared.BrowserViewport;
|
|
376
|
+
}
|
|
377
|
+
}
|
|
298
378
|
export interface InvocationCreateParams {
|
|
299
379
|
/**
|
|
300
380
|
* Name of the action to invoke
|
|
@@ -367,6 +447,6 @@ export interface InvocationFollowParams {
|
|
|
367
447
|
since?: string;
|
|
368
448
|
}
|
|
369
449
|
export declare namespace Invocations {
|
|
370
|
-
export { type InvocationStateEvent as InvocationStateEvent, type InvocationCreateResponse as InvocationCreateResponse, type InvocationRetrieveResponse as InvocationRetrieveResponse, type InvocationUpdateResponse as InvocationUpdateResponse, type InvocationListResponse as InvocationListResponse, type InvocationFollowResponse as InvocationFollowResponse, type InvocationListResponsesOffsetPagination as InvocationListResponsesOffsetPagination, type InvocationCreateParams as InvocationCreateParams, type InvocationUpdateParams as InvocationUpdateParams, type InvocationListParams as InvocationListParams, type InvocationFollowParams as InvocationFollowParams, };
|
|
450
|
+
export { type InvocationStateEvent as InvocationStateEvent, type InvocationCreateResponse as InvocationCreateResponse, type InvocationRetrieveResponse as InvocationRetrieveResponse, type InvocationUpdateResponse as InvocationUpdateResponse, type InvocationListResponse as InvocationListResponse, type InvocationFollowResponse as InvocationFollowResponse, type InvocationListBrowsersResponse as InvocationListBrowsersResponse, type InvocationListResponsesOffsetPagination as InvocationListResponsesOffsetPagination, type InvocationCreateParams as InvocationCreateParams, type InvocationUpdateParams as InvocationUpdateParams, type InvocationListParams as InvocationListParams, type InvocationFollowParams as InvocationFollowParams, };
|
|
371
451
|
}
|
|
372
452
|
//# sourceMappingURL=invocations.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"invocations.d.ts","sourceRoot":"","sources":["../src/resources/invocations.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,MAAM;OACX,EAAE,UAAU,EAAE;OACd,EAAE,gBAAgB,EAAE,KAAK,sBAAsB,EAAE,WAAW,EAAE;OAC9D,EAAE,MAAM,EAAE;OAEV,EAAE,cAAc,EAAE;AAGzB,qBAAa,WAAY,SAAQ,WAAW;IAC1C;;;;;;;;;;;OAWG;IACH,MAAM,CAAC,IAAI,EAAE,sBAAsB,EAAE,OAAO,CAAC,EAA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AED,MAAM,WAAW,oBAAqB,SAAQ,sBAAsB;IAClE;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IAEvB;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,MAAM,CAAC,EAAE,QAAQ,GAAG,SAAS,GAAG,WAAW,GAAG,QAAQ,CAAC;IAEvD;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,sBAAsB;IACrC;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,CAAC,OAAO,WAAW,WAAW,CAAC;IACnC,OAAO,EACL,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,8BAA8B,IAAI,8BAA8B,EACrE,KAAK,uCAAuC,IAAI,uCAAuC,EACvF,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,sBAAsB,IAAI,sBAAsB,GACtD,CAAC;CACH"}
|
package/resources/invocations.js
CHANGED
|
@@ -99,6 +99,19 @@ class Invocations extends resource_1.APIResource {
|
|
|
99
99
|
stream: true,
|
|
100
100
|
});
|
|
101
101
|
}
|
|
102
|
+
/**
|
|
103
|
+
* Returns all active browser sessions created within the specified invocation.
|
|
104
|
+
*
|
|
105
|
+
* @example
|
|
106
|
+
* ```ts
|
|
107
|
+
* const response = await client.invocations.listBrowsers(
|
|
108
|
+
* 'id',
|
|
109
|
+
* );
|
|
110
|
+
* ```
|
|
111
|
+
*/
|
|
112
|
+
listBrowsers(id, options) {
|
|
113
|
+
return this._client.get((0, path_1.path) `/invocations/${id}/browsers`, options);
|
|
114
|
+
}
|
|
102
115
|
}
|
|
103
116
|
exports.Invocations = Invocations;
|
|
104
117
|
//# sourceMappingURL=invocations.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"invocations.js","sourceRoot":"","sources":["../src/resources/invocations.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;
|
|
1
|
+
{"version":3,"file":"invocations.js","sourceRoot":"","sources":["../src/resources/invocations.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAI/C,sDAAgG;AAEhG,oDAAmD;AAEnD,oDAA8C;AAE9C,MAAa,WAAY,SAAQ,sBAAW;IAC1C;;;;;;;;;;;OAWG;IACH,MAAM,CAAC,IAA4B,EAAE,OAAwB;QAC3D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,cAAc,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACjE,CAAC;IAED;;;;;;;;;OASG;IACH,QAAQ,CAAC,EAAU,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,gBAAgB,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IAC7D,CAAC;IAED;;;;;;;;;;OAUG;IACH,MAAM,CACJ,EAAU,EACV,IAA4B,EAC5B,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAA,WAAI,EAAA,gBAAgB,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC5E,CAAC;IAED;;;;;;;;;;;OAWG;IACH,IAAI,CACF,QAAiD,EAAE,EACnD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,cAAc,EAAE,CAAA,6BAAwC,CAAA,EAAE;YACvF,KAAK;YACL,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;OAOG;IACH,cAAc,CAAC,EAAU,EAAE,OAAwB;QACjD,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAA,WAAI,EAAA,gBAAgB,EAAE,WAAW,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;IAED;;;;;;;;;OASG;IACH,MAAM,CACJ,EAAU,EACV,QAA4C,EAAE,EAC9C,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,gBAAgB,EAAE,SAAS,EAAE;YACvD,KAAK;YACL,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC,CAAC,EAAE,MAAM,EAAE,mBAAmB,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;YAC1E,MAAM,EAAE,IAAI;SACb,CAAiD,CAAC;IACrD,CAAC;IAED;;;;;;;;;OASG;IACH,YAAY,CAAC,EAAU,EAAE,OAAwB;QAC/C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,gBAAgB,EAAE,WAAW,EAAE,OAAO,CAAC,CAAC;IACtE,CAAC;CACF;AA3HD,kCA2HC"}
|
|
@@ -96,5 +96,18 @@ export class Invocations extends APIResource {
|
|
|
96
96
|
stream: true,
|
|
97
97
|
});
|
|
98
98
|
}
|
|
99
|
+
/**
|
|
100
|
+
* Returns all active browser sessions created within the specified invocation.
|
|
101
|
+
*
|
|
102
|
+
* @example
|
|
103
|
+
* ```ts
|
|
104
|
+
* const response = await client.invocations.listBrowsers(
|
|
105
|
+
* 'id',
|
|
106
|
+
* );
|
|
107
|
+
* ```
|
|
108
|
+
*/
|
|
109
|
+
listBrowsers(id, options) {
|
|
110
|
+
return this._client.get(path `/invocations/${id}/browsers`, options);
|
|
111
|
+
}
|
|
99
112
|
}
|
|
100
113
|
//# sourceMappingURL=invocations.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"invocations.mjs","sourceRoot":"","sources":["../src/resources/invocations.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;
|
|
1
|
+
{"version":3,"file":"invocations.mjs","sourceRoot":"","sources":["../src/resources/invocations.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAIf,EAAE,gBAAgB,EAA4C;OAE9D,EAAE,YAAY,EAAE;OAEhB,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,WAAY,SAAQ,WAAW;IAC1C;;;;;;;;;;;OAWG;IACH,MAAM,CAAC,IAA4B,EAAE,OAAwB;QAC3D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,cAAc,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACjE,CAAC;IAED;;;;;;;;;OASG;IACH,QAAQ,CAAC,EAAU,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,gBAAgB,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IAC7D,CAAC;IAED;;;;;;;;;;OAUG;IACH,MAAM,CACJ,EAAU,EACV,IAA4B,EAC5B,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,CAAA,gBAAgB,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC5E,CAAC;IAED;;;;;;;;;;;OAWG;IACH,IAAI,CACF,QAAiD,EAAE,EACnD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,cAAc,EAAE,CAAA,gBAAwC,CAAA,EAAE;YACvF,KAAK;YACL,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;OAOG;IACH,cAAc,CAAC,EAAU,EAAE,OAAwB;QACjD,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAA,gBAAgB,EAAE,WAAW,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;IAED;;;;;;;;;OASG;IACH,MAAM,CACJ,EAAU,EACV,QAA4C,EAAE,EAC9C,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,gBAAgB,EAAE,SAAS,EAAE;YACvD,KAAK;YACL,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC,CAAC,EAAE,MAAM,EAAE,mBAAmB,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;YAC1E,MAAM,EAAE,IAAI;SACb,CAAiD,CAAC;IACrD,CAAC;IAED;;;;;;;;;OASG;IACH,YAAY,CAAC,EAAU,EAAE,OAAwB;QAC/C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,gBAAgB,EAAE,WAAW,EAAE,OAAO,CAAC,CAAC;IACtE,CAAC;CACF"}
|
package/resources/shared.d.mts
CHANGED
|
@@ -48,8 +48,8 @@ export interface BrowserProfile {
|
|
|
48
48
|
* image defaults apply (1920x1080@25). Only specific viewport configurations are
|
|
49
49
|
* supported. The server will reject unsupported combinations. Supported
|
|
50
50
|
* resolutions are: 2560x1440@10, 1920x1080@25, 1920x1200@25, 1440x900@25,
|
|
51
|
-
* 1024x768@60, 1200x800@60 If refresh_rate is not provided, it will
|
|
52
|
-
* automatically determined from the width and height if they match a supported
|
|
51
|
+
* 1280x800@60, 1024x768@60, 1200x800@60 If refresh_rate is not provided, it will
|
|
52
|
+
* be automatically determined from the width and height if they match a supported
|
|
53
53
|
* configuration exactly. Note: Higher resolutions may affect the responsiveness of
|
|
54
54
|
* live view browser
|
|
55
55
|
*/
|
package/resources/shared.d.ts
CHANGED
|
@@ -48,8 +48,8 @@ export interface BrowserProfile {
|
|
|
48
48
|
* image defaults apply (1920x1080@25). Only specific viewport configurations are
|
|
49
49
|
* supported. The server will reject unsupported combinations. Supported
|
|
50
50
|
* resolutions are: 2560x1440@10, 1920x1080@25, 1920x1200@25, 1440x900@25,
|
|
51
|
-
* 1024x768@60, 1200x800@60 If refresh_rate is not provided, it will
|
|
52
|
-
* automatically determined from the width and height if they match a supported
|
|
51
|
+
* 1280x800@60, 1024x768@60, 1200x800@60 If refresh_rate is not provided, it will
|
|
52
|
+
* be automatically determined from the width and height if they match a supported
|
|
53
53
|
* configuration exactly. Note: Higher resolutions may affect the responsiveness of
|
|
54
54
|
* live view browser
|
|
55
55
|
*/
|
package/src/client.ts
CHANGED
|
@@ -76,6 +76,7 @@ import {
|
|
|
76
76
|
InvocationCreateResponse,
|
|
77
77
|
InvocationFollowParams,
|
|
78
78
|
InvocationFollowResponse,
|
|
79
|
+
InvocationListBrowsersResponse,
|
|
79
80
|
InvocationListParams,
|
|
80
81
|
InvocationListResponse,
|
|
81
82
|
InvocationListResponsesOffsetPagination,
|
|
@@ -638,9 +639,10 @@ export class Kernel {
|
|
|
638
639
|
controller: AbortController,
|
|
639
640
|
): Promise<Response> {
|
|
640
641
|
const { signal, method, ...options } = init || {};
|
|
641
|
-
|
|
642
|
+
const abort = controller.abort.bind(controller);
|
|
643
|
+
if (signal) signal.addEventListener('abort', abort, { once: true });
|
|
642
644
|
|
|
643
|
-
const timeout = setTimeout(
|
|
645
|
+
const timeout = setTimeout(abort, ms);
|
|
644
646
|
|
|
645
647
|
const isReadableBody =
|
|
646
648
|
((globalThis as any).ReadableStream && options.body instanceof (globalThis as any).ReadableStream) ||
|
|
@@ -935,6 +937,7 @@ export declare namespace Kernel {
|
|
|
935
937
|
type InvocationUpdateResponse as InvocationUpdateResponse,
|
|
936
938
|
type InvocationListResponse as InvocationListResponse,
|
|
937
939
|
type InvocationFollowResponse as InvocationFollowResponse,
|
|
940
|
+
type InvocationListBrowsersResponse as InvocationListBrowsersResponse,
|
|
938
941
|
type InvocationListResponsesOffsetPagination as InvocationListResponsesOffsetPagination,
|
|
939
942
|
type InvocationCreateParams as InvocationCreateParams,
|
|
940
943
|
type InvocationUpdateParams as InvocationUpdateParams,
|
package/src/internal/parse.ts
CHANGED
|
@@ -43,6 +43,12 @@ export async function defaultParseResponse<T>(client: Kernel, props: APIResponse
|
|
|
43
43
|
const mediaType = contentType?.split(';')[0]?.trim();
|
|
44
44
|
const isJSON = mediaType?.includes('application/json') || mediaType?.endsWith('+json');
|
|
45
45
|
if (isJSON) {
|
|
46
|
+
const contentLength = response.headers.get('content-length');
|
|
47
|
+
if (contentLength === '0') {
|
|
48
|
+
// if there is no content we can't do anything
|
|
49
|
+
return undefined as T;
|
|
50
|
+
}
|
|
51
|
+
|
|
46
52
|
const json = await response.json();
|
|
47
53
|
return json as T;
|
|
48
54
|
}
|
|
@@ -243,8 +243,8 @@ export namespace BrowserPool {
|
|
|
243
243
|
* image defaults apply (1920x1080@25). Only specific viewport configurations are
|
|
244
244
|
* supported. The server will reject unsupported combinations. Supported
|
|
245
245
|
* resolutions are: 2560x1440@10, 1920x1080@25, 1920x1200@25, 1440x900@25,
|
|
246
|
-
* 1024x768@60, 1200x800@60 If refresh_rate is not provided, it will
|
|
247
|
-
* automatically determined from the width and height if they match a supported
|
|
246
|
+
* 1280x800@60, 1024x768@60, 1200x800@60 If refresh_rate is not provided, it will
|
|
247
|
+
* be automatically determined from the width and height if they match a supported
|
|
248
248
|
* configuration exactly. Note: Higher resolutions may affect the responsiveness of
|
|
249
249
|
* live view browser
|
|
250
250
|
*/
|
|
@@ -322,8 +322,8 @@ export interface BrowserPoolAcquireResponse {
|
|
|
322
322
|
* image defaults apply (1920x1080@25). Only specific viewport configurations are
|
|
323
323
|
* supported. The server will reject unsupported combinations. Supported
|
|
324
324
|
* resolutions are: 2560x1440@10, 1920x1080@25, 1920x1200@25, 1440x900@25,
|
|
325
|
-
* 1024x768@60, 1200x800@60 If refresh_rate is not provided, it will
|
|
326
|
-
* automatically determined from the width and height if they match a supported
|
|
325
|
+
* 1280x800@60, 1024x768@60, 1200x800@60 If refresh_rate is not provided, it will
|
|
326
|
+
* be automatically determined from the width and height if they match a supported
|
|
327
327
|
* configuration exactly. Note: Higher resolutions may affect the responsiveness of
|
|
328
328
|
* live view browser
|
|
329
329
|
*/
|
|
@@ -394,8 +394,8 @@ export interface BrowserPoolCreateParams {
|
|
|
394
394
|
* image defaults apply (1920x1080@25). Only specific viewport configurations are
|
|
395
395
|
* supported. The server will reject unsupported combinations. Supported
|
|
396
396
|
* resolutions are: 2560x1440@10, 1920x1080@25, 1920x1200@25, 1440x900@25,
|
|
397
|
-
* 1024x768@60, 1200x800@60 If refresh_rate is not provided, it will
|
|
398
|
-
* automatically determined from the width and height if they match a supported
|
|
397
|
+
* 1280x800@60, 1024x768@60, 1200x800@60 If refresh_rate is not provided, it will
|
|
398
|
+
* be automatically determined from the width and height if they match a supported
|
|
399
399
|
* configuration exactly. Note: Higher resolutions may affect the responsiveness of
|
|
400
400
|
* live view browser
|
|
401
401
|
*/
|
|
@@ -472,8 +472,8 @@ export interface BrowserPoolUpdateParams {
|
|
|
472
472
|
* image defaults apply (1920x1080@25). Only specific viewport configurations are
|
|
473
473
|
* supported. The server will reject unsupported combinations. Supported
|
|
474
474
|
* resolutions are: 2560x1440@10, 1920x1080@25, 1920x1200@25, 1440x900@25,
|
|
475
|
-
* 1024x768@60, 1200x800@60 If refresh_rate is not provided, it will
|
|
476
|
-
* automatically determined from the width and height if they match a supported
|
|
475
|
+
* 1280x800@60, 1024x768@60, 1200x800@60 If refresh_rate is not provided, it will
|
|
476
|
+
* be automatically determined from the width and height if they match a supported
|
|
477
477
|
* configuration exactly. Note: Higher resolutions may affect the responsiveness of
|
|
478
478
|
* live view browser
|
|
479
479
|
*/
|