@onkernel/sdk 0.70.0 → 0.71.1
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 +17 -0
- package/client.d.mts +9 -1
- package/client.d.mts.map +1 -1
- package/client.d.ts +9 -1
- package/client.d.ts.map +1 -1
- package/client.js +6 -0
- package/client.js.map +1 -1
- package/client.mjs +6 -0
- package/client.mjs.map +1 -1
- package/core/pagination.d.mts +14 -0
- package/core/pagination.d.mts.map +1 -1
- package/core/pagination.d.ts +14 -0
- package/core/pagination.d.ts.map +1 -1
- package/core/pagination.js +32 -1
- package/core/pagination.js.map +1 -1
- package/core/pagination.mjs +30 -0
- package/core/pagination.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/audit-logs.d.mts +102 -0
- package/resources/audit-logs.d.mts.map +1 -0
- package/resources/audit-logs.d.ts +102 -0
- package/resources/audit-logs.d.ts.map +1 -0
- package/resources/audit-logs.js +20 -0
- package/resources/audit-logs.js.map +1 -0
- package/resources/audit-logs.mjs +16 -0
- package/resources/audit-logs.mjs.map +1 -0
- package/resources/auth/auth.d.mts +2 -2
- package/resources/auth/auth.d.mts.map +1 -1
- package/resources/auth/auth.d.ts +2 -2
- package/resources/auth/auth.d.ts.map +1 -1
- package/resources/auth/auth.js.map +1 -1
- package/resources/auth/auth.mjs.map +1 -1
- package/resources/auth/connections.d.mts +80 -1
- package/resources/auth/connections.d.mts.map +1 -1
- package/resources/auth/connections.d.ts +80 -1
- package/resources/auth/connections.d.ts.map +1 -1
- package/resources/auth/connections.js +18 -0
- package/resources/auth/connections.js.map +1 -1
- package/resources/auth/connections.mjs +18 -0
- package/resources/auth/connections.mjs.map +1 -1
- package/resources/auth/index.d.mts +1 -1
- package/resources/auth/index.d.mts.map +1 -1
- package/resources/auth/index.d.ts +1 -1
- package/resources/auth/index.d.ts.map +1 -1
- package/resources/auth/index.js.map +1 -1
- package/resources/auth/index.mjs.map +1 -1
- package/resources/browser-pools.d.mts +91 -14
- package/resources/browser-pools.d.mts.map +1 -1
- package/resources/browser-pools.d.ts +91 -14
- package/resources/browser-pools.d.ts.map +1 -1
- package/resources/browser-pools.js +7 -2
- package/resources/browser-pools.js.map +1 -1
- package/resources/browser-pools.mjs +7 -2
- package/resources/browser-pools.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/src/client.ts +31 -1
- package/src/core/pagination.ts +56 -0
- package/src/resources/audit-logs.ts +135 -0
- package/src/resources/auth/auth.ts +6 -0
- package/src/resources/auth/connections.ts +114 -0
- package/src/resources/auth/index.ts +3 -0
- package/src/resources/browser-pools.ts +97 -14
- package/src/resources/index.ts +6 -0
- 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
|
@@ -6,6 +6,7 @@ export {
|
|
|
6
6
|
type LoginResponse,
|
|
7
7
|
type ManagedAuth,
|
|
8
8
|
type ManagedAuthCreateRequest,
|
|
9
|
+
type ManagedAuthTimelineEvent,
|
|
9
10
|
type ManagedAuthUpdateRequest,
|
|
10
11
|
type SubmitFieldsRequest,
|
|
11
12
|
type SubmitFieldsResponse,
|
|
@@ -15,5 +16,7 @@ export {
|
|
|
15
16
|
type ConnectionListParams,
|
|
16
17
|
type ConnectionLoginParams,
|
|
17
18
|
type ConnectionSubmitParams,
|
|
19
|
+
type ConnectionTimelineParams,
|
|
18
20
|
type ManagedAuthsOffsetPagination,
|
|
21
|
+
type ManagedAuthTimelineEventsOffsetPagination,
|
|
19
22
|
} from './connections';
|
|
@@ -15,7 +15,10 @@ import { path } from '../internal/utils/path';
|
|
|
15
15
|
*/
|
|
16
16
|
export class BrowserPools extends APIResource {
|
|
17
17
|
/**
|
|
18
|
-
* Create a new browser pool with the specified configuration and size.
|
|
18
|
+
* Create a new browser pool with the specified configuration and size. Pooled
|
|
19
|
+
* browsers load their profile read-only: any save_changes on the profile is
|
|
20
|
+
* ignored (not rejected), so pooled browsers never persist changes back to the
|
|
21
|
+
* profile.
|
|
19
22
|
*
|
|
20
23
|
* @example
|
|
21
24
|
* ```ts
|
|
@@ -43,7 +46,9 @@ export class BrowserPools extends APIResource {
|
|
|
43
46
|
}
|
|
44
47
|
|
|
45
48
|
/**
|
|
46
|
-
* Updates the configuration used to create browsers in the pool.
|
|
49
|
+
* Updates the configuration used to create browsers in the pool. As with creation,
|
|
50
|
+
* save_changes on the pool profile is ignored (not rejected); pooled browsers
|
|
51
|
+
* never persist changes back to the profile.
|
|
47
52
|
*
|
|
48
53
|
* @example
|
|
49
54
|
* ```ts
|
|
@@ -236,11 +241,14 @@ export namespace BrowserPool {
|
|
|
236
241
|
name?: string;
|
|
237
242
|
|
|
238
243
|
/**
|
|
239
|
-
* Profile selection for
|
|
240
|
-
*
|
|
241
|
-
*
|
|
244
|
+
* Profile selection for browsers in a pool. Provide either id or name. The
|
|
245
|
+
* matching profile is loaded into every browser in the pool. Profiles must be
|
|
246
|
+
* created beforehand. Unlike single browser sessions, pools load the profile
|
|
247
|
+
* read-only and never persist changes back to it, so save_changes is omitted here.
|
|
248
|
+
* Any save_changes value sent on a pool profile is silently ignored rather than
|
|
249
|
+
* rejected, so callers reusing a single-session profile object will not error.
|
|
242
250
|
*/
|
|
243
|
-
profile?:
|
|
251
|
+
profile?: BrowserPoolConfig.Profile;
|
|
244
252
|
|
|
245
253
|
/**
|
|
246
254
|
* Optional proxy to associate to the browser session. Must reference a proxy in
|
|
@@ -285,6 +293,29 @@ export namespace BrowserPool {
|
|
|
285
293
|
*/
|
|
286
294
|
viewport?: Shared.BrowserViewport;
|
|
287
295
|
}
|
|
296
|
+
|
|
297
|
+
export namespace BrowserPoolConfig {
|
|
298
|
+
/**
|
|
299
|
+
* Profile selection for browsers in a pool. Provide either id or name. The
|
|
300
|
+
* matching profile is loaded into every browser in the pool. Profiles must be
|
|
301
|
+
* created beforehand. Unlike single browser sessions, pools load the profile
|
|
302
|
+
* read-only and never persist changes back to it, so save_changes is omitted here.
|
|
303
|
+
* Any save_changes value sent on a pool profile is silently ignored rather than
|
|
304
|
+
* rejected, so callers reusing a single-session profile object will not error.
|
|
305
|
+
*/
|
|
306
|
+
export interface Profile {
|
|
307
|
+
/**
|
|
308
|
+
* Profile ID to load for browsers in this pool
|
|
309
|
+
*/
|
|
310
|
+
id?: string;
|
|
311
|
+
|
|
312
|
+
/**
|
|
313
|
+
* Profile name to load for browsers in this pool (instead of id). Must be 1-255
|
|
314
|
+
* characters, using letters, numbers, dots, underscores, or hyphens.
|
|
315
|
+
*/
|
|
316
|
+
name?: string;
|
|
317
|
+
}
|
|
318
|
+
}
|
|
288
319
|
}
|
|
289
320
|
|
|
290
321
|
export interface BrowserPoolAcquireResponse {
|
|
@@ -464,11 +495,14 @@ export interface BrowserPoolCreateParams {
|
|
|
464
495
|
name?: string;
|
|
465
496
|
|
|
466
497
|
/**
|
|
467
|
-
* Profile selection for
|
|
468
|
-
*
|
|
469
|
-
*
|
|
498
|
+
* Profile selection for browsers in a pool. Provide either id or name. The
|
|
499
|
+
* matching profile is loaded into every browser in the pool. Profiles must be
|
|
500
|
+
* created beforehand. Unlike single browser sessions, pools load the profile
|
|
501
|
+
* read-only and never persist changes back to it, so save_changes is omitted here.
|
|
502
|
+
* Any save_changes value sent on a pool profile is silently ignored rather than
|
|
503
|
+
* rejected, so callers reusing a single-session profile object will not error.
|
|
470
504
|
*/
|
|
471
|
-
profile?:
|
|
505
|
+
profile?: BrowserPoolCreateParams.Profile;
|
|
472
506
|
|
|
473
507
|
/**
|
|
474
508
|
* Optional proxy to associate to the browser session. Must reference a proxy in
|
|
@@ -514,6 +548,29 @@ export interface BrowserPoolCreateParams {
|
|
|
514
548
|
viewport?: Shared.BrowserViewport;
|
|
515
549
|
}
|
|
516
550
|
|
|
551
|
+
export namespace BrowserPoolCreateParams {
|
|
552
|
+
/**
|
|
553
|
+
* Profile selection for browsers in a pool. Provide either id or name. The
|
|
554
|
+
* matching profile is loaded into every browser in the pool. Profiles must be
|
|
555
|
+
* created beforehand. Unlike single browser sessions, pools load the profile
|
|
556
|
+
* read-only and never persist changes back to it, so save_changes is omitted here.
|
|
557
|
+
* Any save_changes value sent on a pool profile is silently ignored rather than
|
|
558
|
+
* rejected, so callers reusing a single-session profile object will not error.
|
|
559
|
+
*/
|
|
560
|
+
export interface Profile {
|
|
561
|
+
/**
|
|
562
|
+
* Profile ID to load for browsers in this pool
|
|
563
|
+
*/
|
|
564
|
+
id?: string;
|
|
565
|
+
|
|
566
|
+
/**
|
|
567
|
+
* Profile name to load for browsers in this pool (instead of id). Must be 1-255
|
|
568
|
+
* characters, using letters, numbers, dots, underscores, or hyphens.
|
|
569
|
+
*/
|
|
570
|
+
name?: string;
|
|
571
|
+
}
|
|
572
|
+
}
|
|
573
|
+
|
|
517
574
|
export interface BrowserPoolUpdateParams {
|
|
518
575
|
/**
|
|
519
576
|
* Custom Chrome enterprise policy overrides applied to all browsers in this pool.
|
|
@@ -558,11 +615,14 @@ export interface BrowserPoolUpdateParams {
|
|
|
558
615
|
name?: string;
|
|
559
616
|
|
|
560
617
|
/**
|
|
561
|
-
* Profile selection for
|
|
562
|
-
*
|
|
563
|
-
*
|
|
618
|
+
* Profile selection for browsers in a pool. Provide either id or name. The
|
|
619
|
+
* matching profile is loaded into every browser in the pool. Profiles must be
|
|
620
|
+
* created beforehand. Unlike single browser sessions, pools load the profile
|
|
621
|
+
* read-only and never persist changes back to it, so save_changes is omitted here.
|
|
622
|
+
* Any save_changes value sent on a pool profile is silently ignored rather than
|
|
623
|
+
* rejected, so callers reusing a single-session profile object will not error.
|
|
564
624
|
*/
|
|
565
|
-
profile?:
|
|
625
|
+
profile?: BrowserPoolUpdateParams.Profile;
|
|
566
626
|
|
|
567
627
|
/**
|
|
568
628
|
* Optional proxy to associate to the browser session. Must reference a proxy in
|
|
@@ -615,6 +675,29 @@ export interface BrowserPoolUpdateParams {
|
|
|
615
675
|
viewport?: Shared.BrowserViewport;
|
|
616
676
|
}
|
|
617
677
|
|
|
678
|
+
export namespace BrowserPoolUpdateParams {
|
|
679
|
+
/**
|
|
680
|
+
* Profile selection for browsers in a pool. Provide either id or name. The
|
|
681
|
+
* matching profile is loaded into every browser in the pool. Profiles must be
|
|
682
|
+
* created beforehand. Unlike single browser sessions, pools load the profile
|
|
683
|
+
* read-only and never persist changes back to it, so save_changes is omitted here.
|
|
684
|
+
* Any save_changes value sent on a pool profile is silently ignored rather than
|
|
685
|
+
* rejected, so callers reusing a single-session profile object will not error.
|
|
686
|
+
*/
|
|
687
|
+
export interface Profile {
|
|
688
|
+
/**
|
|
689
|
+
* Profile ID to load for browsers in this pool
|
|
690
|
+
*/
|
|
691
|
+
id?: string;
|
|
692
|
+
|
|
693
|
+
/**
|
|
694
|
+
* Profile name to load for browsers in this pool (instead of id). Must be 1-255
|
|
695
|
+
* characters, using letters, numbers, dots, underscores, or hyphens.
|
|
696
|
+
*/
|
|
697
|
+
name?: string;
|
|
698
|
+
}
|
|
699
|
+
}
|
|
700
|
+
|
|
618
701
|
export interface BrowserPoolListParams extends OffsetPaginationParams {
|
|
619
702
|
/**
|
|
620
703
|
* Search browser pools by name or ID.
|
package/src/resources/index.ts
CHANGED
|
@@ -18,6 +18,12 @@ export {
|
|
|
18
18
|
type AppListParams,
|
|
19
19
|
type AppListResponsesOffsetPagination,
|
|
20
20
|
} from './apps';
|
|
21
|
+
export {
|
|
22
|
+
AuditLogs,
|
|
23
|
+
type AuditLogEntry,
|
|
24
|
+
type AuditLogListParams,
|
|
25
|
+
type AuditLogEntriesPageTokenPagination,
|
|
26
|
+
} from './audit-logs';
|
|
21
27
|
export { Auth } from './auth/auth';
|
|
22
28
|
export {
|
|
23
29
|
BrowserPools,
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '0.
|
|
1
|
+
export const VERSION = '0.71.1'; // 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.71.1";
|
|
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.71.1";
|
|
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.71.1'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|