@automate.ax/integration-contracts 0.154.2 → 0.156.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.
|
@@ -34,7 +34,6 @@ export declare const CLOUDFLARE_BROWSER_CONTENT_INPUT_SCHEMA: z.ZodObject<{
|
|
|
34
34
|
html: z.ZodOptional<z.ZodString>;
|
|
35
35
|
url: z.ZodOptional<z.ZodURL>;
|
|
36
36
|
userAgent: z.ZodOptional<z.ZodString>;
|
|
37
|
-
accountId: z.ZodString;
|
|
38
37
|
actionTimeout: z.ZodOptional<z.ZodNumber>;
|
|
39
38
|
addScriptTag: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
40
39
|
content: z.ZodOptional<z.ZodString>;
|
|
@@ -156,12 +155,140 @@ export declare const CLOUDFLARE_BROWSER_CONTENT_INPUT_SCHEMA: z.ZodObject<{
|
|
|
156
155
|
visible: z.ZodOptional<z.ZodLiteral<true>>;
|
|
157
156
|
}, z.core.$strip>>;
|
|
158
157
|
waitForTimeout: z.ZodOptional<z.ZodNumber>;
|
|
158
|
+
accountId: z.ZodString;
|
|
159
159
|
}, z.core.$strip>;
|
|
160
160
|
export declare const CLOUDFLARE_BROWSER_MARKDOWN_INPUT_SCHEMA: z.ZodObject<{
|
|
161
161
|
html: z.ZodOptional<z.ZodString>;
|
|
162
162
|
url: z.ZodOptional<z.ZodURL>;
|
|
163
163
|
userAgent: z.ZodOptional<z.ZodString>;
|
|
164
|
+
actionTimeout: z.ZodOptional<z.ZodNumber>;
|
|
165
|
+
addScriptTag: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
166
|
+
content: z.ZodOptional<z.ZodString>;
|
|
167
|
+
id: z.ZodOptional<z.ZodString>;
|
|
168
|
+
type: z.ZodOptional<z.ZodString>;
|
|
169
|
+
url: z.ZodOptional<z.ZodURL>;
|
|
170
|
+
}, z.core.$strip>>>;
|
|
171
|
+
addStyleTag: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
172
|
+
content: z.ZodOptional<z.ZodString>;
|
|
173
|
+
url: z.ZodOptional<z.ZodURL>;
|
|
174
|
+
}, z.core.$strip>>>;
|
|
175
|
+
allowRequestPattern: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
176
|
+
allowResourceTypes: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
177
|
+
document: "document";
|
|
178
|
+
font: "font";
|
|
179
|
+
image: "image";
|
|
180
|
+
manifest: "manifest";
|
|
181
|
+
script: "script";
|
|
182
|
+
stylesheet: "stylesheet";
|
|
183
|
+
media: "media";
|
|
184
|
+
texttrack: "texttrack";
|
|
185
|
+
xhr: "xhr";
|
|
186
|
+
fetch: "fetch";
|
|
187
|
+
prefetch: "prefetch";
|
|
188
|
+
eventsource: "eventsource";
|
|
189
|
+
websocket: "websocket";
|
|
190
|
+
signedexchange: "signedexchange";
|
|
191
|
+
ping: "ping";
|
|
192
|
+
cspviolationreport: "cspviolationreport";
|
|
193
|
+
preflight: "preflight";
|
|
194
|
+
other: "other";
|
|
195
|
+
}>>>;
|
|
196
|
+
authenticate: z.ZodOptional<z.ZodObject<{
|
|
197
|
+
password: z.ZodString;
|
|
198
|
+
username: z.ZodString;
|
|
199
|
+
}, z.core.$strip>>;
|
|
200
|
+
bestAttempt: z.ZodOptional<z.ZodBoolean>;
|
|
201
|
+
cacheTtl: z.ZodOptional<z.ZodNumber>;
|
|
202
|
+
cookies: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
203
|
+
domain: z.ZodOptional<z.ZodString>;
|
|
204
|
+
expires: z.ZodOptional<z.ZodNumber>;
|
|
205
|
+
httpOnly: z.ZodOptional<z.ZodBoolean>;
|
|
206
|
+
name: z.ZodString;
|
|
207
|
+
partitionKey: z.ZodOptional<z.ZodString>;
|
|
208
|
+
path: z.ZodOptional<z.ZodString>;
|
|
209
|
+
priority: z.ZodOptional<z.ZodEnum<{
|
|
210
|
+
Low: "Low";
|
|
211
|
+
Medium: "Medium";
|
|
212
|
+
High: "High";
|
|
213
|
+
}>>;
|
|
214
|
+
sameParty: z.ZodOptional<z.ZodBoolean>;
|
|
215
|
+
sameSite: z.ZodOptional<z.ZodEnum<{
|
|
216
|
+
Strict: "Strict";
|
|
217
|
+
Lax: "Lax";
|
|
218
|
+
None: "None";
|
|
219
|
+
}>>;
|
|
220
|
+
secure: z.ZodOptional<z.ZodBoolean>;
|
|
221
|
+
sourcePort: z.ZodOptional<z.ZodNumber>;
|
|
222
|
+
sourceScheme: z.ZodOptional<z.ZodEnum<{
|
|
223
|
+
Unset: "Unset";
|
|
224
|
+
NonSecure: "NonSecure";
|
|
225
|
+
Secure: "Secure";
|
|
226
|
+
}>>;
|
|
227
|
+
url: z.ZodOptional<z.ZodString>;
|
|
228
|
+
value: z.ZodString;
|
|
229
|
+
}, z.core.$strip>>>;
|
|
230
|
+
emulateMediaType: z.ZodOptional<z.ZodString>;
|
|
231
|
+
gotoOptions: z.ZodOptional<z.ZodObject<{
|
|
232
|
+
referer: z.ZodOptional<z.ZodString>;
|
|
233
|
+
referrerPolicy: z.ZodOptional<z.ZodString>;
|
|
234
|
+
timeout: z.ZodOptional<z.ZodNumber>;
|
|
235
|
+
waitUntil: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
236
|
+
load: "load";
|
|
237
|
+
domcontentloaded: "domcontentloaded";
|
|
238
|
+
networkidle0: "networkidle0";
|
|
239
|
+
networkidle2: "networkidle2";
|
|
240
|
+
}>, z.ZodArray<z.ZodEnum<{
|
|
241
|
+
load: "load";
|
|
242
|
+
domcontentloaded: "domcontentloaded";
|
|
243
|
+
networkidle0: "networkidle0";
|
|
244
|
+
networkidle2: "networkidle2";
|
|
245
|
+
}>>]>>;
|
|
246
|
+
}, z.core.$strip>>;
|
|
247
|
+
rejectRequestPattern: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
248
|
+
rejectResourceTypes: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
249
|
+
document: "document";
|
|
250
|
+
font: "font";
|
|
251
|
+
image: "image";
|
|
252
|
+
manifest: "manifest";
|
|
253
|
+
script: "script";
|
|
254
|
+
stylesheet: "stylesheet";
|
|
255
|
+
media: "media";
|
|
256
|
+
texttrack: "texttrack";
|
|
257
|
+
xhr: "xhr";
|
|
258
|
+
fetch: "fetch";
|
|
259
|
+
prefetch: "prefetch";
|
|
260
|
+
eventsource: "eventsource";
|
|
261
|
+
websocket: "websocket";
|
|
262
|
+
signedexchange: "signedexchange";
|
|
263
|
+
ping: "ping";
|
|
264
|
+
cspviolationreport: "cspviolationreport";
|
|
265
|
+
preflight: "preflight";
|
|
266
|
+
other: "other";
|
|
267
|
+
}>>>;
|
|
268
|
+
setExtraHttpHeaders: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
269
|
+
setJavaScriptEnabled: z.ZodOptional<z.ZodBoolean>;
|
|
270
|
+
viewport: z.ZodOptional<z.ZodObject<{
|
|
271
|
+
deviceScaleFactor: z.ZodOptional<z.ZodNumber>;
|
|
272
|
+
hasTouch: z.ZodOptional<z.ZodBoolean>;
|
|
273
|
+
height: z.ZodNumber;
|
|
274
|
+
isLandscape: z.ZodOptional<z.ZodBoolean>;
|
|
275
|
+
isMobile: z.ZodOptional<z.ZodBoolean>;
|
|
276
|
+
width: z.ZodNumber;
|
|
277
|
+
}, z.core.$strip>>;
|
|
278
|
+
waitForSelector: z.ZodOptional<z.ZodObject<{
|
|
279
|
+
hidden: z.ZodOptional<z.ZodLiteral<true>>;
|
|
280
|
+
selector: z.ZodString;
|
|
281
|
+
timeout: z.ZodOptional<z.ZodNumber>;
|
|
282
|
+
visible: z.ZodOptional<z.ZodLiteral<true>>;
|
|
283
|
+
}, z.core.$strip>>;
|
|
284
|
+
waitForTimeout: z.ZodOptional<z.ZodNumber>;
|
|
164
285
|
accountId: z.ZodString;
|
|
286
|
+
}, z.core.$strip>;
|
|
287
|
+
/** Browser Run Markdown request without a customer Cloudflare account ID. */
|
|
288
|
+
export declare const CLOUDFLARE_BROWSER_MARKDOWN_REQUEST_SCHEMA: z.ZodObject<{
|
|
289
|
+
html: z.ZodOptional<z.ZodString>;
|
|
290
|
+
url: z.ZodOptional<z.ZodURL>;
|
|
291
|
+
userAgent: z.ZodOptional<z.ZodString>;
|
|
165
292
|
actionTimeout: z.ZodOptional<z.ZodNumber>;
|
|
166
293
|
addScriptTag: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
167
294
|
content: z.ZodOptional<z.ZodString>;
|
|
@@ -288,7 +415,6 @@ export declare const CLOUDFLARE_BROWSER_ACCESSIBILITY_INPUT_SCHEMA: z.ZodObject<
|
|
|
288
415
|
html: z.ZodOptional<z.ZodString>;
|
|
289
416
|
url: z.ZodOptional<z.ZodURL>;
|
|
290
417
|
userAgent: z.ZodOptional<z.ZodString>;
|
|
291
|
-
accountId: z.ZodString;
|
|
292
418
|
actionTimeout: z.ZodOptional<z.ZodNumber>;
|
|
293
419
|
addScriptTag: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
294
420
|
content: z.ZodOptional<z.ZodString>;
|
|
@@ -410,6 +536,7 @@ export declare const CLOUDFLARE_BROWSER_ACCESSIBILITY_INPUT_SCHEMA: z.ZodObject<
|
|
|
410
536
|
visible: z.ZodOptional<z.ZodLiteral<true>>;
|
|
411
537
|
}, z.core.$strip>>;
|
|
412
538
|
waitForTimeout: z.ZodOptional<z.ZodNumber>;
|
|
539
|
+
accountId: z.ZodString;
|
|
413
540
|
interestingOnly: z.ZodOptional<z.ZodBoolean>;
|
|
414
541
|
root: z.ZodOptional<z.ZodString>;
|
|
415
542
|
}, z.core.$strip>;
|
|
@@ -417,7 +544,6 @@ export declare const CLOUDFLARE_BROWSER_LINKS_INPUT_SCHEMA: z.ZodObject<{
|
|
|
417
544
|
html: z.ZodOptional<z.ZodString>;
|
|
418
545
|
url: z.ZodOptional<z.ZodURL>;
|
|
419
546
|
userAgent: z.ZodOptional<z.ZodString>;
|
|
420
|
-
accountId: z.ZodString;
|
|
421
547
|
actionTimeout: z.ZodOptional<z.ZodNumber>;
|
|
422
548
|
addScriptTag: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
423
549
|
content: z.ZodOptional<z.ZodString>;
|
|
@@ -539,6 +665,7 @@ export declare const CLOUDFLARE_BROWSER_LINKS_INPUT_SCHEMA: z.ZodObject<{
|
|
|
539
665
|
visible: z.ZodOptional<z.ZodLiteral<true>>;
|
|
540
666
|
}, z.core.$strip>>;
|
|
541
667
|
waitForTimeout: z.ZodOptional<z.ZodNumber>;
|
|
668
|
+
accountId: z.ZodString;
|
|
542
669
|
excludeExternalLinks: z.ZodOptional<z.ZodBoolean>;
|
|
543
670
|
visibleLinksOnly: z.ZodOptional<z.ZodBoolean>;
|
|
544
671
|
}, z.core.$strip>;
|
|
@@ -546,7 +673,6 @@ export declare const CLOUDFLARE_BROWSER_SCRAPE_INPUT_SCHEMA: z.ZodObject<{
|
|
|
546
673
|
html: z.ZodOptional<z.ZodString>;
|
|
547
674
|
url: z.ZodOptional<z.ZodURL>;
|
|
548
675
|
userAgent: z.ZodOptional<z.ZodString>;
|
|
549
|
-
accountId: z.ZodString;
|
|
550
676
|
actionTimeout: z.ZodOptional<z.ZodNumber>;
|
|
551
677
|
addScriptTag: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
552
678
|
content: z.ZodOptional<z.ZodString>;
|
|
@@ -668,6 +794,7 @@ export declare const CLOUDFLARE_BROWSER_SCRAPE_INPUT_SCHEMA: z.ZodObject<{
|
|
|
668
794
|
visible: z.ZodOptional<z.ZodLiteral<true>>;
|
|
669
795
|
}, z.core.$strip>>;
|
|
670
796
|
waitForTimeout: z.ZodOptional<z.ZodNumber>;
|
|
797
|
+
accountId: z.ZodString;
|
|
671
798
|
elements: z.ZodArray<z.ZodObject<{
|
|
672
799
|
selector: z.ZodString;
|
|
673
800
|
}, z.core.$strip>>;
|
|
@@ -676,7 +803,6 @@ export declare const CLOUDFLARE_BROWSER_SCREENSHOT_INPUT_SCHEMA: z.ZodObject<{
|
|
|
676
803
|
html: z.ZodOptional<z.ZodString>;
|
|
677
804
|
url: z.ZodOptional<z.ZodURL>;
|
|
678
805
|
userAgent: z.ZodOptional<z.ZodString>;
|
|
679
|
-
accountId: z.ZodString;
|
|
680
806
|
actionTimeout: z.ZodOptional<z.ZodNumber>;
|
|
681
807
|
addScriptTag: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
682
808
|
content: z.ZodOptional<z.ZodString>;
|
|
@@ -798,6 +924,7 @@ export declare const CLOUDFLARE_BROWSER_SCREENSHOT_INPUT_SCHEMA: z.ZodObject<{
|
|
|
798
924
|
visible: z.ZodOptional<z.ZodLiteral<true>>;
|
|
799
925
|
}, z.core.$strip>>;
|
|
800
926
|
waitForTimeout: z.ZodOptional<z.ZodNumber>;
|
|
927
|
+
accountId: z.ZodString;
|
|
801
928
|
screenshotOptions: z.ZodOptional<z.ZodObject<{
|
|
802
929
|
captureBeyondViewport: z.ZodOptional<z.ZodBoolean>;
|
|
803
930
|
clip: z.ZodOptional<z.ZodObject<{
|
|
@@ -825,7 +952,6 @@ export declare const CLOUDFLARE_BROWSER_PDF_INPUT_SCHEMA: z.ZodObject<{
|
|
|
825
952
|
html: z.ZodOptional<z.ZodString>;
|
|
826
953
|
url: z.ZodOptional<z.ZodURL>;
|
|
827
954
|
userAgent: z.ZodOptional<z.ZodString>;
|
|
828
|
-
accountId: z.ZodString;
|
|
829
955
|
actionTimeout: z.ZodOptional<z.ZodNumber>;
|
|
830
956
|
addScriptTag: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
831
957
|
content: z.ZodOptional<z.ZodString>;
|
|
@@ -947,6 +1073,7 @@ export declare const CLOUDFLARE_BROWSER_PDF_INPUT_SCHEMA: z.ZodObject<{
|
|
|
947
1073
|
visible: z.ZodOptional<z.ZodLiteral<true>>;
|
|
948
1074
|
}, z.core.$strip>>;
|
|
949
1075
|
waitForTimeout: z.ZodOptional<z.ZodNumber>;
|
|
1076
|
+
accountId: z.ZodString;
|
|
950
1077
|
pdfOptions: z.ZodOptional<z.ZodObject<{
|
|
951
1078
|
displayHeaderFooter: z.ZodOptional<z.ZodBoolean>;
|
|
952
1079
|
footerTemplate: z.ZodOptional<z.ZodString>;
|
|
@@ -987,7 +1114,6 @@ export declare const CLOUDFLARE_BROWSER_SNAPSHOT_INPUT_SCHEMA: z.ZodObject<{
|
|
|
987
1114
|
html: z.ZodOptional<z.ZodString>;
|
|
988
1115
|
url: z.ZodOptional<z.ZodURL>;
|
|
989
1116
|
userAgent: z.ZodOptional<z.ZodString>;
|
|
990
|
-
accountId: z.ZodString;
|
|
991
1117
|
actionTimeout: z.ZodOptional<z.ZodNumber>;
|
|
992
1118
|
addScriptTag: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
993
1119
|
content: z.ZodOptional<z.ZodString>;
|
|
@@ -1109,6 +1235,7 @@ export declare const CLOUDFLARE_BROWSER_SNAPSHOT_INPUT_SCHEMA: z.ZodObject<{
|
|
|
1109
1235
|
visible: z.ZodOptional<z.ZodLiteral<true>>;
|
|
1110
1236
|
}, z.core.$strip>>;
|
|
1111
1237
|
waitForTimeout: z.ZodOptional<z.ZodNumber>;
|
|
1238
|
+
accountId: z.ZodString;
|
|
1112
1239
|
formats: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
1113
1240
|
content: "content";
|
|
1114
1241
|
screenshot: "screenshot";
|
|
@@ -1140,7 +1267,6 @@ export declare const CLOUDFLARE_BROWSER_JSON_INPUT_SCHEMA: z.ZodObject<{
|
|
|
1140
1267
|
html: z.ZodOptional<z.ZodString>;
|
|
1141
1268
|
url: z.ZodOptional<z.ZodURL>;
|
|
1142
1269
|
userAgent: z.ZodOptional<z.ZodString>;
|
|
1143
|
-
accountId: z.ZodString;
|
|
1144
1270
|
actionTimeout: z.ZodOptional<z.ZodNumber>;
|
|
1145
1271
|
addScriptTag: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1146
1272
|
content: z.ZodOptional<z.ZodString>;
|
|
@@ -1262,6 +1388,7 @@ export declare const CLOUDFLARE_BROWSER_JSON_INPUT_SCHEMA: z.ZodObject<{
|
|
|
1262
1388
|
visible: z.ZodOptional<z.ZodLiteral<true>>;
|
|
1263
1389
|
}, z.core.$strip>>;
|
|
1264
1390
|
waitForTimeout: z.ZodOptional<z.ZodNumber>;
|
|
1391
|
+
accountId: z.ZodString;
|
|
1265
1392
|
customAi: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1266
1393
|
authorization: z.ZodOptional<z.ZodString>;
|
|
1267
1394
|
model: z.ZodString;
|
|
@@ -1336,7 +1463,6 @@ export declare const CLOUDFLARE_BROWSER_CREATE_CRAWL_INPUT_SCHEMA: z.ZodObject<{
|
|
|
1336
1463
|
links: "links";
|
|
1337
1464
|
}>>;
|
|
1338
1465
|
url: z.ZodURL;
|
|
1339
|
-
accountId: z.ZodString;
|
|
1340
1466
|
actionTimeout: z.ZodOptional<z.ZodNumber>;
|
|
1341
1467
|
addScriptTag: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1342
1468
|
content: z.ZodOptional<z.ZodString>;
|
|
@@ -1458,6 +1584,7 @@ export declare const CLOUDFLARE_BROWSER_CREATE_CRAWL_INPUT_SCHEMA: z.ZodObject<{
|
|
|
1458
1584
|
visible: z.ZodOptional<z.ZodLiteral<true>>;
|
|
1459
1585
|
}, z.core.$strip>>;
|
|
1460
1586
|
waitForTimeout: z.ZodOptional<z.ZodNumber>;
|
|
1587
|
+
accountId: z.ZodString;
|
|
1461
1588
|
}, z.core.$strip>;
|
|
1462
1589
|
export declare const CLOUDFLARE_BROWSER_GET_CRAWL_INPUT_SCHEMA: z.ZodObject<{
|
|
1463
1590
|
accountId: z.ZodString;
|
|
@@ -158,7 +158,6 @@ const JSON_EXTRACTION_OPTIONS = {
|
|
|
158
158
|
.optional(),
|
|
159
159
|
};
|
|
160
160
|
const COMMON_RENDERING_FIELDS = {
|
|
161
|
-
accountId: z.string().trim().min(1),
|
|
162
161
|
actionTimeout: z.number().min(0).max(120_000).optional(),
|
|
163
162
|
addScriptTag: SCRIPT_TAG_SCHEMA.array().optional(),
|
|
164
163
|
addStyleTag: STYLE_TAG_SCHEMA.array().optional(),
|
|
@@ -218,6 +217,8 @@ export const CLOUDFLARE_ACCESSIBILITY_NODE_SCHEMA = z.lazy(() => z.object({
|
|
|
218
217
|
}));
|
|
219
218
|
export const CLOUDFLARE_BROWSER_CONTENT_INPUT_SCHEMA = browserRenderingInput({});
|
|
220
219
|
export const CLOUDFLARE_BROWSER_MARKDOWN_INPUT_SCHEMA = browserRenderingInput({});
|
|
220
|
+
/** Browser Run Markdown request without a customer Cloudflare account ID. */
|
|
221
|
+
export const CLOUDFLARE_BROWSER_MARKDOWN_REQUEST_SCHEMA = browserRenderingRequestInput({});
|
|
221
222
|
export const CLOUDFLARE_BROWSER_ACCESSIBILITY_INPUT_SCHEMA = browserRenderingInput({
|
|
222
223
|
interestingOnly: z.boolean().optional(),
|
|
223
224
|
root: z.string().optional(),
|
|
@@ -328,6 +329,7 @@ const CRAWL_FIELDS = {
|
|
|
328
329
|
};
|
|
329
330
|
export const CLOUDFLARE_BROWSER_CREATE_CRAWL_INPUT_SCHEMA = z
|
|
330
331
|
.object({
|
|
332
|
+
accountId: z.string().trim().min(1),
|
|
331
333
|
...COMMON_RENDERING_FIELDS,
|
|
332
334
|
...CRAWL_FIELDS,
|
|
333
335
|
render: z.boolean().prefault(true),
|
|
@@ -404,6 +406,17 @@ export const CLOUDFLARE_BROWSER_CANCEL_CRAWL_RESULT_SCHEMA = z.object({
|
|
|
404
406
|
* @param fields - Endpoint-specific input fields.
|
|
405
407
|
*/
|
|
406
408
|
function browserRenderingInput(fields) {
|
|
409
|
+
return browserRenderingRequestInput({
|
|
410
|
+
accountId: z.string().trim().min(1),
|
|
411
|
+
...fields,
|
|
412
|
+
});
|
|
413
|
+
}
|
|
414
|
+
/**
|
|
415
|
+
* Builds a Browser Run input schema for a caller that supplies the account.
|
|
416
|
+
*
|
|
417
|
+
* @param fields - Endpoint-specific input fields.
|
|
418
|
+
*/
|
|
419
|
+
function browserRenderingRequestInput(fields) {
|
|
407
420
|
return z
|
|
408
421
|
.object({ ...QUICK_ACTION_RENDERING_FIELDS, ...SOURCE_FIELDS, ...fields })
|
|
409
422
|
.refine(hasExactlyOnePageSource, {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@automate.ax/integration-contracts",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.156.0",
|
|
4
4
|
"description": "Shared integration payload contracts and provider primitives for Automate.ax.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -72,7 +72,7 @@
|
|
|
72
72
|
},
|
|
73
73
|
"dependencies": {
|
|
74
74
|
"@anthropic-ai/sdk": "0.123.0",
|
|
75
|
-
"@automate.ax/codec": "0.
|
|
75
|
+
"@automate.ax/codec": "0.156.0",
|
|
76
76
|
"@cfworker/json-schema": "^4.1.1",
|
|
77
77
|
"@googleapis/calendar": "^16.0.0",
|
|
78
78
|
"@googleapis/forms": "^6.0.1",
|
|
@@ -160,7 +160,6 @@ const JSON_EXTRACTION_OPTIONS = {
|
|
|
160
160
|
.optional(),
|
|
161
161
|
}
|
|
162
162
|
const COMMON_RENDERING_FIELDS = {
|
|
163
|
-
accountId: z.string().trim().min(1),
|
|
164
163
|
actionTimeout: z.number().min(0).max(120_000).optional(),
|
|
165
164
|
addScriptTag: SCRIPT_TAG_SCHEMA.array().optional(),
|
|
166
165
|
addStyleTag: STYLE_TAG_SCHEMA.array().optional(),
|
|
@@ -257,6 +256,10 @@ export const CLOUDFLARE_BROWSER_CONTENT_INPUT_SCHEMA = browserRenderingInput({})
|
|
|
257
256
|
export const CLOUDFLARE_BROWSER_MARKDOWN_INPUT_SCHEMA = browserRenderingInput(
|
|
258
257
|
{},
|
|
259
258
|
)
|
|
259
|
+
|
|
260
|
+
/** Browser Run Markdown request without a customer Cloudflare account ID. */
|
|
261
|
+
export const CLOUDFLARE_BROWSER_MARKDOWN_REQUEST_SCHEMA =
|
|
262
|
+
browserRenderingRequestInput({})
|
|
260
263
|
export const CLOUDFLARE_BROWSER_ACCESSIBILITY_INPUT_SCHEMA =
|
|
261
264
|
browserRenderingInput({
|
|
262
265
|
interestingOnly: z.boolean().optional(),
|
|
@@ -374,6 +377,7 @@ const CRAWL_FIELDS = {
|
|
|
374
377
|
}
|
|
375
378
|
export const CLOUDFLARE_BROWSER_CREATE_CRAWL_INPUT_SCHEMA = z
|
|
376
379
|
.object({
|
|
380
|
+
accountId: z.string().trim().min(1),
|
|
377
381
|
...COMMON_RENDERING_FIELDS,
|
|
378
382
|
...CRAWL_FIELDS,
|
|
379
383
|
render: z.boolean().prefault(true),
|
|
@@ -453,6 +457,20 @@ export const CLOUDFLARE_BROWSER_CANCEL_CRAWL_RESULT_SCHEMA = z.object({
|
|
|
453
457
|
* @param fields - Endpoint-specific input fields.
|
|
454
458
|
*/
|
|
455
459
|
function browserRenderingInput<TFields extends z.ZodRawShape>(fields: TFields) {
|
|
460
|
+
return browserRenderingRequestInput({
|
|
461
|
+
accountId: z.string().trim().min(1),
|
|
462
|
+
...fields,
|
|
463
|
+
})
|
|
464
|
+
}
|
|
465
|
+
|
|
466
|
+
/**
|
|
467
|
+
* Builds a Browser Run input schema for a caller that supplies the account.
|
|
468
|
+
*
|
|
469
|
+
* @param fields - Endpoint-specific input fields.
|
|
470
|
+
*/
|
|
471
|
+
function browserRenderingRequestInput<TFields extends z.ZodRawShape>(
|
|
472
|
+
fields: TFields,
|
|
473
|
+
) {
|
|
456
474
|
return z
|
|
457
475
|
.object({ ...QUICK_ACTION_RENDERING_FIELDS, ...SOURCE_FIELDS, ...fields })
|
|
458
476
|
.refine(hasExactlyOnePageSource, {
|