@automate.ax/integration-contracts 0.153.0 → 0.153.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.
@@ -1273,7 +1273,7 @@ export declare const CLOUDFLARE_BROWSER_JSON_INPUT_SCHEMA: z.ZodObject<{
1273
1273
  }, z.core.$strip>>;
1274
1274
  }, z.core.$strip>;
1275
1275
  export declare const CLOUDFLARE_BROWSER_SCRAPE_RESULT_SCHEMA: z.ZodObject<{
1276
- results: z.ZodObject<{
1276
+ results: z.ZodArray<z.ZodObject<{
1277
1277
  attributes: z.ZodArray<z.ZodObject<{
1278
1278
  name: z.ZodString;
1279
1279
  value: z.ZodString;
@@ -1284,7 +1284,7 @@ export declare const CLOUDFLARE_BROWSER_SCRAPE_RESULT_SCHEMA: z.ZodObject<{
1284
1284
  text: z.ZodString;
1285
1285
  top: z.ZodNumber;
1286
1286
  width: z.ZodNumber;
1287
- }, z.core.$strip>;
1287
+ }, z.core.$strip>>;
1288
1288
  selector: z.ZodString;
1289
1289
  }, z.core.$strip>;
1290
1290
  export declare const CLOUDFLARE_BROWSER_SNAPSHOT_RESULT_SCHEMA: z.ZodObject<{
@@ -1480,7 +1480,7 @@ export declare const CLOUDFLARE_BROWSER_CANCEL_CRAWL_INPUT_SCHEMA: z.ZodObject<{
1480
1480
  }, z.core.$strip>;
1481
1481
  export declare const CLOUDFLARE_BROWSER_CRAWL_RESULT_SCHEMA: z.ZodObject<{
1482
1482
  browserSecondsUsed: z.ZodNumber;
1483
- cursor: z.ZodOptional<z.ZodString>;
1483
+ cursor: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>]>>;
1484
1484
  finished: z.ZodNumber;
1485
1485
  id: z.ZodString;
1486
1486
  records: z.ZodArray<z.ZodObject<{
@@ -259,7 +259,8 @@ export const CLOUDFLARE_BROWSER_JSON_INPUT_SCHEMA = browserRenderingInput(JSON_E
259
259
  });
260
260
  });
261
261
  export const CLOUDFLARE_BROWSER_SCRAPE_RESULT_SCHEMA = z.object({
262
- results: z.object({
262
+ results: z
263
+ .object({
263
264
  attributes: z.object({ name: z.string(), value: z.string() }).array(),
264
265
  height: z.number(),
265
266
  html: z.string(),
@@ -267,7 +268,8 @@ export const CLOUDFLARE_BROWSER_SCRAPE_RESULT_SCHEMA = z.object({
267
268
  text: z.string(),
268
269
  top: z.number(),
269
270
  width: z.number(),
270
- }),
271
+ })
272
+ .array(),
271
273
  selector: z.string(),
272
274
  });
273
275
  export const CLOUDFLARE_BROWSER_SNAPSHOT_RESULT_SCHEMA = z.object({
@@ -284,6 +286,12 @@ const CRAWL_STATUS_SCHEMA = z.enum([
284
286
  "skipped",
285
287
  "cancelled",
286
288
  ]);
289
+ const CRAWL_CURSOR_RESULT_SCHEMA = z
290
+ .union([
291
+ z.number().int().nonnegative(),
292
+ z.string().regex(/^\d+$/).transform(Number),
293
+ ])
294
+ .optional();
287
295
  const CRAWL_OPTIONS_SCHEMA = z.object({
288
296
  excludePatterns: z.string().min(1).array().optional(),
289
297
  includeExternalLinks: z.boolean().optional(),
@@ -363,7 +371,7 @@ export const CLOUDFLARE_BROWSER_CANCEL_CRAWL_INPUT_SCHEMA = z.object({
363
371
  });
364
372
  export const CLOUDFLARE_BROWSER_CRAWL_RESULT_SCHEMA = z.object({
365
373
  browserSecondsUsed: z.number().nonnegative(),
366
- cursor: z.string().optional(),
374
+ cursor: CRAWL_CURSOR_RESULT_SCHEMA,
367
375
  finished: z.number().int().nonnegative(),
368
376
  id: z.string().min(1),
369
377
  records: z
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@automate.ax/integration-contracts",
3
- "version": "0.153.0",
3
+ "version": "0.153.2",
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.153.0",
75
+ "@automate.ax/codec": "0.153.2",
76
76
  "@cfworker/json-schema": "^4.1.1",
77
77
  "@googleapis/calendar": "^16.0.0",
78
78
  "@googleapis/forms": "^6.0.1",
@@ -304,15 +304,17 @@ export const CLOUDFLARE_BROWSER_JSON_INPUT_SCHEMA = browserRenderingInput(
304
304
  })
305
305
 
306
306
  export const CLOUDFLARE_BROWSER_SCRAPE_RESULT_SCHEMA = z.object({
307
- results: z.object({
308
- attributes: z.object({ name: z.string(), value: z.string() }).array(),
309
- height: z.number(),
310
- html: z.string(),
311
- left: z.number(),
312
- text: z.string(),
313
- top: z.number(),
314
- width: z.number(),
315
- }),
307
+ results: z
308
+ .object({
309
+ attributes: z.object({ name: z.string(), value: z.string() }).array(),
310
+ height: z.number(),
311
+ html: z.string(),
312
+ left: z.number(),
313
+ text: z.string(),
314
+ top: z.number(),
315
+ width: z.number(),
316
+ })
317
+ .array(),
316
318
  selector: z.string(),
317
319
  })
318
320
  export const CLOUDFLARE_BROWSER_SNAPSHOT_RESULT_SCHEMA = z.object({
@@ -330,6 +332,12 @@ const CRAWL_STATUS_SCHEMA = z.enum([
330
332
  "skipped",
331
333
  "cancelled",
332
334
  ])
335
+ const CRAWL_CURSOR_RESULT_SCHEMA = z
336
+ .union([
337
+ z.number().int().nonnegative(),
338
+ z.string().regex(/^\d+$/).transform(Number),
339
+ ])
340
+ .optional()
333
341
  const CRAWL_OPTIONS_SCHEMA = z.object({
334
342
  excludePatterns: z.string().min(1).array().optional(),
335
343
  includeExternalLinks: z.boolean().optional(),
@@ -411,7 +419,7 @@ export const CLOUDFLARE_BROWSER_CANCEL_CRAWL_INPUT_SCHEMA = z.object({
411
419
  })
412
420
  export const CLOUDFLARE_BROWSER_CRAWL_RESULT_SCHEMA = z.object({
413
421
  browserSecondsUsed: z.number().nonnegative(),
414
- cursor: z.string().optional(),
422
+ cursor: CRAWL_CURSOR_RESULT_SCHEMA,
415
423
  finished: z.number().int().nonnegative(),
416
424
  id: z.string().min(1),
417
425
  records: z