Skip to content

Commit 49c18df

Browse files
feat(docs): update the API
#### docs:v1 The following keys were added: - schemas.DocumentFormat.description - schemas.DocumentFormat.id - schemas.DocumentFormat.properties.documentMode.description - schemas.DocumentFormat.properties.documentMode.enum - schemas.DocumentFormat.properties.documentMode.enumDescriptions - schemas.DocumentFormat.properties.documentMode.type - schemas.DocumentFormat.type - schemas.DocumentStyle.properties.documentFormat.$ref - schemas.DocumentStyle.properties.documentFormat.description
1 parent 7a69f48 commit 49c18df

File tree

2 files changed

+39
-1
lines changed

2 files changed

+39
-1
lines changed

discovery/docs-v1.json

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@
221221
}
222222
}
223223
},
224-
"revision": "20250925",
224+
"revision": "20251008",
225225
"rootUrl": "https://docs.googleapis.com/",
226226
"schemas": {
227227
"AutoText": {
@@ -922,6 +922,27 @@
922922
},
923923
"type": "object"
924924
},
925+
"DocumentFormat": {
926+
"description": "Represents document-level format settings.",
927+
"id": "DocumentFormat",
928+
"properties": {
929+
"documentMode": {
930+
"description": "Whether the document has pages or is pageless.",
931+
"enum": [
932+
"DOCUMENT_MODE_UNSPECIFIED",
933+
"PAGES",
934+
"PAGELESS"
935+
],
936+
"enumDescriptions": [
937+
"The document mode is unspecified.",
938+
"The document has pages.",
939+
"The document is pageless."
940+
],
941+
"type": "string"
942+
}
943+
},
944+
"type": "object"
945+
},
925946
"DocumentStyle": {
926947
"description": "The style of the document.",
927948
"id": "DocumentStyle",
@@ -938,6 +959,10 @@
938959
"description": "The ID of the default header. If not set, there's no default header. This property is read-only.",
939960
"type": "string"
940961
},
962+
"documentFormat": {
963+
"$ref": "DocumentFormat",
964+
"description": "Specifies document-level format settings, such as the document mode (pages vs pageless)."
965+
},
941966
"evenPageFooterId": {
942967
"description": "The ID of the footer used only for even pages. The value of use_even_page_header_footer determines whether to use the default_footer_id or this value for the footer on even pages. If not set, there's no even page footer. This property is read-only.",
943968
"type": "string"

src/apis/docs/v1.ts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -620,6 +620,15 @@ export namespace docs_v1 {
620620
*/
621621
title?: string | null;
622622
}
623+
/**
624+
* Represents document-level format settings.
625+
*/
626+
export interface Schema$DocumentFormat {
627+
/**
628+
* Whether the document has pages or is pageless.
629+
*/
630+
documentMode?: string | null;
631+
}
623632
/**
624633
* The style of the document.
625634
*/
@@ -636,6 +645,10 @@ export namespace docs_v1 {
636645
* The ID of the default header. If not set, there's no default header. This property is read-only.
637646
*/
638647
defaultHeaderId?: string | null;
648+
/**
649+
* Specifies document-level format settings, such as the document mode (pages vs pageless).
650+
*/
651+
documentFormat?: Schema$DocumentFormat;
639652
/**
640653
* The ID of the footer used only for even pages. The value of use_even_page_header_footer determines whether to use the default_footer_id or this value for the footer on even pages. If not set, there's no even page footer. This property is read-only.
641654
*/

0 commit comments

Comments
 (0)