@onkernel/sdk 0.149.0 → 0.151.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 +25 -0
- package/client.d.mts +29 -4
- package/client.d.mts.map +1 -1
- package/client.d.ts +29 -4
- package/client.d.ts.map +1 -1
- package/client.js +32 -3
- package/client.js.map +1 -1
- package/client.mjs +32 -3
- package/client.mjs.map +1 -1
- package/lib/credentials/client-auth.d.mts +88 -0
- package/lib/credentials/client-auth.d.mts.map +1 -0
- package/lib/credentials/client-auth.d.ts +88 -0
- package/lib/credentials/client-auth.d.ts.map +1 -0
- package/lib/credentials/client-auth.js +166 -0
- package/lib/credentials/client-auth.js.map +1 -0
- package/lib/credentials/client-auth.mjs +162 -0
- package/lib/credentials/client-auth.mjs.map +1 -0
- package/lib/credentials/credential-chain.d.mts +20 -0
- package/lib/credentials/credential-chain.d.mts.map +1 -0
- package/lib/credentials/credential-chain.d.ts +20 -0
- package/lib/credentials/credential-chain.d.ts.map +1 -0
- package/lib/credentials/credential-chain.js +81 -0
- package/lib/credentials/credential-chain.js.map +1 -0
- package/lib/credentials/credential-chain.mjs +77 -0
- package/lib/credentials/credential-chain.mjs.map +1 -0
- package/lib/credentials/identity-token.d.mts +59 -0
- package/lib/credentials/identity-token.d.mts.map +1 -0
- package/lib/credentials/identity-token.d.ts +59 -0
- package/lib/credentials/identity-token.d.ts.map +1 -0
- package/lib/credentials/identity-token.js +243 -0
- package/lib/credentials/identity-token.js.map +1 -0
- package/lib/credentials/identity-token.mjs +202 -0
- package/lib/credentials/identity-token.mjs.map +1 -0
- package/lib/credentials/oidc-federation.d.mts +65 -0
- package/lib/credentials/oidc-federation.d.mts.map +1 -0
- package/lib/credentials/oidc-federation.d.ts +65 -0
- package/lib/credentials/oidc-federation.d.ts.map +1 -0
- package/lib/credentials/oidc-federation.js +200 -0
- package/lib/credentials/oidc-federation.js.map +1 -0
- package/lib/credentials/oidc-federation.mjs +196 -0
- package/lib/credentials/oidc-federation.mjs.map +1 -0
- package/lib/credentials/token-cache.d.mts +64 -0
- package/lib/credentials/token-cache.d.mts.map +1 -0
- package/lib/credentials/token-cache.d.ts +64 -0
- package/lib/credentials/token-cache.d.ts.map +1 -0
- package/lib/credentials/token-cache.js +147 -0
- package/lib/credentials/token-cache.js.map +1 -0
- package/lib/credentials/token-cache.mjs +143 -0
- package/lib/credentials/token-cache.mjs.map +1 -0
- package/lib/credentials/types.d.mts +126 -0
- package/lib/credentials/types.d.mts.map +1 -0
- package/lib/credentials/types.d.ts +126 -0
- package/lib/credentials/types.d.ts.map +1 -0
- package/lib/credentials/types.js +182 -0
- package/lib/credentials/types.js.map +1 -0
- package/lib/credentials/types.mjs +169 -0
- package/lib/credentials/types.mjs.map +1 -0
- package/lib/credentials.d.mts +6 -0
- package/lib/credentials.d.mts.map +1 -0
- package/lib/credentials.d.ts +6 -0
- package/lib/credentials.d.ts.map +1 -0
- package/lib/credentials.js +19 -0
- package/lib/credentials.js.map +1 -0
- package/lib/credentials.mjs +6 -0
- package/lib/credentials.mjs.map +1 -0
- package/package.json +9 -1
- package/resources/api-keys.d.mts +192 -16
- package/resources/api-keys.d.mts.map +1 -1
- package/resources/api-keys.d.ts +192 -16
- package/resources/api-keys.d.ts.map +1 -1
- package/resources/api-keys.js +19 -7
- package/resources/api-keys.js.map +1 -1
- package/resources/api-keys.mjs +19 -7
- package/resources/api-keys.mjs.map +1 -1
- 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 +16 -2
- package/resources/auth/connections.d.mts.map +1 -1
- package/resources/auth/connections.d.ts +16 -2
- package/resources/auth/connections.d.ts.map +1 -1
- package/resources/auth/context.d.mts +69 -3
- package/resources/auth/context.d.mts.map +1 -1
- package/resources/auth/context.d.ts +69 -3
- package/resources/auth/context.d.ts.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 +41 -6
- package/resources/browser-pools.d.mts.map +1 -1
- package/resources/browser-pools.d.ts +41 -6
- package/resources/browser-pools.d.ts.map +1 -1
- package/resources/browsers/browsers.d.mts +105 -45
- package/resources/browsers/browsers.d.mts.map +1 -1
- package/resources/browsers/browsers.d.ts +105 -45
- 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/browsers/index.d.mts +1 -1
- package/resources/browsers/index.d.mts.map +1 -1
- package/resources/browsers/index.d.ts +1 -1
- package/resources/browsers/index.d.ts.map +1 -1
- package/resources/browsers/index.js.map +1 -1
- package/resources/browsers/index.mjs.map +1 -1
- package/resources/browsers/telemetry.d.mts +4 -4
- package/resources/browsers/telemetry.d.mts.map +1 -1
- package/resources/browsers/telemetry.d.ts +4 -4
- package/resources/browsers/telemetry.d.ts.map +1 -1
- package/resources/index.d.mts +6 -2
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +6 -2
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +9 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +4 -0
- package/resources/index.mjs.map +1 -1
- package/resources/invocations.d.mts +13 -1
- package/resources/invocations.d.mts.map +1 -1
- package/resources/invocations.d.ts +13 -1
- package/resources/invocations.d.ts.map +1 -1
- package/resources/service-accounts.d.mts +73 -0
- package/resources/service-accounts.d.mts.map +1 -0
- package/resources/service-accounts.d.ts +73 -0
- package/resources/service-accounts.d.ts.map +1 -0
- package/resources/service-accounts.js +50 -0
- package/resources/service-accounts.js.map +1 -0
- package/resources/service-accounts.mjs +46 -0
- package/resources/service-accounts.mjs.map +1 -0
- package/resources/vaults/items.d.mts +68 -2
- package/resources/vaults/items.d.mts.map +1 -1
- package/resources/vaults/items.d.ts +68 -2
- package/resources/vaults/items.d.ts.map +1 -1
- package/resources/workload-identity-authentication-events.d.mts +36 -0
- package/resources/workload-identity-authentication-events.d.mts.map +1 -0
- package/resources/workload-identity-authentication-events.d.ts +36 -0
- package/resources/workload-identity-authentication-events.d.ts.map +1 -0
- package/resources/workload-identity-authentication-events.js +16 -0
- package/resources/workload-identity-authentication-events.js.map +1 -0
- package/resources/workload-identity-authentication-events.mjs +12 -0
- package/resources/workload-identity-authentication-events.mjs.map +1 -0
- package/resources/workload-identity-federation-rules.d.mts +194 -0
- package/resources/workload-identity-federation-rules.d.mts.map +1 -0
- package/resources/workload-identity-federation-rules.d.ts +194 -0
- package/resources/workload-identity-federation-rules.d.ts.map +1 -0
- package/resources/workload-identity-federation-rules.js +47 -0
- package/resources/workload-identity-federation-rules.js.map +1 -0
- package/resources/workload-identity-federation-rules.mjs +43 -0
- package/resources/workload-identity-federation-rules.mjs.map +1 -0
- package/resources/workload-identity-issuers.d.mts +169 -0
- package/resources/workload-identity-issuers.d.mts.map +1 -0
- package/resources/workload-identity-issuers.d.ts +169 -0
- package/resources/workload-identity-issuers.d.ts.map +1 -0
- package/resources/workload-identity-issuers.js +54 -0
- package/resources/workload-identity-issuers.js.map +1 -0
- package/resources/workload-identity-issuers.mjs +50 -0
- package/resources/workload-identity-issuers.mjs.map +1 -0
- package/src/client.ts +134 -1
- package/src/lib/credentials/client-auth.ts +194 -0
- package/src/lib/credentials/credential-chain.ts +95 -0
- package/src/lib/credentials/identity-token.ts +284 -0
- package/src/lib/credentials/oidc-federation.ts +304 -0
- package/src/lib/credentials/token-cache.ts +172 -0
- package/src/lib/credentials/types.ts +267 -0
- package/src/lib/credentials.ts +30 -0
- package/src/resources/api-keys.ts +217 -15
- package/src/resources/auth/auth.ts +6 -2
- package/src/resources/auth/connections.ts +17 -2
- package/src/resources/auth/context.ts +81 -3
- package/src/resources/auth/index.ts +1 -1
- package/src/resources/browser-pools.ts +46 -6
- package/src/resources/browsers/browsers.ts +115 -44
- package/src/resources/browsers/index.ts +1 -0
- package/src/resources/browsers/telemetry.ts +4 -3
- package/src/resources/index.ts +42 -0
- package/src/resources/invocations.ts +15 -1
- package/src/resources/service-accounts.ts +128 -0
- package/src/resources/vaults/items.ts +80 -2
- package/src/resources/workload-identity-authentication-events.ts +72 -0
- package/src/resources/workload-identity-federation-rules.ts +314 -0
- package/src/resources/workload-identity-issuers.ts +273 -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
|
@@ -418,6 +418,16 @@ export interface BrowserAllowlistState {
|
|
|
418
418
|
mutation_id?: string;
|
|
419
419
|
}
|
|
420
420
|
|
|
421
|
+
/**
|
|
422
|
+
* Automatic CAPTCHA solving configuration.
|
|
423
|
+
*/
|
|
424
|
+
export interface BrowserCaptchaSolver {
|
|
425
|
+
/**
|
|
426
|
+
* Whether the browser automatically solves CAPTCHAs.
|
|
427
|
+
*/
|
|
428
|
+
enabled: boolean;
|
|
429
|
+
}
|
|
430
|
+
|
|
421
431
|
/**
|
|
422
432
|
* Overrides for browser attributes presented to websites.
|
|
423
433
|
*/
|
|
@@ -425,7 +435,7 @@ export interface BrowserFingerprint {
|
|
|
425
435
|
/**
|
|
426
436
|
* Operating system the browser reports to websites.
|
|
427
437
|
*/
|
|
428
|
-
os: 'macos';
|
|
438
|
+
os: 'linux' | 'macos';
|
|
429
439
|
}
|
|
430
440
|
|
|
431
441
|
export interface BrowserLocation {
|
|
@@ -683,10 +693,10 @@ export interface BrowserProxy {
|
|
|
683
693
|
id?: string;
|
|
684
694
|
|
|
685
695
|
/**
|
|
686
|
-
* Proxy egress mode. direct forces no proxy
|
|
687
|
-
*
|
|
688
|
-
*
|
|
689
|
-
*
|
|
696
|
+
* Proxy egress mode. direct forces no proxy. default uses Kernel's default stealth
|
|
697
|
+
* proxy for browsers with CAPTCHA solving enabled, including stealth browsers, or
|
|
698
|
+
* direct egress otherwise. default is primarily useful on browser update to
|
|
699
|
+
* restore the browser default after selected-proxy egress.
|
|
690
700
|
*/
|
|
691
701
|
mode?: BrowserProxyMode;
|
|
692
702
|
|
|
@@ -698,16 +708,15 @@ export interface BrowserProxy {
|
|
|
698
708
|
|
|
699
709
|
/**
|
|
700
710
|
* Browser proxy configuration. Provide exactly one of mode, id, or name; an empty
|
|
701
|
-
* object is invalid. Set mode to direct for no proxy
|
|
702
|
-
*
|
|
703
|
-
* stealth
|
|
704
|
-
*
|
|
705
|
-
*
|
|
706
|
-
*
|
|
707
|
-
*
|
|
708
|
-
*
|
|
709
|
-
*
|
|
710
|
-
* and non-stealth browsers use direct egress. When omitted on update, the current
|
|
711
|
+
* object is invalid. Set mode to direct for no proxy. Set mode to default to use
|
|
712
|
+
* Kernel's default stealth proxy for browsers with CAPTCHA solving enabled,
|
|
713
|
+
* including stealth browsers, or direct egress otherwise. Select id or name to use
|
|
714
|
+
* that proxy. The selected proxy must be in the same project as the browser. Names
|
|
715
|
+
* must match exactly one active proxy; use id for stable references. Proxy
|
|
716
|
+
* configuration changes only egress and does not change CAPTCHA solver behavior. A
|
|
717
|
+
* browser using mode=direct keeps the CAPTCHA solver if it was enabled. When proxy
|
|
718
|
+
* is omitted on browser creation, stealth browsers use Kernel's default stealth
|
|
719
|
+
* proxy and other browsers use direct egress. When omitted on update, the current
|
|
711
720
|
* configuration is unchanged.
|
|
712
721
|
*/
|
|
713
722
|
export interface BrowserProxyConfig {
|
|
@@ -717,10 +726,10 @@ export interface BrowserProxyConfig {
|
|
|
717
726
|
id?: string;
|
|
718
727
|
|
|
719
728
|
/**
|
|
720
|
-
* Proxy egress mode. direct forces no proxy
|
|
721
|
-
*
|
|
722
|
-
*
|
|
723
|
-
*
|
|
729
|
+
* Proxy egress mode. direct forces no proxy. default uses Kernel's default stealth
|
|
730
|
+
* proxy for browsers with CAPTCHA solving enabled, including stealth browsers, or
|
|
731
|
+
* direct egress otherwise. default is primarily useful on browser update to
|
|
732
|
+
* restore the browser default after selected-proxy egress.
|
|
724
733
|
*/
|
|
725
734
|
mode?: BrowserProxyMode;
|
|
726
735
|
|
|
@@ -731,10 +740,10 @@ export interface BrowserProxyConfig {
|
|
|
731
740
|
}
|
|
732
741
|
|
|
733
742
|
/**
|
|
734
|
-
* Proxy egress mode. direct forces no proxy
|
|
735
|
-
*
|
|
736
|
-
*
|
|
737
|
-
*
|
|
743
|
+
* Proxy egress mode. direct forces no proxy. default uses Kernel's default stealth
|
|
744
|
+
* proxy for browsers with CAPTCHA solving enabled, including stealth browsers, or
|
|
745
|
+
* direct egress otherwise. default is primarily useful on browser update to
|
|
746
|
+
* restore the browser default after selected-proxy egress.
|
|
738
747
|
*/
|
|
739
748
|
export type BrowserProxyMode = 'direct' | 'default';
|
|
740
749
|
|
|
@@ -915,6 +924,11 @@ export interface VaultReference {
|
|
|
915
924
|
}
|
|
916
925
|
|
|
917
926
|
export interface BrowserCreateResponse {
|
|
927
|
+
/**
|
|
928
|
+
* Automatic CAPTCHA solving configuration.
|
|
929
|
+
*/
|
|
930
|
+
captcha_solver: BrowserCaptchaSolver;
|
|
931
|
+
|
|
918
932
|
/**
|
|
919
933
|
* Websocket URL for Chrome DevTools Protocol connections to the browser session
|
|
920
934
|
*/
|
|
@@ -946,7 +960,10 @@ export interface BrowserCreateResponse {
|
|
|
946
960
|
session_id: string;
|
|
947
961
|
|
|
948
962
|
/**
|
|
949
|
-
* Whether the browser session
|
|
963
|
+
* @deprecated Whether the browser session has CAPTCHA solving enabled, in which
|
|
964
|
+
* case proxy.mode=default uses Kernel's default stealth proxy. A browser created
|
|
965
|
+
* with only captcha_solver reports true with proxy.mode=direct. Deprecated in
|
|
966
|
+
* favor of captcha_solver and proxy.
|
|
950
967
|
*/
|
|
951
968
|
stealth: boolean;
|
|
952
969
|
|
|
@@ -983,6 +1000,12 @@ export interface BrowserCreateResponse {
|
|
|
983
1000
|
*/
|
|
984
1001
|
deleted_at?: string;
|
|
985
1002
|
|
|
1003
|
+
/**
|
|
1004
|
+
* Fingerprint applied to this browser session. Omitted when the session was
|
|
1005
|
+
* created without one.
|
|
1006
|
+
*/
|
|
1007
|
+
fingerprint?: BrowserFingerprint;
|
|
1008
|
+
|
|
986
1009
|
/**
|
|
987
1010
|
* Whether GPU acceleration is enabled for the browser session (only supported for
|
|
988
1011
|
* headful sessions).
|
|
@@ -1138,6 +1161,11 @@ export namespace BrowserCreateResponse {
|
|
|
1138
1161
|
}
|
|
1139
1162
|
|
|
1140
1163
|
export interface BrowserRetrieveResponse {
|
|
1164
|
+
/**
|
|
1165
|
+
* Automatic CAPTCHA solving configuration.
|
|
1166
|
+
*/
|
|
1167
|
+
captcha_solver: BrowserCaptchaSolver;
|
|
1168
|
+
|
|
1141
1169
|
/**
|
|
1142
1170
|
* Websocket URL for Chrome DevTools Protocol connections to the browser session
|
|
1143
1171
|
*/
|
|
@@ -1169,7 +1197,10 @@ export interface BrowserRetrieveResponse {
|
|
|
1169
1197
|
session_id: string;
|
|
1170
1198
|
|
|
1171
1199
|
/**
|
|
1172
|
-
* Whether the browser session
|
|
1200
|
+
* @deprecated Whether the browser session has CAPTCHA solving enabled, in which
|
|
1201
|
+
* case proxy.mode=default uses Kernel's default stealth proxy. A browser created
|
|
1202
|
+
* with only captcha_solver reports true with proxy.mode=direct. Deprecated in
|
|
1203
|
+
* favor of captcha_solver and proxy.
|
|
1173
1204
|
*/
|
|
1174
1205
|
stealth: boolean;
|
|
1175
1206
|
|
|
@@ -1206,6 +1237,12 @@ export interface BrowserRetrieveResponse {
|
|
|
1206
1237
|
*/
|
|
1207
1238
|
deleted_at?: string;
|
|
1208
1239
|
|
|
1240
|
+
/**
|
|
1241
|
+
* Fingerprint applied to this browser session. Omitted when the session was
|
|
1242
|
+
* created without one.
|
|
1243
|
+
*/
|
|
1244
|
+
fingerprint?: BrowserFingerprint;
|
|
1245
|
+
|
|
1209
1246
|
/**
|
|
1210
1247
|
* Whether GPU acceleration is enabled for the browser session (only supported for
|
|
1211
1248
|
* headful sessions).
|
|
@@ -1361,6 +1398,11 @@ export namespace BrowserRetrieveResponse {
|
|
|
1361
1398
|
}
|
|
1362
1399
|
|
|
1363
1400
|
export interface BrowserUpdateResponse {
|
|
1401
|
+
/**
|
|
1402
|
+
* Automatic CAPTCHA solving configuration.
|
|
1403
|
+
*/
|
|
1404
|
+
captcha_solver: BrowserCaptchaSolver;
|
|
1405
|
+
|
|
1364
1406
|
/**
|
|
1365
1407
|
* Websocket URL for Chrome DevTools Protocol connections to the browser session
|
|
1366
1408
|
*/
|
|
@@ -1392,7 +1434,10 @@ export interface BrowserUpdateResponse {
|
|
|
1392
1434
|
session_id: string;
|
|
1393
1435
|
|
|
1394
1436
|
/**
|
|
1395
|
-
* Whether the browser session
|
|
1437
|
+
* @deprecated Whether the browser session has CAPTCHA solving enabled, in which
|
|
1438
|
+
* case proxy.mode=default uses Kernel's default stealth proxy. A browser created
|
|
1439
|
+
* with only captcha_solver reports true with proxy.mode=direct. Deprecated in
|
|
1440
|
+
* favor of captcha_solver and proxy.
|
|
1396
1441
|
*/
|
|
1397
1442
|
stealth: boolean;
|
|
1398
1443
|
|
|
@@ -1429,6 +1474,12 @@ export interface BrowserUpdateResponse {
|
|
|
1429
1474
|
*/
|
|
1430
1475
|
deleted_at?: string;
|
|
1431
1476
|
|
|
1477
|
+
/**
|
|
1478
|
+
* Fingerprint applied to this browser session. Omitted when the session was
|
|
1479
|
+
* created without one.
|
|
1480
|
+
*/
|
|
1481
|
+
fingerprint?: BrowserFingerprint;
|
|
1482
|
+
|
|
1432
1483
|
/**
|
|
1433
1484
|
* Whether GPU acceleration is enabled for the browser session (only supported for
|
|
1434
1485
|
* headful sessions).
|
|
@@ -1584,6 +1635,11 @@ export namespace BrowserUpdateResponse {
|
|
|
1584
1635
|
}
|
|
1585
1636
|
|
|
1586
1637
|
export interface BrowserListResponse {
|
|
1638
|
+
/**
|
|
1639
|
+
* Automatic CAPTCHA solving configuration.
|
|
1640
|
+
*/
|
|
1641
|
+
captcha_solver: BrowserCaptchaSolver;
|
|
1642
|
+
|
|
1587
1643
|
/**
|
|
1588
1644
|
* Websocket URL for Chrome DevTools Protocol connections to the browser session
|
|
1589
1645
|
*/
|
|
@@ -1615,7 +1671,10 @@ export interface BrowserListResponse {
|
|
|
1615
1671
|
session_id: string;
|
|
1616
1672
|
|
|
1617
1673
|
/**
|
|
1618
|
-
* Whether the browser session
|
|
1674
|
+
* @deprecated Whether the browser session has CAPTCHA solving enabled, in which
|
|
1675
|
+
* case proxy.mode=default uses Kernel's default stealth proxy. A browser created
|
|
1676
|
+
* with only captcha_solver reports true with proxy.mode=direct. Deprecated in
|
|
1677
|
+
* favor of captcha_solver and proxy.
|
|
1619
1678
|
*/
|
|
1620
1679
|
stealth: boolean;
|
|
1621
1680
|
|
|
@@ -1652,6 +1711,12 @@ export interface BrowserListResponse {
|
|
|
1652
1711
|
*/
|
|
1653
1712
|
deleted_at?: string;
|
|
1654
1713
|
|
|
1714
|
+
/**
|
|
1715
|
+
* Fingerprint applied to this browser session. Omitted when the session was
|
|
1716
|
+
* created without one.
|
|
1717
|
+
*/
|
|
1718
|
+
fingerprint?: BrowserFingerprint;
|
|
1719
|
+
|
|
1655
1720
|
/**
|
|
1656
1721
|
* Whether GPU acceleration is enabled for the browser session (only supported for
|
|
1657
1722
|
* headful sessions).
|
|
@@ -1832,6 +1897,13 @@ export interface BrowserCurlResponse {
|
|
|
1832
1897
|
}
|
|
1833
1898
|
|
|
1834
1899
|
export interface BrowserCreateParams {
|
|
1900
|
+
/**
|
|
1901
|
+
* Automatic CAPTCHA solving. Disabled by default. Enabling it does not select a
|
|
1902
|
+
* proxy: when proxy is omitted, the browser uses direct egress unless
|
|
1903
|
+
* stealth=true.
|
|
1904
|
+
*/
|
|
1905
|
+
captcha_solver?: BrowserCaptchaSolver;
|
|
1906
|
+
|
|
1835
1907
|
/**
|
|
1836
1908
|
* Custom Chrome enterprise policy overrides applied to this browser session. Keys
|
|
1837
1909
|
* are Chrome enterprise policy names; values must match their expected types.
|
|
@@ -1848,8 +1920,9 @@ export interface BrowserCreateParams {
|
|
|
1848
1920
|
/**
|
|
1849
1921
|
* Closed beta: contact Kernel to enable fingerprint overrides for your
|
|
1850
1922
|
* organization. Overrides browser attributes presented to websites for this
|
|
1851
|
-
* session.
|
|
1852
|
-
* gpu=false, and default memory. Omit to preserve the default
|
|
1923
|
+
* session. Supports linux and macos and requires captcha_solver.enabled=true,
|
|
1924
|
+
* headless=false, gpu=false, and default memory. Omit to preserve the default
|
|
1925
|
+
* browser behavior.
|
|
1853
1926
|
*/
|
|
1854
1927
|
fingerprint?: BrowserFingerprint;
|
|
1855
1928
|
|
|
@@ -1910,12 +1983,11 @@ export interface BrowserCreateParams {
|
|
|
1910
1983
|
|
|
1911
1984
|
/**
|
|
1912
1985
|
* Proxy configuration for the browser session. Cannot be combined with proxy_id.
|
|
1913
|
-
* Omit to use
|
|
1914
|
-
*
|
|
1915
|
-
*
|
|
1916
|
-
*
|
|
1917
|
-
*
|
|
1918
|
-
* stealth. Proxy selection does not change stealth or CAPTCHA solver behavior.
|
|
1986
|
+
* Omit to use direct egress, or Kernel's default stealth proxy when stealth=true.
|
|
1987
|
+
* Set mode to direct to force direct egress. Set mode to default to use Kernel's
|
|
1988
|
+
* default stealth proxy when captcha_solver.enabled=true, or direct egress
|
|
1989
|
+
* otherwise. Select id or name to use that proxy. Proxy selection does not change
|
|
1990
|
+
* CAPTCHA solver behavior.
|
|
1919
1991
|
*/
|
|
1920
1992
|
proxy?: BrowserProxyConfig;
|
|
1921
1993
|
|
|
@@ -1945,11 +2017,10 @@ export interface BrowserCreateParams {
|
|
|
1945
2017
|
start_url?: string;
|
|
1946
2018
|
|
|
1947
2019
|
/**
|
|
1948
|
-
* If true,
|
|
1949
|
-
*
|
|
1950
|
-
*
|
|
1951
|
-
*
|
|
1952
|
-
* CAPTCHA solver.
|
|
2020
|
+
* @deprecated If true, enables the CAPTCHA solver and, when proxy is omitted, uses
|
|
2021
|
+
* Kernel's default stealth proxy. Defaults to false. Equivalent to
|
|
2022
|
+
* captcha_solver.enabled=true with proxy.mode=default. Cannot be combined with
|
|
2023
|
+
* captcha_solver.enabled=false. Deprecated in favor of captcha_solver and proxy.
|
|
1953
2024
|
*/
|
|
1954
2025
|
stealth?: boolean;
|
|
1955
2026
|
|
|
@@ -2164,10 +2235,9 @@ export interface BrowserUpdateParams {
|
|
|
2164
2235
|
/**
|
|
2165
2236
|
* Proxy configuration to apply. Omit to leave the current configuration unchanged.
|
|
2166
2237
|
* Cannot be combined with proxy_id or disable_default_proxy. Set mode to direct to
|
|
2167
|
-
* switch to direct egress
|
|
2168
|
-
*
|
|
2169
|
-
*
|
|
2170
|
-
* proxy does not change stealth or CAPTCHA solver behavior.
|
|
2238
|
+
* switch to direct egress. Set mode to default to use Kernel's default stealth
|
|
2239
|
+
* proxy for a browser with CAPTCHA solving enabled, or direct egress otherwise.
|
|
2240
|
+
* Updating proxy does not change CAPTCHA solver behavior.
|
|
2171
2241
|
*/
|
|
2172
2242
|
proxy?: BrowserProxyConfig;
|
|
2173
2243
|
|
|
@@ -2462,6 +2532,7 @@ Browsers.Webmcp = Webmcp;
|
|
|
2462
2532
|
export declare namespace Browsers {
|
|
2463
2533
|
export {
|
|
2464
2534
|
type BrowserAllowlistState as BrowserAllowlistState,
|
|
2535
|
+
type BrowserCaptchaSolver as BrowserCaptchaSolver,
|
|
2465
2536
|
type BrowserFingerprint as BrowserFingerprint,
|
|
2466
2537
|
type BrowserLocation as BrowserLocation,
|
|
2467
2538
|
type BrowserLocationRequest as BrowserLocationRequest,
|
|
@@ -4470,9 +4470,9 @@ export namespace BrowserProxyErrorEvent {
|
|
|
4470
4470
|
* network_policy_denied, provider_blacklisted, provider_unreachable,
|
|
4471
4471
|
* provider_rejected, origin_tls_timeout, origin_response_incomplete,
|
|
4472
4472
|
* proxy_unavailable, restricted_route_unavailable, upstream_timeout,
|
|
4473
|
-
* upstream_dns_failure, upstream_connect_failed, payment_window_expired
|
|
4474
|
-
* value the browser image does not recognize is
|
|
4475
|
-
* header value in raw_code.
|
|
4473
|
+
* upstream_dns_failure, upstream_connect_failed, payment_window_expired,
|
|
4474
|
+
* payment_reveal_refused. A header value the browser image does not recognize is
|
|
4475
|
+
* reported as unknown, with the header value in raw_code.
|
|
4476
4476
|
*/
|
|
4477
4477
|
code:
|
|
4478
4478
|
| 'destination_blocked'
|
|
@@ -4489,6 +4489,7 @@ export namespace BrowserProxyErrorEvent {
|
|
|
4489
4489
|
| 'upstream_dns_failure'
|
|
4490
4490
|
| 'upstream_connect_failed'
|
|
4491
4491
|
| 'payment_window_expired'
|
|
4492
|
+
| 'payment_reveal_refused'
|
|
4492
4493
|
| 'unknown';
|
|
4493
4494
|
|
|
4494
4495
|
/**
|
package/src/resources/index.ts
CHANGED
|
@@ -4,6 +4,7 @@ export * from './shared';
|
|
|
4
4
|
export {
|
|
5
5
|
APIKeys,
|
|
6
6
|
type APIKey,
|
|
7
|
+
type APIKeyPrincipal,
|
|
7
8
|
type CreatedAPIKey,
|
|
8
9
|
type APIKeyCreateParams,
|
|
9
10
|
type APIKeyRetrieveParams,
|
|
@@ -41,6 +42,7 @@ export {
|
|
|
41
42
|
export {
|
|
42
43
|
Browsers,
|
|
43
44
|
type BrowserAllowlistState,
|
|
45
|
+
type BrowserCaptchaSolver,
|
|
44
46
|
type BrowserFingerprint,
|
|
45
47
|
type BrowserLocation,
|
|
46
48
|
type BrowserLocationRequest,
|
|
@@ -229,6 +231,15 @@ export {
|
|
|
229
231
|
type Warning,
|
|
230
232
|
type SearchCreateParams,
|
|
231
233
|
} from './search/search';
|
|
234
|
+
export {
|
|
235
|
+
ServiceAccounts,
|
|
236
|
+
type ServiceAccount,
|
|
237
|
+
type ServiceAccountConfig,
|
|
238
|
+
type ServiceAccountCreateParams,
|
|
239
|
+
type ServiceAccountUpdateParams,
|
|
240
|
+
type ServiceAccountListParams,
|
|
241
|
+
type ServiceAccountsOffsetPagination,
|
|
242
|
+
} from './service-accounts';
|
|
232
243
|
export {
|
|
233
244
|
Tasks,
|
|
234
245
|
type Task,
|
|
@@ -255,3 +266,34 @@ export {
|
|
|
255
266
|
type VaultUpsertParams,
|
|
256
267
|
type VaultsOffsetPagination,
|
|
257
268
|
} from './vaults/vaults';
|
|
269
|
+
export {
|
|
270
|
+
WorkloadIdentityAuthenticationEvents,
|
|
271
|
+
type WorkloadIdentityAuthenticationEvent,
|
|
272
|
+
type WorkloadIdentityAuthenticationEventListParams,
|
|
273
|
+
type WorkloadIdentityAuthenticationEventsOffsetPagination,
|
|
274
|
+
} from './workload-identity-authentication-events';
|
|
275
|
+
export {
|
|
276
|
+
WorkloadIdentityFederationRules,
|
|
277
|
+
type WorkloadIdentityAuthorization,
|
|
278
|
+
type WorkloadIdentityFederationRule,
|
|
279
|
+
type WorkloadIdentityFederationRuleConfig,
|
|
280
|
+
type WorkloadIdentityMatch,
|
|
281
|
+
type WorkloadIdentityTarget,
|
|
282
|
+
type WorkloadIdentityFederationRuleCreateParams,
|
|
283
|
+
type WorkloadIdentityFederationRuleUpdateParams,
|
|
284
|
+
type WorkloadIdentityFederationRuleListParams,
|
|
285
|
+
type WorkloadIdentityFederationRulesOffsetPagination,
|
|
286
|
+
} from './workload-identity-federation-rules';
|
|
287
|
+
export {
|
|
288
|
+
WorkloadIdentityIssuers,
|
|
289
|
+
type WorkloadIdentityIssuer,
|
|
290
|
+
type WorkloadIdentityIssuerConfig,
|
|
291
|
+
type WorkloadIdentityIssuerKeyCheck,
|
|
292
|
+
type WorkloadIdentityKeySource,
|
|
293
|
+
type WorkloadIdentityPresetType,
|
|
294
|
+
type WorkloadIdentityTokenValidation,
|
|
295
|
+
type WorkloadIdentityIssuerCreateParams,
|
|
296
|
+
type WorkloadIdentityIssuerUpdateParams,
|
|
297
|
+
type WorkloadIdentityIssuerListParams,
|
|
298
|
+
type WorkloadIdentityIssuersOffsetPagination,
|
|
299
|
+
} from './workload-identity-issuers';
|
|
@@ -448,6 +448,11 @@ export interface InvocationListBrowsersResponse {
|
|
|
448
448
|
|
|
449
449
|
export namespace InvocationListBrowsersResponse {
|
|
450
450
|
export interface Browser {
|
|
451
|
+
/**
|
|
452
|
+
* Automatic CAPTCHA solving configuration.
|
|
453
|
+
*/
|
|
454
|
+
captcha_solver: BrowsersAPI.BrowserCaptchaSolver;
|
|
455
|
+
|
|
451
456
|
/**
|
|
452
457
|
* Websocket URL for Chrome DevTools Protocol connections to the browser session
|
|
453
458
|
*/
|
|
@@ -479,7 +484,10 @@ export namespace InvocationListBrowsersResponse {
|
|
|
479
484
|
session_id: string;
|
|
480
485
|
|
|
481
486
|
/**
|
|
482
|
-
* Whether the browser session
|
|
487
|
+
* @deprecated Whether the browser session has CAPTCHA solving enabled, in which
|
|
488
|
+
* case proxy.mode=default uses Kernel's default stealth proxy. A browser created
|
|
489
|
+
* with only captcha_solver reports true with proxy.mode=direct. Deprecated in
|
|
490
|
+
* favor of captcha_solver and proxy.
|
|
483
491
|
*/
|
|
484
492
|
stealth: boolean;
|
|
485
493
|
|
|
@@ -516,6 +524,12 @@ export namespace InvocationListBrowsersResponse {
|
|
|
516
524
|
*/
|
|
517
525
|
deleted_at?: string;
|
|
518
526
|
|
|
527
|
+
/**
|
|
528
|
+
* Fingerprint applied to this browser session. Omitted when the session was
|
|
529
|
+
* created without one.
|
|
530
|
+
*/
|
|
531
|
+
fingerprint?: BrowsersAPI.BrowserFingerprint;
|
|
532
|
+
|
|
519
533
|
/**
|
|
520
534
|
* Whether GPU acceleration is enabled for the browser session (only supported for
|
|
521
535
|
* headful sessions).
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../core/resource';
|
|
4
|
+
import { APIPromise } from '../core/api-promise';
|
|
5
|
+
import { OffsetPagination, type OffsetPaginationParams, PagePromise } from '../core/pagination';
|
|
6
|
+
import { buildHeaders } from '../internal/headers';
|
|
7
|
+
import { RequestOptions } from '../internal/request-options';
|
|
8
|
+
import { path } from '../internal/utils/path';
|
|
9
|
+
|
|
10
|
+
export class ServiceAccounts extends APIResource {
|
|
11
|
+
/**
|
|
12
|
+
* Organization credential administrators only. No external namespace-ownership or
|
|
13
|
+
* staff approval is required. New trust resources default disabled.
|
|
14
|
+
*/
|
|
15
|
+
create(body: ServiceAccountCreateParams, options?: RequestOptions): APIPromise<ServiceAccount> {
|
|
16
|
+
return this._client.post('/org/service_accounts', { body, ...options });
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* Any signed-in member of the organization can read this. API keys cannot.
|
|
21
|
+
*/
|
|
22
|
+
retrieve(id: string, options?: RequestOptions): APIPromise<ServiceAccount> {
|
|
23
|
+
return this._client.get(path`/org/service_accounts/${id}`, options);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* Update a service account
|
|
28
|
+
*/
|
|
29
|
+
update(id: string, body: ServiceAccountUpdateParams, options?: RequestOptions): APIPromise<ServiceAccount> {
|
|
30
|
+
return this._client.patch(path`/org/service_accounts/${id}`, { body, ...options });
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* Any signed-in member of the organization can read this. API keys cannot.
|
|
35
|
+
*/
|
|
36
|
+
list(
|
|
37
|
+
query: ServiceAccountListParams | null | undefined = {},
|
|
38
|
+
options?: RequestOptions,
|
|
39
|
+
): PagePromise<ServiceAccountsOffsetPagination, ServiceAccount> {
|
|
40
|
+
return this._client.getAPIList('/org/service_accounts', OffsetPagination<ServiceAccount>, {
|
|
41
|
+
query,
|
|
42
|
+
...options,
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* Retains history and invalidates associated authority within the documented
|
|
48
|
+
* status bound. Does not delete created browser resources.
|
|
49
|
+
*/
|
|
50
|
+
delete(id: string, options?: RequestOptions): APIPromise<void> {
|
|
51
|
+
return this._client.delete(path`/org/service_accounts/${id}`, {
|
|
52
|
+
...options,
|
|
53
|
+
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
54
|
+
});
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export type ServiceAccountsOffsetPagination = OffsetPagination<ServiceAccount>;
|
|
59
|
+
|
|
60
|
+
export interface ServiceAccount {
|
|
61
|
+
id: string;
|
|
62
|
+
|
|
63
|
+
archived_at: string | null;
|
|
64
|
+
|
|
65
|
+
created_at: string;
|
|
66
|
+
|
|
67
|
+
created_by_user_id: string | null;
|
|
68
|
+
|
|
69
|
+
description: string;
|
|
70
|
+
|
|
71
|
+
/**
|
|
72
|
+
* When one of the account's API keys last authenticated or one of its rules last
|
|
73
|
+
* issued a token. Recorded at most once every 15 minutes, so it can lag. Null if
|
|
74
|
+
* the account has never been used.
|
|
75
|
+
*/
|
|
76
|
+
last_used_at: string | null;
|
|
77
|
+
|
|
78
|
+
name: string;
|
|
79
|
+
|
|
80
|
+
org_id: string;
|
|
81
|
+
|
|
82
|
+
/**
|
|
83
|
+
* Authority revision. Cosmetic updates do not widen permissions.
|
|
84
|
+
*/
|
|
85
|
+
security_version: number;
|
|
86
|
+
|
|
87
|
+
updated_at: string;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
export interface ServiceAccountConfig {
|
|
91
|
+
name: string;
|
|
92
|
+
|
|
93
|
+
description?: string;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
export interface ServiceAccountCreateParams {
|
|
97
|
+
name: string;
|
|
98
|
+
|
|
99
|
+
description?: string;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
export interface ServiceAccountUpdateParams {
|
|
103
|
+
expected_version: number;
|
|
104
|
+
|
|
105
|
+
description?: string;
|
|
106
|
+
|
|
107
|
+
name?: string;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
export interface ServiceAccountListParams extends OffsetPaginationParams {
|
|
111
|
+
/**
|
|
112
|
+
* Case-insensitive substring match against name or description; exact ID match.
|
|
113
|
+
*/
|
|
114
|
+
query?: string;
|
|
115
|
+
|
|
116
|
+
status?: 'active' | 'archived' | 'all';
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
export declare namespace ServiceAccounts {
|
|
120
|
+
export {
|
|
121
|
+
type ServiceAccount as ServiceAccount,
|
|
122
|
+
type ServiceAccountConfig as ServiceAccountConfig,
|
|
123
|
+
type ServiceAccountsOffsetPagination as ServiceAccountsOffsetPagination,
|
|
124
|
+
type ServiceAccountCreateParams as ServiceAccountCreateParams,
|
|
125
|
+
type ServiceAccountUpdateParams as ServiceAccountUpdateParams,
|
|
126
|
+
type ServiceAccountListParams as ServiceAccountListParams,
|
|
127
|
+
};
|
|
128
|
+
}
|
|
@@ -434,8 +434,13 @@ export interface ArmPasskeyVaultItemOperationRequest {
|
|
|
434
434
|
* merchant origin. Once approval has been requested, browser_id and page_url are
|
|
435
435
|
* ignored and authorize only re-checks the request. Browser and checkout
|
|
436
436
|
* inspection errors occur before any provider request and can be retried once the
|
|
437
|
-
* browser is on the checkout page. Kernel cards
|
|
438
|
-
* page_url
|
|
437
|
+
* browser is on the checkout page. Kernel cards accept browser_id but not
|
|
438
|
+
* page_url: browser_id names the browser that will pay, which must have this vault
|
|
439
|
+
* attached. For cards whose cardholder enters a fresh CVC on an encrypting card
|
|
440
|
+
* form, Kernel tries to route that browser through the card vault's proxy as soon
|
|
441
|
+
* as the CVC is entered, so authorize before the browser opens the payment step
|
|
442
|
+
* and retrieve the card until fill is advertised before opening it. Other cards,
|
|
443
|
+
* and any card whose routing fails, are routed at their first fill.
|
|
439
444
|
*/
|
|
440
445
|
export interface AuthorizeVaultItemOperationRequest {
|
|
441
446
|
type: 'authorize';
|
|
@@ -638,6 +643,79 @@ export namespace CardVaultItemSpec {
|
|
|
638
643
|
* whole spec, so an update that omits it removes it.
|
|
639
644
|
*/
|
|
640
645
|
checkout_origin?: string;
|
|
646
|
+
|
|
647
|
+
/**
|
|
648
|
+
* Discount as a positive number of minor currency units; 500 takes 5.00 off.
|
|
649
|
+
* Requires line_items.
|
|
650
|
+
*/
|
|
651
|
+
discount?: number;
|
|
652
|
+
|
|
653
|
+
/**
|
|
654
|
+
* What the next checkout buys, listed on the cardholder's approval screen above
|
|
655
|
+
* the total. Display only: the cardholder approves amount, or the amount the
|
|
656
|
+
* processor charges, and a line total that disagrees with it changes nothing they
|
|
657
|
+
* pay. Amounts are in minor units of currency. Sent only for checkouts without a
|
|
658
|
+
* preparation; omitted, the approval screen shows the merchant and amount alone.
|
|
659
|
+
* Card updates replace the whole spec, so set the cart again for each checkout.
|
|
660
|
+
*/
|
|
661
|
+
line_items?: Array<AgentCardCardVaultItemSpec.LineItem>;
|
|
662
|
+
|
|
663
|
+
/**
|
|
664
|
+
* Shipping charge in minor currency units. Requires line_items.
|
|
665
|
+
*/
|
|
666
|
+
shipping?: number;
|
|
667
|
+
|
|
668
|
+
/**
|
|
669
|
+
* Cart subtotal in minor currency units. Requires line_items.
|
|
670
|
+
*/
|
|
671
|
+
subtotal?: number;
|
|
672
|
+
|
|
673
|
+
/**
|
|
674
|
+
* Tax in minor currency units. Requires line_items.
|
|
675
|
+
*/
|
|
676
|
+
tax?: number;
|
|
677
|
+
}
|
|
678
|
+
|
|
679
|
+
export namespace AgentCardCardVaultItemSpec {
|
|
680
|
+
/**
|
|
681
|
+
* One product on the AgentCard approval screen.
|
|
682
|
+
*/
|
|
683
|
+
export interface LineItem {
|
|
684
|
+
quantity: number;
|
|
685
|
+
|
|
686
|
+
/**
|
|
687
|
+
* The product's name as the store shows it.
|
|
688
|
+
*/
|
|
689
|
+
title: string;
|
|
690
|
+
|
|
691
|
+
/**
|
|
692
|
+
* The line's total in minor currency units. Shown instead of unit_amount times
|
|
693
|
+
* quantity when both are set; a line with neither shows without a price.
|
|
694
|
+
*/
|
|
695
|
+
amount?: number;
|
|
696
|
+
|
|
697
|
+
/**
|
|
698
|
+
* Shown beside the title.
|
|
699
|
+
*/
|
|
700
|
+
brand?: string;
|
|
701
|
+
|
|
702
|
+
/**
|
|
703
|
+
* https URL of the product's picture. AgentCard shows pictures only from the image
|
|
704
|
+
* hosts it allows and shows the line without one otherwise.
|
|
705
|
+
*/
|
|
706
|
+
image_url?: string;
|
|
707
|
+
|
|
708
|
+
/**
|
|
709
|
+
* The options the shopper chose, such as "Size S · Pink".
|
|
710
|
+
*/
|
|
711
|
+
options?: string;
|
|
712
|
+
|
|
713
|
+
/**
|
|
714
|
+
* Price of one, in minor currency units. The line shows unit_amount times
|
|
715
|
+
* quantity.
|
|
716
|
+
*/
|
|
717
|
+
unit_amount?: number;
|
|
718
|
+
}
|
|
641
719
|
}
|
|
642
720
|
}
|
|
643
721
|
|