@onkernel/sdk 0.22.0 → 0.23.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 +28 -0
- package/README.md +15 -19
- package/client.d.mts +3 -0
- package/client.d.mts.map +1 -1
- package/client.d.ts +3 -0
- package/client.d.ts.map +1 -1
- package/client.js +3 -0
- package/client.js.map +1 -1
- package/client.mjs +3 -0
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/agents/agents.d.mts +10 -0
- package/resources/agents/agents.d.mts.map +1 -0
- package/resources/agents/agents.d.ts +10 -0
- package/resources/agents/agents.d.ts.map +1 -0
- package/resources/agents/agents.js +17 -0
- package/resources/agents/agents.js.map +1 -0
- package/resources/agents/agents.mjs +12 -0
- package/resources/agents/agents.mjs.map +1 -0
- package/resources/agents/auth/auth.d.mts +294 -0
- package/resources/agents/auth/auth.d.mts.map +1 -0
- package/resources/agents/auth/auth.d.ts +294 -0
- package/resources/agents/auth/auth.d.ts.map +1 -0
- package/resources/agents/auth/auth.js +62 -0
- package/resources/agents/auth/auth.js.map +1 -0
- package/resources/agents/auth/auth.mjs +57 -0
- package/resources/agents/auth/auth.mjs.map +1 -0
- package/resources/agents/auth/index.d.mts +3 -0
- package/resources/agents/auth/index.d.mts.map +1 -0
- package/resources/agents/auth/index.d.ts +3 -0
- package/resources/agents/auth/index.d.ts.map +1 -0
- package/resources/agents/auth/index.js +9 -0
- package/resources/agents/auth/index.js.map +1 -0
- package/resources/agents/auth/index.mjs +4 -0
- package/resources/agents/auth/index.mjs.map +1 -0
- package/resources/agents/auth/invocations.d.mts +124 -0
- package/resources/agents/auth/invocations.d.mts.map +1 -0
- package/resources/agents/auth/invocations.d.ts +124 -0
- package/resources/agents/auth/invocations.d.ts.map +1 -0
- package/resources/agents/auth/invocations.js +94 -0
- package/resources/agents/auth/invocations.js.map +1 -0
- package/resources/agents/auth/invocations.mjs +90 -0
- package/resources/agents/auth/invocations.mjs.map +1 -0
- package/resources/agents/auth.d.mts +2 -0
- package/resources/agents/auth.d.mts.map +1 -0
- package/resources/agents/auth.d.ts +2 -0
- package/resources/agents/auth.d.ts.map +1 -0
- package/resources/agents/auth.js +6 -0
- package/resources/agents/auth.js.map +1 -0
- package/resources/agents/auth.mjs +3 -0
- package/resources/agents/auth.mjs.map +1 -0
- package/resources/agents/index.d.mts +3 -0
- package/resources/agents/index.d.mts.map +1 -0
- package/resources/agents/index.d.ts +3 -0
- package/resources/agents/index.d.ts.map +1 -0
- package/resources/agents/index.js +9 -0
- package/resources/agents/index.js.map +1 -0
- package/resources/agents/index.mjs +4 -0
- package/resources/agents/index.mjs.map +1 -0
- package/resources/agents.d.mts +2 -0
- package/resources/agents.d.mts.map +1 -0
- package/resources/agents.d.ts +2 -0
- package/resources/agents.d.ts.map +1 -0
- package/resources/agents.js +6 -0
- package/resources/agents.js.map +1 -0
- package/resources/agents.mjs +3 -0
- package/resources/agents.mjs.map +1 -0
- package/resources/browser-pools.d.mts +24 -23
- package/resources/browser-pools.d.mts.map +1 -1
- package/resources/browser-pools.d.ts +24 -23
- package/resources/browser-pools.d.ts.map +1 -1
- package/resources/browsers/browsers.d.mts +38 -38
- package/resources/browsers/browsers.d.mts.map +1 -1
- package/resources/browsers/browsers.d.ts +38 -38
- package/resources/browsers/browsers.d.ts.map +1 -1
- package/resources/browsers/browsers.js +3 -7
- package/resources/browsers/browsers.js.map +1 -1
- package/resources/browsers/browsers.mjs +3 -7
- package/resources/browsers/browsers.mjs.map +1 -1
- package/resources/index.d.mts +1 -0
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +1 -0
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +3 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +1 -0
- package/resources/index.mjs.map +1 -1
- package/resources/shared.d.mts +5 -5
- package/resources/shared.d.ts +5 -5
- package/src/client.ts +5 -0
- package/src/resources/agents/agents.ts +41 -0
- package/src/resources/agents/auth/auth.ts +385 -0
- package/src/resources/agents/auth/index.ts +24 -0
- package/src/resources/agents/auth/invocations.ts +167 -0
- package/src/resources/agents/auth.ts +3 -0
- package/src/resources/agents/index.ts +17 -0
- package/src/resources/agents.ts +3 -0
- package/src/resources/browser-pools.ts +24 -23
- package/src/resources/browsers/browsers.ts +38 -38
- package/src/resources/index.ts +1 -0
- package/src/resources/shared.ts +5 -5
- 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
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
export {
|
|
4
|
+
Auth,
|
|
5
|
+
type AgentAuthDiscoverResponse,
|
|
6
|
+
type AgentAuthInvocationResponse,
|
|
7
|
+
type AgentAuthSubmitResponse,
|
|
8
|
+
type AuthAgent,
|
|
9
|
+
type AuthAgentCreateRequest,
|
|
10
|
+
type AuthAgentInvocationCreateRequest,
|
|
11
|
+
type AuthAgentInvocationCreateResponse,
|
|
12
|
+
type DiscoveredField,
|
|
13
|
+
type AuthCreateParams,
|
|
14
|
+
type AuthListParams,
|
|
15
|
+
type AuthAgentsOffsetPagination,
|
|
16
|
+
} from './auth';
|
|
17
|
+
export {
|
|
18
|
+
Invocations,
|
|
19
|
+
type InvocationExchangeResponse,
|
|
20
|
+
type InvocationCreateParams,
|
|
21
|
+
type InvocationDiscoverParams,
|
|
22
|
+
type InvocationExchangeParams,
|
|
23
|
+
type InvocationSubmitParams,
|
|
24
|
+
} from './invocations';
|
|
@@ -0,0 +1,167 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../../../core/resource';
|
|
4
|
+
import * as AuthAPI from './auth';
|
|
5
|
+
import { APIPromise } from '../../../core/api-promise';
|
|
6
|
+
import { RequestOptions } from '../../../internal/request-options';
|
|
7
|
+
import { path } from '../../../internal/utils/path';
|
|
8
|
+
|
|
9
|
+
export class Invocations extends APIResource {
|
|
10
|
+
/**
|
|
11
|
+
* Creates a new authentication invocation for the specified auth agent. This
|
|
12
|
+
* starts the auth flow and returns a hosted URL for the user to complete
|
|
13
|
+
* authentication.
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* ```ts
|
|
17
|
+
* const authAgentInvocationCreateResponse =
|
|
18
|
+
* await client.agents.auth.invocations.create({
|
|
19
|
+
* auth_agent_id: 'abc123xyz',
|
|
20
|
+
* });
|
|
21
|
+
* ```
|
|
22
|
+
*/
|
|
23
|
+
create(
|
|
24
|
+
body: InvocationCreateParams,
|
|
25
|
+
options?: RequestOptions,
|
|
26
|
+
): APIPromise<AuthAPI.AuthAgentInvocationCreateResponse> {
|
|
27
|
+
return this._client.post('/agents/auth/invocations', { body, ...options });
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Returns invocation details including app_name and target_domain. Uses the JWT
|
|
32
|
+
* returned by the exchange endpoint, or standard API key or JWT authentication.
|
|
33
|
+
*
|
|
34
|
+
* @example
|
|
35
|
+
* ```ts
|
|
36
|
+
* const agentAuthInvocationResponse =
|
|
37
|
+
* await client.agents.auth.invocations.retrieve(
|
|
38
|
+
* 'invocation_id',
|
|
39
|
+
* );
|
|
40
|
+
* ```
|
|
41
|
+
*/
|
|
42
|
+
retrieve(invocationID: string, options?: RequestOptions): APIPromise<AuthAPI.AgentAuthInvocationResponse> {
|
|
43
|
+
return this._client.get(path`/agents/auth/invocations/${invocationID}`, options);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* Inspects the target site to detect logged-in state or discover required fields.
|
|
48
|
+
* Returns 200 with success: true when fields are found, or 4xx/5xx for failures.
|
|
49
|
+
* Requires the JWT returned by the exchange endpoint.
|
|
50
|
+
*
|
|
51
|
+
* @example
|
|
52
|
+
* ```ts
|
|
53
|
+
* const agentAuthDiscoverResponse =
|
|
54
|
+
* await client.agents.auth.invocations.discover(
|
|
55
|
+
* 'invocation_id',
|
|
56
|
+
* );
|
|
57
|
+
* ```
|
|
58
|
+
*/
|
|
59
|
+
discover(
|
|
60
|
+
invocationID: string,
|
|
61
|
+
body: InvocationDiscoverParams | null | undefined = {},
|
|
62
|
+
options?: RequestOptions,
|
|
63
|
+
): APIPromise<AuthAPI.AgentAuthDiscoverResponse> {
|
|
64
|
+
return this._client.post(path`/agents/auth/invocations/${invocationID}/discover`, { body, ...options });
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
/**
|
|
68
|
+
* Validates the handoff code and returns a JWT token for subsequent requests. No
|
|
69
|
+
* authentication required (the handoff code serves as the credential).
|
|
70
|
+
*
|
|
71
|
+
* @example
|
|
72
|
+
* ```ts
|
|
73
|
+
* const response =
|
|
74
|
+
* await client.agents.auth.invocations.exchange(
|
|
75
|
+
* 'invocation_id',
|
|
76
|
+
* { code: 'abc123xyz' },
|
|
77
|
+
* );
|
|
78
|
+
* ```
|
|
79
|
+
*/
|
|
80
|
+
exchange(
|
|
81
|
+
invocationID: string,
|
|
82
|
+
body: InvocationExchangeParams,
|
|
83
|
+
options?: RequestOptions,
|
|
84
|
+
): APIPromise<InvocationExchangeResponse> {
|
|
85
|
+
return this._client.post(path`/agents/auth/invocations/${invocationID}/exchange`, { body, ...options });
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
/**
|
|
89
|
+
* Submits field values for the discovered login form and may return additional
|
|
90
|
+
* auth fields or success. Requires the JWT returned by the exchange endpoint.
|
|
91
|
+
*
|
|
92
|
+
* @example
|
|
93
|
+
* ```ts
|
|
94
|
+
* const agentAuthSubmitResponse =
|
|
95
|
+
* await client.agents.auth.invocations.submit(
|
|
96
|
+
* 'invocation_id',
|
|
97
|
+
* {
|
|
98
|
+
* field_values: {
|
|
99
|
+
* email: 'user@example.com',
|
|
100
|
+
* password: '********',
|
|
101
|
+
* },
|
|
102
|
+
* },
|
|
103
|
+
* );
|
|
104
|
+
* ```
|
|
105
|
+
*/
|
|
106
|
+
submit(
|
|
107
|
+
invocationID: string,
|
|
108
|
+
body: InvocationSubmitParams,
|
|
109
|
+
options?: RequestOptions,
|
|
110
|
+
): APIPromise<AuthAPI.AgentAuthSubmitResponse> {
|
|
111
|
+
return this._client.post(path`/agents/auth/invocations/${invocationID}/submit`, { body, ...options });
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
/**
|
|
116
|
+
* Response from exchange endpoint
|
|
117
|
+
*/
|
|
118
|
+
export interface InvocationExchangeResponse {
|
|
119
|
+
/**
|
|
120
|
+
* Invocation ID
|
|
121
|
+
*/
|
|
122
|
+
invocation_id: string;
|
|
123
|
+
|
|
124
|
+
/**
|
|
125
|
+
* JWT token with invocation_id claim (30 minute TTL)
|
|
126
|
+
*/
|
|
127
|
+
jwt: string;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
export interface InvocationCreateParams {
|
|
131
|
+
/**
|
|
132
|
+
* ID of the auth agent to create an invocation for
|
|
133
|
+
*/
|
|
134
|
+
auth_agent_id: string;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
export interface InvocationDiscoverParams {
|
|
138
|
+
/**
|
|
139
|
+
* Optional login page URL. If provided, will override the stored login URL for
|
|
140
|
+
* this discovery invocation and skip Phase 1 discovery.
|
|
141
|
+
*/
|
|
142
|
+
login_url?: string;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
export interface InvocationExchangeParams {
|
|
146
|
+
/**
|
|
147
|
+
* Handoff code from start endpoint
|
|
148
|
+
*/
|
|
149
|
+
code: string;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
export interface InvocationSubmitParams {
|
|
153
|
+
/**
|
|
154
|
+
* Values for the discovered login fields
|
|
155
|
+
*/
|
|
156
|
+
field_values: { [key: string]: string };
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
export declare namespace Invocations {
|
|
160
|
+
export {
|
|
161
|
+
type InvocationExchangeResponse as InvocationExchangeResponse,
|
|
162
|
+
type InvocationCreateParams as InvocationCreateParams,
|
|
163
|
+
type InvocationDiscoverParams as InvocationDiscoverParams,
|
|
164
|
+
type InvocationExchangeParams as InvocationExchangeParams,
|
|
165
|
+
type InvocationSubmitParams as InvocationSubmitParams,
|
|
166
|
+
};
|
|
167
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
export { Agents } from './agents';
|
|
4
|
+
export {
|
|
5
|
+
Auth,
|
|
6
|
+
type AgentAuthDiscoverResponse,
|
|
7
|
+
type AgentAuthInvocationResponse,
|
|
8
|
+
type AgentAuthSubmitResponse,
|
|
9
|
+
type AuthAgent,
|
|
10
|
+
type AuthAgentCreateRequest,
|
|
11
|
+
type AuthAgentInvocationCreateRequest,
|
|
12
|
+
type AuthAgentInvocationCreateResponse,
|
|
13
|
+
type DiscoveredField,
|
|
14
|
+
type AuthCreateParams,
|
|
15
|
+
type AuthListParams,
|
|
16
|
+
type AuthAgentsOffsetPagination,
|
|
17
|
+
} from './auth/index';
|
|
@@ -266,11 +266,11 @@ export interface BrowserPoolRequest {
|
|
|
266
266
|
|
|
267
267
|
/**
|
|
268
268
|
* Initial browser window size in pixels with optional refresh rate. If omitted,
|
|
269
|
-
* image defaults apply (
|
|
270
|
-
*
|
|
271
|
-
*
|
|
272
|
-
*
|
|
273
|
-
*
|
|
269
|
+
* image defaults apply (1920x1080@25). Only specific viewport configurations are
|
|
270
|
+
* supported. The server will reject unsupported combinations. Supported
|
|
271
|
+
* resolutions are: 2560x1440@10, 1920x1080@25, 1920x1200@25, 1440x900@25,
|
|
272
|
+
* 1024x768@60, 1200x800@60 If refresh_rate is not provided, it will be
|
|
273
|
+
* automatically determined from the width and height if they match a supported
|
|
274
274
|
* configuration exactly. Note: Higher resolutions may affect the responsiveness of
|
|
275
275
|
* live view browser
|
|
276
276
|
*/
|
|
@@ -284,7 +284,7 @@ export interface BrowserPoolRequest {
|
|
|
284
284
|
export interface BrowserPoolUpdateRequest extends BrowserPoolRequest {
|
|
285
285
|
/**
|
|
286
286
|
* Whether to discard all idle browsers and rebuild the pool immediately. Defaults
|
|
287
|
-
* to
|
|
287
|
+
* to false.
|
|
288
288
|
*/
|
|
289
289
|
discard_all_idle?: boolean;
|
|
290
290
|
}
|
|
@@ -339,7 +339,8 @@ export interface BrowserPoolAcquireResponse {
|
|
|
339
339
|
kiosk_mode?: boolean;
|
|
340
340
|
|
|
341
341
|
/**
|
|
342
|
-
*
|
|
342
|
+
* @deprecated DEPRECATED: Use timeout_seconds (up to 72 hours) and Profiles
|
|
343
|
+
* instead.
|
|
343
344
|
*/
|
|
344
345
|
persistence?: BrowsersAPI.BrowserPersistence;
|
|
345
346
|
|
|
@@ -355,11 +356,11 @@ export interface BrowserPoolAcquireResponse {
|
|
|
355
356
|
|
|
356
357
|
/**
|
|
357
358
|
* Initial browser window size in pixels with optional refresh rate. If omitted,
|
|
358
|
-
* image defaults apply (
|
|
359
|
-
*
|
|
360
|
-
*
|
|
361
|
-
*
|
|
362
|
-
*
|
|
359
|
+
* image defaults apply (1920x1080@25). Only specific viewport configurations are
|
|
360
|
+
* supported. The server will reject unsupported combinations. Supported
|
|
361
|
+
* resolutions are: 2560x1440@10, 1920x1080@25, 1920x1200@25, 1440x900@25,
|
|
362
|
+
* 1024x768@60, 1200x800@60 If refresh_rate is not provided, it will be
|
|
363
|
+
* automatically determined from the width and height if they match a supported
|
|
363
364
|
* configuration exactly. Note: Higher resolutions may affect the responsiveness of
|
|
364
365
|
* live view browser
|
|
365
366
|
*/
|
|
@@ -425,11 +426,11 @@ export interface BrowserPoolCreateParams {
|
|
|
425
426
|
|
|
426
427
|
/**
|
|
427
428
|
* Initial browser window size in pixels with optional refresh rate. If omitted,
|
|
428
|
-
* image defaults apply (
|
|
429
|
-
*
|
|
430
|
-
*
|
|
431
|
-
*
|
|
432
|
-
*
|
|
429
|
+
* image defaults apply (1920x1080@25). Only specific viewport configurations are
|
|
430
|
+
* supported. The server will reject unsupported combinations. Supported
|
|
431
|
+
* resolutions are: 2560x1440@10, 1920x1080@25, 1920x1200@25, 1440x900@25,
|
|
432
|
+
* 1024x768@60, 1200x800@60 If refresh_rate is not provided, it will be
|
|
433
|
+
* automatically determined from the width and height if they match a supported
|
|
433
434
|
* configuration exactly. Note: Higher resolutions may affect the responsiveness of
|
|
434
435
|
* live view browser
|
|
435
436
|
*/
|
|
@@ -444,7 +445,7 @@ export interface BrowserPoolUpdateParams {
|
|
|
444
445
|
|
|
445
446
|
/**
|
|
446
447
|
* Whether to discard all idle browsers and rebuild the pool immediately. Defaults
|
|
447
|
-
* to
|
|
448
|
+
* to false.
|
|
448
449
|
*/
|
|
449
450
|
discard_all_idle?: boolean;
|
|
450
451
|
|
|
@@ -501,11 +502,11 @@ export interface BrowserPoolUpdateParams {
|
|
|
501
502
|
|
|
502
503
|
/**
|
|
503
504
|
* Initial browser window size in pixels with optional refresh rate. If omitted,
|
|
504
|
-
* image defaults apply (
|
|
505
|
-
*
|
|
506
|
-
*
|
|
507
|
-
*
|
|
508
|
-
*
|
|
505
|
+
* image defaults apply (1920x1080@25). Only specific viewport configurations are
|
|
506
|
+
* supported. The server will reject unsupported combinations. Supported
|
|
507
|
+
* resolutions are: 2560x1440@10, 1920x1080@25, 1920x1200@25, 1440x900@25,
|
|
508
|
+
* 1024x768@60, 1200x800@60 If refresh_rate is not provided, it will be
|
|
509
|
+
* automatically determined from the width and height if they match a supported
|
|
509
510
|
* configuration exactly. Note: Higher resolutions may affect the responsiveness of
|
|
510
511
|
* live view browser
|
|
511
512
|
*/
|
|
@@ -127,14 +127,10 @@ export class Browsers extends APIResource {
|
|
|
127
127
|
}
|
|
128
128
|
|
|
129
129
|
/**
|
|
130
|
-
* Delete a persistent browser
|
|
130
|
+
* DEPRECATED: Use DELETE /browsers/{id} instead. Delete a persistent browser
|
|
131
|
+
* session by its persistent_id.
|
|
131
132
|
*
|
|
132
|
-
* @
|
|
133
|
-
* ```ts
|
|
134
|
-
* await client.browsers.delete({
|
|
135
|
-
* persistent_id: 'persistent_id',
|
|
136
|
-
* });
|
|
137
|
-
* ```
|
|
133
|
+
* @deprecated
|
|
138
134
|
*/
|
|
139
135
|
delete(params: BrowserDeleteParams, options?: RequestOptions): APIPromise<void> {
|
|
140
136
|
const { persistent_id } = params;
|
|
@@ -192,11 +188,12 @@ export class Browsers extends APIResource {
|
|
|
192
188
|
export type BrowserListResponsesOffsetPagination = OffsetPagination<BrowserListResponse>;
|
|
193
189
|
|
|
194
190
|
/**
|
|
195
|
-
*
|
|
191
|
+
* @deprecated DEPRECATED: Use timeout_seconds (up to 72 hours) and Profiles
|
|
192
|
+
* instead.
|
|
196
193
|
*/
|
|
197
194
|
export interface BrowserPersistence {
|
|
198
195
|
/**
|
|
199
|
-
* Unique identifier for the persistent browser session.
|
|
196
|
+
* DEPRECATED: Unique identifier for the persistent browser session.
|
|
200
197
|
*/
|
|
201
198
|
id: string;
|
|
202
199
|
}
|
|
@@ -279,7 +276,8 @@ export interface BrowserCreateResponse {
|
|
|
279
276
|
kiosk_mode?: boolean;
|
|
280
277
|
|
|
281
278
|
/**
|
|
282
|
-
*
|
|
279
|
+
* @deprecated DEPRECATED: Use timeout_seconds (up to 72 hours) and Profiles
|
|
280
|
+
* instead.
|
|
283
281
|
*/
|
|
284
282
|
persistence?: BrowserPersistence;
|
|
285
283
|
|
|
@@ -295,11 +293,11 @@ export interface BrowserCreateResponse {
|
|
|
295
293
|
|
|
296
294
|
/**
|
|
297
295
|
* Initial browser window size in pixels with optional refresh rate. If omitted,
|
|
298
|
-
* image defaults apply (
|
|
299
|
-
*
|
|
300
|
-
*
|
|
301
|
-
*
|
|
302
|
-
*
|
|
296
|
+
* image defaults apply (1920x1080@25). Only specific viewport configurations are
|
|
297
|
+
* supported. The server will reject unsupported combinations. Supported
|
|
298
|
+
* resolutions are: 2560x1440@10, 1920x1080@25, 1920x1200@25, 1440x900@25,
|
|
299
|
+
* 1024x768@60, 1200x800@60 If refresh_rate is not provided, it will be
|
|
300
|
+
* automatically determined from the width and height if they match a supported
|
|
303
301
|
* configuration exactly. Note: Higher resolutions may affect the responsiveness of
|
|
304
302
|
* live view browser
|
|
305
303
|
*/
|
|
@@ -354,7 +352,8 @@ export interface BrowserRetrieveResponse {
|
|
|
354
352
|
kiosk_mode?: boolean;
|
|
355
353
|
|
|
356
354
|
/**
|
|
357
|
-
*
|
|
355
|
+
* @deprecated DEPRECATED: Use timeout_seconds (up to 72 hours) and Profiles
|
|
356
|
+
* instead.
|
|
358
357
|
*/
|
|
359
358
|
persistence?: BrowserPersistence;
|
|
360
359
|
|
|
@@ -370,11 +369,11 @@ export interface BrowserRetrieveResponse {
|
|
|
370
369
|
|
|
371
370
|
/**
|
|
372
371
|
* Initial browser window size in pixels with optional refresh rate. If omitted,
|
|
373
|
-
* image defaults apply (
|
|
374
|
-
*
|
|
375
|
-
*
|
|
376
|
-
*
|
|
377
|
-
*
|
|
372
|
+
* image defaults apply (1920x1080@25). Only specific viewport configurations are
|
|
373
|
+
* supported. The server will reject unsupported combinations. Supported
|
|
374
|
+
* resolutions are: 2560x1440@10, 1920x1080@25, 1920x1200@25, 1440x900@25,
|
|
375
|
+
* 1024x768@60, 1200x800@60 If refresh_rate is not provided, it will be
|
|
376
|
+
* automatically determined from the width and height if they match a supported
|
|
378
377
|
* configuration exactly. Note: Higher resolutions may affect the responsiveness of
|
|
379
378
|
* live view browser
|
|
380
379
|
*/
|
|
@@ -429,7 +428,8 @@ export interface BrowserListResponse {
|
|
|
429
428
|
kiosk_mode?: boolean;
|
|
430
429
|
|
|
431
430
|
/**
|
|
432
|
-
*
|
|
431
|
+
* @deprecated DEPRECATED: Use timeout_seconds (up to 72 hours) and Profiles
|
|
432
|
+
* instead.
|
|
433
433
|
*/
|
|
434
434
|
persistence?: BrowserPersistence;
|
|
435
435
|
|
|
@@ -445,11 +445,11 @@ export interface BrowserListResponse {
|
|
|
445
445
|
|
|
446
446
|
/**
|
|
447
447
|
* Initial browser window size in pixels with optional refresh rate. If omitted,
|
|
448
|
-
* image defaults apply (
|
|
449
|
-
*
|
|
450
|
-
*
|
|
451
|
-
*
|
|
452
|
-
*
|
|
448
|
+
* image defaults apply (1920x1080@25). Only specific viewport configurations are
|
|
449
|
+
* supported. The server will reject unsupported combinations. Supported
|
|
450
|
+
* resolutions are: 2560x1440@10, 1920x1080@25, 1920x1200@25, 1440x900@25,
|
|
451
|
+
* 1024x768@60, 1200x800@60 If refresh_rate is not provided, it will be
|
|
452
|
+
* automatically determined from the width and height if they match a supported
|
|
453
453
|
* configuration exactly. Note: Higher resolutions may affect the responsiveness of
|
|
454
454
|
* live view browser
|
|
455
455
|
*/
|
|
@@ -480,7 +480,8 @@ export interface BrowserCreateParams {
|
|
|
480
480
|
kiosk_mode?: boolean;
|
|
481
481
|
|
|
482
482
|
/**
|
|
483
|
-
*
|
|
483
|
+
* @deprecated DEPRECATED: Use timeout_seconds (up to 72 hours) and Profiles
|
|
484
|
+
* instead.
|
|
484
485
|
*/
|
|
485
486
|
persistence?: BrowserPersistence;
|
|
486
487
|
|
|
@@ -505,21 +506,20 @@ export interface BrowserCreateParams {
|
|
|
505
506
|
|
|
506
507
|
/**
|
|
507
508
|
* The number of seconds of inactivity before the browser session is terminated.
|
|
508
|
-
*
|
|
509
|
-
*
|
|
510
|
-
*
|
|
511
|
-
*
|
|
512
|
-
* specified value.
|
|
509
|
+
* Activity includes CDP connections and live view connections. Defaults to 60
|
|
510
|
+
* seconds. Minimum allowed is 10 seconds. Maximum allowed is 259200 (72 hours). We
|
|
511
|
+
* check for inactivity every 5 seconds, so the actual timeout behavior you will
|
|
512
|
+
* see is +/- 5 seconds around the specified value.
|
|
513
513
|
*/
|
|
514
514
|
timeout_seconds?: number;
|
|
515
515
|
|
|
516
516
|
/**
|
|
517
517
|
* Initial browser window size in pixels with optional refresh rate. If omitted,
|
|
518
|
-
* image defaults apply (
|
|
519
|
-
*
|
|
520
|
-
*
|
|
521
|
-
*
|
|
522
|
-
*
|
|
518
|
+
* image defaults apply (1920x1080@25). Only specific viewport configurations are
|
|
519
|
+
* supported. The server will reject unsupported combinations. Supported
|
|
520
|
+
* resolutions are: 2560x1440@10, 1920x1080@25, 1920x1200@25, 1440x900@25,
|
|
521
|
+
* 1024x768@60, 1200x800@60 If refresh_rate is not provided, it will be
|
|
522
|
+
* automatically determined from the width and height if they match a supported
|
|
523
523
|
* configuration exactly. Note: Higher resolutions may affect the responsiveness of
|
|
524
524
|
* live view browser
|
|
525
525
|
*/
|
package/src/resources/index.ts
CHANGED
package/src/resources/shared.ts
CHANGED
|
@@ -53,11 +53,11 @@ export interface BrowserProfile {
|
|
|
53
53
|
|
|
54
54
|
/**
|
|
55
55
|
* Initial browser window size in pixels with optional refresh rate. If omitted,
|
|
56
|
-
* image defaults apply (
|
|
57
|
-
*
|
|
58
|
-
*
|
|
59
|
-
*
|
|
60
|
-
*
|
|
56
|
+
* image defaults apply (1920x1080@25). Only specific viewport configurations are
|
|
57
|
+
* supported. The server will reject unsupported combinations. Supported
|
|
58
|
+
* resolutions are: 2560x1440@10, 1920x1080@25, 1920x1200@25, 1440x900@25,
|
|
59
|
+
* 1024x768@60, 1200x800@60 If refresh_rate is not provided, it will be
|
|
60
|
+
* automatically determined from the width and height if they match a supported
|
|
61
61
|
* configuration exactly. Note: Higher resolutions may affect the responsiveness of
|
|
62
62
|
* live view browser
|
|
63
63
|
*/
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '0.
|
|
1
|
+
export const VERSION = '0.23.0'; // 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.23.0";
|
|
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.23.0";
|
|
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.23.0'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|