@maxim_mazurok/gapi.client.docs-v1 0.4.20260909 → 0.4.20260923

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 (2) hide show
  1. package/index.d.ts +199 -1
  2. package/package.json +1 -1
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://docs.googleapis.com/$discovery/rest?version=v1
12
- // Revision: 20260909
12
+ // Revision: 20260923
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -24,6 +24,22 @@ declare namespace gapi.client {
24
24
  function load(name: 'docs', version: 'v1', callback: () => any): void;
25
25
 
26
26
  namespace docs {
27
+ interface AcceptSuggestionRequest {
28
+ /** The ID of the suggestion. */
29
+ suggestionId?: string;
30
+ }
31
+ interface AddCommentReplyRequest {
32
+ /** The ID of the CommentThread to add the reply to. */
33
+ commentId?: string;
34
+ /** The Post representing the reply. */
35
+ post?: Post;
36
+ /** The ID of the SuggestionThread to add the reply to. */
37
+ suggestionId?: string;
38
+ }
39
+ interface AddCommentReplyResponse {
40
+ /** The newly-inserted reply Post. */
41
+ post?: Post;
42
+ }
27
43
  interface AddDocumentTabRequest {
28
44
  /** The properties of the tab to add. All properties are optional. */
29
45
  tabProperties?: TabProperties;
@@ -59,10 +75,18 @@ declare namespace gapi.client {
59
75
  writeControl?: WriteControl;
60
76
  }
61
77
  interface BatchUpdateDocumentResponse {
78
+ /** Whether comment updates were applied in the batch request. [Developer Preview](https://developers.google.com/workspace/preview). */
79
+ commentUpdateState?:
80
+ | 'COMMENT_UPDATE_STATE_UNSPECIFIED'
81
+ | 'NO_UPDATES_REQUESTED'
82
+ | 'ALL_SAVED'
83
+ | 'ALL_FAILED_UNKNOWN_REASON';
62
84
  /** The ID of the document to which the updates were applied to. */
63
85
  documentId?: string;
64
86
  /** The reply of the updates. This maps 1:1 with the updates, although replies to some requests may be empty. */
65
87
  replies?: Response[];
88
+ /** The suggestions which were affected by each update. This maps 1:1 with the updates. [Developer Preview](https://developers.google.com/workspace/preview). */
89
+ suggestionResponses?: SuggestionResponse[];
66
90
  /** The updated write control after applying the request. */
67
91
  writeControl?: WriteControl;
68
92
  }
@@ -106,6 +130,26 @@ declare namespace gapi.client {
106
130
  /** The text style of this ColumnBreak. Similar to text content, like text runs and footnote references, the text style of a column break can affect content layout as well as the styling of text inserted next to it. */
107
131
  textStyle?: TextStyle;
108
132
  }
133
+ interface CommentAnchor {
134
+ /** The ID of the comment anchor. */
135
+ anchorId?: string;
136
+ /** A collection of Ranges in the document which are tied to this anchor. */
137
+ ranges?: Range[];
138
+ }
139
+ interface CommentThread {
140
+ /** The ID of the CommentAnchor in the document that this thread is tied to. Multiple comment threads may be anchored to the same CommentAnchor. */
141
+ anchorId?: string;
142
+ /** The unique ID of the comment thread. */
143
+ commentId?: string;
144
+ /** The first post in the thread. */
145
+ headPost?: Post;
146
+ /** The quoted text from the document when the comment was created, formatted as plain-text. */
147
+ plainTextQuote?: string;
148
+ /** Replies to the head post. */
149
+ replies?: Post[];
150
+ /** Whether the thread is open or resolved. */
151
+ status?: 'STATUS_UNSPECIFIED' | 'OPEN' | 'RESOLVED';
152
+ }
109
153
  interface CreateFooterRequest {
110
154
  /** The location of the SectionBreak immediately preceding the section whose SectionStyle this footer should belong to. If this is unset or refers to the first section break in the document, the footer applies to the document style. */
111
155
  sectionBreakLocation?: Location;
@@ -246,6 +290,18 @@ declare namespace gapi.client {
246
290
  /** Indicates if there was a suggested change to time_zone_id. */
247
291
  timeZoneIdSuggested?: boolean;
248
292
  }
293
+ interface DeleteCommentReplyRequest {
294
+ /** The ID of the CommentThread which the post belongs to. */
295
+ commentId?: string;
296
+ /** The ID of the reply Post being deleted. */
297
+ postId?: string;
298
+ /** The ID of the SuggestionThread which the post belongs to. */
299
+ suggestionId?: string;
300
+ }
301
+ interface DeleteCommentRequest {
302
+ /** The ID of the CommentThread that is being deleted. */
303
+ commentId?: string;
304
+ }
249
305
  interface DeleteContentRangeRequest {
250
306
  /** The range of content to delete. Deleting text that crosses a paragraph boundary may result in changes to paragraph styles, lists, positioned objects and bookmarks as the two paragraphs are merged. Attempting to delete certain ranges can result in an invalid document structure in which case a 400 bad request error is returned. Some examples of invalid delete requests include: * Deleting one code unit of a surrogate pair. * Deleting the last newline character of a Body, Header, Footer, Footnote, TableCell or TableOfContents. * Deleting the start or end of a Table, TableOfContents or Equation without deleting the entire element. * Deleting the newline character before a Table, TableOfContents or SectionBreak without deleting the element. * Deleting individual rows or cells of a table. Deleting the content within a table cell is allowed. */
251
307
  range?: Range;
@@ -280,6 +336,10 @@ declare namespace gapi.client {
280
336
  /** The tab that the positioned object to delete is in. When omitted, the request is applied to the first tab. In a document containing a single tab: - If provided, must match the singular tab's ID. - If omitted, the request applies to the singular tab. In a document containing multiple tabs: - If provided, the request applies to the specified tab. - If omitted, the request applies to the first tab in the document. */
281
337
  tabId?: string;
282
338
  }
339
+ interface DeleteSuggestionRequest {
340
+ /** The ID of the suggestion. */
341
+ suggestionId?: string;
342
+ }
283
343
  interface DeleteTableColumnRequest {
284
344
  /** The reference table cell location from which the column will be deleted. The column this cell spans will be deleted. If this is a merged cell that spans multiple columns, all columns that the cell spans will be deleted. If no columns remain in the table after this deletion, the whole table is deleted. */
285
345
  tableCellLocation?: TableCellLocation;
@@ -301,6 +361,14 @@ declare namespace gapi.client {
301
361
  interface Document {
302
362
  /** Output only. The main body of the document. Legacy field: Instead, use Document.tabs.documentTab.body, which exposes the actual document content from all tabs when the includeTabsContent parameter is set to `true`. If `false` or unset, this field contains information about the first tab in the document. */
303
363
  body?: Body;
364
+ /** Output only. The comments associated with the document. Only populated if the commentsViewMode parameter is set to require comments (such as `COMMENTS_VIEW_MODE_INCLUDED`). [Developer Preview](https://developers.google.com/workspace/preview). */
365
+ comments?: CommentThread[];
366
+ /** Output only. The comments view mode applied to the document. [Developer Preview](https://developers.google.com/workspace/preview). */
367
+ commentsViewMode?:
368
+ | 'COMMENTS_VIEW_MODE_UNSPECIFIED'
369
+ | 'COMMENTS_VIEW_MODE_DEFAULT_FOR_CURRENT_ACCESS'
370
+ | 'COMMENTS_VIEW_MODE_OMITTED'
371
+ | 'COMMENTS_VIEW_MODE_INCLUDED';
304
372
  /** Output only. The ID of the document. */
305
373
  documentId?: string;
306
374
  /** Output only. The style of the document. Legacy field: Instead, use Document.tabs.documentTab.documentStyle, which exposes the actual document content from all tabs when the includeTabsContent parameter is set to `true`. If `false` or unset, this field contains information about the first tab in the document. */
@@ -327,6 +395,8 @@ declare namespace gapi.client {
327
395
  suggestedDocumentStyleChanges?: {[P in string]: SuggestedDocumentStyle};
328
396
  /** Output only. The suggested changes to the named styles of the document, keyed by suggestion ID. Legacy field: Instead, use Document.tabs.documentTab.suggestedNamedStylesChanges, which exposes the actual document content from all tabs when the includeTabsContent parameter is set to `true`. If `false` or unset, this field contains information about the first tab in the document. */
329
397
  suggestedNamedStylesChanges?: {[P in string]: SuggestedNamedStyles};
398
+ /** Output only. The suggestions associated with the document. Only populated if the commentsViewMode parameter is set to require comments (such as `COMMENTS_VIEW_MODE_INCLUDED`). [Developer Preview](https://developers.google.com/workspace/preview). */
399
+ suggestions?: SuggestionThread[];
330
400
  /** Output only. The suggestions view mode applied to the document. Note: When editing a document, changes must be based on a document with SUGGESTIONS_INLINE. */
331
401
  suggestionsViewMode?:
332
402
  | 'DEFAULT_FOR_CURRENT_ACCESS'
@@ -427,6 +497,8 @@ declare namespace gapi.client {
427
497
  interface DocumentTab {
428
498
  /** The main body of the document tab. */
429
499
  body?: Body;
500
+ /** The comment anchors in a document tab, keyed by anchor ID. Only populated if the commentsViewMode parameter is set to require comments (such as `COMMENTS_VIEW_MODE_INCLUDED`). [Developer Preview](https://developers.google.com/workspace/preview). */
501
+ commentAnchors?: {[P in string]: CommentAnchor};
430
502
  /** The style of the document tab. */
431
503
  documentStyle?: DocumentStyle;
432
504
  /** The footers in the document tab, keyed by footer ID. */
@@ -646,6 +718,18 @@ declare namespace gapi.client {
646
718
  /** A mask that indicates which of the fields in embedded_object have been changed in this suggestion. */
647
719
  embeddedObjectSuggestionState?: EmbeddedObjectSuggestionState;
648
720
  }
721
+ interface InsertCommentRequest {
722
+ /** Optional. The email address of the assignee of the comment. Leave empty for a non-assigned comment. May not exceed 2048 UTF-8 code units. */
723
+ assigneeEmailAddress?: string;
724
+ /** The text of the comment, as plain text. This text content will be handled similarly to comments created in the Docs editor. It will have similar behaviors for formatting, notifications, etc. This field cannot be empty, and must not exceed 2048 UTF-8 code units. */
725
+ content?: string;
726
+ /** The Range in the document that is tied to this comment. */
727
+ range?: Range;
728
+ }
729
+ interface InsertCommentResponse {
730
+ /** The newly-inserted comment thread. */
731
+ commentThread?: CommentThread;
732
+ }
649
733
  interface InsertDateRequest {
650
734
  /** The properties of the date to insert. */
651
735
  dateElementProperties?: DateElementProperties;
@@ -1137,6 +1221,52 @@ declare namespace gapi.client {
1137
1221
  /** A mask that indicates which of the fields in positioning have been changed in this suggestion. */
1138
1222
  positioningSuggestionState?: PositionedObjectPositioningSuggestionState;
1139
1223
  }
1224
+ interface Post {
1225
+ /** Optional. The email of the user who is being newly assigned to the thread as part of this post. Returns a 400 bad request error if: - The parent thread is a CommentThread whose headPost does not have an assignee. - The parent thread is a SuggestionThread. - commentAction is specified as `RESOLVE` or `REOPEN`. - `assigneeEmail` exceeds 2048 UTF-8 code units. */
1226
+ assigneeEmail?: string;
1227
+ /** Output only. The user who created the post. */
1228
+ author?: PostAuthor;
1229
+ /** Optional. The action type for comment posts. */
1230
+ commentAction?:
1231
+ | 'COMMENT_ACTION_TYPE_UNSPECIFIED'
1232
+ | 'NO_COMMENT_ACTION_CHANGE'
1233
+ | 'RESOLVE'
1234
+ | 'REOPEN';
1235
+ /** The content of the post. Required to be non-empty if commentAction is not `RESOLVE` or `REOPEN`. This text content will be handled similarly to comments created in the Docs editor. It will have similar behaviors for formatting, notifications, etc. May not exceed 2048 UTF-8 code units. */
1236
+ content?: string;
1237
+ /** Output only. The content of the post as HTML. */
1238
+ contentHtml?: string;
1239
+ /** Output only. The time the post was created. */
1240
+ createTime?: string;
1241
+ /** Output only. Whether the post is deleted. If `true`, content and author fields will be empty. */
1242
+ deleted?: boolean;
1243
+ /** Output only. Whether the post is from a copied document. This field cannot be set directly by callers. */
1244
+ fromCopiedDocument?: boolean;
1245
+ /** Output only. Whether the post is from a document comparison. This field cannot be set directly by callers. */
1246
+ fromDocumentComparison?: boolean;
1247
+ /** Output only. Whether the post is from an imported document. This field cannot be set directly by callers. */
1248
+ fromImportedDocument?: boolean;
1249
+ /** Output only. The unique ID of the post. */
1250
+ postId?: string;
1251
+ /** Output only. The action type for suggestion posts. */
1252
+ suggestionAction?:
1253
+ | 'SUGGESTION_ACTION_TYPE_UNSPECIFIED'
1254
+ | 'NO_SUGGESTION_ACTION_CHANGE'
1255
+ | 'ACCEPT'
1256
+ | 'REJECT';
1257
+ /** Output only. The time the post was last updated. */
1258
+ updateTime?: string;
1259
+ }
1260
+ interface PostAuthor {
1261
+ /** Whether the user is anonymous. */
1262
+ anonymous?: boolean;
1263
+ /** The display name of the user. May be absent if the author is anonymous. */
1264
+ displayName?: string;
1265
+ /** Whether the user is the authenticated user making the request. */
1266
+ me?: boolean;
1267
+ /** The resource name of the post author user, which can also be used to identify the user in the [Google People API](https://developers.google.com/people/api/rest/v1/people). Format: `users/{user}`. Will not be populated if the anonymous field is `true` or if the post is from an imported document. */
1268
+ user?: string;
1269
+ }
1140
1270
  interface Range {
1141
1271
  /** The zero-based end index of this range, exclusive, in UTF-16 code units. In all current uses, an end index must be provided. This field is an Int32Value in order to accommodate future use cases with open-ended ranges. */
1142
1272
  endIndex?: number;
@@ -1147,6 +1277,10 @@ declare namespace gapi.client {
1147
1277
  /** The tab that contains this range. When omitted, the request applies to the first tab. In a document containing a single tab: - If provided, must match the singular tab's ID. - If omitted, the request applies to the singular tab. In a document containing multiple tabs: - If provided, the request applies to the specified tab. - If omitted, the request applies to the first tab in the document. */
1148
1278
  tabId?: string;
1149
1279
  }
1280
+ interface RejectSuggestionRequest {
1281
+ /** The ID of the suggestion. */
1282
+ suggestionId?: string;
1283
+ }
1150
1284
  interface ReplaceAllTextRequest {
1151
1285
  /** Finds text in the document matching this substring. */
1152
1286
  containsText?: SubstringMatchCriteria;
@@ -1180,6 +1314,10 @@ declare namespace gapi.client {
1180
1314
  text?: string;
1181
1315
  }
1182
1316
  interface Request {
1317
+ /** Accepts a suggestion. [Developer Preview](https://developers.google.com/workspace/preview). */
1318
+ acceptSuggestion?: AcceptSuggestionRequest;
1319
+ /** Adds a reply to a CommentThread or SuggestionThread. [Developer Preview](https://developers.google.com/workspace/preview). */
1320
+ addCommentReply?: AddCommentReplyRequest;
1183
1321
  /** Adds a document tab. */
1184
1322
  addDocumentTab?: AddDocumentTabRequest;
1185
1323
  /** Creates a footer. */
@@ -1192,6 +1330,10 @@ declare namespace gapi.client {
1192
1330
  createNamedRange?: CreateNamedRangeRequest;
1193
1331
  /** Creates bullets for paragraphs. */
1194
1332
  createParagraphBullets?: CreateParagraphBulletsRequest;
1333
+ /** Deletes a CommentThread. [Developer Preview](https://developers.google.com/workspace/preview). */
1334
+ deleteComment?: DeleteCommentRequest;
1335
+ /** Deletes a reply Post from a CommentThread or SuggestionThread. [Developer Preview](https://developers.google.com/workspace/preview). */
1336
+ deleteCommentReply?: DeleteCommentReplyRequest;
1195
1337
  /** Deletes content from the document. */
1196
1338
  deleteContentRange?: DeleteContentRangeRequest;
1197
1339
  /** Deletes a footer from the document. */
@@ -1204,12 +1346,16 @@ declare namespace gapi.client {
1204
1346
  deleteParagraphBullets?: DeleteParagraphBulletsRequest;
1205
1347
  /** Deletes a positioned object from the document. */
1206
1348
  deletePositionedObject?: DeletePositionedObjectRequest;
1349
+ /** Deletes a suggestion. [Developer Preview](https://developers.google.com/workspace/preview). */
1350
+ deleteSuggestion?: DeleteSuggestionRequest;
1207
1351
  /** Deletes a document tab. */
1208
1352
  deleteTab?: DeleteTabRequest;
1209
1353
  /** Deletes a column from a table. */
1210
1354
  deleteTableColumn?: DeleteTableColumnRequest;
1211
1355
  /** Deletes a row from a table. */
1212
1356
  deleteTableRow?: DeleteTableRowRequest;
1357
+ /** Inserts a CommentThread into the document. [Developer Preview](https://developers.google.com/workspace/preview). */
1358
+ insertComment?: InsertCommentRequest;
1213
1359
  /** Inserts a date. */
1214
1360
  insertDate?: InsertDateRequest;
1215
1361
  /** Inserts an inline image at the specified location. */
@@ -1234,6 +1380,8 @@ declare namespace gapi.client {
1234
1380
  mergeTableCells?: MergeTableCellsRequest;
1235
1381
  /** Updates the number of pinned header rows in a table. */
1236
1382
  pinTableHeaderRows?: PinTableHeaderRowsRequest;
1383
+ /** Rejects a suggestion. [Developer Preview](https://developers.google.com/workspace/preview). */
1384
+ rejectSuggestion?: RejectSuggestionRequest;
1237
1385
  /** Replaces all instances of the specified text. */
1238
1386
  replaceAllText?: ReplaceAllTextRequest;
1239
1387
  /** Replaces an image in the document. */
@@ -1242,6 +1390,8 @@ declare namespace gapi.client {
1242
1390
  replaceNamedRangeContent?: ReplaceNamedRangeContentRequest;
1243
1391
  /** Unmerges cells in a table. */
1244
1392
  unmergeTableCells?: UnmergeTableCellsRequest;
1393
+ /** Updates an existing post (head post or reply) of a CommentThread or SuggestionThread. [Developer Preview](https://developers.google.com/workspace/preview). */
1394
+ updateCommentPost?: UpdateCommentPostRequest;
1245
1395
  /** Updates the style of the document. */
1246
1396
  updateDocumentStyle?: UpdateDocumentStyleRequest;
1247
1397
  /** Updates the properties of a document tab. */
@@ -1262,6 +1412,8 @@ declare namespace gapi.client {
1262
1412
  updateTextStyle?: UpdateTextStyleRequest;
1263
1413
  }
1264
1414
  interface Response {
1415
+ /** The result of adding a reply to a comment or suggestion. [Developer Preview](https://developers.google.com/workspace/preview). */
1416
+ addCommentReply?: AddCommentReplyResponse;
1265
1417
  /** The result of adding a document tab. */
1266
1418
  addDocumentTab?: AddDocumentTabResponse;
1267
1419
  /** The result of creating a footer. */
@@ -1272,6 +1424,8 @@ declare namespace gapi.client {
1272
1424
  createHeader?: CreateHeaderResponse;
1273
1425
  /** The result of creating a named range. */
1274
1426
  createNamedRange?: CreateNamedRangeResponse;
1427
+ /** The result of inserting a comment. [Developer Preview](https://developers.google.com/workspace/preview). */
1428
+ insertComment?: InsertCommentResponse;
1275
1429
  /** The result of inserting an inline image. */
1276
1430
  insertInlineImage?: InsertInlineImageResponse;
1277
1431
  /** The result of inserting an inline Google Sheets chart. */
@@ -1485,6 +1639,32 @@ declare namespace gapi.client {
1485
1639
  /** A mask that indicates which of the fields on the base TextStyle have been changed in this suggestion. */
1486
1640
  textStyleSuggestionState?: TextStyleSuggestionState;
1487
1641
  }
1642
+ interface SuggestionResponse {
1643
+ /** The IDs of suggestions which were accepted during the update. */
1644
+ acceptedSuggestionIds?: string[];
1645
+ /** The IDs of suggestions which were created during the update. */
1646
+ createdSuggestionIds?: string[];
1647
+ /** The IDs of suggestions which were deleted during the update. */
1648
+ deletedSuggestionIds?: string[];
1649
+ /** The IDs of suggestions which were rejected during the update. */
1650
+ rejectedSuggestionIds?: string[];
1651
+ /** The IDs of suggestions whose summaries were updated during the update. */
1652
+ updatedSummarySuggestionIds?: string[];
1653
+ }
1654
+ interface SuggestionThread {
1655
+ /** The first post in the thread. */
1656
+ headPost?: Post;
1657
+ /** Replies to the head post. */
1658
+ replies?: Post[];
1659
+ /** Whether the thread is open, accepted, or rejected. */
1660
+ status?: 'STATUS_UNSPECIFIED' | 'OPEN' | 'ACCEPTED' | 'REJECTED';
1661
+ /** The unique ID of the suggestion. */
1662
+ suggestionId?: string;
1663
+ /** Summary of the suggested differences in the document, in HTML. May be empty. */
1664
+ summaryHtml?: string;
1665
+ /** Summary of the suggested differences in the document, in plain text. May be empty. */
1666
+ summaryText?: string;
1667
+ }
1488
1668
  interface Tab {
1489
1669
  /** The child tabs nested within this tab. */
1490
1670
  childTabs?: Tab[];
@@ -1740,6 +1920,16 @@ declare namespace gapi.client {
1740
1920
  /** The table range specifying which cells of the table to unmerge. All merged cells in this range will be unmerged, and cells that are already unmerged will not be affected. If the range has no merged cells, the request will do nothing. If there is text in any of the merged cells, the text will remain in the "head" cell of the resulting block of unmerged cells. The "head" cell is the upper-left cell when the content direction is from left to right, and the upper-right otherwise. */
1741
1921
  tableRange?: TableRange;
1742
1922
  }
1923
+ interface UpdateCommentPostRequest {
1924
+ /** The ID of the CommentThread which the post belongs to. */
1925
+ commentId?: string;
1926
+ /** The new text of the comment, as plain text. This text content will be handled similarly to comments created in the Docs editor. It will have similar behaviors for formatting, notifications, etc. This field cannot be empty, and must not exceed 2048 UTF-8 code units. */
1927
+ content?: string;
1928
+ /** The ID of the post being updated. */
1929
+ postId?: string;
1930
+ /** The ID of the SuggestionThread which the post belongs to. */
1931
+ suggestionId?: string;
1932
+ }
1743
1933
  interface UpdateDocumentStyleRequest {
1744
1934
  /** The styles to set on the document. Certain document style changes may cause other changes in order to mirror the behavior of the Docs editor. See the documentation of DocumentStyle for more information. */
1745
1935
  documentStyle?: DocumentStyle;
@@ -1827,6 +2017,8 @@ declare namespace gapi.client {
1827
2017
  requiredRevisionId?: string;
1828
2018
  /** The optional target revision ID of the document the write request is applied to. If collaborator changes have occurred after the document was read using the API, the changes produced by this write request are applied against the collaborator changes. This results in a new revision of the document that incorporates both the collaborator changes and the changes in the request, with the Docs server resolving conflicting changes. When using target revision ID, the API client can be thought of as another collaborator of the document. The target revision ID can only be used to write to recent versions of a document. If the target revision is too far behind the latest revision, the request is not processed and returns a 400 bad request error. The request should be tried again after retrieving the latest version of the document. Usually a revision ID remains valid for use as a target revision for several minutes after it's read, but for frequently edited documents this window might be shorter. */
1829
2019
  targetRevisionId?: string;
2020
+ /** How the request updates should be applied to the document. If unspecified, the request updates will be applied as normal edits. [Developer Preview](https://developers.google.com/workspace/preview). */
2021
+ writeMode?: 'WRITE_MODE_UNSPECIFIED' | 'EDIT' | 'SUGGEST';
1830
2022
  }
1831
2023
  interface DocumentsResource {
1832
2024
  /** Applies one or more updates to the document. Each request is validated before being applied. If any request is not valid, then the entire request will fail and nothing will be applied. Some requests have replies to give you some information about how they are applied. Other requests do not need to return information; these each return an empty reply. The order of replies matches that of the requests. For example, suppose you call batchUpdate with four updates, and only the third one returns information. The response would have two empty replies, the reply to the third request, and another empty reply, in that order. Because other users may be editing the document, the document might not exactly reflect your changes: your changes may be altered with respect to collaborator changes. If there are no collaborators, the document should reflect your changes. In any case, the updates in your request are guaranteed to be applied together atomically. */
@@ -1951,6 +2143,12 @@ declare namespace gapi.client {
1951
2143
  alt?: 'json' | 'media' | 'proto';
1952
2144
  /** JSONP */
1953
2145
  callback?: string;
2146
+ /** The comments view mode to apply to the document. This allows viewing the document with comments omitted or included. If one is not specified, COMMENTS_VIEW_MODE_OMITTED is used. If you set comments_view_mode to any value, you must also set include_tabs_content to `true` or use a field mask that references the Document.tabs field (or any subfield). If you set comments_view_mode to COMMENTS_VIEW_MODE_INCLUDED, you must also explicitly set suggestions_view_mode to SUGGESTIONS_INLINE. If you set comments_view_mode to COMMENTS_VIEW_MODE_INCLUDED or COMMENTS_VIEW_MODE_DEFAULT_FOR_CURRENT_ACCESS, you may not set suggestions_view_mode to PREVIEW_WITHOUT_SUGGESTIONS or PREVIEW_SUGGESTIONS_ACCEPTED. [Developer Preview](https://developers.google.com/workspace/preview). */
2147
+ commentsViewMode?:
2148
+ | 'COMMENTS_VIEW_MODE_UNSPECIFIED'
2149
+ | 'COMMENTS_VIEW_MODE_DEFAULT_FOR_CURRENT_ACCESS'
2150
+ | 'COMMENTS_VIEW_MODE_OMITTED'
2151
+ | 'COMMENTS_VIEW_MODE_INCLUDED';
1954
2152
  /** The ID of the document to retrieve. */
1955
2153
  documentId: string;
1956
2154
  /** Selector specifying which fields to include in a partial response. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.docs-v1",
3
- "version": "0.4.20260909",
3
+ "version": "0.4.20260923",
4
4
  "description": "TypeScript typings for Google Docs API v1",
5
5
  "repository": {
6
6
  "type": "git",