@onkernel/sdk 0.51.0 → 0.53.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 +43 -0
- package/client.d.mts.map +1 -1
- package/client.d.ts.map +1 -1
- package/client.js +11 -0
- package/client.js.map +1 -1
- package/client.mjs +11 -0
- package/client.mjs.map +1 -1
- package/internal/types.d.mts +6 -6
- package/internal/types.d.mts.map +1 -1
- package/internal/types.d.ts +6 -6
- package/internal/types.d.ts.map +1 -1
- package/internal/utils/log.d.mts.map +1 -1
- package/internal/utils/log.d.ts.map +1 -1
- package/internal/utils/log.js +2 -0
- package/internal/utils/log.js.map +1 -1
- package/internal/utils/log.mjs +2 -0
- package/internal/utils/log.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/auth/connections.d.mts +10 -6
- package/resources/auth/connections.d.mts.map +1 -1
- package/resources/auth/connections.d.ts +10 -6
- package/resources/auth/connections.d.ts.map +1 -1
- package/resources/browser-pools.d.mts +32 -3
- package/resources/browser-pools.d.mts.map +1 -1
- package/resources/browser-pools.d.ts +32 -3
- package/resources/browser-pools.d.ts.map +1 -1
- package/resources/browsers/browsers.d.mts +28 -0
- package/resources/browsers/browsers.d.mts.map +1 -1
- package/resources/browsers/browsers.d.ts +28 -0
- package/resources/browsers/browsers.d.ts.map +1 -1
- package/resources/browsers/browsers.js.map +1 -1
- package/resources/browsers/browsers.mjs.map +1 -1
- package/resources/credentials.d.mts +3 -3
- package/resources/credentials.d.ts +3 -3
- package/resources/extensions.d.mts +3 -3
- package/resources/extensions.d.ts +3 -3
- package/resources/invocations.d.mts +5 -0
- package/resources/invocations.d.mts.map +1 -1
- package/resources/invocations.d.ts +5 -0
- package/resources/invocations.d.ts.map +1 -1
- package/resources/profiles.d.mts +2 -3
- package/resources/profiles.d.mts.map +1 -1
- package/resources/profiles.d.ts +2 -3
- package/resources/profiles.d.ts.map +1 -1
- package/resources/profiles.js +1 -2
- package/resources/profiles.js.map +1 -1
- package/resources/profiles.mjs +1 -2
- package/resources/profiles.mjs.map +1 -1
- package/resources/projects/projects.d.mts +4 -0
- package/resources/projects/projects.d.mts.map +1 -1
- package/resources/projects/projects.d.ts +4 -0
- package/resources/projects/projects.d.ts.map +1 -1
- package/resources/projects/projects.js.map +1 -1
- package/resources/projects/projects.mjs.map +1 -1
- package/src/client.ts +12 -0
- package/src/internal/types.ts +6 -8
- package/src/internal/utils/log.ts +2 -0
- package/src/resources/auth/connections.ts +10 -6
- package/src/resources/browser-pools.ts +36 -3
- package/src/resources/browsers/browsers.ts +33 -0
- package/src/resources/credentials.ts +3 -3
- package/src/resources/extensions.ts +3 -3
- package/src/resources/invocations.ts +6 -0
- package/src/resources/profiles.ts +2 -3
- package/src/resources/projects/projects.ts +6 -1
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -220,7 +220,7 @@ export namespace BrowserPool {
|
|
|
220
220
|
kiosk_mode?: boolean;
|
|
221
221
|
|
|
222
222
|
/**
|
|
223
|
-
* Optional name for the browser pool. Must be unique within the
|
|
223
|
+
* Optional name for the browser pool. Must be unique within the project.
|
|
224
224
|
*/
|
|
225
225
|
name?: string;
|
|
226
226
|
|
|
@@ -237,6 +237,15 @@ export namespace BrowserPool {
|
|
|
237
237
|
*/
|
|
238
238
|
proxy_id?: string;
|
|
239
239
|
|
|
240
|
+
/**
|
|
241
|
+
* Optional URL to navigate to when a new browser is warmed into the pool.
|
|
242
|
+
* Best-effort: failures to navigate do not fail pool fill. Only applied to
|
|
243
|
+
* newly-warmed browsers — browsers reused via release/acquire keep whatever URL
|
|
244
|
+
* the previous lease left them on. Accepts any URL Chromium can resolve, including
|
|
245
|
+
* chrome:// pages.
|
|
246
|
+
*/
|
|
247
|
+
start_url?: string;
|
|
248
|
+
|
|
240
249
|
/**
|
|
241
250
|
* If true, launches the browser in stealth mode to reduce detection by anti-bot
|
|
242
251
|
* mechanisms.
|
|
@@ -353,6 +362,12 @@ export interface BrowserPoolAcquireResponse {
|
|
|
353
362
|
*/
|
|
354
363
|
proxy_id?: string;
|
|
355
364
|
|
|
365
|
+
/**
|
|
366
|
+
* URL the session was asked to navigate to on creation, if any. Recorded for
|
|
367
|
+
* debugging — navigation is best-effort and may have failed.
|
|
368
|
+
*/
|
|
369
|
+
start_url?: string;
|
|
370
|
+
|
|
356
371
|
/**
|
|
357
372
|
* Session usage metrics.
|
|
358
373
|
*/
|
|
@@ -413,7 +428,7 @@ export interface BrowserPoolCreateParams {
|
|
|
413
428
|
kiosk_mode?: boolean;
|
|
414
429
|
|
|
415
430
|
/**
|
|
416
|
-
* Optional name for the browser pool. Must be unique within the
|
|
431
|
+
* Optional name for the browser pool. Must be unique within the project.
|
|
417
432
|
*/
|
|
418
433
|
name?: string;
|
|
419
434
|
|
|
@@ -430,6 +445,15 @@ export interface BrowserPoolCreateParams {
|
|
|
430
445
|
*/
|
|
431
446
|
proxy_id?: string;
|
|
432
447
|
|
|
448
|
+
/**
|
|
449
|
+
* Optional URL to navigate to when a new browser is warmed into the pool.
|
|
450
|
+
* Best-effort: failures to navigate do not fail pool fill. Only applied to
|
|
451
|
+
* newly-warmed browsers — browsers reused via release/acquire keep whatever URL
|
|
452
|
+
* the previous lease left them on. Accepts any URL Chromium can resolve, including
|
|
453
|
+
* chrome:// pages.
|
|
454
|
+
*/
|
|
455
|
+
start_url?: string;
|
|
456
|
+
|
|
433
457
|
/**
|
|
434
458
|
* If true, launches the browser in stealth mode to reduce detection by anti-bot
|
|
435
459
|
* mechanisms.
|
|
@@ -503,7 +527,7 @@ export interface BrowserPoolUpdateParams {
|
|
|
503
527
|
kiosk_mode?: boolean;
|
|
504
528
|
|
|
505
529
|
/**
|
|
506
|
-
* Optional name for the browser pool. Must be unique within the
|
|
530
|
+
* Optional name for the browser pool. Must be unique within the project.
|
|
507
531
|
*/
|
|
508
532
|
name?: string;
|
|
509
533
|
|
|
@@ -520,6 +544,15 @@ export interface BrowserPoolUpdateParams {
|
|
|
520
544
|
*/
|
|
521
545
|
proxy_id?: string;
|
|
522
546
|
|
|
547
|
+
/**
|
|
548
|
+
* Optional URL to navigate to when a new browser is warmed into the pool.
|
|
549
|
+
* Best-effort: failures to navigate do not fail pool fill. Only applied to
|
|
550
|
+
* newly-warmed browsers — browsers reused via release/acquire keep whatever URL
|
|
551
|
+
* the previous lease left them on. Accepts any URL Chromium can resolve, including
|
|
552
|
+
* chrome:// pages.
|
|
553
|
+
*/
|
|
554
|
+
start_url?: string;
|
|
555
|
+
|
|
523
556
|
/**
|
|
524
557
|
* If true, launches the browser in stealth mode to reduce detection by anti-bot
|
|
525
558
|
* mechanisms.
|
|
@@ -392,6 +392,12 @@ export interface BrowserCreateResponse {
|
|
|
392
392
|
*/
|
|
393
393
|
proxy_id?: string;
|
|
394
394
|
|
|
395
|
+
/**
|
|
396
|
+
* URL the session was asked to navigate to on creation, if any. Recorded for
|
|
397
|
+
* debugging — navigation is best-effort and may have failed.
|
|
398
|
+
*/
|
|
399
|
+
start_url?: string;
|
|
400
|
+
|
|
395
401
|
/**
|
|
396
402
|
* Session usage metrics.
|
|
397
403
|
*/
|
|
@@ -498,6 +504,12 @@ export interface BrowserRetrieveResponse {
|
|
|
498
504
|
*/
|
|
499
505
|
proxy_id?: string;
|
|
500
506
|
|
|
507
|
+
/**
|
|
508
|
+
* URL the session was asked to navigate to on creation, if any. Recorded for
|
|
509
|
+
* debugging — navigation is best-effort and may have failed.
|
|
510
|
+
*/
|
|
511
|
+
start_url?: string;
|
|
512
|
+
|
|
501
513
|
/**
|
|
502
514
|
* Session usage metrics.
|
|
503
515
|
*/
|
|
@@ -604,6 +616,12 @@ export interface BrowserUpdateResponse {
|
|
|
604
616
|
*/
|
|
605
617
|
proxy_id?: string;
|
|
606
618
|
|
|
619
|
+
/**
|
|
620
|
+
* URL the session was asked to navigate to on creation, if any. Recorded for
|
|
621
|
+
* debugging — navigation is best-effort and may have failed.
|
|
622
|
+
*/
|
|
623
|
+
start_url?: string;
|
|
624
|
+
|
|
607
625
|
/**
|
|
608
626
|
* Session usage metrics.
|
|
609
627
|
*/
|
|
@@ -710,6 +728,12 @@ export interface BrowserListResponse {
|
|
|
710
728
|
*/
|
|
711
729
|
proxy_id?: string;
|
|
712
730
|
|
|
731
|
+
/**
|
|
732
|
+
* URL the session was asked to navigate to on creation, if any. Recorded for
|
|
733
|
+
* debugging — navigation is best-effort and may have failed.
|
|
734
|
+
*/
|
|
735
|
+
start_url?: string;
|
|
736
|
+
|
|
713
737
|
/**
|
|
714
738
|
* Session usage metrics.
|
|
715
739
|
*/
|
|
@@ -805,6 +829,15 @@ export interface BrowserCreateParams {
|
|
|
805
829
|
*/
|
|
806
830
|
proxy_id?: string;
|
|
807
831
|
|
|
832
|
+
/**
|
|
833
|
+
* Optional URL to navigate to immediately after the browser is created.
|
|
834
|
+
* Best-effort: failures to navigate do not fail browser creation. Any pre-existing
|
|
835
|
+
* tabs are reduced to a single tab which is then navigated. Accepts any URL
|
|
836
|
+
* Chromium can resolve, including chrome:// pages. Ignored when reusing an
|
|
837
|
+
* existing persistent session.
|
|
838
|
+
*/
|
|
839
|
+
start_url?: string;
|
|
840
|
+
|
|
808
841
|
/**
|
|
809
842
|
* If true, launches the browser in stealth mode to reduce detection by anti-bot
|
|
810
843
|
* mechanisms.
|
|
@@ -122,7 +122,7 @@ export interface CreateCredentialRequest {
|
|
|
122
122
|
domain: string;
|
|
123
123
|
|
|
124
124
|
/**
|
|
125
|
-
* Unique name for the credential within the
|
|
125
|
+
* Unique name for the credential within the project
|
|
126
126
|
*/
|
|
127
127
|
name: string;
|
|
128
128
|
|
|
@@ -166,7 +166,7 @@ export interface Credential {
|
|
|
166
166
|
domain: string;
|
|
167
167
|
|
|
168
168
|
/**
|
|
169
|
-
* Unique name for the credential within the
|
|
169
|
+
* Unique name for the credential within the project
|
|
170
170
|
*/
|
|
171
171
|
name: string;
|
|
172
172
|
|
|
@@ -252,7 +252,7 @@ export interface CredentialCreateParams {
|
|
|
252
252
|
domain: string;
|
|
253
253
|
|
|
254
254
|
/**
|
|
255
|
-
* Unique name for the credential within the
|
|
255
|
+
* Unique name for the credential within the project
|
|
256
256
|
*/
|
|
257
257
|
name: string;
|
|
258
258
|
|
|
@@ -132,7 +132,7 @@ export namespace ExtensionListResponse {
|
|
|
132
132
|
|
|
133
133
|
/**
|
|
134
134
|
* Optional, easier-to-reference name for the extension. Must be unique within the
|
|
135
|
-
*
|
|
135
|
+
* project.
|
|
136
136
|
*/
|
|
137
137
|
name?: string | null;
|
|
138
138
|
}
|
|
@@ -164,7 +164,7 @@ export interface ExtensionUploadResponse {
|
|
|
164
164
|
|
|
165
165
|
/**
|
|
166
166
|
* Optional, easier-to-reference name for the extension. Must be unique within the
|
|
167
|
-
*
|
|
167
|
+
* project.
|
|
168
168
|
*/
|
|
169
169
|
name?: string | null;
|
|
170
170
|
}
|
|
@@ -188,7 +188,7 @@ export interface ExtensionUploadParams {
|
|
|
188
188
|
file: Uploadable;
|
|
189
189
|
|
|
190
190
|
/**
|
|
191
|
-
* Optional unique name within the
|
|
191
|
+
* Optional unique name within the project to reference this extension.
|
|
192
192
|
*/
|
|
193
193
|
name?: string;
|
|
194
194
|
}
|
|
@@ -501,6 +501,12 @@ export namespace InvocationListBrowsersResponse {
|
|
|
501
501
|
*/
|
|
502
502
|
proxy_id?: string;
|
|
503
503
|
|
|
504
|
+
/**
|
|
505
|
+
* URL the session was asked to navigate to on creation, if any. Recorded for
|
|
506
|
+
* debugging — navigation is best-effort and may have failed.
|
|
507
|
+
*/
|
|
508
|
+
start_url?: string;
|
|
509
|
+
|
|
504
510
|
/**
|
|
505
511
|
* Session usage metrics.
|
|
506
512
|
*/
|
|
@@ -49,8 +49,7 @@ export class Profiles extends APIResource {
|
|
|
49
49
|
}
|
|
50
50
|
|
|
51
51
|
/**
|
|
52
|
-
*
|
|
53
|
-
* that we save.
|
|
52
|
+
* Returns a zstd-compressed tar file of the full user-data directory.
|
|
54
53
|
*/
|
|
55
54
|
download(idOrName: string, options?: RequestOptions): APIPromise<Response> {
|
|
56
55
|
return this._client.get(path`/profiles/${idOrName}/download`, {
|
|
@@ -63,7 +62,7 @@ export class Profiles extends APIResource {
|
|
|
63
62
|
|
|
64
63
|
export interface ProfileCreateParams {
|
|
65
64
|
/**
|
|
66
|
-
* Optional name of the profile. Must be unique within the
|
|
65
|
+
* Optional name of the profile. Must be unique within the project.
|
|
67
66
|
*/
|
|
68
67
|
name?: string;
|
|
69
68
|
}
|
|
@@ -155,7 +155,12 @@ export interface ProjectUpdateParams {
|
|
|
155
155
|
status?: 'active' | 'archived';
|
|
156
156
|
}
|
|
157
157
|
|
|
158
|
-
export interface ProjectListParams extends OffsetPaginationParams {
|
|
158
|
+
export interface ProjectListParams extends OffsetPaginationParams {
|
|
159
|
+
/**
|
|
160
|
+
* Case-insensitive substring match against project name
|
|
161
|
+
*/
|
|
162
|
+
query?: string;
|
|
163
|
+
}
|
|
159
164
|
|
|
160
165
|
Projects.Limits = Limits;
|
|
161
166
|
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '0.
|
|
1
|
+
export const VERSION = '0.53.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.53.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.53.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.53.0'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|