@lanes-sh/link 0.1.0
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.
- package/LICENSE +202 -0
- package/README.md +144 -0
- package/bin/lanes +42 -0
- package/instructions/agents/lanes-link-scout.md +73 -0
- package/instructions/skills/lanes-link/SKILL.md +187 -0
- package/package.json +95 -0
- package/src/audit/chain.ts +278 -0
- package/src/audit/conformance.ts +374 -0
- package/src/audit/fanout.ts +97 -0
- package/src/audit/index.ts +218 -0
- package/src/audit/stdout.ts +60 -0
- package/src/auth/index.ts +220 -0
- package/src/auth/oauth/metadata.ts +75 -0
- package/src/auth/oauth/server.ts +385 -0
- package/src/auth/oauth/store.ts +215 -0
- package/src/auth/oidc.ts +206 -0
- package/src/auth/remote.ts +72 -0
- package/src/cli/argv.ts +94 -0
- package/src/cli/callback-page.ts +256 -0
- package/src/cli/commands/connect/accounts.ts +94 -0
- package/src/cli/commands/connect/authorise.ts +298 -0
- package/src/cli/commands/connect/client.ts +284 -0
- package/src/cli/commands/connect/index.ts +398 -0
- package/src/cli/commands/connect/outcome.ts +119 -0
- package/src/cli/commands/connect/requirements.ts +103 -0
- package/src/cli/commands/connect/scopes-gate.ts +146 -0
- package/src/cli/commands/connect/settle.ts +136 -0
- package/src/cli/commands/connect/setup.ts +276 -0
- package/src/cli/commands/mcp/assets.ts +189 -0
- package/src/cli/commands/mcp/harnesses.ts +143 -0
- package/src/cli/commands/mcp/list.ts +70 -0
- package/src/cli/commands/mcp/register.ts +199 -0
- package/src/cli/commands/mcp/stdio.ts +57 -0
- package/src/cli/commands/mcp.ts +22 -0
- package/src/cli/commands/operate/attach.ts +121 -0
- package/src/cli/commands/operate/audit.ts +119 -0
- package/src/cli/commands/operate/inspect.ts +355 -0
- package/src/cli/commands/operate/outputs.ts +206 -0
- package/src/cli/commands/operate/policy.ts +80 -0
- package/src/cli/commands/operate/serve.ts +55 -0
- package/src/cli/commands/operate/status.ts +133 -0
- package/src/cli/commands/operate/token.ts +70 -0
- package/src/cli/commands/operate.ts +27 -0
- package/src/cli/commands/owner/memory.ts +110 -0
- package/src/cli/commands/owner/shared.ts +125 -0
- package/src/cli/commands/owner/skills.ts +92 -0
- package/src/cli/commands/owner/vault.ts +140 -0
- package/src/cli/commands/owner.ts +46 -0
- package/src/cli/commands/profile/removal.ts +278 -0
- package/src/cli/commands/profile/remove.ts +315 -0
- package/src/cli/commands/profile.ts +156 -0
- package/src/cli/commands/secrets.ts +176 -0
- package/src/cli/commands/setup.ts +150 -0
- package/src/cli/commands/target.ts +310 -0
- package/src/cli/config-edit.ts +397 -0
- package/src/cli/endpoint-url.ts +77 -0
- package/src/cli/identity.ts +109 -0
- package/src/cli/lanes.ts +78 -0
- package/src/cli/main.ts +333 -0
- package/src/cli/oauth-error.ts +13 -0
- package/src/cli/oauth-exchange.ts +146 -0
- package/src/cli/oauth.ts +354 -0
- package/src/cli/output.ts +184 -0
- package/src/cli/prompt.ts +180 -0
- package/src/cli/publish.ts +185 -0
- package/src/cli/runtime/discovery.ts +123 -0
- package/src/cli/runtime/open.ts +342 -0
- package/src/cli/runtime/registry.ts +185 -0
- package/src/cli/runtime/select.ts +124 -0
- package/src/cli/runtime.ts +34 -0
- package/src/cli/scopes.ts +63 -0
- package/src/cli/usage.ts +111 -0
- package/src/cli/version.ts +25 -0
- package/src/connectivity/auth/README.md +36 -0
- package/src/connectivity/auth/api-key/index.ts +43 -0
- package/src/connectivity/auth/authorize.ts +49 -0
- package/src/connectivity/auth/basic/index.ts +68 -0
- package/src/connectivity/auth/bearer/index.ts +13 -0
- package/src/connectivity/auth/credential.ts +19 -0
- package/src/connectivity/auth/header/index.ts +18 -0
- package/src/connectivity/auth/index.ts +35 -0
- package/src/connectivity/auth/none/index.ts +12 -0
- package/src/connectivity/auth/oauth-authcode/broker.ts +261 -0
- package/src/connectivity/auth/oauth-authcode/index.ts +64 -0
- package/src/connectivity/auth/oauth-authcode/provider.ts +279 -0
- package/src/connectivity/auth/oauth-authcode/refresh.ts +118 -0
- package/src/connectivity/auth/resolve.ts +61 -0
- package/src/connectivity/auth/strategy/index.ts +14 -0
- package/src/connectivity/capability.ts +164 -0
- package/src/connectivity/connector.ts +175 -0
- package/src/connectivity/context.ts +77 -0
- package/src/connectivity/index.ts +94 -0
- package/src/connectivity/mail/attachments.ts +368 -0
- package/src/connectivity/mail/compose.ts +73 -0
- package/src/connectivity/mail/index.ts +40 -0
- package/src/connectivity/mail/message.ts +82 -0
- package/src/connectivity/mail/nodemailer.d.ts +83 -0
- package/src/connectivity/mail/staging.ts +143 -0
- package/src/connectivity/mail/url.ts +301 -0
- package/src/connectivity/manifest/auth.ts +135 -0
- package/src/connectivity/manifest/bundles.ts +23 -0
- package/src/connectivity/manifest/connector.ts +168 -0
- package/src/connectivity/manifest/credential-ref.ts +73 -0
- package/src/connectivity/manifest/identity.ts +43 -0
- package/src/connectivity/manifest/index.ts +46 -0
- package/src/connectivity/manifest/primitives.ts +20 -0
- package/src/connectivity/manifest/provider.ts +208 -0
- package/src/connectivity/manifest/requirements.ts +146 -0
- package/src/connectivity/manifest/setup.ts +55 -0
- package/src/connectivity/provider.ts +163 -0
- package/src/connectivity/transports/README.md +33 -0
- package/src/connectivity/transports/composite/index.ts +68 -0
- package/src/connectivity/transports/dav/calendar.ts +217 -0
- package/src/connectivity/transports/dav/capabilities.ts +151 -0
- package/src/connectivity/transports/dav/client.ts +226 -0
- package/src/connectivity/transports/dav/contacts.ts +75 -0
- package/src/connectivity/transports/dav/ical.ts +412 -0
- package/src/connectivity/transports/dav/index.ts +143 -0
- package/src/connectivity/transports/dav/operations.ts +43 -0
- package/src/connectivity/transports/dav/request.ts +161 -0
- package/src/connectivity/transports/dav/xml.ts +123 -0
- package/src/connectivity/transports/factory.ts +181 -0
- package/src/connectivity/transports/fs/capabilities.ts +88 -0
- package/src/connectivity/transports/fs/commands.ts +258 -0
- package/src/connectivity/transports/fs/index.ts +121 -0
- package/src/connectivity/transports/fs/operations.ts +45 -0
- package/src/connectivity/transports/fs/paths.ts +120 -0
- package/src/connectivity/transports/fs/result.ts +12 -0
- package/src/connectivity/transports/http/index.ts +255 -0
- package/src/connectivity/transports/imap/attachment.ts +166 -0
- package/src/connectivity/transports/imap/capabilities.ts +158 -0
- package/src/connectivity/transports/imap/client.ts +398 -0
- package/src/connectivity/transports/imap/commands.ts +385 -0
- package/src/connectivity/transports/imap/index.ts +152 -0
- package/src/connectivity/transports/imap/operations.ts +64 -0
- package/src/connectivity/transports/imap/parse.ts +130 -0
- package/src/connectivity/transports/imap/parser.ts +272 -0
- package/src/connectivity/transports/imap/result.ts +15 -0
- package/src/connectivity/transports/imap/send.ts +92 -0
- package/src/connectivity/transports/imap/socket.ts +111 -0
- package/src/connectivity/transports/imap/utf7.ts +136 -0
- package/src/connectivity/transports/index.ts +20 -0
- package/src/connectivity/transports/local/index.ts +173 -0
- package/src/connectivity/transports/mcp/index.ts +215 -0
- package/src/deployments/README.md +63 -0
- package/src/deployments/adapters/audit-blob.ts +203 -0
- package/src/deployments/adapters/filesystem.ts +184 -0
- package/src/deployments/adapters/gcp-secret-manager.ts +492 -0
- package/src/deployments/adapters/gcs.ts +191 -0
- package/src/deployments/adapters/otlp.ts +128 -0
- package/src/deployments/adapters/s3.ts +195 -0
- package/src/deployments/azure/README.md +21 -0
- package/src/deployments/bootstrap.ts +177 -0
- package/src/deployments/deploy.ts +290 -0
- package/src/deployments/driver.ts +157 -0
- package/src/deployments/drivers.ts +35 -0
- package/src/deployments/gcp/Dockerfile +70 -0
- package/src/deployments/gcp/cloudbuild.yaml +31 -0
- package/src/deployments/gcp/driver.ts +175 -0
- package/src/deployments/gcp/gcloud.ts +178 -0
- package/src/deployments/gcp/provision.ts +290 -0
- package/src/deployments/gcp/survey.ts +319 -0
- package/src/deployments/local/README.md +12 -0
- package/src/deployments/prepare.ts +257 -0
- package/src/deployments/steps.ts +137 -0
- package/src/deployments/target.ts +295 -0
- package/src/deployments/upload.ts +207 -0
- package/src/dispatch/context.ts +195 -0
- package/src/dispatch/dispatch.ts +350 -0
- package/src/dispatch/index.ts +32 -0
- package/src/dispatch/staging.ts +102 -0
- package/src/policy/index.ts +179 -0
- package/src/policy/limits.ts +77 -0
- package/src/profile/authorization.ts +81 -0
- package/src/profile/files.ts +71 -0
- package/src/profile/index.ts +76 -0
- package/src/profile/layout.ts +123 -0
- package/src/profile/load.ts +199 -0
- package/src/profile/primitives.ts +45 -0
- package/src/profile/schema.ts +347 -0
- package/src/profile/secret-detection.ts +162 -0
- package/src/profile/targets.ts +152 -0
- package/src/profile/workspace.ts +262 -0
- package/src/providers/custom/index.ts +21 -0
- package/src/providers/custom/load.ts +115 -0
- package/src/providers/custom/template.ts +156 -0
- package/src/providers/example/provider.ts +207 -0
- package/src/providers/google/calendar/index.ts +66 -0
- package/src/providers/google/calendar/redact.ts +40 -0
- package/src/providers/google/contacts/index.ts +50 -0
- package/src/providers/google/contacts/redact.ts +21 -0
- package/src/providers/google/docs/index.ts +45 -0
- package/src/providers/google/drive/hints.ts +28 -0
- package/src/providers/google/drive/index.ts +34 -0
- package/src/providers/google/drive/redact.ts +39 -0
- package/src/providers/google/drive-mcp/index.ts +21 -0
- package/src/providers/google/gmail/api.ts +42 -0
- package/src/providers/google/gmail/attachment.ts +142 -0
- package/src/providers/google/gmail/hints.ts +55 -0
- package/src/providers/google/gmail/index.ts +112 -0
- package/src/providers/google/gmail/redact.ts +56 -0
- package/src/providers/google/gmail/send.ts +365 -0
- package/src/providers/google/gmail-mcp/index.ts +35 -0
- package/src/providers/google/index.ts +10 -0
- package/src/providers/google/shared/oauth.ts +122 -0
- package/src/providers/google/shared/scopes.ts +99 -0
- package/src/providers/google/shared/setup.ts +80 -0
- package/src/providers/google/sheets/hints.ts +45 -0
- package/src/providers/google/sheets/index.ts +70 -0
- package/src/providers/google/sheets/redact.ts +45 -0
- package/src/providers/google/specs/calendar.v3.json +1829 -0
- package/src/providers/google/specs/docs.v1.json +381 -0
- package/src/providers/google/specs/drive.v3.json +2208 -0
- package/src/providers/google/specs/gmail.v1.json +2578 -0
- package/src/providers/google/specs/people.v1.json +506 -0
- package/src/providers/google/specs/sheets.v4.json +1269 -0
- package/src/providers/google/specs/tasks.v1.json +840 -0
- package/src/providers/google/specs/vendor.ts +661 -0
- package/src/providers/google/tasks/index.ts +53 -0
- package/src/providers/google/tasks/redact.ts +34 -0
- package/src/providers/harness.ts +95 -0
- package/src/providers/icloud/calendar/index.ts +27 -0
- package/src/providers/icloud/contacts/index.ts +17 -0
- package/src/providers/icloud/drive/index.ts +47 -0
- package/src/providers/icloud/index.ts +8 -0
- package/src/providers/icloud/mail/index.ts +37 -0
- package/src/providers/icloud/shared/setup.ts +66 -0
- package/src/providers/index.ts +93 -0
- package/src/providers/linear/index.ts +11 -0
- package/src/providers/linear/scopes.ts +7 -0
- package/src/providers/memory/provider.ts +429 -0
- package/src/providers/notion/index.ts +19 -0
- package/src/providers/owner.ts +49 -0
- package/src/providers/scopes.ts +26 -0
- package/src/providers/setup/plan.ts +141 -0
- package/src/providers/setup/provider.ts +323 -0
- package/src/providers/shared/frontmatter.ts +119 -0
- package/src/providers/skills/provider.ts +283 -0
- package/src/providers/skills/store.ts +252 -0
- package/src/providers/vault/provider.ts +194 -0
- package/src/registry/index.ts +36 -0
- package/src/registry/policy-bridge.ts +32 -0
- package/src/registry/reconcile.ts +313 -0
- package/src/registry/registry.ts +240 -0
- package/src/secrets/document.ts +293 -0
- package/src/secrets/index.ts +154 -0
- package/src/secrets/system.ts +173 -0
- package/src/secrets/vault.ts +336 -0
- package/src/server/attachments.ts +197 -0
- package/src/server/container.ts +96 -0
- package/src/server/edge.ts +53 -0
- package/src/server/endpoint.ts +352 -0
- package/src/server/generations.ts +362 -0
- package/src/server/harness.ts +400 -0
- package/src/server/index.ts +331 -0
- package/src/server/logging.ts +41 -0
- package/src/server/mcp/build.ts +68 -0
- package/src/server/mcp/icon.ts +145 -0
- package/src/server/mcp/index.ts +32 -0
- package/src/server/mcp/instructions.ts +245 -0
- package/src/server/mcp/naming.ts +39 -0
- package/src/server/mcp/prompts.ts +78 -0
- package/src/server/mcp/resources.ts +106 -0
- package/src/server/mcp/routing.ts +117 -0
- package/src/server/mcp/schema.ts +78 -0
- package/src/server/mcp/tools.ts +186 -0
- package/src/server/mcp/visibility.ts +132 -0
- package/src/server/oauth.ts +222 -0
- package/src/server/rebinding.ts +53 -0
- package/src/server/stdio.ts +192 -0
- package/src/stores/blobs/conformance.ts +223 -0
- package/src/stores/blobs/index.ts +125 -0
- package/src/stores/blobs/testing.ts +49 -0
- package/src/stores/state/index.ts +247 -0
- package/src/stores/state/keys.ts +68 -0
- package/src/stores/state/testing.ts +41 -0
|
@@ -0,0 +1,2578 @@
|
|
|
1
|
+
{
|
|
2
|
+
"openapi": "3.0.0",
|
|
3
|
+
"info": {
|
|
4
|
+
"contact": {
|
|
5
|
+
"name": "Google",
|
|
6
|
+
"url": "https://google.com",
|
|
7
|
+
"x-twitter": "youtube"
|
|
8
|
+
},
|
|
9
|
+
"description": "The Gmail API lets you view and manage Gmail mailbox data like threads, messages, and labels.",
|
|
10
|
+
"license": {
|
|
11
|
+
"name": "Creative Commons Attribution 3.0",
|
|
12
|
+
"url": "http://creativecommons.org/licenses/by/3.0/"
|
|
13
|
+
},
|
|
14
|
+
"termsOfService": "https://developers.google.com/terms/",
|
|
15
|
+
"title": "Gmail API",
|
|
16
|
+
"version": "v1",
|
|
17
|
+
"x-apiClientRegistration": {
|
|
18
|
+
"url": "https://console.developers.google.com"
|
|
19
|
+
},
|
|
20
|
+
"x-apisguru-categories": [
|
|
21
|
+
"analytics",
|
|
22
|
+
"media"
|
|
23
|
+
],
|
|
24
|
+
"x-logo": {
|
|
25
|
+
"url": "https://api.apis.guru/v2/cache/logo/https_www.google.com_images_branding_googlelogo_2x_googlelogo_color_272x92dp.png"
|
|
26
|
+
},
|
|
27
|
+
"x-origin": [
|
|
28
|
+
{
|
|
29
|
+
"format": "google",
|
|
30
|
+
"url": "https://gmail.googleapis.com/$discovery/rest?version=v1",
|
|
31
|
+
"version": "v1"
|
|
32
|
+
}
|
|
33
|
+
],
|
|
34
|
+
"x-providerName": "googleapis.com",
|
|
35
|
+
"x-serviceName": "gmail",
|
|
36
|
+
"x-vendored-from": "https://api.apis.guru/v2/specs/googleapis.com/gmail/v1/openapi.json",
|
|
37
|
+
"x-vendored-note": "Trimmed by src/providers/google/specs/vendor.ts. Committed deliberately: a spec decides which paths are called with the operator token, so it must be reviewable rather than fetched at connect time."
|
|
38
|
+
},
|
|
39
|
+
"servers": [
|
|
40
|
+
{
|
|
41
|
+
"url": "https://gmail.googleapis.com/"
|
|
42
|
+
}
|
|
43
|
+
],
|
|
44
|
+
"paths": {
|
|
45
|
+
"/gmail/v1/users/{userId}/drafts": {
|
|
46
|
+
"get": {
|
|
47
|
+
"description": "Lists the drafts in the user's mailbox.",
|
|
48
|
+
"operationId": "gmail.users.drafts.list",
|
|
49
|
+
"parameters": [
|
|
50
|
+
{
|
|
51
|
+
"description": "The user's email address. The special value `me` can be used to indicate the authenticated user.",
|
|
52
|
+
"in": "path",
|
|
53
|
+
"name": "userId",
|
|
54
|
+
"required": true,
|
|
55
|
+
"schema": {
|
|
56
|
+
"type": "string"
|
|
57
|
+
}
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
"description": "Include drafts from `SPAM` and `TRASH` in the results.",
|
|
61
|
+
"in": "query",
|
|
62
|
+
"name": "includeSpamTrash",
|
|
63
|
+
"schema": {
|
|
64
|
+
"type": "boolean"
|
|
65
|
+
}
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
"description": "Maximum number of drafts to return. This field defaults to 100. The maximum allowed value for this field is 500.",
|
|
69
|
+
"in": "query",
|
|
70
|
+
"name": "maxResults",
|
|
71
|
+
"schema": {
|
|
72
|
+
"type": "integer"
|
|
73
|
+
}
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
"description": "Page token to retrieve a specific page of results in the list.",
|
|
77
|
+
"in": "query",
|
|
78
|
+
"name": "pageToken",
|
|
79
|
+
"schema": {
|
|
80
|
+
"type": "string"
|
|
81
|
+
}
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
"description": "Only return draft messages matching the specified query. Supports the same query format as the Gmail search box. For example, `\"from:someuser@example.com rfc822msgid: is:unread\"`.",
|
|
85
|
+
"in": "query",
|
|
86
|
+
"name": "q",
|
|
87
|
+
"schema": {
|
|
88
|
+
"type": "string"
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
],
|
|
92
|
+
"responses": {
|
|
93
|
+
"200": {
|
|
94
|
+
"description": "Success. The response body is returned verbatim."
|
|
95
|
+
}
|
|
96
|
+
},
|
|
97
|
+
"security": [
|
|
98
|
+
{
|
|
99
|
+
"Oauth2": [
|
|
100
|
+
"https://mail.google.com/"
|
|
101
|
+
],
|
|
102
|
+
"Oauth2c": [
|
|
103
|
+
"https://mail.google.com/"
|
|
104
|
+
]
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
"Oauth2": [
|
|
108
|
+
"https://www.googleapis.com/auth/gmail.compose"
|
|
109
|
+
],
|
|
110
|
+
"Oauth2c": [
|
|
111
|
+
"https://www.googleapis.com/auth/gmail.compose"
|
|
112
|
+
]
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
"Oauth2": [
|
|
116
|
+
"https://www.googleapis.com/auth/gmail.modify"
|
|
117
|
+
],
|
|
118
|
+
"Oauth2c": [
|
|
119
|
+
"https://www.googleapis.com/auth/gmail.modify"
|
|
120
|
+
]
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
"Oauth2": [
|
|
124
|
+
"https://www.googleapis.com/auth/gmail.readonly"
|
|
125
|
+
],
|
|
126
|
+
"Oauth2c": [
|
|
127
|
+
"https://www.googleapis.com/auth/gmail.readonly"
|
|
128
|
+
]
|
|
129
|
+
}
|
|
130
|
+
],
|
|
131
|
+
"tags": [
|
|
132
|
+
"users"
|
|
133
|
+
]
|
|
134
|
+
},
|
|
135
|
+
"parameters": [
|
|
136
|
+
{
|
|
137
|
+
"$ref": "#/components/parameters/alt"
|
|
138
|
+
},
|
|
139
|
+
{
|
|
140
|
+
"$ref": "#/components/parameters/fields"
|
|
141
|
+
}
|
|
142
|
+
]
|
|
143
|
+
},
|
|
144
|
+
"/gmail/v1/users/{userId}/drafts/send": {
|
|
145
|
+
"parameters": [
|
|
146
|
+
{
|
|
147
|
+
"$ref": "#/components/parameters/alt"
|
|
148
|
+
},
|
|
149
|
+
{
|
|
150
|
+
"$ref": "#/components/parameters/fields"
|
|
151
|
+
}
|
|
152
|
+
],
|
|
153
|
+
"post": {
|
|
154
|
+
"description": "Sends the specified, existing draft to the recipients in the `To`, `Cc`, and `Bcc` headers.",
|
|
155
|
+
"operationId": "gmail.users.drafts.send",
|
|
156
|
+
"parameters": [
|
|
157
|
+
{
|
|
158
|
+
"description": "The user's email address. The special value `me` can be used to indicate the authenticated user.",
|
|
159
|
+
"in": "path",
|
|
160
|
+
"name": "userId",
|
|
161
|
+
"required": true,
|
|
162
|
+
"schema": {
|
|
163
|
+
"type": "string"
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
],
|
|
167
|
+
"requestBody": {
|
|
168
|
+
"content": {
|
|
169
|
+
"message/cpim": {
|
|
170
|
+
"schema": {
|
|
171
|
+
"$ref": "#/components/schemas/Draft"
|
|
172
|
+
}
|
|
173
|
+
},
|
|
174
|
+
"message/delivery-status": {
|
|
175
|
+
"schema": {
|
|
176
|
+
"$ref": "#/components/schemas/Draft"
|
|
177
|
+
}
|
|
178
|
+
},
|
|
179
|
+
"message/disposition-notification": {
|
|
180
|
+
"schema": {
|
|
181
|
+
"$ref": "#/components/schemas/Draft"
|
|
182
|
+
}
|
|
183
|
+
},
|
|
184
|
+
"message/external-body": {
|
|
185
|
+
"schema": {
|
|
186
|
+
"$ref": "#/components/schemas/Draft"
|
|
187
|
+
}
|
|
188
|
+
},
|
|
189
|
+
"message/feedback-report": {
|
|
190
|
+
"schema": {
|
|
191
|
+
"$ref": "#/components/schemas/Draft"
|
|
192
|
+
}
|
|
193
|
+
},
|
|
194
|
+
"message/global": {
|
|
195
|
+
"schema": {
|
|
196
|
+
"$ref": "#/components/schemas/Draft"
|
|
197
|
+
}
|
|
198
|
+
},
|
|
199
|
+
"message/global-delivery-status": {
|
|
200
|
+
"schema": {
|
|
201
|
+
"$ref": "#/components/schemas/Draft"
|
|
202
|
+
}
|
|
203
|
+
},
|
|
204
|
+
"message/global-disposition-notification": {
|
|
205
|
+
"schema": {
|
|
206
|
+
"$ref": "#/components/schemas/Draft"
|
|
207
|
+
}
|
|
208
|
+
},
|
|
209
|
+
"message/global-headers": {
|
|
210
|
+
"schema": {
|
|
211
|
+
"$ref": "#/components/schemas/Draft"
|
|
212
|
+
}
|
|
213
|
+
},
|
|
214
|
+
"message/http": {
|
|
215
|
+
"schema": {
|
|
216
|
+
"$ref": "#/components/schemas/Draft"
|
|
217
|
+
}
|
|
218
|
+
},
|
|
219
|
+
"message/imdn+xml": {
|
|
220
|
+
"schema": {
|
|
221
|
+
"$ref": "#/components/schemas/Draft"
|
|
222
|
+
}
|
|
223
|
+
},
|
|
224
|
+
"message/news": {
|
|
225
|
+
"schema": {
|
|
226
|
+
"$ref": "#/components/schemas/Draft"
|
|
227
|
+
}
|
|
228
|
+
},
|
|
229
|
+
"message/partial": {
|
|
230
|
+
"schema": {
|
|
231
|
+
"$ref": "#/components/schemas/Draft"
|
|
232
|
+
}
|
|
233
|
+
},
|
|
234
|
+
"message/rfc822": {
|
|
235
|
+
"schema": {
|
|
236
|
+
"$ref": "#/components/schemas/Draft"
|
|
237
|
+
}
|
|
238
|
+
},
|
|
239
|
+
"message/s-http": {
|
|
240
|
+
"schema": {
|
|
241
|
+
"$ref": "#/components/schemas/Draft"
|
|
242
|
+
}
|
|
243
|
+
},
|
|
244
|
+
"message/sip": {
|
|
245
|
+
"schema": {
|
|
246
|
+
"$ref": "#/components/schemas/Draft"
|
|
247
|
+
}
|
|
248
|
+
},
|
|
249
|
+
"message/sipfrag": {
|
|
250
|
+
"schema": {
|
|
251
|
+
"$ref": "#/components/schemas/Draft"
|
|
252
|
+
}
|
|
253
|
+
},
|
|
254
|
+
"message/tracking-status": {
|
|
255
|
+
"schema": {
|
|
256
|
+
"$ref": "#/components/schemas/Draft"
|
|
257
|
+
}
|
|
258
|
+
},
|
|
259
|
+
"message/vnd.si.simp": {
|
|
260
|
+
"schema": {
|
|
261
|
+
"$ref": "#/components/schemas/Draft"
|
|
262
|
+
}
|
|
263
|
+
},
|
|
264
|
+
"message/vnd.wfa.wsc": {
|
|
265
|
+
"schema": {
|
|
266
|
+
"$ref": "#/components/schemas/Draft"
|
|
267
|
+
}
|
|
268
|
+
}
|
|
269
|
+
}
|
|
270
|
+
},
|
|
271
|
+
"responses": {
|
|
272
|
+
"200": {
|
|
273
|
+
"description": "Success. The response body is returned verbatim."
|
|
274
|
+
}
|
|
275
|
+
},
|
|
276
|
+
"security": [
|
|
277
|
+
{
|
|
278
|
+
"Oauth2": [
|
|
279
|
+
"https://mail.google.com/"
|
|
280
|
+
],
|
|
281
|
+
"Oauth2c": [
|
|
282
|
+
"https://mail.google.com/"
|
|
283
|
+
]
|
|
284
|
+
},
|
|
285
|
+
{
|
|
286
|
+
"Oauth2": [
|
|
287
|
+
"https://www.googleapis.com/auth/gmail.addons.current.action.compose"
|
|
288
|
+
],
|
|
289
|
+
"Oauth2c": [
|
|
290
|
+
"https://www.googleapis.com/auth/gmail.addons.current.action.compose"
|
|
291
|
+
]
|
|
292
|
+
},
|
|
293
|
+
{
|
|
294
|
+
"Oauth2": [
|
|
295
|
+
"https://www.googleapis.com/auth/gmail.compose"
|
|
296
|
+
],
|
|
297
|
+
"Oauth2c": [
|
|
298
|
+
"https://www.googleapis.com/auth/gmail.compose"
|
|
299
|
+
]
|
|
300
|
+
},
|
|
301
|
+
{
|
|
302
|
+
"Oauth2": [
|
|
303
|
+
"https://www.googleapis.com/auth/gmail.modify"
|
|
304
|
+
],
|
|
305
|
+
"Oauth2c": [
|
|
306
|
+
"https://www.googleapis.com/auth/gmail.modify"
|
|
307
|
+
]
|
|
308
|
+
}
|
|
309
|
+
],
|
|
310
|
+
"tags": [
|
|
311
|
+
"users"
|
|
312
|
+
]
|
|
313
|
+
}
|
|
314
|
+
},
|
|
315
|
+
"/gmail/v1/users/{userId}/drafts/{id}": {
|
|
316
|
+
"delete": {
|
|
317
|
+
"description": "Immediately and permanently deletes the specified draft. Does not simply trash it.",
|
|
318
|
+
"operationId": "gmail.users.drafts.delete",
|
|
319
|
+
"parameters": [
|
|
320
|
+
{
|
|
321
|
+
"description": "The user's email address. The special value `me` can be used to indicate the authenticated user.",
|
|
322
|
+
"in": "path",
|
|
323
|
+
"name": "userId",
|
|
324
|
+
"required": true,
|
|
325
|
+
"schema": {
|
|
326
|
+
"type": "string"
|
|
327
|
+
}
|
|
328
|
+
},
|
|
329
|
+
{
|
|
330
|
+
"description": "The ID of the draft to delete.",
|
|
331
|
+
"in": "path",
|
|
332
|
+
"name": "id",
|
|
333
|
+
"required": true,
|
|
334
|
+
"schema": {
|
|
335
|
+
"type": "string"
|
|
336
|
+
}
|
|
337
|
+
}
|
|
338
|
+
],
|
|
339
|
+
"responses": {
|
|
340
|
+
"200": {
|
|
341
|
+
"description": "Success. The response body is returned verbatim."
|
|
342
|
+
}
|
|
343
|
+
},
|
|
344
|
+
"security": [
|
|
345
|
+
{
|
|
346
|
+
"Oauth2": [
|
|
347
|
+
"https://mail.google.com/"
|
|
348
|
+
],
|
|
349
|
+
"Oauth2c": [
|
|
350
|
+
"https://mail.google.com/"
|
|
351
|
+
]
|
|
352
|
+
},
|
|
353
|
+
{
|
|
354
|
+
"Oauth2": [
|
|
355
|
+
"https://www.googleapis.com/auth/gmail.addons.current.action.compose"
|
|
356
|
+
],
|
|
357
|
+
"Oauth2c": [
|
|
358
|
+
"https://www.googleapis.com/auth/gmail.addons.current.action.compose"
|
|
359
|
+
]
|
|
360
|
+
},
|
|
361
|
+
{
|
|
362
|
+
"Oauth2": [
|
|
363
|
+
"https://www.googleapis.com/auth/gmail.compose"
|
|
364
|
+
],
|
|
365
|
+
"Oauth2c": [
|
|
366
|
+
"https://www.googleapis.com/auth/gmail.compose"
|
|
367
|
+
]
|
|
368
|
+
},
|
|
369
|
+
{
|
|
370
|
+
"Oauth2": [
|
|
371
|
+
"https://www.googleapis.com/auth/gmail.modify"
|
|
372
|
+
],
|
|
373
|
+
"Oauth2c": [
|
|
374
|
+
"https://www.googleapis.com/auth/gmail.modify"
|
|
375
|
+
]
|
|
376
|
+
}
|
|
377
|
+
],
|
|
378
|
+
"tags": [
|
|
379
|
+
"users"
|
|
380
|
+
]
|
|
381
|
+
},
|
|
382
|
+
"get": {
|
|
383
|
+
"description": "Gets the specified draft.",
|
|
384
|
+
"operationId": "gmail.users.drafts.get",
|
|
385
|
+
"parameters": [
|
|
386
|
+
{
|
|
387
|
+
"description": "The user's email address. The special value `me` can be used to indicate the authenticated user.",
|
|
388
|
+
"in": "path",
|
|
389
|
+
"name": "userId",
|
|
390
|
+
"required": true,
|
|
391
|
+
"schema": {
|
|
392
|
+
"type": "string"
|
|
393
|
+
}
|
|
394
|
+
},
|
|
395
|
+
{
|
|
396
|
+
"description": "The ID of the draft to retrieve.",
|
|
397
|
+
"in": "path",
|
|
398
|
+
"name": "id",
|
|
399
|
+
"required": true,
|
|
400
|
+
"schema": {
|
|
401
|
+
"type": "string"
|
|
402
|
+
}
|
|
403
|
+
},
|
|
404
|
+
{
|
|
405
|
+
"description": "The format to return the draft in.",
|
|
406
|
+
"in": "query",
|
|
407
|
+
"name": "format",
|
|
408
|
+
"schema": {
|
|
409
|
+
"enum": [
|
|
410
|
+
"minimal",
|
|
411
|
+
"full",
|
|
412
|
+
"raw",
|
|
413
|
+
"metadata"
|
|
414
|
+
],
|
|
415
|
+
"type": "string"
|
|
416
|
+
}
|
|
417
|
+
}
|
|
418
|
+
],
|
|
419
|
+
"responses": {
|
|
420
|
+
"200": {
|
|
421
|
+
"description": "Success. The response body is returned verbatim."
|
|
422
|
+
}
|
|
423
|
+
},
|
|
424
|
+
"security": [
|
|
425
|
+
{
|
|
426
|
+
"Oauth2": [
|
|
427
|
+
"https://mail.google.com/"
|
|
428
|
+
],
|
|
429
|
+
"Oauth2c": [
|
|
430
|
+
"https://mail.google.com/"
|
|
431
|
+
]
|
|
432
|
+
},
|
|
433
|
+
{
|
|
434
|
+
"Oauth2": [
|
|
435
|
+
"https://www.googleapis.com/auth/gmail.compose"
|
|
436
|
+
],
|
|
437
|
+
"Oauth2c": [
|
|
438
|
+
"https://www.googleapis.com/auth/gmail.compose"
|
|
439
|
+
]
|
|
440
|
+
},
|
|
441
|
+
{
|
|
442
|
+
"Oauth2": [
|
|
443
|
+
"https://www.googleapis.com/auth/gmail.modify"
|
|
444
|
+
],
|
|
445
|
+
"Oauth2c": [
|
|
446
|
+
"https://www.googleapis.com/auth/gmail.modify"
|
|
447
|
+
]
|
|
448
|
+
},
|
|
449
|
+
{
|
|
450
|
+
"Oauth2": [
|
|
451
|
+
"https://www.googleapis.com/auth/gmail.readonly"
|
|
452
|
+
],
|
|
453
|
+
"Oauth2c": [
|
|
454
|
+
"https://www.googleapis.com/auth/gmail.readonly"
|
|
455
|
+
]
|
|
456
|
+
}
|
|
457
|
+
],
|
|
458
|
+
"tags": [
|
|
459
|
+
"users"
|
|
460
|
+
]
|
|
461
|
+
},
|
|
462
|
+
"parameters": [
|
|
463
|
+
{
|
|
464
|
+
"$ref": "#/components/parameters/alt"
|
|
465
|
+
},
|
|
466
|
+
{
|
|
467
|
+
"$ref": "#/components/parameters/fields"
|
|
468
|
+
}
|
|
469
|
+
]
|
|
470
|
+
},
|
|
471
|
+
"/gmail/v1/users/{userId}/labels": {
|
|
472
|
+
"get": {
|
|
473
|
+
"description": "Lists all labels in the user's mailbox.",
|
|
474
|
+
"operationId": "gmail.users.labels.list",
|
|
475
|
+
"parameters": [
|
|
476
|
+
{
|
|
477
|
+
"description": "The user's email address. The special value `me` can be used to indicate the authenticated user.",
|
|
478
|
+
"in": "path",
|
|
479
|
+
"name": "userId",
|
|
480
|
+
"required": true,
|
|
481
|
+
"schema": {
|
|
482
|
+
"type": "string"
|
|
483
|
+
}
|
|
484
|
+
}
|
|
485
|
+
],
|
|
486
|
+
"responses": {
|
|
487
|
+
"200": {
|
|
488
|
+
"description": "Success. The response body is returned verbatim."
|
|
489
|
+
}
|
|
490
|
+
},
|
|
491
|
+
"security": [
|
|
492
|
+
{
|
|
493
|
+
"Oauth2": [
|
|
494
|
+
"https://mail.google.com/"
|
|
495
|
+
],
|
|
496
|
+
"Oauth2c": [
|
|
497
|
+
"https://mail.google.com/"
|
|
498
|
+
]
|
|
499
|
+
},
|
|
500
|
+
{
|
|
501
|
+
"Oauth2": [
|
|
502
|
+
"https://www.googleapis.com/auth/gmail.labels"
|
|
503
|
+
],
|
|
504
|
+
"Oauth2c": [
|
|
505
|
+
"https://www.googleapis.com/auth/gmail.labels"
|
|
506
|
+
]
|
|
507
|
+
},
|
|
508
|
+
{
|
|
509
|
+
"Oauth2": [
|
|
510
|
+
"https://www.googleapis.com/auth/gmail.metadata"
|
|
511
|
+
],
|
|
512
|
+
"Oauth2c": [
|
|
513
|
+
"https://www.googleapis.com/auth/gmail.metadata"
|
|
514
|
+
]
|
|
515
|
+
},
|
|
516
|
+
{
|
|
517
|
+
"Oauth2": [
|
|
518
|
+
"https://www.googleapis.com/auth/gmail.modify"
|
|
519
|
+
],
|
|
520
|
+
"Oauth2c": [
|
|
521
|
+
"https://www.googleapis.com/auth/gmail.modify"
|
|
522
|
+
]
|
|
523
|
+
},
|
|
524
|
+
{
|
|
525
|
+
"Oauth2": [
|
|
526
|
+
"https://www.googleapis.com/auth/gmail.readonly"
|
|
527
|
+
],
|
|
528
|
+
"Oauth2c": [
|
|
529
|
+
"https://www.googleapis.com/auth/gmail.readonly"
|
|
530
|
+
]
|
|
531
|
+
}
|
|
532
|
+
],
|
|
533
|
+
"tags": [
|
|
534
|
+
"users"
|
|
535
|
+
]
|
|
536
|
+
},
|
|
537
|
+
"parameters": [
|
|
538
|
+
{
|
|
539
|
+
"$ref": "#/components/parameters/alt"
|
|
540
|
+
},
|
|
541
|
+
{
|
|
542
|
+
"$ref": "#/components/parameters/fields"
|
|
543
|
+
}
|
|
544
|
+
],
|
|
545
|
+
"post": {
|
|
546
|
+
"description": "Creates a new label.",
|
|
547
|
+
"operationId": "gmail.users.labels.create",
|
|
548
|
+
"parameters": [
|
|
549
|
+
{
|
|
550
|
+
"description": "The user's email address. The special value `me` can be used to indicate the authenticated user.",
|
|
551
|
+
"in": "path",
|
|
552
|
+
"name": "userId",
|
|
553
|
+
"required": true,
|
|
554
|
+
"schema": {
|
|
555
|
+
"type": "string"
|
|
556
|
+
}
|
|
557
|
+
}
|
|
558
|
+
],
|
|
559
|
+
"requestBody": {
|
|
560
|
+
"content": {
|
|
561
|
+
"application/json": {
|
|
562
|
+
"schema": {
|
|
563
|
+
"$ref": "#/components/schemas/Label"
|
|
564
|
+
}
|
|
565
|
+
}
|
|
566
|
+
}
|
|
567
|
+
},
|
|
568
|
+
"responses": {
|
|
569
|
+
"200": {
|
|
570
|
+
"description": "Success. The response body is returned verbatim."
|
|
571
|
+
}
|
|
572
|
+
},
|
|
573
|
+
"security": [
|
|
574
|
+
{
|
|
575
|
+
"Oauth2": [
|
|
576
|
+
"https://mail.google.com/"
|
|
577
|
+
],
|
|
578
|
+
"Oauth2c": [
|
|
579
|
+
"https://mail.google.com/"
|
|
580
|
+
]
|
|
581
|
+
},
|
|
582
|
+
{
|
|
583
|
+
"Oauth2": [
|
|
584
|
+
"https://www.googleapis.com/auth/gmail.labels"
|
|
585
|
+
],
|
|
586
|
+
"Oauth2c": [
|
|
587
|
+
"https://www.googleapis.com/auth/gmail.labels"
|
|
588
|
+
]
|
|
589
|
+
},
|
|
590
|
+
{
|
|
591
|
+
"Oauth2": [
|
|
592
|
+
"https://www.googleapis.com/auth/gmail.modify"
|
|
593
|
+
],
|
|
594
|
+
"Oauth2c": [
|
|
595
|
+
"https://www.googleapis.com/auth/gmail.modify"
|
|
596
|
+
]
|
|
597
|
+
}
|
|
598
|
+
],
|
|
599
|
+
"tags": [
|
|
600
|
+
"users"
|
|
601
|
+
]
|
|
602
|
+
}
|
|
603
|
+
},
|
|
604
|
+
"/gmail/v1/users/{userId}/labels/{id}": {
|
|
605
|
+
"delete": {
|
|
606
|
+
"description": "Immediately and permanently deletes the specified label and removes it from any messages and threads that it is applied to.",
|
|
607
|
+
"operationId": "gmail.users.labels.delete",
|
|
608
|
+
"parameters": [
|
|
609
|
+
{
|
|
610
|
+
"description": "The user's email address. The special value `me` can be used to indicate the authenticated user.",
|
|
611
|
+
"in": "path",
|
|
612
|
+
"name": "userId",
|
|
613
|
+
"required": true,
|
|
614
|
+
"schema": {
|
|
615
|
+
"type": "string"
|
|
616
|
+
}
|
|
617
|
+
},
|
|
618
|
+
{
|
|
619
|
+
"description": "The ID of the label to delete.",
|
|
620
|
+
"in": "path",
|
|
621
|
+
"name": "id",
|
|
622
|
+
"required": true,
|
|
623
|
+
"schema": {
|
|
624
|
+
"type": "string"
|
|
625
|
+
}
|
|
626
|
+
}
|
|
627
|
+
],
|
|
628
|
+
"responses": {
|
|
629
|
+
"200": {
|
|
630
|
+
"description": "Success. The response body is returned verbatim."
|
|
631
|
+
}
|
|
632
|
+
},
|
|
633
|
+
"security": [
|
|
634
|
+
{
|
|
635
|
+
"Oauth2": [
|
|
636
|
+
"https://mail.google.com/"
|
|
637
|
+
],
|
|
638
|
+
"Oauth2c": [
|
|
639
|
+
"https://mail.google.com/"
|
|
640
|
+
]
|
|
641
|
+
},
|
|
642
|
+
{
|
|
643
|
+
"Oauth2": [
|
|
644
|
+
"https://www.googleapis.com/auth/gmail.labels"
|
|
645
|
+
],
|
|
646
|
+
"Oauth2c": [
|
|
647
|
+
"https://www.googleapis.com/auth/gmail.labels"
|
|
648
|
+
]
|
|
649
|
+
},
|
|
650
|
+
{
|
|
651
|
+
"Oauth2": [
|
|
652
|
+
"https://www.googleapis.com/auth/gmail.modify"
|
|
653
|
+
],
|
|
654
|
+
"Oauth2c": [
|
|
655
|
+
"https://www.googleapis.com/auth/gmail.modify"
|
|
656
|
+
]
|
|
657
|
+
}
|
|
658
|
+
],
|
|
659
|
+
"tags": [
|
|
660
|
+
"users"
|
|
661
|
+
]
|
|
662
|
+
},
|
|
663
|
+
"get": {
|
|
664
|
+
"description": "Gets the specified label.",
|
|
665
|
+
"operationId": "gmail.users.labels.get",
|
|
666
|
+
"parameters": [
|
|
667
|
+
{
|
|
668
|
+
"description": "The user's email address. The special value `me` can be used to indicate the authenticated user.",
|
|
669
|
+
"in": "path",
|
|
670
|
+
"name": "userId",
|
|
671
|
+
"required": true,
|
|
672
|
+
"schema": {
|
|
673
|
+
"type": "string"
|
|
674
|
+
}
|
|
675
|
+
},
|
|
676
|
+
{
|
|
677
|
+
"description": "The ID of the label to retrieve.",
|
|
678
|
+
"in": "path",
|
|
679
|
+
"name": "id",
|
|
680
|
+
"required": true,
|
|
681
|
+
"schema": {
|
|
682
|
+
"type": "string"
|
|
683
|
+
}
|
|
684
|
+
}
|
|
685
|
+
],
|
|
686
|
+
"responses": {
|
|
687
|
+
"200": {
|
|
688
|
+
"description": "Success. The response body is returned verbatim."
|
|
689
|
+
}
|
|
690
|
+
},
|
|
691
|
+
"security": [
|
|
692
|
+
{
|
|
693
|
+
"Oauth2": [
|
|
694
|
+
"https://mail.google.com/"
|
|
695
|
+
],
|
|
696
|
+
"Oauth2c": [
|
|
697
|
+
"https://mail.google.com/"
|
|
698
|
+
]
|
|
699
|
+
},
|
|
700
|
+
{
|
|
701
|
+
"Oauth2": [
|
|
702
|
+
"https://www.googleapis.com/auth/gmail.labels"
|
|
703
|
+
],
|
|
704
|
+
"Oauth2c": [
|
|
705
|
+
"https://www.googleapis.com/auth/gmail.labels"
|
|
706
|
+
]
|
|
707
|
+
},
|
|
708
|
+
{
|
|
709
|
+
"Oauth2": [
|
|
710
|
+
"https://www.googleapis.com/auth/gmail.metadata"
|
|
711
|
+
],
|
|
712
|
+
"Oauth2c": [
|
|
713
|
+
"https://www.googleapis.com/auth/gmail.metadata"
|
|
714
|
+
]
|
|
715
|
+
},
|
|
716
|
+
{
|
|
717
|
+
"Oauth2": [
|
|
718
|
+
"https://www.googleapis.com/auth/gmail.modify"
|
|
719
|
+
],
|
|
720
|
+
"Oauth2c": [
|
|
721
|
+
"https://www.googleapis.com/auth/gmail.modify"
|
|
722
|
+
]
|
|
723
|
+
},
|
|
724
|
+
{
|
|
725
|
+
"Oauth2": [
|
|
726
|
+
"https://www.googleapis.com/auth/gmail.readonly"
|
|
727
|
+
],
|
|
728
|
+
"Oauth2c": [
|
|
729
|
+
"https://www.googleapis.com/auth/gmail.readonly"
|
|
730
|
+
]
|
|
731
|
+
}
|
|
732
|
+
],
|
|
733
|
+
"tags": [
|
|
734
|
+
"users"
|
|
735
|
+
]
|
|
736
|
+
},
|
|
737
|
+
"parameters": [
|
|
738
|
+
{
|
|
739
|
+
"$ref": "#/components/parameters/alt"
|
|
740
|
+
},
|
|
741
|
+
{
|
|
742
|
+
"$ref": "#/components/parameters/fields"
|
|
743
|
+
}
|
|
744
|
+
],
|
|
745
|
+
"put": {
|
|
746
|
+
"description": "Updates the specified label.",
|
|
747
|
+
"operationId": "gmail.users.labels.update",
|
|
748
|
+
"parameters": [
|
|
749
|
+
{
|
|
750
|
+
"description": "The user's email address. The special value `me` can be used to indicate the authenticated user.",
|
|
751
|
+
"in": "path",
|
|
752
|
+
"name": "userId",
|
|
753
|
+
"required": true,
|
|
754
|
+
"schema": {
|
|
755
|
+
"type": "string"
|
|
756
|
+
}
|
|
757
|
+
},
|
|
758
|
+
{
|
|
759
|
+
"description": "The ID of the label to update.",
|
|
760
|
+
"in": "path",
|
|
761
|
+
"name": "id",
|
|
762
|
+
"required": true,
|
|
763
|
+
"schema": {
|
|
764
|
+
"type": "string"
|
|
765
|
+
}
|
|
766
|
+
}
|
|
767
|
+
],
|
|
768
|
+
"requestBody": {
|
|
769
|
+
"content": {
|
|
770
|
+
"application/json": {
|
|
771
|
+
"schema": {
|
|
772
|
+
"$ref": "#/components/schemas/Label"
|
|
773
|
+
}
|
|
774
|
+
}
|
|
775
|
+
}
|
|
776
|
+
},
|
|
777
|
+
"responses": {
|
|
778
|
+
"200": {
|
|
779
|
+
"description": "Success. The response body is returned verbatim."
|
|
780
|
+
}
|
|
781
|
+
},
|
|
782
|
+
"security": [
|
|
783
|
+
{
|
|
784
|
+
"Oauth2": [
|
|
785
|
+
"https://mail.google.com/"
|
|
786
|
+
],
|
|
787
|
+
"Oauth2c": [
|
|
788
|
+
"https://mail.google.com/"
|
|
789
|
+
]
|
|
790
|
+
},
|
|
791
|
+
{
|
|
792
|
+
"Oauth2": [
|
|
793
|
+
"https://www.googleapis.com/auth/gmail.labels"
|
|
794
|
+
],
|
|
795
|
+
"Oauth2c": [
|
|
796
|
+
"https://www.googleapis.com/auth/gmail.labels"
|
|
797
|
+
]
|
|
798
|
+
},
|
|
799
|
+
{
|
|
800
|
+
"Oauth2": [
|
|
801
|
+
"https://www.googleapis.com/auth/gmail.modify"
|
|
802
|
+
],
|
|
803
|
+
"Oauth2c": [
|
|
804
|
+
"https://www.googleapis.com/auth/gmail.modify"
|
|
805
|
+
]
|
|
806
|
+
}
|
|
807
|
+
],
|
|
808
|
+
"tags": [
|
|
809
|
+
"users"
|
|
810
|
+
]
|
|
811
|
+
}
|
|
812
|
+
},
|
|
813
|
+
"/gmail/v1/users/{userId}/messages": {
|
|
814
|
+
"get": {
|
|
815
|
+
"description": "Lists the messages in the user's mailbox.",
|
|
816
|
+
"operationId": "gmail.users.messages.list",
|
|
817
|
+
"parameters": [
|
|
818
|
+
{
|
|
819
|
+
"description": "The user's email address. The special value `me` can be used to indicate the authenticated user.",
|
|
820
|
+
"in": "path",
|
|
821
|
+
"name": "userId",
|
|
822
|
+
"required": true,
|
|
823
|
+
"schema": {
|
|
824
|
+
"type": "string"
|
|
825
|
+
}
|
|
826
|
+
},
|
|
827
|
+
{
|
|
828
|
+
"description": "Include messages from `SPAM` and `TRASH` in the results.",
|
|
829
|
+
"in": "query",
|
|
830
|
+
"name": "includeSpamTrash",
|
|
831
|
+
"schema": {
|
|
832
|
+
"type": "boolean"
|
|
833
|
+
}
|
|
834
|
+
},
|
|
835
|
+
{
|
|
836
|
+
"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).",
|
|
837
|
+
"explode": true,
|
|
838
|
+
"in": "query",
|
|
839
|
+
"name": "labelIds",
|
|
840
|
+
"schema": {
|
|
841
|
+
"items": {
|
|
842
|
+
"type": "string"
|
|
843
|
+
},
|
|
844
|
+
"type": "array"
|
|
845
|
+
},
|
|
846
|
+
"style": "form"
|
|
847
|
+
},
|
|
848
|
+
{
|
|
849
|
+
"description": "Maximum number of messages to return. This field defaults to 100. The maximum allowed value for this field is 500.",
|
|
850
|
+
"in": "query",
|
|
851
|
+
"name": "maxResults",
|
|
852
|
+
"schema": {
|
|
853
|
+
"type": "integer"
|
|
854
|
+
}
|
|
855
|
+
},
|
|
856
|
+
{
|
|
857
|
+
"description": "Page token to retrieve a specific page of results in the list.",
|
|
858
|
+
"in": "query",
|
|
859
|
+
"name": "pageToken",
|
|
860
|
+
"schema": {
|
|
861
|
+
"type": "string"
|
|
862
|
+
}
|
|
863
|
+
},
|
|
864
|
+
{
|
|
865
|
+
"description": "Only return messages matching the specified query. Supports the same query format as the Gmail search box. For example, `\"from:someuser@example.com rfc822msgid: is:unread\"`. Parameter cannot be used when accessing the api using the gmail.metadata scope.",
|
|
866
|
+
"in": "query",
|
|
867
|
+
"name": "q",
|
|
868
|
+
"schema": {
|
|
869
|
+
"type": "string"
|
|
870
|
+
}
|
|
871
|
+
}
|
|
872
|
+
],
|
|
873
|
+
"responses": {
|
|
874
|
+
"200": {
|
|
875
|
+
"description": "Success. The response body is returned verbatim."
|
|
876
|
+
}
|
|
877
|
+
},
|
|
878
|
+
"security": [
|
|
879
|
+
{
|
|
880
|
+
"Oauth2": [
|
|
881
|
+
"https://mail.google.com/"
|
|
882
|
+
],
|
|
883
|
+
"Oauth2c": [
|
|
884
|
+
"https://mail.google.com/"
|
|
885
|
+
]
|
|
886
|
+
},
|
|
887
|
+
{
|
|
888
|
+
"Oauth2": [
|
|
889
|
+
"https://www.googleapis.com/auth/gmail.metadata"
|
|
890
|
+
],
|
|
891
|
+
"Oauth2c": [
|
|
892
|
+
"https://www.googleapis.com/auth/gmail.metadata"
|
|
893
|
+
]
|
|
894
|
+
},
|
|
895
|
+
{
|
|
896
|
+
"Oauth2": [
|
|
897
|
+
"https://www.googleapis.com/auth/gmail.modify"
|
|
898
|
+
],
|
|
899
|
+
"Oauth2c": [
|
|
900
|
+
"https://www.googleapis.com/auth/gmail.modify"
|
|
901
|
+
]
|
|
902
|
+
},
|
|
903
|
+
{
|
|
904
|
+
"Oauth2": [
|
|
905
|
+
"https://www.googleapis.com/auth/gmail.readonly"
|
|
906
|
+
],
|
|
907
|
+
"Oauth2c": [
|
|
908
|
+
"https://www.googleapis.com/auth/gmail.readonly"
|
|
909
|
+
]
|
|
910
|
+
}
|
|
911
|
+
],
|
|
912
|
+
"tags": [
|
|
913
|
+
"users"
|
|
914
|
+
]
|
|
915
|
+
},
|
|
916
|
+
"parameters": [
|
|
917
|
+
{
|
|
918
|
+
"$ref": "#/components/parameters/alt"
|
|
919
|
+
},
|
|
920
|
+
{
|
|
921
|
+
"$ref": "#/components/parameters/fields"
|
|
922
|
+
}
|
|
923
|
+
]
|
|
924
|
+
},
|
|
925
|
+
"/gmail/v1/users/{userId}/messages/batchModify": {
|
|
926
|
+
"parameters": [
|
|
927
|
+
{
|
|
928
|
+
"$ref": "#/components/parameters/alt"
|
|
929
|
+
},
|
|
930
|
+
{
|
|
931
|
+
"$ref": "#/components/parameters/fields"
|
|
932
|
+
}
|
|
933
|
+
],
|
|
934
|
+
"post": {
|
|
935
|
+
"description": "Modifies the labels on the specified messages.",
|
|
936
|
+
"operationId": "gmail.users.messages.batchModify",
|
|
937
|
+
"parameters": [
|
|
938
|
+
{
|
|
939
|
+
"description": "The user's email address. The special value `me` can be used to indicate the authenticated user.",
|
|
940
|
+
"in": "path",
|
|
941
|
+
"name": "userId",
|
|
942
|
+
"required": true,
|
|
943
|
+
"schema": {
|
|
944
|
+
"type": "string"
|
|
945
|
+
}
|
|
946
|
+
}
|
|
947
|
+
],
|
|
948
|
+
"requestBody": {
|
|
949
|
+
"content": {
|
|
950
|
+
"application/json": {
|
|
951
|
+
"schema": {
|
|
952
|
+
"$ref": "#/components/schemas/BatchModifyMessagesRequest"
|
|
953
|
+
}
|
|
954
|
+
}
|
|
955
|
+
}
|
|
956
|
+
},
|
|
957
|
+
"responses": {
|
|
958
|
+
"200": {
|
|
959
|
+
"description": "Success. The response body is returned verbatim."
|
|
960
|
+
}
|
|
961
|
+
},
|
|
962
|
+
"security": [
|
|
963
|
+
{
|
|
964
|
+
"Oauth2": [
|
|
965
|
+
"https://mail.google.com/"
|
|
966
|
+
],
|
|
967
|
+
"Oauth2c": [
|
|
968
|
+
"https://mail.google.com/"
|
|
969
|
+
]
|
|
970
|
+
},
|
|
971
|
+
{
|
|
972
|
+
"Oauth2": [
|
|
973
|
+
"https://www.googleapis.com/auth/gmail.modify"
|
|
974
|
+
],
|
|
975
|
+
"Oauth2c": [
|
|
976
|
+
"https://www.googleapis.com/auth/gmail.modify"
|
|
977
|
+
]
|
|
978
|
+
}
|
|
979
|
+
],
|
|
980
|
+
"tags": [
|
|
981
|
+
"users"
|
|
982
|
+
]
|
|
983
|
+
}
|
|
984
|
+
},
|
|
985
|
+
"/gmail/v1/users/{userId}/messages/{id}": {
|
|
986
|
+
"get": {
|
|
987
|
+
"description": "Gets the specified message.",
|
|
988
|
+
"operationId": "gmail.users.messages.get",
|
|
989
|
+
"parameters": [
|
|
990
|
+
{
|
|
991
|
+
"description": "The user's email address. The special value `me` can be used to indicate the authenticated user.",
|
|
992
|
+
"in": "path",
|
|
993
|
+
"name": "userId",
|
|
994
|
+
"required": true,
|
|
995
|
+
"schema": {
|
|
996
|
+
"type": "string"
|
|
997
|
+
}
|
|
998
|
+
},
|
|
999
|
+
{
|
|
1000
|
+
"description": "The ID of the message to retrieve. This ID is usually retrieved using `messages.list`. The ID is also contained in the result when a message is inserted (`messages.insert`) or imported (`messages.import`).",
|
|
1001
|
+
"in": "path",
|
|
1002
|
+
"name": "id",
|
|
1003
|
+
"required": true,
|
|
1004
|
+
"schema": {
|
|
1005
|
+
"type": "string"
|
|
1006
|
+
}
|
|
1007
|
+
},
|
|
1008
|
+
{
|
|
1009
|
+
"description": "The format to return the message in.",
|
|
1010
|
+
"in": "query",
|
|
1011
|
+
"name": "format",
|
|
1012
|
+
"schema": {
|
|
1013
|
+
"enum": [
|
|
1014
|
+
"minimal",
|
|
1015
|
+
"full",
|
|
1016
|
+
"raw",
|
|
1017
|
+
"metadata"
|
|
1018
|
+
],
|
|
1019
|
+
"type": "string"
|
|
1020
|
+
}
|
|
1021
|
+
},
|
|
1022
|
+
{
|
|
1023
|
+
"description": "When given and format is `METADATA`, only include headers specified.",
|
|
1024
|
+
"explode": true,
|
|
1025
|
+
"in": "query",
|
|
1026
|
+
"name": "metadataHeaders",
|
|
1027
|
+
"schema": {
|
|
1028
|
+
"items": {
|
|
1029
|
+
"type": "string"
|
|
1030
|
+
},
|
|
1031
|
+
"type": "array"
|
|
1032
|
+
},
|
|
1033
|
+
"style": "form"
|
|
1034
|
+
}
|
|
1035
|
+
],
|
|
1036
|
+
"responses": {
|
|
1037
|
+
"200": {
|
|
1038
|
+
"description": "Success. The response body is returned verbatim."
|
|
1039
|
+
}
|
|
1040
|
+
},
|
|
1041
|
+
"security": [
|
|
1042
|
+
{
|
|
1043
|
+
"Oauth2": [
|
|
1044
|
+
"https://mail.google.com/"
|
|
1045
|
+
],
|
|
1046
|
+
"Oauth2c": [
|
|
1047
|
+
"https://mail.google.com/"
|
|
1048
|
+
]
|
|
1049
|
+
},
|
|
1050
|
+
{
|
|
1051
|
+
"Oauth2": [
|
|
1052
|
+
"https://www.googleapis.com/auth/gmail.addons.current.message.action"
|
|
1053
|
+
],
|
|
1054
|
+
"Oauth2c": [
|
|
1055
|
+
"https://www.googleapis.com/auth/gmail.addons.current.message.action"
|
|
1056
|
+
]
|
|
1057
|
+
},
|
|
1058
|
+
{
|
|
1059
|
+
"Oauth2": [
|
|
1060
|
+
"https://www.googleapis.com/auth/gmail.addons.current.message.metadata"
|
|
1061
|
+
],
|
|
1062
|
+
"Oauth2c": [
|
|
1063
|
+
"https://www.googleapis.com/auth/gmail.addons.current.message.metadata"
|
|
1064
|
+
]
|
|
1065
|
+
},
|
|
1066
|
+
{
|
|
1067
|
+
"Oauth2": [
|
|
1068
|
+
"https://www.googleapis.com/auth/gmail.addons.current.message.readonly"
|
|
1069
|
+
],
|
|
1070
|
+
"Oauth2c": [
|
|
1071
|
+
"https://www.googleapis.com/auth/gmail.addons.current.message.readonly"
|
|
1072
|
+
]
|
|
1073
|
+
},
|
|
1074
|
+
{
|
|
1075
|
+
"Oauth2": [
|
|
1076
|
+
"https://www.googleapis.com/auth/gmail.metadata"
|
|
1077
|
+
],
|
|
1078
|
+
"Oauth2c": [
|
|
1079
|
+
"https://www.googleapis.com/auth/gmail.metadata"
|
|
1080
|
+
]
|
|
1081
|
+
},
|
|
1082
|
+
{
|
|
1083
|
+
"Oauth2": [
|
|
1084
|
+
"https://www.googleapis.com/auth/gmail.modify"
|
|
1085
|
+
],
|
|
1086
|
+
"Oauth2c": [
|
|
1087
|
+
"https://www.googleapis.com/auth/gmail.modify"
|
|
1088
|
+
]
|
|
1089
|
+
},
|
|
1090
|
+
{
|
|
1091
|
+
"Oauth2": [
|
|
1092
|
+
"https://www.googleapis.com/auth/gmail.readonly"
|
|
1093
|
+
],
|
|
1094
|
+
"Oauth2c": [
|
|
1095
|
+
"https://www.googleapis.com/auth/gmail.readonly"
|
|
1096
|
+
]
|
|
1097
|
+
}
|
|
1098
|
+
],
|
|
1099
|
+
"tags": [
|
|
1100
|
+
"users"
|
|
1101
|
+
]
|
|
1102
|
+
},
|
|
1103
|
+
"parameters": [
|
|
1104
|
+
{
|
|
1105
|
+
"$ref": "#/components/parameters/alt"
|
|
1106
|
+
},
|
|
1107
|
+
{
|
|
1108
|
+
"$ref": "#/components/parameters/fields"
|
|
1109
|
+
}
|
|
1110
|
+
]
|
|
1111
|
+
},
|
|
1112
|
+
"/gmail/v1/users/{userId}/messages/{id}/modify": {
|
|
1113
|
+
"parameters": [
|
|
1114
|
+
{
|
|
1115
|
+
"$ref": "#/components/parameters/alt"
|
|
1116
|
+
},
|
|
1117
|
+
{
|
|
1118
|
+
"$ref": "#/components/parameters/fields"
|
|
1119
|
+
}
|
|
1120
|
+
],
|
|
1121
|
+
"post": {
|
|
1122
|
+
"description": "Modifies the labels on the specified message.",
|
|
1123
|
+
"operationId": "gmail.users.messages.modify",
|
|
1124
|
+
"parameters": [
|
|
1125
|
+
{
|
|
1126
|
+
"description": "The user's email address. The special value `me` can be used to indicate the authenticated user.",
|
|
1127
|
+
"in": "path",
|
|
1128
|
+
"name": "userId",
|
|
1129
|
+
"required": true,
|
|
1130
|
+
"schema": {
|
|
1131
|
+
"type": "string"
|
|
1132
|
+
}
|
|
1133
|
+
},
|
|
1134
|
+
{
|
|
1135
|
+
"description": "The ID of the message to modify.",
|
|
1136
|
+
"in": "path",
|
|
1137
|
+
"name": "id",
|
|
1138
|
+
"required": true,
|
|
1139
|
+
"schema": {
|
|
1140
|
+
"type": "string"
|
|
1141
|
+
}
|
|
1142
|
+
}
|
|
1143
|
+
],
|
|
1144
|
+
"requestBody": {
|
|
1145
|
+
"content": {
|
|
1146
|
+
"application/json": {
|
|
1147
|
+
"schema": {
|
|
1148
|
+
"$ref": "#/components/schemas/ModifyMessageRequest"
|
|
1149
|
+
}
|
|
1150
|
+
}
|
|
1151
|
+
}
|
|
1152
|
+
},
|
|
1153
|
+
"responses": {
|
|
1154
|
+
"200": {
|
|
1155
|
+
"description": "Success. The response body is returned verbatim."
|
|
1156
|
+
}
|
|
1157
|
+
},
|
|
1158
|
+
"security": [
|
|
1159
|
+
{
|
|
1160
|
+
"Oauth2": [
|
|
1161
|
+
"https://mail.google.com/"
|
|
1162
|
+
],
|
|
1163
|
+
"Oauth2c": [
|
|
1164
|
+
"https://mail.google.com/"
|
|
1165
|
+
]
|
|
1166
|
+
},
|
|
1167
|
+
{
|
|
1168
|
+
"Oauth2": [
|
|
1169
|
+
"https://www.googleapis.com/auth/gmail.modify"
|
|
1170
|
+
],
|
|
1171
|
+
"Oauth2c": [
|
|
1172
|
+
"https://www.googleapis.com/auth/gmail.modify"
|
|
1173
|
+
]
|
|
1174
|
+
}
|
|
1175
|
+
],
|
|
1176
|
+
"tags": [
|
|
1177
|
+
"users"
|
|
1178
|
+
]
|
|
1179
|
+
}
|
|
1180
|
+
},
|
|
1181
|
+
"/gmail/v1/users/{userId}/messages/{id}/trash": {
|
|
1182
|
+
"parameters": [
|
|
1183
|
+
{
|
|
1184
|
+
"$ref": "#/components/parameters/alt"
|
|
1185
|
+
},
|
|
1186
|
+
{
|
|
1187
|
+
"$ref": "#/components/parameters/fields"
|
|
1188
|
+
}
|
|
1189
|
+
],
|
|
1190
|
+
"post": {
|
|
1191
|
+
"description": "Moves the specified message to the trash.",
|
|
1192
|
+
"operationId": "gmail.users.messages.trash",
|
|
1193
|
+
"parameters": [
|
|
1194
|
+
{
|
|
1195
|
+
"description": "The user's email address. The special value `me` can be used to indicate the authenticated user.",
|
|
1196
|
+
"in": "path",
|
|
1197
|
+
"name": "userId",
|
|
1198
|
+
"required": true,
|
|
1199
|
+
"schema": {
|
|
1200
|
+
"type": "string"
|
|
1201
|
+
}
|
|
1202
|
+
},
|
|
1203
|
+
{
|
|
1204
|
+
"description": "The ID of the message to Trash.",
|
|
1205
|
+
"in": "path",
|
|
1206
|
+
"name": "id",
|
|
1207
|
+
"required": true,
|
|
1208
|
+
"schema": {
|
|
1209
|
+
"type": "string"
|
|
1210
|
+
}
|
|
1211
|
+
}
|
|
1212
|
+
],
|
|
1213
|
+
"responses": {
|
|
1214
|
+
"200": {
|
|
1215
|
+
"description": "Success. The response body is returned verbatim."
|
|
1216
|
+
}
|
|
1217
|
+
},
|
|
1218
|
+
"security": [
|
|
1219
|
+
{
|
|
1220
|
+
"Oauth2": [
|
|
1221
|
+
"https://mail.google.com/"
|
|
1222
|
+
],
|
|
1223
|
+
"Oauth2c": [
|
|
1224
|
+
"https://mail.google.com/"
|
|
1225
|
+
]
|
|
1226
|
+
},
|
|
1227
|
+
{
|
|
1228
|
+
"Oauth2": [
|
|
1229
|
+
"https://www.googleapis.com/auth/gmail.modify"
|
|
1230
|
+
],
|
|
1231
|
+
"Oauth2c": [
|
|
1232
|
+
"https://www.googleapis.com/auth/gmail.modify"
|
|
1233
|
+
]
|
|
1234
|
+
}
|
|
1235
|
+
],
|
|
1236
|
+
"tags": [
|
|
1237
|
+
"users"
|
|
1238
|
+
]
|
|
1239
|
+
}
|
|
1240
|
+
},
|
|
1241
|
+
"/gmail/v1/users/{userId}/messages/{id}/untrash": {
|
|
1242
|
+
"parameters": [
|
|
1243
|
+
{
|
|
1244
|
+
"$ref": "#/components/parameters/alt"
|
|
1245
|
+
},
|
|
1246
|
+
{
|
|
1247
|
+
"$ref": "#/components/parameters/fields"
|
|
1248
|
+
}
|
|
1249
|
+
],
|
|
1250
|
+
"post": {
|
|
1251
|
+
"description": "Removes the specified message from the trash.",
|
|
1252
|
+
"operationId": "gmail.users.messages.untrash",
|
|
1253
|
+
"parameters": [
|
|
1254
|
+
{
|
|
1255
|
+
"description": "The user's email address. The special value `me` can be used to indicate the authenticated user.",
|
|
1256
|
+
"in": "path",
|
|
1257
|
+
"name": "userId",
|
|
1258
|
+
"required": true,
|
|
1259
|
+
"schema": {
|
|
1260
|
+
"type": "string"
|
|
1261
|
+
}
|
|
1262
|
+
},
|
|
1263
|
+
{
|
|
1264
|
+
"description": "The ID of the message to remove from Trash.",
|
|
1265
|
+
"in": "path",
|
|
1266
|
+
"name": "id",
|
|
1267
|
+
"required": true,
|
|
1268
|
+
"schema": {
|
|
1269
|
+
"type": "string"
|
|
1270
|
+
}
|
|
1271
|
+
}
|
|
1272
|
+
],
|
|
1273
|
+
"responses": {
|
|
1274
|
+
"200": {
|
|
1275
|
+
"description": "Success. The response body is returned verbatim."
|
|
1276
|
+
}
|
|
1277
|
+
},
|
|
1278
|
+
"security": [
|
|
1279
|
+
{
|
|
1280
|
+
"Oauth2": [
|
|
1281
|
+
"https://mail.google.com/"
|
|
1282
|
+
],
|
|
1283
|
+
"Oauth2c": [
|
|
1284
|
+
"https://mail.google.com/"
|
|
1285
|
+
]
|
|
1286
|
+
},
|
|
1287
|
+
{
|
|
1288
|
+
"Oauth2": [
|
|
1289
|
+
"https://www.googleapis.com/auth/gmail.modify"
|
|
1290
|
+
],
|
|
1291
|
+
"Oauth2c": [
|
|
1292
|
+
"https://www.googleapis.com/auth/gmail.modify"
|
|
1293
|
+
]
|
|
1294
|
+
}
|
|
1295
|
+
],
|
|
1296
|
+
"tags": [
|
|
1297
|
+
"users"
|
|
1298
|
+
]
|
|
1299
|
+
}
|
|
1300
|
+
},
|
|
1301
|
+
"/gmail/v1/users/{userId}/messages/{messageId}/attachments/{id}": {
|
|
1302
|
+
"get": {
|
|
1303
|
+
"description": "Gets the specified message attachment.",
|
|
1304
|
+
"operationId": "gmail.users.messages.attachments.get",
|
|
1305
|
+
"parameters": [
|
|
1306
|
+
{
|
|
1307
|
+
"description": "The user's email address. The special value `me` can be used to indicate the authenticated user.",
|
|
1308
|
+
"in": "path",
|
|
1309
|
+
"name": "userId",
|
|
1310
|
+
"required": true,
|
|
1311
|
+
"schema": {
|
|
1312
|
+
"type": "string"
|
|
1313
|
+
}
|
|
1314
|
+
},
|
|
1315
|
+
{
|
|
1316
|
+
"description": "The ID of the message containing the attachment.",
|
|
1317
|
+
"in": "path",
|
|
1318
|
+
"name": "messageId",
|
|
1319
|
+
"required": true,
|
|
1320
|
+
"schema": {
|
|
1321
|
+
"type": "string"
|
|
1322
|
+
}
|
|
1323
|
+
},
|
|
1324
|
+
{
|
|
1325
|
+
"description": "The ID of the attachment.",
|
|
1326
|
+
"in": "path",
|
|
1327
|
+
"name": "id",
|
|
1328
|
+
"required": true,
|
|
1329
|
+
"schema": {
|
|
1330
|
+
"type": "string"
|
|
1331
|
+
}
|
|
1332
|
+
}
|
|
1333
|
+
],
|
|
1334
|
+
"responses": {
|
|
1335
|
+
"200": {
|
|
1336
|
+
"description": "Success. The response body is returned verbatim."
|
|
1337
|
+
}
|
|
1338
|
+
},
|
|
1339
|
+
"security": [
|
|
1340
|
+
{
|
|
1341
|
+
"Oauth2": [
|
|
1342
|
+
"https://mail.google.com/"
|
|
1343
|
+
],
|
|
1344
|
+
"Oauth2c": [
|
|
1345
|
+
"https://mail.google.com/"
|
|
1346
|
+
]
|
|
1347
|
+
},
|
|
1348
|
+
{
|
|
1349
|
+
"Oauth2": [
|
|
1350
|
+
"https://www.googleapis.com/auth/gmail.addons.current.message.action"
|
|
1351
|
+
],
|
|
1352
|
+
"Oauth2c": [
|
|
1353
|
+
"https://www.googleapis.com/auth/gmail.addons.current.message.action"
|
|
1354
|
+
]
|
|
1355
|
+
},
|
|
1356
|
+
{
|
|
1357
|
+
"Oauth2": [
|
|
1358
|
+
"https://www.googleapis.com/auth/gmail.addons.current.message.readonly"
|
|
1359
|
+
],
|
|
1360
|
+
"Oauth2c": [
|
|
1361
|
+
"https://www.googleapis.com/auth/gmail.addons.current.message.readonly"
|
|
1362
|
+
]
|
|
1363
|
+
},
|
|
1364
|
+
{
|
|
1365
|
+
"Oauth2": [
|
|
1366
|
+
"https://www.googleapis.com/auth/gmail.modify"
|
|
1367
|
+
],
|
|
1368
|
+
"Oauth2c": [
|
|
1369
|
+
"https://www.googleapis.com/auth/gmail.modify"
|
|
1370
|
+
]
|
|
1371
|
+
},
|
|
1372
|
+
{
|
|
1373
|
+
"Oauth2": [
|
|
1374
|
+
"https://www.googleapis.com/auth/gmail.readonly"
|
|
1375
|
+
],
|
|
1376
|
+
"Oauth2c": [
|
|
1377
|
+
"https://www.googleapis.com/auth/gmail.readonly"
|
|
1378
|
+
]
|
|
1379
|
+
}
|
|
1380
|
+
],
|
|
1381
|
+
"tags": [
|
|
1382
|
+
"users"
|
|
1383
|
+
]
|
|
1384
|
+
},
|
|
1385
|
+
"parameters": [
|
|
1386
|
+
{
|
|
1387
|
+
"$ref": "#/components/parameters/alt"
|
|
1388
|
+
},
|
|
1389
|
+
{
|
|
1390
|
+
"$ref": "#/components/parameters/fields"
|
|
1391
|
+
}
|
|
1392
|
+
]
|
|
1393
|
+
},
|
|
1394
|
+
"/gmail/v1/users/{userId}/profile": {
|
|
1395
|
+
"get": {
|
|
1396
|
+
"description": "Gets the current user's Gmail profile.",
|
|
1397
|
+
"operationId": "gmail.users.getProfile",
|
|
1398
|
+
"parameters": [
|
|
1399
|
+
{
|
|
1400
|
+
"description": "The user's email address. The special value `me` can be used to indicate the authenticated user.",
|
|
1401
|
+
"in": "path",
|
|
1402
|
+
"name": "userId",
|
|
1403
|
+
"required": true,
|
|
1404
|
+
"schema": {
|
|
1405
|
+
"type": "string"
|
|
1406
|
+
}
|
|
1407
|
+
}
|
|
1408
|
+
],
|
|
1409
|
+
"responses": {
|
|
1410
|
+
"200": {
|
|
1411
|
+
"description": "Success. The response body is returned verbatim."
|
|
1412
|
+
}
|
|
1413
|
+
},
|
|
1414
|
+
"security": [
|
|
1415
|
+
{
|
|
1416
|
+
"Oauth2": [
|
|
1417
|
+
"https://mail.google.com/"
|
|
1418
|
+
],
|
|
1419
|
+
"Oauth2c": [
|
|
1420
|
+
"https://mail.google.com/"
|
|
1421
|
+
]
|
|
1422
|
+
},
|
|
1423
|
+
{
|
|
1424
|
+
"Oauth2": [
|
|
1425
|
+
"https://www.googleapis.com/auth/gmail.compose"
|
|
1426
|
+
],
|
|
1427
|
+
"Oauth2c": [
|
|
1428
|
+
"https://www.googleapis.com/auth/gmail.compose"
|
|
1429
|
+
]
|
|
1430
|
+
},
|
|
1431
|
+
{
|
|
1432
|
+
"Oauth2": [
|
|
1433
|
+
"https://www.googleapis.com/auth/gmail.metadata"
|
|
1434
|
+
],
|
|
1435
|
+
"Oauth2c": [
|
|
1436
|
+
"https://www.googleapis.com/auth/gmail.metadata"
|
|
1437
|
+
]
|
|
1438
|
+
},
|
|
1439
|
+
{
|
|
1440
|
+
"Oauth2": [
|
|
1441
|
+
"https://www.googleapis.com/auth/gmail.modify"
|
|
1442
|
+
],
|
|
1443
|
+
"Oauth2c": [
|
|
1444
|
+
"https://www.googleapis.com/auth/gmail.modify"
|
|
1445
|
+
]
|
|
1446
|
+
},
|
|
1447
|
+
{
|
|
1448
|
+
"Oauth2": [
|
|
1449
|
+
"https://www.googleapis.com/auth/gmail.readonly"
|
|
1450
|
+
],
|
|
1451
|
+
"Oauth2c": [
|
|
1452
|
+
"https://www.googleapis.com/auth/gmail.readonly"
|
|
1453
|
+
]
|
|
1454
|
+
}
|
|
1455
|
+
],
|
|
1456
|
+
"tags": [
|
|
1457
|
+
"users"
|
|
1458
|
+
]
|
|
1459
|
+
},
|
|
1460
|
+
"parameters": [
|
|
1461
|
+
{
|
|
1462
|
+
"$ref": "#/components/parameters/alt"
|
|
1463
|
+
},
|
|
1464
|
+
{
|
|
1465
|
+
"$ref": "#/components/parameters/fields"
|
|
1466
|
+
}
|
|
1467
|
+
]
|
|
1468
|
+
},
|
|
1469
|
+
"/gmail/v1/users/{userId}/settings/filters": {
|
|
1470
|
+
"get": {
|
|
1471
|
+
"description": "Lists the message filters of a Gmail user.",
|
|
1472
|
+
"operationId": "gmail.users.settings.filters.list",
|
|
1473
|
+
"parameters": [
|
|
1474
|
+
{
|
|
1475
|
+
"description": "User's email address. The special value \"me\" can be used to indicate the authenticated user.",
|
|
1476
|
+
"in": "path",
|
|
1477
|
+
"name": "userId",
|
|
1478
|
+
"required": true,
|
|
1479
|
+
"schema": {
|
|
1480
|
+
"type": "string"
|
|
1481
|
+
}
|
|
1482
|
+
}
|
|
1483
|
+
],
|
|
1484
|
+
"responses": {
|
|
1485
|
+
"200": {
|
|
1486
|
+
"description": "Success. The response body is returned verbatim."
|
|
1487
|
+
}
|
|
1488
|
+
},
|
|
1489
|
+
"security": [
|
|
1490
|
+
{
|
|
1491
|
+
"Oauth2": [
|
|
1492
|
+
"https://mail.google.com/"
|
|
1493
|
+
],
|
|
1494
|
+
"Oauth2c": [
|
|
1495
|
+
"https://mail.google.com/"
|
|
1496
|
+
]
|
|
1497
|
+
},
|
|
1498
|
+
{
|
|
1499
|
+
"Oauth2": [
|
|
1500
|
+
"https://www.googleapis.com/auth/gmail.modify"
|
|
1501
|
+
],
|
|
1502
|
+
"Oauth2c": [
|
|
1503
|
+
"https://www.googleapis.com/auth/gmail.modify"
|
|
1504
|
+
]
|
|
1505
|
+
},
|
|
1506
|
+
{
|
|
1507
|
+
"Oauth2": [
|
|
1508
|
+
"https://www.googleapis.com/auth/gmail.readonly"
|
|
1509
|
+
],
|
|
1510
|
+
"Oauth2c": [
|
|
1511
|
+
"https://www.googleapis.com/auth/gmail.readonly"
|
|
1512
|
+
]
|
|
1513
|
+
},
|
|
1514
|
+
{
|
|
1515
|
+
"Oauth2": [
|
|
1516
|
+
"https://www.googleapis.com/auth/gmail.settings.basic"
|
|
1517
|
+
],
|
|
1518
|
+
"Oauth2c": [
|
|
1519
|
+
"https://www.googleapis.com/auth/gmail.settings.basic"
|
|
1520
|
+
]
|
|
1521
|
+
}
|
|
1522
|
+
],
|
|
1523
|
+
"tags": [
|
|
1524
|
+
"users"
|
|
1525
|
+
]
|
|
1526
|
+
},
|
|
1527
|
+
"parameters": [
|
|
1528
|
+
{
|
|
1529
|
+
"$ref": "#/components/parameters/alt"
|
|
1530
|
+
},
|
|
1531
|
+
{
|
|
1532
|
+
"$ref": "#/components/parameters/fields"
|
|
1533
|
+
}
|
|
1534
|
+
],
|
|
1535
|
+
"post": {
|
|
1536
|
+
"description": "Creates a filter. Note: you can only create a maximum of 1,000 filters.",
|
|
1537
|
+
"operationId": "gmail.users.settings.filters.create",
|
|
1538
|
+
"parameters": [
|
|
1539
|
+
{
|
|
1540
|
+
"description": "User's email address. The special value \"me\" can be used to indicate the authenticated user.",
|
|
1541
|
+
"in": "path",
|
|
1542
|
+
"name": "userId",
|
|
1543
|
+
"required": true,
|
|
1544
|
+
"schema": {
|
|
1545
|
+
"type": "string"
|
|
1546
|
+
}
|
|
1547
|
+
}
|
|
1548
|
+
],
|
|
1549
|
+
"requestBody": {
|
|
1550
|
+
"content": {
|
|
1551
|
+
"application/json": {
|
|
1552
|
+
"schema": {
|
|
1553
|
+
"$ref": "#/components/schemas/Filter"
|
|
1554
|
+
}
|
|
1555
|
+
}
|
|
1556
|
+
}
|
|
1557
|
+
},
|
|
1558
|
+
"responses": {
|
|
1559
|
+
"200": {
|
|
1560
|
+
"description": "Success. The response body is returned verbatim."
|
|
1561
|
+
}
|
|
1562
|
+
},
|
|
1563
|
+
"security": [
|
|
1564
|
+
{
|
|
1565
|
+
"Oauth2": [
|
|
1566
|
+
"https://www.googleapis.com/auth/gmail.settings.basic"
|
|
1567
|
+
],
|
|
1568
|
+
"Oauth2c": [
|
|
1569
|
+
"https://www.googleapis.com/auth/gmail.settings.basic"
|
|
1570
|
+
]
|
|
1571
|
+
}
|
|
1572
|
+
],
|
|
1573
|
+
"tags": [
|
|
1574
|
+
"users"
|
|
1575
|
+
]
|
|
1576
|
+
}
|
|
1577
|
+
},
|
|
1578
|
+
"/gmail/v1/users/{userId}/settings/filters/{id}": {
|
|
1579
|
+
"delete": {
|
|
1580
|
+
"description": "Immediately and permanently deletes the specified filter.",
|
|
1581
|
+
"operationId": "gmail.users.settings.filters.delete",
|
|
1582
|
+
"parameters": [
|
|
1583
|
+
{
|
|
1584
|
+
"description": "User's email address. The special value \"me\" can be used to indicate the authenticated user.",
|
|
1585
|
+
"in": "path",
|
|
1586
|
+
"name": "userId",
|
|
1587
|
+
"required": true,
|
|
1588
|
+
"schema": {
|
|
1589
|
+
"type": "string"
|
|
1590
|
+
}
|
|
1591
|
+
},
|
|
1592
|
+
{
|
|
1593
|
+
"description": "The ID of the filter to be deleted.",
|
|
1594
|
+
"in": "path",
|
|
1595
|
+
"name": "id",
|
|
1596
|
+
"required": true,
|
|
1597
|
+
"schema": {
|
|
1598
|
+
"type": "string"
|
|
1599
|
+
}
|
|
1600
|
+
}
|
|
1601
|
+
],
|
|
1602
|
+
"responses": {
|
|
1603
|
+
"200": {
|
|
1604
|
+
"description": "Success. The response body is returned verbatim."
|
|
1605
|
+
}
|
|
1606
|
+
},
|
|
1607
|
+
"security": [
|
|
1608
|
+
{
|
|
1609
|
+
"Oauth2": [
|
|
1610
|
+
"https://www.googleapis.com/auth/gmail.settings.basic"
|
|
1611
|
+
],
|
|
1612
|
+
"Oauth2c": [
|
|
1613
|
+
"https://www.googleapis.com/auth/gmail.settings.basic"
|
|
1614
|
+
]
|
|
1615
|
+
}
|
|
1616
|
+
],
|
|
1617
|
+
"tags": [
|
|
1618
|
+
"users"
|
|
1619
|
+
]
|
|
1620
|
+
},
|
|
1621
|
+
"parameters": [
|
|
1622
|
+
{
|
|
1623
|
+
"$ref": "#/components/parameters/alt"
|
|
1624
|
+
},
|
|
1625
|
+
{
|
|
1626
|
+
"$ref": "#/components/parameters/fields"
|
|
1627
|
+
}
|
|
1628
|
+
]
|
|
1629
|
+
},
|
|
1630
|
+
"/gmail/v1/users/{userId}/threads": {
|
|
1631
|
+
"get": {
|
|
1632
|
+
"description": "Lists the threads in the user's mailbox.",
|
|
1633
|
+
"operationId": "gmail.users.threads.list",
|
|
1634
|
+
"parameters": [
|
|
1635
|
+
{
|
|
1636
|
+
"description": "The user's email address. The special value `me` can be used to indicate the authenticated user.",
|
|
1637
|
+
"in": "path",
|
|
1638
|
+
"name": "userId",
|
|
1639
|
+
"required": true,
|
|
1640
|
+
"schema": {
|
|
1641
|
+
"type": "string"
|
|
1642
|
+
}
|
|
1643
|
+
},
|
|
1644
|
+
{
|
|
1645
|
+
"description": "Include threads from `SPAM` and `TRASH` in the results.",
|
|
1646
|
+
"in": "query",
|
|
1647
|
+
"name": "includeSpamTrash",
|
|
1648
|
+
"schema": {
|
|
1649
|
+
"type": "boolean"
|
|
1650
|
+
}
|
|
1651
|
+
},
|
|
1652
|
+
{
|
|
1653
|
+
"description": "Only return threads with labels that match all of the specified label IDs.",
|
|
1654
|
+
"explode": true,
|
|
1655
|
+
"in": "query",
|
|
1656
|
+
"name": "labelIds",
|
|
1657
|
+
"schema": {
|
|
1658
|
+
"items": {
|
|
1659
|
+
"type": "string"
|
|
1660
|
+
},
|
|
1661
|
+
"type": "array"
|
|
1662
|
+
},
|
|
1663
|
+
"style": "form"
|
|
1664
|
+
},
|
|
1665
|
+
{
|
|
1666
|
+
"description": "Maximum number of threads to return. This field defaults to 100. The maximum allowed value for this field is 500.",
|
|
1667
|
+
"in": "query",
|
|
1668
|
+
"name": "maxResults",
|
|
1669
|
+
"schema": {
|
|
1670
|
+
"type": "integer"
|
|
1671
|
+
}
|
|
1672
|
+
},
|
|
1673
|
+
{
|
|
1674
|
+
"description": "Page token to retrieve a specific page of results in the list.",
|
|
1675
|
+
"in": "query",
|
|
1676
|
+
"name": "pageToken",
|
|
1677
|
+
"schema": {
|
|
1678
|
+
"type": "string"
|
|
1679
|
+
}
|
|
1680
|
+
},
|
|
1681
|
+
{
|
|
1682
|
+
"description": "Only return threads matching the specified query. Supports the same query format as the Gmail search box. For example, `\"from:someuser@example.com rfc822msgid: is:unread\"`. Parameter cannot be used when accessing the api using the gmail.metadata scope.",
|
|
1683
|
+
"in": "query",
|
|
1684
|
+
"name": "q",
|
|
1685
|
+
"schema": {
|
|
1686
|
+
"type": "string"
|
|
1687
|
+
}
|
|
1688
|
+
}
|
|
1689
|
+
],
|
|
1690
|
+
"responses": {
|
|
1691
|
+
"200": {
|
|
1692
|
+
"description": "Success. The response body is returned verbatim."
|
|
1693
|
+
}
|
|
1694
|
+
},
|
|
1695
|
+
"security": [
|
|
1696
|
+
{
|
|
1697
|
+
"Oauth2": [
|
|
1698
|
+
"https://mail.google.com/"
|
|
1699
|
+
],
|
|
1700
|
+
"Oauth2c": [
|
|
1701
|
+
"https://mail.google.com/"
|
|
1702
|
+
]
|
|
1703
|
+
},
|
|
1704
|
+
{
|
|
1705
|
+
"Oauth2": [
|
|
1706
|
+
"https://www.googleapis.com/auth/gmail.metadata"
|
|
1707
|
+
],
|
|
1708
|
+
"Oauth2c": [
|
|
1709
|
+
"https://www.googleapis.com/auth/gmail.metadata"
|
|
1710
|
+
]
|
|
1711
|
+
},
|
|
1712
|
+
{
|
|
1713
|
+
"Oauth2": [
|
|
1714
|
+
"https://www.googleapis.com/auth/gmail.modify"
|
|
1715
|
+
],
|
|
1716
|
+
"Oauth2c": [
|
|
1717
|
+
"https://www.googleapis.com/auth/gmail.modify"
|
|
1718
|
+
]
|
|
1719
|
+
},
|
|
1720
|
+
{
|
|
1721
|
+
"Oauth2": [
|
|
1722
|
+
"https://www.googleapis.com/auth/gmail.readonly"
|
|
1723
|
+
],
|
|
1724
|
+
"Oauth2c": [
|
|
1725
|
+
"https://www.googleapis.com/auth/gmail.readonly"
|
|
1726
|
+
]
|
|
1727
|
+
}
|
|
1728
|
+
],
|
|
1729
|
+
"tags": [
|
|
1730
|
+
"users"
|
|
1731
|
+
]
|
|
1732
|
+
},
|
|
1733
|
+
"parameters": [
|
|
1734
|
+
{
|
|
1735
|
+
"$ref": "#/components/parameters/alt"
|
|
1736
|
+
},
|
|
1737
|
+
{
|
|
1738
|
+
"$ref": "#/components/parameters/fields"
|
|
1739
|
+
}
|
|
1740
|
+
]
|
|
1741
|
+
},
|
|
1742
|
+
"/gmail/v1/users/{userId}/threads/{id}": {
|
|
1743
|
+
"get": {
|
|
1744
|
+
"description": "Gets the specified thread.",
|
|
1745
|
+
"operationId": "gmail.users.threads.get",
|
|
1746
|
+
"parameters": [
|
|
1747
|
+
{
|
|
1748
|
+
"description": "The user's email address. The special value `me` can be used to indicate the authenticated user.",
|
|
1749
|
+
"in": "path",
|
|
1750
|
+
"name": "userId",
|
|
1751
|
+
"required": true,
|
|
1752
|
+
"schema": {
|
|
1753
|
+
"type": "string"
|
|
1754
|
+
}
|
|
1755
|
+
},
|
|
1756
|
+
{
|
|
1757
|
+
"description": "The ID of the thread to retrieve.",
|
|
1758
|
+
"in": "path",
|
|
1759
|
+
"name": "id",
|
|
1760
|
+
"required": true,
|
|
1761
|
+
"schema": {
|
|
1762
|
+
"type": "string"
|
|
1763
|
+
}
|
|
1764
|
+
},
|
|
1765
|
+
{
|
|
1766
|
+
"description": "The format to return the messages in.",
|
|
1767
|
+
"in": "query",
|
|
1768
|
+
"name": "format",
|
|
1769
|
+
"schema": {
|
|
1770
|
+
"enum": [
|
|
1771
|
+
"full",
|
|
1772
|
+
"metadata",
|
|
1773
|
+
"minimal"
|
|
1774
|
+
],
|
|
1775
|
+
"type": "string"
|
|
1776
|
+
}
|
|
1777
|
+
},
|
|
1778
|
+
{
|
|
1779
|
+
"description": "When given and format is METADATA, only include headers specified.",
|
|
1780
|
+
"explode": true,
|
|
1781
|
+
"in": "query",
|
|
1782
|
+
"name": "metadataHeaders",
|
|
1783
|
+
"schema": {
|
|
1784
|
+
"items": {
|
|
1785
|
+
"type": "string"
|
|
1786
|
+
},
|
|
1787
|
+
"type": "array"
|
|
1788
|
+
},
|
|
1789
|
+
"style": "form"
|
|
1790
|
+
}
|
|
1791
|
+
],
|
|
1792
|
+
"responses": {
|
|
1793
|
+
"200": {
|
|
1794
|
+
"description": "Success. The response body is returned verbatim."
|
|
1795
|
+
}
|
|
1796
|
+
},
|
|
1797
|
+
"security": [
|
|
1798
|
+
{
|
|
1799
|
+
"Oauth2": [
|
|
1800
|
+
"https://mail.google.com/"
|
|
1801
|
+
],
|
|
1802
|
+
"Oauth2c": [
|
|
1803
|
+
"https://mail.google.com/"
|
|
1804
|
+
]
|
|
1805
|
+
},
|
|
1806
|
+
{
|
|
1807
|
+
"Oauth2": [
|
|
1808
|
+
"https://www.googleapis.com/auth/gmail.addons.current.message.action"
|
|
1809
|
+
],
|
|
1810
|
+
"Oauth2c": [
|
|
1811
|
+
"https://www.googleapis.com/auth/gmail.addons.current.message.action"
|
|
1812
|
+
]
|
|
1813
|
+
},
|
|
1814
|
+
{
|
|
1815
|
+
"Oauth2": [
|
|
1816
|
+
"https://www.googleapis.com/auth/gmail.addons.current.message.metadata"
|
|
1817
|
+
],
|
|
1818
|
+
"Oauth2c": [
|
|
1819
|
+
"https://www.googleapis.com/auth/gmail.addons.current.message.metadata"
|
|
1820
|
+
]
|
|
1821
|
+
},
|
|
1822
|
+
{
|
|
1823
|
+
"Oauth2": [
|
|
1824
|
+
"https://www.googleapis.com/auth/gmail.addons.current.message.readonly"
|
|
1825
|
+
],
|
|
1826
|
+
"Oauth2c": [
|
|
1827
|
+
"https://www.googleapis.com/auth/gmail.addons.current.message.readonly"
|
|
1828
|
+
]
|
|
1829
|
+
},
|
|
1830
|
+
{
|
|
1831
|
+
"Oauth2": [
|
|
1832
|
+
"https://www.googleapis.com/auth/gmail.metadata"
|
|
1833
|
+
],
|
|
1834
|
+
"Oauth2c": [
|
|
1835
|
+
"https://www.googleapis.com/auth/gmail.metadata"
|
|
1836
|
+
]
|
|
1837
|
+
},
|
|
1838
|
+
{
|
|
1839
|
+
"Oauth2": [
|
|
1840
|
+
"https://www.googleapis.com/auth/gmail.modify"
|
|
1841
|
+
],
|
|
1842
|
+
"Oauth2c": [
|
|
1843
|
+
"https://www.googleapis.com/auth/gmail.modify"
|
|
1844
|
+
]
|
|
1845
|
+
},
|
|
1846
|
+
{
|
|
1847
|
+
"Oauth2": [
|
|
1848
|
+
"https://www.googleapis.com/auth/gmail.readonly"
|
|
1849
|
+
],
|
|
1850
|
+
"Oauth2c": [
|
|
1851
|
+
"https://www.googleapis.com/auth/gmail.readonly"
|
|
1852
|
+
]
|
|
1853
|
+
}
|
|
1854
|
+
],
|
|
1855
|
+
"tags": [
|
|
1856
|
+
"users"
|
|
1857
|
+
]
|
|
1858
|
+
},
|
|
1859
|
+
"parameters": [
|
|
1860
|
+
{
|
|
1861
|
+
"$ref": "#/components/parameters/alt"
|
|
1862
|
+
},
|
|
1863
|
+
{
|
|
1864
|
+
"$ref": "#/components/parameters/fields"
|
|
1865
|
+
}
|
|
1866
|
+
]
|
|
1867
|
+
},
|
|
1868
|
+
"/gmail/v1/users/{userId}/threads/{id}/modify": {
|
|
1869
|
+
"parameters": [
|
|
1870
|
+
{
|
|
1871
|
+
"$ref": "#/components/parameters/alt"
|
|
1872
|
+
},
|
|
1873
|
+
{
|
|
1874
|
+
"$ref": "#/components/parameters/fields"
|
|
1875
|
+
}
|
|
1876
|
+
],
|
|
1877
|
+
"post": {
|
|
1878
|
+
"description": "Modifies the labels applied to the thread. This applies to all messages in the thread.",
|
|
1879
|
+
"operationId": "gmail.users.threads.modify",
|
|
1880
|
+
"parameters": [
|
|
1881
|
+
{
|
|
1882
|
+
"description": "The user's email address. The special value `me` can be used to indicate the authenticated user.",
|
|
1883
|
+
"in": "path",
|
|
1884
|
+
"name": "userId",
|
|
1885
|
+
"required": true,
|
|
1886
|
+
"schema": {
|
|
1887
|
+
"type": "string"
|
|
1888
|
+
}
|
|
1889
|
+
},
|
|
1890
|
+
{
|
|
1891
|
+
"description": "The ID of the thread to modify.",
|
|
1892
|
+
"in": "path",
|
|
1893
|
+
"name": "id",
|
|
1894
|
+
"required": true,
|
|
1895
|
+
"schema": {
|
|
1896
|
+
"type": "string"
|
|
1897
|
+
}
|
|
1898
|
+
}
|
|
1899
|
+
],
|
|
1900
|
+
"requestBody": {
|
|
1901
|
+
"content": {
|
|
1902
|
+
"application/json": {
|
|
1903
|
+
"schema": {
|
|
1904
|
+
"$ref": "#/components/schemas/ModifyThreadRequest"
|
|
1905
|
+
}
|
|
1906
|
+
}
|
|
1907
|
+
}
|
|
1908
|
+
},
|
|
1909
|
+
"responses": {
|
|
1910
|
+
"200": {
|
|
1911
|
+
"description": "Success. The response body is returned verbatim."
|
|
1912
|
+
}
|
|
1913
|
+
},
|
|
1914
|
+
"security": [
|
|
1915
|
+
{
|
|
1916
|
+
"Oauth2": [
|
|
1917
|
+
"https://mail.google.com/"
|
|
1918
|
+
],
|
|
1919
|
+
"Oauth2c": [
|
|
1920
|
+
"https://mail.google.com/"
|
|
1921
|
+
]
|
|
1922
|
+
},
|
|
1923
|
+
{
|
|
1924
|
+
"Oauth2": [
|
|
1925
|
+
"https://www.googleapis.com/auth/gmail.modify"
|
|
1926
|
+
],
|
|
1927
|
+
"Oauth2c": [
|
|
1928
|
+
"https://www.googleapis.com/auth/gmail.modify"
|
|
1929
|
+
]
|
|
1930
|
+
}
|
|
1931
|
+
],
|
|
1932
|
+
"tags": [
|
|
1933
|
+
"users"
|
|
1934
|
+
]
|
|
1935
|
+
}
|
|
1936
|
+
},
|
|
1937
|
+
"/gmail/v1/users/{userId}/threads/{id}/trash": {
|
|
1938
|
+
"parameters": [
|
|
1939
|
+
{
|
|
1940
|
+
"$ref": "#/components/parameters/alt"
|
|
1941
|
+
},
|
|
1942
|
+
{
|
|
1943
|
+
"$ref": "#/components/parameters/fields"
|
|
1944
|
+
}
|
|
1945
|
+
],
|
|
1946
|
+
"post": {
|
|
1947
|
+
"description": "Moves the specified thread to the trash. Any messages that belong to the thread are also moved to the trash.",
|
|
1948
|
+
"operationId": "gmail.users.threads.trash",
|
|
1949
|
+
"parameters": [
|
|
1950
|
+
{
|
|
1951
|
+
"description": "The user's email address. The special value `me` can be used to indicate the authenticated user.",
|
|
1952
|
+
"in": "path",
|
|
1953
|
+
"name": "userId",
|
|
1954
|
+
"required": true,
|
|
1955
|
+
"schema": {
|
|
1956
|
+
"type": "string"
|
|
1957
|
+
}
|
|
1958
|
+
},
|
|
1959
|
+
{
|
|
1960
|
+
"description": "The ID of the thread to Trash.",
|
|
1961
|
+
"in": "path",
|
|
1962
|
+
"name": "id",
|
|
1963
|
+
"required": true,
|
|
1964
|
+
"schema": {
|
|
1965
|
+
"type": "string"
|
|
1966
|
+
}
|
|
1967
|
+
}
|
|
1968
|
+
],
|
|
1969
|
+
"responses": {
|
|
1970
|
+
"200": {
|
|
1971
|
+
"description": "Success. The response body is returned verbatim."
|
|
1972
|
+
}
|
|
1973
|
+
},
|
|
1974
|
+
"security": [
|
|
1975
|
+
{
|
|
1976
|
+
"Oauth2": [
|
|
1977
|
+
"https://mail.google.com/"
|
|
1978
|
+
],
|
|
1979
|
+
"Oauth2c": [
|
|
1980
|
+
"https://mail.google.com/"
|
|
1981
|
+
]
|
|
1982
|
+
},
|
|
1983
|
+
{
|
|
1984
|
+
"Oauth2": [
|
|
1985
|
+
"https://www.googleapis.com/auth/gmail.modify"
|
|
1986
|
+
],
|
|
1987
|
+
"Oauth2c": [
|
|
1988
|
+
"https://www.googleapis.com/auth/gmail.modify"
|
|
1989
|
+
]
|
|
1990
|
+
}
|
|
1991
|
+
],
|
|
1992
|
+
"tags": [
|
|
1993
|
+
"users"
|
|
1994
|
+
]
|
|
1995
|
+
}
|
|
1996
|
+
},
|
|
1997
|
+
"/gmail/v1/users/{userId}/threads/{id}/untrash": {
|
|
1998
|
+
"parameters": [
|
|
1999
|
+
{
|
|
2000
|
+
"$ref": "#/components/parameters/alt"
|
|
2001
|
+
},
|
|
2002
|
+
{
|
|
2003
|
+
"$ref": "#/components/parameters/fields"
|
|
2004
|
+
}
|
|
2005
|
+
],
|
|
2006
|
+
"post": {
|
|
2007
|
+
"description": "Removes the specified thread from the trash. Any messages that belong to the thread are also removed from the trash.",
|
|
2008
|
+
"operationId": "gmail.users.threads.untrash",
|
|
2009
|
+
"parameters": [
|
|
2010
|
+
{
|
|
2011
|
+
"description": "The user's email address. The special value `me` can be used to indicate the authenticated user.",
|
|
2012
|
+
"in": "path",
|
|
2013
|
+
"name": "userId",
|
|
2014
|
+
"required": true,
|
|
2015
|
+
"schema": {
|
|
2016
|
+
"type": "string"
|
|
2017
|
+
}
|
|
2018
|
+
},
|
|
2019
|
+
{
|
|
2020
|
+
"description": "The ID of the thread to remove from Trash.",
|
|
2021
|
+
"in": "path",
|
|
2022
|
+
"name": "id",
|
|
2023
|
+
"required": true,
|
|
2024
|
+
"schema": {
|
|
2025
|
+
"type": "string"
|
|
2026
|
+
}
|
|
2027
|
+
}
|
|
2028
|
+
],
|
|
2029
|
+
"responses": {
|
|
2030
|
+
"200": {
|
|
2031
|
+
"description": "Success. The response body is returned verbatim."
|
|
2032
|
+
}
|
|
2033
|
+
},
|
|
2034
|
+
"security": [
|
|
2035
|
+
{
|
|
2036
|
+
"Oauth2": [
|
|
2037
|
+
"https://mail.google.com/"
|
|
2038
|
+
],
|
|
2039
|
+
"Oauth2c": [
|
|
2040
|
+
"https://mail.google.com/"
|
|
2041
|
+
]
|
|
2042
|
+
},
|
|
2043
|
+
{
|
|
2044
|
+
"Oauth2": [
|
|
2045
|
+
"https://www.googleapis.com/auth/gmail.modify"
|
|
2046
|
+
],
|
|
2047
|
+
"Oauth2c": [
|
|
2048
|
+
"https://www.googleapis.com/auth/gmail.modify"
|
|
2049
|
+
]
|
|
2050
|
+
}
|
|
2051
|
+
],
|
|
2052
|
+
"tags": [
|
|
2053
|
+
"users"
|
|
2054
|
+
]
|
|
2055
|
+
}
|
|
2056
|
+
}
|
|
2057
|
+
},
|
|
2058
|
+
"components": {
|
|
2059
|
+
"parameters": {
|
|
2060
|
+
"_.xgafv": {
|
|
2061
|
+
"description": "V1 error format.",
|
|
2062
|
+
"in": "query",
|
|
2063
|
+
"name": "$.xgafv",
|
|
2064
|
+
"schema": {
|
|
2065
|
+
"enum": [
|
|
2066
|
+
"1",
|
|
2067
|
+
"2"
|
|
2068
|
+
],
|
|
2069
|
+
"type": "string"
|
|
2070
|
+
}
|
|
2071
|
+
},
|
|
2072
|
+
"access_token": {
|
|
2073
|
+
"description": "OAuth access token.",
|
|
2074
|
+
"in": "query",
|
|
2075
|
+
"name": "access_token",
|
|
2076
|
+
"schema": {
|
|
2077
|
+
"type": "string"
|
|
2078
|
+
}
|
|
2079
|
+
},
|
|
2080
|
+
"alt": {
|
|
2081
|
+
"description": "Data format for response.",
|
|
2082
|
+
"in": "query",
|
|
2083
|
+
"name": "alt",
|
|
2084
|
+
"schema": {
|
|
2085
|
+
"enum": [
|
|
2086
|
+
"json",
|
|
2087
|
+
"media",
|
|
2088
|
+
"proto"
|
|
2089
|
+
],
|
|
2090
|
+
"type": "string"
|
|
2091
|
+
}
|
|
2092
|
+
},
|
|
2093
|
+
"callback": {
|
|
2094
|
+
"description": "JSONP",
|
|
2095
|
+
"in": "query",
|
|
2096
|
+
"name": "callback",
|
|
2097
|
+
"schema": {
|
|
2098
|
+
"type": "string"
|
|
2099
|
+
}
|
|
2100
|
+
},
|
|
2101
|
+
"fields": {
|
|
2102
|
+
"description": "Selector specifying which fields to include in a partial response.",
|
|
2103
|
+
"in": "query",
|
|
2104
|
+
"name": "fields",
|
|
2105
|
+
"schema": {
|
|
2106
|
+
"type": "string"
|
|
2107
|
+
}
|
|
2108
|
+
},
|
|
2109
|
+
"key": {
|
|
2110
|
+
"description": "API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.",
|
|
2111
|
+
"in": "query",
|
|
2112
|
+
"name": "key",
|
|
2113
|
+
"schema": {
|
|
2114
|
+
"type": "string"
|
|
2115
|
+
}
|
|
2116
|
+
},
|
|
2117
|
+
"oauth_token": {
|
|
2118
|
+
"description": "OAuth 2.0 token for the current user.",
|
|
2119
|
+
"in": "query",
|
|
2120
|
+
"name": "oauth_token",
|
|
2121
|
+
"schema": {
|
|
2122
|
+
"type": "string"
|
|
2123
|
+
}
|
|
2124
|
+
},
|
|
2125
|
+
"prettyPrint": {
|
|
2126
|
+
"description": "Returns response with indentations and line breaks.",
|
|
2127
|
+
"in": "query",
|
|
2128
|
+
"name": "prettyPrint",
|
|
2129
|
+
"schema": {
|
|
2130
|
+
"type": "boolean"
|
|
2131
|
+
}
|
|
2132
|
+
},
|
|
2133
|
+
"quotaUser": {
|
|
2134
|
+
"description": "Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.",
|
|
2135
|
+
"in": "query",
|
|
2136
|
+
"name": "quotaUser",
|
|
2137
|
+
"schema": {
|
|
2138
|
+
"type": "string"
|
|
2139
|
+
}
|
|
2140
|
+
},
|
|
2141
|
+
"uploadType": {
|
|
2142
|
+
"description": "Legacy upload protocol for media (e.g. \"media\", \"multipart\").",
|
|
2143
|
+
"in": "query",
|
|
2144
|
+
"name": "uploadType",
|
|
2145
|
+
"schema": {
|
|
2146
|
+
"type": "string"
|
|
2147
|
+
}
|
|
2148
|
+
},
|
|
2149
|
+
"upload_protocol": {
|
|
2150
|
+
"description": "Upload protocol for media (e.g. \"raw\", \"multipart\").",
|
|
2151
|
+
"in": "query",
|
|
2152
|
+
"name": "upload_protocol",
|
|
2153
|
+
"schema": {
|
|
2154
|
+
"type": "string"
|
|
2155
|
+
}
|
|
2156
|
+
}
|
|
2157
|
+
},
|
|
2158
|
+
"schemas": {
|
|
2159
|
+
"BatchModifyMessagesRequest": {
|
|
2160
|
+
"properties": {
|
|
2161
|
+
"addLabelIds": {
|
|
2162
|
+
"description": "A list of label IDs to add to messages.",
|
|
2163
|
+
"items": {
|
|
2164
|
+
"type": "string"
|
|
2165
|
+
},
|
|
2166
|
+
"type": "array"
|
|
2167
|
+
},
|
|
2168
|
+
"ids": {
|
|
2169
|
+
"description": "The IDs of the messages to modify. There is a limit of 1000 ids per request.",
|
|
2170
|
+
"items": {
|
|
2171
|
+
"type": "string"
|
|
2172
|
+
},
|
|
2173
|
+
"type": "array"
|
|
2174
|
+
},
|
|
2175
|
+
"removeLabelIds": {
|
|
2176
|
+
"description": "A list of label IDs to remove from messages.",
|
|
2177
|
+
"items": {
|
|
2178
|
+
"type": "string"
|
|
2179
|
+
},
|
|
2180
|
+
"type": "array"
|
|
2181
|
+
}
|
|
2182
|
+
},
|
|
2183
|
+
"type": "object"
|
|
2184
|
+
},
|
|
2185
|
+
"Draft": {
|
|
2186
|
+
"description": "A draft email in the user's mailbox.",
|
|
2187
|
+
"properties": {
|
|
2188
|
+
"id": {
|
|
2189
|
+
"description": "The immutable ID of the draft.",
|
|
2190
|
+
"type": "string"
|
|
2191
|
+
},
|
|
2192
|
+
"message": {
|
|
2193
|
+
"$ref": "#/components/schemas/Message",
|
|
2194
|
+
"description": "The message content of the draft."
|
|
2195
|
+
}
|
|
2196
|
+
},
|
|
2197
|
+
"type": "object"
|
|
2198
|
+
},
|
|
2199
|
+
"Filter": {
|
|
2200
|
+
"description": "Resource definition for Gmail filters. Filters apply to specific messages instead of an entire email thread.",
|
|
2201
|
+
"properties": {
|
|
2202
|
+
"action": {
|
|
2203
|
+
"$ref": "#/components/schemas/FilterAction",
|
|
2204
|
+
"description": "Action that the filter performs."
|
|
2205
|
+
},
|
|
2206
|
+
"criteria": {
|
|
2207
|
+
"$ref": "#/components/schemas/FilterCriteria",
|
|
2208
|
+
"description": "Matching criteria for the filter."
|
|
2209
|
+
},
|
|
2210
|
+
"id": {
|
|
2211
|
+
"description": "The server assigned ID of the filter.",
|
|
2212
|
+
"type": "string"
|
|
2213
|
+
}
|
|
2214
|
+
},
|
|
2215
|
+
"type": "object"
|
|
2216
|
+
},
|
|
2217
|
+
"FilterAction": {
|
|
2218
|
+
"description": "A set of actions to perform on a message.",
|
|
2219
|
+
"properties": {
|
|
2220
|
+
"addLabelIds": {
|
|
2221
|
+
"description": "List of labels to add to the message.",
|
|
2222
|
+
"items": {
|
|
2223
|
+
"type": "string"
|
|
2224
|
+
},
|
|
2225
|
+
"type": "array"
|
|
2226
|
+
},
|
|
2227
|
+
"forward": {
|
|
2228
|
+
"description": "Email address that the message should be forwarded to.",
|
|
2229
|
+
"type": "string"
|
|
2230
|
+
},
|
|
2231
|
+
"removeLabelIds": {
|
|
2232
|
+
"description": "List of labels to remove from the message.",
|
|
2233
|
+
"items": {
|
|
2234
|
+
"type": "string"
|
|
2235
|
+
},
|
|
2236
|
+
"type": "array"
|
|
2237
|
+
}
|
|
2238
|
+
},
|
|
2239
|
+
"type": "object"
|
|
2240
|
+
},
|
|
2241
|
+
"FilterCriteria": {
|
|
2242
|
+
"description": "Message matching criteria.",
|
|
2243
|
+
"properties": {
|
|
2244
|
+
"excludeChats": {
|
|
2245
|
+
"description": "Whether the response should exclude chats.",
|
|
2246
|
+
"type": "boolean"
|
|
2247
|
+
},
|
|
2248
|
+
"from": {
|
|
2249
|
+
"description": "The sender's display name or email address.",
|
|
2250
|
+
"type": "string"
|
|
2251
|
+
},
|
|
2252
|
+
"hasAttachment": {
|
|
2253
|
+
"description": "Whether the message has any attachment.",
|
|
2254
|
+
"type": "boolean"
|
|
2255
|
+
},
|
|
2256
|
+
"negatedQuery": {
|
|
2257
|
+
"description": "Only return messages not matching the specified query. Supports the same query format as the Gmail search box. For example, `\"from:someuser@example.com rfc822msgid: is:unread\"`.",
|
|
2258
|
+
"type": "string"
|
|
2259
|
+
},
|
|
2260
|
+
"query": {
|
|
2261
|
+
"description": "Only return messages matching the specified query. Supports the same query format as the Gmail search box. For example, `\"from:someuser@example.com rfc822msgid: is:unread\"`.",
|
|
2262
|
+
"type": "string"
|
|
2263
|
+
},
|
|
2264
|
+
"size": {
|
|
2265
|
+
"description": "The size of the entire RFC822 message in bytes, including all headers and attachments.",
|
|
2266
|
+
"format": "int32",
|
|
2267
|
+
"type": "integer"
|
|
2268
|
+
},
|
|
2269
|
+
"sizeComparison": {
|
|
2270
|
+
"description": "How the message size in bytes should be in relation to the size field.",
|
|
2271
|
+
"enum": [
|
|
2272
|
+
"unspecified",
|
|
2273
|
+
"smaller",
|
|
2274
|
+
"larger"
|
|
2275
|
+
],
|
|
2276
|
+
"type": "string"
|
|
2277
|
+
},
|
|
2278
|
+
"subject": {
|
|
2279
|
+
"description": "Case-insensitive phrase found in the message's subject. Trailing and leading whitespace are be trimmed and adjacent spaces are collapsed.",
|
|
2280
|
+
"type": "string"
|
|
2281
|
+
},
|
|
2282
|
+
"to": {
|
|
2283
|
+
"description": "The recipient's display name or email address. Includes recipients in the \"to\", \"cc\", and \"bcc\" header fields. You can use simply the local part of the email address. For example, \"example\" and \"example@\" both match \"example@gmail.com\". This field is case-insensitive.",
|
|
2284
|
+
"type": "string"
|
|
2285
|
+
}
|
|
2286
|
+
},
|
|
2287
|
+
"type": "object"
|
|
2288
|
+
},
|
|
2289
|
+
"Label": {
|
|
2290
|
+
"description": "Labels are used to categorize messages and threads within the user's mailbox. The maximum number of labels supported for a user's mailbox is 10,000.",
|
|
2291
|
+
"properties": {
|
|
2292
|
+
"color": {
|
|
2293
|
+
"$ref": "#/components/schemas/LabelColor",
|
|
2294
|
+
"description": "The color to assign to the label. Color is only available for labels that have their `type` set to `user`."
|
|
2295
|
+
},
|
|
2296
|
+
"id": {
|
|
2297
|
+
"description": "The immutable ID of the label.",
|
|
2298
|
+
"type": "string"
|
|
2299
|
+
},
|
|
2300
|
+
"labelListVisibility": {
|
|
2301
|
+
"description": "The visibility of the label in the label list in the Gmail web interface.",
|
|
2302
|
+
"enum": [
|
|
2303
|
+
"labelShow",
|
|
2304
|
+
"labelShowIfUnread",
|
|
2305
|
+
"labelHide"
|
|
2306
|
+
],
|
|
2307
|
+
"type": "string"
|
|
2308
|
+
},
|
|
2309
|
+
"messageListVisibility": {
|
|
2310
|
+
"description": "The visibility of messages with this label in the message list in the Gmail web interface.",
|
|
2311
|
+
"enum": [
|
|
2312
|
+
"show",
|
|
2313
|
+
"hide"
|
|
2314
|
+
],
|
|
2315
|
+
"type": "string"
|
|
2316
|
+
},
|
|
2317
|
+
"messagesTotal": {
|
|
2318
|
+
"description": "The total number of messages with the label.",
|
|
2319
|
+
"format": "int32",
|
|
2320
|
+
"type": "integer"
|
|
2321
|
+
},
|
|
2322
|
+
"messagesUnread": {
|
|
2323
|
+
"description": "The number of unread messages with the label.",
|
|
2324
|
+
"format": "int32",
|
|
2325
|
+
"type": "integer"
|
|
2326
|
+
},
|
|
2327
|
+
"name": {
|
|
2328
|
+
"description": "The display name of the label.",
|
|
2329
|
+
"type": "string"
|
|
2330
|
+
},
|
|
2331
|
+
"threadsTotal": {
|
|
2332
|
+
"description": "The total number of threads with the label.",
|
|
2333
|
+
"format": "int32",
|
|
2334
|
+
"type": "integer"
|
|
2335
|
+
},
|
|
2336
|
+
"threadsUnread": {
|
|
2337
|
+
"description": "The number of unread threads with the label.",
|
|
2338
|
+
"format": "int32",
|
|
2339
|
+
"type": "integer"
|
|
2340
|
+
},
|
|
2341
|
+
"type": {
|
|
2342
|
+
"description": "The owner type for the label. User labels are created by the user and can be modified and deleted by the user and can be applied to any message or thread. System labels are internally created and cannot be added, modified, or deleted. System labels may be able to be applied to or removed from messages and threads under some circumstances but this is not guaranteed. For example, users can apply and remove the `INBOX` and `UNREAD` labels from messages and threads, but cannot apply or remove the `DRAFTS` or `SENT` labels from messages or threads.",
|
|
2343
|
+
"enum": [
|
|
2344
|
+
"system",
|
|
2345
|
+
"user"
|
|
2346
|
+
],
|
|
2347
|
+
"type": "string"
|
|
2348
|
+
}
|
|
2349
|
+
},
|
|
2350
|
+
"type": "object"
|
|
2351
|
+
},
|
|
2352
|
+
"LabelColor": {
|
|
2353
|
+
"properties": {
|
|
2354
|
+
"backgroundColor": {
|
|
2355
|
+
"description": "The background color represented as hex string #RRGGBB (ex #000000). This field is required in order to set the color of a label. Only the following predefined set of color values are allowed: \\#000000, #434343, #666666, #999999, #cccccc, #efefef, #f3f3f3, #ffffff, \\#fb4c2f, #ffad47, #fad165, #16a766, #43d692, #4a86e8, #a479e2, #f691b3, \\#f6c5be, #ffe6c7, #fef1d1, #b9e4d0, #c6f3de, #c9daf8, #e4d7f5, #fcdee8, \\#efa093, #ffd6a2, #fce8b3, #89d3b2, #a0eac9, #a4c2f4, #d0bcf1, #fbc8d9, \\#e66550, #ffbc6b, #fcda83, #44b984, #68dfa9, #6d9eeb, #b694e8, #f7a7c0, \\#cc3a21, #eaa041, #f2c960, #149e60, #3dc789, #3c78d8, #8e63ce, #e07798, \\#ac2b16, #cf8933, #d5ae49, #0b804b, #2a9c68, #285bac, #653e9b, #b65775, \\#822111, #a46a21, #aa8831, #076239, #1a764d, #1c4587, #41236d, #83334c \\#464646, #e7e7e7, #0d3472, #b6cff5, #0d3b44, #98d7e4, #3d188e, #e3d7ff, \\#711a36, #fbd3e0, #8a1c0a, #f2b2a8, #7a2e0b, #ffc8af, #7a4706, #ffdeb5, \\#594c05, #fbe983, #684e07, #fdedc1, #0b4f30, #b3efd3, #04502e, #a2dcc1, \\#c2c2c2, #4986e7, #2da2bb, #b99aff, #994a64, #f691b2, #ff7537, #ffad46, \\#662e37, #ebdbde, #cca6ac, #094228, #42d692, #16a765",
|
|
2356
|
+
"type": "string"
|
|
2357
|
+
},
|
|
2358
|
+
"textColor": {
|
|
2359
|
+
"description": "The text color of the label, represented as hex string. This field is required in order to set the color of a label. Only the following predefined set of color values are allowed: \\#000000, #434343, #666666, #999999, #cccccc, #efefef, #f3f3f3, #ffffff, \\#fb4c2f, #ffad47, #fad165, #16a766, #43d692, #4a86e8, #a479e2, #f691b3, \\#f6c5be, #ffe6c7, #fef1d1, #b9e4d0, #c6f3de, #c9daf8, #e4d7f5, #fcdee8, \\#efa093, #ffd6a2, #fce8b3, #89d3b2, #a0eac9, #a4c2f4, #d0bcf1, #fbc8d9, \\#e66550, #ffbc6b, #fcda83, #44b984, #68dfa9, #6d9eeb, #b694e8, #f7a7c0, \\#cc3a21, #eaa041, #f2c960, #149e60, #3dc789, #3c78d8, #8e63ce, #e07798, \\#ac2b16, #cf8933, #d5ae49, #0b804b, #2a9c68, #285bac, #653e9b, #b65775, \\#822111, #a46a21, #aa8831, #076239, #1a764d, #1c4587, #41236d, #83334c \\#464646, #e7e7e7, #0d3472, #b6cff5, #0d3b44, #98d7e4, #3d188e, #e3d7ff, \\#711a36, #fbd3e0, #8a1c0a, #f2b2a8, #7a2e0b, #ffc8af, #7a4706, #ffdeb5, \\#594c05, #fbe983, #684e07, #fdedc1, #0b4f30, #b3efd3, #04502e, #a2dcc1, \\#c2c2c2, #4986e7, #2da2bb, #b99aff, #994a64, #f691b2, #ff7537, #ffad46, \\#662e37, #ebdbde, #cca6ac, #094228, #42d692, #16a765",
|
|
2360
|
+
"type": "string"
|
|
2361
|
+
}
|
|
2362
|
+
},
|
|
2363
|
+
"type": "object"
|
|
2364
|
+
},
|
|
2365
|
+
"Message": {
|
|
2366
|
+
"description": "An email message.",
|
|
2367
|
+
"properties": {
|
|
2368
|
+
"historyId": {
|
|
2369
|
+
"description": "The ID of the last history record that modified this message.",
|
|
2370
|
+
"format": "uint64",
|
|
2371
|
+
"type": "string"
|
|
2372
|
+
},
|
|
2373
|
+
"id": {
|
|
2374
|
+
"description": "The immutable ID of the message.",
|
|
2375
|
+
"type": "string"
|
|
2376
|
+
},
|
|
2377
|
+
"internalDate": {
|
|
2378
|
+
"description": "The internal message creation timestamp (epoch ms), which determines ordering in the inbox. For normal SMTP-received email, this represents the time the message was originally accepted by Google, which is more reliable than the `Date` header. However, for API-migrated mail, it can be configured by client to be based on the `Date` header.",
|
|
2379
|
+
"format": "int64",
|
|
2380
|
+
"type": "string"
|
|
2381
|
+
},
|
|
2382
|
+
"labelIds": {
|
|
2383
|
+
"description": "List of IDs of labels applied to this message.",
|
|
2384
|
+
"items": {
|
|
2385
|
+
"type": "string"
|
|
2386
|
+
},
|
|
2387
|
+
"type": "array"
|
|
2388
|
+
},
|
|
2389
|
+
"payload": {
|
|
2390
|
+
"$ref": "#/components/schemas/MessagePart",
|
|
2391
|
+
"description": "The parsed email structure in the message parts."
|
|
2392
|
+
},
|
|
2393
|
+
"raw": {
|
|
2394
|
+
"description": "The entire email message in an RFC 2822 formatted and base64url encoded string. Returned in `messages.get` and `drafts.get` responses when the `format=RAW` parameter is supplied.",
|
|
2395
|
+
"format": "byte",
|
|
2396
|
+
"type": "string"
|
|
2397
|
+
},
|
|
2398
|
+
"sizeEstimate": {
|
|
2399
|
+
"description": "Estimated size in bytes of the message.",
|
|
2400
|
+
"format": "int32",
|
|
2401
|
+
"type": "integer"
|
|
2402
|
+
},
|
|
2403
|
+
"snippet": {
|
|
2404
|
+
"description": "A short part of the message text.",
|
|
2405
|
+
"type": "string"
|
|
2406
|
+
},
|
|
2407
|
+
"threadId": {
|
|
2408
|
+
"description": "The ID of the thread the message belongs to. To add a message or draft to a thread, the following criteria must be met: 1. The requested `threadId` must be specified on the `Message` or `Draft.Message` you supply with your request. 2. The `References` and `In-Reply-To` headers must be set in compliance with the [RFC 2822](https://tools.ietf.org/html/rfc2822) standard. 3. The `Subject` headers must match. ",
|
|
2409
|
+
"type": "string"
|
|
2410
|
+
}
|
|
2411
|
+
},
|
|
2412
|
+
"type": "object"
|
|
2413
|
+
},
|
|
2414
|
+
"MessagePart": {
|
|
2415
|
+
"description": "A single MIME message part.",
|
|
2416
|
+
"properties": {
|
|
2417
|
+
"body": {
|
|
2418
|
+
"$ref": "#/components/schemas/MessagePartBody",
|
|
2419
|
+
"description": "The message part body for this part, which may be empty for container MIME message parts."
|
|
2420
|
+
},
|
|
2421
|
+
"filename": {
|
|
2422
|
+
"description": "The filename of the attachment. Only present if this message part represents an attachment.",
|
|
2423
|
+
"type": "string"
|
|
2424
|
+
},
|
|
2425
|
+
"headers": {
|
|
2426
|
+
"description": "List of headers on this message part. For the top-level message part, representing the entire message payload, it will contain the standard RFC 2822 email headers such as `To`, `From`, and `Subject`.",
|
|
2427
|
+
"items": {
|
|
2428
|
+
"$ref": "#/components/schemas/MessagePartHeader"
|
|
2429
|
+
},
|
|
2430
|
+
"type": "array"
|
|
2431
|
+
},
|
|
2432
|
+
"mimeType": {
|
|
2433
|
+
"description": "The MIME type of the message part.",
|
|
2434
|
+
"type": "string"
|
|
2435
|
+
},
|
|
2436
|
+
"partId": {
|
|
2437
|
+
"description": "The immutable ID of the message part.",
|
|
2438
|
+
"type": "string"
|
|
2439
|
+
},
|
|
2440
|
+
"parts": {
|
|
2441
|
+
"description": "The child MIME message parts of this part. This only applies to container MIME message parts, for example `multipart/*`. For non- container MIME message part types, such as `text/plain`, this field is empty. For more information, see RFC 1521.",
|
|
2442
|
+
"items": {
|
|
2443
|
+
"type": "object",
|
|
2444
|
+
"additionalProperties": true,
|
|
2445
|
+
"description": "A nested MessagePart. Structure omitted: it recurses."
|
|
2446
|
+
},
|
|
2447
|
+
"type": "array"
|
|
2448
|
+
}
|
|
2449
|
+
},
|
|
2450
|
+
"type": "object"
|
|
2451
|
+
},
|
|
2452
|
+
"MessagePartBody": {
|
|
2453
|
+
"description": "The body of a single MIME message part.",
|
|
2454
|
+
"properties": {
|
|
2455
|
+
"attachmentId": {
|
|
2456
|
+
"description": "When present, contains the ID of an external attachment that can be retrieved in a separate `messages.attachments.get` request. When not present, the entire content of the message part body is contained in the data field.",
|
|
2457
|
+
"type": "string"
|
|
2458
|
+
},
|
|
2459
|
+
"data": {
|
|
2460
|
+
"description": "The body data of a MIME message part as a base64url encoded string. May be empty for MIME container types that have no message body or when the body data is sent as a separate attachment. An attachment ID is present if the body data is contained in a separate attachment.",
|
|
2461
|
+
"format": "byte",
|
|
2462
|
+
"type": "string"
|
|
2463
|
+
},
|
|
2464
|
+
"size": {
|
|
2465
|
+
"description": "Number of bytes for the message part data (encoding notwithstanding).",
|
|
2466
|
+
"format": "int32",
|
|
2467
|
+
"type": "integer"
|
|
2468
|
+
}
|
|
2469
|
+
},
|
|
2470
|
+
"type": "object"
|
|
2471
|
+
},
|
|
2472
|
+
"MessagePartHeader": {
|
|
2473
|
+
"properties": {
|
|
2474
|
+
"name": {
|
|
2475
|
+
"description": "The name of the header before the `:` separator. For example, `To`.",
|
|
2476
|
+
"type": "string"
|
|
2477
|
+
},
|
|
2478
|
+
"value": {
|
|
2479
|
+
"description": "The value of the header after the `:` separator. For example, `someuser@example.com`.",
|
|
2480
|
+
"type": "string"
|
|
2481
|
+
}
|
|
2482
|
+
},
|
|
2483
|
+
"type": "object"
|
|
2484
|
+
},
|
|
2485
|
+
"ModifyMessageRequest": {
|
|
2486
|
+
"properties": {
|
|
2487
|
+
"addLabelIds": {
|
|
2488
|
+
"description": "A list of IDs of labels to add to this message. You can add up to 100 labels with each update.",
|
|
2489
|
+
"items": {
|
|
2490
|
+
"type": "string"
|
|
2491
|
+
},
|
|
2492
|
+
"type": "array"
|
|
2493
|
+
},
|
|
2494
|
+
"removeLabelIds": {
|
|
2495
|
+
"description": "A list IDs of labels to remove from this message. You can remove up to 100 labels with each update.",
|
|
2496
|
+
"items": {
|
|
2497
|
+
"type": "string"
|
|
2498
|
+
},
|
|
2499
|
+
"type": "array"
|
|
2500
|
+
}
|
|
2501
|
+
},
|
|
2502
|
+
"type": "object"
|
|
2503
|
+
},
|
|
2504
|
+
"ModifyThreadRequest": {
|
|
2505
|
+
"properties": {
|
|
2506
|
+
"addLabelIds": {
|
|
2507
|
+
"description": "A list of IDs of labels to add to this thread. You can add up to 100 labels with each update.",
|
|
2508
|
+
"items": {
|
|
2509
|
+
"type": "string"
|
|
2510
|
+
},
|
|
2511
|
+
"type": "array"
|
|
2512
|
+
},
|
|
2513
|
+
"removeLabelIds": {
|
|
2514
|
+
"description": "A list of IDs of labels to remove from this thread. You can remove up to 100 labels with each update.",
|
|
2515
|
+
"items": {
|
|
2516
|
+
"type": "string"
|
|
2517
|
+
},
|
|
2518
|
+
"type": "array"
|
|
2519
|
+
}
|
|
2520
|
+
},
|
|
2521
|
+
"type": "object"
|
|
2522
|
+
}
|
|
2523
|
+
},
|
|
2524
|
+
"securitySchemes": {
|
|
2525
|
+
"Oauth2": {
|
|
2526
|
+
"description": "Oauth 2.0 implicit authentication",
|
|
2527
|
+
"flows": {
|
|
2528
|
+
"implicit": {
|
|
2529
|
+
"authorizationUrl": "https://accounts.google.com/o/oauth2/auth",
|
|
2530
|
+
"scopes": {
|
|
2531
|
+
"https://mail.google.com/": "Read, compose, send, and permanently delete all your email from Gmail",
|
|
2532
|
+
"https://www.googleapis.com/auth/gmail.addons.current.action.compose": "Manage drafts and send emails when you interact with the add-on",
|
|
2533
|
+
"https://www.googleapis.com/auth/gmail.addons.current.message.action": "View your email messages when you interact with the add-on",
|
|
2534
|
+
"https://www.googleapis.com/auth/gmail.addons.current.message.metadata": "View your email message metadata when the add-on is running",
|
|
2535
|
+
"https://www.googleapis.com/auth/gmail.addons.current.message.readonly": "View your email messages when the add-on is running",
|
|
2536
|
+
"https://www.googleapis.com/auth/gmail.compose": "Manage drafts and send emails",
|
|
2537
|
+
"https://www.googleapis.com/auth/gmail.insert": "Add emails into your Gmail mailbox",
|
|
2538
|
+
"https://www.googleapis.com/auth/gmail.labels": "See and edit your email labels",
|
|
2539
|
+
"https://www.googleapis.com/auth/gmail.metadata": "View your email message metadata such as labels and headers, but not the email body",
|
|
2540
|
+
"https://www.googleapis.com/auth/gmail.modify": "Read, compose, and send emails from your Gmail account",
|
|
2541
|
+
"https://www.googleapis.com/auth/gmail.readonly": "View your email messages and settings",
|
|
2542
|
+
"https://www.googleapis.com/auth/gmail.send": "Send email on your behalf",
|
|
2543
|
+
"https://www.googleapis.com/auth/gmail.settings.basic": "See, edit, create, or change your email settings and filters in Gmail",
|
|
2544
|
+
"https://www.googleapis.com/auth/gmail.settings.sharing": "Manage your sensitive mail settings, including who can manage your mail"
|
|
2545
|
+
}
|
|
2546
|
+
}
|
|
2547
|
+
},
|
|
2548
|
+
"type": "oauth2"
|
|
2549
|
+
},
|
|
2550
|
+
"Oauth2c": {
|
|
2551
|
+
"description": "Oauth 2.0 authorizationCode authentication",
|
|
2552
|
+
"flows": {
|
|
2553
|
+
"authorizationCode": {
|
|
2554
|
+
"authorizationUrl": "https://accounts.google.com/o/oauth2/auth",
|
|
2555
|
+
"scopes": {
|
|
2556
|
+
"https://mail.google.com/": "Read, compose, send, and permanently delete all your email from Gmail",
|
|
2557
|
+
"https://www.googleapis.com/auth/gmail.addons.current.action.compose": "Manage drafts and send emails when you interact with the add-on",
|
|
2558
|
+
"https://www.googleapis.com/auth/gmail.addons.current.message.action": "View your email messages when you interact with the add-on",
|
|
2559
|
+
"https://www.googleapis.com/auth/gmail.addons.current.message.metadata": "View your email message metadata when the add-on is running",
|
|
2560
|
+
"https://www.googleapis.com/auth/gmail.addons.current.message.readonly": "View your email messages when the add-on is running",
|
|
2561
|
+
"https://www.googleapis.com/auth/gmail.compose": "Manage drafts and send emails",
|
|
2562
|
+
"https://www.googleapis.com/auth/gmail.insert": "Add emails into your Gmail mailbox",
|
|
2563
|
+
"https://www.googleapis.com/auth/gmail.labels": "See and edit your email labels",
|
|
2564
|
+
"https://www.googleapis.com/auth/gmail.metadata": "View your email message metadata such as labels and headers, but not the email body",
|
|
2565
|
+
"https://www.googleapis.com/auth/gmail.modify": "Read, compose, and send emails from your Gmail account",
|
|
2566
|
+
"https://www.googleapis.com/auth/gmail.readonly": "View your email messages and settings",
|
|
2567
|
+
"https://www.googleapis.com/auth/gmail.send": "Send email on your behalf",
|
|
2568
|
+
"https://www.googleapis.com/auth/gmail.settings.basic": "See, edit, create, or change your email settings and filters in Gmail",
|
|
2569
|
+
"https://www.googleapis.com/auth/gmail.settings.sharing": "Manage your sensitive mail settings, including who can manage your mail"
|
|
2570
|
+
},
|
|
2571
|
+
"tokenUrl": "https://accounts.google.com/o/oauth2/token"
|
|
2572
|
+
}
|
|
2573
|
+
},
|
|
2574
|
+
"type": "oauth2"
|
|
2575
|
+
}
|
|
2576
|
+
}
|
|
2577
|
+
}
|
|
2578
|
+
}
|