@onkernel/sdk 0.110.0 → 0.111.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 +12 -0
- package/client.d.mts +6 -0
- package/client.d.mts.map +1 -1
- package/client.d.ts +6 -0
- package/client.d.ts.map +1 -1
- package/client.js +6 -0
- package/client.js.map +1 -1
- package/client.mjs +6 -0
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/auth/connections.d.mts +26 -8
- package/resources/auth/connections.d.mts.map +1 -1
- package/resources/auth/connections.d.ts +26 -8
- package/resources/auth/connections.d.ts.map +1 -1
- package/resources/browsers/telemetry.d.mts +13 -4
- package/resources/browsers/telemetry.d.mts.map +1 -1
- package/resources/browsers/telemetry.d.ts +13 -4
- package/resources/browsers/telemetry.d.ts.map +1 -1
- package/resources/index.d.mts +1 -0
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +1 -0
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +3 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +1 -0
- package/resources/index.mjs.map +1 -1
- package/resources/search/contents.d.mts +267 -0
- package/resources/search/contents.d.mts.map +1 -0
- package/resources/search/contents.d.ts +267 -0
- package/resources/search/contents.d.ts.map +1 -0
- package/resources/search/contents.js +31 -0
- package/resources/search/contents.js.map +1 -0
- package/resources/search/contents.mjs +27 -0
- package/resources/search/contents.mjs.map +1 -0
- package/resources/search/index.d.mts +4 -0
- package/resources/search/index.d.mts.map +1 -0
- package/resources/search/index.d.ts +4 -0
- package/resources/search/index.d.ts.map +1 -0
- package/resources/search/index.js +11 -0
- package/resources/search/index.js.map +1 -0
- package/resources/search/index.mjs +5 -0
- package/resources/search/index.mjs.map +1 -0
- package/resources/search/providers.d.mts +141 -0
- package/resources/search/providers.d.mts.map +1 -0
- package/resources/search/providers.d.ts +141 -0
- package/resources/search/providers.d.ts.map +1 -0
- package/resources/search/providers.js +25 -0
- package/resources/search/providers.js.map +1 -0
- package/resources/search/providers.mjs +21 -0
- package/resources/search/providers.mjs.map +1 -0
- package/resources/search/search.d.mts +1187 -0
- package/resources/search/search.d.mts.map +1 -0
- package/resources/search/search.d.ts +1187 -0
- package/resources/search/search.d.ts.map +1 -0
- package/resources/search/search.js +58 -0
- package/resources/search/search.js.map +1 -0
- package/resources/search/search.mjs +53 -0
- package/resources/search/search.mjs.map +1 -0
- package/resources/search.d.mts +2 -0
- package/resources/search.d.mts.map +1 -0
- package/resources/search.d.ts +2 -0
- package/resources/search.d.ts.map +1 -0
- package/resources/search.js +6 -0
- package/resources/search.js.map +1 -0
- package/resources/search.mjs +3 -0
- package/resources/search.mjs.map +1 -0
- package/resources/vaults/items.d.mts +21 -14
- package/resources/vaults/items.d.mts.map +1 -1
- package/resources/vaults/items.d.ts +21 -14
- package/resources/vaults/items.d.ts.map +1 -1
- package/src/client.ts +30 -0
- package/src/resources/auth/connections.ts +28 -7
- package/src/resources/browsers/telemetry.ts +17 -4
- package/src/resources/index.ts +12 -0
- package/src/resources/search/contents.ts +327 -0
- package/src/resources/search/index.ts +16 -0
- package/src/resources/search/providers.ts +197 -0
- package/src/resources/search/search.ts +1496 -0
- package/src/resources/search.ts +3 -0
- package/src/resources/vaults/items.ts +27 -14
- 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
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
import { APIResource } from "../../core/resource.js";
|
|
2
|
+
import { APIPromise } from "../../core/api-promise.js";
|
|
3
|
+
import { RequestOptions } from "../../internal/request-options.js";
|
|
4
|
+
/**
|
|
5
|
+
* Search the web and retrieve content for selected results.
|
|
6
|
+
*/
|
|
7
|
+
export declare class Providers extends APIResource {
|
|
8
|
+
/**
|
|
9
|
+
* Lists providers, capabilities, and machine-readable native-option schemas. Auto
|
|
10
|
+
* and fallback are strategies, not provider entries. The list is not paginated and
|
|
11
|
+
* contains no latency benchmarks. X-Request-Id identifies the request.
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* ```ts
|
|
15
|
+
* const providers = await client.search.providers.list();
|
|
16
|
+
* ```
|
|
17
|
+
*/
|
|
18
|
+
list(query?: ProviderListParams | null | undefined, options?: RequestOptions): APIPromise<ProviderListResponse>;
|
|
19
|
+
}
|
|
20
|
+
export interface Provider {
|
|
21
|
+
content: Provider.Content;
|
|
22
|
+
max_results_cap: number;
|
|
23
|
+
params: Provider.Params;
|
|
24
|
+
provider_options: Provider.ProviderOptions;
|
|
25
|
+
slug: string;
|
|
26
|
+
/**
|
|
27
|
+
* Provider-specific limitations, conditional filter support, and warnings about
|
|
28
|
+
* search modes.
|
|
29
|
+
*/
|
|
30
|
+
notes?: Array<string>;
|
|
31
|
+
}
|
|
32
|
+
export declare namespace Provider {
|
|
33
|
+
interface Content {
|
|
34
|
+
/**
|
|
35
|
+
* Can enforce the requested maximum content age.
|
|
36
|
+
*/
|
|
37
|
+
freshness_control: boolean;
|
|
38
|
+
/**
|
|
39
|
+
* Supports content retrieval with the search request.
|
|
40
|
+
*/
|
|
41
|
+
inline: boolean;
|
|
42
|
+
/**
|
|
43
|
+
* Supports content retrieval after the search completes.
|
|
44
|
+
*/
|
|
45
|
+
post_hoc: boolean;
|
|
46
|
+
}
|
|
47
|
+
interface Params {
|
|
48
|
+
country: Params.Country;
|
|
49
|
+
end_date: Params.EndDate;
|
|
50
|
+
exclude_domains: Params.ExcludeDomains;
|
|
51
|
+
include_domains: Params.IncludeDomains;
|
|
52
|
+
language: Params.Language;
|
|
53
|
+
recency: Params.Recency;
|
|
54
|
+
safe_search: Params.SafeSearch;
|
|
55
|
+
start_date: Params.StartDate;
|
|
56
|
+
}
|
|
57
|
+
namespace Params {
|
|
58
|
+
interface Country {
|
|
59
|
+
support: 'native' | 'emulated' | 'unsupported';
|
|
60
|
+
/**
|
|
61
|
+
* Translation behavior, limitations, and precision.
|
|
62
|
+
*/
|
|
63
|
+
notes?: string;
|
|
64
|
+
}
|
|
65
|
+
interface EndDate {
|
|
66
|
+
support: 'native' | 'emulated' | 'unsupported';
|
|
67
|
+
/**
|
|
68
|
+
* Translation behavior, limitations, and precision.
|
|
69
|
+
*/
|
|
70
|
+
notes?: string;
|
|
71
|
+
}
|
|
72
|
+
interface ExcludeDomains {
|
|
73
|
+
support: 'native' | 'emulated' | 'unsupported';
|
|
74
|
+
/**
|
|
75
|
+
* Translation behavior, limitations, and precision.
|
|
76
|
+
*/
|
|
77
|
+
notes?: string;
|
|
78
|
+
}
|
|
79
|
+
interface IncludeDomains {
|
|
80
|
+
support: 'native' | 'emulated' | 'unsupported';
|
|
81
|
+
/**
|
|
82
|
+
* Translation behavior, limitations, and precision.
|
|
83
|
+
*/
|
|
84
|
+
notes?: string;
|
|
85
|
+
}
|
|
86
|
+
interface Language {
|
|
87
|
+
support: 'native' | 'emulated' | 'unsupported';
|
|
88
|
+
/**
|
|
89
|
+
* Translation behavior, limitations, and precision.
|
|
90
|
+
*/
|
|
91
|
+
notes?: string;
|
|
92
|
+
}
|
|
93
|
+
interface Recency {
|
|
94
|
+
support: 'native' | 'emulated' | 'unsupported';
|
|
95
|
+
/**
|
|
96
|
+
* Translation behavior, limitations, and precision.
|
|
97
|
+
*/
|
|
98
|
+
notes?: string;
|
|
99
|
+
}
|
|
100
|
+
interface SafeSearch {
|
|
101
|
+
support: 'native' | 'emulated' | 'unsupported';
|
|
102
|
+
/**
|
|
103
|
+
* Translation behavior, limitations, and precision.
|
|
104
|
+
*/
|
|
105
|
+
notes?: string;
|
|
106
|
+
}
|
|
107
|
+
interface StartDate {
|
|
108
|
+
support: 'native' | 'emulated' | 'unsupported';
|
|
109
|
+
/**
|
|
110
|
+
* Translation behavior, limitations, and precision.
|
|
111
|
+
*/
|
|
112
|
+
notes?: string;
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
interface ProviderOptions {
|
|
116
|
+
/**
|
|
117
|
+
* JSON Schema for the provider-native options accepted by POST /search.
|
|
118
|
+
*/
|
|
119
|
+
schema: {
|
|
120
|
+
[key: string]: unknown;
|
|
121
|
+
};
|
|
122
|
+
/**
|
|
123
|
+
* OpenAPI component name for the matching typed provider-options schema.
|
|
124
|
+
*/
|
|
125
|
+
schema_ref: string;
|
|
126
|
+
examples?: Array<{
|
|
127
|
+
[key: string]: unknown;
|
|
128
|
+
}>;
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
export type ProviderListResponse = Array<Provider>;
|
|
132
|
+
export interface ProviderListParams {
|
|
133
|
+
/**
|
|
134
|
+
* Optional concrete provider slug filter. Omit to list every provider.
|
|
135
|
+
*/
|
|
136
|
+
slug?: 'brave' | 'exa' | 'perplexity' | 'context' | 'parallel' | 'valyu' | 'octen' | 'you' | 'tavily' | 'serpapi';
|
|
137
|
+
}
|
|
138
|
+
export declare namespace Providers {
|
|
139
|
+
export { type Provider as Provider, type ProviderListResponse as ProviderListResponse, type ProviderListParams as ProviderListParams, };
|
|
140
|
+
}
|
|
141
|
+
//# sourceMappingURL=providers.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"providers.d.ts","sourceRoot":"","sources":["../../src/resources/search/providers.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,EAAE,UAAU,EAAE,kCAA+B;AACpD,OAAO,EAAE,cAAc,EAAE,0CAAuC;AAEhE;;GAEG;AACH,qBAAa,SAAU,SAAQ,WAAW;IACxC;;;;;;;;;OASG;IACH,IAAI,CACF,KAAK,GAAE,kBAAkB,GAAG,IAAI,GAAG,SAAc,EACjD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,oBAAoB,CAAC;CAGpC;AAED,MAAM,WAAW,QAAQ;IACvB,OAAO,EAAE,QAAQ,CAAC,OAAO,CAAC;IAE1B,eAAe,EAAE,MAAM,CAAC;IAExB,MAAM,EAAE,QAAQ,CAAC,MAAM,CAAC;IAExB,gBAAgB,EAA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|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.Providers = void 0;
|
|
5
|
+
const resource_1 = require("../../core/resource.js");
|
|
6
|
+
/**
|
|
7
|
+
* Search the web and retrieve content for selected results.
|
|
8
|
+
*/
|
|
9
|
+
class Providers extends resource_1.APIResource {
|
|
10
|
+
/**
|
|
11
|
+
* Lists providers, capabilities, and machine-readable native-option schemas. Auto
|
|
12
|
+
* and fallback are strategies, not provider entries. The list is not paginated and
|
|
13
|
+
* contains no latency benchmarks. X-Request-Id identifies the request.
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* ```ts
|
|
17
|
+
* const providers = await client.search.providers.list();
|
|
18
|
+
* ```
|
|
19
|
+
*/
|
|
20
|
+
list(query = {}, options) {
|
|
21
|
+
return this._client.get('/search/providers', { query, ...options });
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
exports.Providers = Providers;
|
|
25
|
+
//# sourceMappingURL=providers.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"providers.js","sourceRoot":"","sources":["../../src/resources/search/providers.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAIlD;;GAEG;AACH,MAAa,SAAU,SAAQ,sBAAW;IACxC;;;;;;;;;OASG;IACH,IAAI,CACF,QAA+C,EAAE,EACjD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,mBAAmB,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACtE,CAAC;CACF;AAjBD,8BAiBC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from "../../core/resource.mjs";
|
|
3
|
+
/**
|
|
4
|
+
* Search the web and retrieve content for selected results.
|
|
5
|
+
*/
|
|
6
|
+
export class Providers extends APIResource {
|
|
7
|
+
/**
|
|
8
|
+
* Lists providers, capabilities, and machine-readable native-option schemas. Auto
|
|
9
|
+
* and fallback are strategies, not provider entries. The list is not paginated and
|
|
10
|
+
* contains no latency benchmarks. X-Request-Id identifies the request.
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* ```ts
|
|
14
|
+
* const providers = await client.search.providers.list();
|
|
15
|
+
* ```
|
|
16
|
+
*/
|
|
17
|
+
list(query = {}, options) {
|
|
18
|
+
return this._client.get('/search/providers', { query, ...options });
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
//# sourceMappingURL=providers.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"providers.mjs","sourceRoot":"","sources":["../../src/resources/search/providers.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAIlD;;GAEG;AACH,MAAM,OAAO,SAAU,SAAQ,WAAW;IACxC;;;;;;;;;OASG;IACH,IAAI,CACF,QAA+C,EAAE,EACjD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,mBAAmB,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACtE,CAAC;CACF"}
|