@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.
Files changed (75) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/client.d.mts +9 -1
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +9 -1
  5. package/client.d.ts.map +1 -1
  6. package/client.js +6 -0
  7. package/client.js.map +1 -1
  8. package/client.mjs +6 -0
  9. package/client.mjs.map +1 -1
  10. package/core/pagination.d.mts +14 -0
  11. package/core/pagination.d.mts.map +1 -1
  12. package/core/pagination.d.ts +14 -0
  13. package/core/pagination.d.ts.map +1 -1
  14. package/core/pagination.js +32 -1
  15. package/core/pagination.js.map +1 -1
  16. package/core/pagination.mjs +30 -0
  17. package/core/pagination.mjs.map +1 -1
  18. package/package.json +1 -1
  19. package/resources/audit-logs.d.mts +102 -0
  20. package/resources/audit-logs.d.mts.map +1 -0
  21. package/resources/audit-logs.d.ts +102 -0
  22. package/resources/audit-logs.d.ts.map +1 -0
  23. package/resources/audit-logs.js +20 -0
  24. package/resources/audit-logs.js.map +1 -0
  25. package/resources/audit-logs.mjs +16 -0
  26. package/resources/audit-logs.mjs.map +1 -0
  27. package/resources/auth/auth.d.mts +2 -2
  28. package/resources/auth/auth.d.mts.map +1 -1
  29. package/resources/auth/auth.d.ts +2 -2
  30. package/resources/auth/auth.d.ts.map +1 -1
  31. package/resources/auth/auth.js.map +1 -1
  32. package/resources/auth/auth.mjs.map +1 -1
  33. package/resources/auth/connections.d.mts +80 -1
  34. package/resources/auth/connections.d.mts.map +1 -1
  35. package/resources/auth/connections.d.ts +80 -1
  36. package/resources/auth/connections.d.ts.map +1 -1
  37. package/resources/auth/connections.js +18 -0
  38. package/resources/auth/connections.js.map +1 -1
  39. package/resources/auth/connections.mjs +18 -0
  40. package/resources/auth/connections.mjs.map +1 -1
  41. package/resources/auth/index.d.mts +1 -1
  42. package/resources/auth/index.d.mts.map +1 -1
  43. package/resources/auth/index.d.ts +1 -1
  44. package/resources/auth/index.d.ts.map +1 -1
  45. package/resources/auth/index.js.map +1 -1
  46. package/resources/auth/index.mjs.map +1 -1
  47. package/resources/browser-pools.d.mts +91 -14
  48. package/resources/browser-pools.d.mts.map +1 -1
  49. package/resources/browser-pools.d.ts +91 -14
  50. package/resources/browser-pools.d.ts.map +1 -1
  51. package/resources/browser-pools.js +7 -2
  52. package/resources/browser-pools.js.map +1 -1
  53. package/resources/browser-pools.mjs +7 -2
  54. package/resources/browser-pools.mjs.map +1 -1
  55. package/resources/index.d.mts +1 -0
  56. package/resources/index.d.mts.map +1 -1
  57. package/resources/index.d.ts +1 -0
  58. package/resources/index.d.ts.map +1 -1
  59. package/resources/index.js +3 -1
  60. package/resources/index.js.map +1 -1
  61. package/resources/index.mjs +1 -0
  62. package/resources/index.mjs.map +1 -1
  63. package/src/client.ts +31 -1
  64. package/src/core/pagination.ts +56 -0
  65. package/src/resources/audit-logs.ts +135 -0
  66. package/src/resources/auth/auth.ts +6 -0
  67. package/src/resources/auth/connections.ts +114 -0
  68. package/src/resources/auth/index.ts +3 -0
  69. package/src/resources/browser-pools.ts +97 -14
  70. package/src/resources/index.ts +6 -0
  71. package/src/version.ts +1 -1
  72. package/version.d.mts +1 -1
  73. package/version.d.ts +1 -1
  74. package/version.js +1 -1
  75. 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 the browser session. Provide either id or name. If
240
- * specified, the matching profile will be loaded into the browser session.
241
- * Profiles must be created beforehand.
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?: Shared.BrowserProfile;
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 the browser session. Provide either id or name. If
468
- * specified, the matching profile will be loaded into the browser session.
469
- * Profiles must be created beforehand.
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?: Shared.BrowserProfile;
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 the browser session. Provide either id or name. If
562
- * specified, the matching profile will be loaded into the browser session.
563
- * Profiles must be created beforehand.
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?: Shared.BrowserProfile;
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.
@@ -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.70.0'; // x-release-please-version
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.70.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.70.0";
1
+ export declare const VERSION = "0.71.1";
2
2
  //# sourceMappingURL=version.d.ts.map
package/version.js CHANGED
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.VERSION = void 0;
4
- exports.VERSION = '0.70.0'; // x-release-please-version
4
+ exports.VERSION = '0.71.1'; // x-release-please-version
5
5
  //# sourceMappingURL=version.js.map
package/version.mjs CHANGED
@@ -1,2 +1,2 @@
1
- export const VERSION = '0.70.0'; // x-release-please-version
1
+ export const VERSION = '0.71.1'; // x-release-please-version
2
2
  //# sourceMappingURL=version.mjs.map