@onkernel/sdk 0.139.0 → 0.141.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/package.json +1 -1
- package/resources/browsers/browsers.d.mts +6 -5
- package/resources/browsers/browsers.d.mts.map +1 -1
- package/resources/browsers/browsers.d.ts +6 -5
- 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/webmcp/webmcp.d.mts +10 -6
- package/resources/browsers/webmcp/webmcp.d.mts.map +1 -1
- package/resources/browsers/webmcp/webmcp.d.ts +10 -6
- package/resources/browsers/webmcp/webmcp.d.ts.map +1 -1
- package/resources/browsers/webmcp/webmcp.js +7 -3
- package/resources/browsers/webmcp/webmcp.js.map +1 -1
- package/resources/browsers/webmcp/webmcp.mjs +7 -3
- package/resources/browsers/webmcp/webmcp.mjs.map +1 -1
- package/resources/search/providers.d.mts +1 -1
- package/resources/search/providers.d.mts.map +1 -1
- package/resources/search/providers.d.ts +1 -1
- package/resources/search/providers.d.ts.map +1 -1
- package/resources/search/search.d.mts +1 -124
- package/resources/search/search.d.mts.map +1 -1
- package/resources/search/search.d.ts +1 -124
- package/resources/search/search.d.ts.map +1 -1
- package/resources/search/search.js.map +1 -1
- package/resources/search/search.mjs.map +1 -1
- package/resources/vault-provider-configs.d.mts +59 -2
- package/resources/vault-provider-configs.d.mts.map +1 -1
- package/resources/vault-provider-configs.d.ts +59 -2
- package/resources/vault-provider-configs.d.ts.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 +287 -42
- package/resources/vaults/items.d.mts.map +1 -1
- package/resources/vaults/items.d.ts +287 -42
- 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/browsers/browsers.ts +6 -5
- package/src/resources/browsers/webmcp/webmcp.ts +10 -6
- package/src/resources/search/providers.ts +1 -11
- package/src/resources/search/search.ts +1 -156
- package/src/resources/vault-provider-configs.ts +76 -2
- package/src/resources/vaults/index.ts +7 -0
- package/src/resources/vaults/items.ts +341 -33
- package/src/resources/vaults/vaults.ts +14 -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
|
@@ -74,11 +74,9 @@ export type ProviderTarget =
|
|
|
74
74
|
| ProviderTarget.SearchPerplexityTarget
|
|
75
75
|
| ProviderTarget.SearchContextTarget
|
|
76
76
|
| ProviderTarget.SearchParallelTarget
|
|
77
|
-
| ProviderTarget.SearchValyuTarget
|
|
78
77
|
| ProviderTarget.SearchOctenTarget
|
|
79
78
|
| ProviderTarget.SearchYouTarget
|
|
80
|
-
| ProviderTarget.SearchTavilyTarget
|
|
81
|
-
| ProviderTarget.SearchSerpAPITarget;
|
|
79
|
+
| ProviderTarget.SearchTavilyTarget;
|
|
82
80
|
|
|
83
81
|
export namespace ProviderTarget {
|
|
84
82
|
export interface SearchBraveTarget {
|
|
@@ -464,78 +462,6 @@ export namespace ProviderTarget {
|
|
|
464
462
|
}
|
|
465
463
|
}
|
|
466
464
|
|
|
467
|
-
export interface SearchValyuTarget {
|
|
468
|
-
provider: 'valyu';
|
|
469
|
-
|
|
470
|
-
options?: SearchValyuTarget.Options;
|
|
471
|
-
}
|
|
472
|
-
|
|
473
|
-
export namespace SearchValyuTarget {
|
|
474
|
-
export interface Options {
|
|
475
|
-
/**
|
|
476
|
-
* Trade depth for latency.
|
|
477
|
-
*/
|
|
478
|
-
fast_mode?: boolean;
|
|
479
|
-
|
|
480
|
-
/**
|
|
481
|
-
* Allow historical cached results.
|
|
482
|
-
*/
|
|
483
|
-
historical_cache?: boolean;
|
|
484
|
-
|
|
485
|
-
/**
|
|
486
|
-
* Include abstracts for academic sources.
|
|
487
|
-
*/
|
|
488
|
-
include_abstracts?: boolean;
|
|
489
|
-
|
|
490
|
-
/**
|
|
491
|
-
* Natural-language retrieval guidance.
|
|
492
|
-
*/
|
|
493
|
-
instructions?: string;
|
|
494
|
-
|
|
495
|
-
/**
|
|
496
|
-
* Mark the search as an agent tool call.
|
|
497
|
-
*/
|
|
498
|
-
is_tool_call?: boolean;
|
|
499
|
-
|
|
500
|
-
/**
|
|
501
|
-
* Provider-native count. Lower-only alias for max_results.
|
|
502
|
-
*/
|
|
503
|
-
max_num_results?: number;
|
|
504
|
-
|
|
505
|
-
/**
|
|
506
|
-
* Provider-native USD-per-thousand-results price ceiling. Forwarded to Valyu.
|
|
507
|
-
*/
|
|
508
|
-
max_price?: number;
|
|
509
|
-
|
|
510
|
-
/**
|
|
511
|
-
* Provider-native minimum relevance threshold. Not a normalized cross-provider
|
|
512
|
-
* score.
|
|
513
|
-
*/
|
|
514
|
-
relevance_threshold?: number;
|
|
515
|
-
|
|
516
|
-
/**
|
|
517
|
-
* Provider result-content length preset.
|
|
518
|
-
*/
|
|
519
|
-
response_length?: 'short' | 'medium' | 'large' | 'max';
|
|
520
|
-
|
|
521
|
-
/**
|
|
522
|
-
* Corpus selector, including all, web, proprietary, and news. Provider corpus
|
|
523
|
-
* choice may change billing; Kernel does not force web-only searches.
|
|
524
|
-
*/
|
|
525
|
-
search_type?: string;
|
|
526
|
-
|
|
527
|
-
/**
|
|
528
|
-
* Bias retrieval toward these sources.
|
|
529
|
-
*/
|
|
530
|
-
source_biases?: Array<string>;
|
|
531
|
-
|
|
532
|
-
/**
|
|
533
|
-
* Return URLs without content.
|
|
534
|
-
*/
|
|
535
|
-
url_only?: boolean;
|
|
536
|
-
}
|
|
537
|
-
}
|
|
538
|
-
|
|
539
465
|
export interface SearchOctenTarget {
|
|
540
466
|
provider: 'octen';
|
|
541
467
|
|
|
@@ -747,87 +673,6 @@ export namespace ProviderTarget {
|
|
|
747
673
|
topic?: 'general' | 'news' | 'finance';
|
|
748
674
|
}
|
|
749
675
|
}
|
|
750
|
-
|
|
751
|
-
export interface SearchSerpAPITarget {
|
|
752
|
-
provider: 'serpapi';
|
|
753
|
-
|
|
754
|
-
options?: SearchSerpAPITarget.Options;
|
|
755
|
-
}
|
|
756
|
-
|
|
757
|
-
export namespace SearchSerpAPITarget {
|
|
758
|
-
export interface Options {
|
|
759
|
-
/**
|
|
760
|
-
* SerpApi engine identifier. The Kernel integration currently supports google
|
|
761
|
-
* only.
|
|
762
|
-
*/
|
|
763
|
-
engine: string;
|
|
764
|
-
|
|
765
|
-
/**
|
|
766
|
-
* Device profile used for the search.
|
|
767
|
-
*/
|
|
768
|
-
device?: 'desktop' | 'mobile' | 'tablet';
|
|
769
|
-
|
|
770
|
-
/**
|
|
771
|
-
* Google duplicate-content filter.
|
|
772
|
-
*/
|
|
773
|
-
filter?: 0 | 1;
|
|
774
|
-
|
|
775
|
-
/**
|
|
776
|
-
* Two-letter Google country code.
|
|
777
|
-
*/
|
|
778
|
-
gl?: string;
|
|
779
|
-
|
|
780
|
-
/**
|
|
781
|
-
* Google domain to search when using the google engine.
|
|
782
|
-
*/
|
|
783
|
-
google_domain?: string;
|
|
784
|
-
|
|
785
|
-
/**
|
|
786
|
-
* Interface language code.
|
|
787
|
-
*/
|
|
788
|
-
hl?: string;
|
|
789
|
-
|
|
790
|
-
/**
|
|
791
|
-
* Free-form geographic location used for localized results.
|
|
792
|
-
*/
|
|
793
|
-
location?: string;
|
|
794
|
-
|
|
795
|
-
/**
|
|
796
|
-
* Google auto-correction filter.
|
|
797
|
-
*/
|
|
798
|
-
nfpr?: 0 | 1;
|
|
799
|
-
|
|
800
|
-
/**
|
|
801
|
-
* When true, bypass SerpApi cached results when supported.
|
|
802
|
-
*/
|
|
803
|
-
no_cache?: boolean;
|
|
804
|
-
|
|
805
|
-
/**
|
|
806
|
-
* Number of results requested from the search engine.
|
|
807
|
-
*/
|
|
808
|
-
num?: number;
|
|
809
|
-
|
|
810
|
-
/**
|
|
811
|
-
* Safe-search setting for engines that support it.
|
|
812
|
-
*/
|
|
813
|
-
safe?: 'active' | 'off';
|
|
814
|
-
|
|
815
|
-
/**
|
|
816
|
-
* Zero-based result offset for pagination.
|
|
817
|
-
*/
|
|
818
|
-
start?: number;
|
|
819
|
-
|
|
820
|
-
/**
|
|
821
|
-
* Google vertical search selector, such as images, video, news, or shopping.
|
|
822
|
-
*/
|
|
823
|
-
tbm?: string;
|
|
824
|
-
|
|
825
|
-
/**
|
|
826
|
-
* Google time and search modifiers, including freshness filters.
|
|
827
|
-
*/
|
|
828
|
-
tbs?: string;
|
|
829
|
-
}
|
|
830
|
-
}
|
|
831
676
|
}
|
|
832
677
|
|
|
833
678
|
export interface Request {
|
|
@@ -118,7 +118,8 @@ export type VaultProviderConfigsOffsetPagination = OffsetPagination<VaultProvide
|
|
|
118
118
|
*/
|
|
119
119
|
export type VaultProviderConfig =
|
|
120
120
|
| VaultProviderConfig.VaultLinkProviderConfig
|
|
121
|
-
| VaultProviderConfig.VaultAgentCardProviderConfig
|
|
121
|
+
| VaultProviderConfig.VaultAgentCardProviderConfig
|
|
122
|
+
| VaultProviderConfig.VaultVgsProviderConfig;
|
|
122
123
|
|
|
123
124
|
export namespace VaultProviderConfig {
|
|
124
125
|
/**
|
|
@@ -175,11 +176,47 @@ export namespace VaultProviderConfig {
|
|
|
175
176
|
|
|
176
177
|
updated_at: string;
|
|
177
178
|
}
|
|
179
|
+
|
|
180
|
+
/**
|
|
181
|
+
* Response schema for a customer-managed VGS vault configuration, without the
|
|
182
|
+
* client secret. Kernel generates the ID and timestamps. Configuration creation
|
|
183
|
+
* uses VaultVgsProviderConfigRequest.
|
|
184
|
+
*/
|
|
185
|
+
export interface VaultVgsProviderConfig {
|
|
186
|
+
id: string;
|
|
187
|
+
|
|
188
|
+
/**
|
|
189
|
+
* Service account identity; immutable. The client secret is never returned.
|
|
190
|
+
*/
|
|
191
|
+
client_id: string;
|
|
192
|
+
|
|
193
|
+
created_at: string;
|
|
194
|
+
|
|
195
|
+
/**
|
|
196
|
+
* The vault's VGS environment; immutable.
|
|
197
|
+
*/
|
|
198
|
+
environment: 'sandbox' | 'live';
|
|
199
|
+
|
|
200
|
+
/**
|
|
201
|
+
* Unique within the organization.
|
|
202
|
+
*/
|
|
203
|
+
name: string;
|
|
204
|
+
|
|
205
|
+
provider: 'vgs';
|
|
206
|
+
|
|
207
|
+
updated_at: string;
|
|
208
|
+
|
|
209
|
+
/**
|
|
210
|
+
* The customer's VGS vault ID; immutable.
|
|
211
|
+
*/
|
|
212
|
+
vault_id: string;
|
|
213
|
+
}
|
|
178
214
|
}
|
|
179
215
|
|
|
180
216
|
export type VaultProviderConfigCreateParams =
|
|
181
217
|
| VaultProviderConfigCreateParams.VaultLinkProviderConfigRequest
|
|
182
|
-
| VaultProviderConfigCreateParams.VaultAgentCardProviderConfigRequest
|
|
218
|
+
| VaultProviderConfigCreateParams.VaultAgentCardProviderConfigRequest
|
|
219
|
+
| VaultProviderConfigCreateParams.VaultVgsProviderConfigRequest;
|
|
183
220
|
|
|
184
221
|
export declare namespace VaultProviderConfigCreateParams {
|
|
185
222
|
export interface VaultLinkProviderConfigRequest {
|
|
@@ -227,6 +264,43 @@ export declare namespace VaultProviderConfigCreateParams {
|
|
|
227
264
|
client_secret: string;
|
|
228
265
|
}
|
|
229
266
|
}
|
|
267
|
+
|
|
268
|
+
export interface VaultVgsProviderConfigRequest {
|
|
269
|
+
/**
|
|
270
|
+
* A VGS service account with the aliases:read scope on the customer's vault, which
|
|
271
|
+
* Kernel uses to reveal the aliases each purchase sends.
|
|
272
|
+
*/
|
|
273
|
+
credentials: VaultVgsProviderConfigRequest.Credentials;
|
|
274
|
+
|
|
275
|
+
/**
|
|
276
|
+
* Unique within the organization.
|
|
277
|
+
*/
|
|
278
|
+
name: string;
|
|
279
|
+
|
|
280
|
+
provider: 'vgs';
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
export namespace VaultVgsProviderConfigRequest {
|
|
284
|
+
/**
|
|
285
|
+
* A VGS service account with the aliases:read scope on the customer's vault, which
|
|
286
|
+
* Kernel uses to reveal the aliases each purchase sends.
|
|
287
|
+
*/
|
|
288
|
+
export interface Credentials {
|
|
289
|
+
client_id: string;
|
|
290
|
+
|
|
291
|
+
client_secret: string;
|
|
292
|
+
|
|
293
|
+
/**
|
|
294
|
+
* The vault's VGS environment.
|
|
295
|
+
*/
|
|
296
|
+
environment: 'sandbox' | 'live';
|
|
297
|
+
|
|
298
|
+
/**
|
|
299
|
+
* The customer's VGS vault ID.
|
|
300
|
+
*/
|
|
301
|
+
vault_id: string;
|
|
302
|
+
}
|
|
303
|
+
}
|
|
230
304
|
}
|
|
231
305
|
|
|
232
306
|
export interface VaultProviderConfigUpdateParams {
|
|
@@ -38,6 +38,7 @@ export {
|
|
|
38
38
|
type KernelCredentialVaultItemSpecInput,
|
|
39
39
|
type KernelCredentialVaultItemState,
|
|
40
40
|
type KernelPaymentRequestVaultItemSpec,
|
|
41
|
+
type KernelSingleUseCard,
|
|
41
42
|
type KernelWalletState,
|
|
42
43
|
type KernelWalletVaultItemSpec,
|
|
43
44
|
type LinkShippingAddress,
|
|
@@ -69,6 +70,7 @@ export {
|
|
|
69
70
|
type ShopPayCardVaultItemSpec,
|
|
70
71
|
type ShopPayWalletState,
|
|
71
72
|
type ShopPayWalletVaultItemSpec,
|
|
73
|
+
type SingleUseCardBillingAddress,
|
|
72
74
|
type VaultCardAliases,
|
|
73
75
|
type VaultCardFillField,
|
|
74
76
|
type VaultCheckoutContext,
|
|
@@ -80,6 +82,11 @@ export {
|
|
|
80
82
|
type VaultItemOperationResponse,
|
|
81
83
|
type VaultPaymentMethod,
|
|
82
84
|
type VaultWebmcpBinding,
|
|
85
|
+
type VgsCardInput,
|
|
86
|
+
type VgsCardState,
|
|
87
|
+
type VgsCardVaultItemSpec,
|
|
88
|
+
type VgsWalletState,
|
|
89
|
+
type VgsWalletVaultItemSpec,
|
|
83
90
|
type WalletVaultItemSpec,
|
|
84
91
|
type WalletVaultItemState,
|
|
85
92
|
type WebmcpInvokeVaultItemOperationRequest,
|