@corsair-dev/airtable 0.1.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.
@@ -0,0 +1,626 @@
1
+ import { z } from 'zod';
2
+ import type { CorsairWebhookMatcher, WebhookRequest } from 'corsair/core';
3
+ export declare const AirtableActionMetadataSchema: z.ZodObject<{
4
+ source: z.ZodOptional<z.ZodString>;
5
+ sourceMetadata: z.ZodOptional<z.ZodObject<{
6
+ user: z.ZodOptional<z.ZodObject<{
7
+ id: z.ZodString;
8
+ email: z.ZodOptional<z.ZodString>;
9
+ name: z.ZodOptional<z.ZodString>;
10
+ }, "strip", z.ZodTypeAny, {
11
+ id: string;
12
+ name?: string | undefined;
13
+ email?: string | undefined;
14
+ }, {
15
+ id: string;
16
+ name?: string | undefined;
17
+ email?: string | undefined;
18
+ }>>;
19
+ }, "strip", z.ZodTypeAny, {
20
+ user?: {
21
+ id: string;
22
+ name?: string | undefined;
23
+ email?: string | undefined;
24
+ } | undefined;
25
+ }, {
26
+ user?: {
27
+ id: string;
28
+ name?: string | undefined;
29
+ email?: string | undefined;
30
+ } | undefined;
31
+ }>>;
32
+ }, "strip", z.ZodTypeAny, {
33
+ source?: string | undefined;
34
+ sourceMetadata?: {
35
+ user?: {
36
+ id: string;
37
+ name?: string | undefined;
38
+ email?: string | undefined;
39
+ } | undefined;
40
+ } | undefined;
41
+ }, {
42
+ source?: string | undefined;
43
+ sourceMetadata?: {
44
+ user?: {
45
+ id: string;
46
+ name?: string | undefined;
47
+ email?: string | undefined;
48
+ } | undefined;
49
+ } | undefined;
50
+ }>;
51
+ export type AirtableActionMetadata = z.infer<typeof AirtableActionMetadataSchema>;
52
+ export declare const AirtableWebhookPayloadSchema: z.ZodObject<{
53
+ base: z.ZodObject<{
54
+ id: z.ZodString;
55
+ }, "strip", z.ZodTypeAny, {
56
+ id: string;
57
+ }, {
58
+ id: string;
59
+ }>;
60
+ webhook: z.ZodObject<{
61
+ id: z.ZodString;
62
+ }, "strip", z.ZodTypeAny, {
63
+ id: string;
64
+ }, {
65
+ id: string;
66
+ }>;
67
+ timestamp: z.ZodString;
68
+ actionMetadata: z.ZodOptional<z.ZodObject<{
69
+ source: z.ZodOptional<z.ZodString>;
70
+ sourceMetadata: z.ZodOptional<z.ZodObject<{
71
+ user: z.ZodOptional<z.ZodObject<{
72
+ id: z.ZodString;
73
+ email: z.ZodOptional<z.ZodString>;
74
+ name: z.ZodOptional<z.ZodString>;
75
+ }, "strip", z.ZodTypeAny, {
76
+ id: string;
77
+ name?: string | undefined;
78
+ email?: string | undefined;
79
+ }, {
80
+ id: string;
81
+ name?: string | undefined;
82
+ email?: string | undefined;
83
+ }>>;
84
+ }, "strip", z.ZodTypeAny, {
85
+ user?: {
86
+ id: string;
87
+ name?: string | undefined;
88
+ email?: string | undefined;
89
+ } | undefined;
90
+ }, {
91
+ user?: {
92
+ id: string;
93
+ name?: string | undefined;
94
+ email?: string | undefined;
95
+ } | undefined;
96
+ }>>;
97
+ }, "strip", z.ZodTypeAny, {
98
+ source?: string | undefined;
99
+ sourceMetadata?: {
100
+ user?: {
101
+ id: string;
102
+ name?: string | undefined;
103
+ email?: string | undefined;
104
+ } | undefined;
105
+ } | undefined;
106
+ }, {
107
+ source?: string | undefined;
108
+ sourceMetadata?: {
109
+ user?: {
110
+ id: string;
111
+ name?: string | undefined;
112
+ email?: string | undefined;
113
+ } | undefined;
114
+ } | undefined;
115
+ }>>;
116
+ }, "strip", z.ZodTypeAny, {
117
+ webhook: {
118
+ id: string;
119
+ };
120
+ base: {
121
+ id: string;
122
+ };
123
+ timestamp: string;
124
+ actionMetadata?: {
125
+ source?: string | undefined;
126
+ sourceMetadata?: {
127
+ user?: {
128
+ id: string;
129
+ name?: string | undefined;
130
+ email?: string | undefined;
131
+ } | undefined;
132
+ } | undefined;
133
+ } | undefined;
134
+ }, {
135
+ webhook: {
136
+ id: string;
137
+ };
138
+ base: {
139
+ id: string;
140
+ };
141
+ timestamp: string;
142
+ actionMetadata?: {
143
+ source?: string | undefined;
144
+ sourceMetadata?: {
145
+ user?: {
146
+ id: string;
147
+ name?: string | undefined;
148
+ email?: string | undefined;
149
+ } | undefined;
150
+ } | undefined;
151
+ } | undefined;
152
+ }>;
153
+ export type AirtableWebhookPayload = z.infer<typeof AirtableWebhookPayloadSchema>;
154
+ export declare const AirtableEventSchema: z.ZodObject<{
155
+ base: z.ZodObject<{
156
+ id: z.ZodString;
157
+ }, "strip", z.ZodTypeAny, {
158
+ id: string;
159
+ }, {
160
+ id: string;
161
+ }>;
162
+ webhook: z.ZodObject<{
163
+ id: z.ZodString;
164
+ }, "strip", z.ZodTypeAny, {
165
+ id: string;
166
+ }, {
167
+ id: string;
168
+ }>;
169
+ timestamp: z.ZodString;
170
+ actionMetadata: z.ZodOptional<z.ZodObject<{
171
+ source: z.ZodOptional<z.ZodString>;
172
+ sourceMetadata: z.ZodOptional<z.ZodObject<{
173
+ user: z.ZodOptional<z.ZodObject<{
174
+ id: z.ZodString;
175
+ email: z.ZodOptional<z.ZodString>;
176
+ name: z.ZodOptional<z.ZodString>;
177
+ }, "strip", z.ZodTypeAny, {
178
+ id: string;
179
+ name?: string | undefined;
180
+ email?: string | undefined;
181
+ }, {
182
+ id: string;
183
+ name?: string | undefined;
184
+ email?: string | undefined;
185
+ }>>;
186
+ }, "strip", z.ZodTypeAny, {
187
+ user?: {
188
+ id: string;
189
+ name?: string | undefined;
190
+ email?: string | undefined;
191
+ } | undefined;
192
+ }, {
193
+ user?: {
194
+ id: string;
195
+ name?: string | undefined;
196
+ email?: string | undefined;
197
+ } | undefined;
198
+ }>>;
199
+ }, "strip", z.ZodTypeAny, {
200
+ source?: string | undefined;
201
+ sourceMetadata?: {
202
+ user?: {
203
+ id: string;
204
+ name?: string | undefined;
205
+ email?: string | undefined;
206
+ } | undefined;
207
+ } | undefined;
208
+ }, {
209
+ source?: string | undefined;
210
+ sourceMetadata?: {
211
+ user?: {
212
+ id: string;
213
+ name?: string | undefined;
214
+ email?: string | undefined;
215
+ } | undefined;
216
+ } | undefined;
217
+ }>>;
218
+ }, "strip", z.ZodTypeAny, {
219
+ webhook: {
220
+ id: string;
221
+ };
222
+ base: {
223
+ id: string;
224
+ };
225
+ timestamp: string;
226
+ actionMetadata?: {
227
+ source?: string | undefined;
228
+ sourceMetadata?: {
229
+ user?: {
230
+ id: string;
231
+ name?: string | undefined;
232
+ email?: string | undefined;
233
+ } | undefined;
234
+ } | undefined;
235
+ } | undefined;
236
+ }, {
237
+ webhook: {
238
+ id: string;
239
+ };
240
+ base: {
241
+ id: string;
242
+ };
243
+ timestamp: string;
244
+ actionMetadata?: {
245
+ source?: string | undefined;
246
+ sourceMetadata?: {
247
+ user?: {
248
+ id: string;
249
+ name?: string | undefined;
250
+ email?: string | undefined;
251
+ } | undefined;
252
+ } | undefined;
253
+ } | undefined;
254
+ }>;
255
+ export type AirtableEvent = z.infer<typeof AirtableEventSchema>;
256
+ export type AirtableWebhookOutputs = {
257
+ event: AirtableEvent;
258
+ };
259
+ export declare const AirtableEventPayloadSchema: z.ZodObject<{
260
+ base: z.ZodObject<{
261
+ id: z.ZodString;
262
+ }, "strip", z.ZodTypeAny, {
263
+ id: string;
264
+ }, {
265
+ id: string;
266
+ }>;
267
+ webhook: z.ZodObject<{
268
+ id: z.ZodString;
269
+ }, "strip", z.ZodTypeAny, {
270
+ id: string;
271
+ }, {
272
+ id: string;
273
+ }>;
274
+ timestamp: z.ZodString;
275
+ actionMetadata: z.ZodOptional<z.ZodObject<{
276
+ source: z.ZodOptional<z.ZodString>;
277
+ sourceMetadata: z.ZodOptional<z.ZodObject<{
278
+ user: z.ZodOptional<z.ZodObject<{
279
+ id: z.ZodString;
280
+ email: z.ZodOptional<z.ZodString>;
281
+ name: z.ZodOptional<z.ZodString>;
282
+ }, "strip", z.ZodTypeAny, {
283
+ id: string;
284
+ name?: string | undefined;
285
+ email?: string | undefined;
286
+ }, {
287
+ id: string;
288
+ name?: string | undefined;
289
+ email?: string | undefined;
290
+ }>>;
291
+ }, "strip", z.ZodTypeAny, {
292
+ user?: {
293
+ id: string;
294
+ name?: string | undefined;
295
+ email?: string | undefined;
296
+ } | undefined;
297
+ }, {
298
+ user?: {
299
+ id: string;
300
+ name?: string | undefined;
301
+ email?: string | undefined;
302
+ } | undefined;
303
+ }>>;
304
+ }, "strip", z.ZodTypeAny, {
305
+ source?: string | undefined;
306
+ sourceMetadata?: {
307
+ user?: {
308
+ id: string;
309
+ name?: string | undefined;
310
+ email?: string | undefined;
311
+ } | undefined;
312
+ } | undefined;
313
+ }, {
314
+ source?: string | undefined;
315
+ sourceMetadata?: {
316
+ user?: {
317
+ id: string;
318
+ name?: string | undefined;
319
+ email?: string | undefined;
320
+ } | undefined;
321
+ } | undefined;
322
+ }>>;
323
+ }, "strip", z.ZodTypeAny, {
324
+ webhook: {
325
+ id: string;
326
+ };
327
+ base: {
328
+ id: string;
329
+ };
330
+ timestamp: string;
331
+ actionMetadata?: {
332
+ source?: string | undefined;
333
+ sourceMetadata?: {
334
+ user?: {
335
+ id: string;
336
+ name?: string | undefined;
337
+ email?: string | undefined;
338
+ } | undefined;
339
+ } | undefined;
340
+ } | undefined;
341
+ }, {
342
+ webhook: {
343
+ id: string;
344
+ };
345
+ base: {
346
+ id: string;
347
+ };
348
+ timestamp: string;
349
+ actionMetadata?: {
350
+ source?: string | undefined;
351
+ sourceMetadata?: {
352
+ user?: {
353
+ id: string;
354
+ name?: string | undefined;
355
+ email?: string | undefined;
356
+ } | undefined;
357
+ } | undefined;
358
+ } | undefined;
359
+ }>;
360
+ export declare const AirtableWebhookPayloadsResponseSchema: z.ZodObject<{
361
+ cursorForNextPayload: z.ZodOptional<z.ZodNumber>;
362
+ payloads: z.ZodDefault<z.ZodArray<z.ZodObject<{
363
+ timestamp: z.ZodString;
364
+ baseTransactionNumber: z.ZodOptional<z.ZodNumber>;
365
+ changes: z.ZodOptional<z.ZodArray<z.ZodObject<{
366
+ path: z.ZodOptional<z.ZodObject<{
367
+ tableId: z.ZodOptional<z.ZodString>;
368
+ recordId: z.ZodOptional<z.ZodString>;
369
+ fieldId: z.ZodOptional<z.ZodString>;
370
+ }, "strip", z.ZodTypeAny, {
371
+ recordId?: string | undefined;
372
+ tableId?: string | undefined;
373
+ fieldId?: string | undefined;
374
+ }, {
375
+ recordId?: string | undefined;
376
+ tableId?: string | undefined;
377
+ fieldId?: string | undefined;
378
+ }>>;
379
+ cellValuesByFieldId: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
380
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
381
+ path: z.ZodOptional<z.ZodObject<{
382
+ tableId: z.ZodOptional<z.ZodString>;
383
+ recordId: z.ZodOptional<z.ZodString>;
384
+ fieldId: z.ZodOptional<z.ZodString>;
385
+ }, "strip", z.ZodTypeAny, {
386
+ recordId?: string | undefined;
387
+ tableId?: string | undefined;
388
+ fieldId?: string | undefined;
389
+ }, {
390
+ recordId?: string | undefined;
391
+ tableId?: string | undefined;
392
+ fieldId?: string | undefined;
393
+ }>>;
394
+ cellValuesByFieldId: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
395
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
396
+ path: z.ZodOptional<z.ZodObject<{
397
+ tableId: z.ZodOptional<z.ZodString>;
398
+ recordId: z.ZodOptional<z.ZodString>;
399
+ fieldId: z.ZodOptional<z.ZodString>;
400
+ }, "strip", z.ZodTypeAny, {
401
+ recordId?: string | undefined;
402
+ tableId?: string | undefined;
403
+ fieldId?: string | undefined;
404
+ }, {
405
+ recordId?: string | undefined;
406
+ tableId?: string | undefined;
407
+ fieldId?: string | undefined;
408
+ }>>;
409
+ cellValuesByFieldId: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
410
+ }, z.ZodTypeAny, "passthrough">>, "many">>;
411
+ changedTablesById: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
412
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
413
+ timestamp: z.ZodString;
414
+ baseTransactionNumber: z.ZodOptional<z.ZodNumber>;
415
+ changes: z.ZodOptional<z.ZodArray<z.ZodObject<{
416
+ path: z.ZodOptional<z.ZodObject<{
417
+ tableId: z.ZodOptional<z.ZodString>;
418
+ recordId: z.ZodOptional<z.ZodString>;
419
+ fieldId: z.ZodOptional<z.ZodString>;
420
+ }, "strip", z.ZodTypeAny, {
421
+ recordId?: string | undefined;
422
+ tableId?: string | undefined;
423
+ fieldId?: string | undefined;
424
+ }, {
425
+ recordId?: string | undefined;
426
+ tableId?: string | undefined;
427
+ fieldId?: string | undefined;
428
+ }>>;
429
+ cellValuesByFieldId: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
430
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
431
+ path: z.ZodOptional<z.ZodObject<{
432
+ tableId: z.ZodOptional<z.ZodString>;
433
+ recordId: z.ZodOptional<z.ZodString>;
434
+ fieldId: z.ZodOptional<z.ZodString>;
435
+ }, "strip", z.ZodTypeAny, {
436
+ recordId?: string | undefined;
437
+ tableId?: string | undefined;
438
+ fieldId?: string | undefined;
439
+ }, {
440
+ recordId?: string | undefined;
441
+ tableId?: string | undefined;
442
+ fieldId?: string | undefined;
443
+ }>>;
444
+ cellValuesByFieldId: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
445
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
446
+ path: z.ZodOptional<z.ZodObject<{
447
+ tableId: z.ZodOptional<z.ZodString>;
448
+ recordId: z.ZodOptional<z.ZodString>;
449
+ fieldId: z.ZodOptional<z.ZodString>;
450
+ }, "strip", z.ZodTypeAny, {
451
+ recordId?: string | undefined;
452
+ tableId?: string | undefined;
453
+ fieldId?: string | undefined;
454
+ }, {
455
+ recordId?: string | undefined;
456
+ tableId?: string | undefined;
457
+ fieldId?: string | undefined;
458
+ }>>;
459
+ cellValuesByFieldId: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
460
+ }, z.ZodTypeAny, "passthrough">>, "many">>;
461
+ changedTablesById: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
462
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
463
+ timestamp: z.ZodString;
464
+ baseTransactionNumber: z.ZodOptional<z.ZodNumber>;
465
+ changes: z.ZodOptional<z.ZodArray<z.ZodObject<{
466
+ path: z.ZodOptional<z.ZodObject<{
467
+ tableId: z.ZodOptional<z.ZodString>;
468
+ recordId: z.ZodOptional<z.ZodString>;
469
+ fieldId: z.ZodOptional<z.ZodString>;
470
+ }, "strip", z.ZodTypeAny, {
471
+ recordId?: string | undefined;
472
+ tableId?: string | undefined;
473
+ fieldId?: string | undefined;
474
+ }, {
475
+ recordId?: string | undefined;
476
+ tableId?: string | undefined;
477
+ fieldId?: string | undefined;
478
+ }>>;
479
+ cellValuesByFieldId: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
480
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
481
+ path: z.ZodOptional<z.ZodObject<{
482
+ tableId: z.ZodOptional<z.ZodString>;
483
+ recordId: z.ZodOptional<z.ZodString>;
484
+ fieldId: z.ZodOptional<z.ZodString>;
485
+ }, "strip", z.ZodTypeAny, {
486
+ recordId?: string | undefined;
487
+ tableId?: string | undefined;
488
+ fieldId?: string | undefined;
489
+ }, {
490
+ recordId?: string | undefined;
491
+ tableId?: string | undefined;
492
+ fieldId?: string | undefined;
493
+ }>>;
494
+ cellValuesByFieldId: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
495
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
496
+ path: z.ZodOptional<z.ZodObject<{
497
+ tableId: z.ZodOptional<z.ZodString>;
498
+ recordId: z.ZodOptional<z.ZodString>;
499
+ fieldId: z.ZodOptional<z.ZodString>;
500
+ }, "strip", z.ZodTypeAny, {
501
+ recordId?: string | undefined;
502
+ tableId?: string | undefined;
503
+ fieldId?: string | undefined;
504
+ }, {
505
+ recordId?: string | undefined;
506
+ tableId?: string | undefined;
507
+ fieldId?: string | undefined;
508
+ }>>;
509
+ cellValuesByFieldId: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
510
+ }, z.ZodTypeAny, "passthrough">>, "many">>;
511
+ changedTablesById: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
512
+ }, z.ZodTypeAny, "passthrough">>, "many">>;
513
+ }, "strip", z.ZodTypeAny, {
514
+ payloads: z.objectOutputType<{
515
+ timestamp: z.ZodString;
516
+ baseTransactionNumber: z.ZodOptional<z.ZodNumber>;
517
+ changes: z.ZodOptional<z.ZodArray<z.ZodObject<{
518
+ path: z.ZodOptional<z.ZodObject<{
519
+ tableId: z.ZodOptional<z.ZodString>;
520
+ recordId: z.ZodOptional<z.ZodString>;
521
+ fieldId: z.ZodOptional<z.ZodString>;
522
+ }, "strip", z.ZodTypeAny, {
523
+ recordId?: string | undefined;
524
+ tableId?: string | undefined;
525
+ fieldId?: string | undefined;
526
+ }, {
527
+ recordId?: string | undefined;
528
+ tableId?: string | undefined;
529
+ fieldId?: string | undefined;
530
+ }>>;
531
+ cellValuesByFieldId: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
532
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
533
+ path: z.ZodOptional<z.ZodObject<{
534
+ tableId: z.ZodOptional<z.ZodString>;
535
+ recordId: z.ZodOptional<z.ZodString>;
536
+ fieldId: z.ZodOptional<z.ZodString>;
537
+ }, "strip", z.ZodTypeAny, {
538
+ recordId?: string | undefined;
539
+ tableId?: string | undefined;
540
+ fieldId?: string | undefined;
541
+ }, {
542
+ recordId?: string | undefined;
543
+ tableId?: string | undefined;
544
+ fieldId?: string | undefined;
545
+ }>>;
546
+ cellValuesByFieldId: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
547
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
548
+ path: z.ZodOptional<z.ZodObject<{
549
+ tableId: z.ZodOptional<z.ZodString>;
550
+ recordId: z.ZodOptional<z.ZodString>;
551
+ fieldId: z.ZodOptional<z.ZodString>;
552
+ }, "strip", z.ZodTypeAny, {
553
+ recordId?: string | undefined;
554
+ tableId?: string | undefined;
555
+ fieldId?: string | undefined;
556
+ }, {
557
+ recordId?: string | undefined;
558
+ tableId?: string | undefined;
559
+ fieldId?: string | undefined;
560
+ }>>;
561
+ cellValuesByFieldId: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
562
+ }, z.ZodTypeAny, "passthrough">>, "many">>;
563
+ changedTablesById: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
564
+ }, z.ZodTypeAny, "passthrough">[];
565
+ cursorForNextPayload?: number | undefined;
566
+ }, {
567
+ cursorForNextPayload?: number | undefined;
568
+ payloads?: z.objectInputType<{
569
+ timestamp: z.ZodString;
570
+ baseTransactionNumber: z.ZodOptional<z.ZodNumber>;
571
+ changes: z.ZodOptional<z.ZodArray<z.ZodObject<{
572
+ path: z.ZodOptional<z.ZodObject<{
573
+ tableId: z.ZodOptional<z.ZodString>;
574
+ recordId: z.ZodOptional<z.ZodString>;
575
+ fieldId: z.ZodOptional<z.ZodString>;
576
+ }, "strip", z.ZodTypeAny, {
577
+ recordId?: string | undefined;
578
+ tableId?: string | undefined;
579
+ fieldId?: string | undefined;
580
+ }, {
581
+ recordId?: string | undefined;
582
+ tableId?: string | undefined;
583
+ fieldId?: string | undefined;
584
+ }>>;
585
+ cellValuesByFieldId: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
586
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
587
+ path: z.ZodOptional<z.ZodObject<{
588
+ tableId: z.ZodOptional<z.ZodString>;
589
+ recordId: z.ZodOptional<z.ZodString>;
590
+ fieldId: z.ZodOptional<z.ZodString>;
591
+ }, "strip", z.ZodTypeAny, {
592
+ recordId?: string | undefined;
593
+ tableId?: string | undefined;
594
+ fieldId?: string | undefined;
595
+ }, {
596
+ recordId?: string | undefined;
597
+ tableId?: string | undefined;
598
+ fieldId?: string | undefined;
599
+ }>>;
600
+ cellValuesByFieldId: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
601
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
602
+ path: z.ZodOptional<z.ZodObject<{
603
+ tableId: z.ZodOptional<z.ZodString>;
604
+ recordId: z.ZodOptional<z.ZodString>;
605
+ fieldId: z.ZodOptional<z.ZodString>;
606
+ }, "strip", z.ZodTypeAny, {
607
+ recordId?: string | undefined;
608
+ tableId?: string | undefined;
609
+ fieldId?: string | undefined;
610
+ }, {
611
+ recordId?: string | undefined;
612
+ tableId?: string | undefined;
613
+ fieldId?: string | undefined;
614
+ }>>;
615
+ cellValuesByFieldId: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
616
+ }, z.ZodTypeAny, "passthrough">>, "many">>;
617
+ changedTablesById: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
618
+ }, z.ZodTypeAny, "passthrough">[] | undefined;
619
+ }>;
620
+ export type AirtableWebhookPayloadsResponse = z.infer<typeof AirtableWebhookPayloadsResponseSchema>;
621
+ export declare function createAirtableMatch(): CorsairWebhookMatcher;
622
+ export declare function verifyAirtableWebhookSignature(request: WebhookRequest<unknown>, secret: string): {
623
+ valid: boolean;
624
+ error?: string;
625
+ };
626
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../webhooks/types.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,KAAK,EACX,qBAAqB,EAErB,cAAc,EACd,MAAM,cAAc,CAAC;AAItB,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAavC,CAAC;AACH,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAC3C,OAAO,4BAA4B,CACnC,CAAC;AAEF,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EASvC,CAAC;AACH,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAC3C,OAAO,4BAA4B,CACnC,CAAC;AAIF,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAS9B,CAAC;AACH,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAIhE,MAAM,MAAM,sBAAsB,GAAG;IACpC,KAAK,EAAE,aAAa,CAAC;CACrB,CAAC;AAIF,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAA+B,CAAC;AA0BvE,eAAO,MAAM,qCAAqC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAGhD,CAAC;AAEH,MAAM,MAAM,+BAA+B,GAAG,CAAC,CAAC,KAAK,CACpD,OAAO,qCAAqC,CAC5C,CAAC;AASF,wBAAgB,mBAAmB,IAAI,qBAAqB,CAW3D;AAGD,wBAAgB,8BAA8B,CAC7C,OAAO,EAAE,cAAc,CAAC,OAAO,CAAC,EAChC,MAAM,EAAE,MAAM,GACZ;IAAE,KAAK,EAAE,OAAO,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAA;CAAE,CA+CpC"}
package/package.json ADDED
@@ -0,0 +1,40 @@
1
+ {
2
+ "name": "@corsair-dev/airtable",
3
+ "version": "0.1.0",
4
+ "description": "Airtable plugin for Corsair",
5
+ "type": "module",
6
+ "main": "./dist/index.js",
7
+ "module": "./dist/index.js",
8
+ "types": "./dist/index.d.ts",
9
+ "exports": {
10
+ ".": {
11
+ "dev-source": "./index.ts",
12
+ "types": "./dist/index.d.ts",
13
+ "default": "./dist/index.js"
14
+ }
15
+ },
16
+ "peerDependencies": {
17
+ "corsair": ">=0.1.0",
18
+ "zod": "^3.0.0"
19
+ },
20
+ "devDependencies": {
21
+ "tsup": "^8.0.1",
22
+ "typescript": "^5.9.3",
23
+ "zod": "^3.25.76",
24
+ "corsair": "0.1.48"
25
+ },
26
+ "keywords": [
27
+ "corsair",
28
+ "airtable",
29
+ "plugin"
30
+ ],
31
+ "author": "",
32
+ "license": "Apache-2.0",
33
+ "files": [
34
+ "dist"
35
+ ],
36
+ "scripts": {
37
+ "build": "rm -rf dist && tsc --build --force && tsup",
38
+ "typecheck": "tsc --noEmit"
39
+ }
40
+ }