Skip to content

Commit a9f3c0c

Browse files
yoshi-automationfeywind
authored andcommitted
feat(docs): update the API
#### docs:v1 The following keys were added: - schemas.DateElement.description - schemas.DateElement.id - schemas.DateElement.properties.dateElementProperties.$ref - schemas.DateElement.properties.dateElementProperties.description - schemas.DateElement.properties.dateId.description - schemas.DateElement.properties.dateId.readOnly - schemas.DateElement.properties.dateId.type - schemas.DateElement.properties.suggestedDateElementPropertiesChanges.additionalProperties.$ref - schemas.DateElement.properties.suggestedDateElementPropertiesChanges.description - schemas.DateElement.properties.suggestedDateElementPropertiesChanges.type - schemas.DateElement.properties.suggestedDeletionIds.description - schemas.DateElement.properties.suggestedDeletionIds.items.type - schemas.DateElement.properties.suggestedDeletionIds.type - schemas.DateElement.properties.suggestedInsertionIds.description - schemas.DateElement.properties.suggestedInsertionIds.items.type - schemas.DateElement.properties.suggestedInsertionIds.type - schemas.DateElement.properties.suggestedTextStyleChanges.additionalProperties.$ref - schemas.DateElement.properties.suggestedTextStyleChanges.description - schemas.DateElement.properties.suggestedTextStyleChanges.type - schemas.DateElement.properties.textStyle.$ref - schemas.DateElement.properties.textStyle.description - schemas.DateElement.type - schemas.DateElementPropertiesSuggestionState.description - schemas.DateElementPropertiesSuggestionState.id - schemas.DateElementPropertiesSuggestionState.properties.dateFormatSuggested.description - schemas.DateElementPropertiesSuggestionState.properties.dateFormatSuggested.type - schemas.DateElementPropertiesSuggestionState.properties.localeSuggested.description - schemas.DateElementPropertiesSuggestionState.properties.localeSuggested.type - schemas.DateElementPropertiesSuggestionState.properties.timeFormatSuggested.description - schemas.DateElementPropertiesSuggestionState.properties.timeFormatSuggested.type - schemas.DateElementPropertiesSuggestionState.properties.timeZoneIdSuggested.description - schemas.DateElementPropertiesSuggestionState.properties.timeZoneIdSuggested.type - schemas.DateElementPropertiesSuggestionState.properties.timestampSuggested.description - schemas.DateElementPropertiesSuggestionState.properties.timestampSuggested.type - schemas.DateElementPropertiesSuggestionState.type - schemas.ParagraphElement.properties.dateElement.$ref - schemas.ParagraphElement.properties.dateElement.description - schemas.SuggestedDateElementProperties.description - schemas.SuggestedDateElementProperties.id - schemas.SuggestedDateElementProperties.properties.dateElementProperties.$ref - schemas.SuggestedDateElementProperties.properties.dateElementProperties.description - schemas.SuggestedDateElementProperties.properties.dateElementPropertiesSuggestionState.$ref - schemas.SuggestedDateElementProperties.properties.dateElementPropertiesSuggestionState.description - schemas.SuggestedDateElementProperties.type
1 parent 8a919a4 commit a9f3c0c

File tree

2 files changed

+174
-1
lines changed

2 files changed

+174
-1
lines changed

discovery/docs-v1.json

Lines changed: 95 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@
221221
}
222222
}
223223
},
224-
"revision": "20251124",
224+
"revision": "20251215",
225225
"rootUrl": "https://docs.googleapis.com/",
226226
"schemas": {
227227
"AutoText": {
@@ -673,6 +673,54 @@
673673
},
674674
"type": "object"
675675
},
676+
"DateElement": {
677+
"description": "A date instance mentioned in a document.",
678+
"id": "DateElement",
679+
"properties": {
680+
"dateElementProperties": {
681+
"$ref": "DateElementProperties",
682+
"description": "The properties of this DateElement."
683+
},
684+
"dateId": {
685+
"description": "Output only. The unique ID of this date.",
686+
"readOnly": true,
687+
"type": "string"
688+
},
689+
"suggestedDateElementPropertiesChanges": {
690+
"additionalProperties": {
691+
"$ref": "SuggestedDateElementProperties"
692+
},
693+
"description": "The suggested changes to the date element properties, keyed by suggestion ID.",
694+
"type": "object"
695+
},
696+
"suggestedDeletionIds": {
697+
"description": "IDs for suggestions that remove this date from the document. A DateElement might have multiple deletion IDs if, for example, multiple users suggest deleting it. If empty, then this date isn't suggested for deletion.",
698+
"items": {
699+
"type": "string"
700+
},
701+
"type": "array"
702+
},
703+
"suggestedInsertionIds": {
704+
"description": "IDs for suggestions that insert this date into the document. A DateElement might have multiple insertion IDs if it's a nested suggested change (a suggestion within a suggestion made by a different user, for example). If empty, then this date isn't a suggested insertion.",
705+
"items": {
706+
"type": "string"
707+
},
708+
"type": "array"
709+
},
710+
"suggestedTextStyleChanges": {
711+
"additionalProperties": {
712+
"$ref": "SuggestedTextStyle"
713+
},
714+
"description": "The suggested text style changes to this DateElement, keyed by suggestion ID.",
715+
"type": "object"
716+
},
717+
"textStyle": {
718+
"$ref": "TextStyle",
719+
"description": "The text style of this DateElement."
720+
}
721+
},
722+
"type": "object"
723+
},
676724
"DateElementProperties": {
677725
"description": "Properties of a DateElement.",
678726
"id": "DateElementProperties",
@@ -733,6 +781,33 @@
733781
},
734782
"type": "object"
735783
},
784+
"DateElementPropertiesSuggestionState": {
785+
"description": "A mask that indicates which of the fields on the base DateElementProperties have been changed in this suggestion. For any field set to true, there's a new suggested value.",
786+
"id": "DateElementPropertiesSuggestionState",
787+
"properties": {
788+
"dateFormatSuggested": {
789+
"description": "Indicates if there was a suggested change to date_format.",
790+
"type": "boolean"
791+
},
792+
"localeSuggested": {
793+
"description": "Indicates if there was a suggested change to locale.",
794+
"type": "boolean"
795+
},
796+
"timeFormatSuggested": {
797+
"description": "Indicates if there was a suggested change to time_format.",
798+
"type": "boolean"
799+
},
800+
"timeZoneIdSuggested": {
801+
"description": "Indicates if there was a suggested change to time_zone_id.",
802+
"type": "boolean"
803+
},
804+
"timestampSuggested": {
805+
"description": "Indicates if there was a suggested change to timestamp.",
806+
"type": "boolean"
807+
}
808+
},
809+
"type": "object"
810+
},
736811
"DeleteContentRangeRequest": {
737812
"description": "Deletes content from the document.",
738813
"id": "DeleteContentRangeRequest",
@@ -2539,6 +2614,10 @@
25392614
"$ref": "ColumnBreak",
25402615
"description": "A column break paragraph element."
25412616
},
2617+
"dateElement": {
2618+
"$ref": "DateElement",
2619+
"description": "A paragraph element that represents a date."
2620+
},
25422621
"endIndex": {
25432622
"description": "The zero-base end index of this paragraph element, exclusive, in UTF-16 code units.",
25442623
"format": "int32",
@@ -3706,6 +3785,21 @@
37063785
},
37073786
"type": "object"
37083787
},
3788+
"SuggestedDateElementProperties": {
3789+
"description": "A suggested change to a DateElementProperties.",
3790+
"id": "SuggestedDateElementProperties",
3791+
"properties": {
3792+
"dateElementProperties": {
3793+
"$ref": "DateElementProperties",
3794+
"description": "DateElementProperties that only includes the changes made in this suggestion. This can be used along with the date_element_properties_suggestion_state to see which fields have changed and their new values."
3795+
},
3796+
"dateElementPropertiesSuggestionState": {
3797+
"$ref": "DateElementPropertiesSuggestionState",
3798+
"description": "A mask that indicates which of the fields on the base DateElementProperties have been changed in this suggestion."
3799+
}
3800+
},
3801+
"type": "object"
3802+
},
37093803
"SuggestedDocumentStyle": {
37103804
"description": "A suggested change to the DocumentStyle.",
37113805
"id": "SuggestedDocumentStyle",

src/apis/docs/v1.ts

Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -438,6 +438,43 @@ export namespace docs_v1 {
438438
*/
439439
offsetTopSuggested?: boolean | null;
440440
}
441+
/**
442+
* A date instance mentioned in a document.
443+
*/
444+
export interface Schema$DateElement {
445+
/**
446+
* The properties of this DateElement.
447+
*/
448+
dateElementProperties?: Schema$DateElementProperties;
449+
/**
450+
* Output only. The unique ID of this date.
451+
*/
452+
dateId?: string | null;
453+
/**
454+
* The suggested changes to the date element properties, keyed by suggestion ID.
455+
*/
456+
suggestedDateElementPropertiesChanges?: {
457+
[key: string]: Schema$SuggestedDateElementProperties;
458+
} | null;
459+
/**
460+
* IDs for suggestions that remove this date from the document. A DateElement might have multiple deletion IDs if, for example, multiple users suggest deleting it. If empty, then this date isn't suggested for deletion.
461+
*/
462+
suggestedDeletionIds?: string[] | null;
463+
/**
464+
* IDs for suggestions that insert this date into the document. A DateElement might have multiple insertion IDs if it's a nested suggested change (a suggestion within a suggestion made by a different user, for example). If empty, then this date isn't a suggested insertion.
465+
*/
466+
suggestedInsertionIds?: string[] | null;
467+
/**
468+
* The suggested text style changes to this DateElement, keyed by suggestion ID.
469+
*/
470+
suggestedTextStyleChanges?: {
471+
[key: string]: Schema$SuggestedTextStyle;
472+
} | null;
473+
/**
474+
* The text style of this DateElement.
475+
*/
476+
textStyle?: Schema$TextStyle;
477+
}
441478
/**
442479
* Properties of a DateElement.
443480
*/
@@ -467,6 +504,31 @@ export namespace docs_v1 {
467504
*/
468505
timeZoneId?: string | null;
469506
}
507+
/**
508+
* A mask that indicates which of the fields on the base DateElementProperties have been changed in this suggestion. For any field set to true, there's a new suggested value.
509+
*/
510+
export interface Schema$DateElementPropertiesSuggestionState {
511+
/**
512+
* Indicates if there was a suggested change to date_format.
513+
*/
514+
dateFormatSuggested?: boolean | null;
515+
/**
516+
* Indicates if there was a suggested change to locale.
517+
*/
518+
localeSuggested?: boolean | null;
519+
/**
520+
* Indicates if there was a suggested change to time_format.
521+
*/
522+
timeFormatSuggested?: boolean | null;
523+
/**
524+
* Indicates if there was a suggested change to timestamp.
525+
*/
526+
timestampSuggested?: boolean | null;
527+
/**
528+
* Indicates if there was a suggested change to time_zone_id.
529+
*/
530+
timeZoneIdSuggested?: boolean | null;
531+
}
470532
/**
471533
* Deletes content from the document.
472534
*/
@@ -1847,6 +1909,10 @@ export namespace docs_v1 {
18471909
* A column break paragraph element.
18481910
*/
18491911
columnBreak?: Schema$ColumnBreak;
1912+
/**
1913+
* A paragraph element that represents a date.
1914+
*/
1915+
dateElement?: Schema$DateElement;
18501916
/**
18511917
* The zero-base end index of this paragraph element, exclusive, in UTF-16 code units.
18521918
*/
@@ -2786,6 +2852,19 @@ export namespace docs_v1 {
27862852
*/
27872853
bulletSuggestionState?: Schema$BulletSuggestionState;
27882854
}
2855+
/**
2856+
* A suggested change to a DateElementProperties.
2857+
*/
2858+
export interface Schema$SuggestedDateElementProperties {
2859+
/**
2860+
* DateElementProperties that only includes the changes made in this suggestion. This can be used along with the date_element_properties_suggestion_state to see which fields have changed and their new values.
2861+
*/
2862+
dateElementProperties?: Schema$DateElementProperties;
2863+
/**
2864+
* A mask that indicates which of the fields on the base DateElementProperties have been changed in this suggestion.
2865+
*/
2866+
dateElementPropertiesSuggestionState?: Schema$DateElementPropertiesSuggestionState;
2867+
}
27892868
/**
27902869
* A suggested change to the DocumentStyle.
27912870
*/

0 commit comments

Comments
 (0)