@automate.ax/integration-contracts 0.153.1 → 0.154.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.
@@ -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<{
@@ -286,6 +286,12 @@ const CRAWL_STATUS_SCHEMA = z.enum([
286
286
  "skipped",
287
287
  "cancelled",
288
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();
289
295
  const CRAWL_OPTIONS_SCHEMA = z.object({
290
296
  excludePatterns: z.string().min(1).array().optional(),
291
297
  includeExternalLinks: z.boolean().optional(),
@@ -365,7 +371,7 @@ export const CLOUDFLARE_BROWSER_CANCEL_CRAWL_INPUT_SCHEMA = z.object({
365
371
  });
366
372
  export const CLOUDFLARE_BROWSER_CRAWL_RESULT_SCHEMA = z.object({
367
373
  browserSecondsUsed: z.number().nonnegative(),
368
- cursor: z.string().optional(),
374
+ cursor: CRAWL_CURSOR_RESULT_SCHEMA,
369
375
  finished: z.number().int().nonnegative(),
370
376
  id: z.string().min(1),
371
377
  records: z
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@automate.ax/integration-contracts",
3
- "version": "0.153.1",
3
+ "version": "0.154.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.153.1",
75
+ "@automate.ax/codec": "0.154.0",
76
76
  "@cfworker/json-schema": "^4.1.1",
77
77
  "@googleapis/calendar": "^16.0.0",
78
78
  "@googleapis/forms": "^6.0.1",
@@ -332,6 +332,12 @@ const CRAWL_STATUS_SCHEMA = z.enum([
332
332
  "skipped",
333
333
  "cancelled",
334
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()
335
341
  const CRAWL_OPTIONS_SCHEMA = z.object({
336
342
  excludePatterns: z.string().min(1).array().optional(),
337
343
  includeExternalLinks: z.boolean().optional(),
@@ -413,7 +419,7 @@ export const CLOUDFLARE_BROWSER_CANCEL_CRAWL_INPUT_SCHEMA = z.object({
413
419
  })
414
420
  export const CLOUDFLARE_BROWSER_CRAWL_RESULT_SCHEMA = z.object({
415
421
  browserSecondsUsed: z.number().nonnegative(),
416
- cursor: z.string().optional(),
422
+ cursor: CRAWL_CURSOR_RESULT_SCHEMA,
417
423
  finished: z.number().int().nonnegative(),
418
424
  id: z.string().min(1),
419
425
  records: z