@macro-inc/sdk 0.3.0 → 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.
- package/README.md +45 -0
- package/dist/{chunk-Y4HQV7EL.js → chunk-AZJUIUIV.js} +26 -0
- package/dist/{chunk-KPR5JIGY.js → chunk-G43PLP2U.js} +95 -0
- package/dist/{chunk-IIICUUWY.js → chunk-PPR7IWZ7.js} +51 -51
- package/dist/{chunk-PTMBRVEK.js → chunk-PTX2RV2N.js} +84 -0
- package/dist/{chunk-OEHZOKGE.js → chunk-PZPTJI6F.js} +16 -0
- package/dist/{chunk-HR32RQGP.js → chunk-ZLBDES7U.js} +307 -1
- package/dist/generated/agent-fold/index.d.ts +6 -1
- package/dist/generated/agent-harness/index.d.ts +1 -1
- package/dist/generated/agent-harness/index.js +1 -1
- package/dist/generated/agent-harness/sdk.gen.d.ts +44 -1
- package/dist/generated/agent-harness/types.gen.d.ts +699 -0
- package/dist/generated/calendar/index.d.ts +1 -1
- package/dist/generated/calendar/index.js +1 -1
- package/dist/generated/calendar/sdk.gen.d.ts +41 -1
- package/dist/generated/calendar/types.gen.d.ts +904 -2
- package/dist/generated/cognition/index.d.ts +1 -1
- package/dist/generated/cognition/index.js +1 -1
- package/dist/generated/cognition/sdk.gen.d.ts +9 -1
- package/dist/generated/cognition/types.gen.d.ts +79 -0
- package/dist/generated/email/types.gen.d.ts +11 -1
- package/dist/generated/notification/index.js +1 -1
- package/dist/generated/notification/sdk.gen.d.ts +20 -20
- package/dist/generated/notification/types.gen.d.ts +77 -72
- package/dist/generated/scheduled-action/index.d.ts +1 -1
- package/dist/generated/scheduled-action/index.js +1 -1
- package/dist/generated/scheduled-action/sdk.gen.d.ts +4 -1
- package/dist/generated/scheduled-action/types.gen.d.ts +388 -7
- package/dist/generated/storage/index.d.ts +1 -1
- package/dist/generated/storage/index.js +1 -1
- package/dist/generated/storage/sdk.gen.d.ts +151 -1
- package/dist/generated/storage/types.gen.d.ts +3888 -139
- package/dist/src/entities/account-managers/grant.d.ts +39 -0
- package/dist/src/entities/account-managers/namespace.d.ts +17 -0
- package/dist/src/entities/agent-sessions/activity.d.ts +39 -0
- package/dist/src/entities/agent-sessions/agent-session.d.ts +42 -0
- package/dist/src/entities/agent-sessions/namespace.d.ts +7 -1
- package/dist/src/entities/agent-sessions/origin.d.ts +94 -0
- package/dist/src/entities/ai/namespace.d.ts +1 -1
- package/dist/src/entities/bots/bot.d.ts +108 -0
- package/dist/src/entities/bots/namespace.d.ts +15 -4
- package/dist/src/entities/bots/token.d.ts +34 -0
- package/dist/src/entities/calendar/booking-link.d.ts +49 -0
- package/dist/src/entities/calendar/booking-namespace.d.ts +130 -0
- package/dist/src/entities/calendar/booking-namespace.test.d.ts +1 -0
- package/dist/src/entities/calendar/booking.d.ts +77 -0
- package/dist/src/entities/calendar/create-confirmed.test.d.ts +1 -0
- package/dist/src/entities/calendar/namespace.d.ts +63 -15
- package/dist/src/entities/calls/call-record.d.ts +25 -3
- package/dist/src/entities/calls/connection.d.ts +53 -0
- package/dist/src/entities/calls/errors.d.ts +15 -0
- package/dist/src/entities/calls/namespace.d.ts +19 -2
- package/dist/src/entities/calls/participant.d.ts +22 -0
- package/dist/src/entities/channels/channel.d.ts +21 -3
- package/dist/src/entities/channels/namespace.d.ts +3 -3
- package/dist/src/entities/channels/post.d.ts +10 -2
- package/dist/src/entities/channels/thread.d.ts +4 -0
- package/dist/src/entities/chats/chat.d.ts +1 -1
- package/dist/src/entities/chats/namespace.d.ts +14 -1
- package/dist/src/entities/connected-apps/connected-app.d.ts +107 -0
- package/dist/src/entities/connected-apps/connector.d.ts +56 -0
- package/dist/src/entities/connected-apps/namespace.d.ts +74 -0
- package/dist/src/entities/crm/company.d.ts +1 -1
- package/dist/src/entities/crm/pipeline.d.ts +1 -1
- package/dist/src/entities/documents/document.d.ts +156 -7
- package/dist/src/entities/documents/namespace.d.ts +41 -2
- package/dist/src/entities/documents/office-files.d.ts +47 -0
- package/dist/src/entities/email/draft.d.ts +26 -4
- package/dist/src/entities/email/message.d.ts +91 -1
- package/dist/src/entities/email/namespace.d.ts +26 -3
- package/dist/src/entities/email/namespace.test.d.ts +1 -0
- package/dist/src/entities/email/thread.d.ts +7 -2
- package/dist/src/entities/external-chat/namespace.d.ts +2 -0
- package/dist/src/entities/favorites/namespace.d.ts +1 -1
- package/dist/src/entities/harnesses/namespace.d.ts +5 -1
- package/dist/src/entities/images/namespace.d.ts +5 -1
- package/dist/src/entities/me/namespace.d.ts +5 -1
- package/dist/src/entities/meetings/meeting.d.ts +5 -0
- package/dist/src/entities/messages/thread.d.ts +1 -1
- package/dist/src/entities/pins/namespace.d.ts +1 -1
- package/dist/src/entities/projects/namespace.d.ts +1 -1
- package/dist/src/entities/projects/project.d.ts +1 -1
- package/dist/src/entities/search/namespace.d.ts +65 -0
- package/dist/src/entities/search/options.d.ts +29 -0
- package/dist/src/entities/search/types.d.ts +90 -0
- package/dist/src/entities/tasks/namespace.d.ts +1 -1
- package/dist/src/entities/tasks/task.d.ts +4 -3
- package/dist/src/entities/users/namespace.d.ts +1 -1
- package/dist/src/entities/whatsapp/namespace.d.ts +2 -0
- package/dist/src/entities/workspace/items.d.ts +7 -0
- package/dist/src/entities/workspace/namespace.d.ts +14 -9
- package/dist/src/entities/workspace/query.d.ts +23 -0
- package/dist/src/entities/workspace/types.d.ts +6 -3
- package/dist/src/events/hydrate/call.d.ts +101 -0
- package/dist/src/events/types.d.ts +2 -1
- package/dist/src/macro.d.ts +33 -1
- package/dist/src/macro.js +6423 -4265
- package/dist/src/utils/activity.d.ts +23 -2
- package/package.json +1 -1
- package/dist/src/entities/search.d.ts +0 -53
|
@@ -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
|
*/
|
|
@@ -392,7 +915,7 @@ export type CalendarMutationApiError = {
|
|
|
392
915
|
/**
|
|
393
916
|
* Machine-readable failure category for calendar mutations.
|
|
394
917
|
*/
|
|
395
|
-
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';
|
|
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';
|
|
396
919
|
/**
|
|
397
920
|
* Provider selected from the persisted calendar account and email binding.
|
|
398
921
|
*/
|
|
@@ -489,6 +1012,19 @@ export type CopyCalendarEventRequest = {
|
|
|
489
1012
|
*/
|
|
490
1013
|
calendarId?: string | null;
|
|
491
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
|
+
};
|
|
492
1028
|
/**
|
|
493
1029
|
* Request body creating a calendar event on the requester's calendar.
|
|
494
1030
|
*/
|
|
@@ -544,6 +1080,23 @@ export type CreateCalendarEventRequest = {
|
|
|
544
1080
|
transparency?: null | EventTransparency;
|
|
545
1081
|
visibility?: null | EventVisibility;
|
|
546
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
|
+
};
|
|
547
1100
|
/**
|
|
548
1101
|
* One reminder: how it alerts and how many minutes before the event start
|
|
549
1102
|
* (before midnight in the calendar's zone for all-day events) it fires.
|
|
@@ -642,6 +1195,99 @@ export type GuestPolicy = {
|
|
|
642
1195
|
*/
|
|
643
1196
|
canSeeOtherGuests: boolean;
|
|
644
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
|
+
};
|
|
645
1291
|
/**
|
|
646
1292
|
* Request body adding guests to an event without touching anyone already
|
|
647
1293
|
* invited.
|
|
@@ -715,6 +1361,32 @@ export type PrepareCalendarReplacementRequest = {
|
|
|
715
1361
|
*/
|
|
716
1362
|
removeConference: boolean;
|
|
717
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
|
+
};
|
|
718
1390
|
/**
|
|
719
1391
|
* Realtime signal that a connected inbox's calendar projection changed.
|
|
720
1392
|
*/
|
|
@@ -778,6 +1450,19 @@ export type RsvpCalendarEventRequest = {
|
|
|
778
1450
|
response: AttendeeResponseStatus;
|
|
779
1451
|
scope?: null | CalendarRsvpScopeParam;
|
|
780
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
|
+
};
|
|
781
1466
|
/**
|
|
782
1467
|
* What a user exposes through their team membership.
|
|
783
1468
|
*/
|
|
@@ -995,7 +1680,7 @@ export type CreateCalendarEventErrors = {
|
|
|
995
1680
|
*/
|
|
996
1681
|
401: unknown;
|
|
997
1682
|
/**
|
|
998
|
-
* 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
|
|
999
1684
|
*/
|
|
1000
1685
|
403: CalendarMutationApiError;
|
|
1001
1686
|
/**
|
|
@@ -1396,6 +2081,223 @@ export type ConfirmCalendarReplacementResponses = {
|
|
|
1396
2081
|
200: CalendarReplacementView;
|
|
1397
2082
|
};
|
|
1398
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];
|
|
1399
2301
|
export type GetTeamSharingData = {
|
|
1400
2302
|
body?: never;
|
|
1401
2303
|
path?: never;
|