@onkernel/sdk 0.94.0 → 0.96.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 +15 -0
- package/client.d.mts +3 -3
- package/client.d.mts.map +1 -1
- package/client.d.ts +3 -3
- package/client.d.ts.map +1 -1
- package/client.js +3 -3
- package/client.js.map +1 -1
- package/client.mjs +3 -3
- package/client.mjs.map +1 -1
- package/lib/browser-routing.d.mts.map +1 -1
- package/lib/browser-routing.d.ts.map +1 -1
- package/lib/browser-routing.js +7 -1
- package/lib/browser-routing.js.map +1 -1
- package/lib/browser-routing.mjs +7 -1
- package/lib/browser-routing.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/auth/connections.d.mts +20 -8
- package/resources/auth/connections.d.mts.map +1 -1
- package/resources/auth/connections.d.ts +20 -8
- package/resources/auth/connections.d.ts.map +1 -1
- package/resources/browser-pools.d.mts +4 -4
- package/resources/browser-pools.d.mts.map +1 -1
- package/resources/browser-pools.d.ts +4 -4
- package/resources/browser-pools.d.ts.map +1 -1
- package/resources/browsers/browsers.d.mts +8 -8
- package/resources/browsers/browsers.d.mts.map +1 -1
- package/resources/browsers/browsers.d.ts +8 -8
- package/resources/browsers/browsers.d.ts.map +1 -1
- package/resources/browsers/browsers.js +2 -2
- package/resources/browsers/browsers.mjs +2 -2
- package/resources/config-registry/analyses.d.mts +45 -0
- package/resources/config-registry/analyses.d.mts.map +1 -0
- package/resources/config-registry/analyses.d.ts +45 -0
- package/resources/config-registry/analyses.d.ts.map +1 -0
- package/resources/config-registry/analyses.js +41 -0
- package/resources/config-registry/analyses.js.map +1 -0
- package/resources/config-registry/analyses.mjs +37 -0
- package/resources/config-registry/analyses.mjs.map +1 -0
- package/resources/{site-configs.d.ts → config-registry/config-registry.d.mts} +62 -70
- package/resources/config-registry/config-registry.d.mts.map +1 -0
- package/resources/{site-configs.d.mts → config-registry/config-registry.d.ts} +62 -70
- package/resources/config-registry/config-registry.d.ts.map +1 -0
- package/resources/config-registry/config-registry.js +69 -0
- package/resources/config-registry/config-registry.js.map +1 -0
- package/resources/config-registry/config-registry.mjs +64 -0
- package/resources/config-registry/config-registry.mjs.map +1 -0
- package/resources/config-registry/index.d.mts +3 -0
- package/resources/config-registry/index.d.mts.map +1 -0
- package/resources/config-registry/index.d.ts +3 -0
- package/resources/config-registry/index.d.ts.map +1 -0
- package/resources/config-registry/index.js +9 -0
- package/resources/config-registry/index.js.map +1 -0
- package/resources/config-registry/index.mjs +4 -0
- package/resources/config-registry/index.mjs.map +1 -0
- package/resources/config-registry.d.mts +2 -0
- package/resources/config-registry.d.mts.map +1 -0
- package/resources/config-registry.d.ts +2 -0
- package/resources/config-registry.d.ts.map +1 -0
- package/resources/config-registry.js +6 -0
- package/resources/config-registry.js.map +1 -0
- package/resources/config-registry.mjs +3 -0
- package/resources/config-registry.mjs.map +1 -0
- 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 +3 -3
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +1 -1
- package/resources/index.mjs.map +1 -1
- package/resources/invocations.d.mts +1 -1
- package/resources/invocations.d.mts.map +1 -1
- package/resources/invocations.d.ts +1 -1
- package/resources/invocations.d.ts.map +1 -1
- package/src/client.ts +28 -32
- package/src/lib/browser-routing.ts +7 -1
- package/src/resources/auth/connections.ts +20 -8
- package/src/resources/browser-pools.ts +4 -4
- package/src/resources/browsers/browsers.ts +8 -8
- package/src/resources/config-registry/analyses.ts +63 -0
- package/src/resources/{site-configs.ts → config-registry/config-registry.ts} +77 -90
- package/src/resources/config-registry/index.ts +25 -0
- package/src/resources/config-registry.ts +3 -0
- package/src/resources/index.ts +22 -23
- package/src/resources/invocations.ts +1 -1
- 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
- package/resources/site-configs.d.mts.map +0 -1
- package/resources/site-configs.d.ts.map +0 -1
- package/resources/site-configs.js +0 -88
- package/resources/site-configs.js.map +0 -1
- package/resources/site-configs.mjs +0 -84
- package/resources/site-configs.mjs.map +0 -1
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
import { APIResource } from "../core/resource.mjs";
|
|
3
|
-
import { OffsetPagination } from "../core/pagination.mjs";
|
|
4
|
-
import { path } from "../internal/utils/path.mjs";
|
|
5
|
-
/**
|
|
6
|
-
* Resolve browser and proxy recommendations for bot-protected sites.
|
|
7
|
-
*/
|
|
8
|
-
export class SiteConfigs extends APIResource {
|
|
9
|
-
/**
|
|
10
|
-
* Returns a project-scoped historical analysis and the recommendation outcome
|
|
11
|
-
* concluded by that run. Later knowledge does not change this response.
|
|
12
|
-
*
|
|
13
|
-
* @example
|
|
14
|
-
* ```ts
|
|
15
|
-
* const siteConfigResponse =
|
|
16
|
-
* await client.siteConfigs.retrieve('id');
|
|
17
|
-
* ```
|
|
18
|
-
*/
|
|
19
|
-
retrieve(id, options) {
|
|
20
|
-
return this._client.get(path `/site-configs/${id}`, options);
|
|
21
|
-
}
|
|
22
|
-
/**
|
|
23
|
-
* Lists analyses for the selected project, newest first.
|
|
24
|
-
*
|
|
25
|
-
* @example
|
|
26
|
-
* ```ts
|
|
27
|
-
* // Automatically fetches more pages as needed.
|
|
28
|
-
* for await (const analysisSummary of client.siteConfigs.list()) {
|
|
29
|
-
* // ...
|
|
30
|
-
* }
|
|
31
|
-
* ```
|
|
32
|
-
*/
|
|
33
|
-
list(query = {}, options) {
|
|
34
|
-
return this._client.getAPIList('/site-configs', (OffsetPagination), { query, ...options });
|
|
35
|
-
}
|
|
36
|
-
/**
|
|
37
|
-
* Lists unique domains previously analyzed by the selected project with their
|
|
38
|
-
* current domain-level recommendations.
|
|
39
|
-
*
|
|
40
|
-
* @example
|
|
41
|
-
* ```ts
|
|
42
|
-
* // Automatically fetches more pages as needed.
|
|
43
|
-
* for await (const recommendationSummary of client.siteConfigs.listRecommendations()) {
|
|
44
|
-
* // ...
|
|
45
|
-
* }
|
|
46
|
-
* ```
|
|
47
|
-
*/
|
|
48
|
-
listRecommendations(query = {}, options) {
|
|
49
|
-
return this._client.getAPIList('/site-configs/recommendations', (OffsetPagination), {
|
|
50
|
-
query,
|
|
51
|
-
...options,
|
|
52
|
-
});
|
|
53
|
-
}
|
|
54
|
-
/**
|
|
55
|
-
* Returns current global knowledge without resolving DNS, creating an analysis, or
|
|
56
|
-
* updating Site Config data.
|
|
57
|
-
*
|
|
58
|
-
* @example
|
|
59
|
-
* ```ts
|
|
60
|
-
* const lookupResponse = await client.siteConfigs.lookup({
|
|
61
|
-
* url: 'https://example.com',
|
|
62
|
-
* });
|
|
63
|
-
* ```
|
|
64
|
-
*/
|
|
65
|
-
lookup(body, options) {
|
|
66
|
-
return this._client.post('/site-configs/lookup', { body, ...options });
|
|
67
|
-
}
|
|
68
|
-
/**
|
|
69
|
-
* Explicitly starts or retries a project-scoped background analysis while
|
|
70
|
-
* preserving current global knowledge when available. Use `/site-configs/lookup`
|
|
71
|
-
* for side-effect-free reads.
|
|
72
|
-
*
|
|
73
|
-
* @example
|
|
74
|
-
* ```ts
|
|
75
|
-
* const siteConfigResponse = await client.siteConfigs.resolve(
|
|
76
|
-
* { url: 'https://example.com' },
|
|
77
|
-
* );
|
|
78
|
-
* ```
|
|
79
|
-
*/
|
|
80
|
-
resolve(body, options) {
|
|
81
|
-
return this._client.post('/site-configs/resolve', { body, ...options });
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
//# sourceMappingURL=site-configs.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"site-configs.mjs","sourceRoot":"","sources":["../src/resources/site-configs.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAG/C,OAAO,EAAE,gBAAgB,EAA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