@onkernel/sdk 0.120.0 → 0.122.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 +19 -0
- package/client.d.mts +4 -4
- package/client.d.mts.map +1 -1
- package/client.d.ts +4 -4
- package/client.d.ts.map +1 -1
- package/client.js.map +1 -1
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/browser-pools.d.mts +8 -4
- package/resources/browser-pools.d.mts.map +1 -1
- package/resources/browser-pools.d.ts +8 -4
- package/resources/browser-pools.d.ts.map +1 -1
- package/resources/browsers/browsers.d.mts +47 -18
- package/resources/browsers/browsers.d.mts.map +1 -1
- package/resources/browsers/browsers.d.ts +47 -18
- 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 +80 -32
- package/resources/browsers/telemetry.d.mts.map +1 -1
- package/resources/browsers/telemetry.d.ts +80 -32
- package/resources/browsers/telemetry.d.ts.map +1 -1
- package/resources/config-registry/config-registry.d.mts +5 -18
- package/resources/config-registry/config-registry.d.mts.map +1 -1
- package/resources/config-registry/config-registry.d.ts +5 -18
- package/resources/config-registry/config-registry.d.ts.map +1 -1
- package/resources/config-registry/config-registry.js.map +1 -1
- package/resources/config-registry/config-registry.mjs.map +1 -1
- package/resources/index.d.mts +2 -2
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +2 -2
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs.map +1 -1
- package/resources/proxies.d.mts +45 -125
- package/resources/proxies.d.mts.map +1 -1
- package/resources/proxies.d.ts +45 -125
- package/resources/proxies.d.ts.map +1 -1
- package/resources/proxies.js +6 -8
- package/resources/proxies.js.map +1 -1
- package/resources/proxies.mjs +6 -8
- package/resources/proxies.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 +48 -22
- package/resources/vaults/items.d.mts.map +1 -1
- package/resources/vaults/items.d.ts +48 -22
- package/resources/vaults/items.d.ts.map +1 -1
- package/resources/vaults/items.js +2 -2
- package/resources/vaults/items.mjs +2 -2
- package/resources/vaults/vaults.d.mts +62 -1
- package/resources/vaults/vaults.d.mts.map +1 -1
- package/resources/vaults/vaults.d.ts +62 -1
- package/resources/vaults/vaults.d.ts.map +1 -1
- package/resources/vaults/vaults.js +19 -0
- package/resources/vaults/vaults.js.map +1 -1
- package/resources/vaults/vaults.mjs +19 -0
- package/resources/vaults/vaults.mjs.map +1 -1
- package/src/client.ts +4 -0
- package/src/resources/browser-pools.ts +8 -4
- package/src/resources/browsers/browsers.ts +49 -17
- package/src/resources/browsers/index.ts +1 -0
- package/src/resources/browsers/telemetry.ts +111 -32
- package/src/resources/config-registry/config-registry.ts +4 -19
- package/src/resources/index.ts +2 -0
- package/src/resources/proxies.ts +39 -131
- package/src/resources/vaults/index.ts +1 -0
- package/src/resources/vaults/items.ts +50 -25
- package/src/resources/vaults/vaults.ts +73 -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
|
@@ -40,6 +40,23 @@ export declare class Vaults extends APIResource {
|
|
|
40
40
|
* ```
|
|
41
41
|
*/
|
|
42
42
|
delete(idOrName: string, options?: RequestOptions): APIPromise<void>;
|
|
43
|
+
/**
|
|
44
|
+
* Returns the public key that custom credential collection web apps use to encrypt
|
|
45
|
+
* values in the browser. Use this only if you run your own credential collection
|
|
46
|
+
* web app and want values encrypted in the browser, sent to your backend still
|
|
47
|
+
* encrypted, and forwarded to Kernel's API still encrypted. In every other case,
|
|
48
|
+
* including server-side code that already holds the plaintext, use value. The page
|
|
49
|
+
* encrypts each value to this key, your backend forwards the ciphertext unchanged
|
|
50
|
+
* as encrypted_value when creating or updating a credential item in this vault,
|
|
51
|
+
* and Kernel decrypts it.
|
|
52
|
+
*
|
|
53
|
+
* @example
|
|
54
|
+
* ```ts
|
|
55
|
+
* const vaultEncryptionKey =
|
|
56
|
+
* await client.vaults.retrieveEncryptionKey('id_or_name');
|
|
57
|
+
* ```
|
|
58
|
+
*/
|
|
59
|
+
retrieveEncryptionKey(idOrName: string, options?: RequestOptions): APIPromise<VaultEncryptionKey>;
|
|
43
60
|
/**
|
|
44
61
|
* Free organizations can store up to 3 non-deleted vaults across all projects.
|
|
45
62
|
* Paid plans and active trials have no vault cap. Retrieving an existing vault by
|
|
@@ -64,6 +81,50 @@ export interface Vault {
|
|
|
64
81
|
name: string;
|
|
65
82
|
updated_at: string;
|
|
66
83
|
}
|
|
84
|
+
/**
|
|
85
|
+
* Public key for encrypted_value on credential fields. Use this only if you run
|
|
86
|
+
* your own credential collection web app and want values encrypted in the browser,
|
|
87
|
+
* sent to your backend still encrypted, and forwarded to Kernel's API still
|
|
88
|
+
* encrypted. In every other case, including server-side code that already holds
|
|
89
|
+
* the plaintext, use value. Each vault has its own key; a value encrypted for one
|
|
90
|
+
* vault is rejected by every other vault. The key is created on first request and
|
|
91
|
+
* stays the same for the vault's lifetime, so it may be cached.
|
|
92
|
+
*/
|
|
93
|
+
export interface VaultEncryptionKey {
|
|
94
|
+
/**
|
|
95
|
+
* JWE key management algorithm.
|
|
96
|
+
*/
|
|
97
|
+
alg: 'ECDH-ES';
|
|
98
|
+
/**
|
|
99
|
+
* JWE content encryption algorithm.
|
|
100
|
+
*/
|
|
101
|
+
enc: 'A256GCM';
|
|
102
|
+
/**
|
|
103
|
+
* P-256 public key in JWK form.
|
|
104
|
+
*/
|
|
105
|
+
jwk: VaultEncryptionKey.Jwk;
|
|
106
|
+
/**
|
|
107
|
+
* Key ID. Set it as the kid protected header of every encrypted_value.
|
|
108
|
+
*/
|
|
109
|
+
kid: string;
|
|
110
|
+
}
|
|
111
|
+
export declare namespace VaultEncryptionKey {
|
|
112
|
+
/**
|
|
113
|
+
* P-256 public key in JWK form.
|
|
114
|
+
*/
|
|
115
|
+
interface Jwk {
|
|
116
|
+
crv: 'P-256';
|
|
117
|
+
kty: 'EC';
|
|
118
|
+
/**
|
|
119
|
+
* Base64url-encoded x coordinate.
|
|
120
|
+
*/
|
|
121
|
+
x: string;
|
|
122
|
+
/**
|
|
123
|
+
* Base64url-encoded y coordinate.
|
|
124
|
+
*/
|
|
125
|
+
y: string;
|
|
126
|
+
}
|
|
127
|
+
}
|
|
67
128
|
export interface VaultListParams extends OffsetPaginationParams {
|
|
68
129
|
/**
|
|
69
130
|
* Case-insensitive substring match against vault name. IDs match by exact value.
|
|
@@ -77,7 +138,7 @@ export interface VaultUpsertParams {
|
|
|
77
138
|
name: string;
|
|
78
139
|
}
|
|
79
140
|
export declare namespace Vaults {
|
|
80
|
-
export { type Vault as Vault, type VaultsOffsetPagination as VaultsOffsetPagination, type VaultListParams as VaultListParams, type VaultUpsertParams as VaultUpsertParams, };
|
|
141
|
+
export { type Vault as Vault, type VaultEncryptionKey as VaultEncryptionKey, type VaultsOffsetPagination as VaultsOffsetPagination, type VaultListParams as VaultListParams, type VaultUpsertParams as VaultUpsertParams, };
|
|
81
142
|
export { Items as Items, type AgentcardCheckoutAuthorization as AgentcardCheckoutAuthorization, type AgentcardCheckoutPreparation as AgentcardCheckoutPreparation, type AgentcardPreparedProcessor as AgentcardPreparedProcessor, type AuthorizeVaultItemOperationRequest as AuthorizeVaultItemOperationRequest, type CardVaultItemSpec as CardVaultItemSpec, type CardVaultItemState as CardVaultItemState, type CollectVaultItemOperationRequest as CollectVaultItemOperationRequest, type CredentialAccountVaultItem as CredentialAccountVaultItem, type CredentialAccountVaultItemRequest as CredentialAccountVaultItemRequest, type CredentialCollectionAction as CredentialCollectionAction, type CredentialVaultFieldDefinition as CredentialVaultFieldDefinition, type CredentialVaultFieldInput as CredentialVaultFieldInput, type CredentialVaultFieldState as CredentialVaultFieldState, type CredentialVaultFieldType as CredentialVaultFieldType, type CredentialVaultFieldUpdate as CredentialVaultFieldUpdate, type CredentialVaultItem as CredentialVaultItem, type CredentialVaultItemRequest as CredentialVaultItemRequest, type CredentialVaultItemSpec as CredentialVaultItemSpec, type CredentialVaultItemSpecInput as CredentialVaultItemSpecInput, type CredentialVaultItemSpecUpdate as CredentialVaultItemSpecUpdate, type CredentialVaultItemState as CredentialVaultItemState, type CredentialVaultItemUpdateRequest as CredentialVaultItemUpdateRequest, type FillVaultItemOperationRequest as FillVaultItemOperationRequest, type FillVaultItemOperationResult as FillVaultItemOperationResult, type KernelCardState as KernelCardState, type KernelCardVaultItemSpec as KernelCardVaultItemSpec, type KernelCredentialVaultItemSpec as KernelCredentialVaultItemSpec, type KernelCredentialVaultItemSpecInput as KernelCredentialVaultItemSpecInput, type KernelCredentialVaultItemState as KernelCredentialVaultItemState, type KernelWalletState as KernelWalletState, type KernelWalletVaultItemSpec as KernelWalletVaultItemSpec, type ManagedAuthCredentialVaultField as ManagedAuthCredentialVaultField, type ManagedAuthCredentialVaultItemSpec as ManagedAuthCredentialVaultItemSpec, type ManagedAuthCredentialVaultItemSpecInput as ManagedAuthCredentialVaultItemSpecInput, type ManagedAuthCredentialVaultItemState as ManagedAuthCredentialVaultItemState, type OnePasswordCredentialAccountSpec as OnePasswordCredentialAccountSpec, type OnePasswordCredentialAccountState as OnePasswordCredentialAccountState, type OnePasswordCredentialVaultItemSpec as OnePasswordCredentialVaultItemSpec, type OnePasswordCredentialVaultItemSpecInput as OnePasswordCredentialVaultItemSpecInput, type OnePasswordCredentialVaultItemState as OnePasswordCredentialVaultItemState, type OnePasswordFillVaultItemOperationRequest as OnePasswordFillVaultItemOperationRequest, type OnePasswordFillVaultItemOperationResult as OnePasswordFillVaultItemOperationResult, type OnePasswordOAuthAction as OnePasswordOAuthAction, type OnePasswordRecoverVaultItemOperationRequest as OnePasswordRecoverVaultItemOperationRequest, type OnePasswordRequestAccessVaultItemOperationRequest as OnePasswordRequestAccessVaultItemOperationRequest, type PrepareCheckoutVaultItemOperationRequest as PrepareCheckoutVaultItemOperationRequest, type VaultCardAliases as VaultCardAliases, type VaultCardFillField as VaultCardFillField, type VaultCheckoutContext as VaultCheckoutContext, type VaultFillField as VaultFillField, type VaultFillFieldResult as VaultFillFieldResult, type VaultItem as VaultItem, type VaultItemAction as VaultItemAction, type VaultItemEvent as VaultItemEvent, type VaultItemOperationResponse as VaultItemOperationResponse, type VaultPaymentMethod as VaultPaymentMethod, type VaultWebmcpBinding as VaultWebmcpBinding, type WalletVaultItemSpec as WalletVaultItemSpec, type WalletVaultItemState as WalletVaultItemState, type WebmcpInvokeVaultItemOperationRequest as WebmcpInvokeVaultItemOperationRequest, type WebmcpInvokeVaultItemOperationResult as WebmcpInvokeVaultItemOperationResult, type ItemListResponse as ItemListResponse, type ItemEventsResponse as ItemEventsResponse, type ItemRetrieveParams as ItemRetrieveParams, type ItemUpdateParams as ItemUpdateParams, type ItemDeleteParams as ItemDeleteParams, type ItemEventsParams as ItemEventsParams, type ItemPerformOperationParams as ItemPerformOperationParams, type ItemUpsertParams as ItemUpsertParams, };
|
|
82
143
|
}
|
|
83
144
|
//# sourceMappingURL=vaults.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vaults.d.mts","sourceRoot":"","sources":["../../src/resources/vaults/vaults.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,KAAK,QAAQ,oBAAgB;AACpC,OAAO,EACL,8BAA8B,EAC9B,4BAA4B,EAC5B,0BAA0B,EAC1B,kCAAkC,EAClC,iBAA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EACrC,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,qCAAqC,IAAI,qCAAqC,EACnF,KAAK,oCAAoC,IAAI,oCAAoC,EACjF,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,gBAAgB,IAAI,gBAAgB,GAC1C,CAAC;CACH"}
|
|
@@ -40,6 +40,23 @@ export declare class Vaults extends APIResource {
|
|
|
40
40
|
* ```
|
|
41
41
|
*/
|
|
42
42
|
delete(idOrName: string, options?: RequestOptions): APIPromise<void>;
|
|
43
|
+
/**
|
|
44
|
+
* Returns the public key that custom credential collection web apps use to encrypt
|
|
45
|
+
* values in the browser. Use this only if you run your own credential collection
|
|
46
|
+
* web app and want values encrypted in the browser, sent to your backend still
|
|
47
|
+
* encrypted, and forwarded to Kernel's API still encrypted. In every other case,
|
|
48
|
+
* including server-side code that already holds the plaintext, use value. The page
|
|
49
|
+
* encrypts each value to this key, your backend forwards the ciphertext unchanged
|
|
50
|
+
* as encrypted_value when creating or updating a credential item in this vault,
|
|
51
|
+
* and Kernel decrypts it.
|
|
52
|
+
*
|
|
53
|
+
* @example
|
|
54
|
+
* ```ts
|
|
55
|
+
* const vaultEncryptionKey =
|
|
56
|
+
* await client.vaults.retrieveEncryptionKey('id_or_name');
|
|
57
|
+
* ```
|
|
58
|
+
*/
|
|
59
|
+
retrieveEncryptionKey(idOrName: string, options?: RequestOptions): APIPromise<VaultEncryptionKey>;
|
|
43
60
|
/**
|
|
44
61
|
* Free organizations can store up to 3 non-deleted vaults across all projects.
|
|
45
62
|
* Paid plans and active trials have no vault cap. Retrieving an existing vault by
|
|
@@ -64,6 +81,50 @@ export interface Vault {
|
|
|
64
81
|
name: string;
|
|
65
82
|
updated_at: string;
|
|
66
83
|
}
|
|
84
|
+
/**
|
|
85
|
+
* Public key for encrypted_value on credential fields. Use this only if you run
|
|
86
|
+
* your own credential collection web app and want values encrypted in the browser,
|
|
87
|
+
* sent to your backend still encrypted, and forwarded to Kernel's API still
|
|
88
|
+
* encrypted. In every other case, including server-side code that already holds
|
|
89
|
+
* the plaintext, use value. Each vault has its own key; a value encrypted for one
|
|
90
|
+
* vault is rejected by every other vault. The key is created on first request and
|
|
91
|
+
* stays the same for the vault's lifetime, so it may be cached.
|
|
92
|
+
*/
|
|
93
|
+
export interface VaultEncryptionKey {
|
|
94
|
+
/**
|
|
95
|
+
* JWE key management algorithm.
|
|
96
|
+
*/
|
|
97
|
+
alg: 'ECDH-ES';
|
|
98
|
+
/**
|
|
99
|
+
* JWE content encryption algorithm.
|
|
100
|
+
*/
|
|
101
|
+
enc: 'A256GCM';
|
|
102
|
+
/**
|
|
103
|
+
* P-256 public key in JWK form.
|
|
104
|
+
*/
|
|
105
|
+
jwk: VaultEncryptionKey.Jwk;
|
|
106
|
+
/**
|
|
107
|
+
* Key ID. Set it as the kid protected header of every encrypted_value.
|
|
108
|
+
*/
|
|
109
|
+
kid: string;
|
|
110
|
+
}
|
|
111
|
+
export declare namespace VaultEncryptionKey {
|
|
112
|
+
/**
|
|
113
|
+
* P-256 public key in JWK form.
|
|
114
|
+
*/
|
|
115
|
+
interface Jwk {
|
|
116
|
+
crv: 'P-256';
|
|
117
|
+
kty: 'EC';
|
|
118
|
+
/**
|
|
119
|
+
* Base64url-encoded x coordinate.
|
|
120
|
+
*/
|
|
121
|
+
x: string;
|
|
122
|
+
/**
|
|
123
|
+
* Base64url-encoded y coordinate.
|
|
124
|
+
*/
|
|
125
|
+
y: string;
|
|
126
|
+
}
|
|
127
|
+
}
|
|
67
128
|
export interface VaultListParams extends OffsetPaginationParams {
|
|
68
129
|
/**
|
|
69
130
|
* Case-insensitive substring match against vault name. IDs match by exact value.
|
|
@@ -77,7 +138,7 @@ export interface VaultUpsertParams {
|
|
|
77
138
|
name: string;
|
|
78
139
|
}
|
|
79
140
|
export declare namespace Vaults {
|
|
80
|
-
export { type Vault as Vault, type VaultsOffsetPagination as VaultsOffsetPagination, type VaultListParams as VaultListParams, type VaultUpsertParams as VaultUpsertParams, };
|
|
141
|
+
export { type Vault as Vault, type VaultEncryptionKey as VaultEncryptionKey, type VaultsOffsetPagination as VaultsOffsetPagination, type VaultListParams as VaultListParams, type VaultUpsertParams as VaultUpsertParams, };
|
|
81
142
|
export { Items as Items, type AgentcardCheckoutAuthorization as AgentcardCheckoutAuthorization, type AgentcardCheckoutPreparation as AgentcardCheckoutPreparation, type AgentcardPreparedProcessor as AgentcardPreparedProcessor, type AuthorizeVaultItemOperationRequest as AuthorizeVaultItemOperationRequest, type CardVaultItemSpec as CardVaultItemSpec, type CardVaultItemState as CardVaultItemState, type CollectVaultItemOperationRequest as CollectVaultItemOperationRequest, type CredentialAccountVaultItem as CredentialAccountVaultItem, type CredentialAccountVaultItemRequest as CredentialAccountVaultItemRequest, type CredentialCollectionAction as CredentialCollectionAction, type CredentialVaultFieldDefinition as CredentialVaultFieldDefinition, type CredentialVaultFieldInput as CredentialVaultFieldInput, type CredentialVaultFieldState as CredentialVaultFieldState, type CredentialVaultFieldType as CredentialVaultFieldType, type CredentialVaultFieldUpdate as CredentialVaultFieldUpdate, type CredentialVaultItem as CredentialVaultItem, type CredentialVaultItemRequest as CredentialVaultItemRequest, type CredentialVaultItemSpec as CredentialVaultItemSpec, type CredentialVaultItemSpecInput as CredentialVaultItemSpecInput, type CredentialVaultItemSpecUpdate as CredentialVaultItemSpecUpdate, type CredentialVaultItemState as CredentialVaultItemState, type CredentialVaultItemUpdateRequest as CredentialVaultItemUpdateRequest, type FillVaultItemOperationRequest as FillVaultItemOperationRequest, type FillVaultItemOperationResult as FillVaultItemOperationResult, type KernelCardState as KernelCardState, type KernelCardVaultItemSpec as KernelCardVaultItemSpec, type KernelCredentialVaultItemSpec as KernelCredentialVaultItemSpec, type KernelCredentialVaultItemSpecInput as KernelCredentialVaultItemSpecInput, type KernelCredentialVaultItemState as KernelCredentialVaultItemState, type KernelWalletState as KernelWalletState, type KernelWalletVaultItemSpec as KernelWalletVaultItemSpec, type ManagedAuthCredentialVaultField as ManagedAuthCredentialVaultField, type ManagedAuthCredentialVaultItemSpec as ManagedAuthCredentialVaultItemSpec, type ManagedAuthCredentialVaultItemSpecInput as ManagedAuthCredentialVaultItemSpecInput, type ManagedAuthCredentialVaultItemState as ManagedAuthCredentialVaultItemState, type OnePasswordCredentialAccountSpec as OnePasswordCredentialAccountSpec, type OnePasswordCredentialAccountState as OnePasswordCredentialAccountState, type OnePasswordCredentialVaultItemSpec as OnePasswordCredentialVaultItemSpec, type OnePasswordCredentialVaultItemSpecInput as OnePasswordCredentialVaultItemSpecInput, type OnePasswordCredentialVaultItemState as OnePasswordCredentialVaultItemState, type OnePasswordFillVaultItemOperationRequest as OnePasswordFillVaultItemOperationRequest, type OnePasswordFillVaultItemOperationResult as OnePasswordFillVaultItemOperationResult, type OnePasswordOAuthAction as OnePasswordOAuthAction, type OnePasswordRecoverVaultItemOperationRequest as OnePasswordRecoverVaultItemOperationRequest, type OnePasswordRequestAccessVaultItemOperationRequest as OnePasswordRequestAccessVaultItemOperationRequest, type PrepareCheckoutVaultItemOperationRequest as PrepareCheckoutVaultItemOperationRequest, type VaultCardAliases as VaultCardAliases, type VaultCardFillField as VaultCardFillField, type VaultCheckoutContext as VaultCheckoutContext, type VaultFillField as VaultFillField, type VaultFillFieldResult as VaultFillFieldResult, type VaultItem as VaultItem, type VaultItemAction as VaultItemAction, type VaultItemEvent as VaultItemEvent, type VaultItemOperationResponse as VaultItemOperationResponse, type VaultPaymentMethod as VaultPaymentMethod, type VaultWebmcpBinding as VaultWebmcpBinding, type WalletVaultItemSpec as WalletVaultItemSpec, type WalletVaultItemState as WalletVaultItemState, type WebmcpInvokeVaultItemOperationRequest as WebmcpInvokeVaultItemOperationRequest, type WebmcpInvokeVaultItemOperationResult as WebmcpInvokeVaultItemOperationResult, type ItemListResponse as ItemListResponse, type ItemEventsResponse as ItemEventsResponse, type ItemRetrieveParams as ItemRetrieveParams, type ItemUpdateParams as ItemUpdateParams, type ItemDeleteParams as ItemDeleteParams, type ItemEventsParams as ItemEventsParams, type ItemPerformOperationParams as ItemPerformOperationParams, type ItemUpsertParams as ItemUpsertParams, };
|
|
82
143
|
}
|
|
83
144
|
//# sourceMappingURL=vaults.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vaults.d.ts","sourceRoot":"","sources":["../../src/resources/vaults/vaults.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,KAAK,QAAQ,mBAAgB;AACpC,OAAO,EACL,8BAA8B,EAC9B,4BAA4B,EAC5B,0BAA0B,EAC1B,kCAAkC,EAClC,iBAAiB,EACjB,kBAAkB,EAClB,gCAAgC,EAChC,0BAA0B,EAC1B,iCAAiC,EACjC,0BAA0B,EAC1B,8BAA8B,EAC9B,yBAAyB,EACzB,yBAAyB,EACzB,wBAAwB,EACxB,0BAA0B,EAC1B,mBAAmB,EACnB,0BAA0B,EAC1B,uBAAuB,EACvB,4BAA4B,EAC5B,6BAA6B,EAC7B,wBAAwB,EACxB,gCAAgC,EAChC,6BAA6B,EAC7B,4BAA4B,EAC5B,gBAAgB,EAChB,gBAAgB,EAChB,kBAAkB,EAClB,gBAAgB,EAChB,0BAA0B,EAC1B,kBAAkB,EAClB,gBAAgB,EAChB,gBAAgB,EAChB,KAAK,EACL,eAAe,EACf,uBAAuB,EACvB,6BAA6B,EAC7B,kCAAkC,EAClC,8BAA8B,EAC9B,iBAAi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7D,KAAK,gBAAgB,IAAI,gBAAgB,GAC1C,CAAC;CACH"}
|
|
@@ -57,6 +57,25 @@ class Vaults extends resource_1.APIResource {
|
|
|
57
57
|
headers: (0, headers_1.buildHeaders)([{ Accept: '*/*' }, options?.headers]),
|
|
58
58
|
});
|
|
59
59
|
}
|
|
60
|
+
/**
|
|
61
|
+
* Returns the public key that custom credential collection web apps use to encrypt
|
|
62
|
+
* values in the browser. Use this only if you run your own credential collection
|
|
63
|
+
* web app and want values encrypted in the browser, sent to your backend still
|
|
64
|
+
* encrypted, and forwarded to Kernel's API still encrypted. In every other case,
|
|
65
|
+
* including server-side code that already holds the plaintext, use value. The page
|
|
66
|
+
* encrypts each value to this key, your backend forwards the ciphertext unchanged
|
|
67
|
+
* as encrypted_value when creating or updating a credential item in this vault,
|
|
68
|
+
* and Kernel decrypts it.
|
|
69
|
+
*
|
|
70
|
+
* @example
|
|
71
|
+
* ```ts
|
|
72
|
+
* const vaultEncryptionKey =
|
|
73
|
+
* await client.vaults.retrieveEncryptionKey('id_or_name');
|
|
74
|
+
* ```
|
|
75
|
+
*/
|
|
76
|
+
retrieveEncryptionKey(idOrName, options) {
|
|
77
|
+
return this._client.get((0, path_1.path) `/vaults/${idOrName}/encryption_key`, options);
|
|
78
|
+
}
|
|
60
79
|
/**
|
|
61
80
|
* Free organizations can store up to 3 non-deleted vaults across all projects.
|
|
62
81
|
* Paid plans and active trials have no vault cap. Retrieving an existing vault by
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vaults.js","sourceRoot":"","sources":["../../src/resources/vaults/vaults.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,qDAAkD;AAClD,6DAAoC;AACpC,sCAuEiB;AAEjB,yDAAmG;AACnG,uDAAsD;AAEtD,uDAAiD;AAEjD,MAAa,MAAO,SAAQ,sBAAW;IAAvC;;QACE,UAAK,GAAmB,IAAI,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC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;;;;;;;;;;OAWG;IACH,MAAM,CAAC,IAAuB,EAAE,OAAwB;QACtD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,SAAS,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC5D,CAAC;CACF;AAvFD,wBAuFC;AAmFD,MAAM,CAAC,KAAK,GAAG,aAAK,CAAC"}
|
|
@@ -53,6 +53,25 @@ export class Vaults extends APIResource {
|
|
|
53
53
|
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
54
54
|
});
|
|
55
55
|
}
|
|
56
|
+
/**
|
|
57
|
+
* Returns the public key that custom credential collection web apps use to encrypt
|
|
58
|
+
* values in the browser. Use this only if you run your own credential collection
|
|
59
|
+
* web app and want values encrypted in the browser, sent to your backend still
|
|
60
|
+
* encrypted, and forwarded to Kernel's API still encrypted. In every other case,
|
|
61
|
+
* including server-side code that already holds the plaintext, use value. The page
|
|
62
|
+
* encrypts each value to this key, your backend forwards the ciphertext unchanged
|
|
63
|
+
* as encrypted_value when creating or updating a credential item in this vault,
|
|
64
|
+
* and Kernel decrypts it.
|
|
65
|
+
*
|
|
66
|
+
* @example
|
|
67
|
+
* ```ts
|
|
68
|
+
* const vaultEncryptionKey =
|
|
69
|
+
* await client.vaults.retrieveEncryptionKey('id_or_name');
|
|
70
|
+
* ```
|
|
71
|
+
*/
|
|
72
|
+
retrieveEncryptionKey(idOrName, options) {
|
|
73
|
+
return this._client.get(path `/vaults/${idOrName}/encryption_key`, options);
|
|
74
|
+
}
|
|
56
75
|
/**
|
|
57
76
|
* Free organizations can store up to 3 non-deleted vaults across all projects.
|
|
58
77
|
* Paid plans and active trials have no vault cap. Retrieving an existing vault by
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vaults.mjs","sourceRoot":"","sources":["../../src/resources/vaults/vaults.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,O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,OAAwB;QAC/C,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAA,WAAW,QAAQ,EAAE,EAAE;YACpD,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;;;;;;OAeG;IACH,qBAAqB,CAAC,QAAgB,EAAE,OAAwB;QAC9D,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,WAAW,QAAQ,iBAAiB,EAAE,OAAO,CAAC,CAAC;IAC7E,CAAC;IAED;;;;;;;;;;;OAWG;IACH,MAAM,CAAC,IAAuB,EAAE,OAAwB;QACtD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,SAAS,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC5D,CAAC;CACF;AAmFD,MAAM,CAAC,KAAK,GAAG,KAAK,CAAC"}
|
package/src/client.ts
CHANGED
|
@@ -164,6 +164,7 @@ import {
|
|
|
164
164
|
BrowserMemory,
|
|
165
165
|
BrowserMemoryRequest,
|
|
166
166
|
BrowserNetworkConfig,
|
|
167
|
+
BrowserNetworkUpdate,
|
|
167
168
|
BrowserPoolRef,
|
|
168
169
|
BrowserProxy,
|
|
169
170
|
BrowserProxyConfig,
|
|
@@ -231,6 +232,7 @@ import {
|
|
|
231
232
|
import { Telemetry } from './resources/telemetry/telemetry';
|
|
232
233
|
import {
|
|
233
234
|
Vault,
|
|
235
|
+
VaultEncryptionKey,
|
|
234
236
|
VaultListParams,
|
|
235
237
|
VaultUpsertParams,
|
|
236
238
|
Vaults,
|
|
@@ -1221,6 +1223,7 @@ export declare namespace Kernel {
|
|
|
1221
1223
|
type BrowserMemory as BrowserMemory,
|
|
1222
1224
|
type BrowserMemoryRequest as BrowserMemoryRequest,
|
|
1223
1225
|
type BrowserNetworkConfig as BrowserNetworkConfig,
|
|
1226
|
+
type BrowserNetworkUpdate as BrowserNetworkUpdate,
|
|
1224
1227
|
type BrowserPoolRef as BrowserPoolRef,
|
|
1225
1228
|
type BrowserProxy as BrowserProxy,
|
|
1226
1229
|
type BrowserProxyConfig as BrowserProxyConfig,
|
|
@@ -1311,6 +1314,7 @@ export declare namespace Kernel {
|
|
|
1311
1314
|
export {
|
|
1312
1315
|
Vaults as Vaults,
|
|
1313
1316
|
type Vault as Vault,
|
|
1317
|
+
type VaultEncryptionKey as VaultEncryptionKey,
|
|
1314
1318
|
type VaultsOffsetPagination as VaultsOffsetPagination,
|
|
1315
1319
|
type VaultListParams as VaultListParams,
|
|
1316
1320
|
type VaultUpsertParams as VaultUpsertParams,
|
|
@@ -585,7 +585,9 @@ export interface BrowserPoolCreateParams {
|
|
|
585
585
|
name?: string;
|
|
586
586
|
|
|
587
587
|
/**
|
|
588
|
-
* Network configuration applied to browsers in this pool.
|
|
588
|
+
* Network configuration applied to browsers in this pool. Proxy routes require
|
|
589
|
+
* proxy-v3; the pool will not provision browsers through Envoy if proxy-v3 is
|
|
590
|
+
* unavailable.
|
|
589
591
|
*/
|
|
590
592
|
network?: BrowsersAPI.BrowserNetworkConfig;
|
|
591
593
|
|
|
@@ -857,9 +859,11 @@ export interface BrowserPoolUpdateParams {
|
|
|
857
859
|
/**
|
|
858
860
|
* If provided, replaces the pool's network configuration. Omit to leave the
|
|
859
861
|
* existing configuration unchanged; an empty object ({}) removes it, while
|
|
860
|
-
* network: {private_hosts: []}
|
|
861
|
-
*
|
|
862
|
-
*
|
|
862
|
+
* network: {private_hosts: []} or network: {proxy_routes: []} sets an explicit
|
|
863
|
+
* empty list. Proxy routes require proxy-v3; the pool will not provision browsers
|
|
864
|
+
* through Envoy if proxy-v3 is unavailable. Only applied to browsers created in
|
|
865
|
+
* the pool after the update; browsers already in the pool keep their configuration
|
|
866
|
+
* until discarded (see discard_all_idle).
|
|
863
867
|
*/
|
|
864
868
|
network?: BrowsersAPI.BrowserNetworkConfig;
|
|
865
869
|
|
|
@@ -378,8 +378,10 @@ export interface BrowserNetworkConfig {
|
|
|
378
378
|
* or reserved IP ranges are rejected, as are entries that overlap private_hosts.
|
|
379
379
|
* Enforced at Kernel's egress proxy only: destinations in private_hosts, and
|
|
380
380
|
* processes in the browser VM that do not use the browser's proxy, are not
|
|
381
|
-
* filtered, and Kernel's own control traffic is always allowed.
|
|
382
|
-
*
|
|
381
|
+
* filtered, and Kernel's own control traffic is always allowed. Can be replaced or
|
|
382
|
+
* removed while the session runs with PATCH /browsers/{id_or_name}, but not added
|
|
383
|
+
* to a browser created without one. Requires proxy v3. Not supported on browser
|
|
384
|
+
* pools.
|
|
383
385
|
*/
|
|
384
386
|
allowed_hosts?: Array<string>;
|
|
385
387
|
|
|
@@ -410,20 +412,20 @@ export interface BrowserNetworkConfig {
|
|
|
410
412
|
private_hosts?: Array<string>;
|
|
411
413
|
|
|
412
414
|
/**
|
|
413
|
-
* Per-destination proxy routes for a browser session.
|
|
414
|
-
*
|
|
415
|
-
*
|
|
416
|
-
*
|
|
417
|
-
* "_.
|
|
418
|
-
*
|
|
419
|
-
*
|
|
420
|
-
*
|
|
421
|
-
*
|
|
422
|
-
*
|
|
423
|
-
*
|
|
424
|
-
*
|
|
425
|
-
*
|
|
426
|
-
*
|
|
415
|
+
* Per-destination proxy routes for a browser session. A destination hostname is
|
|
416
|
+
* matched against every route's hosts, regardless of port; route order does not
|
|
417
|
+
* matter. An exact hostname beats a wildcard, and a longer wildcard suffix beats a
|
|
418
|
+
* shorter one (for a.b.example.com: "a.b.example.com" > "_.b.example.com" >
|
|
419
|
+
* "_.example.com"). A host pattern may appear in only one route. "\*.example.com"
|
|
420
|
+
* matches subdomains only, not example.com. A matched request selects the route's
|
|
421
|
+
* proxy instead of the session's top-level proxy (including mode: direct); the
|
|
422
|
+
* route proxy's own bypass_hosts still apply. If the route proxy becomes
|
|
423
|
+
* unavailable, matched requests fail closed without falling back. Requests that
|
|
424
|
+
* match no route use the session's default egress from the top-level proxy field
|
|
425
|
+
* (or the browser default when proxy is omitted: stealth proxy or direct egress).
|
|
426
|
+
* Routes apply from the start of the session, including to start_url and other
|
|
427
|
+
* traffic during browser setup. Setting routes requires proxy v3. Browser pools
|
|
428
|
+
* also support these routes.
|
|
427
429
|
*/
|
|
428
430
|
proxy_routes?: Array<BrowserNetworkConfig.ProxyRoute>;
|
|
429
431
|
}
|
|
@@ -456,6 +458,29 @@ export namespace BrowserNetworkConfig {
|
|
|
456
458
|
}
|
|
457
459
|
}
|
|
458
460
|
|
|
461
|
+
/**
|
|
462
|
+
* Network configuration changes for a running browser session. Other network
|
|
463
|
+
* settings can only be set at creation.
|
|
464
|
+
*/
|
|
465
|
+
export interface BrowserNetworkUpdate {
|
|
466
|
+
/**
|
|
467
|
+
* Replaces the session's egress allowlist, using the same entry rules as
|
|
468
|
+
* network.allowed_hosts on create. Only an allowlist the browser was created with
|
|
469
|
+
* can be changed: a browser created without one can't be given one, and an
|
|
470
|
+
* allowlist removed with null can't be added back. Omit to leave the allowlist
|
|
471
|
+
* unchanged, or set to null to remove it and return to unfiltered egress; an empty
|
|
472
|
+
* list is invalid. The new list applies without restarting the browser: new
|
|
473
|
+
* requests to destinations it no longer allows are refused within a few seconds,
|
|
474
|
+
* and open connections to them are closed within about 30 seconds, or up to 10
|
|
475
|
+
* minutes during a Kernel deploy. Connections to destinations it still allows,
|
|
476
|
+
* such as WebSockets, stay open. A start_url in the same request must be allowed
|
|
477
|
+
* by the updated list, and is loaded only after the list takes effect. Requires a
|
|
478
|
+
* browser created with proxy v3, and not supported on pooled browsers. If the
|
|
479
|
+
* request fails, retry it: the new list may already apply to some requests.
|
|
480
|
+
*/
|
|
481
|
+
allowed_hosts?: Array<string> | null;
|
|
482
|
+
}
|
|
483
|
+
|
|
459
484
|
/**
|
|
460
485
|
* Browser pool this session was acquired from, if any.
|
|
461
486
|
*/
|
|
@@ -1448,7 +1473,8 @@ export interface BrowserCreateParams {
|
|
|
1448
1473
|
name?: string;
|
|
1449
1474
|
|
|
1450
1475
|
/**
|
|
1451
|
-
* Network configuration for the browser session.
|
|
1476
|
+
* Network configuration for the browser session. Only allowed_hosts can be changed
|
|
1477
|
+
* after creation, with PATCH /browsers/{id_or_name}.
|
|
1452
1478
|
*/
|
|
1453
1479
|
network?: BrowserNetworkConfig;
|
|
1454
1480
|
|
|
@@ -1678,6 +1704,11 @@ export interface BrowserUpdateParams {
|
|
|
1678
1704
|
*/
|
|
1679
1705
|
name?: string | null;
|
|
1680
1706
|
|
|
1707
|
+
/**
|
|
1708
|
+
* Network configuration changes to apply to the running browser session.
|
|
1709
|
+
*/
|
|
1710
|
+
network?: BrowserNetworkUpdate;
|
|
1711
|
+
|
|
1681
1712
|
/**
|
|
1682
1713
|
* Profile to load into the browser session. Only allowed if the session does not
|
|
1683
1714
|
* already have a profile loaded.
|
|
@@ -1974,6 +2005,7 @@ export declare namespace Browsers {
|
|
|
1974
2005
|
type BrowserMemory as BrowserMemory,
|
|
1975
2006
|
type BrowserMemoryRequest as BrowserMemoryRequest,
|
|
1976
2007
|
type BrowserNetworkConfig as BrowserNetworkConfig,
|
|
2008
|
+
type BrowserNetworkUpdate as BrowserNetworkUpdate,
|
|
1977
2009
|
type BrowserPoolRef as BrowserPoolRef,
|
|
1978
2010
|
type BrowserProxy as BrowserProxy,
|
|
1979
2011
|
type BrowserProxyConfig as BrowserProxyConfig,
|