@automate.ax/catalog 0.116.0 → 0.118.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/catalog.d.ts CHANGED
@@ -752,10 +752,31 @@ export declare const tidycalService: {
752
752
  readonly id: "oauth";
753
753
  readonly name: "OAuth";
754
754
  readonly type: "redirect";
755
+ }, {
756
+ readonly credentialUrl: "https://tidycal.com/integrations/advanced";
757
+ readonly fields: readonly [{
758
+ readonly input: "password";
759
+ readonly label: "Personal access token";
760
+ readonly name: "apiKey";
761
+ readonly placeholder: "Paste your TidyCal personal access token";
762
+ readonly required: true;
763
+ }];
764
+ readonly id: "personal-access-token";
765
+ readonly name: "Personal access token";
766
+ readonly type: "form";
755
767
  }];
756
- readonly description: "Connect a TidyCal account.";
768
+ readonly connectionNotice: {
769
+ readonly action: {
770
+ readonly href: "https://help.tidycal.com/article/739-faq";
771
+ readonly label: "Review API requirements";
772
+ };
773
+ readonly description: "TidyCal API access requires an Individual, Agency, or Pro plan.";
774
+ readonly title: "Paid TidyCal plan required";
775
+ };
776
+ readonly description: "Connect TidyCal with OAuth or a personal access token.";
757
777
  readonly id: "tidycal";
758
778
  readonly name: "TidyCal";
779
+ readonly preferredConnectionMethodId: "oauth";
759
780
  };
760
781
  export declare const togetheraiService: {
761
782
  readonly id: "togetherai";
@@ -1585,10 +1606,31 @@ export declare const integrationCatalog: readonly [{
1585
1606
  readonly id: "oauth";
1586
1607
  readonly name: "OAuth";
1587
1608
  readonly type: "redirect";
1609
+ }, {
1610
+ readonly credentialUrl: "https://tidycal.com/integrations/advanced";
1611
+ readonly fields: readonly [{
1612
+ readonly input: "password";
1613
+ readonly label: "Personal access token";
1614
+ readonly name: "apiKey";
1615
+ readonly placeholder: "Paste your TidyCal personal access token";
1616
+ readonly required: true;
1617
+ }];
1618
+ readonly id: "personal-access-token";
1619
+ readonly name: "Personal access token";
1620
+ readonly type: "form";
1588
1621
  }];
1589
- readonly description: "Connect a TidyCal account.";
1622
+ readonly connectionNotice: {
1623
+ readonly action: {
1624
+ readonly href: "https://help.tidycal.com/article/739-faq";
1625
+ readonly label: "Review API requirements";
1626
+ };
1627
+ readonly description: "TidyCal API access requires an Individual, Agency, or Pro plan.";
1628
+ readonly title: "Paid TidyCal plan required";
1629
+ };
1630
+ readonly description: "Connect TidyCal with OAuth or a personal access token.";
1590
1631
  readonly id: "tidycal";
1591
1632
  readonly name: "TidyCal";
1633
+ readonly preferredConnectionMethodId: "oauth";
1592
1634
  }, {
1593
1635
  readonly id: "togetherai";
1594
1636
  readonly name: string;
package/dist/catalog.js CHANGED
@@ -494,10 +494,36 @@ export const stripeService = defineApiKeyService({
494
494
  placeholder: "sk_test_... or rk_test_...",
495
495
  });
496
496
  export const tidycalService = defineIntegrationService({
497
- connectionMethods: [{ id: "oauth", name: "OAuth", type: "redirect" }],
498
- description: "Connect a TidyCal account.",
497
+ connectionMethods: [
498
+ { id: "oauth", name: "OAuth", type: "redirect" },
499
+ {
500
+ credentialUrl: "https://tidycal.com/integrations/advanced",
501
+ fields: [
502
+ {
503
+ input: "password",
504
+ label: "Personal access token",
505
+ name: "apiKey",
506
+ placeholder: "Paste your TidyCal personal access token",
507
+ required: true,
508
+ },
509
+ ],
510
+ id: "personal-access-token",
511
+ name: "Personal access token",
512
+ type: "form",
513
+ },
514
+ ],
515
+ connectionNotice: {
516
+ action: {
517
+ href: "https://help.tidycal.com/article/739-faq",
518
+ label: "Review API requirements",
519
+ },
520
+ description: "TidyCal API access requires an Individual, Agency, or Pro plan.",
521
+ title: "Paid TidyCal plan required",
522
+ },
523
+ description: "Connect TidyCal with OAuth or a personal access token.",
499
524
  id: "tidycal",
500
525
  name: "TidyCal",
526
+ preferredConnectionMethodId: "oauth",
501
527
  });
502
528
  export const togetheraiService = defineApiKeyService({
503
529
  description: "Connect a Together AI API key.",
@@ -25,6 +25,48 @@ export declare const googleTriggerDefinitions: {
25
25
  readonly icon: "gmail";
26
26
  readonly type: "gmail.label.removed";
27
27
  };
28
+ readonly gmailMailboxChanged: {
29
+ readonly account: {
30
+ readonly connectionOptions: readonly [{
31
+ readonly requiredScopes: readonly [{
32
+ readonly requirements: readonly ["https://mail.google.com/", "https://www.googleapis.com/auth/gmail.modify", "https://www.googleapis.com/auth/gmail.readonly"];
33
+ readonly type: "or";
34
+ }];
35
+ }];
36
+ readonly serviceId: "google";
37
+ };
38
+ readonly icon: "gmail";
39
+ readonly name: "Gmail mailbox changed";
40
+ readonly type: "gmail.mailbox.changed";
41
+ };
42
+ readonly gmailMessageAdded: {
43
+ readonly account: {
44
+ readonly connectionOptions: readonly [{
45
+ readonly requiredScopes: readonly [{
46
+ readonly requirements: readonly ["https://mail.google.com/", "https://www.googleapis.com/auth/gmail.modify", "https://www.googleapis.com/auth/gmail.readonly"];
47
+ readonly type: "or";
48
+ }];
49
+ }];
50
+ readonly serviceId: "google";
51
+ };
52
+ readonly icon: "gmail";
53
+ readonly name: "Gmail message added";
54
+ readonly type: "gmail.message.added";
55
+ };
56
+ readonly gmailMessageDeleted: {
57
+ readonly account: {
58
+ readonly connectionOptions: readonly [{
59
+ readonly requiredScopes: readonly [{
60
+ readonly requirements: readonly ["https://mail.google.com/", "https://www.googleapis.com/auth/gmail.modify", "https://www.googleapis.com/auth/gmail.readonly", "https://www.googleapis.com/auth/gmail.metadata"];
61
+ readonly type: "or";
62
+ }];
63
+ }];
64
+ readonly serviceId: "google";
65
+ };
66
+ readonly icon: "gmail";
67
+ readonly name: "Gmail message deleted";
68
+ readonly type: "gmail.message.deleted";
69
+ };
28
70
  readonly gmailMessageReceived: {
29
71
  readonly account: {
30
72
  readonly connectionOptions: readonly [{
@@ -57,7 +99,7 @@ export declare const googleTriggerDefinitions: {
57
99
  readonly account: {
58
100
  readonly connectionOptions: readonly [{
59
101
  readonly requiredScopes: readonly [{
60
- readonly requirements: readonly ["https://www.googleapis.com/auth/calendar", "https://www.googleapis.com/auth/calendar.readonly", "https://www.googleapis.com/auth/calendar.events", "https://www.googleapis.com/auth/calendar.events.owned", "https://www.googleapis.com/auth/calendar.events.readonly"];
102
+ readonly requirements: readonly ["https://www.googleapis.com/auth/calendar", "https://www.googleapis.com/auth/calendar.app.created", "https://www.googleapis.com/auth/calendar.readonly", "https://www.googleapis.com/auth/calendar.events", "https://www.googleapis.com/auth/calendar.events.freebusy", "https://www.googleapis.com/auth/calendar.events.owned", "https://www.googleapis.com/auth/calendar.events.owned.readonly", "https://www.googleapis.com/auth/calendar.events.public.readonly", "https://www.googleapis.com/auth/calendar.events.readonly"];
61
103
  readonly type: "or";
62
104
  }];
63
105
  }];
@@ -67,11 +109,25 @@ export declare const googleTriggerDefinitions: {
67
109
  readonly name: "Google Calendar event created";
68
110
  readonly type: "googleCalendar.event.created";
69
111
  };
112
+ readonly googleCalendarEventChanged: {
113
+ readonly account: {
114
+ readonly connectionOptions: readonly [{
115
+ readonly requiredScopes: readonly [{
116
+ readonly requirements: readonly ["https://www.googleapis.com/auth/calendar", "https://www.googleapis.com/auth/calendar.app.created", "https://www.googleapis.com/auth/calendar.readonly", "https://www.googleapis.com/auth/calendar.events", "https://www.googleapis.com/auth/calendar.events.freebusy", "https://www.googleapis.com/auth/calendar.events.owned", "https://www.googleapis.com/auth/calendar.events.owned.readonly", "https://www.googleapis.com/auth/calendar.events.public.readonly", "https://www.googleapis.com/auth/calendar.events.readonly"];
117
+ readonly type: "or";
118
+ }];
119
+ }];
120
+ readonly serviceId: "google";
121
+ };
122
+ readonly icon: "google-calendar";
123
+ readonly name: "Google Calendar event changed";
124
+ readonly type: "googleCalendar.event.changed";
125
+ };
70
126
  readonly googleCalendarEventDeleted: {
71
127
  readonly account: {
72
128
  readonly connectionOptions: readonly [{
73
129
  readonly requiredScopes: readonly [{
74
- readonly requirements: readonly ["https://www.googleapis.com/auth/calendar", "https://www.googleapis.com/auth/calendar.readonly", "https://www.googleapis.com/auth/calendar.events", "https://www.googleapis.com/auth/calendar.events.owned", "https://www.googleapis.com/auth/calendar.events.readonly"];
130
+ readonly requirements: readonly ["https://www.googleapis.com/auth/calendar", "https://www.googleapis.com/auth/calendar.app.created", "https://www.googleapis.com/auth/calendar.readonly", "https://www.googleapis.com/auth/calendar.events", "https://www.googleapis.com/auth/calendar.events.freebusy", "https://www.googleapis.com/auth/calendar.events.owned", "https://www.googleapis.com/auth/calendar.events.owned.readonly", "https://www.googleapis.com/auth/calendar.events.public.readonly", "https://www.googleapis.com/auth/calendar.events.readonly"];
75
131
  readonly type: "or";
76
132
  }];
77
133
  }];
@@ -85,7 +141,7 @@ export declare const googleTriggerDefinitions: {
85
141
  readonly account: {
86
142
  readonly connectionOptions: readonly [{
87
143
  readonly requiredScopes: readonly [{
88
- readonly requirements: readonly ["https://www.googleapis.com/auth/calendar", "https://www.googleapis.com/auth/calendar.readonly", "https://www.googleapis.com/auth/calendar.events", "https://www.googleapis.com/auth/calendar.events.owned", "https://www.googleapis.com/auth/calendar.events.readonly"];
144
+ readonly requirements: readonly ["https://www.googleapis.com/auth/calendar", "https://www.googleapis.com/auth/calendar.app.created", "https://www.googleapis.com/auth/calendar.readonly", "https://www.googleapis.com/auth/calendar.events", "https://www.googleapis.com/auth/calendar.events.freebusy", "https://www.googleapis.com/auth/calendar.events.owned", "https://www.googleapis.com/auth/calendar.events.owned.readonly", "https://www.googleapis.com/auth/calendar.events.public.readonly", "https://www.googleapis.com/auth/calendar.events.readonly"];
89
145
  readonly type: "or";
90
146
  }];
91
147
  }];
@@ -113,9 +169,6 @@ export declare const googleTriggerDefinitions: {
113
169
  readonly account: {
114
170
  readonly connectionOptions: readonly [{
115
171
  readonly requiredScopes: readonly [{
116
- readonly requirements: readonly ["https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.file", "https://www.googleapis.com/auth/drive.readonly", "https://www.googleapis.com/auth/forms.body", "https://www.googleapis.com/auth/forms.body.readonly"];
117
- readonly type: "or";
118
- }, {
119
172
  readonly requirements: readonly [{
120
173
  readonly requirements: readonly ["https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.file", "https://www.googleapis.com/auth/forms.responses.readonly"];
121
174
  readonly type: "or";
@@ -15,6 +15,24 @@ const GMAIL_ACCOUNT = {
15
15
  ],
16
16
  serviceId: "google",
17
17
  };
18
+ const GMAIL_DELETION_ACCOUNT = {
19
+ connectionOptions: [
20
+ {
21
+ requiredScopes: [
22
+ {
23
+ requirements: [
24
+ "https://mail.google.com/",
25
+ "https://www.googleapis.com/auth/gmail.modify",
26
+ "https://www.googleapis.com/auth/gmail.readonly",
27
+ "https://www.googleapis.com/auth/gmail.metadata",
28
+ ],
29
+ type: "or",
30
+ },
31
+ ],
32
+ },
33
+ ],
34
+ serviceId: "google",
35
+ };
18
36
  const GOOGLE_CALENDAR_ACCOUNT = {
19
37
  connectionOptions: [
20
38
  {
@@ -22,9 +40,13 @@ const GOOGLE_CALENDAR_ACCOUNT = {
22
40
  {
23
41
  requirements: [
24
42
  "https://www.googleapis.com/auth/calendar",
43
+ "https://www.googleapis.com/auth/calendar.app.created",
25
44
  "https://www.googleapis.com/auth/calendar.readonly",
26
45
  "https://www.googleapis.com/auth/calendar.events",
46
+ "https://www.googleapis.com/auth/calendar.events.freebusy",
27
47
  "https://www.googleapis.com/auth/calendar.events.owned",
48
+ "https://www.googleapis.com/auth/calendar.events.owned.readonly",
49
+ "https://www.googleapis.com/auth/calendar.events.public.readonly",
28
50
  "https://www.googleapis.com/auth/calendar.events.readonly",
29
51
  ],
30
52
  type: "or",
@@ -57,16 +79,6 @@ const GOOGLE_FORM_RESPONSES_ACCOUNT = {
57
79
  connectionOptions: [
58
80
  {
59
81
  requiredScopes: [
60
- {
61
- requirements: [
62
- "https://www.googleapis.com/auth/drive",
63
- "https://www.googleapis.com/auth/drive.file",
64
- "https://www.googleapis.com/auth/drive.readonly",
65
- "https://www.googleapis.com/auth/forms.body",
66
- "https://www.googleapis.com/auth/forms.body.readonly",
67
- ],
68
- type: "or",
69
- },
70
82
  {
71
83
  requirements: [
72
84
  {
@@ -133,6 +145,24 @@ export const googleTriggerDefinitions = {
133
145
  icon: "gmail",
134
146
  type: "gmail.label.removed",
135
147
  },
148
+ gmailMailboxChanged: {
149
+ account: GMAIL_ACCOUNT,
150
+ icon: "gmail",
151
+ name: "Gmail mailbox changed",
152
+ type: "gmail.mailbox.changed",
153
+ },
154
+ gmailMessageAdded: {
155
+ account: GMAIL_ACCOUNT,
156
+ icon: "gmail",
157
+ name: "Gmail message added",
158
+ type: "gmail.message.added",
159
+ },
160
+ gmailMessageDeleted: {
161
+ account: GMAIL_DELETION_ACCOUNT,
162
+ icon: "gmail",
163
+ name: "Gmail message deleted",
164
+ type: "gmail.message.deleted",
165
+ },
136
166
  gmailMessageReceived: {
137
167
  account: GMAIL_ACCOUNT,
138
168
  icon: "gmail",
@@ -151,6 +181,12 @@ export const googleTriggerDefinitions = {
151
181
  name: "Google Calendar event created",
152
182
  type: "googleCalendar.event.created",
153
183
  },
184
+ googleCalendarEventChanged: {
185
+ account: GOOGLE_CALENDAR_ACCOUNT,
186
+ icon: "google-calendar",
187
+ name: "Google Calendar event changed",
188
+ type: "googleCalendar.event.changed",
189
+ },
154
190
  googleCalendarEventDeleted: {
155
191
  account: GOOGLE_CALENDAR_ACCOUNT,
156
192
  icon: "google-calendar",
@@ -2805,6 +2805,48 @@ export declare const triggerDefinitions: {
2805
2805
  readonly icon: "gmail";
2806
2806
  readonly type: "gmail.label.removed";
2807
2807
  };
2808
+ readonly gmailMailboxChanged: {
2809
+ readonly account: {
2810
+ readonly connectionOptions: readonly [{
2811
+ readonly requiredScopes: readonly [{
2812
+ readonly requirements: readonly ["https://mail.google.com/", "https://www.googleapis.com/auth/gmail.modify", "https://www.googleapis.com/auth/gmail.readonly"];
2813
+ readonly type: "or";
2814
+ }];
2815
+ }];
2816
+ readonly serviceId: "google";
2817
+ };
2818
+ readonly icon: "gmail";
2819
+ readonly name: "Gmail mailbox changed";
2820
+ readonly type: "gmail.mailbox.changed";
2821
+ };
2822
+ readonly gmailMessageAdded: {
2823
+ readonly account: {
2824
+ readonly connectionOptions: readonly [{
2825
+ readonly requiredScopes: readonly [{
2826
+ readonly requirements: readonly ["https://mail.google.com/", "https://www.googleapis.com/auth/gmail.modify", "https://www.googleapis.com/auth/gmail.readonly"];
2827
+ readonly type: "or";
2828
+ }];
2829
+ }];
2830
+ readonly serviceId: "google";
2831
+ };
2832
+ readonly icon: "gmail";
2833
+ readonly name: "Gmail message added";
2834
+ readonly type: "gmail.message.added";
2835
+ };
2836
+ readonly gmailMessageDeleted: {
2837
+ readonly account: {
2838
+ readonly connectionOptions: readonly [{
2839
+ readonly requiredScopes: readonly [{
2840
+ readonly requirements: readonly ["https://mail.google.com/", "https://www.googleapis.com/auth/gmail.modify", "https://www.googleapis.com/auth/gmail.readonly", "https://www.googleapis.com/auth/gmail.metadata"];
2841
+ readonly type: "or";
2842
+ }];
2843
+ }];
2844
+ readonly serviceId: "google";
2845
+ };
2846
+ readonly icon: "gmail";
2847
+ readonly name: "Gmail message deleted";
2848
+ readonly type: "gmail.message.deleted";
2849
+ };
2808
2850
  readonly gmailMessageReceived: {
2809
2851
  readonly account: {
2810
2852
  readonly connectionOptions: readonly [{
@@ -2837,7 +2879,7 @@ export declare const triggerDefinitions: {
2837
2879
  readonly account: {
2838
2880
  readonly connectionOptions: readonly [{
2839
2881
  readonly requiredScopes: readonly [{
2840
- readonly requirements: readonly ["https://www.googleapis.com/auth/calendar", "https://www.googleapis.com/auth/calendar.readonly", "https://www.googleapis.com/auth/calendar.events", "https://www.googleapis.com/auth/calendar.events.owned", "https://www.googleapis.com/auth/calendar.events.readonly"];
2882
+ readonly requirements: readonly ["https://www.googleapis.com/auth/calendar", "https://www.googleapis.com/auth/calendar.app.created", "https://www.googleapis.com/auth/calendar.readonly", "https://www.googleapis.com/auth/calendar.events", "https://www.googleapis.com/auth/calendar.events.freebusy", "https://www.googleapis.com/auth/calendar.events.owned", "https://www.googleapis.com/auth/calendar.events.owned.readonly", "https://www.googleapis.com/auth/calendar.events.public.readonly", "https://www.googleapis.com/auth/calendar.events.readonly"];
2841
2883
  readonly type: "or";
2842
2884
  }];
2843
2885
  }];
@@ -2847,11 +2889,25 @@ export declare const triggerDefinitions: {
2847
2889
  readonly name: "Google Calendar event created";
2848
2890
  readonly type: "googleCalendar.event.created";
2849
2891
  };
2892
+ readonly googleCalendarEventChanged: {
2893
+ readonly account: {
2894
+ readonly connectionOptions: readonly [{
2895
+ readonly requiredScopes: readonly [{
2896
+ readonly requirements: readonly ["https://www.googleapis.com/auth/calendar", "https://www.googleapis.com/auth/calendar.app.created", "https://www.googleapis.com/auth/calendar.readonly", "https://www.googleapis.com/auth/calendar.events", "https://www.googleapis.com/auth/calendar.events.freebusy", "https://www.googleapis.com/auth/calendar.events.owned", "https://www.googleapis.com/auth/calendar.events.owned.readonly", "https://www.googleapis.com/auth/calendar.events.public.readonly", "https://www.googleapis.com/auth/calendar.events.readonly"];
2897
+ readonly type: "or";
2898
+ }];
2899
+ }];
2900
+ readonly serviceId: "google";
2901
+ };
2902
+ readonly icon: "google-calendar";
2903
+ readonly name: "Google Calendar event changed";
2904
+ readonly type: "googleCalendar.event.changed";
2905
+ };
2850
2906
  readonly googleCalendarEventDeleted: {
2851
2907
  readonly account: {
2852
2908
  readonly connectionOptions: readonly [{
2853
2909
  readonly requiredScopes: readonly [{
2854
- readonly requirements: readonly ["https://www.googleapis.com/auth/calendar", "https://www.googleapis.com/auth/calendar.readonly", "https://www.googleapis.com/auth/calendar.events", "https://www.googleapis.com/auth/calendar.events.owned", "https://www.googleapis.com/auth/calendar.events.readonly"];
2910
+ readonly requirements: readonly ["https://www.googleapis.com/auth/calendar", "https://www.googleapis.com/auth/calendar.app.created", "https://www.googleapis.com/auth/calendar.readonly", "https://www.googleapis.com/auth/calendar.events", "https://www.googleapis.com/auth/calendar.events.freebusy", "https://www.googleapis.com/auth/calendar.events.owned", "https://www.googleapis.com/auth/calendar.events.owned.readonly", "https://www.googleapis.com/auth/calendar.events.public.readonly", "https://www.googleapis.com/auth/calendar.events.readonly"];
2855
2911
  readonly type: "or";
2856
2912
  }];
2857
2913
  }];
@@ -2865,7 +2921,7 @@ export declare const triggerDefinitions: {
2865
2921
  readonly account: {
2866
2922
  readonly connectionOptions: readonly [{
2867
2923
  readonly requiredScopes: readonly [{
2868
- readonly requirements: readonly ["https://www.googleapis.com/auth/calendar", "https://www.googleapis.com/auth/calendar.readonly", "https://www.googleapis.com/auth/calendar.events", "https://www.googleapis.com/auth/calendar.events.owned", "https://www.googleapis.com/auth/calendar.events.readonly"];
2924
+ readonly requirements: readonly ["https://www.googleapis.com/auth/calendar", "https://www.googleapis.com/auth/calendar.app.created", "https://www.googleapis.com/auth/calendar.readonly", "https://www.googleapis.com/auth/calendar.events", "https://www.googleapis.com/auth/calendar.events.freebusy", "https://www.googleapis.com/auth/calendar.events.owned", "https://www.googleapis.com/auth/calendar.events.owned.readonly", "https://www.googleapis.com/auth/calendar.events.public.readonly", "https://www.googleapis.com/auth/calendar.events.readonly"];
2869
2925
  readonly type: "or";
2870
2926
  }];
2871
2927
  }];
@@ -2893,9 +2949,6 @@ export declare const triggerDefinitions: {
2893
2949
  readonly account: {
2894
2950
  readonly connectionOptions: readonly [{
2895
2951
  readonly requiredScopes: readonly [{
2896
- readonly requirements: readonly ["https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.file", "https://www.googleapis.com/auth/drive.readonly", "https://www.googleapis.com/auth/forms.body", "https://www.googleapis.com/auth/forms.body.readonly"];
2897
- readonly type: "or";
2898
- }, {
2899
2952
  readonly requirements: readonly [{
2900
2953
  readonly requirements: readonly ["https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.file", "https://www.googleapis.com/auth/forms.responses.readonly"];
2901
2954
  readonly type: "or";
@@ -9404,6 +9457,45 @@ export declare const triggerCatalog: ({
9404
9457
  };
9405
9458
  icon: "gmail";
9406
9459
  type: "gmail.label.removed";
9460
+ } | {
9461
+ name: string;
9462
+ account: {
9463
+ readonly connectionOptions: readonly [{
9464
+ readonly requiredScopes: readonly [{
9465
+ readonly requirements: readonly ["https://mail.google.com/", "https://www.googleapis.com/auth/gmail.modify", "https://www.googleapis.com/auth/gmail.readonly"];
9466
+ readonly type: "or";
9467
+ }];
9468
+ }];
9469
+ readonly serviceId: "google";
9470
+ };
9471
+ icon: "gmail";
9472
+ type: "gmail.mailbox.changed";
9473
+ } | {
9474
+ name: string;
9475
+ account: {
9476
+ readonly connectionOptions: readonly [{
9477
+ readonly requiredScopes: readonly [{
9478
+ readonly requirements: readonly ["https://mail.google.com/", "https://www.googleapis.com/auth/gmail.modify", "https://www.googleapis.com/auth/gmail.readonly"];
9479
+ readonly type: "or";
9480
+ }];
9481
+ }];
9482
+ readonly serviceId: "google";
9483
+ };
9484
+ icon: "gmail";
9485
+ type: "gmail.message.added";
9486
+ } | {
9487
+ name: string;
9488
+ account: {
9489
+ readonly connectionOptions: readonly [{
9490
+ readonly requiredScopes: readonly [{
9491
+ readonly requirements: readonly ["https://mail.google.com/", "https://www.googleapis.com/auth/gmail.modify", "https://www.googleapis.com/auth/gmail.readonly", "https://www.googleapis.com/auth/gmail.metadata"];
9492
+ readonly type: "or";
9493
+ }];
9494
+ }];
9495
+ readonly serviceId: "google";
9496
+ };
9497
+ icon: "gmail";
9498
+ type: "gmail.message.deleted";
9407
9499
  } | {
9408
9500
  name: string;
9409
9501
  account: {
@@ -9435,7 +9527,7 @@ export declare const triggerCatalog: ({
9435
9527
  account: {
9436
9528
  readonly connectionOptions: readonly [{
9437
9529
  readonly requiredScopes: readonly [{
9438
- readonly requirements: readonly ["https://www.googleapis.com/auth/calendar", "https://www.googleapis.com/auth/calendar.readonly", "https://www.googleapis.com/auth/calendar.events", "https://www.googleapis.com/auth/calendar.events.owned", "https://www.googleapis.com/auth/calendar.events.readonly"];
9530
+ readonly requirements: readonly ["https://www.googleapis.com/auth/calendar", "https://www.googleapis.com/auth/calendar.app.created", "https://www.googleapis.com/auth/calendar.readonly", "https://www.googleapis.com/auth/calendar.events", "https://www.googleapis.com/auth/calendar.events.freebusy", "https://www.googleapis.com/auth/calendar.events.owned", "https://www.googleapis.com/auth/calendar.events.owned.readonly", "https://www.googleapis.com/auth/calendar.events.public.readonly", "https://www.googleapis.com/auth/calendar.events.readonly"];
9439
9531
  readonly type: "or";
9440
9532
  }];
9441
9533
  }];
@@ -9448,7 +9540,20 @@ export declare const triggerCatalog: ({
9448
9540
  account: {
9449
9541
  readonly connectionOptions: readonly [{
9450
9542
  readonly requiredScopes: readonly [{
9451
- readonly requirements: readonly ["https://www.googleapis.com/auth/calendar", "https://www.googleapis.com/auth/calendar.readonly", "https://www.googleapis.com/auth/calendar.events", "https://www.googleapis.com/auth/calendar.events.owned", "https://www.googleapis.com/auth/calendar.events.readonly"];
9543
+ readonly requirements: readonly ["https://www.googleapis.com/auth/calendar", "https://www.googleapis.com/auth/calendar.app.created", "https://www.googleapis.com/auth/calendar.readonly", "https://www.googleapis.com/auth/calendar.events", "https://www.googleapis.com/auth/calendar.events.freebusy", "https://www.googleapis.com/auth/calendar.events.owned", "https://www.googleapis.com/auth/calendar.events.owned.readonly", "https://www.googleapis.com/auth/calendar.events.public.readonly", "https://www.googleapis.com/auth/calendar.events.readonly"];
9544
+ readonly type: "or";
9545
+ }];
9546
+ }];
9547
+ readonly serviceId: "google";
9548
+ };
9549
+ icon: "google-calendar";
9550
+ type: "googleCalendar.event.changed";
9551
+ } | {
9552
+ name: string;
9553
+ account: {
9554
+ readonly connectionOptions: readonly [{
9555
+ readonly requiredScopes: readonly [{
9556
+ readonly requirements: readonly ["https://www.googleapis.com/auth/calendar", "https://www.googleapis.com/auth/calendar.app.created", "https://www.googleapis.com/auth/calendar.readonly", "https://www.googleapis.com/auth/calendar.events", "https://www.googleapis.com/auth/calendar.events.freebusy", "https://www.googleapis.com/auth/calendar.events.owned", "https://www.googleapis.com/auth/calendar.events.owned.readonly", "https://www.googleapis.com/auth/calendar.events.public.readonly", "https://www.googleapis.com/auth/calendar.events.readonly"];
9452
9557
  readonly type: "or";
9453
9558
  }];
9454
9559
  }];
@@ -9461,7 +9566,7 @@ export declare const triggerCatalog: ({
9461
9566
  account: {
9462
9567
  readonly connectionOptions: readonly [{
9463
9568
  readonly requiredScopes: readonly [{
9464
- readonly requirements: readonly ["https://www.googleapis.com/auth/calendar", "https://www.googleapis.com/auth/calendar.readonly", "https://www.googleapis.com/auth/calendar.events", "https://www.googleapis.com/auth/calendar.events.owned", "https://www.googleapis.com/auth/calendar.events.readonly"];
9569
+ readonly requirements: readonly ["https://www.googleapis.com/auth/calendar", "https://www.googleapis.com/auth/calendar.app.created", "https://www.googleapis.com/auth/calendar.readonly", "https://www.googleapis.com/auth/calendar.events", "https://www.googleapis.com/auth/calendar.events.freebusy", "https://www.googleapis.com/auth/calendar.events.owned", "https://www.googleapis.com/auth/calendar.events.owned.readonly", "https://www.googleapis.com/auth/calendar.events.public.readonly", "https://www.googleapis.com/auth/calendar.events.readonly"];
9465
9570
  readonly type: "or";
9466
9571
  }];
9467
9572
  }];
@@ -9487,9 +9592,6 @@ export declare const triggerCatalog: ({
9487
9592
  account: {
9488
9593
  readonly connectionOptions: readonly [{
9489
9594
  readonly requiredScopes: readonly [{
9490
- readonly requirements: readonly ["https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.file", "https://www.googleapis.com/auth/drive.readonly", "https://www.googleapis.com/auth/forms.body", "https://www.googleapis.com/auth/forms.body.readonly"];
9491
- readonly type: "or";
9492
- }, {
9493
9595
  readonly requirements: readonly [{
9494
9596
  readonly requirements: readonly ["https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.file", "https://www.googleapis.com/auth/forms.responses.readonly"];
9495
9597
  readonly type: "or";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@automate.ax/catalog",
3
- "version": "0.116.0",
3
+ "version": "0.118.0",
4
4
  "description": "Shared integration service and trigger definitions for Automate.ax.",
5
5
  "license": "MIT",
6
6
  "repository": {
package/src/catalog.ts CHANGED
@@ -548,10 +548,37 @@ export const stripeService = defineApiKeyService({
548
548
  })
549
549
 
550
550
  export const tidycalService = defineIntegrationService({
551
- connectionMethods: [{ id: "oauth", name: "OAuth", type: "redirect" }],
552
- description: "Connect a TidyCal account.",
551
+ connectionMethods: [
552
+ { id: "oauth", name: "OAuth", type: "redirect" },
553
+ {
554
+ credentialUrl: "https://tidycal.com/integrations/advanced",
555
+ fields: [
556
+ {
557
+ input: "password",
558
+ label: "Personal access token",
559
+ name: "apiKey",
560
+ placeholder: "Paste your TidyCal personal access token",
561
+ required: true,
562
+ },
563
+ ],
564
+ id: "personal-access-token",
565
+ name: "Personal access token",
566
+ type: "form",
567
+ },
568
+ ],
569
+ connectionNotice: {
570
+ action: {
571
+ href: "https://help.tidycal.com/article/739-faq",
572
+ label: "Review API requirements",
573
+ },
574
+ description:
575
+ "TidyCal API access requires an Individual, Agency, or Pro plan.",
576
+ title: "Paid TidyCal plan required",
577
+ },
578
+ description: "Connect TidyCal with OAuth or a personal access token.",
553
579
  id: "tidycal",
554
580
  name: "TidyCal",
581
+ preferredConnectionMethodId: "oauth",
555
582
  })
556
583
 
557
584
  export const togetheraiService = defineApiKeyService({
@@ -18,6 +18,25 @@ const GMAIL_ACCOUNT = {
18
18
  serviceId: "google",
19
19
  } as const satisfies IntegrationAccountRequirement
20
20
 
21
+ const GMAIL_DELETION_ACCOUNT = {
22
+ connectionOptions: [
23
+ {
24
+ requiredScopes: [
25
+ {
26
+ requirements: [
27
+ "https://mail.google.com/",
28
+ "https://www.googleapis.com/auth/gmail.modify",
29
+ "https://www.googleapis.com/auth/gmail.readonly",
30
+ "https://www.googleapis.com/auth/gmail.metadata",
31
+ ],
32
+ type: "or",
33
+ },
34
+ ],
35
+ },
36
+ ],
37
+ serviceId: "google",
38
+ } as const satisfies IntegrationAccountRequirement
39
+
21
40
  const GOOGLE_CALENDAR_ACCOUNT = {
22
41
  connectionOptions: [
23
42
  {
@@ -25,9 +44,13 @@ const GOOGLE_CALENDAR_ACCOUNT = {
25
44
  {
26
45
  requirements: [
27
46
  "https://www.googleapis.com/auth/calendar",
47
+ "https://www.googleapis.com/auth/calendar.app.created",
28
48
  "https://www.googleapis.com/auth/calendar.readonly",
29
49
  "https://www.googleapis.com/auth/calendar.events",
50
+ "https://www.googleapis.com/auth/calendar.events.freebusy",
30
51
  "https://www.googleapis.com/auth/calendar.events.owned",
52
+ "https://www.googleapis.com/auth/calendar.events.owned.readonly",
53
+ "https://www.googleapis.com/auth/calendar.events.public.readonly",
31
54
  "https://www.googleapis.com/auth/calendar.events.readonly",
32
55
  ],
33
56
  type: "or",
@@ -62,16 +85,6 @@ const GOOGLE_FORM_RESPONSES_ACCOUNT = {
62
85
  connectionOptions: [
63
86
  {
64
87
  requiredScopes: [
65
- {
66
- requirements: [
67
- "https://www.googleapis.com/auth/drive",
68
- "https://www.googleapis.com/auth/drive.file",
69
- "https://www.googleapis.com/auth/drive.readonly",
70
- "https://www.googleapis.com/auth/forms.body",
71
- "https://www.googleapis.com/auth/forms.body.readonly",
72
- ],
73
- type: "or",
74
- },
75
88
  {
76
89
  requirements: [
77
90
  {
@@ -141,6 +154,24 @@ export const googleTriggerDefinitions = {
141
154
  icon: "gmail",
142
155
  type: "gmail.label.removed",
143
156
  },
157
+ gmailMailboxChanged: {
158
+ account: GMAIL_ACCOUNT,
159
+ icon: "gmail",
160
+ name: "Gmail mailbox changed",
161
+ type: "gmail.mailbox.changed",
162
+ },
163
+ gmailMessageAdded: {
164
+ account: GMAIL_ACCOUNT,
165
+ icon: "gmail",
166
+ name: "Gmail message added",
167
+ type: "gmail.message.added",
168
+ },
169
+ gmailMessageDeleted: {
170
+ account: GMAIL_DELETION_ACCOUNT,
171
+ icon: "gmail",
172
+ name: "Gmail message deleted",
173
+ type: "gmail.message.deleted",
174
+ },
144
175
  gmailMessageReceived: {
145
176
  account: GMAIL_ACCOUNT,
146
177
  icon: "gmail",
@@ -159,6 +190,12 @@ export const googleTriggerDefinitions = {
159
190
  name: "Google Calendar event created",
160
191
  type: "googleCalendar.event.created",
161
192
  },
193
+ googleCalendarEventChanged: {
194
+ account: GOOGLE_CALENDAR_ACCOUNT,
195
+ icon: "google-calendar",
196
+ name: "Google Calendar event changed",
197
+ type: "googleCalendar.event.changed",
198
+ },
162
199
  googleCalendarEventDeleted: {
163
200
  account: GOOGLE_CALENDAR_ACCOUNT,
164
201
  icon: "google-calendar",