@macro-inc/sdk 0.2.2 → 0.4.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.
Files changed (175) hide show
  1. package/README.md +177 -3
  2. package/dist/{chunk-OGE7WXJE.js → chunk-AZJUIUIV.js} +177 -23
  3. package/dist/{chunk-PRUFPW3B.js → chunk-G43PLP2U.js} +144 -0
  4. package/dist/{chunk-7LVVPVNT.js → chunk-K4G5VO4P.js} +76 -1
  5. package/dist/{chunk-PAAFJYGO.js → chunk-PPR7IWZ7.js} +77 -51
  6. package/dist/{chunk-QVBNNMQS.js → chunk-PTX2RV2N.js} +169 -20
  7. package/dist/{chunk-SUINKDXF.js → chunk-PZPTJI6F.js} +42 -0
  8. package/dist/{chunk-7YJ6Y7HJ.js → chunk-XFA7NCJ5.js} +207 -0
  9. package/dist/{chunk-ZQXOHNDB.js → chunk-ZLBDES7U.js} +789 -12
  10. package/dist/generated/agent-fold/index.d.ts +4332 -0
  11. package/dist/generated/agent-fold/index.js +0 -0
  12. package/dist/generated/agent-harness/index.d.ts +1 -1
  13. package/dist/generated/agent-harness/index.js +1 -1
  14. package/dist/generated/agent-harness/sdk.gen.d.ts +83 -9
  15. package/dist/generated/agent-harness/types.gen.d.ts +1504 -160
  16. package/dist/generated/agent-reviews/index.d.ts +893 -0
  17. package/dist/generated/agent-reviews/index.js +0 -0
  18. package/dist/generated/auth/index.d.ts +1 -1
  19. package/dist/generated/auth/index.js +1 -1
  20. package/dist/generated/auth/sdk.gen.d.ts +108 -2
  21. package/dist/generated/auth/types.gen.d.ts +799 -6
  22. package/dist/generated/calendar/index.d.ts +1 -1
  23. package/dist/generated/calendar/index.js +1 -1
  24. package/dist/generated/calendar/sdk.gen.d.ts +63 -1
  25. package/dist/generated/calendar/types.gen.d.ts +1234 -5
  26. package/dist/generated/cognition/index.d.ts +1 -1
  27. package/dist/generated/cognition/index.js +1 -1
  28. package/dist/generated/cognition/sdk.gen.d.ts +85 -20
  29. package/dist/generated/cognition/types.gen.d.ts +1040 -121
  30. package/dist/generated/connection/index.d.ts +1 -1
  31. package/dist/generated/connection/index.js +15 -0
  32. package/dist/generated/connection/sdk.gen.d.ts +6 -1
  33. package/dist/generated/connection/types.gen.d.ts +18 -1
  34. package/dist/generated/email/index.d.ts +1 -1
  35. package/dist/generated/email/index.js +1 -1
  36. package/dist/generated/email/sdk.gen.d.ts +44 -2
  37. package/dist/generated/email/types.gen.d.ts +475 -10
  38. package/dist/generated/notification/index.d.ts +1 -1
  39. package/dist/generated/notification/index.js +1 -1
  40. package/dist/generated/notification/sdk.gen.d.ts +29 -21
  41. package/dist/generated/notification/types.gen.d.ts +267 -73
  42. package/dist/generated/properties/index.d.ts +1 -1
  43. package/dist/generated/properties/types.gen.d.ts +21 -1
  44. package/dist/generated/scheduled-action/index.d.ts +1 -1
  45. package/dist/generated/scheduled-action/index.js +1 -1
  46. package/dist/generated/scheduled-action/sdk.gen.d.ts +8 -1
  47. package/dist/generated/scheduled-action/types.gen.d.ts +669 -19
  48. package/dist/generated/search/index.d.ts +1 -1
  49. package/dist/generated/search/types.gen.d.ts +87 -7
  50. package/dist/generated/static-files/types.gen.d.ts +6 -0
  51. package/dist/generated/storage/index.d.ts +1 -1
  52. package/dist/generated/storage/index.js +1 -1
  53. package/dist/generated/storage/sdk.gen.d.ts +376 -13
  54. package/dist/generated/storage/types.gen.d.ts +12038 -5562
  55. package/dist/src/entities/account-managers/grant.d.ts +39 -0
  56. package/dist/src/entities/account-managers/namespace.d.ts +17 -0
  57. package/dist/src/entities/agent-sessions/activity.d.ts +39 -0
  58. package/dist/src/entities/agent-sessions/agent-session.d.ts +148 -6
  59. package/dist/src/entities/agent-sessions/code-execution.d.ts +5 -0
  60. package/dist/src/entities/agent-sessions/namespace.d.ts +54 -4
  61. package/dist/src/entities/agent-sessions/origin.d.ts +94 -0
  62. package/dist/src/entities/agent-sessions/review.d.ts +18 -62
  63. package/dist/src/entities/agent-sessions/view.d.ts +11 -0
  64. package/dist/src/entities/agents/namespace.d.ts +11 -2
  65. package/dist/src/entities/ai/namespace.d.ts +5 -1
  66. package/dist/src/entities/api-keys/namespace.d.ts +5 -1
  67. package/dist/src/entities/bots/bot.d.ts +108 -0
  68. package/dist/src/entities/bots/namespace.d.ts +17 -4
  69. package/dist/src/entities/bots/token.d.ts +34 -0
  70. package/dist/src/entities/calendar/booking-link.d.ts +49 -0
  71. package/dist/src/entities/calendar/booking-namespace.d.ts +130 -0
  72. package/dist/src/entities/calendar/booking-namespace.test.d.ts +1 -0
  73. package/dist/src/entities/calendar/booking.d.ts +77 -0
  74. package/dist/src/entities/calendar/calendar.d.ts +11 -4
  75. package/dist/src/entities/calendar/create-confirmed.test.d.ts +1 -0
  76. package/dist/src/entities/calendar/event.d.ts +104 -3
  77. package/dist/src/entities/calendar/namespace.d.ts +151 -7
  78. package/dist/src/entities/calendar/namespace.test.d.ts +1 -0
  79. package/dist/src/entities/calls/call-record.d.ts +34 -4
  80. package/dist/src/entities/calls/connection.d.ts +53 -0
  81. package/dist/src/entities/calls/errors.d.ts +15 -0
  82. package/dist/src/entities/calls/namespace.d.ts +21 -1
  83. package/dist/src/entities/calls/participant.d.ts +22 -0
  84. package/dist/src/entities/channels/access-request.d.ts +34 -0
  85. package/dist/src/entities/channels/channel.d.ts +47 -1
  86. package/dist/src/entities/channels/namespace.d.ts +21 -5
  87. package/dist/src/entities/channels/namespace.test.d.ts +1 -0
  88. package/dist/src/entities/channels/post.d.ts +14 -3
  89. package/dist/src/entities/channels/thread.d.ts +10 -1
  90. package/dist/src/entities/chats/chat.d.ts +7 -1
  91. package/dist/src/entities/chats/namespace.d.ts +14 -1
  92. package/dist/src/entities/connected-apps/connected-app.d.ts +107 -0
  93. package/dist/src/entities/connected-apps/connector.d.ts +56 -0
  94. package/dist/src/entities/connected-apps/namespace.d.ts +74 -0
  95. package/dist/src/entities/crm/company.d.ts +7 -3
  96. package/dist/src/entities/crm/contact.d.ts +4 -4
  97. package/dist/src/entities/crm/namespace.d.ts +34 -1
  98. package/dist/src/entities/crm/pipeline.d.ts +43 -2
  99. package/dist/src/entities/databases/database.d.ts +17 -0
  100. package/dist/src/entities/databases/namespace.d.ts +56 -0
  101. package/dist/src/entities/documents/ai-edit.d.ts +52 -0
  102. package/dist/src/entities/documents/document.d.ts +244 -5
  103. package/dist/src/entities/documents/namespace.d.ts +89 -4
  104. package/dist/src/entities/documents/office-files.d.ts +47 -0
  105. package/dist/src/entities/email/draft.d.ts +36 -7
  106. package/dist/src/entities/email/message.d.ts +99 -3
  107. package/dist/src/entities/email/namespace.d.ts +47 -4
  108. package/dist/src/entities/email/namespace.test.d.ts +1 -0
  109. package/dist/src/entities/email/thread.d.ts +55 -3
  110. package/dist/src/entities/entity-mentions/namespace.d.ts +5 -1
  111. package/dist/src/entities/external-chat/chat.d.ts +105 -0
  112. package/dist/src/entities/external-chat/message.d.ts +54 -0
  113. package/dist/src/entities/external-chat/namespace.d.ts +18 -0
  114. package/dist/src/entities/external-chat/participant.d.ts +28 -0
  115. package/dist/src/entities/external-chat/send.d.ts +32 -0
  116. package/dist/src/entities/external-chat/upload.d.ts +25 -0
  117. package/dist/src/entities/favorites/namespace.d.ts +5 -1
  118. package/dist/src/entities/foreign/namespace.d.ts +3 -0
  119. package/dist/src/entities/forms/form.d.ts +17 -2
  120. package/dist/src/entities/forms/namespace.d.ts +5 -1
  121. package/dist/src/entities/github-pull-requests/namespace.d.ts +5 -1
  122. package/dist/src/entities/harnesses/harness.d.ts +9 -0
  123. package/dist/src/entities/harnesses/namespace.d.ts +5 -1
  124. package/dist/src/entities/images/image.d.ts +77 -0
  125. package/dist/src/entities/images/namespace.d.ts +48 -0
  126. package/dist/src/entities/images/namespace.test.d.ts +1 -0
  127. package/dist/src/entities/initiatives/initiative.d.ts +12 -1
  128. package/dist/src/entities/initiatives/namespace.d.ts +15 -2
  129. package/dist/src/entities/me/namespace.d.ts +43 -0
  130. package/dist/src/entities/meetings/meeting.d.ts +5 -0
  131. package/dist/src/entities/meetings/namespace.d.ts +5 -1
  132. package/dist/src/entities/messages/thread.d.ts +1 -1
  133. package/dist/src/entities/notifications/namespace.d.ts +3 -0
  134. package/dist/src/entities/pins/namespace.d.ts +5 -1
  135. package/dist/src/entities/projects/namespace.d.ts +4 -1
  136. package/dist/src/entities/projects/project.d.ts +9 -1
  137. package/dist/src/entities/properties/namespace.d.ts +2 -0
  138. package/dist/src/entities/referrals/namespace.d.ts +33 -0
  139. package/dist/src/entities/routines/namespace.d.ts +42 -2
  140. package/dist/src/entities/routines/routine.d.ts +84 -5
  141. package/dist/src/entities/search/namespace.d.ts +65 -0
  142. package/dist/src/entities/{search.d.ts → search/options.d.ts} +8 -2
  143. package/dist/src/entities/search/types.d.ts +90 -0
  144. package/dist/src/entities/sharing/access.d.ts +14 -0
  145. package/dist/src/entities/tasks/namespace.d.ts +42 -3
  146. package/dist/src/entities/tasks/task.d.ts +47 -6
  147. package/dist/src/entities/teams/invite.d.ts +30 -0
  148. package/dist/src/entities/teams/namespace.d.ts +3 -0
  149. package/dist/src/entities/teams/team.d.ts +37 -0
  150. package/dist/src/entities/unfurls/namespace.d.ts +5 -1
  151. package/dist/src/entities/users/namespace.d.ts +9 -0
  152. package/dist/src/entities/users/user.d.ts +8 -0
  153. package/dist/src/entities/web/namespace.d.ts +61 -0
  154. package/dist/src/entities/web/namespace.test.d.ts +1 -0
  155. package/dist/src/entities/webhooks/namespace.d.ts +2 -0
  156. package/dist/src/entities/whatsapp/account.d.ts +20 -0
  157. package/dist/src/entities/whatsapp/chat.d.ts +54 -0
  158. package/dist/src/entities/whatsapp/namespace.d.ts +23 -0
  159. package/dist/src/entities/workspace/items.d.ts +7 -0
  160. package/dist/src/entities/workspace/namespace.d.ts +14 -9
  161. package/dist/src/entities/workspace/query.d.ts +23 -0
  162. package/dist/src/entities/workspace/types.d.ts +6 -3
  163. package/dist/src/events/hydrate/agentSession.d.ts +1 -1
  164. package/dist/src/events/hydrate/call.d.ts +101 -0
  165. package/dist/src/events/hydrate/channel.d.ts +8 -1
  166. package/dist/src/events/hydrate/document.d.ts +1 -1
  167. package/dist/src/events/hydrate/message.d.ts +1 -1
  168. package/dist/src/events/types.d.ts +2 -1
  169. package/dist/src/macro.d.ts +73 -4
  170. package/dist/src/macro.js +8235 -3701
  171. package/dist/src/mentions.d.ts +6 -1
  172. package/dist/src/utils/activity.d.ts +23 -2
  173. package/dist/src/utils/index.d.ts +1 -1
  174. package/dist/src/utils/unwrap.d.ts +27 -2
  175. package/package.json +2 -2
@@ -44,6 +44,529 @@ export type AvailabilityCalendarsResponse = {
44
44
  */
45
45
  calendars: Array<AvailabilityCalendar>;
46
46
  };
47
+ /**
48
+ * Public booking details, also visible to authorized profile members.
49
+ */
50
+ export type Booking = {
51
+ /**
52
+ * Answers keyed by question identity.
53
+ */
54
+ answers: {
55
+ [key: string]: string;
56
+ };
57
+ /**
58
+ * Explicit attendance outcome; existing booking records default to unknown.
59
+ */
60
+ attendance?: BookingAttendance;
61
+ /**
62
+ * Booker's email.
63
+ */
64
+ email: string;
65
+ /**
66
+ * Absolute meeting end.
67
+ */
68
+ endsAt: string;
69
+ /**
70
+ * Booking link identity.
71
+ */
72
+ eventTypeId: string;
73
+ /**
74
+ * Assigned hosts.
75
+ */
76
+ hosts: Array<string>;
77
+ /**
78
+ * Booking identity.
79
+ */
80
+ id: string;
81
+ /**
82
+ * Final location or conference URL.
83
+ */
84
+ location: string;
85
+ /**
86
+ * Booker's name.
87
+ */
88
+ name: string;
89
+ /**
90
+ * Original labels for answers, independent of later event-type edits.
91
+ */
92
+ questionLabels?: {
93
+ [key: string]: string;
94
+ };
95
+ /**
96
+ * Number of successfully completed moves to a different start time.
97
+ */
98
+ rescheduleCount?: number;
99
+ /**
100
+ * When the most recent successful reschedule completed.
101
+ */
102
+ rescheduledAt?: string | null;
103
+ /**
104
+ * Absolute meeting start.
105
+ */
106
+ startsAt: string;
107
+ /**
108
+ * Current lifecycle state.
109
+ */
110
+ status: BookingStatus;
111
+ /**
112
+ * Booker's display time zone.
113
+ */
114
+ timeZone: string;
115
+ /**
116
+ * Snapshot of the meeting title.
117
+ */
118
+ title: string;
119
+ };
120
+ /**
121
+ * Attendance recorded by an assigned host or profile administrator after a meeting.
122
+ */
123
+ export type BookingAttendance = 'unknown' | 'attended' | 'guestNoShow' | 'hostNoShow';
124
+ /**
125
+ * A host's requested change to a booked meeting.
126
+ */
127
+ export type BookingChange = {
128
+ action: 'approve';
129
+ } | {
130
+ action: 'cancel';
131
+ } | {
132
+ action: 'attendance';
133
+ /**
134
+ * Recorded outcome.
135
+ */
136
+ attendance: BookingAttendance;
137
+ } | {
138
+ action: 'reschedule';
139
+ /**
140
+ * Absolute start chosen from available replacement slots.
141
+ */
142
+ startsAt: string;
143
+ };
144
+ /**
145
+ * Replacement availability for one date.
146
+ */
147
+ export type BookingDateOverride = {
148
+ /**
149
+ * Local date in the schedule zone.
150
+ */
151
+ date: string;
152
+ /**
153
+ * Empty means unavailable all day.
154
+ */
155
+ windows: Array<BookingTimeWindow>;
156
+ };
157
+ /**
158
+ * A reusable booking link.
159
+ */
160
+ export type BookingEventType = {
161
+ /**
162
+ * Protected time after a meeting.
163
+ */
164
+ afterMinutes: number;
165
+ /**
166
+ * Protected time before a meeting.
167
+ */
168
+ beforeMinutes: number;
169
+ /**
170
+ * Maximum bookings for this event on one schedule-local day.
171
+ */
172
+ dailyLimit?: number | null;
173
+ /**
174
+ * Public description.
175
+ */
176
+ description: string;
177
+ /**
178
+ * Meeting duration.
179
+ */
180
+ durationMinutes: number;
181
+ /**
182
+ * Whether new bookings are accepted.
183
+ */
184
+ enabled: boolean;
185
+ /**
186
+ * Generate a Google Meet conference. Mutually exclusive with a Macro call.
187
+ */
188
+ googleMeet: boolean;
189
+ /**
190
+ * Maximum days ahead.
191
+ */
192
+ horizonDays: number;
193
+ /**
194
+ * Current Macro user identities selected as hosts.
195
+ */
196
+ hosts: Array<string>;
197
+ /**
198
+ * Stable identity.
199
+ */
200
+ id: string;
201
+ /**
202
+ * Spacing of offered start times.
203
+ */
204
+ intervalMinutes: number;
205
+ /**
206
+ * Meeting location.
207
+ */
208
+ location: string;
209
+ /**
210
+ * Generate a Macro call and attach its join link when someone books.
211
+ * Mutually exclusive with Google Meet. Omitted on links saved before
212
+ * Macro calls were a booking option, which keep their previous conference.
213
+ */
214
+ macroCall?: boolean;
215
+ /**
216
+ * Host assignment policy.
217
+ */
218
+ mode: SchedulingMode;
219
+ /**
220
+ * Minimum notice in minutes.
221
+ */
222
+ noticeMinutes: number;
223
+ /**
224
+ * Additional form fields.
225
+ */
226
+ questions: Array<BookingQuestion>;
227
+ /**
228
+ * Hold bookings for host approval.
229
+ */
230
+ requiresConfirmation: boolean;
231
+ /**
232
+ * Referenced availability schedule.
233
+ */
234
+ scheduleId: string;
235
+ /**
236
+ * Unique link segment within a profile.
237
+ */
238
+ slug: string;
239
+ /**
240
+ * Public title.
241
+ */
242
+ title: string;
243
+ };
244
+ /**
245
+ * Current and equally long preceding local-calendar periods.
246
+ */
247
+ export type BookingInsights = {
248
+ /**
249
+ * Time at which completion was evaluated.
250
+ */
251
+ asOf: string;
252
+ /**
253
+ * Requested period.
254
+ */
255
+ current: InsightPeriod;
256
+ /**
257
+ * Comparison period, using identical filters and definitions.
258
+ */
259
+ previous: InsightPeriod;
260
+ /**
261
+ * Preceding period's first local date.
262
+ */
263
+ previousFrom: string;
264
+ /**
265
+ * Preceding period's last local date.
266
+ */
267
+ previousTo: string;
268
+ };
269
+ /**
270
+ * Saved link with actual identities and revision for subsequent edits.
271
+ */
272
+ export type BookingLink = {
273
+ /**
274
+ * Full editable configuration.
275
+ */
276
+ draft: BookingLinkDraft;
277
+ /**
278
+ * Stable link identity.
279
+ */
280
+ eventTypeId: string;
281
+ /**
282
+ * Owning profile.
283
+ */
284
+ profileId: string;
285
+ /**
286
+ * Profile revision to supply when editing.
287
+ */
288
+ revision: number;
289
+ };
290
+ /**
291
+ * Complete proposal reviewed and validated before saving.
292
+ */
293
+ export type BookingLinkDraft = {
294
+ /**
295
+ * Public details, hosts, booking rules and questions.
296
+ */
297
+ event: BookingLinkEvent;
298
+ /**
299
+ * Weekly hours, IANA time zone, and date overrides for this link.
300
+ */
301
+ schedule: BookingLinkSchedule;
302
+ };
303
+ /**
304
+ * All editable rules for one link. Personal links must use the authenticated user as host.
305
+ */
306
+ export type BookingLinkEvent = {
307
+ /**
308
+ * Protected time after a meeting.
309
+ */
310
+ afterMinutes: number;
311
+ /**
312
+ * Protected time before a meeting.
313
+ */
314
+ beforeMinutes: number;
315
+ /**
316
+ * Maximum bookings for this event on one schedule-local day.
317
+ */
318
+ dailyLimit?: number | null;
319
+ /**
320
+ * Public description.
321
+ */
322
+ description: string;
323
+ /**
324
+ * Meeting duration.
325
+ */
326
+ durationMinutes: number;
327
+ /**
328
+ * Whether new bookings are accepted.
329
+ */
330
+ enabled: boolean;
331
+ /**
332
+ * Generate a Google Meet conference. Mutually exclusive with `macroCall`.
333
+ */
334
+ googleMeet: boolean;
335
+ /**
336
+ * Maximum days ahead.
337
+ */
338
+ horizonDays: number;
339
+ /**
340
+ * Current Macro user identities selected as hosts.
341
+ */
342
+ hosts: Array<string>;
343
+ /**
344
+ * Spacing of offered start times.
345
+ */
346
+ intervalMinutes: number;
347
+ /**
348
+ * Meeting location.
349
+ */
350
+ location: string;
351
+ /**
352
+ * Attach a Macro call when someone books. A join link is created for that
353
+ * booking and written onto the calendar invitation. Mutually exclusive
354
+ * with `googleMeet`. Prefer this for a Macro booking; omit or false when
355
+ * the link should use Google Meet or no video. False is omitted so drafts
356
+ * saved before this field still round-trip unchanged.
357
+ */
358
+ macroCall?: boolean;
359
+ /**
360
+ * Host assignment policy.
361
+ */
362
+ mode: SchedulingMode;
363
+ /**
364
+ * Minimum notice in minutes.
365
+ */
366
+ noticeMinutes: number;
367
+ /**
368
+ * Additional form fields.
369
+ */
370
+ questions: Array<BookingQuestion>;
371
+ /**
372
+ * Hold bookings for host approval.
373
+ */
374
+ requiresConfirmation: boolean;
375
+ /**
376
+ * Unique link segment within a profile.
377
+ */
378
+ slug: string;
379
+ /**
380
+ * Public title.
381
+ */
382
+ title: string;
383
+ };
384
+ /**
385
+ * Authorized discovery results including reusable availability.
386
+ */
387
+ export type BookingLinkListing = {
388
+ /**
389
+ * Links whose title, slug or description matches the search, including paused links.
390
+ */
391
+ links: Array<BookingLink>;
392
+ /**
393
+ * Owning profile identity, including unsaved new profiles.
394
+ */
395
+ profileId: string;
396
+ /**
397
+ * Current revision.
398
+ */
399
+ revision: number;
400
+ /**
401
+ * Reusable schedules, even when no links match.
402
+ */
403
+ schedules: Array<BookingSchedule>;
404
+ /**
405
+ * Current team identities that can be used to discover team links.
406
+ */
407
+ teamIds: Array<string>;
408
+ /**
409
+ * Current authenticated host identity for personal drafts.
410
+ */
411
+ userId: string;
412
+ };
413
+ /**
414
+ * Availability copied into a dedicated schedule when it changes; other links retain their hours.
415
+ */
416
+ export type BookingLinkSchedule = {
417
+ /**
418
+ * Display name.
419
+ */
420
+ name: string;
421
+ /**
422
+ * Date-specific replacements.
423
+ */
424
+ overrides: Array<BookingDateOverride>;
425
+ /**
426
+ * IANA time zone.
427
+ */
428
+ timeZone: string;
429
+ /**
430
+ * Weekly windows.
431
+ */
432
+ weekly: Array<BookingWeeklyDay>;
433
+ };
434
+ /**
435
+ * Editable configuration for a person or team.
436
+ */
437
+ export type BookingProfile = {
438
+ /**
439
+ * Personal hours used by team events; absent legacy profiles use their first schedule.
440
+ */
441
+ defaultScheduleId?: string | null;
442
+ /**
443
+ * Public introduction.
444
+ */
445
+ description: string;
446
+ /**
447
+ * Booking links.
448
+ */
449
+ eventTypes: Array<BookingEventType>;
450
+ /**
451
+ * Public, opaque profile identity.
452
+ */
453
+ id: string;
454
+ /**
455
+ * Display name on the public page.
456
+ */
457
+ name: string;
458
+ /**
459
+ * Optimistic concurrency version.
460
+ */
461
+ revision: number;
462
+ /**
463
+ * Reusable schedules.
464
+ */
465
+ schedules: Array<BookingSchedule>;
466
+ };
467
+ /**
468
+ * A question on the booking form.
469
+ */
470
+ export type BookingQuestion = {
471
+ /**
472
+ * Stable identity.
473
+ */
474
+ id: string;
475
+ /**
476
+ * Public question label.
477
+ */
478
+ label: string;
479
+ /**
480
+ * Whether an answer is mandatory.
481
+ */
482
+ required: boolean;
483
+ };
484
+ /**
485
+ * One booking after a change.
486
+ */
487
+ export type BookingResponse = {
488
+ /**
489
+ * The saved booking.
490
+ */
491
+ booking: Booking;
492
+ };
493
+ /**
494
+ * Reusable hours, with DST interpreted in an IANA zone.
495
+ */
496
+ export type BookingSchedule = {
497
+ /**
498
+ * Stable schedule identity.
499
+ */
500
+ id: string;
501
+ /**
502
+ * Display name.
503
+ */
504
+ name: string;
505
+ /**
506
+ * Date-specific replacements.
507
+ */
508
+ overrides: Array<BookingDateOverride>;
509
+ /**
510
+ * IANA time zone.
511
+ */
512
+ timeZone: string;
513
+ /**
514
+ * Weekly windows.
515
+ */
516
+ weekly: Array<BookingWeeklyDay>;
517
+ };
518
+ /**
519
+ * Available slot and the hosts who can satisfy it.
520
+ */
521
+ export type BookingSlot = {
522
+ /**
523
+ * Absolute end.
524
+ */
525
+ endsAt: string;
526
+ /**
527
+ * Absolute start.
528
+ */
529
+ startsAt: string;
530
+ };
531
+ /**
532
+ * Booking lifecycle state.
533
+ */
534
+ export type BookingStatus = 'pending' | 'confirmed' | 'cancelled' | 'processing' | 'failed';
535
+ /**
536
+ * A wall-clock window in an availability schedule.
537
+ */
538
+ export type BookingTimeWindow = {
539
+ /**
540
+ * Exclusive HH:MM end.
541
+ */
542
+ end: string;
543
+ /**
544
+ * Inclusive HH:MM start.
545
+ */
546
+ start: string;
547
+ };
548
+ /**
549
+ * Availability for one weekday.
550
+ */
551
+ export type BookingWeeklyDay = {
552
+ /**
553
+ * Sunday is zero.
554
+ */
555
+ day: number;
556
+ /**
557
+ * Non-overlapping local windows.
558
+ */
559
+ windows: Array<BookingTimeWindow>;
560
+ };
561
+ /**
562
+ * Bookings of one profile.
563
+ */
564
+ export type BookingsResponse = {
565
+ /**
566
+ * Every matching booking.
567
+ */
568
+ bookings: Array<Booking>;
569
+ };
47
570
  /**
48
571
  * An attendee on a calendar event.
49
572
  */
@@ -107,6 +630,10 @@ export type CalendarCapabilities = {
107
630
  * Whether email reminders are delivered by the provider or Macro.
108
631
  */
109
632
  emailReminders: boolean;
633
+ /**
634
+ * Whether the organizer can set what guests may do.
635
+ */
636
+ guestPolicy: boolean;
110
637
  /**
111
638
  * Whether an existing conference can be detached.
112
639
  */
@@ -166,6 +693,11 @@ export type CalendarEvent = {
166
693
  * equal.
167
694
  */
168
695
  eventType?: EventType;
696
+ /**
697
+ * What the organizer lets guests do: the canonical copy's values, or
698
+ * Google's defaults for an event synced before the policy was modeled.
699
+ */
700
+ guestPolicy: GuestPolicy;
169
701
  /**
170
702
  * RFC 5545 UID used to reconcile provider and email sources.
171
703
  */
@@ -178,6 +710,12 @@ export type CalendarEvent = {
178
710
  * Whether the canonical source's calendar prohibits editing it.
179
711
  */
180
712
  isReadOnly: boolean;
713
+ /**
714
+ * Whether this is a snapshot of a meeting shared with the owner, which
715
+ * Macro added to their calendar as a private copy: the meeting's changes
716
+ * never reach it, and nothing done to it reaches the meeting.
717
+ */
718
+ isSnapshot: boolean;
181
719
  /**
182
720
  * Optional physical or virtual location label.
183
721
  */
@@ -235,6 +773,12 @@ export type CalendarEvent = {
235
773
  * Entity update time.
236
774
  */
237
775
  updatedAt: string;
776
+ /**
777
+ * What the viewing requester may do with the event. Resolved only on
778
+ * the read path, alongside each attendee's `is_self`; nothing when no
779
+ * viewer is known. Source projections never store it.
780
+ */
781
+ viewerCan: ViewerCapabilities;
238
782
  /**
239
783
  * Event visibility.
240
784
  */
@@ -304,6 +848,57 @@ export type CalendarEventSourceContent = {
304
848
  */
305
849
  visibility: EventVisibility;
306
850
  };
851
+ /**
852
+ * A guest added to an event.
853
+ */
854
+ export type CalendarGuestInputBody = {
855
+ /**
856
+ * Guest email address.
857
+ */
858
+ email: string;
859
+ /**
860
+ * Whether attendance is optional.
861
+ */
862
+ optional?: boolean;
863
+ };
864
+ /**
865
+ * A channel member's request to be added as a guest of an event they see
866
+ * only through a channel share.
867
+ */
868
+ export type CalendarJoinRequest = {
869
+ /**
870
+ * When the request was made.
871
+ */
872
+ createdAt: string;
873
+ /**
874
+ * The sharer's event entity that was shared with the channel.
875
+ */
876
+ eventId: string;
877
+ /**
878
+ * Request identifier.
879
+ */
880
+ id: string;
881
+ /**
882
+ * Address the sharer invites when accepting.
883
+ */
884
+ requesterEmail: string;
885
+ /**
886
+ * Macro user asking to join.
887
+ */
888
+ requesterId: string;
889
+ /**
890
+ * Where the request stands.
891
+ */
892
+ status: CalendarJoinRequestStatus;
893
+ };
894
+ /**
895
+ * How a sharer answers a request to join their event.
896
+ */
897
+ export type CalendarJoinRequestDecision = 'accept' | 'decline';
898
+ /**
899
+ * Lifecycle of a request to be added as a guest of a shared event.
900
+ */
901
+ export type CalendarJoinRequestStatus = 'pending' | 'accepted' | 'declined';
307
902
  /**
308
903
  * HTTP error body returned by calendar mutation endpoints.
309
904
  */
@@ -320,7 +915,7 @@ export type CalendarMutationApiError = {
320
915
  /**
321
916
  * Machine-readable failure category for calendar mutations.
322
917
  */
323
- export type CalendarMutationErrorCode = 'not_found' | 'occurrence_not_found' | 'read_only' | 'no_writable_calendar' | 'not_attendee' | 'invalid_input' | 'reauth_required' | 'provider_rejected' | 'retryable' | 'persist_failed' | 'macro_call_failed';
918
+ export type CalendarMutationErrorCode = 'not_found' | 'occurrence_not_found' | 'read_only' | 'no_writable_calendar' | 'not_attendee' | 'not_organizer' | 'guests_cannot_invite' | 'guest_list_hidden' | 'guests_cannot_modify' | 'already_on_calendar' | 'join_request_open' | 'copy_refused' | 'snapshot' | 'invalid_input' | 'reauth_required' | 'provider_rejected' | 'retryable' | 'persist_failed' | 'macro_call_failed' | 'copy_choice_required' | 'confirmation_required';
324
919
  /**
325
920
  * Provider selected from the persisted calendar account and email binding.
326
921
  */
@@ -407,6 +1002,29 @@ export type ConferenceChange = 'provider_default' | 'microsoft_teams' | 'google_
407
1002
  * changes still require provider and calendar capability validation.
408
1003
  */
409
1004
  export type ConferenceProvider = 'microsoft_teams' | 'google_meet' | 'other';
1005
+ /**
1006
+ * Request body adding a shared event to the requester's calendar.
1007
+ */
1008
+ export type CopyCalendarEventRequest = {
1009
+ /**
1010
+ * Google calendar to add the copy to; defaults to the requester's
1011
+ * primary inbox's primary calendar.
1012
+ */
1013
+ calendarId?: string | null;
1014
+ };
1015
+ /**
1016
+ * A new booking link, saved after the user approved it.
1017
+ */
1018
+ export type CreateBookingLinkRequest = {
1019
+ /**
1020
+ * Full booking rules and availability the user approved.
1021
+ */
1022
+ draft: BookingLinkDraft;
1023
+ /**
1024
+ * The user's reply approving this proposal, quoted verbatim.
1025
+ */
1026
+ userConfirmation: string;
1027
+ };
410
1028
  /**
411
1029
  * Request body creating a calendar event on the requester's calendar.
412
1030
  */
@@ -430,6 +1048,7 @@ export type CreateCalendarEventRequest = {
430
1048
  * to the requester's primary inbox.
431
1049
  */
432
1050
  emailLinkId?: string | null;
1051
+ guestPolicy?: null | GuestPolicy;
433
1052
  /**
434
1053
  * Stable retry identity, scoped to the authenticated organizer.
435
1054
  */
@@ -461,6 +1080,23 @@ export type CreateCalendarEventRequest = {
461
1080
  transparency?: null | EventTransparency;
462
1081
  visibility?: null | EventVisibility;
463
1082
  };
1083
+ /**
1084
+ * Replacement configuration for one booking link, saved after the user approved it.
1085
+ */
1086
+ export type EditBookingLinkRequest = {
1087
+ /**
1088
+ * Full edited booking rules and availability the user approved.
1089
+ */
1090
+ draft: BookingLinkDraft;
1091
+ /**
1092
+ * Profile revision the edit was prepared from; a newer revision conflicts.
1093
+ */
1094
+ expectedRevision: number;
1095
+ /**
1096
+ * The user's reply approving this proposal, quoted verbatim.
1097
+ */
1098
+ userConfirmation: string;
1099
+ };
464
1100
  /**
465
1101
  * One reminder: how it alerts and how many minutes before the event start
466
1102
  * (before midnight in the calendar's zone for all-day events) it fires.
@@ -540,7 +1176,145 @@ export type EventType = 'default' | 'out_of_office' | 'focus_time' | 'working_lo
540
1176
  /**
541
1177
  * Visibility of event details.
542
1178
  */
543
- export type EventVisibility = 'default' | 'public' | 'private' | 'confidential';
1179
+ export type EventVisibility = 'default' | 'public' | 'private' | 'confidential';
1180
+ /**
1181
+ * The switches an organizer sets on an event to bound what its guests may
1182
+ * do. Google omits a switch from the payload while it holds its default.
1183
+ */
1184
+ export type GuestPolicy = {
1185
+ /**
1186
+ * Whether guests may invite others.
1187
+ */
1188
+ canInviteOthers: boolean;
1189
+ /**
1190
+ * Whether guests may change the event, including its guest list.
1191
+ */
1192
+ canModify: boolean;
1193
+ /**
1194
+ * Whether guests may see the guest list.
1195
+ */
1196
+ canSeeOtherGuests: boolean;
1197
+ };
1198
+ /**
1199
+ * Counts can overlap: a rescheduled event can also be completed or cancelled.
1200
+ */
1201
+ export type InsightCounts = {
1202
+ /**
1203
+ * Cancelled bookings, grouped by their scheduled start.
1204
+ */
1205
+ cancelled: number;
1206
+ /**
1207
+ * Confirmed, ended bookings excluding explicit no-shows.
1208
+ */
1209
+ completed: number;
1210
+ /**
1211
+ * Explicit guest no-shows only.
1212
+ */
1213
+ guestNoShow: number;
1214
+ /**
1215
+ * Explicit host no-shows only.
1216
+ */
1217
+ hostNoShow: number;
1218
+ /**
1219
+ * Bookings with at least one completed reschedule, counted once.
1220
+ */
1221
+ rescheduled: number;
1222
+ /**
1223
+ * All bookings except failed and processing requests.
1224
+ */
1225
+ total: number;
1226
+ };
1227
+ /**
1228
+ * One complete period of metrics and chart data, with no guest contact information.
1229
+ */
1230
+ export type InsightPeriod = {
1231
+ /**
1232
+ * Average scheduled duration of all confirmed bookings, including future ones.
1233
+ */
1234
+ averageMinutes: number;
1235
+ /**
1236
+ * Summary event counts.
1237
+ */
1238
+ counts: InsightCounts;
1239
+ /**
1240
+ * Local-date counts, including dates with zero bookings.
1241
+ */
1242
+ days: {
1243
+ [key: string]: InsightCounts;
1244
+ };
1245
+ /**
1246
+ * Booking counts by link identity.
1247
+ */
1248
+ eventCounts: {
1249
+ [key: string]: number;
1250
+ };
1251
+ /**
1252
+ * Booking counts by host; collective bookings count once for each host.
1253
+ */
1254
+ hostCounts: {
1255
+ [key: string]: number;
1256
+ };
1257
+ /**
1258
+ * Booking counts by local hour, indexed from 0 to 23.
1259
+ */
1260
+ hours: Array<number>;
1261
+ /**
1262
+ * Scheduled minutes of completed meetings, not actual call duration.
1263
+ */
1264
+ meetingMinutes: number;
1265
+ };
1266
+ /**
1267
+ * Inclusive local dates and optional booking/host filters.
1268
+ */
1269
+ export type InsightQuery = {
1270
+ /**
1271
+ * Restrict to one booking link; omit for all links.
1272
+ */
1273
+ eventTypeId?: string | null;
1274
+ /**
1275
+ * First local date, inclusive.
1276
+ */
1277
+ from: string;
1278
+ /**
1279
+ * Restrict to one assigned host; omit for all hosts.
1280
+ */
1281
+ hostId?: string | null;
1282
+ /**
1283
+ * IANA zone used for dates and hour-of-day grouping.
1284
+ */
1285
+ timeZone: string;
1286
+ /**
1287
+ * Last local date, inclusive; maximum 366 days.
1288
+ */
1289
+ to: string;
1290
+ };
1291
+ /**
1292
+ * Request body adding guests to an event without touching anyone already
1293
+ * invited.
1294
+ */
1295
+ export type InviteCalendarEventGuestsRequest = {
1296
+ /**
1297
+ * Calendar whose copy of the event is written, for an event synced from
1298
+ * more than one calendar. Omit to write the canonical copy.
1299
+ */
1300
+ calendarId?: string | null;
1301
+ /**
1302
+ * Guests to add; anyone already on the event is skipped.
1303
+ */
1304
+ guests: Array<CalendarGuestInputBody>;
1305
+ /**
1306
+ * Inbox address holding the copy this request changes. An agent run
1307
+ * must name it when the meeting is on more than one of the requester's
1308
+ * inboxes, and it must be the inbox holding the addressed copy; a
1309
+ * mismatch is refused whoever sends it.
1310
+ */
1311
+ inbox?: string | null;
1312
+ /**
1313
+ * Original-start key of the occurrence the guests are added to.
1314
+ */
1315
+ recurrenceId?: string | null;
1316
+ scope?: null | CalendarUpdateScopeParam;
1317
+ };
544
1318
  /**
545
1319
  * Calendars visible to the requester across connected and delegated inboxes.
546
1320
  */
@@ -587,6 +1361,32 @@ export type PrepareCalendarReplacementRequest = {
587
1361
  */
588
1362
  removeConference: boolean;
589
1363
  };
1364
+ /**
1365
+ * Booking settings of one profile.
1366
+ */
1367
+ export type ProfileResponse = {
1368
+ /**
1369
+ * Full settings, including the revision to save against.
1370
+ */
1371
+ profile: BookingProfile;
1372
+ };
1373
+ /**
1374
+ * A booking with its booker management capability.
1375
+ */
1376
+ export type ReceiptResponse = {
1377
+ /**
1378
+ * The booking.
1379
+ */
1380
+ booking: Booking;
1381
+ /**
1382
+ * IANA time zone of the booking's availability schedule.
1383
+ */
1384
+ scheduleTimeZone: string;
1385
+ /**
1386
+ * Bearer capability for the booker's receipt, reschedule and cancel pages.
1387
+ */
1388
+ token: string;
1389
+ };
590
1390
  /**
591
1391
  * Realtime signal that a connected inbox's calendar projection changed.
592
1392
  */
@@ -606,11 +1406,26 @@ export type RefreshCalendarEvent = {
606
1406
  * True for sharing changes and any possibly affected OOO projection.
607
1407
  */
608
1408
  team_ooo_changed: boolean;
1409
+ } | {
1410
+ event: 'join_request_answered';
1411
+ /**
1412
+ * The shared event they asked to join.
1413
+ */
1414
+ event_id: string;
609
1415
  };
610
1416
  /**
611
1417
  * User-visible workflow state.
612
1418
  */
613
1419
  export type ReplacementStatus = 'needs_confirmation' | 'in_progress' | 'complete';
1420
+ /**
1421
+ * Request body answering a join request.
1422
+ */
1423
+ export type RespondToJoinRequestRequest = {
1424
+ /**
1425
+ * The sharer's answer.
1426
+ */
1427
+ decision: CalendarJoinRequestDecision;
1428
+ };
614
1429
  /**
615
1430
  * Request body setting the requester's RSVP on an event.
616
1431
  */
@@ -626,6 +1441,7 @@ export type RsvpCalendarEventRequest = {
626
1441
  recurrenceId?: string | null;
627
1442
  /**
628
1443
  * The owned connected address whose attendance is changed. Validated by the domain.
1444
+ * Omit to answer as the inbox the addressed copy syncs through.
629
1445
  */
630
1446
  respondingEmail?: string | null;
631
1447
  /**
@@ -634,6 +1450,19 @@ export type RsvpCalendarEventRequest = {
634
1450
  response: AttendeeResponseStatus;
635
1451
  scope?: null | CalendarRsvpScopeParam;
636
1452
  };
1453
+ /**
1454
+ * Team host assignment policy.
1455
+ */
1456
+ export type SchedulingMode = 'individual' | 'collective' | 'roundRobin';
1457
+ /**
1458
+ * Available start times.
1459
+ */
1460
+ export type SlotsResponse = {
1461
+ /**
1462
+ * Every available slot.
1463
+ */
1464
+ slots: Array<BookingSlot>;
1465
+ };
637
1466
  /**
638
1467
  * What a user exposes through their team membership.
639
1468
  */
@@ -665,6 +1494,14 @@ export type UpdateCalendarEventRequest = {
665
1494
  * Replacement description; an empty string clears it.
666
1495
  */
667
1496
  description?: string | null;
1497
+ guestPolicy?: null | GuestPolicy;
1498
+ /**
1499
+ * Inbox address holding the copy this request changes. An agent run
1500
+ * must name it when the meeting is on more than one of the requester's
1501
+ * inboxes, and it must be the inbox holding the addressed copy; a
1502
+ * mismatch is refused whoever sends it.
1503
+ */
1504
+ inbox?: string | null;
668
1505
  /**
669
1506
  * Replacement location; an empty string clears it.
670
1507
  */
@@ -688,6 +1525,36 @@ export type UpdateCalendarEventRequest = {
688
1525
  transparency?: null | EventTransparency;
689
1526
  visibility?: null | EventVisibility;
690
1527
  };
1528
+ /**
1529
+ * What the viewing requester may do with an event.
1530
+ */
1531
+ export type ViewerCapabilities = {
1532
+ /**
1533
+ * Change the event's details (title, time, description, conference).
1534
+ */
1535
+ editDetails: boolean;
1536
+ /**
1537
+ * Add guests.
1538
+ */
1539
+ inviteGuests: boolean;
1540
+ /**
1541
+ * Act as the event's organizer: replace its whole guest list and manage
1542
+ * its conferencing.
1543
+ */
1544
+ organize: boolean;
1545
+ /**
1546
+ * Remove guests.
1547
+ */
1548
+ removeGuests: boolean;
1549
+ /**
1550
+ * Answer the invitation.
1551
+ */
1552
+ rsvp: boolean;
1553
+ /**
1554
+ * Change the event's guest policy, which only Google calendars have.
1555
+ */
1556
+ setGuestPolicy: boolean;
1557
+ };
691
1558
  /**
692
1559
  * A calendar visible to a requester, listed for pickers and filters.
693
1560
  */
@@ -700,6 +1567,13 @@ export type VisibleCalendar = {
700
1567
  * Provider color.
701
1568
  */
702
1569
  color?: string | null;
1570
+ /**
1571
+ * Whether this calendar counts toward the requester's busy time: their
1572
+ * setting, by default only the primary calendars of inboxes they own.
1573
+ * The nearest thing to "this is the requester's own": a provider's
1574
+ * access role only says what they may do, on a colleague's calendar too.
1575
+ */
1576
+ contributesToAvailability?: boolean;
703
1577
  /**
704
1578
  * Default reminders applied to events that keep `useDefault`.
705
1579
  */
@@ -806,7 +1680,7 @@ export type CreateCalendarEventErrors = {
806
1680
  */
807
1681
  401: unknown;
808
1682
  /**
809
- * Calendar is read-only or needs reauthorization
1683
+ * Calendar is read-only or needs reauthorization, or an agent's program asked to create without a review or confirmation
810
1684
  */
811
1685
  403: CalendarMutationApiError;
812
1686
  /**
@@ -848,6 +1722,13 @@ export type DeleteCalendarEventData = {
848
1722
  * Original-start key of the occurrence a scoped deletion targets.
849
1723
  */
850
1724
  recurrenceId?: string;
1725
+ /**
1726
+ * Inbox address holding the copy this request deletes. An agent run
1727
+ * must name it when the meeting is on more than one of the requester's
1728
+ * inboxes, and it must be the inbox holding the addressed copy; a
1729
+ * mismatch is refused whoever sends it.
1730
+ */
1731
+ inbox?: string;
851
1732
  };
852
1733
  url: '/events/{event_id}';
853
1734
  };
@@ -902,7 +1783,7 @@ export type UpdateCalendarEventErrors = {
902
1783
  */
903
1784
  401: unknown;
904
1785
  /**
905
- * Calendar is read-only or needs reauthorization
1786
+ * Calendar is read-only or needs reauthorization, or the event is a snapshot of a shared meeting
906
1787
  */
907
1788
  403: CalendarMutationApiError;
908
1789
  /**
@@ -926,6 +1807,96 @@ export type UpdateCalendarEventResponses = {
926
1807
  200: CalendarEvent;
927
1808
  };
928
1809
  export type UpdateCalendarEventResponse = UpdateCalendarEventResponses[keyof UpdateCalendarEventResponses];
1810
+ export type CopyCalendarEventData = {
1811
+ body: CopyCalendarEventRequest;
1812
+ path: {
1813
+ /**
1814
+ * Shared calendar event entity id
1815
+ */
1816
+ event_id: string;
1817
+ };
1818
+ query?: never;
1819
+ url: '/events/{event_id}/copy';
1820
+ };
1821
+ export type CopyCalendarEventErrors = {
1822
+ /**
1823
+ * The event cannot be copied, or the calendar is not a Google calendar
1824
+ */
1825
+ 400: CalendarMutationApiError;
1826
+ /**
1827
+ * Authentication required
1828
+ */
1829
+ 401: unknown;
1830
+ /**
1831
+ * Calendar is read-only or needs reauthorization
1832
+ */
1833
+ 403: CalendarMutationApiError;
1834
+ /**
1835
+ * Event not found or not shared with the requester
1836
+ */
1837
+ 404: CalendarMutationApiError;
1838
+ /**
1839
+ * Already on the requester's calendar, a request to join it is pending or accepted, no writable calendar, or the provider refused the copy
1840
+ */
1841
+ 409: CalendarMutationApiError;
1842
+ /**
1843
+ * Transient provider failure
1844
+ */
1845
+ 503: CalendarMutationApiError;
1846
+ };
1847
+ export type CopyCalendarEventError = CopyCalendarEventErrors[keyof CopyCalendarEventErrors];
1848
+ export type CopyCalendarEventResponses = {
1849
+ /**
1850
+ * The copy on the requester's calendar
1851
+ */
1852
+ 201: CalendarEvent;
1853
+ };
1854
+ export type CopyCalendarEventResponse = CopyCalendarEventResponses[keyof CopyCalendarEventResponses];
1855
+ export type InviteCalendarEventGuestsData = {
1856
+ body: InviteCalendarEventGuestsRequest;
1857
+ path: {
1858
+ /**
1859
+ * Calendar event entity id
1860
+ */
1861
+ event_id: string;
1862
+ };
1863
+ query?: never;
1864
+ url: '/events/{event_id}/guests';
1865
+ };
1866
+ export type InviteCalendarEventGuestsErrors = {
1867
+ /**
1868
+ * Invalid guests or scope
1869
+ */
1870
+ 400: CalendarMutationApiError;
1871
+ /**
1872
+ * Authentication required
1873
+ */
1874
+ 401: unknown;
1875
+ /**
1876
+ * Calendar is read-only, only the organizer can invite guests, the event is a snapshot of a shared meeting, or the calendar needs reauthorization
1877
+ */
1878
+ 403: CalendarMutationApiError;
1879
+ /**
1880
+ * Event or occurrence not found
1881
+ */
1882
+ 404: CalendarMutationApiError;
1883
+ /**
1884
+ * The connected account neither organizes nor attends the event
1885
+ */
1886
+ 409: CalendarMutationApiError;
1887
+ /**
1888
+ * Transient provider failure
1889
+ */
1890
+ 503: CalendarMutationApiError;
1891
+ };
1892
+ export type InviteCalendarEventGuestsError = InviteCalendarEventGuestsErrors[keyof InviteCalendarEventGuestsErrors];
1893
+ export type InviteCalendarEventGuestsResponses = {
1894
+ /**
1895
+ * The updated calendar event
1896
+ */
1897
+ 200: CalendarEvent;
1898
+ };
1899
+ export type InviteCalendarEventGuestsResponse = InviteCalendarEventGuestsResponses[keyof InviteCalendarEventGuestsResponses];
929
1900
  export type CalendarEventProviderUrlData = {
930
1901
  body?: never;
931
1902
  path: {
@@ -984,7 +1955,7 @@ export type RsvpCalendarEventErrors = {
984
1955
  */
985
1956
  401: unknown;
986
1957
  /**
987
- * Calendar is read-only or needs reauthorization
1958
+ * Calendar is read-only or needs reauthorization, or the event is a snapshot of a shared meeting
988
1959
  */
989
1960
  403: CalendarMutationApiError;
990
1961
  /**
@@ -1021,6 +1992,47 @@ export type HealthHandlerResponses = {
1021
1992
  200: string;
1022
1993
  };
1023
1994
  export type HealthHandlerResponse = HealthHandlerResponses[keyof HealthHandlerResponses];
1995
+ export type RespondToJoinRequestData = {
1996
+ body: RespondToJoinRequestRequest;
1997
+ path: {
1998
+ /**
1999
+ * Join request id
2000
+ */
2001
+ request_id: string;
2002
+ };
2003
+ query?: never;
2004
+ url: '/join-requests/{request_id}';
2005
+ };
2006
+ export type RespondToJoinRequestErrors = {
2007
+ /**
2008
+ * Authentication required
2009
+ */
2010
+ 401: unknown;
2011
+ /**
2012
+ * Calendar is read-only, the organizer doesn't let guests invite others, or the calendar needs reauthorization
2013
+ */
2014
+ 403: CalendarMutationApiError;
2015
+ /**
2016
+ * Request not found or its event cannot be changed by the requester
2017
+ */
2018
+ 404: CalendarMutationApiError;
2019
+ /**
2020
+ * The provider rejected the new guest
2021
+ */
2022
+ 409: CalendarMutationApiError;
2023
+ /**
2024
+ * Transient provider failure
2025
+ */
2026
+ 503: CalendarMutationApiError;
2027
+ };
2028
+ export type RespondToJoinRequestError = RespondToJoinRequestErrors[keyof RespondToJoinRequestErrors];
2029
+ export type RespondToJoinRequestResponses = {
2030
+ /**
2031
+ * The answered join request
2032
+ */
2033
+ 200: CalendarJoinRequest;
2034
+ };
2035
+ export type RespondToJoinRequestResponse = RespondToJoinRequestResponses[keyof RespondToJoinRequestResponses];
1024
2036
  export type DiscardCalendarReplacementData = {
1025
2037
  body?: never;
1026
2038
  path: {
@@ -1069,6 +2081,223 @@ export type ConfirmCalendarReplacementResponses = {
1069
2081
  200: CalendarReplacementView;
1070
2082
  };
1071
2083
  export type ConfirmCalendarReplacementResponse = ConfirmCalendarReplacementResponses[keyof ConfirmCalendarReplacementResponses];
2084
+ export type ListBookingsData = {
2085
+ body?: never;
2086
+ path?: never;
2087
+ query?: {
2088
+ /**
2089
+ * Existing Macro team; omit for personal bookings.
2090
+ */
2091
+ teamId?: string;
2092
+ /**
2093
+ * Inclusive start; supply together with `to`, at most 733 days apart.
2094
+ */
2095
+ from?: string;
2096
+ /**
2097
+ * Exclusive end; supply together with `from`.
2098
+ */
2099
+ to?: string;
2100
+ };
2101
+ url: '/scheduling/bookings';
2102
+ };
2103
+ export type ListBookingsErrors = {
2104
+ 400: unknown;
2105
+ 403: unknown;
2106
+ };
2107
+ export type ListBookingsResponses = {
2108
+ 200: BookingsResponse;
2109
+ };
2110
+ export type ListBookingsResponse = ListBookingsResponses[keyof ListBookingsResponses];
2111
+ export type ChangeBookingData = {
2112
+ body: BookingChange;
2113
+ path: {
2114
+ /**
2115
+ * Booking identity
2116
+ */
2117
+ id: string;
2118
+ };
2119
+ query?: never;
2120
+ url: '/scheduling/bookings/{id}/change';
2121
+ };
2122
+ export type ChangeBookingErrors = {
2123
+ 400: unknown;
2124
+ 403: unknown;
2125
+ 404: unknown;
2126
+ 409: unknown;
2127
+ };
2128
+ export type ChangeBookingResponses = {
2129
+ 200: BookingResponse;
2130
+ };
2131
+ export type ChangeBookingResponse = ChangeBookingResponses[keyof ChangeBookingResponses];
2132
+ export type GetManagedBookingData = {
2133
+ body?: never;
2134
+ path: {
2135
+ /**
2136
+ * Booking identity
2137
+ */
2138
+ id: string;
2139
+ };
2140
+ query?: never;
2141
+ url: '/scheduling/bookings/{id}/manage';
2142
+ };
2143
+ export type GetManagedBookingErrors = {
2144
+ 403: unknown;
2145
+ 404: unknown;
2146
+ };
2147
+ export type GetManagedBookingResponses = {
2148
+ 200: ReceiptResponse;
2149
+ };
2150
+ export type GetManagedBookingResponse = GetManagedBookingResponses[keyof GetManagedBookingResponses];
2151
+ export type ListBookingRescheduleSlotsData = {
2152
+ body?: never;
2153
+ path: {
2154
+ /**
2155
+ * Booking identity
2156
+ */
2157
+ id: string;
2158
+ };
2159
+ query: {
2160
+ /**
2161
+ * Date in the booking's schedule time zone.
2162
+ */
2163
+ date: string;
2164
+ };
2165
+ url: '/scheduling/bookings/{id}/slots';
2166
+ };
2167
+ export type ListBookingRescheduleSlotsErrors = {
2168
+ 403: unknown;
2169
+ 404: unknown;
2170
+ };
2171
+ export type ListBookingRescheduleSlotsResponses = {
2172
+ 200: SlotsResponse;
2173
+ };
2174
+ export type ListBookingRescheduleSlotsResponse = ListBookingRescheduleSlotsResponses[keyof ListBookingRescheduleSlotsResponses];
2175
+ export type GetBookingInsightsData = {
2176
+ body: InsightQuery;
2177
+ path?: never;
2178
+ query?: {
2179
+ /**
2180
+ * Existing Macro team; omit for the caller's personal booking links.
2181
+ */
2182
+ teamId?: string;
2183
+ };
2184
+ url: '/scheduling/insights';
2185
+ };
2186
+ export type GetBookingInsightsErrors = {
2187
+ 400: unknown;
2188
+ 403: unknown;
2189
+ };
2190
+ export type GetBookingInsightsResponses = {
2191
+ 200: BookingInsights;
2192
+ };
2193
+ export type GetBookingInsightsResponse = GetBookingInsightsResponses[keyof GetBookingInsightsResponses];
2194
+ export type ListBookingLinksData = {
2195
+ body?: never;
2196
+ path?: never;
2197
+ query?: {
2198
+ /**
2199
+ * Existing Macro team; omit for personal links.
2200
+ */
2201
+ teamId?: string;
2202
+ /**
2203
+ * Text matched against link title, slug and description; omit for all links.
2204
+ */
2205
+ query?: string;
2206
+ };
2207
+ url: '/scheduling/links';
2208
+ };
2209
+ export type ListBookingLinksErrors = {
2210
+ 403: unknown;
2211
+ };
2212
+ export type ListBookingLinksResponses = {
2213
+ 200: BookingLinkListing;
2214
+ };
2215
+ export type ListBookingLinksResponse = ListBookingLinksResponses[keyof ListBookingLinksResponses];
2216
+ export type CreateBookingLinkData = {
2217
+ body: CreateBookingLinkRequest;
2218
+ path?: never;
2219
+ query?: {
2220
+ /**
2221
+ * Existing Macro team; omit for the caller's personal booking links.
2222
+ */
2223
+ teamId?: string;
2224
+ };
2225
+ url: '/scheduling/links';
2226
+ };
2227
+ export type CreateBookingLinkErrors = {
2228
+ 400: unknown;
2229
+ 403: unknown;
2230
+ 409: unknown;
2231
+ };
2232
+ export type CreateBookingLinkResponses = {
2233
+ 200: BookingLink;
2234
+ };
2235
+ export type CreateBookingLinkResponse = CreateBookingLinkResponses[keyof CreateBookingLinkResponses];
2236
+ export type EditBookingLinkData = {
2237
+ body: EditBookingLinkRequest;
2238
+ path: {
2239
+ /**
2240
+ * Booking link (event type) identity
2241
+ */
2242
+ id: string;
2243
+ };
2244
+ query?: {
2245
+ /**
2246
+ * Existing Macro team; omit for the caller's personal booking links.
2247
+ */
2248
+ teamId?: string;
2249
+ };
2250
+ url: '/scheduling/links/{id}';
2251
+ };
2252
+ export type EditBookingLinkErrors = {
2253
+ 400: unknown;
2254
+ 403: unknown;
2255
+ 404: unknown;
2256
+ 409: unknown;
2257
+ };
2258
+ export type EditBookingLinkResponses = {
2259
+ 200: BookingLink;
2260
+ };
2261
+ export type EditBookingLinkResponse = EditBookingLinkResponses[keyof EditBookingLinkResponses];
2262
+ export type GetBookingSettingsData = {
2263
+ body?: never;
2264
+ path?: never;
2265
+ query?: {
2266
+ /**
2267
+ * Existing Macro team; omit for the caller's personal booking links.
2268
+ */
2269
+ teamId?: string;
2270
+ };
2271
+ url: '/scheduling/settings';
2272
+ };
2273
+ export type GetBookingSettingsErrors = {
2274
+ 403: unknown;
2275
+ 404: unknown;
2276
+ };
2277
+ export type GetBookingSettingsResponses = {
2278
+ 200: ProfileResponse;
2279
+ };
2280
+ export type GetBookingSettingsResponse = GetBookingSettingsResponses[keyof GetBookingSettingsResponses];
2281
+ export type SaveBookingSettingsData = {
2282
+ body: BookingProfile;
2283
+ path?: never;
2284
+ query?: {
2285
+ /**
2286
+ * Existing Macro team; omit for the caller's personal booking links.
2287
+ */
2288
+ teamId?: string;
2289
+ };
2290
+ url: '/scheduling/settings';
2291
+ };
2292
+ export type SaveBookingSettingsErrors = {
2293
+ 400: unknown;
2294
+ 403: unknown;
2295
+ 409: unknown;
2296
+ };
2297
+ export type SaveBookingSettingsResponses = {
2298
+ 200: ProfileResponse;
2299
+ };
2300
+ export type SaveBookingSettingsResponse = SaveBookingSettingsResponses[keyof SaveBookingSettingsResponses];
1072
2301
  export type GetTeamSharingData = {
1073
2302
  body?: never;
1074
2303
  path?: never;