@automate.ax/integration-contracts 0.144.2 → 0.145.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.
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,27 @@
1
+ import type { Encodable } from "@automate.ax/codec";
2
+ import * as z from "zod";
3
+ import type { components } from "./openapi-types.generated";
4
+ type OpenApiSchemas = components["schemas"];
5
+ export type CalcomSchemaName = keyof OpenApiSchemas;
6
+ type CalcomEncodable<TValue> = unknown extends TValue ? Encodable : TValue extends null | undefined | boolean | number | string ? TValue : TValue extends readonly (infer TItem)[] ? CalcomEncodable<TItem>[] : TValue extends object ? keyof TValue extends never ? Record<string, Encodable> : {
7
+ [TKey in keyof TValue]: CalcomEncodable<TValue[TKey]>;
8
+ } : never;
9
+ /** Public JSON-safe value for one generated Cal.com component schema. */
10
+ export type CalcomSchemaValue<TName extends CalcomSchemaName> = CalcomEncodable<OpenApiSchemas[TName]>;
11
+ /** Data carried by one successful Cal.com response envelope. */
12
+ export type CalcomResponseData<TName extends CalcomSchemaName> = CalcomSchemaValue<TName> extends {
13
+ data: infer TData;
14
+ } ? TData : never;
15
+ /**
16
+ * Validates one value against a frozen Cal.com OpenAPI component schema.
17
+ *
18
+ * @param name OpenAPI component schema name.
19
+ */
20
+ export declare function calcomSchema<TName extends CalcomSchemaName>(name: TName): z.ZodType<CalcomSchemaValue<TName>>;
21
+ /**
22
+ * Validates data after it has been removed from a Cal.com success envelope.
23
+ *
24
+ * @param name OpenAPI success-envelope component schema name.
25
+ */
26
+ export declare function calcomResponseDataSchema<TName extends CalcomSchemaName>(name: TName): z.ZodType<CalcomResponseData<TName>>;
27
+ export {};
@@ -0,0 +1,32 @@
1
+ /* oxlint-disable typescript/no-unsafe-type-assertion -- Generated schema names index a frozen external contract. */
2
+ import { Validator } from "@cfworker/json-schema";
3
+ import * as z from "zod";
4
+ import schemaData from "./openapi-schemas.generated.json" with { type: "json" };
5
+ const VALIDATOR = new Validator({
6
+ $defs: schemaData.definitions,
7
+ $schema: "https://json-schema.org/draft/2020-12/schema",
8
+ additionalProperties: false,
9
+ maxProperties: 1,
10
+ minProperties: 1,
11
+ properties: Object.fromEntries(Object.keys(schemaData.definitions).map((name) => [
12
+ name,
13
+ { $ref: `#/$defs/${name}` },
14
+ ])),
15
+ type: "object",
16
+ }, "2020-12");
17
+ /**
18
+ * Validates one value against a frozen Cal.com OpenAPI component schema.
19
+ *
20
+ * @param name OpenAPI component schema name.
21
+ */
22
+ export function calcomSchema(name) {
23
+ return z.custom((value) => VALIDATOR.validate({ [name]: value }).valid);
24
+ }
25
+ /**
26
+ * Validates data after it has been removed from a Cal.com success envelope.
27
+ *
28
+ * @param name OpenAPI success-envelope component schema name.
29
+ */
30
+ export function calcomResponseDataSchema(name) {
31
+ return z.custom((data) => VALIDATOR.validate({ [name]: { data, status: "success" } }).valid);
32
+ }
@@ -1194,8 +1194,8 @@ export declare const closeTriggerContracts: {
1194
1194
  valueCurrency: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
1195
1195
  valueFormatted: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
1196
1196
  valuePeriod: z.ZodOptional<z.ZodEnum<{
1197
- annual: "annual";
1198
1197
  monthly: "monthly";
1198
+ annual: "annual";
1199
1199
  one_time: "one_time";
1200
1200
  }>>;
1201
1201
  }, z.core.$strip>;
@@ -1358,8 +1358,8 @@ export declare const closeTriggerContracts: {
1358
1358
  valueCurrency: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
1359
1359
  valueFormatted: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
1360
1360
  valuePeriod: z.ZodOptional<z.ZodEnum<{
1361
- annual: "annual";
1362
1361
  monthly: "monthly";
1362
+ annual: "annual";
1363
1363
  one_time: "one_time";
1364
1364
  }>>;
1365
1365
  }, z.core.$strip>;
@@ -1502,8 +1502,8 @@ export declare const closeTriggerContracts: {
1502
1502
  valueCurrency: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
1503
1503
  valueFormatted: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
1504
1504
  valuePeriod: z.ZodOptional<z.ZodEnum<{
1505
- annual: "annual";
1506
1505
  monthly: "monthly";
1506
+ annual: "annual";
1507
1507
  one_time: "one_time";
1508
1508
  }>>;
1509
1509
  }, z.core.$strip>;
@@ -1646,8 +1646,8 @@ export declare const closeTriggerContracts: {
1646
1646
  valueCurrency: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
1647
1647
  valueFormatted: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
1648
1648
  valuePeriod: z.ZodOptional<z.ZodEnum<{
1649
- annual: "annual";
1650
1649
  monthly: "monthly";
1650
+ annual: "annual";
1651
1651
  one_time: "one_time";
1652
1652
  }>>;
1653
1653
  }, z.core.$strip>;
@@ -2491,8 +2491,8 @@ export declare const closeTriggerContracts: {
2491
2491
  opportunityValueCurrency: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
2492
2492
  opportunityValueFormatted: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
2493
2493
  opportunityValuePeriod: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodEnum<{
2494
- annual: "annual";
2495
2494
  monthly: "monthly";
2495
+ annual: "annual";
2496
2496
  one_time: "one_time";
2497
2497
  }>>>>;
2498
2498
  type: z.ZodOptional<z.ZodLiteral<"opportunity_due">>;
@@ -2848,8 +2848,8 @@ export declare const closeTriggerContracts: {
2848
2848
  opportunityValueCurrency: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
2849
2849
  opportunityValueFormatted: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
2850
2850
  opportunityValuePeriod: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodEnum<{
2851
- annual: "annual";
2852
2851
  monthly: "monthly";
2852
+ annual: "annual";
2853
2853
  one_time: "one_time";
2854
2854
  }>>>>;
2855
2855
  type: z.ZodOptional<z.ZodLiteral<"opportunity_due">>;
@@ -3225,8 +3225,8 @@ export declare const closeTriggerContracts: {
3225
3225
  opportunityValueCurrency: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
3226
3226
  opportunityValueFormatted: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
3227
3227
  opportunityValuePeriod: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodEnum<{
3228
- annual: "annual";
3229
3228
  monthly: "monthly";
3229
+ annual: "annual";
3230
3230
  one_time: "one_time";
3231
3231
  }>>>>;
3232
3232
  type: z.ZodOptional<z.ZodLiteral<"opportunity_due">>;
@@ -277,8 +277,8 @@ export declare const CLOSE_OPPORTUNITY_SCHEMA: z.ZodObject<{
277
277
  valueCurrency: z.ZodOptional<z.ZodNullable<z.ZodString>>;
278
278
  valueFormatted: z.ZodOptional<z.ZodNullable<z.ZodString>>;
279
279
  valuePeriod: z.ZodEnum<{
280
- annual: "annual";
281
280
  monthly: "monthly";
281
+ annual: "annual";
282
282
  one_time: "one_time";
283
283
  }>;
284
284
  }, z.core.$strip>;
@@ -404,8 +404,8 @@ export declare const CLOSE_OPPORTUNITY_PAGE_SCHEMA: z.ZodObject<{
404
404
  valueCurrency: z.ZodOptional<z.ZodNullable<z.ZodString>>;
405
405
  valueFormatted: z.ZodOptional<z.ZodNullable<z.ZodString>>;
406
406
  valuePeriod: z.ZodEnum<{
407
- annual: "annual";
408
407
  monthly: "monthly";
408
+ annual: "annual";
409
409
  one_time: "one_time";
410
410
  }>;
411
411
  }, z.core.$strip>>;
@@ -647,8 +647,8 @@ export declare const CLOSE_TASK_SCHEMA: z.ZodDiscriminatedUnion<[z.ZodObject<{
647
647
  opportunityValueCurrency: z.ZodOptional<z.ZodNullable<z.ZodString>>;
648
648
  opportunityValueFormatted: z.ZodOptional<z.ZodNullable<z.ZodString>>;
649
649
  opportunityValuePeriod: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
650
- annual: "annual";
651
650
  monthly: "monthly";
651
+ annual: "annual";
652
652
  one_time: "one_time";
653
653
  }>>>;
654
654
  type: z.ZodLiteral<"opportunity_due">;
@@ -1687,8 +1687,8 @@ export declare const CLOSE_ACTIVITY_SCHEMA: z.ZodDiscriminatedUnion<[z.ZodObject
1687
1687
  opportunityValueCurrency: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1688
1688
  opportunityValueFormatted: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1689
1689
  opportunityValuePeriod: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
1690
- annual: "annual";
1691
1690
  monthly: "monthly";
1691
+ annual: "annual";
1692
1692
  one_time: "one_time";
1693
1693
  }>>>;
1694
1694
  type: z.ZodLiteral<"OpportunityStatusChange">;
@@ -17,10 +17,10 @@ export declare const GOOGLE_CALENDAR_EVENT_DELETED_SCHEMA: z.ZodObject<{
17
17
  optional: z.ZodOptional<z.ZodBoolean>;
18
18
  resource: z.ZodOptional<z.ZodBoolean>;
19
19
  responseStatus: z.ZodOptional<z.ZodEnum<{
20
+ accepted: "accepted";
20
21
  tentative: "tentative";
21
22
  needsAction: "needsAction";
22
23
  declined: "declined";
23
- accepted: "accepted";
24
24
  }>>;
25
25
  organizer: z.ZodBoolean;
26
26
  self: z.ZodBoolean;
@@ -142,10 +142,10 @@ export declare const GOOGLE_CALENDAR_EVENT_CHANGED_SCHEMA: z.ZodDiscriminatedUni
142
142
  optional: z.ZodOptional<z.ZodBoolean>;
143
143
  resource: z.ZodOptional<z.ZodBoolean>;
144
144
  responseStatus: z.ZodOptional<z.ZodEnum<{
145
+ accepted: "accepted";
145
146
  tentative: "tentative";
146
147
  needsAction: "needsAction";
147
148
  declined: "declined";
148
- accepted: "accepted";
149
149
  }>>;
150
150
  organizer: z.ZodBoolean;
151
151
  self: z.ZodBoolean;
@@ -264,10 +264,10 @@ export declare const GOOGLE_CALENDAR_EVENT_CHANGED_SCHEMA: z.ZodDiscriminatedUni
264
264
  optional: z.ZodOptional<z.ZodBoolean>;
265
265
  resource: z.ZodOptional<z.ZodBoolean>;
266
266
  responseStatus: z.ZodOptional<z.ZodEnum<{
267
+ accepted: "accepted";
267
268
  tentative: "tentative";
268
269
  needsAction: "needsAction";
269
270
  declined: "declined";
270
- accepted: "accepted";
271
271
  }>>;
272
272
  organizer: z.ZodBoolean;
273
273
  self: z.ZodBoolean;
@@ -386,10 +386,10 @@ export declare const GOOGLE_CALENDAR_EVENT_CHANGED_SCHEMA: z.ZodDiscriminatedUni
386
386
  optional: z.ZodOptional<z.ZodBoolean>;
387
387
  resource: z.ZodOptional<z.ZodBoolean>;
388
388
  responseStatus: z.ZodOptional<z.ZodEnum<{
389
+ accepted: "accepted";
389
390
  tentative: "tentative";
390
391
  needsAction: "needsAction";
391
392
  declined: "declined";
392
- accepted: "accepted";
393
393
  }>>;
394
394
  organizer: z.ZodBoolean;
395
395
  self: z.ZodBoolean;
@@ -29,10 +29,10 @@ export declare const googleCalendarTriggerContracts: {
29
29
  optional: z.ZodOptional<z.ZodBoolean>;
30
30
  resource: z.ZodOptional<z.ZodBoolean>;
31
31
  responseStatus: z.ZodOptional<z.ZodEnum<{
32
+ accepted: "accepted";
32
33
  tentative: "tentative";
33
34
  needsAction: "needsAction";
34
35
  declined: "declined";
35
- accepted: "accepted";
36
36
  }>>;
37
37
  organizer: z.ZodBoolean;
38
38
  self: z.ZodBoolean;
@@ -151,10 +151,10 @@ export declare const googleCalendarTriggerContracts: {
151
151
  optional: z.ZodOptional<z.ZodBoolean>;
152
152
  resource: z.ZodOptional<z.ZodBoolean>;
153
153
  responseStatus: z.ZodOptional<z.ZodEnum<{
154
+ accepted: "accepted";
154
155
  tentative: "tentative";
155
156
  needsAction: "needsAction";
156
157
  declined: "declined";
157
- accepted: "accepted";
158
158
  }>>;
159
159
  organizer: z.ZodBoolean;
160
160
  self: z.ZodBoolean;
@@ -273,10 +273,10 @@ export declare const googleCalendarTriggerContracts: {
273
273
  optional: z.ZodOptional<z.ZodBoolean>;
274
274
  resource: z.ZodOptional<z.ZodBoolean>;
275
275
  responseStatus: z.ZodOptional<z.ZodEnum<{
276
+ accepted: "accepted";
276
277
  tentative: "tentative";
277
278
  needsAction: "needsAction";
278
279
  declined: "declined";
279
- accepted: "accepted";
280
280
  }>>;
281
281
  organizer: z.ZodBoolean;
282
282
  self: z.ZodBoolean;
@@ -401,10 +401,10 @@ export declare const googleCalendarTriggerContracts: {
401
401
  optional: z.ZodOptional<z.ZodBoolean>;
402
402
  resource: z.ZodOptional<z.ZodBoolean>;
403
403
  responseStatus: z.ZodOptional<z.ZodEnum<{
404
+ accepted: "accepted";
404
405
  tentative: "tentative";
405
406
  needsAction: "needsAction";
406
407
  declined: "declined";
407
- accepted: "accepted";
408
408
  }>>;
409
409
  organizer: z.ZodBoolean;
410
410
  self: z.ZodBoolean;
@@ -528,10 +528,10 @@ export declare const googleCalendarTriggerContracts: {
528
528
  optional: z.ZodOptional<z.ZodBoolean>;
529
529
  resource: z.ZodOptional<z.ZodBoolean>;
530
530
  responseStatus: z.ZodOptional<z.ZodEnum<{
531
+ accepted: "accepted";
531
532
  tentative: "tentative";
532
533
  needsAction: "needsAction";
533
534
  declined: "declined";
534
- accepted: "accepted";
535
535
  }>>;
536
536
  organizer: z.ZodBoolean;
537
537
  self: z.ZodBoolean;
@@ -655,10 +655,10 @@ export declare const googleCalendarTriggerContracts: {
655
655
  optional: z.ZodOptional<z.ZodBoolean>;
656
656
  resource: z.ZodOptional<z.ZodBoolean>;
657
657
  responseStatus: z.ZodOptional<z.ZodEnum<{
658
+ accepted: "accepted";
658
659
  tentative: "tentative";
659
660
  needsAction: "needsAction";
660
661
  declined: "declined";
661
- accepted: "accepted";
662
662
  }>>;
663
663
  organizer: z.ZodBoolean;
664
664
  self: z.ZodBoolean;
@@ -37,10 +37,10 @@ export declare const EVENT_STATUS_SCHEMA: z.ZodEnum<{
37
37
  tentative: "tentative";
38
38
  }>;
39
39
  export declare const RESPONSE_STATUS_SCHEMA: z.ZodEnum<{
40
+ accepted: "accepted";
40
41
  tentative: "tentative";
41
42
  needsAction: "needsAction";
42
43
  declined: "declined";
43
- accepted: "accepted";
44
44
  }>;
45
45
  export declare const EVENT_TIME_SCHEMA: z.ZodObject<{
46
46
  date: z.ZodOptional<z.ZodISODate>;
@@ -68,10 +68,10 @@ export declare const EVENT_ATTENDEE_INPUT_SCHEMA: z.ZodObject<{
68
68
  optional: z.ZodOptional<z.ZodBoolean>;
69
69
  resource: z.ZodOptional<z.ZodBoolean>;
70
70
  responseStatus: z.ZodOptional<z.ZodEnum<{
71
+ accepted: "accepted";
71
72
  tentative: "tentative";
72
73
  needsAction: "needsAction";
73
74
  declined: "declined";
74
- accepted: "accepted";
75
75
  }>>;
76
76
  }, z.core.$strip>;
77
77
  export declare const EVENT_ATTENDEE_SCHEMA: z.ZodObject<{
@@ -82,10 +82,10 @@ export declare const EVENT_ATTENDEE_SCHEMA: z.ZodObject<{
82
82
  optional: z.ZodOptional<z.ZodBoolean>;
83
83
  resource: z.ZodOptional<z.ZodBoolean>;
84
84
  responseStatus: z.ZodOptional<z.ZodEnum<{
85
+ accepted: "accepted";
85
86
  tentative: "tentative";
86
87
  needsAction: "needsAction";
87
88
  declined: "declined";
88
- accepted: "accepted";
89
89
  }>>;
90
90
  organizer: z.ZodBoolean;
91
91
  self: z.ZodBoolean;
@@ -137,10 +137,10 @@ export declare const EVENT_DETAILS_INPUT_SCHEMA: z.ZodObject<{
137
137
  optional: z.ZodOptional<z.ZodBoolean>;
138
138
  resource: z.ZodOptional<z.ZodBoolean>;
139
139
  responseStatus: z.ZodOptional<z.ZodEnum<{
140
+ accepted: "accepted";
140
141
  tentative: "tentative";
141
142
  needsAction: "needsAction";
142
143
  declined: "declined";
143
- accepted: "accepted";
144
144
  }>>;
145
145
  }, z.core.$strip>>>;
146
146
  colorId: z.ZodOptional<z.ZodString>;
@@ -221,10 +221,10 @@ export declare const CALENDAR_EVENT_SCHEMA: z.ZodObject<{
221
221
  optional: z.ZodOptional<z.ZodBoolean>;
222
222
  resource: z.ZodOptional<z.ZodBoolean>;
223
223
  responseStatus: z.ZodOptional<z.ZodEnum<{
224
+ accepted: "accepted";
224
225
  tentative: "tentative";
225
226
  needsAction: "needsAction";
226
227
  declined: "declined";
227
- accepted: "accepted";
228
228
  }>>;
229
229
  organizer: z.ZodBoolean;
230
230
  self: z.ZodBoolean;
@@ -342,10 +342,10 @@ export declare const EVENT_PAGE_SCHEMA: z.ZodObject<{
342
342
  optional: z.ZodOptional<z.ZodBoolean>;
343
343
  resource: z.ZodOptional<z.ZodBoolean>;
344
344
  responseStatus: z.ZodOptional<z.ZodEnum<{
345
+ accepted: "accepted";
345
346
  tentative: "tentative";
346
347
  needsAction: "needsAction";
347
348
  declined: "declined";
348
- accepted: "accepted";
349
349
  }>>;
350
350
  organizer: z.ZodBoolean;
351
351
  self: z.ZodBoolean;
@@ -55,11 +55,11 @@ export declare const GOOGLE_FORMS_FORM_CHANGED_EVENT_SCHEMA: z.ZodObject<{
55
55
  date: "date";
56
56
  time: "time";
57
57
  duration: "duration";
58
+ checkbox: "checkbox";
58
59
  rating: "rating";
59
60
  shortText: "shortText";
60
61
  paragraph: "paragraph";
61
62
  multipleChoice: "multipleChoice";
62
- checkbox: "checkbox";
63
63
  dropdown: "dropdown";
64
64
  scale: "scale";
65
65
  fileUpload: "fileUpload";
@@ -40,7 +40,7 @@ export declare function normalizeForm(form: forms_v1.Schema$Form): {
40
40
  choices: string[];
41
41
  questionId: string;
42
42
  required: boolean;
43
- type: "unknown" | "date" | "time" | "duration" | "rating" | "shortText" | "paragraph" | "multipleChoice" | "checkbox" | "dropdown" | "scale" | "fileUpload" | "gridRow";
43
+ type: "unknown" | "date" | "time" | "duration" | "checkbox" | "rating" | "shortText" | "paragraph" | "multipleChoice" | "dropdown" | "scale" | "fileUpload" | "gridRow";
44
44
  date?: {
45
45
  includeTime: boolean;
46
46
  includeYear: boolean;
@@ -104,7 +104,7 @@ export declare function normalizeFormItem(item: forms_v1.Schema$Item, index: num
104
104
  choices: string[];
105
105
  questionId: string;
106
106
  required: boolean;
107
- type: "unknown" | "date" | "time" | "duration" | "rating" | "shortText" | "paragraph" | "multipleChoice" | "checkbox" | "dropdown" | "scale" | "fileUpload" | "gridRow";
107
+ type: "unknown" | "date" | "time" | "duration" | "checkbox" | "rating" | "shortText" | "paragraph" | "multipleChoice" | "dropdown" | "scale" | "fileUpload" | "gridRow";
108
108
  date?: {
109
109
  includeTime: boolean;
110
110
  includeYear: boolean;
@@ -57,11 +57,11 @@ export declare const googleFormsTriggerContracts: {
57
57
  date: "date";
58
58
  time: "time";
59
59
  duration: "duration";
60
+ checkbox: "checkbox";
60
61
  rating: "rating";
61
62
  shortText: "shortText";
62
63
  paragraph: "paragraph";
63
64
  multipleChoice: "multipleChoice";
64
- checkbox: "checkbox";
65
65
  dropdown: "dropdown";
66
66
  scale: "scale";
67
67
  fileUpload: "fileUpload";
@@ -182,8 +182,8 @@ export declare const FORM_ITEM_INPUT_SCHEMA: z.ZodDiscriminatedUnion<[z.ZodObjec
182
182
  title: z.ZodOptional<z.ZodString>;
183
183
  columns: z.ZodArray<z.ZodString>;
184
184
  gridType: z.ZodEnum<{
185
- multipleChoice: "multipleChoice";
186
185
  checkbox: "checkbox";
186
+ multipleChoice: "multipleChoice";
187
187
  }>;
188
188
  rows: z.ZodArray<z.ZodObject<{
189
189
  questionId: z.ZodOptional<z.ZodString>;
@@ -277,11 +277,11 @@ export declare const NORMALIZED_QUESTION_SCHEMA: z.ZodObject<{
277
277
  date: "date";
278
278
  time: "time";
279
279
  duration: "duration";
280
+ checkbox: "checkbox";
280
281
  rating: "rating";
281
282
  shortText: "shortText";
282
283
  paragraph: "paragraph";
283
284
  multipleChoice: "multipleChoice";
284
- checkbox: "checkbox";
285
285
  dropdown: "dropdown";
286
286
  scale: "scale";
287
287
  fileUpload: "fileUpload";
@@ -331,11 +331,11 @@ export declare const FORM_ITEM_SCHEMA: z.ZodObject<{
331
331
  date: "date";
332
332
  time: "time";
333
333
  duration: "duration";
334
+ checkbox: "checkbox";
334
335
  rating: "rating";
335
336
  shortText: "shortText";
336
337
  paragraph: "paragraph";
337
338
  multipleChoice: "multipleChoice";
338
- checkbox: "checkbox";
339
339
  dropdown: "dropdown";
340
340
  scale: "scale";
341
341
  fileUpload: "fileUpload";
@@ -399,11 +399,11 @@ export declare const FORM_SCHEMA: z.ZodObject<{
399
399
  date: "date";
400
400
  time: "time";
401
401
  duration: "duration";
402
+ checkbox: "checkbox";
402
403
  rating: "rating";
403
404
  shortText: "shortText";
404
405
  paragraph: "paragraph";
405
406
  multipleChoice: "multipleChoice";
406
- checkbox: "checkbox";
407
407
  dropdown: "dropdown";
408
408
  scale: "scale";
409
409
  fileUpload: "fileUpload";
@@ -568,11 +568,11 @@ export declare const FORM_BATCH_UPDATE_SCHEMA: z.ZodObject<{
568
568
  date: "date";
569
569
  time: "time";
570
570
  duration: "duration";
571
+ checkbox: "checkbox";
571
572
  rating: "rating";
572
573
  shortText: "shortText";
573
574
  paragraph: "paragraph";
574
575
  multipleChoice: "multipleChoice";
575
- checkbox: "checkbox";
576
576
  dropdown: "dropdown";
577
577
  scale: "scale";
578
578
  fileUpload: "fileUpload";
@@ -5,6 +5,7 @@ import type { axiomTriggerContracts } from "./axiom/index.js";
5
5
  import type { automateTriggerContracts } from "./automate/index.js";
6
6
  import type { asanaTriggerContracts } from "./asana/index.js";
7
7
  import type { brevoTriggerContracts } from "./brevo/index.js";
8
+ import type { calcomTriggerContracts } from "./calcom/index.js";
8
9
  import type { convexTriggerContracts } from "./convex/index.js";
9
10
  import type { discordTriggerContracts } from "./discord/index.js";
10
11
  import type { closeTriggerContracts } from "./close/index.js";
@@ -35,7 +36,7 @@ import type { vercelTriggerContracts } from "./vercel/index.js";
35
36
  import type { webflowTriggerContracts } from "./webflow/index.js";
36
37
  import type { whatsappTriggerContracts } from "./whatsapp/index.js";
37
38
  import type { z } from "zod";
38
- export type TriggerContractMap = typeof airtableTriggerContracts & typeof anthropicTriggerContracts & typeof apifyTriggerContracts & typeof axiomTriggerContracts & typeof automateTriggerContracts & typeof asanaTriggerContracts & typeof brevoTriggerContracts & typeof convexTriggerContracts & typeof discordTriggerContracts & typeof closeTriggerContracts & typeof clickUpTriggerContracts & typeof calendlyTriggerContracts & typeof cloudflareTriggerContracts & typeof githubTriggerContracts & typeof gmailTriggerContracts & typeof googleCalendarTriggerContracts & typeof googleDriveTriggerContracts & typeof googleFormsTriggerContracts & typeof googleMeetTriggerContracts & typeof googleAdsTriggerContracts & typeof googleSheetsTriggerContracts & typeof hubspotTriggerContracts & typeof linearTriggerContracts & typeof millionVerifierTriggerContracts & typeof metaAdsTriggerContracts & typeof notionTriggerContracts & typeof outlookTriggerContracts & typeof redditTriggerContracts & typeof resendTriggerContracts & typeof slackTriggerContracts & typeof stripeTriggerContracts & typeof teamsTriggerContracts & typeof trelloTriggerContracts & typeof vercelTriggerContracts & typeof webflowTriggerContracts & typeof whatsappTriggerContracts;
39
+ export type TriggerContractMap = typeof airtableTriggerContracts & typeof anthropicTriggerContracts & typeof apifyTriggerContracts & typeof axiomTriggerContracts & typeof automateTriggerContracts & typeof asanaTriggerContracts & typeof brevoTriggerContracts & typeof calcomTriggerContracts & typeof convexTriggerContracts & typeof discordTriggerContracts & typeof closeTriggerContracts & typeof clickUpTriggerContracts & typeof calendlyTriggerContracts & typeof cloudflareTriggerContracts & typeof githubTriggerContracts & typeof gmailTriggerContracts & typeof googleCalendarTriggerContracts & typeof googleDriveTriggerContracts & typeof googleFormsTriggerContracts & typeof googleMeetTriggerContracts & typeof googleAdsTriggerContracts & typeof googleSheetsTriggerContracts & typeof hubspotTriggerContracts & typeof linearTriggerContracts & typeof millionVerifierTriggerContracts & typeof metaAdsTriggerContracts & typeof notionTriggerContracts & typeof outlookTriggerContracts & typeof redditTriggerContracts & typeof resendTriggerContracts & typeof slackTriggerContracts & typeof stripeTriggerContracts & typeof teamsTriggerContracts & typeof trelloTriggerContracts & typeof vercelTriggerContracts & typeof webflowTriggerContracts & typeof whatsappTriggerContracts;
39
40
  export type IntegrationTriggerType = keyof TriggerContractMap;
40
41
  /** Canonical authoring configuration for one integration trigger type. */
41
42
  export type TriggerConfig<TType extends IntegrationTriggerType> = z.input<TriggerContractMap[TType]["configSchema"]> extends Record<string, never> ? object : z.input<TriggerContractMap[TType]["configSchema"]>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@automate.ax/integration-contracts",
3
- "version": "0.144.2",
3
+ "version": "0.145.1",
4
4
  "description": "Shared integration payload contracts and provider primitives for Automate.ax.",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -27,6 +27,7 @@
27
27
  "./clickup": "./src/clickup/index.ts",
28
28
  "./calendly": "./src/calendly/index.ts",
29
29
  "./brevo": "./src/brevo/index.ts",
30
+ "./calcom": "./src/calcom/index.ts",
30
31
  "./cloudflare": "./src/cloudflare/index.ts",
31
32
  "./meta-ads": "./src/meta-ads/index.ts",
32
33
  "./convex": "./src/convex/index.ts",
@@ -66,7 +67,7 @@
66
67
  },
67
68
  "dependencies": {
68
69
  "@anthropic-ai/sdk": "0.123.0",
69
- "@automate.ax/codec": "0.144.2",
70
+ "@automate.ax/codec": "0.145.1",
70
71
  "@cfworker/json-schema": "^4.1.1",
71
72
  "@googleapis/calendar": "^16.0.0",
72
73
  "@googleapis/forms": "^6.0.1",
@@ -101,6 +102,7 @@
101
102
  },
102
103
  "scripts": {
103
104
  "generate:github": "bun scripts/generate-github-webhook-schemas.ts",
105
+ "generate:calcom": "bun scripts/generate-calcom-openapi.ts",
104
106
  "typecheck": "resource-broker run --pool automate-ax-validation --limit 2 --weight 1 -- tsc --noEmit",
105
107
  "lint": "oxlint --type-aware --threads=2 && bun --bun eslint . --cache --cache-strategy content",
106
108
  "lint:fix": "oxlint --type-aware --threads=2 --fix --fix-suggestions && bun --bun eslint . --fix --cache --cache-strategy content",
@@ -164,6 +166,11 @@
164
166
  "types": "./dist/brevo/index.d.ts",
165
167
  "default": "./dist/brevo/index.js"
166
168
  },
169
+ "./calcom": {
170
+ "bun": "./src/calcom/index.ts",
171
+ "types": "./dist/calcom/index.d.ts",
172
+ "default": "./dist/calcom/index.js"
173
+ },
167
174
  "./cloudflare": {
168
175
  "bun": "./src/cloudflare/index.ts",
169
176
  "types": "./dist/cloudflare/index.d.ts",