/
v3.ts
5253 lines (5064 loc) · 193 KB
/
v3.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
// Copyright 2020 Google LLC
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
/* eslint-disable @typescript-eslint/no-explicit-any */
/* eslint-disable @typescript-eslint/no-unused-vars */
/* eslint-disable @typescript-eslint/no-empty-interface */
/* eslint-disable @typescript-eslint/no-namespace */
/* eslint-disable no-irregular-whitespace */
import {
OAuth2Client,
JWT,
Compute,
UserRefreshClient,
BaseExternalAccountClient,
GaxiosPromise,
GoogleConfigurable,
createAPIRequest,
MethodOptions,
StreamMethodOptions,
GlobalOptions,
GoogleAuth,
BodyResponseCallback,
APIRequestContext,
} from 'googleapis-common';
import {Readable} from 'stream';
export namespace calendar_v3 {
export interface Options extends GlobalOptions {
version: 'v3';
}
interface StandardParameters {
/**
* Auth client or API Key for the request
*/
auth?:
| string
| OAuth2Client
| JWT
| Compute
| UserRefreshClient
| BaseExternalAccountClient
| GoogleAuth;
/**
* Data format for the response.
*/
alt?: string;
/**
* Selector specifying which fields to include in a partial response.
*/
fields?: string;
/**
* API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
*/
key?: string;
/**
* OAuth 2.0 token for the current user.
*/
oauth_token?: string;
/**
* Returns response with indentations and line breaks.
*/
prettyPrint?: boolean;
/**
* An opaque string that represents a user for quota purposes. Must not exceed 40 characters.
*/
quotaUser?: string;
/**
* Deprecated. Please use quotaUser instead.
*/
userIp?: string;
}
/**
* Calendar API
*
* Manipulates events and other calendar data.
*
* @example
* ```js
* const {google} = require('googleapis');
* const calendar = google.calendar('v3');
* ```
*/
export class Calendar {
context: APIRequestContext;
acl: Resource$Acl;
calendarList: Resource$Calendarlist;
calendars: Resource$Calendars;
channels: Resource$Channels;
colors: Resource$Colors;
events: Resource$Events;
freebusy: Resource$Freebusy;
settings: Resource$Settings;
constructor(options: GlobalOptions, google?: GoogleConfigurable) {
this.context = {
_options: options || {},
google,
};
this.acl = new Resource$Acl(this.context);
this.calendarList = new Resource$Calendarlist(this.context);
this.calendars = new Resource$Calendars(this.context);
this.channels = new Resource$Channels(this.context);
this.colors = new Resource$Colors(this.context);
this.events = new Resource$Events(this.context);
this.freebusy = new Resource$Freebusy(this.context);
this.settings = new Resource$Settings(this.context);
}
}
export interface Schema$Acl {
/**
* ETag of the collection.
*/
etag?: string | null;
/**
* List of rules on the access control list.
*/
items?: Schema$AclRule[];
/**
* Type of the collection ("calendar#acl").
*/
kind?: string | null;
/**
* Token used to access the next page of this result. Omitted if no further results are available, in which case nextSyncToken is provided.
*/
nextPageToken?: string | null;
/**
* Token used at a later point in time to retrieve only the entries that have changed since this result was returned. Omitted if further results are available, in which case nextPageToken is provided.
*/
nextSyncToken?: string | null;
}
export interface Schema$AclRule {
/**
* ETag of the resource.
*/
etag?: string | null;
/**
* Identifier of the Access Control List (ACL) rule. See Sharing calendars.
*/
id?: string | null;
/**
* Type of the resource ("calendar#aclRule").
*/
kind?: string | null;
/**
* The role assigned to the scope. Possible values are:
* - "none" - Provides no access.
* - "freeBusyReader" - Provides read access to free/busy information.
* - "reader" - Provides read access to the calendar. Private events will appear to users with reader access, but event details will be hidden.
* - "writer" - Provides read and write access to the calendar. Private events will appear to users with writer access, and event details will be visible.
* - "owner" - Provides ownership of the calendar. This role has all of the permissions of the writer role with the additional ability to see and manipulate ACLs.
*/
role?: string | null;
/**
* The extent to which calendar access is granted by this ACL rule.
*/
scope?: {type?: string; value?: string} | null;
}
export interface Schema$Calendar {
/**
* Conferencing properties for this calendar, for example what types of conferences are allowed.
*/
conferenceProperties?: Schema$ConferenceProperties;
/**
* Description of the calendar. Optional.
*/
description?: string | null;
/**
* ETag of the resource.
*/
etag?: string | null;
/**
* Identifier of the calendar. To retrieve IDs call the calendarList.list() method.
*/
id?: string | null;
/**
* Type of the resource ("calendar#calendar").
*/
kind?: string | null;
/**
* Geographic location of the calendar as free-form text. Optional.
*/
location?: string | null;
/**
* Title of the calendar.
*/
summary?: string | null;
/**
* The time zone of the calendar. (Formatted as an IANA Time Zone Database name, e.g. "Europe/Zurich".) Optional.
*/
timeZone?: string | null;
}
export interface Schema$CalendarList {
/**
* ETag of the collection.
*/
etag?: string | null;
/**
* Calendars that are present on the user's calendar list.
*/
items?: Schema$CalendarListEntry[];
/**
* Type of the collection ("calendar#calendarList").
*/
kind?: string | null;
/**
* Token used to access the next page of this result. Omitted if no further results are available, in which case nextSyncToken is provided.
*/
nextPageToken?: string | null;
/**
* Token used at a later point in time to retrieve only the entries that have changed since this result was returned. Omitted if further results are available, in which case nextPageToken is provided.
*/
nextSyncToken?: string | null;
}
export interface Schema$CalendarListEntry {
/**
* The effective access role that the authenticated user has on the calendar. Read-only. Possible values are:
* - "freeBusyReader" - Provides read access to free/busy information.
* - "reader" - Provides read access to the calendar. Private events will appear to users with reader access, but event details will be hidden.
* - "writer" - Provides read and write access to the calendar. Private events will appear to users with writer access, and event details will be visible.
* - "owner" - Provides ownership of the calendar. This role has all of the permissions of the writer role with the additional ability to see and manipulate ACLs.
*/
accessRole?: string | null;
/**
* The main color of the calendar in the hexadecimal format "#0088aa". This property supersedes the index-based colorId property. To set or change this property, you need to specify colorRgbFormat=true in the parameters of the insert, update and patch methods. Optional.
*/
backgroundColor?: string | null;
/**
* The color of the calendar. This is an ID referring to an entry in the calendar section of the colors definition (see the colors endpoint). This property is superseded by the backgroundColor and foregroundColor properties and can be ignored when using these properties. Optional.
*/
colorId?: string | null;
/**
* Conferencing properties for this calendar, for example what types of conferences are allowed.
*/
conferenceProperties?: Schema$ConferenceProperties;
/**
* The default reminders that the authenticated user has for this calendar.
*/
defaultReminders?: Schema$EventReminder[];
/**
* Whether this calendar list entry has been deleted from the calendar list. Read-only. Optional. The default is False.
*/
deleted?: boolean | null;
/**
* Description of the calendar. Optional. Read-only.
*/
description?: string | null;
/**
* ETag of the resource.
*/
etag?: string | null;
/**
* The foreground color of the calendar in the hexadecimal format "#ffffff". This property supersedes the index-based colorId property. To set or change this property, you need to specify colorRgbFormat=true in the parameters of the insert, update and patch methods. Optional.
*/
foregroundColor?: string | null;
/**
* Whether the calendar has been hidden from the list. Optional. The attribute is only returned when the calendar is hidden, in which case the value is true.
*/
hidden?: boolean | null;
/**
* Identifier of the calendar.
*/
id?: string | null;
/**
* Type of the resource ("calendar#calendarListEntry").
*/
kind?: string | null;
/**
* Geographic location of the calendar as free-form text. Optional. Read-only.
*/
location?: string | null;
/**
* The notifications that the authenticated user is receiving for this calendar.
*/
notificationSettings?: {
notifications?: Schema$CalendarNotification[];
} | null;
/**
* Whether the calendar is the primary calendar of the authenticated user. Read-only. Optional. The default is False.
*/
primary?: boolean | null;
/**
* Whether the calendar content shows up in the calendar UI. Optional. The default is False.
*/
selected?: boolean | null;
/**
* Title of the calendar. Read-only.
*/
summary?: string | null;
/**
* The summary that the authenticated user has set for this calendar. Optional.
*/
summaryOverride?: string | null;
/**
* The time zone of the calendar. Optional. Read-only.
*/
timeZone?: string | null;
}
export interface Schema$CalendarNotification {
/**
* The method used to deliver the notification. The possible value is:
* - "email" - Notifications are sent via email.
* Required when adding a notification.
*/
method?: string | null;
/**
* The type of notification. Possible values are:
* - "eventCreation" - Notification sent when a new event is put on the calendar.
* - "eventChange" - Notification sent when an event is changed.
* - "eventCancellation" - Notification sent when an event is cancelled.
* - "eventResponse" - Notification sent when an attendee responds to the event invitation.
* - "agenda" - An agenda with the events of the day (sent out in the morning).
* Required when adding a notification.
*/
type?: string | null;
}
export interface Schema$Channel {
/**
* The address where notifications are delivered for this channel.
*/
address?: string | null;
/**
* Date and time of notification channel expiration, expressed as a Unix timestamp, in milliseconds. Optional.
*/
expiration?: string | null;
/**
* A UUID or similar unique string that identifies this channel.
*/
id?: string | null;
/**
* Identifies this as a notification channel used to watch for changes to a resource, which is "api#channel".
*/
kind?: string | null;
/**
* Additional parameters controlling delivery channel behavior. Optional.
*/
params?: {[key: string]: string} | null;
/**
* A Boolean value to indicate whether payload is wanted. Optional.
*/
payload?: boolean | null;
/**
* An opaque ID that identifies the resource being watched on this channel. Stable across different API versions.
*/
resourceId?: string | null;
/**
* A version-specific identifier for the watched resource.
*/
resourceUri?: string | null;
/**
* An arbitrary string delivered to the target address with each notification delivered over this channel. Optional.
*/
token?: string | null;
/**
* The type of delivery mechanism used for this channel. Valid values are "web_hook" (or "webhook"). Both values refer to a channel where Http requests are used to deliver messages.
*/
type?: string | null;
}
export interface Schema$ColorDefinition {
/**
* The background color associated with this color definition.
*/
background?: string | null;
/**
* The foreground color that can be used to write on top of a background with 'background' color.
*/
foreground?: string | null;
}
export interface Schema$Colors {
/**
* A global palette of calendar colors, mapping from the color ID to its definition. A calendarListEntry resource refers to one of these color IDs in its colorId field. Read-only.
*/
calendar?: {[key: string]: Schema$ColorDefinition} | null;
/**
* A global palette of event colors, mapping from the color ID to its definition. An event resource may refer to one of these color IDs in its colorId field. Read-only.
*/
event?: {[key: string]: Schema$ColorDefinition} | null;
/**
* Type of the resource ("calendar#colors").
*/
kind?: string | null;
/**
* Last modification time of the color palette (as a RFC3339 timestamp). Read-only.
*/
updated?: string | null;
}
export interface Schema$ConferenceData {
/**
* The ID of the conference.
* Can be used by developers to keep track of conferences, should not be displayed to users.
* The ID value is formed differently for each conference solution type:
* - eventHangout: ID is not set. (This conference type is deprecated.)
* - eventNamedHangout: ID is the name of the Hangout. (This conference type is deprecated.)
* - hangoutsMeet: ID is the 10-letter meeting code, for example aaa-bbbb-ccc.
* - addOn: ID is defined by the third-party provider. Optional.
*/
conferenceId?: string | null;
/**
* The conference solution, such as Google Meet.
* Unset for a conference with a failed create request.
* Either conferenceSolution and at least one entryPoint, or createRequest is required.
*/
conferenceSolution?: Schema$ConferenceSolution;
/**
* A request to generate a new conference and attach it to the event. The data is generated asynchronously. To see whether the data is present check the status field.
* Either conferenceSolution and at least one entryPoint, or createRequest is required.
*/
createRequest?: Schema$CreateConferenceRequest;
/**
* Information about individual conference entry points, such as URLs or phone numbers.
* All of them must belong to the same conference.
* Either conferenceSolution and at least one entryPoint, or createRequest is required.
*/
entryPoints?: Schema$EntryPoint[];
/**
* Additional notes (such as instructions from the domain administrator, legal notices) to display to the user. Can contain HTML. The maximum length is 2048 characters. Optional.
*/
notes?: string | null;
/**
* Additional properties related to a conference. An example would be a solution-specific setting for enabling video streaming.
*/
parameters?: Schema$ConferenceParameters;
/**
* The signature of the conference data.
* Generated on server side.
* Unset for a conference with a failed create request.
* Optional for a conference with a pending create request.
*/
signature?: string | null;
}
export interface Schema$ConferenceParameters {
/**
* Additional add-on specific data.
*/
addOnParameters?: Schema$ConferenceParametersAddOnParameters;
}
export interface Schema$ConferenceParametersAddOnParameters {
parameters?: {[key: string]: string} | null;
}
export interface Schema$ConferenceProperties {
/**
* The types of conference solutions that are supported for this calendar.
* The possible values are:
* - "eventHangout"
* - "eventNamedHangout"
* - "hangoutsMeet" Optional.
*/
allowedConferenceSolutionTypes?: string[] | null;
}
export interface Schema$ConferenceRequestStatus {
/**
* The current status of the conference create request. Read-only.
* The possible values are:
* - "pending": the conference create request is still being processed.
* - "success": the conference create request succeeded, the entry points are populated.
* - "failure": the conference create request failed, there are no entry points.
*/
statusCode?: string | null;
}
export interface Schema$ConferenceSolution {
/**
* The user-visible icon for this solution.
*/
iconUri?: string | null;
/**
* The key which can uniquely identify the conference solution for this event.
*/
key?: Schema$ConferenceSolutionKey;
/**
* The user-visible name of this solution. Not localized.
*/
name?: string | null;
}
export interface Schema$ConferenceSolutionKey {
/**
* The conference solution type.
* If a client encounters an unfamiliar or empty type, it should still be able to display the entry points. However, it should disallow modifications.
* The possible values are:
* - "eventHangout" for Hangouts for consumers (deprecated; existing events may show this conference solution type but new conferences cannot be created)
* - "eventNamedHangout" for classic Hangouts for Google Workspace users (deprecated; existing events may show this conference solution type but new conferences cannot be created)
* - "hangoutsMeet" for Google Meet (http://meet.google.com)
* - "addOn" for 3P conference providers
*/
type?: string | null;
}
export interface Schema$CreateConferenceRequest {
/**
* The conference solution, such as Hangouts or Google Meet.
*/
conferenceSolutionKey?: Schema$ConferenceSolutionKey;
/**
* The client-generated unique ID for this request.
* Clients should regenerate this ID for every new request. If an ID provided is the same as for the previous request, the request is ignored.
*/
requestId?: string | null;
/**
* The status of the conference create request.
*/
status?: Schema$ConferenceRequestStatus;
}
export interface Schema$EntryPoint {
/**
* The access code to access the conference. The maximum length is 128 characters.
* When creating new conference data, populate only the subset of {meetingCode, accessCode, passcode, password, pin\} fields that match the terminology that the conference provider uses. Only the populated fields should be displayed.
* Optional.
*/
accessCode?: string | null;
/**
* Features of the entry point, such as being toll or toll-free. One entry point can have multiple features. However, toll and toll-free cannot be both set on the same entry point.
*/
entryPointFeatures?: string[] | null;
/**
* The type of the conference entry point.
* Possible values are:
* - "video" - joining a conference over HTTP. A conference can have zero or one video entry point.
* - "phone" - joining a conference by dialing a phone number. A conference can have zero or more phone entry points.
* - "sip" - joining a conference over SIP. A conference can have zero or one sip entry point.
* - "more" - further conference joining instructions, for example additional phone numbers. A conference can have zero or one more entry point. A conference with only a more entry point is not a valid conference.
*/
entryPointType?: string | null;
/**
* The label for the URI. Visible to end users. Not localized. The maximum length is 512 characters.
* Examples:
* - for video: meet.google.com/aaa-bbbb-ccc
* - for phone: +1 123 268 2601
* - for sip: 12345678@altostrat.com
* - for more: should not be filled
* Optional.
*/
label?: string | null;
/**
* The meeting code to access the conference. The maximum length is 128 characters.
* When creating new conference data, populate only the subset of {meetingCode, accessCode, passcode, password, pin\} fields that match the terminology that the conference provider uses. Only the populated fields should be displayed.
* Optional.
*/
meetingCode?: string | null;
/**
* The passcode to access the conference. The maximum length is 128 characters.
* When creating new conference data, populate only the subset of {meetingCode, accessCode, passcode, password, pin\} fields that match the terminology that the conference provider uses. Only the populated fields should be displayed.
*/
passcode?: string | null;
/**
* The password to access the conference. The maximum length is 128 characters.
* When creating new conference data, populate only the subset of {meetingCode, accessCode, passcode, password, pin\} fields that match the terminology that the conference provider uses. Only the populated fields should be displayed.
* Optional.
*/
password?: string | null;
/**
* The PIN to access the conference. The maximum length is 128 characters.
* When creating new conference data, populate only the subset of {meetingCode, accessCode, passcode, password, pin\} fields that match the terminology that the conference provider uses. Only the populated fields should be displayed.
* Optional.
*/
pin?: string | null;
/**
* The CLDR/ISO 3166 region code for the country associated with this phone access. Example: "SE" for Sweden.
* Calendar backend will populate this field only for EntryPointType.PHONE.
*/
regionCode?: string | null;
/**
* The URI of the entry point. The maximum length is 1300 characters.
* Format:
* - for video, http: or https: schema is required.
* - for phone, tel: schema is required. The URI should include the entire dial sequence (e.g., tel:+12345678900,,,123456789;1234).
* - for sip, sip: schema is required, e.g., sip:12345678@myprovider.com.
* - for more, http: or https: schema is required.
*/
uri?: string | null;
}
export interface Schema$Error {
/**
* Domain, or broad category, of the error.
*/
domain?: string | null;
/**
* Specific reason for the error. Some of the possible values are:
* - "groupTooBig" - The group of users requested is too large for a single query.
* - "tooManyCalendarsRequested" - The number of calendars requested is too large for a single query.
* - "notFound" - The requested resource was not found.
* - "internalError" - The API service has encountered an internal error. Additional error types may be added in the future, so clients should gracefully handle additional error statuses not included in this list.
*/
reason?: string | null;
}
export interface Schema$Event {
/**
* Whether anyone can invite themselves to the event (deprecated). Optional. The default is False.
*/
anyoneCanAddSelf?: boolean | null;
/**
* File attachments for the event.
* In order to modify attachments the supportsAttachments request parameter should be set to true.
* There can be at most 25 attachments per event,
*/
attachments?: Schema$EventAttachment[];
/**
* The attendees of the event. See the Events with attendees guide for more information on scheduling events with other calendar users. Service accounts need to use domain-wide delegation of authority to populate the attendee list.
*/
attendees?: Schema$EventAttendee[];
/**
* Whether attendees may have been omitted from the event's representation. When retrieving an event, this may be due to a restriction specified by the maxAttendee query parameter. When updating an event, this can be used to only update the participant's response. Optional. The default is False.
*/
attendeesOmitted?: boolean | null;
/**
* The color of the event. This is an ID referring to an entry in the event section of the colors definition (see the colors endpoint). Optional.
*/
colorId?: string | null;
/**
* The conference-related information, such as details of a Google Meet conference. To create new conference details use the createRequest field. To persist your changes, remember to set the conferenceDataVersion request parameter to 1 for all event modification requests.
*/
conferenceData?: Schema$ConferenceData;
/**
* Creation time of the event (as a RFC3339 timestamp). Read-only.
*/
created?: string | null;
/**
* The creator of the event. Read-only.
*/
creator?: {
displayName?: string;
email?: string;
id?: string;
self?: boolean;
} | null;
/**
* Description of the event. Can contain HTML. Optional.
*/
description?: string | null;
/**
* The (exclusive) end time of the event. For a recurring event, this is the end time of the first instance.
*/
end?: Schema$EventDateTime;
/**
* Whether the end time is actually unspecified. An end time is still provided for compatibility reasons, even if this attribute is set to True. The default is False.
*/
endTimeUnspecified?: boolean | null;
/**
* ETag of the resource.
*/
etag?: string | null;
/**
* Specific type of the event. This cannot be modified after the event is created. Possible values are:
* - "default" - A regular event or not further specified.
* - "outOfOffice" - An out-of-office event.
* - "focusTime" - A focus-time event.
* - "workingLocation" - A working location event.
*/
eventType?: string | null;
/**
* Extended properties of the event.
*/
extendedProperties?: {
private?: {[key: string]: string};
shared?: {[key: string]: string};
} | null;
/**
* Focus Time event data. Used if eventType is focusTime.
*/
focusTimeProperties?: Schema$EventFocusTimeProperties;
/**
* A gadget that extends this event. Gadgets are deprecated; this structure is instead only used for returning birthday calendar metadata.
*/
gadget?: {
display?: string;
height?: number;
iconLink?: string;
link?: string;
preferences?: {[key: string]: string};
title?: string;
type?: string;
width?: number;
} | null;
/**
* Whether attendees other than the organizer can invite others to the event. Optional. The default is True.
*/
guestsCanInviteOthers?: boolean | null;
/**
* Whether attendees other than the organizer can modify the event. Optional. The default is False.
*/
guestsCanModify?: boolean | null;
/**
* Whether attendees other than the organizer can see who the event's attendees are. Optional. The default is True.
*/
guestsCanSeeOtherGuests?: boolean | null;
/**
* An absolute link to the Google Hangout associated with this event. Read-only.
*/
hangoutLink?: string | null;
/**
* An absolute link to this event in the Google Calendar Web UI. Read-only.
*/
htmlLink?: string | null;
/**
* Event unique identifier as defined in RFC5545. It is used to uniquely identify events accross calendaring systems and must be supplied when importing events via the import method.
* Note that the iCalUID and the id are not identical and only one of them should be supplied at event creation time. One difference in their semantics is that in recurring events, all occurrences of one event have different ids while they all share the same iCalUIDs. To retrieve an event using its iCalUID, call the events.list method using the iCalUID parameter. To retrieve an event using its id, call the events.get method.
*/
iCalUID?: string | null;
/**
* Opaque identifier of the event. When creating new single or recurring events, you can specify their IDs. Provided IDs must follow these rules:
* - characters allowed in the ID are those used in base32hex encoding, i.e. lowercase letters a-v and digits 0-9, see section 3.1.2 in RFC2938
* - the length of the ID must be between 5 and 1024 characters
* - the ID must be unique per calendar Due to the globally distributed nature of the system, we cannot guarantee that ID collisions will be detected at event creation time. To minimize the risk of collisions we recommend using an established UUID algorithm such as one described in RFC4122.
* If you do not specify an ID, it will be automatically generated by the server.
* Note that the icalUID and the id are not identical and only one of them should be supplied at event creation time. One difference in their semantics is that in recurring events, all occurrences of one event have different ids while they all share the same icalUIDs.
*/
id?: string | null;
/**
* Type of the resource ("calendar#event").
*/
kind?: string | null;
/**
* Geographic location of the event as free-form text. Optional.
*/
location?: string | null;
/**
* Whether this is a locked event copy where no changes can be made to the main event fields "summary", "description", "location", "start", "end" or "recurrence". The default is False. Read-Only.
*/
locked?: boolean | null;
/**
* The organizer of the event. If the organizer is also an attendee, this is indicated with a separate entry in attendees with the organizer field set to True. To change the organizer, use the move operation. Read-only, except when importing an event.
*/
organizer?: {
displayName?: string;
email?: string;
id?: string;
self?: boolean;
} | null;
/**
* For an instance of a recurring event, this is the time at which this event would start according to the recurrence data in the recurring event identified by recurringEventId. It uniquely identifies the instance within the recurring event series even if the instance was moved to a different time. Immutable.
*/
originalStartTime?: Schema$EventDateTime;
/**
* Out of office event data. Used if eventType is outOfOffice.
*/
outOfOfficeProperties?: Schema$EventOutOfOfficeProperties;
/**
* If set to True, Event propagation is disabled. Note that it is not the same thing as Private event properties. Optional. Immutable. The default is False.
*/
privateCopy?: boolean | null;
/**
* List of RRULE, EXRULE, RDATE and EXDATE lines for a recurring event, as specified in RFC5545. Note that DTSTART and DTEND lines are not allowed in this field; event start and end times are specified in the start and end fields. This field is omitted for single events or instances of recurring events.
*/
recurrence?: string[] | null;
/**
* For an instance of a recurring event, this is the id of the recurring event to which this instance belongs. Immutable.
*/
recurringEventId?: string | null;
/**
* Information about the event's reminders for the authenticated user.
*/
reminders?: {
overrides?: Schema$EventReminder[];
useDefault?: boolean;
} | null;
/**
* Sequence number as per iCalendar.
*/
sequence?: number | null;
/**
* Source from which the event was created. For example, a web page, an email message or any document identifiable by an URL with HTTP or HTTPS scheme. Can only be seen or modified by the creator of the event.
*/
source?: {title?: string; url?: string} | null;
/**
* The (inclusive) start time of the event. For a recurring event, this is the start time of the first instance.
*/
start?: Schema$EventDateTime;
/**
* Status of the event. Optional. Possible values are:
* - "confirmed" - The event is confirmed. This is the default status.
* - "tentative" - The event is tentatively confirmed.
* - "cancelled" - The event is cancelled (deleted). The list method returns cancelled events only on incremental sync (when syncToken or updatedMin are specified) or if the showDeleted flag is set to true. The get method always returns them.
* A cancelled status represents two different states depending on the event type:
* - Cancelled exceptions of an uncancelled recurring event indicate that this instance should no longer be presented to the user. Clients should store these events for the lifetime of the parent recurring event.
* Cancelled exceptions are only guaranteed to have values for the id, recurringEventId and originalStartTime fields populated. The other fields might be empty.
* - All other cancelled events represent deleted events. Clients should remove their locally synced copies. Such cancelled events will eventually disappear, so do not rely on them being available indefinitely.
* Deleted events are only guaranteed to have the id field populated. On the organizer's calendar, cancelled events continue to expose event details (summary, location, etc.) so that they can be restored (undeleted). Similarly, the events to which the user was invited and that they manually removed continue to provide details. However, incremental sync requests with showDeleted set to false will not return these details.
* If an event changes its organizer (for example via the move operation) and the original organizer is not on the attendee list, it will leave behind a cancelled event where only the id field is guaranteed to be populated.
*/
status?: string | null;
/**
* Title of the event.
*/
summary?: string | null;
/**
* Whether the event blocks time on the calendar. Optional. Possible values are:
* - "opaque" - Default value. The event does block time on the calendar. This is equivalent to setting Show me as to Busy in the Calendar UI.
* - "transparent" - The event does not block time on the calendar. This is equivalent to setting Show me as to Available in the Calendar UI.
*/
transparency?: string | null;
/**
* Last modification time of the event (as a RFC3339 timestamp). Read-only.
*/
updated?: string | null;
/**
* Visibility of the event. Optional. Possible values are:
* - "default" - Uses the default visibility for events on the calendar. This is the default value.
* - "public" - The event is public and event details are visible to all readers of the calendar.
* - "private" - The event is private and only event attendees may view event details.
* - "confidential" - The event is private. This value is provided for compatibility reasons.
*/
visibility?: string | null;
/**
* Working location event data.
*/
workingLocationProperties?: Schema$EventWorkingLocationProperties;
}
export interface Schema$EventAttachment {
/**
* ID of the attached file. Read-only.
* For Google Drive files, this is the ID of the corresponding Files resource entry in the Drive API.
*/
fileId?: string | null;
/**
* URL link to the attachment.
* For adding Google Drive file attachments use the same format as in alternateLink property of the Files resource in the Drive API.
* Required when adding an attachment.
*/
fileUrl?: string | null;
/**
* URL link to the attachment's icon. This field can only be modified for custom third-party attachments.
*/
iconLink?: string | null;
/**
* Internet media type (MIME type) of the attachment.
*/
mimeType?: string | null;
/**
* Attachment title.
*/
title?: string | null;
}
export interface Schema$EventAttendee {
/**
* Number of additional guests. Optional. The default is 0.
*/
additionalGuests?: number | null;
/**
* The attendee's response comment. Optional.
*/
comment?: string | null;
/**
* The attendee's name, if available. Optional.
*/
displayName?: string | null;
/**
* The attendee's email address, if available. This field must be present when adding an attendee. It must be a valid email address as per RFC5322.
* Required when adding an attendee.
*/
email?: string | null;
/**
* The attendee's Profile ID, if available.
*/
id?: string | null;
/**
* Whether this is an optional attendee. Optional. The default is False.
*/
optional?: boolean | null;
/**
* Whether the attendee is the organizer of the event. Read-only. The default is False.
*/
organizer?: boolean | null;
/**
* Whether the attendee is a resource. Can only be set when the attendee is added to the event for the first time. Subsequent modifications are ignored. Optional. The default is False.
*/
resource?: boolean | null;
/**
* The attendee's response status. Possible values are:
* - "needsAction" - The attendee has not responded to the invitation (recommended for new events).
* - "declined" - The attendee has declined the invitation.
* - "tentative" - The attendee has tentatively accepted the invitation.
* - "accepted" - The attendee has accepted the invitation. Warning: If you add an event using the values declined, tentative, or accepted, attendees with the "Add invitations to my calendar" setting set to "When I respond to invitation in email" won't see an event on their calendar unless they choose to change their invitation response in the event invitation email.
*/
responseStatus?: string | null;
/**
* Whether this entry represents the calendar on which this copy of the event appears. Read-only. The default is False.
*/
self?: boolean | null;
}
export interface Schema$EventDateTime {
/**
* The date, in the format "yyyy-mm-dd", if this is an all-day event.
*/
date?: string | null;
/**
* The time, as a combined date-time value (formatted according to RFC3339). A time zone offset is required unless a time zone is explicitly specified in timeZone.
*/
dateTime?: string | null;
/**
* The time zone in which the time is specified. (Formatted as an IANA Time Zone Database name, e.g. "Europe/Zurich".) For recurring events this field is required and specifies the time zone in which the recurrence is expanded. For single events this field is optional and indicates a custom time zone for the event start/end.
*/
timeZone?: string | null;
}
export interface Schema$EventFocusTimeProperties {
/**
* Whether to decline meeting invitations which overlap Focus Time events. Valid values are declineNone, meaning that no meeting invitations are declined; declineAllConflictingInvitations, meaning that all conflicting meeting invitations that conflict with the event are declined; and declineOnlyNewConflictingInvitations, meaning that only new conflicting meeting invitations which arrive while the Focus Time event is present are to be declined.
*/
autoDeclineMode?: string | null;
/**
* The status to mark the user in Chat and related products. This can be available or doNotDisturb.
*/
chatStatus?: string | null;
/**
* Response message to set if an existing event or new invitation is automatically declined by Calendar.
*/
declineMessage?: string | null;
}
export interface Schema$EventOutOfOfficeProperties {
/**
* Whether to decline meeting invitations which overlap Out of office events. Valid values are declineNone, meaning that no meeting invitations are declined; declineAllConflictingInvitations, meaning that all conflicting meeting invitations that conflict with the event are declined; and declineOnlyNewConflictingInvitations, meaning that only new conflicting meeting invitations which arrive while the Out of office event is present are to be declined.
*/
autoDeclineMode?: string | null;
/**
* Response message to set if an existing event or new invitation is automatically declined by Calendar.
*/
declineMessage?: string | null;
}
export interface Schema$EventReminder {
/**
* The method used by this reminder. Possible values are:
* - "email" - Reminders are sent via email.
* - "popup" - Reminders are sent via a UI popup.
* Required when adding a reminder.
*/
method?: string | null;
/**
* Number of minutes before the start of the event when the reminder should trigger. Valid values are between 0 and 40320 (4 weeks in minutes).
* Required when adding a reminder.
*/
minutes?: number | null;
}
export interface Schema$Events {
/**
* The user's access role for this calendar. Read-only. Possible values are:
* - "none" - The user has no access.
* - "freeBusyReader" - The user has read access to free/busy information.
* - "reader" - The user has read access to the calendar. Private events will appear to users with reader access, but event details will be hidden.
* - "writer" - The user has read and write access to the calendar. Private events will appear to users with writer access, and event details will be visible.
* - "owner" - The user has ownership of the calendar. This role has all of the permissions of the writer role with the additional ability to see and manipulate ACLs.
*/
accessRole?: string | null;
/**
* The default reminders on the calendar for the authenticated user. These reminders apply to all events on this calendar that do not explicitly override them (i.e. do not have reminders.useDefault set to True).
*/
defaultReminders?: Schema$EventReminder[];
/**
* Description of the calendar. Read-only.
*/
description?: string | null;
/**
* ETag of the collection.
*/
etag?: string | null;
/**
* List of events on the calendar.
*/
items?: Schema$Event[];
/**
* Type of the collection ("calendar#events").
*/
kind?: string | null;
/**
* Token used to access the next page of this result. Omitted if no further results are available, in which case nextSyncToken is provided.
*/
nextPageToken?: string | null;
/**
* Token used at a later point in time to retrieve only the entries that have changed since this result was returned. Omitted if further results are available, in which case nextPageToken is provided.
*/
nextSyncToken?: string | null;
/**
* Title of the calendar. Read-only.
*/
summary?: string | null;
/**
* The time zone of the calendar. Read-only.
*/
timeZone?: string | null;
/**
* Last modification time of the calendar (as a RFC3339 timestamp). Read-only.
*/
updated?: string | null;
}
export interface Schema$EventWorkingLocationProperties {
/**
* If present, specifies that the user is working from a custom location.
*/
customLocation?: {label?: string} | null;
/**