@automate.ax/integration-contracts 0.147.0 → 0.148.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.
- package/dist/close/events.d.ts +4 -4
- package/dist/close/schemas.d.ts +6 -6
- package/dist/google-drive/index.d.ts +3 -3
- package/dist/kit/api.d.ts +78 -0
- package/dist/kit/api.js +386 -0
- package/dist/kit/events.d.ts +437 -0
- package/dist/kit/events.js +285 -0
- package/dist/kit/index.d.ts +6 -0
- package/dist/kit/index.js +5 -0
- package/dist/kit/openapi-operations.generated.d.ts +5 -0
- package/dist/kit/openapi-operations.generated.js +5 -0
- package/dist/kit/openapi-types.generated.d.ts +9485 -0
- package/dist/kit/openapi-types.generated.js +1 -0
- package/dist/kit/operation-manifest.d.ts +657 -0
- package/dist/kit/operation-manifest.js +98 -0
- package/dist/kit/schemas.d.ts +42 -0
- package/dist/kit/schemas.js +43 -0
- package/dist/kit/types.d.ts +41 -0
- package/dist/kit/types.js +1 -0
- package/dist/notion/schemas.d.ts +108 -108
- package/dist/resend/action-schemas.d.ts +14 -14
- package/dist/tally/api.js +5 -2
- package/dist/tally/events.d.ts +12 -12
- package/dist/tally/openapi-schemas.generated.json +39 -5
- package/dist/tally/openapi-types.generated.d.ts +6 -5
- package/dist/triggers.d.ts +2 -1
- package/package.json +9 -2
- package/src/kit/api.ts +523 -0
- package/src/kit/events.ts +352 -0
- package/src/kit/index.ts +6 -0
- package/src/kit/openapi-operations.generated.ts +7 -0
- package/src/kit/openapi-types.generated.ts +9710 -0
- package/src/kit/operation-manifest.ts +771 -0
- package/src/kit/schemas.ts +93 -0
- package/src/kit/types.ts +87 -0
- package/src/tally/api.ts +4 -2
- package/src/tally/openapi-schemas.generated.json +39 -5
- package/src/tally/openapi-types.generated.ts +6 -5
- package/src/triggers.ts +2 -0
|
@@ -6,11 +6,11 @@ export declare const RESEND_EMAIL_STATUS_SCHEMA: z.ZodEnum<{
|
|
|
6
6
|
delivered: "delivered";
|
|
7
7
|
clicked: "clicked";
|
|
8
8
|
opened: "opened";
|
|
9
|
+
bounced: "bounced";
|
|
10
|
+
complained: "complained";
|
|
9
11
|
scheduled: "scheduled";
|
|
10
12
|
queued: "queued";
|
|
11
13
|
suppressed: "suppressed";
|
|
12
|
-
bounced: "bounced";
|
|
13
|
-
complained: "complained";
|
|
14
14
|
delivery_delayed: "delivery_delayed";
|
|
15
15
|
}>;
|
|
16
16
|
export declare const RESEND_TAG_SCHEMA: z.ZodObject<{
|
|
@@ -81,11 +81,11 @@ export declare const RESEND_EMAIL_SUMMARY_WIRE_SCHEMA: z.ZodObject<{
|
|
|
81
81
|
delivered: "delivered";
|
|
82
82
|
clicked: "clicked";
|
|
83
83
|
opened: "opened";
|
|
84
|
+
bounced: "bounced";
|
|
85
|
+
complained: "complained";
|
|
84
86
|
scheduled: "scheduled";
|
|
85
87
|
queued: "queued";
|
|
86
88
|
suppressed: "suppressed";
|
|
87
|
-
bounced: "bounced";
|
|
88
|
-
complained: "complained";
|
|
89
89
|
delivery_delayed: "delivery_delayed";
|
|
90
90
|
}>;
|
|
91
91
|
message_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -108,11 +108,11 @@ export declare const RESEND_EMAIL_SUMMARY_SCHEMA: z.ZodPipe<z.ZodObject<{
|
|
|
108
108
|
delivered: "delivered";
|
|
109
109
|
clicked: "clicked";
|
|
110
110
|
opened: "opened";
|
|
111
|
+
bounced: "bounced";
|
|
112
|
+
complained: "complained";
|
|
111
113
|
scheduled: "scheduled";
|
|
112
114
|
queued: "queued";
|
|
113
115
|
suppressed: "suppressed";
|
|
114
|
-
bounced: "bounced";
|
|
115
|
-
complained: "complained";
|
|
116
116
|
delivery_delayed: "delivery_delayed";
|
|
117
117
|
}>;
|
|
118
118
|
message_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -123,7 +123,7 @@ export declare const RESEND_EMAIL_SUMMARY_SCHEMA: z.ZodPipe<z.ZodObject<{
|
|
|
123
123
|
topic_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
124
124
|
}, z.core.$strip>, z.ZodTransform<{
|
|
125
125
|
createdAt: string;
|
|
126
|
-
lastEvent: "failed" | "canceled" | "sent" | "delivered" | "clicked" | "opened" | "
|
|
126
|
+
lastEvent: "failed" | "canceled" | "sent" | "delivered" | "clicked" | "opened" | "bounced" | "complained" | "scheduled" | "queued" | "suppressed" | "delivery_delayed";
|
|
127
127
|
messageId: string | null | undefined;
|
|
128
128
|
replyTo: string[] | null | undefined;
|
|
129
129
|
scheduledAt: string | null | undefined;
|
|
@@ -138,7 +138,7 @@ export declare const RESEND_EMAIL_SUMMARY_SCHEMA: z.ZodPipe<z.ZodObject<{
|
|
|
138
138
|
created_at: string;
|
|
139
139
|
from: string;
|
|
140
140
|
id: string;
|
|
141
|
-
last_event: "failed" | "canceled" | "sent" | "delivered" | "clicked" | "opened" | "
|
|
141
|
+
last_event: "failed" | "canceled" | "sent" | "delivered" | "clicked" | "opened" | "bounced" | "complained" | "scheduled" | "queued" | "suppressed" | "delivery_delayed";
|
|
142
142
|
subject: string;
|
|
143
143
|
to: string[];
|
|
144
144
|
bcc?: string[] | null | undefined;
|
|
@@ -159,11 +159,11 @@ export declare const RESEND_EMAIL_WIRE_SCHEMA: z.ZodObject<{
|
|
|
159
159
|
delivered: "delivered";
|
|
160
160
|
clicked: "clicked";
|
|
161
161
|
opened: "opened";
|
|
162
|
+
bounced: "bounced";
|
|
163
|
+
complained: "complained";
|
|
162
164
|
scheduled: "scheduled";
|
|
163
165
|
queued: "queued";
|
|
164
166
|
suppressed: "suppressed";
|
|
165
|
-
bounced: "bounced";
|
|
166
|
-
complained: "complained";
|
|
167
167
|
delivery_delayed: "delivery_delayed";
|
|
168
168
|
}>;
|
|
169
169
|
message_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -193,11 +193,11 @@ export declare const RESEND_EMAIL_SCHEMA: z.ZodPipe<z.ZodObject<{
|
|
|
193
193
|
delivered: "delivered";
|
|
194
194
|
clicked: "clicked";
|
|
195
195
|
opened: "opened";
|
|
196
|
+
bounced: "bounced";
|
|
197
|
+
complained: "complained";
|
|
196
198
|
scheduled: "scheduled";
|
|
197
199
|
queued: "queued";
|
|
198
200
|
suppressed: "suppressed";
|
|
199
|
-
bounced: "bounced";
|
|
200
|
-
complained: "complained";
|
|
201
201
|
delivery_delayed: "delivery_delayed";
|
|
202
202
|
}>;
|
|
203
203
|
message_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -217,7 +217,7 @@ export declare const RESEND_EMAIL_SCHEMA: z.ZodPipe<z.ZodObject<{
|
|
|
217
217
|
text: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
218
218
|
}, z.core.$strip>, z.ZodTransform<{
|
|
219
219
|
createdAt: string;
|
|
220
|
-
lastEvent: "failed" | "canceled" | "sent" | "delivered" | "clicked" | "opened" | "
|
|
220
|
+
lastEvent: "failed" | "canceled" | "sent" | "delivered" | "clicked" | "opened" | "bounced" | "complained" | "scheduled" | "queued" | "suppressed" | "delivery_delayed";
|
|
221
221
|
messageId: string | null | undefined;
|
|
222
222
|
replyTo: string[] | null | undefined;
|
|
223
223
|
scheduledAt: string | null | undefined;
|
|
@@ -239,7 +239,7 @@ export declare const RESEND_EMAIL_SCHEMA: z.ZodPipe<z.ZodObject<{
|
|
|
239
239
|
created_at: string;
|
|
240
240
|
from: string;
|
|
241
241
|
id: string;
|
|
242
|
-
last_event: "failed" | "canceled" | "sent" | "delivered" | "clicked" | "opened" | "
|
|
242
|
+
last_event: "failed" | "canceled" | "sent" | "delivered" | "clicked" | "opened" | "bounced" | "complained" | "scheduled" | "queued" | "suppressed" | "delivery_delayed";
|
|
243
243
|
subject: string;
|
|
244
244
|
to: string[];
|
|
245
245
|
object: "email";
|
package/dist/tally/api.js
CHANGED
|
@@ -107,7 +107,7 @@ async function sendTallyRequest(apiKey, path, options) {
|
|
|
107
107
|
redirect: "error",
|
|
108
108
|
});
|
|
109
109
|
const text = await response.text();
|
|
110
|
-
const parsed = text ? parseJson(text) : undefined;
|
|
110
|
+
const parsed = text ? parseJson(text, response.ok) : undefined;
|
|
111
111
|
if (!response.ok) {
|
|
112
112
|
const body = encodableSchema.safeParse(parsed);
|
|
113
113
|
throw new TallyApiError({
|
|
@@ -136,13 +136,16 @@ function isTraversalSegment(segment) {
|
|
|
136
136
|
* Parses one JSON response or reports a provider contract failure.
|
|
137
137
|
*
|
|
138
138
|
* @param text Provider response text.
|
|
139
|
+
* @param requireJson Whether a successful response must contain valid JSON.
|
|
139
140
|
* @throws When the provider response is not valid JSON.
|
|
140
141
|
*/
|
|
141
|
-
function parseJson(text) {
|
|
142
|
+
function parseJson(text, requireJson) {
|
|
142
143
|
try {
|
|
143
144
|
return JSON.parse(text);
|
|
144
145
|
}
|
|
145
146
|
catch {
|
|
147
|
+
if (!requireJson)
|
|
148
|
+
return text;
|
|
146
149
|
throw new Error("Tally API returned invalid JSON.");
|
|
147
150
|
}
|
|
148
151
|
}
|
package/dist/tally/events.d.ts
CHANGED
|
@@ -21,7 +21,6 @@ export declare const TALLY_FORM_RESPONSE_EVENT_SCHEMA: z.ZodObject<{
|
|
|
21
21
|
text: z.ZodString;
|
|
22
22
|
}, z.core.$strip>>>;
|
|
23
23
|
type: z.ZodEnum<{
|
|
24
|
-
MATRIX: "MATRIX";
|
|
25
24
|
INPUT_TEXT: "INPUT_TEXT";
|
|
26
25
|
INPUT_NUMBER: "INPUT_NUMBER";
|
|
27
26
|
INPUT_EMAIL: "INPUT_EMAIL";
|
|
@@ -30,13 +29,14 @@ export declare const TALLY_FORM_RESPONSE_EVENT_SCHEMA: z.ZodObject<{
|
|
|
30
29
|
INPUT_DATE: "INPUT_DATE";
|
|
31
30
|
INPUT_TIME: "INPUT_TIME";
|
|
32
31
|
TEXTAREA: "TEXTAREA";
|
|
33
|
-
FILE_UPLOAD: "FILE_UPLOAD";
|
|
34
|
-
LINEAR_SCALE: "LINEAR_SCALE";
|
|
35
32
|
RATING: "RATING";
|
|
33
|
+
LINEAR_SCALE: "LINEAR_SCALE";
|
|
36
34
|
HIDDEN_FIELDS: "HIDDEN_FIELDS";
|
|
35
|
+
CALCULATED_FIELDS: "CALCULATED_FIELDS";
|
|
36
|
+
MATRIX: "MATRIX";
|
|
37
|
+
FILE_UPLOAD: "FILE_UPLOAD";
|
|
37
38
|
PAYMENT: "PAYMENT";
|
|
38
39
|
SIGNATURE: "SIGNATURE";
|
|
39
|
-
CALCULATED_FIELDS: "CALCULATED_FIELDS";
|
|
40
40
|
MULTIPLE_CHOICE: "MULTIPLE_CHOICE";
|
|
41
41
|
CHECKBOXES: "CHECKBOXES";
|
|
42
42
|
DROPDOWN: "DROPDOWN";
|
|
@@ -91,7 +91,6 @@ export declare const tallyTriggerContracts: {
|
|
|
91
91
|
text: z.ZodString;
|
|
92
92
|
}, z.core.$strip>>>;
|
|
93
93
|
type: z.ZodEnum<{
|
|
94
|
-
MATRIX: "MATRIX";
|
|
95
94
|
INPUT_TEXT: "INPUT_TEXT";
|
|
96
95
|
INPUT_NUMBER: "INPUT_NUMBER";
|
|
97
96
|
INPUT_EMAIL: "INPUT_EMAIL";
|
|
@@ -100,13 +99,14 @@ export declare const tallyTriggerContracts: {
|
|
|
100
99
|
INPUT_DATE: "INPUT_DATE";
|
|
101
100
|
INPUT_TIME: "INPUT_TIME";
|
|
102
101
|
TEXTAREA: "TEXTAREA";
|
|
103
|
-
FILE_UPLOAD: "FILE_UPLOAD";
|
|
104
|
-
LINEAR_SCALE: "LINEAR_SCALE";
|
|
105
102
|
RATING: "RATING";
|
|
103
|
+
LINEAR_SCALE: "LINEAR_SCALE";
|
|
106
104
|
HIDDEN_FIELDS: "HIDDEN_FIELDS";
|
|
105
|
+
CALCULATED_FIELDS: "CALCULATED_FIELDS";
|
|
106
|
+
MATRIX: "MATRIX";
|
|
107
|
+
FILE_UPLOAD: "FILE_UPLOAD";
|
|
107
108
|
PAYMENT: "PAYMENT";
|
|
108
109
|
SIGNATURE: "SIGNATURE";
|
|
109
|
-
CALCULATED_FIELDS: "CALCULATED_FIELDS";
|
|
110
110
|
MULTIPLE_CHOICE: "MULTIPLE_CHOICE";
|
|
111
111
|
CHECKBOXES: "CHECKBOXES";
|
|
112
112
|
DROPDOWN: "DROPDOWN";
|
|
@@ -157,7 +157,6 @@ export declare const tallyTriggerContracts: {
|
|
|
157
157
|
text: z.ZodString;
|
|
158
158
|
}, z.core.$strip>>>;
|
|
159
159
|
type: z.ZodEnum<{
|
|
160
|
-
MATRIX: "MATRIX";
|
|
161
160
|
INPUT_TEXT: "INPUT_TEXT";
|
|
162
161
|
INPUT_NUMBER: "INPUT_NUMBER";
|
|
163
162
|
INPUT_EMAIL: "INPUT_EMAIL";
|
|
@@ -166,13 +165,14 @@ export declare const tallyTriggerContracts: {
|
|
|
166
165
|
INPUT_DATE: "INPUT_DATE";
|
|
167
166
|
INPUT_TIME: "INPUT_TIME";
|
|
168
167
|
TEXTAREA: "TEXTAREA";
|
|
169
|
-
FILE_UPLOAD: "FILE_UPLOAD";
|
|
170
|
-
LINEAR_SCALE: "LINEAR_SCALE";
|
|
171
168
|
RATING: "RATING";
|
|
169
|
+
LINEAR_SCALE: "LINEAR_SCALE";
|
|
172
170
|
HIDDEN_FIELDS: "HIDDEN_FIELDS";
|
|
171
|
+
CALCULATED_FIELDS: "CALCULATED_FIELDS";
|
|
172
|
+
MATRIX: "MATRIX";
|
|
173
|
+
FILE_UPLOAD: "FILE_UPLOAD";
|
|
173
174
|
PAYMENT: "PAYMENT";
|
|
174
175
|
SIGNATURE: "SIGNATURE";
|
|
175
|
-
CALCULATED_FIELDS: "CALCULATED_FIELDS";
|
|
176
176
|
MULTIPLE_CHOICE: "MULTIPLE_CHOICE";
|
|
177
177
|
CHECKBOXES: "CHECKBOXES";
|
|
178
178
|
DROPDOWN: "DROPDOWN";
|
|
@@ -366,7 +366,14 @@
|
|
|
366
366
|
"type": "string"
|
|
367
367
|
},
|
|
368
368
|
"name": {
|
|
369
|
-
"
|
|
369
|
+
"anyOf": [
|
|
370
|
+
{
|
|
371
|
+
"type": "string"
|
|
372
|
+
},
|
|
373
|
+
{
|
|
374
|
+
"type": "null"
|
|
375
|
+
}
|
|
376
|
+
]
|
|
370
377
|
},
|
|
371
378
|
"workspaceId": {
|
|
372
379
|
"type": "string"
|
|
@@ -686,7 +693,14 @@
|
|
|
686
693
|
"type": "string"
|
|
687
694
|
},
|
|
688
695
|
"name": {
|
|
689
|
-
"
|
|
696
|
+
"anyOf": [
|
|
697
|
+
{
|
|
698
|
+
"type": "string"
|
|
699
|
+
},
|
|
700
|
+
{
|
|
701
|
+
"type": "null"
|
|
702
|
+
}
|
|
703
|
+
]
|
|
690
704
|
},
|
|
691
705
|
"index": {
|
|
692
706
|
"type": "integer"
|
|
@@ -773,7 +787,7 @@
|
|
|
773
787
|
"format": "uuid"
|
|
774
788
|
},
|
|
775
789
|
"type": {
|
|
776
|
-
"$ref": "#/$defs/
|
|
790
|
+
"$ref": "#/$defs/FieldType"
|
|
777
791
|
},
|
|
778
792
|
"blockGroupUuid": {
|
|
779
793
|
"type": "string",
|
|
@@ -781,6 +795,9 @@
|
|
|
781
795
|
},
|
|
782
796
|
"title": {
|
|
783
797
|
"type": "string"
|
|
798
|
+
},
|
|
799
|
+
"questionType": {
|
|
800
|
+
"$ref": "#/$defs/FieldQuestionType"
|
|
784
801
|
}
|
|
785
802
|
}
|
|
786
803
|
},
|
|
@@ -4338,7 +4355,19 @@
|
|
|
4338
4355
|
"type": "object",
|
|
4339
4356
|
"properties": {
|
|
4340
4357
|
"settings": {
|
|
4341
|
-
"
|
|
4358
|
+
"anyOf": [
|
|
4359
|
+
{
|
|
4360
|
+
"type": "object",
|
|
4361
|
+
"allOf": [
|
|
4362
|
+
{
|
|
4363
|
+
"$ref": "#/$defs/FormSettings"
|
|
4364
|
+
}
|
|
4365
|
+
]
|
|
4366
|
+
},
|
|
4367
|
+
{
|
|
4368
|
+
"type": "null"
|
|
4369
|
+
}
|
|
4370
|
+
]
|
|
4342
4371
|
},
|
|
4343
4372
|
"blocks": {
|
|
4344
4373
|
"type": "array",
|
|
@@ -4595,7 +4624,12 @@
|
|
|
4595
4624
|
"required": ["blocks"]
|
|
4596
4625
|
},
|
|
4597
4626
|
"PatchFormsFormIdBlocksResponse": {
|
|
4598
|
-
"
|
|
4627
|
+
"type": "object",
|
|
4628
|
+
"allOf": [
|
|
4629
|
+
{
|
|
4630
|
+
"$ref": "#/$defs/Form"
|
|
4631
|
+
}
|
|
4632
|
+
]
|
|
4599
4633
|
},
|
|
4600
4634
|
"GetFormsFormIdSubmissionsResponse": {
|
|
4601
4635
|
"type": "object",
|
|
@@ -197,7 +197,7 @@ export interface components {
|
|
|
197
197
|
};
|
|
198
198
|
Form: {
|
|
199
199
|
id: string;
|
|
200
|
-
name: string;
|
|
200
|
+
name: string | null;
|
|
201
201
|
workspaceId: string;
|
|
202
202
|
status: components["schemas"]["FormStatus"];
|
|
203
203
|
numberOfSubmissions: number;
|
|
@@ -265,7 +265,7 @@ export interface components {
|
|
|
265
265
|
};
|
|
266
266
|
Workspace: {
|
|
267
267
|
id: string;
|
|
268
|
-
name: string;
|
|
268
|
+
name: string | null;
|
|
269
269
|
index: number;
|
|
270
270
|
members?: components["schemas"]["User"][];
|
|
271
271
|
invites?: {
|
|
@@ -292,10 +292,11 @@ export interface components {
|
|
|
292
292
|
QuestionField: {
|
|
293
293
|
/** Format: uuid */
|
|
294
294
|
uuid?: string;
|
|
295
|
-
type?: components["schemas"]["
|
|
295
|
+
type?: components["schemas"]["FieldType"];
|
|
296
296
|
/** Format: uuid */
|
|
297
297
|
blockGroupUuid?: string;
|
|
298
298
|
title?: string;
|
|
299
|
+
questionType?: components["schemas"]["FieldQuestionType"];
|
|
299
300
|
};
|
|
300
301
|
Question: {
|
|
301
302
|
id?: string;
|
|
@@ -2076,7 +2077,7 @@ export interface components {
|
|
|
2076
2077
|
};
|
|
2077
2078
|
PostFormsResponse: components["schemas"]["Form"];
|
|
2078
2079
|
GetFormsFormIdResponse: components["schemas"]["Form"] & {
|
|
2079
|
-
settings?: components["schemas"]["FormSettings"];
|
|
2080
|
+
settings?: components["schemas"]["FormSettings"] | null;
|
|
2080
2081
|
blocks?: components["schemas"]["Block"][];
|
|
2081
2082
|
};
|
|
2082
2083
|
PatchFormsFormIdRequest: {
|
|
@@ -2160,7 +2161,7 @@ export interface components {
|
|
|
2160
2161
|
blocks: components["schemas"]["Block"][];
|
|
2161
2162
|
settings?: components["schemas"]["FormSettings"] | null;
|
|
2162
2163
|
};
|
|
2163
|
-
PatchFormsFormIdBlocksResponse: components["schemas"]["
|
|
2164
|
+
PatchFormsFormIdBlocksResponse: components["schemas"]["Form"];
|
|
2164
2165
|
GetFormsFormIdSubmissionsResponse: {
|
|
2165
2166
|
/** Current page number */
|
|
2166
2167
|
page?: number;
|
package/dist/triggers.d.ts
CHANGED
|
@@ -22,6 +22,7 @@ import type { googleAdsTriggerContracts } from "./google-ads/index.js";
|
|
|
22
22
|
import type { googleSheetsTriggerContracts } from "./google-sheets/index.js";
|
|
23
23
|
import type { hubspotTriggerContracts } from "./hubspot/index.js";
|
|
24
24
|
import type { highLevelTriggerContracts } from "./highlevel/index.js";
|
|
25
|
+
import type { kitTriggerContracts } from "./kit/index.js";
|
|
25
26
|
import type { linearTriggerContracts } from "./linear/index.js";
|
|
26
27
|
import type { millionVerifierTriggerContracts } from "./millionverifier/index.js";
|
|
27
28
|
import type { metaAdsTriggerContracts } from "./meta-ads/index.js";
|
|
@@ -38,7 +39,7 @@ import type { vercelTriggerContracts } from "./vercel/index.js";
|
|
|
38
39
|
import type { webflowTriggerContracts } from "./webflow/index.js";
|
|
39
40
|
import type { whatsappTriggerContracts } from "./whatsapp/index.js";
|
|
40
41
|
import type { z } from "zod";
|
|
41
|
-
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 highLevelTriggerContracts & typeof linearTriggerContracts & typeof millionVerifierTriggerContracts & typeof metaAdsTriggerContracts & typeof notionTriggerContracts & typeof outlookTriggerContracts & typeof redditTriggerContracts & typeof resendTriggerContracts & typeof slackTriggerContracts & typeof stripeTriggerContracts & typeof teamsTriggerContracts & typeof tallyTriggerContracts & typeof trelloTriggerContracts & typeof vercelTriggerContracts & typeof webflowTriggerContracts & typeof whatsappTriggerContracts;
|
|
42
|
+
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 highLevelTriggerContracts & typeof kitTriggerContracts & typeof linearTriggerContracts & typeof millionVerifierTriggerContracts & typeof metaAdsTriggerContracts & typeof notionTriggerContracts & typeof outlookTriggerContracts & typeof redditTriggerContracts & typeof resendTriggerContracts & typeof slackTriggerContracts & typeof stripeTriggerContracts & typeof teamsTriggerContracts & typeof tallyTriggerContracts & typeof trelloTriggerContracts & typeof vercelTriggerContracts & typeof webflowTriggerContracts & typeof whatsappTriggerContracts;
|
|
42
43
|
export type IntegrationTriggerType = keyof TriggerContractMap;
|
|
43
44
|
/** Canonical authoring configuration for one integration trigger type. */
|
|
44
45
|
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.
|
|
3
|
+
"version": "0.148.0",
|
|
4
4
|
"description": "Shared integration payload contracts and provider primitives for Automate.ax.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -28,6 +28,7 @@
|
|
|
28
28
|
"./calendly": "./src/calendly/index.ts",
|
|
29
29
|
"./brevo": "./src/brevo/index.ts",
|
|
30
30
|
"./calcom": "./src/calcom/index.ts",
|
|
31
|
+
"./kit": "./src/kit/index.ts",
|
|
31
32
|
"./cloudflare": "./src/cloudflare/index.ts",
|
|
32
33
|
"./meta-ads": "./src/meta-ads/index.ts",
|
|
33
34
|
"./convex": "./src/convex/index.ts",
|
|
@@ -69,7 +70,7 @@
|
|
|
69
70
|
},
|
|
70
71
|
"dependencies": {
|
|
71
72
|
"@anthropic-ai/sdk": "0.123.0",
|
|
72
|
-
"@automate.ax/codec": "0.
|
|
73
|
+
"@automate.ax/codec": "0.148.0",
|
|
73
74
|
"@cfworker/json-schema": "^4.1.1",
|
|
74
75
|
"@googleapis/calendar": "^16.0.0",
|
|
75
76
|
"@googleapis/forms": "^6.0.1",
|
|
@@ -106,6 +107,7 @@
|
|
|
106
107
|
"generate:github": "bun scripts/generate-github-webhook-schemas.ts",
|
|
107
108
|
"generate:calcom": "bun scripts/generate-calcom-openapi.ts",
|
|
108
109
|
"generate:highlevel": "bun scripts/generate-highlevel-openapi.ts",
|
|
110
|
+
"generate:kit": "bun scripts/generate-kit-openapi.ts",
|
|
109
111
|
"generate:tally": "bun scripts/generate-tally-openapi.ts",
|
|
110
112
|
"typecheck": "resource-broker run --pool automate-ax-validation --limit 2 --weight 1 -- tsc --noEmit",
|
|
111
113
|
"lint": "oxlint --type-aware --threads=2 && bun --bun eslint . --cache --cache-strategy content",
|
|
@@ -175,6 +177,11 @@
|
|
|
175
177
|
"types": "./dist/calcom/index.d.ts",
|
|
176
178
|
"default": "./dist/calcom/index.js"
|
|
177
179
|
},
|
|
180
|
+
"./kit": {
|
|
181
|
+
"bun": "./src/kit/index.ts",
|
|
182
|
+
"types": "./dist/kit/index.d.ts",
|
|
183
|
+
"default": "./dist/kit/index.js"
|
|
184
|
+
},
|
|
178
185
|
"./cloudflare": {
|
|
179
186
|
"bun": "./src/cloudflare/index.ts",
|
|
180
187
|
"types": "./dist/cloudflare/index.d.ts",
|