@bctrl/sdk 1.0.1 → 1.0.2
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/README.md +24 -29
- package/dist/bctrl.d.ts +22 -36
- package/dist/bctrl.js +40 -75
- package/dist/browsers.d.ts +24 -0
- package/dist/browsers.js +82 -0
- package/dist/errors.d.ts +49 -43
- package/dist/errors.js +83 -120
- package/dist/files.d.ts +31 -0
- package/dist/files.js +97 -0
- package/dist/http.d.ts +18 -0
- package/dist/http.js +135 -0
- package/dist/index.d.ts +9 -12
- package/dist/index.js +8 -23
- package/dist/invocations.d.ts +24 -0
- package/dist/invocations.js +66 -0
- package/dist/pagination.d.ts +2 -0
- package/dist/pagination.js +13 -0
- package/dist/runs.d.ts +38 -0
- package/dist/runs.js +99 -0
- package/dist/runtimes.d.ts +73 -0
- package/dist/runtimes.js +205 -0
- package/dist/spaces.d.ts +41 -0
- package/dist/spaces.js +96 -0
- package/dist/types.d.ts +386 -0
- package/dist/types.js +1 -0
- package/dist/utils.d.ts +4 -0
- package/dist/utils.js +27 -0
- package/dist/version.js +2 -2
- package/package.json +12 -31
- package/dist/agents/browser-use/index.d.ts +0 -1
- package/dist/agents/browser-use/index.js +0 -9
- package/dist/agents/browser-use/namespace.d.ts +0 -39
- package/dist/agents/browser-use/namespace.js +0 -93
- package/dist/agents/index.d.ts +0 -2
- package/dist/agents/index.js +0 -17
- package/dist/agents/stagehand/core.d.ts +0 -93
- package/dist/agents/stagehand/core.js +0 -144
- package/dist/agents/stagehand/index.d.ts +0 -3
- package/dist/agents/stagehand/index.js +0 -24
- package/dist/agents/stagehand/namespace.d.ts +0 -51
- package/dist/agents/stagehand/namespace.js +0 -65
- package/dist/ai-credentials/client.d.ts +0 -12
- package/dist/ai-credentials/client.js +0 -70
- package/dist/ai-credentials/index.d.ts +0 -1
- package/dist/ai-credentials/index.js +0 -1
- package/dist/base/event-binding.d.ts +0 -7
- package/dist/base/event-binding.js +0 -23
- package/dist/base/types.d.ts +0 -109
- package/dist/base/types.js +0 -4
- package/dist/browser-extensions/client.d.ts +0 -15
- package/dist/browser-extensions/client.js +0 -72
- package/dist/browser-extensions/index.d.ts +0 -2
- package/dist/browser-extensions/index.js +0 -1
- package/dist/browser-profiles/client.d.ts +0 -11
- package/dist/browser-profiles/client.js +0 -63
- package/dist/browser-profiles/index.d.ts +0 -1
- package/dist/browser-profiles/index.js +0 -1
- package/dist/captcha/index.d.ts +0 -1
- package/dist/captcha/index.js +0 -1
- package/dist/captcha/namespace.d.ts +0 -34
- package/dist/captcha/namespace.js +0 -41
- package/dist/client/index.d.ts +0 -1
- package/dist/client/index.js +0 -1
- package/dist/client/rpc.d.ts +0 -83
- package/dist/client/rpc.js +0 -354
- package/dist/config.d.ts +0 -5
- package/dist/config.js +0 -28
- package/dist/constants/browser.d.ts +0 -2
- package/dist/constants/browser.js +0 -1
- package/dist/contracts/agent-tools.d.ts +0 -45
- package/dist/contracts/agent-tools.js +0 -31
- package/dist/contracts/automation.d.ts +0 -265
- package/dist/contracts/automation.js +0 -109
- package/dist/contracts/browser-management.d.ts +0 -179
- package/dist/contracts/browser-management.js +0 -95
- package/dist/contracts/browser-use.d.ts +0 -136
- package/dist/contracts/browser-use.js +0 -93
- package/dist/contracts/captcha.d.ts +0 -114
- package/dist/contracts/captcha.js +0 -40
- package/dist/contracts/desktop.d.ts +0 -223
- package/dist/contracts/desktop.js +0 -121
- package/dist/contracts/drivers/playwright.d.ts +0 -2008
- package/dist/contracts/drivers/playwright.js +0 -2033
- package/dist/contracts/drivers/puppeteer.d.ts +0 -1221
- package/dist/contracts/drivers/puppeteer.js +0 -941
- package/dist/contracts/drivers/selenium.d.ts +0 -156
- package/dist/contracts/drivers/selenium.js +0 -61
- package/dist/contracts/drivers/stagehand.d.ts +0 -155
- package/dist/contracts/drivers/stagehand.js +0 -7
- package/dist/contracts/extensions.d.ts +0 -13
- package/dist/contracts/extensions.js +0 -9
- package/dist/contracts/index.d.ts +0 -13
- package/dist/contracts/index.js +0 -13
- package/dist/contracts/public-api.d.ts +0 -360
- package/dist/contracts/public-api.js +0 -17
- package/dist/contracts/runtime.d.ts +0 -81
- package/dist/contracts/runtime.js +0 -16
- package/dist/contracts/stagehand.d.ts +0 -253
- package/dist/contracts/stagehand.js +0 -145
- package/dist/contracts/storage.d.ts +0 -51
- package/dist/contracts/storage.js +0 -56
- package/dist/contracts/vault.d.ts +0 -119
- package/dist/contracts/vault.js +0 -112
- package/dist/contracts/version.d.ts +0 -3
- package/dist/contracts/version.js +0 -16
- package/dist/desktop.d.ts +0 -2
- package/dist/desktop.js +0 -3
- package/dist/drivers/desktop/index.d.ts +0 -65
- package/dist/drivers/desktop/index.js +0 -68
- package/dist/drivers/desktop/session.d.ts +0 -313
- package/dist/drivers/desktop/session.js +0 -432
- package/dist/drivers/playwright/event-emitter.d.ts +0 -160
- package/dist/drivers/playwright/event-emitter.js +0 -297
- package/dist/drivers/playwright/generated/api-request-context.d.ts +0 -137
- package/dist/drivers/playwright/generated/api-request-context.js +0 -154
- package/dist/drivers/playwright/generated/api-response.d.ts +0 -119
- package/dist/drivers/playwright/generated/api-response.js +0 -123
- package/dist/drivers/playwright/generated/browser-context.d.ts +0 -284
- package/dist/drivers/playwright/generated/browser-context.js +0 -458
- package/dist/drivers/playwright/generated/browser.d.ts +0 -120
- package/dist/drivers/playwright/generated/browser.js +0 -151
- package/dist/drivers/playwright/generated/clock.d.ts +0 -80
- package/dist/drivers/playwright/generated/clock.js +0 -94
- package/dist/drivers/playwright/generated/console-message.d.ts +0 -94
- package/dist/drivers/playwright/generated/console-message.js +0 -89
- package/dist/drivers/playwright/generated/coverage.d.ts +0 -57
- package/dist/drivers/playwright/generated/coverage.js +0 -66
- package/dist/drivers/playwright/generated/dialog.d.ts +0 -79
- package/dist/drivers/playwright/generated/dialog.js +0 -80
- package/dist/drivers/playwright/generated/element-handle.d.ts +0 -399
- package/dist/drivers/playwright/generated/element-handle.js +0 -501
- package/dist/drivers/playwright/generated/frame-locator.d.ts +0 -34
- package/dist/drivers/playwright/generated/frame-locator.js +0 -63
- package/dist/drivers/playwright/generated/frame.d.ts +0 -557
- package/dist/drivers/playwright/generated/frame.js +0 -634
- package/dist/drivers/playwright/generated/js-handle.d.ts +0 -72
- package/dist/drivers/playwright/generated/js-handle.js +0 -92
- package/dist/drivers/playwright/generated/keyboard.d.ts +0 -103
- package/dist/drivers/playwright/generated/keyboard.js +0 -113
- package/dist/drivers/playwright/generated/locator.d.ts +0 -795
- package/dist/drivers/playwright/generated/locator.js +0 -974
- package/dist/drivers/playwright/generated/mouse.d.ts +0 -97
- package/dist/drivers/playwright/generated/mouse.js +0 -109
- package/dist/drivers/playwright/generated/page.d.ts +0 -762
- package/dist/drivers/playwright/generated/page.js +0 -988
- package/dist/drivers/playwright/generated/touchscreen.d.ts +0 -34
- package/dist/drivers/playwright/generated/touchscreen.js +0 -37
- package/dist/drivers/playwright/generated/tracing.d.ts +0 -78
- package/dist/drivers/playwright/generated/tracing.js +0 -80
- package/dist/drivers/playwright/generated/worker.d.ts +0 -53
- package/dist/drivers/playwright/generated/worker.js +0 -59
- package/dist/drivers/playwright/index.d.ts +0 -19
- package/dist/drivers/playwright/index.js +0 -20
- package/dist/drivers/playwright/remote-base.d.ts +0 -62
- package/dist/drivers/playwright/remote-base.js +0 -86
- package/dist/drivers/playwright/types.d.ts +0 -148
- package/dist/drivers/playwright/types.js +0 -8
- package/dist/drivers/puppeteer/errors.d.ts +0 -50
- package/dist/drivers/puppeteer/errors.js +0 -71
- package/dist/drivers/puppeteer/event-emitter.d.ts +0 -145
- package/dist/drivers/puppeteer/event-emitter.js +0 -259
- package/dist/drivers/puppeteer/generated/accessibility.d.ts +0 -77
- package/dist/drivers/puppeteer/generated/accessibility.js +0 -74
- package/dist/drivers/puppeteer/generated/browser-context.d.ts +0 -116
- package/dist/drivers/puppeteer/generated/browser-context.js +0 -168
- package/dist/drivers/puppeteer/generated/browser.d.ts +0 -169
- package/dist/drivers/puppeteer/generated/browser.js +0 -246
- package/dist/drivers/puppeteer/generated/console-message.d.ts +0 -54
- package/dist/drivers/puppeteer/generated/console-message.js +0 -69
- package/dist/drivers/puppeteer/generated/coverage.d.ts +0 -49
- package/dist/drivers/puppeteer/generated/coverage.js +0 -57
- package/dist/drivers/puppeteer/generated/dialog.d.ts +0 -46
- package/dist/drivers/puppeteer/generated/dialog.js +0 -60
- package/dist/drivers/puppeteer/generated/element-handle.d.ts +0 -261
- package/dist/drivers/puppeteer/generated/element-handle.js +0 -341
- package/dist/drivers/puppeteer/generated/file-chooser.d.ts +0 -34
- package/dist/drivers/puppeteer/generated/file-chooser.js +0 -43
- package/dist/drivers/puppeteer/generated/frame.d.ts +0 -221
- package/dist/drivers/puppeteer/generated/frame.js +0 -302
- package/dist/drivers/puppeteer/generated/http-request.d.ts +0 -195
- package/dist/drivers/puppeteer/generated/http-request.js +0 -243
- package/dist/drivers/puppeteer/generated/http-response.d.ts +0 -142
- package/dist/drivers/puppeteer/generated/http-response.js +0 -169
- package/dist/drivers/puppeteer/generated/js-handle.d.ts +0 -104
- package/dist/drivers/puppeteer/generated/js-handle.js +0 -125
- package/dist/drivers/puppeteer/generated/keyboard.d.ts +0 -79
- package/dist/drivers/puppeteer/generated/keyboard.js +0 -89
- package/dist/drivers/puppeteer/generated/locator.d.ts +0 -141
- package/dist/drivers/puppeteer/generated/locator.js +0 -164
- package/dist/drivers/puppeteer/generated/mouse.d.ts +0 -74
- package/dist/drivers/puppeteer/generated/mouse.js +0 -94
- package/dist/drivers/puppeteer/generated/page.d.ts +0 -604
- package/dist/drivers/puppeteer/generated/page.js +0 -776
- package/dist/drivers/puppeteer/generated/target.d.ts +0 -105
- package/dist/drivers/puppeteer/generated/target.js +0 -123
- package/dist/drivers/puppeteer/generated/touchscreen.d.ts +0 -87
- package/dist/drivers/puppeteer/generated/touchscreen.js +0 -103
- package/dist/drivers/puppeteer/generated/tracing.d.ts +0 -38
- package/dist/drivers/puppeteer/generated/tracing.js +0 -43
- package/dist/drivers/puppeteer/generated/web-worker.d.ts +0 -63
- package/dist/drivers/puppeteer/generated/web-worker.js +0 -73
- package/dist/drivers/puppeteer/index.d.ts +0 -21
- package/dist/drivers/puppeteer/index.js +0 -23
- package/dist/drivers/puppeteer/remote-base.d.ts +0 -57
- package/dist/drivers/puppeteer/remote-base.js +0 -79
- package/dist/drivers/puppeteer/types.d.ts +0 -178
- package/dist/drivers/puppeteer/types.js +0 -8
- package/dist/drivers/selenium/driver.d.ts +0 -28
- package/dist/drivers/selenium/driver.js +0 -169
- package/dist/drivers/selenium/element.d.ts +0 -34
- package/dist/drivers/selenium/element.js +0 -73
- package/dist/drivers/selenium/index.d.ts +0 -3
- package/dist/drivers/selenium/index.js +0 -5
- package/dist/drivers/selenium/types.d.ts +0 -2
- package/dist/drivers/selenium/types.js +0 -12
- package/dist/drivers/stagehand/generated/context.d.ts +0 -127
- package/dist/drivers/stagehand/generated/context.js +0 -153
- package/dist/drivers/stagehand/generated/locator.d.ts +0 -324
- package/dist/drivers/stagehand/generated/locator.js +0 -368
- package/dist/drivers/stagehand/generated/page.d.ts +0 -377
- package/dist/drivers/stagehand/generated/page.js +0 -439
- package/dist/drivers/stagehand/generated/response.d.ts +0 -197
- package/dist/drivers/stagehand/generated/response.js +0 -232
- package/dist/drivers/stagehand/index.d.ts +0 -5
- package/dist/drivers/stagehand/index.js +0 -8
- package/dist/drivers/stagehand/types.d.ts +0 -1
- package/dist/drivers/stagehand/types.js +0 -7
- package/dist/extensions/client.d.ts +0 -47
- package/dist/extensions/client.js +0 -154
- package/dist/extensions/index.d.ts +0 -1
- package/dist/extensions/index.js +0 -1
- package/dist/internal/dev-client.d.ts +0 -5
- package/dist/internal/dev-client.js +0 -9
- package/dist/internal/rpc-targets.d.ts +0 -17
- package/dist/internal/rpc-targets.js +0 -58
- package/dist/internal/serialization.d.ts +0 -32
- package/dist/internal/serialization.js +0 -42
- package/dist/internal/transport.d.ts +0 -24
- package/dist/internal/transport.js +0 -29
- package/dist/playwright.d.ts +0 -1
- package/dist/playwright.js +0 -2
- package/dist/puppeteer.d.ts +0 -1
- package/dist/puppeteer.js +0 -2
- package/dist/selenium.d.ts +0 -1
- package/dist/selenium.js +0 -2
- package/dist/stagehand.d.ts +0 -1
- package/dist/stagehand.js +0 -2
- package/dist/storage/client.d.ts +0 -151
- package/dist/storage/client.js +0 -329
- package/dist/storage/index.d.ts +0 -2
- package/dist/storage/index.js +0 -4
- package/dist/telemetry.d.ts +0 -18
- package/dist/telemetry.js +0 -93
- package/dist/updates/client.d.ts +0 -8
- package/dist/updates/client.js +0 -128
- package/dist/updates/index.d.ts +0 -1
- package/dist/updates/index.js +0 -1
- package/dist/utils/http.d.ts +0 -39
- package/dist/utils/http.js +0 -88
- package/dist/utils/index.d.ts +0 -4
- package/dist/utils/index.js +0 -4
- package/dist/utils/logger.d.ts +0 -27
- package/dist/utils/logger.js +0 -74
- package/dist/utils/schema.d.ts +0 -17
- package/dist/utils/schema.js +0 -31
- package/dist/utils/url.d.ts +0 -5
- package/dist/utils/url.js +0 -7
- package/dist/vault/client.d.ts +0 -43
- package/dist/vault/client.js +0 -123
- package/dist/vault/index.d.ts +0 -1
- package/dist/vault/index.js +0 -1
- package/dist/workspaces/browser-runtime.d.ts +0 -251
- package/dist/workspaces/browser-runtime.js +0 -1025
- package/dist/workspaces/client.d.ts +0 -48
- package/dist/workspaces/client.js +0 -222
- package/dist/workspaces/index.d.ts +0 -2
- package/dist/workspaces/index.js +0 -2
- package/dist/workspaces/runtime-event-pump.d.ts +0 -65
- package/dist/workspaces/runtime-event-pump.js +0 -716
|
@@ -1,253 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* AUTO-GENERATED FILE - DO NOT EDIT
|
|
3
|
-
*
|
|
4
|
-
* Generated from: packages/api-contracts/src/stagehand.ts
|
|
5
|
-
* Run `pnpm generate:sdk-contracts` to regenerate.
|
|
6
|
-
*/
|
|
7
|
-
import { z } from 'zod';
|
|
8
|
-
export declare const StagehandModelConfigSchema: z.ZodObject<{
|
|
9
|
-
modelName: z.ZodString;
|
|
10
|
-
apiKey: z.ZodOptional<z.ZodString>;
|
|
11
|
-
baseURL: z.ZodOptional<z.ZodURL>;
|
|
12
|
-
}, z.core.$loose>;
|
|
13
|
-
export declare const StagehandModelSchema: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
14
|
-
modelName: z.ZodString;
|
|
15
|
-
apiKey: z.ZodOptional<z.ZodString>;
|
|
16
|
-
baseURL: z.ZodOptional<z.ZodURL>;
|
|
17
|
-
}, z.core.$loose>]>;
|
|
18
|
-
export type StagehandModel = z.infer<typeof StagehandModelSchema>;
|
|
19
|
-
export type StagehandModelConfig = z.infer<typeof StagehandModelConfigSchema>;
|
|
20
|
-
export declare const StagehandVariablePrimitiveSchema: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>;
|
|
21
|
-
export declare const StagehandVariableSchema: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>, z.ZodObject<{
|
|
22
|
-
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>;
|
|
23
|
-
description: z.ZodOptional<z.ZodString>;
|
|
24
|
-
}, z.core.$strip>]>;
|
|
25
|
-
export declare const StagehandVariablesSchema: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>, z.ZodObject<{
|
|
26
|
-
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>;
|
|
27
|
-
description: z.ZodOptional<z.ZodString>;
|
|
28
|
-
}, z.core.$strip>]>>;
|
|
29
|
-
export type StagehandVariablePrimitive = z.infer<typeof StagehandVariablePrimitiveSchema>;
|
|
30
|
-
export type StagehandVariable = z.infer<typeof StagehandVariableSchema>;
|
|
31
|
-
export type StagehandVariables = z.infer<typeof StagehandVariablesSchema>;
|
|
32
|
-
export declare const StagehandCacheStatusSchema: z.ZodEnum<{
|
|
33
|
-
HIT: "HIT";
|
|
34
|
-
MISS: "MISS";
|
|
35
|
-
}>;
|
|
36
|
-
export type StagehandCacheStatus = z.infer<typeof StagehandCacheStatusSchema>;
|
|
37
|
-
export declare const StagehandActionSchema: z.ZodObject<{
|
|
38
|
-
selector: z.ZodString;
|
|
39
|
-
description: z.ZodString;
|
|
40
|
-
method: z.ZodOptional<z.ZodString>;
|
|
41
|
-
arguments: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
42
|
-
}, z.core.$strip>;
|
|
43
|
-
export type StagehandAction = z.infer<typeof StagehandActionSchema>;
|
|
44
|
-
export declare const ActOptionsSchema: z.ZodObject<{
|
|
45
|
-
model: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
46
|
-
modelName: z.ZodString;
|
|
47
|
-
apiKey: z.ZodOptional<z.ZodString>;
|
|
48
|
-
baseURL: z.ZodOptional<z.ZodURL>;
|
|
49
|
-
}, z.core.$loose>]>>;
|
|
50
|
-
variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>, z.ZodObject<{
|
|
51
|
-
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>;
|
|
52
|
-
description: z.ZodOptional<z.ZodString>;
|
|
53
|
-
}, z.core.$strip>]>>>;
|
|
54
|
-
timeout: z.ZodOptional<z.ZodNumber>;
|
|
55
|
-
serverCache: z.ZodOptional<z.ZodBoolean>;
|
|
56
|
-
pageId: z.ZodOptional<z.ZodUUID>;
|
|
57
|
-
}, z.core.$strip>;
|
|
58
|
-
export type ActOptions = z.infer<typeof ActOptionsSchema>;
|
|
59
|
-
export declare const ExtractOptionsSchema: z.ZodObject<{
|
|
60
|
-
model: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
61
|
-
modelName: z.ZodString;
|
|
62
|
-
apiKey: z.ZodOptional<z.ZodString>;
|
|
63
|
-
baseURL: z.ZodOptional<z.ZodURL>;
|
|
64
|
-
}, z.core.$loose>]>>;
|
|
65
|
-
timeout: z.ZodOptional<z.ZodNumber>;
|
|
66
|
-
selector: z.ZodOptional<z.ZodString>;
|
|
67
|
-
serverCache: z.ZodOptional<z.ZodBoolean>;
|
|
68
|
-
pageId: z.ZodOptional<z.ZodUUID>;
|
|
69
|
-
}, z.core.$strip>;
|
|
70
|
-
export type ExtractOptions = z.infer<typeof ExtractOptionsSchema>;
|
|
71
|
-
export declare const ObserveOptionsSchema: z.ZodObject<{
|
|
72
|
-
model: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
73
|
-
modelName: z.ZodString;
|
|
74
|
-
apiKey: z.ZodOptional<z.ZodString>;
|
|
75
|
-
baseURL: z.ZodOptional<z.ZodURL>;
|
|
76
|
-
}, z.core.$loose>]>>;
|
|
77
|
-
timeout: z.ZodOptional<z.ZodNumber>;
|
|
78
|
-
selector: z.ZodOptional<z.ZodString>;
|
|
79
|
-
serverCache: z.ZodOptional<z.ZodBoolean>;
|
|
80
|
-
pageId: z.ZodOptional<z.ZodUUID>;
|
|
81
|
-
}, z.core.$strip>;
|
|
82
|
-
export type ObserveOptions = z.infer<typeof ObserveOptionsSchema>;
|
|
83
|
-
export declare const StagehandAgentConfigSchema: z.ZodObject<{
|
|
84
|
-
cua: z.ZodOptional<z.ZodBoolean>;
|
|
85
|
-
model: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
86
|
-
modelName: z.ZodString;
|
|
87
|
-
apiKey: z.ZodOptional<z.ZodString>;
|
|
88
|
-
baseURL: z.ZodOptional<z.ZodURL>;
|
|
89
|
-
}, z.core.$loose>]>>;
|
|
90
|
-
executionModel: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
91
|
-
modelName: z.ZodString;
|
|
92
|
-
apiKey: z.ZodOptional<z.ZodString>;
|
|
93
|
-
baseURL: z.ZodOptional<z.ZodURL>;
|
|
94
|
-
}, z.core.$loose>]>>;
|
|
95
|
-
systemPrompt: z.ZodOptional<z.ZodString>;
|
|
96
|
-
integrations: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
97
|
-
tools: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
98
|
-
}, z.core.$strip>;
|
|
99
|
-
export type StagehandAgentConfig = z.infer<typeof StagehandAgentConfigSchema>;
|
|
100
|
-
export declare const StagehandAgentExecuteOptionsSchema: z.ZodObject<{
|
|
101
|
-
instruction: z.ZodString;
|
|
102
|
-
maxSteps: z.ZodOptional<z.ZodNumber>;
|
|
103
|
-
timeout: z.ZodOptional<z.ZodNumber>;
|
|
104
|
-
pageId: z.ZodOptional<z.ZodUUID>;
|
|
105
|
-
highlightCursor: z.ZodOptional<z.ZodBoolean>;
|
|
106
|
-
variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>, z.ZodObject<{
|
|
107
|
-
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>;
|
|
108
|
-
description: z.ZodOptional<z.ZodString>;
|
|
109
|
-
}, z.core.$strip>]>>>;
|
|
110
|
-
tools: z.ZodOptional<z.ZodObject<{
|
|
111
|
-
storage: z.ZodOptional<z.ZodObject<{
|
|
112
|
-
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
113
|
-
prefix: z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodString>>>;
|
|
114
|
-
inputFiles: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
115
|
-
}, z.core.$strict>>;
|
|
116
|
-
vault: z.ZodOptional<z.ZodObject<{
|
|
117
|
-
toolPrefix: z.ZodOptional<z.ZodString>;
|
|
118
|
-
defaultListFilter: z.ZodOptional<z.ZodObject<{
|
|
119
|
-
prefix: z.ZodOptional<z.ZodString>;
|
|
120
|
-
origin: z.ZodOptional<z.ZodString>;
|
|
121
|
-
limit: z.ZodOptional<z.ZodNumber>;
|
|
122
|
-
}, z.core.$strip>>;
|
|
123
|
-
allowRawReads: z.ZodOptional<z.ZodBoolean>;
|
|
124
|
-
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
125
|
-
}, z.core.$strict>>;
|
|
126
|
-
captcha: z.ZodOptional<z.ZodObject<{
|
|
127
|
-
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
128
|
-
pageId: z.ZodOptional<z.ZodUUID>;
|
|
129
|
-
}, z.core.$strict>>;
|
|
130
|
-
}, z.core.$strict>>;
|
|
131
|
-
}, z.core.$strip>;
|
|
132
|
-
export type StagehandAgentExecuteOptions = z.infer<typeof StagehandAgentExecuteOptionsSchema>;
|
|
133
|
-
export declare const ActResultSchema: z.ZodObject<{
|
|
134
|
-
success: z.ZodBoolean;
|
|
135
|
-
message: z.ZodString;
|
|
136
|
-
actionDescription: z.ZodString;
|
|
137
|
-
actions: z.ZodArray<z.ZodObject<{
|
|
138
|
-
selector: z.ZodString;
|
|
139
|
-
description: z.ZodString;
|
|
140
|
-
method: z.ZodOptional<z.ZodString>;
|
|
141
|
-
arguments: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
142
|
-
}, z.core.$strip>>;
|
|
143
|
-
cacheStatus: z.ZodOptional<z.ZodEnum<{
|
|
144
|
-
HIT: "HIT";
|
|
145
|
-
MISS: "MISS";
|
|
146
|
-
}>>;
|
|
147
|
-
}, z.core.$strip>;
|
|
148
|
-
export type ActResult = z.infer<typeof ActResultSchema>;
|
|
149
|
-
export declare const ExtractResultDefaultSchema: z.ZodObject<{
|
|
150
|
-
extraction: z.ZodString;
|
|
151
|
-
cacheStatus: z.ZodOptional<z.ZodEnum<{
|
|
152
|
-
HIT: "HIT";
|
|
153
|
-
MISS: "MISS";
|
|
154
|
-
}>>;
|
|
155
|
-
}, z.core.$strip>;
|
|
156
|
-
export declare const ExtractResultPageTextSchema: z.ZodObject<{
|
|
157
|
-
pageText: z.ZodString;
|
|
158
|
-
cacheStatus: z.ZodOptional<z.ZodEnum<{
|
|
159
|
-
HIT: "HIT";
|
|
160
|
-
MISS: "MISS";
|
|
161
|
-
}>>;
|
|
162
|
-
}, z.core.$strip>;
|
|
163
|
-
export type ExtractResultDefault = z.infer<typeof ExtractResultDefaultSchema>;
|
|
164
|
-
export type ExtractResultPageText = z.infer<typeof ExtractResultPageTextSchema>;
|
|
165
|
-
export type StagehandExtractResult<T> = T & {
|
|
166
|
-
cacheStatus?: StagehandCacheStatus;
|
|
167
|
-
};
|
|
168
|
-
export type StagehandObserveResult = StagehandAction[] & {
|
|
169
|
-
cacheStatus?: StagehandCacheStatus;
|
|
170
|
-
};
|
|
171
|
-
export declare const StagehandMetricsSchema: z.ZodObject<{
|
|
172
|
-
actPromptTokens: z.ZodNumber;
|
|
173
|
-
actCompletionTokens: z.ZodNumber;
|
|
174
|
-
actReasoningTokens: z.ZodNumber;
|
|
175
|
-
actCachedInputTokens: z.ZodNumber;
|
|
176
|
-
actInferenceTimeMs: z.ZodNumber;
|
|
177
|
-
extractPromptTokens: z.ZodNumber;
|
|
178
|
-
extractCompletionTokens: z.ZodNumber;
|
|
179
|
-
extractReasoningTokens: z.ZodNumber;
|
|
180
|
-
extractCachedInputTokens: z.ZodNumber;
|
|
181
|
-
extractInferenceTimeMs: z.ZodNumber;
|
|
182
|
-
observePromptTokens: z.ZodNumber;
|
|
183
|
-
observeCompletionTokens: z.ZodNumber;
|
|
184
|
-
observeReasoningTokens: z.ZodNumber;
|
|
185
|
-
observeCachedInputTokens: z.ZodNumber;
|
|
186
|
-
observeInferenceTimeMs: z.ZodNumber;
|
|
187
|
-
agentPromptTokens: z.ZodNumber;
|
|
188
|
-
agentCompletionTokens: z.ZodNumber;
|
|
189
|
-
agentReasoningTokens: z.ZodNumber;
|
|
190
|
-
agentCachedInputTokens: z.ZodNumber;
|
|
191
|
-
agentInferenceTimeMs: z.ZodNumber;
|
|
192
|
-
totalPromptTokens: z.ZodNumber;
|
|
193
|
-
totalCompletionTokens: z.ZodNumber;
|
|
194
|
-
totalReasoningTokens: z.ZodNumber;
|
|
195
|
-
totalCachedInputTokens: z.ZodNumber;
|
|
196
|
-
totalInferenceTimeMs: z.ZodNumber;
|
|
197
|
-
}, z.core.$strip>;
|
|
198
|
-
export type StagehandMetrics = z.infer<typeof StagehandMetricsSchema>;
|
|
199
|
-
export declare const StagehandHistoryEntrySchema: z.ZodObject<{
|
|
200
|
-
method: z.ZodEnum<{
|
|
201
|
-
act: "act";
|
|
202
|
-
extract: "extract";
|
|
203
|
-
observe: "observe";
|
|
204
|
-
navigate: "navigate";
|
|
205
|
-
agent: "agent";
|
|
206
|
-
}>;
|
|
207
|
-
parameters: z.ZodUnknown;
|
|
208
|
-
result: z.ZodUnknown;
|
|
209
|
-
timestamp: z.ZodString;
|
|
210
|
-
}, z.core.$strip>;
|
|
211
|
-
export type StagehandHistoryEntry = z.infer<typeof StagehandHistoryEntrySchema>;
|
|
212
|
-
export declare const StagehandAgentActionSchema: z.ZodObject<{
|
|
213
|
-
type: z.ZodString;
|
|
214
|
-
reasoning: z.ZodOptional<z.ZodString>;
|
|
215
|
-
taskCompleted: z.ZodOptional<z.ZodBoolean>;
|
|
216
|
-
action: z.ZodOptional<z.ZodString>;
|
|
217
|
-
timeMs: z.ZodOptional<z.ZodNumber>;
|
|
218
|
-
pageText: z.ZodOptional<z.ZodString>;
|
|
219
|
-
pageUrl: z.ZodOptional<z.ZodString>;
|
|
220
|
-
instruction: z.ZodOptional<z.ZodString>;
|
|
221
|
-
}, z.core.$loose>;
|
|
222
|
-
export declare const StagehandAgentUsageSchema: z.ZodObject<{
|
|
223
|
-
input_tokens: z.ZodNumber;
|
|
224
|
-
output_tokens: z.ZodNumber;
|
|
225
|
-
reasoning_tokens: z.ZodOptional<z.ZodNumber>;
|
|
226
|
-
cached_input_tokens: z.ZodOptional<z.ZodNumber>;
|
|
227
|
-
inference_time_ms: z.ZodNumber;
|
|
228
|
-
}, z.core.$strip>;
|
|
229
|
-
export declare const StagehandAgentResultSchema: z.ZodObject<{
|
|
230
|
-
success: z.ZodBoolean;
|
|
231
|
-
message: z.ZodString;
|
|
232
|
-
actions: z.ZodArray<z.ZodObject<{
|
|
233
|
-
type: z.ZodString;
|
|
234
|
-
reasoning: z.ZodOptional<z.ZodString>;
|
|
235
|
-
taskCompleted: z.ZodOptional<z.ZodBoolean>;
|
|
236
|
-
action: z.ZodOptional<z.ZodString>;
|
|
237
|
-
timeMs: z.ZodOptional<z.ZodNumber>;
|
|
238
|
-
pageText: z.ZodOptional<z.ZodString>;
|
|
239
|
-
pageUrl: z.ZodOptional<z.ZodString>;
|
|
240
|
-
instruction: z.ZodOptional<z.ZodString>;
|
|
241
|
-
}, z.core.$loose>>;
|
|
242
|
-
completed: z.ZodBoolean;
|
|
243
|
-
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
244
|
-
usage: z.ZodOptional<z.ZodObject<{
|
|
245
|
-
input_tokens: z.ZodNumber;
|
|
246
|
-
output_tokens: z.ZodNumber;
|
|
247
|
-
reasoning_tokens: z.ZodOptional<z.ZodNumber>;
|
|
248
|
-
cached_input_tokens: z.ZodOptional<z.ZodNumber>;
|
|
249
|
-
inference_time_ms: z.ZodNumber;
|
|
250
|
-
}, z.core.$strip>>;
|
|
251
|
-
}, z.core.$strip>;
|
|
252
|
-
export type StagehandAgentAction = z.infer<typeof StagehandAgentActionSchema>;
|
|
253
|
-
export type StagehandAgentResult = z.infer<typeof StagehandAgentResultSchema>;
|
|
@@ -1,145 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* AUTO-GENERATED FILE - DO NOT EDIT
|
|
3
|
-
*
|
|
4
|
-
* Generated from: packages/api-contracts/src/stagehand.ts
|
|
5
|
-
* Run `pnpm generate:sdk-contracts` to regenerate.
|
|
6
|
-
*/
|
|
7
|
-
import { z } from 'zod';
|
|
8
|
-
import { AgentInvocationToolsSchema } from './agent-tools.js';
|
|
9
|
-
export const StagehandModelConfigSchema = z
|
|
10
|
-
.object({
|
|
11
|
-
modelName: z.string(),
|
|
12
|
-
apiKey: z.string().optional(),
|
|
13
|
-
baseURL: z.url().optional(),
|
|
14
|
-
})
|
|
15
|
-
.loose();
|
|
16
|
-
export const StagehandModelSchema = z.union([z.string(), StagehandModelConfigSchema]);
|
|
17
|
-
export const StagehandVariablePrimitiveSchema = z.union([z.string(), z.number(), z.boolean()]);
|
|
18
|
-
export const StagehandVariableSchema = z.union([
|
|
19
|
-
StagehandVariablePrimitiveSchema,
|
|
20
|
-
z.object({
|
|
21
|
-
value: StagehandVariablePrimitiveSchema,
|
|
22
|
-
description: z.string().optional(),
|
|
23
|
-
}),
|
|
24
|
-
]);
|
|
25
|
-
export const StagehandVariablesSchema = z.record(z.string(), StagehandVariableSchema);
|
|
26
|
-
export const StagehandCacheStatusSchema = z.enum(['HIT', 'MISS']);
|
|
27
|
-
export const StagehandActionSchema = z.object({
|
|
28
|
-
selector: z.string(),
|
|
29
|
-
description: z.string(),
|
|
30
|
-
method: z.string().optional(),
|
|
31
|
-
arguments: z.array(z.string()).optional(),
|
|
32
|
-
});
|
|
33
|
-
export const ActOptionsSchema = z.object({
|
|
34
|
-
model: StagehandModelSchema.optional(),
|
|
35
|
-
variables: StagehandVariablesSchema.optional(),
|
|
36
|
-
timeout: z.number().positive().optional(),
|
|
37
|
-
serverCache: z.boolean().optional(),
|
|
38
|
-
pageId: z.uuid().optional(),
|
|
39
|
-
});
|
|
40
|
-
export const ExtractOptionsSchema = z.object({
|
|
41
|
-
model: StagehandModelSchema.optional(),
|
|
42
|
-
timeout: z.number().positive().optional(),
|
|
43
|
-
selector: z.string().optional(),
|
|
44
|
-
serverCache: z.boolean().optional(),
|
|
45
|
-
pageId: z.uuid().optional(),
|
|
46
|
-
});
|
|
47
|
-
export const ObserveOptionsSchema = z.object({
|
|
48
|
-
model: StagehandModelSchema.optional(),
|
|
49
|
-
timeout: z.number().positive().optional(),
|
|
50
|
-
selector: z.string().optional(),
|
|
51
|
-
serverCache: z.boolean().optional(),
|
|
52
|
-
pageId: z.uuid().optional(),
|
|
53
|
-
});
|
|
54
|
-
export const StagehandAgentConfigSchema = z.object({
|
|
55
|
-
cua: z.boolean().optional(),
|
|
56
|
-
model: StagehandModelSchema.optional(),
|
|
57
|
-
executionModel: StagehandModelSchema.optional(),
|
|
58
|
-
systemPrompt: z.string().optional(),
|
|
59
|
-
integrations: z.array(z.string()).optional(),
|
|
60
|
-
tools: z.record(z.string(), z.unknown()).optional(),
|
|
61
|
-
});
|
|
62
|
-
export const StagehandAgentExecuteOptionsSchema = z.object({
|
|
63
|
-
instruction: z.string().min(1),
|
|
64
|
-
maxSteps: z.number().int().positive().optional(),
|
|
65
|
-
timeout: z.number().positive().optional(),
|
|
66
|
-
pageId: z.uuid().optional(),
|
|
67
|
-
highlightCursor: z.boolean().optional(),
|
|
68
|
-
variables: StagehandVariablesSchema.optional(),
|
|
69
|
-
tools: AgentInvocationToolsSchema.optional(),
|
|
70
|
-
});
|
|
71
|
-
export const ActResultSchema = z.object({
|
|
72
|
-
success: z.boolean(),
|
|
73
|
-
message: z.string(),
|
|
74
|
-
actionDescription: z.string(),
|
|
75
|
-
actions: z.array(StagehandActionSchema),
|
|
76
|
-
cacheStatus: StagehandCacheStatusSchema.optional(),
|
|
77
|
-
});
|
|
78
|
-
export const ExtractResultDefaultSchema = z.object({
|
|
79
|
-
extraction: z.string(),
|
|
80
|
-
cacheStatus: StagehandCacheStatusSchema.optional(),
|
|
81
|
-
});
|
|
82
|
-
export const ExtractResultPageTextSchema = z.object({
|
|
83
|
-
pageText: z.string(),
|
|
84
|
-
cacheStatus: StagehandCacheStatusSchema.optional(),
|
|
85
|
-
});
|
|
86
|
-
export const StagehandMetricsSchema = z.object({
|
|
87
|
-
actPromptTokens: z.number(),
|
|
88
|
-
actCompletionTokens: z.number(),
|
|
89
|
-
actReasoningTokens: z.number(),
|
|
90
|
-
actCachedInputTokens: z.number(),
|
|
91
|
-
actInferenceTimeMs: z.number(),
|
|
92
|
-
extractPromptTokens: z.number(),
|
|
93
|
-
extractCompletionTokens: z.number(),
|
|
94
|
-
extractReasoningTokens: z.number(),
|
|
95
|
-
extractCachedInputTokens: z.number(),
|
|
96
|
-
extractInferenceTimeMs: z.number(),
|
|
97
|
-
observePromptTokens: z.number(),
|
|
98
|
-
observeCompletionTokens: z.number(),
|
|
99
|
-
observeReasoningTokens: z.number(),
|
|
100
|
-
observeCachedInputTokens: z.number(),
|
|
101
|
-
observeInferenceTimeMs: z.number(),
|
|
102
|
-
agentPromptTokens: z.number(),
|
|
103
|
-
agentCompletionTokens: z.number(),
|
|
104
|
-
agentReasoningTokens: z.number(),
|
|
105
|
-
agentCachedInputTokens: z.number(),
|
|
106
|
-
agentInferenceTimeMs: z.number(),
|
|
107
|
-
totalPromptTokens: z.number(),
|
|
108
|
-
totalCompletionTokens: z.number(),
|
|
109
|
-
totalReasoningTokens: z.number(),
|
|
110
|
-
totalCachedInputTokens: z.number(),
|
|
111
|
-
totalInferenceTimeMs: z.number(),
|
|
112
|
-
});
|
|
113
|
-
export const StagehandHistoryEntrySchema = z.object({
|
|
114
|
-
method: z.enum(['act', 'extract', 'observe', 'navigate', 'agent']),
|
|
115
|
-
parameters: z.unknown(),
|
|
116
|
-
result: z.unknown(),
|
|
117
|
-
timestamp: z.string(),
|
|
118
|
-
});
|
|
119
|
-
export const StagehandAgentActionSchema = z
|
|
120
|
-
.object({
|
|
121
|
-
type: z.string(),
|
|
122
|
-
reasoning: z.string().optional(),
|
|
123
|
-
taskCompleted: z.boolean().optional(),
|
|
124
|
-
action: z.string().optional(),
|
|
125
|
-
timeMs: z.number().optional(),
|
|
126
|
-
pageText: z.string().optional(),
|
|
127
|
-
pageUrl: z.string().optional(),
|
|
128
|
-
instruction: z.string().optional(),
|
|
129
|
-
})
|
|
130
|
-
.loose();
|
|
131
|
-
export const StagehandAgentUsageSchema = z.object({
|
|
132
|
-
input_tokens: z.number(),
|
|
133
|
-
output_tokens: z.number(),
|
|
134
|
-
reasoning_tokens: z.number().optional(),
|
|
135
|
-
cached_input_tokens: z.number().optional(),
|
|
136
|
-
inference_time_ms: z.number(),
|
|
137
|
-
});
|
|
138
|
-
export const StagehandAgentResultSchema = z.object({
|
|
139
|
-
success: z.boolean(),
|
|
140
|
-
message: z.string(),
|
|
141
|
-
actions: z.array(StagehandAgentActionSchema),
|
|
142
|
-
completed: z.boolean(),
|
|
143
|
-
metadata: z.record(z.string(), z.unknown()).optional(),
|
|
144
|
-
usage: StagehandAgentUsageSchema.optional(),
|
|
145
|
-
});
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
export declare const StorageWorkspaceNameSchema: z.ZodString;
|
|
3
|
-
export declare const SessionStoragePolicySchema: z.ZodObject<{
|
|
4
|
-
defaultWorkspace: z.ZodOptional<z.ZodString>;
|
|
5
|
-
allowedWorkspaces: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
6
|
-
}, z.core.$strict>;
|
|
7
|
-
export type StorageWorkspaceName = z.infer<typeof StorageWorkspaceNameSchema>;
|
|
8
|
-
export type SessionStoragePolicy = z.infer<typeof SessionStoragePolicySchema>;
|
|
9
|
-
export declare const HttpStorageWorkspaceSchema: z.ZodPipe<z.ZodString, z.ZodString>;
|
|
10
|
-
export type HttpStorageWorkspace = z.infer<typeof HttpStorageWorkspaceSchema>;
|
|
11
|
-
export declare const HttpStorageScopeSchema: z.ZodPipe<z.ZodString, z.ZodString>;
|
|
12
|
-
export type HttpStorageScope = HttpStorageWorkspace;
|
|
13
|
-
export declare const StorageBrowseQuerySchema: z.ZodObject<{
|
|
14
|
-
workspace: z.ZodPipe<z.ZodString, z.ZodString>;
|
|
15
|
-
prefix: z.ZodOptional<z.ZodString>;
|
|
16
|
-
cursor: z.ZodOptional<z.ZodString>;
|
|
17
|
-
limit: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
18
|
-
}, z.core.$strict>;
|
|
19
|
-
export type StorageBrowseQuery = z.infer<typeof StorageBrowseQuerySchema>;
|
|
20
|
-
export declare const StorageBrowseFileSchema: z.ZodObject<{
|
|
21
|
-
path: z.ZodString;
|
|
22
|
-
size: z.ZodNumber;
|
|
23
|
-
lastModified: z.ZodString;
|
|
24
|
-
}, z.core.$strict>;
|
|
25
|
-
export type StorageBrowseFile = z.infer<typeof StorageBrowseFileSchema>;
|
|
26
|
-
export declare const StorageBrowseResponseSchema: z.ZodObject<{
|
|
27
|
-
prefix: z.ZodString;
|
|
28
|
-
folders: z.ZodArray<z.ZodString>;
|
|
29
|
-
files: z.ZodArray<z.ZodObject<{
|
|
30
|
-
path: z.ZodString;
|
|
31
|
-
size: z.ZodNumber;
|
|
32
|
-
lastModified: z.ZodString;
|
|
33
|
-
}, z.core.$strict>>;
|
|
34
|
-
truncated: z.ZodBoolean;
|
|
35
|
-
nextCursor: z.ZodNullable<z.ZodString>;
|
|
36
|
-
limit: z.ZodNumber;
|
|
37
|
-
}, z.core.$strict>;
|
|
38
|
-
export type StorageBrowseResponse = z.infer<typeof StorageBrowseResponseSchema>;
|
|
39
|
-
export declare const StorageReadQuerySchema: z.ZodObject<{
|
|
40
|
-
workspace: z.ZodPipe<z.ZodString, z.ZodString>;
|
|
41
|
-
maxBytes: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
42
|
-
}, z.core.$strict>;
|
|
43
|
-
export type StorageReadQuery = z.infer<typeof StorageReadQuerySchema>;
|
|
44
|
-
export declare const StorageReadResponseSchema: z.ZodObject<{
|
|
45
|
-
path: z.ZodString;
|
|
46
|
-
content: z.ZodString;
|
|
47
|
-
size: z.ZodNumber;
|
|
48
|
-
truncated: z.ZodBoolean;
|
|
49
|
-
encoding: z.ZodLiteral<"utf-8">;
|
|
50
|
-
}, z.core.$strict>;
|
|
51
|
-
export type StorageReadResponse = z.infer<typeof StorageReadResponseSchema>;
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
export const StorageWorkspaceNameSchema = z
|
|
3
|
-
.string()
|
|
4
|
-
.min(1)
|
|
5
|
-
.max(128)
|
|
6
|
-
.regex(/^[\w.:-]+$/);
|
|
7
|
-
export const SessionStoragePolicySchema = z
|
|
8
|
-
.object({
|
|
9
|
-
defaultWorkspace: StorageWorkspaceNameSchema.optional(),
|
|
10
|
-
allowedWorkspaces: z.array(StorageWorkspaceNameSchema).optional(),
|
|
11
|
-
})
|
|
12
|
-
.strict();
|
|
13
|
-
export const HttpStorageWorkspaceSchema = z.string().pipe(StorageWorkspaceNameSchema);
|
|
14
|
-
export const HttpStorageScopeSchema = HttpStorageWorkspaceSchema;
|
|
15
|
-
const UIntQueryValueSchema = z.union([z.number().int().nonnegative(), z.string().regex(/^\d+$/)]);
|
|
16
|
-
const DateTimeStringSchema = z.string();
|
|
17
|
-
export const StorageBrowseQuerySchema = z
|
|
18
|
-
.object({
|
|
19
|
-
workspace: HttpStorageWorkspaceSchema,
|
|
20
|
-
prefix: z.string().optional(),
|
|
21
|
-
cursor: z.string().optional(),
|
|
22
|
-
limit: UIntQueryValueSchema.optional(),
|
|
23
|
-
})
|
|
24
|
-
.strict();
|
|
25
|
-
export const StorageBrowseFileSchema = z
|
|
26
|
-
.object({
|
|
27
|
-
path: z.string(),
|
|
28
|
-
size: z.number().int().nonnegative(),
|
|
29
|
-
lastModified: DateTimeStringSchema,
|
|
30
|
-
})
|
|
31
|
-
.strict();
|
|
32
|
-
export const StorageBrowseResponseSchema = z
|
|
33
|
-
.object({
|
|
34
|
-
prefix: z.string(),
|
|
35
|
-
folders: z.array(z.string()),
|
|
36
|
-
files: z.array(StorageBrowseFileSchema),
|
|
37
|
-
truncated: z.boolean(),
|
|
38
|
-
nextCursor: z.string().nullable(),
|
|
39
|
-
limit: z.number().int().positive(),
|
|
40
|
-
})
|
|
41
|
-
.strict();
|
|
42
|
-
export const StorageReadQuerySchema = z
|
|
43
|
-
.object({
|
|
44
|
-
workspace: HttpStorageWorkspaceSchema,
|
|
45
|
-
maxBytes: UIntQueryValueSchema.optional(),
|
|
46
|
-
})
|
|
47
|
-
.strict();
|
|
48
|
-
export const StorageReadResponseSchema = z
|
|
49
|
-
.object({
|
|
50
|
-
path: z.string(),
|
|
51
|
-
content: z.string(),
|
|
52
|
-
size: z.number().int().nonnegative(),
|
|
53
|
-
truncated: z.boolean(),
|
|
54
|
-
encoding: z.literal('utf-8'),
|
|
55
|
-
})
|
|
56
|
-
.strict();
|
|
@@ -1,119 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
export declare const VaultSessionPolicySchema: z.ZodObject<{
|
|
3
|
-
allow: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
4
|
-
deny: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
5
|
-
allowRawReads: z.ZodOptional<z.ZodBoolean>;
|
|
6
|
-
}, z.core.$strip>;
|
|
7
|
-
export type VaultSessionPolicy = z.infer<typeof VaultSessionPolicySchema>;
|
|
8
|
-
export declare const VaultAgentDefaultListFilterSchema: z.ZodObject<{
|
|
9
|
-
prefix: z.ZodOptional<z.ZodString>;
|
|
10
|
-
origin: z.ZodOptional<z.ZodString>;
|
|
11
|
-
limit: z.ZodOptional<z.ZodNumber>;
|
|
12
|
-
}, z.core.$strip>;
|
|
13
|
-
export type VaultAgentDefaultListFilter = z.infer<typeof VaultAgentDefaultListFilterSchema>;
|
|
14
|
-
export declare const VaultAgentAdapterConfigSchema: z.ZodObject<{
|
|
15
|
-
toolPrefix: z.ZodOptional<z.ZodString>;
|
|
16
|
-
defaultListFilter: z.ZodOptional<z.ZodObject<{
|
|
17
|
-
prefix: z.ZodOptional<z.ZodString>;
|
|
18
|
-
origin: z.ZodOptional<z.ZodString>;
|
|
19
|
-
limit: z.ZodOptional<z.ZodNumber>;
|
|
20
|
-
}, z.core.$strip>>;
|
|
21
|
-
allowRawReads: z.ZodOptional<z.ZodBoolean>;
|
|
22
|
-
}, z.core.$strip>;
|
|
23
|
-
export type VaultAgentAdapterConfig = z.infer<typeof VaultAgentAdapterConfigSchema>;
|
|
24
|
-
export declare const VaultCredentialSchema: z.ZodObject<{
|
|
25
|
-
label: z.ZodOptional<z.ZodString>;
|
|
26
|
-
origins: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
27
|
-
originPatterns: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
28
|
-
username: z.ZodString;
|
|
29
|
-
password: z.ZodString;
|
|
30
|
-
totp: z.ZodOptional<z.ZodString>;
|
|
31
|
-
notes: z.ZodOptional<z.ZodString>;
|
|
32
|
-
}, z.core.$strip>;
|
|
33
|
-
export type VaultCredential = z.infer<typeof VaultCredentialSchema>;
|
|
34
|
-
declare const VaultCredentialInputRawSchema: z.ZodObject<{
|
|
35
|
-
label: z.ZodOptional<z.ZodString>;
|
|
36
|
-
origins: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
37
|
-
originPatterns: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
38
|
-
matchOrigins: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
39
|
-
username: z.ZodString;
|
|
40
|
-
password: z.ZodString;
|
|
41
|
-
totp: z.ZodOptional<z.ZodString>;
|
|
42
|
-
notes: z.ZodOptional<z.ZodString>;
|
|
43
|
-
}, z.core.$strip>;
|
|
44
|
-
export declare const VaultCredentialInputSchema: z.ZodPipe<z.ZodObject<{
|
|
45
|
-
label: z.ZodOptional<z.ZodString>;
|
|
46
|
-
origins: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
47
|
-
originPatterns: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
48
|
-
matchOrigins: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
49
|
-
username: z.ZodString;
|
|
50
|
-
password: z.ZodString;
|
|
51
|
-
totp: z.ZodOptional<z.ZodString>;
|
|
52
|
-
notes: z.ZodOptional<z.ZodString>;
|
|
53
|
-
}, z.core.$strip>, z.ZodTransform<{
|
|
54
|
-
username: string;
|
|
55
|
-
password: string;
|
|
56
|
-
label?: string | undefined;
|
|
57
|
-
origins?: string[] | undefined;
|
|
58
|
-
originPatterns?: string[] | undefined;
|
|
59
|
-
totp?: string | undefined;
|
|
60
|
-
notes?: string | undefined;
|
|
61
|
-
}, {
|
|
62
|
-
username: string;
|
|
63
|
-
password: string;
|
|
64
|
-
label?: string | undefined;
|
|
65
|
-
origins?: string[] | undefined;
|
|
66
|
-
originPatterns?: string[] | undefined;
|
|
67
|
-
matchOrigins?: string[] | undefined;
|
|
68
|
-
totp?: string | undefined;
|
|
69
|
-
notes?: string | undefined;
|
|
70
|
-
}>>;
|
|
71
|
-
export type VaultCredentialInput = z.infer<typeof VaultCredentialInputRawSchema>;
|
|
72
|
-
export declare const VaultKeySchema: z.ZodString;
|
|
73
|
-
export type VaultKey = z.infer<typeof VaultKeySchema>;
|
|
74
|
-
export declare const VaultCredentialSourceSchema: z.ZodEnum<{
|
|
75
|
-
native: "native";
|
|
76
|
-
"1password": "1password";
|
|
77
|
-
}>;
|
|
78
|
-
export type VaultCredentialSource = z.infer<typeof VaultCredentialSourceSchema>;
|
|
79
|
-
export declare const VaultCredentialMetaSchema: z.ZodObject<{
|
|
80
|
-
key: z.ZodString;
|
|
81
|
-
label: z.ZodOptional<z.ZodString>;
|
|
82
|
-
origins: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
83
|
-
originPatterns: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
84
|
-
hasTotp: z.ZodBoolean;
|
|
85
|
-
source: z.ZodEnum<{
|
|
86
|
-
native: "native";
|
|
87
|
-
"1password": "1password";
|
|
88
|
-
}>;
|
|
89
|
-
sourceDisplayName: z.ZodOptional<z.ZodString>;
|
|
90
|
-
}, z.core.$strip>;
|
|
91
|
-
export type VaultCredentialMeta = z.infer<typeof VaultCredentialMetaSchema>;
|
|
92
|
-
export declare const VaultListMetaOptionsSchema: z.ZodObject<{
|
|
93
|
-
meta: z.ZodLiteral<true>;
|
|
94
|
-
prefix: z.ZodOptional<z.ZodString>;
|
|
95
|
-
origin: z.ZodOptional<z.ZodString>;
|
|
96
|
-
hasTotp: z.ZodOptional<z.ZodBoolean>;
|
|
97
|
-
limit: z.ZodOptional<z.ZodNumber>;
|
|
98
|
-
}, z.core.$strip>;
|
|
99
|
-
export type VaultListMetaOptions = z.infer<typeof VaultListMetaOptionsSchema>;
|
|
100
|
-
export declare const VaultListResultSchema: z.ZodObject<{
|
|
101
|
-
keys: z.ZodArray<z.ZodString>;
|
|
102
|
-
}, z.core.$strip>;
|
|
103
|
-
export type VaultListResult = z.infer<typeof VaultListResultSchema>;
|
|
104
|
-
export declare const VaultListMetaResultSchema: z.ZodObject<{
|
|
105
|
-
items: z.ZodArray<z.ZodObject<{
|
|
106
|
-
key: z.ZodString;
|
|
107
|
-
label: z.ZodOptional<z.ZodString>;
|
|
108
|
-
origins: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
109
|
-
originPatterns: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
110
|
-
hasTotp: z.ZodBoolean;
|
|
111
|
-
source: z.ZodEnum<{
|
|
112
|
-
native: "native";
|
|
113
|
-
"1password": "1password";
|
|
114
|
-
}>;
|
|
115
|
-
sourceDisplayName: z.ZodOptional<z.ZodString>;
|
|
116
|
-
}, z.core.$strip>>;
|
|
117
|
-
}, z.core.$strip>;
|
|
118
|
-
export type VaultListMetaResult = z.infer<typeof VaultListMetaResultSchema>;
|
|
119
|
-
export {};
|