automate.ax 0.3.1 → 0.4.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.
Files changed (172) hide show
  1. package/README.md +58 -6
  2. package/dist/automation/account-planning.d.ts +17 -0
  3. package/dist/automation/account-planning.d.ts.map +1 -0
  4. package/dist/automation/account-planning.js +48 -0
  5. package/dist/automation/actions.d.ts +2 -1
  6. package/dist/automation/actions.d.ts.map +1 -1
  7. package/dist/automation/actions.js +3 -36
  8. package/dist/cli/commands/deploy.d.ts.map +1 -1
  9. package/dist/cli/commands/deploy.js +4 -4
  10. package/dist/cli/usage.d.ts +2 -1
  11. package/dist/cli/usage.d.ts.map +1 -1
  12. package/dist/cli/usage.js +2 -1
  13. package/dist/components/core/actions.d.ts +29 -0
  14. package/dist/components/core/actions.d.ts.map +1 -0
  15. package/dist/components/core/actions.js +57 -0
  16. package/dist/components/core/index.d.ts +3 -0
  17. package/dist/components/core/index.d.ts.map +1 -0
  18. package/dist/components/core/index.js +2 -0
  19. package/dist/components/core/triggers.d.ts +21 -0
  20. package/dist/components/core/triggers.d.ts.map +1 -0
  21. package/dist/components/core/triggers.js +9 -0
  22. package/dist/components/gmail/actions/add-label.d.ts +12 -0
  23. package/dist/components/gmail/actions/add-label.d.ts.map +1 -0
  24. package/dist/components/gmail/actions/add-label.js +33 -0
  25. package/dist/components/gmail/actions/archive.d.ts +9 -0
  26. package/dist/components/gmail/actions/archive.d.ts.map +1 -0
  27. package/dist/components/gmail/actions/archive.js +7 -0
  28. package/dist/components/gmail/actions/create-label.d.ts +43 -0
  29. package/dist/components/gmail/actions/create-label.d.ts.map +1 -0
  30. package/dist/components/gmail/actions/create-label.js +27 -0
  31. package/dist/components/gmail/actions/delete-draft.d.ts +6 -0
  32. package/dist/components/gmail/actions/delete-draft.d.ts.map +1 -0
  33. package/dist/components/gmail/actions/delete-draft.js +20 -0
  34. package/dist/components/gmail/actions/delete-label.d.ts +6 -0
  35. package/dist/components/gmail/actions/delete-label.d.ts.map +1 -0
  36. package/dist/components/gmail/actions/delete-label.js +22 -0
  37. package/dist/components/gmail/actions/draft-email.d.ts +66 -0
  38. package/dist/components/gmail/actions/draft-email.d.ts.map +1 -0
  39. package/dist/components/gmail/actions/draft-email.js +32 -0
  40. package/dist/components/gmail/actions/draft-reply.d.ts +67 -0
  41. package/dist/components/gmail/actions/draft-reply.d.ts.map +1 -0
  42. package/dist/components/gmail/actions/draft-reply.js +42 -0
  43. package/dist/components/gmail/actions/forward.d.ts +67 -0
  44. package/dist/components/gmail/actions/forward.d.ts.map +1 -0
  45. package/dist/components/gmail/actions/forward.js +130 -0
  46. package/dist/components/gmail/actions/get-draft.d.ts +66 -0
  47. package/dist/components/gmail/actions/get-draft.d.ts.map +1 -0
  48. package/dist/components/gmail/actions/get-draft.js +28 -0
  49. package/dist/components/gmail/actions/get-message.d.ts +68 -0
  50. package/dist/components/gmail/actions/get-message.d.ts.map +1 -0
  51. package/dist/components/gmail/actions/get-message.js +24 -0
  52. package/dist/components/gmail/actions/get-messages.d.ts +63 -0
  53. package/dist/components/gmail/actions/get-messages.d.ts.map +1 -0
  54. package/dist/components/gmail/actions/get-messages.js +23 -0
  55. package/dist/components/gmail/actions/get-profile.d.ts +8 -0
  56. package/dist/components/gmail/actions/get-profile.d.ts.map +1 -0
  57. package/dist/components/gmail/actions/get-profile.js +23 -0
  58. package/dist/components/gmail/actions/get-raw-message.d.ts +11 -0
  59. package/dist/components/gmail/actions/get-raw-message.d.ts.map +1 -0
  60. package/dist/components/gmail/actions/get-raw-message.js +28 -0
  61. package/dist/components/gmail/actions/get-thread.d.ts +67 -0
  62. package/dist/components/gmail/actions/get-thread.d.ts.map +1 -0
  63. package/dist/components/gmail/actions/get-thread.js +28 -0
  64. package/dist/components/gmail/actions/has-label.d.ts +7 -0
  65. package/dist/components/gmail/actions/has-label.d.ts.map +1 -0
  66. package/dist/components/gmail/actions/has-label.js +23 -0
  67. package/dist/components/gmail/actions/index.d.ts +42 -0
  68. package/dist/components/gmail/actions/index.d.ts.map +1 -0
  69. package/dist/components/gmail/actions/index.js +41 -0
  70. package/dist/components/gmail/actions/is-important.d.ts +5 -0
  71. package/dist/components/gmail/actions/is-important.d.ts.map +1 -0
  72. package/dist/components/gmail/actions/is-important.js +3 -0
  73. package/dist/components/gmail/actions/is-starred.d.ts +5 -0
  74. package/dist/components/gmail/actions/is-starred.d.ts.map +1 -0
  75. package/dist/components/gmail/actions/is-starred.js +3 -0
  76. package/dist/components/gmail/actions/is-unread.d.ts +5 -0
  77. package/dist/components/gmail/actions/is-unread.d.ts.map +1 -0
  78. package/dist/components/gmail/actions/is-unread.js +3 -0
  79. package/dist/components/gmail/actions/list-labels.d.ts +27 -0
  80. package/dist/components/gmail/actions/list-labels.d.ts.map +1 -0
  81. package/dist/components/gmail/actions/list-labels.js +15 -0
  82. package/dist/components/gmail/actions/mark-as-important.d.ts +5 -0
  83. package/dist/components/gmail/actions/mark-as-important.d.ts.map +1 -0
  84. package/dist/components/gmail/actions/mark-as-important.js +3 -0
  85. package/dist/components/gmail/actions/mark-as-not-spam.d.ts +5 -0
  86. package/dist/components/gmail/actions/mark-as-not-spam.d.ts.map +1 -0
  87. package/dist/components/gmail/actions/mark-as-not-spam.js +3 -0
  88. package/dist/components/gmail/actions/mark-as-read.d.ts +5 -0
  89. package/dist/components/gmail/actions/mark-as-read.d.ts.map +1 -0
  90. package/dist/components/gmail/actions/mark-as-read.js +3 -0
  91. package/dist/components/gmail/actions/mark-as-spam.d.ts +5 -0
  92. package/dist/components/gmail/actions/mark-as-spam.d.ts.map +1 -0
  93. package/dist/components/gmail/actions/mark-as-spam.js +3 -0
  94. package/dist/components/gmail/actions/mark-as-unread.d.ts +5 -0
  95. package/dist/components/gmail/actions/mark-as-unread.d.ts.map +1 -0
  96. package/dist/components/gmail/actions/mark-as-unread.js +3 -0
  97. package/dist/components/gmail/actions/modify-labels.d.ts +12 -0
  98. package/dist/components/gmail/actions/modify-labels.d.ts.map +1 -0
  99. package/dist/components/gmail/actions/modify-labels.js +41 -0
  100. package/dist/components/gmail/actions/move-to-inbox.d.ts +5 -0
  101. package/dist/components/gmail/actions/move-to-inbox.d.ts.map +1 -0
  102. package/dist/components/gmail/actions/move-to-inbox.js +3 -0
  103. package/dist/components/gmail/actions/remove-label.d.ts +12 -0
  104. package/dist/components/gmail/actions/remove-label.d.ts.map +1 -0
  105. package/dist/components/gmail/actions/remove-label.js +33 -0
  106. package/dist/components/gmail/actions/reply-thread.d.ts +65 -0
  107. package/dist/components/gmail/actions/reply-thread.d.ts.map +1 -0
  108. package/dist/components/gmail/actions/reply-thread.js +35 -0
  109. package/dist/components/gmail/actions/reply.d.ts +66 -0
  110. package/dist/components/gmail/actions/reply.d.ts.map +1 -0
  111. package/dist/components/gmail/actions/reply.js +23 -0
  112. package/dist/components/gmail/actions/search-drafts.d.ts +18 -0
  113. package/dist/components/gmail/actions/search-drafts.d.ts.map +1 -0
  114. package/dist/components/gmail/actions/search-drafts.js +50 -0
  115. package/dist/components/gmail/actions/search-messages.d.ts +16 -0
  116. package/dist/components/gmail/actions/search-messages.d.ts.map +1 -0
  117. package/dist/components/gmail/actions/search-messages.js +45 -0
  118. package/dist/components/gmail/actions/search-threads.d.ts +15 -0
  119. package/dist/components/gmail/actions/search-threads.d.ts.map +1 -0
  120. package/dist/components/gmail/actions/search-threads.js +43 -0
  121. package/dist/components/gmail/actions/send-draft.d.ts +11 -0
  122. package/dist/components/gmail/actions/send-draft.d.ts.map +1 -0
  123. package/dist/components/gmail/actions/send-draft.js +18 -0
  124. package/dist/components/gmail/actions/send-email.d.ts +65 -0
  125. package/dist/components/gmail/actions/send-email.d.ts.map +1 -0
  126. package/dist/components/gmail/actions/send-email.js +35 -0
  127. package/dist/components/gmail/actions/star.d.ts +5 -0
  128. package/dist/components/gmail/actions/star.d.ts.map +1 -0
  129. package/dist/components/gmail/actions/star.js +3 -0
  130. package/dist/components/gmail/actions/trash.d.ts +15 -0
  131. package/dist/components/gmail/actions/trash.d.ts.map +1 -0
  132. package/dist/components/gmail/actions/trash.js +26 -0
  133. package/dist/components/gmail/actions/unmark-as-important.d.ts +5 -0
  134. package/dist/components/gmail/actions/unmark-as-important.d.ts.map +1 -0
  135. package/dist/components/gmail/actions/unmark-as-important.js +3 -0
  136. package/dist/components/gmail/actions/unstar.d.ts +5 -0
  137. package/dist/components/gmail/actions/unstar.d.ts.map +1 -0
  138. package/dist/components/gmail/actions/unstar.js +3 -0
  139. package/dist/components/gmail/actions/untrash.d.ts +15 -0
  140. package/dist/components/gmail/actions/untrash.d.ts.map +1 -0
  141. package/dist/components/gmail/actions/untrash.js +26 -0
  142. package/dist/components/gmail/actions/update-draft.d.ts +67 -0
  143. package/dist/components/gmail/actions/update-draft.d.ts.map +1 -0
  144. package/dist/components/gmail/actions/update-draft.js +67 -0
  145. package/dist/components/gmail/actions/update-label.d.ts +44 -0
  146. package/dist/components/gmail/actions/update-label.d.ts.map +1 -0
  147. package/dist/components/gmail/actions/update-label.js +38 -0
  148. package/dist/components/gmail/index.d.ts +5 -0
  149. package/dist/components/gmail/index.d.ts.map +1 -0
  150. package/dist/components/gmail/index.js +4 -0
  151. package/dist/components/gmail/lib/action-factories.d.ts +27 -0
  152. package/dist/components/gmail/lib/action-factories.d.ts.map +1 -0
  153. package/dist/components/gmail/lib/action-factories.js +55 -0
  154. package/dist/components/gmail/lib/gmail.d.ts +178 -0
  155. package/dist/components/gmail/lib/gmail.d.ts.map +1 -0
  156. package/dist/components/gmail/lib/gmail.js +411 -0
  157. package/dist/components/gmail/lib/schemas.d.ts +380 -0
  158. package/dist/components/gmail/lib/schemas.d.ts.map +1 -0
  159. package/dist/components/gmail/lib/schemas.js +226 -0
  160. package/dist/components/gmail/lib/scopes.d.ts +10 -0
  161. package/dist/components/gmail/lib/scopes.d.ts.map +1 -0
  162. package/dist/components/gmail/lib/scopes.js +16 -0
  163. package/dist/components/gmail/triggers/index.d.ts +2 -0
  164. package/dist/components/gmail/triggers/index.d.ts.map +1 -0
  165. package/dist/components/gmail/triggers/index.js +1 -0
  166. package/dist/components/gmail/triggers/on-new-email.d.ts +75 -0
  167. package/dist/components/gmail/triggers/on-new-email.d.ts.map +1 -0
  168. package/dist/components/gmail/triggers/on-new-email.js +30 -0
  169. package/dist/index.d.ts +1 -0
  170. package/dist/index.d.ts.map +1 -1
  171. package/dist/index.js +1 -0
  172. package/package.json +26 -6
@@ -0,0 +1,380 @@
1
+ import { z } from "zod";
2
+ export declare const PRIORITY_SCHEMA: z.ZodEnum<{
3
+ high: "high";
4
+ normal: "normal";
5
+ low: "low";
6
+ }>;
7
+ export declare const LABEL_LIST_VISIBILITY_SCHEMA: z.ZodEnum<{
8
+ labelHide: "labelHide";
9
+ labelShow: "labelShow";
10
+ labelShowIfUnread: "labelShowIfUnread";
11
+ }>;
12
+ export declare const MESSAGE_LIST_VISIBILITY_SCHEMA: z.ZodEnum<{
13
+ hide: "hide";
14
+ show: "show";
15
+ }>;
16
+ export declare const HEADERS_SCHEMA: z.ZodRecord<z.ZodString, z.ZodString>;
17
+ export declare const LABEL_COLOR_SCHEMA: z.ZodObject<{
18
+ backgroundColor: z.ZodString;
19
+ textColor: z.ZodString;
20
+ }, z.core.$strip>;
21
+ export declare const MAILBOX_SCHEMA: z.ZodObject<{
22
+ address: z.ZodString;
23
+ name: z.ZodOptional<z.ZodString>;
24
+ }, z.core.$strip>;
25
+ export declare const RECIPIENT_SCHEMA: z.ZodUnion<readonly [z.ZodEmail, z.ZodObject<{
26
+ address: z.ZodString;
27
+ name: z.ZodOptional<z.ZodString>;
28
+ }, z.core.$strip>]>;
29
+ export declare const RECIPIENTS_SCHEMA: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodEmail, z.ZodObject<{
30
+ address: z.ZodString;
31
+ name: z.ZodOptional<z.ZodString>;
32
+ }, z.core.$strip>]>, z.ZodArray<z.ZodUnion<readonly [z.ZodEmail, z.ZodObject<{
33
+ address: z.ZodString;
34
+ name: z.ZodOptional<z.ZodString>;
35
+ }, z.core.$strip>]>>]>;
36
+ export declare const ATTACHMENT_INPUT_SCHEMA: z.ZodUnion<readonly [z.ZodCustom<File, File>, z.ZodObject<{
37
+ contentId: z.ZodOptional<z.ZodString>;
38
+ disposition: z.ZodOptional<z.ZodEnum<{
39
+ attachment: "attachment";
40
+ inline: "inline";
41
+ }>>;
42
+ file: z.ZodCustom<File, File>;
43
+ filename: z.ZodOptional<z.ZodString>;
44
+ }, z.core.$strip>]>;
45
+ export declare const COMPOSE_OPTIONS_SCHEMA: z.ZodObject<{
46
+ attachments: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodCustom<File, File>, z.ZodObject<{
47
+ contentId: z.ZodOptional<z.ZodString>;
48
+ disposition: z.ZodOptional<z.ZodEnum<{
49
+ attachment: "attachment";
50
+ inline: "inline";
51
+ }>>;
52
+ file: z.ZodCustom<File, File>;
53
+ filename: z.ZodOptional<z.ZodString>;
54
+ }, z.core.$strip>]>>>;
55
+ bcc: z.ZodOptional<z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodEmail, z.ZodObject<{
56
+ address: z.ZodString;
57
+ name: z.ZodOptional<z.ZodString>;
58
+ }, z.core.$strip>]>, z.ZodArray<z.ZodUnion<readonly [z.ZodEmail, z.ZodObject<{
59
+ address: z.ZodString;
60
+ name: z.ZodOptional<z.ZodString>;
61
+ }, z.core.$strip>]>>]>>;
62
+ cc: z.ZodOptional<z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodEmail, z.ZodObject<{
63
+ address: z.ZodString;
64
+ name: z.ZodOptional<z.ZodString>;
65
+ }, z.core.$strip>]>, z.ZodArray<z.ZodUnion<readonly [z.ZodEmail, z.ZodObject<{
66
+ address: z.ZodString;
67
+ name: z.ZodOptional<z.ZodString>;
68
+ }, z.core.$strip>]>>]>>;
69
+ from: z.ZodOptional<z.ZodUnion<readonly [z.ZodEmail, z.ZodObject<{
70
+ address: z.ZodString;
71
+ name: z.ZodOptional<z.ZodString>;
72
+ }, z.core.$strip>]>>;
73
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
74
+ priority: z.ZodOptional<z.ZodEnum<{
75
+ high: "high";
76
+ normal: "normal";
77
+ low: "low";
78
+ }>>;
79
+ replyTo: z.ZodOptional<z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodEmail, z.ZodObject<{
80
+ address: z.ZodString;
81
+ name: z.ZodOptional<z.ZodString>;
82
+ }, z.core.$strip>]>, z.ZodArray<z.ZodUnion<readonly [z.ZodEmail, z.ZodObject<{
83
+ address: z.ZodString;
84
+ name: z.ZodOptional<z.ZodString>;
85
+ }, z.core.$strip>]>>]>>;
86
+ subject: z.ZodOptional<z.ZodString>;
87
+ to: z.ZodOptional<z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodEmail, z.ZodObject<{
88
+ address: z.ZodString;
89
+ name: z.ZodOptional<z.ZodString>;
90
+ }, z.core.$strip>]>, z.ZodArray<z.ZodUnion<readonly [z.ZodEmail, z.ZodObject<{
91
+ address: z.ZodString;
92
+ name: z.ZodOptional<z.ZodString>;
93
+ }, z.core.$strip>]>>]>>;
94
+ }, z.core.$strip>;
95
+ export declare const REPLY_OPTIONS_SCHEMA: z.ZodObject<{
96
+ attachments: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodCustom<File, File>, z.ZodObject<{
97
+ contentId: z.ZodOptional<z.ZodString>;
98
+ disposition: z.ZodOptional<z.ZodEnum<{
99
+ attachment: "attachment";
100
+ inline: "inline";
101
+ }>>;
102
+ file: z.ZodCustom<File, File>;
103
+ filename: z.ZodOptional<z.ZodString>;
104
+ }, z.core.$strip>]>>>;
105
+ bcc: z.ZodOptional<z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodEmail, z.ZodObject<{
106
+ address: z.ZodString;
107
+ name: z.ZodOptional<z.ZodString>;
108
+ }, z.core.$strip>]>, z.ZodArray<z.ZodUnion<readonly [z.ZodEmail, z.ZodObject<{
109
+ address: z.ZodString;
110
+ name: z.ZodOptional<z.ZodString>;
111
+ }, z.core.$strip>]>>]>>;
112
+ cc: z.ZodOptional<z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodEmail, z.ZodObject<{
113
+ address: z.ZodString;
114
+ name: z.ZodOptional<z.ZodString>;
115
+ }, z.core.$strip>]>, z.ZodArray<z.ZodUnion<readonly [z.ZodEmail, z.ZodObject<{
116
+ address: z.ZodString;
117
+ name: z.ZodOptional<z.ZodString>;
118
+ }, z.core.$strip>]>>]>>;
119
+ from: z.ZodOptional<z.ZodUnion<readonly [z.ZodEmail, z.ZodObject<{
120
+ address: z.ZodString;
121
+ name: z.ZodOptional<z.ZodString>;
122
+ }, z.core.$strip>]>>;
123
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
124
+ html: z.ZodOptional<z.ZodString>;
125
+ priority: z.ZodOptional<z.ZodEnum<{
126
+ high: "high";
127
+ normal: "normal";
128
+ low: "low";
129
+ }>>;
130
+ replyAll: z.ZodOptional<z.ZodBoolean>;
131
+ replyTo: z.ZodOptional<z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodEmail, z.ZodObject<{
132
+ address: z.ZodString;
133
+ name: z.ZodOptional<z.ZodString>;
134
+ }, z.core.$strip>]>, z.ZodArray<z.ZodUnion<readonly [z.ZodEmail, z.ZodObject<{
135
+ address: z.ZodString;
136
+ name: z.ZodOptional<z.ZodString>;
137
+ }, z.core.$strip>]>>]>>;
138
+ text: z.ZodOptional<z.ZodString>;
139
+ to: z.ZodOptional<z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodEmail, z.ZodObject<{
140
+ address: z.ZodString;
141
+ name: z.ZodOptional<z.ZodString>;
142
+ }, z.core.$strip>]>, z.ZodArray<z.ZodUnion<readonly [z.ZodEmail, z.ZodObject<{
143
+ address: z.ZodString;
144
+ name: z.ZodOptional<z.ZodString>;
145
+ }, z.core.$strip>]>>]>>;
146
+ }, z.core.$strip>;
147
+ export declare const MESSAGE_IDS_SCHEMA: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>;
148
+ export declare const MESSAGE_IDENTIFIER_SCHEMA: z.ZodObject<{
149
+ messageId: z.ZodString;
150
+ threadId: z.ZodString;
151
+ }, z.core.$strip>;
152
+ export declare const MESSAGE_METADATA_SCHEMA: z.ZodObject<{
153
+ messageId: z.ZodString;
154
+ threadId: z.ZodString;
155
+ historyId: z.ZodOptional<z.ZodString>;
156
+ labelIds: z.ZodArray<z.ZodString>;
157
+ }, z.core.$strip>;
158
+ export declare const DRAFT_IDENTIFIER_SCHEMA: z.ZodObject<{
159
+ messageId: z.ZodString;
160
+ threadId: z.ZodString;
161
+ historyId: z.ZodOptional<z.ZodString>;
162
+ labelIds: z.ZodArray<z.ZodString>;
163
+ draftId: z.ZodString;
164
+ }, z.core.$strip>;
165
+ export declare const MESSAGE_SCHEMA: z.ZodObject<{
166
+ messageId: z.ZodString;
167
+ threadId: z.ZodString;
168
+ historyId: z.ZodOptional<z.ZodString>;
169
+ labelIds: z.ZodArray<z.ZodString>;
170
+ attachments: z.ZodArray<z.ZodObject<{
171
+ contentId: z.ZodOptional<z.ZodString>;
172
+ description: z.ZodOptional<z.ZodString>;
173
+ disposition: z.ZodOptional<z.ZodEnum<{
174
+ attachment: "attachment";
175
+ inline: "inline";
176
+ }>>;
177
+ file: z.ZodCustom<File, File>;
178
+ filename: z.ZodString;
179
+ mimeType: z.ZodString;
180
+ related: z.ZodBoolean;
181
+ }, z.core.$strip>>;
182
+ bcc: z.ZodArray<z.ZodObject<{
183
+ address: z.ZodString;
184
+ name: z.ZodOptional<z.ZodString>;
185
+ }, z.core.$strip>>;
186
+ cc: z.ZodArray<z.ZodObject<{
187
+ address: z.ZodString;
188
+ name: z.ZodOptional<z.ZodString>;
189
+ }, z.core.$strip>>;
190
+ deliveredTo: z.ZodOptional<z.ZodString>;
191
+ from: z.ZodOptional<z.ZodObject<{
192
+ address: z.ZodString;
193
+ name: z.ZodOptional<z.ZodString>;
194
+ }, z.core.$strip>>;
195
+ headers: z.ZodArray<z.ZodObject<{
196
+ name: z.ZodString;
197
+ value: z.ZodString;
198
+ }, z.core.$strip>>;
199
+ html: z.ZodOptional<z.ZodString>;
200
+ inReplyTo: z.ZodOptional<z.ZodString>;
201
+ rfc822MessageId: z.ZodOptional<z.ZodString>;
202
+ receivedAt: z.ZodNullable<z.ZodDate>;
203
+ references: z.ZodArray<z.ZodString>;
204
+ replyTo: z.ZodArray<z.ZodObject<{
205
+ address: z.ZodString;
206
+ name: z.ZodOptional<z.ZodString>;
207
+ }, z.core.$strip>>;
208
+ returnPath: z.ZodOptional<z.ZodString>;
209
+ sender: z.ZodOptional<z.ZodObject<{
210
+ address: z.ZodString;
211
+ name: z.ZodOptional<z.ZodString>;
212
+ }, z.core.$strip>>;
213
+ sentAt: z.ZodOptional<z.ZodDate>;
214
+ sizeEstimate: z.ZodOptional<z.ZodNumber>;
215
+ snippet: z.ZodOptional<z.ZodString>;
216
+ subject: z.ZodString;
217
+ text: z.ZodOptional<z.ZodString>;
218
+ to: z.ZodArray<z.ZodObject<{
219
+ address: z.ZodString;
220
+ name: z.ZodOptional<z.ZodString>;
221
+ }, z.core.$strip>>;
222
+ }, z.core.$strip>;
223
+ export declare const THREAD_IDENTIFIER_SCHEMA: z.ZodObject<{
224
+ threadId: z.ZodString;
225
+ }, z.core.$strip>;
226
+ export declare const THREAD_SCHEMA: z.ZodObject<{
227
+ threadId: z.ZodString;
228
+ historyId: z.ZodOptional<z.ZodString>;
229
+ messages: z.ZodArray<z.ZodObject<{
230
+ messageId: z.ZodString;
231
+ threadId: z.ZodString;
232
+ historyId: z.ZodOptional<z.ZodString>;
233
+ labelIds: z.ZodArray<z.ZodString>;
234
+ attachments: z.ZodArray<z.ZodObject<{
235
+ contentId: z.ZodOptional<z.ZodString>;
236
+ description: z.ZodOptional<z.ZodString>;
237
+ disposition: z.ZodOptional<z.ZodEnum<{
238
+ attachment: "attachment";
239
+ inline: "inline";
240
+ }>>;
241
+ file: z.ZodCustom<File, File>;
242
+ filename: z.ZodString;
243
+ mimeType: z.ZodString;
244
+ related: z.ZodBoolean;
245
+ }, z.core.$strip>>;
246
+ bcc: z.ZodArray<z.ZodObject<{
247
+ address: z.ZodString;
248
+ name: z.ZodOptional<z.ZodString>;
249
+ }, z.core.$strip>>;
250
+ cc: z.ZodArray<z.ZodObject<{
251
+ address: z.ZodString;
252
+ name: z.ZodOptional<z.ZodString>;
253
+ }, z.core.$strip>>;
254
+ deliveredTo: z.ZodOptional<z.ZodString>;
255
+ from: z.ZodOptional<z.ZodObject<{
256
+ address: z.ZodString;
257
+ name: z.ZodOptional<z.ZodString>;
258
+ }, z.core.$strip>>;
259
+ headers: z.ZodArray<z.ZodObject<{
260
+ name: z.ZodString;
261
+ value: z.ZodString;
262
+ }, z.core.$strip>>;
263
+ html: z.ZodOptional<z.ZodString>;
264
+ inReplyTo: z.ZodOptional<z.ZodString>;
265
+ rfc822MessageId: z.ZodOptional<z.ZodString>;
266
+ receivedAt: z.ZodNullable<z.ZodDate>;
267
+ references: z.ZodArray<z.ZodString>;
268
+ replyTo: z.ZodArray<z.ZodObject<{
269
+ address: z.ZodString;
270
+ name: z.ZodOptional<z.ZodString>;
271
+ }, z.core.$strip>>;
272
+ returnPath: z.ZodOptional<z.ZodString>;
273
+ sender: z.ZodOptional<z.ZodObject<{
274
+ address: z.ZodString;
275
+ name: z.ZodOptional<z.ZodString>;
276
+ }, z.core.$strip>>;
277
+ sentAt: z.ZodOptional<z.ZodDate>;
278
+ sizeEstimate: z.ZodOptional<z.ZodNumber>;
279
+ snippet: z.ZodOptional<z.ZodString>;
280
+ subject: z.ZodString;
281
+ text: z.ZodOptional<z.ZodString>;
282
+ to: z.ZodArray<z.ZodObject<{
283
+ address: z.ZodString;
284
+ name: z.ZodOptional<z.ZodString>;
285
+ }, z.core.$strip>>;
286
+ }, z.core.$strip>>;
287
+ }, z.core.$strip>;
288
+ export declare const DRAFT_SCHEMA: z.ZodObject<{
289
+ draftId: z.ZodString;
290
+ message: z.ZodObject<{
291
+ messageId: z.ZodString;
292
+ threadId: z.ZodString;
293
+ historyId: z.ZodOptional<z.ZodString>;
294
+ labelIds: z.ZodArray<z.ZodString>;
295
+ attachments: z.ZodArray<z.ZodObject<{
296
+ contentId: z.ZodOptional<z.ZodString>;
297
+ description: z.ZodOptional<z.ZodString>;
298
+ disposition: z.ZodOptional<z.ZodEnum<{
299
+ attachment: "attachment";
300
+ inline: "inline";
301
+ }>>;
302
+ file: z.ZodCustom<File, File>;
303
+ filename: z.ZodString;
304
+ mimeType: z.ZodString;
305
+ related: z.ZodBoolean;
306
+ }, z.core.$strip>>;
307
+ bcc: z.ZodArray<z.ZodObject<{
308
+ address: z.ZodString;
309
+ name: z.ZodOptional<z.ZodString>;
310
+ }, z.core.$strip>>;
311
+ cc: z.ZodArray<z.ZodObject<{
312
+ address: z.ZodString;
313
+ name: z.ZodOptional<z.ZodString>;
314
+ }, z.core.$strip>>;
315
+ deliveredTo: z.ZodOptional<z.ZodString>;
316
+ from: z.ZodOptional<z.ZodObject<{
317
+ address: z.ZodString;
318
+ name: z.ZodOptional<z.ZodString>;
319
+ }, z.core.$strip>>;
320
+ headers: z.ZodArray<z.ZodObject<{
321
+ name: z.ZodString;
322
+ value: z.ZodString;
323
+ }, z.core.$strip>>;
324
+ html: z.ZodOptional<z.ZodString>;
325
+ inReplyTo: z.ZodOptional<z.ZodString>;
326
+ rfc822MessageId: z.ZodOptional<z.ZodString>;
327
+ receivedAt: z.ZodNullable<z.ZodDate>;
328
+ references: z.ZodArray<z.ZodString>;
329
+ replyTo: z.ZodArray<z.ZodObject<{
330
+ address: z.ZodString;
331
+ name: z.ZodOptional<z.ZodString>;
332
+ }, z.core.$strip>>;
333
+ returnPath: z.ZodOptional<z.ZodString>;
334
+ sender: z.ZodOptional<z.ZodObject<{
335
+ address: z.ZodString;
336
+ name: z.ZodOptional<z.ZodString>;
337
+ }, z.core.$strip>>;
338
+ sentAt: z.ZodOptional<z.ZodDate>;
339
+ sizeEstimate: z.ZodOptional<z.ZodNumber>;
340
+ snippet: z.ZodOptional<z.ZodString>;
341
+ subject: z.ZodString;
342
+ text: z.ZodOptional<z.ZodString>;
343
+ to: z.ZodArray<z.ZodObject<{
344
+ address: z.ZodString;
345
+ name: z.ZodOptional<z.ZodString>;
346
+ }, z.core.$strip>>;
347
+ }, z.core.$strip>;
348
+ }, z.core.$strip>;
349
+ export declare const LABEL_SCHEMA: z.ZodObject<{
350
+ color: z.ZodOptional<z.ZodObject<{
351
+ backgroundColor: z.ZodString;
352
+ textColor: z.ZodString;
353
+ }, z.core.$strip>>;
354
+ labelId: z.ZodString;
355
+ labelListVisibility: z.ZodOptional<z.ZodEnum<{
356
+ labelHide: "labelHide";
357
+ labelShow: "labelShow";
358
+ labelShowIfUnread: "labelShowIfUnread";
359
+ }>>;
360
+ messageListVisibility: z.ZodOptional<z.ZodEnum<{
361
+ hide: "hide";
362
+ show: "show";
363
+ }>>;
364
+ messagesTotal: z.ZodOptional<z.ZodNumber>;
365
+ messagesUnread: z.ZodOptional<z.ZodNumber>;
366
+ name: z.ZodString;
367
+ threadsTotal: z.ZodOptional<z.ZodNumber>;
368
+ threadsUnread: z.ZodOptional<z.ZodNumber>;
369
+ type: z.ZodOptional<z.ZodEnum<{
370
+ system: "system";
371
+ user: "user";
372
+ }>>;
373
+ }, z.core.$strip>;
374
+ export declare const PROFILE_SCHEMA: z.ZodObject<{
375
+ emailAddress: z.ZodString;
376
+ historyId: z.ZodOptional<z.ZodString>;
377
+ messagesTotal: z.ZodOptional<z.ZodNumber>;
378
+ threadsTotal: z.ZodOptional<z.ZodNumber>;
379
+ }, z.core.$strip>;
380
+ //# sourceMappingURL=schemas.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../../../../src/components/gmail/lib/schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,eAAO,MAAM,eAAe;;;;EAAoC,CAAA;AAEhE,eAAO,MAAM,4BAA4B;;;;EAIvC,CAAA;AACF,eAAO,MAAM,8BAA8B;;;EAA2B,CAAA;AAEtE,eAAO,MAAM,cAAc,uCAAmC,CAAA;AAC9D,eAAO,MAAM,kBAAkB;;;iBAM7B,CAAA;AACF,eAAO,MAAM,cAAc;;;iBAMzB,CAAA;AACF,eAAO,MAAM,gBAAgB;;;mBAAuC,CAAA;AACpE,eAAO,MAAM,iBAAiB;;;;;;sBAG5B,CAAA;AAcF,eAAO,MAAM,uBAAuB;;;;;;;;mBAGlC,CAAA;AACF,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBA+BjC,CAAA;AACF,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAiC/B,CAAA;AACF,eAAO,MAAM,kBAAkB,6DAG7B,CAAA;AAEF,eAAO,MAAM,yBAAyB;;;iBAMpC,CAAA;AAEF,eAAO,MAAM,uBAAuB;;;;;iBAMlC,CAAA;AAEF,eAAO,MAAM,uBAAuB;;;;;;iBAGlC,CAAA;AAiCF,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAgEzB,CAAA;AAEF,eAAO,MAAM,wBAAwB;;iBAGnC,CAAA;AAEF,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAMxB,CAAA;AAEF,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAMvB,CAAA;AAEF,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;iBA8BvB,CAAA;AAEF,eAAO,MAAM,cAAc;;;;;iBAYzB,CAAA"}
@@ -0,0 +1,226 @@
1
+ import { z } from "zod";
2
+ export const PRIORITY_SCHEMA = z.enum(["high", "normal", "low"]);
3
+ const DISPOSITION_SCHEMA = z.enum(["attachment", "inline"]);
4
+ export const LABEL_LIST_VISIBILITY_SCHEMA = z.enum([
5
+ "labelHide",
6
+ "labelShow",
7
+ "labelShowIfUnread",
8
+ ]);
9
+ export const MESSAGE_LIST_VISIBILITY_SCHEMA = z.enum(["hide", "show"]);
10
+ const LABEL_TYPE_SCHEMA = z.enum(["system", "user"]);
11
+ export const HEADERS_SCHEMA = z.record(z.string(), z.string());
12
+ export const LABEL_COLOR_SCHEMA = z.object({
13
+ /** Hex background color selected from Gmail's supported palette. */
14
+ backgroundColor: z.string().min(1),
15
+ /** Hex text color selected from Gmail's supported palette. */
16
+ textColor: z.string().min(1),
17
+ });
18
+ export const MAILBOX_SCHEMA = z.object({
19
+ /** RFC 5322 email address. */
20
+ address: z.string(),
21
+ /** Optional human-readable display name. */
22
+ name: z.string().optional(),
23
+ });
24
+ export const RECIPIENT_SCHEMA = z.union([z.email(), MAILBOX_SCHEMA]);
25
+ export const RECIPIENTS_SCHEMA = z.union([
26
+ RECIPIENT_SCHEMA,
27
+ RECIPIENT_SCHEMA.array().min(1),
28
+ ]);
29
+ const ATTACHMENT_OPTIONS_SCHEMA = z.object({
30
+ /** Content-ID used to reference an inline attachment from HTML. */
31
+ contentId: z.string().min(1).optional(),
32
+ /** Whether the file is a regular attachment or inline MIME part. */
33
+ disposition: DISPOSITION_SCHEMA.optional(),
34
+ /** File contents, media type, and default filename. */
35
+ file: z.instanceof(File),
36
+ /** Filename presented to recipients instead of the File's name. */
37
+ filename: z.string().min(1).optional(),
38
+ });
39
+ export const ATTACHMENT_INPUT_SCHEMA = z.union([
40
+ z.instanceof(File),
41
+ ATTACHMENT_OPTIONS_SCHEMA,
42
+ ]);
43
+ export const COMPOSE_OPTIONS_SCHEMA = z.object({
44
+ /** Files and inline MIME parts attached to the message. */
45
+ attachments: ATTACHMENT_INPUT_SCHEMA.array().optional(),
46
+ /** Blind-copy recipients hidden from other recipients. */
47
+ bcc: RECIPIENTS_SCHEMA.optional(),
48
+ /** Carbon-copy recipients. */
49
+ cc: RECIPIENTS_SCHEMA.optional(),
50
+ /**
51
+ * Sender address or configured Gmail send-as alias.
52
+ *
53
+ * Gmail may reject or replace addresses not configured on the account.
54
+ */
55
+ from: RECIPIENT_SCHEMA.optional(),
56
+ /** Additional RFC 5322 headers added to the message. */
57
+ headers: HEADERS_SCHEMA.optional(),
58
+ /** Importance priority encoded into standard message headers. */
59
+ priority: PRIORITY_SCHEMA.optional(),
60
+ /** Addresses that should receive replies to the outgoing message. */
61
+ replyTo: RECIPIENTS_SCHEMA.optional(),
62
+ /** Message subject line. */
63
+ subject: z.string().optional(),
64
+ /** Primary recipients. */
65
+ to: RECIPIENTS_SCHEMA.optional(),
66
+ });
67
+ export const REPLY_OPTIONS_SCHEMA = z.object({
68
+ /** Additional files and inline MIME parts attached to the reply. */
69
+ attachments: ATTACHMENT_INPUT_SCHEMA.array().optional(),
70
+ /** Additional blind-copy recipients. */
71
+ bcc: RECIPIENTS_SCHEMA.optional(),
72
+ /** Additional carbon-copy recipients. */
73
+ cc: RECIPIENTS_SCHEMA.optional(),
74
+ /** Sender address or configured Gmail send-as alias. */
75
+ from: RECIPIENT_SCHEMA.optional(),
76
+ /** Additional RFC 5322 headers added to the reply. */
77
+ headers: HEADERS_SCHEMA.optional(),
78
+ /** Optional HTML reply body. */
79
+ html: z.string().optional(),
80
+ /** Importance priority encoded into standard message headers. */
81
+ priority: PRIORITY_SCHEMA.optional(),
82
+ /** Whether to include the original To and Cc recipients. */
83
+ replyAll: z.boolean().optional(),
84
+ /** Addresses that should receive replies to this outgoing reply. */
85
+ replyTo: RECIPIENTS_SCHEMA.optional(),
86
+ /** Optional plain-text reply body. */
87
+ text: z.string().optional(),
88
+ /** Additional primary recipients appended to the derived reply recipient. */
89
+ to: RECIPIENTS_SCHEMA.optional(),
90
+ });
91
+ export const MESSAGE_IDS_SCHEMA = z.union([
92
+ z.string().min(1),
93
+ z.string().min(1).array().min(1).max(1000),
94
+ ]);
95
+ export const MESSAGE_IDENTIFIER_SCHEMA = z.object({
96
+ /** Immutable Gmail message ID. */
97
+ messageId: z.string(),
98
+ /** Immutable Gmail thread ID containing the message. */
99
+ threadId: z.string(),
100
+ });
101
+ export const MESSAGE_METADATA_SCHEMA = MESSAGE_IDENTIFIER_SCHEMA.extend({
102
+ /** ID of the latest mailbox history record affecting the message. */
103
+ historyId: z.string().optional(),
104
+ /** Gmail system and user label IDs currently applied to the message. */
105
+ labelIds: z.string().array(),
106
+ });
107
+ export const DRAFT_IDENTIFIER_SCHEMA = MESSAGE_METADATA_SCHEMA.extend({
108
+ /** Immutable Gmail draft ID. */
109
+ draftId: z.string(),
110
+ });
111
+ const MESSAGE_HEADER_SCHEMA = z.object({
112
+ /** Header name with its original casing preserved. */
113
+ name: z.string(),
114
+ /** Decoded header value. */
115
+ value: z.string(),
116
+ });
117
+ const ATTACHMENT_SCHEMA = z.object({
118
+ /** MIME Content-ID used by related HTML content. */
119
+ contentId: z.string().optional(),
120
+ /** Optional human-readable MIME description. */
121
+ description: z.string().optional(),
122
+ /** Whether the MIME part is presented as an attachment or inline content. */
123
+ disposition: DISPOSITION_SCHEMA.optional(),
124
+ /** Parsed attachment contents and metadata. */
125
+ file: z.instanceof(File),
126
+ /** Attachment filename presented by the sender. */
127
+ filename: z.string(),
128
+ /** Attachment MIME media type. */
129
+ mimeType: z.string(),
130
+ /** Whether the attachment belongs to a multipart/related body. */
131
+ related: z.boolean(),
132
+ });
133
+ export const MESSAGE_SCHEMA = MESSAGE_METADATA_SCHEMA.extend({
134
+ /** Attachments and inline MIME parts included with the message. */
135
+ attachments: ATTACHMENT_SCHEMA.array(),
136
+ /** Blind-copy recipients retained in the raw message, when available. */
137
+ bcc: MAILBOX_SCHEMA.array(),
138
+ /** Carbon-copy recipients. */
139
+ cc: MAILBOX_SCHEMA.array(),
140
+ /** Address recorded by the Delivered-To header. */
141
+ deliveredTo: z.string().optional(),
142
+ /** Parsed sender from the From header. */
143
+ from: MAILBOX_SCHEMA.optional(),
144
+ /** Original RFC 5322 headers with duplicates preserved. */
145
+ headers: MESSAGE_HEADER_SCHEMA.array(),
146
+ /** HTML message body, when present. */
147
+ html: z.string().optional(),
148
+ /** RFC 5322 Message-ID of the message this message replies to. */
149
+ inReplyTo: z.string().optional(),
150
+ /** RFC 5322 Message-ID from the original message headers. */
151
+ rfc822MessageId: z.string().optional(),
152
+ /** Mailbox time used by Gmail to order the message. */
153
+ receivedAt: z.date().nullable(),
154
+ /** RFC 5322 Message-IDs referenced by this message. */
155
+ references: z.string().array(),
156
+ /** Addresses from the Reply-To header. */
157
+ replyTo: MAILBOX_SCHEMA.array(),
158
+ /** Address from the Return-Path header. */
159
+ returnPath: z.string().optional(),
160
+ /** Sender header, when distinct from From. */
161
+ sender: MAILBOX_SCHEMA.optional(),
162
+ /** Date supplied by the sender, when valid. */
163
+ sentAt: z.date().optional(),
164
+ /** Estimated raw message size in bytes. */
165
+ sizeEstimate: z.number().optional(),
166
+ /** Short message preview generated by Gmail. */
167
+ snippet: z.string().optional(),
168
+ /** Decoded message subject. */
169
+ subject: z.string(),
170
+ /**
171
+ * Plain-text message body.
172
+ *
173
+ * Derived from HTML when the source message has no text alternative.
174
+ */
175
+ text: z.string().optional(),
176
+ /** Primary recipients. */
177
+ to: MAILBOX_SCHEMA.array(),
178
+ });
179
+ export const THREAD_IDENTIFIER_SCHEMA = z.object({
180
+ /** Immutable Gmail thread ID. */
181
+ threadId: z.string(),
182
+ });
183
+ export const THREAD_SCHEMA = THREAD_IDENTIFIER_SCHEMA.extend({
184
+ /** ID of the latest mailbox history record affecting the thread. */
185
+ historyId: z.string().optional(),
186
+ /** Messages ordered as returned by Gmail. */
187
+ messages: MESSAGE_SCHEMA.array(),
188
+ });
189
+ export const DRAFT_SCHEMA = z.object({
190
+ /** Immutable Gmail draft ID. */
191
+ draftId: z.string(),
192
+ /** Parsed message currently stored in the draft. */
193
+ message: MESSAGE_SCHEMA,
194
+ });
195
+ export const LABEL_SCHEMA = z.object({
196
+ /** Optional label color configuration. */
197
+ color: LABEL_COLOR_SCHEMA.optional(),
198
+ /** Immutable Gmail label ID. */
199
+ labelId: z.string(),
200
+ /** Visibility in Gmail's label list. */
201
+ labelListVisibility: LABEL_LIST_VISIBILITY_SCHEMA.optional(),
202
+ /** Visibility beside messages in Gmail's message list. */
203
+ messageListVisibility: MESSAGE_LIST_VISIBILITY_SCHEMA.optional(),
204
+ /** Total messages carrying the label, when supplied by Gmail. */
205
+ messagesTotal: z.number().optional(),
206
+ /** Unread messages carrying the label, when supplied by Gmail. */
207
+ messagesUnread: z.number().optional(),
208
+ /** Human-readable label name. */
209
+ name: z.string(),
210
+ /** Total threads carrying the label, when supplied by Gmail. */
211
+ threadsTotal: z.number().optional(),
212
+ /** Unread threads carrying the label, when supplied by Gmail. */
213
+ threadsUnread: z.number().optional(),
214
+ /** Whether Gmail or the user owns the label. */
215
+ type: LABEL_TYPE_SCHEMA.optional(),
216
+ });
217
+ export const PROFILE_SCHEMA = z.object({
218
+ /** Primary email address of the authenticated Gmail account. */
219
+ emailAddress: z.string(),
220
+ /** ID of the account's current mailbox history record. */
221
+ historyId: z.string().optional(),
222
+ /** Total messages in the mailbox. */
223
+ messagesTotal: z.number().optional(),
224
+ /** Total threads in the mailbox. */
225
+ threadsTotal: z.number().optional(),
226
+ });
@@ -0,0 +1,10 @@
1
+ export declare const GMAIL_MODIFY_REQUIREMENT: import("../../..").ScopeRequirementGroup;
2
+ export declare const GMAIL_READ_REQUIREMENT: import("../../..").ScopeRequirementGroup;
3
+ export declare const GMAIL_METADATA_REQUIREMENT: import("../../..").ScopeRequirementGroup;
4
+ export declare const GMAIL_COMPOSE_REQUIREMENT: import("../../..").ScopeRequirementGroup;
5
+ export declare const GMAIL_SEND_REQUIREMENT: import("../../..").ScopeRequirementGroup;
6
+ export declare const GMAIL_COMPOSE_AND_METADATA_REQUIREMENT: import("../../..").ScopeRequirementGroup;
7
+ export declare const GMAIL_COMPOSE_AND_READ_REQUIREMENT: import("../../..").ScopeRequirementGroup;
8
+ export declare const GMAIL_SEND_AND_METADATA_REQUIREMENT: import("../../..").ScopeRequirementGroup;
9
+ export declare const GMAIL_SEND_AND_READ_REQUIREMENT: import("../../..").ScopeRequirementGroup;
10
+ //# sourceMappingURL=scopes.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"scopes.d.ts","sourceRoot":"","sources":["../../../../src/components/gmail/lib/scopes.ts"],"names":[],"mappings":"AASA,eAAO,MAAM,wBAAwB,0CAGpC,CAAA;AAED,eAAO,MAAM,sBAAsB,0CAIlC,CAAA;AAED,eAAO,MAAM,0BAA0B,0CAKtC,CAAA;AAED,eAAO,MAAM,yBAAyB,0CAIrC,CAAA;AAED,eAAO,MAAM,sBAAsB,0CAKlC,CAAA;AAED,eAAO,MAAM,sCAAsC,0CAGlD,CAAA;AAED,eAAO,MAAM,kCAAkC,0CAG9C,CAAA;AAED,eAAO,MAAM,mCAAmC,0CAG/C,CAAA;AAED,eAAO,MAAM,+BAA+B,0CAG3C,CAAA"}
@@ -0,0 +1,16 @@
1
+ import { scope } from "../../../automation/integrations.js";
2
+ const GMAIL_FULL_SCOPE = "https://mail.google.com/";
3
+ const GMAIL_MODIFY_SCOPE = "https://www.googleapis.com/auth/gmail.modify";
4
+ const GMAIL_READONLY_SCOPE = "https://www.googleapis.com/auth/gmail.readonly";
5
+ const GMAIL_METADATA_SCOPE = "https://www.googleapis.com/auth/gmail.metadata";
6
+ const GMAIL_COMPOSE_SCOPE = "https://www.googleapis.com/auth/gmail.compose";
7
+ const GMAIL_SEND_SCOPE = "https://www.googleapis.com/auth/gmail.send";
8
+ export const GMAIL_MODIFY_REQUIREMENT = scope.any(GMAIL_FULL_SCOPE, GMAIL_MODIFY_SCOPE);
9
+ export const GMAIL_READ_REQUIREMENT = scope.any(GMAIL_FULL_SCOPE, GMAIL_MODIFY_SCOPE, GMAIL_READONLY_SCOPE);
10
+ export const GMAIL_METADATA_REQUIREMENT = scope.any(GMAIL_FULL_SCOPE, GMAIL_MODIFY_SCOPE, GMAIL_READONLY_SCOPE, GMAIL_METADATA_SCOPE);
11
+ export const GMAIL_COMPOSE_REQUIREMENT = scope.any(GMAIL_FULL_SCOPE, GMAIL_MODIFY_SCOPE, GMAIL_COMPOSE_SCOPE);
12
+ export const GMAIL_SEND_REQUIREMENT = scope.any(GMAIL_FULL_SCOPE, GMAIL_MODIFY_SCOPE, GMAIL_COMPOSE_SCOPE, GMAIL_SEND_SCOPE);
13
+ export const GMAIL_COMPOSE_AND_METADATA_REQUIREMENT = scope.and(GMAIL_COMPOSE_REQUIREMENT, GMAIL_METADATA_REQUIREMENT);
14
+ export const GMAIL_COMPOSE_AND_READ_REQUIREMENT = scope.and(GMAIL_COMPOSE_REQUIREMENT, GMAIL_READ_REQUIREMENT);
15
+ export const GMAIL_SEND_AND_METADATA_REQUIREMENT = scope.and(GMAIL_SEND_REQUIREMENT, GMAIL_METADATA_REQUIREMENT);
16
+ export const GMAIL_SEND_AND_READ_REQUIREMENT = scope.and(GMAIL_SEND_REQUIREMENT, GMAIL_READ_REQUIREMENT);
@@ -0,0 +1,2 @@
1
+ export * from "./on-new-email.js";
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/gmail/triggers/index.ts"],"names":[],"mappings":"AAAA,kCAA8B"}
@@ -0,0 +1 @@
1
+ export * from "./on-new-email.js";