@maxim_mazurok/gapi.client.calendar-v3 0.1.20251027 → 0.1.20251028

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/index.d.ts +17 -5
  2. package/package.json +1 -1
  3. package/readme.md +3 -0
package/index.d.ts CHANGED
@@ -9,7 +9,7 @@
9
9
  // This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
10
10
  // In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
11
11
  // Generated from: https://calendar-json.googleapis.com/$discovery/rest?version=v3
12
- // Revision: 20251027
12
+ // Revision: 20251028
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -49,7 +49,8 @@ declare namespace gapi.client {
49
49
  * - "freeBusyReader" - Provides read access to free/busy information.
50
50
  * - "reader" - Provides read access to the calendar. Private events will appear to users with reader access, but event details will be hidden.
51
51
  * - "writer" - Provides read and write access to the calendar. Private events will appear to users with writer access, and event details will be visible. Provides read access to the calendar's ACLs.
52
- * - "owner" - Provides ownership of the calendar. This role has all of the permissions of the writer role with the additional ability to manipulate ACLs.
52
+ * - "owner" - Provides manager access to the calendar. This role has all of the permissions of the writer role with the additional ability to modify access levels of other users.
53
+ * Important: the owner role is different from the calendar's data owner. A calendar has a single data owner, but can have multiple users with owner role.
53
54
  */
54
55
  role?: string;
55
56
  /** The extent to which calendar access is granted by this ACL rule. */
@@ -69,6 +70,8 @@ declare namespace gapi.client {
69
70
  interface Calendar {
70
71
  /** Conferencing properties for this calendar, for example what types of conferences are allowed. */
71
72
  conferenceProperties?: ConferenceProperties;
73
+ /** The email of the owner of the calendar. Set only for secondary calendars. Read-only. */
74
+ dataOwner?: string;
72
75
  /** Description of the calendar. Optional. */
73
76
  description?: string;
74
77
  /** ETag of the resource. */
@@ -102,7 +105,8 @@ declare namespace gapi.client {
102
105
  * - "freeBusyReader" - Provides read access to free/busy information.
103
106
  * - "reader" - Provides read access to the calendar. Private events will appear to users with reader access, but event details will be hidden.
104
107
  * - "writer" - Provides read and write access to the calendar. Private events will appear to users with writer access, and event details will be visible.
105
- * - "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.
108
+ * - "owner" - Provides manager access to the calendar. This role has all of the permissions of the writer role with the additional ability to see and modify access levels of other users.
109
+ * Important: the owner role is different from the calendar's data owner. A calendar has a single data owner, but can have multiple users with owner role.
106
110
  */
107
111
  accessRole?: string;
108
112
  /** 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. */
@@ -111,6 +115,8 @@ declare namespace gapi.client {
111
115
  colorId?: string;
112
116
  /** Conferencing properties for this calendar, for example what types of conferences are allowed. */
113
117
  conferenceProperties?: ConferenceProperties;
118
+ /** The email of the owner of the calendar. Set only for secondary calendars. Read-only. */
119
+ dataOwner?: string;
114
120
  /** The default reminders that the authenticated user has for this calendar. */
115
121
  defaultReminders?: EventReminder[];
116
122
  /** Whether this calendar list entry has been deleted from the calendar list. Read-only. Optional. The default is False. */
@@ -670,7 +676,8 @@ declare namespace gapi.client {
670
676
  * - "freeBusyReader" - The user has read access to free/busy information.
671
677
  * - "reader" - The user has read access to the calendar. Private events will appear to users with reader access, but event details will be hidden.
672
678
  * - "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.
673
- * - "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.
679
+ * - "owner" - The user has manager access to the calendar. This role has all of the permissions of the writer role with the additional ability to see and modify access levels of other users.
680
+ * Important: the owner role is different from the calendar's data owner. A calendar has a single data owner, but can have multiple users with owner role.
674
681
  */
675
682
  accessRole?: string;
676
683
  /** 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). */
@@ -1425,7 +1432,12 @@ declare namespace gapi.client {
1425
1432
  /** Deprecated. Please use quotaUser instead. */
1426
1433
  userIp?: string;
1427
1434
  }): Request<Calendar>;
1428
- /** Creates a secondary calendar. */
1435
+ /**
1436
+ * Creates a secondary calendar.
1437
+ * The authenticated user for the request is made the data owner of the new calendar.
1438
+ *
1439
+ * Note: We recommend to authenticate as the intended data owner of the calendar. You can use domain-wide delegation of authority to allow applications to act on behalf of a specific user. Don't use a service account for authentication. If you use a service account for authentication, the service account is the data owner, which can lead to unexpected behavior. For example, if a service account is the data owner, data ownership cannot be transferred.
1440
+ */
1429
1441
  insert(request: {
1430
1442
  /** Data format for the response. */
1431
1443
  alt?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.calendar-v3",
3
- "version": "0.1.20251027",
3
+ "version": "0.1.20251028",
4
4
  "description": "TypeScript typings for Calendar API v3",
5
5
  "repository": {
6
6
  "type": "git",
package/readme.md CHANGED
@@ -216,6 +216,9 @@ await gapi.client.calendar.calendars.get({calendarId: 'calendarId'});
216
216
 
217
217
  /*
218
218
  Creates a secondary calendar.
219
+ The authenticated user for the request is made the data owner of the new calendar.
220
+
221
+ Note: We recommend to authenticate as the intended data owner of the calendar. You can use domain-wide delegation of authority to allow applications to act on behalf of a specific user. Don't use a service account for authentication. If you use a service account for authentication, the service account is the data owner, which can lead to unexpected behavior. For example, if a service account is the data owner, data ownership cannot be transferred.
219
222
  */
220
223
  await gapi.client.calendar.calendars.insert({});
221
224