Skip to content

Commit 5010318

Browse files
yoshi-automationquirogas
authored andcommitted
feat(gmail): update the API
#### gmail:v1 The following keys were added: - schemas.ClassificationLabelFieldValue.description - schemas.ClassificationLabelFieldValue.id - schemas.ClassificationLabelFieldValue.properties.fieldId.description - schemas.ClassificationLabelFieldValue.properties.fieldId.type - schemas.ClassificationLabelFieldValue.properties.selection.description - schemas.ClassificationLabelFieldValue.properties.selection.type - schemas.ClassificationLabelFieldValue.type - schemas.ClassificationLabelValue.description - schemas.ClassificationLabelValue.id - schemas.ClassificationLabelValue.properties.fields.description - schemas.ClassificationLabelValue.properties.fields.items.$ref - schemas.ClassificationLabelValue.properties.fields.type - schemas.ClassificationLabelValue.properties.labelId.description - schemas.ClassificationLabelValue.properties.labelId.type - schemas.ClassificationLabelValue.type - schemas.Message.properties.classificationLabelValues.description - schemas.Message.properties.classificationLabelValues.items.$ref - schemas.Message.properties.classificationLabelValues.type
1 parent 8cdce8a commit 5010318

File tree

2 files changed

+82
-1
lines changed

2 files changed

+82
-1
lines changed

discovery/gmail-v1.json

Lines changed: 41 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3077,7 +3077,7 @@
30773077
}
30783078
}
30793079
},
3080-
"revision": "20250630",
3080+
"revision": "20251110",
30813081
"rootUrl": "https://gmail.googleapis.com/",
30823082
"schemas": {
30833083
"AutoForwarding": {
@@ -3153,6 +3153,39 @@
31533153
},
31543154
"type": "object"
31553155
},
3156+
"ClassificationLabelFieldValue": {
3157+
"description": "Field values for a classification label.",
3158+
"id": "ClassificationLabelFieldValue",
3159+
"properties": {
3160+
"fieldId": {
3161+
"description": "Required. The field ID for the Classification Label Value. Maps to the ID field of the Google Drive `Label.Field` object.",
3162+
"type": "string"
3163+
},
3164+
"selection": {
3165+
"description": "Selection choice ID for the selection option. Should only be set if the field type is `SELECTION` in the Google Drive `Label.Field` object. Maps to the id field of the Google Drive `Label.Field.SelectionOptions` resource.",
3166+
"type": "string"
3167+
}
3168+
},
3169+
"type": "object"
3170+
},
3171+
"ClassificationLabelValue": {
3172+
"description": "Classification Labels applied to the email message. Classification Labels are different from Gmail inbox labels. Only used for Google Workspace accounts. [Learn more about classification labels](https://support.google.com/a/answer/9292382).",
3173+
"id": "ClassificationLabelValue",
3174+
"properties": {
3175+
"fields": {
3176+
"description": "Field values for the given classification label ID.",
3177+
"items": {
3178+
"$ref": "ClassificationLabelFieldValue"
3179+
},
3180+
"type": "array"
3181+
},
3182+
"labelId": {
3183+
"description": "Required. The canonical or raw alphanumeric classification label ID. Maps to the ID field of the Google Drive Label resource.",
3184+
"type": "string"
3185+
}
3186+
},
3187+
"type": "object"
3188+
},
31563189
"CseIdentity": {
31573190
"description": "The client-side encryption (CSE) configuration for the email address of an authenticated user. Gmail uses CSE configurations to save drafts of client-side encrypted email messages, and to sign and send encrypted email messages. For administrators managing identities and keypairs for users in their organization, requests require authorization with a [service account](https://developers.google.com/identity/protocols/OAuth2ServiceAccount) that has [domain-wide delegation authority](https://developers.google.com/identity/protocols/OAuth2ServiceAccount#delegatingauthority) to impersonate users with the `https://www.googleapis.com/auth/gmail.settings.basic` scope. For users managing their own identities and keypairs, requests require [hardware key encryption](https://support.google.com/a/answer/14153163) turned on and configured.",
31583191
"id": "CseIdentity",
@@ -3925,6 +3958,13 @@
39253958
"description": "An email message.",
39263959
"id": "Message",
39273960
"properties": {
3961+
"classificationLabelValues": {
3962+
"description": "Classification Label values on the message. Available Classification Label schemas can be queried using the Google Drive Labels API. Each classification label ID must be unique. If duplicate IDs are provided, only one will be retained, and the selection is arbitrary. Only used for Google Workspace accounts.",
3963+
"items": {
3964+
"$ref": "ClassificationLabelValue"
3965+
},
3966+
"type": "array"
3967+
},
39283968
"historyId": {
39293969
"description": "The ID of the last history record that modified this message.",
39303970
"format": "uint64",

src/apis/gmail/v1.ts

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,32 @@ export namespace gmail_v1 {
161161
*/
162162
removeLabelIds?: string[] | null;
163163
}
164+
/**
165+
* Field values for a classification label.
166+
*/
167+
export interface Schema$ClassificationLabelFieldValue {
168+
/**
169+
* Required. The field ID for the Classification Label Value. Maps to the ID field of the Google Drive `Label.Field` object.
170+
*/
171+
fieldId?: string | null;
172+
/**
173+
* Selection choice ID for the selection option. Should only be set if the field type is `SELECTION` in the Google Drive `Label.Field` object. Maps to the id field of the Google Drive `Label.Field.SelectionOptions` resource.
174+
*/
175+
selection?: string | null;
176+
}
177+
/**
178+
* Classification Labels applied to the email message. Classification Labels are different from Gmail inbox labels. Only used for Google Workspace accounts. [Learn more about classification labels](https://support.google.com/a/answer/9292382).
179+
*/
180+
export interface Schema$ClassificationLabelValue {
181+
/**
182+
* Field values for the given classification label ID.
183+
*/
184+
fields?: Schema$ClassificationLabelFieldValue[];
185+
/**
186+
* Required. The canonical or raw alphanumeric classification label ID. Maps to the ID field of the Google Drive Label resource.
187+
*/
188+
labelId?: string | null;
189+
}
164190
/**
165191
* The client-side encryption (CSE) configuration for the email address of an authenticated user. Gmail uses CSE configurations to save drafts of client-side encrypted email messages, and to sign and send encrypted email messages. For administrators managing identities and keypairs for users in their organization, requests require authorization with a [service account](https://developers.google.com/identity/protocols/OAuth2ServiceAccount) that has [domain-wide delegation authority](https://developers.google.com/identity/protocols/OAuth2ServiceAccount#delegatingauthority) to impersonate users with the `https://www.googleapis.com/auth/gmail.settings.basic` scope. For users managing their own identities and keypairs, requests require [hardware key encryption](https://support.google.com/a/answer/14153163) turned on and configured.
166192
*/
@@ -634,6 +660,10 @@ export namespace gmail_v1 {
634660
* An email message.
635661
*/
636662
export interface Schema$Message {
663+
/**
664+
* Classification Label values on the message. Available Classification Label schemas can be queried using the Google Drive Labels API. Each classification label ID must be unique. If duplicate IDs are provided, only one will be retained, and the selection is arbitrary. Only used for Google Workspace accounts.
665+
*/
666+
classificationLabelValues?: Schema$ClassificationLabelValue[];
637667
/**
638668
* The ID of the last history record that modified this message.
639669
*/
@@ -2122,6 +2152,7 @@ export namespace gmail_v1 {
21222152
*
21232153
* // Example response
21242154
* // {
2155+
* // "classificationLabelValues": [],
21252156
* // "historyId": "my_historyId",
21262157
* // "id": "my_id",
21272158
* // "internalDate": "my_internalDate",
@@ -4205,6 +4236,7 @@ export namespace gmail_v1 {
42054236
*
42064237
* // Example response
42074238
* // {
4239+
* // "classificationLabelValues": [],
42084240
* // "historyId": "my_historyId",
42094241
* // "id": "my_id",
42104242
* // "internalDate": "my_internalDate",
@@ -4362,6 +4394,7 @@ export namespace gmail_v1 {
43624394
* requestBody: {
43634395
* // request body parameters
43644396
* // {
4397+
* // "classificationLabelValues": [],
43654398
* // "historyId": "my_historyId",
43664399
* // "id": "my_id",
43674400
* // "internalDate": "my_internalDate",
@@ -4382,6 +4415,7 @@ export namespace gmail_v1 {
43824415
*
43834416
* // Example response
43844417
* // {
4418+
* // "classificationLabelValues": [],
43854419
* // "historyId": "my_historyId",
43864420
* // "id": "my_id",
43874421
* // "internalDate": "my_internalDate",
@@ -4538,6 +4572,7 @@ export namespace gmail_v1 {
45384572
* requestBody: {
45394573
* // request body parameters
45404574
* // {
4575+
* // "classificationLabelValues": [],
45414576
* // "historyId": "my_historyId",
45424577
* // "id": "my_id",
45434578
* // "internalDate": "my_internalDate",
@@ -4558,6 +4593,7 @@ export namespace gmail_v1 {
45584593
*
45594594
* // Example response
45604595
* // {
4596+
* // "classificationLabelValues": [],
45614597
* // "historyId": "my_historyId",
45624598
* // "id": "my_id",
45634599
* // "internalDate": "my_internalDate",
@@ -4876,6 +4912,7 @@ export namespace gmail_v1 {
48764912
*
48774913
* // Example response
48784914
* // {
4915+
* // "classificationLabelValues": [],
48794916
* // "historyId": "my_historyId",
48804917
* // "id": "my_id",
48814918
* // "internalDate": "my_internalDate",
@@ -5026,6 +5063,7 @@ export namespace gmail_v1 {
50265063
* requestBody: {
50275064
* // request body parameters
50285065
* // {
5066+
* // "classificationLabelValues": [],
50295067
* // "historyId": "my_historyId",
50305068
* // "id": "my_id",
50315069
* // "internalDate": "my_internalDate",
@@ -5046,6 +5084,7 @@ export namespace gmail_v1 {
50465084
*
50475085
* // Example response
50485086
* // {
5087+
* // "classificationLabelValues": [],
50495088
* // "historyId": "my_historyId",
50505089
* // "id": "my_id",
50515090
* // "internalDate": "my_internalDate",
@@ -5199,6 +5238,7 @@ export namespace gmail_v1 {
51995238
*
52005239
* // Example response
52015240
* // {
5241+
* // "classificationLabelValues": [],
52025242
* // "historyId": "my_historyId",
52035243
* // "id": "my_id",
52045244
* // "internalDate": "my_internalDate",
@@ -5348,6 +5388,7 @@ export namespace gmail_v1 {
53485388
*
53495389
* // Example response
53505390
* // {
5391+
* // "classificationLabelValues": [],
53515392
* // "historyId": "my_historyId",
53525393
* // "id": "my_id",
53535394
* // "internalDate": "my_internalDate",

0 commit comments

Comments
 (0)