@automate.ax/integration-contracts 0.142.0 → 0.143.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.
@@ -296,7 +296,35 @@ export declare const CLICKUP_GOAL_SCHEMA: z.ZodObject<{
296
296
  percentCompleted: z.ZodOptional<z.ZodNumber>;
297
297
  private: z.ZodOptional<z.ZodBoolean>;
298
298
  teamId: z.ZodOptional<z.ZodString>;
299
- keyResults: z.ZodPrefault<z.ZodArray<z.ZodString>>;
299
+ keyResults: z.ZodPrefault<z.ZodArray<z.ZodObject<{
300
+ completed: z.ZodOptional<z.ZodBoolean>;
301
+ creator: z.ZodOptional<z.ZodNumber>;
302
+ current: z.ZodOptional<z.ZodNumber>;
303
+ dateCreated: z.ZodOptional<z.ZodString>;
304
+ goalId: z.ZodOptional<z.ZodString>;
305
+ goalPrettyId: z.ZodOptional<z.ZodString>;
306
+ id: z.ZodString;
307
+ lastAction: z.ZodOptional<z.ZodJSONSchema>;
308
+ name: z.ZodString;
309
+ owners: z.ZodPrefault<z.ZodArray<z.ZodObject<{
310
+ color: z.ZodOptional<z.ZodNullable<z.ZodString>>;
311
+ email: z.ZodOptional<z.ZodEmail>;
312
+ id: z.ZodNumber;
313
+ initials: z.ZodOptional<z.ZodString>;
314
+ profilePicture: z.ZodOptional<z.ZodNullable<z.ZodURL>>;
315
+ role: z.ZodOptional<z.ZodNumber>;
316
+ username: z.ZodString;
317
+ }, z.core.$strip>>>;
318
+ percentCompleted: z.ZodOptional<z.ZodNullable<z.ZodCoercedNumber<unknown>>>;
319
+ subcategoryIds: z.ZodPrefault<z.ZodArray<z.ZodString>>;
320
+ stepsCurrent: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
321
+ stepsEnd: z.ZodOptional<z.ZodNumber>;
322
+ stepsStart: z.ZodOptional<z.ZodNumber>;
323
+ taskIds: z.ZodPrefault<z.ZodArray<z.ZodString>>;
324
+ target: z.ZodOptional<z.ZodNumber>;
325
+ type: z.ZodOptional<z.ZodString>;
326
+ unit: z.ZodOptional<z.ZodString>;
327
+ }, z.core.$strip>>>;
300
328
  owners: z.ZodPrefault<z.ZodArray<z.ZodObject<{
301
329
  color: z.ZodOptional<z.ZodNullable<z.ZodString>>;
302
330
  email: z.ZodOptional<z.ZodEmail>;
@@ -204,7 +204,7 @@ export const CLICKUP_GOAL_LIST_ITEM_SCHEMA = CLICKUP_GOAL_BASE_SCHEMA.extend({
204
204
  });
205
205
  /** Goal shape returned by get, create, and update endpoints. */
206
206
  export const CLICKUP_GOAL_SCHEMA = CLICKUP_GOAL_BASE_SCHEMA.extend({
207
- keyResults: z.string().array().prefault([]),
207
+ keyResults: CLICKUP_KEY_RESULT_SCHEMA.array().prefault([]),
208
208
  owners: CLICKUP_USER_SCHEMA.array().prefault([]),
209
209
  });
210
210
  export const CLICKUP_HISTORY_ITEM_SCHEMA = z.object({
@@ -714,6 +714,9 @@ export declare const CLOSEBOT_LIBRARY_FILE_SCHEMA: z.ZodObject<{
714
714
  uri: z.ZodOptional<z.ZodNullable<z.ZodString>>;
715
715
  uses: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
716
716
  }, z.core.$strip>;
717
+ export declare const CLOSEBOT_LIBRARY_FILE_CREATED_SCHEMA: z.ZodObject<{
718
+ id: z.ZodString;
719
+ }, z.core.$strip>;
717
720
  export declare const CLOSEBOT_LIBRARY_FILE_PREVIEW_SCHEMA: z.ZodObject<{
718
721
  chunks: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
719
722
  chunkIndex: z.ZodOptional<z.ZodNumber>;
@@ -733,6 +736,11 @@ export declare const CLOSEBOT_WEB_SCRAPE_PAGE_SCHEMA: z.ZodObject<{
733
736
  enabled: z.ZodOptional<z.ZodBoolean>;
734
737
  url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
735
738
  }, z.core.$strip>;
739
+ export declare const CLOSEBOT_WEB_SCRAPE_CREATED_SCHEMA: z.ZodObject<{
740
+ id: z.ZodString;
741
+ message: z.ZodString;
742
+ totalSize: z.ZodNumber;
743
+ }, z.core.$strip>;
736
744
  export declare const CLOSEBOT_BOT_VARIABLE_SCHEMA: z.ZodObject<{
737
745
  id: z.ZodNullable<z.ZodString>;
738
746
  name: z.ZodNullable<z.ZodString>;
@@ -403,6 +403,9 @@ export const CLOSEBOT_LIBRARY_FILE_SCHEMA = z.object({
403
403
  uri: OPTIONAL_STRING,
404
404
  uses: z.number().int().nullable().optional(),
405
405
  });
406
+ export const CLOSEBOT_LIBRARY_FILE_CREATED_SCHEMA = z.object({
407
+ id: CLOSEBOT_ID_SCHEMA,
408
+ });
406
409
  export const CLOSEBOT_LIBRARY_FILE_PREVIEW_SCHEMA = z.object({
407
410
  chunks: z
408
411
  .object({ chunkIndex: OPTIONAL_INTEGER, content: OPTIONAL_STRING })
@@ -423,6 +426,11 @@ export const CLOSEBOT_WEB_SCRAPE_PAGE_SCHEMA = z.object({
423
426
  enabled: OPTIONAL_BOOLEAN,
424
427
  url: OPTIONAL_STRING,
425
428
  });
429
+ export const CLOSEBOT_WEB_SCRAPE_CREATED_SCHEMA = z.object({
430
+ id: CLOSEBOT_ID_SCHEMA,
431
+ message: z.string(),
432
+ totalSize: z.number().int().nonnegative(),
433
+ });
426
434
  export const CLOSEBOT_BOT_VARIABLE_SCHEMA = z.object({
427
435
  id: z.string().nullable(),
428
436
  name: z.string().nullable(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@automate.ax/integration-contracts",
3
- "version": "0.142.0",
3
+ "version": "0.143.0",
4
4
  "description": "Shared integration payload contracts and provider primitives for Automate.ax.",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -65,7 +65,7 @@
65
65
  },
66
66
  "dependencies": {
67
67
  "@anthropic-ai/sdk": "0.123.0",
68
- "@automate.ax/codec": "0.142.0",
68
+ "@automate.ax/codec": "0.143.0",
69
69
  "@cfworker/json-schema": "^4.1.1",
70
70
  "@googleapis/calendar": "^16.0.0",
71
71
  "@googleapis/forms": "^6.0.1",
@@ -235,7 +235,7 @@ export const CLICKUP_GOAL_LIST_ITEM_SCHEMA = CLICKUP_GOAL_BASE_SCHEMA.extend({
235
235
 
236
236
  /** Goal shape returned by get, create, and update endpoints. */
237
237
  export const CLICKUP_GOAL_SCHEMA = CLICKUP_GOAL_BASE_SCHEMA.extend({
238
- keyResults: z.string().array().prefault([]),
238
+ keyResults: CLICKUP_KEY_RESULT_SCHEMA.array().prefault([]),
239
239
  owners: CLICKUP_USER_SCHEMA.array().prefault([]),
240
240
  })
241
241
 
@@ -450,6 +450,10 @@ export const CLOSEBOT_LIBRARY_FILE_SCHEMA = z.object({
450
450
  uses: z.number().int().nullable().optional(),
451
451
  })
452
452
 
453
+ export const CLOSEBOT_LIBRARY_FILE_CREATED_SCHEMA = z.object({
454
+ id: CLOSEBOT_ID_SCHEMA,
455
+ })
456
+
453
457
  export const CLOSEBOT_LIBRARY_FILE_PREVIEW_SCHEMA = z.object({
454
458
  chunks: z
455
459
  .object({ chunkIndex: OPTIONAL_INTEGER, content: OPTIONAL_STRING })
@@ -472,6 +476,12 @@ export const CLOSEBOT_WEB_SCRAPE_PAGE_SCHEMA = z.object({
472
476
  url: OPTIONAL_STRING,
473
477
  })
474
478
 
479
+ export const CLOSEBOT_WEB_SCRAPE_CREATED_SCHEMA = z.object({
480
+ id: CLOSEBOT_ID_SCHEMA,
481
+ message: z.string(),
482
+ totalSize: z.number().int().nonnegative(),
483
+ })
484
+
475
485
  export const CLOSEBOT_BOT_VARIABLE_SCHEMA = z.object({
476
486
  id: z.string().nullable(),
477
487
  name: z.string().nullable(),