@onkernel/sdk 0.156.0 → 0.158.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 +22 -0
- package/README.md +2 -3
- package/client.d.mts +2 -2
- package/client.d.mts.map +1 -1
- package/client.d.ts +2 -2
- package/client.d.ts.map +1 -1
- package/client.js +8 -15
- package/client.js.map +1 -1
- package/client.mjs +9 -16
- package/client.mjs.map +1 -1
- package/core/streaming.d.mts.map +1 -1
- package/core/streaming.d.ts.map +1 -1
- package/core/streaming.js +1 -2
- package/core/streaming.js.map +1 -1
- package/core/streaming.mjs +1 -2
- package/core/streaming.mjs.map +1 -1
- package/internal/parse.d.mts.map +1 -1
- package/internal/parse.d.ts.map +1 -1
- package/internal/parse.js +0 -3
- package/internal/parse.js.map +1 -1
- package/internal/parse.mjs +0 -3
- package/internal/parse.mjs.map +1 -1
- package/internal/utils/log.d.mts +9 -14
- package/internal/utils/log.d.mts.map +1 -1
- package/internal/utils/log.d.ts +9 -14
- package/internal/utils/log.d.ts.map +1 -1
- package/internal/utils/log.js +13 -25
- package/internal/utils/log.js.map +1 -1
- package/internal/utils/log.mjs +10 -23
- package/internal/utils/log.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/auth/connections.d.mts +5 -1
- package/resources/auth/connections.d.mts.map +1 -1
- package/resources/auth/connections.d.ts +5 -1
- package/resources/auth/connections.d.ts.map +1 -1
- package/resources/auth/connections.js +5 -1
- package/resources/auth/connections.js.map +1 -1
- package/resources/auth/connections.mjs +5 -1
- package/resources/auth/connections.mjs.map +1 -1
- package/resources/auth/context.d.mts +3 -2
- package/resources/auth/context.d.mts.map +1 -1
- package/resources/auth/context.d.ts +3 -2
- package/resources/auth/context.d.ts.map +1 -1
- package/resources/browser-pools.d.mts +5 -0
- package/resources/browser-pools.d.mts.map +1 -1
- package/resources/browser-pools.d.ts +5 -0
- package/resources/browser-pools.d.ts.map +1 -1
- package/resources/browser-pools.js +5 -0
- package/resources/browser-pools.js.map +1 -1
- package/resources/browser-pools.mjs +5 -0
- package/resources/browser-pools.mjs.map +1 -1
- package/resources/browsers/browsers.d.mts +56 -12
- package/resources/browsers/browsers.d.mts.map +1 -1
- package/resources/browsers/browsers.d.ts +56 -12
- package/resources/browsers/browsers.d.ts.map +1 -1
- package/resources/browsers/browsers.js +16 -2
- package/resources/browsers/browsers.js.map +1 -1
- package/resources/browsers/browsers.mjs +16 -2
- 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/deployments.d.mts +12 -8
- package/resources/deployments.d.mts.map +1 -1
- package/resources/deployments.d.ts +12 -8
- package/resources/deployments.d.ts.map +1 -1
- package/resources/index.d.mts +1 -1
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +1 -1
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs.map +1 -1
- package/resources/profiles.d.mts +9 -1
- package/resources/profiles.d.mts.map +1 -1
- package/resources/profiles.d.ts +9 -1
- package/resources/profiles.d.ts.map +1 -1
- package/resources/profiles.js +9 -1
- package/resources/profiles.js.map +1 -1
- package/resources/profiles.mjs +9 -1
- package/resources/profiles.mjs.map +1 -1
- package/resources/proxies.d.mts +11 -10
- package/resources/proxies.d.mts.map +1 -1
- package/resources/proxies.d.ts +11 -10
- package/resources/proxies.d.ts.map +1 -1
- package/resources/vaults/items.d.mts +25 -23
- package/resources/vaults/items.d.mts.map +1 -1
- package/resources/vaults/items.d.ts +25 -23
- package/resources/vaults/items.d.ts.map +1 -1
- package/src/client.ts +11 -15
- package/src/core/streaming.ts +1 -2
- package/src/internal/parse.ts +0 -4
- package/src/internal/utils/log.ts +13 -38
- package/src/resources/auth/connections.ts +5 -1
- package/src/resources/auth/context.ts +3 -2
- package/src/resources/browser-pools.ts +5 -0
- package/src/resources/browsers/browsers.ts +60 -11
- package/src/resources/browsers/index.ts +1 -0
- package/src/resources/deployments.ts +12 -8
- package/src/resources/index.ts +1 -0
- package/src/resources/profiles.ts +9 -1
- package/src/resources/proxies.ts +11 -10
- package/src/resources/vaults/items.ts +25 -23
- 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
|
@@ -543,10 +543,12 @@ export interface DeploymentCreateParams {
|
|
|
543
543
|
* It cannot include api_keys:issue_beyond_expiry. Exact resource IDs must exist.
|
|
544
544
|
* The policy outlives the deploying credential; each invocation gets a fresh key
|
|
545
545
|
* valid for 65 minutes from issuance. When the caller has a policy, omission
|
|
546
|
-
* grants
|
|
547
|
-
*
|
|
548
|
-
*
|
|
549
|
-
*
|
|
546
|
+
* grants project-wide invocations:write for runtime callbacks, plus project-wide
|
|
547
|
+
* browsers:create, browsers:use, and browsers:delete for each of those the caller
|
|
548
|
+
* holds. A supplied policy must explicitly include invocations:write; it is never
|
|
549
|
+
* added automatically. To keep callback-only behavior, send a runtime_policy with
|
|
550
|
+
* just that grant. Callers without a policy keep an unrestricted runtime key when
|
|
551
|
+
* this field is omitted. Scoped invokers must cover the runtime policy.
|
|
550
552
|
*/
|
|
551
553
|
runtime_policy?: DeploymentCreateParams.RuntimePolicy;
|
|
552
554
|
|
|
@@ -570,10 +572,12 @@ export namespace DeploymentCreateParams {
|
|
|
570
572
|
* It cannot include api_keys:issue_beyond_expiry. Exact resource IDs must exist.
|
|
571
573
|
* The policy outlives the deploying credential; each invocation gets a fresh key
|
|
572
574
|
* valid for 65 minutes from issuance. When the caller has a policy, omission
|
|
573
|
-
* grants
|
|
574
|
-
*
|
|
575
|
-
*
|
|
576
|
-
*
|
|
575
|
+
* grants project-wide invocations:write for runtime callbacks, plus project-wide
|
|
576
|
+
* browsers:create, browsers:use, and browsers:delete for each of those the caller
|
|
577
|
+
* holds. A supplied policy must explicitly include invocations:write; it is never
|
|
578
|
+
* added automatically. To keep callback-only behavior, send a runtime_policy with
|
|
579
|
+
* just that grant. Callers without a policy keep an unrestricted runtime key when
|
|
580
|
+
* this field is omitted. Scoped invokers must cover the runtime policy.
|
|
577
581
|
*/
|
|
578
582
|
export interface RuntimePolicy {
|
|
579
583
|
/**
|
package/src/resources/index.ts
CHANGED
|
@@ -15,7 +15,9 @@ import { path } from '../internal/utils/path';
|
|
|
15
15
|
export class Profiles extends APIResource {
|
|
16
16
|
/**
|
|
17
17
|
* Create a browser profile that can be used to load state into future browser
|
|
18
|
-
* sessions.
|
|
18
|
+
* sessions. Returns 409 with code `profile_storage_unavailable` if the profile
|
|
19
|
+
* would be stored in the organization's own storage bucket and that storage is
|
|
20
|
+
* paused.
|
|
19
21
|
*
|
|
20
22
|
* @example
|
|
21
23
|
* ```ts
|
|
@@ -103,6 +105,12 @@ export class Profiles extends APIResource {
|
|
|
103
105
|
* `format=tar` to decompress current profiles during download; legacy profiles
|
|
104
106
|
* remain JSON.
|
|
105
107
|
*
|
|
108
|
+
* Returns 409 with code `profile_storage_unavailable` if the profile is stored in
|
|
109
|
+
* the organization's own storage bucket and that storage is paused or Kernel can't
|
|
110
|
+
* reach it, or the object there doesn't start with a profile archive's header or
|
|
111
|
+
* is larger than 512 MiB. With `format=tar`, it also returns 409 if the archive
|
|
112
|
+
* can't be decompressed; without it, the archive is returned as stored.
|
|
113
|
+
*
|
|
106
114
|
* @example
|
|
107
115
|
* ```ts
|
|
108
116
|
* const response = await client.profiles.download(
|
package/src/resources/proxies.ts
CHANGED
|
@@ -1123,16 +1123,17 @@ export interface ProxyCheckParams {
|
|
|
1123
1123
|
/**
|
|
1124
1124
|
* An optional URL to test reachability against. If provided, the proxy check will
|
|
1125
1125
|
* test connectivity to this URL instead of the default test URLs. Only HTTP and
|
|
1126
|
-
* HTTPS schemes are allowed
|
|
1127
|
-
*
|
|
1128
|
-
*
|
|
1129
|
-
*
|
|
1130
|
-
*
|
|
1131
|
-
*
|
|
1132
|
-
*
|
|
1133
|
-
*
|
|
1134
|
-
*
|
|
1135
|
-
*
|
|
1126
|
+
* HTTPS schemes are allowed. The hostname is resolved by the proxy, not by Kernel;
|
|
1127
|
+
* a URL that names an IP address directly must use a public one. For ISP proxies,
|
|
1128
|
+
* the exit IP is stable, so a successful check reliably indicates that subsequent
|
|
1129
|
+
* browser sessions will reach the target site with the same IP. For residential
|
|
1130
|
+
* and mobile proxies, the exit node changes between requests, so a successful
|
|
1131
|
+
* check validates proxy configuration but does not guarantee that a subsequent
|
|
1132
|
+
* browser session will use the same exit IP or reach the same site — it is useful
|
|
1133
|
+
* for verifying credentials and connectivity, not for predicting site-specific
|
|
1134
|
+
* behavior. When provided, the check result does not update the proxy's health
|
|
1135
|
+
* status, since a failure may indicate a problem with the target site rather than
|
|
1136
|
+
* the proxy itself.
|
|
1136
1137
|
*/
|
|
1137
1138
|
url?: string;
|
|
1138
1139
|
}
|
|
@@ -1652,13 +1652,14 @@ export interface KernelCardState {
|
|
|
1652
1652
|
* security-code collection on alias-mode purchases through the spend_approval
|
|
1653
1653
|
* action; an unused link expires after 30 minutes. Alias-mode cards become ready
|
|
1654
1654
|
* after collection and expire at the temporary security-code alias deadline, by
|
|
1655
|
-
* default five minutes later
|
|
1656
|
-
*
|
|
1657
|
-
*
|
|
1658
|
-
*
|
|
1659
|
-
*
|
|
1660
|
-
*
|
|
1661
|
-
*
|
|
1655
|
+
* default five or fifteen minutes later, depending on the card's storage backend.
|
|
1656
|
+
* An expired alias purchase requires a new card. recovery_required means
|
|
1657
|
+
* verification, approving the purchase or issuing the one-time code has an
|
|
1658
|
+
* unresolved outcome. A server-classified initial attestation failure before
|
|
1659
|
+
* intent dispatch may advertise restart_verification to prepare a fresh local
|
|
1660
|
+
* verification link; this does not approve spending or replay any provider
|
|
1661
|
+
* request. Unclassified legacy recovery and uncertain intent creation cannot
|
|
1662
|
+
* restart. Kernel never approves again or issues another code for the item
|
|
1662
1663
|
* automatically. To continue, delete this card and create a new purchase; the
|
|
1663
1664
|
* cardholder approves the new purchase separately. Recovery while reporting a
|
|
1664
1665
|
* merchant transaction cannot be deleted and must be reconciled with support. When
|
|
@@ -1731,22 +1732,23 @@ export namespace KernelCardState {
|
|
|
1731
1732
|
* issuing the code. For supported cards whose network cannot be enrolled for
|
|
1732
1733
|
* agentic tokens, authorize returns pending_authorization with a spend_approval
|
|
1733
1734
|
* action to collect a fresh security code in a hosted field. Once collected, the
|
|
1734
|
-
* card is ready and can be filled before its expires_at, by default five
|
|
1735
|
-
* after collection
|
|
1736
|
-
*
|
|
1737
|
-
*
|
|
1738
|
-
*
|
|
1739
|
-
*
|
|
1740
|
-
* supplies, such as a virtual card from
|
|
1741
|
-
* method, is ready on creation, and
|
|
1742
|
-
* encrypted, never returns them, and
|
|
1743
|
-
* registrable domain (state.domains) is
|
|
1744
|
-
* Fill does not consume it. From
|
|
1745
|
-
* filled; Kernel deletes its stored
|
|
1746
|
-
* card, its wallet or its vault
|
|
1747
|
-
*
|
|
1748
|
-
*
|
|
1749
|
-
*
|
|
1735
|
+
* card is ready and can be filled before its expires_at, by default five or
|
|
1736
|
+
* fifteen minutes after collection, depending on the card's storage backend. An
|
|
1737
|
+
* expired card requires a new purchase. Fill types those details on merchant_url's
|
|
1738
|
+
* origin. The amount, merchant_url and merchant_country are recorded but do not
|
|
1739
|
+
* restrict payment requests sent by the browser. Card updates are not supported;
|
|
1740
|
+
* delete and create a new item instead. With single_use_card the item is instead a
|
|
1741
|
+
* single-use card whose details the caller supplies, such as a virtual card from
|
|
1742
|
+
* its issuer. It is not funded by a payment method, is ready on creation, and
|
|
1743
|
+
* supports only fill: Kernel stores the details encrypted, never returns them, and
|
|
1744
|
+
* fills them on any https page whose registrable domain (state.domains) is
|
|
1745
|
+
* merchant_url's, including its subdomains. Fill does not consume it. From
|
|
1746
|
+
* expires_at it is expired and can no longer be filled; Kernel deletes its stored
|
|
1747
|
+
* details shortly after expires_at. Deleting the card, its wallet or its vault
|
|
1748
|
+
* deletes them immediately. amount, currency and the merchant fields are recorded
|
|
1749
|
+
* but not enforced. Repeating the identical request returns the existing card; any
|
|
1750
|
+
* other request with the same key returns 409, as does repeating it once the
|
|
1751
|
+
* expired card's details have been deleted.
|
|
1750
1752
|
*/
|
|
1751
1753
|
export interface KernelCardVaultItemSpec {
|
|
1752
1754
|
/**
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '0.
|
|
1
|
+
export const VERSION = '0.158.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.158.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.158.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.158.0'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|