Skip to content

Commit de3b427

Browse files
fix(gmail): update the API
#### gmail:v1 The following keys were changed: - documentationLink - resources.users.resources.messages.methods.list.parameters.labelIds.description - resources.users.resources.messages.methods.send.description - schemas.LanguageSettings.properties.displayLanguage.description - schemas.ListDraftsResponse.properties.drafts.description - schemas.ListLabelsResponse.properties.labels.description - schemas.ListThreadsResponse.properties.threads.description
1 parent 6e81af3 commit de3b427

File tree

2 files changed

+14
-14
lines changed

2 files changed

+14
-14
lines changed

‎discovery/gmail-v1.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
"canonicalName": "Gmail",
5454
"description": "The Gmail API lets you view and manage Gmail mailbox data like threads, messages, and labels.",
5555
"discoveryVersion": "v1",
56-
"documentationLink": "https://developers.google.com/gmail/api/",
56+
"documentationLink": "https://developers.google.com/workspace/gmail/api/",
5757
"icons": {
5858
"x16": "http://www.google.com/images/icons/product/search-16.gif",
5959
"x32": "http://www.google.com/images/icons/product/search-32.gif"
@@ -1106,7 +1106,7 @@
11061106
"type": "boolean"
11071107
},
11081108
"labelIds": {
1109-
"description": "Only return messages with labels that match all of the specified label IDs. Messages in a thread might have labels that other messages in the same thread don't have. To learn more, see [Manage labels on messages and threads](https://developers.google.com/gmail/api/guides/labels#manage_labels_on_messages_threads).",
1109+
"description": "Only return messages with labels that match all of the specified label IDs. Messages in a thread might have labels that other messages in the same thread don't have. To learn more, see [Manage labels on messages and threads](https://developers.google.com/workspace/gmail/api/guides/labels#manage_labels_on_messages_threads).",
11101110
"location": "query",
11111111
"repeated": true,
11121112
"type": "string"
@@ -1184,7 +1184,7 @@
11841184
]
11851185
},
11861186
"send": {
1187-
"description": "Sends the specified message to the recipients in the `To`, `Cc`, and `Bcc` headers. For example usage, see [Sending email](https://developers.google.com/gmail/api/guides/sending).",
1187+
"description": "Sends the specified message to the recipients in the `To`, `Cc`, and `Bcc` headers. For example usage, see [Sending email](https://developers.google.com/workspace/gmail/api/guides/sending).",
11881188
"flatPath": "gmail/v1/users/{userId}/messages/send",
11891189
"httpMethod": "POST",
11901190
"id": "gmail.users.messages.send",
@@ -3077,7 +3077,7 @@
30773077
}
30783078
}
30793079
},
3080-
"revision": "20240527",
3080+
"revision": "20250331",
30813081
"rootUrl": "https://gmail.googleapis.com/",
30823082
"schemas": {
30833083
"AutoForwarding": {
@@ -3711,7 +3711,7 @@
37113711
"id": "LanguageSettings",
37123712
"properties": {
37133713
"displayLanguage": {
3714-
"description": "The language to display Gmail in, formatted as an RFC 3066 Language Tag (for example `en-GB`, `fr` or `ja` for British English, French, or Japanese respectively). The set of languages supported by Gmail evolves over time, so please refer to the \"Language\" dropdown in the Gmail settings for all available options, as described in the language settings help article. A table of sample values is also provided in the Managing Language Settings guide Not all Gmail clients can display the same set of languages. In the case that a user's display language is not available for use on a particular client, said client automatically chooses to display in the closest supported variant (or a reasonable default).",
3714+
"description": "The language to display Gmail in, formatted as an RFC 3066 Language Tag (for example `en-GB`, `fr` or `ja` for British English, French, or Japanese respectively). The set of languages supported by Gmail evolves over time, so please refer to the \"Language\" dropdown in the Gmail settings for all available options, as described in the language settings help article. For a table of sample values, see [Manage language settings](https://developers.google.com/workspace/gmail/api/guides/language-settings). Not all Gmail clients can display the same set of languages. In the case that a user's display language is not available for use on a particular client, said client automatically chooses to display in the closest supported variant (or a reasonable default).",
37153715
"type": "string"
37163716
}
37173717
},
@@ -3769,7 +3769,7 @@
37693769
"id": "ListDraftsResponse",
37703770
"properties": {
37713771
"drafts": {
3772-
"description": "List of drafts. Note that the `Message` property in each `Draft` resource only contains an `id` and a `threadId`. The messages.get method can fetch additional message details.",
3772+
"description": "List of drafts. Note that the `Message` property in each `Draft` resource only contains an `id` and a `threadId`. The [`messages.get`](https://developers.google.com/workspace/gmail/api/v1/reference/users/messages/get) method can fetch additional message details.",
37733773
"items": {
37743774
"$ref": "Draft"
37753775
},
@@ -3841,7 +3841,7 @@
38413841
"id": "ListLabelsResponse",
38423842
"properties": {
38433843
"labels": {
3844-
"description": "List of labels. Note that each label resource only contains an `id`, `name`, `messageListVisibility`, `labelListVisibility`, and `type`. The labels.get method can fetch additional label details.",
3844+
"description": "List of labels. Note that each label resource only contains an `id`, `name`, `messageListVisibility`, `labelListVisibility`, and `type`. The [`labels.get`](https://developers.google.com/workspace/gmail/api/v1/reference/users/labels/get) method can fetch additional label details.",
38453845
"items": {
38463846
"$ref": "Label"
38473847
},
@@ -3912,7 +3912,7 @@
39123912
"type": "integer"
39133913
},
39143914
"threads": {
3915-
"description": "List of threads. Note that each thread resource does not contain a list of `messages`. The list of `messages` for a given thread can be fetched using the threads.get method.",
3915+
"description": "List of threads. Note that each thread resource does not contain a list of `messages`. The list of `messages` for a given thread can be fetched using the [`threads.get`](https://developers.google.com/workspace/gmail/api/v1/reference/users/threads/get) method.",
39163916
"items": {
39173917
"$ref": "Thread"
39183918
},

‎src/apis/gmail/v1.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -502,7 +502,7 @@ export namespace gmail_v1 {
502502
*/
503503
export interface Schema$LanguageSettings {
504504
/**
505-
* The language to display Gmail in, formatted as an RFC 3066 Language Tag (for example `en-GB`, `fr` or `ja` for British English, French, or Japanese respectively). The set of languages supported by Gmail evolves over time, so please refer to the "Language" dropdown in the Gmail settings for all available options, as described in the language settings help article. A table of sample values is also provided in the Managing Language Settings guide Not all Gmail clients can display the same set of languages. In the case that a user's display language is not available for use on a particular client, said client automatically chooses to display in the closest supported variant (or a reasonable default).
505+
* The language to display Gmail in, formatted as an RFC 3066 Language Tag (for example `en-GB`, `fr` or `ja` for British English, French, or Japanese respectively). The set of languages supported by Gmail evolves over time, so please refer to the "Language" dropdown in the Gmail settings for all available options, as described in the language settings help article. For a table of sample values, see [Manage language settings](https://developers.google.com/workspace/gmail/api/guides/language-settings). Not all Gmail clients can display the same set of languages. In the case that a user's display language is not available for use on a particular client, said client automatically chooses to display in the closest supported variant (or a reasonable default).
506506
*/
507507
displayLanguage?: string | null;
508508
}
@@ -537,7 +537,7 @@ export namespace gmail_v1 {
537537
}
538538
export interface Schema$ListDraftsResponse {
539539
/**
540-
* List of drafts. Note that the `Message` property in each `Draft` resource only contains an `id` and a `threadId`. The messages.get method can fetch additional message details.
540+
* List of drafts. Note that the `Message` property in each `Draft` resource only contains an `id` and a `threadId`. The [`messages.get`](https://developers.google.com/workspace/gmail/api/v1/reference/users/messages/get) method can fetch additional message details.
541541
*/
542542
drafts?: Schema$Draft[];
543543
/**
@@ -583,7 +583,7 @@ export namespace gmail_v1 {
583583
}
584584
export interface Schema$ListLabelsResponse {
585585
/**
586-
* List of labels. Note that each label resource only contains an `id`, `name`, `messageListVisibility`, `labelListVisibility`, and `type`. The labels.get method can fetch additional label details.
586+
* List of labels. Note that each label resource only contains an `id`, `name`, `messageListVisibility`, `labelListVisibility`, and `type`. The [`labels.get`](https://developers.google.com/workspace/gmail/api/v1/reference/users/labels/get) method can fetch additional label details.
587587
*/
588588
labels?: Schema$Label[];
589589
}
@@ -626,7 +626,7 @@ export namespace gmail_v1 {
626626
*/
627627
resultSizeEstimate?: number | null;
628628
/**
629-
* List of threads. Note that each thread resource does not contain a list of `messages`. The list of `messages` for a given thread can be fetched using the threads.get method.
629+
* List of threads. Note that each thread resource does not contain a list of `messages`. The list of `messages` for a given thread can be fetched using the [`threads.get`](https://developers.google.com/workspace/gmail/api/v1/reference/users/threads/get) method.
630630
*/
631631
threads?: Schema$Thread[];
632632
}
@@ -3420,7 +3420,7 @@ export namespace gmail_v1 {
34203420
}
34213421

34223422
/**
3423-
* Sends the specified message to the recipients in the `To`, `Cc`, and `Bcc` headers. For example usage, see [Sending email](https://developers.google.com/gmail/api/guides/sending).
3423+
* Sends the specified message to the recipients in the `To`, `Cc`, and `Bcc` headers. For example usage, see [Sending email](https://developers.google.com/workspace/gmail/api/guides/sending).
34243424
*
34253425
* @param params - Parameters for request
34263426
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -3824,7 +3824,7 @@ export namespace gmail_v1 {
38243824
*/
38253825
includeSpamTrash?: boolean;
38263826
/**
3827-
* Only return messages with labels that match all of the specified label IDs. Messages in a thread might have labels that other messages in the same thread don't have. To learn more, see [Manage labels on messages and threads](https://developers.google.com/gmail/api/guides/labels#manage_labels_on_messages_threads).
3827+
* Only return messages with labels that match all of the specified label IDs. Messages in a thread might have labels that other messages in the same thread don't have. To learn more, see [Manage labels on messages and threads](https://developers.google.com/workspace/gmail/api/guides/labels#manage_labels_on_messages_threads).
38283828
*/
38293829
labelIds?: string[];
38303830
/**

0 commit comments

Comments
 (0)