@corsair-dev/googlecalendar 0.1.1 → 0.1.2

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.
@@ -3,7 +3,11 @@ export declare const GoogleCalendarSchema: {
3
3
  readonly entities: {
4
4
  readonly events: import("zod").ZodObject<{
5
5
  id: import("zod").ZodString;
6
- status: import("zod").ZodOptional<import("zod").ZodEnum<["confirmed", "tentative", "cancelled"]>>;
6
+ status: import("zod").ZodOptional<import("zod").ZodEnum<{
7
+ tentative: "tentative";
8
+ confirmed: "confirmed";
9
+ cancelled: "cancelled";
10
+ }>>;
7
11
  htmlLink: import("zod").ZodOptional<import("zod").ZodString>;
8
12
  created: import("zod").ZodOptional<import("zod").ZodString>;
9
13
  updated: import("zod").ZodOptional<import("zod").ZodString>;
@@ -16,77 +20,41 @@ export declare const GoogleCalendarSchema: {
16
20
  email: import("zod").ZodOptional<import("zod").ZodString>;
17
21
  displayName: import("zod").ZodOptional<import("zod").ZodString>;
18
22
  self: import("zod").ZodOptional<import("zod").ZodBoolean>;
19
- }, "strip", import("zod").ZodTypeAny, {
20
- email?: string | undefined;
21
- id?: string | undefined;
22
- displayName?: string | undefined;
23
- self?: boolean | undefined;
24
- }, {
25
- email?: string | undefined;
26
- id?: string | undefined;
27
- displayName?: string | undefined;
28
- self?: boolean | undefined;
29
- }>>;
23
+ }, import("zod/v4/core").$strip>>;
30
24
  organizer: import("zod").ZodOptional<import("zod").ZodObject<{
31
25
  id: import("zod").ZodOptional<import("zod").ZodString>;
32
26
  email: import("zod").ZodOptional<import("zod").ZodString>;
33
27
  displayName: import("zod").ZodOptional<import("zod").ZodString>;
34
28
  self: import("zod").ZodOptional<import("zod").ZodBoolean>;
35
- }, "strip", import("zod").ZodTypeAny, {
36
- email?: string | undefined;
37
- id?: string | undefined;
38
- displayName?: string | undefined;
39
- self?: boolean | undefined;
40
- }, {
41
- email?: string | undefined;
42
- id?: string | undefined;
43
- displayName?: string | undefined;
44
- self?: boolean | undefined;
45
- }>>;
29
+ }, import("zod/v4/core").$strip>>;
46
30
  start: import("zod").ZodOptional<import("zod").ZodObject<{
47
31
  date: import("zod").ZodOptional<import("zod").ZodString>;
48
32
  dateTime: import("zod").ZodOptional<import("zod").ZodString>;
49
33
  timeZone: import("zod").ZodOptional<import("zod").ZodString>;
50
- }, "strip", import("zod").ZodTypeAny, {
51
- date?: string | undefined;
52
- dateTime?: string | undefined;
53
- timeZone?: string | undefined;
54
- }, {
55
- date?: string | undefined;
56
- dateTime?: string | undefined;
57
- timeZone?: string | undefined;
58
- }>>;
34
+ }, import("zod/v4/core").$strip>>;
59
35
  end: import("zod").ZodOptional<import("zod").ZodObject<{
60
36
  date: import("zod").ZodOptional<import("zod").ZodString>;
61
37
  dateTime: import("zod").ZodOptional<import("zod").ZodString>;
62
38
  timeZone: import("zod").ZodOptional<import("zod").ZodString>;
63
- }, "strip", import("zod").ZodTypeAny, {
64
- date?: string | undefined;
65
- dateTime?: string | undefined;
66
- timeZone?: string | undefined;
67
- }, {
68
- date?: string | undefined;
69
- dateTime?: string | undefined;
70
- timeZone?: string | undefined;
71
- }>>;
39
+ }, import("zod/v4/core").$strip>>;
72
40
  endTimeUnspecified: import("zod").ZodOptional<import("zod").ZodBoolean>;
73
- recurrence: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
41
+ recurrence: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
74
42
  recurringEventId: import("zod").ZodOptional<import("zod").ZodString>;
75
43
  originalStartTime: import("zod").ZodOptional<import("zod").ZodObject<{
76
44
  date: import("zod").ZodOptional<import("zod").ZodString>;
77
45
  dateTime: import("zod").ZodOptional<import("zod").ZodString>;
78
46
  timeZone: import("zod").ZodOptional<import("zod").ZodString>;
79
- }, "strip", import("zod").ZodTypeAny, {
80
- date?: string | undefined;
81
- dateTime?: string | undefined;
82
- timeZone?: string | undefined;
83
- }, {
84
- date?: string | undefined;
85
- dateTime?: string | undefined;
86
- timeZone?: string | undefined;
47
+ }, import("zod/v4/core").$strip>>;
48
+ transparency: import("zod").ZodOptional<import("zod").ZodEnum<{
49
+ opaque: "opaque";
50
+ transparent: "transparent";
51
+ }>>;
52
+ visibility: import("zod").ZodOptional<import("zod").ZodEnum<{
53
+ default: "default";
54
+ public: "public";
55
+ private: "private";
56
+ confidential: "confidential";
87
57
  }>>;
88
- transparency: import("zod").ZodOptional<import("zod").ZodEnum<["opaque", "transparent"]>>;
89
- visibility: import("zod").ZodOptional<import("zod").ZodEnum<["default", "public", "private", "confidential"]>>;
90
58
  iCalUID: import("zod").ZodOptional<import("zod").ZodString>;
91
59
  sequence: import("zod").ZodOptional<import("zod").ZodNumber>;
92
60
  attendees: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
@@ -97,239 +65,50 @@ export declare const GoogleCalendarSchema: {
97
65
  self: import("zod").ZodOptional<import("zod").ZodBoolean>;
98
66
  resource: import("zod").ZodOptional<import("zod").ZodBoolean>;
99
67
  optional: import("zod").ZodOptional<import("zod").ZodBoolean>;
100
- responseStatus: import("zod").ZodOptional<import("zod").ZodEnum<["needsAction", "declined", "tentative", "accepted"]>>;
68
+ responseStatus: import("zod").ZodOptional<import("zod").ZodEnum<{
69
+ needsAction: "needsAction";
70
+ declined: "declined";
71
+ tentative: "tentative";
72
+ accepted: "accepted";
73
+ }>>;
101
74
  comment: import("zod").ZodOptional<import("zod").ZodString>;
102
75
  additionalGuests: import("zod").ZodOptional<import("zod").ZodNumber>;
103
- }, "strip", import("zod").ZodTypeAny, {
104
- email?: string | undefined;
105
- id?: string | undefined;
106
- displayName?: string | undefined;
107
- organizer?: boolean | undefined;
108
- self?: boolean | undefined;
109
- resource?: boolean | undefined;
110
- optional?: boolean | undefined;
111
- responseStatus?: "needsAction" | "declined" | "tentative" | "accepted" | undefined;
112
- comment?: string | undefined;
113
- additionalGuests?: number | undefined;
114
- }, {
115
- email?: string | undefined;
116
- id?: string | undefined;
117
- displayName?: string | undefined;
118
- organizer?: boolean | undefined;
119
- self?: boolean | undefined;
120
- resource?: boolean | undefined;
121
- optional?: boolean | undefined;
122
- responseStatus?: "needsAction" | "declined" | "tentative" | "accepted" | undefined;
123
- comment?: string | undefined;
124
- additionalGuests?: number | undefined;
125
- }>, "many">>;
76
+ }, import("zod/v4/core").$strip>>>;
126
77
  attendeesOmitted: import("zod").ZodOptional<import("zod").ZodBoolean>;
127
78
  hangoutLink: import("zod").ZodOptional<import("zod").ZodString>;
128
79
  reminders: import("zod").ZodOptional<import("zod").ZodObject<{
129
80
  useDefault: import("zod").ZodOptional<import("zod").ZodBoolean>;
130
81
  overrides: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
131
- method: import("zod").ZodOptional<import("zod").ZodEnum<["email", "popup"]>>;
82
+ method: import("zod").ZodOptional<import("zod").ZodEnum<{
83
+ email: "email";
84
+ popup: "popup";
85
+ }>>;
132
86
  minutes: import("zod").ZodOptional<import("zod").ZodNumber>;
133
- }, "strip", import("zod").ZodTypeAny, {
134
- method?: "email" | "popup" | undefined;
135
- minutes?: number | undefined;
136
- }, {
137
- method?: "email" | "popup" | undefined;
138
- minutes?: number | undefined;
139
- }>, "many">>;
140
- }, "strip", import("zod").ZodTypeAny, {
141
- useDefault?: boolean | undefined;
142
- overrides?: {
143
- method?: "email" | "popup" | undefined;
144
- minutes?: number | undefined;
145
- }[] | undefined;
146
- }, {
147
- useDefault?: boolean | undefined;
148
- overrides?: {
149
- method?: "email" | "popup" | undefined;
150
- minutes?: number | undefined;
151
- }[] | undefined;
152
- }>>;
87
+ }, import("zod/v4/core").$strip>>>;
88
+ }, import("zod/v4/core").$strip>>;
153
89
  anyoneCanAddSelf: import("zod").ZodOptional<import("zod").ZodBoolean>;
154
90
  guestsCanInviteOthers: import("zod").ZodOptional<import("zod").ZodBoolean>;
155
91
  guestsCanModify: import("zod").ZodOptional<import("zod").ZodBoolean>;
156
92
  guestsCanSeeOtherGuests: import("zod").ZodOptional<import("zod").ZodBoolean>;
157
93
  privateCopy: import("zod").ZodOptional<import("zod").ZodBoolean>;
158
94
  locked: import("zod").ZodOptional<import("zod").ZodBoolean>;
159
- eventType: import("zod").ZodOptional<import("zod").ZodEnum<["default", "outOfOffice", "focusTime", "workingLocation"]>>;
95
+ eventType: import("zod").ZodOptional<import("zod").ZodEnum<{
96
+ default: "default";
97
+ outOfOffice: "outOfOffice";
98
+ focusTime: "focusTime";
99
+ workingLocation: "workingLocation";
100
+ }>>;
160
101
  calendarId: import("zod").ZodOptional<import("zod").ZodString>;
161
- createdAt: import("zod").ZodOptional<import("zod").ZodDate>;
162
- }, "strip", import("zod").ZodTypeAny, {
163
- id: string;
164
- location?: string | undefined;
165
- status?: "tentative" | "confirmed" | "cancelled" | undefined;
166
- organizer?: {
167
- email?: string | undefined;
168
- id?: string | undefined;
169
- displayName?: string | undefined;
170
- self?: boolean | undefined;
171
- } | undefined;
172
- summary?: string | undefined;
173
- description?: string | undefined;
174
- start?: {
175
- date?: string | undefined;
176
- dateTime?: string | undefined;
177
- timeZone?: string | undefined;
178
- } | undefined;
179
- end?: {
180
- date?: string | undefined;
181
- dateTime?: string | undefined;
182
- timeZone?: string | undefined;
183
- } | undefined;
184
- attendees?: {
185
- email?: string | undefined;
186
- id?: string | undefined;
187
- displayName?: string | undefined;
188
- organizer?: boolean | undefined;
189
- self?: boolean | undefined;
190
- resource?: boolean | undefined;
191
- optional?: boolean | undefined;
192
- responseStatus?: "needsAction" | "declined" | "tentative" | "accepted" | undefined;
193
- comment?: string | undefined;
194
- additionalGuests?: number | undefined;
195
- }[] | undefined;
196
- recurrence?: string[] | undefined;
197
- colorId?: string | undefined;
198
- transparency?: "opaque" | "transparent" | undefined;
199
- visibility?: "default" | "public" | "private" | "confidential" | undefined;
200
- eventType?: "default" | "outOfOffice" | "focusTime" | "workingLocation" | undefined;
201
- reminders?: {
202
- useDefault?: boolean | undefined;
203
- overrides?: {
204
- method?: "email" | "popup" | undefined;
205
- minutes?: number | undefined;
206
- }[] | undefined;
207
- } | undefined;
208
- guestsCanModify?: boolean | undefined;
209
- guestsCanInviteOthers?: boolean | undefined;
210
- guestsCanSeeOtherGuests?: boolean | undefined;
211
- anyoneCanAddSelf?: boolean | undefined;
212
- sequence?: number | undefined;
213
- originalStartTime?: {
214
- date?: string | undefined;
215
- dateTime?: string | undefined;
216
- timeZone?: string | undefined;
217
- } | undefined;
218
- recurringEventId?: string | undefined;
219
- calendarId?: string | undefined;
220
- updated?: string | undefined;
221
- iCalUID?: string | undefined;
222
- htmlLink?: string | undefined;
223
- created?: string | undefined;
224
- creator?: {
225
- email?: string | undefined;
226
- id?: string | undefined;
227
- displayName?: string | undefined;
228
- self?: boolean | undefined;
229
- } | undefined;
230
- endTimeUnspecified?: boolean | undefined;
231
- attendeesOmitted?: boolean | undefined;
232
- hangoutLink?: string | undefined;
233
- privateCopy?: boolean | undefined;
234
- locked?: boolean | undefined;
235
- createdAt?: Date | undefined;
236
- }, {
237
- id: string;
238
- location?: string | undefined;
239
- status?: "tentative" | "confirmed" | "cancelled" | undefined;
240
- organizer?: {
241
- email?: string | undefined;
242
- id?: string | undefined;
243
- displayName?: string | undefined;
244
- self?: boolean | undefined;
245
- } | undefined;
246
- summary?: string | undefined;
247
- description?: string | undefined;
248
- start?: {
249
- date?: string | undefined;
250
- dateTime?: string | undefined;
251
- timeZone?: string | undefined;
252
- } | undefined;
253
- end?: {
254
- date?: string | undefined;
255
- dateTime?: string | undefined;
256
- timeZone?: string | undefined;
257
- } | undefined;
258
- attendees?: {
259
- email?: string | undefined;
260
- id?: string | undefined;
261
- displayName?: string | undefined;
262
- organizer?: boolean | undefined;
263
- self?: boolean | undefined;
264
- resource?: boolean | undefined;
265
- optional?: boolean | undefined;
266
- responseStatus?: "needsAction" | "declined" | "tentative" | "accepted" | undefined;
267
- comment?: string | undefined;
268
- additionalGuests?: number | undefined;
269
- }[] | undefined;
270
- recurrence?: string[] | undefined;
271
- colorId?: string | undefined;
272
- transparency?: "opaque" | "transparent" | undefined;
273
- visibility?: "default" | "public" | "private" | "confidential" | undefined;
274
- eventType?: "default" | "outOfOffice" | "focusTime" | "workingLocation" | undefined;
275
- reminders?: {
276
- useDefault?: boolean | undefined;
277
- overrides?: {
278
- method?: "email" | "popup" | undefined;
279
- minutes?: number | undefined;
280
- }[] | undefined;
281
- } | undefined;
282
- guestsCanModify?: boolean | undefined;
283
- guestsCanInviteOthers?: boolean | undefined;
284
- guestsCanSeeOtherGuests?: boolean | undefined;
285
- anyoneCanAddSelf?: boolean | undefined;
286
- sequence?: number | undefined;
287
- originalStartTime?: {
288
- date?: string | undefined;
289
- dateTime?: string | undefined;
290
- timeZone?: string | undefined;
291
- } | undefined;
292
- recurringEventId?: string | undefined;
293
- calendarId?: string | undefined;
294
- updated?: string | undefined;
295
- iCalUID?: string | undefined;
296
- htmlLink?: string | undefined;
297
- created?: string | undefined;
298
- creator?: {
299
- email?: string | undefined;
300
- id?: string | undefined;
301
- displayName?: string | undefined;
302
- self?: boolean | undefined;
303
- } | undefined;
304
- endTimeUnspecified?: boolean | undefined;
305
- attendeesOmitted?: boolean | undefined;
306
- hangoutLink?: string | undefined;
307
- privateCopy?: boolean | undefined;
308
- locked?: boolean | undefined;
309
- createdAt?: Date | undefined;
310
- }>;
102
+ createdAt: import("zod").ZodOptional<import("zod").ZodCoercedDate<unknown>>;
103
+ }, import("zod/v4/core").$strip>;
311
104
  readonly calendars: import("zod").ZodObject<{
312
105
  id: import("zod").ZodString;
313
106
  summary: import("zod").ZodOptional<import("zod").ZodString>;
314
107
  description: import("zod").ZodOptional<import("zod").ZodString>;
315
108
  location: import("zod").ZodOptional<import("zod").ZodString>;
316
109
  timeZone: import("zod").ZodOptional<import("zod").ZodString>;
317
- createdAt: import("zod").ZodOptional<import("zod").ZodDate>;
318
- }, "strip", import("zod").ZodTypeAny, {
319
- id: string;
320
- location?: string | undefined;
321
- timeZone?: string | undefined;
322
- summary?: string | undefined;
323
- description?: string | undefined;
324
- createdAt?: Date | undefined;
325
- }, {
326
- id: string;
327
- location?: string | undefined;
328
- timeZone?: string | undefined;
329
- summary?: string | undefined;
330
- description?: string | undefined;
331
- createdAt?: Date | undefined;
332
- }>;
110
+ createdAt: import("zod").ZodOptional<import("zod").ZodCoercedDate<unknown>>;
111
+ }, import("zod/v4/core").$strip>;
333
112
  };
334
113
  };
335
114
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../schema/index.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAMvB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../schema/index.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAMvB,CAAC"}
@@ -14,8 +14,8 @@ export declare const EventWebhooks: {
14
14
  } | {
15
15
  type: "eventDeleted";
16
16
  calendarId: string;
17
- timestamp: string;
18
17
  eventId: string;
18
+ timestamp: string;
19
19
  }>, {
20
20
  type: "eventCreated";
21
21
  calendarId: string;
@@ -29,8 +29,8 @@ export declare const EventWebhooks: {
29
29
  } | {
30
30
  type: "eventDeleted";
31
31
  calendarId: string;
32
- timestamp: string;
33
32
  eventId: string;
33
+ timestamp: string;
34
34
  }>;
35
35
  };
36
36
  };
@@ -6,17 +6,7 @@ export declare const PubSubMessageSchema: z.ZodObject<{
6
6
  attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
7
7
  messageId: z.ZodOptional<z.ZodString>;
8
8
  publishTime: z.ZodOptional<z.ZodString>;
9
- }, "strip", z.ZodTypeAny, {
10
- data?: string | undefined;
11
- attributes?: Record<string, string> | undefined;
12
- messageId?: string | undefined;
13
- publishTime?: string | undefined;
14
- }, {
15
- data?: string | undefined;
16
- attributes?: Record<string, string> | undefined;
17
- messageId?: string | undefined;
18
- publishTime?: string | undefined;
19
- }>;
9
+ }, z.core.$strip>;
20
10
  export type PubSubMessage = z.infer<typeof PubSubMessageSchema>;
21
11
  export declare const PubSubNotificationSchema: z.ZodObject<{
22
12
  message: z.ZodOptional<z.ZodObject<{
@@ -24,38 +14,10 @@ export declare const PubSubNotificationSchema: z.ZodObject<{
24
14
  attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
25
15
  messageId: z.ZodOptional<z.ZodString>;
26
16
  publishTime: z.ZodOptional<z.ZodString>;
27
- }, "strip", z.ZodTypeAny, {
28
- data?: string | undefined;
29
- attributes?: Record<string, string> | undefined;
30
- messageId?: string | undefined;
31
- publishTime?: string | undefined;
32
- }, {
33
- data?: string | undefined;
34
- attributes?: Record<string, string> | undefined;
35
- messageId?: string | undefined;
36
- publishTime?: string | undefined;
37
- }>>;
17
+ }, z.core.$strip>>;
38
18
  subscription: z.ZodOptional<z.ZodString>;
39
19
  event: z.ZodOptional<z.ZodUnknown>;
40
- }, "strip", z.ZodTypeAny, {
41
- message?: {
42
- data?: string | undefined;
43
- attributes?: Record<string, string> | undefined;
44
- messageId?: string | undefined;
45
- publishTime?: string | undefined;
46
- } | undefined;
47
- event?: unknown;
48
- subscription?: string | undefined;
49
- }, {
50
- message?: {
51
- data?: string | undefined;
52
- attributes?: Record<string, string> | undefined;
53
- messageId?: string | undefined;
54
- publishTime?: string | undefined;
55
- } | undefined;
56
- event?: unknown;
57
- subscription?: string | undefined;
58
- }>;
20
+ }, z.core.$strip>;
59
21
  export type PubSubNotification<TEvent = unknown> = Omit<z.infer<typeof PubSubNotificationSchema>, 'event'> & {
60
22
  event?: TEvent;
61
23
  };
@@ -67,121 +29,45 @@ export declare const GoogleCalendarPushNotificationSchema: z.ZodObject<{
67
29
  channelExpiration: z.ZodOptional<z.ZodString>;
68
30
  channelToken: z.ZodOptional<z.ZodString>;
69
31
  changed: z.ZodOptional<z.ZodString>;
70
- }, "strip", z.ZodTypeAny, {
71
- resourceId?: string | undefined;
72
- resourceState?: string | undefined;
73
- resourceUri?: string | undefined;
74
- channelId?: string | undefined;
75
- channelExpiration?: string | undefined;
76
- channelToken?: string | undefined;
77
- changed?: string | undefined;
78
- }, {
79
- resourceId?: string | undefined;
80
- resourceState?: string | undefined;
81
- resourceUri?: string | undefined;
82
- channelId?: string | undefined;
83
- channelExpiration?: string | undefined;
84
- channelToken?: string | undefined;
85
- changed?: string | undefined;
86
- }>;
32
+ }, z.core.$strip>;
87
33
  export type GoogleCalendarPushNotification = z.infer<typeof GoogleCalendarPushNotificationSchema>;
88
34
  export declare const EventCreatedEventSchema: z.ZodObject<{
89
35
  type: z.ZodLiteral<"eventCreated">;
90
36
  calendarId: z.ZodString;
91
- event: z.ZodType<Event, z.ZodTypeDef, Event>;
37
+ event: z.ZodCustom<Event, Event>;
92
38
  timestamp: z.ZodString;
93
- }, "strip", z.ZodTypeAny, {
94
- type: "eventCreated";
95
- calendarId: string;
96
- event: Event;
97
- timestamp: string;
98
- }, {
99
- type: "eventCreated";
100
- calendarId: string;
101
- event: Event;
102
- timestamp: string;
103
- }>;
39
+ }, z.core.$strip>;
104
40
  export type EventCreatedEvent = z.infer<typeof EventCreatedEventSchema>;
105
41
  export declare const EventUpdatedEventSchema: z.ZodObject<{
106
42
  type: z.ZodLiteral<"eventUpdated">;
107
43
  calendarId: z.ZodString;
108
- event: z.ZodType<Event, z.ZodTypeDef, Event>;
44
+ event: z.ZodCustom<Event, Event>;
109
45
  timestamp: z.ZodString;
110
- }, "strip", z.ZodTypeAny, {
111
- type: "eventUpdated";
112
- calendarId: string;
113
- event: Event;
114
- timestamp: string;
115
- }, {
116
- type: "eventUpdated";
117
- calendarId: string;
118
- event: Event;
119
- timestamp: string;
120
- }>;
46
+ }, z.core.$strip>;
121
47
  export type EventUpdatedEvent = z.infer<typeof EventUpdatedEventSchema>;
122
48
  export declare const EventDeletedEventSchema: z.ZodObject<{
123
49
  type: z.ZodLiteral<"eventDeleted">;
124
50
  calendarId: z.ZodString;
125
51
  eventId: z.ZodString;
126
52
  timestamp: z.ZodString;
127
- }, "strip", z.ZodTypeAny, {
128
- type: "eventDeleted";
129
- calendarId: string;
130
- timestamp: string;
131
- eventId: string;
132
- }, {
133
- type: "eventDeleted";
134
- calendarId: string;
135
- timestamp: string;
136
- eventId: string;
137
- }>;
53
+ }, z.core.$strip>;
138
54
  export type EventDeletedEvent = z.infer<typeof EventDeletedEventSchema>;
139
- export declare const GoogleCalendarWebhookEventSchema: z.ZodUnion<[z.ZodObject<{
55
+ export declare const GoogleCalendarWebhookEventSchema: z.ZodUnion<readonly [z.ZodObject<{
140
56
  type: z.ZodLiteral<"eventCreated">;
141
57
  calendarId: z.ZodString;
142
- event: z.ZodType<Event, z.ZodTypeDef, Event>;
58
+ event: z.ZodCustom<Event, Event>;
143
59
  timestamp: z.ZodString;
144
- }, "strip", z.ZodTypeAny, {
145
- type: "eventCreated";
146
- calendarId: string;
147
- event: Event;
148
- timestamp: string;
149
- }, {
150
- type: "eventCreated";
151
- calendarId: string;
152
- event: Event;
153
- timestamp: string;
154
- }>, z.ZodObject<{
60
+ }, z.core.$strip>, z.ZodObject<{
155
61
  type: z.ZodLiteral<"eventUpdated">;
156
62
  calendarId: z.ZodString;
157
- event: z.ZodType<Event, z.ZodTypeDef, Event>;
63
+ event: z.ZodCustom<Event, Event>;
158
64
  timestamp: z.ZodString;
159
- }, "strip", z.ZodTypeAny, {
160
- type: "eventUpdated";
161
- calendarId: string;
162
- event: Event;
163
- timestamp: string;
164
- }, {
165
- type: "eventUpdated";
166
- calendarId: string;
167
- event: Event;
168
- timestamp: string;
169
- }>, z.ZodObject<{
65
+ }, z.core.$strip>, z.ZodObject<{
170
66
  type: z.ZodLiteral<"eventDeleted">;
171
67
  calendarId: z.ZodString;
172
68
  eventId: z.ZodString;
173
69
  timestamp: z.ZodString;
174
- }, "strip", z.ZodTypeAny, {
175
- type: "eventDeleted";
176
- calendarId: string;
177
- timestamp: string;
178
- eventId: string;
179
- }, {
180
- type: "eventDeleted";
181
- calendarId: string;
182
- timestamp: string;
183
- eventId: string;
184
- }>]>;
70
+ }, z.core.$strip>]>;
185
71
  export type GoogleCalendarWebhookEvent = z.infer<typeof GoogleCalendarWebhookEventSchema>;
186
72
  export type GoogleCalendarEventName = 'eventChanged';
187
73
  export interface GoogleCalendarEventMap {
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../webhooks/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAqB,MAAM,cAAc,CAAC;AAC7E,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AAMtC,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;EAK9B,CAAC;AACH,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAEhE,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAInC,CAAC;AACH,MAAM,MAAM,kBAAkB,CAAC,MAAM,GAAG,OAAO,IAAI,IAAI,CACtD,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,EACxC,OAAO,CACP,GA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AG,CAAC,CAAC,KAAK,CAC/C,OAAO,gCAAgC,CACvC,CAAC;AAEF,MAAM,MAAM,uBAAuB,GAAG,cAAc,CAAC;AAErD,MAAM,WAAW,sBAAsB;IACtC,YAAY,EAAE,iBAAiB,GAAG,iBAAiB,GAAG,iBAAiB,CAAC;CACxE;AAED,MAAM,MAAM,4BAA4B,CAAC,MAAM,GAAG,OAAO,IACxD,kBAAkB,CAAC,MAAM,CAAC,CAAC;AAE5B,MAAM,MAAM,4BAA4B,GAAG;IAC1C,YAAY,EAAE,iBAAiB,GAAG,iBAAiB,GAAG,iBAAiB,CAAC;CACxE,CAAC;AAMF,wBAAgB,mBAAmB,CAClC,IAAI,EAAE,MAAM,GACV,8BAA8B,CAGhC;AAED,wBAAgB,kCAAkC,CACjD,SAAS,EAAE,uBAAuB,GAChC,qBAAqB,CAoBvB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@corsair-dev/googlecalendar",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "description": "Google calendar plugin for Corsair",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -19,15 +19,15 @@
19
19
  },
20
20
  "peerDependencies": {
21
21
  "corsair": ">=0.1.0",
22
- "zod": "^3.0.0"
22
+ "zod": "^4.1.13"
23
23
  },
24
24
  "devDependencies": {
25
25
  "@types/jest": "^29.5.14",
26
26
  "ts-jest": "^29.4.9",
27
27
  "tsup": "^8.0.1",
28
28
  "typescript": "^5.9.3",
29
- "zod": "^3.25.76",
30
- "corsair": "0.1.67"
29
+ "zod": "^4.1.13",
30
+ "corsair": "0.1.69"
31
31
  },
32
32
  "keywords": [
33
33
  "corsair",