@macro-inc/sdk 0.0.1 → 0.2.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.
- package/README.md +628 -21
- package/dist/{chunk-5HAKQN23.js → chunk-7LVVPVNT.js} +70 -57
- package/dist/{chunk-JXIQT5TH.js → chunk-7YJ6Y7HJ.js} +234 -16
- package/dist/chunk-LMJW65ML.js +836 -0
- package/dist/{chunk-SGAHIERJ.js → chunk-OGE7WXJE.js} +16 -0
- package/dist/chunk-PRUFPW3B.js +943 -0
- package/dist/{chunk-CTKR64MY.js → chunk-QVBNNMQS.js} +242 -367
- package/dist/{chunk-QNUS5BC5.js → chunk-SUINKDXF.js} +30 -84
- package/dist/{chunk-77EI4LSQ.js → chunk-ZQXOHNDB.js} +1518 -386
- 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 +174 -4
- package/dist/generated/agent-harness/types.gen.d.ts +2511 -189
- package/dist/generated/auth/index.d.ts +1 -1
- package/dist/generated/auth/index.js +1 -1
- package/dist/generated/auth/sdk.gen.d.ts +106 -8
- package/dist/generated/auth/types.gen.d.ts +1473 -116
- package/dist/generated/calendar/client/client.gen.d.ts +2 -0
- package/dist/generated/calendar/client/index.d.ts +10 -0
- package/dist/generated/calendar/client/types.gen.d.ts +120 -0
- package/dist/generated/calendar/client/utils.gen.d.ts +37 -0
- package/dist/generated/calendar/client.gen.d.ts +12 -0
- package/dist/generated/calendar/core/auth.gen.d.ts +25 -0
- package/dist/generated/calendar/core/bodySerializer.gen.d.ts +25 -0
- package/dist/generated/calendar/core/params.gen.d.ts +43 -0
- package/dist/generated/calendar/core/pathSerializer.gen.d.ts +33 -0
- package/dist/generated/calendar/core/queryKeySerializer.gen.d.ts +18 -0
- package/dist/generated/calendar/core/serverSentEvents.gen.d.ts +71 -0
- package/dist/generated/calendar/core/types.gen.d.ts +83 -0
- package/dist/generated/calendar/core/utils.gen.d.ts +19 -0
- package/dist/generated/calendar/index.d.ts +2 -0
- package/dist/generated/calendar/index.js +6 -0
- package/dist/generated/calendar/sdk.gen.d.ts +95 -0
- package/dist/generated/calendar/types.gen.d.ts +1091 -0
- 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 +6 -1
- package/dist/generated/cognition/types.gen.d.ts +304 -36
- package/dist/generated/connection/types.gen.d.ts +1 -1
- package/dist/generated/email/index.d.ts +1 -1
- package/dist/generated/email/index.js +1 -1
- package/dist/generated/email/sdk.gen.d.ts +32 -27
- package/dist/generated/email/types.gen.d.ts +586 -409
- package/dist/generated/notification/index.d.ts +1 -1
- package/dist/generated/notification/types.gen.d.ts +384 -19
- package/dist/generated/properties/types.gen.d.ts +8 -5
- package/dist/generated/scheduled-action/index.d.ts +1 -1
- package/dist/generated/scheduled-action/index.js +3 -842
- package/dist/generated/scheduled-action/sdk.gen.d.ts +3 -1
- package/dist/generated/scheduled-action/types.gen.d.ts +277 -41
- package/dist/generated/search/index.d.ts +1 -1
- package/dist/generated/search/types.gen.d.ts +262 -43
- 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 +678 -107
- package/dist/generated/storage/types.gen.d.ts +14827 -5995
- package/dist/generated/unfurl/index.d.ts +1 -1
- package/dist/generated/unfurl/index.js +3 -832
- package/dist/generated/unfurl/types.gen.d.ts +20 -0
- package/dist/src/config.d.ts +33 -13
- package/dist/src/entities/agent-sessions/agent-session.d.ts +150 -6
- package/dist/src/entities/agent-sessions/code-execution.d.ts +43 -0
- package/dist/src/entities/agent-sessions/conversation.d.ts +54 -0
- package/dist/src/entities/agent-sessions/namespace.d.ts +23 -5
- package/dist/src/entities/agent-sessions/queued-action.d.ts +46 -0
- package/dist/src/entities/agent-sessions/review.d.ts +107 -0
- package/dist/src/entities/agent-sessions/tool-approval.d.ts +21 -0
- package/dist/src/entities/agents/agent.d.ts +47 -0
- package/dist/src/entities/agents/namespace.d.ts +13 -0
- package/dist/src/entities/ai/namespace.d.ts +24 -0
- package/dist/src/entities/api-keys/api-key.d.ts +17 -0
- package/dist/src/entities/api-keys/namespace.d.ts +18 -0
- package/dist/src/entities/calendar/calendar.d.ts +35 -0
- package/dist/src/entities/calendar/event.d.ts +123 -0
- package/dist/src/entities/calendar/event.test.d.ts +1 -0
- package/dist/src/entities/calendar/namespace.d.ts +111 -0
- package/dist/src/entities/calendar/replacement.d.ts +15 -0
- package/dist/src/entities/calls/call-record.d.ts +62 -6
- package/dist/src/entities/calls/message.d.ts +33 -0
- package/dist/src/entities/channels/activity.d.ts +24 -0
- package/dist/src/entities/channels/channel.d.ts +44 -3
- package/dist/src/entities/channels/labels.d.ts +39 -0
- package/dist/src/entities/channels/message.d.ts +9 -17
- package/dist/src/entities/channels/namespace.d.ts +6 -0
- package/dist/src/entities/channels/picture.d.ts +11 -0
- package/dist/src/entities/channels/post.d.ts +1 -1
- package/dist/src/entities/channels/thread.d.ts +5 -0
- package/dist/src/entities/chats/chat.d.ts +11 -1
- package/dist/src/entities/chats/generation.d.ts +46 -0
- package/dist/src/entities/crm/comment.d.ts +55 -34
- package/dist/src/entities/crm/company.d.ts +42 -10
- package/dist/src/entities/crm/contact.d.ts +42 -10
- package/dist/src/entities/crm/namespace.d.ts +18 -1
- package/dist/src/entities/crm/pipeline.d.ts +122 -0
- package/dist/src/entities/crm/pipelines.d.ts +14 -0
- package/dist/src/entities/databases/column.d.ts +75 -0
- package/dist/src/entities/databases/database.d.ts +272 -0
- package/dist/src/entities/databases/namespace.d.ts +21 -0
- package/dist/src/entities/databases/query.d.ts +86 -0
- package/dist/src/entities/databases/row.d.ts +27 -0
- package/dist/src/entities/databases/table.d.ts +61 -0
- package/dist/src/entities/databases/view.d.ts +40 -0
- package/dist/src/entities/databases/webhook.d.ts +32 -0
- package/dist/src/entities/documents/anchor.d.ts +29 -0
- package/dist/src/entities/documents/comment.d.ts +25 -22
- package/dist/src/entities/documents/document.d.ts +60 -12
- package/dist/src/entities/documents/namespace.d.ts +30 -0
- package/dist/src/entities/documents/version.d.ts +22 -0
- package/dist/src/entities/email/draft.d.ts +79 -0
- package/dist/src/entities/email/filter.d.ts +34 -0
- package/dist/src/entities/email/link.d.ts +6 -4
- package/dist/src/entities/email/message.d.ts +12 -1
- package/dist/src/entities/email/namespace.d.ts +34 -1
- package/dist/src/entities/email/thread.d.ts +23 -1
- package/dist/src/entities/entity-mentions/mention.d.ts +16 -0
- package/dist/src/entities/entity-mentions/namespace.d.ts +12 -0
- package/dist/src/entities/entity.d.ts +7 -0
- package/dist/src/entities/favorites/namespace.d.ts +14 -2
- package/dist/src/entities/foreign/foreign-entity.d.ts +2 -0
- package/dist/src/entities/foreign/namespace.d.ts +40 -0
- package/dist/src/entities/forms/form.d.ts +227 -0
- package/dist/src/entities/forms/namespace.d.ts +18 -0
- package/dist/src/entities/forms/question.d.ts +37 -0
- package/dist/src/entities/forms/response.d.ts +32 -0
- package/dist/src/entities/forms/section.d.ts +19 -0
- package/dist/src/entities/github-pull-requests/namespace.d.ts +12 -0
- package/dist/src/entities/github-pull-requests/pull-request.d.ts +52 -0
- package/dist/src/entities/harnesses/harness.d.ts +19 -0
- package/dist/src/entities/harnesses/namespace.d.ts +33 -0
- package/dist/src/entities/harnesses/pairing.d.ts +39 -0
- package/dist/src/entities/initiatives/initiative.d.ts +50 -0
- package/dist/src/entities/initiatives/namespace.d.ts +13 -0
- package/dist/src/entities/meetings/meeting.d.ts +38 -0
- package/dist/src/entities/meetings/namespace.d.ts +18 -0
- package/dist/src/entities/messages/thread.d.ts +101 -0
- package/dist/src/entities/notifications/notification.d.ts +6 -3
- package/dist/src/entities/notifications/notification.test.d.ts +1 -0
- package/dist/src/entities/projects/project.d.ts +7 -0
- package/dist/src/entities/reference.d.ts +82 -0
- package/dist/src/entities/routines/namespace.d.ts +15 -0
- package/dist/src/entities/routines/routine.d.ts +115 -0
- package/dist/src/entities/sharing/access.d.ts +65 -0
- package/dist/src/entities/sharing/permissions.d.ts +13 -0
- package/dist/src/entities/tasks/namespace.d.ts +4 -0
- package/dist/src/entities/tasks/task.d.ts +6 -0
- package/dist/src/entities/unfurls/namespace.d.ts +10 -0
- package/dist/src/entities/webhooks/webhook.d.ts +3 -1
- package/dist/src/entities/workspace/items.d.ts +7 -0
- package/dist/src/entities/workspace/namespace.d.ts +83 -0
- package/dist/src/entities/workspace/query.d.ts +12 -0
- package/dist/src/entities/workspace/types.d.ts +96 -0
- package/dist/src/events/hydrate/agentSession.d.ts +192 -0
- package/dist/src/events/hydrate/channel.d.ts +2 -39
- package/dist/src/events/hydrate/message.d.ts +70 -0
- package/dist/src/events/receiver.d.ts +57 -19
- package/dist/src/events/types.d.ts +3 -1
- package/dist/src/macro.d.ts +80 -3
- package/dist/src/macro.js +8832 -2784
- package/dist/src/utils/activity.d.ts +11 -0
- package/dist/src/utils/activity.test.d.ts +1 -0
- package/dist/src/utils/client.d.ts +10 -1
- package/dist/src/utils/concurrency.d.ts +5 -0
- package/dist/src/utils/index.d.ts +1 -0
- package/dist/src/utils/pagination.d.ts +9 -4
- package/package.json +11 -3
|
@@ -0,0 +1,1091 @@
|
|
|
1
|
+
export type ClientOptions = {
|
|
2
|
+
baseUrl: `${string}://${string}` | (string & {});
|
|
3
|
+
};
|
|
4
|
+
/**
|
|
5
|
+
* RSVP state for an attendee.
|
|
6
|
+
*/
|
|
7
|
+
export type AttendeeResponseStatus = 'needs_action' | 'accepted' | 'declined' | 'tentative';
|
|
8
|
+
/**
|
|
9
|
+
* Per-user inclusion of a source calendar in personal availability.
|
|
10
|
+
*/
|
|
11
|
+
export type AvailabilityCalendar = {
|
|
12
|
+
/**
|
|
13
|
+
* Visible source calendar.
|
|
14
|
+
*/
|
|
15
|
+
calendarId: string;
|
|
16
|
+
/**
|
|
17
|
+
* Whether its events normally block the user's time.
|
|
18
|
+
*/
|
|
19
|
+
contributesToAvailability: boolean;
|
|
20
|
+
/**
|
|
21
|
+
* Whether this is the connected account's primary calendar.
|
|
22
|
+
*/
|
|
23
|
+
isPrimary: boolean;
|
|
24
|
+
/**
|
|
25
|
+
* Source name.
|
|
26
|
+
*/
|
|
27
|
+
name: string;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* Own-user source inclusion preference.
|
|
31
|
+
*/
|
|
32
|
+
export type AvailabilityCalendarBody = {
|
|
33
|
+
/**
|
|
34
|
+
* Whether this calendar contributes to personal availability.
|
|
35
|
+
*/
|
|
36
|
+
contributesToAvailability: boolean;
|
|
37
|
+
};
|
|
38
|
+
/**
|
|
39
|
+
* Source calendar settings returned to their viewer.
|
|
40
|
+
*/
|
|
41
|
+
export type AvailabilityCalendarsResponse = {
|
|
42
|
+
/**
|
|
43
|
+
* Directly visible source calendars.
|
|
44
|
+
*/
|
|
45
|
+
calendars: Array<AvailabilityCalendar>;
|
|
46
|
+
};
|
|
47
|
+
/**
|
|
48
|
+
* An attendee on a calendar event.
|
|
49
|
+
*/
|
|
50
|
+
export type CalendarAttendee = {
|
|
51
|
+
/**
|
|
52
|
+
* Optional attendee comment.
|
|
53
|
+
*/
|
|
54
|
+
comment?: string | null;
|
|
55
|
+
/**
|
|
56
|
+
* Provider display name.
|
|
57
|
+
*/
|
|
58
|
+
displayName?: string | null;
|
|
59
|
+
/**
|
|
60
|
+
* Normalized email address.
|
|
61
|
+
*/
|
|
62
|
+
email: string;
|
|
63
|
+
/**
|
|
64
|
+
* Whether attendance is optional.
|
|
65
|
+
*/
|
|
66
|
+
isOptional: boolean;
|
|
67
|
+
/**
|
|
68
|
+
* Whether this attendee is the organizer.
|
|
69
|
+
*/
|
|
70
|
+
isOrganizer: boolean;
|
|
71
|
+
/**
|
|
72
|
+
* Whether this attendee is one of the viewing requester's inboxes.
|
|
73
|
+
*/
|
|
74
|
+
isSelf: boolean;
|
|
75
|
+
/**
|
|
76
|
+
* RSVP state.
|
|
77
|
+
*/
|
|
78
|
+
responseStatus: AttendeeResponseStatus;
|
|
79
|
+
};
|
|
80
|
+
/**
|
|
81
|
+
* An attendee supplied to a calendar mutation.
|
|
82
|
+
*/
|
|
83
|
+
export type CalendarAttendeeInputBody = {
|
|
84
|
+
/**
|
|
85
|
+
* Attendee email address.
|
|
86
|
+
*/
|
|
87
|
+
email: string;
|
|
88
|
+
/**
|
|
89
|
+
* Whether attendance is optional.
|
|
90
|
+
*/
|
|
91
|
+
isOptional?: boolean;
|
|
92
|
+
};
|
|
93
|
+
/**
|
|
94
|
+
* Actual provider capabilities used by calendar editors.
|
|
95
|
+
*/
|
|
96
|
+
export type CalendarCapabilities = {
|
|
97
|
+
/**
|
|
98
|
+
* Whether event-level automatic invitation declines are supported.
|
|
99
|
+
*/
|
|
100
|
+
autoDecline: boolean;
|
|
101
|
+
conferenceProvider?: null | ConferenceProvider;
|
|
102
|
+
/**
|
|
103
|
+
* Whether arbitrary RFC 5545 recurrence properties can be written.
|
|
104
|
+
*/
|
|
105
|
+
customRecurrence: boolean;
|
|
106
|
+
/**
|
|
107
|
+
* Whether email reminders are delivered by the provider or Macro.
|
|
108
|
+
*/
|
|
109
|
+
emailReminders: boolean;
|
|
110
|
+
/**
|
|
111
|
+
* Whether an existing conference can be detached.
|
|
112
|
+
*/
|
|
113
|
+
removeConference: boolean;
|
|
114
|
+
/**
|
|
115
|
+
* Whether an attendee can reset their RSVP to unanswered.
|
|
116
|
+
*/
|
|
117
|
+
resetRsvp: boolean;
|
|
118
|
+
};
|
|
119
|
+
/**
|
|
120
|
+
* How much of a recurring series a deletion removes.
|
|
121
|
+
*/
|
|
122
|
+
export type CalendarDeletionScopeParam = 'all' | 'this_event' | 'this_and_following';
|
|
123
|
+
/**
|
|
124
|
+
* A stable, first-class Macro calendar event entity.
|
|
125
|
+
*
|
|
126
|
+
* Content fields hold the canonical source's values: the account's primary
|
|
127
|
+
* calendar copy when one is synced, else the freshest remaining copy.
|
|
128
|
+
*/
|
|
129
|
+
export type CalendarEvent = {
|
|
130
|
+
/**
|
|
131
|
+
* Attendees, keyed by email during persistence.
|
|
132
|
+
*/
|
|
133
|
+
attendees: Array<CalendarAttendee>;
|
|
134
|
+
/**
|
|
135
|
+
* Calendar the canonical source belongs to, when known. Absent only in
|
|
136
|
+
* projections stored before calendars were attributed.
|
|
137
|
+
*/
|
|
138
|
+
calendarId?: string | null;
|
|
139
|
+
conferenceProvider?: null | ConferenceProvider;
|
|
140
|
+
/**
|
|
141
|
+
* Direct join URL when known.
|
|
142
|
+
*/
|
|
143
|
+
conferenceUrl?: string | null;
|
|
144
|
+
/**
|
|
145
|
+
* Entity creation time.
|
|
146
|
+
*/
|
|
147
|
+
createdAt: string;
|
|
148
|
+
/**
|
|
149
|
+
* Provider-reported creator email. Distinct from the organizer when
|
|
150
|
+
* someone writes onto a calendar they do not own. Omitted from stored
|
|
151
|
+
* projections when unknown so events ingested before this field still
|
|
152
|
+
* compare equal.
|
|
153
|
+
*/
|
|
154
|
+
creatorEmail?: string | null;
|
|
155
|
+
/**
|
|
156
|
+
* Provider-reported creator display name.
|
|
157
|
+
*/
|
|
158
|
+
creatorName?: string | null;
|
|
159
|
+
/**
|
|
160
|
+
* Optional event body.
|
|
161
|
+
*/
|
|
162
|
+
description?: string | null;
|
|
163
|
+
/**
|
|
164
|
+
* Provider event type. Skipped when it is the regular type so
|
|
165
|
+
* projections stored before event types were modeled still compare
|
|
166
|
+
* equal.
|
|
167
|
+
*/
|
|
168
|
+
eventType?: EventType;
|
|
169
|
+
/**
|
|
170
|
+
* RFC 5545 UID used to reconcile provider and email sources.
|
|
171
|
+
*/
|
|
172
|
+
icalUid: string;
|
|
173
|
+
/**
|
|
174
|
+
* Macro entity identifier.
|
|
175
|
+
*/
|
|
176
|
+
id: string;
|
|
177
|
+
/**
|
|
178
|
+
* Whether the canonical source's calendar prohibits editing it.
|
|
179
|
+
*/
|
|
180
|
+
isReadOnly: boolean;
|
|
181
|
+
/**
|
|
182
|
+
* Optional physical or virtual location label.
|
|
183
|
+
*/
|
|
184
|
+
location?: string | null;
|
|
185
|
+
/**
|
|
186
|
+
* Organizer email.
|
|
187
|
+
*/
|
|
188
|
+
organizerEmail?: string | null;
|
|
189
|
+
/**
|
|
190
|
+
* Organizer display name.
|
|
191
|
+
*/
|
|
192
|
+
organizerName?: string | null;
|
|
193
|
+
/**
|
|
194
|
+
* Macro user who owns this event entity.
|
|
195
|
+
*/
|
|
196
|
+
ownerId: string;
|
|
197
|
+
/**
|
|
198
|
+
* Raw RFC 5545 recurrence properties (`RRULE`, `RDATE`, `EXDATE`).
|
|
199
|
+
*/
|
|
200
|
+
recurrenceLines: Array<string>;
|
|
201
|
+
/**
|
|
202
|
+
* Per-user reminder configuration. Skipped when it is the provider
|
|
203
|
+
* default so projections stored before reminders were modeled still
|
|
204
|
+
* compare equal.
|
|
205
|
+
*/
|
|
206
|
+
reminders?: EventReminders;
|
|
207
|
+
/**
|
|
208
|
+
* Provider/iCalendar sequence number.
|
|
209
|
+
*/
|
|
210
|
+
sequence: number;
|
|
211
|
+
/**
|
|
212
|
+
* Content of every active copy of this event, canonical first: the
|
|
213
|
+
* primary calendar's copy, then the freshest. A client picks the copy
|
|
214
|
+
* whose calendar it is showing and falls back to the first. Populated
|
|
215
|
+
* only on the read path, so stored projections omit it.
|
|
216
|
+
*/
|
|
217
|
+
sources?: Array<CalendarEventSourceContent>;
|
|
218
|
+
/**
|
|
219
|
+
* Event status.
|
|
220
|
+
*/
|
|
221
|
+
status: EventStatus;
|
|
222
|
+
/**
|
|
223
|
+
* Timed or all-day shape.
|
|
224
|
+
*/
|
|
225
|
+
time: EventTime;
|
|
226
|
+
/**
|
|
227
|
+
* Display title.
|
|
228
|
+
*/
|
|
229
|
+
title: string;
|
|
230
|
+
/**
|
|
231
|
+
* Availability behavior.
|
|
232
|
+
*/
|
|
233
|
+
transparency: EventTransparency;
|
|
234
|
+
/**
|
|
235
|
+
* Entity update time.
|
|
236
|
+
*/
|
|
237
|
+
updatedAt: string;
|
|
238
|
+
/**
|
|
239
|
+
* Event visibility.
|
|
240
|
+
*/
|
|
241
|
+
visibility: EventVisibility;
|
|
242
|
+
};
|
|
243
|
+
/**
|
|
244
|
+
* Provider-validated external event link.
|
|
245
|
+
*/
|
|
246
|
+
export type CalendarEventProviderUrl = {
|
|
247
|
+
/**
|
|
248
|
+
* None when the event no longer exists at its provider.
|
|
249
|
+
*/
|
|
250
|
+
url?: string | null;
|
|
251
|
+
};
|
|
252
|
+
/**
|
|
253
|
+
* The content one provider copy of an event carries.
|
|
254
|
+
*
|
|
255
|
+
* Google keeps these fields per calendar copy: a shared calendar's copy of a
|
|
256
|
+
* member's event can have its own title, type, reminders, and access role.
|
|
257
|
+
* The entity holds its canonical source's values. Every other copy's values
|
|
258
|
+
* are read from here so a client can show the copy that belongs to the
|
|
259
|
+
* calendar being viewed.
|
|
260
|
+
*/
|
|
261
|
+
export type CalendarEventSourceContent = {
|
|
262
|
+
/**
|
|
263
|
+
* Calendar this copy lives on.
|
|
264
|
+
*/
|
|
265
|
+
calendarId: string;
|
|
266
|
+
/**
|
|
267
|
+
* Provider-reported creator email.
|
|
268
|
+
*/
|
|
269
|
+
creatorEmail?: string | null;
|
|
270
|
+
/**
|
|
271
|
+
* Provider-reported creator display name.
|
|
272
|
+
*/
|
|
273
|
+
creatorName?: string | null;
|
|
274
|
+
/**
|
|
275
|
+
* Optional event body.
|
|
276
|
+
*/
|
|
277
|
+
description?: string | null;
|
|
278
|
+
/**
|
|
279
|
+
* Provider event type.
|
|
280
|
+
*/
|
|
281
|
+
eventType: EventType;
|
|
282
|
+
/**
|
|
283
|
+
* Whether the calendar's access role prohibits editing this copy.
|
|
284
|
+
*/
|
|
285
|
+
isReadOnly: boolean;
|
|
286
|
+
/**
|
|
287
|
+
* Optional physical or virtual location label.
|
|
288
|
+
*/
|
|
289
|
+
location?: string | null;
|
|
290
|
+
/**
|
|
291
|
+
* Reminder configuration of this copy.
|
|
292
|
+
*/
|
|
293
|
+
reminders: EventReminders;
|
|
294
|
+
/**
|
|
295
|
+
* Display title.
|
|
296
|
+
*/
|
|
297
|
+
title: string;
|
|
298
|
+
/**
|
|
299
|
+
* Availability behavior.
|
|
300
|
+
*/
|
|
301
|
+
transparency: EventTransparency;
|
|
302
|
+
/**
|
|
303
|
+
* Event visibility.
|
|
304
|
+
*/
|
|
305
|
+
visibility: EventVisibility;
|
|
306
|
+
};
|
|
307
|
+
/**
|
|
308
|
+
* HTTP error body returned by calendar mutation endpoints.
|
|
309
|
+
*/
|
|
310
|
+
export type CalendarMutationApiError = {
|
|
311
|
+
/**
|
|
312
|
+
* Machine-readable failure category.
|
|
313
|
+
*/
|
|
314
|
+
code: CalendarMutationErrorCode;
|
|
315
|
+
/**
|
|
316
|
+
* Human-readable failure description.
|
|
317
|
+
*/
|
|
318
|
+
message: string;
|
|
319
|
+
};
|
|
320
|
+
/**
|
|
321
|
+
* Machine-readable failure category for calendar mutations.
|
|
322
|
+
*/
|
|
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';
|
|
324
|
+
/**
|
|
325
|
+
* Provider selected from the persisted calendar account and email binding.
|
|
326
|
+
*/
|
|
327
|
+
export type CalendarProvider = 'google' | 'outlook';
|
|
328
|
+
/**
|
|
329
|
+
* Safe preview and recovery response; never exposes the opaque provider snapshot.
|
|
330
|
+
*/
|
|
331
|
+
export type CalendarReplacementView = {
|
|
332
|
+
/**
|
|
333
|
+
* Guest count for cancellation and reinvitation confirmation.
|
|
334
|
+
*/
|
|
335
|
+
attendeeCount: number;
|
|
336
|
+
/**
|
|
337
|
+
* Number of completed provider steps.
|
|
338
|
+
*/
|
|
339
|
+
completedSteps: number;
|
|
340
|
+
event?: null | CalendarEvent;
|
|
341
|
+
/**
|
|
342
|
+
* Entire recurring series, including exceptions, is replaced.
|
|
343
|
+
*/
|
|
344
|
+
isSeries: boolean;
|
|
345
|
+
/**
|
|
346
|
+
* Use this identity when confirming or checking progress.
|
|
347
|
+
*/
|
|
348
|
+
operationId: string;
|
|
349
|
+
/**
|
|
350
|
+
* Original event for manual review.
|
|
351
|
+
*/
|
|
352
|
+
providerUrl?: string | null;
|
|
353
|
+
/**
|
|
354
|
+
* The provider conference is removed.
|
|
355
|
+
*/
|
|
356
|
+
removeConference: boolean;
|
|
357
|
+
/**
|
|
358
|
+
* New provider event, when creation was confirmed.
|
|
359
|
+
*/
|
|
360
|
+
replacementUrl?: string | null;
|
|
361
|
+
/**
|
|
362
|
+
* Current durable state.
|
|
363
|
+
*/
|
|
364
|
+
status: ReplacementStatus;
|
|
365
|
+
/**
|
|
366
|
+
* Frozen time.
|
|
367
|
+
*/
|
|
368
|
+
time: EventTime;
|
|
369
|
+
/**
|
|
370
|
+
* Frozen title.
|
|
371
|
+
*/
|
|
372
|
+
title: string;
|
|
373
|
+
/**
|
|
374
|
+
* Number of provider steps in this operation.
|
|
375
|
+
*/
|
|
376
|
+
totalSteps: number;
|
|
377
|
+
};
|
|
378
|
+
/**
|
|
379
|
+
* How much of a recurring series an RSVP applies to.
|
|
380
|
+
*
|
|
381
|
+
* Unlike deletion there is no this-and-following variant: the provider
|
|
382
|
+
* cannot express a forward-scoped response, so offering one would be a
|
|
383
|
+
* promise sync could not keep.
|
|
384
|
+
*/
|
|
385
|
+
export type CalendarRsvpScopeParam = 'all' | 'this_event';
|
|
386
|
+
/**
|
|
387
|
+
* How much of a recurring series an update applies to.
|
|
388
|
+
*
|
|
389
|
+
* Like RSVPs there is no this-and-following variant: the provider cannot
|
|
390
|
+
* express a forward-scoped edit as one write, and emulating it (truncate
|
|
391
|
+
* the series, insert an edited clone) is non-atomic and re-invites the
|
|
392
|
+
* attendees of the clone. Compose it from a this-and-following deletion
|
|
393
|
+
* and a create when that shape is wanted.
|
|
394
|
+
*/
|
|
395
|
+
export type CalendarUpdateScopeParam = 'all' | 'this_event';
|
|
396
|
+
/**
|
|
397
|
+
* A requested change to an event's conferencing. Omitting the field leaves
|
|
398
|
+
* the existing conference untouched; only these values change it.
|
|
399
|
+
*/
|
|
400
|
+
export type ConferenceChange = 'provider_default' | 'microsoft_teams' | 'google_meet' | 'none';
|
|
401
|
+
/**
|
|
402
|
+
* The conferencing system backing an event's join URL.
|
|
403
|
+
*
|
|
404
|
+
* Calendars can create Google Meet or Microsoft Teams according to their
|
|
405
|
+
* capabilities. Imported third-party conferences are labeled separately.
|
|
406
|
+
* Omitting a conference change preserves the current conference; explicit
|
|
407
|
+
* changes still require provider and calendar capability validation.
|
|
408
|
+
*/
|
|
409
|
+
export type ConferenceProvider = 'microsoft_teams' | 'google_meet' | 'other';
|
|
410
|
+
/**
|
|
411
|
+
* Request body creating a calendar event on the requester's calendar.
|
|
412
|
+
*/
|
|
413
|
+
export type CreateCalendarEventRequest = {
|
|
414
|
+
/**
|
|
415
|
+
* Invited attendees.
|
|
416
|
+
*/
|
|
417
|
+
attendees?: Array<CalendarAttendeeInputBody>;
|
|
418
|
+
/**
|
|
419
|
+
* Exact calendar to create the event on; takes precedence over the
|
|
420
|
+
* inbox default.
|
|
421
|
+
*/
|
|
422
|
+
calendarId?: string | null;
|
|
423
|
+
conference?: null | ConferenceChange;
|
|
424
|
+
/**
|
|
425
|
+
* Optional event body.
|
|
426
|
+
*/
|
|
427
|
+
description?: string | null;
|
|
428
|
+
/**
|
|
429
|
+
* Connected inbox whose primary calendar receives the event; defaults
|
|
430
|
+
* to the requester's primary inbox.
|
|
431
|
+
*/
|
|
432
|
+
emailLinkId?: string | null;
|
|
433
|
+
/**
|
|
434
|
+
* Stable retry identity, scoped to the authenticated organizer.
|
|
435
|
+
*/
|
|
436
|
+
idempotencyKey?: string | null;
|
|
437
|
+
/**
|
|
438
|
+
* Optional location label.
|
|
439
|
+
*/
|
|
440
|
+
location?: string | null;
|
|
441
|
+
/**
|
|
442
|
+
* Mint a Macro call and write its join link into the description and
|
|
443
|
+
* location before creating the event, so the invitation carries it.
|
|
444
|
+
* Cannot be combined with `conference`.
|
|
445
|
+
*/
|
|
446
|
+
macroCall?: boolean;
|
|
447
|
+
outOfOffice?: null | OutOfOfficeProperties;
|
|
448
|
+
/**
|
|
449
|
+
* Raw RFC 5545 recurrence properties (`RRULE`, `RDATE`, `EXDATE`).
|
|
450
|
+
*/
|
|
451
|
+
recurrenceLines?: Array<string>;
|
|
452
|
+
reminders?: null | EventReminders;
|
|
453
|
+
/**
|
|
454
|
+
* Timed or all-day shape.
|
|
455
|
+
*/
|
|
456
|
+
time: EventTime;
|
|
457
|
+
/**
|
|
458
|
+
* Display title.
|
|
459
|
+
*/
|
|
460
|
+
title: string;
|
|
461
|
+
transparency?: null | EventTransparency;
|
|
462
|
+
visibility?: null | EventVisibility;
|
|
463
|
+
};
|
|
464
|
+
/**
|
|
465
|
+
* One reminder: how it alerts and how many minutes before the event start
|
|
466
|
+
* (before midnight in the calendar's zone for all-day events) it fires.
|
|
467
|
+
*/
|
|
468
|
+
export type EventReminderOverride = {
|
|
469
|
+
/**
|
|
470
|
+
* Provider method, stored verbatim; only `popup` fires Macro
|
|
471
|
+
* notifications.
|
|
472
|
+
*/
|
|
473
|
+
method: string;
|
|
474
|
+
/**
|
|
475
|
+
* Minutes before the event start.
|
|
476
|
+
*/
|
|
477
|
+
minutes: number;
|
|
478
|
+
};
|
|
479
|
+
/**
|
|
480
|
+
* Per-user reminder configuration for an event, mirroring Google's model:
|
|
481
|
+
* either the calendar's default reminders apply, or the explicit overrides
|
|
482
|
+
* replace them entirely.
|
|
483
|
+
*/
|
|
484
|
+
export type EventReminders = {
|
|
485
|
+
/**
|
|
486
|
+
* Explicit reminders replacing the defaults when `use_default` is off.
|
|
487
|
+
*/
|
|
488
|
+
overrides?: Array<EventReminderOverride>;
|
|
489
|
+
/**
|
|
490
|
+
* Whether the calendar's default reminders apply.
|
|
491
|
+
*/
|
|
492
|
+
useDefault: boolean;
|
|
493
|
+
};
|
|
494
|
+
/**
|
|
495
|
+
* Canonical event status.
|
|
496
|
+
*/
|
|
497
|
+
export type EventStatus = 'confirmed' | 'tentative' | 'cancelled';
|
|
498
|
+
/**
|
|
499
|
+
* The mutually exclusive time shape of a calendar event.
|
|
500
|
+
*
|
|
501
|
+
* Fields are renamed per variant rather than with `rename_all_fields`
|
|
502
|
+
* because utoipa only honors variant-level serde renames when it
|
|
503
|
+
* derives the OpenAPI schema.
|
|
504
|
+
*/
|
|
505
|
+
export type EventTime = {
|
|
506
|
+
/**
|
|
507
|
+
* Exclusive end instant; equal to the start for an imported point event.
|
|
508
|
+
*/
|
|
509
|
+
endsAt: string;
|
|
510
|
+
kind: 'timed';
|
|
511
|
+
/**
|
|
512
|
+
* Inclusive start instant.
|
|
513
|
+
*/
|
|
514
|
+
startsAt: string;
|
|
515
|
+
/**
|
|
516
|
+
* Original IANA time-zone identifier, when supplied.
|
|
517
|
+
*/
|
|
518
|
+
timeZone?: string | null;
|
|
519
|
+
} | {
|
|
520
|
+
/**
|
|
521
|
+
* Exclusive local end date.
|
|
522
|
+
*/
|
|
523
|
+
endDate: string;
|
|
524
|
+
kind: 'allDay';
|
|
525
|
+
/**
|
|
526
|
+
* Inclusive local start date.
|
|
527
|
+
*/
|
|
528
|
+
startDate: string;
|
|
529
|
+
};
|
|
530
|
+
/**
|
|
531
|
+
* Whether an event blocks availability.
|
|
532
|
+
*/
|
|
533
|
+
export type EventTransparency = 'opaque' | 'transparent';
|
|
534
|
+
/**
|
|
535
|
+
* Google's event type: ordinary meetings versus the status-style entries
|
|
536
|
+
* (working location, out of office, focus time, birthdays) Google renders
|
|
537
|
+
* and notifies differently. Immutable at the provider after creation.
|
|
538
|
+
*/
|
|
539
|
+
export type EventType = 'default' | 'out_of_office' | 'focus_time' | 'working_location' | 'birthday' | 'from_gmail';
|
|
540
|
+
/**
|
|
541
|
+
* Visibility of event details.
|
|
542
|
+
*/
|
|
543
|
+
export type EventVisibility = 'default' | 'public' | 'private' | 'confidential';
|
|
544
|
+
/**
|
|
545
|
+
* Calendars visible to the requester across connected and delegated inboxes.
|
|
546
|
+
*/
|
|
547
|
+
export type ListCalendarsResponse = {
|
|
548
|
+
/**
|
|
549
|
+
* Primaries and writable calendars first.
|
|
550
|
+
*/
|
|
551
|
+
calendars: Array<VisibleCalendar>;
|
|
552
|
+
};
|
|
553
|
+
/**
|
|
554
|
+
* How an out-of-office event responds to conflicting invitations, mirroring
|
|
555
|
+
* Google's `autoDeclineMode`.
|
|
556
|
+
*/
|
|
557
|
+
export type OutOfOfficeAutoDeclineMode = 'decline_none' | 'decline_all_conflicting_invitations' | 'decline_only_new_conflicting_invitations';
|
|
558
|
+
/**
|
|
559
|
+
* The extra properties Google requires on an out-of-office event, mirroring
|
|
560
|
+
* its `outOfOfficeProperties` block. Their presence on a draft or patch is
|
|
561
|
+
* what marks the mutation as out-of-office.
|
|
562
|
+
*/
|
|
563
|
+
export type OutOfOfficeProperties = {
|
|
564
|
+
/**
|
|
565
|
+
* How conflicting invitations are handled while the user is out.
|
|
566
|
+
*/
|
|
567
|
+
autoDeclineMode?: OutOfOfficeAutoDeclineMode;
|
|
568
|
+
/**
|
|
569
|
+
* Message returned to organizers whose invitations are auto-declined.
|
|
570
|
+
*/
|
|
571
|
+
declineMessage?: string | null;
|
|
572
|
+
};
|
|
573
|
+
/**
|
|
574
|
+
* A read-only preview request. Confirmation uses the returned operation identity.
|
|
575
|
+
*/
|
|
576
|
+
export type PrepareCalendarReplacementRequest = {
|
|
577
|
+
/**
|
|
578
|
+
* Exact calendar copy; defaults to canonical.
|
|
579
|
+
*/
|
|
580
|
+
calendarId?: string | null;
|
|
581
|
+
/**
|
|
582
|
+
* Original-start key; omitted to replace the entire series.
|
|
583
|
+
*/
|
|
584
|
+
recurrenceId?: string | null;
|
|
585
|
+
/**
|
|
586
|
+
* Omit the provider conference in the replacement.
|
|
587
|
+
*/
|
|
588
|
+
removeConference: boolean;
|
|
589
|
+
};
|
|
590
|
+
/**
|
|
591
|
+
* Realtime signal that a connected inbox's calendar projection changed.
|
|
592
|
+
*/
|
|
593
|
+
export type RefreshCalendarEvent = {
|
|
594
|
+
event: 'synced';
|
|
595
|
+
/**
|
|
596
|
+
* Connected inbox whose calendars changed.
|
|
597
|
+
*/
|
|
598
|
+
link_id: string;
|
|
599
|
+
/**
|
|
600
|
+
* False only when the run excludes changes to teammate OOO projections.
|
|
601
|
+
*/
|
|
602
|
+
team_ooo_changed: boolean;
|
|
603
|
+
} | {
|
|
604
|
+
event: 'team_sharing_changed';
|
|
605
|
+
/**
|
|
606
|
+
* True for sharing changes and any possibly affected OOO projection.
|
|
607
|
+
*/
|
|
608
|
+
team_ooo_changed: boolean;
|
|
609
|
+
};
|
|
610
|
+
/**
|
|
611
|
+
* User-visible workflow state.
|
|
612
|
+
*/
|
|
613
|
+
export type ReplacementStatus = 'needs_confirmation' | 'in_progress' | 'complete';
|
|
614
|
+
/**
|
|
615
|
+
* Request body setting the requester's RSVP on an event.
|
|
616
|
+
*/
|
|
617
|
+
export type RsvpCalendarEventRequest = {
|
|
618
|
+
/**
|
|
619
|
+
* Calendar whose copy of the event is answered, for an event synced
|
|
620
|
+
* from more than one calendar. Omit to answer on the canonical copy.
|
|
621
|
+
*/
|
|
622
|
+
calendarId?: string | null;
|
|
623
|
+
/**
|
|
624
|
+
* Original-start key of the occurrence the response targets.
|
|
625
|
+
*/
|
|
626
|
+
recurrenceId?: string | null;
|
|
627
|
+
/**
|
|
628
|
+
* The owned connected address whose attendance is changed. Validated by the domain.
|
|
629
|
+
*/
|
|
630
|
+
respondingEmail?: string | null;
|
|
631
|
+
/**
|
|
632
|
+
* The response to record for the connected account.
|
|
633
|
+
*/
|
|
634
|
+
response: AttendeeResponseStatus;
|
|
635
|
+
scope?: null | CalendarRsvpScopeParam;
|
|
636
|
+
};
|
|
637
|
+
/**
|
|
638
|
+
* What a user exposes through their team membership.
|
|
639
|
+
*/
|
|
640
|
+
export type TeamCalendarSharing = 'all' | 'busy_only' | 'none';
|
|
641
|
+
/**
|
|
642
|
+
* Own-user sharing preference.
|
|
643
|
+
*/
|
|
644
|
+
export type TeamCalendarSharingBody = {
|
|
645
|
+
/**
|
|
646
|
+
* Busy-only is the default, including when no setting has been saved.
|
|
647
|
+
*/
|
|
648
|
+
sharing: TeamCalendarSharing;
|
|
649
|
+
};
|
|
650
|
+
/**
|
|
651
|
+
* Request body patching an event; omitted fields are left untouched.
|
|
652
|
+
*/
|
|
653
|
+
export type UpdateCalendarEventRequest = {
|
|
654
|
+
/**
|
|
655
|
+
* Replacement attendee list.
|
|
656
|
+
*/
|
|
657
|
+
attendees?: Array<CalendarAttendeeInputBody> | null;
|
|
658
|
+
/**
|
|
659
|
+
* Calendar whose copy of the event is patched, for an event synced from
|
|
660
|
+
* more than one calendar. Omit to patch the canonical copy.
|
|
661
|
+
*/
|
|
662
|
+
calendarId?: string | null;
|
|
663
|
+
conference?: null | ConferenceChange;
|
|
664
|
+
/**
|
|
665
|
+
* Replacement description; an empty string clears it.
|
|
666
|
+
*/
|
|
667
|
+
description?: string | null;
|
|
668
|
+
/**
|
|
669
|
+
* Replacement location; an empty string clears it.
|
|
670
|
+
*/
|
|
671
|
+
location?: string | null;
|
|
672
|
+
outOfOffice?: null | OutOfOfficeProperties;
|
|
673
|
+
/**
|
|
674
|
+
* Original-start key of the occurrence the update targets.
|
|
675
|
+
*/
|
|
676
|
+
recurrenceId?: string | null;
|
|
677
|
+
/**
|
|
678
|
+
* Replacement recurrence properties; an empty list clears them.
|
|
679
|
+
*/
|
|
680
|
+
recurrenceLines?: Array<string> | null;
|
|
681
|
+
reminders?: null | EventReminders;
|
|
682
|
+
scope?: null | CalendarUpdateScopeParam;
|
|
683
|
+
time?: null | EventTime;
|
|
684
|
+
/**
|
|
685
|
+
* Replacement title; an empty string clears it.
|
|
686
|
+
*/
|
|
687
|
+
title?: string | null;
|
|
688
|
+
transparency?: null | EventTransparency;
|
|
689
|
+
visibility?: null | EventVisibility;
|
|
690
|
+
};
|
|
691
|
+
/**
|
|
692
|
+
* A calendar visible to a requester, listed for pickers and filters.
|
|
693
|
+
*/
|
|
694
|
+
export type VisibleCalendar = {
|
|
695
|
+
/**
|
|
696
|
+
* Provider features available on this actual calendar.
|
|
697
|
+
*/
|
|
698
|
+
capabilities: CalendarCapabilities;
|
|
699
|
+
/**
|
|
700
|
+
* Provider color.
|
|
701
|
+
*/
|
|
702
|
+
color?: string | null;
|
|
703
|
+
/**
|
|
704
|
+
* Default reminders applied to events that keep `useDefault`.
|
|
705
|
+
*/
|
|
706
|
+
defaultReminders: Array<EventReminderOverride>;
|
|
707
|
+
/**
|
|
708
|
+
* Connected inbox address, for grouping in multi-inbox pickers.
|
|
709
|
+
*/
|
|
710
|
+
emailAddress: string;
|
|
711
|
+
/**
|
|
712
|
+
* Connected inbox that syncs this calendar.
|
|
713
|
+
*/
|
|
714
|
+
emailLinkId: string;
|
|
715
|
+
/**
|
|
716
|
+
* Persisted Macro calendar identifier.
|
|
717
|
+
*/
|
|
718
|
+
id: string;
|
|
719
|
+
/**
|
|
720
|
+
* Whether this is its account's primary calendar.
|
|
721
|
+
*/
|
|
722
|
+
isPrimary: boolean;
|
|
723
|
+
/**
|
|
724
|
+
* Whether this is one of Google's shared system calendars (holidays,
|
|
725
|
+
* birthdays) the account subscribes to rather than one a person maintains.
|
|
726
|
+
*/
|
|
727
|
+
isSubscription: boolean;
|
|
728
|
+
/**
|
|
729
|
+
* Whether the grant can create and modify events on this calendar.
|
|
730
|
+
*/
|
|
731
|
+
isWritable: boolean;
|
|
732
|
+
/**
|
|
733
|
+
* Provider display name.
|
|
734
|
+
*/
|
|
735
|
+
name: string;
|
|
736
|
+
/**
|
|
737
|
+
* Calendar provider, for display and reconnect routing.
|
|
738
|
+
*/
|
|
739
|
+
provider: CalendarProvider;
|
|
740
|
+
/**
|
|
741
|
+
* A persistent sync failure isolated to this calendar, surfaced so the
|
|
742
|
+
* settings row can badge it. `None` while the calendar is syncing
|
|
743
|
+
* normally or a failure has not yet crossed the persistence threshold.
|
|
744
|
+
*/
|
|
745
|
+
syncError?: string | null;
|
|
746
|
+
};
|
|
747
|
+
export type GetAvailabilityCalendarsData = {
|
|
748
|
+
body?: never;
|
|
749
|
+
path?: never;
|
|
750
|
+
query?: never;
|
|
751
|
+
url: '/availability-calendars';
|
|
752
|
+
};
|
|
753
|
+
export type GetAvailabilityCalendarsResponses = {
|
|
754
|
+
200: AvailabilityCalendarsResponse;
|
|
755
|
+
};
|
|
756
|
+
export type GetAvailabilityCalendarsResponse = GetAvailabilityCalendarsResponses[keyof GetAvailabilityCalendarsResponses];
|
|
757
|
+
export type SetAvailabilityCalendarData = {
|
|
758
|
+
body: AvailabilityCalendarBody;
|
|
759
|
+
path: {
|
|
760
|
+
calendar_id: string;
|
|
761
|
+
};
|
|
762
|
+
query?: never;
|
|
763
|
+
url: '/availability-calendars/{calendar_id}';
|
|
764
|
+
};
|
|
765
|
+
export type SetAvailabilityCalendarResponses = {
|
|
766
|
+
204: void;
|
|
767
|
+
};
|
|
768
|
+
export type SetAvailabilityCalendarResponse = SetAvailabilityCalendarResponses[keyof SetAvailabilityCalendarResponses];
|
|
769
|
+
export type ListCalendarsData = {
|
|
770
|
+
body?: never;
|
|
771
|
+
path?: never;
|
|
772
|
+
query?: never;
|
|
773
|
+
url: '/calendars';
|
|
774
|
+
};
|
|
775
|
+
export type ListCalendarsErrors = {
|
|
776
|
+
/**
|
|
777
|
+
* Authentication required
|
|
778
|
+
*/
|
|
779
|
+
401: unknown;
|
|
780
|
+
/**
|
|
781
|
+
* Transient failure
|
|
782
|
+
*/
|
|
783
|
+
503: CalendarMutationApiError;
|
|
784
|
+
};
|
|
785
|
+
export type ListCalendarsError = ListCalendarsErrors[keyof ListCalendarsErrors];
|
|
786
|
+
export type ListCalendarsResponses = {
|
|
787
|
+
/**
|
|
788
|
+
* Calendars visible to the requester
|
|
789
|
+
*/
|
|
790
|
+
200: ListCalendarsResponse;
|
|
791
|
+
};
|
|
792
|
+
export type ListCalendarsResponse2 = ListCalendarsResponses[keyof ListCalendarsResponses];
|
|
793
|
+
export type CreateCalendarEventData = {
|
|
794
|
+
body: CreateCalendarEventRequest;
|
|
795
|
+
path?: never;
|
|
796
|
+
query?: never;
|
|
797
|
+
url: '/events';
|
|
798
|
+
};
|
|
799
|
+
export type CreateCalendarEventErrors = {
|
|
800
|
+
/**
|
|
801
|
+
* Invalid event fields
|
|
802
|
+
*/
|
|
803
|
+
400: CalendarMutationApiError;
|
|
804
|
+
/**
|
|
805
|
+
* Authentication required
|
|
806
|
+
*/
|
|
807
|
+
401: unknown;
|
|
808
|
+
/**
|
|
809
|
+
* Calendar is read-only or needs reauthorization
|
|
810
|
+
*/
|
|
811
|
+
403: CalendarMutationApiError;
|
|
812
|
+
/**
|
|
813
|
+
* No writable calendar or the provider rejected the event
|
|
814
|
+
*/
|
|
815
|
+
409: CalendarMutationApiError;
|
|
816
|
+
/**
|
|
817
|
+
* Transient provider failure, or the Macro call could not be created
|
|
818
|
+
*/
|
|
819
|
+
503: CalendarMutationApiError;
|
|
820
|
+
};
|
|
821
|
+
export type CreateCalendarEventError = CreateCalendarEventErrors[keyof CreateCalendarEventErrors];
|
|
822
|
+
export type CreateCalendarEventResponses = {
|
|
823
|
+
/**
|
|
824
|
+
* The created calendar event
|
|
825
|
+
*/
|
|
826
|
+
201: CalendarEvent;
|
|
827
|
+
};
|
|
828
|
+
export type CreateCalendarEventResponse = CreateCalendarEventResponses[keyof CreateCalendarEventResponses];
|
|
829
|
+
export type DeleteCalendarEventData = {
|
|
830
|
+
body?: never;
|
|
831
|
+
path: {
|
|
832
|
+
/**
|
|
833
|
+
* Calendar event entity id
|
|
834
|
+
*/
|
|
835
|
+
event_id: string;
|
|
836
|
+
};
|
|
837
|
+
query?: {
|
|
838
|
+
/**
|
|
839
|
+
* Calendar whose copy of the event is deleted, for an event synced from
|
|
840
|
+
* more than one calendar. Omit to delete the canonical copy.
|
|
841
|
+
*/
|
|
842
|
+
calendarId?: string;
|
|
843
|
+
/**
|
|
844
|
+
* Deletion scope; defaults to the entire event or series.
|
|
845
|
+
*/
|
|
846
|
+
scope?: CalendarDeletionScopeParam;
|
|
847
|
+
/**
|
|
848
|
+
* Original-start key of the occurrence a scoped deletion targets.
|
|
849
|
+
*/
|
|
850
|
+
recurrenceId?: string;
|
|
851
|
+
};
|
|
852
|
+
url: '/events/{event_id}';
|
|
853
|
+
};
|
|
854
|
+
export type DeleteCalendarEventErrors = {
|
|
855
|
+
/**
|
|
856
|
+
* Authentication required
|
|
857
|
+
*/
|
|
858
|
+
401: unknown;
|
|
859
|
+
/**
|
|
860
|
+
* Calendar is read-only or needs reauthorization
|
|
861
|
+
*/
|
|
862
|
+
403: CalendarMutationApiError;
|
|
863
|
+
/**
|
|
864
|
+
* Event not found
|
|
865
|
+
*/
|
|
866
|
+
404: CalendarMutationApiError;
|
|
867
|
+
/**
|
|
868
|
+
* The provider rejected the deletion
|
|
869
|
+
*/
|
|
870
|
+
409: CalendarMutationApiError;
|
|
871
|
+
/**
|
|
872
|
+
* Transient provider failure
|
|
873
|
+
*/
|
|
874
|
+
503: CalendarMutationApiError;
|
|
875
|
+
};
|
|
876
|
+
export type DeleteCalendarEventError = DeleteCalendarEventErrors[keyof DeleteCalendarEventErrors];
|
|
877
|
+
export type DeleteCalendarEventResponses = {
|
|
878
|
+
/**
|
|
879
|
+
* The event was deleted
|
|
880
|
+
*/
|
|
881
|
+
204: void;
|
|
882
|
+
};
|
|
883
|
+
export type DeleteCalendarEventResponse = DeleteCalendarEventResponses[keyof DeleteCalendarEventResponses];
|
|
884
|
+
export type UpdateCalendarEventData = {
|
|
885
|
+
body: UpdateCalendarEventRequest;
|
|
886
|
+
path: {
|
|
887
|
+
/**
|
|
888
|
+
* Calendar event entity id
|
|
889
|
+
*/
|
|
890
|
+
event_id: string;
|
|
891
|
+
};
|
|
892
|
+
query?: never;
|
|
893
|
+
url: '/events/{event_id}';
|
|
894
|
+
};
|
|
895
|
+
export type UpdateCalendarEventErrors = {
|
|
896
|
+
/**
|
|
897
|
+
* Invalid event fields
|
|
898
|
+
*/
|
|
899
|
+
400: CalendarMutationApiError;
|
|
900
|
+
/**
|
|
901
|
+
* Authentication required
|
|
902
|
+
*/
|
|
903
|
+
401: unknown;
|
|
904
|
+
/**
|
|
905
|
+
* Calendar is read-only or needs reauthorization
|
|
906
|
+
*/
|
|
907
|
+
403: CalendarMutationApiError;
|
|
908
|
+
/**
|
|
909
|
+
* Event or targeted occurrence not found
|
|
910
|
+
*/
|
|
911
|
+
404: CalendarMutationApiError;
|
|
912
|
+
/**
|
|
913
|
+
* The provider rejected the update
|
|
914
|
+
*/
|
|
915
|
+
409: CalendarMutationApiError;
|
|
916
|
+
/**
|
|
917
|
+
* Transient provider failure
|
|
918
|
+
*/
|
|
919
|
+
503: CalendarMutationApiError;
|
|
920
|
+
};
|
|
921
|
+
export type UpdateCalendarEventError = UpdateCalendarEventErrors[keyof UpdateCalendarEventErrors];
|
|
922
|
+
export type UpdateCalendarEventResponses = {
|
|
923
|
+
/**
|
|
924
|
+
* The updated calendar event
|
|
925
|
+
*/
|
|
926
|
+
200: CalendarEvent;
|
|
927
|
+
};
|
|
928
|
+
export type UpdateCalendarEventResponse = UpdateCalendarEventResponses[keyof UpdateCalendarEventResponses];
|
|
929
|
+
export type CalendarEventProviderUrlData = {
|
|
930
|
+
body?: never;
|
|
931
|
+
path: {
|
|
932
|
+
event_id: string;
|
|
933
|
+
};
|
|
934
|
+
query?: {
|
|
935
|
+
/**
|
|
936
|
+
* Exact calendar copy; defaults to the canonical copy.
|
|
937
|
+
*/
|
|
938
|
+
calendarId?: string | null;
|
|
939
|
+
/**
|
|
940
|
+
* Original-start key of one occurrence; omitted for the entire series.
|
|
941
|
+
*/
|
|
942
|
+
recurrenceId?: string | null;
|
|
943
|
+
};
|
|
944
|
+
url: '/events/{event_id}/provider-url';
|
|
945
|
+
};
|
|
946
|
+
export type CalendarEventProviderUrlErrors = {
|
|
947
|
+
404: CalendarMutationApiError;
|
|
948
|
+
};
|
|
949
|
+
export type CalendarEventProviderUrlError = CalendarEventProviderUrlErrors[keyof CalendarEventProviderUrlErrors];
|
|
950
|
+
export type CalendarEventProviderUrlResponses = {
|
|
951
|
+
200: CalendarEventProviderUrl;
|
|
952
|
+
};
|
|
953
|
+
export type CalendarEventProviderUrlResponse = CalendarEventProviderUrlResponses[keyof CalendarEventProviderUrlResponses];
|
|
954
|
+
export type PrepareCalendarReplacementData = {
|
|
955
|
+
body: PrepareCalendarReplacementRequest;
|
|
956
|
+
path: {
|
|
957
|
+
event_id: string;
|
|
958
|
+
};
|
|
959
|
+
query?: never;
|
|
960
|
+
url: '/events/{event_id}/replacement';
|
|
961
|
+
};
|
|
962
|
+
export type PrepareCalendarReplacementErrors = {
|
|
963
|
+
409: CalendarMutationApiError;
|
|
964
|
+
};
|
|
965
|
+
export type PrepareCalendarReplacementError = PrepareCalendarReplacementErrors[keyof PrepareCalendarReplacementErrors];
|
|
966
|
+
export type PrepareCalendarReplacementResponses = {
|
|
967
|
+
200: CalendarReplacementView;
|
|
968
|
+
};
|
|
969
|
+
export type PrepareCalendarReplacementResponse = PrepareCalendarReplacementResponses[keyof PrepareCalendarReplacementResponses];
|
|
970
|
+
export type RsvpCalendarEventData = {
|
|
971
|
+
body: RsvpCalendarEventRequest;
|
|
972
|
+
path: {
|
|
973
|
+
/**
|
|
974
|
+
* Calendar event entity id
|
|
975
|
+
*/
|
|
976
|
+
event_id: string;
|
|
977
|
+
};
|
|
978
|
+
query?: never;
|
|
979
|
+
url: '/events/{event_id}/rsvp';
|
|
980
|
+
};
|
|
981
|
+
export type RsvpCalendarEventErrors = {
|
|
982
|
+
/**
|
|
983
|
+
* Authentication required
|
|
984
|
+
*/
|
|
985
|
+
401: unknown;
|
|
986
|
+
/**
|
|
987
|
+
* Calendar is read-only or needs reauthorization
|
|
988
|
+
*/
|
|
989
|
+
403: CalendarMutationApiError;
|
|
990
|
+
/**
|
|
991
|
+
* Event not found
|
|
992
|
+
*/
|
|
993
|
+
404: CalendarMutationApiError;
|
|
994
|
+
/**
|
|
995
|
+
* The connected account is not an attendee
|
|
996
|
+
*/
|
|
997
|
+
409: CalendarMutationApiError;
|
|
998
|
+
/**
|
|
999
|
+
* Transient provider failure
|
|
1000
|
+
*/
|
|
1001
|
+
503: CalendarMutationApiError;
|
|
1002
|
+
};
|
|
1003
|
+
export type RsvpCalendarEventError = RsvpCalendarEventErrors[keyof RsvpCalendarEventErrors];
|
|
1004
|
+
export type RsvpCalendarEventResponses = {
|
|
1005
|
+
/**
|
|
1006
|
+
* The updated calendar event
|
|
1007
|
+
*/
|
|
1008
|
+
200: CalendarEvent;
|
|
1009
|
+
};
|
|
1010
|
+
export type RsvpCalendarEventResponse = RsvpCalendarEventResponses[keyof RsvpCalendarEventResponses];
|
|
1011
|
+
export type HealthHandlerData = {
|
|
1012
|
+
body?: never;
|
|
1013
|
+
path?: never;
|
|
1014
|
+
query?: never;
|
|
1015
|
+
url: '/health';
|
|
1016
|
+
};
|
|
1017
|
+
export type HealthHandlerResponses = {
|
|
1018
|
+
/**
|
|
1019
|
+
* health
|
|
1020
|
+
*/
|
|
1021
|
+
200: string;
|
|
1022
|
+
};
|
|
1023
|
+
export type HealthHandlerResponse = HealthHandlerResponses[keyof HealthHandlerResponses];
|
|
1024
|
+
export type DiscardCalendarReplacementData = {
|
|
1025
|
+
body?: never;
|
|
1026
|
+
path: {
|
|
1027
|
+
operation_id: string;
|
|
1028
|
+
};
|
|
1029
|
+
query?: never;
|
|
1030
|
+
url: '/replacements/{operation_id}';
|
|
1031
|
+
};
|
|
1032
|
+
export type DiscardCalendarReplacementErrors = {
|
|
1033
|
+
409: CalendarMutationApiError;
|
|
1034
|
+
};
|
|
1035
|
+
export type DiscardCalendarReplacementError = DiscardCalendarReplacementErrors[keyof DiscardCalendarReplacementErrors];
|
|
1036
|
+
export type DiscardCalendarReplacementResponses = {
|
|
1037
|
+
204: void;
|
|
1038
|
+
};
|
|
1039
|
+
export type DiscardCalendarReplacementResponse = DiscardCalendarReplacementResponses[keyof DiscardCalendarReplacementResponses];
|
|
1040
|
+
export type CalendarReplacementStatusData = {
|
|
1041
|
+
body?: never;
|
|
1042
|
+
path: {
|
|
1043
|
+
operation_id: string;
|
|
1044
|
+
};
|
|
1045
|
+
query?: never;
|
|
1046
|
+
url: '/replacements/{operation_id}';
|
|
1047
|
+
};
|
|
1048
|
+
export type CalendarReplacementStatusErrors = {
|
|
1049
|
+
404: CalendarMutationApiError;
|
|
1050
|
+
};
|
|
1051
|
+
export type CalendarReplacementStatusError = CalendarReplacementStatusErrors[keyof CalendarReplacementStatusErrors];
|
|
1052
|
+
export type CalendarReplacementStatusResponses = {
|
|
1053
|
+
200: CalendarReplacementView;
|
|
1054
|
+
};
|
|
1055
|
+
export type CalendarReplacementStatusResponse = CalendarReplacementStatusResponses[keyof CalendarReplacementStatusResponses];
|
|
1056
|
+
export type ConfirmCalendarReplacementData = {
|
|
1057
|
+
body?: never;
|
|
1058
|
+
path: {
|
|
1059
|
+
operation_id: string;
|
|
1060
|
+
};
|
|
1061
|
+
query?: never;
|
|
1062
|
+
url: '/replacements/{operation_id}/confirm';
|
|
1063
|
+
};
|
|
1064
|
+
export type ConfirmCalendarReplacementErrors = {
|
|
1065
|
+
409: CalendarMutationApiError;
|
|
1066
|
+
};
|
|
1067
|
+
export type ConfirmCalendarReplacementError = ConfirmCalendarReplacementErrors[keyof ConfirmCalendarReplacementErrors];
|
|
1068
|
+
export type ConfirmCalendarReplacementResponses = {
|
|
1069
|
+
200: CalendarReplacementView;
|
|
1070
|
+
};
|
|
1071
|
+
export type ConfirmCalendarReplacementResponse = ConfirmCalendarReplacementResponses[keyof ConfirmCalendarReplacementResponses];
|
|
1072
|
+
export type GetTeamSharingData = {
|
|
1073
|
+
body?: never;
|
|
1074
|
+
path?: never;
|
|
1075
|
+
query?: never;
|
|
1076
|
+
url: '/team-sharing';
|
|
1077
|
+
};
|
|
1078
|
+
export type GetTeamSharingResponses = {
|
|
1079
|
+
200: TeamCalendarSharingBody;
|
|
1080
|
+
};
|
|
1081
|
+
export type GetTeamSharingResponse = GetTeamSharingResponses[keyof GetTeamSharingResponses];
|
|
1082
|
+
export type SetTeamSharingData = {
|
|
1083
|
+
body: TeamCalendarSharingBody;
|
|
1084
|
+
path?: never;
|
|
1085
|
+
query?: never;
|
|
1086
|
+
url: '/team-sharing';
|
|
1087
|
+
};
|
|
1088
|
+
export type SetTeamSharingResponses = {
|
|
1089
|
+
200: TeamCalendarSharingBody;
|
|
1090
|
+
};
|
|
1091
|
+
export type SetTeamSharingResponse = SetTeamSharingResponses[keyof SetTeamSharingResponses];
|