@crosshands/contract 0.1.6 → 0.2.1
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/dist/errors.d.ts +140 -55
- package/dist/errors.d.ts.map +1 -1
- package/dist/errors.js +33 -12
- package/dist/errors.js.map +1 -1
- package/dist/json-schema.d.ts +12 -300
- package/dist/json-schema.d.ts.map +1 -1
- package/dist/json-schema.js +10 -6
- package/dist/json-schema.js.map +1 -1
- package/dist/operations.d.ts +1434 -706
- package/dist/operations.d.ts.map +1 -1
- package/dist/operations.js +103 -8
- package/dist/operations.js.map +1 -1
- package/dist/provider.d.ts +6 -6
- package/dist/schemas.d.ts +328 -149
- package/dist/schemas.d.ts.map +1 -1
- package/dist/schemas.js +63 -11
- package/dist/schemas.js.map +1 -1
- package/dist/versions.d.ts +4 -4
- package/dist/versions.js +2 -2
- package/package.json +1 -1
- package/schemas/contract.json +8751 -46
- package/src/errors.ts +49 -19
- package/src/json-schema.ts +11 -6
- package/src/operations.ts +142 -9
- package/src/schemas.ts +79 -11
- package/src/versions.ts +2 -2
package/dist/errors.d.ts
CHANGED
|
@@ -93,72 +93,157 @@ export declare const ERROR_CATALOG: {
|
|
|
93
93
|
readonly remediation: "check_accessibility_permission";
|
|
94
94
|
};
|
|
95
95
|
};
|
|
96
|
+
export declare const PUBLIC_ERROR_CATALOG: {
|
|
97
|
+
readonly goal_mismatch: {
|
|
98
|
+
readonly retry: true;
|
|
99
|
+
readonly remediation: "refresh_state";
|
|
100
|
+
};
|
|
101
|
+
readonly policy_unavailable: {
|
|
102
|
+
readonly retry: true;
|
|
103
|
+
readonly remediation: "refresh_state";
|
|
104
|
+
};
|
|
105
|
+
readonly intent_unavailable: {
|
|
106
|
+
readonly retry: false;
|
|
107
|
+
readonly remediation: "correct_request";
|
|
108
|
+
};
|
|
109
|
+
};
|
|
110
|
+
declare const COMBINED_ERROR_CATALOG: {
|
|
111
|
+
readonly goal_mismatch: {
|
|
112
|
+
readonly retry: true;
|
|
113
|
+
readonly remediation: "refresh_state";
|
|
114
|
+
};
|
|
115
|
+
readonly policy_unavailable: {
|
|
116
|
+
readonly retry: true;
|
|
117
|
+
readonly remediation: "refresh_state";
|
|
118
|
+
};
|
|
119
|
+
readonly intent_unavailable: {
|
|
120
|
+
readonly retry: false;
|
|
121
|
+
readonly remediation: "correct_request";
|
|
122
|
+
};
|
|
123
|
+
readonly app_not_found: {
|
|
124
|
+
readonly retry: true;
|
|
125
|
+
readonly remediation: "refresh_apps";
|
|
126
|
+
};
|
|
127
|
+
readonly app_unavailable: {
|
|
128
|
+
readonly retry: true;
|
|
129
|
+
readonly remediation: "refresh_apps";
|
|
130
|
+
};
|
|
131
|
+
readonly app_blocked: {
|
|
132
|
+
readonly retry: false;
|
|
133
|
+
readonly remediation: "choose_non_sensitive_target";
|
|
134
|
+
};
|
|
135
|
+
readonly window_not_found: {
|
|
136
|
+
readonly retry: true;
|
|
137
|
+
readonly remediation: "refresh_windows";
|
|
138
|
+
};
|
|
139
|
+
readonly window_unavailable: {
|
|
140
|
+
readonly retry: true;
|
|
141
|
+
readonly remediation: "refresh_windows";
|
|
142
|
+
};
|
|
143
|
+
readonly window_not_focused: {
|
|
144
|
+
readonly retry: true;
|
|
145
|
+
readonly remediation: "focus_window";
|
|
146
|
+
};
|
|
147
|
+
readonly permission_denied: {
|
|
148
|
+
readonly retry: false;
|
|
149
|
+
readonly remediation: "grant_permission";
|
|
150
|
+
};
|
|
151
|
+
readonly stale_target: {
|
|
152
|
+
readonly retry: true;
|
|
153
|
+
readonly remediation: "refresh_state";
|
|
154
|
+
};
|
|
155
|
+
readonly element_not_found: {
|
|
156
|
+
readonly retry: true;
|
|
157
|
+
readonly remediation: "refresh_state";
|
|
158
|
+
};
|
|
159
|
+
readonly element_not_clickable: {
|
|
160
|
+
readonly retry: true;
|
|
161
|
+
readonly remediation: "choose_actionable_target";
|
|
162
|
+
};
|
|
163
|
+
readonly action_not_supported: {
|
|
164
|
+
readonly retry: false;
|
|
165
|
+
readonly remediation: "choose_supported_operation";
|
|
166
|
+
};
|
|
167
|
+
readonly value_not_settable: {
|
|
168
|
+
readonly retry: false;
|
|
169
|
+
readonly remediation: "choose_settable_target";
|
|
170
|
+
};
|
|
171
|
+
readonly invalid_argument: {
|
|
172
|
+
readonly retry: false;
|
|
173
|
+
readonly remediation: "correct_request";
|
|
174
|
+
};
|
|
175
|
+
readonly timeout: {
|
|
176
|
+
readonly retry: false;
|
|
177
|
+
readonly remediation: "inspect_state_before_retry";
|
|
178
|
+
};
|
|
179
|
+
readonly unsupported_capability: {
|
|
180
|
+
readonly retry: false;
|
|
181
|
+
readonly remediation: "choose_supported_operation";
|
|
182
|
+
};
|
|
183
|
+
readonly provider_unavailable: {
|
|
184
|
+
readonly retry: true;
|
|
185
|
+
readonly remediation: "run_doctor";
|
|
186
|
+
};
|
|
187
|
+
readonly provider_crashed: {
|
|
188
|
+
readonly retry: true;
|
|
189
|
+
readonly remediation: "refresh_state";
|
|
190
|
+
};
|
|
191
|
+
readonly version_incompatible: {
|
|
192
|
+
readonly retry: false;
|
|
193
|
+
readonly remediation: "upgrade_or_downgrade";
|
|
194
|
+
};
|
|
195
|
+
readonly interaction_context_invalid: {
|
|
196
|
+
readonly retry: true;
|
|
197
|
+
readonly remediation: "refresh_state";
|
|
198
|
+
};
|
|
199
|
+
readonly interaction_context_expired: {
|
|
200
|
+
readonly retry: true;
|
|
201
|
+
readonly remediation: "refresh_state";
|
|
202
|
+
};
|
|
203
|
+
readonly session_unavailable: {
|
|
204
|
+
readonly retry: true;
|
|
205
|
+
readonly remediation: "unlock_graphical_session";
|
|
206
|
+
};
|
|
207
|
+
readonly screenshot_failed: {
|
|
208
|
+
readonly retry: true;
|
|
209
|
+
readonly remediation: "check_screenshot_permission";
|
|
210
|
+
};
|
|
211
|
+
readonly accessibility_error: {
|
|
212
|
+
readonly retry: true;
|
|
213
|
+
readonly remediation: "check_accessibility_permission";
|
|
214
|
+
};
|
|
215
|
+
};
|
|
96
216
|
export type ComputerErrorCode = keyof typeof ERROR_CATALOG;
|
|
97
|
-
export type
|
|
98
|
-
export
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
window_not_found: "window_not_found";
|
|
103
|
-
window_unavailable: "window_unavailable";
|
|
104
|
-
window_not_focused: "window_not_focused";
|
|
105
|
-
permission_denied: "permission_denied";
|
|
106
|
-
stale_target: "stale_target";
|
|
107
|
-
element_not_found: "element_not_found";
|
|
108
|
-
element_not_clickable: "element_not_clickable";
|
|
109
|
-
action_not_supported: "action_not_supported";
|
|
110
|
-
value_not_settable: "value_not_settable";
|
|
111
|
-
invalid_argument: "invalid_argument";
|
|
112
|
-
timeout: "timeout";
|
|
113
|
-
unsupported_capability: "unsupported_capability";
|
|
114
|
-
provider_unavailable: "provider_unavailable";
|
|
115
|
-
provider_crashed: "provider_crashed";
|
|
116
|
-
version_incompatible: "version_incompatible";
|
|
117
|
-
interaction_context_invalid: "interaction_context_invalid";
|
|
118
|
-
interaction_context_expired: "interaction_context_expired";
|
|
119
|
-
session_unavailable: "session_unavailable";
|
|
120
|
-
screenshot_failed: "screenshot_failed";
|
|
121
|
-
accessibility_error: "accessibility_error";
|
|
122
|
-
}>;
|
|
217
|
+
export type PublicErrorCode = keyof typeof PUBLIC_ERROR_CATALOG;
|
|
218
|
+
export type PublicComputerErrorCode = ComputerErrorCode | PublicErrorCode;
|
|
219
|
+
export type ComputerErrorRemediation = (typeof COMBINED_ERROR_CATALOG)[PublicComputerErrorCode]['remediation'];
|
|
220
|
+
export declare const ComputerErrorCodeSchema: z.ZodEnum<Record<"app_not_found" | "app_unavailable" | "app_blocked" | "window_not_found" | "window_unavailable" | "window_not_focused" | "permission_denied" | "stale_target" | "element_not_found" | "element_not_clickable" | "action_not_supported" | "value_not_settable" | "invalid_argument" | "timeout" | "unsupported_capability" | "provider_unavailable" | "provider_crashed" | "version_incompatible" | "interaction_context_invalid" | "interaction_context_expired" | "session_unavailable" | "screenshot_failed" | "accessibility_error", "app_not_found" | "app_unavailable" | "app_blocked" | "window_not_found" | "window_unavailable" | "window_not_focused" | "permission_denied" | "stale_target" | "element_not_found" | "element_not_clickable" | "action_not_supported" | "value_not_settable" | "invalid_argument" | "timeout" | "unsupported_capability" | "provider_unavailable" | "provider_crashed" | "version_incompatible" | "interaction_context_invalid" | "interaction_context_expired" | "session_unavailable" | "screenshot_failed" | "accessibility_error">>;
|
|
221
|
+
export declare const PublicComputerErrorCodeSchema: z.ZodEnum<Record<"app_not_found" | "app_unavailable" | "app_blocked" | "window_not_found" | "window_unavailable" | "window_not_focused" | "permission_denied" | "stale_target" | "element_not_found" | "element_not_clickable" | "action_not_supported" | "value_not_settable" | "invalid_argument" | "timeout" | "unsupported_capability" | "provider_unavailable" | "provider_crashed" | "version_incompatible" | "interaction_context_invalid" | "interaction_context_expired" | "session_unavailable" | "screenshot_failed" | "accessibility_error" | "goal_mismatch" | "policy_unavailable" | "intent_unavailable", "app_not_found" | "app_unavailable" | "app_blocked" | "window_not_found" | "window_unavailable" | "window_not_focused" | "permission_denied" | "stale_target" | "element_not_found" | "element_not_clickable" | "action_not_supported" | "value_not_settable" | "invalid_argument" | "timeout" | "unsupported_capability" | "provider_unavailable" | "provider_crashed" | "version_incompatible" | "interaction_context_invalid" | "interaction_context_expired" | "session_unavailable" | "screenshot_failed" | "accessibility_error" | "goal_mismatch" | "policy_unavailable" | "intent_unavailable">>;
|
|
123
222
|
export declare const SerializedComputerErrorSchema: z.ZodObject<{
|
|
124
|
-
code: z.ZodEnum<
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
stale_target: "stale_target";
|
|
133
|
-
element_not_found: "element_not_found";
|
|
134
|
-
element_not_clickable: "element_not_clickable";
|
|
135
|
-
action_not_supported: "action_not_supported";
|
|
136
|
-
value_not_settable: "value_not_settable";
|
|
137
|
-
invalid_argument: "invalid_argument";
|
|
138
|
-
timeout: "timeout";
|
|
139
|
-
unsupported_capability: "unsupported_capability";
|
|
140
|
-
provider_unavailable: "provider_unavailable";
|
|
141
|
-
provider_crashed: "provider_crashed";
|
|
142
|
-
version_incompatible: "version_incompatible";
|
|
143
|
-
interaction_context_invalid: "interaction_context_invalid";
|
|
144
|
-
interaction_context_expired: "interaction_context_expired";
|
|
145
|
-
session_unavailable: "session_unavailable";
|
|
146
|
-
screenshot_failed: "screenshot_failed";
|
|
147
|
-
accessibility_error: "accessibility_error";
|
|
148
|
-
}>;
|
|
223
|
+
code: z.ZodEnum<Record<"app_not_found" | "app_unavailable" | "app_blocked" | "window_not_found" | "window_unavailable" | "window_not_focused" | "permission_denied" | "stale_target" | "element_not_found" | "element_not_clickable" | "action_not_supported" | "value_not_settable" | "invalid_argument" | "timeout" | "unsupported_capability" | "provider_unavailable" | "provider_crashed" | "version_incompatible" | "interaction_context_invalid" | "interaction_context_expired" | "session_unavailable" | "screenshot_failed" | "accessibility_error", "app_not_found" | "app_unavailable" | "app_blocked" | "window_not_found" | "window_unavailable" | "window_not_focused" | "permission_denied" | "stale_target" | "element_not_found" | "element_not_clickable" | "action_not_supported" | "value_not_settable" | "invalid_argument" | "timeout" | "unsupported_capability" | "provider_unavailable" | "provider_crashed" | "version_incompatible" | "interaction_context_invalid" | "interaction_context_expired" | "session_unavailable" | "screenshot_failed" | "accessibility_error">>;
|
|
224
|
+
message: z.ZodString;
|
|
225
|
+
retry: z.ZodBoolean;
|
|
226
|
+
remediation: z.ZodString;
|
|
227
|
+
details: z.ZodOptional<z.ZodUnknown>;
|
|
228
|
+
}, z.core.$strict>;
|
|
229
|
+
export declare const PublicSerializedComputerErrorSchema: z.ZodObject<{
|
|
230
|
+
code: z.ZodEnum<Record<"app_not_found" | "app_unavailable" | "app_blocked" | "window_not_found" | "window_unavailable" | "window_not_focused" | "permission_denied" | "stale_target" | "element_not_found" | "element_not_clickable" | "action_not_supported" | "value_not_settable" | "invalid_argument" | "timeout" | "unsupported_capability" | "provider_unavailable" | "provider_crashed" | "version_incompatible" | "interaction_context_invalid" | "interaction_context_expired" | "session_unavailable" | "screenshot_failed" | "accessibility_error" | "goal_mismatch" | "policy_unavailable" | "intent_unavailable", "app_not_found" | "app_unavailable" | "app_blocked" | "window_not_found" | "window_unavailable" | "window_not_focused" | "permission_denied" | "stale_target" | "element_not_found" | "element_not_clickable" | "action_not_supported" | "value_not_settable" | "invalid_argument" | "timeout" | "unsupported_capability" | "provider_unavailable" | "provider_crashed" | "version_incompatible" | "interaction_context_invalid" | "interaction_context_expired" | "session_unavailable" | "screenshot_failed" | "accessibility_error" | "goal_mismatch" | "policy_unavailable" | "intent_unavailable">>;
|
|
149
231
|
message: z.ZodString;
|
|
150
232
|
retry: z.ZodBoolean;
|
|
151
233
|
remediation: z.ZodString;
|
|
152
234
|
details: z.ZodOptional<z.ZodUnknown>;
|
|
153
235
|
}, z.core.$strict>;
|
|
154
236
|
export type SerializedComputerError = z.infer<typeof SerializedComputerErrorSchema>;
|
|
237
|
+
export type PublicSerializedComputerError = z.infer<typeof PublicSerializedComputerErrorSchema>;
|
|
155
238
|
export declare class ComputerError extends Error {
|
|
156
|
-
readonly code:
|
|
239
|
+
readonly code: PublicComputerErrorCode;
|
|
157
240
|
readonly retry: boolean;
|
|
158
241
|
readonly remediation: ComputerErrorRemediation;
|
|
159
242
|
readonly details: unknown;
|
|
160
|
-
constructor(code:
|
|
161
|
-
toJSON():
|
|
243
|
+
constructor(code: PublicComputerErrorCode, message: string, details?: unknown);
|
|
244
|
+
toJSON(): PublicSerializedComputerError;
|
|
245
|
+
toBrokerJSON(): SerializedComputerError;
|
|
162
246
|
}
|
|
163
|
-
export declare function createComputerError(code:
|
|
247
|
+
export declare function createComputerError(code: PublicComputerErrorCode, message: string, details?: unknown): ComputerError;
|
|
248
|
+
export {};
|
|
164
249
|
//# sourceMappingURL=errors.d.ts.map
|
package/dist/errors.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file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AC3F,eAAO,MAAM,mCAAmC;;;;;;kBAE/C,CAAA;AAED,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,6BAA6B,CAAC,CAAA;AACnF,MAAM,MAAM,6BAA6B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mCAAmC,CAAC,CAAA;AAE/F,qBAAa,aAAc,SAAQ,KAAK;IACtC,QAAQ,CAAC,IAAI,EAAE,uBAAuB,CAAA;IACtC,QAAQ,CAAC,KAAK,EAAE,OAAO,CAAA;IACvB,QAAQ,CAAC,WAAW,EAAE,wBAAwB,CAAA;IAC9C,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAA;gBAEb,IAAI,EAAE,uBAAuB,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,OAAO;IAS7E,MAAM,IAAI,6BAA6B;IAYvC,YAAY,IAAI,uBAAuB;CAGxC;AAED,wBAAgB,mBAAmB,CACjC,IAAI,EAAE,uBAAuB,EAC7B,OAAO,EAAE,MAAM,EACf,OAAO,CAAC,EAAE,OAAO,GAChB,aAAa,CAEf"}
|
package/dist/errors.js
CHANGED
|
@@ -24,16 +24,34 @@ export const ERROR_CATALOG = {
|
|
|
24
24
|
screenshot_failed: { retry: true, remediation: 'check_screenshot_permission' },
|
|
25
25
|
accessibility_error: { retry: true, remediation: 'check_accessibility_permission' }
|
|
26
26
|
};
|
|
27
|
-
export const
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
}
|
|
36
|
-
|
|
27
|
+
export const PUBLIC_ERROR_CATALOG = {
|
|
28
|
+
goal_mismatch: { retry: true, remediation: 'refresh_state' },
|
|
29
|
+
policy_unavailable: { retry: true, remediation: 'refresh_state' },
|
|
30
|
+
intent_unavailable: { retry: false, remediation: 'correct_request' }
|
|
31
|
+
};
|
|
32
|
+
const COMBINED_ERROR_CATALOG = {
|
|
33
|
+
...ERROR_CATALOG,
|
|
34
|
+
...PUBLIC_ERROR_CATALOG
|
|
35
|
+
};
|
|
36
|
+
function errorCodeSchema(catalog) {
|
|
37
|
+
const codes = Object.keys(catalog);
|
|
38
|
+
return z.enum(codes);
|
|
39
|
+
}
|
|
40
|
+
export const ComputerErrorCodeSchema = errorCodeSchema(ERROR_CATALOG);
|
|
41
|
+
export const PublicComputerErrorCodeSchema = errorCodeSchema(COMBINED_ERROR_CATALOG);
|
|
42
|
+
function serializedErrorSchema(code) {
|
|
43
|
+
return z
|
|
44
|
+
.object({
|
|
45
|
+
code,
|
|
46
|
+
message: z.string().min(1),
|
|
47
|
+
retry: z.boolean(),
|
|
48
|
+
remediation: z.string().min(1),
|
|
49
|
+
details: z.unknown().optional()
|
|
50
|
+
})
|
|
51
|
+
.strict();
|
|
52
|
+
}
|
|
53
|
+
export const SerializedComputerErrorSchema = serializedErrorSchema(ComputerErrorCodeSchema);
|
|
54
|
+
export const PublicSerializedComputerErrorSchema = serializedErrorSchema(PublicComputerErrorCodeSchema);
|
|
37
55
|
export class ComputerError extends Error {
|
|
38
56
|
code;
|
|
39
57
|
retry;
|
|
@@ -43,8 +61,8 @@ export class ComputerError extends Error {
|
|
|
43
61
|
super(message);
|
|
44
62
|
this.name = 'ComputerError';
|
|
45
63
|
this.code = code;
|
|
46
|
-
this.retry =
|
|
47
|
-
this.remediation =
|
|
64
|
+
this.retry = COMBINED_ERROR_CATALOG[code].retry;
|
|
65
|
+
this.remediation = COMBINED_ERROR_CATALOG[code].remediation;
|
|
48
66
|
this.details = details;
|
|
49
67
|
}
|
|
50
68
|
toJSON() {
|
|
@@ -58,6 +76,9 @@ export class ComputerError extends Error {
|
|
|
58
76
|
details: this.details
|
|
59
77
|
};
|
|
60
78
|
}
|
|
79
|
+
toBrokerJSON() {
|
|
80
|
+
return SerializedComputerErrorSchema.parse(this.toJSON());
|
|
81
|
+
}
|
|
61
82
|
}
|
|
62
83
|
export function createComputerError(code, message, details) {
|
|
63
84
|
return new ComputerError(code, message, details);
|
package/dist/errors.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"errors.js","sourceRoot":"","sources":["../src/errors.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,MAAM,CAAC,MAAM,aAAa,GAAG;IAC3B,aAAa,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,WAAW,EAAE,cAAc,EAAE;IAC3D,eAAe,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,WAAW,EAAE,cAAc,EAAE;IAC7D,WAAW,EAAE,EAAE,KAAK,EAAE,KAAK,EAAE,WAAW,EAAE,6BAA6B,EAAE;IACzE,gBAAgB,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,WAAW,EAAE,iBAAiB,EAAE;IACjE,kBAAkB,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,WAAW,EAAE,iBAAiB,EAAE;IACnE,kBAAkB,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,WAAW,EAAE,cAAc,EAAE;IAChE,iBAAiB,EAAE,EAAE,KAAK,EAAE,KAAK,EAAE,WAAW,EAAE,kBAAkB,EAAE;IACpE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,WAAW,EAAE,eAAe,EAAE;IAC3D,iBAAiB,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,WAAW,EAAE,eAAe,EAAE;IAChE,qBAAqB,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,WAAW,EAAE,0BAA0B,EAAE;IAC/E,oBAAoB,EAAE,EAAE,KAAK,EAAE,KAAK,EAAE,WAAW,EAAE,4BAA4B,EAAE;IACjF,kBAAkB,EAAE,EAAE,KAAK,EAAE,KAAK,EAAE,WAAW,EAAE,wBAAwB,EAAE;IAC3E,gBAAgB,EAAE,EAAE,KAAK,EAAE,KAAK,EAAE,WAAW,EAAE,iBAAiB,EAAE;IAClE,OAAO,EAAE,EAAE,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,IAA6B,EAC7B,OAAe,EACf,OAAiB;IAEjB,OAAO,IAAI,aAAa,CAAC,IAAI,EAAE,OAAO,EAAE,OAAO,CAAC,CAAA;AAClD,CAAC"}
|
package/dist/json-schema.d.ts
CHANGED
|
@@ -1,312 +1,24 @@
|
|
|
1
1
|
export declare const contractJsonSchemas: {
|
|
2
2
|
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
3
3
|
readonly versions: {
|
|
4
|
-
readonly product: "0.1
|
|
5
|
-
readonly publicContract: "1.
|
|
4
|
+
readonly product: "0.2.1";
|
|
5
|
+
readonly publicContract: "1.2.0";
|
|
6
6
|
readonly brokerControl: 1;
|
|
7
7
|
readonly providerProtocol: 1;
|
|
8
8
|
readonly mcpProtocol: "2025-11-25";
|
|
9
9
|
};
|
|
10
10
|
readonly operations: {
|
|
11
11
|
[k: string]: {
|
|
12
|
-
mutation:
|
|
13
|
-
input:
|
|
14
|
-
output:
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
executableId: import("zod").ZodString;
|
|
23
|
-
}, import("zod/v4/core").$strict>;
|
|
24
|
-
appId: import("zod").ZodString;
|
|
25
|
-
window: import("zod").ZodObject<{
|
|
26
|
-
id: import("zod").ZodString;
|
|
27
|
-
ownerPid: import("zod").ZodNumber;
|
|
28
|
-
}, import("zod/v4/core").$strict>;
|
|
29
|
-
snapshotId: import("zod").ZodString;
|
|
30
|
-
desktopEpoch: import("zod").ZodNumber;
|
|
31
|
-
token: import("zod").ZodString;
|
|
32
|
-
issuedAt: import("zod").ZodISODateTime;
|
|
33
|
-
expiresAt: import("zod").ZodISODateTime;
|
|
34
|
-
}, import("zod/v4/core").$strict>;
|
|
35
|
-
snapshot: import("zod").ZodObject<{
|
|
36
|
-
id: import("zod").ZodString;
|
|
37
|
-
app: import("zod").ZodObject<{
|
|
38
|
-
id: import("zod").ZodString;
|
|
39
|
-
name: import("zod").ZodString;
|
|
40
|
-
bundleId: import("zod").ZodNullable<import("zod").ZodString>;
|
|
41
|
-
pid: import("zod").ZodNumber;
|
|
42
|
-
isRunning: import("zod").ZodBoolean;
|
|
43
|
-
}, import("zod/v4/core").$strict>;
|
|
44
|
-
window: import("zod").ZodObject<{
|
|
45
|
-
id: import("zod").ZodString;
|
|
46
|
-
appId: import("zod").ZodString;
|
|
47
|
-
title: import("zod").ZodString;
|
|
48
|
-
index: import("zod").ZodNumber;
|
|
49
|
-
bounds: import("zod").ZodObject<{
|
|
50
|
-
x: import("zod").ZodNumber;
|
|
51
|
-
y: import("zod").ZodNumber;
|
|
52
|
-
width: import("zod").ZodNumber;
|
|
53
|
-
height: import("zod").ZodNumber;
|
|
54
|
-
}, import("zod/v4/core").$strict>;
|
|
55
|
-
minimized: import("zod").ZodBoolean;
|
|
56
|
-
}, import("zod/v4/core").$strict>;
|
|
57
|
-
treeText: import("zod").ZodString;
|
|
58
|
-
elementCount: import("zod").ZodNumber;
|
|
59
|
-
focusedElementRef: import("zod").ZodNullable<import("zod").ZodString>;
|
|
60
|
-
desktopEpoch: import("zod").ZodNumber;
|
|
61
|
-
}, import("zod/v4/core").$strict>;
|
|
62
|
-
screenshot: import("zod").ZodNullable<import("zod").ZodObject<{
|
|
63
|
-
format: import("zod").ZodLiteral<"png">;
|
|
64
|
-
width: import("zod").ZodNumber;
|
|
65
|
-
height: import("zod").ZodNumber;
|
|
66
|
-
scale: import("zod").ZodNumber;
|
|
67
|
-
data: import("zod").ZodOptional<import("zod").ZodString>;
|
|
68
|
-
path: import("zod").ZodOptional<import("zod").ZodString>;
|
|
69
|
-
expiresAt: import("zod").ZodOptional<import("zod").ZodISODateTime>;
|
|
70
|
-
}, import("zod/v4/core").$strict>>;
|
|
71
|
-
issues: import("zod").ZodDefault<import("zod").ZodArray<import("zod").ZodObject<{
|
|
72
|
-
code: import("zod").ZodEnum<{
|
|
73
|
-
app_not_found: "app_not_found";
|
|
74
|
-
app_unavailable: "app_unavailable";
|
|
75
|
-
app_blocked: "app_blocked";
|
|
76
|
-
window_not_found: "window_not_found";
|
|
77
|
-
window_unavailable: "window_unavailable";
|
|
78
|
-
window_not_focused: "window_not_focused";
|
|
79
|
-
permission_denied: "permission_denied";
|
|
80
|
-
stale_target: "stale_target";
|
|
81
|
-
element_not_found: "element_not_found";
|
|
82
|
-
element_not_clickable: "element_not_clickable";
|
|
83
|
-
action_not_supported: "action_not_supported";
|
|
84
|
-
value_not_settable: "value_not_settable";
|
|
85
|
-
invalid_argument: "invalid_argument";
|
|
86
|
-
timeout: "timeout";
|
|
87
|
-
unsupported_capability: "unsupported_capability";
|
|
88
|
-
provider_unavailable: "provider_unavailable";
|
|
89
|
-
provider_crashed: "provider_crashed";
|
|
90
|
-
version_incompatible: "version_incompatible";
|
|
91
|
-
interaction_context_invalid: "interaction_context_invalid";
|
|
92
|
-
interaction_context_expired: "interaction_context_expired";
|
|
93
|
-
session_unavailable: "session_unavailable";
|
|
94
|
-
screenshot_failed: "screenshot_failed";
|
|
95
|
-
accessibility_error: "accessibility_error";
|
|
96
|
-
}>;
|
|
97
|
-
message: import("zod").ZodString;
|
|
98
|
-
retry: import("zod").ZodBoolean;
|
|
99
|
-
remediation: import("zod").ZodString;
|
|
100
|
-
details: import("zod").ZodOptional<import("zod").ZodUnknown>;
|
|
101
|
-
}, import("zod/v4/core").$strict>>>;
|
|
102
|
-
}, import("zod/v4/core").$strict>> | import("zod/v4/core").ZodStandardJSONSchemaPayload<import("zod").ZodObject<{
|
|
103
|
-
outcome: import("zod").ZodDiscriminatedUnion<[import("zod").ZodObject<{
|
|
104
|
-
state: import("zod").ZodLiteral<"verified">;
|
|
105
|
-
evidence: import("zod").ZodOptional<import("zod").ZodUnknown>;
|
|
106
|
-
}, import("zod/v4/core").$strict>, import("zod").ZodObject<{
|
|
107
|
-
state: import("zod").ZodLiteral<"indeterminate">;
|
|
108
|
-
reason: import("zod").ZodOptional<import("zod").ZodString>;
|
|
109
|
-
}, import("zod/v4/core").$strict>, import("zod").ZodObject<{
|
|
110
|
-
state: import("zod").ZodLiteral<"failed">;
|
|
111
|
-
error: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
112
|
-
code: import("zod").ZodEnum<{
|
|
113
|
-
app_not_found: "app_not_found";
|
|
114
|
-
app_unavailable: "app_unavailable";
|
|
115
|
-
app_blocked: "app_blocked";
|
|
116
|
-
window_not_found: "window_not_found";
|
|
117
|
-
window_unavailable: "window_unavailable";
|
|
118
|
-
window_not_focused: "window_not_focused";
|
|
119
|
-
permission_denied: "permission_denied";
|
|
120
|
-
stale_target: "stale_target";
|
|
121
|
-
element_not_found: "element_not_found";
|
|
122
|
-
element_not_clickable: "element_not_clickable";
|
|
123
|
-
action_not_supported: "action_not_supported";
|
|
124
|
-
value_not_settable: "value_not_settable";
|
|
125
|
-
invalid_argument: "invalid_argument";
|
|
126
|
-
timeout: "timeout";
|
|
127
|
-
unsupported_capability: "unsupported_capability";
|
|
128
|
-
provider_unavailable: "provider_unavailable";
|
|
129
|
-
provider_crashed: "provider_crashed";
|
|
130
|
-
version_incompatible: "version_incompatible";
|
|
131
|
-
interaction_context_invalid: "interaction_context_invalid";
|
|
132
|
-
interaction_context_expired: "interaction_context_expired";
|
|
133
|
-
session_unavailable: "session_unavailable";
|
|
134
|
-
screenshot_failed: "screenshot_failed";
|
|
135
|
-
accessibility_error: "accessibility_error";
|
|
136
|
-
}>;
|
|
137
|
-
message: import("zod").ZodString;
|
|
138
|
-
retry: import("zod").ZodBoolean;
|
|
139
|
-
remediation: import("zod").ZodString;
|
|
140
|
-
details: import("zod").ZodOptional<import("zod").ZodUnknown>;
|
|
141
|
-
}, import("zod/v4/core").$strict>>;
|
|
142
|
-
}, import("zod/v4/core").$strict>, import("zod").ZodObject<{
|
|
143
|
-
state: import("zod").ZodLiteral<"not_attempted">;
|
|
144
|
-
error: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
145
|
-
code: import("zod").ZodEnum<{
|
|
146
|
-
app_not_found: "app_not_found";
|
|
147
|
-
app_unavailable: "app_unavailable";
|
|
148
|
-
app_blocked: "app_blocked";
|
|
149
|
-
window_not_found: "window_not_found";
|
|
150
|
-
window_unavailable: "window_unavailable";
|
|
151
|
-
window_not_focused: "window_not_focused";
|
|
152
|
-
permission_denied: "permission_denied";
|
|
153
|
-
stale_target: "stale_target";
|
|
154
|
-
element_not_found: "element_not_found";
|
|
155
|
-
element_not_clickable: "element_not_clickable";
|
|
156
|
-
action_not_supported: "action_not_supported";
|
|
157
|
-
value_not_settable: "value_not_settable";
|
|
158
|
-
invalid_argument: "invalid_argument";
|
|
159
|
-
timeout: "timeout";
|
|
160
|
-
unsupported_capability: "unsupported_capability";
|
|
161
|
-
provider_unavailable: "provider_unavailable";
|
|
162
|
-
provider_crashed: "provider_crashed";
|
|
163
|
-
version_incompatible: "version_incompatible";
|
|
164
|
-
interaction_context_invalid: "interaction_context_invalid";
|
|
165
|
-
interaction_context_expired: "interaction_context_expired";
|
|
166
|
-
session_unavailable: "session_unavailable";
|
|
167
|
-
screenshot_failed: "screenshot_failed";
|
|
168
|
-
accessibility_error: "accessibility_error";
|
|
169
|
-
}>;
|
|
170
|
-
message: import("zod").ZodString;
|
|
171
|
-
retry: import("zod").ZodBoolean;
|
|
172
|
-
remediation: import("zod").ZodString;
|
|
173
|
-
details: import("zod").ZodOptional<import("zod").ZodUnknown>;
|
|
174
|
-
}, import("zod/v4/core").$strict>>;
|
|
175
|
-
}, import("zod/v4/core").$strict>], "state">;
|
|
176
|
-
freshState: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
177
|
-
context: import("zod").ZodObject<{
|
|
178
|
-
brokerGeneration: import("zod").ZodString;
|
|
179
|
-
providerGeneration: import("zod").ZodString;
|
|
180
|
-
graphicalSessionId: import("zod").ZodString;
|
|
181
|
-
process: import("zod").ZodObject<{
|
|
182
|
-
pid: import("zod").ZodNumber;
|
|
183
|
-
startedAt: import("zod").ZodISODateTime;
|
|
184
|
-
executableId: import("zod").ZodString;
|
|
185
|
-
}, import("zod/v4/core").$strict>;
|
|
186
|
-
appId: import("zod").ZodString;
|
|
187
|
-
window: import("zod").ZodObject<{
|
|
188
|
-
id: import("zod").ZodString;
|
|
189
|
-
ownerPid: import("zod").ZodNumber;
|
|
190
|
-
}, import("zod/v4/core").$strict>;
|
|
191
|
-
snapshotId: import("zod").ZodString;
|
|
192
|
-
desktopEpoch: import("zod").ZodNumber;
|
|
193
|
-
token: import("zod").ZodString;
|
|
194
|
-
issuedAt: import("zod").ZodISODateTime;
|
|
195
|
-
expiresAt: import("zod").ZodISODateTime;
|
|
196
|
-
}, import("zod/v4/core").$strict>;
|
|
197
|
-
snapshot: import("zod").ZodObject<{
|
|
198
|
-
id: import("zod").ZodString;
|
|
199
|
-
app: import("zod").ZodObject<{
|
|
200
|
-
id: import("zod").ZodString;
|
|
201
|
-
name: import("zod").ZodString;
|
|
202
|
-
bundleId: import("zod").ZodNullable<import("zod").ZodString>;
|
|
203
|
-
pid: import("zod").ZodNumber;
|
|
204
|
-
isRunning: import("zod").ZodBoolean;
|
|
205
|
-
}, import("zod/v4/core").$strict>;
|
|
206
|
-
window: import("zod").ZodObject<{
|
|
207
|
-
id: import("zod").ZodString;
|
|
208
|
-
appId: import("zod").ZodString;
|
|
209
|
-
title: import("zod").ZodString;
|
|
210
|
-
index: import("zod").ZodNumber;
|
|
211
|
-
bounds: import("zod").ZodObject<{
|
|
212
|
-
x: import("zod").ZodNumber;
|
|
213
|
-
y: import("zod").ZodNumber;
|
|
214
|
-
width: import("zod").ZodNumber;
|
|
215
|
-
height: import("zod").ZodNumber;
|
|
216
|
-
}, import("zod/v4/core").$strict>;
|
|
217
|
-
minimized: import("zod").ZodBoolean;
|
|
218
|
-
}, import("zod/v4/core").$strict>;
|
|
219
|
-
treeText: import("zod").ZodString;
|
|
220
|
-
elementCount: import("zod").ZodNumber;
|
|
221
|
-
focusedElementRef: import("zod").ZodNullable<import("zod").ZodString>;
|
|
222
|
-
desktopEpoch: import("zod").ZodNumber;
|
|
223
|
-
}, import("zod/v4/core").$strict>;
|
|
224
|
-
screenshot: import("zod").ZodNullable<import("zod").ZodObject<{
|
|
225
|
-
format: import("zod").ZodLiteral<"png">;
|
|
226
|
-
width: import("zod").ZodNumber;
|
|
227
|
-
height: import("zod").ZodNumber;
|
|
228
|
-
scale: import("zod").ZodNumber;
|
|
229
|
-
data: import("zod").ZodOptional<import("zod").ZodString>;
|
|
230
|
-
path: import("zod").ZodOptional<import("zod").ZodString>;
|
|
231
|
-
expiresAt: import("zod").ZodOptional<import("zod").ZodISODateTime>;
|
|
232
|
-
}, import("zod/v4/core").$strict>>;
|
|
233
|
-
issues: import("zod").ZodDefault<import("zod").ZodArray<import("zod").ZodObject<{
|
|
234
|
-
code: import("zod").ZodEnum<{
|
|
235
|
-
app_not_found: "app_not_found";
|
|
236
|
-
app_unavailable: "app_unavailable";
|
|
237
|
-
app_blocked: "app_blocked";
|
|
238
|
-
window_not_found: "window_not_found";
|
|
239
|
-
window_unavailable: "window_unavailable";
|
|
240
|
-
window_not_focused: "window_not_focused";
|
|
241
|
-
permission_denied: "permission_denied";
|
|
242
|
-
stale_target: "stale_target";
|
|
243
|
-
element_not_found: "element_not_found";
|
|
244
|
-
element_not_clickable: "element_not_clickable";
|
|
245
|
-
action_not_supported: "action_not_supported";
|
|
246
|
-
value_not_settable: "value_not_settable";
|
|
247
|
-
invalid_argument: "invalid_argument";
|
|
248
|
-
timeout: "timeout";
|
|
249
|
-
unsupported_capability: "unsupported_capability";
|
|
250
|
-
provider_unavailable: "provider_unavailable";
|
|
251
|
-
provider_crashed: "provider_crashed";
|
|
252
|
-
version_incompatible: "version_incompatible";
|
|
253
|
-
interaction_context_invalid: "interaction_context_invalid";
|
|
254
|
-
interaction_context_expired: "interaction_context_expired";
|
|
255
|
-
session_unavailable: "session_unavailable";
|
|
256
|
-
screenshot_failed: "screenshot_failed";
|
|
257
|
-
accessibility_error: "accessibility_error";
|
|
258
|
-
}>;
|
|
259
|
-
message: import("zod").ZodString;
|
|
260
|
-
retry: import("zod").ZodBoolean;
|
|
261
|
-
remediation: import("zod").ZodString;
|
|
262
|
-
details: import("zod").ZodOptional<import("zod").ZodUnknown>;
|
|
263
|
-
}, import("zod/v4/core").$strict>>>;
|
|
264
|
-
}, import("zod/v4/core").$strict>>;
|
|
265
|
-
}, import("zod/v4/core").$strict>> | import("zod/v4/core").ZodStandardJSONSchemaPayload<import("zod").ZodObject<{
|
|
266
|
-
platform: import("zod").ZodEnum<{
|
|
267
|
-
darwin: "darwin";
|
|
268
|
-
win32: "win32";
|
|
269
|
-
linux: "linux";
|
|
270
|
-
}>;
|
|
271
|
-
provider: import("zod").ZodString;
|
|
272
|
-
providerVersion: import("zod").ZodString;
|
|
273
|
-
operations: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodBoolean>;
|
|
274
|
-
permissions: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodEnum<{
|
|
275
|
-
unknown: "unknown";
|
|
276
|
-
granted: "granted";
|
|
277
|
-
denied: "denied";
|
|
278
|
-
not_required: "not_required";
|
|
279
|
-
}>>;
|
|
280
|
-
supports: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
281
|
-
apps: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodBoolean>>;
|
|
282
|
-
windows: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodBoolean>>;
|
|
283
|
-
surfaces: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodBoolean>>;
|
|
284
|
-
observation: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodBoolean>>;
|
|
285
|
-
actions: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodBoolean>>;
|
|
286
|
-
}, import("zod/v4/core").$strict>>;
|
|
287
|
-
}, import("zod/v4/core").$strict>> | import("zod/v4/core").ZodStandardJSONSchemaPayload<import("zod").ZodObject<{
|
|
288
|
-
apps: import("zod").ZodArray<import("zod").ZodObject<{
|
|
289
|
-
id: import("zod").ZodString;
|
|
290
|
-
name: import("zod").ZodString;
|
|
291
|
-
bundleId: import("zod").ZodNullable<import("zod").ZodString>;
|
|
292
|
-
pid: import("zod").ZodNumber;
|
|
293
|
-
isRunning: import("zod").ZodBoolean;
|
|
294
|
-
}, import("zod/v4/core").$strict>>;
|
|
295
|
-
}, import("zod/v4/core").$strict>> | import("zod/v4/core").ZodStandardJSONSchemaPayload<import("zod").ZodObject<{
|
|
296
|
-
windows: import("zod").ZodArray<import("zod").ZodObject<{
|
|
297
|
-
id: import("zod").ZodString;
|
|
298
|
-
appId: import("zod").ZodString;
|
|
299
|
-
title: import("zod").ZodString;
|
|
300
|
-
index: import("zod").ZodNumber;
|
|
301
|
-
bounds: import("zod").ZodObject<{
|
|
302
|
-
x: import("zod").ZodNumber;
|
|
303
|
-
y: import("zod").ZodNumber;
|
|
304
|
-
width: import("zod").ZodNumber;
|
|
305
|
-
height: import("zod").ZodNumber;
|
|
306
|
-
}, import("zod/v4/core").$strict>;
|
|
307
|
-
minimized: import("zod").ZodBoolean;
|
|
308
|
-
}, import("zod/v4/core").$strict>>;
|
|
309
|
-
}, import("zod/v4/core").$strict>>;
|
|
12
|
+
mutation: any;
|
|
13
|
+
input: any;
|
|
14
|
+
output: any;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
readonly publicOperations: {
|
|
18
|
+
[k: string]: {
|
|
19
|
+
mutation: any;
|
|
20
|
+
input: any;
|
|
21
|
+
output: any;
|
|
310
22
|
};
|
|
311
23
|
};
|
|
312
24
|
};
|