@onkernel/sdk 0.111.0 → 0.112.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 +13 -0
- package/package.json +1 -1
- package/resources/browser-pools.d.mts +8 -1
- package/resources/browser-pools.d.mts.map +1 -1
- package/resources/browser-pools.d.ts +8 -1
- package/resources/browser-pools.d.ts.map +1 -1
- package/resources/browsers/browsers.d.mts +44 -3
- package/resources/browsers/browsers.d.mts.map +1 -1
- package/resources/browsers/browsers.d.ts +44 -3
- package/resources/browsers/browsers.d.ts.map +1 -1
- package/resources/browsers/browsers.js +2 -2
- package/resources/browsers/browsers.js.map +1 -1
- package/resources/browsers/browsers.mjs +2 -2
- 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 +2 -2
- package/resources/browsers/index.js.map +1 -1
- package/resources/browsers/index.mjs +1 -1
- package/resources/browsers/index.mjs.map +1 -1
- package/resources/browsers/telemetry.d.mts +27 -18
- package/resources/browsers/telemetry.d.mts.map +1 -1
- package/resources/browsers/telemetry.d.ts +27 -18
- package/resources/browsers/telemetry.d.ts.map +1 -1
- package/resources/browsers/telemetry.js +3 -2
- package/resources/browsers/telemetry.js.map +1 -1
- package/resources/browsers/telemetry.mjs +3 -2
- package/resources/browsers/telemetry.mjs.map +1 -1
- package/resources/browsers/webmcp/custom-tools.d.mts +118 -0
- package/resources/browsers/webmcp/custom-tools.d.mts.map +1 -0
- package/resources/browsers/webmcp/custom-tools.d.ts +118 -0
- package/resources/browsers/webmcp/custom-tools.d.ts.map +1 -0
- package/resources/browsers/webmcp/custom-tools.js +75 -0
- package/resources/browsers/webmcp/custom-tools.js.map +1 -0
- package/resources/browsers/webmcp/custom-tools.mjs +71 -0
- package/resources/browsers/webmcp/custom-tools.mjs.map +1 -0
- package/resources/browsers/webmcp/index.d.mts +3 -0
- package/resources/browsers/webmcp/index.d.mts.map +1 -0
- package/resources/browsers/webmcp/index.d.ts +3 -0
- package/resources/browsers/webmcp/index.d.ts.map +1 -0
- package/resources/browsers/webmcp/index.js +9 -0
- package/resources/browsers/webmcp/index.js.map +1 -0
- package/resources/browsers/webmcp/index.mjs +4 -0
- package/resources/browsers/webmcp/index.mjs.map +1 -0
- package/resources/browsers/webmcp/webmcp.d.mts +211 -0
- package/resources/browsers/webmcp/webmcp.d.mts.map +1 -0
- package/resources/browsers/webmcp/webmcp.d.ts +211 -0
- package/resources/browsers/webmcp/webmcp.d.ts.map +1 -0
- package/resources/browsers/webmcp/webmcp.js +66 -0
- package/resources/browsers/webmcp/webmcp.js.map +1 -0
- package/resources/browsers/webmcp/webmcp.mjs +61 -0
- package/resources/browsers/webmcp/webmcp.mjs.map +1 -0
- package/resources/browsers/webmcp.d.mts +1 -157
- package/resources/browsers/webmcp.d.mts.map +1 -1
- package/resources/browsers/webmcp.d.ts +1 -157
- package/resources/browsers/webmcp.d.ts.map +1 -1
- package/resources/browsers/webmcp.js +2 -51
- package/resources/browsers/webmcp.js.map +1 -1
- package/resources/browsers/webmcp.mjs +1 -49
- package/resources/browsers/webmcp.mjs.map +1 -1
- package/resources/organization/entitlements.d.mts +15 -0
- package/resources/organization/entitlements.d.mts.map +1 -1
- package/resources/organization/entitlements.d.ts +15 -0
- package/resources/organization/entitlements.d.ts.map +1 -1
- package/src/resources/browser-pools.ts +9 -1
- package/src/resources/browsers/browsers.ts +65 -13
- package/src/resources/browsers/index.ts +4 -1
- package/src/resources/browsers/telemetry.ts +56 -17
- package/src/resources/browsers/webmcp/custom-tools.ts +160 -0
- package/src/resources/browsers/webmcp/index.ts +26 -0
- package/src/resources/browsers/webmcp/webmcp.ts +295 -0
- package/src/resources/browsers/webmcp.ts +1 -204
- package/src/resources/organization/entitlements.ts +17 -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
|
@@ -1,158 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
import { APIPromise } from "../../core/api-promise.mjs";
|
|
3
|
-
import { RequestOptions } from "../../internal/request-options.mjs";
|
|
4
|
-
/**
|
|
5
|
-
* Discover and invoke native page tools across the browser instance.
|
|
6
|
-
*/
|
|
7
|
-
export declare class Webmcp extends APIResource {
|
|
8
|
-
/**
|
|
9
|
-
* Invokes the exact live registration identified by tool_ref. Non-autosubmit
|
|
10
|
-
* declarative form tools return after their fields are populated with an
|
|
11
|
-
* awaiting_submission status. Other tools wait for a terminal result, including
|
|
12
|
-
* across navigation. Inspect a populated form, obtain any required confirmation,
|
|
13
|
-
* then submit through Playwright or computer interaction without invoking the tool
|
|
14
|
-
* again. If the tab or embedded frame disappears, or the request times out after
|
|
15
|
-
* invocation begins, the response reports outcome_unknown and the tool is not
|
|
16
|
-
* retried.
|
|
17
|
-
*
|
|
18
|
-
* @example
|
|
19
|
-
* ```ts
|
|
20
|
-
* const invocationResult =
|
|
21
|
-
* await client.browsers.webmcp.invokeTool(
|
|
22
|
-
* 'htzv5orfit78e1m2biiifpbv',
|
|
23
|
-
* {
|
|
24
|
-
* input: { foo: 'bar' },
|
|
25
|
-
* tool_ref: 'x',
|
|
26
|
-
* },
|
|
27
|
-
* );
|
|
28
|
-
* ```
|
|
29
|
-
*/
|
|
30
|
-
invokeTool(idOrName: string, body: WebmcpInvokeToolParams, options?: RequestOptions): APIPromise<InvocationResult>;
|
|
31
|
-
/**
|
|
32
|
-
* Returns a snapshot of native WebMCP tools available across every open tab and
|
|
33
|
-
* embedded frame in the browser. Each tool includes an opaque tool_ref for
|
|
34
|
-
* invoking that exact live registration. Tools disappear when their document
|
|
35
|
-
* closes or navigates away.
|
|
36
|
-
*
|
|
37
|
-
* @example
|
|
38
|
-
* ```ts
|
|
39
|
-
* const toolsResponse =
|
|
40
|
-
* await client.browsers.webmcp.listTools(
|
|
41
|
-
* 'htzv5orfit78e1m2biiifpbv',
|
|
42
|
-
* );
|
|
43
|
-
* ```
|
|
44
|
-
*/
|
|
45
|
-
listTools(idOrName: string, options?: RequestOptions): APIPromise<ToolsResponse>;
|
|
46
|
-
}
|
|
47
|
-
export interface InvocationFailure {
|
|
48
|
-
code: 'outcome_unknown';
|
|
49
|
-
message: string;
|
|
50
|
-
invocation_id?: string;
|
|
51
|
-
}
|
|
52
|
-
export interface InvocationResult {
|
|
53
|
-
invocation_id: string;
|
|
54
|
-
/**
|
|
55
|
-
* awaiting_submission means a non-autosubmit declarative form was populated but
|
|
56
|
-
* not submitted. Inspect the form, obtain any required confirmation, then submit
|
|
57
|
-
* through Playwright or computer interaction without invoking the tool again. The
|
|
58
|
-
* other statuses are terminal results.
|
|
59
|
-
*/
|
|
60
|
-
status: 'completed' | 'canceled' | 'error' | 'awaiting_submission';
|
|
61
|
-
error_text?: string;
|
|
62
|
-
/**
|
|
63
|
-
* Untrusted page-provided output. Callers must treat it as potentially malicious
|
|
64
|
-
* input.
|
|
65
|
-
*/
|
|
66
|
-
output?: unknown;
|
|
67
|
-
}
|
|
68
|
-
export interface InvokeRequest {
|
|
69
|
-
/**
|
|
70
|
-
* Tool input, limited to 1 MiB after JSON serialization.
|
|
71
|
-
*/
|
|
72
|
-
input: {
|
|
73
|
-
[key: string]: unknown;
|
|
74
|
-
};
|
|
75
|
-
tool_ref: string;
|
|
76
|
-
timeout_sec?: number;
|
|
77
|
-
}
|
|
78
|
-
export interface Tool {
|
|
79
|
-
description: string;
|
|
80
|
-
input_schema: {
|
|
81
|
-
[key: string]: unknown;
|
|
82
|
-
};
|
|
83
|
-
name: string;
|
|
84
|
-
source: ToolSource;
|
|
85
|
-
/**
|
|
86
|
-
* Opaque reference for invoking this exact live registration. It becomes invalid
|
|
87
|
-
* when its document or browser process is replaced.
|
|
88
|
-
*/
|
|
89
|
-
tool_ref: string;
|
|
90
|
-
/**
|
|
91
|
-
* Page-provided behavioral hints. These values are untrusted and are not enforced
|
|
92
|
-
* by Kernel.
|
|
93
|
-
*/
|
|
94
|
-
annotations?: ToolAnnotations;
|
|
95
|
-
}
|
|
96
|
-
/**
|
|
97
|
-
* Page-provided behavioral hints. These values are untrusted and are not enforced
|
|
98
|
-
* by Kernel.
|
|
99
|
-
*/
|
|
100
|
-
export interface ToolAnnotations {
|
|
101
|
-
autosubmit: boolean;
|
|
102
|
-
consequential: boolean;
|
|
103
|
-
read_only: boolean;
|
|
104
|
-
untrusted_content: boolean;
|
|
105
|
-
}
|
|
106
|
-
export interface ToolFrame {
|
|
107
|
-
/**
|
|
108
|
-
* Monotonically increasing identifier for this embedded frame during the current
|
|
109
|
-
* browser process.
|
|
110
|
-
*/
|
|
111
|
-
frame_id: number;
|
|
112
|
-
/**
|
|
113
|
-
* Current frame URL with the fragment omitted.
|
|
114
|
-
*/
|
|
115
|
-
url: string;
|
|
116
|
-
}
|
|
117
|
-
export interface ToolSource {
|
|
118
|
-
/**
|
|
119
|
-
* Embedded frame that registered the tool, or null when the top-level page
|
|
120
|
-
* registered it.
|
|
121
|
-
*/
|
|
122
|
-
frame: ToolFrame | null;
|
|
123
|
-
/**
|
|
124
|
-
* Current title of the top-level page.
|
|
125
|
-
*/
|
|
126
|
-
page_title: string;
|
|
127
|
-
/**
|
|
128
|
-
* Current URL of the top-level page with the fragment omitted.
|
|
129
|
-
*/
|
|
130
|
-
page_url: string;
|
|
131
|
-
/**
|
|
132
|
-
* Monotonically increasing identifier for the tab during the current browser
|
|
133
|
-
* process.
|
|
134
|
-
*/
|
|
135
|
-
tab_id: number;
|
|
136
|
-
/**
|
|
137
|
-
* Monotonically increasing identifier for the browser window during the current
|
|
138
|
-
* browser process.
|
|
139
|
-
*/
|
|
140
|
-
window_id: number;
|
|
141
|
-
}
|
|
142
|
-
export interface ToolsResponse {
|
|
143
|
-
tools: Array<Tool>;
|
|
144
|
-
}
|
|
145
|
-
export interface WebmcpInvokeToolParams {
|
|
146
|
-
/**
|
|
147
|
-
* Tool input, limited to 1 MiB after JSON serialization.
|
|
148
|
-
*/
|
|
149
|
-
input: {
|
|
150
|
-
[key: string]: unknown;
|
|
151
|
-
};
|
|
152
|
-
tool_ref: string;
|
|
153
|
-
timeout_sec?: number;
|
|
154
|
-
}
|
|
155
|
-
export declare namespace Webmcp {
|
|
156
|
-
export { type InvocationFailure as InvocationFailure, type InvocationResult as InvocationResult, type InvokeRequest as InvokeRequest, type Tool as Tool, type ToolAnnotations as ToolAnnotations, type ToolFrame as ToolFrame, type ToolSource as ToolSource, type ToolsResponse as ToolsResponse, type WebmcpInvokeToolParams as WebmcpInvokeToolParams, };
|
|
157
|
-
}
|
|
1
|
+
export * from "./webmcp/index.mjs";
|
|
158
2
|
//# sourceMappingURL=webmcp.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"webmcp.d.mts","sourceRoot":"","sources":["../../src/resources/browsers/webmcp.ts"],"names":[],"mappings":"AAEA,
|
|
1
|
+
{"version":3,"file":"webmcp.d.mts","sourceRoot":"","sources":["../../src/resources/browsers/webmcp.ts"],"names":[],"mappings":"AAEA,mCAA+B"}
|
|
@@ -1,158 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
import { APIPromise } from "../../core/api-promise.js";
|
|
3
|
-
import { RequestOptions } from "../../internal/request-options.js";
|
|
4
|
-
/**
|
|
5
|
-
* Discover and invoke native page tools across the browser instance.
|
|
6
|
-
*/
|
|
7
|
-
export declare class Webmcp extends APIResource {
|
|
8
|
-
/**
|
|
9
|
-
* Invokes the exact live registration identified by tool_ref. Non-autosubmit
|
|
10
|
-
* declarative form tools return after their fields are populated with an
|
|
11
|
-
* awaiting_submission status. Other tools wait for a terminal result, including
|
|
12
|
-
* across navigation. Inspect a populated form, obtain any required confirmation,
|
|
13
|
-
* then submit through Playwright or computer interaction without invoking the tool
|
|
14
|
-
* again. If the tab or embedded frame disappears, or the request times out after
|
|
15
|
-
* invocation begins, the response reports outcome_unknown and the tool is not
|
|
16
|
-
* retried.
|
|
17
|
-
*
|
|
18
|
-
* @example
|
|
19
|
-
* ```ts
|
|
20
|
-
* const invocationResult =
|
|
21
|
-
* await client.browsers.webmcp.invokeTool(
|
|
22
|
-
* 'htzv5orfit78e1m2biiifpbv',
|
|
23
|
-
* {
|
|
24
|
-
* input: { foo: 'bar' },
|
|
25
|
-
* tool_ref: 'x',
|
|
26
|
-
* },
|
|
27
|
-
* );
|
|
28
|
-
* ```
|
|
29
|
-
*/
|
|
30
|
-
invokeTool(idOrName: string, body: WebmcpInvokeToolParams, options?: RequestOptions): APIPromise<InvocationResult>;
|
|
31
|
-
/**
|
|
32
|
-
* Returns a snapshot of native WebMCP tools available across every open tab and
|
|
33
|
-
* embedded frame in the browser. Each tool includes an opaque tool_ref for
|
|
34
|
-
* invoking that exact live registration. Tools disappear when their document
|
|
35
|
-
* closes or navigates away.
|
|
36
|
-
*
|
|
37
|
-
* @example
|
|
38
|
-
* ```ts
|
|
39
|
-
* const toolsResponse =
|
|
40
|
-
* await client.browsers.webmcp.listTools(
|
|
41
|
-
* 'htzv5orfit78e1m2biiifpbv',
|
|
42
|
-
* );
|
|
43
|
-
* ```
|
|
44
|
-
*/
|
|
45
|
-
listTools(idOrName: string, options?: RequestOptions): APIPromise<ToolsResponse>;
|
|
46
|
-
}
|
|
47
|
-
export interface InvocationFailure {
|
|
48
|
-
code: 'outcome_unknown';
|
|
49
|
-
message: string;
|
|
50
|
-
invocation_id?: string;
|
|
51
|
-
}
|
|
52
|
-
export interface InvocationResult {
|
|
53
|
-
invocation_id: string;
|
|
54
|
-
/**
|
|
55
|
-
* awaiting_submission means a non-autosubmit declarative form was populated but
|
|
56
|
-
* not submitted. Inspect the form, obtain any required confirmation, then submit
|
|
57
|
-
* through Playwright or computer interaction without invoking the tool again. The
|
|
58
|
-
* other statuses are terminal results.
|
|
59
|
-
*/
|
|
60
|
-
status: 'completed' | 'canceled' | 'error' | 'awaiting_submission';
|
|
61
|
-
error_text?: string;
|
|
62
|
-
/**
|
|
63
|
-
* Untrusted page-provided output. Callers must treat it as potentially malicious
|
|
64
|
-
* input.
|
|
65
|
-
*/
|
|
66
|
-
output?: unknown;
|
|
67
|
-
}
|
|
68
|
-
export interface InvokeRequest {
|
|
69
|
-
/**
|
|
70
|
-
* Tool input, limited to 1 MiB after JSON serialization.
|
|
71
|
-
*/
|
|
72
|
-
input: {
|
|
73
|
-
[key: string]: unknown;
|
|
74
|
-
};
|
|
75
|
-
tool_ref: string;
|
|
76
|
-
timeout_sec?: number;
|
|
77
|
-
}
|
|
78
|
-
export interface Tool {
|
|
79
|
-
description: string;
|
|
80
|
-
input_schema: {
|
|
81
|
-
[key: string]: unknown;
|
|
82
|
-
};
|
|
83
|
-
name: string;
|
|
84
|
-
source: ToolSource;
|
|
85
|
-
/**
|
|
86
|
-
* Opaque reference for invoking this exact live registration. It becomes invalid
|
|
87
|
-
* when its document or browser process is replaced.
|
|
88
|
-
*/
|
|
89
|
-
tool_ref: string;
|
|
90
|
-
/**
|
|
91
|
-
* Page-provided behavioral hints. These values are untrusted and are not enforced
|
|
92
|
-
* by Kernel.
|
|
93
|
-
*/
|
|
94
|
-
annotations?: ToolAnnotations;
|
|
95
|
-
}
|
|
96
|
-
/**
|
|
97
|
-
* Page-provided behavioral hints. These values are untrusted and are not enforced
|
|
98
|
-
* by Kernel.
|
|
99
|
-
*/
|
|
100
|
-
export interface ToolAnnotations {
|
|
101
|
-
autosubmit: boolean;
|
|
102
|
-
consequential: boolean;
|
|
103
|
-
read_only: boolean;
|
|
104
|
-
untrusted_content: boolean;
|
|
105
|
-
}
|
|
106
|
-
export interface ToolFrame {
|
|
107
|
-
/**
|
|
108
|
-
* Monotonically increasing identifier for this embedded frame during the current
|
|
109
|
-
* browser process.
|
|
110
|
-
*/
|
|
111
|
-
frame_id: number;
|
|
112
|
-
/**
|
|
113
|
-
* Current frame URL with the fragment omitted.
|
|
114
|
-
*/
|
|
115
|
-
url: string;
|
|
116
|
-
}
|
|
117
|
-
export interface ToolSource {
|
|
118
|
-
/**
|
|
119
|
-
* Embedded frame that registered the tool, or null when the top-level page
|
|
120
|
-
* registered it.
|
|
121
|
-
*/
|
|
122
|
-
frame: ToolFrame | null;
|
|
123
|
-
/**
|
|
124
|
-
* Current title of the top-level page.
|
|
125
|
-
*/
|
|
126
|
-
page_title: string;
|
|
127
|
-
/**
|
|
128
|
-
* Current URL of the top-level page with the fragment omitted.
|
|
129
|
-
*/
|
|
130
|
-
page_url: string;
|
|
131
|
-
/**
|
|
132
|
-
* Monotonically increasing identifier for the tab during the current browser
|
|
133
|
-
* process.
|
|
134
|
-
*/
|
|
135
|
-
tab_id: number;
|
|
136
|
-
/**
|
|
137
|
-
* Monotonically increasing identifier for the browser window during the current
|
|
138
|
-
* browser process.
|
|
139
|
-
*/
|
|
140
|
-
window_id: number;
|
|
141
|
-
}
|
|
142
|
-
export interface ToolsResponse {
|
|
143
|
-
tools: Array<Tool>;
|
|
144
|
-
}
|
|
145
|
-
export interface WebmcpInvokeToolParams {
|
|
146
|
-
/**
|
|
147
|
-
* Tool input, limited to 1 MiB after JSON serialization.
|
|
148
|
-
*/
|
|
149
|
-
input: {
|
|
150
|
-
[key: string]: unknown;
|
|
151
|
-
};
|
|
152
|
-
tool_ref: string;
|
|
153
|
-
timeout_sec?: number;
|
|
154
|
-
}
|
|
155
|
-
export declare namespace Webmcp {
|
|
156
|
-
export { type InvocationFailure as InvocationFailure, type InvocationResult as InvocationResult, type InvokeRequest as InvokeRequest, type Tool as Tool, type ToolAnnotations as ToolAnnotations, type ToolFrame as ToolFrame, type ToolSource as ToolSource, type ToolsResponse as ToolsResponse, type WebmcpInvokeToolParams as WebmcpInvokeToolParams, };
|
|
157
|
-
}
|
|
1
|
+
export * from "./webmcp/index.js";
|
|
158
2
|
//# sourceMappingURL=webmcp.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"webmcp.d.ts","sourceRoot":"","sources":["../../src/resources/browsers/webmcp.ts"],"names":[],"mappings":"AAEA,
|
|
1
|
+
{"version":3,"file":"webmcp.d.ts","sourceRoot":"","sources":["../../src/resources/browsers/webmcp.ts"],"names":[],"mappings":"AAEA,kCAA+B"}
|
|
@@ -1,55 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
const path_1 = require("../../internal/utils/path.js");
|
|
7
|
-
/**
|
|
8
|
-
* Discover and invoke native page tools across the browser instance.
|
|
9
|
-
*/
|
|
10
|
-
class Webmcp extends resource_1.APIResource {
|
|
11
|
-
/**
|
|
12
|
-
* Invokes the exact live registration identified by tool_ref. Non-autosubmit
|
|
13
|
-
* declarative form tools return after their fields are populated with an
|
|
14
|
-
* awaiting_submission status. Other tools wait for a terminal result, including
|
|
15
|
-
* across navigation. Inspect a populated form, obtain any required confirmation,
|
|
16
|
-
* then submit through Playwright or computer interaction without invoking the tool
|
|
17
|
-
* again. If the tab or embedded frame disappears, or the request times out after
|
|
18
|
-
* invocation begins, the response reports outcome_unknown and the tool is not
|
|
19
|
-
* retried.
|
|
20
|
-
*
|
|
21
|
-
* @example
|
|
22
|
-
* ```ts
|
|
23
|
-
* const invocationResult =
|
|
24
|
-
* await client.browsers.webmcp.invokeTool(
|
|
25
|
-
* 'htzv5orfit78e1m2biiifpbv',
|
|
26
|
-
* {
|
|
27
|
-
* input: { foo: 'bar' },
|
|
28
|
-
* tool_ref: 'x',
|
|
29
|
-
* },
|
|
30
|
-
* );
|
|
31
|
-
* ```
|
|
32
|
-
*/
|
|
33
|
-
invokeTool(idOrName, body, options) {
|
|
34
|
-
return this._client.post((0, path_1.path) `/browsers/${idOrName}/webmcp/invoke`, { body, ...options });
|
|
35
|
-
}
|
|
36
|
-
/**
|
|
37
|
-
* Returns a snapshot of native WebMCP tools available across every open tab and
|
|
38
|
-
* embedded frame in the browser. Each tool includes an opaque tool_ref for
|
|
39
|
-
* invoking that exact live registration. Tools disappear when their document
|
|
40
|
-
* closes or navigates away.
|
|
41
|
-
*
|
|
42
|
-
* @example
|
|
43
|
-
* ```ts
|
|
44
|
-
* const toolsResponse =
|
|
45
|
-
* await client.browsers.webmcp.listTools(
|
|
46
|
-
* 'htzv5orfit78e1m2biiifpbv',
|
|
47
|
-
* );
|
|
48
|
-
* ```
|
|
49
|
-
*/
|
|
50
|
-
listTools(idOrName, options) {
|
|
51
|
-
return this._client.get((0, path_1.path) `/browsers/${idOrName}/webmcp/tools`, options);
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
exports.Webmcp = Webmcp;
|
|
4
|
+
const tslib_1 = require("../../internal/tslib.js");
|
|
5
|
+
tslib_1.__exportStar(require("./webmcp/index.js"), exports);
|
|
55
6
|
//# sourceMappingURL=webmcp.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"webmcp.js","sourceRoot":"","sources":["../../src/resources/browsers/webmcp.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,
|
|
1
|
+
{"version":3,"file":"webmcp.js","sourceRoot":"","sources":["../../src/resources/browsers/webmcp.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,4DAA+B"}
|
|
@@ -1,51 +1,3 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
|
|
3
|
-
import { path } from "../../internal/utils/path.mjs";
|
|
4
|
-
/**
|
|
5
|
-
* Discover and invoke native page tools across the browser instance.
|
|
6
|
-
*/
|
|
7
|
-
export class Webmcp extends APIResource {
|
|
8
|
-
/**
|
|
9
|
-
* Invokes the exact live registration identified by tool_ref. Non-autosubmit
|
|
10
|
-
* declarative form tools return after their fields are populated with an
|
|
11
|
-
* awaiting_submission status. Other tools wait for a terminal result, including
|
|
12
|
-
* across navigation. Inspect a populated form, obtain any required confirmation,
|
|
13
|
-
* then submit through Playwright or computer interaction without invoking the tool
|
|
14
|
-
* again. If the tab or embedded frame disappears, or the request times out after
|
|
15
|
-
* invocation begins, the response reports outcome_unknown and the tool is not
|
|
16
|
-
* retried.
|
|
17
|
-
*
|
|
18
|
-
* @example
|
|
19
|
-
* ```ts
|
|
20
|
-
* const invocationResult =
|
|
21
|
-
* await client.browsers.webmcp.invokeTool(
|
|
22
|
-
* 'htzv5orfit78e1m2biiifpbv',
|
|
23
|
-
* {
|
|
24
|
-
* input: { foo: 'bar' },
|
|
25
|
-
* tool_ref: 'x',
|
|
26
|
-
* },
|
|
27
|
-
* );
|
|
28
|
-
* ```
|
|
29
|
-
*/
|
|
30
|
-
invokeTool(idOrName, body, options) {
|
|
31
|
-
return this._client.post(path `/browsers/${idOrName}/webmcp/invoke`, { body, ...options });
|
|
32
|
-
}
|
|
33
|
-
/**
|
|
34
|
-
* Returns a snapshot of native WebMCP tools available across every open tab and
|
|
35
|
-
* embedded frame in the browser. Each tool includes an opaque tool_ref for
|
|
36
|
-
* invoking that exact live registration. Tools disappear when their document
|
|
37
|
-
* closes or navigates away.
|
|
38
|
-
*
|
|
39
|
-
* @example
|
|
40
|
-
* ```ts
|
|
41
|
-
* const toolsResponse =
|
|
42
|
-
* await client.browsers.webmcp.listTools(
|
|
43
|
-
* 'htzv5orfit78e1m2biiifpbv',
|
|
44
|
-
* );
|
|
45
|
-
* ```
|
|
46
|
-
*/
|
|
47
|
-
listTools(idOrName, options) {
|
|
48
|
-
return this._client.get(path `/browsers/${idOrName}/webmcp/tools`, options);
|
|
49
|
-
}
|
|
50
|
-
}
|
|
2
|
+
export * from "./webmcp/index.mjs";
|
|
51
3
|
//# sourceMappingURL=webmcp.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"webmcp.mjs","sourceRoot":"","sources":["../../src/resources/browsers/webmcp.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,
|
|
1
|
+
{"version":3,"file":"webmcp.mjs","sourceRoot":"","sources":["../../src/resources/browsers/webmcp.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,mCAA+B"}
|
|
@@ -37,6 +37,11 @@ export declare namespace OrgEntitlements {
|
|
|
37
37
|
managed_proxies: Features.ManagedProxies;
|
|
38
38
|
profiles: Features.Profiles;
|
|
39
39
|
proxy_bypass_hosts: Features.ProxyBypassHosts;
|
|
40
|
+
/**
|
|
41
|
+
* Whether the Search API is enabled for the organization by its rollout feature
|
|
42
|
+
* flag.
|
|
43
|
+
*/
|
|
44
|
+
search: Features.Search;
|
|
40
45
|
/**
|
|
41
46
|
* Whether the organization can access vaults, using the same access check as vault
|
|
42
47
|
* API routes.
|
|
@@ -143,6 +148,16 @@ export declare namespace OrgEntitlements {
|
|
|
143
148
|
*/
|
|
144
149
|
enabled: boolean;
|
|
145
150
|
}
|
|
151
|
+
/**
|
|
152
|
+
* Whether the Search API is enabled for the organization by its rollout feature
|
|
153
|
+
* flag.
|
|
154
|
+
*/
|
|
155
|
+
interface Search {
|
|
156
|
+
/**
|
|
157
|
+
* Whether the organization is entitled to use this feature.
|
|
158
|
+
*/
|
|
159
|
+
enabled: boolean;
|
|
160
|
+
}
|
|
146
161
|
/**
|
|
147
162
|
* Whether the organization can access vaults, using the same access check as vault
|
|
148
163
|
* API routes.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"entitlements.d.mts","sourceRoot":"","sources":["../../src/resources/organization/entitlements.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,EAAE,UAAU,EAAE,mCAA+B;AACpD,OAAO,EAAE,cAAc,EAAE,2CAAuC;AAEhE;;GAEG;AACH,qBAAa,YAAa,SAAQ,WAAW;IAC3C;;;;OAIG;IACH,QAAQ,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,eAAe,CAAC;CAGhE;AAED;;;;;GAKG;AACH,MAAM,WAAW,eAAe;IAC9B,QAAQ,EAAE,eAAe,CAAC,QAAQ,CAA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QAAQ;YACvB;;eAEG;YACH,OAAO,EAAE,OAAO,CAAC;SAClB;QAED,UAAiB,gBAAgB;YAC/B;;eAEG;YACH,OAAO,EAAE,OAAO,CAAC;SAClB;QAED;;;WAGG;QACH,UAAiB,MAAM;YACrB;;eAEG;YACH,OAAO,EAAE,OAAO,CAAC;SAClB;QAED;;;WAGG;QACH,UAAiB,MAAM;YACrB;;eAEG;YACH,OAAO,EAAE,OAAO,CAAC;SAClB;KACF;IAED,UAAiB,MAAM;QACrB;;;WAGG;QACH,0CAA0C,EAAE,MAAM,CAAC;QAEnD;;;WAGG;QACH,uBAAuB,EAAE,MAAM,CAAC;QAEhC;;WAEG;QACH,0BAA0B,EAAE,MAAM,CAAC;QAEnC;;;WAGG;QACH,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;KAC3B;IAED,UAAiB,IAAI;QACnB;;;WAGG;QACH,EAAE,EAAE,MAAM,GAAG,UAAU,GAAG,UAAU,GAAG,YAAY,CAAC;QAEpD;;;WAGG;QACH,YAAY,EAAE,MAAM,GAAG,UAAU,GAAG,UAAU,GAAG,YAAY,CAAC;QAE9D;;WAEG;QACH,WAAW,EAAE,OAAO,CAAC;QAErB;;;WAGG;QACH,MAAM,EAAE,sBAAsB,GAAG,QAAQ,GAAG,UAAU,GAAG,QAAQ,GAAG,IAAI,CAAC;QAEzE;;;WAGG;QACH,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;KAC9B;CACF;AAED,MAAM,CAAC,OAAO,WAAW,YAAY,CAAC;IACpC,OAAO,EAAE,KAAK,eAAe,IAAI,eAAe,EAAE,CAAC;CACpD"}
|
|
@@ -37,6 +37,11 @@ export declare namespace OrgEntitlements {
|
|
|
37
37
|
managed_proxies: Features.ManagedProxies;
|
|
38
38
|
profiles: Features.Profiles;
|
|
39
39
|
proxy_bypass_hosts: Features.ProxyBypassHosts;
|
|
40
|
+
/**
|
|
41
|
+
* Whether the Search API is enabled for the organization by its rollout feature
|
|
42
|
+
* flag.
|
|
43
|
+
*/
|
|
44
|
+
search: Features.Search;
|
|
40
45
|
/**
|
|
41
46
|
* Whether the organization can access vaults, using the same access check as vault
|
|
42
47
|
* API routes.
|
|
@@ -143,6 +148,16 @@ export declare namespace OrgEntitlements {
|
|
|
143
148
|
*/
|
|
144
149
|
enabled: boolean;
|
|
145
150
|
}
|
|
151
|
+
/**
|
|
152
|
+
* Whether the Search API is enabled for the organization by its rollout feature
|
|
153
|
+
* flag.
|
|
154
|
+
*/
|
|
155
|
+
interface Search {
|
|
156
|
+
/**
|
|
157
|
+
* Whether the organization is entitled to use this feature.
|
|
158
|
+
*/
|
|
159
|
+
enabled: boolean;
|
|
160
|
+
}
|
|
146
161
|
/**
|
|
147
162
|
* Whether the organization can access vaults, using the same access check as vault
|
|
148
163
|
* API routes.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"entitlements.d.ts","sourceRoot":"","sources":["../../src/resources/organization/entitlements.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,YAAa,SAAQ,WAAW;IAC3C;;;;OAIG;IACH,QAAQ,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,eAAe,CAAC;CAGhE;AAED;;;;;GAKG;AACH,MAAM,WAAW,eAAe;IAC9B,QAAQ,EAAE,eAAe,CAAC,QAAQ,CAAC;IAEnC,MAAM,EAAE,eAAe,CAAC,MAAM,CAAC;IAE/B,IAAI,EAAE,eAAe,CAAC,IAAI,CAAC;CAC5B;AAED,yBAAiB,eAAe,CAAC;IAC/B,UAAiB,QAAQ;QACvB,kBAAkB,EAAE,QAAQ,CAAC,iBAAiB,CAAC;QAE/C,aAAa,EAAE,QAAQ,CAAC,YAAY,CAAC;QAErC,eAAe,EAAE,QAAQ,CAAC,cAAc,CAAC;QAEzC,oBAAoB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UAAiB,MAAM;QACrB;;;WAGG;QACH,0CAA0C,EAAE,MAAM,CAAC;QAEnD;;;WAGG;QACH,uBAAuB,EAAE,MAAM,CAAC;QAEhC;;WAEG;QACH,0BAA0B,EAAE,MAAM,CAAC;QAEnC;;;WAGG;QACH,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;KAC3B;IAED,UAAiB,IAAI;QACnB;;;WAGG;QACH,EAAE,EAAE,MAAM,GAAG,UAAU,GAAG,UAAU,GAAG,YAAY,CAAC;QAEpD;;;WAGG;QACH,YAAY,EAAE,MAAM,GAAG,UAAU,GAAG,UAAU,GAAG,YAAY,CAAC;QAE9D;;WAEG;QACH,WAAW,EAAE,OAAO,CAAC;QAErB;;;WAGG;QACH,MAAM,EAAE,sBAAsB,GAAG,QAAQ,GAAG,UAAU,GAAG,QAAQ,GAAG,IAAI,CAAC;QAEzE;;;WAGG;QACH,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;KAC9B;CACF;AAED,MAAM,CAAC,OAAO,WAAW,YAAY,CAAC;IACpC,OAAO,EAAE,KAAK,eAAe,IAAI,eAAe,EAAE,CAAC;CACpD"}
|
|
@@ -1066,6 +1066,13 @@ export interface BrowserPoolAcquireParams {
|
|
|
1066
1066
|
*/
|
|
1067
1067
|
name?: string;
|
|
1068
1068
|
|
|
1069
|
+
/**
|
|
1070
|
+
* Profile selection for the browser session. Provide either id or name. If
|
|
1071
|
+
* specified, the matching profile will be loaded into the browser session.
|
|
1072
|
+
* Profiles must be created beforehand.
|
|
1073
|
+
*/
|
|
1074
|
+
profile?: Shared.BrowserProfile;
|
|
1075
|
+
|
|
1069
1076
|
/**
|
|
1070
1077
|
* Optional URL to navigate the acquired browser to. Overrides the pool's start_url
|
|
1071
1078
|
* for this acquire only. Best-effort: failures to navigate do not fail the
|
|
@@ -1200,7 +1207,8 @@ export interface BrowserPoolReleaseParams {
|
|
|
1200
1207
|
* Defaults to true. A reused browser keeps the configuration it was created with,
|
|
1201
1208
|
* so it does not pick up pool configuration changes made while it was in use.
|
|
1202
1209
|
* Release with `reuse: false`, or flush the pool afterward, to rebuild it with the
|
|
1203
|
-
* current configuration.
|
|
1210
|
+
* current configuration. Browsers loaded with an acquire-time profile are always
|
|
1211
|
+
* destroyed and replaced, even when reuse is true.
|
|
1204
1212
|
*/
|
|
1205
1213
|
reuse?: boolean;
|
|
1206
1214
|
}
|