@onkernel/sdk 0.112.0 → 0.114.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 +20 -0
- package/package.json +1 -1
- package/resources/auth/connections.d.mts +113 -1
- package/resources/auth/connections.d.mts.map +1 -1
- package/resources/auth/connections.d.ts +113 -1
- package/resources/auth/connections.d.ts.map +1 -1
- package/resources/browser-pools.d.mts +59 -0
- package/resources/browser-pools.d.mts.map +1 -1
- package/resources/browser-pools.d.ts +59 -0
- package/resources/browser-pools.d.ts.map +1 -1
- package/resources/browsers/browsers.d.mts +32 -2
- package/resources/browsers/browsers.d.mts.map +1 -1
- package/resources/browsers/browsers.d.ts +32 -2
- 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 +17 -1
- package/resources/browsers/telemetry.d.mts.map +1 -1
- package/resources/browsers/telemetry.d.ts +17 -1
- package/resources/browsers/telemetry.d.ts.map +1 -1
- package/resources/search/providers.d.mts +2 -1
- package/resources/search/providers.d.mts.map +1 -1
- package/resources/search/providers.d.ts +2 -1
- package/resources/search/providers.d.ts.map +1 -1
- package/resources/vault-provider-configs.d.mts +18 -0
- package/resources/vault-provider-configs.d.mts.map +1 -1
- package/resources/vault-provider-configs.d.ts +18 -0
- package/resources/vault-provider-configs.d.ts.map +1 -1
- package/resources/vault-provider-configs.js +1 -0
- package/resources/vault-provider-configs.js.map +1 -1
- package/resources/vault-provider-configs.mjs +1 -0
- package/resources/vault-provider-configs.mjs.map +1 -1
- package/resources/vaults/index.d.mts +1 -1
- package/resources/vaults/index.d.mts.map +1 -1
- package/resources/vaults/index.d.ts +1 -1
- package/resources/vaults/index.d.ts.map +1 -1
- package/resources/vaults/index.js.map +1 -1
- package/resources/vaults/index.mjs.map +1 -1
- package/resources/vaults/items.d.mts +573 -72
- package/resources/vaults/items.d.mts.map +1 -1
- package/resources/vaults/items.d.ts +573 -72
- package/resources/vaults/items.d.ts.map +1 -1
- package/resources/vaults/vaults.d.mts +2 -2
- package/resources/vaults/vaults.d.mts.map +1 -1
- package/resources/vaults/vaults.d.ts +2 -2
- package/resources/vaults/vaults.d.ts.map +1 -1
- package/resources/vaults/vaults.js.map +1 -1
- package/resources/vaults/vaults.mjs.map +1 -1
- package/src/resources/auth/connections.ts +128 -1
- package/src/resources/browser-pools.ts +68 -0
- package/src/resources/browsers/browsers.ts +36 -0
- package/src/resources/browsers/index.ts +1 -0
- package/src/resources/browsers/telemetry.ts +19 -0
- package/src/resources/search/providers.ts +2 -1
- package/src/resources/vault-provider-configs.ts +21 -0
- package/src/resources/vaults/index.ts +15 -0
- package/src/resources/vaults/items.ts +787 -70
- package/src/resources/vaults/vaults.ts +30 -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
|
@@ -102,6 +102,7 @@ import {
|
|
|
102
102
|
BrowserTelemetryEvent,
|
|
103
103
|
BrowserTelemetryExportConfig,
|
|
104
104
|
BrowserTelemetryOtlpExportConfig,
|
|
105
|
+
BrowserTelemetryStorageConfig,
|
|
105
106
|
Telemetry as TelemetryAPITelemetry,
|
|
106
107
|
TelemetryEventsParams,
|
|
107
108
|
TelemetryEventsResponse,
|
|
@@ -1556,6 +1557,11 @@ export namespace BrowserCreateParams {
|
|
|
1556
1557
|
* exporting.
|
|
1557
1558
|
*/
|
|
1558
1559
|
export?: Telemetry.Export;
|
|
1560
|
+
|
|
1561
|
+
/**
|
|
1562
|
+
* Whether to persist this session's captured telemetry to Kernel storage.
|
|
1563
|
+
*/
|
|
1564
|
+
storage?: Telemetry.Storage;
|
|
1559
1565
|
}
|
|
1560
1566
|
|
|
1561
1567
|
export namespace Telemetry {
|
|
@@ -1607,6 +1613,18 @@ export namespace BrowserCreateParams {
|
|
|
1607
1613
|
}
|
|
1608
1614
|
}
|
|
1609
1615
|
}
|
|
1616
|
+
|
|
1617
|
+
/**
|
|
1618
|
+
* Whether to persist this session's captured telemetry to Kernel storage.
|
|
1619
|
+
*/
|
|
1620
|
+
export interface Storage {
|
|
1621
|
+
/**
|
|
1622
|
+
* Whether captured telemetry is persisted to Kernel storage. Defaults to true.
|
|
1623
|
+
* Setting false requires an OTLP destination and cannot be changed after the
|
|
1624
|
+
* browser is created.
|
|
1625
|
+
*/
|
|
1626
|
+
enabled?: boolean;
|
|
1627
|
+
}
|
|
1610
1628
|
}
|
|
1611
1629
|
}
|
|
1612
1630
|
|
|
@@ -1722,6 +1740,11 @@ export namespace BrowserUpdateParams {
|
|
|
1722
1740
|
* exporting.
|
|
1723
1741
|
*/
|
|
1724
1742
|
export?: Telemetry.Export;
|
|
1743
|
+
|
|
1744
|
+
/**
|
|
1745
|
+
* Whether to persist this session's captured telemetry to Kernel storage.
|
|
1746
|
+
*/
|
|
1747
|
+
storage?: Telemetry.Storage;
|
|
1725
1748
|
}
|
|
1726
1749
|
|
|
1727
1750
|
export namespace Telemetry {
|
|
@@ -1773,6 +1796,18 @@ export namespace BrowserUpdateParams {
|
|
|
1773
1796
|
}
|
|
1774
1797
|
}
|
|
1775
1798
|
}
|
|
1799
|
+
|
|
1800
|
+
/**
|
|
1801
|
+
* Whether to persist this session's captured telemetry to Kernel storage.
|
|
1802
|
+
*/
|
|
1803
|
+
export interface Storage {
|
|
1804
|
+
/**
|
|
1805
|
+
* Whether captured telemetry is persisted to Kernel storage. Defaults to true.
|
|
1806
|
+
* Setting false requires an OTLP destination and cannot be changed after the
|
|
1807
|
+
* browser is created.
|
|
1808
|
+
*/
|
|
1809
|
+
enabled?: boolean;
|
|
1810
|
+
}
|
|
1776
1811
|
}
|
|
1777
1812
|
|
|
1778
1813
|
/**
|
|
@@ -1989,6 +2024,7 @@ export declare namespace Browsers {
|
|
|
1989
2024
|
type BrowserTelemetryEvent as BrowserTelemetryEvent,
|
|
1990
2025
|
type BrowserTelemetryExportConfig as BrowserTelemetryExportConfig,
|
|
1991
2026
|
type BrowserTelemetryOtlpExportConfig as BrowserTelemetryOtlpExportConfig,
|
|
2027
|
+
type BrowserTelemetryStorageConfig as BrowserTelemetryStorageConfig,
|
|
1992
2028
|
type TelemetryEventsResponse as TelemetryEventsResponse,
|
|
1993
2029
|
type TelemetryStreamResponse as TelemetryStreamResponse,
|
|
1994
2030
|
type TelemetryEventsResponsesOffsetPagination as TelemetryEventsResponsesOffsetPagination,
|
|
@@ -144,6 +144,7 @@ export {
|
|
|
144
144
|
type BrowserTelemetryEvent,
|
|
145
145
|
type BrowserTelemetryExportConfig,
|
|
146
146
|
type BrowserTelemetryOtlpExportConfig,
|
|
147
|
+
type BrowserTelemetryStorageConfig,
|
|
147
148
|
type TelemetryEventsResponse,
|
|
148
149
|
type TelemetryStreamResponse,
|
|
149
150
|
type TelemetryEventsParams,
|
|
@@ -4694,6 +4694,12 @@ export interface BrowserTelemetryConfig {
|
|
|
4694
4694
|
* export state is unknown.
|
|
4695
4695
|
*/
|
|
4696
4696
|
export?: BrowserTelemetryExportConfig;
|
|
4697
|
+
|
|
4698
|
+
/**
|
|
4699
|
+
* Whether the session's captured telemetry is persisted to Kernel storage. Omitted
|
|
4700
|
+
* for browsers created before this setting existed, which persist it.
|
|
4701
|
+
*/
|
|
4702
|
+
storage?: BrowserTelemetryStorageConfig;
|
|
4697
4703
|
}
|
|
4698
4704
|
|
|
4699
4705
|
/**
|
|
@@ -4789,6 +4795,18 @@ export interface BrowserTelemetryOtlpExportConfig {
|
|
|
4789
4795
|
enabled?: boolean;
|
|
4790
4796
|
}
|
|
4791
4797
|
|
|
4798
|
+
/**
|
|
4799
|
+
* Kernel storage state for a session's captured telemetry.
|
|
4800
|
+
*/
|
|
4801
|
+
export interface BrowserTelemetryStorageConfig {
|
|
4802
|
+
/**
|
|
4803
|
+
* Whether captured telemetry is persisted to Kernel storage. When off, the
|
|
4804
|
+
* session's events are only available on the live stream and through any
|
|
4805
|
+
* configured export.
|
|
4806
|
+
*/
|
|
4807
|
+
enabled?: boolean;
|
|
4808
|
+
}
|
|
4809
|
+
|
|
4792
4810
|
/**
|
|
4793
4811
|
* Envelope wrapping a browser telemetry event with its monotonic sequence number.
|
|
4794
4812
|
* Each SSE data: frame carries one envelope as JSON. The seq value is also emitted
|
|
@@ -4955,6 +4973,7 @@ export declare namespace Telemetry {
|
|
|
4955
4973
|
type BrowserTelemetryEvent as BrowserTelemetryEvent,
|
|
4956
4974
|
type BrowserTelemetryExportConfig as BrowserTelemetryExportConfig,
|
|
4957
4975
|
type BrowserTelemetryOtlpExportConfig as BrowserTelemetryOtlpExportConfig,
|
|
4976
|
+
type BrowserTelemetryStorageConfig as BrowserTelemetryStorageConfig,
|
|
4958
4977
|
type TelemetryEventsResponse as TelemetryEventsResponse,
|
|
4959
4978
|
type TelemetryStreamResponse as TelemetryStreamResponse,
|
|
4960
4979
|
type TelemetryEventsResponsesOffsetPagination as TelemetryEventsResponsesOffsetPagination,
|
|
@@ -173,7 +173,8 @@ export type ProviderListResponse = Array<Provider>;
|
|
|
173
173
|
|
|
174
174
|
export interface ProviderListParams {
|
|
175
175
|
/**
|
|
176
|
-
* Optional concrete provider slug filter. Omit to list every provider.
|
|
176
|
+
* Optional concrete provider slug filter. Omit to list every provider. A slug that
|
|
177
|
+
* is not listed returns an empty array.
|
|
177
178
|
*/
|
|
178
179
|
slug?:
|
|
179
180
|
| 'brave'
|
|
@@ -22,6 +22,7 @@ export class VaultProviderConfigs extends APIResource {
|
|
|
22
22
|
* credentials: {
|
|
23
23
|
* client_id: 'example-client-id',
|
|
24
24
|
* client_secret: 'example-client-secret',
|
|
25
|
+
* publishable_key: 'pk_live_example',
|
|
25
26
|
* },
|
|
26
27
|
* name: 'my-link-client',
|
|
27
28
|
* provider: 'link',
|
|
@@ -143,6 +144,12 @@ export namespace VaultProviderConfig {
|
|
|
143
144
|
provider: 'link';
|
|
144
145
|
|
|
145
146
|
updated_at: string;
|
|
147
|
+
|
|
148
|
+
/**
|
|
149
|
+
* Stripe publishable key sent to Link when refreshing and revoking wallet grants.
|
|
150
|
+
* Omitted when not configured.
|
|
151
|
+
*/
|
|
152
|
+
publishable_key?: string;
|
|
146
153
|
}
|
|
147
154
|
|
|
148
155
|
/**
|
|
@@ -191,6 +198,14 @@ export declare namespace VaultProviderConfigCreateParams {
|
|
|
191
198
|
client_id: string;
|
|
192
199
|
|
|
193
200
|
client_secret: string;
|
|
201
|
+
|
|
202
|
+
/**
|
|
203
|
+
* Stripe publishable key for the account that owns the Link OAuth client. Link
|
|
204
|
+
* requires it as the bearer credential when Kernel refreshes or revokes imported
|
|
205
|
+
* wallet grants; without it, those wallets stop working when the imported access
|
|
206
|
+
* token expires.
|
|
207
|
+
*/
|
|
208
|
+
publishable_key?: string;
|
|
194
209
|
}
|
|
195
210
|
}
|
|
196
211
|
|
|
@@ -234,6 +249,12 @@ export namespace VaultProviderConfigUpdateParams {
|
|
|
234
249
|
*/
|
|
235
250
|
export interface Credentials {
|
|
236
251
|
client_secret?: string;
|
|
252
|
+
|
|
253
|
+
/**
|
|
254
|
+
* Link configurations only. Stripe publishable key sent to Link when refreshing
|
|
255
|
+
* and revoking wallet grants.
|
|
256
|
+
*/
|
|
257
|
+
publishable_key?: string;
|
|
237
258
|
}
|
|
238
259
|
}
|
|
239
260
|
|
|
@@ -9,6 +9,8 @@ export {
|
|
|
9
9
|
type CardVaultItemSpec,
|
|
10
10
|
type CardVaultItemState,
|
|
11
11
|
type CollectVaultItemOperationRequest,
|
|
12
|
+
type CredentialAccountVaultItem,
|
|
13
|
+
type CredentialAccountVaultItemRequest,
|
|
12
14
|
type CredentialCollectionAction,
|
|
13
15
|
type CredentialVaultFieldDefinition,
|
|
14
16
|
type CredentialVaultFieldInput,
|
|
@@ -24,6 +26,19 @@ export {
|
|
|
24
26
|
type CredentialVaultItemUpdateRequest,
|
|
25
27
|
type FillVaultItemOperationRequest,
|
|
26
28
|
type FillVaultItemOperationResult,
|
|
29
|
+
type KernelCredentialVaultItemSpec,
|
|
30
|
+
type KernelCredentialVaultItemSpecInput,
|
|
31
|
+
type KernelCredentialVaultItemState,
|
|
32
|
+
type OnePasswordCredentialAccountSpec,
|
|
33
|
+
type OnePasswordCredentialAccountState,
|
|
34
|
+
type OnePasswordCredentialVaultItemSpec,
|
|
35
|
+
type OnePasswordCredentialVaultItemSpecInput,
|
|
36
|
+
type OnePasswordCredentialVaultItemState,
|
|
37
|
+
type OnePasswordFillVaultItemOperationRequest,
|
|
38
|
+
type OnePasswordFillVaultItemOperationResult,
|
|
39
|
+
type OnePasswordOAuthAction,
|
|
40
|
+
type OnePasswordRecoverVaultItemOperationRequest,
|
|
41
|
+
type OnePasswordRequestAccessVaultItemOperationRequest,
|
|
27
42
|
type PrepareCheckoutVaultItemOperationRequest,
|
|
28
43
|
type VaultCardAliases,
|
|
29
44
|
type VaultCardFillField,
|