@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.
Files changed (276) hide show
  1. package/LICENSE +202 -0
  2. package/README.md +144 -0
  3. package/bin/lanes +42 -0
  4. package/instructions/agents/lanes-link-scout.md +73 -0
  5. package/instructions/skills/lanes-link/SKILL.md +187 -0
  6. package/package.json +95 -0
  7. package/src/audit/chain.ts +278 -0
  8. package/src/audit/conformance.ts +374 -0
  9. package/src/audit/fanout.ts +97 -0
  10. package/src/audit/index.ts +218 -0
  11. package/src/audit/stdout.ts +60 -0
  12. package/src/auth/index.ts +220 -0
  13. package/src/auth/oauth/metadata.ts +75 -0
  14. package/src/auth/oauth/server.ts +385 -0
  15. package/src/auth/oauth/store.ts +215 -0
  16. package/src/auth/oidc.ts +206 -0
  17. package/src/auth/remote.ts +72 -0
  18. package/src/cli/argv.ts +94 -0
  19. package/src/cli/callback-page.ts +256 -0
  20. package/src/cli/commands/connect/accounts.ts +94 -0
  21. package/src/cli/commands/connect/authorise.ts +298 -0
  22. package/src/cli/commands/connect/client.ts +284 -0
  23. package/src/cli/commands/connect/index.ts +398 -0
  24. package/src/cli/commands/connect/outcome.ts +119 -0
  25. package/src/cli/commands/connect/requirements.ts +103 -0
  26. package/src/cli/commands/connect/scopes-gate.ts +146 -0
  27. package/src/cli/commands/connect/settle.ts +136 -0
  28. package/src/cli/commands/connect/setup.ts +276 -0
  29. package/src/cli/commands/mcp/assets.ts +189 -0
  30. package/src/cli/commands/mcp/harnesses.ts +143 -0
  31. package/src/cli/commands/mcp/list.ts +70 -0
  32. package/src/cli/commands/mcp/register.ts +199 -0
  33. package/src/cli/commands/mcp/stdio.ts +57 -0
  34. package/src/cli/commands/mcp.ts +22 -0
  35. package/src/cli/commands/operate/attach.ts +121 -0
  36. package/src/cli/commands/operate/audit.ts +119 -0
  37. package/src/cli/commands/operate/inspect.ts +355 -0
  38. package/src/cli/commands/operate/outputs.ts +206 -0
  39. package/src/cli/commands/operate/policy.ts +80 -0
  40. package/src/cli/commands/operate/serve.ts +55 -0
  41. package/src/cli/commands/operate/status.ts +133 -0
  42. package/src/cli/commands/operate/token.ts +70 -0
  43. package/src/cli/commands/operate.ts +27 -0
  44. package/src/cli/commands/owner/memory.ts +110 -0
  45. package/src/cli/commands/owner/shared.ts +125 -0
  46. package/src/cli/commands/owner/skills.ts +92 -0
  47. package/src/cli/commands/owner/vault.ts +140 -0
  48. package/src/cli/commands/owner.ts +46 -0
  49. package/src/cli/commands/profile/removal.ts +278 -0
  50. package/src/cli/commands/profile/remove.ts +315 -0
  51. package/src/cli/commands/profile.ts +156 -0
  52. package/src/cli/commands/secrets.ts +176 -0
  53. package/src/cli/commands/setup.ts +150 -0
  54. package/src/cli/commands/target.ts +310 -0
  55. package/src/cli/config-edit.ts +397 -0
  56. package/src/cli/endpoint-url.ts +77 -0
  57. package/src/cli/identity.ts +109 -0
  58. package/src/cli/lanes.ts +78 -0
  59. package/src/cli/main.ts +333 -0
  60. package/src/cli/oauth-error.ts +13 -0
  61. package/src/cli/oauth-exchange.ts +146 -0
  62. package/src/cli/oauth.ts +354 -0
  63. package/src/cli/output.ts +184 -0
  64. package/src/cli/prompt.ts +180 -0
  65. package/src/cli/publish.ts +185 -0
  66. package/src/cli/runtime/discovery.ts +123 -0
  67. package/src/cli/runtime/open.ts +342 -0
  68. package/src/cli/runtime/registry.ts +185 -0
  69. package/src/cli/runtime/select.ts +124 -0
  70. package/src/cli/runtime.ts +34 -0
  71. package/src/cli/scopes.ts +63 -0
  72. package/src/cli/usage.ts +111 -0
  73. package/src/cli/version.ts +25 -0
  74. package/src/connectivity/auth/README.md +36 -0
  75. package/src/connectivity/auth/api-key/index.ts +43 -0
  76. package/src/connectivity/auth/authorize.ts +49 -0
  77. package/src/connectivity/auth/basic/index.ts +68 -0
  78. package/src/connectivity/auth/bearer/index.ts +13 -0
  79. package/src/connectivity/auth/credential.ts +19 -0
  80. package/src/connectivity/auth/header/index.ts +18 -0
  81. package/src/connectivity/auth/index.ts +35 -0
  82. package/src/connectivity/auth/none/index.ts +12 -0
  83. package/src/connectivity/auth/oauth-authcode/broker.ts +261 -0
  84. package/src/connectivity/auth/oauth-authcode/index.ts +64 -0
  85. package/src/connectivity/auth/oauth-authcode/provider.ts +279 -0
  86. package/src/connectivity/auth/oauth-authcode/refresh.ts +118 -0
  87. package/src/connectivity/auth/resolve.ts +61 -0
  88. package/src/connectivity/auth/strategy/index.ts +14 -0
  89. package/src/connectivity/capability.ts +164 -0
  90. package/src/connectivity/connector.ts +175 -0
  91. package/src/connectivity/context.ts +77 -0
  92. package/src/connectivity/index.ts +94 -0
  93. package/src/connectivity/mail/attachments.ts +368 -0
  94. package/src/connectivity/mail/compose.ts +73 -0
  95. package/src/connectivity/mail/index.ts +40 -0
  96. package/src/connectivity/mail/message.ts +82 -0
  97. package/src/connectivity/mail/nodemailer.d.ts +83 -0
  98. package/src/connectivity/mail/staging.ts +143 -0
  99. package/src/connectivity/mail/url.ts +301 -0
  100. package/src/connectivity/manifest/auth.ts +135 -0
  101. package/src/connectivity/manifest/bundles.ts +23 -0
  102. package/src/connectivity/manifest/connector.ts +168 -0
  103. package/src/connectivity/manifest/credential-ref.ts +73 -0
  104. package/src/connectivity/manifest/identity.ts +43 -0
  105. package/src/connectivity/manifest/index.ts +46 -0
  106. package/src/connectivity/manifest/primitives.ts +20 -0
  107. package/src/connectivity/manifest/provider.ts +208 -0
  108. package/src/connectivity/manifest/requirements.ts +146 -0
  109. package/src/connectivity/manifest/setup.ts +55 -0
  110. package/src/connectivity/provider.ts +163 -0
  111. package/src/connectivity/transports/README.md +33 -0
  112. package/src/connectivity/transports/composite/index.ts +68 -0
  113. package/src/connectivity/transports/dav/calendar.ts +217 -0
  114. package/src/connectivity/transports/dav/capabilities.ts +151 -0
  115. package/src/connectivity/transports/dav/client.ts +226 -0
  116. package/src/connectivity/transports/dav/contacts.ts +75 -0
  117. package/src/connectivity/transports/dav/ical.ts +412 -0
  118. package/src/connectivity/transports/dav/index.ts +143 -0
  119. package/src/connectivity/transports/dav/operations.ts +43 -0
  120. package/src/connectivity/transports/dav/request.ts +161 -0
  121. package/src/connectivity/transports/dav/xml.ts +123 -0
  122. package/src/connectivity/transports/factory.ts +181 -0
  123. package/src/connectivity/transports/fs/capabilities.ts +88 -0
  124. package/src/connectivity/transports/fs/commands.ts +258 -0
  125. package/src/connectivity/transports/fs/index.ts +121 -0
  126. package/src/connectivity/transports/fs/operations.ts +45 -0
  127. package/src/connectivity/transports/fs/paths.ts +120 -0
  128. package/src/connectivity/transports/fs/result.ts +12 -0
  129. package/src/connectivity/transports/http/index.ts +255 -0
  130. package/src/connectivity/transports/imap/attachment.ts +166 -0
  131. package/src/connectivity/transports/imap/capabilities.ts +158 -0
  132. package/src/connectivity/transports/imap/client.ts +398 -0
  133. package/src/connectivity/transports/imap/commands.ts +385 -0
  134. package/src/connectivity/transports/imap/index.ts +152 -0
  135. package/src/connectivity/transports/imap/operations.ts +64 -0
  136. package/src/connectivity/transports/imap/parse.ts +130 -0
  137. package/src/connectivity/transports/imap/parser.ts +272 -0
  138. package/src/connectivity/transports/imap/result.ts +15 -0
  139. package/src/connectivity/transports/imap/send.ts +92 -0
  140. package/src/connectivity/transports/imap/socket.ts +111 -0
  141. package/src/connectivity/transports/imap/utf7.ts +136 -0
  142. package/src/connectivity/transports/index.ts +20 -0
  143. package/src/connectivity/transports/local/index.ts +173 -0
  144. package/src/connectivity/transports/mcp/index.ts +215 -0
  145. package/src/deployments/README.md +63 -0
  146. package/src/deployments/adapters/audit-blob.ts +203 -0
  147. package/src/deployments/adapters/filesystem.ts +184 -0
  148. package/src/deployments/adapters/gcp-secret-manager.ts +492 -0
  149. package/src/deployments/adapters/gcs.ts +191 -0
  150. package/src/deployments/adapters/otlp.ts +128 -0
  151. package/src/deployments/adapters/s3.ts +195 -0
  152. package/src/deployments/azure/README.md +21 -0
  153. package/src/deployments/bootstrap.ts +177 -0
  154. package/src/deployments/deploy.ts +290 -0
  155. package/src/deployments/driver.ts +157 -0
  156. package/src/deployments/drivers.ts +35 -0
  157. package/src/deployments/gcp/Dockerfile +70 -0
  158. package/src/deployments/gcp/cloudbuild.yaml +31 -0
  159. package/src/deployments/gcp/driver.ts +175 -0
  160. package/src/deployments/gcp/gcloud.ts +178 -0
  161. package/src/deployments/gcp/provision.ts +290 -0
  162. package/src/deployments/gcp/survey.ts +319 -0
  163. package/src/deployments/local/README.md +12 -0
  164. package/src/deployments/prepare.ts +257 -0
  165. package/src/deployments/steps.ts +137 -0
  166. package/src/deployments/target.ts +295 -0
  167. package/src/deployments/upload.ts +207 -0
  168. package/src/dispatch/context.ts +195 -0
  169. package/src/dispatch/dispatch.ts +350 -0
  170. package/src/dispatch/index.ts +32 -0
  171. package/src/dispatch/staging.ts +102 -0
  172. package/src/policy/index.ts +179 -0
  173. package/src/policy/limits.ts +77 -0
  174. package/src/profile/authorization.ts +81 -0
  175. package/src/profile/files.ts +71 -0
  176. package/src/profile/index.ts +76 -0
  177. package/src/profile/layout.ts +123 -0
  178. package/src/profile/load.ts +199 -0
  179. package/src/profile/primitives.ts +45 -0
  180. package/src/profile/schema.ts +347 -0
  181. package/src/profile/secret-detection.ts +162 -0
  182. package/src/profile/targets.ts +152 -0
  183. package/src/profile/workspace.ts +262 -0
  184. package/src/providers/custom/index.ts +21 -0
  185. package/src/providers/custom/load.ts +115 -0
  186. package/src/providers/custom/template.ts +156 -0
  187. package/src/providers/example/provider.ts +207 -0
  188. package/src/providers/google/calendar/index.ts +66 -0
  189. package/src/providers/google/calendar/redact.ts +40 -0
  190. package/src/providers/google/contacts/index.ts +50 -0
  191. package/src/providers/google/contacts/redact.ts +21 -0
  192. package/src/providers/google/docs/index.ts +45 -0
  193. package/src/providers/google/drive/hints.ts +28 -0
  194. package/src/providers/google/drive/index.ts +34 -0
  195. package/src/providers/google/drive/redact.ts +39 -0
  196. package/src/providers/google/drive-mcp/index.ts +21 -0
  197. package/src/providers/google/gmail/api.ts +42 -0
  198. package/src/providers/google/gmail/attachment.ts +142 -0
  199. package/src/providers/google/gmail/hints.ts +55 -0
  200. package/src/providers/google/gmail/index.ts +112 -0
  201. package/src/providers/google/gmail/redact.ts +56 -0
  202. package/src/providers/google/gmail/send.ts +365 -0
  203. package/src/providers/google/gmail-mcp/index.ts +35 -0
  204. package/src/providers/google/index.ts +10 -0
  205. package/src/providers/google/shared/oauth.ts +122 -0
  206. package/src/providers/google/shared/scopes.ts +99 -0
  207. package/src/providers/google/shared/setup.ts +80 -0
  208. package/src/providers/google/sheets/hints.ts +45 -0
  209. package/src/providers/google/sheets/index.ts +70 -0
  210. package/src/providers/google/sheets/redact.ts +45 -0
  211. package/src/providers/google/specs/calendar.v3.json +1829 -0
  212. package/src/providers/google/specs/docs.v1.json +381 -0
  213. package/src/providers/google/specs/drive.v3.json +2208 -0
  214. package/src/providers/google/specs/gmail.v1.json +2578 -0
  215. package/src/providers/google/specs/people.v1.json +506 -0
  216. package/src/providers/google/specs/sheets.v4.json +1269 -0
  217. package/src/providers/google/specs/tasks.v1.json +840 -0
  218. package/src/providers/google/specs/vendor.ts +661 -0
  219. package/src/providers/google/tasks/index.ts +53 -0
  220. package/src/providers/google/tasks/redact.ts +34 -0
  221. package/src/providers/harness.ts +95 -0
  222. package/src/providers/icloud/calendar/index.ts +27 -0
  223. package/src/providers/icloud/contacts/index.ts +17 -0
  224. package/src/providers/icloud/drive/index.ts +47 -0
  225. package/src/providers/icloud/index.ts +8 -0
  226. package/src/providers/icloud/mail/index.ts +37 -0
  227. package/src/providers/icloud/shared/setup.ts +66 -0
  228. package/src/providers/index.ts +93 -0
  229. package/src/providers/linear/index.ts +11 -0
  230. package/src/providers/linear/scopes.ts +7 -0
  231. package/src/providers/memory/provider.ts +429 -0
  232. package/src/providers/notion/index.ts +19 -0
  233. package/src/providers/owner.ts +49 -0
  234. package/src/providers/scopes.ts +26 -0
  235. package/src/providers/setup/plan.ts +141 -0
  236. package/src/providers/setup/provider.ts +323 -0
  237. package/src/providers/shared/frontmatter.ts +119 -0
  238. package/src/providers/skills/provider.ts +283 -0
  239. package/src/providers/skills/store.ts +252 -0
  240. package/src/providers/vault/provider.ts +194 -0
  241. package/src/registry/index.ts +36 -0
  242. package/src/registry/policy-bridge.ts +32 -0
  243. package/src/registry/reconcile.ts +313 -0
  244. package/src/registry/registry.ts +240 -0
  245. package/src/secrets/document.ts +293 -0
  246. package/src/secrets/index.ts +154 -0
  247. package/src/secrets/system.ts +173 -0
  248. package/src/secrets/vault.ts +336 -0
  249. package/src/server/attachments.ts +197 -0
  250. package/src/server/container.ts +96 -0
  251. package/src/server/edge.ts +53 -0
  252. package/src/server/endpoint.ts +352 -0
  253. package/src/server/generations.ts +362 -0
  254. package/src/server/harness.ts +400 -0
  255. package/src/server/index.ts +331 -0
  256. package/src/server/logging.ts +41 -0
  257. package/src/server/mcp/build.ts +68 -0
  258. package/src/server/mcp/icon.ts +145 -0
  259. package/src/server/mcp/index.ts +32 -0
  260. package/src/server/mcp/instructions.ts +245 -0
  261. package/src/server/mcp/naming.ts +39 -0
  262. package/src/server/mcp/prompts.ts +78 -0
  263. package/src/server/mcp/resources.ts +106 -0
  264. package/src/server/mcp/routing.ts +117 -0
  265. package/src/server/mcp/schema.ts +78 -0
  266. package/src/server/mcp/tools.ts +186 -0
  267. package/src/server/mcp/visibility.ts +132 -0
  268. package/src/server/oauth.ts +222 -0
  269. package/src/server/rebinding.ts +53 -0
  270. package/src/server/stdio.ts +192 -0
  271. package/src/stores/blobs/conformance.ts +223 -0
  272. package/src/stores/blobs/index.ts +125 -0
  273. package/src/stores/blobs/testing.ts +49 -0
  274. package/src/stores/state/index.ts +247 -0
  275. package/src/stores/state/keys.ts +68 -0
  276. package/src/stores/state/testing.ts +41 -0
@@ -0,0 +1,2208 @@
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": "Manages files in Drive including uploading, downloading, searching, detecting changes, and updating sharing permissions.",
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": "Drive API",
16
+ "version": "v3",
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
+ "converter": {
30
+ "url": "https://github.com/mermade/oas-kit",
31
+ "version": "7.0.4"
32
+ },
33
+ "format": "google",
34
+ "url": "https://www.googleapis.com/discovery/v1/apis/drive/v3/rest",
35
+ "version": "v1"
36
+ }
37
+ ],
38
+ "x-preferred": true,
39
+ "x-providerName": "googleapis.com",
40
+ "x-serviceName": "drive",
41
+ "x-vendored-from": "https://api.apis.guru/v2/specs/googleapis.com/drive/v3/openapi.json",
42
+ "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."
43
+ },
44
+ "servers": [
45
+ {
46
+ "url": "https://www.googleapis.com/drive/v3"
47
+ }
48
+ ],
49
+ "paths": {
50
+ "/about": {
51
+ "get": {
52
+ "description": "Gets information about the user, the user's Drive, and system capabilities.",
53
+ "operationId": "drive.about.get",
54
+ "responses": {
55
+ "200": {
56
+ "description": "Success. The response body is returned verbatim."
57
+ }
58
+ },
59
+ "security": [
60
+ {
61
+ "Oauth2": [
62
+ "https://www.googleapis.com/auth/drive"
63
+ ],
64
+ "Oauth2c": [
65
+ "https://www.googleapis.com/auth/drive"
66
+ ]
67
+ },
68
+ {
69
+ "Oauth2": [
70
+ "https://www.googleapis.com/auth/drive.appdata"
71
+ ],
72
+ "Oauth2c": [
73
+ "https://www.googleapis.com/auth/drive.appdata"
74
+ ]
75
+ },
76
+ {
77
+ "Oauth2": [
78
+ "https://www.googleapis.com/auth/drive.file"
79
+ ],
80
+ "Oauth2c": [
81
+ "https://www.googleapis.com/auth/drive.file"
82
+ ]
83
+ },
84
+ {
85
+ "Oauth2": [
86
+ "https://www.googleapis.com/auth/drive.metadata"
87
+ ],
88
+ "Oauth2c": [
89
+ "https://www.googleapis.com/auth/drive.metadata"
90
+ ]
91
+ },
92
+ {
93
+ "Oauth2": [
94
+ "https://www.googleapis.com/auth/drive.metadata.readonly"
95
+ ],
96
+ "Oauth2c": [
97
+ "https://www.googleapis.com/auth/drive.metadata.readonly"
98
+ ]
99
+ },
100
+ {
101
+ "Oauth2": [
102
+ "https://www.googleapis.com/auth/drive.photos.readonly"
103
+ ],
104
+ "Oauth2c": [
105
+ "https://www.googleapis.com/auth/drive.photos.readonly"
106
+ ]
107
+ },
108
+ {
109
+ "Oauth2": [
110
+ "https://www.googleapis.com/auth/drive.readonly"
111
+ ],
112
+ "Oauth2c": [
113
+ "https://www.googleapis.com/auth/drive.readonly"
114
+ ]
115
+ }
116
+ ],
117
+ "tags": [
118
+ "about"
119
+ ]
120
+ },
121
+ "parameters": [
122
+ {
123
+ "$ref": "#/components/parameters/alt"
124
+ },
125
+ {
126
+ "$ref": "#/components/parameters/fields"
127
+ },
128
+ {
129
+ "$ref": "#/components/parameters/userIp"
130
+ }
131
+ ]
132
+ },
133
+ "/files": {
134
+ "get": {
135
+ "description": "Lists or searches files.",
136
+ "operationId": "drive.files.list",
137
+ "parameters": [
138
+ {
139
+ "description": "Groupings of files to which the query applies. Supported groupings are: 'user' (files created by, opened by, or shared directly with the user), 'drive' (files in the specified shared drive as indicated by the 'driveId'), 'domain' (files shared to the user's domain), and 'allDrives' (A combination of 'user' and 'drive' for all drives where the user is a member). When able, use 'user' or 'drive', instead of 'allDrives', for efficiency.",
140
+ "in": "query",
141
+ "name": "corpora",
142
+ "schema": {
143
+ "type": "string"
144
+ }
145
+ },
146
+ {
147
+ "description": "The source of files to list. Deprecated: use 'corpora' instead.",
148
+ "in": "query",
149
+ "name": "corpus",
150
+ "schema": {
151
+ "enum": [
152
+ "domain",
153
+ "user"
154
+ ],
155
+ "type": "string"
156
+ }
157
+ },
158
+ {
159
+ "description": "ID of the shared drive to search.",
160
+ "in": "query",
161
+ "name": "driveId",
162
+ "schema": {
163
+ "type": "string"
164
+ }
165
+ },
166
+ {
167
+ "description": "Whether both My Drive and shared drive items should be included in results.",
168
+ "in": "query",
169
+ "name": "includeItemsFromAllDrives",
170
+ "schema": {
171
+ "type": "boolean"
172
+ }
173
+ },
174
+ {
175
+ "description": "A comma-separated list of IDs of labels to include in the labelInfo part of the response.",
176
+ "in": "query",
177
+ "name": "includeLabels",
178
+ "schema": {
179
+ "type": "string"
180
+ }
181
+ },
182
+ {
183
+ "description": "Specifies which additional view's permissions to include in the response. Only 'published' is supported.",
184
+ "in": "query",
185
+ "name": "includePermissionsForView",
186
+ "schema": {
187
+ "type": "string"
188
+ }
189
+ },
190
+ {
191
+ "description": "Deprecated use includeItemsFromAllDrives instead.",
192
+ "in": "query",
193
+ "name": "includeTeamDriveItems",
194
+ "schema": {
195
+ "type": "boolean"
196
+ }
197
+ },
198
+ {
199
+ "description": "A comma-separated list of sort keys. Valid keys are 'createdTime', 'folder', 'modifiedByMeTime', 'modifiedTime', 'name', 'name_natural', 'quotaBytesUsed', 'recency', 'sharedWithMeTime', 'starred', and 'viewedByMeTime'. Each key sorts ascending by default, but may be reversed with the 'desc' modifier. Example usage: ?orderBy=folder,modifiedTime desc,name. Please note that there is a current limitation for users with approximately one million files in which the requested sort order is ignored.",
200
+ "in": "query",
201
+ "name": "orderBy",
202
+ "schema": {
203
+ "type": "string"
204
+ }
205
+ },
206
+ {
207
+ "description": "The maximum number of files to return per page. Partial or empty result pages are possible even before the end of the files list has been reached.",
208
+ "in": "query",
209
+ "name": "pageSize",
210
+ "schema": {
211
+ "maximum": 1000,
212
+ "minimum": 1,
213
+ "type": "integer"
214
+ }
215
+ },
216
+ {
217
+ "description": "The token for continuing a previous list request on the next page. This should be set to the value of 'nextPageToken' from the previous response.",
218
+ "in": "query",
219
+ "name": "pageToken",
220
+ "schema": {
221
+ "type": "string"
222
+ }
223
+ },
224
+ {
225
+ "description": "A query for filtering the file results. See the \"Search for Files\" guide for supported syntax.",
226
+ "in": "query",
227
+ "name": "q",
228
+ "schema": {
229
+ "type": "string"
230
+ }
231
+ },
232
+ {
233
+ "description": "A comma-separated list of spaces to query within the corpora. Supported values are 'drive' and 'appDataFolder'.",
234
+ "in": "query",
235
+ "name": "spaces",
236
+ "schema": {
237
+ "type": "string"
238
+ }
239
+ },
240
+ {
241
+ "description": "Whether the requesting application supports both My Drives and shared drives.",
242
+ "in": "query",
243
+ "name": "supportsAllDrives",
244
+ "schema": {
245
+ "type": "boolean"
246
+ }
247
+ },
248
+ {
249
+ "description": "Deprecated use supportsAllDrives instead.",
250
+ "in": "query",
251
+ "name": "supportsTeamDrives",
252
+ "schema": {
253
+ "type": "boolean"
254
+ }
255
+ },
256
+ {
257
+ "description": "Deprecated use driveId instead.",
258
+ "in": "query",
259
+ "name": "teamDriveId",
260
+ "schema": {
261
+ "type": "string"
262
+ }
263
+ }
264
+ ],
265
+ "responses": {
266
+ "200": {
267
+ "description": "Success. The response body is returned verbatim."
268
+ }
269
+ },
270
+ "security": [
271
+ {
272
+ "Oauth2": [
273
+ "https://www.googleapis.com/auth/drive"
274
+ ],
275
+ "Oauth2c": [
276
+ "https://www.googleapis.com/auth/drive"
277
+ ]
278
+ },
279
+ {
280
+ "Oauth2": [
281
+ "https://www.googleapis.com/auth/drive.appdata"
282
+ ],
283
+ "Oauth2c": [
284
+ "https://www.googleapis.com/auth/drive.appdata"
285
+ ]
286
+ },
287
+ {
288
+ "Oauth2": [
289
+ "https://www.googleapis.com/auth/drive.file"
290
+ ],
291
+ "Oauth2c": [
292
+ "https://www.googleapis.com/auth/drive.file"
293
+ ]
294
+ },
295
+ {
296
+ "Oauth2": [
297
+ "https://www.googleapis.com/auth/drive.metadata"
298
+ ],
299
+ "Oauth2c": [
300
+ "https://www.googleapis.com/auth/drive.metadata"
301
+ ]
302
+ },
303
+ {
304
+ "Oauth2": [
305
+ "https://www.googleapis.com/auth/drive.metadata.readonly"
306
+ ],
307
+ "Oauth2c": [
308
+ "https://www.googleapis.com/auth/drive.metadata.readonly"
309
+ ]
310
+ },
311
+ {
312
+ "Oauth2": [
313
+ "https://www.googleapis.com/auth/drive.photos.readonly"
314
+ ],
315
+ "Oauth2c": [
316
+ "https://www.googleapis.com/auth/drive.photos.readonly"
317
+ ]
318
+ },
319
+ {
320
+ "Oauth2": [
321
+ "https://www.googleapis.com/auth/drive.readonly"
322
+ ],
323
+ "Oauth2c": [
324
+ "https://www.googleapis.com/auth/drive.readonly"
325
+ ]
326
+ }
327
+ ],
328
+ "tags": [
329
+ "files"
330
+ ]
331
+ },
332
+ "parameters": [
333
+ {
334
+ "$ref": "#/components/parameters/alt"
335
+ },
336
+ {
337
+ "$ref": "#/components/parameters/fields"
338
+ },
339
+ {
340
+ "$ref": "#/components/parameters/userIp"
341
+ }
342
+ ],
343
+ "post": {
344
+ "description": "Creates a file.",
345
+ "operationId": "drive.files.create",
346
+ "parameters": [
347
+ {
348
+ "description": "Deprecated. Creating files in multiple folders is no longer supported.",
349
+ "in": "query",
350
+ "name": "enforceSingleParent",
351
+ "schema": {
352
+ "type": "boolean"
353
+ }
354
+ },
355
+ {
356
+ "description": "Whether to ignore the domain's default visibility settings for the created file. Domain administrators can choose to make all uploaded files visible to the domain by default; this parameter bypasses that behavior for the request. Permissions are still inherited from parent folders.",
357
+ "in": "query",
358
+ "name": "ignoreDefaultVisibility",
359
+ "schema": {
360
+ "type": "boolean"
361
+ }
362
+ },
363
+ {
364
+ "description": "A comma-separated list of IDs of labels to include in the labelInfo part of the response.",
365
+ "in": "query",
366
+ "name": "includeLabels",
367
+ "schema": {
368
+ "type": "string"
369
+ }
370
+ },
371
+ {
372
+ "description": "Specifies which additional view's permissions to include in the response. Only 'published' is supported.",
373
+ "in": "query",
374
+ "name": "includePermissionsForView",
375
+ "schema": {
376
+ "type": "string"
377
+ }
378
+ },
379
+ {
380
+ "description": "Whether to set the 'keepForever' field in the new head revision. This is only applicable to files with binary content in Google Drive. Only 200 revisions for the file can be kept forever. If the limit is reached, try deleting pinned revisions.",
381
+ "in": "query",
382
+ "name": "keepRevisionForever",
383
+ "schema": {
384
+ "type": "boolean"
385
+ }
386
+ },
387
+ {
388
+ "description": "A language hint for OCR processing during image import (ISO 639-1 code).",
389
+ "in": "query",
390
+ "name": "ocrLanguage",
391
+ "schema": {
392
+ "type": "string"
393
+ }
394
+ },
395
+ {
396
+ "description": "Whether the requesting application supports both My Drives and shared drives.",
397
+ "in": "query",
398
+ "name": "supportsAllDrives",
399
+ "schema": {
400
+ "type": "boolean"
401
+ }
402
+ },
403
+ {
404
+ "description": "Deprecated use supportsAllDrives instead.",
405
+ "in": "query",
406
+ "name": "supportsTeamDrives",
407
+ "schema": {
408
+ "type": "boolean"
409
+ }
410
+ },
411
+ {
412
+ "description": "Whether to use the uploaded content as indexable text.",
413
+ "in": "query",
414
+ "name": "useContentAsIndexableText",
415
+ "schema": {
416
+ "type": "boolean"
417
+ }
418
+ }
419
+ ],
420
+ "requestBody": {
421
+ "content": {
422
+ "application/octet-stream": {
423
+ "schema": {
424
+ "$ref": "#/components/schemas/File"
425
+ }
426
+ }
427
+ }
428
+ },
429
+ "responses": {
430
+ "200": {
431
+ "description": "Success. The response body is returned verbatim."
432
+ }
433
+ },
434
+ "security": [
435
+ {
436
+ "Oauth2": [
437
+ "https://www.googleapis.com/auth/drive"
438
+ ],
439
+ "Oauth2c": [
440
+ "https://www.googleapis.com/auth/drive"
441
+ ]
442
+ },
443
+ {
444
+ "Oauth2": [
445
+ "https://www.googleapis.com/auth/drive.appdata"
446
+ ],
447
+ "Oauth2c": [
448
+ "https://www.googleapis.com/auth/drive.appdata"
449
+ ]
450
+ },
451
+ {
452
+ "Oauth2": [
453
+ "https://www.googleapis.com/auth/drive.file"
454
+ ],
455
+ "Oauth2c": [
456
+ "https://www.googleapis.com/auth/drive.file"
457
+ ]
458
+ }
459
+ ],
460
+ "tags": [
461
+ "files"
462
+ ]
463
+ }
464
+ },
465
+ "/files/{fileId}": {
466
+ "get": {
467
+ "description": "Gets a file's metadata or content by ID.",
468
+ "operationId": "drive.files.get",
469
+ "parameters": [
470
+ {
471
+ "description": "The ID of the file.",
472
+ "in": "path",
473
+ "name": "fileId",
474
+ "required": true,
475
+ "schema": {
476
+ "type": "string"
477
+ }
478
+ },
479
+ {
480
+ "description": "Whether the user is acknowledging the risk of downloading known malware or other abusive files. This is only applicable when alt=media.",
481
+ "in": "query",
482
+ "name": "acknowledgeAbuse",
483
+ "schema": {
484
+ "type": "boolean"
485
+ }
486
+ },
487
+ {
488
+ "description": "A comma-separated list of IDs of labels to include in the labelInfo part of the response.",
489
+ "in": "query",
490
+ "name": "includeLabels",
491
+ "schema": {
492
+ "type": "string"
493
+ }
494
+ },
495
+ {
496
+ "description": "Specifies which additional view's permissions to include in the response. Only 'published' is supported.",
497
+ "in": "query",
498
+ "name": "includePermissionsForView",
499
+ "schema": {
500
+ "type": "string"
501
+ }
502
+ },
503
+ {
504
+ "description": "Whether the requesting application supports both My Drives and shared drives.",
505
+ "in": "query",
506
+ "name": "supportsAllDrives",
507
+ "schema": {
508
+ "type": "boolean"
509
+ }
510
+ },
511
+ {
512
+ "description": "Deprecated use supportsAllDrives instead.",
513
+ "in": "query",
514
+ "name": "supportsTeamDrives",
515
+ "schema": {
516
+ "type": "boolean"
517
+ }
518
+ }
519
+ ],
520
+ "responses": {
521
+ "200": {
522
+ "description": "Success. The response body is returned verbatim."
523
+ }
524
+ },
525
+ "security": [
526
+ {
527
+ "Oauth2": [
528
+ "https://www.googleapis.com/auth/drive"
529
+ ],
530
+ "Oauth2c": [
531
+ "https://www.googleapis.com/auth/drive"
532
+ ]
533
+ },
534
+ {
535
+ "Oauth2": [
536
+ "https://www.googleapis.com/auth/drive.appdata"
537
+ ],
538
+ "Oauth2c": [
539
+ "https://www.googleapis.com/auth/drive.appdata"
540
+ ]
541
+ },
542
+ {
543
+ "Oauth2": [
544
+ "https://www.googleapis.com/auth/drive.file"
545
+ ],
546
+ "Oauth2c": [
547
+ "https://www.googleapis.com/auth/drive.file"
548
+ ]
549
+ },
550
+ {
551
+ "Oauth2": [
552
+ "https://www.googleapis.com/auth/drive.metadata"
553
+ ],
554
+ "Oauth2c": [
555
+ "https://www.googleapis.com/auth/drive.metadata"
556
+ ]
557
+ },
558
+ {
559
+ "Oauth2": [
560
+ "https://www.googleapis.com/auth/drive.metadata.readonly"
561
+ ],
562
+ "Oauth2c": [
563
+ "https://www.googleapis.com/auth/drive.metadata.readonly"
564
+ ]
565
+ },
566
+ {
567
+ "Oauth2": [
568
+ "https://www.googleapis.com/auth/drive.photos.readonly"
569
+ ],
570
+ "Oauth2c": [
571
+ "https://www.googleapis.com/auth/drive.photos.readonly"
572
+ ]
573
+ },
574
+ {
575
+ "Oauth2": [
576
+ "https://www.googleapis.com/auth/drive.readonly"
577
+ ],
578
+ "Oauth2c": [
579
+ "https://www.googleapis.com/auth/drive.readonly"
580
+ ]
581
+ }
582
+ ],
583
+ "tags": [
584
+ "files"
585
+ ]
586
+ },
587
+ "parameters": [
588
+ {
589
+ "$ref": "#/components/parameters/alt"
590
+ },
591
+ {
592
+ "$ref": "#/components/parameters/fields"
593
+ },
594
+ {
595
+ "$ref": "#/components/parameters/userIp"
596
+ }
597
+ ],
598
+ "patch": {
599
+ "description": "Updates a file's metadata and/or content. When calling this method, only populate fields in the request that you want to modify. When updating fields, some fields might change automatically, such as modifiedDate. This method supports patch semantics.",
600
+ "operationId": "drive.files.update",
601
+ "parameters": [
602
+ {
603
+ "description": "The ID of the file.",
604
+ "in": "path",
605
+ "name": "fileId",
606
+ "required": true,
607
+ "schema": {
608
+ "type": "string"
609
+ }
610
+ },
611
+ {
612
+ "description": "A comma-separated list of parent IDs to add.",
613
+ "in": "query",
614
+ "name": "addParents",
615
+ "schema": {
616
+ "type": "string"
617
+ }
618
+ },
619
+ {
620
+ "description": "Deprecated. Adding files to multiple folders is no longer supported. Use shortcuts instead.",
621
+ "in": "query",
622
+ "name": "enforceSingleParent",
623
+ "schema": {
624
+ "type": "boolean"
625
+ }
626
+ },
627
+ {
628
+ "description": "A comma-separated list of IDs of labels to include in the labelInfo part of the response.",
629
+ "in": "query",
630
+ "name": "includeLabels",
631
+ "schema": {
632
+ "type": "string"
633
+ }
634
+ },
635
+ {
636
+ "description": "Specifies which additional view's permissions to include in the response. Only 'published' is supported.",
637
+ "in": "query",
638
+ "name": "includePermissionsForView",
639
+ "schema": {
640
+ "type": "string"
641
+ }
642
+ },
643
+ {
644
+ "description": "Whether to set the 'keepForever' field in the new head revision. This is only applicable to files with binary content in Google Drive. Only 200 revisions for the file can be kept forever. If the limit is reached, try deleting pinned revisions.",
645
+ "in": "query",
646
+ "name": "keepRevisionForever",
647
+ "schema": {
648
+ "type": "boolean"
649
+ }
650
+ },
651
+ {
652
+ "description": "A language hint for OCR processing during image import (ISO 639-1 code).",
653
+ "in": "query",
654
+ "name": "ocrLanguage",
655
+ "schema": {
656
+ "type": "string"
657
+ }
658
+ },
659
+ {
660
+ "description": "A comma-separated list of parent IDs to remove.",
661
+ "in": "query",
662
+ "name": "removeParents",
663
+ "schema": {
664
+ "type": "string"
665
+ }
666
+ },
667
+ {
668
+ "description": "Whether the requesting application supports both My Drives and shared drives.",
669
+ "in": "query",
670
+ "name": "supportsAllDrives",
671
+ "schema": {
672
+ "type": "boolean"
673
+ }
674
+ },
675
+ {
676
+ "description": "Deprecated use supportsAllDrives instead.",
677
+ "in": "query",
678
+ "name": "supportsTeamDrives",
679
+ "schema": {
680
+ "type": "boolean"
681
+ }
682
+ },
683
+ {
684
+ "description": "Whether to use the uploaded content as indexable text.",
685
+ "in": "query",
686
+ "name": "useContentAsIndexableText",
687
+ "schema": {
688
+ "type": "boolean"
689
+ }
690
+ }
691
+ ],
692
+ "requestBody": {
693
+ "content": {
694
+ "application/octet-stream": {
695
+ "schema": {
696
+ "$ref": "#/components/schemas/File"
697
+ }
698
+ }
699
+ }
700
+ },
701
+ "responses": {
702
+ "200": {
703
+ "description": "Success. The response body is returned verbatim."
704
+ }
705
+ },
706
+ "security": [
707
+ {
708
+ "Oauth2": [
709
+ "https://www.googleapis.com/auth/drive"
710
+ ],
711
+ "Oauth2c": [
712
+ "https://www.googleapis.com/auth/drive"
713
+ ]
714
+ },
715
+ {
716
+ "Oauth2": [
717
+ "https://www.googleapis.com/auth/drive.appdata"
718
+ ],
719
+ "Oauth2c": [
720
+ "https://www.googleapis.com/auth/drive.appdata"
721
+ ]
722
+ },
723
+ {
724
+ "Oauth2": [
725
+ "https://www.googleapis.com/auth/drive.file"
726
+ ],
727
+ "Oauth2c": [
728
+ "https://www.googleapis.com/auth/drive.file"
729
+ ]
730
+ },
731
+ {
732
+ "Oauth2": [
733
+ "https://www.googleapis.com/auth/drive.metadata"
734
+ ],
735
+ "Oauth2c": [
736
+ "https://www.googleapis.com/auth/drive.metadata"
737
+ ]
738
+ },
739
+ {
740
+ "Oauth2": [
741
+ "https://www.googleapis.com/auth/drive.scripts"
742
+ ],
743
+ "Oauth2c": [
744
+ "https://www.googleapis.com/auth/drive.scripts"
745
+ ]
746
+ }
747
+ ],
748
+ "tags": [
749
+ "files"
750
+ ]
751
+ }
752
+ },
753
+ "/files/{fileId}/copy": {
754
+ "parameters": [
755
+ {
756
+ "$ref": "#/components/parameters/alt"
757
+ },
758
+ {
759
+ "$ref": "#/components/parameters/fields"
760
+ },
761
+ {
762
+ "$ref": "#/components/parameters/userIp"
763
+ }
764
+ ],
765
+ "post": {
766
+ "description": "Creates a copy of a file and applies any requested updates with patch semantics. Folders cannot be copied.",
767
+ "operationId": "drive.files.copy",
768
+ "parameters": [
769
+ {
770
+ "description": "The ID of the file.",
771
+ "in": "path",
772
+ "name": "fileId",
773
+ "required": true,
774
+ "schema": {
775
+ "type": "string"
776
+ }
777
+ },
778
+ {
779
+ "description": "Deprecated. Copying files into multiple folders is no longer supported. Use shortcuts instead.",
780
+ "in": "query",
781
+ "name": "enforceSingleParent",
782
+ "schema": {
783
+ "type": "boolean"
784
+ }
785
+ },
786
+ {
787
+ "description": "Whether to ignore the domain's default visibility settings for the created file. Domain administrators can choose to make all uploaded files visible to the domain by default; this parameter bypasses that behavior for the request. Permissions are still inherited from parent folders.",
788
+ "in": "query",
789
+ "name": "ignoreDefaultVisibility",
790
+ "schema": {
791
+ "type": "boolean"
792
+ }
793
+ },
794
+ {
795
+ "description": "A comma-separated list of IDs of labels to include in the labelInfo part of the response.",
796
+ "in": "query",
797
+ "name": "includeLabels",
798
+ "schema": {
799
+ "type": "string"
800
+ }
801
+ },
802
+ {
803
+ "description": "Specifies which additional view's permissions to include in the response. Only 'published' is supported.",
804
+ "in": "query",
805
+ "name": "includePermissionsForView",
806
+ "schema": {
807
+ "type": "string"
808
+ }
809
+ },
810
+ {
811
+ "description": "Whether to set the 'keepForever' field in the new head revision. This is only applicable to files with binary content in Google Drive. Only 200 revisions for the file can be kept forever. If the limit is reached, try deleting pinned revisions.",
812
+ "in": "query",
813
+ "name": "keepRevisionForever",
814
+ "schema": {
815
+ "type": "boolean"
816
+ }
817
+ },
818
+ {
819
+ "description": "A language hint for OCR processing during image import (ISO 639-1 code).",
820
+ "in": "query",
821
+ "name": "ocrLanguage",
822
+ "schema": {
823
+ "type": "string"
824
+ }
825
+ },
826
+ {
827
+ "description": "Whether the requesting application supports both My Drives and shared drives.",
828
+ "in": "query",
829
+ "name": "supportsAllDrives",
830
+ "schema": {
831
+ "type": "boolean"
832
+ }
833
+ },
834
+ {
835
+ "description": "Deprecated use supportsAllDrives instead.",
836
+ "in": "query",
837
+ "name": "supportsTeamDrives",
838
+ "schema": {
839
+ "type": "boolean"
840
+ }
841
+ }
842
+ ],
843
+ "requestBody": {
844
+ "content": {
845
+ "application/json": {
846
+ "schema": {
847
+ "$ref": "#/components/schemas/File"
848
+ }
849
+ }
850
+ }
851
+ },
852
+ "responses": {
853
+ "200": {
854
+ "description": "Success. The response body is returned verbatim."
855
+ }
856
+ },
857
+ "security": [
858
+ {
859
+ "Oauth2": [
860
+ "https://www.googleapis.com/auth/drive"
861
+ ],
862
+ "Oauth2c": [
863
+ "https://www.googleapis.com/auth/drive"
864
+ ]
865
+ },
866
+ {
867
+ "Oauth2": [
868
+ "https://www.googleapis.com/auth/drive.appdata"
869
+ ],
870
+ "Oauth2c": [
871
+ "https://www.googleapis.com/auth/drive.appdata"
872
+ ]
873
+ },
874
+ {
875
+ "Oauth2": [
876
+ "https://www.googleapis.com/auth/drive.file"
877
+ ],
878
+ "Oauth2c": [
879
+ "https://www.googleapis.com/auth/drive.file"
880
+ ]
881
+ },
882
+ {
883
+ "Oauth2": [
884
+ "https://www.googleapis.com/auth/drive.photos.readonly"
885
+ ],
886
+ "Oauth2c": [
887
+ "https://www.googleapis.com/auth/drive.photos.readonly"
888
+ ]
889
+ }
890
+ ],
891
+ "tags": [
892
+ "files"
893
+ ]
894
+ }
895
+ },
896
+ "/files/{fileId}/export": {
897
+ "get": {
898
+ "description": "Exports a Google Workspace document to the requested MIME type and returns exported byte content. Note that the exported content is limited to 10MB.",
899
+ "operationId": "drive.files.export",
900
+ "parameters": [
901
+ {
902
+ "description": "The ID of the file.",
903
+ "in": "path",
904
+ "name": "fileId",
905
+ "required": true,
906
+ "schema": {
907
+ "type": "string"
908
+ }
909
+ },
910
+ {
911
+ "description": "The MIME type of the format requested for this export.",
912
+ "in": "query",
913
+ "name": "mimeType",
914
+ "required": true,
915
+ "schema": {
916
+ "type": "string"
917
+ }
918
+ }
919
+ ],
920
+ "responses": {
921
+ "200": {
922
+ "description": "Success. The response body is returned verbatim."
923
+ }
924
+ },
925
+ "security": [
926
+ {
927
+ "Oauth2": [
928
+ "https://www.googleapis.com/auth/drive"
929
+ ],
930
+ "Oauth2c": [
931
+ "https://www.googleapis.com/auth/drive"
932
+ ]
933
+ },
934
+ {
935
+ "Oauth2": [
936
+ "https://www.googleapis.com/auth/drive.file"
937
+ ],
938
+ "Oauth2c": [
939
+ "https://www.googleapis.com/auth/drive.file"
940
+ ]
941
+ },
942
+ {
943
+ "Oauth2": [
944
+ "https://www.googleapis.com/auth/drive.readonly"
945
+ ],
946
+ "Oauth2c": [
947
+ "https://www.googleapis.com/auth/drive.readonly"
948
+ ]
949
+ }
950
+ ],
951
+ "tags": [
952
+ "files"
953
+ ]
954
+ },
955
+ "parameters": [
956
+ {
957
+ "$ref": "#/components/parameters/alt"
958
+ },
959
+ {
960
+ "$ref": "#/components/parameters/fields"
961
+ },
962
+ {
963
+ "$ref": "#/components/parameters/userIp"
964
+ }
965
+ ]
966
+ },
967
+ "/files/{fileId}/permissions": {
968
+ "get": {
969
+ "description": "Lists a file's or shared drive's permissions.",
970
+ "operationId": "drive.permissions.list",
971
+ "parameters": [
972
+ {
973
+ "description": "The ID of the file or shared drive.",
974
+ "in": "path",
975
+ "name": "fileId",
976
+ "required": true,
977
+ "schema": {
978
+ "type": "string"
979
+ }
980
+ },
981
+ {
982
+ "description": "Specifies which additional view's permissions to include in the response. Only 'published' is supported.",
983
+ "in": "query",
984
+ "name": "includePermissionsForView",
985
+ "schema": {
986
+ "type": "string"
987
+ }
988
+ },
989
+ {
990
+ "description": "The maximum number of permissions to return per page. When not set for files in a shared drive, at most 100 results will be returned. When not set for files that are not in a shared drive, the entire list will be returned.",
991
+ "in": "query",
992
+ "name": "pageSize",
993
+ "schema": {
994
+ "maximum": 100,
995
+ "minimum": 1,
996
+ "type": "integer"
997
+ }
998
+ },
999
+ {
1000
+ "description": "The token for continuing a previous list request on the next page. This should be set to the value of 'nextPageToken' from the previous response.",
1001
+ "in": "query",
1002
+ "name": "pageToken",
1003
+ "schema": {
1004
+ "type": "string"
1005
+ }
1006
+ },
1007
+ {
1008
+ "description": "Whether the requesting application supports both My Drives and shared drives.",
1009
+ "in": "query",
1010
+ "name": "supportsAllDrives",
1011
+ "schema": {
1012
+ "type": "boolean"
1013
+ }
1014
+ },
1015
+ {
1016
+ "description": "Deprecated use supportsAllDrives instead.",
1017
+ "in": "query",
1018
+ "name": "supportsTeamDrives",
1019
+ "schema": {
1020
+ "type": "boolean"
1021
+ }
1022
+ },
1023
+ {
1024
+ "description": "Issue the request as a domain administrator; if set to true, then the requester will be granted access if the file ID parameter refers to a shared drive and the requester is an administrator of the domain to which the shared drive belongs.",
1025
+ "in": "query",
1026
+ "name": "useDomainAdminAccess",
1027
+ "schema": {
1028
+ "type": "boolean"
1029
+ }
1030
+ }
1031
+ ],
1032
+ "responses": {
1033
+ "200": {
1034
+ "description": "Success. The response body is returned verbatim."
1035
+ }
1036
+ },
1037
+ "security": [
1038
+ {
1039
+ "Oauth2": [
1040
+ "https://www.googleapis.com/auth/drive"
1041
+ ],
1042
+ "Oauth2c": [
1043
+ "https://www.googleapis.com/auth/drive"
1044
+ ]
1045
+ },
1046
+ {
1047
+ "Oauth2": [
1048
+ "https://www.googleapis.com/auth/drive.file"
1049
+ ],
1050
+ "Oauth2c": [
1051
+ "https://www.googleapis.com/auth/drive.file"
1052
+ ]
1053
+ },
1054
+ {
1055
+ "Oauth2": [
1056
+ "https://www.googleapis.com/auth/drive.metadata"
1057
+ ],
1058
+ "Oauth2c": [
1059
+ "https://www.googleapis.com/auth/drive.metadata"
1060
+ ]
1061
+ },
1062
+ {
1063
+ "Oauth2": [
1064
+ "https://www.googleapis.com/auth/drive.metadata.readonly"
1065
+ ],
1066
+ "Oauth2c": [
1067
+ "https://www.googleapis.com/auth/drive.metadata.readonly"
1068
+ ]
1069
+ },
1070
+ {
1071
+ "Oauth2": [
1072
+ "https://www.googleapis.com/auth/drive.photos.readonly"
1073
+ ],
1074
+ "Oauth2c": [
1075
+ "https://www.googleapis.com/auth/drive.photos.readonly"
1076
+ ]
1077
+ },
1078
+ {
1079
+ "Oauth2": [
1080
+ "https://www.googleapis.com/auth/drive.readonly"
1081
+ ],
1082
+ "Oauth2c": [
1083
+ "https://www.googleapis.com/auth/drive.readonly"
1084
+ ]
1085
+ }
1086
+ ],
1087
+ "tags": [
1088
+ "permissions"
1089
+ ]
1090
+ },
1091
+ "parameters": [
1092
+ {
1093
+ "$ref": "#/components/parameters/alt"
1094
+ },
1095
+ {
1096
+ "$ref": "#/components/parameters/fields"
1097
+ },
1098
+ {
1099
+ "$ref": "#/components/parameters/userIp"
1100
+ }
1101
+ ],
1102
+ "post": {
1103
+ "description": "Creates a permission for a file or shared drive. For more information on creating permissions, see Share files, folders & drives.",
1104
+ "operationId": "drive.permissions.create",
1105
+ "parameters": [
1106
+ {
1107
+ "description": "The ID of the file or shared drive.",
1108
+ "in": "path",
1109
+ "name": "fileId",
1110
+ "required": true,
1111
+ "schema": {
1112
+ "type": "string"
1113
+ }
1114
+ },
1115
+ {
1116
+ "description": "A plain text custom message to include in the notification email.",
1117
+ "in": "query",
1118
+ "name": "emailMessage",
1119
+ "schema": {
1120
+ "type": "string"
1121
+ }
1122
+ },
1123
+ {
1124
+ "description": "Deprecated. See moveToNewOwnersRoot for details.",
1125
+ "in": "query",
1126
+ "name": "enforceSingleParent",
1127
+ "schema": {
1128
+ "type": "boolean"
1129
+ }
1130
+ },
1131
+ {
1132
+ "description": "This parameter will only take effect if the item is not in a shared drive and the request is attempting to transfer the ownership of the item. If set to true, the item will be moved to the new owner's My Drive root folder and all prior parents removed. If set to false, parents are not changed.",
1133
+ "in": "query",
1134
+ "name": "moveToNewOwnersRoot",
1135
+ "schema": {
1136
+ "type": "boolean"
1137
+ }
1138
+ },
1139
+ {
1140
+ "description": "Whether to send a notification email when sharing to users or groups. This defaults to true for users and groups, and is not allowed for other requests. It must not be disabled for ownership transfers.",
1141
+ "in": "query",
1142
+ "name": "sendNotificationEmail",
1143
+ "schema": {
1144
+ "type": "boolean"
1145
+ }
1146
+ },
1147
+ {
1148
+ "description": "Whether the requesting application supports both My Drives and shared drives.",
1149
+ "in": "query",
1150
+ "name": "supportsAllDrives",
1151
+ "schema": {
1152
+ "type": "boolean"
1153
+ }
1154
+ },
1155
+ {
1156
+ "description": "Deprecated use supportsAllDrives instead.",
1157
+ "in": "query",
1158
+ "name": "supportsTeamDrives",
1159
+ "schema": {
1160
+ "type": "boolean"
1161
+ }
1162
+ },
1163
+ {
1164
+ "description": "Whether to transfer ownership to the specified user and downgrade the current owner to a writer. This parameter is required as an acknowledgement of the side effect. File owners can only transfer ownership of files existing on My Drive. Files existing in a shared drive are owned by the organization that owns that shared drive. Ownership transfers are not supported for files and folders in shared drives. Organizers of a shared drive can move items from that shared drive into their My Drive which transfers the ownership to them.",
1165
+ "in": "query",
1166
+ "name": "transferOwnership",
1167
+ "schema": {
1168
+ "type": "boolean"
1169
+ }
1170
+ },
1171
+ {
1172
+ "description": "Issue the request as a domain administrator; if set to true, then the requester will be granted access if the file ID parameter refers to a shared drive and the requester is an administrator of the domain to which the shared drive belongs.",
1173
+ "in": "query",
1174
+ "name": "useDomainAdminAccess",
1175
+ "schema": {
1176
+ "type": "boolean"
1177
+ }
1178
+ }
1179
+ ],
1180
+ "requestBody": {
1181
+ "content": {
1182
+ "application/json": {
1183
+ "schema": {
1184
+ "$ref": "#/components/schemas/Permission"
1185
+ }
1186
+ }
1187
+ }
1188
+ },
1189
+ "responses": {
1190
+ "200": {
1191
+ "description": "Success. The response body is returned verbatim."
1192
+ }
1193
+ },
1194
+ "security": [
1195
+ {
1196
+ "Oauth2": [
1197
+ "https://www.googleapis.com/auth/drive"
1198
+ ],
1199
+ "Oauth2c": [
1200
+ "https://www.googleapis.com/auth/drive"
1201
+ ]
1202
+ },
1203
+ {
1204
+ "Oauth2": [
1205
+ "https://www.googleapis.com/auth/drive.file"
1206
+ ],
1207
+ "Oauth2c": [
1208
+ "https://www.googleapis.com/auth/drive.file"
1209
+ ]
1210
+ }
1211
+ ],
1212
+ "tags": [
1213
+ "permissions"
1214
+ ]
1215
+ }
1216
+ }
1217
+ },
1218
+ "components": {
1219
+ "parameters": {
1220
+ "alt": {
1221
+ "description": "Data format for the response.",
1222
+ "in": "query",
1223
+ "name": "alt",
1224
+ "schema": {
1225
+ "enum": [
1226
+ "json"
1227
+ ],
1228
+ "type": "string"
1229
+ }
1230
+ },
1231
+ "fields": {
1232
+ "description": "Selector specifying which fields to include in a partial response.",
1233
+ "in": "query",
1234
+ "name": "fields",
1235
+ "schema": {
1236
+ "type": "string"
1237
+ }
1238
+ },
1239
+ "key": {
1240
+ "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.",
1241
+ "in": "query",
1242
+ "name": "key",
1243
+ "schema": {
1244
+ "type": "string"
1245
+ }
1246
+ },
1247
+ "oauth_token": {
1248
+ "description": "OAuth 2.0 token for the current user.",
1249
+ "in": "query",
1250
+ "name": "oauth_token",
1251
+ "schema": {
1252
+ "type": "string"
1253
+ }
1254
+ },
1255
+ "prettyPrint": {
1256
+ "description": "Returns response with indentations and line breaks.",
1257
+ "in": "query",
1258
+ "name": "prettyPrint",
1259
+ "schema": {
1260
+ "type": "boolean"
1261
+ }
1262
+ },
1263
+ "quotaUser": {
1264
+ "description": "An opaque string that represents a user for quota purposes. Must not exceed 40 characters.",
1265
+ "in": "query",
1266
+ "name": "quotaUser",
1267
+ "schema": {
1268
+ "type": "string"
1269
+ }
1270
+ },
1271
+ "userIp": {
1272
+ "description": "Deprecated. Please use quotaUser instead.",
1273
+ "in": "query",
1274
+ "name": "userIp",
1275
+ "schema": {
1276
+ "type": "string"
1277
+ }
1278
+ }
1279
+ },
1280
+ "schemas": {
1281
+ "ContentRestriction": {
1282
+ "description": "A restriction for accessing the content of the file.",
1283
+ "properties": {
1284
+ "readOnly": {
1285
+ "description": "Whether the content of the file is read-only. If a file is read-only, a new revision of the file may not be added, comments may not be added or modified, and the title of the file may not be modified.",
1286
+ "type": "boolean"
1287
+ },
1288
+ "reason": {
1289
+ "description": "Reason for why the content of the file is restricted. This is only mutable on requests that also set readOnly=true.",
1290
+ "type": "string"
1291
+ },
1292
+ "restrictingUser": {
1293
+ "$ref": "#/components/schemas/User",
1294
+ "description": "The user who set the content restriction. Only populated if readOnly is true."
1295
+ },
1296
+ "restrictionTime": {
1297
+ "description": "The time at which the content restriction was set (formatted RFC 3339 timestamp). Only populated if readOnly is true.",
1298
+ "format": "date-time",
1299
+ "type": "string"
1300
+ },
1301
+ "type": {
1302
+ "description": "The type of the content restriction. Currently the only possible value is globalContentRestriction.",
1303
+ "type": "string"
1304
+ }
1305
+ },
1306
+ "type": "object"
1307
+ },
1308
+ "File": {
1309
+ "description": "The metadata for a file.",
1310
+ "properties": {
1311
+ "appProperties": {
1312
+ "additionalProperties": {
1313
+ "type": "string"
1314
+ },
1315
+ "description": "A collection of arbitrary key-value pairs that are private to the requesting app.\nEntries with null values are cleared in update and copy requests. These properties can only be retrieved using an authenticated request. An authenticated request uses an access token obtained with an OAuth 2 client ID. You cannot use an API key to retrieve private properties.",
1316
+ "type": "object"
1317
+ },
1318
+ "capabilities": {
1319
+ "description": "Capabilities the current user has on this file. Each capability corresponds to a fine-grained action that a user can take.",
1320
+ "properties": {
1321
+ "canAcceptOwnership": {
1322
+ "description": "Whether the current user is the pending owner of the file. Not populated for shared drive files.",
1323
+ "type": "boolean"
1324
+ },
1325
+ "canAddChildren": {
1326
+ "description": "Whether the current user can add children to this folder. This is always false when the item isn't a folder.",
1327
+ "type": "boolean"
1328
+ },
1329
+ "canAddFolderFromAnotherDrive": {
1330
+ "description": "Whether the current user can add a folder from another drive (different shared drive or My Drive) to this folder. This is false when the item isn't a folder. Only populated for items in shared drives.",
1331
+ "type": "boolean"
1332
+ },
1333
+ "canAddMyDriveParent": {
1334
+ "description": "Whether the current user can add a parent for the item without removing an existing parent in the same request. Not populated for shared drive files.",
1335
+ "type": "boolean"
1336
+ },
1337
+ "canChangeCopyRequiresWriterPermission": {
1338
+ "description": "Whether the current user can change the copyRequiresWriterPermission restriction of this file.",
1339
+ "type": "boolean"
1340
+ },
1341
+ "canChangeSecurityUpdateEnabled": {
1342
+ "description": "Whether the current user can change the securityUpdateEnabled field on link share metadata.",
1343
+ "type": "boolean"
1344
+ },
1345
+ "canChangeViewersCanCopyContent": {
1346
+ "description": "Deprecated",
1347
+ "type": "boolean"
1348
+ },
1349
+ "canComment": {
1350
+ "description": "Whether the current user can comment on this file.",
1351
+ "type": "boolean"
1352
+ },
1353
+ "canCopy": {
1354
+ "description": "Whether the current user can copy this file. For an item in a shared drive, whether the current user can copy non-folder descendants of this item, or this item itself if it's not a folder.",
1355
+ "type": "boolean"
1356
+ },
1357
+ "canDelete": {
1358
+ "description": "Whether the current user can delete this file.",
1359
+ "type": "boolean"
1360
+ },
1361
+ "canDeleteChildren": {
1362
+ "description": "Whether the current user can delete children of this folder. This is false when the item isn't a folder. Only populated for items in shared drives.",
1363
+ "type": "boolean"
1364
+ },
1365
+ "canDownload": {
1366
+ "description": "Whether the current user can download this file.",
1367
+ "type": "boolean"
1368
+ },
1369
+ "canEdit": {
1370
+ "description": "Whether the current user can edit this file. Other factors might limit the type of changes a user can make to a file. For example, see canChangeCopyRequiresWriterPermission or canModifyContent.",
1371
+ "type": "boolean"
1372
+ },
1373
+ "canListChildren": {
1374
+ "description": "Whether the current user can list the children of this folder. This is always false when the item isn't a folder.",
1375
+ "type": "boolean"
1376
+ },
1377
+ "canModifyContent": {
1378
+ "description": "Whether the current user can modify the content of this file.",
1379
+ "type": "boolean"
1380
+ },
1381
+ "canModifyContentRestriction": {
1382
+ "description": "Whether the current user can modify restrictions on content of this file.",
1383
+ "type": "boolean"
1384
+ },
1385
+ "canModifyLabels": {
1386
+ "description": "Whether the current user can modify the labels on this file.",
1387
+ "type": "boolean"
1388
+ },
1389
+ "canMoveChildrenOutOfDrive": {
1390
+ "description": "Whether the current user can move children of this folder outside of the shared drive. This is false when the item isn't a folder. Only populated for items in shared drives.",
1391
+ "type": "boolean"
1392
+ },
1393
+ "canMoveChildrenOutOfTeamDrive": {
1394
+ "description": "Deprecated - use canMoveChildrenOutOfDrive instead.",
1395
+ "type": "boolean"
1396
+ },
1397
+ "canMoveChildrenWithinDrive": {
1398
+ "description": "Whether the current user can move children of this folder within this shared drive or My Drive. This is false when the item isn't a folder. Note that a request to move the child might still fail depending on the current user's access to the child and to the destination folder.",
1399
+ "type": "boolean"
1400
+ },
1401
+ "canMoveChildrenWithinTeamDrive": {
1402
+ "description": "Deprecated - use canMoveChildrenWithinDrive instead.",
1403
+ "type": "boolean"
1404
+ },
1405
+ "canMoveItemIntoTeamDrive": {
1406
+ "description": "Deprecated - use canMoveItemOutOfDrive instead.",
1407
+ "type": "boolean"
1408
+ },
1409
+ "canMoveItemOutOfDrive": {
1410
+ "description": "Whether the current user can move this item outside of this shared drive or My Drive by changing its parent. Note that a request to change the parent of the item might still fail depending on the new parent that's being added.",
1411
+ "type": "boolean"
1412
+ },
1413
+ "canMoveItemOutOfTeamDrive": {
1414
+ "description": "Deprecated - use canMoveItemOutOfDrive instead.",
1415
+ "type": "boolean"
1416
+ },
1417
+ "canMoveItemWithinDrive": {
1418
+ "description": "Whether the current user can move this item within this shared drive or My Drive. Note that a request to change the parent of the item might still fail depending on the new parent that's being added and the parent that's being removed.",
1419
+ "type": "boolean"
1420
+ },
1421
+ "canMoveItemWithinTeamDrive": {
1422
+ "description": "Deprecated - use canMoveItemWithinDrive instead.",
1423
+ "type": "boolean"
1424
+ },
1425
+ "canMoveTeamDriveItem": {
1426
+ "description": "Deprecated - use canMoveItemWithinDrive or canMoveItemOutOfDrive instead.",
1427
+ "type": "boolean"
1428
+ },
1429
+ "canReadDrive": {
1430
+ "description": "Whether the current user can read the shared drive to which this file belongs. Only populated for items in shared drives.",
1431
+ "type": "boolean"
1432
+ },
1433
+ "canReadLabels": {
1434
+ "description": "Whether the current user can read the labels on this file.",
1435
+ "type": "boolean"
1436
+ },
1437
+ "canReadRevisions": {
1438
+ "description": "Whether the current user can read the revisions resource of this file. For a shared drive item, whether revisions of non-folder descendants of this item, or this item itself if it's not a folder, can be read.",
1439
+ "type": "boolean"
1440
+ },
1441
+ "canReadTeamDrive": {
1442
+ "description": "Deprecated - use canReadDrive instead.",
1443
+ "type": "boolean"
1444
+ },
1445
+ "canRemoveChildren": {
1446
+ "description": "Whether the current user can remove children from this folder. This is always false when the item isn't a folder. For a folder in a shared drive, use canDeleteChildren or canTrashChildren instead.",
1447
+ "type": "boolean"
1448
+ },
1449
+ "canRemoveMyDriveParent": {
1450
+ "description": "Whether the current user can remove a parent from the item without adding another parent in the same request. Not populated for shared drive files.",
1451
+ "type": "boolean"
1452
+ },
1453
+ "canRename": {
1454
+ "description": "Whether the current user can rename this file.",
1455
+ "type": "boolean"
1456
+ },
1457
+ "canShare": {
1458
+ "description": "Whether the current user can modify the sharing settings for this file.",
1459
+ "type": "boolean"
1460
+ },
1461
+ "canTrash": {
1462
+ "description": "Whether the current user can move this file to trash.",
1463
+ "type": "boolean"
1464
+ },
1465
+ "canTrashChildren": {
1466
+ "description": "Whether the current user can trash children of this folder. This is false when the item isn't a folder. Only populated for items in shared drives.",
1467
+ "type": "boolean"
1468
+ },
1469
+ "canUntrash": {
1470
+ "description": "Whether the current user can restore this file from trash.",
1471
+ "type": "boolean"
1472
+ }
1473
+ },
1474
+ "type": "object"
1475
+ },
1476
+ "contentHints": {
1477
+ "description": "Additional information about the content of the file. These fields are never populated in responses.",
1478
+ "properties": {
1479
+ "indexableText": {
1480
+ "description": "Text to be indexed for the file to improve fullText queries. This is limited to 128 KB in length and might contain HTML elements. For more information, see Manage file metadata.",
1481
+ "type": "string"
1482
+ },
1483
+ "thumbnail": {
1484
+ "description": "A thumbnail for the file. This will only be used if Google Drive cannot generate a standard thumbnail.",
1485
+ "properties": {
1486
+ "image": {
1487
+ "description": "The thumbnail data encoded with URL-safe Base64 (RFC 4648 section 5).",
1488
+ "format": "byte",
1489
+ "type": "string"
1490
+ },
1491
+ "mimeType": {
1492
+ "description": "The MIME type of the thumbnail.",
1493
+ "type": "string"
1494
+ }
1495
+ },
1496
+ "type": "object"
1497
+ }
1498
+ },
1499
+ "type": "object"
1500
+ },
1501
+ "contentRestrictions": {
1502
+ "description": "Restrictions for accessing the content of the file. Only populated if such a restriction exists.",
1503
+ "items": {
1504
+ "$ref": "#/components/schemas/ContentRestriction"
1505
+ },
1506
+ "type": "array"
1507
+ },
1508
+ "copyRequiresWriterPermission": {
1509
+ "description": "Whether the options to copy, print, or download this file, should be disabled for readers and commenters.",
1510
+ "type": "boolean"
1511
+ },
1512
+ "createdTime": {
1513
+ "description": "The time at which the file was created (RFC 3339 date-time).",
1514
+ "format": "date-time",
1515
+ "type": "string"
1516
+ },
1517
+ "description": {
1518
+ "description": "A short description of the file.",
1519
+ "type": "string"
1520
+ },
1521
+ "driveId": {
1522
+ "description": "ID of the shared drive the file resides in. Only populated for items in shared drives.",
1523
+ "type": "string"
1524
+ },
1525
+ "explicitlyTrashed": {
1526
+ "description": "Whether the file has been explicitly trashed, as opposed to recursively trashed from a parent folder.",
1527
+ "type": "boolean"
1528
+ },
1529
+ "exportLinks": {
1530
+ "additionalProperties": {
1531
+ "description": "A mapping from export format to URL",
1532
+ "type": "string"
1533
+ },
1534
+ "description": "Links for exporting Docs Editors files to specific formats.",
1535
+ "readOnly": true,
1536
+ "type": "object"
1537
+ },
1538
+ "fileExtension": {
1539
+ "description": "The final component of fullFileExtension. This is only available for files with binary content in Google Drive.",
1540
+ "type": "string"
1541
+ },
1542
+ "folderColorRgb": {
1543
+ "description": "The color for a folder or shortcut to a folder as an RGB hex string. The supported colors are published in the folderColorPalette field of the About resource.\nIf an unsupported color is specified, the closest color in the palette will be used instead.",
1544
+ "type": "string"
1545
+ },
1546
+ "fullFileExtension": {
1547
+ "description": "The full file extension extracted from the name field. Can contain multiple concatenated extensions, such as \"tar.gz\". This is only available for files with binary content in Google Drive.\nThis is automatically updated when the name field changes, however it's not cleared if the new name does not contain a valid extension.",
1548
+ "type": "string"
1549
+ },
1550
+ "hasAugmentedPermissions": {
1551
+ "description": "Whether there are permissions directly on this file. This field is only populated for items in shared drives.",
1552
+ "type": "boolean"
1553
+ },
1554
+ "hasThumbnail": {
1555
+ "description": "Whether this file has a thumbnail. This does not indicate whether the requesting app has access to the thumbnail. To check access, look for the presence of the thumbnailLink field.",
1556
+ "type": "boolean"
1557
+ },
1558
+ "headRevisionId": {
1559
+ "description": "The ID of the file's head revision. This is only available for files with binary content in Google Drive.",
1560
+ "type": "string"
1561
+ },
1562
+ "iconLink": {
1563
+ "description": "A static, unauthenticated link to the file's icon.",
1564
+ "type": "string"
1565
+ },
1566
+ "id": {
1567
+ "description": "The ID of the file.",
1568
+ "type": "string"
1569
+ },
1570
+ "imageMediaMetadata": {
1571
+ "description": "Additional metadata about image media, if available.",
1572
+ "properties": {
1573
+ "aperture": {
1574
+ "description": "The aperture used to create the photo (f-number).",
1575
+ "format": "float",
1576
+ "type": "number"
1577
+ },
1578
+ "cameraMake": {
1579
+ "description": "The make of the camera used to create the photo.",
1580
+ "type": "string"
1581
+ },
1582
+ "cameraModel": {
1583
+ "description": "The model of the camera used to create the photo.",
1584
+ "type": "string"
1585
+ },
1586
+ "colorSpace": {
1587
+ "description": "The color space of the photo.",
1588
+ "type": "string"
1589
+ },
1590
+ "exposureBias": {
1591
+ "description": "The exposure bias of the photo (APEX value).",
1592
+ "format": "float",
1593
+ "type": "number"
1594
+ },
1595
+ "exposureMode": {
1596
+ "description": "The exposure mode used to create the photo.",
1597
+ "type": "string"
1598
+ },
1599
+ "exposureTime": {
1600
+ "description": "The length of the exposure, in seconds.",
1601
+ "format": "float",
1602
+ "type": "number"
1603
+ },
1604
+ "flashUsed": {
1605
+ "description": "Whether a flash was used to create the photo.",
1606
+ "type": "boolean"
1607
+ },
1608
+ "focalLength": {
1609
+ "description": "The focal length used to create the photo, in millimeters.",
1610
+ "format": "float",
1611
+ "type": "number"
1612
+ },
1613
+ "height": {
1614
+ "description": "The height of the image in pixels.",
1615
+ "format": "int32",
1616
+ "type": "integer"
1617
+ },
1618
+ "isoSpeed": {
1619
+ "description": "The ISO speed used to create the photo.",
1620
+ "format": "int32",
1621
+ "type": "integer"
1622
+ },
1623
+ "lens": {
1624
+ "description": "The lens used to create the photo.",
1625
+ "type": "string"
1626
+ },
1627
+ "location": {
1628
+ "description": "Geographic location information stored in the image.",
1629
+ "properties": {
1630
+ "altitude": {
1631
+ "description": "The altitude stored in the image.",
1632
+ "format": "double",
1633
+ "type": "number"
1634
+ },
1635
+ "latitude": {
1636
+ "description": "The latitude stored in the image.",
1637
+ "format": "double",
1638
+ "type": "number"
1639
+ },
1640
+ "longitude": {
1641
+ "description": "The longitude stored in the image.",
1642
+ "format": "double",
1643
+ "type": "number"
1644
+ }
1645
+ },
1646
+ "type": "object"
1647
+ },
1648
+ "maxApertureValue": {
1649
+ "description": "The smallest f-number of the lens at the focal length used to create the photo (APEX value).",
1650
+ "format": "float",
1651
+ "type": "number"
1652
+ },
1653
+ "meteringMode": {
1654
+ "description": "The metering mode used to create the photo.",
1655
+ "type": "string"
1656
+ },
1657
+ "rotation": {
1658
+ "description": "The number of clockwise 90-degree rotations applied from the image's original orientation.",
1659
+ "format": "int32",
1660
+ "type": "integer"
1661
+ },
1662
+ "sensor": {
1663
+ "description": "The type of sensor used to create the photo.",
1664
+ "type": "string"
1665
+ },
1666
+ "subjectDistance": {
1667
+ "description": "The distance to the subject of the photo, in meters.",
1668
+ "format": "int32",
1669
+ "type": "integer"
1670
+ },
1671
+ "time": {
1672
+ "description": "The date and time the photo was taken (EXIF DateTime).",
1673
+ "type": "string"
1674
+ },
1675
+ "whiteBalance": {
1676
+ "description": "The white balance mode used to create the photo.",
1677
+ "type": "string"
1678
+ },
1679
+ "width": {
1680
+ "description": "The width of the image in pixels.",
1681
+ "format": "int32",
1682
+ "type": "integer"
1683
+ }
1684
+ },
1685
+ "type": "object"
1686
+ },
1687
+ "isAppAuthorized": {
1688
+ "description": "Whether the requesting app created or opened the file.",
1689
+ "type": "boolean"
1690
+ },
1691
+ "kind": {
1692
+ "default": "drive#file",
1693
+ "description": "Identifies what kind of resource this is. Value: the fixed string \"drive#file\".",
1694
+ "type": "string"
1695
+ },
1696
+ "labelInfo": {
1697
+ "description": "An overview of the labels on the file.",
1698
+ "properties": {
1699
+ "labels": {
1700
+ "description": "The set of labels on the file as requested by the label IDs in the includeLabels parameter. By default, no labels are returned.",
1701
+ "items": {
1702
+ "$ref": "#/components/schemas/Label"
1703
+ },
1704
+ "type": "array"
1705
+ }
1706
+ },
1707
+ "type": "object"
1708
+ },
1709
+ "lastModifyingUser": {
1710
+ "$ref": "#/components/schemas/User",
1711
+ "description": "The last user to modify the file."
1712
+ },
1713
+ "linkShareMetadata": {
1714
+ "description": "Contains details about the link URLs that clients are using to refer to this item.",
1715
+ "properties": {
1716
+ "securityUpdateEligible": {
1717
+ "description": "Whether the file is eligible for security update.",
1718
+ "type": "boolean"
1719
+ },
1720
+ "securityUpdateEnabled": {
1721
+ "description": "Whether the security update is enabled for this file.",
1722
+ "type": "boolean"
1723
+ }
1724
+ },
1725
+ "type": "object"
1726
+ },
1727
+ "md5Checksum": {
1728
+ "description": "The MD5 checksum for the content of the file. This is only applicable to files with binary content in Google Drive.",
1729
+ "type": "string"
1730
+ },
1731
+ "mimeType": {
1732
+ "description": "The MIME type of the file.\nGoogle Drive will attempt to automatically detect an appropriate value from uploaded content if no value is provided. The value cannot be changed unless a new revision is uploaded.\nIf a file is created with a Google Doc MIME type, the uploaded content will be imported if possible. The supported import formats are published in the About resource.",
1733
+ "type": "string"
1734
+ },
1735
+ "modifiedByMe": {
1736
+ "description": "Whether this user has modified the file.",
1737
+ "type": "boolean"
1738
+ },
1739
+ "modifiedByMeTime": {
1740
+ "description": "The last time the user modified the file (RFC 3339 date-time).",
1741
+ "format": "date-time",
1742
+ "type": "string"
1743
+ },
1744
+ "modifiedTime": {
1745
+ "description": "The last time anyone modified the file (RFC 3339 date-time).\nNote that setting modifiedTime will also update modifiedByMeTime for the user.",
1746
+ "format": "date-time",
1747
+ "type": "string"
1748
+ },
1749
+ "name": {
1750
+ "description": "The name of the file. This isn't necessarily unique within a folder. Note that for immutable items such as the top-level folders of shared drives, My Drive root folder, and Application Data folder the name is constant.",
1751
+ "type": "string"
1752
+ },
1753
+ "originalFilename": {
1754
+ "description": "The original filename of the uploaded content if available, or else the original value of the name field. This is only available for files with binary content in Google Drive.",
1755
+ "type": "string"
1756
+ },
1757
+ "ownedByMe": {
1758
+ "description": "Whether the user owns the file. Not populated for items in shared drives.",
1759
+ "type": "boolean"
1760
+ },
1761
+ "owners": {
1762
+ "description": "The owner of this file. Only certain legacy files might have more than one owner. This field isn't populated for items in shared drives.",
1763
+ "items": {
1764
+ "$ref": "#/components/schemas/User"
1765
+ },
1766
+ "type": "array"
1767
+ },
1768
+ "parents": {
1769
+ "description": "The IDs of the parent folders that contain the file.\nIf not specified as part of a create request, the file will be placed directly in the user's My Drive folder. If not specified as part of a copy request, the file will inherit any discoverable parents of the source file. Update requests must use the addParents and removeParents parameters to modify the parents list.",
1770
+ "items": {
1771
+ "type": "string"
1772
+ },
1773
+ "type": "array"
1774
+ },
1775
+ "permissionIds": {
1776
+ "description": "List of permission IDs for users with access to this file.",
1777
+ "items": {
1778
+ "type": "string"
1779
+ },
1780
+ "type": "array"
1781
+ },
1782
+ "permissions": {
1783
+ "description": "The full list of permissions for the file. This is only available if the requesting user can share the file. Not populated for items in shared drives.",
1784
+ "items": {
1785
+ "$ref": "#/components/schemas/Permission"
1786
+ },
1787
+ "type": "array"
1788
+ },
1789
+ "properties": {
1790
+ "additionalProperties": {
1791
+ "type": "string"
1792
+ },
1793
+ "description": "A collection of arbitrary key-value pairs that are visible to all apps.\nEntries with null values are cleared in update and copy requests.",
1794
+ "type": "object"
1795
+ },
1796
+ "quotaBytesUsed": {
1797
+ "description": "The number of storage quota bytes used by the file. This includes the head revision as well as previous revisions with keepForever enabled.",
1798
+ "format": "int64",
1799
+ "type": "string"
1800
+ },
1801
+ "resourceKey": {
1802
+ "description": "A key needed to access the item via a shared link.",
1803
+ "type": "string"
1804
+ },
1805
+ "sha1Checksum": {
1806
+ "description": "The SHA1 checksum associated with this file, if available. This field is only populated for files with content stored in Google Drive; it's not populated for Docs Editors or shortcut files.",
1807
+ "type": "string"
1808
+ },
1809
+ "sha256Checksum": {
1810
+ "description": "The SHA256 checksum associated with this file, if available. This field is only populated for files with content stored in Google Drive; it's not populated for Docs Editors or shortcut files.",
1811
+ "type": "string"
1812
+ },
1813
+ "shared": {
1814
+ "description": "Whether the file has been shared. Not populated for items in shared drives.",
1815
+ "type": "boolean"
1816
+ },
1817
+ "sharedWithMeTime": {
1818
+ "description": "The time at which the file was shared with the user, if applicable (RFC 3339 date-time).",
1819
+ "format": "date-time",
1820
+ "type": "string"
1821
+ },
1822
+ "sharingUser": {
1823
+ "$ref": "#/components/schemas/User",
1824
+ "description": "The user who shared the file with the requesting user, if applicable."
1825
+ },
1826
+ "shortcutDetails": {
1827
+ "description": "Shortcut file details. Only populated for shortcut files, which have the mimeType field set to application/vnd.google-apps.shortcut.",
1828
+ "properties": {
1829
+ "targetId": {
1830
+ "description": "The ID of the file that this shortcut points to.",
1831
+ "type": "string"
1832
+ },
1833
+ "targetMimeType": {
1834
+ "description": "The MIME type of the file that this shortcut points to. The value of this field is a snapshot of the target's MIME type, captured when the shortcut is created.",
1835
+ "type": "string"
1836
+ },
1837
+ "targetResourceKey": {
1838
+ "description": "The ResourceKey for the target file.",
1839
+ "type": "string"
1840
+ }
1841
+ },
1842
+ "type": "object"
1843
+ },
1844
+ "size": {
1845
+ "description": "The size of the file's content in bytes. This field is populated for files with binary content stored in Google Drive and for Docs Editors files; it's not populated for shortcuts or folders.",
1846
+ "format": "int64",
1847
+ "type": "string"
1848
+ },
1849
+ "spaces": {
1850
+ "description": "The list of spaces that contain the file. The currently supported values are 'drive', 'appDataFolder' and 'photos'.",
1851
+ "items": {
1852
+ "type": "string"
1853
+ },
1854
+ "type": "array"
1855
+ },
1856
+ "starred": {
1857
+ "description": "Whether the user has starred the file.",
1858
+ "type": "boolean"
1859
+ },
1860
+ "teamDriveId": {
1861
+ "description": "Deprecated - use driveId instead.",
1862
+ "type": "string"
1863
+ },
1864
+ "thumbnailLink": {
1865
+ "description": "A short-lived link to the file's thumbnail, if available. Typically lasts on the order of hours. Only populated when the requesting app can access the file's content. If the file isn't shared publicly, the URL returned in Files.thumbnailLink must be fetched using a credentialed request.",
1866
+ "type": "string"
1867
+ },
1868
+ "thumbnailVersion": {
1869
+ "description": "The thumbnail version for use in thumbnail cache invalidation.",
1870
+ "format": "int64",
1871
+ "type": "string"
1872
+ },
1873
+ "trashed": {
1874
+ "description": "Whether the file has been trashed, either explicitly or from a trashed parent folder. Only the owner can trash a file. The trashed item is excluded from all files.list responses returned for any user who does not own the file. However, all users with access to the file can see the trashed item metadata in an API response. All users with access can copy, download, export, and share the file.",
1875
+ "type": "boolean"
1876
+ },
1877
+ "trashedTime": {
1878
+ "description": "The time that the item was trashed (RFC 3339 date-time). Only populated for items in shared drives.",
1879
+ "format": "date-time",
1880
+ "type": "string"
1881
+ },
1882
+ "trashingUser": {
1883
+ "$ref": "#/components/schemas/User",
1884
+ "description": "If the file has been explicitly trashed, the user who trashed it. Only populated for items in shared drives."
1885
+ },
1886
+ "version": {
1887
+ "description": "A monotonically increasing version number for the file. This reflects every change made to the file on the server, even those not visible to the user.",
1888
+ "format": "int64",
1889
+ "type": "string"
1890
+ },
1891
+ "videoMediaMetadata": {
1892
+ "description": "Additional metadata about video media. This might not be available immediately upon upload.",
1893
+ "properties": {
1894
+ "durationMillis": {
1895
+ "description": "The duration of the video in milliseconds.",
1896
+ "format": "int64",
1897
+ "type": "string"
1898
+ },
1899
+ "height": {
1900
+ "description": "The height of the video in pixels.",
1901
+ "format": "int32",
1902
+ "type": "integer"
1903
+ },
1904
+ "width": {
1905
+ "description": "The width of the video in pixels.",
1906
+ "format": "int32",
1907
+ "type": "integer"
1908
+ }
1909
+ },
1910
+ "type": "object"
1911
+ },
1912
+ "viewedByMe": {
1913
+ "description": "Whether this user has viewed the file.",
1914
+ "type": "boolean"
1915
+ },
1916
+ "viewedByMeTime": {
1917
+ "description": "The last time the user viewed the file (RFC 3339 date-time).",
1918
+ "format": "date-time",
1919
+ "type": "string"
1920
+ },
1921
+ "viewersCanCopyContent": {
1922
+ "description": "Deprecated - use copyRequiresWriterPermission instead.",
1923
+ "type": "boolean"
1924
+ },
1925
+ "webContentLink": {
1926
+ "description": "A link for downloading the content of the file in a browser. This is only available for files with binary content in Google Drive.",
1927
+ "type": "string"
1928
+ },
1929
+ "webViewLink": {
1930
+ "description": "A link for opening the file in a relevant Google editor or viewer in a browser.",
1931
+ "type": "string"
1932
+ },
1933
+ "writersCanShare": {
1934
+ "description": "Whether users with only writer permission can modify the file's permissions. Not populated for items in shared drives.",
1935
+ "type": "boolean"
1936
+ }
1937
+ },
1938
+ "type": "object"
1939
+ },
1940
+ "Label": {
1941
+ "description": "Representation of a label and its fields.",
1942
+ "properties": {
1943
+ "fields": {
1944
+ "additionalProperties": {
1945
+ "$ref": "#/components/schemas/LabelField"
1946
+ },
1947
+ "description": "A map of the label's fields keyed by the field ID.",
1948
+ "type": "object"
1949
+ },
1950
+ "id": {
1951
+ "description": "The ID of the label.",
1952
+ "type": "string"
1953
+ },
1954
+ "kind": {
1955
+ "default": "drive#label",
1956
+ "description": "This is always drive#label",
1957
+ "type": "string"
1958
+ },
1959
+ "revisionId": {
1960
+ "description": "The revision ID of the label.",
1961
+ "type": "string"
1962
+ }
1963
+ },
1964
+ "type": "object"
1965
+ },
1966
+ "LabelField": {
1967
+ "description": "Representation of a label field.",
1968
+ "properties": {
1969
+ "dateString": {
1970
+ "description": "Only present if valueType is dateString. RFC 3339 formatted date: YYYY-MM-DD.",
1971
+ "items": {
1972
+ "format": "date",
1973
+ "type": "string"
1974
+ },
1975
+ "type": "array"
1976
+ },
1977
+ "id": {
1978
+ "description": "The identifier of this field.",
1979
+ "type": "string"
1980
+ },
1981
+ "integer": {
1982
+ "description": "Only present if valueType is integer.",
1983
+ "items": {
1984
+ "format": "int64",
1985
+ "type": "string"
1986
+ },
1987
+ "type": "array"
1988
+ },
1989
+ "kind": {
1990
+ "default": "drive#labelField",
1991
+ "description": "This is always drive#labelField.",
1992
+ "type": "string"
1993
+ },
1994
+ "selection": {
1995
+ "description": "Only present if valueType is selection.",
1996
+ "items": {
1997
+ "type": "string"
1998
+ },
1999
+ "type": "array"
2000
+ },
2001
+ "text": {
2002
+ "description": "Only present if valueType is text.",
2003
+ "items": {
2004
+ "type": "string"
2005
+ },
2006
+ "type": "array"
2007
+ },
2008
+ "user": {
2009
+ "description": "Only present if valueType is user.",
2010
+ "items": {
2011
+ "$ref": "#/components/schemas/User"
2012
+ },
2013
+ "type": "array"
2014
+ },
2015
+ "valueType": {
2016
+ "description": "The field type. While new values may be supported in the future, the following are currently allowed: \n- dateString \n- integer \n- selection \n- text \n- user",
2017
+ "type": "string"
2018
+ }
2019
+ },
2020
+ "type": "object"
2021
+ },
2022
+ "Permission": {
2023
+ "description": "A permission for a file. A permission grants a user, group, domain, or the world access to a file or a folder hierarchy.",
2024
+ "properties": {
2025
+ "allowFileDiscovery": {
2026
+ "description": "Whether the permission allows the file to be discovered through search. This is only applicable for permissions of type domain or anyone.",
2027
+ "type": "boolean"
2028
+ },
2029
+ "deleted": {
2030
+ "description": "Whether the account associated with this permission has been deleted. This field only pertains to user and group permissions.",
2031
+ "type": "boolean"
2032
+ },
2033
+ "displayName": {
2034
+ "description": "The \"pretty\" name of the value of the permission. The following is a list of examples for each type of permission: \n- user - User's full name, as defined for their Google Account, such as \"Joe Smith.\" \n- group - Name of the Google Group, such as \"The Company Administrators.\" \n- domain - String domain name, such as \"your-company.com.\" \n- anyone - No displayName is present.",
2035
+ "type": "string"
2036
+ },
2037
+ "domain": {
2038
+ "description": "The domain to which this permission refers. The following options are currently allowed: \n- The entire domain, such as \"your-company.com.\" \n- A target audience, such as \"ID.audience.googledomains.com.\"",
2039
+ "type": "string"
2040
+ },
2041
+ "emailAddress": {
2042
+ "description": "The email address of the user or group to which this permission refers.",
2043
+ "type": "string"
2044
+ },
2045
+ "expirationTime": {
2046
+ "description": "The time at which this permission will expire (RFC 3339 date-time). Expiration times have the following restrictions: \n- They cannot be set on shared drive items. \n- They can only be set on user and group permissions. \n- The time must be in the future. \n- The time cannot be more than one year in the future.",
2047
+ "format": "date-time",
2048
+ "type": "string"
2049
+ },
2050
+ "id": {
2051
+ "description": "The ID of this permission. This is a unique identifier for the grantee, and is published in User resources as permissionId. IDs should be treated as opaque values.",
2052
+ "type": "string"
2053
+ },
2054
+ "kind": {
2055
+ "default": "drive#permission",
2056
+ "description": "Identifies what kind of resource this is. Value: the fixed string \"drive#permission\".",
2057
+ "type": "string"
2058
+ },
2059
+ "pendingOwner": {
2060
+ "description": "Whether the account associated with this permission is a pending owner. Only populated for user type permissions for files that aren't in a shared drive.",
2061
+ "type": "boolean"
2062
+ },
2063
+ "permissionDetails": {
2064
+ "description": "Details of whether the permissions on this shared drive item are inherited or are directly on this item. This is an output-only field that's present only for shared drive items.",
2065
+ "items": {
2066
+ "properties": {
2067
+ "inherited": {
2068
+ "description": "Whether this permission is inherited. This field is always populated. This is an output-only field.",
2069
+ "type": "boolean"
2070
+ },
2071
+ "inheritedFrom": {
2072
+ "description": "The ID of the item from which this permission is inherited. This is an output-only field.",
2073
+ "type": "string"
2074
+ },
2075
+ "permissionType": {
2076
+ "description": "The permission type for this user. While new values may be added in future, the following are currently allowed: \n- file \n- member",
2077
+ "type": "string"
2078
+ },
2079
+ "role": {
2080
+ "description": "The primary role for this user. While new values may be added in the future, the following are currently allowed: \n- organizer \n- fileOrganizer \n- writer \n- commenter \n- reader",
2081
+ "type": "string"
2082
+ }
2083
+ },
2084
+ "type": "object"
2085
+ },
2086
+ "readOnly": true,
2087
+ "type": "array"
2088
+ },
2089
+ "photoLink": {
2090
+ "description": "A link to the user's profile photo, if available.",
2091
+ "type": "string"
2092
+ },
2093
+ "role": {
2094
+ "description": "The role granted by this permission. While new values may be supported in the future, the following are currently allowed: \n- owner \n- organizer \n- fileOrganizer \n- writer \n- commenter \n- reader",
2095
+ "type": "string"
2096
+ },
2097
+ "teamDrivePermissionDetails": {
2098
+ "description": "Deprecated - use permissionDetails instead.",
2099
+ "items": {
2100
+ "properties": {
2101
+ "inherited": {
2102
+ "description": "Deprecated - use permissionDetails/inherited instead.",
2103
+ "type": "boolean"
2104
+ },
2105
+ "inheritedFrom": {
2106
+ "description": "Deprecated - use permissionDetails/inheritedFrom instead.",
2107
+ "type": "string"
2108
+ },
2109
+ "role": {
2110
+ "description": "Deprecated - use permissionDetails/role instead.",
2111
+ "type": "string"
2112
+ },
2113
+ "teamDrivePermissionType": {
2114
+ "description": "Deprecated - use permissionDetails/permissionType instead.",
2115
+ "type": "string"
2116
+ }
2117
+ },
2118
+ "type": "object"
2119
+ },
2120
+ "readOnly": true,
2121
+ "type": "array"
2122
+ },
2123
+ "type": {
2124
+ "description": "The type of the grantee. Valid values are: \n- user \n- group \n- domain \n- anyone When creating a permission, if type is user or group, you must provide an emailAddress for the user or group. When type is domain, you must provide a domain. There isn't extra information required for the anyone type.",
2125
+ "type": "string"
2126
+ },
2127
+ "view": {
2128
+ "description": "Indicates the view for this permission. Only populated for permissions that belong to a view. published is the only supported value.",
2129
+ "type": "string"
2130
+ }
2131
+ },
2132
+ "type": "object"
2133
+ },
2134
+ "User": {
2135
+ "description": "Information about a Drive user.",
2136
+ "properties": {
2137
+ "displayName": {
2138
+ "description": "A plain text displayable name for this user.",
2139
+ "type": "string"
2140
+ },
2141
+ "emailAddress": {
2142
+ "description": "The email address of the user. This may not be present in certain contexts if the user has not made their email address visible to the requester.",
2143
+ "type": "string"
2144
+ },
2145
+ "kind": {
2146
+ "default": "drive#user",
2147
+ "description": "Identifies what kind of resource this is. Value: the fixed string \"drive#user\".",
2148
+ "type": "string"
2149
+ },
2150
+ "me": {
2151
+ "description": "Whether this user is the requesting user.",
2152
+ "type": "boolean"
2153
+ },
2154
+ "permissionId": {
2155
+ "description": "The user's ID as visible in Permission resources.",
2156
+ "type": "string"
2157
+ },
2158
+ "photoLink": {
2159
+ "description": "A link to the user's profile photo, if available.",
2160
+ "type": "string"
2161
+ }
2162
+ },
2163
+ "type": "object"
2164
+ }
2165
+ },
2166
+ "securitySchemes": {
2167
+ "Oauth2": {
2168
+ "description": "Oauth 2.0 implicit authentication",
2169
+ "flows": {
2170
+ "implicit": {
2171
+ "authorizationUrl": "https://accounts.google.com/o/oauth2/auth",
2172
+ "scopes": {
2173
+ "https://www.googleapis.com/auth/drive": "See, edit, create, and delete all of your Google Drive files",
2174
+ "https://www.googleapis.com/auth/drive.appdata": "See, create, and delete its own configuration data in your Google Drive",
2175
+ "https://www.googleapis.com/auth/drive.file": "See, edit, create, and delete only the specific Google Drive files you use with this app",
2176
+ "https://www.googleapis.com/auth/drive.metadata": "View and manage metadata of files in your Google Drive",
2177
+ "https://www.googleapis.com/auth/drive.metadata.readonly": "See information about your Google Drive files",
2178
+ "https://www.googleapis.com/auth/drive.photos.readonly": "View the photos, videos and albums in your Google Photos",
2179
+ "https://www.googleapis.com/auth/drive.readonly": "See and download all your Google Drive files",
2180
+ "https://www.googleapis.com/auth/drive.scripts": "Modify your Google Apps Script scripts' behavior"
2181
+ }
2182
+ }
2183
+ },
2184
+ "type": "oauth2"
2185
+ },
2186
+ "Oauth2c": {
2187
+ "description": "Oauth 2.0 authorizationCode authentication",
2188
+ "flows": {
2189
+ "authorizationCode": {
2190
+ "authorizationUrl": "https://accounts.google.com/o/oauth2/auth",
2191
+ "scopes": {
2192
+ "https://www.googleapis.com/auth/drive": "See, edit, create, and delete all of your Google Drive files",
2193
+ "https://www.googleapis.com/auth/drive.appdata": "See, create, and delete its own configuration data in your Google Drive",
2194
+ "https://www.googleapis.com/auth/drive.file": "See, edit, create, and delete only the specific Google Drive files you use with this app",
2195
+ "https://www.googleapis.com/auth/drive.metadata": "View and manage metadata of files in your Google Drive",
2196
+ "https://www.googleapis.com/auth/drive.metadata.readonly": "See information about your Google Drive files",
2197
+ "https://www.googleapis.com/auth/drive.photos.readonly": "View the photos, videos and albums in your Google Photos",
2198
+ "https://www.googleapis.com/auth/drive.readonly": "See and download all your Google Drive files",
2199
+ "https://www.googleapis.com/auth/drive.scripts": "Modify your Google Apps Script scripts' behavior"
2200
+ },
2201
+ "tokenUrl": "https://accounts.google.com/o/oauth2/token"
2202
+ }
2203
+ },
2204
+ "type": "oauth2"
2205
+ }
2206
+ }
2207
+ }
2208
+ }